<Qcompound_text_with_extensions>: New variable.
[bpt/emacs.git] / src / ChangeLog
1 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il>
2
3 Support for ICCCM Extended Segments in X selections:
4
5 * xselect.c <Qcompound_text_with_extensions>: New variable.
6 (syms_of_xselect): Intern and staticpro it.
7 (selection_data_to_lisp_data): Run post-read-conversion on decoded
8 selection text.
9 (lisp_data_to_selection_data): If next-selection-coding-system is
10 compound-text-with-extensions, set the type of selection to be
11 compound-text.
12
13 * xterm.h (x_encode_text): Update prototype.
14
15 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all
16 callers changed. If SELECTIONP is non-zero, run the
17 pre-write-conversion function before encoding the selection text.
18
19 2002-02-21 Kim F. Storm <storm@cua.dk>
20
21 * frame.c (syms_of_frame): Change mouse-highlight default to t.
22
23 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]: Corrected
24 composing of language-change event.
25
26 2002-02-20 Kim F. Storm <storm@cua.dk>
27
28 * keyboard.c (menu_bar_items): Don't include keymap or local-map
29 bindings at PT when building menu (the menu is not updated often
30 enough for this to work reliable).
31 (tool_bar_items): Likewise.
32 (current_active_maps): Removed unused (and buggy) function.
33
34 2002-02-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
35
36 * xfns.c (gif_load): Use correct width and height for GIF images.
37
38 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
39
40 * floatfns.c (Fatan): Accept an optional second arg and call
41 atan2 if passed 2 args.
42
43 2002-02-18 Jason Rumney <jasonr@gnu.org>
44
45 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
46
47 2002-02-17 Jason Rumney <jasonr@gnu.org>
48
49 * w32term.c (x_autoselect_window_p): New variable.
50 (syms_of_w32term): DEFVAR_BOOL and initialize it.
51 (note_mouse_movement): Use it.
52
53 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
54
55 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
56
57 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
58 New variables.
59 (syms_of_w32fns): Intern and staticpro them.
60 (x_frame_parms) <"fullscreen">: New parameter.
61 (x_fullscreen_move, x_set_fullscreen): New functions.
62 (x_set_frame_parameters): Support Qfullscreen.
63 (x_real_positions): Save x/y_pixels_diff frame params.
64 (x_figure_window_size): Support full-screen frames.
65 (Fx_create_frame): Default the fullscreen parameter.
66
67 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
68 (x_fullscreen_adjust): New functions.
69 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
70 fullscreen. Call x_check_fullscreen_move, and set the
71 want_fullscreen member of output_data.w32
72 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
73
74 * w32term.h: New enum for FULLSCREEN_* constants.
75 (struct w32_output): New members want_fullscreen, x_pixels_diff,
76 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
77 (x-fullscreen-adjust): New prototype.
78
79 2002-02-17 Kim F. Storm <storm@cua.dk>
80
81 * frame.c: (Vmouse_highlight): New variable.
82 (syms_of_frame): DEFVAR_LISP it.
83
84 * frame.h: (Vmouse_highlight): Declare extern.
85
86 * xterm.h (struct x_display_info): Add mouse_face_hidden.
87
88 * xterm.c (disable_mouse_highlight): Removed variable.
89 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
90 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
91 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
92 and on after keyboard input.
93 (x_term_init): Initialize mouse_face_hidden.
94
95 * msdos.h (struct display_info): Add mouse_face_hidden.
96
97 * msdos.c (disable_mouse_highlight): Removed variable.
98 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
99 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
100 (internal_terminal_init): Initialize mouse_face_hidden.
101 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
102 and on after keyboard input.
103
104 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
105
106 * w32term.c (disable_mouse_highlight): Removed variable.
107 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
108 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
109 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
110 and on after keyboard input.
111 (w32_initialize_display_info): Initialize mouse_face_hidden.
112
113 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
114
115 * msdos.c (last_mouse_window): New variable.
116 (dos_rawgetc): Fix last change--if the mouse is in the same window
117 as recorded in last_mouse_window, don't select this window.
118
119 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not
120 cus-start.el.
121
122 * msdos.c (x_autoselect_window_p): New variable.
123 (syms_of_msdos): Defvar it.
124 (dos_rawgetc): If x_autoselect_window_p is set, select the window
125 in which the last mouse movement occured, unless it is already
126 selected.
127
128 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step): New
129 variables.
130 (syms_of_xdisp): DEVFAR them.
131 (hscroll_window_tree): Use automatic_hscroll_margin and
132 Vautomatic_hscroll_step to compute the amount of window scrolling.
133
134 2002-02-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
135
136 * xterm.c (x-autoselect-window): New variable.
137 (note_mouse_movement): Use it.
138
139 * keyboard.c: Do not include "systime.h" twice.
140
141 2002-02-15 Andreas Schwab <schwab@suse.de>
142
143 * puresize.h (BASE_PURESIZE): Increase to 9/5.
144
145 * alloc.c (NSTATICS): Increase to 1280.
146
147 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
148
149 * alloc.c (NSTATICS): Bump to 1026.
150
151 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
152 (Vx_super_keysym): New variables.
153 (syms_of_xterm): DEFVAR_LISP them.
154 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
155 variables to determine which keys to use for the various
156 modifiers.
157
158 2002-02-13 Kim F. Storm <storm@cua.dk>
159
160 * window.c: (Vmode_line_in_non_selected_windows): Removed.
161 (mode_line_in_non_selected_windows): New variable.
162 (syms_of_window): DEFVAR_BOOL it.
163
164 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Use
165 mode_line_in_non_selected_windows.
166 (mode_line_in_non_selected_windows): Declare extern.
167 (Vmode_line_in_non_selected_windows): Removed extern.
168
169 2002-02-13 Richard M. Stallman <rms@gnu.org>
170
171 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
172 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
173 (Fclear_this_command_keys): Doc fixes.
174
175 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
176 (update_face_from_frame_parameter): Increment face_change_count
177 and windows_or_buffers_changed to force redisplay using changed faces.
178
179 * xdisp.c (QCpropertize): New variable.
180 (mode_line_proptrans_alist): New variable.
181 (display_mode_element): New arg PROPS; all calls changed.
182 Implement this, for strings.
183 Handle literal output of strings by sharing the
184 main-line code for strings, using local var `literal'.
185 Handle :propertize feature.
186 (syms_of_xdisp): Initialze and staticpro QCpropertize and
187 mode_line_proptrans_alist.
188
189 2002-02-11 Kim F. Storm <storm@cua.dk>
190
191 * window.c: (Vmode_line_in_non_selected_windows): New variable.
192 (syms_of_window): DEFVAR_LISP it.
193
194 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
195 (CURRENT_MODE_LINE_FACE_ID): Use it.
196 (Vmode_line_in_non_selected_windows): Declare extern.
197
198 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
199 to get mode line face.
200
201 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
202
203 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
204 variables; cus-start.el doesn't need them anymore.
205
206 2002-02-09 Kim F. Storm <storm@cua.dk>
207
208 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
209 reduction. This fixes a display problem where stray newlines were
210 inserted in the window (corrected by C-l). Clarified code (IMHO).
211
212 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
213
214 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
215
216 * xdisp.c (display_mode_lines): Fix last change.
217
218 2002-02-09 Jason Rumney <jasonr@gnu.org>
219
220 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
221 match each other.
222 (w32_load_system_font): Prevent Cleartype fonts from loading.
223 (Fx_show_tip): Ensure tip frames are above other topmost windows.
224
225 2002-02-09 Kim F. Storm <storm@cua.dk>
226
227 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
228 (CURRENT_MODE_LINE_HEIGHT): Use it.
229 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
230
231 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
232 (pos_visible_p, handle_face_prop): Likewise.
233 (display_mode_lines): Likewise, but for the real selected window.
234 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
235
236 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
237 in non-selected windows.
238 (realize_basic_faces): Realize it.
239 (syms_of_term): Intern and staticpro it.
240
241 2002-02-08 Kim F. Storm <storm@cua.dk>
242
243 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
244 Changed mail addresses to emacs-devel@gnu.org.
245
246 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
247
248 * fileio.c (Fsubstitute_in_file_name): If the file name includes
249 ~user, and there's no such user, don't discard everything before
250 ~user.
251
252 * floatfns.c (Fround): Doc fix.
253
254 2002-02-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
255
256 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
257
258 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
259
260 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
261
262 2002-02-07 Kim F. Storm <storm@cua.dk>
263
264 * keymap.c (where_is_internal): Only check whether definition is
265 remapped if it fulfills is_command_symbol.
266
267 2002-02-07 Andreas Schwab <schwab@suse.de>
268
269 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
270
271 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
272
273 2002-02-06 Kim F. Storm <storm@cua.dk>
274
275 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
276 defining command remapping. Doc updated.
277 (Flookup_key): Remap command through keymap if KEY is a symbol.
278 (is_command_symbol): New function.
279 (Fkey_binding): Use it. New optional argument NO-REMAP.
280 Doc updated. Callers changed. Perform command remapping via
281 recursive call unless that arg is non-nil.
282 (where_is_internal): New argument no_remap. Callers changed.
283 Call recursively to find original key bindings for a remapped
284 comand unless that arg is non-nil.
285 (Fwhere_is_internal): New optional argument NO-REMAP.
286 Doc updated. Callers changed. Pass arg to where_is_internal.
287
288 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
289 (is_command_symbol): Added prototype.
290
291 * keyboard.c (Vthis_original_command): New variable.
292 (syms_of_keyboard): DEFVAR_LISP it.
293 (command_loop_1): Set it, and perform command remapping.
294
295 2002-02-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
296
297 * keyboard.c (recursive_edit_1): Call cancel_hourglass
298 unconditionally.
299
300 2002-02-06 Jason Rumney <jasonr@gnu.org>
301
302 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
303
304 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
305
306 * charset.c (get_charset_id): Use if-else instead of ?:.
307
308 2002-02-06 Richard M. Stallman <rms@gnu.org>
309
310 * filelock.c (S_ISLNK): Define if not defined.
311
312 2002-02-03 Richard M. Stallman <rms@gnu.org>
313
314 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
315
316 * lread.c (read1): Redesign strategy for force_multibyte and
317 force_singlebyte. Now is_multibyte records whether read_buffer
318 is multibyte. Encountering any multibyte character makes it so.
319
320 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
321
322 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
323 with the same sequence, map that sequence to f10 rather than f0.
324
325 2002-02-03 Andreas Schwab <schwab@suse.de>
326
327 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
328 latter never being defined on GNU/Linux.
329
330 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
331
332 * xfaces.c (realize_default_face): Don't set the weight and slant
333 of the default face to Qnormal, unless these attributes are
334 unspecified.
335
336 2002-02-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
337
338 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
339 Call cancel_hourglass unconditionally.
340
341 * eval.c (Fsignal): Remove duplicated declaration of
342 the variable `display_hourglass_p'.
343
344 2002-01-31 Richard M. Stallman <rms@gnu.org>
345
346 * editfns.c (region_limit): Nicer error message.
347
348 * coding.c (decode_composition_emacs_mule):
349 Give up if NCOMPONENT gets too large to index `component'.
350
351 * callint.c (check_mark): New arg to specify clearer error message.
352 Callers changed.
353
354 2002-01-27 Richard M. Stallman <rms@gnu.org>
355
356 * minibuf.c (Fcompleting_read): Doc fix.
357
358 2002-01-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
359
360 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
361 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
362 Fix doc-strings.
363
364 2002-01-26 Richard M. Stallman <rms@gnu.org>
365
366 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
367
368 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
369 and scroll_up_aggressively.
370
371 2002-01-26 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
372
373 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
374
375 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
376
377 * textprop.c (Fnext_property_change, Fnext_single_property_change)
378 (Fprevious_property_change, Fprevious_single_property_change):
379 Stay within the narrowed-buffer boundaries.
380
381 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
382
383 * term.c (Ftty_display_color_cells): New function.
384 (syms_of_term): Defsubr it.
385 (Ftty_display_color_cells, Ftty_display_color_p): Change the
386 argument name to DISPLAY. Doc fix.
387
388 * dispextern.h: Add prototype for set_tty_color_mode and
389 tty_setup_colors.
390
391 2002-01-24 Jason Rumney <jasonr@gnu.org>
392
393 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
394 If region left to draw is not what was expected, mark the frame as
395 garbaged.
396
397 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
398 Combine the regions returned by BeginPaint and GetUpdateRect.
399
400 2002-01-23 Jason Rumney <jasonr@gnu.org>
401
402 * w32term.c (x_update_window_begin): Only hide caret if
403 w32_use_visible_system_caret is set.
404 (x_update_window_end): Only show caret if
405 w32_use_visible_system_caret is set.
406 (syms_of_w32term): Handle SystemParametersInfo call failing.
407
408 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
409
410 2002-01-22 Richard M. Stallman <rms@gnu.org>
411
412 * unexelf.c (unexec): Define n so as to cause compilation error
413 for the code where people have often written n instead of nn.
414
415 * .gdbinit (hookpost-run): Defined.
416
417 2002-01-22 Jan D. <Jan.Djarv@mbox200.swipnet.se>
418
419 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
420
421 2002-01-21 Jan D. <Jan.Djarv@mbox200.swipnet.se>
422
423 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
424 if fullscreen is being set.
425
426 2002-01-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
427
428 * minibuf.c (Fminibuffer_contents)
429 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
430 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
431
432 2002-01-21 Richard M. Stallman <rms@gnu.org>
433
434 * window.c (check_frame_size): Fix minimum height calculation.
435
436 2002-01-20 Ken Raeburn <raeburn@gnu.org>
437
438 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
439 height before comparison.
440 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
441
442 2002-01-20 Jason Rumney <jasonr@gnu.org>
443
444 * w32term.c (w32_system_caret_width): Remove.
445 (w32_use_visible_system_caret): New user flag.
446 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
447 Windows reports a screen reader running.
448 (x_update_window_begin): Hide the system caret.
449 (x_update_window_end): Show the system caret.
450 (x_display_and_set_cursor): Don't draw a cursor when
451 w32_use_visible_system_caret is set. Do not adjust width.
452
453 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
454 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
455 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
456 the user requests it. Use system default width when creating.
457 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
458
459 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
460 New window messages.
461
462 2002-01-20 Richard M. Stallman <rms@gnu.org>
463
464 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
465
466 2002-01-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
467
468 * doprnt.c (doprnt1): Fix typos in error call.
469
470 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
471
472 * unexelf.c (unexec) [__sgi]: Support the .got sections.
473
474 2002-01-20 Jason Rumney <jasonr@gnu.org>
475
476 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
477 that Windows returns. If a double check fails, try to guess how
478 ExtTextOut is going to act.
479
480 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
481 in place of stricmp.
482 (w32_list_synthesized_fonts): Removed.
483 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
484 (struct enumfont_t): New element; list.
485 (enum_font_cb2): List all style and charset variations of a font.
486 (Fw32_select_font): New optional argument; include_proportional.
487 Exclude vertical fonts. Exclude proportional fonts unless
488 include_proportional is non-nil.
489 (w32_enable_synthesized_fonts): Change to a boolean.
490 (Fw32_send_sys_command): Doc fix.
491
492 2002-01-19 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
493
494 * dispnew.c (update_frame): Move the variable `tem' to the block
495 where it is used.
496
497 2002-01-19 Jason Rumney <jasonr@gnu.org>
498
499 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
500 call to face-set-after-frame-default.
501
502 2002-01-18 Richard M. Stallman <rms@gnu.org>
503
504 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
505 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
506
507 2002-01-17 Richard M. Stallman <rms@gnu.org>
508
509 * window.c (enlarge_window): When exceeding size of parent,
510 directly delete all the siblings instead of trying to resize it.
511
512 2002-01-17 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
513
514 * term.c (set_tty_color_mode): Remove unused variable `tem'.
515
516 2002-01-16 Henrik Enberg <henrik@enberg.org>
517
518 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
519
520 2002-01-16 Kim F. Storm <storm@cua.dk>
521
522 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
523 is invisible. This can happen if cursor is on top line of a
524 window, and we switch to a buffer with a header line.
525
526 * w32term.c (x_erase_phys_cursor): Ditto.
527
528 2002-01-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
529
530 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
531 `dont_resize' only when used.
532
533 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
534
535 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
536
537 * xdisp.c (display_mode_element): When computing charpos, depend
538 on multibyteness of elt, not the text in field.
539
540 2002-01-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
541
542 * buffer.c (Fkill_all_local_variables): Increment
543 `update_mode_lines' only once.
544
545 2002-01-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
546
547 * lisp.h (adjust_after_replace_noundo)
548 (Fupdate_coding_systems_internal): Add prototypes.
549
550 * sound.c (Fplay_sound): Initialize header_size also for :data case.
551
552 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
553
554 Support for the --color command-line argument and tty-color-mode
555 frame parameter:
556
557 * term.c (tty_default_color_capabilities, tty_setup_colors)
558 (set_tty_color_mode): New functions.
559 (term_init): Call tty_default_color_capabilities.
560 (Qtty_color_mode_alist): New variable.
561 (syms_of_term): Intern and staticpro it.
562
563 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
564 frames.
565 (do_switch_frame): For termcap frames, switch the tty
566 color mode as specified by the frame's parameters.
567 (Qtty_color_mode): New variable.
568 (syms_of_frame): Intern and staticpro it.
569
570 * emacs.c (USAGE2): Add the --color option.
571 (standard_args): Ditto.
572
573 2002-01-13 Jan Djarv <Jan.Djarv@mbox200.swipnet.se>
574
575 * xterm.h (struct x_output): New members want_fullscreen,
576 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
577 y_pixels_outer_diff.
578 New enum for FULLSCREEN_* constants.
579 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
580 is NULL.
581 (x_fullscreen_adjust): Add prototype.
582
583 * emacs.c (USAGE2): Add the new full-screen arguments.
584 (standard_args): Ditto.
585
586 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
587 New variables.
588 (syms_of_xfns): Intern and staticpro them.
589 (x_frame_parms) <"fullscreen">: New parameter.
590 (x_fullscreen_move, x_set_fullscreen): New functions.
591 (x_set_frame_parameters): Support for Qfullscreen.
592 (x_real_positions): More accurate computation of the frame position.
593 (x_figure_window_size): Support full-screen frames.
594 (Fx_create_frame): Default the fullscreen parameter.
595
596 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
597 (XTread_socket) <Expose>: Call x_check_fullscreen.
598 <ConfigureNotify>: Don't resize to fullscreen.
599 Call x_check_fullscreen_move, and set the want_fullscreen member of
600 output_data.x.
601
602 2002-01-13 Jason Rumney <jasonr@gnu.org>
603
604 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
605 for mice with more than 3 buttons.
606
607 * w32term.c (parse_button): New parameter xbutton. Callers changed.
608 (w32_read_socket): Handle new "XBUTTON" messages.
609
610 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
611 (syms_of_w32fns): DEFVAR_BOOL it.
612 (w32_wnd_proc): Handle new "XBUTTON" messages.
613
614 2002-01-13 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
615
616 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
617
618 2002-01-13 Andreas Schwab <schwab@suse.de>
619
620 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
621
622 2002-01-12 Andreas Schwab <schwab@suse.de>
623
624 * .gdbinit (xbuffer): Remove address operator since data is now a
625 pointer.
626
627 2002-01-11 Richard M. Stallman <rms@gnu.org>
628
629 * insdel.c (adjust_after_replace_noundo): New function.
630
631 * coding.c (code_convert_region): Don't copy old text if undo disabled.
632
633 2002-01-09 Jason Rumney <jasonr@gnu.org>
634
635 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
636 when checking for multiple frames.
637
638 2002-01-08 Richard M. Stallman <rms@gnu.org>
639
640 * window.c (delete_window): Rewrite the code for changing the
641 selected window to handle the case where WINDOW is not a leaf.
642
643 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
644
645 * process.c (send_process): Set src_multibyte to 1 after the call
646 top setup_coding_system, not before the call.
647
648 2002-01-07 Jason Rumney <jasonr@gnu.org>
649
650 * xmenu.c (set_frame_menubar, xmenu_show):
651 (xdialog_show): Initialize wv->help to Qnil.
652
653 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
654 (w32_dialog_show): Initialize wv->help to Qnil.
655
656 2002-01-06 Jason Rumney <jasonr@gnu.org>
657
658 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
659
660 * w32menu.c (w32_menu_display_help): Revert last change.
661
662 * xmenu.c (menu_highlight_callback): Revert last change.
663
664 2002-01-06 Andreas Schwab <schwab@suse.de>
665
666 * insdel.c (make_gap_larger): Make sure buffer size does not
667 overflow range of int.
668
669 2002-01-05 Jason Rumney <jasonr@gnu.org>
670
671 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
672 OVERLAPS_P.
673
674 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
675
676 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
677 to the left or to the right of the pointer, put it against
678 the left screen edge.
679 (x_frame_parms): Add missing braces around initializer.
680
681 * w32term.c (x_setup_relief_colors): Don't compute an image's
682 background color if it doesn't have a Pixmap.
683 (notice_overwritten_cursor): Don't depend on
684 output_cursor and updated_area. Compare pixel coordinates with
685 window's cursor pixel coordinates.
686 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
687 Call notice_overwritten_cursor with new arg list.
688 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
689 unconditionally.
690 (x_draw_image_relief): Use predefined macro instead of
691 constant when the value of `tool_bar_button_relief' is negative.
692
693 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
694
695 2002-01-04 Richard M. Stallman <rms@gnu.org>
696
697 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
698
699 2002-01-03 Richard M. Stallman <rms@gnu.org>
700
701 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
702 (Fkey_binding): Try the `keymap' property map first.
703 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
704 minor mode bindings.
705
706 2002-01-03 Kim F. Storm <storm@cua.dk>
707
708 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
709
710 2002-01-02 Richard M. Stallman <rms@gnu.org>
711
712 * keyboard.c (read_key_sequence): Handle the keymap property
713 before minor mode maps.
714
715 * editfns.c (Fformat): Update thissize from field_width
716 based on the actual width, in the string case.
717
718 2002-01-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
719
720 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
721 when used as truth value to prevent gcc warnings.
722
723 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
724 * w32proc.c: Include <config.h>.
725
726 2002-01-01 Andreas Schwab <schwab@suse.de>
727
728 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
729 not EMACS_INT, to make them compatible with DEFVAR_INT.
730 * lisp.h (max_specpdl_size): Adjust declaration.
731
732 2002-01-01 Richard M. Stallman <rms@gnu.org>
733
734 * print.c (print_object): Test print_escape_nonascii only for
735 unibyte strings.
736 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
737 when outputting to a multibyte buffer.
738
739 2001-12-29 Richard M. Stallman <rms@gnu.org>
740
741 * print.c (print_object): In multibyte string, use hex escapes.
742 Use octal only for unibyte strings.
743 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
744
745 * lread.c (read_escape): New arg BYTEREP for reporting whether
746 escape forces unibyte or multibyte.
747 (read1): When reading a string, take note of that info.
748
749 2001-12-29 Ken Raeburn <raeburn@gnu.org>
750
751 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
752 comparison to test lisp value returned by Fget.
753
754 2001-12-29 Richard M. Stallman <rms@gnu.org>
755
756 * lisp.h (max_specpdl_size): Add declaration.
757
758 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
759
760 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
761 Handle modifier bits. Correct typo in error message.
762
763 2001-12-28 Richard M. Stallman <rms@gnu.org>
764
765 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
766 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
767 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
768 Update calls to Fdefine_abbrev.
769 (write_abbrev): Update for changed data format.
770 Don't list "system" abbrevs.
771 (Fexpand_abbrev): Update use count with new data format.
772 (describe_abbrev): Update for changed data format.
773 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
774
775 * config.in (HAVE_MBSINIT): Add #undef.
776
777 * strftime.c (mbsinit): Define as no-op if not available.
778
779 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
780 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
781
782 * keymap.c (Flookup_key): Error message if key has wrong data type.
783 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
784 (exclude_key): New variable.
785
786 2001-12-28 Gerd Moellmann <gerd@gnu.org>
787
788 * xterm.c (x_setup_relief_colors): Don't compute an image's
789 background color if it doesn't have a Pixmap.
790
791 * xterm.c (notice_overwritten_cursor): Don't depend on
792 output_cursor and updated_area. Compare pixel coordinates with
793 window's cursor pixel coordinates.
794 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
795 Call notice_overwritten_cursor with new arg list.
796 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
797 unconditionally.
798
799 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
800 height of the cursor line to the amount to scroll.
801
802 2001-12-27 Richard M. Stallman <rms@gnu.org>
803
804 * intervals.c (set_point_both): The position after an invisible,
805 intangible character is not an acceptable stopping point.
806
807 2001-12-27 Ken Raeburn <raeburn@gnu.org>
808
809 * window.c (enlarge_window): In new preserve_before code, convert
810 CURBEG from lisp object to integer before doing arithmetic.
811
812 2001-12-27 Richard M. Stallman <rms@gnu.org>
813
814 * bytecode.c (Fbyte_code): Undo previous change.
815
816 2001-12-26 Kim F. Storm <storm@cua.dk>
817
818 * keyboard.c (record_char): Ignore duplicate help-echo events only
819 separated by mouse-movement. When tracking mouse, only record
820 first and last mouse-movement event in same window.
821 Don't record mouse-movement events in keyboard macros.
822
823 2001-12-25 Richard M. Stallman <rms@gnu.org>
824
825 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
826 (Fenlarge_window): New arg PRESERVE_BEFORE.
827
828 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
829 instead of Fstring_as_unibyte.
830
831 2001-12-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
832
833 The following changes remove mocklisp support:
834
835 * mocklisp.h, mocklisp.c: Files removed.
836
837 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
838 `Qmocklisp' and `Qmocklisp_arguments'.
839 Remove prototype of syms_of_mocklisp.
840
841 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
842
843 * callint.c: Do not include mocklisp.h.
844 (Fcall_interactively): Do not test for mocklisp case.
845
846 * eval.c: Remove variables `Qmocklisp_arguments',
847 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
848 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
849 Do not test for mocklisp case.
850 (Fwhile): Remove unused variable `tem'.
851 (syms_of_eval): Remove variable `moclisp-arguments'.
852
853 * data.c (wrong_type_argument): Remove mocklisp case.
854
855 * doc.c (Fdocumentation): Remove mocklisp case.
856
857 * emacs.c (main): Do not call syms_of_mocklisp.
858
859 2001-12-21 Richard M. Stallman <rms@gnu.org>
860
861 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
862 to the left or to the right of the pointer, put it against
863 the left screen edge.
864
865 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
866
867 * Makefile.in (distclean): Remove .gdbinit if we are building
868 outside the source tree.
869
870 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
871
872 * w32.c (emacs_root_dir): New function.
873
874 * msdos.c (emacs_root_dir): New function.
875
876 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
877 of the current drive as the fallback for default_directory.
878
879 * dired.c (file_name_completion): Run the elements of
880 completion-ignored-extensions through ENCODE_FILE.
881
882 * lisp.h (scmp): Remove prototype, since it's now a static
883 function private to dired.c.
884
885 2001-12-18 Richard M. Stallman <rms@gnu.org>
886
887 * dired.c (scmp): Function moved from minibuf.c.
888 Delete multibyte handling--used only on encoded strings.
889
890 * minibuf.c (scmp): Function moved to dired.c.
891
892 * fns.c (merge): Add QUIT call.
893
894 2001-12-18 Dave Love <fx@gnu.org>
895
896 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
897 language/georgian.el.
898
899 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
900
901 * Makefile.in (lisp, shortlisp): Synchronize with changes to
902 lisp/Makefile.in:DONTCOMPILE.
903
904 2001-12-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
905
906 * xdisp.c (window_box_height): Do not return negative values.
907 From Gerd Moellmann <gerd@gnu.org>.
908
909 * keyboard.c (head_table): Add missing braces around initializer.
910
911 * term.c (keys): Likewise.
912
913 * xfns.c (x_frame_parms, visual_classes): Likewise.
914
915 2001-12-17 Sam Steingold <sds@gnu.org>
916
917 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
918 patch (COMPOSING_P, not COMPOSING).
919
920 2001-12-17 Richard M. Stallman <rms@gnu.org>
921
922 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
923
924 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
925 before calling decode_coding.
926
927 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
928
929 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
930 instead of only for COMPOSITION_DISABLED.
931
932 2001-12-16 Richard M. Stallman <rms@gnu.org>
933
934 * alloc.c (pure_alloc): After overflow, allocate just a small block.
935
936 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
937
938 * buffer.h (struct buffer): New field `display_error_modiff'.
939 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
940
941 * window.c (Frecenter): Clear display_error_modiff field.
942
943 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
944 Call redisplay_window, but not if display_error_modiff field says no.
945 (redisplay_window_error): New function.
946 (displayed_buffer): New variable.
947 (redisplay_internal, redisplay_windows): Call the new functions
948 instead of redisplay_window directly.
949
950 2001-12-15 Richard M. Stallman <rms@gnu.org>
951
952 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
953
954 2001-12-14 Andrew Innes <andrewi@gnu.org>
955
956 * makefile.w32-in (EMACSLOADPATH): Define.
957 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
958 (bootstrap-temacs): Remove dependency on bootstrap-clean.
959
960 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
961
962 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
963 parameter have a numeric value all the time.
964
965 * w32fns.c (x_report_frame_params): Likewise.
966
967 2001-12-12 Richard M. Stallman <rms@gnu.org>
968
969 * fileio.c (Fwrite_region): Doc fix.
970
971 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
972 (redisplay_internal): Call clear_image_cache only for window terminals.
973
974 2001-12-12 Gerd Moellmann <gerd@gnu.org>
975
976 * xdisp.c (move_it_vertically_backward): Change heuristic
977 for the case that we didn't move far enough initially.
978
979 * window.c (Frecenter): Simplify computation in the case of window
980 system frames and ARG < 0; use window_box_height.
981
982 2001-12-11 Richard M. Stallman <rms@gnu.org>
983
984 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
985 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
986
987 2001-12-11 Andrew Innes <andrewi@gnu.org>
988
989 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
990 arg is negative.
991
992 2001-12-11 Richard M. Stallman <rms@gnu.org>
993
994 * m/hp800.h: Split the __hpux conditional into the parts
995 that are right for GNU/Linux too and the parts that are not.
996 Use the former if GNU_LINUX.
997 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
998
999 * s/gnu-linux.h (GNU_LINUX): Defined.
1000
1001 2001-12-11 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1002
1003 * macros.c, msdos.c, w16select.c: Change doc-string comments to
1004 `new style' [w/`doc:' keyword].
1005
1006 2001-12-10 Jason Rumney <jasonr@gnu.org>
1007
1008 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
1009 before using.
1010
1011 2001-12-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1012
1013 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
1014 keyword].
1015
1016 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
1017
1018 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
1019
1020 * s/hpux10.h (srand48): Don't undefine.
1021
1022 2001-12-09 Jason Rumney <jasonr@gnu.org>
1023
1024 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
1025 Add comment to explain where the struct came from.
1026 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
1027 (add_menu_item): Process pop-up menus first to avoid memory leak.
1028 (add_menu_item, w32_menu_display_help): Use `help' field as
1029 Lisp_Object.
1030 (w32_free_submenu_strings): Only free owner-drawn strings.
1031
1032 2001-12-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1033
1034 * COPYING: Moved back.
1035
1036 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
1037 Add parentheses around && within ||.
1038
1039 * indent.c (compute_motion): Likewise.
1040
1041 * intervals.c (merge_properties_sticky): Likewise.
1042
1043 * coding.c (setup_coding_system, shrink_encoding_region)
1044 (Fdecode_sjis_char): Likewise.
1045
1046 2001-12-07 Andreas Schwab <schwab@suse.de>
1047
1048 * xdisp.c (display_mode_element): Don't read past end of string if
1049 it ends with '%'.
1050
1051 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
1052 can hold.
1053
1054 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename
1055 from most_positive_fixnum and most_negative_fixnum, resp., and
1056 type changed to Lisp_Object.
1057 (syms_of_data): DEFVAR_LISP them.
1058
1059 2001-12-07 Richard M. Stallman <rms@gnu.org>
1060
1061 * callproc.c (init_callproc): Set Vdata_directory based on the source
1062 location whenever Emacs was run uninstalled.
1063
1064 2001-12-06 Paul Eggert <eggert@twinsun.com>
1065
1066 * config.in (HAVE_WORKING_VFORK): New #undefs.
1067 * process.c (create_process):
1068 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
1069 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
1070 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
1071 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
1072 * m/intel386.h (HAVE_VFORK): Likewise.
1073 * m/mips-siemens.h (HAVE_VFORK): Likewise.
1074 * m/mips.h (HAVE_VFORK): Likewise.
1075 * s/freebsd.h (vfork): Remove #define.
1076 * s/lynxos.h (HAVE_VFORK): Remove #undef.
1077 * s/usg5-4-2.h: Fix comment about vfork.
1078
1079 2001-12-06 Richard M. Stallman <rms@gnu.org>
1080
1081 * s/hpux10.h (random): Add undef.
1082 (HAVE_RANDOM): Define it just once.
1083
1084 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
1085
1086 * eval.c: Undo last change: the standard syntax is not wanted.
1087
1088 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
1089
1090 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
1091 scroll bars of the frame before deleting the frame itself. If the
1092 frame has a widget, delete the frame with XtDestroyWidget, and do
1093 not call XDestroyWindow before that.
1094
1095 2001-12-06 Kim F. Storm <storm@cua.dk>
1096
1097 * xfns.c (x_report_frame_params): Return actual fringe widths.
1098
1099 * w32fns.c (x_report_frame_params): Return actual fringe widths.
1100
1101 2001-12-05 Andrew Innes <andrewi@gnu.org>
1102
1103 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
1104 excessively large.
1105
1106 * insdel.c (make_gap_larger): New function.
1107 (make_gap_smaller): New function.
1108 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
1109 make_gap_smaller if arg is negative.
1110
1111 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
1112
1113 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
1114 Pass a dummy argument when calling interrupt_signal.
1115 (parse_menu_item): Mark disabled items before checking for empty def.
1116 (read_char_minibuf_menu_prompt): Make safety more visible.
1117 (read_key_sequence): Add a `first_unbound' variable.
1118 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
1119 unbound prefix as soon as we can detect it.
1120
1121 * doc.c (Fsnarf_documentation): Add prototype.
1122 (get_doc_string): Handle negative arguments.
1123 (Fdocumentation): Use AREF and ASIZE.
1124 Move the calls to get_doc_string to a single place.
1125 Don't confuse an interactive-spec for a docstring reference.
1126 (Fdocumentation_property): Take advantage of the fact that
1127 get_doc_string now ignores the sign of the docstring position.
1128
1129 * eval.c: Use standard syntax for usage in docstrings.
1130
1131 2001-12-03 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1132
1133 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
1134
1135 2001-12-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1136
1137 * xterm.c (x_draw_image_relief): Use predefined macro instead of
1138 constant when the value of `tool_bar_button_relief' is negative.
1139
1140 2001-12-02 Richard M. Stallman <rms@gnu.org>
1141
1142 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
1143 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
1144
1145 * fileio.c (read_non_regular): Delete Fsignal call.
1146
1147 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
1148
1149 * lisp.h (run_hook_list_with_args): Undo last change.
1150
1151 2001-12-01 Gerd Moellmann <gerd@gnu.org>
1152
1153 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
1154
1155 2001-12-01 Jason Rumney <jasonr@gnu.org>
1156
1157 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
1158
1159 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
1160 [!WM_MOUSELEAVE]: Define.
1161
1162 * w32menu.c (current_popup_menu, get_menu_item_info):
1163 (set_menu_item_info): New vars.
1164 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
1165 (w32_menu_show): Set current_popup_menu.
1166 (add_menu_item): Allocate new strings for owner-drawn menu items
1167 and help strings.
1168 Use owner-draw for disabled menu items again.
1169 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
1170 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
1171
1172 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
1173 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
1174 <WM_EXITMENULOOP>: Free menu strings.
1175 <WM_MOUSELEAVE>: Stop tracking mouse.
1176 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
1177
1178 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
1179 and mouse face.
1180
1181 2001-12-01 Kim F. Storm <storm@cua.dk>
1182
1183 The following changes add left-fringe and right-fringe
1184 frame parameters to adjust fringe widths, or remove one or
1185 both fringes.
1186
1187 * frame.h (struct frame): Remove trunc_area_pixel_width and
1188 trunc_area_cols fields.
1189 (Qleft_fringe, Qright_fringe): Declare.
1190 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
1191
1192 * frame.c (Qleft_fringe, Qright_fringe): New vars.
1193 (syms_of_frame): Initialize them.
1194
1195 * window.c (coordinates_in_window): Handle separate left and right
1196 fringe widths.
1197
1198 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
1199 and fringe_cols fields.
1200 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
1201 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
1202 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
1203 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
1204 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
1205 (x_compute_fringe_widths): Add prototype.
1206
1207 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
1208 fill fringe evenly with small dashes.
1209 (x_draw_fringe_bitmap): Clear background if necessary. Align and
1210 clip the new ZV bitmap to avoid jitter between rows.
1211 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
1212 background. Don't draw fringe bitmaps if fringe width is zero.
1213 (x_compute_fringe_widths): New function.
1214 (x_new_font, x_set_window_size_1): Use it.
1215
1216 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
1217 (x_set_frame_parameters): Process `font' parameter before other
1218 parameters as fringe widths depend on it.
1219 (x_set_fringe_width): New function.
1220 (x_figure_window_size): Use x_compute_fringe_widths.
1221 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
1222 parameters.
1223
1224 * widget.c (set_frame_size): Use x_compute_fringe_widths.
1225 (EmacsFrameSetCharSize): Ditto.
1226
1227 * w32term.h: Merged changes from xterm.h.
1228 * w32term.c: Merged changes from xterm.c.
1229 * w32fns.c: Merged changes from xfns.c.
1230
1231 2001-11-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1232
1233 * COPYING: Removed.
1234
1235 2001-11-29 Dave Love <fx@gnu.org>
1236
1237 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
1238 extra extra slot.
1239 (detect_coding_mask): Fix call of detect_coding_iso2022.
1240
1241 2001-11-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1242
1243 * fileio.c (file-name-coding-system)
1244 (default-file-name-coding-system): Doc fix (links to referenced
1245 variables added).
1246
1247 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
1248
1249 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
1250 Add dummy uses of gcproN variables.
1251
1252 * category.c (describe_category, describe_category_1)
1253 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
1254 (syms_of_category): Don't defsubr Sdescribe_categories.
1255
1256 2001-11-28 Richard M. Stallman <rms@gnu.org>
1257
1258 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
1259
1260 * Makefile.in (lispdir): New variable, referring to build dir.
1261 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
1262
1263 2001-11-28 Andrew Innes <andrewi@gnu.org>
1264
1265 * w32menu.c (w32_menu_display_help): Actually add the new argument
1266 OWNER.
1267
1268 2001-11-28 Jason Rumney <jasonr@gnu.org>
1269
1270 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
1271 menu items. From David Ponce <dponce@wanadoo.fr>.
1272 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
1273 conditionally.
1274 (w32_menu_display_help): New argument OWNER. Rewritten to store a
1275 help event in the owner frame's keyboard buffer.
1276
1277 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
1278 (Fx_show_tip): Don't subtract last width from row width.
1279
1280 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
1281 (w32_read_socket): Use EQ to compare frames.
1282
1283 2001-11-28 Gerd Moellmann <gerd@gnu.org>
1284
1285 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
1286 OVERLAPS_P.
1287
1288 2001-11-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1289
1290 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
1291 `gcpro3' and `gcpro4'.
1292
1293 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
1294
1295 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
1296
1297 * ccl.c: Use AREF and ASIZE.
1298
1299 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
1300
1301 * lisp.h (run_hook_list_with_args): Remove.
1302 (LIST_END_P): Fix call to wrong_type_argument.
1303 (make_fixnum_or_float): Use EMACS_INT rather than int.
1304
1305 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
1306
1307 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
1308 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
1309
1310 * eval.c: Use AREF and ASIZE.
1311 (Ffetch_bytecode): Add the file name to the error message.
1312
1313 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
1314 which match the end of the file-name.
1315 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
1316 is not a valid env var, but leave it as is instead.
1317
1318 * keymap.c (access_keymap): Handle t bindings like nil bindings.
1319 Make nil bindings in char-tables transparent.
1320 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
1321
1322 2001-11-26 Richard M. Stallman <rms@gnu.org>
1323
1324 * textprop.c (set_text_properties_1): Allow START, END in either order.
1325 Do nothing if range is empty.
1326
1327 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
1328
1329 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
1330 (clean): Not here.
1331
1332 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
1333
1334 * textprop.c (set_text_properties_1): Clearly mark that the
1335 interval should not be empty.
1336
1337 * intervals.c (graft_intervals_into_buffer):
1338 Don't call set_text_properties_1 on an empty interval.
1339
1340 2001-11-25 Richard M. Stallman <rms@gnu.org>
1341
1342 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
1343
1344 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
1345 don't lose the data in it.
1346
1347 2001-11-25 Juanma Barranquero <lektu@terra.es>
1348
1349 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
1350
1351 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
1352
1353 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
1354
1355 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
1356
1357 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
1358
1359 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
1360
1361 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
1362 Niemitalo <kon@iki.fi>.
1363
1364 2001-11-25 Jason Rumney <jasonr@gnu.org>
1365
1366 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
1367
1368 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
1369 (Fx_show_tip): Block input during frame creation.
1370 (Fx_show_tip, Fx_hide_tip): Enable.
1371
1372 2001-11-24 Richard M. Stallman <rms@gnu.org>
1373
1374 * lread.c (Fload): Detect recursive load error for more than 3
1375 nestings of the same file.
1376 (Vrecursive_load_depth_limit): Variable deleted.
1377 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
1378
1379 2001-11-24 Jason Rumney <jasonr@gnu.org>
1380
1381 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
1382 mouse position if either left or top is not specified.
1383
1384 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
1385 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
1386 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
1387 (my_create_tip_window): Assign tip_window.
1388 (x_create_tip_frame): Use same defaults as X.
1389 (compute_tip_xy): Remove unused variable. Use full screen width.
1390 (Fx_show_tip): Do not double height. Call ShowWindow directly.
1391
1392 * w32term.c (x_after_update_window_line): Doc fix.
1393 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
1394 frames.
1395 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
1396
1397 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
1398 for all Windowed systems.
1399
1400 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
1401
1402 * msdos.c (IT_clear_screen): If the frame's faces are not yet
1403 realized, use the initial screen colors to clear the screen.
1404
1405 2001-11-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1406
1407 * textprop.c (Fset_text_properties): Remove unused variables
1408 `unchanged', `prev_changed', `s' and `len'.
1409
1410 * search.c (Freplace_match): Remove unused variable `inslen'.
1411
1412 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
1413
1414 2001-11-22 Jason Rumney <jasonr@gnu.org>
1415
1416 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
1417 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
1418 (my_create_tip_window): New function.
1419 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
1420 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
1421
1422 2001-11-20 Jason Rumney <jasonr@gnu.org>
1423
1424 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
1425 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
1426
1427 * w32fns.c (Vw32_system_coding_system): Remove.
1428 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
1429
1430 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
1431
1432 * fileio.c (Fwrite_region): Move choose_write_coding_system to
1433 after build_annotations.
1434
1435 * syntax.c (describe_syntax): Add dummy arg.
1436 (describe_syntax_1): Update call to describe_vector.
1437
1438 * category.c (describe_category): Add dummy arg.
1439 (describe_category_1): Update call to describe_vector.
1440
1441 * keymap.c (Fdescribe_vector): Add `describer' parameter.
1442 (describe_command, describe_translation): Add dummy second param.
1443 (describe_map): Call elt_describer with two arguments.
1444 (describe_vector_princ): Add `fun' parameter.
1445 Call it instead of the hardcoded `princ'.
1446 (describe_vector): Add arg `args'.
1447 Pass it as a new second argument to elt_describer.
1448
1449 * keymap.h (describe_vector): Update prototype.
1450
1451 * frame.c: Don't include keymap.h any more.
1452 (keys_of_frame): Remove.
1453
1454 * lisp.h (keys_of_frame): Remove declaration.
1455
1456 * emacs.c (main): Don't call `keys_of_frame' any more.
1457
1458 2001-11-14 Andreas Schwab <schwab@suse.de>
1459
1460 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
1461 if defined, 0 otherwise.
1462 (MAP_FAILED): Define if not defined and use it to test mmap failure.
1463 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
1464
1465 2001-11-19 Richard M. Stallman <rms@gnu.org>
1466
1467 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
1468
1469 2001-11-18 Jason Rumney <jasonr@gnu.org>
1470
1471 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
1472 (x_draw_bar_cursor): If the background color of the glyph under
1473 the cursor equals the frame's cursor color, use the glyph's
1474 foreground color for drawing the bar cursor.
1475 (x_after_update_window_line): Clear internal border in different
1476 circumstances.
1477 (w32_set_vertical_scroll_bar): Check for width and height > 0.
1478 (w32_draw_relief_rect): Correct relief by 1 pixel.
1479 (x_set_glyph_string_background_width):
1480 Set extends_to_end_of_line_p if the row's fill_line_p is set and
1481 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
1482 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
1483 if cursor_in_non_selected_windows is false.
1484 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
1485 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
1486 Notice if cursor gets overwritten.
1487 (notice_overwritten_cursor): Renamed from
1488 note_overwritten_text_cursor. Rewritten to take glyph widths
1489 into account, and to take X positions as parameters.
1490 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
1491 around call to x_draw_glyphs.
1492 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
1493 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
1494 color to use for image glyph reliefs.
1495 (x_draw_image_relief): Accept zero tool_bar_button_relief.
1496 (glyph_rect): Remove unused variable `area'.
1497
1498 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
1499 some items.
1500 (x_set_internal_border_width): Set frame garbaged when window
1501 doesn't exist yet.
1502 (Fx_create_frame): Accept zero tool_bar_button_relief.
1503 (x_clear_image_1, four_corners_best, image_background)
1504 (image_background_transparent): New functions.
1505 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
1506 (gs_format): Add `:background' entry.
1507 (lookup_image): Set IMG's background color if specified.
1508 (pbm_load, xbm_load_image, png_load): Set IMG's background field
1509 when appropriate.
1510 (x_clear_image_1): Reset `background_valid' and
1511 `background_transparent_valid' fields.
1512 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
1513 calculating it here. Set IMG's background_transparent field.
1514 (enum xpm_keyword_index): Add XPM_BACKGROUND.
1515 (enum png_keyword_index): Add PNG_BACKGROUND.
1516 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
1517 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
1518 (enum gif_keyword_index): Add GIF_BACKGROUND.
1519 (enum gs_keyword_index): Add GS_BACKGROUND.
1520 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
1521 Pre-calculate image background color where necessary.
1522 (x_create_x_image_and_pixmap, xbm_load, gs_load):
1523 Use display info's n_cbits entry for screen depth.
1524 (Fx_show_tip): Remove unused variables `buffer', `top',
1525 `left', `max_width' and `max_height'.
1526
1527 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
1528
1529 2001-11-18 Gerd Moellmann <gerd@gnu.org>
1530
1531 * puresize.h (BASE_PURESIZE): Increase to 750000.
1532
1533 2001-11-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1534
1535 * frame.c (Fframe_live_p): Doc fix.
1536
1537 2001-11-18 Richard M. Stallman <rms@gnu.org>
1538
1539 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
1540 (message_dolog_marker3): New static variables hold three markers.
1541 (syms_of_xdisp): Initialize and staticpro them.
1542 (message_dolog): Use message_dolog_marker1..3 instead of
1543 allocating markers each time. Unchain them when done.
1544
1545 2001-11-17 Richard M. Stallman <rms@gnu.org>
1546
1547 * doc.c (Fsnarf_documentation): Doc fix.
1548
1549 2001-11-17 Andreas Schwab <schwab@suse.de>
1550
1551 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
1552
1553 2001-11-17 Richard M. Stallman <rms@gnu.org>
1554
1555 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
1556
1557 2001-11-17 Jason Rumney <jasonr@gnu.org>
1558
1559 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
1560
1561 2001-11-17 Gerd Moellmann <gerd@gnu.org>
1562
1563 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
1564 with invalid position.
1565
1566 2001-11-16 Richard M. Stallman <rms@gnu.org>
1567
1568 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
1569
1570 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
1571 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
1572 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
1573
1574 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
1575
1576 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
1577
1578 * fileio.c (build_annotations): Split off the tail.
1579 (build_annotations_2): New fun. Extracted from build_annotations.
1580 (Fwrite_region): Split the call to build_annotations into two
1581 calls to build_annotations and build_annotations_2.
1582
1583 2001-11-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1584
1585 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
1586 clear_waiting_for_input with argument.
1587
1588 * xterm.h (x_update_cursor): Remove duplicated prototype.
1589
1590 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
1591
1592 * xterm.c (waiting_for_input): Remove unnecessary declaration.
1593
1594 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
1595
1596 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
1597
1598 * fileio.c (choose_write_coding_system): New fun, extracted
1599 from Fwrite_region.
1600 (Fwrite_region): Use it.
1601
1602 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
1603 (funcall_lambda, run_hook_with_args): Make static and add prototype.
1604 (ml_apply, find_handler_clause): Add prototype.
1605
1606 2001-11-16 Eli Zaretskii <eliz@gnu.org>
1607
1608 * config.in: Add #undef HAVE_COFF_H.
1609
1610 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
1611 Required for ISC 4.1.
1612
1613 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
1614
1615 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
1616 Andrew Wiseman <a.wiseman@btclick.com>.
1617
1618 2001-11-16 Kim F. Storm <storm@cua.dk>
1619
1620 The following changes are made to clean up the various internal
1621 references to the fringes to actually use the term `fringe' for
1622 them. Previously, they were called `flags areas', `bitmap areas',
1623 `left/right side of windows', or implicitly as `flags' or
1624 `bitmaps':
1625
1626 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
1627 Comments fixed. Use renamed symbols.
1628
1629 * dispnew.c: Comment fix. Use renamed symbols.
1630
1631 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
1632 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
1633 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
1634
1635 * msdos.c: Comment fix.
1636
1637 * w32fns.c: Use renamed symbols.
1638
1639 * w32term.c: Comment fixes. Use renamed symbols.
1640 (fringe_bitmap_type): Renamed from bitmap_type.
1641 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
1642 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
1643 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
1644
1645 * w32term.h: Comment fixes. Use renamed symbols.
1646 (fringes_extra): Renamed from flags_areas_extra.
1647 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
1648 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
1649 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
1650 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
1651 (FRAME_X_LEFT_FRINGE_WIDTH):
1652 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
1653 (FRAME_X_RIGHT_FRINGE_WIDTH):
1654 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
1655
1656 * widget.c: Use renamed symbols.
1657
1658 * window.c: Comment fixes. Use renamed symbols.
1659 (coordinates-in-window-p): Doc fix.
1660
1661 * xdisp.c: Comment fixes. Use renamed symbols.
1662
1663 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
1664
1665 * xfns.c: Use renamed symbols.
1666
1667 * xterm.c: Comment fixes. Use renamed symbols.
1668 (fringe_bitmap_type): Renamed from bitmap_type.
1669 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
1670 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
1671 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
1672
1673 * xterm.h: Comment fixes. Use renamed symbols.
1674 (fringes_extra): Renamed from flags_areas_extra.
1675 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
1676 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
1677 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
1678 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
1679 (FRAME_X_LEFT_FRINGE_WIDTH):
1680 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
1681 (FRAME_X_RIGHT_FRINGE_WIDTH):
1682 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
1683
1684 2001-11-15 Jason Rumney <jasonr@gnu.org>
1685
1686 * w32menu.c (add-menu-item): Make help_echo and radio buttons
1687 work for most menu items. From David Ponce
1688 <david.ponce@wanadoo.fr>.
1689
1690 2001-11-15 Gerd Moellmann <gerd@gnu.org>
1691
1692 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
1693 Some x_set_* function expect to be called even if old and new
1694 value are equal.
1695
1696 * xdisp.c (build_desired_tool_bar_string): Accept zero
1697 tool_bar_button_relief.
1698
1699 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
1700
1701 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
1702
1703 * xterm.c (x_draw_bar_cursor): If the background color of the
1704 glyph under the cursor equals the frame's cursor color, use
1705 the glyph's foreground color for drawing the bar cursor.
1706
1707 * dispnew.c (direct_output_forward_char): Fix character/byte
1708 position comparison.
1709
1710 2001-11-15 Miles Bader <miles@gnu.org>
1711
1712 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
1713 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
1714 Update arguments to find_field.
1715 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
1716 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
1717 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
1718 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
1719
1720 2001-11-14 Richard M. Stallman <rms@gnu.org>
1721
1722 * editfns.c (Fpropertize): Allow call with 1 arg.
1723
1724 * dispextern.h (image_background, image_background_transparent):
1725 Conditionalize on HAVE_X_WINDOWS.
1726
1727 2001-11-13 Richard M. Stallman <rms@gnu.org>
1728
1729 * print.c (Fprin1_to_string): Doc fix.
1730
1731 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
1732
1733 * floatfns.c (Fceiling, Ffloor): Doc fixes.
1734
1735 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
1736
1737 * fileio.c (Ffile_accessible_directory_p): Doc fix.
1738
1739 * eval.c (syms_of_eval): Doc fix.
1740
1741 * coding.c (syms_of_coding): Doc fix.
1742
1743 * doc.c (Fsnarf_documentation): Doc fix.
1744
1745 * dispnew.c (syms_of_display): Doc fix.
1746
1747 * category.c (Fget_unused_category): Doc fix.
1748
1749 * buffer.c (syms_of_buffer): Doc fixes.
1750
1751 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
1752
1753 * print.c (prin1, print): Doc fix.
1754
1755 2001-11-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1756
1757 * fontset.h: Remove declarations of variables
1758 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
1759
1760 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
1761 `Vclip_large_size_font'.
1762
1763 2001-11-13 Jason Rumney <jasonr@gnu.org>
1764
1765 * w32fns.c: Doc fix.
1766
1767 2001-11-13 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1768
1769 * xfaces.c (Fface_attributes_as_vector): Doc fix.
1770
1771 * w32fns.c (Fx_synchronize): Reindent.
1772
1773 * fns.c: Doc fix.
1774
1775 * emacs.c: Doc fix.
1776
1777 * coding.c: Doc fix.
1778
1779 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
1780 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
1781 `new style' [w/`doc:' keyword].
1782
1783 * xmenu.c (x-popup-menu): Reindent.
1784 (x-popup-dialog): Likewise.
1785
1786 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
1787
1788 * xdisp.c (Fdump_tool_bar_row): Reindent.
1789
1790 * minibuf.c (Fminibuffer_complete_word): Reindent.
1791 (Fminibuffer_complete_and_exit): Likewise.
1792 (Fminibuffer_completion_help): Likewise.
1793 (Fminibuffer_message): Likewise.
1794
1795 * fns.c (Freverse): Reindent.
1796
1797 * eval.c (Fif): Reindent.
1798 (Fand): Likewise.
1799
1800 * editfns.c (Fuser_real_login_name): Reindent.
1801 (Finsert_buffer_substring): Likewise.
1802 (Fcompare_buffer_substrings): Likewise.
1803 (Fsubst_char_in_region): Likewise.
1804
1805 * dispnew.c (Fsit_for): Reindent.
1806 (Fframe_or_buffer_changed_p): Likewise.
1807 (Finternal_show_cursor_p): Likewise.
1808 (syms_of_display): Likewise.
1809
1810 * alloc.c (Flist): Reindent.
1811 (Fvector): Likewise.
1812
1813 2001-11-12 Richard M. Stallman <rms@gnu.org>
1814
1815 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
1816 LeaveNotify events. Only FocusIn and FocusOut do that now.
1817 (x_display_and_set_cursor): Do display hollow cursors in active
1818 minibuffer windows when they are not selected.
1819
1820 2001-11-12 Jason Rumney <jasonr@gnu.org>
1821
1822 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
1823 * w32term.c: Change doc-string comments to `new style'.
1824 [w/`doc:' keyword]. Doc fixes.
1825
1826 * w32fns.c: Don't define max.
1827 (Fx_open_connection): Only execute once.
1828
1829 2001-11-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1830
1831 * ccl.c: Change macros to use do-while block instead of if-else.
1832 Use braces to follow GNU Coding Standards.
1833
1834 2001-11-11 Richard M. Stallman <rms@gnu.org>
1835
1836 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
1837
1838 * lread.c (read_escape): Use end_of_file_error for reporting eof.
1839
1840 * insdel.c (replace_range): Use adjust_markers_for_replace
1841 instead of adjust_markers_for_delete and adjust_markers_for_insert.
1842
1843 * intervals.h: Declare set_text_properties and set_text_properties_1.
1844
1845 * textprop.c (set_text_properties_1): New subroutine
1846 broken out of set_text_properties.
1847 (set_text_properties): Use set_text_properties_1.
1848
1849 * intervals.c (graft_intervals_into_buffer):
1850 Use set_text_properties_1 to clear out properties.
1851
1852 * search.c (Freplace_match): Use replace_range to insert
1853 and delete. Don't request property inheritance from
1854 surrounding text.
1855
1856 2001-11-10 Jason Rumney <jasonr@gnu.org>
1857
1858 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
1859 vertical fonts. Allow them if face name is explicitly specified.
1860 Do not give up if we find a font that cannot be converted to an xlfd.
1861
1862 2001-11-10 Gerd Moellmann <gerd@gnu.org>
1863
1864 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
1865 instead of malloc/free.
1866
1867 2001-11-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1868
1869 * xfaces.c (merge_face_vectors): Use braces to follow GNU
1870 Coding Standards.
1871 (Finternal_set_lisp_face_attribute): Likewise.
1872
1873 * buffer.c (Fbury_buffer): Likewise.
1874
1875 * indent.c (current_column_1): Remove unused variable `prev_col'.
1876
1877 * coding.c (encode_coding): Use precomputed value of `src'.
1878 (encode_coding): Remove unused variable `src_end'.
1879 (code_convert_region): Remove unused variables `count'.
1880
1881 2001-11-07 Jason Rumney <jasonr@gnu.org>
1882
1883 * w32term.c (x_display_and_set_cursor): Do not move system caret
1884 if cursor_glyph is NULL.
1885
1886 2001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1887
1888 * keymap.c (access_keymap): Fix compilation error.
1889
1890 2001-11-07 Miles Bader <miles@gnu.org>
1891
1892 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
1893
1894 2001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1895
1896 * intervals.c (graft_intervals_into_buffer):
1897 Remove #ifdef'd-out code.
1898 (graft_intervals_into_buffer): Remove unused variable `middle'.
1899
1900 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
1901 code (eval-current-buffer).
1902 Change doc-string comments to `new style' [w/`doc:' keyword].
1903
1904 2001-11-06 Richard M. Stallman <rms@gnu.org>
1905
1906 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
1907
1908 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
1909
1910 * lread.c (read1): Fix behavior with nested backquoting.
1911
1912 * keyboard.c (make_lispy_event): Check integerness and fix
1913 Lisp_Object/int mixup.
1914
1915 2001-11-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1916
1917 * fns.c (copy_hash_table): Remove unused variable `v'.
1918
1919 * fontset.c (fontset_font_pattern): Remove unused variable
1920 `family_registry'.
1921
1922 * indent.c (current_column_1): Remove unused variable `prev_col'.
1923
1924 2001-11-05 Richard M. Stallman <rms@gnu.org>
1925
1926 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
1927
1928 * buffer.c (Fkill_buffer): Don't delete auto save file
1929 if buffer is modified.
1930
1931 2001-11-05 Andrew Innes <andrewi@gnu.org>
1932
1933 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
1934 CHECK_NUMBER_CDR.
1935
1936 2001-11-05 Richard M. Stallman <rms@gnu.org>
1937
1938 * unexelf.c (unexec): Minor changes; clean up comments.
1939
1940 2001-11-05 Sam Steingold <sds@gnu.org>
1941
1942 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
1943
1944 2001-11-05 Andreas Schwab <schwab@suse.de>
1945
1946 * sound.c (sound_perror): Save errno from being clobbered.
1947
1948 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
1949
1950 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
1951 the program image directly.
1952
1953 2001-11-05 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1954
1955 * buffer.h (Fbuffer_local_value): Add prototype.
1956
1957 2001-11-04 Richard M. Stallman <rms@gnu.org>
1958
1959 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
1960 and CHECK_BUFFER.
1961
1962 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
1963 (record_char): Likewise.
1964
1965 * keyboard.c (make_lispy_event): Don't insist a drag event must
1966 move to a different buffer position. Instead, check for moving at
1967 least double_click_fuzz.
1968
1969 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
1970
1971 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
1972
1973 * indent.c (current_column_1, Fmove_to_column): Separate the code
1974 for display-table glyphs from the code buffer text, to fix
1975 bugs in the former.
1976
1977 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
1978
1979 * buffer.c (Fbuffer_local_value): New function.
1980 (syms_of_buffer): Defsubr it.
1981
1982 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
1983 value of `cursor-in-non-selected-windows'.
1984
1985 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
1986 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
1987 (syms_of_xdisp): Initialize it.
1988
1989 2001-11-04 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1990
1991 * xfns.c (Fx_create_frame): Doc fix.
1992
1993 * coding.c: Change doc-string comments to `new style' [w/`doc:'
1994 keyword].
1995
1996 * eval.c (top_level_value, top_level_set): Remove commented and
1997 #ifdef'd-out code.
1998 (Fdefvar): Fix usage in doc-string.
1999
2000 2001-11-03 Richard M. Stallman <rms@gnu.org>
2001
2002 * xfns.c: Include unistd.h, if it exists.
2003
2004 * editfns.c: Move the include of ctype.h after unistd.h.
2005
2006 * gmalloc.c: Test BROKEN_PROTOTYPES.
2007
2008 2001-11-03 Ken Raeburn <raeburn@gnu.org>
2009
2010 * lisp.h (CHECK_STRING_CAR): New macro.
2011 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
2012 treating XCAR and XCDR as lvalues.
2013 (openp): Use CHECK_STRING_CAR.
2014 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
2015
2016 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
2017
2018 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
2019 (SIGMASKTYPE): Define.
2020
2021 * syssignal.h (sigunblock): Don't define if already defined.
2022
2023 2001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2024
2025 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
2026 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
2027 Fix typos in comments.
2028
2029 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
2030 and #ifdef'd-out code.
2031 Fix and reindent comments.
2032
2033 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
2034
2035 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
2036 argument `i' in macros.
2037
2038 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
2039 `i' in macros.
2040
2041 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
2042 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
2043 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
2044 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
2045 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
2046 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
2047 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
2048 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
2049 in macros.
2050
2051 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
2052 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
2053 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
2054 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
2055 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
2056 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
2057 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
2058 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
2059 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
2060 (remove unused second argument).
2061
2062 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
2063
2064 * syntax.c (describe_syntax): New wrapper.
2065 (Finternal_describe_syntax_value): Rename from describe_syntax.
2066 Don't insert space at front and \n at the end.
2067 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
2068
2069 * regex.c (re_wctype): Try to fix some warnings.
2070 (regcomp, regexec): Don't forget the __restrict.
2071
2072 2001-11-02 Richard M. Stallman <rms@gnu.org>
2073
2074 * textprop.c (Fget_char_property): Doc fix.
2075
2076 2001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2077
2078 * process.c (Fstart_process): Add usage to doc-string.
2079
2080 * data.c (Fsetq_default): Ditto.
2081
2082 * callint.c (Finteractive): Ditto.
2083
2084 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
2085
2086 * macros.c: Don't include keymap.h any more.
2087
2088 2001-11-01 Richard M. Stallman <rms@gnu.org>
2089
2090 * data.c (Fmake_local_variable): Doc fix.
2091
2092 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
2093 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
2094
2095 * keymap.c (Fdescribe_buffer_bindings): Print character property
2096 bindings along with or instead of the buffer local map.
2097 Make the overriding maps override what they should.
2098
2099 2001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2100
2101 * window.c (grow_mini_window): Fix typo in comment.
2102
2103 2001-11-01 Gerd Moellmann <gerd@gnu.org>
2104
2105 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
2106 (XTset_vertical_scroll_bar): Likewise.
2107
2108 * xfns.c (x_build_heuristic_mask): Use four_corners_best
2109 instead of IMAGE_BACKGROUND.
2110
2111 * xfns.c (four_corners_best): Reindent.
2112
2113 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
2114 Handle :box so that it is possible to specify sexprs.
2115
2116 2001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2117
2118 * xfaces.c (Finternal_merge_in_global_face): Reindent.
2119 (Fface_font): Ditto.
2120 (Finternal_set_alternative_font_registry_alist): Ditto.
2121 (Ftty_suppress_bold_inverse_default_colors): Ditto.
2122
2123 * xfns.c (x-get-resource): Reindent.
2124
2125 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
2126
2127 * s/hpux11.h: New file.
2128
2129 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2130
2131 * emacs.c (USAGE1): Show command line option --no-window-system
2132 instead of --no-windows in usage.
2133 (standard_args): Rename --no-windows to --no-window-system.
2134 (bug_reporting_address): Follow Emacs coding conventions.
2135
2136 * eval.c (Fcommandp): Doc fix.
2137 Change doc-string comments to `new style' [w/`doc:' keyword].
2138
2139 * frame.c (Fframe_live_p): Doc fix.
2140
2141 * buffer.c (selective-display-ellipses): Doc fix.
2142
2143 2001-10-31 Gerd Moellmann <gerd@gnu.org>
2144
2145 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
2146
2147 * xfaces.c (realize_x_face): If C is not a single-byte character,
2148 set the face's colors_copied_bitwise_p instead of the defaulted_p
2149 members which have a different meaning.
2150 (free_face_colors): Do nothing for a face whose colors have been
2151 copied bitwise.
2152
2153 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
2154
2155 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2156
2157 * marker.c, mocklisp.c: Change doc-string comments to `new style'
2158 [w/`doc:' keyword].
2159
2160 2001-10-31 Gerd Moellmann <gerd@gnu.org>
2161
2162 * fns.c (require_unwind): Return Lisp_Object.
2163
2164 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2165
2166 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
2167 (last-input-char): Revert doc-string to be the same as the
2168 doc-string of `last-input-event'.
2169
2170 * xdisp.c: Fix typos in comments.
2171
2172 2001-10-31 Gerd Moellmann <gerd@gnu.org>
2173
2174 * window.c (grow_mini_window): Handle case that the root
2175 window is already smaller than the nominal mininum height.
2176
2177 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
2178
2179 * emacs.c (main): Don't call keys_of_macros any more.
2180
2181 * lisp.h (keys_of_macros): Remove.
2182
2183 * macros.c (keys_of_macros): Remove.
2184
2185 * xfaces.c (Fface_attribute_relative_p): Declare args.
2186
2187 2001-10-30 Jason Rumney <jasonr@gnu.org>
2188
2189 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
2190 (enum_font_cb2): Ignore fonts with vertical orientation.
2191
2192 2001-10-30 Richard M. Stallman <rms@gnu.org>
2193
2194 * keyboard.c (Finput_pending_p): Doc fix.
2195
2196 2001-10-30 Gerd Moellmann <gerd@gnu.org>
2197
2198 * xterm.c (x_after_update_window_line): Don't run the code
2199 clearing in borders for rows whose visible height is 0.
2200
2201 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
2202 resized_p flag is set. If not set, use the much less flickering
2203 method previously used.
2204
2205 * dispnew.c (change_frame_size_1): Set frame's resized_p.
2206
2207 * frame.h (struct frame) <resized_p>: New member.
2208
2209 * lread.c (to_multibyte): Ensure read_buffer is at least twice
2210 as large as the number of bytes to convert.
2211
2212 * lread.c (to_multibyte): New function.
2213 (read1): Use it.
2214
2215 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
2216
2217 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
2218
2219 2001-10-30 Gerd Moellmann <gerd@gnu.org>
2220
2221 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
2222 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
2223 if the row's fill_line_p is set and drawing the last glyph with
2224 DRAW_IMAGE_{RAISED,SUNKEN}.
2225
2226 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
2227
2228 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
2229
2230 * xmenu.c: Include coding.h and charset.h.
2231 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
2232 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
2233 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
2234 Explicitly set wv->help. Use `TRUE' rather than `True'.
2235 (menu_help_callback): Use empty_string.
2236
2237 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
2238 (Fx_popup_dialog): Explicitly init f.
2239 (w32_menu_display_help): Use empty_string.
2240
2241 2001-10-29 Richard M. Stallman <rms@gnu.org>
2242
2243 * fns.c (Frequire): Detect recursive try to require the same
2244 feature 3 or more levels deep, and get error.
2245 (require_unwind): New subroutine.
2246 (require_nesting_list): New variable.
2247 (syms_of_fns): Init and staticpro it.
2248
2249 * print.c (print_object): Clarify indication of insertion type.
2250
2251 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
2252
2253 * coding.c (syms_of_coding): Document that locale-coding-system is
2254 used for decoding input on X.
2255
2256 * window.c (Fscroll_left, Fscroll_right): Doc fix.
2257
2258 2001-10-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2259
2260 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
2261 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
2262
2263 2001-10-29 Gerd Moellmann <gerd@gnu.org>
2264
2265 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
2266 use NO_CURSOR if cursor_in_non_selected_windows is false.
2267
2268 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
2269 the slant attribute if FRAME is t.
2270
2271 * xfns.c (x_set_internal_border_width): Set frame garbaged
2272 when X window doesn't exist yet.
2273
2274 * xterm.c (x_after_update_window_line): Clear internal border
2275 in different circumstances.
2276
2277 * xterm.c (XTread_socket) <KeyPress>: Don't use
2278 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
2279 <handa@etl.go.jp>.
2280
2281 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
2282
2283 * m/ibms390.h: New file. From Adam Thornton
2284 <athornton@sinenomine.net>.
2285
2286 2001-10-28 Gerd Moellmann <gerd@gnu.org>
2287
2288 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
2289
2290 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
2291 a loop counter.
2292
2293 2001-10-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2294
2295 * emacs.c: Use argv[0] instead of emacs when -t was specified.
2296
2297 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
2298 keyword].
2299 Fix typos in comments.
2300
2301 * emacs.c (bug_reporting_address): New function.
2302 Use it when displaying usage message.
2303
2304 * minibuf.c (read_minibuf): Remove unused external declaration of
2305 variable `Qread_only'.
2306
2307 * keymap.c (access_keymap): Remove unused variable `charset'.
2308
2309 2001-10-28 Miles Bader <miles@gnu.org>
2310
2311 * xfaces.c (merge_face_heights): Handle TO being relative as well.
2312 Remove #ifdef'd-out code.
2313 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
2314 (syms_of_xfaces): Initialize them.
2315
2316 2001-10-27 Jason Rumney <jasonr@gnu.org>
2317
2318 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
2319 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
2320 position using the system caret.
2321
2322 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
2323 (w32_system_caret_height, w32_system_caret_x)
2324 (w32_system_caret_y): New variables for tracking system caret.
2325 (w32_initialize): Initialize them.
2326 (x_display_and_set_cursor): Make system caret follow the active cursor.
2327
2328 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
2329 New messages types.
2330
2331 * w32term.c (note_mouse_highlight): Clear old help_echo.
2332
2333 2001-10-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2334
2335 * xterm.c: Fix typo in a comment.
2336
2337 * emacs.c: Fix typos in comments.
2338 Remove unnecessary spaces.
2339 Change doc-string comments to `new style' [w/`doc:' keyword].
2340 (USAGE2): Fix typos in usage string.
2341
2342 * xterm.c: Fix typo in a comment.
2343
2344 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
2345 emacs.c.
2346
2347 2001-10-27 Gerd Moellmann <gerd@gnu.org>
2348
2349 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
2350 instead of 1/2 line_height in the heuristic for skipping
2351 farther backward when target_y was not reached.
2352
2353 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
2354 Display errno only if non-zero.
2355 (sound_warning): New function.
2356 (vox_configure): Don't treat failing to set sample rate as error.
2357 (various places): Improve error messages.
2358
2359 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
2360
2361 * fileio.c (Faccess_file): Run the argument filename through
2362 Fexpand_file_name, before using it.
2363
2364 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
2365 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
2366
2367 2001-10-26 Gerd Moellmann <gerd@gnu.org>
2368
2369 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
2370
2371 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2372 Fix clearing in the case of scroll bars on the right.
2373
2374 2001-10-26 Juanma Barranquero <lektu@terra.es>
2375
2376 * w32gui.h (XImage): Add a dummy typedef.
2377
2378 2001-10-26 Gerd Moellmann <gerd@gnu.org>
2379
2380 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
2381
2382 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
2383
2384 * frame.c (Fframe_parameter): Fix last change.
2385
2386 * fileio.c: Revert last change (which removed old commented-out
2387 version of expand-file-name). Add a comment that explains why
2388 this old version should not be removed.
2389
2390 2001-10-25 Gerd Moellmann <gerd@gnu.org>
2391
2392 * frame.c (Fframe_parameter): Fix a bug whereby some
2393 ``artificial'' frame parameters, like `minibuffer' were not
2394 obtained by calling Fframe_parameters.
2395
2396 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
2397 cursor differently.
2398
2399 * xdisp.c (move_it_vertically_backward): Compute line height
2400 differently. Add heuristic to try to be more compatible to 20.x.
2401
2402 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
2403
2404 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
2405
2406 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
2407 boolean.
2408
2409 2001-10-25 Miles Bader <miles@gnu.org>
2410
2411 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
2412 BG is a pointer to a structure, not a structure.
2413 (gif_format, png_format): Add missing commas.
2414
2415 2001-10-24 Richard M. Stallman <rms@gnu.org>
2416
2417 * xfaces.c (Fface_attributes_as_vector): New function.
2418 (syms_of_xfaces): Defsubr it.
2419
2420 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2421
2422 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
2423 variable `area'.
2424
2425 2001-10-25 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2426
2427 * search.c (scan_newline): Remove unused variable `selective_display'.
2428
2429 2001-10-25 Miles Bader <miles@gnu.org>
2430
2431 * dispextern.h (struct image): Add `background',
2432 `background_valid', and `background_transparent' fields.
2433 (image_background, image_background_transparent): New declarations.
2434 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
2435 * xfns.c (image_background, image_background_transparent)
2436 (four_corners_best): New functions.
2437 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
2438 (gs_format): Add `:background' entry.
2439 (lookup_image): Set IMG's background color if specified.
2440 (pbm_load, xbm_load_image, png_load): Set IMG's background field
2441 when appropriate.
2442 (x_clear_image_1): Reset `background_valid' and
2443 `background_transparent_valid' fields.
2444 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
2445 calculating it here. Set IMG's background_transparent field.
2446 (enum xpm_keyword_index): Add XPM_BACKGROUND.
2447 (enum png_keyword_index): Add PNG_BACKGROUND.
2448 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
2449 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
2450 (enum gif_keyword_index): Add GIF_BACKGROUND.
2451 (enum gs_keyword_index): Add GS_BACKGROUND.
2452 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
2453 Pre-calculate image background color where necessary.
2454 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
2455 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
2456 color to use for image glyph reliefs.
2457
2458 2001-10-24 Gerd Moellmann <gerd@gnu.org>
2459
2460 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
2461 in full-width rows.
2462
2463 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2464 Fix clearing of area not covered by scroll bar.
2465
2466 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2467
2468 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
2469 and `real_start'.
2470 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2471 (glyph_rect): Remove unused variable `area'.
2472
2473 2001-10-24 Gerd Moellmann <gerd@gnu.org>
2474
2475 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
2476
2477 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
2478 (row_containing_pos): Take additional argument DY.
2479 Treat rows ending in middle of char differently.
2480 (display_line): Handle tabs on window systems differently.
2481
2482 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
2483 with additional argument.
2484
2485 * dispextern.h (row_containing_pos): Adjust prototype.
2486
2487 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
2488 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
2489 (try_window_id, try_window_reusing_current_matrix)
2490 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
2491 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
2492
2493 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2494
2495 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
2496 gnuemacs).
2497 (HAVE_BOXES): Fix typo in comment.
2498 (push_menu_pane): Fix typo in comment.
2499
2500 * xdisp.c: (display_prop_string_p): Remove unused local declaration
2501 of `Qwhen'.
2502 (single_display_prop_string_p): Remove unused local declarations
2503 of `Qwhen' and `Qmargin'.
2504 (string_buffer_position): Remove unused variable `around'.
2505 (store_frame_title): Remove unused variable `width'.
2506
2507 * window.c: Don't define max.
2508 (coordinates_in_window): Remove unused variable `uy'.
2509
2510 * widget.c: Don't define max.
2511
2512 * process.c: Don't define max.
2513 (create_process): Remove unused variable `buffer'.
2514
2515 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2516
2517 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
2518
2519 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
2520
2521 * xfaces.c (Finternal_set_lisp_face_attribute)
2522 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
2523 frame is on a windowed display.
2524
2525 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2526
2527 * dispnew.c (sync_window_with_frame_matrix_rows):
2528 Fix handling of windows which aren't full-width, fix handling
2529 of marginal areas.
2530
2531 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
2532
2533 2001-10-23 Andreas Schwab <schwab@suse.de>
2534
2535 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
2536 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
2537
2538 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2539
2540 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
2541 REAL_END. Notice if cursor gets overwritten.
2542 (notice_overwritten_cursor): Take X positions as parameters.
2543 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
2544 around call to x_draw_glyphs.
2545
2546 2001-10-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2547
2548 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
2549 instead of C) and usage.
2550
2551 * editfns.c (char-to-string): Fix argument names (use CHAR instead
2552 of C) and usage.
2553
2554 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
2555 `left', `max_width' and `max_height'.
2556
2557 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2558
2559 * xdisp.c (display_line): For a tab continued to the next line,
2560 set row's ends_in_middle_of_char_p.
2561
2562 2001-10-22 Gerd Moellmann <gerd@gnu.org>
2563
2564 * xdisp.c (display_line): Fix computation of continuation lines
2565 width for TABs.
2566
2567 2001-10-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2568
2569 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
2570 `Qlaplace'.
2571
2572 * fileio.c: Remove unused code.
2573
2574 2001-10-22 Miles Bader <miles@gnu.org>
2575
2576 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
2577 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
2578 Remove `DOC_STRINGS_IN_COMMENTS' cases.
2579
2580 2001-10-21 Jason Rumney <jasonr@gnu.org>
2581
2582 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
2583
2584 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
2585
2586 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
2587 (Finsert_string): Avoid the multi-line string literals warning.
2588
2589 2001-10-22 Miles Bader <miles@gnu.org>
2590
2591 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
2592 (Fdocumentation): Don't use it.
2593 (syms_of_doc): Don't initialize it.
2594
2595 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
2596 * print.c (Fwith_output_to_temp_buffer): Likewise.
2597 * window.c (Fsave_window_excursion): Likewise.
2598 * editfns.c (Fsave_excursion, Fsave_current_buffer)
2599 (Fsave_restriction): Likewise.
2600 * eval.c (Frun_hooks, Frun_hook_with_args)
2601 (Frun_hook_with_args_until_failure)
2602 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
2603 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
2604 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
2605 (Funwind_protect, Fcondition_case): Likewise.
2606 * coding.c (Ffind_operation_coding_system): Likewise.
2607 * keyboard.c (Ftrack_mouse): Likewise.
2608
2609 2001-10-21 Miles Bader <miles@gnu.org>
2610
2611 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
2612 (Fmake_hash_table): Add usage: string to doc string.
2613 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
2614 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
2615 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
2616 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
2617 (Fml_prefix_argument_loop): Likewise.
2618
2619 2001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2620
2621 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
2622
2623 * sysdep.c (init_sys_modes): Change doc-string comments to `new
2624 style' [w/`doc:' keyword].
2625
2626 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
2627 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
2628 comments to `new style' [w/`doc:' keyword].
2629
2630 2001-10-21 Jason Rumney <jasonr@gnu.org>
2631
2632 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
2633
2634 * w32term.c (remember_mouse_glyph): New function.
2635 (w32_mouse_position): Use it.
2636 (note_mouse_movement): If the mouse moved off the glyph, remember
2637 its new position.
2638
2639 * w32term.h (struct w32_output): Correct spelling of x_compatible.
2640 (w32_display_info): Add mouse_face_overlay.
2641
2642 * w32term.c (notice_overwritten_cursor): Renamed from
2643 note_overwritten_text_cursor. Rewritten to take glyph widths into
2644 account.
2645 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
2646 (fast_find_string_pos): New function.
2647 (fast_find_position): Return the correct vpos. Add parameter
2648 STOP. In the final row, stop before glyphs having STOP as object.
2649 Don't consider glyphs that are not from a buffer.
2650 (fast_find_position) [0]: Add a presumably more correct version
2651 for after 21.1.
2652 (expose_window_tree, expose_frame): Don't compute intersections here.
2653 (expose_window): Do it here instead.
2654 (expose_window_tree, expose_window, expose_line): Return 1 when
2655 overwriting mouse-face.
2656 (expose_window): If W is the window currently being updated, mark
2657 the frame garbaged.
2658 (expose_frame): If mouse-face was overwritten, redo it.
2659 (x_use_underline_position_properties): New variable.
2660 (syms_of_xterm): DEFVAR_BOOL it.
2661 (x_draw_glyph_string): Add comment to use it in future.
2662 (x_draw_glyph_string): Restore clipping after drawing box.
2663 Fix a computation of the underline position.
2664 (w32_get_glyph_string_clip_rect): Minor cleanup.
2665 (x_fill_stretch_glyph_string): Remove an assertion.
2666 (x_produce_glyphs): Don't convert multibyte characters
2667 to unibyte characters in unibyte buffers.
2668 (cursor_in_mouse_face_p): New function.
2669 (x_draw_stretch_glyph_string): Use it to choose a different GC
2670 when drawing a cursor within highlighted text. Don't draw
2671 background again if it has already been drawn.
2672 (x_draw_glyph_string_box): Don't draw a full-width
2673 box just because the glyph row's full_width_p flag is set.
2674 (x_draw_glyphs): Fix computation of rightmost x for
2675 full-width rows.
2676 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
2677 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
2678 change bottom shadow accordingly. Some cleanup.
2679 (x_update_window_end): Handle overwritten mouse face
2680 also for tool bar windows.
2681 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
2682 DRAW is DRAW_IMAGE_RAISED.
2683 (clear_mouse_face): Return 1 if text with mouse face was
2684 actually redrawn. Make the function static. Reset
2685 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
2686 optimize away highlighting if we pass over that same overlay again.
2687 (note_mouse_highlight): Call mouse_face_overlay_overlaps
2688 to detect a case where we have to highlight a different region
2689 despite not having left the currently highlighted region.
2690 Set mouse_face_overlay in the x_display_info. Avoid changing the
2691 mouse pointer shape when show_mouse_face has already done it, or
2692 there is no need. Handle mouse-face and help-echo in strings.
2693 (glyph_rect): New function.
2694 (w32_mouse_position): Use it to raise the threshold for mouse
2695 movement event generation.
2696 (w32_initialize_display_info): Initialize the x_display_info's
2697 mouse_face_overlay.
2698 (w32_set_vertical_scroll_bar): Don't clear a zero height
2699 or width area.
2700 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
2701 a widget to zero height.
2702
2703 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
2704 Protect unibyte strings created by replacing their multibyte
2705 equivalents in menu_items.
2706 (w32_menu_show): Don't overwrite an item's name with its key
2707 description in case the description is a multibyte string.
2708 (single_submenu): Some cleanup.
2709
2710 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
2711 (postprocess_image): New function.
2712 (lookup_image): Call it for all image types except PostScript.
2713 (x_kill_gs_process): Call postprocess_image.
2714 (tiff_error_handler, tiff_warning_handler): New functions.
2715 (tiff_load): Install them as handlers.
2716 (x_kill_gs_process): Recognize if someone has cleared the image
2717 cache under us.
2718 (valid_image_p): Protect better against invalid image
2719 specifications. Previous code could signal an error.
2720 (Fx_hide_tip, Fshow_tip): Doc fix.
2721 (Fv_max_tooltip_size): New variable.
2722 (syns_of_xfns): DEFVAR_LISP it.
2723 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
2724 window buffer to *tip* right after creating the frame. Set frame's
2725 window_width. Use a maximum tooltip size specified by
2726 Vx_max_tooltip_size, if that has valid contents.
2727 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
2728 Make sure the tooltip is completely visible.
2729 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
2730 (Fx_create_frame): Adjust the frame's height for presence
2731 of the tool bar before calling x_figure_window_size.
2732 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
2733 when the window gets smaller.
2734 (x_set_foreground_color): Set frame's cursor_pixel.
2735 (x_set_foreground_color, x_set_background_color): Cleaned up.
2736 (x_set_font): Handle case of x_new_fontset returning the same name
2737 as before, although there was a change in fontsets.
2738
2739 2001-10-21 Miles Bader <miles@gnu.org>
2740
2741 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
2742 (Flogxor): Add usage: string to doc string.
2743 * charset.c (Fstring): Likewise.
2744 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
2745 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
2746
2747 2001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2748
2749 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
2750
2751 * alloc.c: Reindent DEFUNs with doc: keywords.
2752
2753 * abbrev.c (Finsert_abbrev_table_description): Reindent.
2754
2755 * frame.c: Change doc-string comments to `new style' [w/`doc:'
2756 keyword].
2757
2758 2001-10-20 Gerd Moellmann <gerd@gnu.org>
2759
2760 * (Version 21.1 released.)
2761
2762 2001-10-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2763
2764 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
2765
2766 * xdisp.c (invisible_text_between_p): Put prototype inside #if
2767 0 because unused.
2768
2769 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
2770 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
2771 Change doc-string comments to `new style' [w/`doc:' keyword].
2772
2773 2001-10-20 Miles Bader <miles@gnu.org>
2774
2775 The following changes remove the glyph_row `inverse_p' field,
2776 which is never set anymore, due to other changes:
2777
2778 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
2779 (reassert_line_highlight, change_line_highlight): Declarations removed.
2780 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
2781 (line_hash_code, row_equal_p, fake_current_matrices)
2782 (build_frame_matrix_from_leaf_window, update_frame_line)
2783 (update_frame_line, update_frame_line, update_frame_line):
2784 Don't use `inverse_p' field.
2785 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
2786 change_line_highlight_hook.
2787 (XTreassert_line_highlight, x_change_line_highlight):
2788 Functions removed.
2789 (x_fix_overlapping_area, x_write_glyphs, expose_area)
2790 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
2791 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
2792 `inverse_p' field.
2793 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
2794 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
2795 (w32_reassert_line_highlight, x_change_line_highlight):
2796 Functions removed.
2797 * w32console.c (reassert_line_highlight, change_line_highlight):
2798 Functions removed.
2799 (initialize_w32_display): Don't set reassert_line_highlight_hook
2800 or change_line_highlight_hook.
2801 (hl_mode): Function removed.
2802 (reset_terminal_modes, set_terminal_modes, update_begin)
2803 (update_end, w32_face_attributes, initialize_w32_display):
2804 (clear_frame, ins_del_lines): Don't call it.
2805 * termhooks.h (reassert_line_highlight_hook)
2806 (change_line_highlight_hook): Declarations removed.
2807 * term.c (reassert_line_highlight_hook)
2808 (change_line_highlight_hook): Variables removed.
2809 (reassert_line_highlight, change_line_highlight): Functions removed.
2810 * msdos.c (IT_reassert_line_highlight)
2811 (IT_change_line_highlight): Functions removed.
2812 (internal_terminal_init): Don't set reassert_line_highlight_hook
2813 or change_line_highlight_hook.
2814 (highlight): Variable removed.
2815 (IT_set_face, IT_update_begin, IT_update_end)
2816 (IT_set_terminal_modes): Don't set or use it.
2817
2818 The following changes remove inverse-video support for terminals
2819 that use a `magic cookie' standout mode. Due to changes in the
2820 way mode-lines are displayed, such support no longer works
2821 anyway, and it's probable that almost no one uses such terminals
2822 anymore:
2823
2824 * term.c (standout_requested): Variable removed.
2825 (update_end, highlight_if_desired): Don't use it.
2826 (chars_wasted, copybuf): Variables removed.
2827 (write_standout_marker): Function removed.
2828 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
2829 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
2830 Don't use `chars_wasted' or `copybuf'.
2831 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
2832 Set `costs_set' to true.
2833 (cursor_to, clear_end_of_line): Test `costs_set' instead of
2834 `chars_wasted'.
2835 (clear_end_of_line): Function removed.
2836 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
2837 (clear_to_end): Call `clear_end_of_line' instead of
2838 `clear_end_of_line_raw'.
2839 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
2840 (term_init): Don't set them.
2841 Turn off any standout/underline modes that require magic cookies.
2842 (ins_del_lines, highlight_if_desired, background_highlight)
2843 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
2844 Remove special processing for magic-cookie standout modes.
2845 (turn_off_face, turn_on_face): Remove special processing for
2846 underline magic-cookie glitch.
2847
2848 2001-10-19 Richard M. Stallman <rms@gnu.org>
2849
2850 * eval.c (syms_of_eval): Doc fixes.
2851
2852 2001-10-19 Gerd Moellmann <gerd@gnu.org>
2853
2854 * xdisp.c (redisplay_internal): Don't clear echo area if the
2855 mini-window is selected.
2856
2857 2001-10-19 Miles Bader <miles@gnu.org>
2858
2859 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
2860 doesn't take precedence if the affected property's value is nil.
2861
2862 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
2863
2864 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
2865 with fields and suggest using `forward-line' to avoid them.
2866 * editfns.c (Fline_beginning_position, Fline_end_position):
2867 Clarify documentation.
2868
2869 2001-10-18 Stefan Monnier <monnier@cs.yale.edu>
2870
2871 * keymap.c (current_minor_maps): `override' only shadows its
2872 correspondent in minor-mode-map-alist, not the whole tail.
2873
2874 2001-10-18 Andrew Innes <andrewi@gnu.org>
2875
2876 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
2877 optimization. The fontp->encoding array was not being initialized
2878 correctly when compiled with optimizations by MSVC.
2879
2880 2001-10-18 Gerd Moellmann <gerd@gnu.org>
2881
2882 * xdisp.c (display_line): Indicate empty lines in active mini-window.
2883
2884 2001-10-17 Andrew Innes <andrewi@gnu.org>
2885
2886 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
2887
2888 * w32fns.c (w32_load_system_font): Cache codepage for font, in
2889 font_info.charset field.
2890
2891 * w32term.c (w32_encode_char): Get cached codepage from font_info,
2892 rather than working it out by calling w32_codepage_for_font for
2893 every glyph.
2894
2895 2001-10-17 Andrew Innes <andrewi@gnu.org>
2896
2897 * w32term.c (w32_read_socket): Determine clipping rectangle for
2898 the entire frame, including areas covered by scrollbars and the
2899 menubar. This avoids internal arguments about whether a frame is
2900 fully obscured or not.
2901
2902 2001-10-17 Gerd Moellmann <gerd@gnu.org>
2903
2904 * xdisp.c (try_window_id): Undo last change. Give up if
2905 window ends in strings.
2906
2907 * xdisp.c (try_window_id): Don't display lines after the window
2908 end if the rest of the window after the window end was already blank.
2909
2910 * xdisp.c (try_window_id): Remove code that was only there
2911 for the release of 21.1.
2912
2913 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
2914
2915 2001-10-17 Miles Bader <miles@gnu.org>
2916
2917 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
2918 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
2919 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
2920 Change doc-string comments to `new style' [w/`doc:' keyword].
2921 (DOC_STRINGS_IN_COMMENTS): Macro removed.
2922 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
2923 out make-docfile.
2924
2925 2001-10-16 Miles Bader <miles@gnu.org>
2926
2927 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
2928
2929 2001-10-16 Gerd Moellmann <gerd@gnu.org>
2930
2931 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
2932 *scratch*.
2933
2934 2001-10-16 Ken Raeburn <raeburn@gnu.org>
2935
2936 Avoid the assumption that car and cdr slots of cons cells are
2937 addressable lvalues; this allows for easier experimentation with
2938 other lisp implementations that may not permit such accesses for
2939 various reasons. Not quite complete -- buffer.c still needs some
2940 work, and w32/mac files need rechecking -- so compile-time
2941 enforcement is left disabled for now.
2942
2943 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
2944 gcc with a union-based Lisp object rep. Redefine as no-op for now.
2945 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
2946 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
2947 (XSETCAR, XSETCDR): New macros.
2948 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
2949 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
2950 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
2951 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
2952 XSETCDR.
2953 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
2954 * buffer.c (record_buffer, Fbury_buffer)
2955 (swap_out_buffer_local_variables, recenter_overlay_lists)
2956 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
2957 fields of a cons cell respectively.
2958 * callint.c (quotify_args, Fcall_interactively): Likewise.
2959 * ccl.c (Fregister_code_conversion_map): Likewise.
2960 * coding.c (detect_coding_system): Likewise.
2961 * composite.c (get_composition_id, make_composition_value_copy):
2962 Likewise.
2963 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
2964 (swap_in_symval_forwarding, set_internal, Fset_default)
2965 (Fmake_variable_buffer_local, Fmake_local_variable)
2966 (Fmake_variable_frame_local): Likewise.
2967 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
2968 * keymap.c (Fset_keymap_parent, store_in_keymap)
2969 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
2970 * minibuf.c (get_minibuffer): Likewise.
2971 * search.c (Fmatch_data): Likewise.
2972 * textprop.c (extend_property_ranges): Likewise.
2973 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
2974 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
2975 Likewise.
2976 * w32term.c (x_delete_display): Likewise.
2977 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
2978 Likewise.
2979 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
2980 * doc.c (store_function_docstring): Use XSETCARFASTINT.
2981 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
2982 (Fread_file_name): Use XSETCAR.
2983 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
2984 CHECK_NUMBER_CDR.
2985 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
2986 * frame.c (Fmake_terminal_frame): Use XSETCDR.
2987 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
2988 CHECK_NUMBER_CDR.
2989 * keyboard.c (read_char): Alter list traversal to avoid taking the
2990 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
2991 (parse_menu_item): Use XSETCAR and XSETCDR.
2992 (reach_char_x_menu_prompt): Use XSETCAR.
2993 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
2994 (Fcommand_execute): Use XSETCDR.
2995 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
2996 (openp): Change list traversal to avoid using XCAR as lvalue.
2997 (read_list): Use XSETCDR.
2998 * process.c (wait_reading_process_input): Change wait_for_cell
2999 handling to avoid taking addresses of cons cell slots.
3000 * xselect.c (x_own_selection, x_handle_selection_clear)
3001 (x_clear_frame_selections): Use XSETCDR.
3002 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
3003 (x_handle_property_notify, x_get_foreign_selection)
3004 (x_handle_selection_notify): Use XSETCAR.
3005
3006 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3007
3008 * buffer.c: Put doc strings in comments.
3009
3010 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
3011
3012 2001-10-15 Sam Steingold <sds@gnu.org>
3013
3014 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
3015
3016 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3017
3018 * process.c (process-inherit-coding-system-flag)
3019 (get-buffer-process): Do not confuse make-docfile with doc strings
3020 in comment.
3021
3022 * editfns.c (Fchar_to_string): Make doc string consistent with
3023 arguments. Put doc strings in comments.
3024
3025 * abbrev.c, minibuf.c: Put doc strings in comments.
3026
3027 2001-10-15 Gerd Moellmann <gerd@gnu.org>
3028
3029 * window.c (window_loop): Don't check for Fother_buffer returning nil.
3030
3031 * window.c (select_window_1): Unfreeze window start. Remove a
3032 doubled test for WINDOW being live.
3033
3034 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3035
3036 * fns.c (Fmapconcat): Fix typo in a doc string.
3037
3038 * dispnew.c (Fsleep_for): Fix typo in a doc string.
3039
3040 2001-10-15 Gerd Moellmann <gerd@gnu.org>
3041
3042 * xterm.c (x_draw_glyph_string): Restore clipping after
3043 drawing box.
3044
3045 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3046
3047 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
3048
3049 2001-10-14 Stefan Monnier <monnier@cs.yale.edu>
3050
3051 * indent.c (skip_invisible): Use new retval of
3052 TEXT_PROP_MEANS_INVISIBLE.
3053
3054 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
3055 If a parent is reached and noinherit is set, exit immediately.
3056 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
3057
3058 * s/ms-w32.h (EXEC_SUFFIXES):
3059 * s/msdos.h (EXEC_SUFFIXES):
3060 * process.h (EXEC_SUFFIXES): Remove.
3061
3062 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
3063 (decode_suffixes): Remove.
3064
3065 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
3066 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
3067 (invisible_ellipsis_p): Remove.
3068
3069 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
3070 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
3071 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
3072 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
3073 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
3074
3075 2001-10-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3076
3077 * lisp.h (Ftop_level): Add prototype.
3078
3079 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
3080 (XTread_socket): Improve style of comments to follow other
3081 comments.
3082
3083 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
3084 is already prototyped in included lisp.h).
3085
3086 * frame.c (Fset_mouse_position): Improve style of comment to
3087 follow other comments.
3088 (Fset_mouse_pixel_position): Improve style of comment to follow
3089 other comments.
3090 (Fmake_frame_visible): Doc fix and typo in comment.
3091 (Fmake_frame_invisible): Doc fix and typo in comment.
3092 (Ficonify_frame): Fix typo in comment.
3093
3094 2001-10-14 Gerd Moellmann <gerd@gnu.org>
3095
3096 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
3097 * term.c, alloc.c: Put doc strings in comments.
3098
3099 2001-10-13 Gerd Moellmann <gerd@gnu.org>
3100
3101 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
3102 Provide definitions for doc strings in comments.
3103
3104 * fns.c: Put doc strings in comments.
3105
3106 2001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
3107
3108 * dired.c (file_name_completion): Ignore a candidate directory if
3109 it matches an element in completion-ignored-extensions that ends
3110 in a slash.
3111 (syms_of_dired) <completion-ignored-extensions>: Mention the above
3112 feature in the doc string.
3113 (Ffile_name_completion): Ditto.
3114
3115 2001-10-12 Stefan Monnier <monnier@cs.yale.edu>
3116
3117 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
3118
3119 * xfns.c (syms_of_xfns): Update calls to Fprovide.
3120
3121 * lisp.h (Fprovide): Update prototype.
3122 (Ffeaturep, invisible_p): Remove.
3123
3124 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
3125 (DOLIST, LOOP_PROPVAL): New macros.
3126 (invisible_p, invisible_ellipsis_p): Use them.
3127 (invisible_noellipsis_p): New function.
3128 (syms_of_xdisp): Use empty_string.
3129
3130 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
3131
3132 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
3133 (syms_of_lread) <Vafter_load_alist>: Update docstring.
3134
3135 * print.c (Fwith_output_to_temp_buffer): Align with
3136 internal_with_output_to_temp_buffer.
3137 (print_preprocess): Use traverse_intervals_noorder.
3138 (print_object): Update call to traverse_intervals.
3139
3140 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
3141 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
3142
3143 * intervals.c (traverse_intervals_noorder): New function.
3144 (search_for_interval, count_intervals): Use it.
3145 (traverse_intervals): Use less stack space and drop `depth' arg.
3146
3147 * fns.c (Ffeaturep): Add new `subfeature' arg.
3148 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
3149 (Qsubfeatures): New var.
3150 (syms_of_fns): Initialize it.
3151
3152 * keymap.c (Fkey_description): Use empty_string.
3153 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
3154 (syms_of_keymap): Setup inheritance between maps.
3155 Don't export Sdescribe_bindings_internal any more.
3156
3157 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
3158
3159 2001-10-12 Gerd Moellmann <gerd@gnu.org>
3160
3161 * xterm.c (notice_overwritten_cursor): Renamed from
3162 note_overwritten_text_cursor. Rewritten to take glyph widths into
3163 account.
3164
3165 2001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
3166
3167 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
3168 multi-line strings without a trailing "\n\".
3169
3170 2001-10-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3171
3172 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
3173 defined.
3174
3175 2001-10-11 Stefan Monnier <monnier@cs.yale.edu>
3176
3177 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
3178
3179 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
3180 * w32proc.c (sys_spawnve):
3181 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
3182 * w32.c (check_windows_init_file):
3183 * sound.c (Fplay_sound):
3184 * emacs.c (init_cmdargs):
3185 * process.c (Fstart_process): Update calls to openp.
3186
3187 * callproc.c (Vexec_suffixes): New var.
3188 (Fcall_process): Update call to openp.
3189 (decode_suffixes): New function.
3190 (syms_of_callproc): Init exec-suffixes.
3191
3192 * lread.c (Vload_suffixes, default_suffixes): New vars.
3193 (openp): Take a lisp list of suffixes.
3194 Check for file-name-handlers even if the file was absolute already.
3195 (syms_of_lread): Declare load-suffixes.
3196 (Fload): Fix up call to openp.
3197 Don't bother checking for file-name-handler at the very beginning.
3198
3199 * keymap.h (Fcopy_keymap): Don't export.
3200
3201 * lisp.h (empty_string): Declare.
3202 (Vload_suffixes, Vexec_suffixes): Declare.
3203 (openp): Update prototype.
3204
3205 * emacs.c (empty_string): New var.
3206 (syms_of_emacs): Initialize it.
3207
3208 * search.c (wordify): Use it.
3209
3210 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
3211 selected window if it's not displayed there. Handle the case
3212 when the window is dedicated.
3213 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
3214
3215 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
3216
3217 * syntax.h (struct gl_state_s): Change the meaning of b_property.
3218 Remove left_ok and right_ok.
3219 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
3220 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
3221 new meaning of b_property.
3222
3223 * syntax.c (update_syntax_table): Simplify.
3224 (Fforward_comment): Don't skip quoted chars when going backward.
3225
3226 2001-10-11 Gerd Moellmann <gerd@gnu.org>
3227
3228 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
3229 in case I is of some unsigned type, in which case
3230 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
3231 comparison becomes bogus.
3232
3233 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
3234 (Fuser_full_name): Fix bug treating a float as a fixnum.
3235
3236 * data.c (Fstring_to_number): Use make_fixnum_or_float.
3237
3238 * lisp.h (make_fixnum_or_float): New macro.
3239
3240 * lisp.h (circular_list_error): Add prototype.
3241
3242 * data.c (Qcircular_list): New variable.
3243 (circular_list_error): New function.
3244 (syms_of_data): Initialize it Qcircular_list.
3245
3246 2001-10-10 Stefan Monnier <monnier@cs.yale.edu>
3247
3248 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c
3249 * casefiddle.c, buffer.c: Include keymap.h.
3250
3251 2001-10-10 Gerd Moellmann <gerd@gnu.org>
3252
3253 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
3254 options. From Dave Love <d.love@dl.ac.uk>.
3255
3256 2001-10-09 Gerd Moellmann <gerd@gnu.org>
3257
3258 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
3259 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
3260
3261 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
3262 unsigned char.
3263 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
3264
3265 2001-10-08 Andrew Innes <andrewi@gnu.org>
3266
3267 * lisp.h [max]: Undef min and max before redefining them.
3268
3269 * w32gui.h: Do not undef min and max.
3270
3271 * w32heap.h: Do not undef min and max.
3272
3273 * s/ms-w32.h: Do not undef min and max.
3274
3275 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
3276
3277 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
3278
3279 2001-10-08 Sam Steingold <sds@gnu.org>
3280
3281 * keymap.c (current-active-maps): Quote newlines (compilation error).
3282
3283 2001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
3284
3285 * Makefile.in (lisp, shortlisp): Replace bindings.el with
3286 bindings.elc, since otherwise doc strings in bindings.el get wrong
3287 offsets in etc/DOC.
3288
3289 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
3290
3291 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
3292
3293 * keyboard.h (map_prompt): Remove.
3294
3295 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
3296 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
3297
3298 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
3299
3300 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
3301
3302 * keyboard.c (map_prompt): Remove.
3303 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
3304 Use Fkeymap_prompt.
3305
3306 * keymap.h: New file. Extracted from lisp.h.
3307
3308 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
3309 (accessible_keymaps_1): New function.
3310 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
3311 (Fwhere_is_internal): Use Fcurrent_active_maps.
3312 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
3313 Insert in current buffer rather than standard-output.
3314 Don't call `help-mode'. Export to elisp.
3315 (describe_buffer_bindings): New wrapper.
3316 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
3317 and Sdescribe_buffer_bindings.
3318
3319 2001-10-08 Gerd Moellmann <gerd@gnu.org>
3320
3321 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
3322 Remove code setting signal handler.
3323
3324 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
3325 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
3326
3327 2001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3328
3329 * keyboard.c: Don't define min/max.
3330
3331 2001-10-08 Gerd Moellmann <gerd@gnu.org>
3332
3333 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
3334 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
3335 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
3336 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
3337 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
3338 Don't define min/max.
3339
3340 * lisp.h (min, max): New macros.
3341
3342 * puresize.h (BASE_PURESIZE): Increase to 725000.
3343
3344 2001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3345
3346 * xfaces.c (free_frame_menubar): Add prototype.
3347
3348 * lisp.h (init_window): Add prototype.
3349
3350 * editfns.c: Include ctype.h.
3351
3352 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
3353 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
3354 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
3355 variable `sb'.
3356
3357 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
3358 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
3359 `popup_activated_flag' and `title'.
3360
3361 * doc.c (Fdocumentation_property): Fix typo in a doc string.
3362
3363 * emacs.c (main): Remove extra `;'.
3364
3365 * atimer.h (struct atimer): Fix typos in a comment.
3366
3367 * atimer.c: Fix typo.
3368
3369 * Makefile.in: Fix typo.
3370
3371 * README: Remove obsolete part mentioning removed VMS file.
3372
3373 2001-10-07 Miles Bader <miles@gnu.org>
3374
3375 * Makefile.in (lisp, shortlisp): Add `button.elc'.
3376
3377 2001-10-07 Ken Raeburn <raeburn@gnu.org>
3378
3379 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
3380 Lisp_Object.
3381
3382 * lisp.h (Ffield_end): Declare.
3383
3384 2001-10-07 Gerd Moellmann <gerd@gnu.org>
3385
3386 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
3387
3388 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
3389
3390 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
3391
3392 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
3393
3394 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
3395 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
3396
3397 * alloc.c (inhibit_garbage_collection): Simplify.
3398 (Fmemory_use_counts): Ditto.
3399
3400 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
3401 (syms_of_data): DEFVAR_INT most-positive-fixnum and
3402 most-negative-fixnum.
3403
3404 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
3405 (FIXNUM_OVERFLOW_P): New macros.
3406
3407 2001-10-06 Miles Bader <miles@gnu.org>
3408
3409 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
3410 scroll_bar_bottom_shadow_pixel fields.
3411 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
3412 for the shadows, and tell the toolkit about them if we succeed.
3413 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
3414 Free scroll-bar shadow colors.
3415 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
3416 Free scroll-bar shadow colors when the background color changes.
3417 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
3418 Initialize scroll-bar shadow-color fields.
3419
3420 2001-10-05 Gerd Moellmann <gerd@gnu.org>
3421
3422 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
3423
3424 2001-10-05 Miles Bader <miles@gnu.org>
3425
3426 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
3427 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
3428 New functions (were in simple.el).
3429 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
3430 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
3431 (syms_of_minibuf): Initialize them.
3432
3433 2001-10-05 Gerd Moellmann <gerd@gnu.org>
3434
3435 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
3436 (tiff_load): Install them as error and warning handler.
3437
3438 2001-10-04 Andrew Innes <andrewi@gnu.org>
3439
3440 * w32fns.c (x_to_w32_color): Fix argument to alloca.
3441 (w32_load_system_font): Don't believe what GetLanguageFontInfo
3442 says; query codepage info directly to determine if font is double byte.
3443 (x_to_w32_charset): Handle private format for unknown charsets.
3444 Handle wildcards in charset spec, by ignoring them.
3445 (w32_codepage_for_font): Fix argument to alloca. Don't remove
3446 "*-" prefix from charset.
3447 (x_to_w32_font): Enlarge remainder array for safety. Specifically
3448 handle the truncated font spec form constructed by font_list_1, so
3449 that we correctly identify the charset fields. Don't remove "*-"
3450 prefix from charset.
3451 (w32_list_synthesized_fonts): Fix argument to alloca.
3452
3453 2001-10-04 Stefan Monnier <monnier@cs.yale.edu>
3454
3455 * window.h (MINI_WINDOW_P): Use NILP.
3456
3457 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
3458
3459 * termhooks.h (struct input_event): Use proper type for `kind'.
3460
3461 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3462
3463 This handles unknown keysyms better than before. For example,
3464 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
3465 Emacs formerly completely ignored F5. With the change, it derives
3466 a key symbol from the name of the X keysym, `ccaron' in this case.
3467 Reported by Martin Buchholz.
3468
3469 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
3470 unknown keysyms.
3471
3472 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
3473 that EVENT->code isn't a function key, use the keysym's name.
3474
3475 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3476
3477 FOREACH is a macro that should make it easier to loop over Lisp
3478 lists with checks for cycles and proper lists.
3479
3480 * lisp.h (LIST_END_P, FOREACH): New macros.
3481
3482 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3483
3484 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
3485 called for a lost connection. Prevent dumping core in this case.
3486 Instead print the X error, and exit. On user request.
3487
3488 * xterm.c (error_msg): New variable.
3489 (x_fatal_error_signal): New function.
3490 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
3491 as fatal_error_signal_hook around the call to XtCloseDisplay.
3492
3493 * emacs.c (fatal_error_signal_hook): New variable.
3494 (fatal_error_signal): Call that function.
3495
3496 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3497
3498 With this, Emacs prints how much pure storage it will
3499 approximately need in case pure storage overflows while dumping.
3500
3501 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
3502 New variables.
3503 (init_alloc_once): Initialize new variables.
3504 (PURE_POINTER_P): Use new variables.
3505 (pure_alloc): If pure storage overflows, allocate from the heap.
3506 (check_pure_size): New function.
3507 (Fgarbage_collect): Don't GC if pure storage has overflowed.
3508
3509 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
3510 (check_pure_size): Add prototype.
3511
3512 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
3513
3514 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3515
3516 This adds a post-gc-hook that's run with GC inhibited.
3517 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
3518
3519 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
3520 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
3521 (Fgarbage_collect): Run post-gc-hook.
3522
3523 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3524
3525 This adds `defvaralias' and `indirect-variable'. Changes not
3526 directly related to this feature are there to gain the same
3527 performance again as before variable aliases.
3528
3529 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
3530 code to get and set symbol values, to take defvaralias into account.
3531
3532 (Note: the new `constant' bit-flag in symbols would make it
3533 possible to define arbitrary read-only variables, e.g. with
3534 `defconst'.)
3535
3536 Documentation is in lispref/variables.texi. Added to NEWS.
3537
3538 * lisp.h (enum symbol_interned): New enumeration.
3539 (struct Lisp_Symbol): Remove member `obarray', add
3540 `indirect_variable', `constant', and `interned'.
3541 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
3542 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
3543 (indirect_variable): Add prototype.
3544
3545 * print.c (print_preprocess, print_object): Test internedness of
3546 symbols differently.
3547
3548 * lread.c (Fintern, Funintern): Set symbol's interned and constant
3549 bit-fields.
3550 (init_obarray): Likewise for t and nil.
3551
3552 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
3553 (Fdefvaralias): New function.
3554 (specbind): Simplify the test if symbol is a constant.
3555 (syms_of_eval): Defsubr Fdefvaralias.
3556
3557 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
3558 (Qcyclic_variable_indirection): New variable.
3559 (Fkeywordp): Check for internedness differently.
3560 (Fmakunbound): Simplify the test if symbol is a constant.
3561 (indirect_variable, Findirect_variable): New functions.
3562 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
3563 aliased symbol.
3564 (let_shadows_buffer_binding_p): Check for variable aliases.
3565 (set_internal): Simplify the test if SYMBOL is a constant.
3566 If SYMBOL has a buffer-local value and is an alias, use the aliased
3567 symbol instead.
3568 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
3569 Sindirect_variable.
3570
3571 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
3572 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
3573 set directly.
3574
3575 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
3576
3577 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
3578 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
3579 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
3580
3581 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3582
3583 * Branch for 21.1.
3584
3585 2001-10-03 Miles Bader <miles@gnu.org>
3586
3587 * callproc.c (syms_of_callproc): Explicitly state in the
3588 documentation for `process-environment' that earlier entries take
3589 precedence over later ones.
3590
3591 2001-10-02 Miles Bader <miles@gnu.org>
3592
3593 * textprop.c (Fnext_char_property_change)
3594 (Fprevious_char_property_change): Remove reference to non-existant
3595 argument OBJECT from doc-string.
3596
3597 2001-10-01 Gerd Moellmann <gerd@gnu.org>
3598
3599 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
3600 (try_window_id): Skip back over lines ending in a newline from a
3601 string.
3602
3603 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
3604 New bit flag
3605
3606 2001-10-01 Richard M. Stallman <rms@gnu.org>
3607
3608 * search.c (Freplace_match): Doc fix.
3609
3610 2001-09-28 Andrew Innes <andrewi@gnu.org>
3611
3612 * w32menu.c (set_frame_menubar): Take into account that
3613 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
3614 <raeburn@gnu.org>.
3615
3616 2001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
3617
3618 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
3619
3620 2001-09-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3621
3622 * s/gnu-linux.h: Fix a typo in comment.
3623
3624 2001-09-28 Andreas Schwab <schwab@suse.de>
3625
3626 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
3627 nocombreloc, in case -z combreloc is the default.
3628
3629 2001-09-28 Gerd Moellmann <gerd@gnu.org>
3630
3631 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
3632 really going on here.
3633
3634 2001-09-27 Stefan Monnier <monnier@cs.yale.edu>
3635
3636 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
3637
3638 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
3639
3640 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
3641 utf-8, menu-bar, and latin-N.
3642 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
3643 unconditionally now.
3644 (lisp): Add latin-N, since they are preloaded.
3645
3646 2001-09-27 Gerd Moellmann <gerd@gnu.org>
3647
3648 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
3649 to the left. Some cleanup.
3650
3651 * xdisp.c (display_mode_element): One more case where a string's
3652 multibyteness should be used for display.
3653
3654 2001-09-26 Gerd Moellmann <gerd@gnu.org>
3655
3656 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
3657 reading at EOF.
3658
3659 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
3660 of the only temporarily set echoing flag for deciding when
3661 the cancel echoing.
3662
3663 * keyboard.c (echo_kboard): Make externally visible.
3664
3665 * lisp.h (echo_kboard): Declare extern.
3666
3667 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
3668 fonts_changed_p if we need larger matrices due to vscrolling.
3669 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
3670 this round of redisplay if make_cursor_line_fully_visible fails.
3671 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
3672 (try_cursor_movement, try_scrolling): Use them instead of integers.
3673
3674 * dispextern.h (required_matrix_width, required_matrix_height):
3675 Add prototypes.
3676
3677 * dispnew.c (required_matrix_width, required_matrix_height):
3678 New functions.
3679 (allocate_matrices_for_window_redisplay)
3680 (allocate_matrices_for_frame_redisplay: Use them.
3681 Remove parameters CH_DIM.
3682
3683 * xdisp.c (display_mode_lines): Temporarily set selected_frame
3684 and selected_window to the frame of the window whose mode-lines
3685 are displayed, and to the window itself.
3686 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
3687 here.
3688
3689 2001-09-25 Gerd Moellmann <gerd@gnu.org>
3690
3691 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
3692 the image cache under us.
3693
3694 * xdisp.c (display_mode_element): If the mode element is a symbol
3695 with a string value, use that string's multibyteness for displaying.
3696
3697 * keyboard.c (read_char): Don't clear a message for a switch-frame
3698 event. From Stefan Monnier <monnier@cs.yale.edu>.
3699
3700 * xterm.c (fast_find_position) [0]: Add a presumably more correct
3701 version for after 21.1.
3702
3703 * xdisp.c (row_containing_pos): Make externally visible.
3704
3705 * dispextern.h (row_containing_pos): Add prototype.
3706
3707 * process.c (send_process): Disable composition if from_byte < 0.
3708 From Kenichi Handa <handa@etl.go.jp>.
3709
3710 2001-09-24 Gerd Moellmann <gerd@gnu.org>
3711
3712 * xterm.c (refreshicon): Function removed.
3713
3714 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
3715
3716 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
3717
3718 * xterm.c (toplevel): Remove includes in #if 0.
3719
3720 * process.c (sigchld_handler) [LINUX]: Don't return from
3721 the signal handler at the end of the loop.
3722
3723 2001-09-21 Gerd Moellmann <gerd@gnu.org>
3724
3725 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
3726 Terminate only if kill returns -1, and errno is ESRCH.
3727
3728 2001-09-21 Markus Rost <rost@math.ohio-state.edu>
3729
3730 * Makefile.in (shortlisp): Add ../lisp/env.elc.
3731
3732 2001-09-20 Gerd Moellmann <gerd@gnu.org>
3733
3734 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
3735 since this function can be called during GC.
3736
3737 * callproc.c (Fcall_process): Handle errors from pipe(2).
3738 (child_setup): Delete code in #ifdef vipc.
3739
3740 2001-09-19 Gerd Moellmann <gerd@gnu.org>
3741
3742 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
3743 (display_mode_element): Display the string from decode_mode_spec
3744 depending on its multibyteness.
3745
3746 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
3747
3748 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
3749
3750 2001-09-18 Gerd Moellmann <gerd@gnu.org>
3751
3752 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
3753 recursive_edit_unwind.
3754 (recursive_edit_unwind): Set kboard state according to
3755 SINGLE-KBOARD.
3756
3757 * buffer.c (modify_overlay): Don't do nothing if START == END;
3758 This can still be a modification, for example when an overlay has
3759 a before-string or after-string.
3760 (Fdelete_overlay): Prevent redisplay optimizations when deleting
3761 an overlay with before-string or after-string.
3762
3763 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
3764 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
3765
3766 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
3767 first_unchanged_at_end_row is in front of
3768 last_unchanged_at_beg_row. This code should be removed after the
3769 release of 21.1.
3770
3771 2001-09-17 Gerd Moellmann <gerd@gnu.org>
3772
3773 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
3774 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
3775
3776 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
3777 versions >= 2.95.
3778
3779 2001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
3780
3781 * dired.c (Ffile_attributes): Doc fix.
3782
3783 2001-09-14 Gerd Moellmann <gerd@gnu.org>
3784
3785 * fileio.c (Ffile_symlink_p): Fix last change.
3786
3787 * filelock.c (current_lock_owner): Fix last change.
3788
3789 2001-09-13 Gerd Moellmann <gerd@gnu.org>
3790
3791 * filelock.c (current_lock_owner): If readlink returns ERANGE,
3792 take that to mean that the buffer is too small.
3793
3794 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
3795 that to mean that the buffer is too small.
3796
3797 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
3798 current buffer's multibyteness when discarding the iterator's
3799 stack.
3800
3801 * xfns.c (Fx_window_property): Handle case that property gets
3802 deleted between the two calls to XGetWindowProperty.
3803
3804 2001-09-11 Gerd Moellmann <gerd@gnu.org>
3805
3806 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
3807
3808 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
3809 in addition to read-only.
3810
3811 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
3812 to t in addition to read-only.
3813
3814 * lisp.h (Qinhibit_modification_hooks): Declare.
3815
3816 * insdel.c (Qinhibit_modification_hooks): New variable.
3817 (syms_of_insdel): Initialize and staticpro it.
3818
3819 * textprop.c (verify_interval_modification): Don't run
3820 modification-hooks if inhibit_modification_hooks.
3821
3822 * dispnew.c (set_window_cursor_after_update): Fix code
3823 finding glyph row containing cursor when cursor_in_echo_area
3824 is >= 0.
3825
3826 * xdisp.c (init_from_display_pos): Put some code in #if 0.
3827 (add_to_log): Use bcopy instead of strcpy.
3828 (init_from_display_pos): Use an explicit loop over bytes in
3829 overlay strings instead of calling index.
3830
3831 2001-09-10 Gerd Moellmann <gerd@gnu.org>
3832
3833 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
3834
3835 * dispnew.c (direct_output_for_insert): Don't change IT's
3836 stop_charpos to something in front of its current position.
3837
3838 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
3839 `format'.
3840
3841 2001-09-10 Richard M. Stallman <rms@gnu.org>
3842
3843 * frame.c (Fmouse_position): Doc fix.
3844
3845 2001-09-07 Gerd Moellmann <gerd@gnu.org>
3846
3847 * xdisp.c (init_from_display_pos): Don't compare the result
3848 of calling index with NULL.
3849
3850 2001-09-06 Gerd Moellmann <gerd@gnu.org>
3851
3852 * xfns.c (x_set_background_color): Don't change the colors
3853 of the X window of scroll bar widgets.
3854
3855 2001-09-05 Andrew Innes <andrewi@gnu.org>
3856
3857 * w32fns.c (w32_createwindow): Undo last change.
3858
3859 2001-09-05 Gerd Moellmann <gerd@gnu.org>
3860
3861 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
3862
3863 * xdisp.c (string_buffer_position): Use *single_char_property*
3864 functions instead of the *single_property* functions.
3865
3866 2001-09-04 Andrew Innes <andrewi@gnu.org>
3867
3868 * w32term.c (w32_read_socket): Add more information to debugging
3869 output.
3870
3871 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
3872 from Emacs frames, so that calls to GetClipBox in w32term.c
3873 correctly report when part of a frame is visible (including
3874 scrollbars, etc). This prevents repeated redrawing of frames when
3875 only a scrollbar is visible.
3876 (w32_wnd_proc): Add more frame information to debugging output.
3877
3878 2001-09-03 Stefan Monnier <monnier@cs.yale.edu>
3879
3880 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
3881
3882 2001-09-03 Gerd Moellmann <gerd@gnu.org>
3883
3884 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
3885 help-echo for a string which doesn't have help-echo itself, use
3886 get-char-property to obtain the help-echo from the string's buffer
3887 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
3888 have mouse-face, look ``under'' the string for mouse-face from an
3889 overlay.
3890 (fast_find_position): Add parameter STOP. In the final row, stop
3891 before glyphs having STOP as object. Don't consider glyphs that
3892 are not from a buffer.
3893
3894 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
3895
3896 2001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
3897
3898 * fns.c (Fmd5): Doc fix.
3899
3900 2001-08-31 Gerd Moellmann <gerd@gnu.org>
3901
3902 * composite.c (update_compositions): Do nothing if
3903 inhibit-modification-hooks is set.
3904
3905 2001-08-30 Gerd Moellmann <gerd@gnu.org>
3906
3907 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
3908 and check_message_stack if terminating abnormally. We want
3909 glyph matrices etc. in a core dump.
3910
3911 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
3912 (syms_of_xdisp): Initialize them.
3913 (handle_single_display_prop): Don't change point, bind `object',
3914 `position', and `buffer-position' instead to the object having the
3915 `display' property, position in the object and position in the buffer.
3916
3917 * fileio.c (Finsert_file_contents): Don't change the multibyteness
3918 of the buffer if REPLACE is non-nil.
3919
3920 2001-08-29 Gerd Moellmann <gerd@gnu.org>
3921
3922 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
3923
3924 2001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
3925
3926 * w32term.c (x_set_glyph_string_background_width)
3927 (show_mouse_face): Track the last changes in xterm.c.
3928
3929 2001-08-28 Gerd Moellmann <gerd@gnu.org>
3930
3931 * xterm.c (x_set_glyph_string_background_width): Set the glyph
3932 string's background width so that multi-line mouse-face is drawn
3933 to the right edge of the window.
3934 (show_mouse_face): Set the row's mouse_face_p flag after drawing
3935 glyphs.
3936
3937 * dispnew.c (direct_output_for_insert): Set updated_area
3938 before inserting/writing glyphs.
3939
3940 * xdisp.c (display_mode_element): Use string_byte_to_char to
3941 determine character positions in strings, use chars_in_text
3942 instead of strwidth.
3943 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
3944 a matrix as parameter; this is easier to use from GDB.
3945
3946 2001-08-28 Miles Bader <miles@gnu.org>
3947
3948 * textprop.c (Fprevious_single_char_property_change)
3949 (Fnext_single_char_property_change): Doc fixes.
3950
3951 2001-08-27 Gerd Moellmann <gerd@gnu.org>
3952
3953 * fileio.c (Finsert_file_contents): Allocate, restore, and
3954 free composition data in the case of REPLACE not being nil.
3955
3956 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
3957 there exist overlay strings with newlines at POS.
3958 (text_outside_line_unchanged_p): Return 0 if changes start at
3959 START and overlays exist at START. Likewise for END.
3960 (try_window_id): Give up if init_to_row_end returns 0.
3961
3962 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
3963 unconditionally.
3964
3965 2001-08-24 Gerd Moellmann <gerd@gnu.org>
3966
3967 * keymap.c (access_keymap): Return the cdr of the binding of
3968 a generic character instead of its definition (KEY . BINDING).
3969
3970 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
3971 to 0 also in the REPLACE case.
3972
3973 2001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
3974
3975 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
3976 open to determine whether file is readable (as for DOS_NT).
3977
3978 2001-08-23 Gerd Moellmann <gerd@gnu.org>
3979
3980 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
3981 coding.type is coding_type_no_conversion or coding_type_raw_text,
3982 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
3983 non-nil instead of just setting enable_multibyte_characters in the
3984 buffer to nil.
3985
3986 2001-08-22 Gerd Moellmann <gerd@gnu.org>
3987
3988 * dispextern.h (struct face_cache): Add member
3989 menu_face_changed_p.
3990
3991 * xfaces.c (menu_face_changed_default): New variable.
3992 (menu_face_changed_count): Variable removed.
3993 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
3994 the menu_face_changed_default flag, otherwise set the FRAME's
3995 menu_face_changed_p flag if the `menu' face has been changed.
3996 Prevent calling set_font_frame_param if FRAME is t.
3997 (make_face_cache): Initialize cache's menu_face_changed_p
3998 from menu_face_changed_default.
3999 (realize_basic_faces): Look into the frame's face cache to
4000 determine if the menu appearance needs updating.
4001
4002 * keymap.c (access_keymap): Fix last change to not consider
4003 IDX when it has modifiers.
4004
4005 2001-08-21 Gerd Moellmann <gerd@gnu.org>
4006
4007 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
4008 . BINDING) exists, where GENERIC-CHAR is the generic character of
4009 the charset of IDX, return BINDING unless there exists a binding
4010 for IDX itself.
4011
4012 2001-08-16 Gerd Moellmann <gerd@gnu.org>
4013
4014 * xrdb.c (SYSV): Don't define on Solaris 2.
4015 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
4016
4017 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
4018 of the screen line, not text line, containing IT's current position.
4019
4020 2001-08-15 Gerd Moellmann <gerd@gnu.org>
4021
4022 * window.c (window_scroll_pixel_based): Don't recenter if
4023 PT is partially visible in the window.
4024
4025 * xterm.c (expose_window_tree, expose_window, expose_line):
4026 Return 1 when overwriting mouse-face.
4027 (expose_frame): If mouse-face was overwritten, redo it.
4028
4029 * xfaces.c (x_update_menu_appearance): Don't call
4030 set_frame_menubar, let the next redisplay do it.
4031
4032 2001-08-14 Andrew Innes <andrewi@gnu.org>
4033
4034 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
4035 drawing glyph string.
4036
4037 2001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
4038
4039 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
4040 running HI-UX/MPP.
4041
4042 2001-08-14 Gerd Moellmann <gerd@gnu.org>
4043
4044 * xfaces.c (x_update_menu_appearance): Save and restore value of
4045 interrupt_input_blocked.
4046
4047 2001-08-13 Gerd Moellmann <gerd@gnu.org>
4048
4049 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
4050 a line start, move back to the line start.
4051
4052 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
4053 exactly when a mini-buffer is active.
4054
4055 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
4056 in units of 1/8 character on non window-system frames.
4057 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
4058
4059 2001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
4060
4061 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
4062 a doc string.
4063
4064 2001-08-09 Gerd Moellmann <gerd@gnu.org>
4065
4066 * keyboard.c (Vpre_help_message): New variable.
4067 (syms_of_keyboard): Initialize and staticpro it.
4068 (show_help_echo): Record current message before displaying a
4069 help-echo, and restore that message when clearing the help.
4070
4071 * xfns.c (x_create_im): Remove prototype.
4072
4073 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
4074
4075 * dispnew.c (adjust_glyph_matrix): Undo last change.
4076
4077 2001-08-08 Gerd Moellmann <gerd@gnu.org>
4078
4079 * dispnew.c (adjust_glyph_matrix): In the optimization for
4080 windows whose height has changed, disable partially visible lines.
4081
4082 2001-08-07 Gerd Moellmann <gerd@gnu.org>
4083
4084 * window.c (Frecenter): If ARG < 0, and on a window system
4085 frame, count in some empty lines when we can't move -ARG lines down.
4086
4087 * xdisp.c (start_display): Don't try to determine the continuation
4088 lines width if lines are truncated. It's superfluous and leads to
4089 incorrect results if POS is not visible in the window after
4090 reseating the iterator at the previous line start.
4091
4092 2001-08-06 Gerd Moellmann <gerd@gnu.org>
4093
4094 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
4095
4096 2001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
4097
4098 * alloc.c (init_stack): Remove declaration.
4099
4100 2001-08-03 Gerd Moellmann <gerd@gnu.org>
4101
4102 * keyboard.c (read_key_sequence): Check that key is an integer
4103 before comparing it with quit_char.
4104 (add_command_key): Use larger_vector.
4105 (read_char_x_menu_prompt): Instead of converting symbol and
4106 integer events into conses (EVENT . nil), use (EVENT . disabled)
4107 which cannot be confused with valid events.
4108 (read_char): When reading from Vunread_command_events, check for
4109 events of the form (EVENT . disabled) instead of
4110 (EVENT . nil).
4111
4112 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
4113 a float, determine the max height from the frame's height.
4114
4115 2001-08-02 Gerd Moellmann <gerd@gnu.org>
4116
4117 * xdisp.c (redisplay_internal): Take message_cleared_p into
4118 account only if minibuf_level == 0.
4119
4120 2001-08-01 Gerd Moellmann <gerd@gnu.org>
4121
4122 * xdisp.c (redisplay_internal): Add a check for the last
4123 displayed message.
4124
4125 * xdisp.c (message_cleared_p): New variable.
4126 (clear_message): Set message_cleared_p when clearing the current
4127 message.
4128 (redisplay_internal): Look at message_cleared_p to capture
4129 the case that the echo area should be cleared.
4130
4131 * keyboard.c (command_loop_1): Fix spelling of
4132 resize_echo_area_exactly.
4133
4134 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
4135
4136 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
4137
4138 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
4139 current matrix when the window gets smaller.
4140
4141 2001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
4142
4143 * print.c (strout): Cast the character passed to insert_char to
4144 unsigned char, to avoid sign extension when it is promoted to int.
4145
4146 2001-07-31 Gerd Moellmann <gerd@gnu.org>
4147
4148 * fileio.c (Finsert_file_contents): Don't treat a return value
4149 of 0 from emacs_read as an IO error.
4150
4151 2001-07-30 Gerd Moellmann <gerd@gnu.org>
4152
4153 * keyboard.c (abs): New macro.
4154 (double_click_fuzz): New variable.
4155 (make_lispy_event): Use it to determine what makes a double-click.
4156 (syms_of_keyboard): DEFVAR_INT it.
4157
4158 * xmenu.c (set_frame_menubar): Take into account that
4159 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
4160 <raeburn@gnu.org>.
4161
4162 2001-07-27 Gerd Moellmann <gerd@gnu.org>
4163
4164 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
4165
4166 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
4167 of row's visible height.
4168
4169 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
4170 deal with the first overlay string having an image `display' property.
4171 (try_window_reusing_current_matrix, compute_line_metrics):
4172 Fix computation of row's visible height for the case that part of the
4173 row is invisible above and part of the row is at the same time
4174 invisible below the window.
4175
4176 2001-07-26 Gerd Moellmann <gerd@gnu.org>
4177
4178 * xfns.c (x-show-tip): Doc fix.
4179
4180 * xfns.c (Vx_max_tooltip_size): New variable.
4181 (syms_of_xfns): DEFVAR_LISP it.
4182 (Fx_show_tip): Set frame's window_width to the width of the
4183 window. Use a maximum tooltip size specified by
4184 Vx_max_tooltip_size, if that has valid contents.
4185 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
4186
4187 2001-07-26 Andrew Innes <andrewi@gnu.org>
4188
4189 * w32term.c (x_display_list): New variable.
4190 (w32_term_init): Set it.
4191
4192 * w32term.h (x_display_list): New extern.
4193
4194 2001-07-26 Gerd Moellmann <gerd@gnu.org>
4195
4196 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
4197 is non-nil, instead of when redisplaying_p is non-zero.
4198 See comment there.
4199 (mark_window_display_accurate_1): Add an assertion.
4200
4201 2001-07-25 Gerd Moellmann <gerd@gnu.org>
4202
4203 * dispextern.h (struct it): Increase size of ctl_chars to 16.
4204
4205 * xfns.c (Fx_file_dialog): Block/unblock input while processing
4206 events so that we get a chance of processing expose events.
4207
4208 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
4209
4210 2001-07-24 Gerd Moellmann <gerd@gnu.org>
4211
4212 * xfns.c (valid_image_p): Protect better against invalid image
4213 specifications. Previous code could signal an error.
4214
4215 2001-07-23 Gerd Moellmann <gerd@gnu.org>
4216
4217 * indent.c (current_column): Fix column computation in the
4218 presence of display table entries.
4219 (current_column_1, Fmove_to_column, compute_motion): Likewise.
4220
4221 * dispnew.c (adjust_glyph_matrix): In the optimization for
4222 windows whose height has changed, use the new window height
4223 to compute which rows to invalidate.
4224
4225 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
4226 (MAX_10_EXP): New macro.
4227 (Fformat): Use it.
4228
4229 * coding.c (code_convert_region): Handle the multibyte case if
4230 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
4231
4232 2001-07-20 Gerd Moellmann <gerd@gnu.org>
4233
4234 * dispextern.h (struct face): Change type of `stipple' to
4235 int; it's an ID.
4236
4237 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
4238
4239 2001-07-19 Gerd Moellmann <gerd@gnu.org>
4240
4241 * dispnew.c (update_window): Don't set the cursor at the end
4242 of the update if display update has been paused.
4243
4244 * composite.h (syms_of_composite): Renamed from syms_of_composition.
4245
4246 2001-07-18 Ken Raeburn <raeburn@gnu.org>
4247
4248 * fns.c (Fset_char_table_default): Check that a charset is defined
4249 before checking its dimension.
4250
4251 2001-07-17 Ken Raeburn <raeburn@gnu.org>
4252
4253 * coding.c (setup_coding_system): Don't do any designation based
4254 on reg_bits if charset is not yet defined.
4255
4256 * lisp.h (XVECTOR): Verify correct object type before returning a
4257 pointer, using eassert.
4258
4259 2001-07-17 Gerd Moellmann <gerd@gnu.org>
4260
4261 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
4262 Increase to 4096 because of paste problems reported on GNU/Linux.
4263
4264 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
4265
4266 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
4267
4268 2001-07-16 Gerd Moellmann <gerd@gnu.org>
4269
4270 * fileio.c (unwind_read): Function removed.
4271 (read_non_regular, read_non_regular_quit): New functions.
4272 (Finsert_file_contents): When reading from non-regular files,
4273 arrange to catch a `quit' and terminate the loop. Rearrange
4274 code so that a `quit' when reading from a regular file doesn't
4275 insert text in the buffer.
4276
4277 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
4278 Clear faces afterwards.
4279 (clear_font_table): Take a x_display_info parameter. Don't free
4280 fonts being the default font of any frame on the given display.
4281
4282 2001-07-13 Gerd Moellmann <gerd@gnu.org>
4283
4284 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
4285 instead of CHAR_STRING which can signal an error.
4286
4287 * charset.c (char_to_string_1): Extracted from char_to_string.
4288 Return -1 instead of signaling an error.
4289 (char_to_string): Use it.
4290
4291 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
4292
4293 2001-07-12 Stefan Monnier <monnier@cs.yale.edu>
4294
4295 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
4296 is t, don't try to append anything to it.
4297
4298 2001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
4299
4300 * dired.c (file_name_completion): Pass dp->d_name to
4301 Fstring_match, not elt, which is always nil here.
4302
4303 2001-07-12 Gerd Moellmann <gerd@gnu.org>
4304
4305 * xselect.c (x_decline_selection_request): Handle errors
4306 caused by receivers that have vanished.
4307
4308 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
4309 ignoring events on foreign windows in #if 0. Always dispatch
4310 the event after checking it with x_handle_property_notify.
4311
4312 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
4313 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
4314 TRACE macros to facilitate debugging. Add additional trace statements.
4315 (toplevel): Add prototypes for file-local functions.
4316 (x_atom_to_symbol): Remove DPYINFO parameter.
4317
4318 2001-07-11 Stefan Monnier <monnier@cs.yale.edu>
4319
4320 * w32menu.c (menubar_selection_callback, w32_menu_show):
4321 Initialize `entry' to nil.
4322 (w32_dialog_show): Remove unused `save_wv' variable.
4323 (name_is_separator): Recognize "--:foo" and "--foo-bar".
4324
4325 2001-07-11 Gerd Moellmann <gerd@gnu.org>
4326
4327 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
4328
4329 * fileio.c (unwind_read): Print a message when discarding inserted
4330 text or switching the buffer to unibyte. Change parameter.
4331 (Finsert_file_contents): Don't pass VISIT to unwind_read.
4332
4333 * fileio.c (unwind_read): New function.
4334 (Finsert_file_contents): Record it as unwind-function for
4335 the case that reading is interrupted by C-g.
4336
4337 2001-07-10 Gerd Moellmann <gerd@gnu.org>
4338
4339 * dispnew.c (update_window): Don't skip the header-line
4340 update when scrolling_window returns 0.
4341
4342 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
4343
4344 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
4345 for the case that x_decode_color signals an error.
4346
4347 * xdisp.c (add_to_log): Do nothing if called asynchronously.
4348
4349 2001-07-09 Gerd Moellmann <gerd@gnu.org>
4350
4351 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
4352 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
4353 around ioctls.
4354
4355 2001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
4356
4357 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
4358 doc string line for dos-timezone-offset.
4359
4360 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
4361 inline assembly, to avoid compiler warnings.
4362 (syms_of_msdos): Add \n\ at the end of a line in the doc string
4363 line for dos-unsupported-char-glyph.
4364
4365 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
4366
4367 2001-07-05 Gerd Moellmann <gerd@gnu.org>
4368
4369 * sound.c: Include Emacs' header files with #include "...".
4370
4371 * eval.c (specbind): Additionally record the buffer that was
4372 current when a buffer-local or frame-local variable was bound.
4373
4374 2001-07-04 Gerd Moellmann <gerd@gnu.org>
4375
4376 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
4377 to unibyte characters in unibyte buffers.
4378
4379 2001-07-03 Gerd Moellmann <gerd@gnu.org>
4380
4381 * eval.c (specbind): If SYMBOL has a frame-local binding, record
4382 the frame on the binding stack. Change format of entries for
4383 local bindings on the binding stack to '(SYMBOL . WHERE)'.
4384 (unbind_to): Handle unbinding a frame-local variable.
4385
4386 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
4387 glyphs and truncation glyphs at the end of a row from its pixel width.
4388 (dump_glyph_row): Print row's continuation_lines_width.
4389 (try_window_id): Take the shortcut if ZV is visible in the
4390 window, but there are actually no changes at ZV.
4391
4392 2001-07-02 Gerd Moellmann <gerd@gnu.org>
4393
4394 * xterm.h (x_free_dpy_colors): Add prototype.
4395
4396 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
4397 right number of arguments.
4398
4399 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
4400 ($(lwlibdir)TAGS): New target.
4401 (TAGS): Fix dependency list.
4402
4403 * xterm.c (x_list_fonts): Make sure XFreeFont is called
4404 with input blocked.
4405
4406 2001-06-30 Gerd Moellmann <gerd@gnu.org>
4407
4408 * emacs.c (main): Remove extern declaration for sys_nerr, which
4409 isn't used and causes a compilation error with GCC 3.0 on
4410 FreeBSD 4.3.
4411
4412 2001-06-27 Gerd Moellmann <gerd@gnu.org>
4413
4414 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
4415 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
4416 (toplevel): Include <signal.h> and syssignal.h.
4417
4418 * sound.c (vox_configure, vox_close): Turn off atimers
4419 around ioctls.
4420
4421 2001-06-26 Gerd Moellmann <gerd@gnu.org>
4422
4423 * keyboard.c (read_char) <non_reread>: Record the previous idle
4424 start time before calling timer_stop_idle.
4425 (read_char) <reread_first>: After processing a help-echo event,
4426 restore the previous idle start time.
4427
4428 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
4429 the start of invisible text.
4430 (setup_for_ellipsis): New function.
4431 (next_overlay_string): After all overlay strings have been
4432 processed, display an ellipsis if necessary.
4433 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
4434 (push_it): Initialize display_ellipsis_p on the iterator's stack.
4435
4436 * dispextern.h (struct iterator_stack_entry): Add member
4437 display_ellipsis_p.
4438
4439 2001-06-25 Gerd Moellmann <gerd@gnu.org>
4440
4441 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
4442 on the value of the wait-for-wm frame parameter.
4443
4444 * xterm.h (struct x_output): Add member wait_for_wm.
4445
4446 * xfns.c (Qwait_for_wm): New variable.
4447 (x_frame_parms): Add entry for `wait-for-wm".
4448 (x_set_wait_for_wm): New function.
4449 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
4450 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
4451
4452 * xdisp.c (try_window_id) <all changes below window end>: Don't
4453 take this shortcut if ZV is visible in the window.
4454 (try_window_id): When checking for window start being in changed
4455 text, don't check that the buffer's size has changed.
4456
4457 2001-06-23 Richard M. Stallman <rms@gnu.org>
4458
4459 * minibuf.c (Fcompleting_read): Doc fix.
4460
4461 2001-06-19 Gerd Moellmann <gerd@gnu.org>
4462
4463 * composite.c (Ffind_composition_internal): Accept ZV
4464 and a string's end position as POS.
4465
4466 2001-06-18 Gerd Moellmann <gerd@gnu.org>
4467
4468 * composite.c (Ffind_composition_internal): Check POS
4469 for validity.
4470
4471 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
4472
4473 * editfns.c (Fmessage_box): If the frame is not under a window
4474 system, output the message in the echo area.
4475
4476 2001-06-14 Richard M. Stallman <rms@gnu.org>
4477
4478 * xdisp.c (try_window_id): When EOB is visible, don't treat
4479 insertion at EOB as if it were "off the bottom of the screen."
4480
4481 2001-06-11 Andrew Innes <andrewi@gnu.org>
4482
4483 * w32proc.c (create_child): Add new parameter is_gui_app.
4484 (w32_executable_type): Add new parameter is_gui_app.
4485 (sys_spawnve): Use it.
4486 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
4487 SIGQUIT. This matches better how the signals are interpreted by
4488 MSVC compiled programs.
4489 (syms_of_ntproc): Update docstring.
4490
4491 2001-06-02 Stefan Monnier <monnier@cs.yale.edu>
4492
4493 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
4494 well otherwise note_mouse_highlight might optimize away highlighting
4495 if we pass over that same overlay again.
4496
4497 2001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
4498
4499 * lread.c (Fload): Document that the argument is run via
4500 substitute-in-file-name.
4501
4502 2001-05-31 Gerd Moellmann <gerd@gnu.org>
4503
4504 * Makefile.in (bootstrap-doc): New target.
4505 (bootstrap-emacs): Depend on it.
4506
4507 * fileio.c (Fdo_auto_save): Don't try to create the directory of
4508 auto-save-list-file-name when shutting down Emacs, because
4509 creating the directory might signal an error, and leaves
4510 Emacs in a strange state.
4511
4512 * term.c: (tty_cursor_hidden): New variable.
4513 (update_begin): Don't call tty_hide_cursor. Clean up.
4514 (update_end, set_terminal_window, set_scroll_region): Clean up.
4515 (ring_bell, reset_terminal_modes): Clean up.
4516 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
4517 on tty_cursor_hidden.
4518 (write_glyphs): Call tty_hide_cursor.
4519
4520 2001-05-30 Stefan Monnier <monnier@cs.yale.edu>
4521
4522 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
4523
4524 2001-05-30 Gerd Moellmann <gerd@gnu.org>
4525
4526 * xfns.c (enum image_value_type): New enumerator
4527 IMAGE_STRING_OR_NIL_VALUE.
4528 (parse_image_spec): Handle it.
4529 (xbm_format, pbm_format): Use it for :foreground and :background.
4530 (xbm_load, pbm_load): Check for nil color names.
4531
4532 * xterm.c (note_mouse_highlight): If an overlapping overlay
4533 exists, but we find that we highlight the same overlay as before,
4534 don't do the highlighting again.
4535
4536 2001-05-29 Gerd Moellmann <gerd@gnu.org>
4537
4538 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
4539 Protect unibyte strings created by replacing their multibyte
4540 equivalents in menu_items.
4541
4542 * keymap.c (Fsingle_key_description): NUL-terminate the string
4543 buffer before calling build_string.
4544
4545 * callproc.c (Fcall_process): Deal with decode_coding returning
4546 CODING_FINISH_INCONSISTENT_EOL.
4547
4548 2001-05-28 Gerd Moellmann <gerd@gnu.org>
4549
4550 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
4551 an item's name with its key description in case the description
4552 is a multibyte string.
4553
4554 * keymap.c (Fsingle_key_description): Create a multibyte string
4555 only if necessary.
4556
4557 * macros.c (Fstart_kbd_macro): Doc fix.
4558
4559 * xterm.c (cursor_in_mouse_face_p): New function.
4560 (x_draw_stretch_glyph_string): Use it to choose a different GC
4561 when drawing a cursor within highlighted text.
4562
4563 * editfns.c (char_property_eq): Put in #if 0.
4564
4565 * indent.c (string_display_width): Put in #if 0.
4566
4567 * lread.c (Fload): Remove unused label.
4568
4569 * termcap.c (speeds): Put in #if 0.
4570
4571 2001-05-18 Gerd Moellmann <gerd@gnu.org>
4572
4573 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
4574
4575 * xfaces.c (xlfd_point_size): Don't divide pixel size from
4576 transformation matrix by 10.
4577
4578 2001-05-16 Gerd Moellmann <gerd@gnu.org>
4579
4580 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
4581 only if it's equal to the former foreground pixel color.
4582 (x_set_foreground_color, x_set_background_color)
4583 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
4584
4585 2001-05-16 Dave Love <fx@gnu.org>
4586
4587 * insdel.c (signal_before_change, signal_after_change): Consider a
4588 local change hook which changes the buffer.
4589
4590 * process.c (read_process_output): Don't call signal_after_change
4591 and update_compositions after insert_from_string_before_markers.
4592
4593 2001-05-16 Gerd Moellmann <gerd@gnu.org>
4594
4595 * xfaces.c (split_font_name): Use the right field when
4596 checking for `[...]' syntax.
4597
4598 * buffer.c (copy_overlays): New function.
4599 (clone_per_buffer_values): Use it.
4600
4601 * buffer.h (OVERLAY_PLIST): New macro.
4602
4603 * keymap.c (Fsingle_key_description): Replace a build_string with
4604 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
4605
4606 * fontset.c (Ffontset_info): Check that face is non-null
4607 before accessing its fields.
4608
4609 2001-05-15 Gerd Moellmann <gerd@gnu.org>
4610
4611 * keyboard.c (read_key_sequence): Prevent generating a fake
4612 prefix key twice.
4613
4614 * xfaces.c (split_font_name): Handle `[...]' for the right
4615 font name fields.
4616
4617 * ccl.c (ccl_driver): Don't copy remaining bytes in case
4618 of CCL_STAT_INVALID_CMD.
4619
4620 2001-05-14 Stefan Monnier <monnier@cs.yale.edu>
4621
4622 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
4623 in <var> has no default value yet.
4624
4625 * xfaces.c (try_alternative_families): First try the FAMILY.
4626 And if nothing is found in the end, try again with scalable fonts.
4627 (try_font_list): Let try_alternative_families do a bit more of
4628 the work. Only use FAMILY if it is not nil.
4629 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
4630
4631 2001-05-14 Gerd Moellmann <gerd@gnu.org>
4632
4633 * xterm.c (note_mouse_highlight): Avoid changing the mouse
4634 pointer shape when show_mouse_face has already done it.
4635
4636 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
4637 full-width rows.
4638
4639 * xfaces.c (split_font_name): Make sure to leave the loop
4640 with the right value of `i'.
4641
4642 * xfaces.c (split_font_name): Handle matrix transformations
4643 in the pixel and point size fields of XLFD font names.
4644 (xlfd_point_size): Likewise.
4645
4646 2001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
4647
4648 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
4649 (x_to_w32_font): Add prototype.
4650
4651 * regex.c (malloc, realloc, free) [emacs]: Undefine before
4652 redefining, to avoid compiler warnings.
4653
4654 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
4655
4656 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
4657 (w32_get_bdf_glyph): Cast between unsigned char and char when
4658 passing arguments to subroutines, to shut up compiler warnings.
4659 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
4660 GET_HEX_VAL.
4661
4662 * xfaces.c: Include keyboard.h before frame.h, not after it.
4663
4664 * widget.c: Include keyboard.h before frame.h.
4665
4666 * w32term.h (struct image, struct face): Forward declaration, to
4667 avoid compiler warnings.
4668
4669 2001-05-11 Gerd Moellmann <gerd@gnu.org>
4670
4671 * keyboard.c (read_key_sequence): Don't modify events when
4672 generating fake prefix keys (mode-line, scroll-bar, ...) since
4673 this prevents proper processing of such events when pushed back
4674 into unread-command-events.
4675
4676 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
4677 actually redrawn. Make the function static.
4678 (note_mouse_highlight): Fix a case where the mouse cursor
4679 was changed back to the text cursor.
4680
4681 * xterm.h (clear_mouse_face): Remove prototype.
4682
4683 * xdisp.c (try_window_id): Fix the fix and set the right
4684 window_end_vpos.
4685
4686 * xdisp.c (try_window_id): Fix computation of window end in the
4687 case that lines were deleted at the end of the window. Add some
4688 more debug_method_adds.
4689
4690 * xfaces.c (try_alternative_families): New function.
4691 (try_font_list): Use it. If ATTRS specifies a family, check
4692 fonts from that family first.
4693 (choose_face_font): Remove code setting the family part of
4694 the pattern to nil.
4695
4696 2001-05-10 Gerd Moellmann <gerd@gnu.org>
4697
4698 * xdisp.c (try_window_id): Fix case of all changes before
4699 the window start.
4700
4701 * xdisp.c (try_window_id): Add some xasserts.
4702
4703 2001-05-09 Gerd Moellmann <gerd@gnu.org>
4704
4705 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
4706
4707 2001-05-09 Dave Love <fx@gnu.org>
4708
4709 * xdisp.c (GIVE_UP): Fix for K&R C.
4710
4711 2001-05-09 Gerd Moellmann <gerd@gnu.org>
4712
4713 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
4714
4715 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
4716 back to the text cursor shape without need.
4717
4718 2001-05-07 Gerd Moellmann <gerd@gnu.org>
4719
4720 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
4721
4722 * dispextern.h (inverse_video): Declare extern.
4723
4724 * keyboard.c (delete_kboard): Handle the case that selected_frame
4725 has been deleted in the course of x_connection_closed.
4726
4727 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
4728
4729 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
4730 Fix the change from 2001-04-30.
4731
4732 2001-05-03 Gerd Moellmann <gerd@gnu.org>
4733
4734 * xfns.c (file_dialog_unmap_cb): New function.
4735 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
4736 where a dialog is closed via the window manager.
4737
4738 * xdisp.c (try_window_id): Cases of changes all in front of
4739 the window start or all below the window end mostly rewritten.
4740 (redisplay_window): Move the tests if try_window_id is
4741 applicable to try_window_id.
4742 (GIVE_UP): New macro.
4743
4744 2001-05-02 Gerd Moellmann <gerd@gnu.org>
4745
4746 * xterm.c (expose_window): Return int. If W is the window
4747 currently being updated, mark the frame garbaged.
4748 Fix computation of rows intersecting the exposed rectangle.
4749 (expose_window_tree): Stop when expose_window returns 0.
4750
4751 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
4752 again if it has already been drawn.
4753
4754 2001-05-01 Stefan Monnier <monnier@cs.yale.edu>
4755
4756 * syntax.c (update_syntax_table): Check that oldi has the same
4757 properties as old_prop before deciding not to invalidate.
4758
4759 2001-04-30 Gerd Moellmann <gerd@gnu.org>
4760
4761 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
4762 read-only text that is so because of text properties.
4763
4764 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
4765 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
4766 windows that are components of a Lucid menu bar.
4767
4768 2001-04-27 Gerd Moellmann <gerd@gnu.org>
4769
4770 * term.c (turn_on_face): Fix reverse video handling on terminals
4771 that don't support colors.
4772
4773 2001-04-26 Gerd Moellmann <gerd@gnu.org>
4774
4775 * editfns.c (save_excursion_restore): Don't use XBUFFER on
4776 a non-buffer.
4777
4778 2001-04-25 Gerd Moellmann <gerd@gnu.org>
4779
4780 * term.c (toggle_highlight): New function.
4781 (turn_on_face): Change handling of reverse video.
4782
4783 * process.c (wait_reading_process_input):
4784 Call record_asynch_buffer_change only if a timer really changed buffers.
4785
4786 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
4787 of the number of overlays to check.
4788
4789 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
4790
4791 * xdisp.c (try_window_id): Fix a case where window_end_pos
4792 and window_end_bytepos were not adjusted.
4793
4794 2001-04-23 Gerd Moellmann <gerd@gnu.org>
4795
4796 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
4797 zero instead of -1.
4798
4799 2001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
4800
4801 * process.c (wait_reading_process_input) [!subprocesses]:
4802 Don't reference waiting_for_user_input_p, it's not defined in the
4803 branch without async subprocesses support.
4804
4805 2001-04-19 Gerd Moellmann <gerd@gnu.org>
4806
4807 * keyboard.c (delete_kboard): Prevent a dangling reference
4808 from current_kboard to KB, which is freed.
4809
4810 * process.c (wait_reading_process_input):
4811 Call record_asynch_buffer_change after running timers, to make
4812 read_key_sequence aware of buffer changes from under it.
4813
4814 2001-04-18 Gerd Moellmann <gerd@gnu.org>
4815
4816 * xfaces.c (Qscalable_fonts_allowed): New variable.
4817 (realizing_basic_faces_p): Removed.
4818 (x_face_list_fonts): Special handling for realizing_basic_faces_p
4819 removed.
4820 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
4821 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
4822 for scalable-fonts-allowed to t.
4823
4824 * fileio.c (Finsert_file_contents): If the file size returned from
4825 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
4826 read from files on a procfs whose contents are generated dynamically.
4827
4828 2001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
4829
4830 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
4831 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
4832 (__memalign_hook): Make the two prototypes consistent.
4833
4834 2001-04-17 Gerd Moellmann <gerd@gnu.org>
4835
4836 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
4837 matrix of mini-windows.
4838
4839 2001-04-12 Stefan Monnier <monnier@cs.yale.edu>
4840
4841 * intervals.c (find_interval): Don't rebalance during signal handling.
4842
4843 2001-04-11 Gerd Moellmann <gerd@gnu.org>
4844
4845 * fns.c: Include blockinput.h.
4846
4847 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
4848
4849 2001-04-10 Gerd Moellmann <gerd@gnu.org>
4850
4851 * fns.c (Fcompare_strings): Fix return values.
4852
4853 * window.c (window_scroll): Change the meaning of N to mean
4854 N screen-fulls or N lines.
4855 (window_scroll_pixel_based, window_scroll_line_based)
4856 (scroll_command, Fscroll_other_window): Change accordingly.
4857
4858 * window.c (window_scroll_pixel_based, Frecenter):
4859 Call window_box_height instead of using it.last_visible_y for the
4860 height of the window.
4861
4862 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
4863 instead of using it.last_visible_y for the height of the window.
4864
4865 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
4866 From Dan Holmsand <dan@eyebee.com>.
4867
4868 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
4869 able to write to hidden and system files. From Dan Holmsand
4870 <dan@eyebee.com>.
4871
4872 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
4873 Holmsand <dan@eyebee.com>.
4874
4875 2001-04-09 Gerd Moellmann <gerd@gnu.org>
4876
4877 * fns.c (Fplist_get, Fplist_put): Add QUITs.
4878
4879 * window.c (window_internal_height): Return 1 less if the
4880 window has a header line.
4881
4882 * xdisp.c (try_window_id): When scrolling on a terminal, take
4883 the change of window_internal_height into account.
4884
4885 2001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
4886
4887 * gmalloc.c (align): If the argument SIZE would overflow
4888 __malloc_ptrdiff_t, fail right away.
4889
4890 2001-04-06 Gerd Moellmann <gerd@gnu.org>
4891
4892 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
4893 Make sure the tooltip is completely visible.
4894 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
4895
4896 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
4897
4898 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
4899
4900 2001-04-06 Dave Love <fx@gnu.org>
4901
4902 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
4903 Fix test of `from'.
4904
4905 2001-04-06 Gerd Moellmann <gerd@gnu.org>
4906
4907 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
4908
4909 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
4910
4911 2001-04-05 Gerd Moellmann <gerd@gnu.org>
4912
4913 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
4914
4915 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
4916
4917 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
4918 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
4919
4920 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
4921 shell widget's position only if it is non-null.
4922
4923 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
4924 Set f->output_data.x->widget to null after destroying it.
4925
4926 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
4927 FILENAME to bring it in synch with the documentation.
4928
4929 * xfaces.c (realizing_basic_faces_p): Renamed from
4930 realize_default_face_p.
4931 (realize_basic_faces): Set/clear realizing_basic_faces_p.
4932 (realize_default_face): Don't set the flag.
4933
4934 2001-04-04 Gerd Moellmann <gerd@gnu.org>
4935
4936 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
4937
4938 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
4939
4940 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
4941 the buffer that was used for echoing.
4942
4943 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
4944 (first_font_matching): Removed unused function.
4945 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
4946 (may_use_scalable_font_p): Remove parameter FONT; rename
4947 parameter NAME to FONT.
4948 (x_face_list_fonts): Fix missing bounds check.
4949 (realizing_default_face_p): New variable.
4950 (realize_default_face): Set and clear that flag.
4951 (x_face_list_fonts): When called during the realization of the
4952 default face, and no matching fonts are found when ignoring
4953 scalable fonts and fonts matching a regexp from
4954 face-ignored-fonts, try without ignoring fonts.
4955
4956 2001-04-03 Gerd Moellmann <gerd@gnu.org>
4957
4958 * xfns.c (postprocess_image): New function.
4959 (lookup_image): Call it for all image types except PostScript.
4960 (x_kill_gs_process): Call postprocess_image.
4961
4962 * xterm.c (x_use_underline_position_properties): New variable.
4963 (x_draw_glyph_string): Use it.
4964 (syms_of_xterm): DEFVAR_BOOL it.
4965
4966 2001-04-02 Gerd Moellmann <gerd@gnu.org>
4967
4968 * xterm.c (x_alloc_nearest_color_1): New function.
4969 (x_alloc_nearest_color): Use it.
4970 (x_color_cells): Take a Display as argument, instead of a frame.
4971 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
4972 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
4973 (x_initialize): Register cvt_string_to_pixel as resource converter
4974 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
4975
4976 2001-03-30 Gerd Moellmann <gerd@gnu.org>
4977
4978 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
4979 (set_iterator_to_next): If a string from a display property ends,
4980 consider the case that this might also be the end of an
4981 overlay string having the display property.
4982
4983 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
4984
4985 * xdisp.c (reseat_to_string): Undo last change.
4986
4987 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
4988 matrix of a window when the header line changes, when
4989 new rows are allocated, or when the width changes.
4990
4991 2001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
4992
4993 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
4994
4995 2001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
4996
4997 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
4998 deprecated.
4999
5000 2001-03-29 Gerd Moellmann <gerd@gnu.org>
5001
5002 * data.c (Fsubr_interactive_form): New function.
5003 (syms_of_data): Defsubr it.
5004
5005 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
5006 (live_float_p, live_misc_p): Return 1 only if the offset of the
5007 pointer in its block is >= 0.
5008
5009 2001-03-28 Paul Eggert <eggert@twinsun.com>
5010
5011 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
5012 microseconds calcuation. Avoid double-rounding problem.
5013 In doc string, warn that the result is approximate.
5014
5015 2001-03-28 Gerd Moellmann <gerd@gnu.org>
5016
5017 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
5018 bind `inhibit-eval-during-redisplay' to t.
5019
5020 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
5021
5022 * xdisp.c (inhibit_eval_during_redisplay)
5023 (Qinhibit_eval_during_redisplay): New variables.
5024 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
5025 don't eval, return nil instead.
5026 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
5027 Initialize Qinhibit_eval_during_redisplay.
5028
5029 * xdisp.c (reseat_to_string): If STRING is multibyte, set
5030 the iterator's multibyte_p flag.
5031
5032 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
5033 instead of setting it to zero; it's incremented for each frame
5034 where the menu face is changed.
5035
5036 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
5037 change bottom shadow accordingly.
5038
5039 * xterm.c (expose_window_tree, expose_frame): Don't compute
5040 intersections here.
5041 (expose_window): Do it here instead.
5042 (x_draw_glyph_string): Fix a computation of the underline position.
5043
5044 * bytecode.c (BYTE_CODE_QUIT): New macro.
5045 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
5046
5047 2001-03-27 Gerd Moellmann <gerd@gnu.org>
5048
5049 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
5050 Give up if matrix starts in an ellipsis.
5051 (init_from_display_pos): Do nothing if POS doesn't specify
5052 a dpvec_index but the iterator has such a position.
5053
5054 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
5055
5056 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
5057 x/y position is (0, 0) after destroying the menu bar, restore
5058 its original position.
5059
5060 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
5061 (init_from_display_pos): Use it.
5062 (try_window_reusing_current_matrix): Don't use cursor_row_p.
5063
5064 2001-03-26 Gerd Moellmann <gerd@gnu.org>
5065
5066 * xdisp.c (try_window_id): Undo last change.
5067
5068 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
5069
5070 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
5071
5072 * buffer.c (syms_of_buffer): Doc fix.
5073
5074 2001-03-26 Gerd Moellmann <gerd@gnu.org>
5075
5076 * xfaces.c (x_update_menu_appearance): Use local variable
5077 popup_path for setting font resources.
5078
5079 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
5080
5081 * frame.c (Fframe_list): Don't reference tip_frame if
5082 HAVE_WINDOW_SYSTEM is not defined.
5083
5084 * emacs.c (main): Update the copyright year. From Werner LEMBERG
5085 <wl@gnu.org>.
5086
5087 2001-03-25 Gerd Moellmann <gerd@gnu.org>
5088
5089 * xdisp.c (init_from_display_pos): Test invisible property
5090 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
5091
5092 * xdisp.c (redisplay_internal) <update one window>: Make sure
5093 last_arrow_position and last_arrow_string are set.
5094
5095 * frame.c (Fframe_list): Don't return a tooltip frame.
5096
5097 2001-03-23 Gerd Moellmann <gerd@gnu.org>
5098
5099 * xdisp.c (mark_window_display_accurate_1): New function,
5100 extracted from mark_window_display_accurate.
5101 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
5102 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
5103 (mark_window_display_accurate): Use it.
5104 (redisplay_internal): Use it for the selected window.
5105 (redisplay_internal): Avoid duplicate mark_window_display_accurate
5106 for the selected frame.
5107
5108 * xdisp.c Use make_number, for readability.
5109 (try_window_id): Disable rows below the window end.
5110 (try_window_reusing_current_matrix): Use cursor_row_p.
5111 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
5112 of rows.
5113 (init_from_display_pos): If POS specifies a position in a display
5114 vector, maybe get the iterator set up for that ellipsis.
5115
5116 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
5117
5118 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
5119
5120 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
5121
5122 2001-03-23 Gerd Moellmann <gerd@gnu.org>
5123
5124 * xfaces.c (x_update_menu_appearance): Use a different path
5125 for Lucid popup menus.
5126
5127 2001-03-22 Stefan Monnier <monnier@cs.yale.edu>
5128
5129 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
5130
5131 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
5132 (string_buffer_position): Use `make_number'.
5133
5134 2001-03-22 Gerd Moellmann <gerd@gnu.org>
5135
5136 * xfaces.c (x_update_menu_appearance): Renamed from
5137 x_set_menu_face_resources. Use different resources for popups.
5138
5139 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
5140 (GC_CHECK_STRING_BYTES): Don't define.
5141
5142 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
5143 Removed, together with subroutines.
5144 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
5145 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
5146
5147 * dispextern.h (x_set_menu_resources_from_menu_face):
5148 Remove prototype.
5149
5150 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
5151 Remove calls to x_set_menu_resources_from_menu_face.
5152
5153 * xfaces.c (xm_set_menu_resources_from_menu_face):
5154 Remove #ifndef LESSTIF_VERSION.
5155
5156 * xmenu.c: Include widget.h.
5157 (single_submenu): Return int. Some cleanup.
5158 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
5159
5160 2001-03-21 Gerd Moellmann <gerd@gnu.org>
5161
5162 * xterm.c (x_update_window_end): Handle overwritten mouse face
5163 also for tool bar windows.
5164 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
5165 DRAW is DRAW_IMAGE_RAISED.
5166
5167 2001-03-20 Gerd Moellmann <gerd@gnu.org>
5168
5169 * print.c (syms_of_print): Doc fixes.
5170
5171 * fns.c (Fmd5): Doc fix.
5172
5173 2001-03-19 Gerd Moellmann <gerd@gnu.org>
5174
5175 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
5176 Clear area of the frame not occupied by the scroll bar.
5177
5178 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
5179 tip frame's root window buffer to *tip* right after creating
5180 the frame.
5181
5182 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
5183 is an integer don't have to be for space characters.
5184
5185 2001-03-16 Gerd Moellmann <gerd@gnu.org>
5186
5187 * indent.c (current_column, current_column_1, Fmove_to_column)
5188 (compute_motion): Handle characters from display vectors differently.
5189
5190 2001-03-15 Kenichi Handa <handa@etl.go.jp>
5191
5192 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
5193 drawing glyph string.
5194
5195 2001-03-15 Gerd Moellmann <gerd@gnu.org>
5196
5197 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
5198 (command_loop_1): Undo last change.
5199
5200 * xterm.c (fast_find_position): Return the correct vpos.
5201
5202 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
5203 non-null, set a per-buffer value in BUF instead of the current buffer.
5204 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
5205 Call store_symval_forwarding with BUF null.
5206 (set_internal): Call store_symval_forwarding with the BUF
5207 parameter passed to set_internal. Formerly, the value was always
5208 set in the current buffer; the buffer recorded in specbind for
5209 this case wasn't used.
5210 (arith_driver): Reindent.
5211
5212 * buffer.c (swap_out_buffer_local_variables):
5213 Call store_symval_forwarding with BUF null.
5214
5215 * lisp.h (store_symval_forwarding): Change prototype.
5216
5217 * eval.c (specbind): Call store_symval_forwarding with BUF null.
5218
5219 2001-03-14 Gerd Moellmann <gerd@gnu.org>
5220
5221 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
5222 FOR_DELETION. Avoid resizing the mini-window of the selected
5223 frame if FOR_DELETION is set.
5224 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
5225 (Fmake_frame_invisible): Change calls to do_switch_frame for new
5226 signature.
5227
5228 * window.c (Fset_window_configuration): Change call to
5229 do_switch_frame to new format.
5230
5231 * keyboard.c (quit_throw_to_read_char): Change call to
5232 do_switch_frame to new format.
5233
5234 * lisp.h (do_switch_frame): Change prototype.
5235
5236 * frame.c (Fframe_parameters): In the `buffer-list' frame
5237 parameter, store the buffer list of FRAME, not the list of the
5238 selected frame.
5239
5240 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
5241 box just because the glyph row's full_width_p flag is set.
5242
5243 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
5244
5245 * xdisp.c (highlight_trailing_whitespace): On character terminals,
5246 skip the padding blanks inserted in extend_face_to_end_of_line,
5247 before checking for trailing whitespace.
5248
5249 2001-03-13 Gerd Moellmann <gerd@gnu.org>
5250
5251 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
5252 Remove special handling for LessTif/Motif.
5253 (toplevel): Don't include Xm/Xm.h.
5254
5255 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
5256 Remove workaround code for LessTif; it doesn't work anymore.
5257
5258 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
5259 Xm/ScrollBarP.h.
5260
5261 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
5262 Don't access private scroll bar data; it's no longer necessary with
5263 contemporary LessTif.
5264
5265 * xfaces.c (xm_set_menu_resources_from_menu_face):
5266 Change #if 0 to #ifndef LESSTIF_VERSION.
5267
5268 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
5269 removing button grabs.
5270
5271 2001-03-13 Kenichi Handa <handa@etl.go.jp>
5272
5273 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
5274 and clip-large-size-font as obsolete.
5275
5276 * lread.c (read_multibyte): Check the validity of multibyte
5277 sequence. If invalid, return the first byte.
5278
5279 2001-03-12 Gerd Moellmann <gerd@gnu.org>
5280
5281 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
5282 before running the command; timer functions or process
5283 filters may have set it.
5284
5285 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
5286
5287 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
5288 Doc fix.
5289
5290 2001-03-12 Gerd Moellmann <gerd@gnu.org>
5291
5292 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
5293 to sprintf.
5294
5295 2001-03-09 Gerd Moellmann <gerd@gnu.org>
5296
5297 * dispextern.h (string_buffer_position): Add prototype.
5298
5299 * xdisp.c (string_buffer_position, display_prop_string_p)
5300 (single_display_prop_string_p): New functions.
5301
5302 * xterm.c (note_mouse_highlight): If there's no help-echo on
5303 a string, look at the buffer text ``under'' it.
5304
5305 * keyboard.c (make_lispy_event): Add string info to the event,
5306 analogous to what's done on mode lines.
5307 (read_key_sequence): For a click on a string, consider `local-map'
5308 and `keymap' of that string.
5309
5310 * keyboard.c (make_lispy_event, make_lispy_movement):
5311 Adjust calls to buffer_posn_from_coords to new format.
5312
5313 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
5314
5315 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
5316 POS; return void.
5317
5318 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
5319 flags argument to emacs_open; it seems to conflict with O_EXCL.
5320
5321 2001-03-09 Kenichi Handa <handa@etl.go.jp>
5322
5323 * composite.h (struct composition): Change types of members;
5324 glyph_len to unsigned, width to unsigned short.
5325
5326 2001-03-08 Andrew Innes <andrewi@gnu.org>
5327
5328 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
5329 menu titles.
5330
5331 2001-03-08 Gerd Moellmann <gerd@gnu.org>
5332
5333 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
5334 instead of nil.
5335
5336 * xterm.c (note_mouse_highlight): Handle mouse-face and
5337 help-echo in strings.
5338 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
5339 (fast_find_string_pos): New function.
5340
5341 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
5342 (display_string): Call face_at_string_position with new parameter.
5343
5344 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
5345 Handle `mouse-face'.
5346
5347 * dispextern.h (face_at_string_position): Change prototype.
5348
5349 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
5350
5351 * keyboard.c (make_lispy_event): Avoid generating drag events
5352 if the mouse hasn't actually moved to another buffer position.
5353
5354 2001-03-08 Dave Love <fx@gnu.org>
5355
5356 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
5357
5358 2001-03-08 Gerd Moellmann <gerd@gnu.org>
5359
5360 * process.c (Fset_process_window_size): Fix a typo.
5361
5362 2001-03-08 Kenichi Handa <handa@etl.go.jp>
5363
5364 * coding.c (detect_coding_sjis): Do more rigid check.
5365 (detect_coding_big5): Likewise.
5366 (decode_coding_sjis_big5): Likewise.
5367 (Fdetect_coding_region): Call detect_coding_system with tailing
5368 anchor byte `\0' for more rigid detection.
5369 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
5370 (Fdetect_coding_string): Likewise.
5371
5372 2001-03-07 Stefan Monnier <monnier@cs.yale.edu>
5373
5374 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
5375 a string before extracting its data.
5376
5377 2001-03-07 Gerd Moellmann <gerd@gnu.org>
5378
5379 * window.c (Frecenter): Rewrite code handling negative values
5380 of ARG on graphical frames.
5381
5382 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
5383
5384 * window.c (displayed_window_lines): If W->start is outside the
5385 accessible portion of the buffer, call start_display with BEGV or
5386 ZV instead of W->start.
5387
5388 2001-03-07 Gerd Moellmann <gerd@gnu.org>
5389
5390 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
5391
5392 * process.c (Fset_process_filter): Don't crash if the input
5393 file descriptor of PROCESS is closed.
5394 (Fset_process_window_size): Likewise.
5395
5396 2001-03-06 Kenichi Handa <handa@etl.go.jp>
5397
5398 * xterm.c (XTflash): Make the timeout of select shorter, and call
5399 select repeatedly until the desired time expires.
5400
5401 2001-03-06 Gerd Moellmann <gerd@gnu.org>
5402
5403 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
5404
5405 * xfns.c (Fx_create_frame): Clear Vwindow_list.
5406
5407 * lisp.h (Vwindow_list): Declare extern.
5408
5409 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
5410
5411 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
5412
5413 2001-03-06 Gerd Moellmann <gerd@gnu.org>
5414
5415 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
5416 to detect a case where we have to highlight a different region
5417 despite not having left the currently highlighted region.
5418 Set mouse_face_overlay in the x_display_info.
5419 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
5420
5421 * xterm.h (struct x_display_info): Add mouse_face_overlay.
5422
5423 * buffer.c (mouse_face_overlay_overlaps): New function.
5424
5425 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
5426 (Qmouse_face): Declare extern.
5427
5428 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
5429 if face_change_count is non-zero.
5430
5431 2001-03-06 Kenichi Handa <handa@etl.go.jp>
5432
5433 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
5434 that the source is unibyte.
5435
5436 2001-03-05 Dave Love <fx@gnu.org>
5437
5438 * xterm.c (XTmouse_position): Fix typo.
5439
5440 2001-03-05 Gerd Moellmann <gerd@gnu.org>
5441
5442 * minibuf.c (read_minibuf): Clean up the binding stack if
5443 called noninteractively.
5444
5445 2001-03-05 Kenichi Handa <handa@etl.go.jp>
5446
5447 * coding.c (syms_of_coding): Docstring modified.
5448
5449 2001-03-05 Kenichi Handa <handa@etl.go.jp>
5450
5451 * charset.c (char_to_string): If a single byte char has modifier
5452 bits that can't be reflected to the character code, ignore them
5453 instead of signaling an error.
5454
5455 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
5456
5457 * s/msdos.h: Update copyright notice.
5458
5459 * dosfns.h: Update copyright notice.
5460
5461 * dosfns.c: Update copyright notice.
5462
5463 * msdos.c: Update copyright notice.
5464
5465 2001-03-02 Gerd Moellmann <gerd@gnu.org>
5466
5467 * xterm.c (glyph_rect): New function.
5468 (XTmouse_position): Use it to raise the threshold for mouse
5469 movement event generation.
5470
5471 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
5472
5473 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
5474 specifies (reverse . t), reverse the initial screen colors.
5475 (IT_set_frame_parameters): If the property is foreground-color,
5476 but we are reversing the colors, set bg_set, not fg_set.
5477 Likewise for setting background-color and reversing: set fg_set.
5478 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
5479 in effect.
5480
5481 * xfaces.c (Finternal_set_lisp_face_attribute)
5482 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
5483 parameters alist.
5484
5485 2001-03-02 Gerd Moellmann <gerd@gnu.org>
5486
5487 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
5488 to a single slash in the middle of file names.
5489
5490 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
5491 Accept only alphanumeric time zone names.
5492
5493 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
5494 or width area.
5495 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
5496 a widget to zero height.
5497
5498 2001-03-01 Gerd Moellmann <gerd@gnu.org>
5499
5500 * window.c (Fwindow_end): Call move_it_past_eol only if
5501 ending up on a partially visible line.
5502
5503 2001-03-01 Dave Love <fx@gnu.org>
5504
5505 * ccl.c (Fccl_execute): Doc fix.
5506
5507 2001-03-01 Gerd Moellmann <gerd@gnu.org>
5508
5509 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
5510 of the tool bar before calling x_figure_window_size.
5511
5512 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
5513 NULL after destroying it, otherwise XTread_socket can access a
5514 destroyed widget when input is unblocked.
5515
5516 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
5517
5518 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
5519 same name as before, although there was a change in fontsets.
5520
5521 2001-02-28 Ken Raeburn <raeburn@gnu.org>
5522
5523 * lisp.h (Fframe_parameter): Declare.
5524
5525 * window.c (set_window_buffer): Field vscroll is an int, not a
5526 Lisp_Object.
5527
5528 2001-02-28 Gerd Moellmann <gerd@gnu.org>
5529
5530 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
5531 NULL instead.
5532
5533 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
5534 NULL instead.
5535
5536 * alloc.c (toplevel): Include process.h.
5537 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
5538 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
5539 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
5540 (allocate_vector, allocate_hash_table, allocate_window)
5541 (allocate_frame, allocate_process, allocate_other_vector):
5542 New functions.
5543 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
5544 (mark_maybe_pointer): New function.
5545 (mark_memory): Also mark Lisp data to which only pointers
5546 remain and not Lisp_Objects.
5547 (min_heap_address, max_heap_address): New variables.
5548 (mem_find): Return MEM_NIL if START is below min_heap_address or
5549 above max_heap_address.
5550 (mem_insert): Compute min_heap_address and max_heap_address.
5551
5552 * process.c (make_process): Use allocate_process.
5553
5554 * frame.c (make_frame): Use allocate_frame.
5555
5556 * window.c (make_window, make_dummy_parent): Use allocate_window.
5557 (Fcurrent_window_configuration): Use allocate_other_vector.
5558
5559 * lisp.h (allocate_vectorlike): Remove prototype.
5560 (allocate_vector, allocate_other_vector, allocate_frame)
5561 (allocate_window, allocate_process, allocate_hash_table):
5562 Add prototypes.
5563
5564 * fns.c (Fdelete, larger_vector): Use allocate_vector.
5565 (make_hash_table, copy_hash_table): Use allocate_hash_table.
5566
5567 2001-02-27 Kenichi Handa <handa@etl.go.jp>
5568
5569 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
5570 treat the produced bytes as a valid multibyte sequence.
5571
5572 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
5573 (ccl_driver) <CCL_WriteMultibyteChar2>:
5574 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
5575 <ccl_finish>: Set ccl->eight_bit_control properly.
5576
5577 * ccl.h (struct ccl_program): New member eight_bit_control.
5578
5579 2001-02-26 Stefan Monnier <monnier@cs.yale.edu>
5580
5581 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
5582 accessible_keymaps_char_table.
5583 (accessible_keymaps_char_table): Obey `is_metized'.
5584 (where_is_internal, Fwhere_is_internal): Don't confuse int and
5585 Lisp_Object.
5586
5587 2001-02-26 Gerd Moellmann <gerd@gnu.org>
5588
5589 * dispnew.c: Check HAVE_TERM_H before including term.h.
5590
5591 2001-02-24 Andrew Innes <andrewi@gnu.org>
5592
5593 * makefile.w32-in: Update copyright notice.
5594
5595 2001-02-24 Stefan Monnier <monnier@cs.yale.edu>
5596
5597 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
5598
5599 2001-02-24 Kenichi Handa <handa@etl.go.jp>
5600
5601 * Makefile.in (lisp): Add international/utf-8.elc.
5602
5603 * fontset.c (Fnew_fontset): Fix handling of the case that an
5604 element of FONTLIST is a cons of family and registry.
5605
5606 2001-02-23 Jason Rumney <jasonr@gnu.org>
5607
5608 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
5609 to height unconditionally.
5610
5611 * w32term.c (x_set_glyph_string_background_width): Extend the
5612 background face to the end of the drawing area in the text area, only.
5613 (x_insert_glyphs): Call window_box_left to obtain the left
5614 x-coordinate of the area to shift.
5615
5616 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
5617 safe_run_hooks.
5618
5619 2001-02-22 Andrew Innes <andrewi@gnu.org>
5620
5621 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
5622 ($(BLD)\dispnew.obj):
5623 ($(BLD)\editfns.obj):
5624 ($(BLD)\fileio.obj):
5625 ($(BLD)\filelock.obj):
5626 ($(BLD)\keyboard.obj):
5627 ($(BLD)\w32proc.obj):
5628 ($(BLD)\process.obj):
5629 ($(BLD)\sysdep.obj): Ditto.
5630
5631 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
5632 header files.
5633 ($(BLD)/dispnew.$(O)):
5634 ($(BLD)/editfns.$(O)):
5635 ($(BLD)/fileio.$(O)):
5636 ($(BLD)/filelock.$(O)):
5637 ($(BLD)/keyboard.$(O)):
5638 ($(BLD)/w32proc.$(O)):
5639 ($(BLD)/process.$(O)):
5640 ($(BLD)/sysdep.$(O)): Ditto.
5641
5642 2001-02-22 Gerd Moellmann <gerd@gnu.org>
5643
5644 * xdisp.c (forward_to_next_line_start): When taking the shortcut
5645 at the start of the function, check that the \n in it->c is
5646 from the iterator's current position.
5647
5648 * xdisp.c (handle_single_display_prop): Add parameter
5649 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
5650 properties which replace the display of text with something else.
5651 (handle_display_prop): Call handle_single_display_prop with
5652 additional argument saying if we already replaced text display
5653 with something else. Use AREF.
5654 (with_echo_area_buffer_unwind_data, display_menu_bar)
5655 (decode_mode_spec_coding): Use AREF and ASIZE.
5656
5657 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
5658 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
5659 * vmstime.h: Files removed.
5660
5661 * unexencap.c, unexfx2800.c: Files removed.
5662
5663 * dispnew.c (direct_output_for_insert): Give up if we are showing
5664 a message or just cleared the message because we might need to
5665 resize the echo area window or display an empty echo area.
5666
5667 2001-02-21 Gerd Moellmann <gerd@gnu.org>
5668
5669 * xdisp.c (redisplay_internal): Do the
5670 mark_window_display_accurate after all windows have been
5671 redisplayed because this call resets flags in buffers which are
5672 needed for proper redisplay.
5673
5674 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
5675 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
5676 the old names.
5677
5678 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
5679 busy_window to hourglass_window, busy_p to hourglass_p.
5680
5681 * msdos.h (struct x_output): Rename busy_window to
5682 hourglass_window, busy_p to hourglass_p.
5683
5684 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
5685 busy_window to hourglass_window, busy_p to hourglass_p.
5686
5687 * xfns.c: Rename everything containing *busy_cursor* and similar
5688 to *hourglass*.
5689 (syms_of_w32fns): Rename x-busy-pointer-shape to
5690 x-hourglass-pointer-shape, display-busy-cursor to
5691 display-hourglass, busy-cursor-delay to hourglass-delay.
5692
5693 * w32fns.c: Rename everything containing *busy_cursor* and similar
5694 to *hourglass*.
5695 (syms_of_w32fns): Rename x-busy-pointer-shape to
5696 x-hourglass-pointer-shape, display-busy-cursor to
5697 display-hourglass, busy-cursor-delay to hourglass-delay.
5698
5699 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
5700 of its busy_p flag.
5701
5702 * dispextern.h (start_hourglass, cancel_hourglass)
5703 (display_hourglass_p): Renamed from *busy_cursor*.
5704
5705 2001-02-20 Gerd Moellmann <gerd@gnu.org>
5706
5707 * keyboard.c (read_char): When an event from unread-command-events
5708 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
5709
5710 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
5711 equal to the current buffer.
5712
5713 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
5714 nil, otherwise we're left with truncate_lines t when a message
5715 is printed with message-truncate-lines bound to t.
5716
5717 2001-02-19 Gerd Moellmann <gerd@gnu.org>
5718
5719 * window.c (Fmove_to_window_line): Undo last change.
5720 (displayed_window_lines): Call line_bottom_y to determine
5721 the line's bottom position.
5722
5723 * dispextern.h (line_bottom_y): Add prototype.
5724
5725 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
5726 (pos_visible_p): Use it.
5727
5728 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
5729 set redisplaying_p to 0 here instead of in Frecursive_edit.
5730 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
5731 set redisplaying_p.
5732
5733 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
5734 New variables.
5735 (syms_of_xdisp): Initialize new variables.
5736 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
5737 Specbind `inhibit-menubar-update' when updating the menu bar.
5738
5739 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
5740 safe_run_hooks.
5741
5742 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
5743 safe_run_hooks.
5744
5745 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
5746 is null.
5747
5748 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
5749 to the start of the file.
5750
5751 2001-02-16 Gerd Moellmann <gerd@gnu.org>
5752
5753 * window.c (set_window_buffer): Fix last change.
5754
5755 * window.c (set_window_buffer): Set window's vscroll to 0.
5756
5757 * window.c (coordinates_in_window): Increase width of area
5758 where the vertical line can be dragged.
5759
5760 * xterm.c (x_set_glyph_string_background_width): Extend the
5761 background face to the end of the drawing area in the text
5762 area, only.
5763
5764 * xdisp.c (handle_single_display_prop): Set iterator's position
5765 to where the `display' property starts, like for images.
5766 (dump_glyph): New function.
5767 (dump_glyph_row): Use it. Dump info about marginal areas.
5768
5769 * dispnew.c (direct_output_for_insert): Recognize more cases where
5770 glyphs can be written instead of being inserted.
5771
5772 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
5773 the left x-coordinate of the area to shift.
5774
5775 * dired.c (directory_files_internal): Set result list to nil
5776 before retrying.
5777
5778 2001-02-15 Kenichi Handa <handa@etl.go.jp>
5779
5780 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
5781 invalid multibyte sequence, treat *SRC as a character of
5782 eight-bit-graphic.
5783
5784 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
5785
5786 * textprop.c (Fset_text_properties): Doc fix.
5787
5788 2001-02-15 Gerd Moellmann <gerd@gnu.org>
5789
5790 * dispnew.c (update_text_area): Undo change of 2001-01-12.
5791
5792 2001-02-14 Dave Love <fx@gnu.org>
5793
5794 * coding.c: Doc and message fixes.
5795
5796 2001-02-14 Andrew Innes <andrewi@gnu.org>
5797
5798 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
5799 Emacs frame above the screen size.
5800
5801 2001-02-14 Gerd Moellmann <gerd@gnu.org>
5802
5803 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
5804
5805 2001-02-13 Gerd Moellmann <gerd@gnu.org>
5806
5807 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
5808 case that TO ends up beyond ZV after running before-change-functions.
5809
5810 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
5811 the selected window if it is showing the buffer in question.
5812
5813 * dired.c (directory_files_internal): Initialize errno.
5814 (toplevel): Include errno.h.
5815
5816 2001-02-13 Kenichi Handa <handa@etl.go.jp>
5817
5818 * xfaces.c (best_matching_font): New parameter width_ratio.
5819 Multiply avgwidth by width_ratio.
5820 (choose_face_font): Call best_matching_font with width_ratio
5821 calculated from the column width of C.
5822
5823 2001-02-12 Andrew Innes <andrewi@gnu.org>
5824
5825 The following changes are to draw box lines inside characters area
5826 if line-width is negative.
5827
5828 * w32term.c (x_produce_image_glyph): Pay attention to the case that
5829 face->box_line_width is negative.
5830 (x_produce_stretch_glyph): Likewise.
5831 (x_produce_glyphs): Likewise.
5832 (x_estimate_mode_line_height): Likewise.
5833 (x_draw_glyph_string_background): Likewise.
5834 (x_draw_glyph_string_foreground): Likewise.
5835 (x_draw_composite_glyph_string_foreground): Likewise.
5836 (x_draw_glyph_string_box): Likewise.
5837 (x_draw_image_foreground): Likewise.
5838 (x_draw_image_relief): Likewise.
5839 (x_draw_image_foreground_1): Likewise.
5840 (x_draw_image_glyph_string): Likewise.
5841
5842 2001-02-09 Kenichi Handa <handa@etl.go.jp>
5843
5844 The following changes are to draw box lines inside characters area
5845 if line-width is negative.
5846
5847 * xterm.c (x_produce_image_glyph): Pay attention to the case that
5848 face->box_line_width is negative.
5849 (x_produce_stretch_glyph): Likewise.
5850 (x_produce_glyphs): Likewise.
5851 (x_estimate_mode_line_height): Likewise.
5852 (x_draw_glyph_string_background): Likewise.
5853 (x_draw_glyph_string_foreground): Likewise.
5854 (x_draw_composite_glyph_string_foreground): Likewise.
5855 (x_draw_glyph_string_box): Likewise.
5856 (x_draw_image_foreground): Likewise.
5857 (x_draw_image_relief): Likewise.
5858 (x_draw_image_foreground_1): Likewise.
5859 (x_draw_image_glyph_string): Likewise.
5860
5861 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
5862 and :line-width can be negative.
5863 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
5864
5865 2001-02-09 Jason Rumney <jasonr@gnu.org>
5866
5867 * w32term.c (w32_encode_char): Treat eight bit graphic and control
5868 characters the same as ASCII and latin-1.
5869 (x_display_and_set_cursor): Check for the focus frame's selected
5870 window instead of selected_window.
5871 (x_after_update_window_line): Don't clear if frame's internal
5872 border width is zero.
5873 (x_new_font): Don't change a tooltip's size.
5874 (w32_initialize): Set char_ins_del_ok to 1.
5875
5876 * w32fns.c (Fx_show_tip): Fix calls to make_number.
5877 (x_set_font): If font hasn't changed, avoid recomputing
5878 faces and other things.
5879 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
5880 (Fx_create_frame): Add the tool bar height to the frame height.
5881 (x_create_tip_frame): Prevent changing the tooltip's
5882 background color by specifying a color for the default font
5883 in .Xdefaults.
5884 (Qcancel_timer): New variable.
5885 (syms_of_w32fns): Initialize and staticpro it.
5886 (Fx_hide_tip, Fx_show_tip): Use it.
5887 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
5888 the timer.
5889 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
5890
5891 * w32.c (init_environment): Duplicate local string before putenv.
5892
5893 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
5894
5895 * charset.c (Fstring): A typo.
5896
5897 2001-02-09 Kenichi Handa <handa@etl.go.jp>
5898
5899 * charset.c (Fstring): If all arguments are less than 256, return
5900 a unibyte string.
5901
5902 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
5903 return a unibyte string.
5904
5905 * coding.c (code_convert_region): After detecting a coding, if
5906 nothing found, set coding->composing to COMPOSITION_NO.
5907 (decode_coding_string): Likewise.
5908
5909 2001-02-08 Stefan Monnier <monnier@cs.yale.edu>
5910
5911 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
5912 to avoid overflow.
5913
5914 2001-02-07 Kenichi Handa <handa@etl.go.jp>
5915
5916 * charset.c (parse_str_to_multibyte): New function.
5917
5918 * charset.h (parse_str_to_multibyte): Extern it.
5919
5920 * print.c (print_string): If we are going to print a unibyte
5921 string into a multibyte buffer, convert the string to multibyte by
5922 str_to_multibyte.
5923
5924 2001-02-06 Andrew Innes <andrewi@gnu.org>
5925
5926 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
5927 been created. It seems we can get sent window messages such as
5928 WM_ERASEBKGND before we properly update a frame.
5929
5930 2001-02-06 Gerd Moellmann <gerd@gnu.org>
5931
5932 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
5933 Avoid some unnecessary cursor positioning.
5934
5935 2001-02-05 Gerd Moellmann <gerd@gnu.org>
5936
5937 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
5938 (LFACE_AVGWIDTH): New macro.
5939 (LFACEP): Use AREF.
5940 (check_lface_attrs): Check LFACE_AVGWIDTH.
5941 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
5942 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
5943 (merge_face_vectors): Check LFACE_AVGWIDTH.
5944 (Finternal_make_lisp_face): Use AREF.
5945 (xm_set_menu_resources_from_menu_face)
5946 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
5947 (Finternal_lisp_face_empty_p): Use AREF.
5948 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
5949 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
5950 Compare average widths..
5951 (best_matching_font): Arrange for comparing average widths.
5952
5953 * dispextern.h (enum lface_attribute_index):
5954 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
5955
5956 2001-02-05 Dave Love <fx@gnu.org>
5957
5958 * puresize.h: Revert last change following loadup.el change.
5959
5960 2001-02-05 Andrew Innes <andrewi@gnu.org>
5961
5962 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
5963 invocation of temacs, to work with Windows 2000.
5964 (bootstrap-emacs): Ditto.
5965
5966 2001-02-05 Gerd Moellmann <gerd@gnu.org>
5967
5968 * xterm.c (x_display_and_set_cursor): Check for the focus
5969 frame's selected window instead of selected_window.
5970
5971 * xdisp.c (try_scrolling): If point is in the line below the
5972 window, make sure to move the iterator at least a canonical
5973 char height down.
5974
5975 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
5976
5977 2001-02-05 Kenichi Handa <handa@etl.go.jp>
5978
5979 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
5980 If invalid, execute CCL_INVALID_CMD.
5981 (ccl_driver): If the CCL program is terminated because of
5982 CCL_STAT_INVALID_CMD, copy the remaining source data to the
5983 destination instead of throwing them away.
5984
5985 2001-02-02 Gerd Moellmann <gerd@gnu.org>
5986
5987 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
5988 faces and other things.
5989
5990 * xdisp.c (get_next_display_element): Fix case of empty
5991 display table entry.
5992
5993 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
5994
5995 * editfns.c (Fconstrain_to_field): Doc fix.
5996
5997 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
5998 into `thoroughly', to make it consistent with the doc string.
5999
6000 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
6001
6002 2001-02-01 Gerd Moellmann <gerd@gnu.org>
6003
6004 * search.c (search_buffer): Call set_search_regs with a byte
6005 position, not a character position.
6006
6007 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
6008 minibuffer-only,
6009
6010 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
6011
6012 * frame.c (Fmodify_frame_parameters): Doc fix.
6013
6014 2001-01-31 Gerd Moellmann <gerd@gnu.org>
6015
6016 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
6017 identifier which is not reserved by Standard C.
6018
6019 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
6020
6021 * window.c (enum window_part): New enumeration.
6022 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
6023 Qright_bitmap_area.
6024 (coordinates_in_window): Return an enumerator from enum
6025 window_part. Fix handling of right scroll bar.
6026 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
6027 `right-fringe' instead of `left-bitmap-area' and
6028 `right-bitmap-area'. Use enumerators from enum window_part
6029 instead of hard-coded integers.
6030 (check_window_containing, window_from_coordinates):
6031 Use enumerators from enum window_part instead of hard-coded integers.
6032 (syms_of_window): Replace Qleft_bitmap_area and
6033 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
6034
6035 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
6036
6037 * editfns.c (Fformat_time_string): Doc fix.
6038
6039 2001-01-31 Stefan Monnier <monnier@cs.yale.edu>
6040
6041 * keymap.c (Fwhere_is_internal): Use the first valid binding
6042 if no ascii binding is found (when firstonly is t).
6043
6044 2001-01-31 Gerd Moellmann <gerd@gnu.org>
6045
6046 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
6047 instead of Finteractive_p.
6048
6049 * lisp.h (interactive_p): Add prototype.
6050
6051 * eval.c (interactive_p): New function.
6052 (Finteractive_p): Use it.
6053
6054 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
6055
6056 2001-01-31 Dave Love <fx@gnu.org>
6057
6058 * .gdbinit (hook-run): Define to run xreload.
6059
6060 * textprop.c (Fset_text_properties): Fix newline in doc string.
6061
6062 2001-01-30 Gerd Moellmann <gerd@gnu.org>
6063
6064 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
6065 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
6066
6067 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
6068 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
6069 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
6070
6071 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
6072 height.
6073
6074 2001-01-30 Dave Love <fx@gnu.org>
6075
6076 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
6077 AFTER_POTENTIAL_GC.
6078
6079 2001-01-29 Gerd Moellmann <gerd@gnu.org>
6080
6081 * bytecode.c (Fbyte_code) <Bcurrent_column>:
6082 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
6083
6084 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
6085
6086 * textprop.c (Fset_text_properties): Doc fix.
6087
6088 2001-01-29 Gerd Moellmann <gerd@gnu.org>
6089
6090 * xdisp.c (forward_to_next_line_start): Remove xassert.
6091
6092 2001-01-29 Jason Rumney <jasonr@gnu.org>
6093
6094 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
6095 returning without releasing it.
6096
6097 2001-01-29 Kenichi Handa <handa@etl.go.jp>
6098
6099 * w32fns.c (w32_font_match): Allocate three more bytes to regex
6100 for '^', '$', and '\0'.
6101
6102 2001-01-28 Andrew Choi <akochoi@i-cable.com>
6103
6104 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
6105 regex for '^', '$', and '\0'.
6106
6107 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
6108 only if current_sblock has been initialized.
6109
6110 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
6111 terminal frame even if it is the only visible frame.
6112
6113 2001-01-28 Kenichi Handa <handa@etl.go.jp>
6114
6115 * fontset.c (font_family_registry): Even if FONTNAME conform to
6116 XLFD, if it specifies other fields than family and registry,
6117 return FONTANME. New argument FORCE if nonzero cancel that feature.
6118 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
6119 a signle byte character. Don't set FAMILY part to nil here.
6120 It is handled by the caller choose_face_font.
6121 (Fnew_fontset): Call font_family_registry with FORCE 0.
6122 (Fset_fontset_font): Likewise.
6123
6124 2001-01-27 Gerd Moellmann <gerd@gnu.org>
6125
6126 * xdisp.c (display_line): Don't treat a newline as fitting
6127 on the line.
6128
6129 2001-01-26 Gerd Moellmann <gerd@gnu.org>
6130
6131 * window.c (size_window): Set the window's orig_top to nil when
6132 changing heights, so that a future shrink_mini_window won't
6133 restore a bogus height.
6134
6135 * frame.c (do_switch_frame): If selected frame has a mini-window,
6136 resize that to exact size.
6137
6138 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
6139
6140 * xdisp.c (display_line): Simplify check for glyphs fitting
6141 entirely in the line.
6142
6143 * xfns.c (xic_style): New variable.
6144 (create_frame_xic): Move static variable to global scope for
6145 the case that `static' gets defined away.
6146
6147 2001-01-26 Kenichi Handa <handa@etl.go.jp>
6148
6149 * coding.c (decode_coding): Set a flag for inhibiting
6150 inconsistent eol.
6151 (code_convert_region): Always set saved_coding_symbol.
6152 (decode_coding_string): Likewise. Update coding->symbol when we
6153 encounter a inconsistent eol by the same way as code_convert_region.
6154
6155 2001-01-25 Gerd Moellmann <gerd@gnu.org>
6156
6157 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
6158 XClearArea.
6159
6160 * xterm.c (x_after_update_window_line): Don't clear if frame's
6161 internal border width is zero.
6162 (x_clear_area): New function.
6163 (x_after_update_window_line, x_clear_end_of_line)
6164 (x_scroll_bar_create, x_scroll_bar_set_handle)
6165 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
6166 instead of XClearArea.
6167
6168 * xterm.h (x_clear_area): Add prototype.
6169
6170 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
6171 which doesn't seem necessary anymore with Lesstif 0.92.
6172
6173 2001-01-25 Dave Love <fx@gnu.org>
6174
6175 * puresize.h (BASE_PURESIZE): Up to 720000.
6176
6177 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
6178
6179 2001-01-25 Gerd Moellmann <gerd@gnu.org>
6180
6181 * xdisp.c (echo_area_display): Don't call redisplay_internal
6182 when Emacs is shutting down. We can't run hooks etc. that
6183 would be necessary to do a redisplay.
6184
6185 * lread.c (read_integer): Use type EMACS_INT instead of int.
6186
6187 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
6188
6189 * ccl.c (ccl_driver): Fix last change.
6190
6191 2001-01-25 Kenichi Handa <handa@etl.go.jp>
6192
6193 * ccl.h (sturct ccl_program): New member suppress_error.
6194
6195 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
6196 insert error message to the output.
6197 (setup_ccl_program): Initialize ccl->suppress_error to 0.
6198
6199 * coding.h (struct coding_system): New member suppress_error.
6200
6201 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
6202 (Fset_terminal_coding_system_internal): Set the member
6203 suppress_error to 1.
6204 (Fset_safe_terminal_coding_system_internal): Likewise.
6205
6206 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
6207
6208 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
6209 as if it was a `charset'.
6210
6211 2001-01-24 Gerd Moellmann <gerd@gnu.org>
6212
6213 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
6214 value in where_is_cache; the next lookup in the cache returns
6215 something bogus if we do.
6216
6217 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
6218
6219 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
6220 if HAVE_WINDOW_SYSTEM isn't defined.
6221
6222 2001-01-24 Gerd Moellmann <gerd@gnu.org>
6223
6224 * fns.c (sweep_weak_table): Fix code taking items out of
6225 the hash collision chain. Some cleanup.
6226
6227 * xterm.c (x_new_font): Don't change a tooltip's size.
6228
6229 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
6230 background color by specifying a color for the default font
6231 in .Xdefaults.
6232
6233 2001-01-24 Kenichi Handa <handa@etl.go.jp>
6234
6235 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
6236 a workaround for SunOS 4's cc.
6237 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
6238 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
6239 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
6240 statement.
6241
6242 2001-01-23 Gerd Moellmann <gerd@gnu.org>
6243
6244 * xterm.c (x_set_window_size_1): New function extracted from
6245 x_set_window_size.
6246 (x_set_window_size): Use it.
6247 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
6248 doesn't have a widget, like tooltips.
6249
6250 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
6251
6252 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
6253
6254 2001-01-23 Kenichi Handa <handa@etl.go.jp>
6255
6256 * fns.c (Fset_char_table_default): Fix to make sub char-table
6257 correctly.
6258
6259 2001-01-22 Gerd Moellmann <gerd@gnu.org>
6260
6261 * xdisp.c (build_desired_tool_bar_string): Make sure we have
6262 a desired tool bar string, even if there are no tool bar items.
6263
6264 * xdisp.c (Ftool_bar_lines_needed): New function.
6265 (syms_of_xdisp): Defsubr it.
6266
6267 * editfns.c (Fformat): Don't extend text properties from arguments
6268 to padding chars in the result.
6269
6270 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
6271
6272 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
6273
6274 2001-01-20 Andrew Innes <andrewi@gnu.org>
6275
6276 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
6277 (w32_initialize): Don't set term hooks that aren't actually needed
6278 in windowed mode.
6279
6280 * xfaces.c (realize_default_face):
6281 (realize_face):
6282 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
6283
6284 * xdisp.c (handle_single_display_prop): Remove references to
6285 FRAME_W32_CONSOLE_P.
6286
6287 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
6288
6289 * frame.h (output_method): Remove output_w32_console method.
6290 (FRAME_W32_CONSOLE_P): Remove macro.
6291
6292 * frame.c (Qw32_console): Remove variable.
6293 (Fframep): Remove references to it.
6294 (syms_of_frame): Ditto.
6295 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
6296
6297 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
6298 redefinition.
6299
6300 2001-01-20 Kenichi Handa <handa@etl.go.jp>
6301
6302 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
6303
6304 2001-01-19 Andrew Innes <andrewi@gnu.org>
6305
6306 * w32.c (init_environment): Add a version-independent site-lisp
6307 directory to EMACSLOADPATH, after the version dependent one.
6308
6309 2001-01-19 Gerd Moellmann <gerd@gnu.org>
6310
6311 * editfns.c (Fbuffer_substring): Doc fix.
6312
6313 * xdisp.c (message_dolog, message2, message2_nolog):
6314 Rename parameter LEN to NBYTES.
6315
6316 2001-01-19 Kenichi Handa <handa@etl.go.jp>
6317
6318 * charset.c (strwidth): Use c_string_width.
6319 (c_string_width): New function.
6320 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
6321 Caller changed.
6322
6323 * charset.h (c_string_width, lisp_string_width): Extern them.
6324
6325 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
6326
6327 * indent.c (check_composition): Check validity of composition.
6328
6329 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
6330 characters by calling c_string_width.
6331 (x_consider_frame_title): Get byte length of frame tile string
6332 correctly.
6333 (display_mode_element): Pay attention to width of non-ASCII
6334 characters by calling strwidth.
6335
6336 2001-01-18 Gerd Moellmann <gerd@gnu.org>
6337
6338 * xfns.c (Qcancel_timer): New variable.
6339 (syms_of_xfns): Initialize and staticpro it.
6340 (Fx_hide_tip, Fx_show_tip): Use it.
6341 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
6342 the timer.
6343 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
6344
6345 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
6346
6347 * window.h (WINDOW_LIVE_P): New macro.
6348
6349 * window.c (window_size_fixed): New variable.
6350 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
6351 the doc string.
6352
6353 * eval.c (specbind): If binding a per-buffer variable which
6354 doesn't have a buffer-local value in the current buffer, change
6355 the global value by changing the value of the symbol bound in all
6356 buffers not having their own value, to make it consistent with
6357 what happens with other buffer-local variables.
6358
6359 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
6360
6361 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
6362 when searching for a newline.
6363
6364 2001-01-18 Kenichi Handa <handa@etl.go.jp>
6365
6366 * xdisp.c (display_string): Fix previous change.
6367
6368 2001-01-18 Jason Rumney <jasonr@gnu.org>
6369
6370 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
6371 GLYPH_DEBUG is defined.
6372 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
6373 true for images with `:ascent 100'.
6374 (x_set_mouse_face_gc): If the last used mouse face has gone in the
6375 meantime, use face MOUSE_FACE_ID.
6376 If first glyph isn't a character glyph, use the ASCII NUL
6377 character to determine the face.
6378 (expose_area): Do not treat left margin specially.
6379 (note_mode_line_highlight): If no local_map, check global keymap.
6380 (note_mouse_highlight): Initialize overlay.
6381 (clear_mouse_face): Don't return if tip_frame is non-nil.
6382 (show_scroll_bars): Remove unused function.
6383 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
6384 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
6385 Clip to row.
6386 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
6387 (x_free_frame_resources): Unload relief colors.
6388
6389 2001-01-17 Gerd Moellmann <gerd@gnu.org>
6390
6391 * xdisp.c (forward_to_next_line_start): Avoid calling
6392 get_next_display_element when the newline is already found.
6393 This may change the iterator's position, when its current position is
6394 equal to the iterator's stop_charpos.
6395
6396 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
6397 zero, use this method only at the end of a line.
6398
6399 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
6400 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
6401 if SCALABLE_FONTS_P is set.
6402
6403 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
6404 so that scalable fonts are included.
6405
6406 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
6407 In the cache, use a key containing the information if scalable
6408 fonts are included.
6409 (x_load_font): Adapt to change of keys in the font cache.
6410
6411 2001-01-17 Kim F. Storm <storm@filanet.dk>
6412
6413 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
6414 XListFonts to take advantage of font caching.
6415
6416 * xterm.c (x_list_fonts): Ensure caching font information when
6417 called for a null frame, which is the case frequently when Emacs
6418 starts.
6419
6420 2001-01-17 Gerd Moellmann <gerd@gnu.org>
6421
6422 * xfns.c (QCconversion): Replaces QCalgorithm.
6423
6424 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
6425
6426 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
6427 of :algorithm.
6428
6429 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
6430 not everything could be displayed.
6431
6432 * line.h, x-list-font.c: Files removed because unused.
6433
6434 2001-01-17 Andrew Innes <andrewi@gnu.org>
6435
6436 * dired.c (directory_files_internal): Convert result from readdir
6437 to a unibyte string initially, to avoid possible misinterpretation
6438 of some bytes as the internal form of Emacs characters.
6439
6440 2001-01-17 Kenichi Handa <handa@etl.go.jp>
6441
6442 * fns.c (concat): Be sure to avoid putting the same `composition'
6443 property on the adjacent regions.
6444
6445 2001-01-16 Gerd Moellmann <gerd@gnu.org>
6446
6447 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
6448 (Fscroll_right, Fscroll_left): Set it here instead, if called
6449 interactively.
6450
6451 * buffer.c (Fset_buffer_modified_p): Set buffer's
6452 prevent_redisplay_optimizations_p flag.
6453
6454 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
6455 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
6456 with additional arg.
6457
6458 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
6459 Change prototype.
6460
6461 * xdisp.c (redisplay_preserve_echo_area): Add parameter
6462 FROM_WHERE, for debugging.
6463
6464 2001-01-16 Kenichi Handa <handa@etl.go.jp>
6465
6466 * ccl.c (Fregister_ccl_program): Handle the return value of
6467 resolve_symbol_ccl_program correctly.
6468 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
6469
6470 2001-01-15 Gerd Moellmann <gerd@gnu.org>
6471
6472 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
6473 has gone in the meantime, use face MOUSE_FACE_ID.
6474
6475 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
6476 If x_display_info_for_display returns null, don't try to close
6477 the display; we didn't open it.
6478
6479 * dispnew.c (save_or_restore_current_matrices): Function removed.
6480 (save_current_matrix, restore_current_matrix): New functions.
6481 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
6482 restore the frame's current matrix. Due to the glyph pointer
6483 setup done in adjust_glyph_matrix, there is no easy way to make
6484 saving the current matrix in the desired matrix generally correct,
6485 so don't try it.
6486
6487 2001-01-15 Kenichi Handa <handa@etl.go.jp>
6488
6489 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
6490 truncation glyphs.
6491 (display_line): Optimize for wide characters.
6492 (display_string): Don't try to display a multi-column character
6493 partially. On ttys, produce more than one truncation glyph for
6494 multi-column characters that don't fit on the line.
6495
6496 2001-01-13 Kenichi Handa <handa@etl.go.jp>
6497
6498 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
6499 Define it instead of WORDS_BIGENDIAN. Caller changed.
6500
6501 2001-01-13 Jason Rumney <jasonr@gnu.org>
6502
6503 * w32fns.c (Fimage_size, image_ascent, lookup_image)
6504 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
6505 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
6506 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
6507
6508 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
6509 (x_draw_image_relief, x_draw_image_foreground_1)
6510 (x_draw_image_glyph_string): Adapt to change of image margins.
6511
6512 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
6513 variables.
6514
6515 * w32bdf.c (search_file_line, get_cached_font_char)
6516 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
6517
6518 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
6519
6520 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
6521 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
6522 (Fw32_send_sys_command): Remove unused variables.
6523 (w32_msg_pump): Add parentheses.
6524
6525 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
6526 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
6527 Add parentheses.
6528
6529 2001-01-12 Gerd Moellmann <gerd@gnu.org>
6530
6531 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
6532 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
6533 being a pair of margins.
6534 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
6535 to DEFVAR_LISP. Extend doc.
6536
6537 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
6538 margins.
6539 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
6540 pair of integers `(X . Y)', use X for the horizontal and Y for the
6541 vertical margin.
6542 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
6543 (parse_image_spec): Check it.
6544 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
6545 (tiff_format, gif_format, gs_format):
6546 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
6547
6548 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
6549 (x_draw_image_relief, x_draw_image_foreground_1)
6550 (x_draw_image_glyph_string): Adapt to the change of image margins.
6551
6552 * dispextern.h (struct image): Replace member `margin' with
6553 `hmargin' and `vmargin'.
6554
6555 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
6556 and GLYPHS.
6557
6558 * dispnew.c (update_text_area): Put code which decrements the
6559 stop position when the row's face extends to the end of the
6560 line in #if 0.
6561
6562 * xfns.c (x_set_mouse_color): Fix color allocation.
6563
6564 * keyboard.c: Call get_local_map with new argument list.
6565
6566 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
6567
6568 * intervals.h (enum map_property): Removed.
6569 (get_local_map): Change prototype.
6570
6571 * keymap.c: Call get_local_map with new argument list.
6572 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
6573
6574 2001-01-11 Gerd Moellmann <gerd@gnu.org>
6575
6576 * xdisp.c (build_desired_tool_bar_string): Correct the computation
6577 of the size needed for the tool bar string. For the last image,
6578 use a `display' property that reaches to the end of the string.
6579
6580 * xselect.c (selection_request_dpyinfo): New variable.
6581 (x_handle_selection_request): Set it.
6582 (x_selection_request_lisp_error): Don't call
6583 x_decline_selection_request if selection request's display has
6584 been closed.
6585
6586 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
6587 Do the unregister_colors before calling XFreeColors.
6588
6589 2001-01-10 Dave Love <fx@gnu.org>
6590
6591 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
6592 ${SOME_MACHINE_LISP}, not ${lisp}.
6593
6594 2001-01-10 Gerd Moellmann <gerd@gnu.org>
6595
6596 * xdisp.c (display_line): On ttys, produce more than one truncation
6597 glyph for multi-column characters that don't fit on the line.
6598
6599 * xselect.c (x_reply_selection_request): Add a comment.
6600
6601 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
6602 XkbGetNames instead of XkbGetKeyboard.
6603
6604 2001-01-10 Dave Love <fx@gnu.org>
6605
6606 * sysdep.c (random): Revert the declaration.
6607
6608 2001-01-09 Gerd Moellmann <gerd@gnu.org>
6609
6610 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
6611 Call function string_bytes.
6612 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
6613
6614 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
6615 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
6616 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
6617 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
6618 the current sblock.
6619 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
6620 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
6621 after sweeping strings, and at the end.
6622 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
6623
6624 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
6625 ensure that pop_message is called.
6626
6627 * keyboard.c (Fexecute_extended_command): Use a
6628 record_unwind_protect to ensure that pop_message is called.
6629
6630 * lisp.h (push_message_unwind): Add prototype.
6631
6632 * xdisp.c (push_message_unwind): New function.
6633
6634 * fileio.c (do_auto_save_unwind): Do the pop_message here
6635 instead of in Fdo_auto_save.
6636 (Fdo_auto_save): Don't call pop_message.
6637
6638 2001-01-08 Ken Raeburn <raeburn@gnu.org>
6639
6640 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
6641 in inner block.
6642
6643 2001-01-08 Gerd Moellmann <gerd@gnu.org>
6644
6645 * window.c (window_scroll_pixel_based): Adjust glyph matrices
6646 when increasing window's vscroll.
6647
6648 * macros.c (Qkbd_macro_termination_hook): New variable.
6649 (syms_of_macros): Initialize and staticpro it.
6650 (pop_kbd_macro): Run kbd-macro-termination-hook.
6651
6652 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
6653
6654 2001-01-07 Dave Love <fx@gnu.org>
6655
6656 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
6657 arglist, for documentation's sake.
6658
6659 2001-01-06 Andrew Innes <andrewi@gnu.org>
6660
6661 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
6662 of *.pdb.
6663
6664 2001-01-05 Andrew Innes <andrewi@gnu.org>
6665
6666 * term.c (update_end): Don't check updating_frame; for some reason
6667 this can be 0 sometimes, such as after dismissing a popup menu,
6668 and isn't necessary given the explicit frame argument.
6669
6670 2001-01-05 Gerd Moellmann <gerd@gnu.org>
6671
6672 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
6673 on some systems, and an unsigned long on others, like FreeBSD 4.1.
6674
6675 2001-01-04 Gerd Moellmann <gerd@gnu.org>
6676
6677 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
6678
6679 * xfns.c (x_create_tip_frame): Preserve the value of
6680 face_change_count around the creation of the tip frame.
6681
6682 * xfns.c (last_show_tip_args): New variable.
6683 (compute_tip_xy): New function.
6684 (Fx_show_tip): Reuse an existing tip frame, if possible.
6685 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
6686
6687 2001-01-04 Dave Love <fx@gnu.org>
6688
6689 * editfns.c (Fformat): Doc fix.
6690
6691 * systime.h (set_file_times): Prototype.
6692
6693 * widget.h (EmacsFrameSetCharSize_): Prototype.
6694
6695 * sysdep.c (random, srandom): Declare explicitly.
6696
6697 * dispextern.h (move_it_vertically_backward): Declare.
6698
6699 2001-01-04 Gerd Moellmann <gerd@gnu.org>
6700
6701 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
6702 like in Fx_create_frame.
6703
6704 * xfaces.c (set_font_frame_param): Don't do anything for
6705 non-graphical frames.
6706
6707 * window.c (Fdelete_other_windows): Set window's window_end_valid
6708 to nil when changing the window's start. Don't change the
6709 window's start when its top position hasn't changed. If we do,
6710 this will set the window's optional_new_start, which act's like a
6711 force_start during redisplay with C-x 1 M-> under particular
6712 circumstances (see report from Per Starback to emacs-pretest-bug
6713 from 2000-12-13.).
6714
6715 2001-01-03 Gerd Moellmann <gerd@gnu.org>
6716
6717 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
6718 short cut at the start of the function. Add an assertion.
6719 (reseat_at_next_visible_line_start): Add an assertion.
6720
6721 * window.c (Frecenter): When changing the window start, set the
6722 window's window_end_valid to nil.
6723 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
6724
6725 * dispextern.h (move_it_past_eol): Add prototype.
6726
6727 * xdisp.c (move_it_past_eol): New function.
6728
6729 * window.c (Fwindow_end): Doc fix.
6730
6731 2001-01-03 Dave Love <fx@gnu.org>
6732
6733 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
6734
6735 2001-01-03 Gerd Moellmann <gerd@gnu.org>
6736
6737 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
6738 the enabled_p flag of the glyph row at window_end_vpos to 0.
6739 (handle_single_display_prop): Fix last change.
6740
6741 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
6742
6743 * window.c (Frecenter): Doc fix.
6744
6745 2001-01-02 Andrew Innes <andrewi@gnu.org>
6746
6747 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
6748
6749 * frame.h (output_method): Add output_w32_console method.
6750 (FRAME_W32_CONSOLE_P): New macro.
6751
6752 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
6753 use output_w32_console method.
6754 (Qw32_console): New Lisp_Object.
6755 (Fframep): Return it.
6756 (syms_of_frame): Init it.
6757 (Fframe_parameters): Report w32console as font for w32_console frames.
6758
6759 * xfaces.c (realize_default_face): Set face foreground and
6760 background to unspecified for w32_console frames.
6761 (realize_face): Realize face cache for w32_console frames.
6762 (realize_tty_face): Accept w32_console frames.
6763
6764 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
6765 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
6766 necessary, even if running interactively.
6767
6768 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
6769 w32_console frames.
6770
6771 * w32term.c (x_update_begin):
6772 (x_update_end):
6773 (x_clear_frame):
6774 (x_ins_del_lines):
6775 (x_change_line_highlight):
6776 (x_delete_glyphs):
6777 (w32_ring_bell):
6778 (x_update_begin):
6779 (x_update_end):
6780 (w32_reassert_line_highlight):
6781 (w32_frame_rehighlight):
6782 (w32_frame_raise_lower): Do nothing if not w32 frame.
6783
6784 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
6785
6786 * w32fns.c (Fx_display_color_cells): Determine correct value, when
6787 system doesn't tell us directly.
6788 (Fx_display_visual_class): Implement properly.
6789
6790 2001-01-02 Gerd Moellmann <gerd@gnu.org>
6791
6792 * window.c (Frecenter): Handle centering in graphical frames
6793 specially. Centering on the basis of line counts doesn't work
6794 reliably with variable-height lines.
6795
6796 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6797
6798 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
6799 and al[].
6800
6801 * composite.c (run_composition_function): Remove unused var `val'.
6802 (update_compositions): Remove unused variable `hook'.
6803
6804 * intervals.c (get_local_map): Remove unused variable `tem'.
6805
6806 * doprnt.c (doprnt1): Remove unused variable `size'.
6807
6808 * fns.c (Flength): Remove unused variable `tail'.
6809 (Fdelete): Remove unused variable `size'.
6810
6811 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
6812 and `gcpro2'.
6813
6814 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
6815
6816 * data.c (find_symbol_value): Remove extra 3rd argument in the
6817 call to swap_in_symval_forwarding.
6818
6819 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
6820
6821 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
6822 (trivial_regexp_p): Remove unused variable `c'.
6823 (boyer_moore): Remove unused variable `k'.
6824
6825 * indent.c (current_column): Remove unused variable `stopchar'.
6826 (Fcompute_motion): Remove unused variable `contin'.
6827
6828 * casefiddle.c (casify_object): Remove unused variable `tolen'.
6829
6830 * dired.c (directory_files_internal): Fix a typo in a comment.
6831 Remove an unused variable `handler'.
6832 (file_name_completion): Remove unused function-scope variable `dp'.
6833 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
6834 on BSD4_2.
6835
6836 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
6837
6838 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
6839 and `buf'.
6840 (Fmarker_insertion_type): Remove unused variable `buf'.
6841
6842 * insdel.c (make_gap): Remove unused variable `result'.
6843
6844 * keyboard.c (record_char): Remove unused function-scope var `help'.
6845 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
6846 (menu_bar_items): Remove unused function-scope variable `tem'.
6847
6848 * fontset.c (fontset_ref): Remove unused variable `i'.
6849 (fontset_set): Remove unused variables `j' and `tmp'.
6850 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
6851 (make_fontset_for_ascii_face): Remove unused variable `name'.
6852 (fs_load_font): Remove unused variable `font_idx'.
6853 (fs_query_fontset): Remove unused function-local variable `fontset'.
6854 (list_fontsets): Remove unused variable `tail'.
6855 (Fnew_fontset): Remove unused variables `family' and `registry'.
6856 (accumulate_font_info): Remove unused variable `tmp'.
6857 (Ffontset_font): Remove unused variable `id'.
6858 (syms_of_fontset): Remove unused variable `i'.
6859
6860 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
6861 to x_term_init.
6862 (lookup_image): Remove unused variable `file'.
6863 (xbm_load): Remove unused variables `bitmap_data', `height', and
6864 `width'. Remove function-local variable `i', leave the
6865 block-local one.
6866 (gif_load): Remove unused variable `inc'.
6867
6868 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
6869 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
6870 leave only the one in the inner block.
6871
6872 * xfaces.c (face_fontset, realize_default_face): Remove unused
6873 variable `fontset'.
6874 (face_at_buffer_position): Remove unused variable `multibyte_p'.
6875
6876 * term.c (encode_terminal_code): Remove unused variable `c'.
6877
6878 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
6879 char *' instead of `char *'.
6880
6881 * category.c (Fcategory_docstring): Remove unused variable `doc'.
6882 (Fget_unused_category): Remove unused variable `docstring_vector'.
6883 (Fchar_category_set): Remove unused variables `val', `charset',
6884 `c1' and `c2'.
6885
6886 * coding.c (detect_coding_iso2022, setup_coding_system):
6887 Remove unused variable `i'.
6888 (detect_coding_mask): Remove unused variable `idx'.
6889 (detect_coding): Remove unused variable `i'.
6890 (ccl_coding_driver): Remove unused variable `result'.
6891 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
6892 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
6893 (encode_coding_string): Remove unused variables `gcpro1' and
6894 `saved_coding_symbol'.
6895 (Ffind_coding_systems_region_internal): Remove function-local
6896 variable args[], leave only the block-local one.
6897 (code_convert_region1): Remove unused variable `len'.
6898
6899 * charset.c (char_printable_p): Remove unused variable `chars'.
6900 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
6901 (str_to_multibyte): Remove unused variable `c'.
6902
6903 * window.c (size_window): Remove block-local variable `min_size'.
6904
6905 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
6906 `header_line_height'.
6907 (append_space, extend_face_to_end_of_line): Declare `saved_what'
6908 enum display_element_type.
6909
6910 2001-01-02 Gerd Moellmann <gerd@gnu.org>
6911
6912 * xterm.c (x_connection_closed): Catch X errors around all
6913 statements that call X. Save away the error message in a local copy.
6914
6915 * xterm.c (x_connection_closed): Set handling_signal to 0 at
6916 the start.
6917
6918 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
6919 in or at the start of invisible text.
6920
6921 * dispnew.c (update_window): Don't check_current_matrix_flags.
6922
6923 2001-01-01 Jason Rumney <jasonr@gnu.org>
6924
6925 * w32fns.c (x_figure_window_size): Do not allow new_height and
6926 new_width of frame to override specified values.
6927
6928 2000-12-30 Kenichi Handa <handa@etl.go.jp>
6929
6930 * composite.c (find_composition): Fix a code for searching backward.
6931
6932 2000-12-29 Gerd Moellmann <gerd@gnu.org>
6933
6934 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
6935 (update_window) [GLYPH_DEBUG]: Call it.
6936 (scrolling_window): Prevent including current rows which are below
6937 what's displayed in the window.
6938
6939 * xdisp.c (try_window_reusing_current_matrix)
6940 <new start <= old start>: Disable rows in the current matrix
6941 which are below the window after scrolling.
6942
6943 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
6944 is zero. It's not worth the complexity.
6945 (invisible_text_between_p): Put in #if 0 because unused.
6946
6947 2000-12-28 Gerd Moellmann <gerd@gnu.org>
6948
6949 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
6950 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
6951
6952 * keyboard.c (echo_char): If C is an integer, always call
6953 push_key_description. Former code could signal an invalid
6954 character error.
6955
6956 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
6957 If set, print multibyte text.
6958 (Fsingle_key_description): Call push_key_description with
6959 FORCE_MULTIBYTE set.
6960 (describe_buffer_bindings): Likewise.
6961
6962 * lisp.h (push_key_description): Add prototype.
6963
6964 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
6965 around the call to redisplay_internal.
6966
6967 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
6968
6969 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
6970
6971 2000-12-28 Kenichi Handa <handa@etl.go.jp>
6972
6973 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
6974 (ccl_driver): New local variable `extra_bytes'.
6975
6976 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
6977
6978 * coding.c (setup_coding_system):
6979 Initialize coding->spec.ccl.eight_bit_carryover.
6980 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
6981
6982 2000-12-28 Kenichi Handa <handa@etl.go.jp>
6983
6984 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
6985 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
6986 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
6987 (decode_composition_emacs_mule): New function.
6988 (decode_coding_emacs_mule): Decode composition sequence by calling
6989 decode_composition_emacs_mule.
6990 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
6991 (encode_coding_emacs_mule): Changed from macro to function.
6992 If a text contains compositions, encode them correctly.
6993 (setup_coding_system): Set coding->commong_flags for emacs-mule so
6994 that decoding and encoding are required.
6995
6996 2000-12-27 Gerd Moellmann <gerd@gnu.org>
6997
6998 * xfaces.c (PT_PER_INCH): New macro.
6999 (xlfd_point_size): Compute real point size from font's pixel size.
7000 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
7001 instead of 72.
7002
7003 * .gdbinit: Comment out the line pointing to the Lesstif source
7004 directory.
7005
7006 * window.c (Frecenter): Use displayed_window_lines instead
7007 of window_internal_height.
7008
7009 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
7010 instead of x-toolkit-scroll-bars-p.
7011 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
7012
7013 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
7014 instead of x-toolkit-scroll-bars-p.
7015 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
7016
7017 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
7018 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
7019 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
7020 New variables.
7021 (add_window_display_history, add_frame_display_history)
7022 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
7023 (build_frame_matrix_from_leaf_window): Remove unused code.
7024 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
7025 redisplay history.
7026 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
7027 (update_window) [GLYPH_DEBUG]: Likewise.
7028 (syms_of_display): Defsubr dump-redisplay-history.
7029
7030 2000-12-23 Gerd Moellmann <gerd@gnu.org>
7031
7032 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
7033 the end of the prompt. Set echo_after_prompt to the offset
7034 of echoptr in echobuf.
7035
7036 * xdisp.c (init_from_display_pos): Pop until the iterator's
7037 stack is empty; there may be frames for stretch or images
7038 on the stack.
7039
7040 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
7041 (save_or_restore_current_matrix): New function for the same
7042 purpose, but more efficient.
7043 (adjust_frame_glyphs_for_frame_redisplay): Use it.
7044
7045 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
7046
7047 * xdisp.c (syms_of_xdisp): Fix last change.
7048
7049 2000-12-23 Gerd Moellmann <gerd@gnu.org>
7050
7051 * xdisp.c (syms_of_xdisp): Doc fix.
7052
7053 * xdisp.c (redisplay_window): Remove label restore_buffers;
7054 use finish_scroll_bars instead to make sure that scroll bars
7055 are redeemed. If we don't do this, flickering can result from
7056 scroll bars being destroyed and recreated.
7057
7058 2000-12-22 Jason Rumney <jasonr@gnu.org>
7059
7060 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
7061 in the wrong colors when the foreground is not black.
7062 (expose_window): Don't redraw the window that's currently being
7063 updated.
7064
7065 2000-12-22 Gerd Moellmann <gerd@gnu.org>
7066
7067 * window.c (size_window): When setting the window's too_small_ok
7068 flag, compare old size with minimum size depending on WIDTH_P,
7069 don't compare with window_min_width.
7070
7071 * window.c (delete_window): Simplify somewhat.
7072 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
7073 freeing window matrices. The flag windows_or_buffers_changed is
7074 set, so the next redisplay will consider all windows; this should
7075 suffice.
7076
7077 2000-12-22 Kenichi Handa <handa@etl.go.jp>
7078
7079 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
7080
7081 * ccl.h (struct ccl_program): New member cr_consumed.
7082
7083 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
7084 (CCL_READ_CHAR): Handle EOL conversion here.
7085 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
7086
7087 2000-12-21 Gerd Moellmann <gerd@gnu.org>
7088
7089 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
7090
7091 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
7092 otherwise tabs of different size compare equal.
7093
7094 * callint.c (Fcall_interactively): Prevent a compiler warning.
7095
7096 * print.c (print_unwind): Return nil.
7097 (PRINTDECLARE): Initialize all local variables.
7098 (print_preprocess): Add a default case.
7099
7100 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
7101
7102 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
7103
7104 * window.c (delete_window, Fsplit_window)
7105 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
7106
7107 * dispextern.h (ensure_frame_matrix): Function declaration removed.
7108
7109 * dispnew.c (ensure_frame_matrix): Removed.
7110 (save_frame_matrix, restore_frame_matrix): New functions.
7111 (adjust_frame_glyphs_for_frame_redisplay): Use them.
7112
7113 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
7114 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
7115
7116 2000-12-21 Andrew Innes <andrewi@gnu.org>
7117
7118 * w32term.c (x_update_begin): Regenerate the palette here, rather
7119 than for each window.
7120
7121 * w32xfns.c (select_palette): Avoid calling SelectPalette if
7122 palette is NULL, since this corrupts memory! Also get
7123 display_info reference from frame.
7124
7125 2000-12-21 Jason Rumney <jasonr@gnu.org>
7126
7127 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
7128
7129 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
7130 to avoid returning without releasing it.
7131
7132 2000-12-21 Kenichi Handa <handa@etl.go.jp>
7133
7134 * keymap.c (push_key_description): Don't convert eight-bit-control
7135 and eight-bit-graphic to multibyte character.
7136
7137 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
7138 generic character and CODE1 is nil, return the smallest character
7139 in CHARSET.
7140
7141 2000-12-20 Dave Love <fx@gnu.org>
7142
7143 * s/osf5-0.h (NSIG): Don't redefine.
7144
7145 2000-12-20 Stefan Monnier <monnier@cs.yale.edu>
7146
7147 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
7148 excluding menu-bar and tool-bar.
7149 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
7150 (menu_item_p): Remove.
7151 (where_is_internal_1): Don't ignore menu-items.
7152
7153 2000-12-20 Gerd Moellmann <gerd@gnu.org>
7154
7155 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
7156 into account.
7157
7158 * window.c (make_window): Initialize window's min_hscroll.
7159 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
7160 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
7161 to zero.
7162 (struct saved_window): New member min_hscroll.
7163 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
7164 (Fset_window_configuration): Set window's min_hscroll.
7165 (save_window_save): Save window's min_hscroll.
7166 (compare_window_configurations): Compare min_hscroll values.
7167
7168 * window.h (struct window): New member min_hscroll.
7169
7170 * keyboard.c (echo_prompt): Prevent a compiler warning.
7171
7172 * xdisp.c (try_cursor_movement): Fix last change. The real
7173 condition is that PT is at the end of the row, and should
7174 be displayed at the start of the next row.
7175
7176 * xdisp.c (try_cursor_movement): If we end on a partially
7177 visible line, end we already decided to scroll, return -1.
7178
7179 * dispextern.h (ensure_frame_matrix): Add prototype.
7180
7181 * window.c (delete_window, Fsplit_window)
7182 (Fset_window_configuration): Call ensure_frame_matrix.
7183
7184 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
7185 New functions.
7186 (adjust_frame_glyphs_for_frame_redisplay): If display has been
7187 completed, call fake_current_matrices instead of marking frame
7188 garbaged.
7189
7190 2000-12-20 Jason Rumney <jasonr@gnu.org>
7191
7192 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
7193
7194 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
7195
7196 * fns.c (Frequire): Doc fix.
7197
7198 2000-12-19 Gerd Moellmann <gerd@gnu.org>
7199
7200 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
7201
7202 * dispnew.c (direct_output_for_insert): Fix check for mini-window
7203 currently displaying a message.
7204
7205 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
7206 xterm.h.
7207 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
7208
7209 2000-12-18 Andrew Innes <andrewi@gnu.org>
7210
7211 * w32.c (w32_strerror): New function.
7212
7213 * w32.h (w32_strerror): New extern.
7214
7215 * w32fns.c (Fw32_shell_execute): Use it.
7216
7217 2000-12-18 Gerd Moellmann <gerd@gnu.org>
7218
7219 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
7220
7221 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
7222
7223 * msdos.c (IT_set_face): Obey inverse_video.
7224
7225 2000-12-18 Kenichi Handa <handa@etl.go.jp>
7226
7227 * dired.c (directory_files_internal): Always return decoded filenames.
7228
7229 2000-12-18 Gerd Moellmann <gerd@gnu.org>
7230
7231 * xterm.c (x_connection_closed): Prevent being called recursively
7232 because of an error condition in XtCloseDisplay.
7233
7234 * xdisp.c (init_iterator): If noninteractive, and the frame's
7235 face cache is null, make one.
7236
7237 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
7238
7239 * process.c (wait_reading_process_input): Check for pending
7240 input when running timers.
7241
7242 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
7243
7244 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
7245
7246 2000-12-18 Kenichi Handa <handa@etl.go.jp>
7247
7248 * process.c (read_process_output): Don't run a filter if the code
7249 decoder produces nothing but carryover.
7250
7251 2000-12-17 Andrew Innes <andrewi@gnu.org>
7252
7253 * w32.c (sys_rename): Only check errno against EEXIST, and not
7254 EACCES, when determining whether rename failed because the target
7255 exists. This was resulting in indefinite looping on Windows 9x if
7256 the source file was locked by another process.
7257
7258 * w32fns.c (Ffile_system_info): New function.
7259 (syms_of_w32fns): Defsubr it.
7260
7261 2000-12-17 Gerd Moellmann <gerd@gnu.org>
7262
7263 * window.c (coordinates_in_window): Fix computation for
7264 position on vertical line between mode lines.
7265
7266 * xfns.c (unwind_create_frame): Return t if frame was deleted.
7267 Don't alter tip_frame or tip_window.
7268 (unwind_create_tip_frame): Set tip_frame to nil only if frame
7269 was deleted.
7270
7271 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
7272 Don't alter tip_frame or tip_window.
7273 (unwind_create_tip_frame): Set tip_frame to nil only if frame
7274 was deleted.
7275
7276 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
7277
7278 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
7279 be consistent with the doc string. Reported by NAKAJIMA Mikio
7280 <minakaji@osaka.email.ne.jp>.
7281
7282 2000-12-16 Kenichi Handa <handa@etl.go.jp>
7283
7284 * xfaces.c (Vface_ignored_fonts): New variable.
7285 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
7286 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
7287
7288 2000-12-15 Gerd Moellmann <gerd@gnu.org>
7289
7290 * dispnew.c (update_window): Detect pending input every nth line
7291 updated, i.e. do it depending on real work done, and not on the
7292 vpos of the line.
7293
7294 * xterm.c (expose_window): Don't redraw the window that's
7295 currently being updated.
7296
7297 * window.c (Fset_window_point): Remove test for
7298 cursor_in_non_selected_windows.
7299
7300 * lread.c (read1): Recognize end of file after `\\'.
7301
7302 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
7303 not unwind_create_frame.
7304
7305 2000-12-15 Dave Love <fx@gnu.org>
7306
7307 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
7308 bcopy & al.
7309
7310 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
7311
7312 2000-12-15 Kenichi Handa <handa@etl.go.jp>
7313
7314 * coding.c (setup_coding_system): Clear all members of the struct
7315 coding_system at first.
7316 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
7317 argument.
7318 (code_convert_region): Don't override coding->src_multibyte and
7319 coding->dst_multibyte.
7320
7321 * fns.c (Fmd5): Docstring improved.
7322
7323 2000-12-15 Miles Bader <miles@gnu.org>
7324
7325 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
7326 are actually marked as mode-lines; otherwise use
7327 estimate_mode_line_height.
7328
7329 2000-12-14 Gerd Moellmann <gerd@gnu.org>
7330
7331 * editfns.c (Fformat): Prevent a buffer overrun when the format
7332 specifies a precision.
7333
7334 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
7335
7336 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
7337 argument is outside the range [2..3].
7338
7339 2000-12-14 Andrew Innes <andrewi@gnu.org>
7340
7341 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
7342 nothing to do. Bind inhibit-quit.
7343 (tip_frame): Make it a Lisp_Object.
7344 (x_create_tip_frame): Set tip_frame after it has been added to
7345 Vframe_list.
7346 (Fx_show_tip): Don't set tip_frame here.
7347 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
7348 (unwind_create_frame, unwind_create_tip_frame): New functions.
7349 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
7350 while a frame is only partially constructed.
7351
7352 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
7353 (x_free_frame_resources): New function.
7354 (x_destroy_window): Use it.
7355
7356 2000-12-14 Gerd Moellmann <gerd@gnu.org>
7357
7358 * xfns.c (Fx_backspace_delete_keys_p): New function.
7359 (syms_of_xfns): Defsubr it.
7360
7361 * config.in (HAVE_XKBGETKEYBOARD): Add.
7362
7363 2000-12-14 Kenichi Handa <handa@etl.go.jp>
7364
7365 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
7366 Always store string in multibyte representation in echobuf.
7367 (echo_char): Always store string in multibyte representation in
7368 echobuf.
7369 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
7370 (read_key_sequence): Adjusted for the change of echo_prompt.
7371
7372 * fns.c (Fmd5): Docstring improved.
7373
7374 * lisp.h (detect_coding_system): Prototype adjusted.
7375
7376 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
7377 (detect_coding_emacs_mule, detect_coding_iso2022,)
7378 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
7379 (detect_coding_utf_16, detect_coding_ccl): Make them static.
7380 New argument MULTIBYTEP. Callers changed.
7381 (detect_coding_mask, detect_coding_system): New argument
7382 MULTIBYTEP. Callers changed.
7383 (decode_coding_string): Set coding->src_multibyte and
7384 coding->dst_multibyte before calling detect_coding and detect_eol.
7385 Update them after some coding system is detected.
7386
7387 2000-12-13 Stefan Monnier <monnier@cs.yale.edu>
7388
7389 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
7390
7391 * keyboard.c (menu_bar_items, tool_bar_items):
7392 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
7393
7394 2000-12-13 Gerd Moellmann <gerd@gnu.org>
7395
7396 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
7397 New variables.
7398 (unwind_create_frame, unwind_create_tip_frame): New functions.
7399 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
7400 while a frame is only partially constructed.
7401
7402 * xterm.h (x_free_frame_resources): Declare.
7403
7404 * xterm.c (x_free_frame_resources): New function.
7405 (x_destroy_window): Use it.
7406
7407 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
7408 don't interrupt the update for pending input initially, i.e.
7409 update at least some lines.
7410
7411 * keyboard.c (do_mouse_tracking): Make externally visible.
7412
7413 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
7414
7415 * xfns.c (gray_bitmap_bits): Declare `char *'.
7416
7417 2000-12-12 Gerd Moellmann <gerd@gnu.org>
7418
7419 * xdisp.c (display_tool_bar_line): Make sure that tool bar
7420 lines start with a relief line.
7421
7422 2000-12-12 Dave Love <fx@gnu.org>
7423
7424 * window.c (Fdisplay_buffer): Doc fix.
7425 (Fwindow_list): Remove unused var.
7426
7427 * buffer.h (mmap_set_vars): Declare.
7428
7429 * window.h (Fset_window_point): Declare.
7430
7431 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
7432
7433 * msdos.c (fast_find_position): Don't overstep the last window row.
7434 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
7435 variable `area'. When looking for a row under (X,Y), give up if some
7436 of the previous rows is not enabled.
7437
7438 2000-12-12 Gerd Moellmann <gerd@gnu.org>
7439
7440 * window.c (Fset_window_point): If displaying cursors in windows
7441 other than the selected window, make sure redisplay updates
7442 other windows to show the new value of point in the window.
7443
7444 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
7445
7446 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
7447 the buffer is the sole visible buffer when in the mini-buffer.
7448
7449 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
7450 Bind `inhibit-read-only' to t.
7451 (unwind_with_echo_area_buffer): Use AREF.
7452
7453 * xfns.c (Fx_hide_tip): Simplified.
7454
7455 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
7456 instead of `1'.
7457
7458 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
7459
7460 2000-12-11 Gerd Moellmann <gerd@gnu.org>
7461
7462 * xfns.c (Fx_hide_tip): Fix last change.
7463
7464 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
7465 nothing to do. Bind inhibit-quit.
7466 (tip_frame): Make it a Lisp_Object.
7467 (x_create_tip_frame): Set tip_frame after it has been added to
7468 Vframe_list.
7469 (Fx_show_tip): Don't set tip_frame here.
7470
7471 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
7472
7473 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
7474 Lisp_Object.
7475
7476 * dispextern.h: Change external declaration of tip_frame.
7477
7478 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
7479 return an empty string.
7480
7481 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
7482 of the window's update_mode_line flag, since the former is set by
7483 force-mode-line-update, not the latter. This makes
7484 column-number-mode slightly faster.
7485
7486 * xdisp.c (try_window_id) <all changes above window start>:
7487 Set the cursor.
7488
7489 2000-12-11 Paul Eggert <eggert@twinsun.com>
7490
7491 * config.in (HAVE_FTELLO): Remove.
7492 (HAVE_FSEEKO): Add.
7493 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
7494 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
7495 HAVE_FTELLO.
7496 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
7497 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
7498
7499 2000-12-11 Miles Bader <miles@gnu.org>
7500
7501 * window.c (displayed_window_lines): Don't round up when
7502 converting empty space at bottom to lines.
7503 Handle non-newline-terminated final lines properly.
7504 (Fwindow_text_height): New function (used to be in lisp).
7505 (syms_of_window): Initialize it.
7506
7507 2000-12-09 Stefan Monnier <monnier@cs.yale.edu>
7508
7509 * syntax.c (scan_lists): Check that the right quote char has the
7510 right Sstring syntax when jumping over strings.
7511 (init_syntax_once): Use Smax rather than 13.
7512
7513 2000-12-09 Miles Bader <miles@gnu.org>
7514
7515 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
7516 with PARTIALLY, inverting the sense.
7517 (window_scroll_pixel_based): Scroll partially visible lines into
7518 place if we hit the beginning or end of the buffer.
7519 (displayed_window_lines): Don't include partially visible lines.
7520 (Fmove_to_window_line): Skip past any partially visible first line.
7521
7522 2000-12-08 Gerd Moellmann <gerd@gnu.org>
7523
7524 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
7525
7526 * tparam.c (tparam1): Change the way buffers are reallocated to be
7527 portable and less obfuscated.
7528
7529 * termcap.c (tgetent): Change the way buffers are reallocated to
7530 be portable and less obfuscated.
7531
7532 * macros.c (store_kbd_macro_char): Change the way buffers are
7533 reallocated to be portable and less obfuscated.
7534
7535 * lread.c (read1): Change the way buffers are reallocated to be
7536 portable and less obfuscated.
7537
7538 * doc.c (Fsubstitute_command_keys): Change the way buffers
7539 are reallocated so that it is portable.
7540
7541 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
7542
7543 * dosfns.c (Ffile_system_info): New function.
7544 (syms_of_dosfns): Defsubr it.
7545
7546 2000-12-07 Stefan Monnier <monnier@cs.yale.edu>
7547
7548 * alloc.c (gc_sweep): Add comment.
7549
7550 2000-12-07 Gerd Moellmann <gerd@gnu.org>
7551
7552 * sound.c (vox_configure): Change order of ioctls.
7553 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
7554 Ignore errors when changing volume.
7555 (vox_close): Don't reset the device.
7556
7557 * process.c (read_process_output): Make sure the process marker's
7558 position is valid when the process buffer is changed in
7559 after-change functions. W3 does that.
7560
7561 * xfns.c (x_free_gcs): New function.
7562
7563 * xterm.h (x_free_gcs): Add prototype.
7564
7565 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
7566 freeing GCs here.
7567
7568 * xterm.c (x_destroy_window): Call x_free_gcs so that
7569 resources of non-toolkit X windows will be freed.
7570
7571 2000-12-07 Andrew Innes <andrewi@gnu.org>
7572
7573 * w32fns.c (xlfd_charset_of_font): Fix last change.
7574
7575 2000-12-06 Dave Love <fx@gnu.org>
7576
7577 * md5.h (__P): Don't define -- it comes from config.h.
7578
7579 * strftime.c: Change some #if foo to #ifdef foo.
7580
7581 2000-12-06 Andrew Innes <andrewi@gnu.org>
7582
7583 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
7584
7585 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
7586 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
7587 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
7588
7589 2000-12-06 Gerd Moellmann <gerd@gnu.org>
7590
7591 * alloc.c (gc_sweep): Prevent symbols read during loadup
7592 from being freed.
7593
7594 * xdisp.c (underlying_face_id): New function.
7595 (handle_face_prop, face_before_or_after_it_pos): Use it
7596 to determine the face ``under'' a string. Let strings inherit
7597 the face of the buffer under them.
7598
7599 * xfaces.c (face_at_string_position): Update function comment.
7600
7601 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
7602 matrix if the window's left position has changed; we need to
7603 redraw it in this case.
7604
7605 * dispextern.h (struct glyph_matrix): Add member window_left_x.
7606
7607 * window.c (coordinates_in_window): Check mouse on mode-line or
7608 header-line first.
7609
7610 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
7611 advertized by the function documentation.
7612
7613 * window.c (syms_of_window): Doc fix.
7614
7615 * sound.c (vox_configure): Set volume for left and right channel.
7616 (sound_cleanup): Return nil.
7617
7618 * xdisp.c (move_it_by_lines): Fix paren typo.
7619
7620 * xterm.c (x_load_font): Don't use the font's max_bounds for
7621 computing the height of the font. If max_bounds' ascent or
7622 descent are greater than the font's ascent or descent, this means
7623 glyphs overlap, which should be handled now by redisplay.
7624
7625 * window.c (Veven_window_heights): New variable.
7626 (syms_of_window): DEFVAR_LISP it.
7627 (Fdisplay_buffer): Check Veven_window_heights before evening the
7628 window heights.
7629
7630 2000-12-06 Miles Bader <miles@gnu.org>
7631
7632 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
7633 update `default-frame-alist' instead of setting no frame parameters.
7634
7635 2000-12-06 Kenichi Handa <handa@etl.go.jp>
7636
7637 * composite.c (update_compositions): Fix typo (use the correct
7638 variable).
7639
7640 2000-12-05 Jason Rumney <jasonr@gnu.org>
7641
7642 * md5.h: Remove underscores from function declarations.
7643 (__attribute__, __alignof__) [!__GNUC__]: Define.
7644
7645 * md5.c: Delay include of md5.h until after namespace cleaning.
7646
7647 * makefile.w32-in (fns.o): Depend on md5.h
7648 (md5.o): New target.
7649 (sunfns.o): Remove.
7650
7651 * makefile.nt: Likewise.
7652
7653 2000-12-05 Jason Rumney <jasonr@altavista.net>
7654
7655 * w32term.c (expose_area): Complete last change.
7656
7657 2000-12-05 Ken Raeburn <raeburn@gnu.org>
7658
7659 * minibuf.c: Include intervals.h.
7660
7661 2000-12-05 Jason Rumney <jasonr@gnu.org>
7662
7663 * w32term.c (x_produce_glyphs): If a font for a component of
7664 a composition is not found, use 1 pixel dot ascent and 0 dot
7665 descent value to avoid displaying terribly tall empty boxes.
7666 (expose_area): Pass x-coordinate relative to the exposed
7667 area to x_draw_glyphs instead of a window-relative coordinate.
7668
7669 2000-12-05 Gerd Moellmann <gerd@gnu.org>
7670
7671 * xdisp.c (next_element_from_ellipsis): Save face before selective
7672 display in saved_face_id, and set face_before_selective_p.
7673 (reseat_1): Reset face_before_selective_p.
7674 (append_space, extend_face_to_end_of_line): If iterator's
7675 face_before_selective_p is set, use the face from saved_face_id.
7676 (extend_face_to_end_of_line): For tty frames, make sure to
7677 use the right face id when producing spaces at the end of
7678 the line.
7679
7680 * dispextern.h (struct it): Add face_before_selective_p.
7681
7682 * keyboard.c (record_char): Don't record identical help-echo
7683 events in recent_keys.
7684
7685 * xterm.c [USE_X_TOOLKIT]: Close the display.
7686 (xim_close_dpy): Handle case that the display has been closed.
7687
7688 * xterm.c (x_destroy_window): Reset the frame's X window after
7689 destroying it.
7690
7691 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
7692 variable window_width.
7693 (line_draw_cost): Fix code skipping over spaces at the end of the
7694 line when must_write_spaces is not set.
7695 (scrolling_window): Fix code inserting runs in list of all runs.
7696
7697 2000-12-05 Kenichi Handa <handa@etl.go.jp>
7698
7699 * coding.c (setup_coding_system): Be sure to initialize
7700 coding->category_idx.
7701
7702 2000-12-04 Gerd Moellmann <gerd@gnu.org>
7703
7704 * xterm.c (PER_CHAR_METRIC): Removed because not used.
7705
7706 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
7707 area to x_draw_glyphs instead of a window-relative coordinate.
7708
7709 * fileio.c (auto_save_error): Add parameter ERROR. Show the
7710 error in the message.
7711
7712 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
7713 timer after having read a key. It's not good for code reading
7714 several keys in a loop, like an input method.
7715
7716 * fileio.c (Finsert_file_contents): When VISIT is t, don't
7717 record undo information for format-decode.
7718
7719 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
7720 current buffer is read-only, not if it isn't.
7721
7722 * keyboard.c (record_char): Record `help-echo' input events
7723 in recent_keys only if they display some help. Don't record
7724 `help-echo' events as macro char.
7725
7726 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
7727
7728 * editfns.c (save_excursion_restore): Don't move point
7729 in another window if it is showing the wrong buffer.
7730 Avoid the call to Fwindow_live_p, for speed.
7731
7732 2000-12-04 Kenichi Handa <handa@etl.go.jp>
7733
7734 * xfaces.c (struct font_name): New member registry_priority.
7735 (split_font_name): Initialize the above member to zero.
7736 (concat_font_list): New function.
7737 (font_list): Include fonts of all alternative registries.
7738 (FONT_POINT_SIZE_QUANTUM): New macro.
7739 (better_font_p): Ignore point size difference less than
7740 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
7741
7742 * xterm.c (x_produce_glyphs): If a font for a component of
7743 a composition is not found, use 1 pixel dot ascent and 0 dot
7744 descent value to avoid displaying terribly tall empty boxes.
7745
7746 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
7747
7748 2000-12-03 Ken Raeburn <raeburn@gnu.org>
7749
7750 * coding.h (code_convert_string1): Declare.
7751
7752 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
7753
7754 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
7755
7756 2000-12-02 Jason Rumney <jasonr@gnu.org>
7757
7758 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
7759 correctly for single byte character case.
7760 (w32_per_char_metric): Do not try to make any assumptions about
7761 the metrics of BDF fonts.
7762 (x_estimate_mode_line_height): If `mode-line' face
7763 hasn't a font, use that of the frame, as drawing glyphs does.
7764 (note_mouse_highlight): Change the cursor shape on the vertical
7765 border between windows [not enabled].
7766
7767 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
7768
7769 * w32fns.c (Fx_create_frame): Reintroduce the call to
7770 face-set-after-frame-defaults.
7771 (Vx_window_horizontal_drag_shape): New variable.
7772 (syms_of_xfns): DEFVAR_LISP it.
7773 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
7774 enabled].
7775
7776 2000-12-02 Simon Josefsson <simon@josefsson.org>
7777
7778 * fns.c (Fmd5): Use a different logic to decide the coding system
7779 to use.
7780
7781 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
7782
7783 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
7784
7785 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
7786
7787 2000-12-01 Gerd Moellmann <gerd@gnu.org>
7788
7789 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
7790 height for YNegative.
7791 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
7792 height; also see comment there.
7793
7794 * window.c (coordinates_in_window): Handle computations for
7795 positions on the vertical bar and fringes differently for
7796 window-system frames. Consider some pixels near the vertical bar
7797 as on the bar if the frame doesn't have vertical scroll bars.
7798 Associate positions between mode or header lines with the
7799 right window, the left one.
7800
7801 2000-12-01 Jason Rumney <jasonr@gnu.org>
7802
7803 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
7804
7805 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
7806 invalid frame.
7807
7808 2000-12-01 Gerd Moellmann <gerd@gnu.org>
7809
7810 * window.c (struct saved_window): Add members orig_top and orig_height.
7811 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
7812 (save_window_save, Fset_window_configuration): Save/restore
7813 window's orig_top and orig_height.
7814
7815 2000-12-01 Jason Rumney <jasonr@gnu.org>
7816
7817 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
7818
7819 * w32fns.c (x_set_cursor_color): Fix last change.
7820
7821 2000-11-30 Gerd Moellmann <gerd@gnu.org>
7822
7823 * xdisp.c (echo_area_display): If cursor is in the echo area, make
7824 sure that the next redisplay displays the minibuffer, so that
7825 the cursor will be replaced with what the minibuffer wants.
7826
7827 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
7828 #ifndef instead of using #if.
7829 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
7830 USE_TOOLKIT_SCROLL_BARS is defined.
7831
7832 2000-11-30 Jason Rumney <jasonr@gnu.org>
7833
7834 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
7835 x_display_cursor.
7836
7837 2000-11-30 Gerd Moellmann <gerd@gnu.org>
7838
7839 * fns.c (Fmd5): Doc fix.
7840
7841 2000-11-30 Simon Josefsson <simon@josefsson.org>
7842
7843 * fns.c (Fmd5): New function.
7844 (syms_of_fns): Defsubr md5.
7845
7846 * Makefile.in (obj): Add md5.o
7847
7848 2000-11-30 Gerd Moellmann <gerd@gnu.org>
7849
7850 * md5.h, md5.c: New files, taken from glibc.
7851
7852 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
7853
7854 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
7855 hasn't a font, use that of the frame, as drawing glyphs does.
7856
7857 2000-11-29 Stefan Monnier <monnier@cs.yale.edu>
7858
7859 * eval.c (Frun_hooks): Allow 0 arguments.
7860
7861 2000-11-29 Gerd Moellmann <gerd@gnu.org>
7862
7863 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
7864 is over the menu bar widget, say it's not on the frame.
7865
7866 * xfns.c (Fx_create_frame): Reintroduce the call to
7867 face-set-after-frame-defaults.
7868
7869 * eval.c (Fsignal): Reset handling_signal.
7870
7871 2000-11-28 Jason Rumney <jasonr@gnu.org>
7872
7873 * w32menu.c (add_menu_item): Reset menu item text when changing
7874 type to radio button.
7875
7876 2000-11-28 Gerd Moellmann <gerd@gnu.org>
7877
7878 * xselect.c: Update copyright.
7879
7880 * window.c (coordinates_in_window): If on a mode or header line,
7881 but sufficiently close to its start, return ``on vertical
7882 border''. This gives us a way to drag windows horizontally when
7883 using toolkit scroll bars.
7884
7885 * xterm.c (note_mouse_highlight): Change the cursor shape
7886 on the vertical border between windows.
7887
7888 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
7889
7890 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
7891 (syms_of_xfns): DEFVAR_LISP it.
7892 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
7893
7894 * textprop.c (text_read_only): New function.
7895 (verify_interval_modification): Use it instead of signaling
7896 `text-read-only'. This makes it easier to catch this error
7897 with a breakpoint.:
7898
7899 * xdisp.c (forward_to_next_line_start): Check for newlines,
7900 not end of line, which includes CR.
7901
7902 2000-11-28 Kenichi Handa <handa@etl.go.jp>
7903
7904 * coding.c (Ffind_coding_systems_region_internal): Be sure to
7905 include no-conversion.
7906
7907 2000-11-27 Jason Rumney <jasonr@gnu.org>
7908
7909 * w32fns.c (w32_load_system_font): Always mark font as double byte
7910 if codepage is unicode.
7911
7912 2000-11-27 Gerd Moellmann <gerd@gnu.org>
7913
7914 * xdisp.c (forward_to_next_line_start): If already on a newline,
7915 just consume it to avoid unintended skipping over invisible text below.
7916
7917 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
7918 `vertical-line', `mode-line' and `header-line' events.
7919
7920 * xdisp.c (try_window_id): Avoid starting to display in the middle
7921 of a character, a TAB for instance. This is easier than to set
7922 up the iterator exactly, and it's not a frequent case, so the
7923 additional effort wouldn't really pay off.
7924
7925 2000-11-26 Andrew Choi <akochoi@i-cable.com>
7926
7927 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
7928 init_window_once.
7929
7930 2000-11-25 Jason Rumney <jasonr@gnu.org>
7931
7932 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
7933 Args to window_from_coordinates should be pixel coordinates.
7934
7935 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
7936 redisplay handles them properly.
7937
7938 2000-11-25 Miles Bader <miles@gnu.org>
7939
7940 * indent.c (compute_motion): Keep pos_byte in sync with pos.
7941
7942 2000-11-24 Jason Rumney <jasonr@gnu.org>
7943
7944 * w32.c (init_environment): Set LANG environment variable based on
7945 locale settings, if not set.
7946
7947 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
7948 making tool bar smaller. When clearing the frame, also
7949 clear current matrices. Clear frame when tool bar disappears.
7950 Don't use more lines for the tool-bar than is available.
7951 (x_change_window_heights): New function.
7952
7953 2000-11-24 Gerd Moellmann <gerd@gnu.org>
7954
7955 * xdisp.c (init_from_display_pos): If POS says we're already after
7956 an overlay string ending at POS, make sure to pop the iterator
7957 because it will be in front of that overlay string. When POS is
7958 ZV, we've thereby also ``processed'' overlay strings at ZV.
7959
7960 * xfaces.c (lface_from_face_name): Function comment fix.
7961
7962 2000-11-24 Miles Bader <miles@gnu.org>
7963
7964 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
7965 apply `mode-line-inverse-video' -- zero means force display using
7966 the default face, non-zero means display using the specialized face.
7967 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
7968
7969 2000-11-23 Kenichi Handa <handa@etl.go.jp>
7970
7971 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
7972 hard coded `4'.
7973
7974 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
7975
7976 * coding.c (decode_coding_emacs_mule): Fix the case of
7977 CODING_EOL_LF, which used uninitialized value of c.
7978
7979 2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
7980
7981 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
7982
7983 2000-11-22 Gerd Moellmann <gerd@gnu.org>
7984
7985 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
7986 buffer object.
7987
7988 * frame.h (struct frame): Replace desired_tool_bar_items,
7989 current_tool_bar_items, n_desired_tool_bar_items,
7990 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
7991
7992 * frame.c (make_frame): Change initialization of tool bar
7993 items accordingly.
7994
7995 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
7996 Change references to members deleted from struct frame to use the
7997 new ones.
7998
7999 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
8000 references to members deleted from struct frame to use the new ones.
8001
8002 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
8003
8004 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
8005
8006 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
8007 (note_tool_bar_highlight): Change references to members deleted
8008 from struct frame to use the new ones.
8009
8010 2000-11-23 Miles Bader <miles@gnu.org>
8011
8012 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
8013 the face's inverse-video attribute, rather than overriding it.
8014
8015 2000-11-22 Gerd Moellmann <gerd@gnu.org>
8016
8017 * xfns.c (x_set_tool_bar_lines): Clear internal border when
8018 making tool bar smaller.
8019
8020 2000-11-22 Dave Love <fx@gnu.org>
8021
8022 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
8023
8024 2000-11-22 Miles Bader <miles@gnu.org>
8025
8026 * keyboard.c (Vminibuffer_message_timeout): New variable.
8027 (command_loop_1): Use it to determine message timeout.
8028 (syms_of_keyboard): Initialize it.
8029
8030 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
8031
8032 2000-11-22 Kenichi Handa <handa@etl.go.jp>
8033
8034 * sysdep.c: Move the code for declaring h_errno after #include
8035 <netdb.h>.
8036
8037 2000-11-21 Gerd Moellmann <gerd@gnu.org>
8038
8039 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
8040 the menu bar when the tooltip is unmapped.
8041
8042 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
8043 sole visible buffer when we're currently in the mini-buffer, and
8044 give up if so.
8045
8046 2000-11-21 Jason Rumney <jasonr@gnu.org>
8047
8048 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
8049 put on the clipboard.
8050 (Fw32_get_clipboard_data): Compare data on clipboard with saved
8051 copy of what Emacs last put there. If they are the same, do not
8052 use the clipboard copy to avoid losing data due to coding conversions.
8053
8054 2000-11-22 Miles Bader <miles@gnu.org>
8055
8056 * minibuf.c (Vminibuffer_prompt_properties): New variable.
8057 (syms_of_minibuf): Initialize it.
8058 (read_minibuf): Add properties from Vminibuffer_prompt_properties
8059 to prompt, don't make read-only.
8060
8061 2000-11-21 Gerd Moellmann <gerd@gnu.org>
8062
8063 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
8064 Add BEFORE/AFTER_POTENTIAL_GC.
8065
8066 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
8067
8068 * buffer.c (mmap_free_1): Avoid a compiler warning.
8069
8070 * term.c, cm.c: Don't try to include termcap.h; see comment there.
8071
8072 2000-11-21 Kenichi Handa <handa@etl.go.jp>
8073
8074 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
8075 ... #endif scope.
8076
8077 2000-11-20 Gerd Moellmann <gerd@gnu.org>
8078
8079 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
8080 screen supports it.
8081
8082 * s/gnu-linux.h: Don't use `#cpu'.
8083
8084 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
8085 not defined in mman.h.
8086
8087 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
8088 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
8089 and store an index in the XClientMessageEvent. Storing a
8090 Lisp_Object or pointer can fail on a 64 bit system, since X only
8091 transfers 32 bits.
8092 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
8093
8094 2000-11-20 Dave Love <fx@gnu.org>
8095
8096 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
8097
8098 2000-11-20 Gerd Moellmann <gerd@gnu.org>
8099
8100 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
8101
8102 2000-11-20 Kenichi Handa <handa@etl.go.jp>
8103
8104 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
8105 by WIDTH.
8106
8107 * alloc.c (make_string): Fix previous change. Be sure to make
8108 unibyte string correctly.
8109
8110 2000-11-19 Gerd Moellmann <gerd@gnu.org>
8111
8112 * window.c (Fwindow_list): Change parameter list to be XEmacs
8113 compatible.
8114 (window_list_1): New function.
8115 (window_loop): Use it instead of Fwindow_list.
8116
8117 * sysdep.c (emacs_ospeed): New variable.
8118 (toplevel): Don't declare ospeed extern.
8119 (init_baud_rate): Use emacs_ospeed instead of ospeed.
8120
8121 * termcap.c (ospeed): Remove.
8122 (tputs) [!emacs]: Remove unused code.
8123 (tgetent): Avoid a compiler warning.
8124
8125 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
8126 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
8127 SCROLL_BAR_X_WIDGET with additional argument DPY.
8128
8129 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
8130 removed.
8131 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
8132 Take the X display as additional argument.
8133 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
8134 `Widget' is a pointer type that's not easily stored in Lisp_Object
8135 form in a portable way.
8136
8137 * dispnew.c (update_text_area): Fix last change.
8138
8139 2000-11-18 Gerd Moellmann <gerd@gnu.org>
8140
8141 * xdisp.c: Use BINDING_STACK_SIZE throughout.
8142
8143 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
8144 clear current matrices.
8145
8146 * buffer.c (mmap_enlarge): Don't print a message on stderr
8147 if mapping new memory at the end of the existing region fails.
8148
8149 * dispnew.c (update_text_area): Don't skip over equal glyphs
8150 when the last current glyph overlaps the glyph to its right.
8151
8152 2000-11-18 Miles Bader <miles@gnu.org>
8153
8154 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
8155 lines that *end* with "..." too (that's the most common case!).
8156
8157 2000-11-18 Gerd Moellmann <gerd@gnu.org>
8158
8159 * xdisp.c (resize_mini_window): Temporarily change to the
8160 mini-window's buffer if necessary.
8161
8162 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
8163 the tooltip obscures less text under it.
8164
8165 2000-11-17 Gerd Moellmann <gerd@gnu.org>
8166
8167 * puresize.h (BASE_PURESIZE): Increase to 700000.
8168
8169 2000-11-18 Jason Rumney <jasonr@gnu.org>
8170
8171 * w32term.c (w32_draw_bitmap): Use face to set colors.
8172
8173 2000-11-17 Dave Love <fx@gnu.org>
8174
8175 * lread.c (Fload): Fix #ifdef for pcc.
8176
8177 2000-11-17 Gerd Moellmann <gerd@gnu.org>
8178
8179 * xdisp.c (pos_visible_p): Compute the default character height
8180 differently.
8181
8182 2000-11-16 Gerd Moellmann <gerd@gnu.org>
8183
8184 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
8185 knowing the line's height; use the default font's height in that case.
8186
8187 * xfaces.c (weight_table): Add `demi' with the same meaning as
8188 `demibold'.
8189
8190 2000-11-16 Kenichi Handa <handa@etl.go.jp>
8191
8192 * dispnew.c (null_row): New global static variable.
8193 (clear_glyph_row): Delete local static variable null_row.
8194
8195 2000-11-15 Jason Rumney <jasonr@gnu.org>
8196
8197 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
8198 (w32_alloc_lighter_color): Use new brightness calculations from
8199 xterm.c. Scale delta to be in the range expected by W32.
8200 (w32_draw_relief_rect): Use frame relief colors.
8201
8202 2000-11-15 Gerd Moellmann <gerd@gnu.org>
8203
8204 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
8205 (Qinhibit_default_face_x_resources): New variable.
8206 (syms_of_frame): Initialize it.
8207 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
8208
8209 * xdisp.c (pos_visible_p): Improve function comment.
8210
8211 * lisp.h (BINDING_STACK_SIZE): New macro.
8212
8213 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
8214 reading the directory if readdir returns null and errno is EAGAIN
8215 or EINTR.
8216
8217 2000-11-14 Stefan Monnier <monnier@cs.yale.edu>
8218
8219 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
8220 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
8221 Set amount_to_scroll to max of dx and scroll_step so that
8222 scroll-conservatively doesn't defeat scroll-step>1.
8223 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
8224 scroll-conservatively for line-at-a-time scrolling.
8225
8226 2000-11-14 Gerd Moellmann <gerd@gnu.org>
8227
8228 * window.c (Fpos_visible_in_window_p): Call pos_visible with
8229 extra argument.
8230
8231 * xdisp.c (current_mode_line_height, current_header_line_height):
8232 New variables.
8233 (init_xdisp): Initialize them.
8234 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
8235 and use exact mode line heights if it is set.
8236
8237 * lisp.h (pos_visible_p): Change prototype.
8238
8239 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
8240 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
8241 and current_header_line_height first.
8242 (current_mode_line_height, current_header_line_height):
8243 Declare extern.
8244
8245 2000-11-14 Miles Bader <miles@lsi.nec.co.jp>
8246
8247 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
8248 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
8249 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
8250
8251 2000-11-14 Miles Bader <miles@gnu.org>
8252
8253 * xterm.c (x_alloc_lighter_color): Include an additive component
8254 too for dark colors, because FACTOR isn't enough.
8255 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
8256 New macros.
8257
8258 2000-11-13 Gerd Moellmann <gerd@gnu.org>
8259
8260 * keyboard.c (show_help_echo): Call message3_nolog with number of
8261 bytes in the help string as 2nd parameter, instead of the number
8262 of characters.
8263
8264 2000-11-13 Miles Bader <miles@gnu.org>
8265
8266 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
8267 (Fload): Use new openp return protocol.
8268 Don't try to use Vload_source_file_function to load .elc files.
8269 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
8270 openp return protocol.
8271 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
8272
8273 2000-11-11 Kenichi Handa <handa@etl.go.jp>
8274
8275 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
8276
8277 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
8278 Defined these macros.
8279 (NLIST_STRUCT): Avoid re-defining it.
8280
8281 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
8282 -I/usr/contrib/X11R6/include.
8283 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
8284
8285 2000-11-10 Jason Rumney <jasonr@gnu.org>
8286
8287 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
8288
8289 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
8290 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
8291
8292 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
8293 (Qw32_charset_vietnamese): New symbol.
8294 (xlfd_charset_of_font): New function.
8295 (w32_load_system_font): Use it.
8296 (x_to_w32_charset): Use Fassoc to find charset info. Special case
8297 when Vw32_charset_info_alist is nil to ensure default face always
8298 has font. Use Fcar and Fcdr for safety.
8299 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
8300 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
8301 pseudo-codepages for special cases.
8302 (w32_to_x_font): New parameter to allow charset portion to be
8303 specified where there is many to one mapping. Callers changed.
8304 (w32_list_fonts): Avoid listing fonts that won't display.
8305
8306 2000-11-10 Gerd Moellmann <gerd@gnu.org>
8307
8308 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
8309 (font_list_1): Renamed from font_list.
8310 (font_list): New function, trying alternative registries from
8311 Vface_alternative_font_registry_alist.
8312 (Finternal_set_alternative_font_registry_alist): New function.
8313 (syms_of_xfaces): Initialize and Staticpro
8314 Vface_alternative_font_registry_alist.
8315 Defsubr Finternal_set_alternative_font_registry_alist.
8316
8317 2000-11-09 Ken Raeburn <raeburn@gnu.org>
8318
8319 * lisp.h (Flooking_at): Declare.
8320
8321 2000-11-09 Gerd Moellmann <gerd@gnu.org>
8322
8323 * dired.c (directory_files_internal): Fix a braino.
8324
8325 * dired.c (directory_files_internal): Add missing GCPRO's.
8326 Some cleanup.
8327
8328 2000-11-08 Gerd Moellmann <gerd@gnu.org>
8329
8330 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
8331 (resize_mini_window): Return quickly if Vresize_mini_window is
8332 nil. Don't return if Vmax_mini_window_height is nil.
8333
8334 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
8335 (syms_of_xdisp): Initialize them.
8336 (resize_mini_window): Act according to the setting of
8337 Vresize_mini_window.
8338 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
8339
8340 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
8341 scroll bar widget after configuring it, so that it will appear at
8342 the right position from the start.
8343 (XTredeem_scroll_bar): Cleaned up.
8344
8345 2000-11-08 Kenichi Handa <handa@etl.go.jp>
8346
8347 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
8348 font is taller than the frame line, we don't have to bias the
8349 division by two.
8350
8351 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
8352
8353 2000-11-07 Dave Love <fx@gnu.org>
8354
8355 * config.in (HAVE_MKSTEMP): Add.
8356
8357 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
8358
8359 2000-11-07 Gerd Moellmann <gerd@gnu.org>
8360
8361 * window.c (Fset_window_configuration): Don't try to preserve
8362 point in the current buffer, if that buffer is displayed in more
8363 than one window.
8364
8365 * xfaces.c (lookup_named_face): If default face isn't realized,
8366 try to realize it. Return -1 if not successful.
8367 (Fx_list_fonts): Handle case that face cannot be determined.
8368 (Fface_font): Likewise.
8369
8370 2000-11-06 Gerd Moellmann <gerd@gnu.org>
8371
8372 * window.c (displayed_window_lines): Detect partially
8373 visible lines at the bottom correctly.
8374
8375 2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
8376
8377 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
8378 when ensuring we don't do visit in indirect buffer.
8379
8380 2000-11-06 Kenichi Handa <handa@etl.go.jp>
8381
8382 * composite.h (compose_chars_in_text): Add prototype.
8383
8384 * composite.c (Vcomposition_function_table): New variable.
8385 (Qcomposition_function_table): New variable.
8386 (run_composition_function): Call
8387 Vcompose_chars_after_function with three arguments.
8388 (compose_chars_in_text): New function.
8389 (syms_of_composite): Modified the doc-string of
8390 Vcompose_chars_after_function. Declare composition-function-table
8391 as a lisp variable, and initialize it.
8392
8393 * xfns.c (x_encode_text): Suppress producing escape sequences for
8394 composition.
8395
8396 * xselect.c: Include composite.h.
8397 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
8398
8399 2000-11-05 Andrew Innes <andrewi@gnu.org>
8400
8401 * w32term.c (x_produce_glyphs): Fix typo in enum name.
8402
8403 * sysdep.c (read_input_waiting): Remove extraneous argument to
8404 read_socket_hook.
8405
8406 * w32fns.c (Fx_server_version): Include w32_build_number in the
8407 return list.
8408
8409 * w32heap.c (w32_build_number): New variable.
8410 (cache_system_info): Set it.
8411
8412 * w32heap.h (w32_build_number): Add extern.
8413
8414 * emacs.c (syms_of_emacs): Update docstring for
8415 system-configuration, to reflect the actual usage on MS-Windows.
8416
8417 2000-10-31 Gerd Moellmann <gerd@gnu.org>
8418
8419 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
8420 process idle timers while waiting for another event.
8421
8422 * dispnew.c (update_frame_line): Handle case where spaces in
8423 the default face are colored.
8424
8425 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
8426 window height hasn't changed.
8427
8428 2000-10-31 Jason Rumney <jasonr@gnu.org>
8429
8430 * w32term.c (x_produce_glyphs): Handle composite characters.
8431 (x_draw_glyph_string_foreground)
8432 (x_draw_composite_glyph_string_foreground): Restore old font.
8433
8434 2000-10-31 Miles Bader <miles@lsi.nec.co.jp>
8435
8436 * minibuf.c (read_minibuf): Reset the undo history just before
8437 starting the recursive-edit.
8438
8439 2000-10-30 Gerd Moellmann <gerd@gnu.org>
8440
8441 * xfaces.c (menu_face_change_count): New variable.
8442 (Finternal_set_lisp_face_attribute): Increment it for changes
8443 of the `menu' face.
8444 (realize_basic_faces): Reflect changes in the `menu' faces
8445 in menu bars.
8446
8447 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
8448 dy obtained from the iterator's y-position after moving from
8449 scroll_margin_pos to PT; see comment there.
8450
8451 * xdisp.c (safe_eval_handler): Call add_to_log.
8452
8453 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
8454 is not a symbol or string.
8455
8456 * xdisp.c (echo_area_display): Don't perform a display update from
8457 inside redisplay. The update will happen anyway at the end of
8458 redisplay, and it can confuse redisplay (GC messages while
8459 redisplaying, for instance.)
8460
8461 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
8462
8463 * xrdb.c (x_load_resources): Use the class name in the defaults.
8464
8465 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
8466 (regex_compile): Catch bogus \(\1\).
8467
8468 2000-10-30 Gerd Moellmann <gerd@gnu.org>
8469
8470 * xterm.c (x_alloc_nearest_color): Fix last change to compare
8471 RGB values.
8472
8473 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
8474 we have a color cache, check that the cached color equals the
8475 allocated color. If not, clear the color cache.
8476
8477 * window.c (displayed_window_lines): Change buffers if necessary.
8478 Fix computation of displayed lines.
8479
8480 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
8481 update_menu_bindings to DEFVAR_BOOL.
8482
8483 2000-10-30 Kenichi Handa <handa@etl.go.jp>
8484
8485 * search.c (Fset_match_data): Be sure to make search_regs always sane.
8486
8487 * puresize.h (BASE_PURESIZE): Increase to 680000.
8488
8489 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
8490
8491 2000-10-29 Jason Rumney <jasonr@gnu.org>
8492
8493 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
8494
8495 * w32term.c (w32_bdf_per_char_metric): Negate descent.
8496 (w32_cache_char_metrics): Handle possibility that 'x' does not
8497 exist in a BDF font.
8498 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
8499
8500 * w32bdf.h (bdffont): Add nchars.
8501
8502 * w32bdf.c (set_bdf_font_info): Set it.
8503 (w32_BDF_TextOut): Swap byte order of double byte characters.
8504 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
8505
8506 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
8507
8508 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
8509 don't override the colors in frame's param_alist, unless they are
8510 unspecified.
8511
8512 * term.c (reassert_line_highlight): If inverse_video is non-zero,
8513 reverse the effect of the highlight flag.
8514
8515 2000-10-27 Ken Raeburn <raeburn@gnu.org>
8516
8517 * window.h (Fwindow_live_p): Declare.
8518
8519 * undo.c (record_delete): Check that last_undo_buffer is really a
8520 buffer before applying XBUFFER to it.
8521
8522 * keymap.c (where_is_internal): Pass lisp object, not integer, to
8523 Faref.
8524
8525 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
8526
8527 * lisp.h (KEYMAPP): New macro.
8528 (get_keymap): Remove.
8529 (get_keymap_1): Rename get_keymap.
8530
8531 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
8532
8533 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
8534
8535 * xmenu.c (single_submenu): Use KEYMAPP.
8536 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
8537 Use KEYMAPP rather than Fkeymapp.
8538
8539 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
8540
8541 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
8542 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
8543 Use KEYMAPP rather than Fkeymapp.
8544 (single_submenu): Use KEYMAPP.
8545 (w32_menu_show, w32_dialog_show): Use TRUE.
8546
8547 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
8548
8549 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
8550 (Fkeymapp): Use KEYMAPP.
8551 (get_keymap): Rename from get_keymap_1. Remove old def.
8552 Return t when autoload=0 and error=0 and the keymap needs autoloading.
8553 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
8554 (Fminor_mode_key_binding): Don't raise an error if the binding
8555 is not a keymap.
8556 (Fuse_global_map, Fuse_local_map): Allow autoloading.
8557 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
8558
8559 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
8560 Allow Vspecial_event_map to be autoloaded.
8561 (menu_bar_items): Fetch the keymap rather than using keymapp.
8562 (menu_bar_one_keymap): No need to follow func-indirect any more.
8563 (parse_menu_item): get_keymap_1 -> get_keymap.
8564 (tool_bar_items): Fetch the keymap rather than using keymapp.
8565 (read_key_sequence): Use KEYMAPP.
8566
8567 * intervals.c (get_local_map): Use get_keymap rather than following
8568 function-indirections explicitly.
8569
8570 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
8571
8572 2000-10-27 Jason Rumney <jasonr@gnu.org>
8573
8574 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
8575 point, as Windows has oversized fonts.
8576
8577 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
8578
8579 2000-10-27 Gerd Moellmann <gerd@gnu.org>
8580
8581 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
8582 (freehook, reallochook): Handle null pointer arguments.
8583 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
8584
8585 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
8586
8587 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
8588 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
8589 Giving in to popular pressure to shut up the compiler with casts.
8590
8591 2000-10-27 Gerd Moellmann <gerd@gnu.org>
8592
8593 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
8594 signed value, and use a default value computed from the font's
8595 maximum descent.
8596
8597 2000-10-27 Miles Bader <miles@lsi.nec.co.jp>
8598
8599 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
8600 that specify a negative underline position can still use underlines.
8601
8602 * window.c (Fpos_visible_in_window_p): Make POS default to
8603 WINDOW's point, not the current buffer's point.
8604
8605 2000-10-26 Dave Love <fx@gnu.org>
8606
8607 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
8608 when it's necessary.
8609
8610 2000-10-26 Gerd Moellmann <gerd@gnu.org>
8611
8612 * window.c (size_window): Compute size difference from sum of old
8613 child window sizes instead of from parent's size.
8614
8615 * xdisp.c (pos_visible_p): Change current buffer if necessary.
8616 Handle obscured lines at the top of the window.
8617
8618 * frame.c (Fdelete_frame): Doc fix. Move running the hook
8619 down after the last error condition check.
8620
8621 * frame.c (Fdelete_frame): Run delete-frame-hook.
8622
8623 2000-10-26 Kenichi Handa <handa@etl.go.jp>
8624
8625 * coding.c (decode_coding): Fix previous change (check also
8626 CODING_MODE_LAST_BLOCK).
8627
8628 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
8629
8630 * regex.c: More `unsigned char' -> `re_char' changes.
8631 Also change several `int' into `re_wchar_t'.
8632 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
8633 (PUSH_FAILURE_POINTER): Don't cast any more.
8634 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
8635 We want GCC to complain, since this piece of code makes
8636 re_match non-reentrant, which *should* be fixed.
8637 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
8638 (EXTEND_BUFFER): Use RETALLOC.
8639 (SET_LIST_BIT): Don't cast.
8640 (re_wchar_t): New type.
8641 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
8642 that those two functions will always properly return.
8643 (IMMEDIATE_QUIT_CHECK): Cast to void.
8644 (analyse_first): Use recursion rather than an explicit stack.
8645 (re_compile_fastmap): Can't fail anymore.
8646 (re_search_2): Don't check re_compile_fastmap for failure.
8647 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
8648 Now also sets the new value (passed in a new argument).
8649 (re_match_2_internal): Use it.
8650 Also, use a new var `reg' of type size_t when looping through regs
8651 rather than reuse the inappropriate `mcnt'.
8652
8653 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
8654 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
8655 (where_is_internal): Renamed from Fwhere_is_internal.
8656 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
8657 (Fwhere_is_internal): New function wrapping where_is_internal.
8658 (where_is_internal_1): Handle the case where we're filling the cache.
8659 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
8660
8661 2000-10-25 Miles Bader <miles@gnu.org>
8662
8663 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
8664
8665 2000-10-25 Gerd Moellmann <gerd@gnu.org>
8666
8667 * window.c (pos_fully_visible_p): Removed.
8668 (Fpos_visible_in_window_p): Use pos_visible_p to determine
8669 if position is visible and/or fully visible.
8670
8671 * lisp.h (pos_visible_p): Add prototype.
8672
8673 * xdisp.c (pos_visible_p): New function.
8674
8675 2000-10-25 Kenichi Handa <handa@etl.go.jp>
8676
8677 * process.c (send_process): If OBJECT is t, it means that the data
8678 is from C string, but we should encode it. Before calling
8679 setup_raw_text_coding_system, be sure to flush out data by the
8680 previous coding system.
8681
8682 2000-10-25 Miles Bader <miles@lsi.nec.co.jp>
8683
8684 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
8685 assignment of startpos to prev when startpos == pos.
8686
8687 * editfns.c (find_field): Set the field stickiness correctly from
8688 overlay fields. Use renamed `text_property_stickiness'.
8689 (text_property_stickiness): Renamed from `char_property_stickiness'.
8690 Only check text properties, not overlays.
8691 * textprop.c (get_char_property_and_overlay): New function.
8692 (Fget_char_property): Use it.
8693 * intervals.h (get_char_property_and_overlay): Add declaration.
8694
8695 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
8696
8697 * keymap.c: Use AREF, ASET and ASIZE macros.
8698 (Fmake_sparse_keymap): Docstring fix.
8699 (synkey): Remove.
8700 (shadow_lookup): Move up.
8701 Handle the case where lookup-key returns an integer.
8702 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
8703 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
8704 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
8705 Simplify/rewrite the keymap-finding code.
8706 Add check for command shadowing, using shadow_lookup.
8707
8708 2000-10-24 Stefan Monnier <monnier@cs.yale.edu>
8709
8710 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
8711 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
8712 a symbol.
8713
8714 2000-10-24 Andrew Innes <andrewi@gnu.org>
8715
8716 * dired.c (directory_files_internal_unwind): New function.
8717 (directory_files_internal): Use it to ensure closedir is called
8718 even if expand-file-name or file-attributes throw, eg. because of
8719 a user interrupt. Also enable immediate_quit while calling
8720 re_search, so that matching can be interrupted as well.
8721
8722 2000-10-24 Andrew Innes <andrewi@gnu.org>
8723
8724 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
8725 NT-Emacs only.
8726 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
8727 so that re_search functions only quit when callers expect them to.
8728
8729 2000-10-24 Kenichi Handa <handa@etl.go.jp>
8730
8731 * regex.c (regex_compile): Change the way of handling a range from
8732 a char less than 256 to a char not less than 256.
8733
8734 2000-10-24 Gerd Moellmann <gerd@gnu.org>
8735
8736 * window.c (size_window): Prevent setting window's width or
8737 height to a negative value (esp. with XSETFASTINT).
8738
8739 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
8740 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
8741 (protect_malloc_state) [GC_MALLOC_CHECK &&
8742 GC_PROTECT_MALLOC_STATE]: New function.
8743 (PROTECT_MALLOC_STATE): New macro.
8744 (__malloc_initialize, morecore, _malloc_internal)
8745 (_free_internal) _realloc_internal): Use it to make _heapinfo
8746 read-only outside of gmalloc.
8747
8748 * keymap.c: Update copyright.
8749
8750 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
8751 a symbol.
8752
8753 2000-10-24 Colin Walters <walters@cis.ohio-state.edu>
8754
8755 * filelock.c (unlock_all_files): Use unlock_file to expand each
8756 buffer's file_truename before trying remove its lock file.
8757
8758 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
8759
8760 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
8761 or CRLF, decode EOLs.
8762
8763 2000-10-24 Kenichi Handa <handa@etl.go.jp>
8764
8765 * window.c (Fdisplay_buffer): Fix doc.
8766
8767 2000-10-23 Jason Rumney <jasonr@gnu.org>
8768
8769 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
8770 ASCII font of default fontset on Windows.
8771
8772 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
8773 xterm.c comment below).
8774
8775 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
8776
8777 2000-10-23 Gerd Moellmann <gerd@gnu.org>
8778
8779 * xterm.c (x_connection_closed): Reset handling_signal.
8780
8781 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
8782
8783 2000-10-23 Miles Bader <miles@gnu.org>
8784
8785 * window.c (window_scroll_pixel_based, window_scroll_line_based):
8786 Pass nil for FULLY argument to Fpos_visible_in_window_p to
8787 maintain old behavior.
8788 * minibuf.c (Fminibuffer_complete): Likewise.
8789
8790 2000-10-23 Miles Bader <miles@lsi.nec.co.jp>
8791
8792 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
8793 that when a font can't be exactly centered, it errs up rather than
8794 down.
8795
8796 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8797
8798 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8799
8800 2000-10-23 Andrew Choi <akochoi@i-cable.com>
8801
8802 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
8803
8804 * dispnew.c [macintosh]: Include macterm.h.
8805 (init_display) [macintosh]: Initialization for window system.
8806
8807 * emacs.c (main) [macintosh]: Call syms_of_textprop,
8808 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
8809 syms_of_search, x_term_init, and init_keyboard before calling
8810 init_window_once. Also, call syms_of_xmenu.
8811
8812 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
8813 default fontset to Monaco.
8814
8815 * frame.c [macintosh]: Include macterm.h. Remove declarations of
8816 NewMacWindow and DisposeMacWindow.
8817 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
8818 instead of calling NewMacWindow and setting fields of
8819 f->output_data.mac directly. Call init_frame_faces.
8820 (Fdelete_frame) [macintosh]: Remove unused code.
8821 (Fmodify_frame_parameters) [macintosh]: Call
8822 x_set_frame_parameters instead of mac_set_frame_parameters.
8823
8824 * frame.h [macintosh]: Define menu_bar_lines field in struct
8825 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
8826
8827 * keyboard.c [macintosh]: Include macterm.h.
8828 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
8829 and menu_bar_activate_event type events as for X and NT.
8830 (make_lispy_event) [macintosh]: Construct lisp events of type
8831 MENU_BAR_EVENT as for X and NT.
8832
8833 * sysdep.c [macintosh]: Remove declaration for sys_signal.
8834 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
8835 (sys_subshell) [macintosh]: Remove definition entirely.
8836 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
8837 Vwindow_system_version here. Remove initialization of
8838 Vx_bitmap_file_path.
8839 (read_input_waiting): Correct the number of parameters passed to
8840 read_socket_hook.
8841 Move all Macintosh functions to mac/mac.c.
8842
8843 * term.c [macintosh]: Include macterm.h.
8844
8845 * window.c [macintosh]: Include macterm.h.
8846
8847 * xdisp.c [macintosh]: Include macterm.h. Declare
8848 set_frame_menubar and pending_menu_activation.
8849 (echo_area_display) [macintosh]: Do not return if terminal frame
8850 is the selected frame.
8851 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
8852 Allow only the selected frame to set menu bar.
8853 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
8854 calling FRAME_EXTERNAL_MENU_BAR (f).
8855 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
8856
8857 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
8858 and check_x. Declare XCreateGC. Define x_create_gc and
8859 x_free_gc. Initialize font_sort_order.
8860 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
8861 but call x_list_fonts instead of w32_list_fonts.
8862 (Finternal_face_x_get_resource) [macintosh]: Do not call
8863 display_x_get_resource.
8864 (prepare_face_for_display) [macintosh]: Set xgcv.font.
8865 (realize_x_face) [macintosh]: Load the font if it is specified in
8866 ATTRS.
8867 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
8868
8869 2000-10-22 Stefan Monnier <monnier@cs.yale.edu>
8870
8871 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
8872 is nil: since we go to the end of submap anyway, we'd end up
8873 setting nil to nil.
8874 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
8875 doesn't obey autoload.
8876
8877 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8878
8879 * msdos.c (dos_set_window_size): Update screen dimension variables.
8880
8881 2000-10-21 Jason Rumney <jasonr@gnu.org>
8882
8883 * w32term.c (w32_cache_char_metrics): Double check that font is
8884 really fixed pitch before trusting tmPitchAndFamily.
8885
8886 2000-10-21 Andrew Innes <andrewi@gnu.org>
8887
8888 * w32gui.h (w32_char_font_type): Move enum from w32term.c
8889
8890 * w32term.h: Extern decl for w32_cache_char_metrics.
8891
8892 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
8893
8894 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
8895 (w32_unload_font): Free per_char array if present.
8896
8897 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
8898 cached information in emulated XFontStruct to handle common cases
8899 quickly. Do not allocate XCharStruct for return.
8900 (w32_native_per_char_metric): New function.
8901 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
8902 allocating one.
8903 (x_produce_glyphs): Don't get an HDC. Change calls to
8904 w32_per_char_metric to match arg change above. Remove calls to
8905 free results.
8906 (w32_get_glyph_overhangs): Ditto.
8907 (w32_cache_char_metrics): New function.
8908
8909 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
8910 ($(BLD)/casefiddle.$(O)): Remove compile command.
8911 ($(BLD)/gmalloc.$(O)): Remove compile command.
8912 ($(BLD)/dispnew.obj):
8913 ($(BLD)/keyboard.obj):
8914 ($(BLD)/w32inevt.obj):
8915 ($(BLD)/w32bdf.obj):
8916 ($(BLD)/alloc.obj):
8917 ($(BLD)/buffer.obj):
8918 ($(BLD)/editfns.obj):
8919 ($(BLD)/emacs.obj):
8920 ($(BLD)/fileio.obj):
8921 ($(BLD)/fns.obj):
8922 ($(BLD)/indent.obj):
8923 ($(BLD)/insdel.obj):
8924 ($(BLD)/intervals.obj):
8925 ($(BLD)/minibuf.obj):
8926 ($(BLD)/print.obj):
8927 ($(BLD)/scroll.obj):
8928 ($(BLD)/sysdep.obj):
8929 ($(BLD)/textprop.obj):
8930 ($(BLD)/widget.obj):
8931 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
8932 ($(BLD)/term.obj): Add dependency on dispextern.h.
8933
8934 * makefile.nt ($(BLD)\dispnew.obj):
8935 ($(BLD)\keyboard.obj):
8936 ($(BLD)\w32inevt.obj):
8937 ($(BLD)\w32bdf.obj):
8938 ($(BLD)\alloc.obj):
8939 ($(BLD)\buffer.obj):
8940 ($(BLD)\editfns.obj):
8941 ($(BLD)\emacs.obj):
8942 ($(BLD)\fileio.obj):
8943 ($(BLD)\fns.obj):
8944 ($(BLD)\indent.obj):
8945 ($(BLD)\insdel.obj):
8946 ($(BLD)\intervals.obj):
8947 ($(BLD)\minibuf.obj):
8948 ($(BLD)\print.obj):
8949 ($(BLD)\scroll.obj):
8950 ($(BLD)\sysdep.obj):
8951 ($(BLD)\textprop.obj):
8952 ($(BLD)\widget.obj):
8953 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
8954 ($(BLD)\term.obj): Add dependency on dispextern.h
8955
8956 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8957
8958 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
8959 with an additional argument of Qt.
8960
8961 2000-10-21 Miles Bader <miles@gnu.org>
8962
8963 * window.c (pos_fully_visible_in_window_p): New function.
8964 (Fpos_visible_in_window_p): Add FULLY argument.
8965 Use pos_fully_visible_in_window_p.
8966 (window_scroll_pixel_based, window_scroll_line_based): Update
8967 calls to Fpos_visible_in_window_p.
8968 * lisp.h (Fpos_visible_in_window_p): Update prototype
8969
8970 2000-10-20 Gerd Moellmann <gerd@gnu.org>
8971
8972 * alloc.c (toplevel): Conditionalize compilation of mem_*
8973 functions differently.
8974
8975 2000-10-20 Jason Rumney <jasonr@gnu.org>
8976
8977 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
8978 mem_init where it used to be. mem_z etc not defined otherwise.
8979
8980 2000-10-20 Gerd Moellmann <gerd@gnu.org>
8981
8982 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
8983 GC_MALLOC_CHECK.
8984 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
8985 structure definition and related variabled to the top of the file.
8986 Include this code when GC_MALLOC_CHECK is defined.
8987 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
8988 register/unregister allocated region.
8989 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
8990 which isn't allocated.
8991 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
8992 something which is already in use.
8993 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
8994 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
8995 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
8996 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
8997
8998 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
8999 _malloc_internal instead of malloc.
9000 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
9001 of free.
9002
9003 2000-10-20 Andrew Innes <andrewi@gnu.org>
9004
9005 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
9006 Windows.
9007 (my_strftime) <macro>: Don't use macro arg list when redefining as
9008 _strftime_copytm.
9009 (my_strftime) <function>: Supply 0 as ut argument.
9010
9011 2000-10-19 Jason Rumney <jasonr@altavista.net>
9012
9013 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
9014 including dispextern.h, as it stops faces from working.
9015
9016 * w32fns.c (Fx_create_frame): Don't bother calling
9017 face-set-after-frame-default since the caller does it for us
9018 anyway. Clean up calls to x_get_arg to be consistent with X.
9019
9020 * w32term.c (x_produce_glyphs): Handle
9021 unibyte_display_via_language_environment correctly.
9022 (w32_draw_box_rect): Fix the calculation of width and height.
9023
9024 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
9025 as it has stopped working.
9026 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
9027 menu-bar.
9028
9029 2000-10-19 Gerd Moellmann <gerd@gnu.org>
9030
9031 * eval.c (skip_debugger): Prevent a compiler warning.
9032 (Fcondition_case): Likewise.
9033 (Fbacktrace_frame): Use a null interactive spec.
9034
9035 2000-10-19 Kenichi Handa <handa@etl.go.jp>
9036
9037 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
9038
9039 2000-10-18 Gerd Moellmann <gerd@gnu.org>
9040
9041 * strftime.c: Sync with glibc, file version 1.78.
9042 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
9043 should no longer be used according to ISO 8601.
9044
9045 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
9046 no map for meta_prefix_char, don't try to use it as a keymap.
9047 Instead, if T_OK is non-zero, look up a default binding, if any,
9048 otherwise, if T_OK is zero, return nil.
9049
9050 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
9051 (x_to_xcolors, png_load): Use x_query_color.
9052
9053 * xterm.c (x_color_cells, x_query_colors, x_query_color):
9054 New functions.
9055 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
9056 which can be slow.
9057 (x_copy_color, x_alloc_lighter_color): Likewise.
9058
9059 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
9060 (x_query_color, x_query_colors): Add prototype.
9061
9062 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
9063 check_string_bytes only if not noninteractive, increase count to 50.
9064
9065 2000-10-18 Miles Bader <miles@lsi.nec.co.jp>
9066
9067 * insdel.c (adjust_markers_for_delete): Handle before-insertion
9068 markers correctly.
9069
9070 2000-10-17 Gerd Moellmann <gerd@gnu.org>
9071
9072 * alloc.c (pure_bytes_used): Renamed from pureptr.
9073 (ALIGN): New macro.
9074 (pure_alloc): New function.
9075 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
9076 Use it.
9077 (Fpurecopy): Use PURE_POINTER_P.
9078
9079 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
9080 PT has moved backward.
9081
9082 * xdisp.c (cursor_row_p): Take continued lines into account.
9083
9084 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
9085 string's size_byte.
9086 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
9087 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
9088 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
9089 string allocated.
9090
9091 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
9092 of selective display off while searching for the next line start.
9093
9094 2000-10-17 Kenichi Handa <handa@etl.go.jp>
9095
9096 * Makefile.in (term.o): Depend on dispextern.h.
9097
9098 2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
9099
9100 * keymap.c (keymap_memberp): Ensure that nil is not a member.
9101
9102 2000-10-16 Gerd Moellmann <gerd@gnu.org>
9103
9104 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
9105 the iterator at the beginning, so that they can be set later on,
9106 for instance in reseat_at_next_visible_line_start, without being
9107 overwritten.
9108
9109 * xfns.c (pbm_format): Add :foreground and :background keywords.
9110 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
9111 (xbm_load): Recognize foreground and background color specifications.
9112
9113 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
9114
9115 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
9116
9117 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
9118
9119 * msdos.c (IT_set_face): Compare highlighted face with the default
9120 face, and invert colors if these faces' colors are identical.
9121 (Fmsdos_remember_default_colors): Don't swap foreground and
9122 background colors in initial_colors[].
9123 (IT_set_frame_parameters): Don't swap frame's foreground and
9124 background pixels. If ALIST includes "(reverse . t)", swap
9125 foreground-color and background-color properties in frame's
9126 param_alist. If the original frame's param_alist doesn't specify
9127 the colors, store unspecified-fg and unspecified-bg, reversed if
9128 required.
9129
9130 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
9131 the colors are unspecified and reversed, reverse fore- and back-
9132 ground in the returned value.
9133 (Fframe_parameter): Ditto.
9134
9135 2000-10-16 Gerd Moellmann <gerd@gnu.org>
9136
9137 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
9138 get_last_unchanged_at_beg_row.
9139 (find_first_unchanged_at_end_row): Renamed from
9140 get_first_unchanged_at_end_row.
9141 (find_first_unchanged_at_end_row): Convert assertions to
9142 unconditional tests which abort. When looking for a row in
9143 unchanged text, don't go further back than first_text_row.
9144
9145 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
9146 Don't add in the last line's height when deciding if the new
9147 position is below the scroll margin.
9148
9149 2000-10-16 Miles Bader <miles@gnu.org>
9150
9151 * editfns.c (Fconstrain_to_field): Check carefully for field
9152 boundaries if either OLD_POS or NEW_POS has a non-nil field
9153 property, even if they're the same.
9154
9155 2000-10-16 Kenichi Handa <handa@etl.go.jp>
9156
9157 * xterm.c (x_draw_box_rect): Fix the calculation of width and
9158 height for XFillRectangle.
9159
9160 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
9161
9162 * syntax.c (Fstring_to_syntax): New function extracted from
9163 Fmodify_syntax_entry.
9164 (Fmodify_syntax_entry): Use it and document the ! and | fences.
9165 (skip_chars, Fforward_comment): Remove unused variables.
9166 (syms_of_syntax): Add defsubr for string-to-syntax.
9167 (describe_syntax): Add code for comment and string fences.
9168
9169 2000-10-14 Stefan Monnier <monnier@cs.yale.edu>
9170
9171 * keymap.c (access_keymap): Add AUTOLOAD parameter.
9172 Do the meta->esc mapping. Call get_keyelt before returning.
9173 Start scanning from the second element (the first is always `keymap')
9174 to make it easier to detect when we reach a parent map.
9175 Handle the case of inheriting from a symbol whose function is a map.
9176 (Fkeymap_parent): Also handle the `inherit from symbol' case.
9177 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
9178 (get_keyelt, Flookup_key): Update call to access_keymap.
9179 Remove the meta->esc mappings.
9180 (define_as_prefix): Delete old disabled code.
9181 (menu_item_p): New function.
9182 (where_is_internal_1): Skip over the few remaining menu items.
9183 * lisp.h (access_keymap): Update prototype.
9184 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
9185 Update call to access_keymap.
9186 (follow_key, read_key_sequence): Update calls to access_keymap.
9187 Remove the meta->esc mappings.
9188
9189 2000-10-13 Gerd Moellmann <gerd@gnu.org>
9190
9191 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
9192 with additional argument.
9193
9194 * xdisp.c (cursor_row_p): New function.
9195 (try_cursor_movement, display_line): Use it.
9196
9197 * xdisp.c (append_space): Also save/restore iterator's current
9198 character and its length.
9199
9200 * xdisp.c (init_from_display_pos): Add an assertion.
9201 (handle_stop): Don't set iterator's add_overlay_start.
9202 (handle_invisible_prop): Likewise.
9203 (load_overlay_strings): If text under an overlay is invisible,
9204 take both before- and after-strings into account when the iterator
9205 is positioned either at the start or at the end of the overlay.
9206 (forward_to_next_line_start): Rewritten.
9207 (reseat_at_next_visible_line_start): Rewritten.
9208 (set_iterator_to_next): Add parameter RESEAT_P.
9209
9210 * dispextern.h (struct it): Remove member add_overlay_start.
9211 (set_iterator_to_next): Change prototype.
9212
9213 2000-10-13 Kenichi Handa <handa@etl.go.jp>
9214
9215 * coding.c (code_convert_region): Be sure to initialize
9216 coding->category_idx.
9217 (decode_coding_string): Set coding->src_multibyte and
9218 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
9219 (encode_coding_string): Set coding->src_multibyte and
9220 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
9221
9222 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
9223
9224 * xfns.c (Fx_create_frame): Don't bother calling
9225 face-set-after-frame-default since the caller does it for us anyway.
9226
9227 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
9228
9229 * window.c (coordinates_in_window): Fix detection of vertical line
9230 on character terminals.
9231
9232 2000-10-12 Gerd Moellmann <gerd@gnu.org>
9233
9234 * editfns.c (save_excursion_save): Additionally record the
9235 selected window.
9236 (save_excursion_restore): If buffer was visible in a window, and a
9237 different window was selected, and the old selected window is
9238 still live, restore point in that window.
9239
9240 2000-10-12 Kenichi Handa <handa@etl.go.jp>
9241
9242 * xterm.c (x_produce_glyphs): Handle
9243 unibyte_display_via_language_environment correctly.
9244
9245 * regex.c (regex_compile): Change the way of handling a range from
9246 unibyte char to multibyte char.
9247
9248 * syntax.c (skip_chars): Change the way of handling a range from
9249 unibyte char to multibyte char.
9250
9251 * process.c (read_process_output): Cancel previous change.
9252
9253 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
9254
9255 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
9256
9257 * charset.c (Ffind_charset_string): Doc fix.
9258 (Ffind_charset_region): Doc fix.
9259
9260 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
9261
9262 * process.c (read_process_output): Fix previous change. Adjust
9263 multibyteness of text to insert in a buffer by
9264 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
9265
9266 2000-10-10 Andreas Schwab <schwab@suse.de>
9267
9268 * alloc.c (mark_object): Remove all workarounds installed on
9269 1993-08-08.
9270
9271 2000-10-10 Kenichi Handa <handa@etl.go.jp>
9272
9273 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
9274 (base64_encode_1): Make it work for a text of multibyte form.
9275 (Fbase64_decode_region): Allocate sufficient memory for multibyte
9276 case. Don't call str_to_multibyte because base64_decode_1
9277 produces correct multibyte form for eight-bit codes.
9278 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
9279 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
9280 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
9281 codes.
9282
9283 * charset.h (CHAR_STRING): Optimized for single byte characters.
9284
9285 2000-10-09 Andreas Schwab <schwab@suse.de>
9286
9287 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
9288 -1 after socket is closed, to fall through to error processing.
9289
9290 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
9291
9292 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
9293 variables. If ALIST includes foreground-color or
9294 background-color, change also the colors of the default face for
9295 this frame.
9296
9297 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
9298
9299 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
9300 them extern (they are defined on xfaces.c).
9301 (syms_of_msdos): Don't intern and don't staticpro
9302 Qbackground_color and Qforeground_color.
9303
9304 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
9305
9306 * frame.c (Fframe_parameter): For non-windowed frames, if
9307 f->param_alist says foreground or background color is unspecified,
9308 call tty_color_name to return the color name computed from the
9309 frame's current colors.
9310
9311 2000-10-06 Dave Love <fx@gnu.org>
9312
9313 * terminfo.c (ospeed): Don't declare.
9314
9315 * sysdep.c: Don't include string.h.
9316 (h_errno): Declare conditional also on TRY_AGAIN.
9317
9318 * charset.c (Ffind_charset_string): Doc fix.
9319
9320 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
9321 (Fbase64_decode_region, Fbase64_decode_string): More explicit
9322 error messages.
9323
9324 2000-10-05 Dave Love <fx@gnu.org>
9325
9326 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
9327 position like menu-bar.
9328
9329 2000-10-05 Gerd Moellmann <gerd@gnu.org>
9330
9331 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
9332
9333 * xdisp.c (handle_single_display_prop): Use safe_call1.
9334 (safe_call): Renamed from call_function.
9335 (safe_call1): New function.
9336 (handle_fontified_prop): Use safe_call1 instead of call1.
9337 (safe_eval): Renamed from eval_form.
9338 (safe_eval_handler): Renamed from eval_handler.
9339 (handle_single_display_prop, display_mode_element): Use safe_eval
9340 instead of eval_form.
9341
9342 * xfaces.c (merge_face_heights): Use safe_call instead of
9343 call_function.
9344
9345 * keyboard.c (show_help_echo): Use safe_call instead of
9346 call_function; use safe_eval instead of eval_form.
9347
9348 * lisp.h (safe_call): Renamed from call_function.
9349 (safe_eval): Renamed from eval_form.
9350 (safe_call1): Add prototype.
9351
9352 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
9353
9354 * xfns.c (image_ascent): Rearrange ascent calculation for the
9355 has-a-font case.
9356
9357 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
9358
9359 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
9360 (where_is_internal_1): Don't bother ignoring menu-items any more.
9361
9362 2000-10-04 Gerd Moellmann <gerd@gnu.org>
9363
9364 * keyboard.c (update_menu_bindings): New variable.
9365 (parse_menu_item): Use AREF. If update_menu_bindings
9366 is 0, don't update menu bindings.
9367 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
9368
9369 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
9370
9371 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
9372 to `mark_object'.
9373
9374 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
9375
9376 * syntax.c (forw_comment): Match nestedness of ender/starter.
9377 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
9378 (prev_char_comstart_first): Remove.
9379 (back_comment): Check two-char comment markers more carefully
9380 to better handle overlapping cases like *//* or /* */* */ ...
9381 Match nestedness of ender/starter.
9382
9383 2000-10-02 Dave Love <fx@gnu.org>
9384
9385 * config.in (HAVE_GAI_STRERROR): Add undef.
9386
9387 * process.c (Fopen_network_stream): Use it.
9388
9389 * m/alpha.h (NO_REMAP): Don't define.
9390
9391 2000-10-02 Gerd Moellmann <gerd@gnu.org>
9392
9393 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
9394 return with a string converted to an integer or vice versa when
9395 Vmocklisp_arguments is t.
9396 (Fsignal): Likewise. The function can return for `quit'.
9397 (struct gcpro): Declare member `var' to point to a volatile
9398 Lisp_Object.
9399
9400 * eval.c (error): Prevent compiler warning.
9401
9402 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
9403
9404 * keymap.c (keymap_memberp): New function.
9405 (Fset_keymap_parent): Use it.
9406 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
9407 Use keymap_memberp to avoid creating cycles.
9408 (access_keymap): Use KEYMAPP.
9409
9410 2000-09-30 Gerd Moellmann <gerd@gnu.org>
9411
9412 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
9413 gai_strerror. Make sure xerrno is set if connect fails. Improve
9414 error recovery.
9415
9416 2000-09-29 Jason Rumney <jasonr@gnu.org>
9417
9418 * w32term.c (w32_char_font_type, w32_encode_char)
9419 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
9420 (w32_bdf_per_char_metric): New function.
9421 (w32_per_char_metric): Use it.
9422 (x_draw_glyph_string_background): Always draw background for BDF
9423 glyphs.
9424
9425 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
9426 GDI object which is a scarce resource.
9427
9428 * w32bdf.c (search_file_line): Fix skipping of whitespace.
9429 (get_quoted_string): Fix limit on memchr search.
9430 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
9431 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
9432 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
9433 (get_cached_font_char, cache_char_offset): Use macro
9434 BDF_CODEPOINT_RANGE_COVER_P.
9435 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
9436 (clear_cached_bitmap_slots): New function.
9437 (GET_HEX_VALUE): G-Z, g-z are not hex.
9438 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
9439 (get_bitmap_with_cache): Use new cache implementation.
9440 (create_offscreen_bitmap): New function.
9441 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
9442
9443 * w32term.c (x_produce_glyphs): If the distance from the current
9444 position to the next tab stop is less than a canonical character
9445 width, use the tab stop after that.
9446 (x_draw_glyphs): Handle case START and END are out of bounds more
9447 carefully.
9448 (x_clear_mouse_face): Block/unblock input.
9449 (x_display_and_set_cursor): Don't show a hollow box cursor for
9450 buffers whose cursor_type is nil.
9451
9452 2000-09-29 Gerd Moellmann <gerd@gnu.org>
9453
9454 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
9455
9456 * dispextern.h (updating_frame): Declare extern.
9457
9458 2000-09-29 Andreas Schwab <schwab@suse.de>
9459
9460 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
9461
9462 2000-09-29 Gerd Moellmann <gerd@gnu.org>
9463
9464 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
9465 use its function definition.
9466 (tool_bar_items): Likewise.
9467
9468 * lisp.h (fatal): Declare NO_RETURN.
9469
9470 2000-09-29 Kenichi Handa <handa@etl.go.jp>
9471
9472 * keymap.c: Remove the line "#undef NULL".
9473
9474 2000-09-28 Gerd Moellmann <gerd@gnu.org>
9475
9476 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
9477
9478 2000-09-28 Dave Love <fx@gnu.org>
9479
9480 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
9481
9482 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
9483
9484 * .gdbinit (xreload): Note its need on GNU/Linux.
9485
9486 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
9487 r_alloc, r_alloc_free.
9488
9489 2000-09-28 Kenichi Handa <handa@etl.go.jp>
9490
9491 * syntax.c (skip_chars): Handle negation correctly.
9492
9493 2000-09-27 Gerd Moellmann <gerd@gnu.org>
9494
9495 * xfaces.c (realize_default_face): Call set_lface_from_font_name
9496 with non-zero FORCE_P argument.
9497
9498 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
9499 Add assertions.
9500
9501 * xdisp.c (window_box_height): Add an assertion.
9502
9503 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
9504 tool-bar than is available.
9505 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
9506
9507 2000-09-27 Dave Love <fx@gnu.org>
9508
9509 * s/irix6-5.h: Now works 64-bit. Tidied.
9510
9511 2000-09-26 Gerd Moellmann <gerd@gnu.org>
9512
9513 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
9514 instead of BITS_PER_INT.
9515 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
9516 EMACS_UINT, respectively.
9517 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
9518
9519 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
9520
9521 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
9522
9523 * window.c (freeze_window_starts): Construct last argument for
9524 foreach_window differently.
9525
9526 * xfns.c (x_decode_color): Don't return a Lisp_Object.
9527
9528 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
9529 EMACS_UINT instead of `int' and `unsigned int'.
9530 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
9531
9532 * frame.h (struct frame): Make the `nothing' member of union
9533 output_data an EMACS_INT.
9534
9535 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
9536 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
9537 size in the sdata structure.
9538 (SDATA_NBYTES, SDATA_DATA): New macros.
9539 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
9540 differently for the different layout of the sdata structure.
9541 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
9542 in sdata.
9543 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
9544 Check that size recorded in the string size and size recorded in
9545 the sdata structure agree.
9546
9547 2000-09-25 Dave Love <fx@gnu.org>
9548
9549 * buffer.c: Include stdio.h.
9550
9551 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
9552
9553 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
9554
9555 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
9556 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
9557 (__malloc_extra_blocks): Declare as __malloc_size_t.
9558
9559 2000-09-25 Gerd Moellmann <gerd@gnu.org>
9560
9561 * alloc.c (mark_image): Use GC_NILP instead of NILP.
9562
9563 * keyboard.c (show_help_echo): Set help_echo_showing_p.
9564 (read_char): If help-echo is showing, preserve the echo area
9565 when redisplaying.
9566
9567 * xdisp.c (help_echo_showing_p): New variable.
9568 (set_message): Reset it to 0.
9569 (init_xdisp): Initialize help_echo_showing_p.
9570
9571 * dispextern.h (help_echo_showing_p): Declare extern.
9572
9573 * config.in: Fix typo in __GNUC_MINOR__.
9574
9575 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
9576
9577 * s/freebsd.h (POSIX_SIGNALS): Define.
9578
9579 * xterm.c (x_clear_mouse_face): Block/unblock input.
9580
9581 2000-09-24 Dave Love <fx@gnu.org>
9582
9583 * fns.c (base64_encode_1): Fix last change.
9584
9585 2000-09-22 Gerd Moellmann <gerd@gnu.org>
9586
9587 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
9588
9589 * xdisp.c (try_window_reusing_current_matrix): More fixes
9590 for the case window has a header-line.
9591
9592 2000-09-22 Dave Love <fx@gnu.org>
9593
9594 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
9595 a doc string.
9596
9597 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
9598
9599 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
9600
9601 2000-09-21 Gerd Moellmann <gerd@gnu.org>
9602
9603 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
9604 for GCC >= 2.5.
9605
9606 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
9607 Declare NO_RETURN.
9608
9609 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
9610 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
9611 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
9612 warnings.
9613
9614 * marker.c (byte_char_debug_check): Return void.
9615
9616 * xfns.c (Fx_create_frame): Set default frame parameter value
9617 for tool-bar-lines to 1.
9618
9619 * dispnew.c (scrolling_window): Compare y-positions of rows
9620 equal at the start. Some simplification.
9621
9622 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
9623 reused rows' y-position in the case window has a header-line, and
9624 new window start is greater than old window start.
9625
9626 * process.c (process_sent_to): New variable.
9627 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
9628 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
9629 Declare more parameters volatile.
9630
9631 * lread.c (Vrecursive_load_depth_limit): New variable.
9632 (Fload): Check recursive loads whose recursion depth exceeds
9633 Vrecursive_load_depth_limit.
9634 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
9635
9636 2000-09-20 Gerd Moellmann <gerd@gnu.org>
9637
9638 * fileio.c (Fread_file_name): Doc fix.
9639
9640 * editfns.c (Fmessage_or_box): Doc fix.
9641
9642 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
9643
9644 * xfns.c (xbm_scan): Allow C-style comments.
9645
9646 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
9647 symbols are specified, add color translations to the cache.
9648 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
9649 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
9650 xpm_cache_color.
9651 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
9652 structures to xpm_init_color_cache.
9653
9654 2000-09-19 Gerd Moellmann <gerd@gnu.org>
9655
9656 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
9657
9658 2000-09-19 Andrew Innes <andrewi@gnu.org>
9659
9660 * makefile.nt (bootstrap-emacs): Don't change directory.
9661
9662 2000-09-19 Kenichi Handa <handa@etl.go.jp>
9663
9664 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
9665
9666 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
9667 If output buffer is too small, signal an appropriated error.
9668
9669 2000-09-18 Dave Love <fx@gnu.org>
9670
9671 * keyboard.c (menu_bar_items, tool_bar_items)
9672 (current_active_maps): Remove redundant get_local_map call.
9673
9674 2000-09-18 Gerd Moellmann <gerd@gnu.org>
9675
9676 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
9677 cursor for buffers whose cursor_type is nil.
9678
9679 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
9680 a feature to implement that is already implemented.
9681 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
9682 warnings.
9683
9684 * xfns.c (x_clear_image_1): New function.
9685 (x_clear_image): Use it.
9686 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
9687
9688 * dispnew.c (update_window): Move test for invisible lines
9689 at the top to update_window_line.
9690 (update_window_line): Handle invisible lines here.
9691
9692 * xfns.c (clear_image_cache): Clear current matrices of all
9693 frames sharing an image cache. Block input while freeing
9694 images. Fix timestamp comparison.
9695 (x_clear_image): Also free the mask.
9696
9697 * xfns.c (lookup_image): Block input while loading the image so
9698 that we won't get interrupted in a state where the image isn't yet
9699 set up completely.
9700 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
9701 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
9702 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
9703 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
9704
9705 2000-09-16 Gerd Moellmann <gerd@gnu.org>
9706
9707 * dispnew.c (update_window): Make sure to make desired rows
9708 current even if they are completely invisible at the top
9709 of a window.
9710
9711 2000-09-15 Gerd Moellmann <gerd@gnu.org>
9712
9713 * xfns.c (lookup_image): Build mask before applying an algorithm.
9714 Recognize algorithm `disabled'.
9715 (cross_disabled_images): New variable.
9716 (COLOR_INTENSITY): New macro.
9717 (x_detect_edges): Use COLOR_INTENSITY.
9718 (x_disable_image): New function.
9719 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
9720
9721 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
9722 disabled state, don't apply an image transformation algorithm if
9723 the user specified an image for the disabled state. Use
9724 `:algorithm disabled' for creating a disabled item's image if the
9725 user hasn't specified an image.
9726
9727 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
9728 allocation functions with the XPM lib.
9729 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
9730 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
9731 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
9732 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
9733 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
9734 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
9735 functions, if possible, because these handle color allocation
9736 failure more gracefully.
9737 (Fimage_mask_p): New function.
9738
9739 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
9740 (Qedge_detection, Qheuristic): New symbols.
9741 (syms_of_xfns): Initialize new symbols.
9742 (lookup_image): Handle `:mask X', `:algorithm emboss', and
9743 `algorithm (edge-detection ...)'.
9744 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
9745 (tiff_format, gif_format, gs_format): Add `:mask'.
9746 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
9747 (GIF_MASK, GS_MASK): New enumerators.
9748 (x_laplace_read_row, x_laplace_write_row): Functions removed.
9749 (emboss_matrix, laplace_matrix): New variables.
9750 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
9751 (x_edge_detection): New functions.
9752 (x_laplace): Rewritten in terms of x_detect_edges.
9753 (x_build_heuristic_mask): If image has a mask, free it.
9754
9755 2000-09-14 Andrew Innes <andrewi@gnu.org>
9756
9757 * makefile.w32-in: Revert to Unix line endings.
9758
9759 2000-09-14 Andrew Innes <andrewi@gnu.org>
9760
9761 * makefile.w32-in: Standardize indentation somewhat.
9762 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
9763 cater for differences between shells.
9764
9765 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
9766
9767 2000-09-14 Gerd Moellmann <gerd@gnu.org>
9768
9769 * xterm.c (x_produce_glyphs): If the distance from the current
9770 position to the next tab stop is less than a canonical character
9771 width, use the tab stop after that.
9772
9773 2000-09-14 Dave Love <fx@gnu.org>
9774
9775 * buffer.c (alloc_buffer_text): Fix xmalloc call.
9776
9777 2000-09-14 Gerd Moellmann <gerd@gnu.org>
9778
9779 * xdisp.c (handle_fontified_prop): While running fontification
9780 functions, bind `fontification-functions' and
9781 `after-change-functions' to nil.
9782
9783 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
9784 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
9785
9786 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
9787
9788 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
9789 USE_MMAP_FOR_BUFFERS.
9790
9791 * insdel.c (make_gap): Use enlarge_buffer_text.
9792
9793 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
9794 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
9795 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
9796 from former r_alloc_* functions in ralloc.c.
9797 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
9798 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
9799 (mmap_init) [REL_ALLOC_MMAP]: New function.
9800 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
9801 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
9802 BUFFER_FREE.
9803
9804 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
9805 (enlarge_buffer_text): Add prototype.
9806
9807 * ralloc.c: Remove everything having to do with the use of mmap.
9808
9809 2000-09-13 Gerd Moellmann <gerd@gnu.org>
9810
9811 * sound.c (Fplay_sound): Doc fix.
9812
9813 * keyboard.c: Avoid some more compiler warnings.
9814 (parse_tool_bar_item): Ignore cached key bindings.
9815
9816 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
9817 and allocation of Lisp data.
9818
9819 2000-09-12 Gerd Moellmann <gerd@gnu.org>
9820
9821 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
9822 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
9823 defaults first.
9824
9825 * lread.c (Fload): Put code checking for recursive loads in #if 0.
9826
9827 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
9828
9829 * ccl.c: Comment fixed.
9830 (MAX_MAP_SET_LEVEL): Increased to 30.
9831 (PUSH_MAPPING_STACK): Enclose with do-while block.
9832 (POP_MAPPING_STACK): Likewise.
9833 (stack_idx_of_map_multiple): New variable.
9834 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
9835 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
9836 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
9837 (ccl_driver) <CCL_MapSingle>: Likewise.
9838 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
9839 with the case where looking up process reaches to the end of
9840 map-set, and call CCL programs as the above change.
9841
9842 2000-09-11 Gerd Moellmann <gerd@gnu.org>
9843
9844 * xfns.c (png_load, jpeg_load): Declare some variables volatile
9845 that might be clobbered by longjmp.
9846 (check_x_display_info, x_decode_color, create_frame_xic)
9847 (Fx_display_backing_store, Fx_display_visual_class)
9848 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
9849
9850 * lread.c (init_lread): Set Vloads_in_progress to nil.
9851 (Fload): Show list of recursively loaded files, when signaling an
9852 error.
9853
9854 * lread.c (Vloads_in_progress): New variable.
9855 (record_load_unwind): New function.
9856 (Fload): Check for recursive loads.
9857 (syms_of_lread): Initialize Vloads_in_progress.
9858 (read_integer, read1): Avoid some compiler warnings.
9859
9860 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
9861 compiler warnings.
9862
9863 2000-09-11 Miles Bader <miles@gnu.org>
9864
9865 * editfns.c (Fbuffer_string): Doc fix.
9866
9867 2000-09-10 Gerd Moellmann <gerd@gnu.org>
9868
9869 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
9870
9871 2000-09-09 Ken Raeburn <raeburn@gnu.org>
9872
9873 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
9874 whether to include other header files.
9875
9876 2000-09-09 Gerd Moellmann <gerd@gnu.org>
9877
9878 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9879 by Fmemq as a boolean.
9880
9881 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
9882
9883 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
9884
9885 2000-09-08 Gerd Moellmann <gerd@gnu.org>
9886
9887 * ralloc.c (mmap_fd): Remove initializer which can make it
9888 read-only in a dumped Emacs.
9889 (mmap_fd_1): New variable.
9890 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
9891 restore it from there.
9892 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
9893 unconditionally so that mmap_fd can be initialized there.
9894 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
9895 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
9896 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
9897
9898 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
9899
9900 * xdisp.c (dump_glyph_row): Fix printf format string.
9901 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
9902
9903 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
9904
9905 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
9906 inheritance.
9907
9908 * xdisp.c (try_window_id): When trying to locate cursor in
9909 unchanged rows at the top, handle the case that we can't find it.
9910
9911 * xterm.c (x_draw_glyphs): Handle case START and END are out
9912 of bounds more carefully.
9913
9914 2000-09-08 Dave Love <fx@gnu.org>
9915
9916 * s/sol2.h (REL_ALLOC_MMAP): Define.
9917 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
9918
9919 * ralloc.c: Don't include string.h (redundant).
9920 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
9921 [!MAP_ANON]: Include fcntl.h.
9922 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
9923 (r_alloc, r_re_alloc, r_alloc_free)
9924 (mmap_enlarge, mmap_set_vars): Use it.
9925 (r_alloc_init_fd): New function.
9926 (__morecore) [SYSTEM_MALLOC]: Don't declare.
9927 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
9928 malloc type.
9929
9930 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
9931 Remove vm-limit.o.
9932
9933 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
9934 change to __NetBSD__.
9935
9936 2000-09-08 Kenichi Handa <handa@etl.go.jp>
9937
9938 * search.c (compile_pattern): Check the multibyteness of cached
9939 string and PATTERN.
9940
9941 2000-09-08 Miles Bader <miles@gnu.org>
9942
9943 * xfaces.c (default_face_vector): Function removed.
9944 (Finternal_merge_in_global_face): Restore old global/local
9945 attribute override order. Use inline loop instead of calling
9946 default_face_vector.
9947
9948 2000-09-07 Gerd Moellmann <gerd@gnu.org>
9949
9950 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
9951 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
9952 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
9953 where necessary, in case POINTER_TYPE is `void'.
9954
9955 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
9956
9957 * frame.c (make_terminal_frame): Initialize frame foreground and
9958 background colors to unspecified, for the initial instance of an
9959 MSDOS frame.
9960
9961 2000-09-07 Gerd Moellmann <gerd@gnu.org>
9962
9963 * ralloc.c (mmap_find): Fix overlap computation.
9964 (mmap_enlarge): Compute nbytes before trying to find an
9965 overlapping region.
9966
9967 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
9968 instead of `!='.
9969
9970 * lread.c (syms_of_lread): Change value of regexp
9971 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
9972
9973 * xmenu.c (xdialog_show): When looking up the selection in
9974 menu_items, take `quote' boundaries into account; this corresponds
9975 to a nil ITEM in x-popup-dialog.
9976
9977 2000-09-07 Kenichi Handa <handa@etl.go.jp>
9978
9979 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
9980 not 0x81.
9981 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
9982
9983 * coding.c (encode_coding_sjis_big5): Use translation table for
9984 encoding, not decoding. Fix the handling of latin-jisx0201.
9985 Check for the charset katakana-jisx0201 too.
9986 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
9987 (detect_coding_sjis): Check the byte sequence more rigidly.
9988
9989 2000-09-07 Gerd Moellmann <gerd@gnu.org>
9990
9991 * xfaces.c (Vparam_value_alist): New variable.
9992 (syms_of_xfaces): Initialize it.
9993 (Finternal_set_lisp_face_attribute): Avoid more consing.
9994
9995 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
9996 specially.
9997 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
9998 (Qbackground_mode): New variable.
9999 (syms_of_frame_1): Initialize Qbackground_mode.
10000
10001 * lisp.h (Qdisplay): Declare extern.
10002
10003 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
10004 change face on all frames, and change the default for new frames.
10005
10006 2000-09-07 Dave Love <fx@gnu.org>
10007
10008 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
10009
10010 2000-09-07 Kenichi Handa <handa@etl.go.jp>
10011
10012 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
10013
10014 * charset.c: Include composite.h
10015 (lisp_string_width): New function.
10016 (Fstring_width): Call lisp_string_width instead of strwidth.
10017
10018 * Makefile.in (charset.o): Depends on composite.h.
10019
10020 * process.c (read_process_output): Before inserting the decoded
10021 text in the buffer, adjust the multibyteness.
10022
10023 2000-09-06 Gerd Moellmann <gerd@gnu.org>
10024
10025 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
10026 buffer's text buffer is null, map new memory.
10027
10028 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
10029 POINTER_TYPE and size_t.
10030 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
10031 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
10032 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
10033 [REL_ALLOC_MMAP]: New macros.
10034 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
10035 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
10036 [REL_ALLOC_MMAP]: New functions.
10037
10038 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
10039 before and after unexec.
10040
10041 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
10042 text buffers if necessary.
10043
10044 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
10045 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
10046 in prototypes.
10047
10048 * config.in (HAVE_MMAP): Add #undef.
10049
10050 2000-09-05 Gerd Moellmann <gerd@gnu.org>
10051
10052 * frame.c (Qdisplay_type): New variable.
10053 (syms_of_frame_1): Initialize it.
10054 (Fframe_parameter): New function that avoids consing.
10055 (syms_of_frame): Defsubr it.
10056
10057 * buffer.c (Fother_buffer): Consider buffers as invisible when
10058 they are displayed in a window on an invisible frame.
10059
10060 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
10061 get-largest-window always return nil.
10062
10063 2000-09-04 Gerd Moellmann <gerd@gnu.org>
10064
10065 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
10066 variable; recognize Emacs 19 elc files.
10067
10068 2000-09-04 Miles Bader <miles@gnu.org>
10069
10070 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
10071 before initially popping up the menu, so the menu doesn't flash
10072 when the face settings are significantly different from the defaults.
10073
10074 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
10075
10076 * regex.c (WIDE_CHAR_SUPPORT): New macro.
10077 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
10078 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
10079 (BIT_UNIBYTE): Remove.
10080 (re_match_2_internal): Delete corresponding code and streamline the
10081 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
10082 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
10083 (re_wctype_t): New type.
10084 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
10085 (regex_compile): Use them and fix handling of overly long char classes.
10086
10087 2000-09-03 Andrew Innes <andrewi@gnu.org>
10088
10089 * makefile.w32-in: Change to DOS line endings.
10090
10091 * s/ms-w32.h (ORDINARY_LINK): New define.
10092
10093 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
10094 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
10095
10096 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
10097 (distclean): Delete them here instead.
10098
10099 * w32proc.c (compare_env): Convert to uppercase for comparison,
10100 not lowercase, to match how the native Windows shell works.
10101
10102 2000-09-03 Jason Rumney <jasonr@gnu.org>
10103
10104 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
10105 CVS changes the line-ends when checking in/out on DOS/Windows.
10106
10107 * makefile.nt (emacs): Do not change directory to run temacs, as
10108 the load-path is set relative to current directory.
10109
10110 2000-09-03 Miles Bader <miles@gnu.org>
10111
10112 * xterm.c (x_alloc_lighter_color_for_widget): New function.
10113
10114 2000-09-02 Gerd Moellmann <gerd@gnu.org>
10115
10116 * xdisp.c (redisplay_mode_lines): New function.
10117 (display_mode_lines): Return number of mode lines displayed.
10118 (echo_area_display): Use redisplay_mode_lines to draw garbaged
10119 mode lines. Don't temporarily bind redisplay-dont-pause to t.
10120
10121 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
10122 string.h and strings.h.
10123 (index) [HAVE_INDEX]: Add prototype.
10124
10125 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
10126 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
10127
10128 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
10129 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10130
10131 2000-09-01 Gerd Moellmann <gerd@gnu.org>
10132
10133 * lread.c (read1): Accept `?' as symbol constituent, for
10134 compatiblity with XEmacs.
10135
10136 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
10137
10138 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
10139 (struct re_pattern_buffer): Remove newline_anchor.
10140 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
10141 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
10142 (re_max_failures, fail_stack): Use size_t rather than unsigned.
10143 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
10144 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
10145 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
10146 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
10147 Get rid of references to newline_anchor.
10148 (regcomp): Allocate and precompute a fastmap.
10149
10150 2000-08-31 Gerd Moellmann <gerd@gnu.org>
10151
10152 * lread.c (openp): GCPRO local variable `filename'.
10153
10154 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
10155
10156 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
10157
10158 * regex.c: Merge some changes from GNU libc. Add prototypes.
10159 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
10160 Use memcmp and memcpy instead of bcopy and bcmp.
10161 (init_syntax_once): Use ISALNUM.
10162 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
10163 (REG_UNSET_VALUE): Remove. Use NULL instead.
10164 (REG_UNSET, re_match_2_internal): Use NULL.
10165 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
10166 New macros.
10167 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
10168 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
10169 (regex_compile): In handle_interval, return an error rather than try to
10170 unfetch the interval if we can't find the closing brace.
10171 Obey the RE_NO_GNU_OPS syntax bit.
10172 (TOLOWER): New macro.
10173 (regcomp): Use it.
10174 (regexec): Allocate regs.start and regs.end as one block.
10175
10176 2000-08-30 Gerd Moellmann <gerd@gnu.org>
10177
10178 * xdisp.c (echo_area_display): Check display_completed instead
10179 of calling detect_input_pending.
10180
10181 * dispnew.c (update_frame): Only set display_completed here; move
10182 the update_begin and update_end calls here from update_frame_1.
10183 (update_frame_1): Don't set display_completed here, don't call
10184 update_begin/update_end.
10185
10186 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
10187 instead of store_frame_param.
10188
10189 2000-08-29 Gerd Moellmann <gerd@gnu.org>
10190
10191 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
10192 desired window matrix hasn't been displayed, use the current row
10193 instead. Make sure that only those frame rows are updated for
10194 which there exists a corresponding enabled desired row.
10195
10196 2000-08-29 Miles Bader <miles@gnu.org>
10197
10198 * xfaces.c (default_face_vector): New function.
10199 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
10200
10201 2000-08-29 Gerd Moellmann <gerd@gnu.org>
10202
10203 * lread.c (openp): Prevent temporary string passed to
10204 Ffile_readable_p from being garbage collected.
10205
10206 2000-08-28 Dave Love <fx@gnu.org>
10207
10208 * keymap.c (store_in_keymap): Add `static' to declaration.
10209
10210 2000-08-28 Gerd Moellmann <gerd@gnu.org>
10211
10212 * emacs.c, callint.c, doc.c, editfns.c
10213 (toplevel) [HAVE_STRING_H]: Include string.h.
10214 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
10215 (index): Remove prototypes which might conflict with non-standard
10216 definitions of index/strchr.
10217
10218 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
10219 (rindex): Define only if !HAVE_RINDEX.
10220
10221 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
10222
10223 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
10224
10225 2000-08-28 Miles Bader <miles@gnu.org>
10226
10227 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
10228 made inconsistent by a font-related attribute in FROM.
10229 (merge_face_inheritance): Add function comment.
10230
10231 2000-08-28 Kenichi Handa <handa@etl.go.jp>
10232
10233 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
10234 the 4th arg (PREV_EVENT) Qt to suppress input method.
10235
10236 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
10237
10238 * regex.c: Indent cpp directives and remove parens after `defined'.
10239 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
10240 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
10241 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
10242 (re_compile_pattern): Use size_t for length.
10243 (init_syntax_once): Move to a better place.
10244 * regex.h: Merge changes from GNU libc. Indent cpp directives.
10245 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
10246
10247 * syntax.c (back_comment): Detect cases where a comment-starter is
10248 actually inside another comment as in: /* a // b */ c // d \n.
10249 Make it clear that `comstart_pos' is unused for nested comments.
10250
10251 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
10252 (KEYMAPP): New macro.
10253 (Fkeymap_parent, Fset_keymap_parent): Use it.
10254 (fix_submap_inheritance): Mark it static.
10255 (define_as_prefix, describe_buffer_bindings, describe_command)
10256 (describe_translation, describe_map): Complete prototypes.
10257
10258 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
10259
10260 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
10261 to better match the key-lookup behavior.
10262
10263 2000-08-27 Gerd Moellmann <gerd@gnu.org>
10264
10265 * xfaces.c (lface_fully_specified_p): Handle :inherit.
10266 (Finternal_set_lisp_face_attribute): Fix typo in error message.
10267
10268 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
10269
10270 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
10271 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
10272 (xterm.o): Depend on coding.h
10273
10274 2000-08-26 Kenichi Handa <handa@etl.go.jp>
10275
10276 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
10277 the corresponding '#endif'.
10278
10279 2000-08-26 Miles Bader <miles@gnu.org>
10280
10281 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
10282 * xfaces.c (QCinherit): New variable.
10283 (syms_of_xfaces): Initialize it.
10284 (LFACE_INHERIT): New macro.
10285 (Finternal_get_lisp_face_attribute)
10286 (merge_face_vector_with_property)
10287 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
10288 (check_lface_attrs): Allow new types of face height. Check
10289 inherit attribute.
10290 (CYCLE_CHECK): New macro.
10291 (merge_face_inheritance): New function.
10292 (merge_face_vectors): Merge inherited faces too. Add F and
10293 CYCLE_CHECK arguments.
10294 (merge_face_vector_with_property, Finternal_merge_in_global_face)
10295 (lookup_named_face, lookup_derived_face, realize_named_face)
10296 (face_at_string_position, face_at_buffer_position): Supply
10297 new F and CYCLE_CHECK arguments to merge_face_vectors.
10298 (merge_face_heights): New function.
10299 (merge_face_vectors, merge_face_vector_with_property)
10300 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
10301 handle relative face heights.
10302 (lface_same_font_attributes_p): Compare heights using EQ.
10303
10304 2000-08-26 Kenichi Handa <handa@etl.go.jp>
10305
10306 * charset.c (char_to_string): Check the character validity.
10307 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
10308
10309 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
10310
10311 * regex.c (PUSH_FAILURE_COUNT): New macro.
10312 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
10313 Handle popping of a register's or a counter's data.
10314 (POP_FAILURE_POINT): Use the new name.
10315 (re_match_2_internal): Push counter data on the stack for succeed_n,
10316 jump_n and set_number_at and remove misleading dead code in succeed_n.
10317
10318 2000-08-25 Gerd Moellmann <gerd@gnu.org>
10319
10320 * xdisp.c (redisplay_internal): If considering all windows on all
10321 frames, update the display for each frame as soon as possible,
10322 instead of first building all desired matrices for all frames, and
10323 then updating them all.
10324 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
10325
10326 2000-08-24 Gerd Moellmann <gerd@gnu.org>
10327
10328 * bytecode.c (mark_byte_stack): Add a comment.
10329
10330 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
10331 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
10332 a graphical frame.
10333
10334 2000-08-24 Kenichi Handa <handa@etl.go.jp>
10335
10336 * minibuf.c (do_completion): Always use compare-string, not
10337 string-equal because the latter doesn't pay attention to
10338 multibyteness of strings.
10339
10340 * process.c (create_process): Don't setup raw-text coding here.
10341 (Fopen_network_stream): Don't set coding->src_multibyte and
10342 coding->dst_multibyte here.
10343 (read_process_output): For process filter, return unibyte string
10344 if default-enable-multibyte-characters is nil.
10345 (send_process): If OBJECT is multibyte text, be sure to encoded it
10346 by the specified coding system for the process. Otherwise, setup
10347 raw-text coding.
10348 (init_process): Don't initialize default-process-coding-system here.
10349
10350 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
10351
10352 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
10353 <scroll-down-aggressively>: Likewise.
10354
10355 2000-08-23 Kenichi Handa <handa@etl.go.jp>
10356
10357 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
10358 zero. Set coding->produced_char correctly.
10359
10360 2000-08-22 Andrew Innes <andrewi@gnu.org>
10361
10362 * makefile.w32-in: New file.
10363
10364 * unexw32.c (unexec): Ignore old_name, and use the actual location
10365 of the current executable instead. Base new_name on this.
10366
10367 * w32proc.c (create_child): Remove reference to security
10368 descriptor, which isn't needed and doesn't compile with mingw32.
10369
10370 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10371 up dllimport attributes.
10372 (x_update_window_end): Update prototype.
10373
10374 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
10375 extern, which screws up dllimport attributes.
10376
10377 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10378 up dllimport attributes.
10379
10380 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
10381 screws up dllimport attributes.
10382
10383 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10384 up dllimport attributes.
10385 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
10386 screws up dllimport attributes.
10387
10388 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10389 up dllimport attributes.
10390
10391 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
10392 screws up dllimport attributes.
10393
10394 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
10395 screws up dllimport attributes.
10396
10397 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10398 up dllimport attributes.
10399
10400 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
10401 unnecessary extern, which screws up dllimport attributes.
10402 (main): Ditto.
10403
10404 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10405 up dllimport attributes.
10406
10407 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
10408 unnecessary extern, which screws up dllimport attributes.
10409
10410 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
10411 screws up dllimport attributes.
10412
10413 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10414 up dllimport attributes.
10415
10416 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
10417
10418 * w32bdf.c (search_file_line):
10419 (set_bdf_font_info):
10420 (seek_char):
10421 (w32_get_bdf_glyph):
10422 (w32_BDF_to_x_font): Fix compile warnings.
10423
10424 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
10425
10426 * w32select.c: Include keyboard.h before frame.h.
10427
10428 * w32fns.c (max): Define macro.
10429 (JOHAB_CHARSET): Define if not known.
10430 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
10431 (Fx_show_tip): Synch with X version.
10432
10433 * w32xfns.c: Include keyboard.h before frame.h.
10434
10435 * w32fns.c: Include keyboard.h before frame.h.
10436
10437 * w32term.c: Include keyboard.h before frame.h.
10438
10439 * fontset.c: Include keyboard.h before frame.h.
10440
10441 * w32inevt.c: Include keyboard.h before frame.h.
10442 (MOUSE_MOVED): Define if not known.
10443
10444 * minibuf.c: Include keyboard.h before frame.h.
10445
10446 * keyboard.c: Include keyboard.h before frame.h.
10447
10448 * indent.c: Include keyboard.h before frame.h.
10449
10450 * dispnew.c: Include keyboard.h before frame.h.
10451
10452 * buffer.c: Include keyboard.h before frame.h.
10453
10454 * alloc.c: Include keyboard.h before frame.h.
10455
10456 * print.c: Include keyboard.h before frame.h.
10457
10458 * process.c: Include keyboard.h before frame.h.
10459
10460 * scroll.c: Include keyboard.h before frame.h.
10461
10462 * sysdep.c: Include keyboard.h before frame.h.
10463
10464 * term.c: Include keyboard.h before frame.h.
10465
10466 * window.c: Include keyboard.h before frame.h.
10467
10468 * xdisp.c: Include keyboard.h before frame.h.
10469 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
10470
10471 * frame.c: Include keyboard.h before frame.h.
10472
10473 * w32heap.h: Undefine min, max.
10474
10475 * w32gui.h: Undefine min, max.
10476
10477 * unexw32.c: Change PUCHAR to PCHAR.
10478 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
10479 (relocate_offset):
10480 (get_section_info):
10481 (copy_executable_and_dump_data): Remove unnecessary static defs.
10482 (copy_executable_and_dump_data): Fix compile warnings.
10483
10484 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
10485
10486 * w32console.c (min): Define macro.
10487 (clear_frame, write_glyphs): Fix compile warning.
10488
10489 * w32proc.c (compare_env):
10490 (find_child_console): Fix compile warning.
10491
10492 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
10493 sys_errlist instead of _sys_errlist.
10494 (get_emacs_configuration_options): New function.
10495
10496 * s/ms-w32.h (sys_nerr): Provide default definition.
10497 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
10498 name with _ prepended.
10499 (NSIG): Define if not known.
10500 (get_emacs_configuration): Provide extern declaration.
10501 (get_emacs_configuration_options): Provide extern declaration.
10502 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
10503
10504 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
10505 (map_w32_filename):
10506 (read_unc_volume): Fix compile warning.
10507
10508 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
10509 definitions from being used.
10510
10511 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
10512
10513 * w32.c (unc_volume_file_attributes):
10514 (open_unc_volume): Make arg const.
10515
10516 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
10517 (read_input_waiting): Remove excess parameter.
10518
10519 * w32.c (init_environment): Call _access.
10520 (check_windows_init_file): Call _close.
10521 (init_user_info): Call _putenv.
10522 (init_environment): Call _putenv and _strdup.
10523 (init_ntproc): Reset volume info cache on startup.
10524
10525 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
10526 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
10527 cannot override the CRT malloc.
10528
10529 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
10530 (LINK_FLAGS): Append to original value of LINK_FLAGS.
10531
10532 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
10533 unless we are linking with a static CRT.
10534 (RVA_TO_PTR): Cast result to unsigned char*.
10535
10536 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
10537 (add_volume_info): Use xstrdup.
10538
10539 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
10540
10541 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
10542 (do_completion, Fminibuffer_complete_word): Use it.
10543 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
10544 var so it can take non-boolean values.
10545
10546 2000-08-21 Gerd Moellmann <gerd@gnu.org>
10547
10548 * editfns.c (find_field): Formatting changes.
10549 (toplevel): Some old-style function forward declarations
10550 changed to prototypes, some new protypes added, some functions
10551 made static.
10552
10553 * lisp.h (set_time_zone_rule): Add prototype.
10554 (use_dialog_box): External declaration.
10555
10556 * keyboard.c (gen_help_event): Add parameter SIZE.
10557 (kbd_buffer_events_waiting): Slightly rewritten.
10558 (clear_event): New function.
10559 (kbd_buffer_get_event): Use it, and clear the input_events of
10560 HELP_EVENTs.
10561 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
10562 don't fill the newly created array with nils.
10563 (toplevel): Convert some old-style function forward declarations
10564 to prototypes.
10565
10566 * keyboard.h (gen_help_event): Change prototype.
10567
10568 * xterm.c (XTread_socket): Change calls to gen_help_event.
10569
10570 * w32term.c (w32_read_socket): Change calls to gen_help_event.
10571
10572 * eval.c (Fmacroexpand): Doc fix.
10573
10574 2000-08-20 Jason Rumney <jasonr@gnu.org>
10575
10576 * w32term.h (x_display_info_for_display): Remove as this function
10577 does not exist on W32.
10578
10579 * w32term.c (help_echo_window): New variable.
10580 (syms_of_w32term): staticpro it.
10581 (note_mode_line_highlight): Set it.
10582 (XTextExtents16): Removed as there is no equivalent on W32.
10583 (x_compute_glyph_string_overhangs): Incomplete body removed, as
10584 the X way of doing this will not work for W32.
10585 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
10586 (x_draw_image_foreground): Avoid drawing outside of the clip area
10587 when image doesn't have a mask.
10588 (note_mouse_highlight): Process overlays in the right order of
10589 priority. Set help_echo_window.
10590 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
10591 because that's more visible for large images.
10592
10593 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
10594 name to single_keymap_panes.
10595 (w32_menu_show): Set wv->title when dealing with titles.
10596 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
10597
10598 2000-08-21 Miles Bader <miles@gnu.org>
10599
10600 * minibuf.c (do_completion): Try again if we rewrite the input
10601 string, but no completion was done, so that any completion message
10602 will be correct.
10603
10604 2000-08-20 Gerd Moellmann <gerd@gnu.org>
10605
10606 * xfaces.c (lface_equal_p): Compare strings differently.
10607 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
10608 (realize_tty_face): Use them.
10609 (syms_of_xfaces): Initialize new variables.
10610 (map_tty_color): New function, extracted from realize_tty_face.
10611 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
10612 foreground or background color, store the new color name in the
10613 realized face; previous code trying to do this had no effect.
10614 (realize_tty_face): Use map_tty_color.
10615 (Fclear_face_cache): Set face_change_count and ensure thorough
10616 redisplay.
10617
10618 2000-08-19 Gerd Moellmann <gerd@gnu.org>
10619
10620 * undo.c (record_first_change, record_marker_adjustment): Don't
10621 use XBUFFER on last_undo_buffer which might not be a buffer.
10622
10623 2000-08-18 Kenichi Handa <handa@etl.go.jp>
10624
10625 * coding.c (decode_coding_string): Set members consumed,
10626 consumed_char, produced, produced_char of *coding correctly. If
10627 decode_coding doesn't consume any byte, don't try anymore.
10628 (encode_coding_string): Likewise.
10629
10630 2000-08-18 Gerd Moellmann <gerd@gnu.org>
10631
10632 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
10633 conditional have void type, for Standard C compilers.
10634
10635 * xdisp.c (redisplay_internal): Compare windows for equality with
10636 EQ, instead of applying XWINDOW to something that might not
10637 be a window.
10638
10639 2000-08-18 Kenichi Handa <handa@etl.go.jp>
10640
10641 * fontset.c (Finternal_char_font): Search only the selected frame
10642 for a window of the current buffer.
10643
10644 2000-08-18 Gerd Moellmann <gerd@gnu.org>
10645
10646 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
10647 Lisp_Objects.
10648
10649 * keyboard.c (kbd_buffer_get_event): Handle the case that the
10650 second half of a HELP_EVENT is found at the start of kbd_buffer.
10651
10652 2000-08-18 Miles Bader <miles@gnu.org>
10653
10654 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
10655
10656 * editfns.c (save_restriction_save): Rewrite to use markers.
10657 (save_restriction_restore): Rewrite to understand new form of data
10658 saved by save_restriction_save.
10659 (Fsave_restriction): Remove cautionary note in doc-string.
10660
10661 2000-08-17 Gerd Moellmann <gerd@gnu.org>
10662
10663 * fileio.c (build_annotations): Add a comment explaining the
10664 return value of format-annotate-function. Replace a spurious call
10665 to Flength with a CONSP test. Call format-annotate-function with
10666 a fifth arg specifying how many times the function is been called
10667 in a row, to let it choose temporary buffers appropriately.
10668
10669 2000-08-17 Dave Love <fx@gnu.org>
10670
10671 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
10672 declare make_temp_name twice.
10673
10674 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
10675 (unreadpure): Give it an arg.
10676
10677 * unexalpha.c: Prototype fatal_unexec, mark_x,
10678 update_dynamic_symbols. Declare unexec as void.
10679
10680 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
10681 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
10682
10683 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
10684 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
10685
10686 * alloca.c: Use #error.
10687 [POINTER_TYPE]: Use it.
10688
10689 * eval.c (Fdefvar): Doc fix.
10690
10691 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
10692 INITIALIZE_INTERVAL.
10693
10694 * buffer.h: Avoid DECLARE_INTERVALS.
10695
10696 * config.in: Add size_t.
10697
10698 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
10699
10700 * w16select.c (set_clipboard_data): If there's not enough memory
10701 to put text into clipboard, return 1, as Fw16_set_clipboard_data
10702 expects. In case of other failures, return 3.
10703 (system_error_msg): New error message.
10704 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
10705 system_error_msg.
10706
10707 2000-08-16 Gerd Moellmann <gerd@gnu.org>
10708
10709 * term.c (write_glyphs): Also turn off inverse video after turning
10710 off other appearances in case TS_exit_attribute_mode is not equal
10711 to TS_end_standout_mode.
10712 (insert_glyphs): Turn inverse video on/off for each run of glyphs
10713 with the same face.
10714 (turn_off_face): Reset standout_mode only if
10715 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
10716 is equal to TS_end_standout_mode.
10717
10718 2000-08-16 Kenichi Handa <handa@etl.go.jp>
10719
10720 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
10721 sequence at the end of the source block.
10722
10723 * ccl.c (Fccl_program_p): Docstring modified.
10724 (Fccl_execute): Likewise.
10725 (Fccl_execute_on_string): Likewise.
10726
10727 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
10728
10729 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
10730
10731 2000-08-16 Kenichi Handa <handa@etl.go.jp>
10732
10733 The following changes are mainly to fix bugs of
10734 encode/decode-coding-string failing if encoding/decoding return
10735 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
10736 variable conversion_buffer.
10737
10738 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
10739 decrement dst_end to avoid buffer overflow in the later call of
10740 string_as_multibyte
10741
10742 * coding.h (conversion_buffer_size, conversion_buffer)
10743 (get_conversion_buffer): Extern deleted.
10744
10745 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
10746 (conversion_buffer, conversion_buffer_size): Variables deleted.
10747 (get_conversion_buffer): Function deleted.
10748 (struct conversion_buffer): New structure.
10749 (MAX_ALLOCA): New macro.
10750 (allocate_conversion_buffer): New macro.
10751 (extend_conversion_buffer, free_conversion_buffer): New functions.
10752 (ccl_coding_driver): Set coding->result.
10753 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
10754 this is the last block of source.
10755 (encode_coding): Likewise. Handle the source block as the last
10756 one only when the whole source text is consumed.
10757 (decode_coding_string): Handle the case that the output buffer is
10758 too small to decode the whole source text. Use
10759 allocate_conversion_buffer, extend_conversion_buffer and
10760 free_conversion_buffer, not get_conversion_buffer.
10761 (encode_coding_string): Likewise.
10762 (init_coding): Function deleted.
10763 (init_coding_once): Delete code to initialize conversion_buffer_size.
10764
10765 * emacs.c (main): Don't call init_coding.
10766
10767 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
10768
10769 * term.c (write_glyphs): Use a locally declared conversion_buffer.
10770 (insert_glyphs): Likewise.
10771
10772 * w32console.c (write_glyphs): Use a locally declared
10773 conversion_buffer.
10774
10775 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
10776
10777 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
10778 member of display_info is NULL.
10779
10780 2000-08-15 Gerd Moellmann <gerd@gnu.org>
10781
10782 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
10783
10784 * term.c (turn_off_face): Reset standout_mode when resetting
10785 appearances with capability `me'.
10786 (write_glyphs): Switch on inverse video before each face change.
10787
10788 2000-08-14 Dave Love <fx@gnu.org>
10789
10790 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
10791 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
10792 (lisp_free): Declare and make static.
10793
10794 * window.c: Fix embedded comment.
10795 (syms_of_window): Fix doc string.
10796
10797 2000-08-14 Gerd Moellmann <gerd@gnu.org>
10798
10799 * keymap.c (push_key_description): If C without modifiers is < 32,
10800 make sure to print `C-' before `M-', like in the manual.
10801
10802 2000-08-11 Gerd Moellmann <gerd@gnu.org>
10803
10804 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
10805 since they aren't relocated anymore.
10806 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
10807
10808 * xdisp.c (try_cursor_movement): Fix handling of cursor in
10809 partially visible line which is smaller than the window's height.
10810
10811 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10812
10813 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
10814 the multibyte form of eight-bit-control characters.
10815 (Fccl_execute_on_string): Initialize ccl->multibyte.
10816
10817 * ccl.h (struct ccl_program): New member multibyte.
10818
10819 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
10820
10821 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10822
10823 * regex.c (regex_compile) <normal_char>: Pay attention to
10824 multibyteness.
10825 (analyse_first) <exactn>: Setup fastmap correctly for
10826 eight-bit-control characters.
10827
10828 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10829
10830 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
10831
10832 * keyboard.c (make_lispy_event): Handle the new event type
10833 multibyte_char_keystroke.
10834
10835 * xterm.c: Include coding.h.
10836 (XTread_socket): Work around a bug of XmbLookupString. If the
10837 input is from XIM, decode it according to the current locale. In
10838 that case, generate multibyte_char_keystroke events.
10839
10840 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10841
10842 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
10843 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
10844
10845 2000-08-10 Gerd Moellmann <gerd@gnu.org>
10846
10847 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
10848 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
10849 (move_it_in_display_line_to): Record iterator's ascent and descent
10850 before producing glyphs, and restore them when we know the glyph
10851 doesn't fit on the line.
10852 (move_it_to): Restructured so that it's easier to debug. If
10853 moving to a vpos, and not moving to an x or character position,
10854 stop as soon as the specified vpos is reached; don't move further
10855 into that line because that might change the computed line height.
10856 (try_cursor_movement): New function, extracted from the cursor
10857 movement branch of redisplay_window. If ending on a partially
10858 visible line, don't try to scroll if the cursor line is taller
10859 than the window.
10860 (redisplay_window): Use try_cursor_movement.
10861
10862 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
10863 because that function doesn't cope with variable-height lines.
10864
10865 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
10866 box cursor because that's better visible for large images.
10867
10868 2000-08-10 Miles Bader <miles@gnu.org>
10869
10870 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
10871
10872 2000-08-10 Gerd Moellmann <gerd@gnu.org>
10873
10874 * xdisp.c (Vmessages_buffer_name): New variable.
10875 (message_dolog): Use it.
10876 (syms_of_xdisp): Initialize it.
10877
10878 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
10879
10880 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
10881 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
10882 redundant now that keyboard.h is included.
10883
10884 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
10885
10886 * keyboard.c (kbd_buffer_events_waiting): New function.
10887
10888 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
10889
10890 * msdos.c: Include keyboard.h.
10891 (XMenuActivate): Empty no_event events from the event buffer. If
10892 no events are left after that, call clear_input_pending.
10893 (mouse_clear_clicks): New function, code moved from mouse_init.
10894 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
10895 mouse driver to ``forget'' any past clicks.
10896
10897 * Makefile.in (msdos.o): Depend on keyboard.h.
10898
10899 2000-08-09 Gerd Moellmann <gerd@gnu.org>
10900
10901 * lisp.h (input_pending): External declaration.
10902
10903 * dispextern.h (Qredisplay_dont_pause): Declare extern.
10904
10905 * xdisp.c (echo_area_display): Display thoroughly if input is
10906 pending. Bind redisplay-dont-pause to t during the redisplay.
10907 in case input is pending.
10908
10909 * dispnew.c (Qredisplay_dont_pause): New variable.
10910 (syms_of_display): Initialize and staticpro it.
10911 (update_frame_1): Don't interrupt the display for pending input if
10912 redisplay_dont_pause is set.
10913
10914 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
10915
10916 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
10917
10918 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
10919
10920 * callproc.c (Fcall_process): Terminate the unwind-protect around
10921 the post-read-conversion of coding system.
10922
10923 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
10924 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
10925 * buffer.h (overlays_at): Update prototype.
10926 * xdisp.c (next_overlay_change): Update call to overlays_at.
10927 * xfaces.c (face_at_buffer_position): Likewise.
10928 * textprop.c (Fget_char_property): Likewise.
10929 * xterm.c (note_mouse_highlight): Likewise.
10930
10931 * minibuf.c (do_completion): Don't consider a simple change of
10932 case as `completion'.
10933
10934 2000-08-08 Ken Raeburn <raeburn@gnu.org>
10935
10936 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
10937 * undo.c (record_delete): Make sure last_point_position_buffer is
10938 a buffer before comparing pointers.
10939
10940 * coding.h (decode_coding_string): Declare.
10941
10942 * intervals.h (Fprevious_single_char_property_change): Declare.
10943
10944 * textprop.c (Fprevious_single_char_property_change): Don't do
10945 arithmetic directly on lisp objects.
10946
10947 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
10948
10949 * keyboard.h (menu_item_eval_property): Declare.
10950
10951 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
10952 reuse as buffer name, instead of recreating (and discarding) every
10953 time a message is logged.
10954 (with_echo_area_buffer): Make callback arg A2 a lisp object.
10955 (current_message_1, truncate_message_1, set_message_1)
10956 (display_echo_area_1, resize_mini_window_1): Signatures changed.
10957 (current_message, truncate_echo_area, display_echo_area)
10958 (resize_echo_area_axactly): Changed calls.
10959
10960 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
10961 Lisp object.
10962 (Ffind_coding_systems_region_internal): First argument to Fappend
10963 must be an integer, not a Lisp object.
10964
10965 2000-08-08 Kenichi Handa <handa@etl.go.jp>
10966
10967 * charset.c (Fchar_width): Doc fix.
10968
10969 2000-08-08 Gerd Moellmann <gerd@gnu.org>
10970
10971 * charset.c (Fstring_width): Doc fix.
10972
10973 2000-08-07 Gerd Moellmann <gerd@gnu.org>
10974
10975 * xdisp.c (start_display): When starting display on a continuation
10976 line, clear ascent and descent members of the iterator structure;
10977 the height of the continued line does not affect the height of the
10978 continuation line.
10979 (make_cursor_line_fully_visible): Do nothing if cursor is on a
10980 line taller than the window.
10981 (redisplay_window) <forced window start>: Handle case that the
10982 middle of the window is not found in any row.
10983 (dump_glyph_row): Show more information.
10984 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
10985 first text line in a glyph matrix.
10986
10987 * xterm.c (x_draw_image_foreground): Avoid drawing outside
10988 of the clip area when image doesn't have a mask.
10989
10990 * fns.c (sweep_weak_table): Fix survival conditions for
10991 key-or-value and key-and-value weakness.
10992
10993 * .gdbinit (xhashtable): New command.
10994
10995 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
10996 tables out of the list of all weak hash tables.
10997
10998 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
10999 a new buffer is created, make sure echo_area_buffer[] references
11000 the new buffer.
11001
11002 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
11003
11004 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
11005 the doc string.
11006
11007 2000-08-07 Kenichi Handa <handa@etl.go.jp>
11008
11009 * syntax.c (skip_chars): Fix previous change. Make the handling
11010 of unibyte string consistent with that of regex search.
11011
11012 2000-08-05 Gerd Moellmann <gerd@gnu.org>
11013
11014 * xmenu.c (popup_get_selection): Use xfree instead of free.
11015
11016 * fileio.c (Finsert_file_contents): Use xfree instead of free.
11017
11018 * editfns.c (Ftranspose_regions): Use xfree instead of free.
11019
11020 * callproc.c (child_setup): Use xfree instead of free.
11021
11022 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
11023 instead of malloc.
11024 (run_mac_command, closedir): Use `xfree' instead of `free'.
11025
11026 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
11027
11028 * eval.c (error): Use xfree instead of free.
11029
11030 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
11031
11032 * fns.c: Replace `illegal' with `invalid'.
11033 (Fmake_hash_table, make_hash_table): Allow table size of 0.
11034
11035 2000-08-05 Kenichi Handa <handa@etl.go.jp>
11036
11037 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
11038 conversion.
11039
11040 2000-08-04 Noah Friedman <friedman@splode.com>
11041
11042 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
11043 docstring.
11044
11045 2000-08-04 Gerd Moellmann <gerd@gnu.org>
11046
11047 * syntax.c (skip_chars): Fix typo in error message.
11048
11049 2000-08-04 Andreas Schwab <schwab@suse.de>
11050
11051 * m/ia64.h: Moved from s/ia64.h.
11052
11053 2000-08-04 Kenichi Handa <handa@etl.go.jp>
11054
11055 * process.c (read_process_output): Big simplification. Handle
11056 composition and post-read-conversion of coding system correctly.
11057 (send_process): Handle composition correctly.
11058
11059 * callproc.c (Fcall_process): Handle post-read-conversion of
11060 coding system if any.
11061
11062 * coding.c (decode_coding_iso2022): More strict check for handling
11063 single shifting.
11064 (coding_restore_composition): Pay attention to the case that
11065 cmp_data is not set properly (because of invalid code in the
11066 source text).
11067 (run_pre_post_conversion_on_str): Include text properties in the
11068 resulting string.
11069 (decode_coding_string): Set members of coding correctly.
11070
11071 2000-08-03 Gerd Moellmann <gerd@gnu.org>
11072
11073 * s/ia64.h: New file.
11074
11075 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
11076 Use NULL instead of 0 at the end of variable argument list of
11077 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
11078 sizeof (int) < sizeof (void *).
11079
11080 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
11081 of variable argument lists of XtVaGetValues and XtVaSetValues.
11082
11083 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
11084 variable argument lists of XtVaGetValues and XtVaSetValues.
11085
11086 2000-08-02 Gerd Moellmann <gerd@gnu.org>
11087
11088 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
11089 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
11090
11091 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
11092 prototype.
11093
11094 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
11095 in call to Fsingle_key_description.
11096
11097 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
11098 Callers changed.
11099
11100 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
11101
11102 * window.c (display_buffer_reuse_frames): New variable.
11103 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
11104 frames displaying BUFFER.
11105 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
11106
11107 2000-08-01 Miles Bader <miles@gnu.org>
11108
11109 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
11110 when to constrain NEW_POS (they were pretty screwed up before).
11111
11112 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
11113
11114 * msdos.c (run_msdos_command): Save and restore the master
11115 environment, for the case that child_setup signals an error.
11116 When mirroring slashes in DOS shell commands, don't fail when
11117 argv[2] has embedded blanks.
11118 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
11119 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
11120 (dos_ttraw): Call mouse_setup_buttons.
11121
11122 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
11123 using alloca; free it after run_msdos_command returns.
11124
11125 2000-07-27 Dave Love <fx@gnu.org>
11126
11127 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
11128 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
11129
11130 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
11131
11132 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
11133
11134 * editfns.c (lisp_time_argument): Fix last change.
11135
11136 2000-07-27 Gerd Moellmann <gerd@gnu.org>
11137
11138 * fns.c (Fdelete): Make it work on vectors and strings in addition
11139 to lists.
11140
11141 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
11142 (syms_of_fns): Initialize new variables.
11143 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
11144 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
11145 weakness, with t meaning the same as `key-and-value'.
11146
11147 2000-07-27 Kenichi Handa <handa@etl.go.jp>
11148
11149 * coding.h (struct coding_system): Member safe_charset deleted.
11150
11151 * coding.c (Qsafe_charsets): This variable deleted.
11152 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
11153 New variables.
11154 (coding_safe_chars): New function.
11155 (CODING_SAFE_CHAR_P): New macro.
11156 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
11157 checking safe_charsets member of the coding system. Caller changed.
11158 (detect_coding_iso2022): New local variable safe_chars.
11159 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
11160 safe_charsets member of the coding system.
11161 (decode_coding_iso2022): New local variable safe_chars.
11162 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
11163 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
11164 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
11165 (ENCODE_UNSAFE_CHARACTER): New macro.
11166 (encode_coding_iso2022): New local variable safe_chars. Check
11167 unsafe chars.
11168 (setup_coding_system): Delete the code to initialize
11169 coding->safe_charses
11170 (intersection, find_safe_codings): New functions.
11171 (Ffind_coding_systems_region_internal): New function.
11172 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
11173 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
11174 variable and initialize it.
11175
11176 * fns.c (char_table_ref_and_index): New function.
11177
11178 * lisp.h (char_table_ref_and_index): Add prototype.
11179
11180 2000-07-26 Sam Steingold <sds@gnu.org>
11181
11182 * editfns.c (lisp_time_argument): Added third argument `usec'.
11183 (Ffloat_time): New built-in Lisp function.
11184
11185 2000-07-26 Gerd Moellmann <gerd@gnu.org>
11186
11187 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
11188 for the character code.
11189
11190 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
11191 GNU/Linux.
11192
11193 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
11194 if called for a popup menu.
11195 (xmenu_show): Store help string in widget values.
11196
11197 2000-07-26 Dave Love <fx@gnu.org>
11198
11199 * syswait.h: Move some definitions.
11200 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
11201 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
11202 perspicuous definitions.
11203 (WTERMSIG): Fix bit pattern used.
11204
11205 2000-07-26 Kenichi Handa <handa@etl.go.jp>
11206
11207 * print.c (print_object): If vector printing is truncated, print
11208 "..." to indicate it as well as the case of list printing.
11209
11210 2000-07-25 Gerd Moellmann <gerd@gnu.org>
11211
11212 * xdisp.c (next_element_from_display_vector): Improve comments.
11213
11214 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
11215 for the character code, and the rest for the face id as in 20.x.
11216 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
11217
11218 * window.c (window_display_table): Cleaned up.
11219
11220 * syntax.c (Fforward_word): Add last arg nil in call of
11221 Fconstrain_to_field.
11222
11223 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
11224
11225 * fileio.c (Frename_file) [DOS_NT]: If the file names are
11226 identical but for the letter-case, don't call
11227 barf_or_query_if_file_exists.
11228
11229 2000-07-25 Miles Bader <miles@gnu.org>
11230
11231 * editfns.c (find_field): Honor special `boundary' fields.
11232 (Qboundary): New variables.
11233 (syms_of_editfns): Initialize Qboundary.
11234 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
11235 Use scan_buffer instead of find_before_next_newline, because it
11236 allows us to detect the boundary case where there's a newline at
11237 the search limit.
11238 * lisp.h (Fconstrain_to_field): Update external declaration.
11239
11240 2000-07-24 Gerd Moellmann <gerd@gnu.org>
11241
11242 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
11243 if that is nil.
11244
11245 2000-07-24 Dave Love <fx@gnu.org>
11246
11247 * s/sunos4-0.h, s/sol2.h:
11248 (LIBS_TERMCAP): Move from m/sparc.h.
11249
11250 * m/sparc.h (TERMINFO): Moved to system files (probably only
11251 relevant for sunos4 judging by its vintage).
11252 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
11253 __arch64__.
11254
11255 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
11256
11257 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
11258 name to single_keymap_panes.
11259
11260 2000-07-24 Andreas Schwab <schwab@suse.de>
11261
11262 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
11263
11264 2000-07-24 Gerd Moellmann <gerd@gnu.org>
11265
11266 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
11267 parameters instead of using int parameters. Expect FN to accept
11268 EMACS_INT parameters.
11269 (display_echo_area, resize_echo_area_axactly, current_message)
11270 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
11271 with new argument list.
11272 (resize_mini_window_1): New callback function.
11273 (current_message_1, truncate_message_1, set_message_1): Change
11274 parameter lists to the new format expected by with_echo_area_buffer.
11275
11276 2000-07-24 Kenichi Handa <handa@etl.go.jp>
11277
11278 * fontset.c (fontset_ref): Remove INLINE declaration.
11279 (fontset_ref_via_base): Likewise.
11280 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
11281 to downcase.
11282
11283 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
11284
11285 * msdos.c (IT_note_mouse_highlight): Process overlays in the
11286 correct order of priority. If help echo was found in an overlay,
11287 use that overlay as the object in which the help echo was found.
11288
11289 2000-07-22 Miles Bader <miles@gnu.org>
11290
11291 * textprop.c (Fprevious_single_char_property_change): The initial
11292 property value should be from the position preceding POSITION, not
11293 following it.
11294
11295 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
11296
11297 * coding.c (syms_of_coding): Doc fix for
11298 inhibit-iso-escape-detection.
11299
11300 2000-07-21 Gerd Moellmann <gerd@gnu.org>
11301
11302 * xterm.c (note_mouse_highlight): Process overlays in the right
11303 order of priority.
11304
11305 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
11306
11307 * xterm.c (note_mouse_highlight): If help-echo was found in an
11308 overlay, use that overlay as the object in which the help was found.
11309
11310 * window.c (foreach_window_1): Fix typo reversing an if-condition.
11311
11312 * window.c (foreach_window): Instead of a fake variable argument
11313 list, take one USER_DATA argument.
11314 (foreach_window_1): Likewise, and call callback functions with two
11315 args, the window and USER_DATA.
11316 (struct check_window_data): New struct.
11317 (check_window_containing): Use it.
11318 (window_from_coordinates): Set up a struct check_window_data for
11319 foreach_window.
11320 (add_window_to_list, freeze_window_start): Change parameters
11321 according to new calling convention.
11322
11323 * window.h (foreach_window): Change prototype.
11324
11325 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
11326
11327 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
11328
11329 * xmenu.c (menu_help_callback): Call show_help_echo with
11330 additional arguments OBJECT and POS.
11331
11332 2000-07-21 Kenichi Handa <handa@etl.go.jp>
11333
11334 * data.c (Faset): Allow storing any multibyte character in a
11335 string. Convert unibyte string to multibyte if necessary.
11336
11337 * xfns.c (x_encode_text): New function.
11338 (x_set_name): Use x_encode_text.
11339 (x_set_title): Likewise.
11340
11341 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
11342
11343 * xterm.h (x_encode_text): Add prototype.
11344
11345 2000-07-20 Dave Love <fx@gnu.org>
11346
11347 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
11348 xfree, not free.
11349
11350 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
11351
11352 * msdos.c (help_echo_window): New variable.
11353 (syms_of_msdos): Initialize and staticpro it.
11354 (IT_note_mode_line_highlight): Set help_echo_window.
11355 (IT_note_mouse_highlight): Ditto.
11356 (dos_rawgetc): Store help_echo_window in the second event produced
11357 for HELP_EVENTs.
11358
11359 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
11360 Record the object that generated the help echo and the position of
11361 that object in help_echo_object and help_echo_pos. Record that
11362 some glyphs in a row are displayed in mouse-face.
11363 (IT_update_begin): Don't clear mouse highlight unless one of the
11364 enabled glyph rows is marked as being displayed in mouse-face.
11365 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
11366 and position recorded in help_echo_object and help_echo_pos to the
11367 event queue.
11368 (IT_menu_display): Accept a new argument PN: the pane number of
11369 the current menu pane. Record the pane number and the item
11370 number of the item which has associated help string.
11371 (XMenuActivate): Update the prototype for help_callback in
11372 function declaration. Call IT_menu_display with the current menu
11373 pane number as an additional argument. Call help_callback with
11374 two additional arguments: the pane number and the item number of
11375 the menu item associated with the help text.
11376 (help_echo_object, help_echo_pos): New variables.
11377 (syms_of_msdos): Initialize them and staticpro help_echo_object.
11378
11379 * msdos.h (XMenuActivate): Update prototype.
11380
11381 2000-07-19 Gerd Moellmann <gerd@gnu.org>
11382
11383 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
11384 Add some more prototypes.
11385
11386 * xterm.c, xterm.h: Add some more prototypes.
11387
11388 * lisp.h (Fnext_single_char_property_change): Add prototype.
11389
11390 * dispnew.c (direct_output_for_insert): Remove confusing
11391 outer local variable mouse_face_overwritten_p.
11392 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
11393
11394 * alloc.c (allocate_string_data): Don't copy old string contents.
11395
11396 2000-07-19 Kenichi Handa <handa@etl.go.jp>
11397
11398 * coding.c (code_convert_region): Delete text properties before
11399 shrinking the conversion region.
11400
11401 2000-07-18 Gerd Moellmann <gerd@gnu.org>
11402
11403 * dispnew.c (update_text_area): Write the whole row if it
11404 has mouse-face in it.
11405
11406 * xfaces.c (face-alternative-font-family-alist): Remove
11407 DEFVAR_LISP; staticpro instead.
11408
11409 * xmenu.c (menu_help_callback): Call show_help_echo with
11410 new arguments.
11411
11412 * keyboard.c (show_help_echo): Add parameter WINDOW.
11413 (read_char): Call show_help_echo with window extracted from Lisp
11414 help event.
11415 (gen_help_event): Add parameter WINDOW.
11416
11417 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
11418
11419 * xterm.c (help_echo_window): New variable.
11420 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
11421 (XTread_socket): Pass help_echo_window to gen_help_event.
11422 (syms_of_xterm): Initialize and staticpro help_echo_window.
11423
11424 2000-07-18 Dave Love <fx@gnu.org>
11425
11426 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
11427
11428 2000-07-18 Gerd Moellmann <gerd@gnu.org>
11429
11430 * alloc.c (allocate_string_data): If string had already data
11431 assigned, copy old contents to new string data.
11432
11433 * coding.c (syms_of_coding): Fix typo in spelling of variable
11434 `inhibit-iso-escape-detection'.
11435
11436 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
11437
11438 * Makefile.in: Add dependencies on dispextern.h.
11439 (alloca.o): Don't define malloc and define EMACS_FREE instead of
11440 `free'; both can conflict with system header files.
11441
11442 2000-07-18 Kenichi Handa <handa@etl.go.jp>
11443
11444 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
11445 undefined.
11446
11447 2000-07-18 Dave Love <fx@gnu.org>
11448
11449 * window.c (Fwindow_list): Declare arg `window'.
11450
11451 2000-07-18 Kenichi Handa <handa@etl.go.jp>
11452
11453 * coding.c (setup_coding_system): Don't override the explicitly
11454 specified designations.
11455
11456 2000-07-15 Miles Bader <miles@gnu.org>
11457
11458 * editfns.c (char_property_eq, char_property_stickiness): Renamed
11459 from `text_property_eq' and `text_property_stickiness', respectively.
11460 (find_field, Fconstrain_to_field, char_property_eq)
11461 (char_property_stickiness): Changed to call char-property functions
11462 instead of text-property-only ones.
11463
11464 * textprop.c (Fnext_single_char_property_change): Made a subr (was
11465 `next_single_char_property_change'). Do more error checking, and
11466 cleanup limit behavior.
11467 (Fprevious_single_char_property_change): New function.
11468 (syms_of_textprop): Initialize new subrs.
11469
11470 * xdisp.c (display_prop_end, invisible_text_between_p):
11471 Call Fnext_single_char_property_change instead of
11472 next_single_char_property_change.
11473
11474 2000-07-15 Jason Rumney <jasonr@gnu.org>
11475
11476 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
11477 after menu is finished with.
11478 (add_menu_item): Only consider wv->title as a menu title.
11479 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
11480
11481 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
11482 null title.
11483 (FONT_REGEXP): Remove unused macro, and its sub-components.
11484 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
11485
11486 * w32term.c (help_echo_object, help_echo_pos): New variables.
11487 (note_mode_line_highlight): Store additional information about the
11488 help-echo in help_echo_object and help_echo_pos. Check both
11489 `local-map' and `keymap' properties for changing the cursor
11490 (note_mouse_highlight): Store additional information about the
11491 help-echo in help_echo_object and help_echo_pos.
11492 (note_tool_bar_highlight): Set help_echo_object to nil and
11493 help_echo_pos to -1.
11494 (w32_read_socket): Use gen_help_event instead of filling
11495 input_events manually.
11496 (syms_of_w32term): Staticpro help_echo_object.
11497 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
11498 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
11499 (x_clear_mouse_face): New function.
11500 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
11501 (x_update_window_begin): No need to turn off the mouse
11502 highlight here.
11503 (show_mouse_face): Set the mouse_face_p flag of glyph rows
11504 depending on whether they contain glyphs highlighted in mouse-face.
11505 (x_fill_stretch_glyph_string): Consume runs of stretch
11506 glyphs instead of a single one.
11507 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
11508 with new argument list.
11509 (x_set_glyph_string_gc): Make sure the face's GC is valid.
11510 (x_append_glyph, x_append_composite_glyph)
11511 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
11512 changes in struct glyph starting 1999-12-27. See comments for
11513 xterm.c on 2000-07-05.
11514
11515 2000-07-14 Sam Steingold <sds@gnu.org>
11516
11517 * xfaces.c (realize_x_face): Fix the last patch:
11518 check `default_face' before dereferencing.
11519
11520 2000-07-14 Dave Love <fx@gnu.org>
11521
11522 * syntax.c (back_comment): Add null default in switch (for pcc).
11523
11524 2000-07-14 Kenichi Handa <handa@etl.go.jp>
11525
11526 * xfaces.c (realize_x_face): Make fontset using the base of the
11527 default_face's fontset, not using the default fontset.
11528
11529 * coding.c (inhibit_iso_escape_detection): New variable.
11530 (syms_of_coding): Make it a Lisp variable.
11531 (detect_coding_iso2022): If inhibit_iso_escape_detection is
11532 nonzero, ignore ISO2022's escape sequence.
11533
11534 2000-07-14 Gerd Moellmann <gerd@gnu.org>
11535
11536 * alloca.c (malloc) [emacs]: Define as xmalloc.
11537
11538 * xfns.c (Fx_show_tip): If frame parameters contain a position,
11539 use that instead of the mouse position. Add parameters DX and DY.
11540
11541 * dispextern.h (Fx_show_tip): Adjust number of parameters
11542 in prototype.
11543
11544 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
11545 if HELP is a function, call it with OBJECT and POS as parameters
11546 to get the help to display.
11547 (gen_help_event, kbd_buffer_store_help_event): New functions.
11548 (kbd_buffer_get_event): Construct the Lisp help-event differently.
11549 (read_char): Call show_help_echo with new parameters.
11550
11551 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
11552 Add prototypes.
11553
11554 * xterm.c (help_echo_object, help_echo_pos): New variables.
11555 (note_mode_line_highlight): Store additional information about the
11556 help-echo in help_echo_object and help_echo_pos. Check both
11557 `local-map' and `keymap' properties for changing the cursor
11558 (note_mouse_highlight): Store additional information about the
11559 help-echo in help_echo_object and help_echo_pos.
11560 (note_tool_bar_highlight): Set help_echo_object to nil and
11561 help_echo_pos to -1.
11562 (XTread_socket): Use gen_help_event instead of filling
11563 input_events manually.
11564 (syms_of_xterm): Staticpro help_echo_object.
11565
11566 * xmenu.c (menu_highlight_callback): Use
11567 kbd_buffer_store_help_event instead of setting up and input_event
11568 structure manually.
11569
11570 * xdisp.c (eval_form): GCPRO argument sexpr.
11571 (call_function): New function.
11572 (handle_single_display_prop): Use call_function and FUNCTIONP
11573 instead of checking whether if font_height is a symbol and
11574 using eval_form.
11575
11576 * eval.c (internal_condition_case_2): New function.
11577
11578 * lisp.h (FUNCTIONP): New macro.
11579 (internal_condition_case_2, call_function): Add prototypes.
11580
11581 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
11582 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
11583 Always set `arg' member of input_events.
11584 (construct_menu_click): Unused function removed.
11585
11586 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
11587
11588 * w32term.c (construct_mouse_click, construct_mouse_wheel)
11589 (construct_drag_n_drop, x_scroll_bar_handle_click)
11590 (w32_read_socket): Always set `arg' member of input_events.
11591
11592 * keyboard.c (show_help_echo): Use eval_form. Add comment.
11593
11594 * lisp.h (eval_form): Add prototype.
11595
11596 * xdisp.c (eval_form): Make it externally visible.
11597
11598 2000-07-13 Gerd Moellmann <gerd@gnu.org>
11599
11600 * xterm.c (x_handle_tool_bar_click): Store the frame in the
11601 frame_or_window slot of TOOL_BAR_EVENT input events instead of
11602 consing. For prefix events, store the frame in the `arg' slot of
11603 the event, otherwise store the key there.
11604 (XTread_socket): Instead of consing, use the frame_or_window slot
11605 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
11606
11607 * xmenu.c (menu_highlight_callback): Store help string in the
11608 `arg' member of the input event; don't cons.
11609 (menubar_selection_callback): Use the `arg' slot of input events
11610 to queue additional information, instead of consing.
11611
11612 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
11613
11614 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
11615 TOOL_BAR_EVENTs.
11616 (w32_read_socket): Adapt to changes in HELP_EVENTs.
11617
11618 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
11619 input events to queue additional information, instead of consing.
11620
11621 * keyboard.c (kbd_buffer_gcpro): Renamed from
11622 kbd_buffer_frame_or_window. Now used for all Lisp objects
11623 referenced from the input queue.
11624 (kbd_buffer_store_event): Always use structure assignment for
11625 copying input events. Record all Lisp objects referenced from
11626 events in kbd_buffer_gcpro.
11627 (kbd_buffer_get_event): Construct Lisp `help-echo' events
11628 differently from input events. Test for prefix menu_bar_events
11629 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
11630 event in kbd_buffer_gcpro to nil.
11631 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
11632 frame_or_window is equal to its arg member as prefix events.
11633 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
11634 used by an input event to nil.
11635 (init_keyboard): Use two times the size of the input queue
11636 for kbd_buffer_gcpro.
11637 (syms_of_keyboard): Likewise.
11638
11639 * emacs.c (handle_USR2_signal, handle_USR1_signal):
11640 Use USER_SIGNAL_EVENT.
11641
11642 * termhooks.h (struct input_event): Add member `arg'.
11643 (MENU_BAR_EVENT): Renamed from menu_bar_event.
11644 (USER_SIGNAL_EVENT): Renamed from user_signal.
11645
11646 * xfaces.c (ASET): Remove definition.
11647
11648 * lisp.h (AREF, ASET, ASIZE): New macros.
11649
11650 * fontset.c (AREF, ASIZE): Remove definitions.
11651
11652 * fns.c (AREF): Remove definition.
11653
11654 * composite.c (AREF): Remove definition.
11655
11656 2000-07-12 Gerd Moellmann <gerd@gnu.org>
11657
11658 * dispnew.c (redraw_overlapped_rows): Add missing local.
11659 (scrolling_window): Remove debug code.
11660
11661 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
11662 Before scrolling, turn off a mouse-highlight in the window
11663 being scrolled.
11664
11665 * xterm.c (x_update_window_end): Add parameter
11666 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
11667 redisplay in XTframe_up_to_date.
11668 (x_clear_mouse_face): New function.
11669 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
11670
11671 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
11672 current glyph row.
11673 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
11674 it when any row is written to that contains glyphs highlighted in
11675 mouse-face.
11676 (update_window): Call the window update end hook with new
11677 parameter MOUSE_FACE_OVERWRITTEN_P.
11678 (direct_output_for_insert): Give up if row contains mouse-face.
11679
11680 * dispextern.h (struct redisplay_interface): Add parameter
11681 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
11682 (clear_mouse_face): New function pointer member.
11683
11684 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
11685
11686 * syntax.c (back_comment): Use one switch rather than a few `if's.
11687 Obey open_paren_in_column_0_is_defun_start.
11688 When reverting to the `slow' method, try to nicely handle the case
11689 of nested comments by checking that the comment-starter we found
11690 does indeed match the comment-ender.
11691 (scan_sexps_forward, scan_sexps_forward):
11692 Ignore excessive opening parenthesis rather than throwing an error.
11693
11694 2000-07-11 Gerd Moellmann <gerd@gnu.org>
11695
11696 * doc.c (Fsubstitute_command_keys): Handle case that a GC
11697 in Fwhere_is_internal or get_keymap_1 relocates string contents.
11698
11699 * dispnew.c (direct_output_forward_char): Give up if currently
11700 displaying a message instead of the minibuffer contents.
11701
11702 * xterm.c (x_update_window_begin): No need to turn off the mouse
11703 highlight here.
11704 (show_mouse_face): Set the mouse_face_p flag of glyph rows
11705 depending on whether they contain glyphs highlighted in mouse-face.
11706
11707 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
11708 compare the mouse_face_p flags of both rows.
11709
11710 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
11711
11712 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
11713
11714 * keyboard.c (show_help_echo): Accept additional parameter
11715 ok_to_overwrite_keystroke_echo.
11716 (read_char): Call show_help_echo with a zero
11717 ok_to_overwrite_keystroke_echo argument.
11718 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
11719 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
11720 ok_to_overwrite_keystroke_echo argument.
11721 * w32menu.c (w32_menu_display_help): Call show_help_echo with
11722 non-zero ok_to_overwrite_keystroke_echo argument.
11723
11724 2000-07-10 Gerd Moellmann <gerd@gnu.org>
11725
11726 * xdisp.c (try_window_id): If changes are all below what is
11727 displayed in the window, and point is in the window, we still
11728 might have to find point on the display.
11729
11730 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
11731 glyphs instead of a single one.
11732 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
11733 with new argument list.
11734 (x_set_glyph_string_gc): Make sure the face's GC is valid.
11735
11736 * keymap.c (get_keymap_1): Add comment that this function can GC.
11737 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
11738 comment that functions can GC.
11739 (Fset_keymap_parent): GCPRO arg KEYMAP.
11740
11741 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
11742
11743 * msdos.c (XMenuActivate): After exiting the menu, restore the
11744 echo area message and erase it.
11745
11746 2000-07-10 Kenichi Handa <handa@etl.go.jp>
11747
11748 * fontset.c (Ffontset_info): Make the return value more compatible
11749 with that of Emacs 20.
11750
11751 2000-07-07 Gerd Moellmann <gerd@gnu.org>
11752
11753 * eval.c (Fsignal): Handle case that backtrace_list is null.
11754
11755 2000-07-07 Kenichi Handa <handa@etl.go.jp>
11756
11757 * ccl.c (Fccl_execute): Typo fixed.
11758
11759 2000-07-06 Gerd Moellmann <gerd@gnu.org>
11760
11761 * window.c (window_loop): Add missing gcpro1 local variable.
11762
11763 * window.c (Fwindow_list): Reverse list at the end.
11764 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
11765 means allow windows on OWINDOW's frame, only.
11766 (window_loop): Simplified; use Fwindow_list.
11767
11768 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
11769
11770 2000-07-05 Gerd Moellmann <gerd@gnu.org>
11771
11772 * xterm.c (XTread_socket): Increment handling_signal at the start,
11773 decrement it at the end.
11774
11775 * eval.c (handling_signal): New variable.
11776 (Fsignal): Abort if handling_signal is non-zero.
11777
11778 * lisp.h (handling_signal): External declaration.
11779
11780 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
11781
11782 2000-07-05 Ken Raeburn <raeburn@gnu.org>
11783
11784 Sound support for NetBSD through "Linux emulation" support:
11785 * config.in (HAVE_SOUNDCARD_H): Undef.
11786 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
11787 * Makefile.in (LIBSOUND): New variable.
11788 (LIBES): Include it.
11789 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
11790 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
11791 (vox_open): Use DEFAULT_SOUND_DEVICE.
11792 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
11793
11794 2000-07-05 Gerd Moellmann <gerd@gnu.org>
11795
11796 * print.c (print_error_message): If Vsignaling_function is set,
11797 show it in *Messages*.
11798
11799 * lisp.h (Vsignaling_function): External declaration.
11800
11801 * eval.c (Vsignaling_function): New variable.
11802 (Fsignal): Compute it.
11803 (syms_of_eval): Staticpro it.
11804
11805 2000-07-05 Dave Love <fx@gnu.org>
11806
11807 * syswait.h: Use the autoconf recommended approach. Old code
11808 #if'd out in case we need to revert.
11809
11810 * config.in (HAVE_SYS_WAIT_H): Added.
11811
11812 2000-07-05 Andrew Innes <andrewi@gnu.org>
11813
11814 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
11815 when non-NULL instead of __morecore, to take account of buffer
11816 memory. This also solves a problem with spurious memory warnings
11817 on Windows.
11818
11819 * ralloc.c: Make real_morecore non-static.
11820
11821 * eval.c (internal_condition_case): Comment out abort if
11822 interrupt_input_blocked is not zero.
11823
11824 * makefile.nt: Add support for `bootstrap' and related targets.
11825 Include minimal debug info in emacs.exe in release build.
11826 Remove all dependencies on lisp.h, and fixup some others.
11827
11828 * w32.c (init_environment): Install code from 20.7 for providing
11829 default values for environment variables, based on the
11830 executable's own location.
11831 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
11832 (sys_socket): Install socket inheritance bug fix from 20.7.
11833
11834 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
11835 here via blockinput.h).
11836
11837 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
11838
11839 * w32menu.c (w32_menu_display_help):
11840 * xmenu.c (menu_help_callback): Use show_help_echo.
11841
11842 * keyboard.h (show_help_echo): Declare.
11843
11844 * keyboard.c (show_help_echo): New function, extracted from read_char.
11845 Feval its `msg' argument if it's a cons cell.
11846 (read_char): Use it.
11847 (follow_key): Pass `autoload' to get_keyelt.
11848
11849 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
11850 (note_tool_bar_highlight, XTread_socket):
11851 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
11852 (dos_rawgetc):
11853 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
11854 (note_tool_bar_highlight, w32_read_socket):
11855 Do not gratuitously ignore non-string `help-echo' properties.
11856
11857 2000-07-05 Gerd Moellmann <gerd@gnu.org>
11858
11859 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
11860
11861 * window.c (delete_all_subwindows): Reset Vwindow_list.
11862
11863 * xterm.c (x_append_glyph, x_append_composite_glyph)
11864 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
11865 changes in struct glyph starting 1999-12-27. Some bit-fields of
11866 struct glyph were not set, which made glyphs unequal when compared
11867 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
11868 effects were the result. This also depended on the contents of
11869 memory returned by xmalloc. If flickering happens again, activate
11870 the code in clear_glyph_row that's in #if 0. If the flickering is
11871 gone with that, chances are that it is caused by something similar.
11872
11873 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
11874
11875 * dispextern.h: Add some comments.
11876
11877 * window.c (add_window_to_list): Add parameter LIST.
11878 (window_list): Order list so that, for each frame, windows are
11879 in canonical order, and so that frames appear in the list in
11880 the order given by Vframe_list.
11881 (next_window): Reverse the handling of NEXT_P.
11882
11883 2000-07-04 Gerd Moellmann <gerd@gnu.org>
11884
11885 * window.c (Vwindow_list): New variable.
11886 (make_window, delete_window): Set Vwindow_list to nil.
11887 (check_window_containing): New function.
11888 (window_from_coordinates): Rewritten.
11889 (add_window_to_list, window_list, candidate_window_p)
11890 (decode_next_window_args, next_window): New functions.
11891 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
11892 (Fwindow_list): New function.
11893 (Fother_window): Cleaned up.
11894 (foreach_window): Add a longer "variable argument list". Let
11895 callback function return 0 to indicate that cycling over windows
11896 should stop.
11897 (foreach_window_1): Likewise.
11898 (freeze_window_start): Return int.
11899 (init_window): New function.
11900 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
11901
11902 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
11903 input_event with bzero.
11904 (main): Call init_window.
11905
11906 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
11907 a menu filter.
11908
11909 2000-07-04 Kenichi Handa <handa@etl.go.jp>
11910
11911 * composite.h (make_composition_value_copy): Extern it.
11912
11913 * composite.c (make_composition_value_copy): New function.
11914
11915 * editfns.c (Fformat): While copying text properties, make each
11916 composition property value a copy.
11917
11918 * fns.c (concat): While copying text properties, make each
11919 composition property value a copy.
11920
11921 2000-07-03 Gerd Moellmann <gerd@gnu.org>
11922
11923 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
11924
11925 * fns.c (sweep_weak_table): Mark only objects that are not
11926 marked already.
11927
11928 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
11929 include those frames as candidates which have their focus
11930 redirected to the minibuffer frame.
11931
11932 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
11933
11934 * fns.c (Fputhash): Return `value' rather than nil.
11935
11936 2000-06-30 Gerd Moellmann <gerd@gnu.org>
11937
11938 * frame.c (next_frame): Don't check focus redirection in case
11939 MINIBUF is a window. Doing so excludes frames using MINIBUF
11940 unless their focus is redirected, which contradicts the
11941 specification of next-frame, and leads to infinite loops in
11942 certain situations when cycling through windows with next-window.
11943
11944 2000-06-30 Kenichi Handa <handa@etl.go.jp>
11945
11946 * coding.c (code_convert_region): Even if the length of text is
11947 zero, try to convert it if coding->type is coding_type_ccl.
11948 (decode_coding_string, encode_coding_string): Likewise.
11949
11950 2000-06-28 Gerd Moellmann <gerd@gnu.org>
11951
11952 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
11953 the display if windows_or_buffers_changed.
11954
11955 * dispnew.c (struct row_entry): New structure.
11956 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
11957 (row_table_size, old_lines, new_lines, old_lines_size)
11958 (new_lines_size, run_pool, runs_size, runs): New variables.
11959 (add_row_entry): New function.
11960 (scrolling_window): Use data structures allocated with xmalloc and
11961 held in global variables, instead of allocating them with alloca and
11962 holding them in local variables. Use a larger hash table whose
11963 size depends on glyph matrix sizes. Don't use bzero to clear the
11964 hash table; instead, clear used slots only.
11965
11966 * fns.c (next_almost_prime): Make it externally visible.
11967
11968 * lisp.h (next_almost_prime): Add prototype.
11969
11970 * s/isc4-0.h (sigunblock): Define.
11971
11972 * s/sco5.h (sigunblock): Define.
11973
11974 2000-06-27 Dave Love <fx@gnu.org>
11975
11976 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
11977 (moved to osf5-0.h).
11978 [!NOT_C_CODE]: Protect string.h stuff.
11979
11980 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
11981 (sys_siglist, NSIG): Definitions moved here from osf1.h.
11982
11983 2000-06-27 Gerd Moellmann <gerd@gnu.org>
11984
11985 * xdisp.c (resize_mini_window): Subtract the extra line spacing
11986 below the last line from the needed window height.
11987
11988 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
11989
11990 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
11991 (Fwidget_get): Use it.
11992 (syms_of_fns): Defsubr it.
11993
11994 2000-06-26 Gerd Moellmann <gerd@gnu.org>
11995
11996 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
11997 display info for XIM.
11998 (xim_open_dpy): Likewise.
11999 (xim_close_dpy): Don't free the display info's XIM.
12000
12001 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
12002
12003 * config.in (USE_XIM): New define.
12004
12005 * keymap.c (get_keyelt): For menu-items containing a `:filter
12006 FILTER', apply FILTER to the menu-item's definition to get the
12007 real definition to use.
12008
12009 * lisp.h (QCfilter): External declaration.
12010
12011 * xfns.c (Fimage_size): New function.
12012 (syms_of_xfns): Defsubr it.
12013
12014 2000-06-26 Andreas Schwab <schwab@suse.de>
12015
12016 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
12017 Fstring_as_unibyte.
12018
12019 2000-06-25 Dave Love <fx@gnu.org>
12020
12021 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
12022
12023 * Makefile.in (blockinput.h): Depend on atimer.h.
12024 (atimer.h): Depend on systime.h.
12025
12026 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
12027
12028 * atimer.h: Protect against multiple inclusion. Include systime.h.
12029
12030 * lisp.h (swap_in_global_binding): Declare.
12031
12032 2000-06-24 Ken Raeburn <raeburn@gnu.org>
12033
12034 * process.c (Fopen_network_stream): Turn off atimers for duration
12035 of call to connect. (Patch from Gerd.)
12036
12037 2000-06-23 Dave Love <fx@gnu.org>
12038
12039 * ralloc.c: Maybe include unistd.h
12040
12041 * emacs.c (setgrp): Undefine before defining.
12042 (malloc_warning, set_time_zone_rule, index): Prototype.
12043
12044 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
12045 HAVE_STRUCT_TIMEZONE.
12046
12047 * s/osf1.h: Move string.h hack here from alpha.h and make it
12048 conditional.
12049 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
12050 _XOPEN_SOURCE.
12051 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
12052 (SOCKLEN_TYPE): Don't define.
12053
12054 * m/alpha.h: Remove string.h hack.
12055
12056 * s/osf5-0.h: New file.
12057
12058 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
12059 include time.h, done by systime.h.
12060 [__FreeBSD__]: Remove redundant includes.
12061
12062 * callproc.c (setpgrp): Undefine before defining.
12063 (delete_temp_file): Return Qnil to avoid warning.
12064
12065 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
12066
12067 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
12068 HAVE_X_WINDOWS.
12069
12070 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
12071
12072 * composite.h (compose_text): Declare.
12073
12074 * xterm.c: Don't include sys/types.h unconditionally. Don't
12075 protect its inclusion with !USG (following xmenu.c).
12076
12077 2000-06-23 Gerd Moellmann <gerd@gnu.org>
12078
12079 * xfns.c (x_create_tip_frame): Initialize frame's colors like
12080 in x_create_frame.
12081
12082 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
12083
12084 * coding.c (decode_eol_post_ccl): Special handling for undecided
12085 and inconsistent EOL types.
12086
12087 2000-06-22 Gerd Moellmann <gerd@gnu.org>
12088
12089 * xrdb.c (x_load_resources): Add default resource for scroll bar's
12090 trough color and main window's background color.
12091
12092 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
12093
12094 * xterm.h (Xt_app_con): External declaration.
12095
12096 * widget.c (EmacsFrameRealize): Fix typo.
12097
12098 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
12099
12100 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
12101 (handle_invisible_prop): Record the start of invisible text in
12102 it->add_overlay_start.
12103 (struct overlay_entry): Add member `overlay'.
12104 (handle_overlay_change): Simplify.
12105 (next_overlay_string): After having processed overlay strings at the
12106 end of the buffer, record that fact in
12107 it->overlay_strings_at_end_processed_p.
12108 (compare_overlay_entries): If before- and after-strings come
12109 from the same overlay, let before-strings come first.
12110 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
12111 (load_overlay_strings): Take it->add_overlay_start into account
12112 when adding overlay strings.
12113
12114 * dispextern.h (struct it): Add member add_overlay_start.
12115
12116 2000-06-22 Dave Love <fx@gnu.org>
12117
12118 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
12119
12120 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
12121
12122 2000-06-22 Kenichi Handa <handa@etl.go.jp>
12123
12124 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
12125 is greater than 0.
12126
12127 2000-06-21 Dave Love <fx@gnu.org>
12128
12129 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
12130
12131 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
12132
12133 * syntax.c (back_comment): Simplify string-parity counting (with
12134 the added benefit of handling multiple string-styles as long as
12135 they are not intertwined).
12136 Jump to the slow code as soon as a comment starter is found in
12137 a "string_lossage" position. Fixes the case: " /* " /* " */.
12138
12139 2000-06-21 Dave Love <fx@gnu.org>
12140
12141 * Makefile.in: Use GETLOADAVG_LIBS.
12142
12143 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
12144 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
12145
12146 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
12147
12148 * syntax.c (describe_syntax): Recognize the `n'estable bit.
12149 (Fforward_comment, scan_lists):
12150 Check the comstyle of single-char comment-starters.
12151 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
12152 we're just at the beginning of the comment (f.ex with (*) ... (*)).
12153 Check the comstyle of single-char comment-starters.
12154 Clarify control-flow around the Scomment case.
12155
12156 2000-06-20 Dave Love <fx@gnu.org>
12157
12158 * fns.c (make_hash_table, maybe_resize_hash_table):
12159 Cast arg of next_almost_prime.
12160
12161 * tparam.c [emacs]: Include lisp.h.
12162
12163 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
12164 and unistd.h.
12165
12166 2000-06-20 Gerd Moellmann <gerd@gnu.org>
12167
12168 * keyboard.c (adjust_point_for_property): Check if display
12169 property should be treated as intangible by looking at its value.
12170
12171 * xdisp.c (single_display_prop_intangible_p)
12172 (display_prop_intangible_p): New functions.
12173
12174 * dispextern.h (display_prop_intangible_p): Add prototype.
12175
12176 * xdisp.c (dump_glyph_row): Show type of glyph->object.
12177
12178 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
12179 argument to sigprocmask.
12180
12181 * s/sco5.h (sigblock): Redefined to pass a pointer as second
12182 argument to sigprocmask.
12183
12184 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
12185 sigprocmask_set, and pass a pointer to it to sigprocmask.
12186
12187 * sysdep.c (sigprocmask_set): New variable.
12188
12189 * fileio.c (make_temp_name): Don't use `%s' in string passed to
12190 report_file_error.
12191
12192 2000-06-20 Sam Steingold <sds@gnu.org>
12193
12194 * xrdb.c: Don't declare xmalloc, xrealloc.
12195
12196 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
12197
12198 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
12199 (re_comp): Cast gettext return value to avoid complaints when
12200 !HAVE_LIBINTL.
12201
12202 2000-06-20 Dave Love <fx@gnu.org>
12203
12204 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
12205
12206 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
12207
12208 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
12209
12210 * m/alpha.h: Don't declare xmalloc, xrealloc.
12211
12212 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
12213
12214 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
12215
12216 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
12217
12218 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
12219 HAVE_GETWD.
12220
12221 * keyboard.h (poll_for_input_1): Declare.
12222
12223 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
12224
12225 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
12226
12227 * doprnt.c: Don't declare xmalloc, xrealloc.
12228
12229 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
12230 (getenv, ctime, getwd): Removed.
12231 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
12232
12233 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
12234 x_set_tool_bar_lines.
12235
12236 * config.in: Add HAVE_GETWD. Move some definitions above
12237 machine/system includes.
12238
12239 2000-06-20 Kenichi Handa <handa@etl.go.jp>
12240
12241 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
12242
12243 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
12244 contain information about ENCODING.
12245
12246 * fontset.c (FONTSET_ASCII): Use the first element of char table
12247 for an ASCII font, not defalt slot.
12248 (fontset_ref_via_base): If FONTSET doesn't contain information for
12249 C, try the default fontset.
12250 (make_fontset): Don't copy the default fontset.
12251 (fontset_font_pattern): Likewise.
12252 (accumulate_font_info): If ELT is nil, use the corresponding
12253 element in the default fontset.
12254
12255 2000-06-19 Dave Love <fx@gnu.org>
12256
12257 * syntax.c (Fparse_partial_sexp): Doc fix.
12258
12259 * regex.h: Test PROTOTYPES as well as __STDC__.
12260
12261 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
12262 errno, strerror. Put text after #endif in comment.
12263
12264 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
12265
12266 * xterm.c (x_frame_of_widget): Likewise.
12267
12268 2000-06-19 Gerd Moellmann <gerd@gnu.org>
12269
12270 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
12271 to Vfundamental_mode_abbrev_table.
12272
12273 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
12274 bogus objects are marked. This slows down GC by ~80 percent, but
12275 it might be worth trying when debugging GC-related problems.
12276 This feature requires conservative stack marking to be enabled.
12277
12278 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
12279 returns XLookupChars, reset `modifiers' to zero.
12280
12281 2000-06-19 Dave Love <fx@gnu.org>
12282
12283 * mktime.c: Unprotoized.
12284
12285 2000-06-19 Richard Stallman <rms@gnu.org>
12286
12287 * data.c (set_internal): If variable is frame-local,
12288 store the new value immediately into the frame parameter alist.
12289
12290 2000-06-19 Ken Raeburn <raeburn@gnu.org>
12291
12292 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
12293 in the custom handler pointer.
12294
12295 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
12296 value, or checks for CHAR_META can fail when Lisp_Object is a
12297 union type.
12298 * keymap.c (get_keyelt): Likewise.
12299
12300 2000-06-19 Kenichi Handa <handa@etl.go.jp>
12301
12302 * ccl.h (struct ccl_program): New member eol_type.
12303 (struct ccl_spec): New member cr_carryover.
12304
12305 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
12306 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
12307
12308 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
12309 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
12310 (decode_eol_post_ccl): New function.
12311 (decode_coding): Don't detect EOL format here for CCL based coding
12312 systems.
12313 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
12314 decode_eol_post_ccl after running the CCL program.
12315 (code_convert_region): Don't detect EOL format here for CCL based
12316 coding systems.
12317 (decode_coding_string): Likewise.
12318
12319 2000-06-18 Ken Raeburn <raeburn@gnu.org>
12320
12321 * charset.c (update_charset_table): Use XINT on "iso_final_char"
12322 when treating it as an integer.
12323
12324 * coding.h (encode_coding_string): Declare.
12325
12326 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
12327 it as an integer.
12328
12329 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
12330 "xkeymap" to avoid shadowing the "enum map_type" value that needs
12331 to be passed to get_local_map.
12332
12333 * sound.c (Fplay_sound): Don't call make_number on
12334 Frun_hook_with_args count argument.
12335
12336 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
12337 for lisp objects in X event structure data field, when lisp
12338 objects are represented with unions.
12339 (x_scroll_bar_to_input_event): Ditto.
12340
12341 2000-06-16 Ken Raeburn <raeburn@gnu.org>
12342
12343 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
12344 termination of string. Fix sense of test whether
12345 Vline_number_display_limit is an integer.
12346
12347 2000-06-16 Gerd Moellmann <gerd@gnu.org>
12348
12349 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
12350 only if HAVE_X_WINDOWS.
12351
12352 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
12353 of titles.
12354
12355 * dispnew.c (update_frame_1): Handle case that cursor vpos is
12356 out of bounds.
12357
12358 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
12359
12360 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
12361 of its headers.
12362
12363 2000-06-15 Kenichi Handa <handa@etl.go.jp>
12364
12365 * coding.c (decode_coding_emacs_mule): Always set src_base at the
12366 start of the while loop.
12367
12368 2000-06-15 Gerd Moellmann <gerd@gnu.org>
12369
12370 * atimer.c (alarm_signal_handler): Add forward declaration.
12371
12372 * data.c (set_internal): Remove debug code.
12373
12374 2000-06-14 Gerd Moellmann <gerd@gnu.org>
12375
12376 * Makefile.in (bootstrap-temacs): Add `-I../src'.
12377
12378 * unexec.c (toplevel) [COFF]: Include coff.h.
12379
12380 * s/lynxos.h: New file.
12381
12382 * keymap.c (Fsingle_key_description): Enclose function key and
12383 event symbol names in angle brackets.
12384
12385 * xdisp.c (setup_echo_area_for_printing): Call
12386 message_log_maybe_newline if message_buf_print is not set.
12387
12388 * print.c (printchar, strout): Don't check message_buf_print
12389 before calling setup_echo_area_for_printing because that
12390 function does something useful even when message_buf_print is
12391 already set.
12392
12393 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
12394 New variables.
12395 (ensure_echo_area_buffers): Initialize echo buffer's
12396 truncate lines setting to nil.
12397 (with_echo_area_buffer): Don't set the echo buffer's truncate
12398 lines setting here.
12399 (set_message_1): Set it here instead, based on the value
12400 of message_truncate_lines.
12401 (resize_mini_window): Handle case that lines are truncated.
12402 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
12403 DEFVAR_BOOL message-truncate-lines.
12404
12405 * keyboard.c (read_char): Bind message-truncate-lines to t
12406 while displaying a help-echo.
12407
12408 * lisp.h (Qmessage_truncate_lines): External declaration.
12409
12410 2000-06-13 Gerd Moellmann <gerd@gnu.org>
12411
12412 * xdisp.c (Vline_number_display_limit): Renamed from
12413 line_number_display_limit.
12414 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
12415 Extend documentation string. Initialize
12416 Vline_number_display_limit to nil meaning no limit.
12417 (decode_mode_spec): Use Vline_number_display_limit with its new
12418 meaning.
12419
12420 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
12421
12422 2000-06-13 Richard Stallman <rms@gnu.org>
12423
12424 * frame.c (Fmodify_frame_parameters): Doc fix.
12425
12426 * xfns.c (x_set_frame_parameters): Comment fix.
12427
12428 * frame.c (store_frame_param): Call swap_in_global_binding if the
12429 variable's current binding was chosen based on this frame.
12430
12431 * data.c (swap_in_global_binding): New function.
12432
12433 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
12434
12435 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
12436 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
12437
12438 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
12439
12440 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
12441
12442 2000-06-12 Jason Rumney <jasonr@gnu.org>
12443
12444 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
12445
12446 * w32.h (EMACS_W32_H): Renamed from _NT_H_
12447
12448 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
12449
12450 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
12451
12452 2000-06-12 Gerd Moellmann <gerd@gnu.org>
12453
12454 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
12455 (syms_of_xfaces): Defsubr Sdump_colors.
12456 (x_free_colors): Don't treat b&w specially on default visual.
12457 (x_free_dpy_colors): New function.
12458 (free_face_colors): Don't check visual class; it's done
12459 in x_free_colors.
12460
12461 * xterm.c (x_frame_of_widget): New function.
12462 (x_alloc_nearest_color_for_widget): Use it.
12463 (x_copy_dpy_color): New function.
12464 (x_destroy_window): Free various colors.
12465
12466 2000-06-12 Kenichi Handa <handa@etl.go.jp>
12467
12468 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
12469
12470 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
12471
12472 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
12473
12474 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
12475
12476 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
12477
12478 2000-06-11 Dave Love <fx@gnu.org>
12479
12480 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
12481
12482 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
12483
12484 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
12485
12486 2000-06-11 Gerd Moellmann <gerd@gnu.org>
12487
12488 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
12489 to `XEvent *'.
12490
12491 2000-06-10 Kenichi Handa <handa@etl.go.jp>
12492
12493 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
12494 (regex_compile): Fix the code for handling the case of single byte
12495 char and multibyte char being mixed in a range within [...].
12496
12497 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
12498 and dst_multibyte members of coding.
12499
12500 * charset.c (update_charset_table): Update the table
12501 bytes_by_char_head.
12502 (init_charset_once): Initialize elements of bytes_by_char_head to
12503 1 except for leading codes for private charases.
12504
12505 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
12506 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
12507
12508 2000-06-09 Ken Raeburn <raeburn@gnu.org>
12509
12510 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
12511 access the data it doesn't point to.
12512
12513 2000-06-08 Gerd Moellmann <gerd@gnu.org>
12514
12515 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
12516 will be translated to a switch-frame event when reading the
12517 event queue. This is necessary because Emacs otherwise won't
12518 perform a switch-frame to a new frame until some other event, for
12519 example a keystroke event, forces it to do so. This has various
12520 effects, one visible being that the cursor of a frame created with
12521 C-x 5 2 or switched to with a window manager key binding like
12522 A-TAB stays hollow because selected_window isn't on the newly
12523 focused frame until the switch-frame is performed.
12524
12525 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
12526 generating a switch-frame event if necessary.
12527
12528 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
12529
12530 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
12531 it's an integer.
12532
12533 2000-06-08 Kenichi Handa <handa@etl.go.jp>
12534
12535 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
12536
12537 2000-06-07 Gerd Moellmann <gerd@gnu.org>
12538
12539 * window.c (displayed_window_lines): Take empty lines at
12540 the bottom of a window into account.
12541
12542 * window.c (displayed_window_lines): New function.
12543 (Fmove_to_window_line): Use displayed_window_lines to determine
12544 the number of lines to move, instead of using the window's height.
12545
12546 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
12547 to stop reading, even if the form read sets point to a different
12548 value when evaluated.
12549
12550 * xdisp.c (display_line): Fix code deciding in which line to
12551 put the cursor.
12552
12553 2000-06-07 Kenichi Handa <handa@etl.go.jp>
12554
12555 * fileio.c (e_write): Free composition data if stored in
12556 coding->cmp_data.
12557
12558 2000-06-06 Gerd Moellmann <gerd@gnu.org>
12559
12560 * xdisp.c (display_line): Set row's and iterator's
12561 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
12562 Set cursor even if row ends in the middle of a character.
12563 (dump_glyph_row): Print values of new flags.
12564 (redisplay_window) <cursor movement in unchanged window>: When
12565 point has been moved forward, and PT is at the end of the cursor
12566 row, don't place the cursor in the next row if the cursor row ends
12567 in the middle of a character or at ZV.
12568
12569 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
12570 (struct glyph_row): Add starts_in_middle_of_char_p and
12571 ends_in_middle_of_char_p.
12572 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
12573 ends_in_middle_of_char_p flag.
12574 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
12575
12576 * term.c (append_glyph): Revert change of 2000-06-06.
12577
12578 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
12579 padding glyph not fitting on line as whole character not
12580 fitting on line.
12581
12582 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
12583 this isn't true for images with `:ascent 100'.
12584
12585 2000-06-06 Kenichi Handa <handa@etl.go.jp>
12586
12587 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
12588 as modified if it is originally unmodified.
12589
12590 * term.c (encode_terminal_code): Change the way to check if
12591 terminal coding does any conversion.
12592 (append_glyph): Set glyph->pixel_width correctly.
12593
12594 * xdisp.c (display_line): While checking line continuation, pay
12595 attention to a padding glyph.
12596
12597 2000-06-05 Gerd Moellmann <gerd@gnu.org>
12598
12599 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
12600
12601 2000-06-05 Dave Love <fx@gnu.org>
12602
12603 * xdisp.c: Include fontset.h.
12604
12605 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
12606
12607 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
12608
12609 * dispnew.c: Conditionally include term.h.
12610
12611 * coding.h: Declare code_convert_string_norecord.
12612
12613 * frame.h (struct frame): Use volatile unconditionally.
12614
12615 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
12616
12617 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
12618
12619 * systime.h: Protect against multiple inclusion.
12620 (timezone) [USG5_4]: Define as time_t.
12621
12622 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
12623 (Foptimize_char_table, make_temp_name): Declare.
12624
12625 * Makefile.in (xdisp.o): Depend on fontset.h.
12626
12627 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
12628
12629 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
12630 (Foptimize_char_table, make_temp_name): Declare.
12631
12632 * s/irix4-0.h:
12633 * s/irix5-0.h:
12634 * s/netbsd.h: Don't define autoconfiscated MATHERR.
12635
12636 2000-06-02 Dave Love <fx@gnu.org>
12637
12638 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
12639
12640 2000-06-02 Gerd Moellmann <gerd@gnu.org>
12641
12642 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
12643 result face, set flags in that face indicating that colors may not
12644 be freed.
12645
12646 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
12647 glyph, use the ASCII NUL character to determine the face.
12648
12649 2000-06-02 Dave Love <fx@gnu.org>
12650
12651 * sysdep.c: Conditionally include stdlib.h, unistd.h.
12652 (VFORK_RETURN_TYPE): Remove.
12653
12654 * config.in: Add NO_MATHERR.
12655
12656 2000-06-01 Dave Love <fx@gnu.org>
12657
12658 * cmds.c (internal_self_insert): Don't check
12659 Vbefore_change_function, Vafter_change_function.
12660
12661 * insdel.c (signal_before_change, signal_after_change): Likewise.
12662
12663 * buffer.c (Vbefore_change_function, Vafter_change_function):
12664 Variables and their initializations deleted.
12665
12666 * callint.c (Fcall_interactively): Doc fix.
12667
12668 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
12669
12670 2000-05-31 Dave Love <fx@gnu.org>
12671
12672 * textprop.c: Revert last change -- duplicated.
12673
12674 2000-05-31 Gerd Moellmann <gerd@gnu.org>
12675
12676 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
12677 in #if 0.
12678
12679 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
12680
12681 2000-05-31 Jason Rumney <jasonr@gnu.org>
12682
12683 * search.c (Fre_search_forward, Fre_search_backward)
12684 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
12685
12686 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
12687
12688 2000-05-30 Jason Rumney <jasonr@gnu.org>
12689
12690 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
12691 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
12692
12693 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
12694
12695 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
12696 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
12697 expand a nil default_filename.
12698
12699 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
12700 pointer to glyph_to_pixel_coords, not a frame.
12701
12702 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
12703 coding.h to dependencies.
12704
12705 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
12706
12707 * w32console.c (glyph_to_pixel_coords): Change first parameter to
12708 window pointer to be consistent with w32term.c and xterm.c.
12709
12710 * w32fns.c: Format and doc changes to bring closer to xfns.c.
12711 (VIETNAMESE_CHARSET): Define if not defined in system headers.
12712 (Qline_spacing, Qcenter): New variables.
12713 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
12714 (x_set_line_spacing): New function.
12715 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
12716 (x_specified_cursor_type): New function.
12717 (x_set_cursor_type): Use it.
12718 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
12719 and icon strings.
12720 (validate_x_resource_name, x_get_resource_string): Measure lengths
12721 of external strings in bytes.
12722 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
12723 GetTextExtentPoint32 with NULL title.
12724 (Fx_create_frame): Initialize Qline_spacing.
12725 (w32_load_system_font): Initialize font->double_byte_p.
12726 (x_to_w32_charset): Use Vw32_charset_info_alist.
12727 (Image, busy cursor, tooltip functions): Merged changes from
12728 xfns.c. Not yet functional on Windows.
12729
12730 * w32gui.h (W32FontStruct): Add double_byte_p member.
12731
12732 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
12733 (emacs_button_translation): Use it.
12734 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
12735 in `mask' to be set.
12736
12737 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
12738 menu strings.
12739
12740 * w32term.c: Format and doc changes to bring closer to xterm.c.
12741 (w32_char_font_type): New enum.
12742 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
12743 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
12744 (w32_encode_char): New function.
12745 (x_encode_char): Removed.
12746 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
12747 x_encode_char and w32_font_is_double_byte.
12748 (x_produce_image_glyph): Use image_ascent.
12749 (x_produce_glyphs): Use new version of w32_per_char_metric and
12750 handle NULL return value. Allow extra line spacing.
12751 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
12752 (w32_get_glyph_overhangs): Remove unicode_p param. Use
12753 w32_font_type member of glyph instead.
12754 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
12755 (fast_find_position): Make sure not to consider rows not visible
12756 in the window.
12757 (w32_read_socket) [WM_MENUSELECT]: Cannot call
12758 w32_menu_display_help with input blocked, as it can abort.
12759 (x_display_and_set_cursor): Choose cursor depending
12760 on buffer-local value of cursor_type.
12761 (x_draw_bar_cursor): Add parameter WIDTH.
12762
12763 * w32term.h (CP_DEFAULT): Define.
12764 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
12765
12766 2000-05-30 Gerd Moellmann <gerd@gnu.org>
12767
12768 * search.c (Fre_search_forward, Fre_search_backward)
12769 (Fposix_search_backward, Fposix_search_forward): Doc fix.
12770
12771 2000-05-30 Kenichi Handa <handa@etl.go.jp>
12772
12773 * coding.c (detect_coding_iso2022): Fix code for checking
12774 CODING_CATEGORY_MASK_ISO_8_2.
12775
12776 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
12777
12778 * regex.c (PREFETCH_NOLIMIT): New function.
12779 (re_match_2_internal): Use it and adjust the end_match_2 logic.
12780
12781 2000-05-29 Gerd Moellmann <gerd@gnu.org>
12782
12783 * syntax.c (find_defun_start): Move test for
12784 open_paren_in_column_0_is_defun_start outside of the loop.
12785
12786 * xdisp.c (redisplay_window): Really switch buffers when
12787 displaying mode lines, and temporarily set selected_frame to the
12788 frame of the window that's redisplayed.
12789
12790 * xfaces.c (free_realized_faces): Block/unblock input.
12791 (free_realized_multibyte_face): Ditto.
12792
12793 2000-05-29 Dave Love <fx@gnu.org>
12794
12795 * textprop.c (Qkeymap): New variable.
12796 (syms_of_textprop): Intern it.
12797
12798 * keymap.c: Include intervals.h.
12799 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
12800
12801 * Makefile.in (keymap.o): Depend on intervals.h.
12802
12803 * keyboard.c (menu_bar_items, tool_bar_items)
12804 (Fexecute_extended_command): Deal with `keymap' property.
12805 (read_key_sequence): Track map from `keymap' property as well as
12806 `local_map'.
12807
12808 * intervals.c (get_local_map): Extra arg to allow looking for
12809 `keymap' too.
12810
12811 * intervals.h (map_property): New enum.
12812 (get_local_map): Extra arg using it.
12813 (Qkeymap): Declare.
12814
12815 * lisp.h (get_local_map): Don't declare here.
12816
12817 2000-05-29 Kenichi Handa <handa@etl.go.jp>
12818
12819 * Makefile.in (callproc.o): Depend on composite.h.
12820
12821 * callproc.c: Include composite.h.
12822 (Fcall_process): Handle composition correctly.
12823
12824 * coding.h (coding_allocate_composition_data): Extern it.
12825 (coding_restore_composition): Likewise.
12826
12827 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
12828 yet allocated, finish decoding with result
12829 CODING_FINISH_INSUFFICIENT_CMP.
12830 (coding_allocate_composition_data): Make it non-static.
12831 (coding_restore_composition): Likewise.
12832
12833 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
12834
12835 * charset.c (syms_of_charset): Revert last change.
12836
12837 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
12838
12839 * term.c (produce_glyphs): Treat characters from the eight-bit-*
12840 charsets as unibyte, with 1-column screen width. Sent by Kenichi
12841 Handa.
12842
12843 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
12844
12845 * charset.c (syms_of_charset): Set width of character sets
12846 eight-bit-control and eight-bit-graphic to 1 column.
12847
12848 2000-05-26 Gerd Moellmann <gerd@gnu.org>
12849
12850 * config.in (HAVE_SPEED_T): New define.
12851
12852 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
12853 `extern speed_t'.
12854
12855 2000-05-26 Dave Love <fx@gnu.org>
12856
12857 * coding.c (shrink_decoding_region): Initialize eol_conversion.
12858
12859 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
12860 (Fsubr_arity): New function.
12861 (syms_of_data): Install them.
12862
12863 2000-05-26 Kenichi Handa <handa@etl.go.jp>
12864
12865 * charset.c (init_charset_once): Set the table bytes_by_char_head
12866 correctly.
12867
12868 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
12869 the default fontset to what Emacs uses by default.
12870 (check_registry_encoding): This function deleted.
12871 (Fset_fontset_font): Remove the adhoc condition for the default
12872 fontset. Allow cons in FONTNAME.
12873
12874 * fns.c (map_char_table): Ignore char-table entries for
12875 charsets eight-bit-control and eight-bit-graphic.
12876
12877 2000-05-25 Ken Raeburn <raeburn@gnu.org>
12878
12879 * emacs.c (main): Initialize keyboard syms before initializing
12880 window code, so face names are available.
12881
12882 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
12883
12884 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
12885 of an anchor at the beginning of a shy-group.
12886
12887 2000-05-25 Gerd Moellmann <gerd@gnu.org>
12888
12889 * xdisp.c (handle_invisible_prop): Don't try to skip over
12890 invisible text if end of text is already reached.
12891
12892 2000-05-25 Dave Love <fx@gnu.org>
12893
12894 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
12895
12896 * coding.c (encode_eol): Add null statement after label.
12897
12898 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
12899
12900 * w16select.c (Fw16_set_clipboard_data): Fix the change from
12901 2000-05-20.
12902
12903 2000-05-25 Kenichi Handa <handa@etl.go.jp>
12904
12905 * ccl.c (ccl_driver): Fix previous change.
12906
12907 2000-05-25 Kenichi Handa <handa@etl.go.jp>
12908
12909 * coding.c (run_pre_post_conversion_on_str): Set point to the
12910 beginning of buffer before calling coding->post_read_conversion.
12911 (decode_coding_string): Give correct args to
12912 run_pre_post_conversion_on_str.
12913 (encode_coding_string): Likewise.
12914
12915 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
12916 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
12917 eight-bit-graphic correctly.
12918
12919 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
12920
12921 * fileio.c (Finsert_file_contents): Even if a file is not found,
12922 execute codes for setting up coding system. Call
12923 after-insert-file-functions unconditionally.
12924
12925 2000-05-24 Gerd Moellmann <gerd@gnu.org>
12926
12927 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
12928 BSD_PGRPS are not defined.
12929
12930 2000-05-24 Kenichi Handa <handa@etl.go.jp>
12931
12932 * charset.c (update_charset_table): Accept nil in LONG_NAME and
12933 DESCRIPTION.
12934 (syms_of_charset): Avoid building same strings.
12935
12936 2000-05-23 Gerd Moellmann <gerd@gnu.org>
12937
12938 * lread.c (Fload): Add a comment about the meaning of
12939 Vuser_init_file being t.
12940
12941 * puresize.h (BASE_PURESIZE): Increase to 675000.
12942
12943 * s/gnu-linux.h (setpgrp): Don't define it here because this
12944 prevents compilation on GNU/Linux systems with glib 2.2.
12945
12946 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
12947 as setpgid.
12948
12949 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
12950
12951 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
12952 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
12953 version.
12954 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
12955
12956 2000-05-23 Kenichi Handa <handa@etl.go.jp>
12957
12958 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12959
12960 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
12961
12962 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
12963
12964 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
12965
12966 2000-05-22 Kenichi Handa <handa@etl.go.jp>
12967
12968 * keyboard.c (read_char): Allow character codes 128..255 to be
12969 handled by input-method-function.
12970
12971 * insdel.c (adjust_markers_for_replace): Fix previous change.
12972 (adjust_after_replace): If PREV_TEXT is nil, call
12973 adjust_markers_for_insert, not adjust_markers_for_replace.
12974
12975 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
12976
12977 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
12978 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
12979 [HAVE_GRANDPT]: Define.
12980 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
12981
12982 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
12983 like SYSV_PTYS.
12984
12985 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
12986
12987 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
12988
12989 2000-05-20 Kenichi Handa <handa@etl.go.jp>
12990
12991 The following changes are to handle 8-bit characters in a
12992 multibyte buffer/string without facing with byte combining
12993 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
12994 eight-bit-graphic (for 0xA0..0xFF) are introduced.
12995
12996 * Makefile.in (fns.o): Depend on charset.h.
12997
12998 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
12999 convert it to unibyte.
13000 (make_string): Use parse_str_as_multibyte, not chars_in_text.
13001
13002 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
13003 apparent char boundary.
13004 (Fset_buffer_multibyte): Convert 8-bit characters in the range
13005 0x80..0x9F to/from multibyte form.
13006
13007 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
13008 to unibyte.
13009
13010 * callproc.c (Fcall_process): Always encode an argument string if
13011 it is multibyte. Setup src_multibyte and dst_multibyte members of
13012 process_coding properly.
13013
13014 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
13015 SPLIT_NON_ASCII_CHAR.
13016
13017 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
13018 as is.
13019 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
13020
13021 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
13022 (SPLIT_CHARACTER_SEQ): This macro deleted.
13023 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
13024 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
13025 and eight-bit-graphic.
13026 (char_to_string): Likewise. Signal an error for too large
13027 character code.
13028 (char_printable_p): Return 0 for 8-bit characters.
13029 (update_charset_table): Update iso_charset_table only when a final
13030 character is non-negative.
13031 (find_charset_in_text): Renamed from find_charset_in_str.
13032 Arguments and return value changed. Callers changed.
13033 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
13034 be -1 if CHARSET is used only internally.
13035 (Fmake_char_internal): Handle new charsets; eight-bit-control and
13036 eight-bit-graphic.
13037 (Fcharset_after): Simplified.
13038 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
13039 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
13040 (multibyte_chars_in_text): Simplified by assuming there's no
13041 invalid multibyte sequence.
13042 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
13043 (str_as_unibyte): New functions.
13044 (Fstring): Simpified by assuming that byte combining never happens.
13045 (init_charset_once): Initialization for
13046 LEADING_CODE_8_BIT_CONTROL.
13047 (syms_of_charset): Intern and staticpro Qeight_bit_control and
13048 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
13049 eight-bit-control and eight-bit-graphic.
13050
13051 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
13052 (CHARSET_8_BIT_GRAPHIC): New macros.
13053 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
13054 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
13055 (CHARSET_REVERSE_CHARSET): Likewise.
13056 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
13057 eight-bit-graphic.
13058 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
13059 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
13060 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
13061 encounter an invalid multibyte sequence.
13062 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
13063 sequence is always valid.
13064 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
13065 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
13066 (CHAR_STRING): For 8-bit characters, call char_to_string.
13067 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
13068 multibyte sequence is always valid.
13069 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
13070 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
13071 (str_as_unibyte): Extern them.
13072 (BCOPY_SHORT): Fix a bug.
13073 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
13074 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
13075 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
13076 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
13077
13078 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
13079 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
13080 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
13081 (EMIT_BYTES): New macros.
13082 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
13083 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
13084 macros deleted.
13085 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
13086 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
13087 check the validity of multibyte sequence.
13088 (decode_coding_emacs_mule): New function.
13089 (encode_coding_emacs_mule): New macro.
13090 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
13091 the source.
13092 (DECODE_ISO_CHARACTER): Just return a character code.
13093 (DECODE_COMPOSITION_START): Set coding->result instead of result.
13094 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
13095 EMIT_CHAR to produced decoded characters. Exit the loop only by
13096 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
13097 block here.
13098 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
13099 only position codes for an invalid character.
13100 (encode_designation_at_bol): Return new destination pointer. 5th
13101 arg DSTP is changed to DST.
13102 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
13103 from the source by ONE_MORE_CHAR. Don't handle the case of last
13104 block here.
13105 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
13106 macros deleted.
13107 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
13108 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
13109 TWO_MORE_BYTES to fetch a byte from the source.
13110 (encode_eol): Pay attention to coding->src_multibyte.
13111 (detect_coding, detect_eol): Preserve members src_multibyte and
13112 dst_multibyte.
13113 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
13114 (encoding_buffer_size): Set magnification to 3 for all coding
13115 systems that require encoding.
13116 (ccl_coding_driver): For decoding, be sure that the result is
13117 valid multibyte sequence.
13118 (decode_coding): Initialize coding->errors and coding->result.
13119 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
13120 and raw-text, always call decode_eol. Handle the case of last
13121 block here. If not coding->dst_multibyte, convert the resulting
13122 sequence to unibyte.
13123 (encode_coding): Initialize coding->errors and coding->result.
13124 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
13125 and raw-text, always call encode_eol. Handle the case of last
13126 block here.
13127 (shrink_decoding_region, shrink_encoding_region): Detect cases
13128 that we can't skip data more rigidly.
13129 (code_convert_region): Setup src_multibyte and dst_multibyte
13130 members of coding. For decoding, if the buffer is multibyte,
13131 convert the source sequence to unibyte in advance. For encoding,
13132 if the buffer is multibyte, convert the resulting sequence to
13133 multibyte afterward.
13134 (run_pre_post_conversion_on_str): New function.
13135 (code_convert_string): Deleted and divided into the following two.
13136 (decode_coding_string, encode_coding_string): New functions.
13137 (code_convert_string1, code_convert_string_norecord): Call one of
13138 above.
13139 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
13140 MAKE_NON_ASCII_CHAR.
13141 (Fset_terminal_coding_system_internal)
13142 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
13143 and dst_multibyte members.
13144 (init_coding_once): Initialize iso_code_class with new enum
13145 ISO_control_0 and ISO_control_1.
13146
13147 * coding.h (enum iso_code_class_type): Member ISO_control_code is
13148 devided into ISO_control_0 and ISO_control_1.
13149 (struct coding_system): New members src_multibyte, dst_multibyte,
13150 errors, and result. Delete member fake_multibyte.
13151 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
13152 nonzero.
13153 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
13154 nonzero.
13155
13156 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
13157 (Faset): Likewise.
13158
13159 * editfns.c (Fformat): Be sure to convert 8-bit characters to
13160 multibyte form.
13161 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
13162 combining occurs.
13163 (Ftranspose_region): Delete codes for handling byte combining.
13164
13165 * fileio.c (Finsert_file_contents): Setup src_multibyte and
13166 dst_multibyte members of coding. On handling REPLACE on unibyte
13167 buffer, convert the result of decode_coding to unibyte. On
13168 inserting into a mutibyte buffer, always call code_convert_region.
13169 (e_write): Setup coding->src_multibyte according to the
13170 multibyteness of the source (buffer or string).
13171
13172 * fns.c (concat): Handle 8-bit characters correctly.
13173 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
13174 unibyte in the result.
13175 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
13176 valid multibyte form in the result.
13177 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
13178 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
13179 return -1, signal an error.
13180 (base64_encode_1): New arg MULTIBYTE. Get each character by
13181 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
13182 character is found, return -1.
13183 (Fbase64_decode_region): Delete codes for handling byte-combining.
13184 Treat each decoded byte as a unibyte character.
13185 (Fbase64_decode_string): Return unibyte string.
13186 (Fcompare_strings, concat, string_byte_to_char): Use
13187 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
13188 FETCH_STRING_CHAR_ADVANCE.
13189 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13190 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
13191
13192 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
13193 SPLIT_NON_ASCII_CHAR.
13194 (fontset_ref_via_base, fontset_set): Likewise
13195
13196 * insdel.c (adjust_markers_for_record_delete): Deleted.
13197 (adjust_markers_for_insert): Argument changed. Caller changed.
13198 (adjust_markers_for_replace): Likewise.
13199 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
13200 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
13201 (copy_text): Delete unused local varialbe c_save. For converting
13202 to multibyte, be sure to make all 8-bit characters in valid
13203 multibyte form.
13204 (count_size_as_multibyte): Handle 8-bit characters correctly.
13205 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
13206 (adjust_after_replace, replace_range, del_range_2)
13207 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
13208 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
13209 (adjust_after_replace, replace_range, del_range_2) Delete codes for
13210 handling byte combining.
13211 (adjust_before_replace): Deleted.
13212
13213 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
13214 SPLIT_NON_ASCII_CHAR.
13215 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
13216 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13217 (Fkey_description): Likewise.
13218
13219 * lread.c (read1): On reading multibyte string, be sure to make
13220 all 8-bit chararacters in valid multibyte form.
13221 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13222
13223 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
13224 unconditionally.
13225
13226 * process.c (Fstart_process): GCPRO current_dir before calling
13227 Ffind_operation_coding_system. Encode arguments here.
13228 (create_process): Don't encode arguments here. Setup
13229 src_multibyte and dst_multibyte members of struct coding.
13230 (read_process_output): Setup src_multibyte and dst_multibyte
13231 members of struct coding. If the output is to multibyte buffer,
13232 always decode the output of the process. Adjust the
13233 representation of 8-bit characters to the multibyteness of the output.
13234 (send_process): Setup coding->src_multibyte according to the
13235 multibyteness of the source.
13236
13237 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13238 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
13239 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
13240
13241 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
13242
13243 * w16select.c (Fw16_set_clipboard_data): Setup members
13244 src_multibyte and dst_multibyte of coding. Adjusted for the
13245 change for find_charset_in_str.
13246 (Fw16_get_clipboard_data): Likewise.
13247
13248 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
13249 dst_multibyte of coding.
13250 (x_to_w32_font): Likewise.
13251
13252 * w32select.c (Fw32_set_clipboard_data): Setup members
13253 src_multibyte and dst_multibyte of coding. Adjusted for the
13254 change for find_charset_in_str.
13255 (Fw32_get_clipboard_data): Likewise.
13256
13257 * xdisp.c (get_next_display_element): Handle 8-bit characters
13258 correctly.
13259 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
13260 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
13261
13262 * xselect.c (selection_data_to_lisp_data): Setup members
13263 src_multibyte and dst_multibyte of coding. Adjusted for the
13264 change for find_charset_in_str.
13265 (lisp_data_to_selection_data): Likewise.
13266
13267 2000-05-19 Gerd Moellmann <gerd@gnu.org>
13268
13269 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
13270
13271 * dispextern.h (Vimage_types): Add extern declaration.
13272
13273 * xdisp.c (Vimage_types): Moved here from xfns.c.
13274 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
13275
13276 * xfns.c (Vimages_types): Moved to xdisp.c.
13277 (syms_of_xfns): Move `image-types' to xdisp.c.
13278
13279 * w32fns.c (Vimage_types): Removed.
13280 (syms_of_w32fns): Remove `image-types'.
13281
13282 2000-05-18 Kenichi Handa <handa@etl.go.jp>
13283
13284 * fns.c (map_char_table): Pay attention to character number of
13285 charset. Check the validity of charset at the first level. For
13286 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
13287 the default value.
13288
13289 * fontset.c: Include "buffer.h".
13290 (fs_load_font): If the face has fontset, record the face ID in
13291 that fontset.
13292 (Finternal_char_font): New function.
13293 (accumulate_font_info): New function.
13294 (Ffontset_info): Rewritten for the new fontset implementation.
13295 (syms_of_fontset): Register Vdefault_fontset in the first element
13296 of Vfontset_table. Include Vdefault_fontset in
13297 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
13298 function.
13299
13300 2000-05-16 Dave Love <fx@gnu.org>
13301
13302 * m/iris5d.h: Deleted -- unused.
13303
13304 2000-05-16 Gerd Moellmann <gerd@gnu.org>
13305
13306 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
13307 `invalid' instead of `illegal'.
13308
13309 * indent.c (Fmove_to_column): When ending within a tab, insert
13310 spaces first so that markers at the end of the tab get adjusted.
13311
13312 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
13313 buffer list that wasn't selected in that frame.
13314
13315 * filelock.c (get_boot_time): To obtain an 8 char file name, which
13316 is needed on mescaline, use a 2 char prefix, and call
13317 make_temp_name with second arg non-zero.
13318
13319 * fileio.c (make_temp_name): New function, extracted from
13320 Fmake_temp_name.
13321 (Fmake_temp_name): Use it.
13322
13323 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
13324
13325 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
13326
13327 2000-05-15 Gerd Moellmann <gerd@gnu.org>
13328
13329 * Makefile.in (lisp): Add env.elc.
13330
13331 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
13332
13333 2000-05-12 Gerd Moellmann <gerd@gnu.org>
13334
13335 * search.c (Freplace_match): Handle case of `\N' in the
13336 replacement when there's no group N.
13337
13338 2000-05-11 Gerd Moellmann <gerd@gnu.org>
13339
13340 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
13341 of the message to message_dolog.
13342
13343 * keyboard.c (read_char): Don't clear current message for help
13344 events; let the code handling help events handle this. Change
13345 code detecting help events that should be ignored.
13346
13347 * xdisp.c (handle_single_display_prop): Don't try to set PT if
13348 we're interating over a string.
13349
13350 2000-05-09 Dave Love <fx@gnu.org>
13351
13352 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
13353 that offset before writing. Move gcpro region past call of
13354 Ffile_regular_p.
13355
13356 2000-05-04 Dave Love <fx@gnu.org>
13357
13358 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
13359
13360 2000-05-04 Gerd Moellmann <gerd@gnu.org>
13361
13362 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
13363 of inserted characters when BUF equals the current buffer, and PT
13364 is in front of or equal to FROM.
13365
13366 2000-05-03 Gerd Moellmann <gerd@gnu.org>
13367
13368 * xdisp.c (handle_single_display_prop): If display property value
13369 is invalid, or something not supported on the frame, restore
13370 iterator's position to what it was initially. Make sure to return
13371 0 for invalid and unsupported property values.
13372
13373 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
13374 that x_per_char_metric returns null.
13375
13376 2000-05-02 Gerd Moellmann <gerd@gnu.org>
13377
13378 * xterm.h (struct face): Add forward declaration.
13379 (struct image): Ditto.
13380 (image_ascent): Add prototype.
13381
13382 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
13383 (x_draw_image_relief, x_draw_image_foreground_1): Call function
13384 image_ascent instead of using IMAGE_ASCENT.
13385
13386 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
13387 (IMAGE_ASCENT): Removed.
13388
13389 * xfns.c (Qcenter): New variable.
13390 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
13391 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
13392 (image_ascent): New function.
13393 (lookup_image): Recognize `:ascent center'.
13394 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
13395 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
13396 (xbm_load): Don't set image's ascent here.
13397 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
13398 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
13399 check ascent values here.
13400 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
13401 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
13402 (syms_of_xfns): Initialize Qcenter.
13403
13404 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
13405 to the limits, increase the limits.
13406
13407 2000-05-01 Kenichi Handa <handa@etl.go.jp>
13408
13409 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
13410 Check Vfont_encoding_alist against the full name of the opened font.
13411
13412 2000-04-28 Gerd Moellmann <gerd@gnu.org>
13413
13414 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
13415 taller than the window.
13416
13417 2000-04-28 Kenichi Handa <handa@etl.go.jp>
13418
13419 * xfaces.c (realize_x_face): Fix the argument of the second
13420 xassert. BASE_FACE may not be a face for ASCII.
13421
13422 2000-04-27 Gerd Moellmann <gerd@gnu.org>
13423
13424 * print.c (print_object): Treat print-length < 0 as nil.
13425
13426 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
13427
13428 * s/freebsd.h (TERMCAP_OBJ): Removed.
13429 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
13430
13431 * lread.c (read1): Don't treat period followed by certain
13432 characters as symbol start.
13433
13434 * xfns.c (slurp_file): New function.
13435 (xbm_image_p): Handle case of in-memory XBM files.
13436 (xbm_scan): Rewritten to work on memory buffers instead of files.
13437 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
13438 Work on memory buffers instead of files. If DATA is null test
13439 if buffer looks like an in-memory XBM file.
13440 (xbm_load_image): Renamed from xbm_load_image_file. Work on
13441 memory buffers instead of files.
13442 (xbm_file_p): New function.
13443 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
13444
13445 * lread.c (end_of_file_error): New function.
13446 (read1): Call it instead of signaling `end-of-file' directly.
13447
13448 * print.c (print_error_message): Print data of `end-of-file'
13449 with Fprinc instead of Fprin1.
13450
13451 2000-04-26 Ken Raeburn <raeburn@gnu.org>
13452
13453 * window.c (freeze_window_start): Check that minibuffer scroll
13454 window isn't nil before extracting the window structure pointer
13455 from it.
13456
13457 * undo.c (record_delete): If we hit the end of the undo list, stop
13458 picking elements apart.
13459
13460 2000-04-26 Gerd Moellmann <gerd@gnu.org>
13461
13462 * xdisp.c (display_line): If lines are continued, restore
13463 iterator's ascent/descent information to the values before the
13464 first glyph not fitting on the line.
13465
13466 2000-04-25 Gerd Moellmann <gerd@gnu.org>
13467
13468 * xdisp.c (try_window_id) <all changes above window start>: Adjust
13469 positions in glyph matrix. Don't compute new window end positions.
13470
13471 * dispnew.c (increment_matrix_positions): Renamed from
13472 increment_glyph_matrix_buffer_positions.
13473 (increment_row_positions): Renamed from
13474 increment_glyph_row_buffer_positions.
13475
13476 * dispextern.h: Change names of renamed functions from dispnew.c
13477 in prototypes.
13478
13479 2000-04-24 Gerd Moellmann <gerd@gnu.org>
13480
13481 * fileio.c (Fdo_auto_save): Create directories for auto-save
13482 list file if necessary.
13483
13484 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
13485 from buffer or frame.
13486 (automatic_hscrolling_p): New variable.
13487 (hscroll_windows): Scroll windows horizontally only if automatic
13488 hscrolling is allowed.
13489 (syms_of_xdisp): New variable `automatic-hscrolling'.
13490
13491 * frame.h (struct frame): Add member extra_line_spacing.
13492
13493 * xfns.c (x_set_line_spacing): New function.
13494 (Fx_create_frame): Set line spacing from resources.
13495 (Qline_spacing): New variable.
13496 (syms_of_xfns): Initialize Qline_spacing.
13497
13498 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
13499
13500 * buffer.c (init_buffer_once): Handle extra_line_spacing.
13501 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
13502 (reset_buffer): Don't initialize extra2 and extra3. Initialize
13503 extra_line_spacing from default value.
13504 (init_buffer_once): Initialize default value of extra_line_spacing.
13505
13506 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
13507 and extra3.
13508
13509 * xterm.c (x_produce_glyphs): Remove reference to struct it's
13510 prompt_width. Add extra line spacing.
13511
13512 * term.c (produce_glyphs): Remove reference to struct it's
13513 prompt_width.
13514
13515 * dispextern.h (struct it): Remove member prompt_width, add
13516 extra_line_spacing.
13517
13518 2000-04-22 Gerd Moellmann <gerd@gnu.org>
13519
13520 * dispnew.c (update_frame_line): When writing a whole line, make
13521 sure cursor is in the right row afterwards, otherwise a use of
13522 capability `ch' in cmgoto might leave the cursor in the row below.
13523
13524 2000-04-21 Gerd Moellmann <gerd@gnu.org>
13525
13526 * lisp.h (struct Lisp_Buffer_Cons): Remove.
13527
13528 * keyboard.c (timer_check): Fix typo in comment.
13529
13530 2000-04-21 Kenichi Handa <handa@etl.go.jp>
13531
13532 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
13533 name change: ch -> character.
13534
13535 2000-04-20 Gerd Moellmann <gerd@gnu.org>
13536
13537 * keyboard.c (echo_message_buffer): New variable.
13538 (echo_now): Set echo_message_buffer to the echo area buffer used
13539 to display the echo.
13540 (cancel_echoing): Reset echo_message_buffer to nil.
13541 (read_char): Code rewritten that handles canceling an echo or
13542 echoing a dash, respectively.
13543
13544 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
13545 directory doesn't exist.
13546
13547 2000-04-19 Dave Love <fx@gnu.org>
13548
13549 * fns.c (syms_of_fns): Defsubr mapc.
13550 (concat): Don't allow numeric args.
13551 (Fconcat): Doc change.
13552
13553 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
13554
13555 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
13556 instead define end_match(1|2) more carefully.
13557 Use GET_CHAR_BEFORE_2 for `begline'.
13558
13559 2000-04-19 Gerd Moellmann <gerd@gnu.org>
13560
13561 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
13562 on 64-bit systems where NULL is defined as `0'.
13563
13564 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
13565 the `variable argument list' to make it work on Alpha.
13566
13567 * m/alpha.h (_LP64) [!_LP64]: Define.
13568 (ORDINARY_LINK): Define for NetBSD.
13569
13570 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
13571
13572 2000-04-19 Dave Love <fx@gnu.org>
13573
13574 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
13575 change.
13576
13577 * Makefile.in (LIBS): Don't use.
13578 (GETLOADAVG_OBJ): Define again.
13579 (otherobj): Add GETLOADAVG_OBJ.
13580
13581 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
13582
13583 2000-04-18 Gerd Moellmann <gerd@gnu.org>
13584
13585 * lread.c (read_filtered_event): Cancel and start busy cursor.
13586
13587 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
13588 that the per-character metrics may be null.
13589
13590 2000-04-17 Gerd Moellmann <gerd@gnu.org>
13591
13592 * buffer.c (clone_per_buffer_values): New function.
13593 (Fmake_indirect_buffer): Add optional argument CLONE. Call
13594 clone_per_buffer_values if CLONE is not nil.
13595
13596 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
13597
13598 2000-04-16 Dave Love <fx@gnu.org>
13599
13600 * Makefile.in: Remove obsolete localcpp stuff.
13601 (GETLOADAVG_OBJ): Don't define.
13602 (obj): Move LIBOBJS...
13603 (otherobj): ... to here.
13604 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
13605 whitespace-only lines after the continuation (Irix).
13606
13607 2000-04-14 Gerd Moellmann <gerd@gnu.org>
13608
13609 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
13610
13611 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
13612
13613 2000-04-14 Dave Love <fx@gnu.org>
13614
13615 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
13616 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
13617 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
13618 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
13619 NLIST_STRUCT.
13620
13621 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
13622 autoconfiscated HAVE_GETLOADAVG.
13623
13624 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
13625 BROKEN_MKTIME.
13626
13627 2000-04-14 Gerd Moellmann <gerd@gnu.org>
13628
13629 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
13630 (fill_in_lock_file_name): Avoid existing files that aren't links.
13631
13632 2000-04-14 Dave Love <fx@gnu.org>
13633
13634 * Makefile.in (LIBS, LIBOBJS): New variable.
13635 (INTERVAL_SRC): Convert to make variable.
13636 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
13637 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
13638 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
13639 add LIBOBJS.
13640 (SOME_MACHINE_OBJECTS): Remove interval stuff.
13641 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
13642 (shortlisp): Add facemenu, float-sup, frame.
13643 (SOME_MACHINE_LISP): Remove them from here.
13644 (LIBES): Change unused LDLIBS to autoconf LIBS.
13645
13646 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
13647
13648 2000-04-14 Kenichi Handa <handa@etl.go.jp>
13649
13650 * composite.c (update_compositions): If FROM and TO are not in a
13651 valid range, do nothing.
13652
13653 2000-04-13 Gerd Moellmann <gerd@gnu.org>
13654
13655 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
13656
13657 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
13658
13659 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
13660 as TERMCAP_OBJ.
13661
13662 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
13663
13664 * fileio.c (a_write): Remove redundant semi-colons.
13665 (e_write): Return -1 if failed to write all the data.
13666 This fixes the changes made at 1999-12-15.
13667
13668 2000-04-12 Dave Love <fx@gnu.org>
13669
13670 * fns.c (mapcar1): Test for null vals to support mapc.
13671 (Fmapc): New function.
13672
13673 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
13674
13675 * msdos.c (NUM_MOUSE_BUTTONS): Define.
13676 (IT_frame_up_to_date): Support the buffer local value of
13677 cursor-type, if defined.
13678
13679 2000-04-10 Dave Love <fx@gnu.org>
13680
13681 * editfns.c (preceding-char, following-char): Doc fix.
13682
13683 2000-04-10 Ken Raeburn <raeburn@gnu.org>
13684
13685 * Makefile.in (temacs): Revert 2000-03-12 change.
13686
13687 2000-04-10 Jason Rumney <jasonr@gnu.org>
13688
13689 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
13690
13691 2000-04-10 Gerd Moellmann <gerd@gnu.org>
13692
13693 * xdisp.c (setup_echo_area_for_printing): Choose an echo
13694 area buffer, if it's not set up yet.
13695
13696 * indent.c (compute_motion): Set immediate_quit.
13697
13698 2000-04-09 Gerd Moellmann <gerd@gnu.org>
13699
13700 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
13701 (realize_tty_face): Suppress boldness if colors are the inverse of
13702 the default colors, and tty_suppress_bold_inverse_default_colors_p
13703 is set.
13704 (Ftty_suppress_bold_inverse_default_colors): New function.
13705 (syms_of_xfaces): Defsubr it.
13706
13707 * buffer.c (Frestore_buffer_modified_p): New function.
13708 (syms_of_buffer): Defsubr it.
13709
13710 2000-04-08 Ken Raeburn <raeburn@gnu.org>
13711
13712 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
13713 charset id (int) argument, not a charset (Lisp_Object).
13714
13715 * coding.h (code_convert_string): Declare.
13716 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
13717 object, as the fourth argument to code_convert_string.
13718
13719 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
13720 (Fset_fontset_font): Use EQ to compare lisp objects.
13721
13722 2000-04-05 Ken Raeburn <raeburn@gnu.org>
13723
13724 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
13725 a pointer that looks like a lisp object.
13726 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
13727 zero, instead see whether it's an integer object, since they can't
13728 have intervals.
13729 (GET_INTERVAL_OBJECT): Simply assign to the destination.
13730
13731 * dispnew.c (allocate_matrices_for_frame_redisplay)
13732 (direct_output_forward_char): Use X(U)INT and make_number as needed
13733 to convert between (unsigned) int values and lisp integers.
13734 * keyboard.c (read_key_sequence): Likewise.
13735 * lread.c (substitute_object_recurse): Likewise.
13736 * fns.c (concat, hash_lookup, hash_remove): Likewise.
13737 * minibuf.c (do_completion, Fminibuffer_complete_word)
13738 (Fminibuffer_completion_help): Likewise.
13739 * term.c (produce_special_glyphs): Likewise.
13740
13741 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
13742 * print.c (print_preprocess, print_object): Likewise.
13743
13744 * search.c (compile_pattern): Use NILP when checking for nil.
13745
13746 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
13747 __OPTIMIZE__]: Provide a GNU C macro version that handles
13748 lisp-object unions.
13749 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
13750 field, to better cope with ENABLE_CHECKING and calls that modify a
13751 Lisp_Object using its old value.
13752
13753 2000-04-04 Gerd Moellmann <gerd@gnu.org>
13754
13755 * window.c (compare_window_configurations): Signal an error
13756 if parameters C1 or C2 aren't window configurations.
13757
13758 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
13759 AFTER_POTENTIAL_GC calls around calls to functions that can
13760 signal an error and thus invoke the debugger.
13761
13762 2000-04-03 Gerd Moellmann <gerd@gnu.org>
13763
13764 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
13765 an error if decoding fails.
13766
13767 * keyboard.c (lispy_mouse_names): Variable removed.
13768 (Vlispy_mouse_stem): New variable.
13769 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
13770 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
13771 for any mouse button number. Increase size of mouse_syms and
13772 button_down_location as needed. Call modify_event_symbol with
13773 different arguments.
13774 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
13775 Call modify_event_symbol with different arguments.
13776 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
13777 for any button number. Call modify_event_symbol with different
13778 arguments.
13779 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
13780 Accept a string for NAME_ALIST_OR_STEM.
13781
13782 * lisp.h (larger_vector): Add prototype.
13783
13784 * fns.c (larger_vector): Make externally visible.
13785
13786 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
13787
13788 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
13789
13790 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
13791 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
13792 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
13793 we are between str1 and str2.
13794 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
13795 (PATFETCH): Use `TRANSLATE'.
13796 (PATFETCH_RAW): Fetch multibyte char if applicable.
13797 (PATUNFETCH): Remove.
13798 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
13799 When writing a char, write it directly into the pattern buffer rather
13800 than going needlessly through a temp char-array.
13801 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
13802 multibyte magic and remove the useless `#ifdef emacs'.
13803 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
13804 buffer.
13805
13806 * regex.h (struct re_pattern_buffer): Make field `multibyte'
13807 conditional on `emacs'.
13808
13809 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
13810
13811 2000-04-01 Ken Raeburn <raeburn@gnu.org>
13812
13813 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
13814 non-union-type versions of XMARK and friends here, because XMARK
13815 and friends won't work on an integer field if NO_UNION_TYPE is not
13816 defined.
13817 (make_number): Define as a function if it's not defined as a macro.
13818
13819 * composite.c (run_composite_function): Use NILP when checking for nil.
13820 (syms_of_composite): Delete local var NARGS, pass an int as first
13821 argument to Fmake_hash_table.
13822
13823 * editfns.c (text_property_stickiness): Use NILP to test
13824 Lisp_Object boolean value.
13825 (Fmessage_or_box): Don't use NILP to test int variable.
13826 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
13827 problems reading from and changing the same lisp value in an
13828 XSETSTRING call.
13829
13830 2000-04-01 Gerd Moellmann <gerd@gnu.org>
13831
13832 * term.c (TN_no_color_video): New variable.
13833 (term_init): Intitialize TN_no_color_video.
13834 (enum no_color_bit): New enumeration.
13835 (MAY_USE_WITH_COLORS_P): New macro.
13836 (turn_on_face): Use it to determine if attributes may be used
13837 combined with colors.
13838
13839 2000-04-01 Ken Raeburn <raeburn@gnu.org>
13840
13841 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
13842 with int lvalues via casts; instead, just yield lisp object lvalues.
13843 (enlarge_window): Variable sizep now points to Lisp_Object. Use
13844 proper accessor macros.
13845 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
13846 (grow_mini_window): Fix typo getting int value of root->height.
13847
13848 * xdisp.c (compute_string_pos): Fix order of arguments to
13849 string_pos_nchars_ahead.
13850 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
13851 count arg to variable-arg routines like Frun_hook_with_args and
13852 Fformat.
13853 (back_to_previous_visible_line_start)
13854 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
13855 fixed-arg routines like Fget_char_property and Fmake_string.
13856 (reconsider_clip_changes): Use XINT when comparing integer lisp
13857 objects, or passing them as int arguments.
13858 (mark_window_display_accurate, insert_left_trunc_glyphs)
13859 (append_space, extend_face_to_end_of_line): Use make_number when
13860 storing or passing integer values as lisp objects.
13861 (set_cursor_from_row, highlight_trailing_whitespace): Use
13862 INTEGERP, not implicit test against zero, for glyph object.
13863 (try_window_id): Don't use make_number when we want an int value.
13864
13865 * xfaces.c (xlfd_symbolic_value): Make last argument a
13866 Lisp_Object, to be consistent with callers.
13867 (Fbitmap_spec_p): Use XINT to get numeric value of height.
13868 (lface_hash): Apply XFASTINT to lisp values before folding in.
13869
13870 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
13871 fill in window width and height. Pass an int, not a lisp object,
13872 as first arg to Finsert.
13873
13874 2000-04-01 Gerd Moellmann <gerd@gnu.org>
13875
13876 * xfaces.c (realize_basic_faces): Block input while realizing
13877 the faces.
13878
13879 * keyboard.c (lispy_mouse_names): Add additional mouse names.
13880
13881 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
13882
13883 2000-03-31 Gerd Moellmann <gerd@gnu.org>
13884
13885 * xterm.c (x_produce_glyphs): When displaying unibyte text
13886 or ASCII, handle case that per-char metric is null.
13887
13888 2000-03-30 Ken Raeburn <raeburn@gnu.org>
13889
13890 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
13891
13892 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
13893 (XSUBR, XBUFFER): Verify correct object type before returning
13894 pointer, using eassert.
13895 * frame.h (XFRAME): Likewise.
13896
13897 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
13898 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
13899 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
13900 * data.c (set_internal): Likewise.
13901 * dispextern.h (WINDOW_WANTS_MODELINE_P)
13902 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
13903 * fileio.c (auto_save_1): Likewise.
13904 * insdel.c (check_markers): Likewise.
13905 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
13906 * undo.c (record_insert): Likewise.
13907 * vmsproc.c (child_sig): Likewise.
13908 * window.c (unshow_buffer, window_loop): Likewise.
13909 * xterm.c (x_erase_phys_cursor): Likewise.
13910
13911 2000-03-30 Gerd Moellmann <gerd@gnu.org>
13912
13913 * xfns.c (free_image_cache): Free the cache structure itself
13914 last, after all its members have been freed.
13915
13916 * lisp.h (xstrdup): Add prototype.
13917
13918 * alloc.c (xstrdup): Moved here from xfaces.c.
13919 (allocating_for_lisp): Variable removed.
13920 (lisp_malloc): Block input around the calls to malloc and mem_insert.
13921
13922 * xfaces.c (realize_tty_face): Use find_symbol_value instead
13923 of Fsymbol_value.
13924 (xstrdup): Moved to alloc.c.
13925
13926 2000-03-29 Ken Raeburn <raeburn@gnu.org>
13927
13928 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
13929
13930 * emacs.c (main): Fix sense of no-loadup test.
13931
13932 * config.in (ENABLE_CHECKING): Undef.
13933
13934 * lisp.h (struct interval): Replace "parent" field with a union of
13935 interval pointer and Lisp_Object; add new bitfield to use as
13936 discriminant. Change other flag fields to bitfields.
13937 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
13938 is defined and the supplied test fails, print a message and abort.
13939 (eassert): New macro. Use CHECK to provide an assert-like facility.
13940
13941 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
13942 pointers; abort if the value looks like a lisp object.
13943 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
13944 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
13945 Modify for new interval parent definition.
13946
13947 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
13948 (UNMARK_BALANCE_INTERVALS): Update references that need an
13949 addressable lisp object in the interval structure.
13950 (die): New function.
13951 (suppress_checking): New variable.
13952
13953 * intervals.c (interval_start_pos): Just return 0 if there's no
13954 parent object.
13955
13956 2000-03-29 Gerd Moellmann <gerd@gnu.org>
13957
13958 * lread.c (read1): Accept `.' (period) as symbol start like in CL
13959 and earlier Emacs versions.
13960
13961 * keyboard.c (Ftop_level): Cancel busy-cursor.
13962
13963 * eval.c (call_debugger): Cancel busy-cursor.
13964
13965 2000-03-29 Kenichi Handa <handa@etl.go.jp>
13966
13967 * search.c (Freplace_match): Adjust multibyteness of the current
13968 buffer and NEWTEXT. Free allocated memory before signaling an error.
13969
13970 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
13971
13972 * regex.c (analyse_first): New function obtained by ripping out most
13973 of re_compile_fastmap and generalizing it a little bit so that it
13974 can also just return whether a given (sub)pattern can match the empty
13975 string or not.
13976 (regex_compile): Use `analyse_first' to decide whether the loop-check
13977 needs to be done or not for *, +, *? and +? (the loop check is costly
13978 for non-greedy repetition).
13979 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
13980
13981 2000-03-28 Dave Love <fx@gnu.org>
13982
13983 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
13984
13985 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
13986
13987 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
13988
13989 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
13990 an expression.
13991 (enum re_opcode_t): Update description of succeed_n.
13992 (PATFETCH): Always define.
13993 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
13994 operators, char classes, shy-groups and intervals).
13995 Optimize special cases of intervals so as to only use succeed_n and
13996 jump_n when really needed.
13997 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
13998 that we don't have to handle the special cases any more.
13999 Simplify on_failure_jump handling as well.
14000
14001 2000-03-28 Jason Rumney <jasonr@gnu.org>
14002
14003 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
14004
14005 2000-03-27 Gerd Moellmann <gerd@gnu.org>
14006
14007 * s/freebsd.h (GC_SETJMP_WORKS): Define.
14008
14009 * s/msdos.h (GC_SETJMP_WORKS): Define.
14010
14011 * alloc.c (mark_maybe_object): New function.
14012 (mark_memory): Use it.
14013 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
14014 (setjmp_tested_p, longjmp_done): New variables.
14015 (test_setjmp): New function.
14016 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
14017 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
14018
14019 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
14020 to DEC_TEXT_POS and INC_TEXT_POS.
14021
14022 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
14023 with parameter MULTIBYTE_P.
14024
14025 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
14026
14027 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
14028 buffers because it looks for multibyte character byte sequences
14029 which don't exist in unibyte text.
14030
14031 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
14032
14033 * xfaces.c (register_color, unregister_color, unregister_colors)
14034 [DEBUG_X_COLORS]: New functions.
14035 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
14036
14037 * xfns.c (x_set_cursor_color): Get color reference counts right.
14038
14039 * xterm.c (x_copy_color): New function.
14040 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
14041
14042 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
14043 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
14044 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
14045 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
14046 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
14047 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
14048 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
14049 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
14050 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
14051 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
14052
14053 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
14054 names for handling per-buffer variables.
14055
14056 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
14057 instead of MAX_BUFFER_LOCAL_VARS.
14058 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
14059
14060 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
14061
14062 * xfns.c (x_specified_cursor_type): New function.
14063 (x_set_cursor_type): Use it.
14064
14065 * buffer.h (struct buffer): Add cursor_type.
14066
14067 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
14068
14069 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
14070 (print_partial_compiled_pattern, re_compile_fastmap):
14071 Handle new opcode.
14072 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
14073 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
14074 executing it as well as when popping it off the stack to find infinite
14075 loops in non-greedy repetition operators.
14076
14077 2000-03-26 Gerd Moellmann <gerd@gnu.org>
14078
14079 * doc.c (Qfunction_documentation): New variable.
14080 (syms_of_doc): Initialize Qfunction_documentation.
14081 (Fdocumentation): If FUNCTION is a symbol with non-nil
14082 `function-documentation' property, return a documentation derived
14083 from that.
14084
14085 * buffer.c (syms_of_buffer): Add default-cursor-type.
14086 (init_buffer_once): Don't let cursor_type have a local value
14087 in every buffer.
14088
14089 * xterm.c (x_display_and_set_cursor): Choose cursor depending
14090 on buffer-local value of cursor_type.
14091 (x_draw_bar_cursor): Add parameter WIDTH.
14092
14093 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
14094 (init_buffer_once): Set default cursor_type value to t.
14095 Mark cursor_type as local everywhere.
14096 (syms_of_buffer): New per-buffer variable cursor-type.
14097
14098 * buffer.h (struct buffer): Remove member local_var_flags,
14099 add local_flags.
14100 (MAX_BUFFER_LOCAL_VARS): New macro.
14101 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
14102 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
14103 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
14104 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
14105
14106 * print.c (print_object): Use new macros for per-buffer variables.
14107
14108 * category.c (Fset_category_table): Use new macros for per-buffer
14109 variables.
14110
14111 * buffer.c (buffer_permanent_local_flags): Make a char array.
14112 (max_buffer_local_idx): New variable.
14113 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
14114 for new handling of per-buffer variables.
14115 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
14116 (init_buffer_once): Initialize per-buffer vars differently.
14117 Set max_buffer_local_idx.
14118
14119 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
14120 variables.
14121
14122 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
14123
14124 * data.c (do_symval_forwarding, store_symval_forwarding)
14125 (find_symbol_value, set_internal, default_value, Fset_default)
14126 (Fkill_local_variable, Flocal_variable_p): Use new macros for
14127 per-buffer variables.
14128
14129 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
14130
14131 2000-03-24 Gerd Moellmann <gerd@gnu.org>
14132
14133 * xterm.c (x_term_init): Unblock input around call1 of
14134 Qvendor_specific_keysyms.
14135
14136 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
14137 (find_defun_start): Consider an open parenthesis in column 0
14138 a defun start only if open_paren_in_column_0_is_defun_start is set.
14139 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
14140
14141 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
14142
14143 * eval.c (Fautoload): Add entry in load-history (if after dump).
14144 * lread.c (load-history): Update docstring.
14145
14146 2000-03-24 Gerd Moellmann <gerd@gnu.org>
14147
14148 * indent.c (Fvertical_motion): Always use the current buffer.
14149 Temporarily change the window's buffer, if necessary.
14150
14151 2000-03-23 Gerd Moellmann <gerd@gnu.org>
14152
14153 * xterm.c (fast_find_position): Make sure not to consider rows
14154 not visible in the window.
14155
14156 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
14157
14158 * regex.c (enum syntaxcode): Provide default for non-Emacs.
14159 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
14160
14161 2000-03-22 Jason Rumney <jasonr@gnu.org>
14162
14163 * w32menu.c (single_submenu): Set help string to NULL if none.
14164 (w32_menu_show): Set help string correctly.
14165 (add-menu-item): Set help string in MIIM_DATA for menu item.
14166 Load SetMenuItemInfoA explicitly.
14167 (w32_menu_display_help): New function.
14168
14169 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
14170 (QCdata): Moved to xdisp.c.
14171
14172 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
14173 (Vw32_charset_to_codepage_alist): Removed.
14174 (Vw32_charset_info_alist): New variable.
14175 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
14176 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
14177 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
14178 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
14179 with TODO comment.
14180 (w32_codepage_for_font): Use Vw32_charset_info_alist.
14181 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
14182 Define Vw32_charset_info_alist and w32_charset symbols.
14183
14184 2000-03-22 Jason Rumney <jasonr@gnu.org>
14185
14186 * makefile.nt (w32bdf.obj): Update dependencies.
14187
14188 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
14189
14190 * w32fns.c: Include fontset.h after dispextern.h.
14191 (Fx_create_frame): Do not create fontset.
14192 (w32_load_system_font): Doc fix.
14193 (Fx_close_connection): Free full_name if it is not shared.
14194
14195 * w32term.c: Include fontset.h after dispextern.h.
14196 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
14197 Callers updated.
14198 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
14199 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
14200 (w32_font_is_double_byte): New function, needs body.
14201 (x_append_glyph): Set glyph->glyph_not_available_p.
14202 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
14203 it->charset. If it->multibyte_p is zero and it->c is a multibyte
14204 character, convert it to a unibyte character.
14205 (struct glyph_string): Delete member `charset'.
14206 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
14207 calculating it is found.
14208 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
14209 the case that per char metric is not available correctly.
14210 (x_fill_glyph_string): Handle the case that the specific glyph is
14211 not available correctly.
14212 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
14213 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
14214 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
14215 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
14216 fontset. Don't call FS_LOAD_FONT.
14217
14218 2000-03-22 Ken Raeburn <raeburn@gnu.org>
14219
14220 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
14221 (INT_LISPLIKE): New macro.
14222 (NULL_INTERVAL_P): Use it.
14223 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
14224 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
14225 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
14226
14227 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
14228 explicit references to "parent" field of struct interval and
14229 associated unclean type conversions.
14230 * intervals.c (create_root_interval, root_interval, rotate_right)
14231 (rotate_left, balance_possible_root_interval, split_interval_right)
14232 (split_interval_left, interval_start_pos, find_interval)
14233 (next_interval, previous_interval, update_interval)
14234 (adjust_intervals_for_insertion, delete_node, delete_interval)
14235 (adjust_intervals_for_deletion, merge_interval_right)
14236 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
14237 (copy_intervals_to_string): Likewise.
14238 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
14239 Likewise.
14240 * syntax.c (update_syntax_table): Likewise.
14241
14242 * intervals.c (reproduce_tree_obj): New function, like
14243 reproduce_tree but takes a Lisp_Object for the parent. Declare
14244 with prototype.
14245 (graft_intervals_into_buffer): Use it when appropriate.
14246 (reproduce_tree): Declare with prototype.
14247 (balance_possible_root_interval): Check that the parent is a lisp
14248 object before trying to examine its type.
14249
14250 2000-03-22 Gerd Moellmann <gerd@gnu.org>
14251
14252 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
14253 as strings only if both are known to be strings.
14254
14255 * s/openbsd.h (LIBS_TERMCAP): Undef.
14256
14257 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
14258
14259 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
14260 definitions for non-Emacs compilation.
14261 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
14262 outside of `#ifdef emacs'.
14263 (print_partial_compiled_pattern): Update.
14264 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
14265 (re_compile_fastmap): Merge handling of charset and charset_not (for
14266 emacs and non-emacs compilation as well).
14267 Similarly for (not)categoryspec and (not)syntaxspec.
14268 Don't use the fastmap when reaching `anychar' since the added
14269 complexity is not justified.
14270 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
14271 and (not)syntaxspec. Merge (not)categoryspec.
14272
14273 2000-03-22 Kenichi Handa <handa@etl.go.jp>
14274
14275 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
14276 (FACE_FOR_CHAR): Define them differently for the configuration of
14277 --without-x.
14278
14279 2000-03-21 Dave Love <fx@gnu.org>
14280
14281 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
14282 doc string.
14283
14284 2000-03-21 Gerd Moellmann <gerd@gnu.org>
14285
14286 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
14287 (lface_fully_specified_p): Don't check contents of
14288 LFACE_FONT_INDEX because that attribute is optional.
14289 (realize_x_face): Remove now unwarranted xassert.
14290
14291 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
14292
14293 The following changes are to make font selection based on
14294 characters, not charset. In addition, they recover fontset
14295 facilities while utilizing the new font selection mechanism.
14296
14297 * Makefile.in (fontset.o): Depend on dispextern.h.
14298
14299 * alloc.c (mark_face_cache): Don't mark face->registry.
14300
14301 * dispextern.h (struct glyph): New member glyph_not_available_p.
14302 Use 22 bits for face_id.
14303 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
14304 (struct face): Delete member registry, new member ascii_face.
14305 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
14306 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
14307 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
14308 (struct it): Delete member charset, new member glyph_not_available_p.
14309
14310 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
14311 (struct fontset_info, struct fontset_data): Structs removed.
14312 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
14313 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
14314 (fs_load_font, fs_query_fontset): Adjusted for new argument.
14315 (fs_free_face_fontset, fontset_font_pattern)
14316 (face_suitable_for_char_p, face_for_char)
14317 (make_fontset_for_ascii_face): Extern them.
14318 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
14319 (FS_LOAD_FACE_FONT): New macro.
14320
14321 * fontset.c: All codes rewritten or adjusted for the change of
14322 fontset implementation. Now fontset is represented by char table.
14323 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
14324 Variables removed.
14325 (my_strcasecmp): Function removed.
14326 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
14327 (AREF, ASIZE): New macros.
14328 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
14329 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
14330 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
14331 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
14332 (fontset_id_valid_p, font_family_registry, fontset_name)
14333 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
14334 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
14335 New functions.
14336 (fs_load_font): New arg FACE. Caller changed.
14337 (fs_query_fontset): Argument changed. Caller changed.
14338 (Fquery_fontset): call fs_query_fontset.
14339 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
14340 Functions removed.
14341 (clear_fontset_elements, check_registry_encoding)
14342 (check_fontset_name): New functions.
14343 (syms_of_fontset): Set char-table-extra-slots property of fontset
14344 to 3. Staticpro and initialize Vfontset_table and
14345 Vdefault_fontset. Defsubr fontset_font and fontset_list.
14346
14347 * frame.h (struct frame): Member `fontset_data' removed.
14348 (FRAME_FONTSET_DATA): Macro removed.
14349
14350 * frame.c (make_frame): Don't allocate f->fontset_data.
14351 (Fdelete_frame): Don't free f->fontset_data.
14352
14353 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
14354
14355 * xdisp.c (charset_at_position): Function removed.
14356 (init_iterator): Don't set member charset of struct `it'.
14357 (handle_face_prop, reseat_to_string, set_iterator_to_next)
14358 (next_element_from_display_vector, insert_left_trunc_glyphs):
14359 Likewise.
14360 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
14361 FACE_FOR_CHARSET.
14362 (get_next_display_element, append_space)
14363 (extend_face_to_end_of_line): Likewise.
14364
14365 * xfaces.c (Qx_charset_registry, Vface_default_registry):
14366 Variables removed.
14367 (clear_font_table, frame_update_line_height, load_face_font):
14368 Adjusted for the change of fontset implementation.
14369 (load_face_fontset_font): Function removed.
14370 (pixel_point_size): New function.
14371 (font_list): Argument type changed. Caller changed.
14372 (LFACE_FONT): New macro.
14373 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
14374 (set_lface_from_font_name): Type of arg FONTNAME is changed to
14375 Lisp_Object. Determine the font name by actually loading a font
14376 by the specified pattern. Set LFACE_FONT (lface) to the specified
14377 pattern. Even if a font is not found, don't try alternatives.
14378 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
14379 (set_font_frame_param): If `font' is specified in lface, use it.
14380 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
14381 (lface_same_font_attributes_p): Likewise.
14382 (make_realized_face): Arguent changed. Caller changed. Set
14383 face->ascii_face to face itself.
14384 (free_realized_face): Free face->fontset if face is for ASCII.
14385 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
14386 (deduce_unibyte_registry, x_charset_registry): Functions removed.
14387 (free_realized_multibyte_face): New function.
14388 (lookup_face, lookup_named_face, lookup_derived_face): Argument
14389 changed. Caller changed.
14390 (try_font_list): Argument type changed.
14391 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
14392 (choose_face_font): Argument changed. Handle fontset properly.
14393 (choose_face_fontset_font): Function removed.
14394 (realize_default_face, realize_named_face): Don't remove the
14395 former face here.
14396 (realize_face): Argument changed. Caller changed. Remove face
14397 with the arg former_face_id in advance. Load font for the new face.
14398 (realize_x_face): Argument changed. Caller changed. For a
14399 multibyte character, share fontset with base_face. For a single
14400 byte character, make a new realized fontset. Don't load a font here.
14401 (realize_tty_face): Argument changed. Caller changed.
14402 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
14403 (face_at_buffer_position): Don't check multibyte_p for returning
14404 DEFAULT_FACE_ID.
14405 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
14406 FACE_SUITABLE_FOR_CHARSET_P.
14407 (syms_of_xfaces): Remove code for Qx_charset_registry and
14408 Vface_default_registry.
14409
14410 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
14411 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
14412 (x_per_char_metric): Don't try FONT->default_char. Even if
14413 pcm->width is zero, glyph bits may exist.
14414 (x_encode_char): Always initialize char2b->byte1.
14415 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
14416 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
14417 (x_append_glyph): Set glyph->glyph_not_available_p.
14418 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
14419 it->charset. Handle the case that per char metric is not
14420 available. If it->multibyte_p is zero and it->c is a multibyte
14421 character, convert it to a unibyte character.
14422 (struct glyph_string): Delete member `charset'.
14423 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
14424 the case that per char metric is not available correctly.
14425 (x_fill_glyph_string): Handle the case that the specific glyph is
14426 not available correctly.
14427 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
14428 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
14429 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
14430 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
14431 fontset. Don't call FS_LOAD_FONT.
14432
14433 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
14434 (x_create_tip_frame): Likewise.
14435 (Fx_close_connection): Free full_name of font_info.
14436
14437 * fns.c (optimize_sub_char_table): New function.
14438 (Foptimize_char_table): New function.
14439 (syms_of_fns): Defsubr Soptimize_char_table.
14440
14441 2000-03-20 Gerd Moellmann <gerd@gnu.org>
14442
14443 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
14444 only if buffer is displayed in some window.
14445
14446 * xdisp.c (handle_single_display_prop): Initialize local `value'.
14447 (try_window_reusing_current_matrix): Don't call scroll run
14448 function if run's current and desired position are the same;
14449 this prevents cursor flickering.
14450
14451 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
14452
14453 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
14454
14455 * regex.c (RE_STRING_CHAR): New macro.
14456 (GET_CHAR_AFER_2): Remove.
14457 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
14458 (enum re_opcode_t): Remove on_failure_jump_exclusive.
14459 (print_partial_compiled_pattern, re_compile_fastmap)
14460 (re_match_2_internal): Remove on_failure_jump_exclusive.
14461 (regex_compile): Turn optimizable P+ loops into PP*, so that the
14462 optimization only need to work for * (ie. can use of_keep_string_jump).
14463 Remove the special case for .*\n since it is now covered by the general
14464 optimization.
14465 (re_search_2): Don't bother with `room'.
14466 (skip_one_char): New function.
14467 (skip_noops): Simplify since `memory' is not needed any more.
14468 (mutually_exclusive_p): Restructure slightly to use `switch' and
14469 add handling for "all" remaining cases.
14470 (re_match_2_internal): Change on_failure_jump_smart to use
14471 on_failure_keep_string_jump (and redirect the end-of-loop jump)
14472 rather than on_failure_jump_exclusive.
14473
14474 2000-03-19 Gerd Moellmann <gerd@gnu.org>
14475
14476 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
14477 number of bits per RGB because it's everywhere used as the depth
14478 of the visual.
14479
14480 * term.c (calculate_costs): Remove code dealing with X frames.
14481
14482 2000-03-19 Richard M. Stallman <rms@gnu.org>
14483
14484 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
14485
14486 2000-03-18 Gerd Moellmann <gerd@gnu.org>
14487
14488 * lread.c (read_integer): Unread the last char not consumed.
14489
14490 2000-03-17 Gerd Moellmann <gerd@gnu.org>
14491
14492 * xterm.c (x_update_window_cursor): Don't update in frames
14493 which are in the process of being deleted.
14494
14495 2000-03-16 Gerd Moellmann <gerd@gnu.org>
14496
14497 * Makefile.in (mostlyclean): Add `*.core'.
14498 (clean): Add `bootstrap-emacs'.
14499
14500 * lread.c (read_integer): New function.
14501 (read1): Support read syntax #o, #x, #b, #r.
14502
14503 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
14504
14505 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
14506 make sure POINTER_TO_OFFSET gives the same value before and after
14507 PREFETCH. Use `dfail' to guarantee "atomic" matching.
14508 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
14509 (debug): Now only active if > 0 rather than if != 0.
14510 (DEBUG_*): Update for the new meaning of `debug'.
14511 (print_partial_compiled_pattern): Add missing `succeed' case. Use
14512 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
14513 in `succeed_n', `jump_n' and `set_number_at'.
14514 (store_op1, store_op2, insert_op1, insert_op2)
14515 (at_begline_loc_p, at_endline_loc_p): Add prototype.
14516 (group_in_compile_stack): Move to after its arg's types are
14517 declared and add a prototype.
14518 (PATFETCH): Define in terms of PATFETCH_RAW.
14519 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
14520 (QUIT): Redefine as a nop except for NTemacs.
14521 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
14522 indentation of the greedy-op and shy-group code.
14523 (at_(beg|end)line_loc_p): Fix argument's types.
14524 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
14525 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
14526 (MATCHING_IN_FIRST_STRING): Remove.
14527 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
14528 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
14529 QUIT unconditionally.
14530
14531 2000-03-15 Gerd Moellmann <gerd@gnu.org>
14532
14533 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
14534 a sole completion.
14535
14536 * process.c (send_process): Add a hint that the function
14537 can call Lisp code to its comment.
14538
14539 * lread.c (load_dangerous_libraries): New variable.
14540 (Vbytecomp_version_regexp): New variable.
14541 (safe_to_load_p): New function.
14542 (Fload): Handle files not compiled with Emacs specially.
14543 (syms_of_lread): New Lisp variable load-dangerous-libraries.
14544
14545 2000-03-14 Gerd Moellmann <gerd@gnu.org>
14546
14547 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
14548
14549 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
14550 support functions only if HAVE_X11R6_XIM is defined.
14551 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
14552
14553 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
14554
14555 * xfns.c (X_I18N_INHIBITED): Don't define.
14556 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
14557 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
14558
14559 * config.in (HAVE_X_I18N): Moved here from xterm.h.
14560 (HAVE_X11R6_XIM): Define.
14561
14562 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
14563
14564 * xterm.c (x_term_init): Add support for X resource `synchronous'.
14565 If set, call XSynchronize.
14566
14567 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
14568
14569 * regex.c: Declare a new type `re_char' used throughout the code
14570 for the string char type. It's `const unsigned char' to match the
14571 rest of Emacs. Consistently make sure all pointers to strings use
14572 it and make sure all pointers into the pattern use `unsigned char'.
14573 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
14574 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
14575 code duplication.
14576
14577 * charset.h (GET_CHAR_AFTER_2): Remove.
14578 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
14579
14580 2000-03-12 Ken Raeburn <raeburn@gnu.org>
14581
14582 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
14583 variable before the invocation of YMF_PASS_LDFLAGS, in case both
14584 of them try to use backquotes.
14585
14586 2000-03-12 Dave Love <fx@gnu.org>
14587
14588 * unexelf.c: Restore changes of 1999-10-19.
14589 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
14590 fix its type and alignment; copy it from current process.
14591
14592 2000-03-12 Gerd Moellmann <gerd@gnu.org>
14593
14594 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
14595 has been found. Fix bug not computing timer's predecessor.
14596
14597 * fileio.c (Fread_file_name): Handle case that DIR contains a
14598 file name.
14599
14600 * window.c (Fsave_window_excursion): Doc fix.
14601
14602 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
14603
14604 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
14605
14606 * msdos.c (vga_installed): New function, code moved from
14607 dos_set_window_size.
14608 (Qbar, Qcursor_type, outside_cursor): New variables.
14609 (syms_of_msdos): Intern and staticpro them.
14610 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
14611 shape used outside Emacs when called for the first time.
14612 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
14613 cursor shape used outside Emacs.
14614 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
14615 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
14616 type has changed.
14617 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
14618 parameters specify the cursor. Make qreverse a global
14619 variable (renamed to Qreverse).
14620
14621 2000-03-09 Gerd Moellmann <gerd@gnu.org>
14622
14623 * fns.c (Fy_or_n_p): Cancel busy-cursor.
14624
14625 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
14626
14627 This is a big redesign of failure-stack and register handling, prompted
14628 by bugs revealed when trying to add shy-groups. Overall, what happened
14629 is that loops are now structured a little differently, groups can be
14630 shy and the code is a little simpler.
14631
14632 * regex.h: Update the copyright.
14633 (RE_SHY_GROUPS): New value.
14634 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
14635 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
14636
14637 * regex.c (enum re_opcode_t): Remove jump_past_alt,
14638 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
14639 on_failure_jump_(exclusive, loop and smart). Also fix the comment
14640 for (start|stop)_memory since they now only take one argument (the
14641 second has becomes unnecessary).
14642 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
14643 (print_compiled_pattern): Use %ld to printf long ints and flush to
14644 make debugging a little easier.
14645 (union fail_stack_elt): Make the integer unsigned.
14646 (struct fail_stack_type): Add a `frame' element.
14647 (INIT_FAIL_STACK): Init `frame' as well.
14648 (POP_PATTERN_OP): New macro for re_compile_fastmap.
14649 (DEBUG_PUSH, DEBUG_POP): Remove.
14650 (NUM_REG_ITEMS): Remove.
14651 (NUM_NONREG_ITEMS): Adjust.
14652 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
14653 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
14654 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
14655 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
14656 New macros.
14657 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
14658 address pushed is not the destination of the jump but the source
14659 of it instead.
14660 (NUM_FAILURE_ITEMS): Remove.
14661 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
14662 registers before the actual failure point). Don't hardcode any
14663 meaning for str==NULL anymore.
14664 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
14665 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
14666 Remove.
14667 (REG_UNSET_VALUE): Use NULL (why not?).
14668 (compile_range): Remove declaration since it doesn't exist.
14669 (struct compile_stack_elt_t): Remove inner_group_offset.
14670 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
14671 (regex_grow_registers): Remove dead code.
14672 (FIXUP_ALT_JUMP): New macro.
14673 (regex_compile): Add shy-groups Change loops to use
14674 on_failure_jump_smart&jump instead of
14675 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
14676 initial (dummy_failure_)jump. Remove c1_base (looks like unused
14677 variable to me). Use `jump' instead of `jump_past_alt' and don't
14678 bother with push_dummy_failure in alternatives since it is now
14679 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
14680 emacs' for (re)allocating the stack.
14681 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
14682 from loop when bufp->can_be_null rather than jumping to `done'.
14683 Avoid jumping backwards so as to ensure termination. Use
14684 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
14685 backreferences. Remove dead code in handling of `anychar'.
14686 (skip_noops, mutually_exclusive_p): New functions taken from the
14687 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
14688 improve mutually_exclusive_p to handle ".+\n".
14689 (lowest_active_reg, highest_active_reg)
14690 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
14691 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
14692 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
14693 variables. Push register (in `start_memory') on the stack rather
14694 than storing it in old_reg(start|end). Remove the cycle detection
14695 from `stop_memory', replaced by the use of on_failure_jump_loop
14696 for greedy loops. Add code for the new on_failure_jump_<foo>.
14697 Remove ad-hoc code in `on_failure_jump' to push more registers in
14698 the case of a loop. Take out code from `maybe_pop_jump' into
14699 separate functions and adapt it to the semantics of
14700 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
14701 and push_dummy_failure. Remove dummy_failure handling and
14702 handling of `failures to jump to on_failure_jump' (this last one
14703 was already dead code, it seems).
14704 (group_match_null_string_p, alt_match_null_string_p)
14705 (common_op_match_null_string_p): Remove.
14706
14707 2000-03-08 Dave Love <fx@gnu.org>
14708
14709 * config.in: Don't depend on __STDC__ for volatile.
14710 Add POINTER_TYPE, PTR, PROTOTYPES.
14711
14712 * hftctl.c, strftime.c: Use PROTOTYPES.
14713 * eval.c (find_handler_clause): Likewise.
14714
14715 * mem-limits.h: Use POINTER_TYPE.
14716
14717 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
14718 (memory_warnings): Declare using POINTER_TYPE.
14719
14720 2000-03-08 Gerd Moellmann <gerd@gnu.org>
14721
14722 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
14723
14724 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
14725
14726 * xfns.c: Remove obsolete code in #if 0.
14727 (Fx_focus_frame): New function.
14728
14729 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
14730
14731 * coding.c (coding_category_name): Add coding-category-utf-8,
14732 coding-category-utf-16-be, coding-category-utf-16-le.
14733 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
14734 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
14735 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
14736 (detect_coding_utf_8): New function.
14737 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
14738 UTF_16_LOW_SURROGATE_P): New macros.
14739 (detect_coding_utf_16): New function
14740 (detect_coding_mask): When priorities are specified, skip any
14741 categories that have `nil' coding-system. Fix bug of returning
14742 wrong mask when PRIORITIES is specified and detect_coding_XXX()
14743 returns a mask not set in PRIORITIES.
14744 (detect_eol_type_in_2_octet_form): New function.
14745 (detect_eol): selects detect_eol_type_XXX to call according to
14746 cooding->category_idx.
14747 (detect_coding_system): Remove `nil' coding-system in the result.
14748 (Fupdate_coding_systems_internal): Update all coding-categories.
14749
14750 * coding.h (CODING_CATEGORY_IDX_UTF_8)
14751 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
14752 New macros.
14753 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
14754 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
14755 (CODING_CATEGORY_IDX_UTF_16_LE)
14756 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
14757 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
14758 (CODING_CATEGORY_MASK_ANY): Include the above macros.
14759 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
14760
14761 2000-03-07 Gerd Moellmann <gerd@gnu.org>
14762
14763 * doc.c (Fdocumentation_property): If value is not a string,
14764 and doesn't refer to etc/DOC, evaluate it to obtain a string.
14765
14766 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
14767 close the display with XtCloseDisplay. This caused a bus error
14768 on OpenWindows.
14769
14770 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
14771 complete but not unique.
14772
14773 2000-03-06 Gerd Moellmann <gerd@gnu.org>
14774
14775 * process.c (send_process): Remove local variable `procname' that
14776 might become invalid when a GC happens. Instead, access the
14777 process name slot directly.
14778
14779 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
14780 orig_height if set.
14781
14782 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
14783 orig_height if set.
14784
14785 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
14786
14787 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
14788 glyph matrices have been freed.
14789
14790 2000-03-05 Gerd Moellmann <gerd@gnu.org>
14791
14792 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
14793 (bootstrap-temacs): Set LC_ALL to C like for temacs.
14794
14795 * xfns.c (QCdata): Moved to xdisp.c.
14796
14797 * xdisp.c (QCdata): Moved here from xfns.c.
14798 (syms_of_xdisp): Initialize QCdata.
14799
14800 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
14801
14802 * window.c (coordinates_in_window): Use
14803 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
14804 FRAME_INTERNAL_BORDER_WIDTH.
14805
14806 * xdisp.c (try_window_id): Recompute unchanged information if
14807 it is obviously invalid.
14808
14809 * xterm.c (x_term_init): Create a colormap if not using the
14810 default visual.
14811
14812 * xterm.h (select_visual): Change prototype.
14813
14814 * xfns.c (select_visual): Rewritten. Recognize user-specified
14815 visual classes.
14816 (visual_classes): New variable.
14817
14818 2000-03-04 Gerd Moellmann <gerd@gnu.org>
14819
14820 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
14821 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
14822 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
14823 (x_decode_color): Don't handle allocation of white and black specially.
14824 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
14825 XtNcolormap resources.
14826 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
14827 (Fx_create_frame): Initialize color members of x_output structure.
14828 (xpm_load): Pass colormap to XPM lib.
14829
14830 * xfaces.c (x_free_colors): Access colormap of frame using
14831 FRAME_X_COLORMAP. Be paranoid about freeing black and white
14832 when default colormap is used.
14833
14834 * xterm.c (x_term_init): Set Colormap member of x_display_info
14835 structure. Copy colormap if resource `privateColormap' is
14836 specified (PseudoColor only).
14837 (x_setup_relief_color): Access colormap of frame using
14838 FRAME_X_COLORMAP.
14839
14840 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
14841 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
14842
14843 2000-03-04 Jason Rumney <jasonr@gnu.org>
14844
14845 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
14846 other non-platform-specific equivalents.
14847 [WINDOWSNT]: Include w32term.h, fontset.h and define X
14848 specific functions and macros as their w32 equivalents where
14849 non-platform-specifics are not available.
14850 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
14851 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
14852 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
14853 (frame_update_line_height): Use macros to access f->output_data.
14854 (defined_color): Remove FIXME comments; fixed.
14855 (x_face_list_fonts, prepare_face_for_display): Put X specifics
14856 into #ifdef blocks. Add WINDOWSNT blocks.
14857 (Fx_list_fonts): Use macros for accessing font data.
14858 (set_lface_from_font_name): Different default fonts for X and
14859 WINDOWSNT.
14860 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
14861 scalable for backward compatibility.
14862 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
14863 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
14864
14865 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
14866 syms_of_w32faces.
14867
14868 * makefile.nt (w32faces.obj): Remove.
14869 (xfaces.obj): Add.
14870
14871 2000-03-03 Jason Rumney <jasonr@gnu.org>
14872
14873 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
14874 correct parameters.
14875
14876 2000-03-03 Ken Raeburn <raeburn@gnu.org>
14877
14878 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
14879 standard ELF definitions here if the system header does not.
14880
14881 2000-03-03 Gerd Moellmann <gerd@gnu.org>
14882
14883 * xterm.c (PER_CHAR_METRIC): Removed.
14884 (x_per_char_metric_1, x_default_char): New functions.
14885 (x_per_char_metric): If font's default char is invalid, return
14886 metrics of a suitably chosen usable default char.
14887 (x_draw_glyph_string_foreground): If font has an invalid default
14888 char, replace occurrences of unprintable chars with a suitably
14889 chosen usable default char.
14890
14891 2000-03-02 Gerd Moellmann <gerd@gnu.org>
14892
14893 * xterm.c (note_mouse_highlight): Return quickly if frame's
14894 glyph matrices have been freed.
14895
14896 * dispnew.c (free_glyphs): Block input while freeing matrices.
14897
14898 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
14899
14900 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
14901 Use x_free_colors.
14902
14903 * dispextern.h (x_free_colors): Add prototype.
14904
14905 * xfaces.c (x_free_colors): New function.
14906 (unload_color, free_face_colors): Use it.
14907
14908 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14909
14910 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
14911
14912 * window.c [MSDOS]: Include msdos.h.
14913
14914 2000-03-02 Dave Love <fx@gnu.org>
14915
14916 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
14917
14918 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
14919 set C_OPTIMIZE_SWITCH for gcc.
14920
14921 2000-03-02 Kenichi Handa <handa@etl.go.jp>
14922
14923 * coding.c (coding_save_composition): Be sure to allocate
14924 composition data area in coding even if there's no composition in
14925 the current run.
14926
14927 2000-03-01 Jason Rumney <jasonr@gnu.org>
14928
14929 * w32term.c: Equivalent changes to those made to xterm.c on
14930 2000-02-25 and 2000-02-24.
14931
14932 * w32fns.c: Equivalent changes to those made to xfns.c on
14933 2000-02-25 and 2000-02-21.
14934
14935 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
14936 correct line-end convention is followed.
14937
14938 * w32menu.c [HAVE_BOXES]: Remove #undef.
14939 (single_keymap_panes): Remove code for simulating checkmarks.
14940 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
14941 Remove code for drawing simulated checkmarks.
14942 (w32_menu_show): make unibyte help string correctly.
14943 (add_menu_item): draw standard Windows checkmarks. Draw radio
14944 buttons as radio buttons if possible.
14945
14946 2000-03-01 Gerd Moellmann <gerd@gnu.org>
14947
14948 * sysdep.c (start_of_text): Don't define this function for NetBSD
14949 with ELF.
14950
14951 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
14952 Don't define.
14953 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
14954 (LINKER): Don't undef if __NetBSD__ is defined.
14955
14956 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
14957
14958 * fileio.c [__NetBSD__]: Define `unix'.
14959
14960 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
14961
14962 2000-02-29 Gerd Moellmann <gerd@gnu.org>
14963
14964 * atimer.c (start_atimer): Don't abort when timers are stopped.
14965 (append_atimer_lists): New function.
14966 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
14967 arbitrary lists of stopped and running atimers.
14968
14969 * atimer.c (cancel_atimer): Handle canceling an atimer when
14970 some timers are stopped.
14971
14972 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
14973 after canceling it.
14974
14975 * fns.c (maybe_resize_hash_table): Handle case of new size
14976 coming out as being the same as old size.
14977
14978 2000-02-27 Jason Rumney <jasonr@gnu.org>
14979
14980 * makefile.nt: Add atimer.h to dependencies.
14981 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
14982 * w32console.c: Only disable window system features for dispextern.h
14983 (initialize_w32_display): Build a display info for the console.
14984 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
14985 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
14986 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
14987 as 2 button mice.
14988 * w32gui.h (struct W32FontStruct): Revert last change after change
14989 to xdisp.c.
14990 * w32menu.c (single_submenu): Set up help string.
14991 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
14992 (w32_dialog_show): Set up help string.
14993 * w32term.c (w32_display_info_for_display): Remove unused function.
14994 (w32_draw_bitmap): Use pre-built bitmaps.
14995 (w32_initialize_display_info): New function to initialize parts of
14996 display info that are common to both GUI and console frames.
14997 (w32_term_init): Use w32_initialize_display_info. Do not set
14998 Vw32_num_mouse_buttons here, as it is not called for console
14999 frames. Build bitmaps for indicating truncated lines etc.
15000 (x_delete_display): Destroy pre-built bitmaps.
15001 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
15002 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
15003
15004 2000-02-27 Dave Love <fx@gnu.org>
15005
15006 * lisp.h: Add a bunch of prototypes.
15007
15008 2000-02-26 Kenichi Handa <handa@etl.go.jp>
15009
15010 * keyboard.c (read_char): Set `usec' correctly.
15011
15012 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
15013
15014 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
15015 `lambda', set reg[RRR] to the map index.
15016 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
15017 reg[RRR] to 0. Otherwise, set it to -1.
15018
15019 2000-02-25 Gerd Moellmann <gerd@gnu.org>
15020
15021 * emacs.c (main): Remove code snippet commented out with `//'.
15022
15023 2000-02-25 Richard M. Stallman <rms@gnu.org>
15024
15025 * fileio.c (Ffile_symlink_p): If result starts with a `/'
15026 and contains a `:', prepend `/:'.
15027
15028 * window.c (select_window_1): If selected_window is nil,
15029 don't "swap out" the buffer's point.
15030 (Fset_window_configuration): Set selected_window to nil
15031 before calling Fselect_window.
15032 (unshow_buffer): Don't set point in buffer from window's point
15033 if another more recently selected window also shows the buffer.
15034
15035 2000-02-25 Gerd Moellmann <gerd@gnu.org>
15036
15037 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
15038
15039 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
15040 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
15041 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
15042 New variables.
15043 (DEFAULT_BUSY_CURSOR_DELAY): New define.
15044 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
15045 (hide_busy_cursor): New functions.
15046 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
15047
15048 * minibuf.c (read_minibuf): Cancel busy-cursor.
15049
15050 * keyboard.c (command_loop_1): Call start_busy_cursor before
15051 Fcommand_execute and cancel_busy_cursor after it.
15052 (timer_check): Remove busy-cursor code.
15053 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
15054 cursor timer.
15055
15056 * process.c (wait_reading_process_input): Remove busy-cursor code.
15057
15058 * eval.c (Fsignal): Call cancel_busy_cursor instead of
15059 Fx_hide_busy_cursor.
15060
15061 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
15062 Remove prototyoes.
15063 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
15064
15065 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
15066
15067 * xterm.c (XTread_socket): Remove busy-cursor code.
15068
15069 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
15070 (build_frame_matrix_from_leaf_window): Put code handling
15071 glyph row's not being a slice of a frame row in #if 0.
15072 (sync_window_with_frame_matrix_rows): New function.
15073 (frame_row_to_window): New function.
15074 (mirror_line_dance): Handle copies between windows.
15075
15076 * lread.c (Fload): Use `xfree' instead of `free'.
15077 (init_obarray): Use `xmalloc' instead of `malloc'.
15078
15079 * window.c (Fset_window_buffer): Set WINDOW to the window
15080 after decoding.
15081 (coordinates_in_window): Take frame's internal border width
15082 into account.
15083
15084 2000-02-24 Gerd Moellmann <gerd@gnu.org>
15085
15086 * xterm.c (x_display_and_set_cursor): Display cursor of
15087 non-selected windows depending on the setting of
15088 cursor_in_non_selected_windows.
15089
15090 * xdisp.c (cursor_in_non_selected_windows): New variable.
15091 (syms_of_xdisp): DEFVAR_BOOL it.
15092
15093 2000-02-23 Gerd Moellmann <gerd@gnu.org>
15094
15095 * data.c (Fstring_to_number): If number is greater than what
15096 fits into an integer, return a float.
15097
15098 * eval.c (specbind): Remove references to
15099 keyword_symbols_constant_flag.
15100
15101 * data.c (keyword_symbols_constant_flag): Removed.
15102 (Fmakunbound, set_internal, syms_of_data): Remove references to
15103 keyword_symbols_constant_flag.
15104
15105 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
15106
15107 2000-02-23 Kenichi Handa <handa@etl.go.jp>
15108
15109 * syntax.c (multibyte_syntax_as_symbol): New variable.
15110 (syms_of_syntax): Declare it as a Lisp variable.
15111 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
15112 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
15113 nonzero, treat all multibyte characters as symbol.
15114 (init_syntax_once): Give syntax `word' to all multibyte characters.
15115
15116 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
15117
15118 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
15119 a deleted frame.
15120
15121 2000-02-21 Gerd Moellmann <gerd@gnu.org>
15122
15123 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
15124
15125 * xfns.c (x_window_to_frame, x_any_window_to_frame)
15126 (x_non_menubar_window_to_frame): Check the busy-cursor window.
15127
15128 2000-02-21 Dave Love <fx@gnu.org>
15129
15130 * frame.c (Vmouse_position_function): New variable.
15131 (Fmouse_position): Use it.
15132 (syms_of_frame): Install it.
15133
15134 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
15135
15136 2000-02-20 Gerd Moellmann <gerd@gnu.org>
15137
15138 * fileio.c (Finsert_file_contents): Unbind the binding of
15139 standard-output done by temp_output_buffer_setup.
15140
15141 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
15142 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
15143 (specbind, unbind_to): Handle most common case of non-constant
15144 symbol with trivial value specially.
15145
15146 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
15147
15148 2000-02-20 Richard M. Stallman <rms@gnu.org>
15149
15150 * data.c (Fmake_variable_buffer_local): Doc fix.
15151 Init found_for_buffer to 0.
15152 (Fmake_variable_frame_local): If the variable has already
15153 been buffer-local, set the check_frame field.
15154
15155 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
15156
15157 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
15158 produced for CODING_MODE_LAST_BLOCK requires.
15159
15160 2000-02-18 Dave Love <fx@gnu.org>
15161
15162 * keyboard.c (echo_keystrokes): Remove declaration.
15163 (Vecho_keystrokes) New variable.
15164 (read_char, record_menu_key, read_key_sequence): Use it to allow
15165 use of float value.
15166 (syms_of_keyboard): Change Vecho_keystrokes declaration.
15167
15168 * lread.c: Undef feature selection macros before defining.
15169
15170 2000-02-18 Gerd Moellmann <gerd@gnu.org>
15171
15172 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
15173 for symbols other than the symbol in question.
15174
15175 2000-02-17 Dave Love <fx@gnu.org>
15176
15177 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
15178
15179 2000-02-17 Gerd Moellmann <gerd@gnu.org>
15180
15181 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
15182
15183 * alloc.c (enum mem_type): Compile unconditionally.
15184
15185 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
15186
15187 * xfaces.c (tty_defined_color): Don't return faulire indication
15188 for unspecified-fg and unspecified-bg pseudo-colors.
15189
15190 2000-02-17 Gerd Moellmann <gerd@gnu.org>
15191
15192 * alloc.c (mark_object): Don't mark symbol names in pure space.
15193 (gc_sweep): Don't unmark symbol names in pure space.
15194
15195 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
15196 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
15197 [GC_MARK_STACK]: New defines.
15198 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
15199 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
15200
15201 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
15202
15203 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
15204 allocate_buffer instead of xmalloc.
15205
15206 * alloc.c (toplevel): Include setjmp.h.
15207 (PURE_POINTER_P): New define.
15208 (enum mem_type) [GC_MARK_STACK]: New enumeration.
15209 (Vdead) [GC_MARK_STACK]: New variable.
15210 (lisp_malloc): Add parameter TYPE, call mem_insert if
15211 GC_MARK_STACK is defined.
15212 (allocate_buffer): New function.
15213 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
15214 (free_float) [GC_MARK_STACK]: Set type to Vdead.
15215 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
15216 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
15217 (MEM_NIL) [GC_MARK_STACK]: New define.
15218 (struct mem_node) [GC_MARK_STACK]: New structure.
15219 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
15220 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
15221 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
15222 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
15223 (mark_stack) [GC_MARK_STACK]: New functions.
15224 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
15225 (clear_marks): Removed.
15226 (gc_sweep): Set free conses' car, free floats' type, free
15227 symbols' function to Vdead. Use lisp_free to free buffers.
15228 (init_alloc_once): Initialize Vdead.
15229 (survives_gc_p): Return non-zero for pure objects.
15230
15231 * alloc.c: Add comments throughout the file.
15232
15233 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
15234 that unblocks alarms.
15235
15236 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
15237 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
15238 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
15239
15240 * frame.c (make_frame): Set frame initiallly to `garbaged'.
15241
15242 2000-02-17 Kenichi Handa <handa@etl.go.jp>
15243
15244 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
15245 avoid infinite error signaling. Allocate sufficient memory for
15246 eol_str in the case that eoltype is Lisp_Int.
15247
15248 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
15249
15250 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
15251 depends on the previous behavior.
15252
15253 2000-02-16 Gerd Moellmann <gerd@gnu.org>
15254
15255 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
15256
15257 2000-02-15 Gerd Moellmann <gerd@gnu.org>
15258
15259 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
15260
15261 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
15262 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
15263 write(2).
15264
15265 2000-02-15 Richard M. Stallman <rms@gnu.org>
15266
15267 * data.c (set_internal): Don't make variable buffer-local
15268 if within a let-binding for the same buffer.
15269 (let_shadows_buffer_binding_p): New function.
15270
15271 * eval.c (specbind): For buffer-local value,
15272 record the current buffer also.
15273 (unbind_to): Cope with that change.
15274
15275 2000-02-15 Gerd Moellmann <gerd@gnu.org>
15276
15277 * window.c (Fsave_window_excursion): Doc fix.
15278
15279 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
15280
15281 * syntax.c (back_comment): Make sure we only consider comment-starters
15282 of the relevant style and return -1 in case of a failure to find the
15283 beginning of the comment.
15284 (Fforward_comment): If back_comment fails, go back to the position just
15285 after the comment-end.
15286 (scan_lists): Add comment describing a very minor bug.
15287
15288 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
15289
15290 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
15291 `completion-regexp-list' in the docstring.
15292
15293 2000-02-14 Dave Love <fx@gnu.org>
15294
15295 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
15296
15297 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
15298
15299 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
15300 to Emacs' syntax. Also fix the comment about set/not-set meanings
15301 since Emacs syntax is not the value 0 any more.
15302 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
15303 since it's now part of RE_SYNTAX_EMACS.
15304
15305 2000-02-12 Dave Love <fx@gnu.org>
15306
15307 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
15308
15309 2000-02-12 Gerd Moellmann <gerd@gnu.org>
15310
15311 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
15312
15313 2000-02-12 Dave Love <fx@gnu.org>
15314
15315 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
15316
15317 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
15318 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
15319 * s/hpux.h: Don't define HAVE_VFORK.
15320
15321 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
15322
15323 * s/nextstep.h: Don't define HAVE_ALLOCA.
15324
15325 * config.in: Add vfork bits.
15326
15327 2000-02-12 Gerd Moellmann <gerd@gnu.org>
15328
15329 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
15330 unwind function to undo the effect of stopping atimers.
15331
15332 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
15333
15334 * atimer.c (stopped_atimers): New variable.
15335 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
15336 New functions.
15337
15338 * atimer.h (stop_other_atimers, run_all_atimers)
15339 (unwind_stop_other_atimers): Add function prototypes.
15340
15341 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
15342
15343 2000-02-11 Ken Raeburn <raeburn@gnu.org>
15344
15345 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
15346 library may depend on jpeg.
15347 (atimer.o): Depends on atimer.c.
15348
15349 2000-02-11 Kenichi Handa <handa@etl.go.jp>
15350
15351 * insdel.c (del_range_1): Call update_compositions.
15352 (del_range_both): Call update_compositions just once..
15353
15354 2000-02-10 Dave Love <fx@gnu.org>
15355
15356 * xfns.c (create_frame_xic): Fix initialization of automatic
15357 aggregates for pcc.
15358
15359 2000-02-09 Kenichi Handa <handa@etl.go.jp>
15360
15361 * ccl.c (CCL_MAKE_CHAR): New macro.
15362 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
15363 registers by CCL_MAKE_CHAR before calling translate_char.
15364 <CCL_TranslateCharacterConstTbl> Likewise.
15365
15366 2000-02-08 Dave Love <fx@gnu.org>
15367
15368 * lread.c (__EXTENSIONS__): Define.
15369
15370 2000-02-08 Gerd Moellmann <gerd@gnu.org>
15371
15372 * puresize.h (BASE_PURESIZE): Increase to 650000.
15373
15374 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
15375
15376 * msdos.c (XMenuActivate): Turn off the cursor after displaying
15377 the help message.
15378
15379 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
15380
15381 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
15382 md, mh, mb, mr, and me to the fake termcap entry.
15383
15384 2000-02-06 Ken Raeburn <raeburn@gnu.org>
15385
15386 * sound.c (sound_cleanup): Don't call device close routine if the
15387 function pointer is null.
15388
15389 2000-02-06 Andrew Innes <andrewi@gnu.org>
15390
15391 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
15392 around image definitions and prototypes.
15393 (gamma_correct) [WINDOWSNT]: New prototype.
15394
15395 * w32term.c (x_make_frame_visible): Replace call to
15396 input_poll_signal with poll_for_input.
15397
15398 * window.c [WINDOWSNT]: Include w32term.h.
15399
15400 * xdisp.c [WINDOWSNT]: Include w32term.h.
15401
15402 * makefile.nt: Add dependencies on w32gui.h.
15403 (OBJ1): Include atimer.obj.
15404 ($(BLD)\atimer.obj): New dependency rule.
15405
15406 * w32.c (sigmask): New function (does nothing).
15407 (sigunblock): Ditto.
15408
15409 * frame.c [WINDOWSNT]: Include w32term.h.
15410
15411 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
15412
15413 * lread.c (syms_of_lread): Fix literal newlines.
15414
15415 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
15416 the string constant limit (2048 bytes) in MSVC.
15417 (main): Ditto.
15418
15419 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
15420
15421 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
15422 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
15423 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
15424 dispatch the event.
15425
15426 2000-02-04 Dave Love <fx@gnu.org>
15427
15428 * fileio.c: Remove some unused vars.
15429 (_GNU_SOURCE): Define (for euidaccess).
15430
15431 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
15432
15433 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
15434 gcpro1, gcpro2.
15435 (read_minibuf): Deal with allow_props correctly.
15436
15437 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
15438
15439 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
15440
15441 2000-02-03 Ken Raeburn <raeburn@gnu.org>
15442
15443 * search.c (compile_pattern): If a cache entry has a nil regexp,
15444 fill in that entry instead of clobbering a previously cached
15445 string regexp.
15446
15447 2000-02-02 Ken Raeburn <raeburn@gnu.org>
15448
15449 * puresize.h (BASE_PURESIZE): Increase to 610000.
15450
15451 2000-02-02 Gerd Moellmann <gerd@gnu.org>
15452
15453 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
15454 can GC.
15455
15456 2000-02-02 Kenichi Handa <handa@etl.go.jp>
15457
15458 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
15459 instead of incrementing ic directly.
15460 <CCL_WriteExprConst> Likewise.
15461 <ccl_set_expr>: Set ic to jump_address.
15462
15463 * fileio.c (e_write): Fix the handling of
15464 CODING_FINISH_INSUFFICIENT_SRC.
15465
15466 2000-02-01 Dave Love <fx@gnu.org>
15467
15468 * editfns.c (Fpropertize): Doc fix.
15469
15470 * process.c (Fstart_process): Doc fix.
15471
15472 * eval.c: Fix various doc strings not to duplicate information
15473 from help-manyarg-func-alist.
15474
15475 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
15476
15477 * doc.c (Vhelp_manyarg_func_alist): New variable.
15478 (Fdocumentation): Use it.
15479 (syms_of_doc): Define it.
15480
15481 2000-01-31 Gerd Moellmann <gerd@gnu.org>
15482
15483 * xterm.c (xim_open_dpy): Remove unused local variable.
15484
15485 * emacs.c (USAGE): Use term `display options' instead of `X options'.
15486
15487 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
15488 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
15489
15490 * fns.c (sweep_weak_table): New function.
15491 (sweep_weak_hash_tables): Use it. Keep on marking until there
15492 is no more change.
15493
15494 2000-01-30 Gerd Moellmann <gerd@gnu.org>
15495
15496 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
15497 that XTread_socket does not crash by trying to call XNoOp on a
15498 closed display.
15499
15500 2000-01-30 Jason Rumney <jasonr@gnu.org>
15501
15502 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
15503 Change selected_frame to SELECTED_FRAME ().
15504 (w32_console_mouse_position): Remove #ifndef MULE from around
15505 `insist' parameter.
15506
15507 * makefile.nt: Remove dosfns.obj.
15508
15509 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
15510
15511 * w32fns.c (w32_defined_color): Check for valid frame before
15512 applying gamma correction. Eliminate dependency on frame elsewhere.
15513 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
15514 (w32_to_x_font): Use resx and resy not height_in and width_in.
15515 (x_to_w32_font): Doc fix.
15516 (xlfd_strip_height): New function to strip and return font height.
15517 (w32_font_match): Compare height separately from rest of xlfd
15518 spec, using xlfd_strip_height.
15519
15520 * w32term.c (w32_term_init): Swap resx and height_in, resy and
15521 width_in. Use w32_defined_color in place of defined_color.
15522
15523 * w32faces.c: Merge more of DOS and X specifics in preparation for
15524 merge with xfaces.c.
15525 (defined_color): Remove FIXME comment.
15526 (tty_color_name): Provide w32-specific function.
15527 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
15528
15529 * w32console.c (turn_on_face, turn_off_face): Removed.
15530 (w32_face_attributes): New function.
15531 (Global_variables): Reduce scope where possible.
15532 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
15533 fill attribute.
15534 (hl_mode): Don't modify text attributes.
15535 (write_glyphs): Don't do anything if len <= 0. Use
15536 w32_face_attributes to get attributes for drawing. Write
15537 terminating codes using char_attr_normal.
15538 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
15539 (update_begin, update_end): Likewise.
15540 (vga_stdcolor_name): New function.
15541 (initialize_w32_display): Remove char_attr_reverse and char_attr.
15542 (Fset_screen_color): Remove char_attr_reverse.
15543
15544 2000-01-29 Gerd Moellmann <gerd@gnu.org>
15545
15546 * xfns.c (xic_set_preeditarea): Take window parameter and
15547 window-relative pixel-positions.
15548
15549 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
15550 is its frame's selected window.
15551 (xim_instantiate_callback): Likewise.
15552
15553 * xfns.c (x_create_im): Removed.
15554 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
15555 (supported_xim_styles): Renamed from supported_styles.
15556 (best_xim_style): Renamed from best_style.
15557 (create_frame_xic): Renamed from xic_create_frame.
15558 (free_frame_xic): Renamed from xic_destroy_frame.
15559
15560 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
15561
15562 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
15563 our frames, call XFilterEvent with 2nd parameter `None'.
15564 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
15565 returning XBufferOverflow.
15566 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
15567 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
15568 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
15569 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
15570 (xim_initialize, xim_close)
15571 [HAVE_X_I18N && HAVE_X11R6]: New functions.
15572 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
15573 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
15574 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
15575
15576 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
15577 and `xim_styles'.
15578 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
15579 `xic_style' and `xic_xfs'.
15580 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
15581 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
15582 (FRAME_XIM): Removed.
15583
15584 * xfns.c (supported_styles): New variable.
15585 (DEFAULT_STYLE, DEFAULT_FONT): New macros
15586 (xic_create_xfontset, best_style, xic_create_frame)
15587 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
15588 (xic_set_xfontset): New functions.
15589
15590 2000-01-28 Dave Love <fx@gnu.org>
15591
15592 * s/irix6-5.h: Revert last change after change to irix5-0.h.
15593
15594 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
15595
15596 2000-01-28 Gerd Moellmann <gerd@gnu.org>
15597
15598 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
15599 for *scratch* if it already existed.
15600
15601 * emacs.c (USAGE): New macro.
15602 (main): Use it to display usage information.
15603
15604 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
15605
15606 Support for the menu-help feature:
15607
15608 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
15609
15610 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
15611 part of the line to the termscript file.
15612 (IT_clear_to_end): Clear the entire line, not just its beginning.
15613 (menu_help_message, prev_menu_help_message): New variables.
15614 (IT_menu_make_room): Make room for the help_text member.
15615 (IT_menu_display): New argument disp_help; all callers changed.
15616 If disp_help is non-zero, store the help text of the active menu
15617 item in menu_help_message.
15618 (XMenuAddPane): Initialize the help_text member to NULL.
15619 (XMenuAddSelection): New argument help_text. Store it in the
15620 XMenu structure.
15621 (XMenuActivate): New argument help_callback. If the value of
15622 menu_help_message has changed since the last time, display the
15623 menu help message text while waiting for the mouse to move. Clear
15624 the echo area before exiting.
15625 (XMenuDestroy): Free the help_text member.
15626
15627 2000-01-27 Gerd Moellmann <gerd@gnu.org>
15628
15629 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
15630 XMenuAddSelection. Pass help callback to XMenuActivate.
15631 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
15632
15633 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
15634
15635 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
15636 and EMACS_SET_USECS.
15637
15638 2000-01-26 Dave Love <fx@gnu.org>
15639
15640 * editfns.c (Fchar_after, Fchar_before): Doc fix.
15641
15642 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
15643 an error may be signalled.
15644
15645 2000-01-26 Gerd Moellmann <gerd@gnu.org>
15646
15647 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
15648 LD_SWITCH_SYSTEM inherited from irix5-0.h.
15649
15650 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
15651
15652 2000-01-25 Gerd Moellmann <gerd@gnu.org>
15653
15654 * charset.c (Fstring): If there is a multibyte char among
15655 the args, always return a multibyte string.
15656
15657 2000-01-25 Gerd Moellmann <gerd@gnu.org>
15658
15659 * sysdep.c (sys_select): Turn atimers off and on instead of
15660 recording and restoring old alarm handler
15661
15662 * process.c (toplevel): Include atimer.h.
15663 (create_process_1): Rewritten.
15664 (create_process): Use atimers instead of alarm.
15665 (wait_reading_process_input) [hpux]: Turn atimers off instead
15666 of turning off SIGALRM.
15667 (wait_reading_process_input): Turn off atimers instead off
15668 calling stop_polling.
15669
15670 * emacs.c (main): Call init_atimer.
15671
15672 * keyboard.c (toplevel): Include systime.h and atimer.h.
15673 (polling_for_input): Removed because unused.
15674 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
15675 (poll_timer): New variable.
15676 (poll_for_input, poll_for_input_1): New functions.
15677 (start_polling, stop_polling): Rewritten.
15678
15679 * keyboard.h (polling_for_input): Removed.
15680
15681 * atimer.h, atimer.c: New files.
15682
15683 * Makefile.in (obj): Add atimer.o.
15684 (atimer.o): New target.
15685
15686 * blockinput.h (pending_atimers): Add extern declaration.
15687 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
15688
15689 * lisp.h (popup_activated_flag): Add extern declaration.
15690
15691 * xmenu.c (popup_activated_flag): Make externally visible.
15692 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
15693 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
15694
15695 * xterm.c (toplevel): Include atimer.h.
15696 (toolkit_scroll_bar_interaction): New variable.
15697 (Fxt_process_timeouts): Removed.
15698 (x_process_timeouts): New function.
15699 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
15700 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
15701 (x_make_frame_visible): Call poll_for_input_1 instead of
15702 input_poll_signal. Don't call alarm.
15703 (x_initialize): Install timer calling x_process_timeouts.
15704
15705 2000-01-24 Dave Love <fx@gnu.org>
15706
15707 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
15708 Don't use -cckr -- apparently not now necessary.
15709
15710 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
15711
15712 * msdos.c (IT_menu_display): Truncate long menu lines at the right
15713 screen boundary.
15714
15715 2000-01-23 Jason Rumney <jasonr@gnu.org>
15716
15717 * w32fns.c (w32_defined_color): Apply gamma correction before
15718 trying to map to the palette.
15719 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
15720 to w32_clear_rect.
15721
15722 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
15723 here. Callers changed to always pass real device context.
15724 (w32_draw_bitmap): Likewise.
15725 (w32_get_glyph_overhangs): Likewise.
15726 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
15727 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
15728 pfnSetScrollInfo and SetScrollRange.
15729 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
15730 back into MULE characters after decoding them.
15731 (x_get_glyph_face_and_encoding): Likewise.
15732 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
15733 GetCharABCWidthsW fails, since this is defined on Windows 9x.
15734 (x_produce_glyphs): Calculate per char metrics for a character
15735 that we know exists in default font when font_not_found_p is true.
15736
15737 2000-01-22 Jason Rumney <jasonr@gnu.org>
15738
15739 * makefile.nt (intervals.obj, composite.obj): New modules.
15740 (composite.h): Added as dependency where appropriate.
15741
15742 * w32gui.h (XGCValue): New struct for emulating X GCs.
15743
15744 * w32term.h (XCharStruct): New struct for emulating X.
15745
15746 * w32console.c (turn_on_face, turn_off_face): New functions.
15747 (change_line_highlight): New prototype for new redisplay.
15748 (write_glyphs): Support multibyte text. Support faces.
15749
15750 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
15751
15752 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
15753 throughout. struct frame * in place of FRAME_PTR.
15754 Skeleton support for images, toolbars, tooltips from xfns.c.
15755 (Fx_create_frame): Use system default for default scroll bar width.
15756 (w32_get_arg): Renamed from x_get_arg.
15757 (Fx_file_dialog): New function.
15758 (w32_list_fonts): Check cache before asking system.
15759 (Vw32_enable_synthesized_fonts): New variable.
15760 (Vw32_enable_italics): Obsolete, removed.
15761
15762 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
15763 Use SELECTED_FRAME macro.
15764
15765 * w32menu.c: Add skeleton support for help strings on menus.
15766 (add_menu_item): Native checkbox and radio support added, but not
15767 yet enabled due to bugs.
15768 (push_menu_item): Add parameters type, selection and help.
15769 Callers updated.
15770 Formatting changes to reduce unnecessary diffs with xmenu.c.
15771
15772 * w32select.c (Fw32_set_clipboard_data): Update call to
15773 find_charset_in_str.
15774
15775 * w32term.c: Complete rewrite for new redisplay based on new
15776 xterm.c with necessary sections merged back in from old w32term.c.
15777
15778 2000-01-21 Richard M. Stallman <rms@gnu.org>
15779
15780 * data.c (set_internal): Further fix in same criterion.
15781
15782 2000-01-20 Richard M. Stallman <rms@gnu.org>
15783
15784 * data.c (set_internal): Fix the criteria for whether
15785 to swap out the old cached binding.
15786
15787 2000-01-19 Dave Love <fx@gnu.org>
15788
15789 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
15790
15791 2000-01-18 Kenichi Handa <handa@etl.go.jp>
15792
15793 * regex.c (re_compile_fastmap): While checking a range table for
15794 `charset', skip flag bits for a character class correctly.
15795
15796 2000-01-17 Gerd Moellmann <gerd@gnu.org>
15797
15798 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
15799
15800 * xfns.c (x_window): Call lw_create_widget with new parameter list.
15801
15802 * widget.c (EmacsFrameSetCharSize): Change size of children first
15803 because of problems with main window geometry management under Lesstif.
15804
15805 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
15806 MENU_ITEMS_ITEM_.*.
15807 (MENU_ITEMS_ITEM_HELP): New enumerator.
15808 (push_menu_item): Add parameter HELP. Record help in menu_items.
15809 (single_menu_item, single_submenu, list_of_items): Call
15810 push_menu_item with new parameter.
15811 (single_submenu): Set help string in widget value.
15812 (menu_highlight_callback): New function.
15813 (set_frame_menubar): Call lw_create_widget with new
15814 parameter list.
15815 (xmenu_show, xdialog_show): Ditto.
15816
15817 2000-01-13 Gerd Moellmann <gerd@gnu.org>
15818
15819 * sound.c (Fplay_sound): Improve doc string.
15820
15821 2000-01-11 Richard M. Stallman <rms@gnu.org>
15822
15823 * lisp.h (set_internal): Enter the new arg.
15824
15825 * eval.c (specbind): Record buffer-local variables specially,
15826 indicating which buffer's binding was saved.
15827 (unbind_to): Restore buffer-local variables specially
15828 in the proper buffer.
15829
15830 * data.c (set_internal): New arg BUF.
15831
15832 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
15833 * data.c (Fset): Pass new arg to set_internal.
15834 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
15835
15836 2000-01-11 Gerd Moellmann <gerd@gnu.org>
15837
15838 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
15839
15840 2000-01-11 Richard M. Stallman <rms@gnu.org>
15841
15842 * minibuf.c (Ftry_completion): Doc fix.
15843
15844 2000-01-11 Gerd Moellmann <gerd@gnu.org>
15845
15846 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
15847 vector, too.
15848
15849 2000-01-11 Andreas Schwab <schwab@suse.de>
15850
15851 * coding.c (code_convert_region): Initialize total_skip.
15852
15853 2000-01-08 Dave Love <fx@gnu.org>
15854
15855 * eval.c (Fuser_variable_p): Check customizability too.
15856
15857 2000-01-07 Gerd Moellmann <gerd@gnu.org>
15858
15859 * minibuf.c (Fcompleting_read): Doc fix.
15860
15861 2000-01-05 Gerd Moellmann <gerd@gnu.org>
15862
15863 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
15864 -L /usr/local/lib.
15865
15866 * xfns.c (x_create_im): New function to set IM and IC of a frame.
15867 Check that input style is supported before trying to create an
15868 IC for it.
15869 (x_window): Call x_create_im.
15870
15871 2000-01-04 Gerd Moellmann <gerd@gnu.org>
15872
15873 * xfns.c (current_gif_memory_src): New variable.
15874 (gif_load): Record the address of the current memory source
15875 in current_gif_memory_src.
15876 (gif_read_from_memory): Use current_gif_memory_src.
15877
15878 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
15879 macros statement form.
15880
15881 * sound.c (struct sound): Renamed from struct sound_file.
15882 (struct sound): Add members `data' and `header_size'.
15883 (enum sound_attr): Add SOUND_DATA.
15884 (current_sound, current_sound_device): Variables renamed from
15885 sound_file and sound_device.
15886 (parse_sound): Parse :data.
15887 (parse_sound): Handle sound data in strings.
15888 (find_sound_type): Function renamed from find_sound_file_type.
15889 (wav_init, au_init): Fail if sound's header_size is smaller than
15890 needed header size.
15891 (wav_play, au_play): Play sounds from string data.
15892
15893 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
15894
15895 * lisp.h: Add prototype for allocate_string_data.
15896
15897 * alloc.c (Fgarbage_collect): Return number of live and free strings.
15898
15899 * alloc.c (mark_buffer): Remove code in #if 0.
15900 (gc_sweep): Ditto.
15901 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
15902 (strings_consed): New variable.
15903 (allocate_string): Set it.
15904 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
15905 (Fmemory_use_counts): Return strings_consed. Use Flist.
15906
15907 * alloc.c: General cleanup in comments etc. Remove conditional
15908 compilation for `standalone'.
15909
15910 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
15911
15912 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
15913 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
15914 (DONT_COPY_FLAG): Removed.
15915 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
15916 (struct sdata, struct sblock): New
15917 (struct string_block): Rewritten.
15918 (STRINGS_IN_STRING_BLOCK): New macro.
15919 (oldest_sblock, current_sblock, total_strings, total_free_strings)
15920 (large_sblocks, string_blocks, string_free_list): New variables.
15921 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
15922 (init_strings): Rewritten.
15923 (allocate_string, allocate_string_data, compact_small_strings)
15924 (free_large_strings, sweep_strings): New functions.
15925 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
15926 (struct string_block_head, current_string_block)
15927 (first_string_block, large_string_blocks, STRING_FULLSIZE)
15928 (STRING_PAD): Removed.
15929 (make_uninit_multibyte_string, make_pure_string): Rewritten.
15930 (Fgarbage_collect): Don't set mark bit in large strings.
15931 (mark_object): Mark strings differently. Mark symbol names
15932 differently.
15933 (survives_gc_p): Test marked strings differently.
15934 (gc_sweep): Sweep strings differently, unmark strings in
15935 symbol names.
15936 (compact_strings): Removed.
15937
15938 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
15939
15940 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
15941 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
15942
15943 2000-01-04 Kenichi Handa <handa@etl.go.jp>
15944
15945 * fileio.c (Finsert_file_contents): Signal error if visiting file
15946 in a non-empty buffer.
15947
15948 * term.c (encode_terminal_code): Fix the previous change.
15949
15950 2000-01-03 Gerd Moellmann <gerd@gnu.org>
15951
15952 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
15953 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
15954
15955 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
15956
15957 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15958
15959 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
15960 need to test for MSDOS frames.
15961
15962 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15963
15964 * dosfns.c (unspecified_colors): Remove.
15965 (msdos_stdcolor_idx): Use global variables unspecified_fg and
15966 unspecified_bg.
15967 (msdos_stdcolor_name): Return strings for unspecified fore- and
15968 back-ground colors.
15969
15970 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
15971 (syms_of_xfaces): Remove their staticpro's.
15972 (tty_color_name): Return Lisp strings for unspecified fore- and
15973 back-ground colors.
15974 (Finternal_set_lisp_face_attribute): Remove the special treatment
15975 for Qunspecified_{f,b}g.
15976 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
15977
15978 2000-01-03 Gerd Moellmann <gerd@gnu.org>
15979
15980 * xdisp.c (reseat_at_next_visible_line_start): Position before
15981 newline only if ending up on a newline.
15982 (next_element_from_ellipsis): Return success. Handle case of
15983 displaying no ellipsis. Fix case of ellipsis defined in display table.
15984 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
15985 returns 0.
15986
15987 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15988
15989 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
15990 (Fcolor_supported_p): Renamed from face-color-supported-p.
15991
15992 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15993
15994 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
15995 list of colors renamed to tty-defined-color-alist.
15996 (tty_color_name): Pass the frame to tty-color-by-index.
15997 (realize_tty_face): tty-color-alist is now a function which
15998 accepts the frame as argument.
15999
16000 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
16001
16002 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
16003
16004 * term.c (insert_glyphs): Pass glyph, not &glyph, to
16005 encode_terminal_code.
16006
16007 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
16008
16009 * dispnew.c (mode_line_string): Support termcap frames as well.
16010
16011 2000-01-01 Gerd Moellmann <gerd@gnu.org>
16012
16013 * syntax.c (Fforward_word): Undo previous change.
16014
16015 * editfns.c (Fconstrain_to_field): Don't constrain if
16016 inhibit-field-text-motion is non-nil.
16017 (Fline_beginning_position): Undo previous change.
16018 (Fline_end_position): Ditto.
16019
16020 * syntax.c (Fforward_word): Notice field boundaries only if
16021 inhibit-field-text-motion is nil.
16022
16023 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
16024
16025 * editfns.c (Vinhibit_field_text_motion): New variable.
16026 (inhibit-field-text-motion): New DEFVAR_LISP.
16027 (Fline_beginning_position, Fline_end_position): Notice field
16028 boundaries only if inhibit-field-text-motion is nil.
16029
16030 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
16031 All calls adjusted.
16032 (x_build_heuristic_mask): Likewise.
16033 (xbm_load_image_from_file): Change error output.
16034 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
16035 (gif_load, gs_load, x_kill_gs_process): Ditto.
16036
16037 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
16038 color indices when accessing raster pixels.
16039 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
16040 one of :file or :data.
16041 (enum pbm_keyword_index): Add PBM_DATA.
16042 (pbm_format): Add :data.
16043 (pbm_image_p): Allow either :file or :data.
16044 (pbm_read_file): New function.
16045 (pbm_scan_number): Rewritten to read from string.
16046 (pbm_load): Support :data.
16047
16048 See ChangeLog.8 for earlier changes.
16049
16050 ;; Local Variables:
16051 ;; coding: iso-2022-7bit
16052 ;; End:
16053
16054 Copyright (C) 2001 Free Software Foundation, Inc.
16055 Copying and distribution of this file, with or without modification,
16056 are permitted provided the copyright notice and this notice are preserved.