(gif_load): Use correct width and height for GIF images.
[bpt/emacs.git] / src / ChangeLog
1 2002-02-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2
3 * xfns.c (gif_load): Use correct width and height for GIF images.
4
5 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
6
7 * floatfns.c (Fatan): Accept an optional second arg and call
8 atan2 if passed 2 args.
9
10 2002-02-18 Jason Rumney <jasonr@gnu.org>
11
12 * w32term.c (glyph_rect): Determine the row and glyph more precisely.
13
14 2002-02-17 Jason Rumney <jasonr@gnu.org>
15
16 * w32term.c (x_autoselect_window_p): New variable.
17 (syms_of_w32term): DEFVAR_BOOL and initialize it.
18 (note_mouse_movement): Use it.
19
20 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero.
21
22 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p.
23
24 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
25 New variables.
26 (syms_of_w32fns): Intern and staticpro them.
27 (x_frame_parms) <"fullscreen">: New parameter.
28 (x_fullscreen_move, x_set_fullscreen): New functions.
29 (x_set_frame_parameters): Support Qfullscreen.
30 (x_real_positions): Save x/y_pixels_diff frame params.
31 (x_figure_window_size): Support full-screen frames.
32 (Fx_create_frame): Default the fullscreen parameter.
33
34 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
35 (x_fullscreen_adjust): New functions.
36 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
37 fullscreen. Call x_check_fullscreen_move, and set the
38 want_fullscreen member of output_data.w32
39 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
40
41 * w32term.h: New enum for FULLSCREEN_* constants.
42 (struct w32_output): New members want_fullscreen, x_pixels_diff,
43 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff.
44 (x-fullscreen-adjust): New prototype.
45
46 2002-02-17 Kim F. Storm <storm@cua.dk>
47
48 * frame.c: (Vmouse_highlight): New variable.
49 (syms_of_frame): DEFVAR_LISP it.
50
51 * frame.h: (Vmouse_highlight): Declare extern.
52
53 * xterm.h (struct x_display_info): Add mouse_face_hidden.
54
55 * xterm.c (disable_mouse_highlight): Removed variable.
56 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
57 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
58 (XTread_socket): Turn mouse_face_hidden off after mouse movement,
59 and on after keyboard input.
60 (x_term_init): Initialize mouse_face_hidden.
61
62 * msdos.h (struct display_info): Add mouse_face_hidden.
63
64 * msdos.c (disable_mouse_highlight): Removed variable.
65 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
66 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil.
67 (internal_terminal_init): Initialize mouse_face_hidden.
68 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement,
69 and on after keyboard input.
70
71 * w32term.h (struct w32_display_info): Add mouse_face_hidden.
72
73 * w32term.c (disable_mouse_highlight): Removed variable.
74 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
75 (show_mouse_face): Don't show highlight if mouse_face_hidden is set.
76 (w32_read_socket): Turn mouse_face_hidden off after mouse movement,
77 and on after keyboard input.
78 (w32_initialize_display_info): Initialize mouse_face_hidden.
79
80 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il>
81
82 * msdos.c (last_mouse_window): New variable.
83 (dos_rawgetc): Fix last change--if the mouse is in the same window
84 as recorded in last_mouse_window, don't select this window.
85
86 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not
87 cus-start.el.
88
89 * msdos.c (x_autoselect_window_p): New variable.
90 (syms_of_msdos): Defvar it.
91 (dos_rawgetc): If x_autoselect_window_p is set, select the window
92 in which the last mouse movement occured, unless it is already
93 selected.
94
95 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step): New
96 variables.
97 (syms_of_xdisp): DEVFAR them.
98 (hscroll_window_tree): Use automatic_hscroll_margin and
99 Vautomatic_hscroll_step to compute the amount of window scrolling.
100
101 2002-02-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
102
103 * xterm.c (x-autoselect-window): New variable.
104 (note_mouse_movement): Use it.
105
106 * keyboard.c: Do not include "systime.h" twice.
107
108 2002-02-15 Andreas Schwab <schwab@suse.de>
109
110 * puresize.h (BASE_PURESIZE): Increase to 9/5.
111
112 * alloc.c (NSTATICS): Increase to 1280.
113
114 2002-02-15 Kai Gro\e,A_\e(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE>
115
116 * alloc.c (NSTATICS): Bump to 1026.
117
118 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym)
119 (Vx_super_keysym): New variables.
120 (syms_of_xterm): DEFVAR_LISP them.
121 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the
122 variables to determine which keys to use for the various
123 modifiers.
124
125 2002-02-13 Kim F. Storm <storm@cua.dk>
126
127 * window.c: (Vmode_line_in_non_selected_windows): Removed.
128 (mode_line_in_non_selected_windows): New variable.
129 (syms_of_window): DEFVAR_BOOL it.
130
131 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Use
132 mode_line_in_non_selected_windows.
133 (mode_line_in_non_selected_windows): Declare extern.
134 (Vmode_line_in_non_selected_windows): Removed extern.
135
136 2002-02-13 Richard M. Stallman <rms@gnu.org>
137
138 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector)
139 (Fthis_single_command_keys, Fthis_single_command_raw_keys)
140 (Fclear_this_command_keys): Doc fixes.
141
142 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face)
143 (update_face_from_frame_parameter): Increment face_change_count
144 and windows_or_buffers_changed to force redisplay using changed faces.
145
146 * xdisp.c (QCpropertize): New variable.
147 (mode_line_proptrans_alist): New variable.
148 (display_mode_element): New arg PROPS; all calls changed.
149 Implement this, for strings.
150 Handle literal output of strings by sharing the
151 main-line code for strings, using local var `literal'.
152 Handle :propertize feature.
153 (syms_of_xdisp): Initialze and staticpro QCpropertize and
154 mode_line_proptrans_alist.
155
156 2002-02-11 Kim F. Storm <storm@cua.dk>
157
158 * window.c: (Vmode_line_in_non_selected_windows): New variable.
159 (syms_of_window): DEFVAR_LISP it.
160
161 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro.
162 (CURRENT_MODE_LINE_FACE_ID): Use it.
163 (Vmode_line_in_non_selected_windows): Declare extern.
164
165 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3
166 to get mode line face.
167
168 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il>
169
170 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these
171 variables; cus-start.el doesn't need them anymore.
172
173 2002-02-09 Kim F. Storm <storm@cua.dk>
174
175 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap
176 reduction. This fixes a display problem where stray newlines were
177 inserted in the window (corrected by C-l). Clarified code (IMHO).
178
179 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il>
180
181 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change.
182
183 * xdisp.c (display_mode_lines): Fix last change.
184
185 2002-02-09 Jason Rumney <jasonr@gnu.org>
186
187 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows
188 match each other.
189 (w32_load_system_font): Prevent Cleartype fonts from loading.
190 (Fx_show_tip): Ensure tip frames are above other topmost windows.
191
192 2002-02-09 Kim F. Storm <storm@cua.dk>
193
194 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro.
195 (CURRENT_MODE_LINE_HEIGHT): Use it.
196 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID.
197
198 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID.
199 (pos_visible_p, handle_face_prop): Likewise.
200 (display_mode_lines): Likewise, but for the real selected window.
201 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID.
202
203 * xfaces.c (Qmode_line_inactive): New face variable for mode-line
204 in non-selected windows.
205 (realize_basic_faces): Realize it.
206 (syms_of_term): Intern and staticpro it.
207
208 2002-02-08 Kim F. Storm <storm@cua.dk>
209
210 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK):
211 Changed mail addresses to emacs-devel@gnu.org.
212
213 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
214
215 * fileio.c (Fsubstitute_in_file_name): If the file name includes
216 ~user, and there's no such user, don't discard everything before
217 ~user.
218
219 * floatfns.c (Fround): Doc fix.
220
221 2002-02-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
222
223 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
224
225 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
226
227 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c).
228
229 2002-02-07 Kim F. Storm <storm@cua.dk>
230
231 * keymap.c (where_is_internal): Only check whether definition is
232 remapped if it fulfills is_command_symbol.
233
234 2002-02-07 Andreas Schwab <schwab@suse.de>
235
236 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
237
238 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
239
240 2002-02-06 Kim F. Storm <storm@cua.dk>
241
242 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
243 defining command remapping. Doc updated.
244 (Flookup_key): Remap command through keymap if KEY is a symbol.
245 (is_command_symbol): New function.
246 (Fkey_binding): Use it. New optional argument NO-REMAP.
247 Doc updated. Callers changed. Perform command remapping via
248 recursive call unless that arg is non-nil.
249 (where_is_internal): New argument no_remap. Callers changed.
250 Call recursively to find original key bindings for a remapped
251 comand unless that arg is non-nil.
252 (Fwhere_is_internal): New optional argument NO-REMAP.
253 Doc updated. Callers changed. Pass arg to where_is_internal.
254
255 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
256 (is_command_symbol): Added prototype.
257
258 * keyboard.c (Vthis_original_command): New variable.
259 (syms_of_keyboard): DEFVAR_LISP it.
260 (command_loop_1): Set it, and perform command remapping.
261
262 2002-02-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
263
264 * keyboard.c (recursive_edit_1): Call cancel_hourglass
265 unconditionally.
266
267 2002-02-06 Jason Rumney <jasonr@gnu.org>
268
269 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
270
271 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
272
273 * charset.c (get_charset_id): Use if-else instead of ?:.
274
275 2002-02-06 Richard M. Stallman <rms@gnu.org>
276
277 * filelock.c (S_ISLNK): Define if not defined.
278
279 2002-02-03 Richard M. Stallman <rms@gnu.org>
280
281 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
282
283 * lread.c (read1): Redesign strategy for force_multibyte and
284 force_singlebyte. Now is_multibyte records whether read_buffer
285 is multibyte. Encountering any multibyte character makes it so.
286
287 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
288
289 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
290 with the same sequence, map that sequence to f10 rather than f0.
291
292 2002-02-03 Andreas Schwab <schwab@suse.de>
293
294 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
295 latter never being defined on GNU/Linux.
296
297 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
298
299 * xfaces.c (realize_default_face): Don't set the weight and slant
300 of the default face to Qnormal, unless these attributes are
301 unspecified.
302
303 2002-02-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
304
305 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
306 Call cancel_hourglass unconditionally.
307
308 * eval.c (Fsignal): Remove duplicated declaration of
309 the variable `display_hourglass_p'.
310
311 2002-01-31 Richard M. Stallman <rms@gnu.org>
312
313 * editfns.c (region_limit): Nicer error message.
314
315 * coding.c (decode_composition_emacs_mule):
316 Give up if NCOMPONENT gets too large to index `component'.
317
318 * callint.c (check_mark): New arg to specify clearer error message.
319 Callers changed.
320
321 2002-01-27 Richard M. Stallman <rms@gnu.org>
322
323 * minibuf.c (Fcompleting_read): Doc fix.
324
325 2002-01-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
326
327 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
328 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
329 Fix doc-strings.
330
331 2002-01-26 Richard M. Stallman <rms@gnu.org>
332
333 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
334
335 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
336 and scroll_up_aggressively.
337
338 2002-01-26 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
339
340 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
341
342 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
343
344 * textprop.c (Fnext_property_change, Fnext_single_property_change)
345 (Fprevious_property_change, Fprevious_single_property_change):
346 Stay within the narrowed-buffer boundaries.
347
348 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
349
350 * term.c (Ftty_display_color_cells): New function.
351 (syms_of_term): Defsubr it.
352 (Ftty_display_color_cells, Ftty_display_color_p): Change the
353 argument name to DISPLAY. Doc fix.
354
355 * dispextern.h: Add prototype for set_tty_color_mode and
356 tty_setup_colors.
357
358 2002-01-24 Jason Rumney <jasonr@gnu.org>
359
360 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
361 If region left to draw is not what was expected, mark the frame as
362 garbaged.
363
364 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
365 Combine the regions returned by BeginPaint and GetUpdateRect.
366
367 2002-01-23 Jason Rumney <jasonr@gnu.org>
368
369 * w32term.c (x_update_window_begin): Only hide caret if
370 w32_use_visible_system_caret is set.
371 (x_update_window_end): Only show caret if
372 w32_use_visible_system_caret is set.
373 (syms_of_w32term): Handle SystemParametersInfo call failing.
374
375 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
376
377 2002-01-22 Richard M. Stallman <rms@gnu.org>
378
379 * unexelf.c (unexec): Define n so as to cause compilation error
380 for the code where people have often written n instead of nn.
381
382 * .gdbinit (hookpost-run): Defined.
383
384 2002-01-22 Jan D. <Jan.Djarv@mbox200.swipnet.se>
385
386 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
387
388 2002-01-21 Jan D. <Jan.Djarv@mbox200.swipnet.se>
389
390 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
391 if fullscreen is being set.
392
393 2002-01-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
394
395 * minibuf.c (Fminibuffer_contents)
396 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
397 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
398
399 2002-01-21 Richard M. Stallman <rms@gnu.org>
400
401 * window.c (check_frame_size): Fix minimum height calculation.
402
403 2002-01-20 Ken Raeburn <raeburn@gnu.org>
404
405 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
406 height before comparison.
407 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
408
409 2002-01-20 Jason Rumney <jasonr@gnu.org>
410
411 * w32term.c (w32_system_caret_width): Remove.
412 (w32_use_visible_system_caret): New user flag.
413 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
414 Windows reports a screen reader running.
415 (x_update_window_begin): Hide the system caret.
416 (x_update_window_end): Show the system caret.
417 (x_display_and_set_cursor): Don't draw a cursor when
418 w32_use_visible_system_caret is set. Do not adjust width.
419
420 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
421 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
422 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
423 the user requests it. Use system default width when creating.
424 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
425
426 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
427 New window messages.
428
429 2002-01-20 Richard M. Stallman <rms@gnu.org>
430
431 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
432
433 2002-01-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
434
435 * doprnt.c (doprnt1): Fix typos in error call.
436
437 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
438
439 * unexelf.c (unexec) [__sgi]: Support the .got sections.
440
441 2002-01-20 Jason Rumney <jasonr@gnu.org>
442
443 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
444 that Windows returns. If a double check fails, try to guess how
445 ExtTextOut is going to act.
446
447 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
448 in place of stricmp.
449 (w32_list_synthesized_fonts): Removed.
450 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
451 (struct enumfont_t): New element; list.
452 (enum_font_cb2): List all style and charset variations of a font.
453 (Fw32_select_font): New optional argument; include_proportional.
454 Exclude vertical fonts. Exclude proportional fonts unless
455 include_proportional is non-nil.
456 (w32_enable_synthesized_fonts): Change to a boolean.
457 (Fw32_send_sys_command): Doc fix.
458
459 2002-01-19 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
460
461 * dispnew.c (update_frame): Move the variable `tem' to the block
462 where it is used.
463
464 2002-01-19 Jason Rumney <jasonr@gnu.org>
465
466 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
467 call to face-set-after-frame-default.
468
469 2002-01-18 Richard M. Stallman <rms@gnu.org>
470
471 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
472 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
473
474 2002-01-17 Richard M. Stallman <rms@gnu.org>
475
476 * window.c (enlarge_window): When exceeding size of parent,
477 directly delete all the siblings instead of trying to resize it.
478
479 2002-01-17 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
480
481 * term.c (set_tty_color_mode): Remove unused variable `tem'.
482
483 2002-01-16 Henrik Enberg <henrik@enberg.org>
484
485 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
486
487 2002-01-16 Kim F. Storm <storm@cua.dk>
488
489 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
490 is invisible. This can happen if cursor is on top line of a
491 window, and we switch to a buffer with a header line.
492
493 * w32term.c (x_erase_phys_cursor): Ditto.
494
495 2002-01-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
496
497 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
498 `dont_resize' only when used.
499
500 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
501
502 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
503
504 * xdisp.c (display_mode_element): When computing charpos, depend
505 on multibyteness of elt, not the text in field.
506
507 2002-01-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
508
509 * buffer.c (Fkill_all_local_variables): Increment
510 `update_mode_lines' only once.
511
512 2002-01-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
513
514 * lisp.h (adjust_after_replace_noundo)
515 (Fupdate_coding_systems_internal): Add prototypes.
516
517 * sound.c (Fplay_sound): Initialize header_size also for :data case.
518
519 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
520
521 Support for the --color command-line argument and tty-color-mode
522 frame parameter:
523
524 * term.c (tty_default_color_capabilities, tty_setup_colors)
525 (set_tty_color_mode): New functions.
526 (term_init): Call tty_default_color_capabilities.
527 (Qtty_color_mode_alist): New variable.
528 (syms_of_term): Intern and staticpro it.
529
530 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
531 frames.
532 (do_switch_frame): For termcap frames, switch the tty
533 color mode as specified by the frame's parameters.
534 (Qtty_color_mode): New variable.
535 (syms_of_frame): Intern and staticpro it.
536
537 * emacs.c (USAGE2): Add the --color option.
538 (standard_args): Ditto.
539
540 2002-01-13 Jan Djarv <Jan.Djarv@mbox200.swipnet.se>
541
542 * xterm.h (struct x_output): New members want_fullscreen,
543 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
544 y_pixels_outer_diff.
545 New enum for FULLSCREEN_* constants.
546 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
547 is NULL.
548 (x_fullscreen_adjust): Add prototype.
549
550 * emacs.c (USAGE2): Add the new full-screen arguments.
551 (standard_args): Ditto.
552
553 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
554 New variables.
555 (syms_of_xfns): Intern and staticpro them.
556 (x_frame_parms) <"fullscreen">: New parameter.
557 (x_fullscreen_move, x_set_fullscreen): New functions.
558 (x_set_frame_parameters): Support for Qfullscreen.
559 (x_real_positions): More accurate computation of the frame position.
560 (x_figure_window_size): Support full-screen frames.
561 (Fx_create_frame): Default the fullscreen parameter.
562
563 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
564 (XTread_socket) <Expose>: Call x_check_fullscreen.
565 <ConfigureNotify>: Don't resize to fullscreen.
566 Call x_check_fullscreen_move, and set the want_fullscreen member of
567 output_data.x.
568
569 2002-01-13 Jason Rumney <jasonr@gnu.org>
570
571 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
572 for mice with more than 3 buttons.
573
574 * w32term.c (parse_button): New parameter xbutton. Callers changed.
575 (w32_read_socket): Handle new "XBUTTON" messages.
576
577 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
578 (syms_of_w32fns): DEFVAR_BOOL it.
579 (w32_wnd_proc): Handle new "XBUTTON" messages.
580
581 2002-01-13 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
582
583 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
584
585 2002-01-13 Andreas Schwab <schwab@suse.de>
586
587 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
588
589 2002-01-12 Andreas Schwab <schwab@suse.de>
590
591 * .gdbinit (xbuffer): Remove address operator since data is now a
592 pointer.
593
594 2002-01-11 Richard M. Stallman <rms@gnu.org>
595
596 * insdel.c (adjust_after_replace_noundo): New function.
597
598 * coding.c (code_convert_region): Don't copy old text if undo disabled.
599
600 2002-01-09 Jason Rumney <jasonr@gnu.org>
601
602 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
603 when checking for multiple frames.
604
605 2002-01-08 Richard M. Stallman <rms@gnu.org>
606
607 * window.c (delete_window): Rewrite the code for changing the
608 selected window to handle the case where WINDOW is not a leaf.
609
610 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
611
612 * process.c (send_process): Set src_multibyte to 1 after the call
613 top setup_coding_system, not before the call.
614
615 2002-01-07 Jason Rumney <jasonr@gnu.org>
616
617 * xmenu.c (set_frame_menubar, xmenu_show):
618 (xdialog_show): Initialize wv->help to Qnil.
619
620 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
621 (w32_dialog_show): Initialize wv->help to Qnil.
622
623 2002-01-06 Jason Rumney <jasonr@gnu.org>
624
625 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
626
627 * w32menu.c (w32_menu_display_help): Revert last change.
628
629 * xmenu.c (menu_highlight_callback): Revert last change.
630
631 2002-01-06 Andreas Schwab <schwab@suse.de>
632
633 * insdel.c (make_gap_larger): Make sure buffer size does not
634 overflow range of int.
635
636 2002-01-05 Jason Rumney <jasonr@gnu.org>
637
638 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
639 OVERLAPS_P.
640
641 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
642
643 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
644 to the left or to the right of the pointer, put it against
645 the left screen edge.
646 (x_frame_parms): Add missing braces around initializer.
647
648 * w32term.c (x_setup_relief_colors): Don't compute an image's
649 background color if it doesn't have a Pixmap.
650 (notice_overwritten_cursor): Don't depend on
651 output_cursor and updated_area. Compare pixel coordinates with
652 window's cursor pixel coordinates.
653 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
654 Call notice_overwritten_cursor with new arg list.
655 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
656 unconditionally.
657 (x_draw_image_relief): Use predefined macro instead of
658 constant when the value of `tool_bar_button_relief' is negative.
659
660 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
661
662 2002-01-04 Richard M. Stallman <rms@gnu.org>
663
664 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
665
666 2002-01-03 Richard M. Stallman <rms@gnu.org>
667
668 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
669 (Fkey_binding): Try the `keymap' property map first.
670 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
671 minor mode bindings.
672
673 2002-01-03 Kim F. Storm <storm@cua.dk>
674
675 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
676
677 2002-01-02 Richard M. Stallman <rms@gnu.org>
678
679 * keyboard.c (read_key_sequence): Handle the keymap property
680 before minor mode maps.
681
682 * editfns.c (Fformat): Update thissize from field_width
683 based on the actual width, in the string case.
684
685 2002-01-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
686
687 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
688 when used as truth value to prevent gcc warnings.
689
690 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
691 * w32proc.c: Include <config.h>.
692
693 2002-01-01 Andreas Schwab <schwab@suse.de>
694
695 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
696 not EMACS_INT, to make them compatible with DEFVAR_INT.
697 * lisp.h (max_specpdl_size): Adjust declaration.
698
699 2002-01-01 Richard M. Stallman <rms@gnu.org>
700
701 * print.c (print_object): Test print_escape_nonascii only for
702 unibyte strings.
703 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
704 when outputting to a multibyte buffer.
705
706 2001-12-29 Richard M. Stallman <rms@gnu.org>
707
708 * print.c (print_object): In multibyte string, use hex escapes.
709 Use octal only for unibyte strings.
710 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
711
712 * lread.c (read_escape): New arg BYTEREP for reporting whether
713 escape forces unibyte or multibyte.
714 (read1): When reading a string, take note of that info.
715
716 2001-12-29 Ken Raeburn <raeburn@gnu.org>
717
718 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
719 comparison to test lisp value returned by Fget.
720
721 2001-12-29 Richard M. Stallman <rms@gnu.org>
722
723 * lisp.h (max_specpdl_size): Add declaration.
724
725 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
726
727 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
728 Handle modifier bits. Correct typo in error message.
729
730 2001-12-28 Richard M. Stallman <rms@gnu.org>
731
732 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
733 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
734 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
735 Update calls to Fdefine_abbrev.
736 (write_abbrev): Update for changed data format.
737 Don't list "system" abbrevs.
738 (Fexpand_abbrev): Update use count with new data format.
739 (describe_abbrev): Update for changed data format.
740 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
741
742 * config.in (HAVE_MBSINIT): Add #undef.
743
744 * strftime.c (mbsinit): Define as no-op if not available.
745
746 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
747 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
748
749 * keymap.c (Flookup_key): Error message if key has wrong data type.
750 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
751 (exclude_key): New variable.
752
753 2001-12-28 Gerd Moellmann <gerd@gnu.org>
754
755 * xterm.c (x_setup_relief_colors): Don't compute an image's
756 background color if it doesn't have a Pixmap.
757
758 * xterm.c (notice_overwritten_cursor): Don't depend on
759 output_cursor and updated_area. Compare pixel coordinates with
760 window's cursor pixel coordinates.
761 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
762 Call notice_overwritten_cursor with new arg list.
763 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
764 unconditionally.
765
766 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
767 height of the cursor line to the amount to scroll.
768
769 2001-12-27 Richard M. Stallman <rms@gnu.org>
770
771 * intervals.c (set_point_both): The position after an invisible,
772 intangible character is not an acceptable stopping point.
773
774 2001-12-27 Ken Raeburn <raeburn@gnu.org>
775
776 * window.c (enlarge_window): In new preserve_before code, convert
777 CURBEG from lisp object to integer before doing arithmetic.
778
779 2001-12-27 Richard M. Stallman <rms@gnu.org>
780
781 * bytecode.c (Fbyte_code): Undo previous change.
782
783 2001-12-26 Kim F. Storm <storm@cua.dk>
784
785 * keyboard.c (record_char): Ignore duplicate help-echo events only
786 separated by mouse-movement. When tracking mouse, only record
787 first and last mouse-movement event in same window.
788 Don't record mouse-movement events in keyboard macros.
789
790 2001-12-25 Richard M. Stallman <rms@gnu.org>
791
792 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
793 (Fenlarge_window): New arg PRESERVE_BEFORE.
794
795 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
796 instead of Fstring_as_unibyte.
797
798 2001-12-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
799
800 The following changes remove mocklisp support:
801
802 * mocklisp.h, mocklisp.c: Files removed.
803
804 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
805 `Qmocklisp' and `Qmocklisp_arguments'.
806 Remove prototype of syms_of_mocklisp.
807
808 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
809
810 * callint.c: Do not include mocklisp.h.
811 (Fcall_interactively): Do not test for mocklisp case.
812
813 * eval.c: Remove variables `Qmocklisp_arguments',
814 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
815 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
816 Do not test for mocklisp case.
817 (Fwhile): Remove unused variable `tem'.
818 (syms_of_eval): Remove variable `moclisp-arguments'.
819
820 * data.c (wrong_type_argument): Remove mocklisp case.
821
822 * doc.c (Fdocumentation): Remove mocklisp case.
823
824 * emacs.c (main): Do not call syms_of_mocklisp.
825
826 2001-12-21 Richard M. Stallman <rms@gnu.org>
827
828 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
829 to the left or to the right of the pointer, put it against
830 the left screen edge.
831
832 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
833
834 * Makefile.in (distclean): Remove .gdbinit if we are building
835 outside the source tree.
836
837 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
838
839 * w32.c (emacs_root_dir): New function.
840
841 * msdos.c (emacs_root_dir): New function.
842
843 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
844 of the current drive as the fallback for default_directory.
845
846 * dired.c (file_name_completion): Run the elements of
847 completion-ignored-extensions through ENCODE_FILE.
848
849 * lisp.h (scmp): Remove prototype, since it's now a static
850 function private to dired.c.
851
852 2001-12-18 Richard M. Stallman <rms@gnu.org>
853
854 * dired.c (scmp): Function moved from minibuf.c.
855 Delete multibyte handling--used only on encoded strings.
856
857 * minibuf.c (scmp): Function moved to dired.c.
858
859 * fns.c (merge): Add QUIT call.
860
861 2001-12-18 Dave Love <fx@gnu.org>
862
863 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
864 language/georgian.el.
865
866 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
867
868 * Makefile.in (lisp, shortlisp): Synchronize with changes to
869 lisp/Makefile.in:DONTCOMPILE.
870
871 2001-12-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
872
873 * xdisp.c (window_box_height): Do not return negative values.
874 From Gerd Moellmann <gerd@gnu.org>.
875
876 * keyboard.c (head_table): Add missing braces around initializer.
877
878 * term.c (keys): Likewise.
879
880 * xfns.c (x_frame_parms, visual_classes): Likewise.
881
882 2001-12-17 Sam Steingold <sds@gnu.org>
883
884 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
885 patch (COMPOSING_P, not COMPOSING).
886
887 2001-12-17 Richard M. Stallman <rms@gnu.org>
888
889 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
890
891 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
892 before calling decode_coding.
893
894 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
895
896 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
897 instead of only for COMPOSITION_DISABLED.
898
899 2001-12-16 Richard M. Stallman <rms@gnu.org>
900
901 * alloc.c (pure_alloc): After overflow, allocate just a small block.
902
903 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
904
905 * buffer.h (struct buffer): New field `display_error_modiff'.
906 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
907
908 * window.c (Frecenter): Clear display_error_modiff field.
909
910 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
911 Call redisplay_window, but not if display_error_modiff field says no.
912 (redisplay_window_error): New function.
913 (displayed_buffer): New variable.
914 (redisplay_internal, redisplay_windows): Call the new functions
915 instead of redisplay_window directly.
916
917 2001-12-15 Richard M. Stallman <rms@gnu.org>
918
919 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
920
921 2001-12-14 Andrew Innes <andrewi@gnu.org>
922
923 * makefile.w32-in (EMACSLOADPATH): Define.
924 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
925 (bootstrap-temacs): Remove dependency on bootstrap-clean.
926
927 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
928
929 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
930 parameter have a numeric value all the time.
931
932 * w32fns.c (x_report_frame_params): Likewise.
933
934 2001-12-12 Richard M. Stallman <rms@gnu.org>
935
936 * fileio.c (Fwrite_region): Doc fix.
937
938 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
939 (redisplay_internal): Call clear_image_cache only for window terminals.
940
941 2001-12-12 Gerd Moellmann <gerd@gnu.org>
942
943 * xdisp.c (move_it_vertically_backward): Change heuristic
944 for the case that we didn't move far enough initially.
945
946 * window.c (Frecenter): Simplify computation in the case of window
947 system frames and ARG < 0; use window_box_height.
948
949 2001-12-11 Richard M. Stallman <rms@gnu.org>
950
951 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
952 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
953
954 2001-12-11 Andrew Innes <andrewi@gnu.org>
955
956 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
957 arg is negative.
958
959 2001-12-11 Richard M. Stallman <rms@gnu.org>
960
961 * m/hp800.h: Split the __hpux conditional into the parts
962 that are right for GNU/Linux too and the parts that are not.
963 Use the former if GNU_LINUX.
964 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
965
966 * s/gnu-linux.h (GNU_LINUX): Defined.
967
968 2001-12-11 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
969
970 * macros.c, msdos.c, w16select.c: Change doc-string comments to
971 `new style' [w/`doc:' keyword].
972
973 2001-12-10 Jason Rumney <jasonr@gnu.org>
974
975 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
976 before using.
977
978 2001-12-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
979
980 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
981 keyword].
982
983 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
984
985 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
986
987 * s/hpux10.h (srand48): Don't undefine.
988
989 2001-12-09 Jason Rumney <jasonr@gnu.org>
990
991 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
992 Add comment to explain where the struct came from.
993 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
994 (add_menu_item): Process pop-up menus first to avoid memory leak.
995 (add_menu_item, w32_menu_display_help): Use `help' field as
996 Lisp_Object.
997 (w32_free_submenu_strings): Only free owner-drawn strings.
998
999 2001-12-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1000
1001 * COPYING: Moved back.
1002
1003 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
1004 Add parentheses around && within ||.
1005
1006 * indent.c (compute_motion): Likewise.
1007
1008 * intervals.c (merge_properties_sticky): Likewise.
1009
1010 * coding.c (setup_coding_system, shrink_encoding_region)
1011 (Fdecode_sjis_char): Likewise.
1012
1013 2001-12-07 Andreas Schwab <schwab@suse.de>
1014
1015 * xdisp.c (display_mode_element): Don't read past end of string if
1016 it ends with '%'.
1017
1018 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
1019 can hold.
1020
1021 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename
1022 from most_positive_fixnum and most_negative_fixnum, resp., and
1023 type changed to Lisp_Object.
1024 (syms_of_data): DEFVAR_LISP them.
1025
1026 2001-12-07 Richard M. Stallman <rms@gnu.org>
1027
1028 * callproc.c (init_callproc): Set Vdata_directory based on the source
1029 location whenever Emacs was run uninstalled.
1030
1031 2001-12-06 Paul Eggert <eggert@twinsun.com>
1032
1033 * config.in (HAVE_WORKING_VFORK): New #undefs.
1034 * process.c (create_process):
1035 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
1036 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
1037 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
1038 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
1039 * m/intel386.h (HAVE_VFORK): Likewise.
1040 * m/mips-siemens.h (HAVE_VFORK): Likewise.
1041 * m/mips.h (HAVE_VFORK): Likewise.
1042 * s/freebsd.h (vfork): Remove #define.
1043 * s/lynxos.h (HAVE_VFORK): Remove #undef.
1044 * s/usg5-4-2.h: Fix comment about vfork.
1045
1046 2001-12-06 Richard M. Stallman <rms@gnu.org>
1047
1048 * s/hpux10.h (random): Add undef.
1049 (HAVE_RANDOM): Define it just once.
1050
1051 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
1052
1053 * eval.c: Undo last change: the standard syntax is not wanted.
1054
1055 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
1056
1057 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
1058 scroll bars of the frame before deleting the frame itself. If the
1059 frame has a widget, delete the frame with XtDestroyWidget, and do
1060 not call XDestroyWindow before that.
1061
1062 2001-12-06 Kim F. Storm <storm@cua.dk>
1063
1064 * xfns.c (x_report_frame_params): Return actual fringe widths.
1065
1066 * w32fns.c (x_report_frame_params): Return actual fringe widths.
1067
1068 2001-12-05 Andrew Innes <andrewi@gnu.org>
1069
1070 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
1071 excessively large.
1072
1073 * insdel.c (make_gap_larger): New function.
1074 (make_gap_smaller): New function.
1075 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
1076 make_gap_smaller if arg is negative.
1077
1078 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
1079
1080 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
1081 Pass a dummy argument when calling interrupt_signal.
1082 (parse_menu_item): Mark disabled items before checking for empty def.
1083 (read_char_minibuf_menu_prompt): Make safety more visible.
1084 (read_key_sequence): Add a `first_unbound' variable.
1085 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
1086 unbound prefix as soon as we can detect it.
1087
1088 * doc.c (Fsnarf_documentation): Add prototype.
1089 (get_doc_string): Handle negative arguments.
1090 (Fdocumentation): Use AREF and ASIZE.
1091 Move the calls to get_doc_string to a single place.
1092 Don't confuse an interactive-spec for a docstring reference.
1093 (Fdocumentation_property): Take advantage of the fact that
1094 get_doc_string now ignores the sign of the docstring position.
1095
1096 * eval.c: Use standard syntax for usage in docstrings.
1097
1098 2001-12-03 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1099
1100 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
1101
1102 2001-12-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1103
1104 * xterm.c (x_draw_image_relief): Use predefined macro instead of
1105 constant when the value of `tool_bar_button_relief' is negative.
1106
1107 2001-12-02 Richard M. Stallman <rms@gnu.org>
1108
1109 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
1110 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
1111
1112 * fileio.c (read_non_regular): Delete Fsignal call.
1113
1114 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
1115
1116 * lisp.h (run_hook_list_with_args): Undo last change.
1117
1118 2001-12-01 Gerd Moellmann <gerd@gnu.org>
1119
1120 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
1121
1122 2001-12-01 Jason Rumney <jasonr@gnu.org>
1123
1124 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
1125
1126 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
1127 [!WM_MOUSELEAVE]: Define.
1128
1129 * w32menu.c (current_popup_menu, get_menu_item_info):
1130 (set_menu_item_info): New vars.
1131 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
1132 (w32_menu_show): Set current_popup_menu.
1133 (add_menu_item): Allocate new strings for owner-drawn menu items
1134 and help strings.
1135 Use owner-draw for disabled menu items again.
1136 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
1137 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
1138
1139 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
1140 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
1141 <WM_EXITMENULOOP>: Free menu strings.
1142 <WM_MOUSELEAVE>: Stop tracking mouse.
1143 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
1144
1145 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
1146 and mouse face.
1147
1148 2001-12-01 Kim F. Storm <storm@cua.dk>
1149
1150 The following changes add left-fringe and right-fringe
1151 frame parameters to adjust fringe widths, or remove one or
1152 both fringes.
1153
1154 * frame.h (struct frame): Remove trunc_area_pixel_width and
1155 trunc_area_cols fields.
1156 (Qleft_fringe, Qright_fringe): Declare.
1157 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
1158
1159 * frame.c (Qleft_fringe, Qright_fringe): New vars.
1160 (syms_of_frame): Initialize them.
1161
1162 * window.c (coordinates_in_window): Handle separate left and right
1163 fringe widths.
1164
1165 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
1166 and fringe_cols fields.
1167 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
1168 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
1169 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
1170 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
1171 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
1172 (x_compute_fringe_widths): Add prototype.
1173
1174 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
1175 fill fringe evenly with small dashes.
1176 (x_draw_fringe_bitmap): Clear background if necessary. Align and
1177 clip the new ZV bitmap to avoid jitter between rows.
1178 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
1179 background. Don't draw fringe bitmaps if fringe width is zero.
1180 (x_compute_fringe_widths): New function.
1181 (x_new_font, x_set_window_size_1): Use it.
1182
1183 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
1184 (x_set_frame_parameters): Process `font' parameter before other
1185 parameters as fringe widths depend on it.
1186 (x_set_fringe_width): New function.
1187 (x_figure_window_size): Use x_compute_fringe_widths.
1188 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
1189 parameters.
1190
1191 * widget.c (set_frame_size): Use x_compute_fringe_widths.
1192 (EmacsFrameSetCharSize): Ditto.
1193
1194 * w32term.h: Merged changes from xterm.h.
1195 * w32term.c: Merged changes from xterm.c.
1196 * w32fns.c: Merged changes from xfns.c.
1197
1198 2001-11-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1199
1200 * COPYING: Removed.
1201
1202 2001-11-29 Dave Love <fx@gnu.org>
1203
1204 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
1205 extra extra slot.
1206 (detect_coding_mask): Fix call of detect_coding_iso2022.
1207
1208 2001-11-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1209
1210 * fileio.c (file-name-coding-system)
1211 (default-file-name-coding-system): Doc fix (links to referenced
1212 variables added).
1213
1214 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
1215
1216 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
1217 Add dummy uses of gcproN variables.
1218
1219 * category.c (describe_category, describe_category_1)
1220 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
1221 (syms_of_category): Don't defsubr Sdescribe_categories.
1222
1223 2001-11-28 Richard M. Stallman <rms@gnu.org>
1224
1225 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
1226
1227 * Makefile.in (lispdir): New variable, referring to build dir.
1228 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
1229
1230 2001-11-28 Andrew Innes <andrewi@gnu.org>
1231
1232 * w32menu.c (w32_menu_display_help): Actually add the new argument
1233 OWNER.
1234
1235 2001-11-28 Jason Rumney <jasonr@gnu.org>
1236
1237 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
1238 menu items. From David Ponce <dponce@wanadoo.fr>.
1239 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
1240 conditionally.
1241 (w32_menu_display_help): New argument OWNER. Rewritten to store a
1242 help event in the owner frame's keyboard buffer.
1243
1244 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
1245 (Fx_show_tip): Don't subtract last width from row width.
1246
1247 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
1248 (w32_read_socket): Use EQ to compare frames.
1249
1250 2001-11-28 Gerd Moellmann <gerd@gnu.org>
1251
1252 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
1253 OVERLAPS_P.
1254
1255 2001-11-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1256
1257 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
1258 `gcpro3' and `gcpro4'.
1259
1260 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
1261
1262 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
1263
1264 * ccl.c: Use AREF and ASIZE.
1265
1266 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
1267
1268 * lisp.h (run_hook_list_with_args): Remove.
1269 (LIST_END_P): Fix call to wrong_type_argument.
1270 (make_fixnum_or_float): Use EMACS_INT rather than int.
1271
1272 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
1273
1274 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
1275 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
1276
1277 * eval.c: Use AREF and ASIZE.
1278 (Ffetch_bytecode): Add the file name to the error message.
1279
1280 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
1281 which match the end of the file-name.
1282 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
1283 is not a valid env var, but leave it as is instead.
1284
1285 * keymap.c (access_keymap): Handle t bindings like nil bindings.
1286 Make nil bindings in char-tables transparent.
1287 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
1288
1289 2001-11-26 Richard M. Stallman <rms@gnu.org>
1290
1291 * textprop.c (set_text_properties_1): Allow START, END in either order.
1292 Do nothing if range is empty.
1293
1294 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
1295
1296 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
1297 (clean): Not here.
1298
1299 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
1300
1301 * textprop.c (set_text_properties_1): Clearly mark that the
1302 interval should not be empty.
1303
1304 * intervals.c (graft_intervals_into_buffer):
1305 Don't call set_text_properties_1 on an empty interval.
1306
1307 2001-11-25 Richard M. Stallman <rms@gnu.org>
1308
1309 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
1310
1311 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
1312 don't lose the data in it.
1313
1314 2001-11-25 Juanma Barranquero <lektu@terra.es>
1315
1316 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
1317
1318 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
1319
1320 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
1321
1322 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
1323
1324 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
1325
1326 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
1327
1328 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
1329 Niemitalo <kon@iki.fi>.
1330
1331 2001-11-25 Jason Rumney <jasonr@gnu.org>
1332
1333 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
1334
1335 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
1336 (Fx_show_tip): Block input during frame creation.
1337 (Fx_show_tip, Fx_hide_tip): Enable.
1338
1339 2001-11-24 Richard M. Stallman <rms@gnu.org>
1340
1341 * lread.c (Fload): Detect recursive load error for more than 3
1342 nestings of the same file.
1343 (Vrecursive_load_depth_limit): Variable deleted.
1344 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
1345
1346 2001-11-24 Jason Rumney <jasonr@gnu.org>
1347
1348 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
1349 mouse position if either left or top is not specified.
1350
1351 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
1352 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
1353 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
1354 (my_create_tip_window): Assign tip_window.
1355 (x_create_tip_frame): Use same defaults as X.
1356 (compute_tip_xy): Remove unused variable. Use full screen width.
1357 (Fx_show_tip): Do not double height. Call ShowWindow directly.
1358
1359 * w32term.c (x_after_update_window_line): Doc fix.
1360 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
1361 frames.
1362 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
1363
1364 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
1365 for all Windowed systems.
1366
1367 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
1368
1369 * msdos.c (IT_clear_screen): If the frame's faces are not yet
1370 realized, use the initial screen colors to clear the screen.
1371
1372 2001-11-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1373
1374 * textprop.c (Fset_text_properties): Remove unused variables
1375 `unchanged', `prev_changed', `s' and `len'.
1376
1377 * search.c (Freplace_match): Remove unused variable `inslen'.
1378
1379 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
1380
1381 2001-11-22 Jason Rumney <jasonr@gnu.org>
1382
1383 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
1384 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
1385 (my_create_tip_window): New function.
1386 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
1387 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
1388
1389 2001-11-20 Jason Rumney <jasonr@gnu.org>
1390
1391 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
1392 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
1393
1394 * w32fns.c (Vw32_system_coding_system): Remove.
1395 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
1396
1397 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
1398
1399 * fileio.c (Fwrite_region): Move choose_write_coding_system to
1400 after build_annotations.
1401
1402 * syntax.c (describe_syntax): Add dummy arg.
1403 (describe_syntax_1): Update call to describe_vector.
1404
1405 * category.c (describe_category): Add dummy arg.
1406 (describe_category_1): Update call to describe_vector.
1407
1408 * keymap.c (Fdescribe_vector): Add `describer' parameter.
1409 (describe_command, describe_translation): Add dummy second param.
1410 (describe_map): Call elt_describer with two arguments.
1411 (describe_vector_princ): Add `fun' parameter.
1412 Call it instead of the hardcoded `princ'.
1413 (describe_vector): Add arg `args'.
1414 Pass it as a new second argument to elt_describer.
1415
1416 * keymap.h (describe_vector): Update prototype.
1417
1418 * frame.c: Don't include keymap.h any more.
1419 (keys_of_frame): Remove.
1420
1421 * lisp.h (keys_of_frame): Remove declaration.
1422
1423 * emacs.c (main): Don't call `keys_of_frame' any more.
1424
1425 2001-11-14 Andreas Schwab <schwab@suse.de>
1426
1427 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
1428 if defined, 0 otherwise.
1429 (MAP_FAILED): Define if not defined and use it to test mmap failure.
1430 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
1431
1432 2001-11-19 Richard M. Stallman <rms@gnu.org>
1433
1434 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
1435
1436 2001-11-18 Jason Rumney <jasonr@gnu.org>
1437
1438 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
1439 (x_draw_bar_cursor): If the background color of the glyph under
1440 the cursor equals the frame's cursor color, use the glyph's
1441 foreground color for drawing the bar cursor.
1442 (x_after_update_window_line): Clear internal border in different
1443 circumstances.
1444 (w32_set_vertical_scroll_bar): Check for width and height > 0.
1445 (w32_draw_relief_rect): Correct relief by 1 pixel.
1446 (x_set_glyph_string_background_width):
1447 Set extends_to_end_of_line_p if the row's fill_line_p is set and
1448 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
1449 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
1450 if cursor_in_non_selected_windows is false.
1451 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
1452 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
1453 Notice if cursor gets overwritten.
1454 (notice_overwritten_cursor): Renamed from
1455 note_overwritten_text_cursor. Rewritten to take glyph widths
1456 into account, and to take X positions as parameters.
1457 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
1458 around call to x_draw_glyphs.
1459 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
1460 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
1461 color to use for image glyph reliefs.
1462 (x_draw_image_relief): Accept zero tool_bar_button_relief.
1463 (glyph_rect): Remove unused variable `area'.
1464
1465 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
1466 some items.
1467 (x_set_internal_border_width): Set frame garbaged when window
1468 doesn't exist yet.
1469 (Fx_create_frame): Accept zero tool_bar_button_relief.
1470 (x_clear_image_1, four_corners_best, image_background)
1471 (image_background_transparent): New functions.
1472 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
1473 (gs_format): Add `:background' entry.
1474 (lookup_image): Set IMG's background color if specified.
1475 (pbm_load, xbm_load_image, png_load): Set IMG's background field
1476 when appropriate.
1477 (x_clear_image_1): Reset `background_valid' and
1478 `background_transparent_valid' fields.
1479 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
1480 calculating it here. Set IMG's background_transparent field.
1481 (enum xpm_keyword_index): Add XPM_BACKGROUND.
1482 (enum png_keyword_index): Add PNG_BACKGROUND.
1483 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
1484 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
1485 (enum gif_keyword_index): Add GIF_BACKGROUND.
1486 (enum gs_keyword_index): Add GS_BACKGROUND.
1487 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
1488 Pre-calculate image background color where necessary.
1489 (x_create_x_image_and_pixmap, xbm_load, gs_load):
1490 Use display info's n_cbits entry for screen depth.
1491 (Fx_show_tip): Remove unused variables `buffer', `top',
1492 `left', `max_width' and `max_height'.
1493
1494 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
1495
1496 2001-11-18 Gerd Moellmann <gerd@gnu.org>
1497
1498 * puresize.h (BASE_PURESIZE): Increase to 750000.
1499
1500 2001-11-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1501
1502 * frame.c (Fframe_live_p): Doc fix.
1503
1504 2001-11-18 Richard M. Stallman <rms@gnu.org>
1505
1506 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
1507 (message_dolog_marker3): New static variables hold three markers.
1508 (syms_of_xdisp): Initialize and staticpro them.
1509 (message_dolog): Use message_dolog_marker1..3 instead of
1510 allocating markers each time. Unchain them when done.
1511
1512 2001-11-17 Richard M. Stallman <rms@gnu.org>
1513
1514 * doc.c (Fsnarf_documentation): Doc fix.
1515
1516 2001-11-17 Andreas Schwab <schwab@suse.de>
1517
1518 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
1519
1520 2001-11-17 Richard M. Stallman <rms@gnu.org>
1521
1522 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
1523
1524 2001-11-17 Jason Rumney <jasonr@gnu.org>
1525
1526 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
1527
1528 2001-11-17 Gerd Moellmann <gerd@gnu.org>
1529
1530 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
1531 with invalid position.
1532
1533 2001-11-16 Richard M. Stallman <rms@gnu.org>
1534
1535 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
1536
1537 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
1538 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
1539 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
1540
1541 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
1542
1543 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
1544
1545 * fileio.c (build_annotations): Split off the tail.
1546 (build_annotations_2): New fun. Extracted from build_annotations.
1547 (Fwrite_region): Split the call to build_annotations into two
1548 calls to build_annotations and build_annotations_2.
1549
1550 2001-11-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1551
1552 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
1553 clear_waiting_for_input with argument.
1554
1555 * xterm.h (x_update_cursor): Remove duplicated prototype.
1556
1557 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
1558
1559 * xterm.c (waiting_for_input): Remove unnecessary declaration.
1560
1561 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
1562
1563 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
1564
1565 * fileio.c (choose_write_coding_system): New fun, extracted
1566 from Fwrite_region.
1567 (Fwrite_region): Use it.
1568
1569 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
1570 (funcall_lambda, run_hook_with_args): Make static and add prototype.
1571 (ml_apply, find_handler_clause): Add prototype.
1572
1573 2001-11-16 Eli Zaretskii <eliz@gnu.org>
1574
1575 * config.in: Add #undef HAVE_COFF_H.
1576
1577 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
1578 Required for ISC 4.1.
1579
1580 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
1581
1582 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
1583 Andrew Wiseman <a.wiseman@btclick.com>.
1584
1585 2001-11-16 Kim F. Storm <storm@cua.dk>
1586
1587 The following changes are made to clean up the various internal
1588 references to the fringes to actually use the term `fringe' for
1589 them. Previously, they were called `flags areas', `bitmap areas',
1590 `left/right side of windows', or implicitly as `flags' or
1591 `bitmaps':
1592
1593 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
1594 Comments fixed. Use renamed symbols.
1595
1596 * dispnew.c: Comment fix. Use renamed symbols.
1597
1598 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
1599 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
1600 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
1601
1602 * msdos.c: Comment fix.
1603
1604 * w32fns.c: Use renamed symbols.
1605
1606 * w32term.c: Comment fixes. Use renamed symbols.
1607 (fringe_bitmap_type): Renamed from bitmap_type.
1608 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
1609 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
1610 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
1611
1612 * w32term.h: Comment fixes. Use renamed symbols.
1613 (fringes_extra): Renamed from flags_areas_extra.
1614 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
1615 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
1616 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
1617 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
1618 (FRAME_X_LEFT_FRINGE_WIDTH):
1619 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
1620 (FRAME_X_RIGHT_FRINGE_WIDTH):
1621 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
1622
1623 * widget.c: Use renamed symbols.
1624
1625 * window.c: Comment fixes. Use renamed symbols.
1626 (coordinates-in-window-p): Doc fix.
1627
1628 * xdisp.c: Comment fixes. Use renamed symbols.
1629
1630 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
1631
1632 * xfns.c: Use renamed symbols.
1633
1634 * xterm.c: Comment fixes. Use renamed symbols.
1635 (fringe_bitmap_type): Renamed from bitmap_type.
1636 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
1637 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
1638 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
1639
1640 * xterm.h: Comment fixes. Use renamed symbols.
1641 (fringes_extra): Renamed from flags_areas_extra.
1642 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
1643 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
1644 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
1645 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
1646 (FRAME_X_LEFT_FRINGE_WIDTH):
1647 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
1648 (FRAME_X_RIGHT_FRINGE_WIDTH):
1649 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
1650
1651 2001-11-15 Jason Rumney <jasonr@gnu.org>
1652
1653 * w32menu.c (add-menu-item): Make help_echo and radio buttons
1654 work for most menu items. From David Ponce
1655 <david.ponce@wanadoo.fr>.
1656
1657 2001-11-15 Gerd Moellmann <gerd@gnu.org>
1658
1659 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
1660 Some x_set_* function expect to be called even if old and new
1661 value are equal.
1662
1663 * xdisp.c (build_desired_tool_bar_string): Accept zero
1664 tool_bar_button_relief.
1665
1666 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
1667
1668 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
1669
1670 * xterm.c (x_draw_bar_cursor): If the background color of the
1671 glyph under the cursor equals the frame's cursor color, use
1672 the glyph's foreground color for drawing the bar cursor.
1673
1674 * dispnew.c (direct_output_forward_char): Fix character/byte
1675 position comparison.
1676
1677 2001-11-15 Miles Bader <miles@gnu.org>
1678
1679 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
1680 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
1681 Update arguments to find_field.
1682 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
1683 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
1684 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
1685 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
1686
1687 2001-11-14 Richard M. Stallman <rms@gnu.org>
1688
1689 * editfns.c (Fpropertize): Allow call with 1 arg.
1690
1691 * dispextern.h (image_background, image_background_transparent):
1692 Conditionalize on HAVE_X_WINDOWS.
1693
1694 2001-11-13 Richard M. Stallman <rms@gnu.org>
1695
1696 * print.c (Fprin1_to_string): Doc fix.
1697
1698 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
1699
1700 * floatfns.c (Fceiling, Ffloor): Doc fixes.
1701
1702 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
1703
1704 * fileio.c (Ffile_accessible_directory_p): Doc fix.
1705
1706 * eval.c (syms_of_eval): Doc fix.
1707
1708 * coding.c (syms_of_coding): Doc fix.
1709
1710 * doc.c (Fsnarf_documentation): Doc fix.
1711
1712 * dispnew.c (syms_of_display): Doc fix.
1713
1714 * category.c (Fget_unused_category): Doc fix.
1715
1716 * buffer.c (syms_of_buffer): Doc fixes.
1717
1718 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
1719
1720 * print.c (prin1, print): Doc fix.
1721
1722 2001-11-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1723
1724 * fontset.h: Remove declarations of variables
1725 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
1726
1727 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
1728 `Vclip_large_size_font'.
1729
1730 2001-11-13 Jason Rumney <jasonr@gnu.org>
1731
1732 * w32fns.c: Doc fix.
1733
1734 2001-11-13 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1735
1736 * xfaces.c (Fface_attributes_as_vector): Doc fix.
1737
1738 * w32fns.c (Fx_synchronize): Reindent.
1739
1740 * fns.c: Doc fix.
1741
1742 * emacs.c: Doc fix.
1743
1744 * coding.c: Doc fix.
1745
1746 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
1747 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
1748 `new style' [w/`doc:' keyword].
1749
1750 * xmenu.c (x-popup-menu): Reindent.
1751 (x-popup-dialog): Likewise.
1752
1753 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
1754
1755 * xdisp.c (Fdump_tool_bar_row): Reindent.
1756
1757 * minibuf.c (Fminibuffer_complete_word): Reindent.
1758 (Fminibuffer_complete_and_exit): Likewise.
1759 (Fminibuffer_completion_help): Likewise.
1760 (Fminibuffer_message): Likewise.
1761
1762 * fns.c (Freverse): Reindent.
1763
1764 * eval.c (Fif): Reindent.
1765 (Fand): Likewise.
1766
1767 * editfns.c (Fuser_real_login_name): Reindent.
1768 (Finsert_buffer_substring): Likewise.
1769 (Fcompare_buffer_substrings): Likewise.
1770 (Fsubst_char_in_region): Likewise.
1771
1772 * dispnew.c (Fsit_for): Reindent.
1773 (Fframe_or_buffer_changed_p): Likewise.
1774 (Finternal_show_cursor_p): Likewise.
1775 (syms_of_display): Likewise.
1776
1777 * alloc.c (Flist): Reindent.
1778 (Fvector): Likewise.
1779
1780 2001-11-12 Richard M. Stallman <rms@gnu.org>
1781
1782 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
1783 LeaveNotify events. Only FocusIn and FocusOut do that now.
1784 (x_display_and_set_cursor): Do display hollow cursors in active
1785 minibuffer windows when they are not selected.
1786
1787 2001-11-12 Jason Rumney <jasonr@gnu.org>
1788
1789 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
1790 * w32term.c: Change doc-string comments to `new style'.
1791 [w/`doc:' keyword]. Doc fixes.
1792
1793 * w32fns.c: Don't define max.
1794 (Fx_open_connection): Only execute once.
1795
1796 2001-11-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1797
1798 * ccl.c: Change macros to use do-while block instead of if-else.
1799 Use braces to follow GNU Coding Standards.
1800
1801 2001-11-11 Richard M. Stallman <rms@gnu.org>
1802
1803 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
1804
1805 * lread.c (read_escape): Use end_of_file_error for reporting eof.
1806
1807 * insdel.c (replace_range): Use adjust_markers_for_replace
1808 instead of adjust_markers_for_delete and adjust_markers_for_insert.
1809
1810 * intervals.h: Declare set_text_properties and set_text_properties_1.
1811
1812 * textprop.c (set_text_properties_1): New subroutine
1813 broken out of set_text_properties.
1814 (set_text_properties): Use set_text_properties_1.
1815
1816 * intervals.c (graft_intervals_into_buffer):
1817 Use set_text_properties_1 to clear out properties.
1818
1819 * search.c (Freplace_match): Use replace_range to insert
1820 and delete. Don't request property inheritance from
1821 surrounding text.
1822
1823 2001-11-10 Jason Rumney <jasonr@gnu.org>
1824
1825 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
1826 vertical fonts. Allow them if face name is explicitly specified.
1827 Do not give up if we find a font that cannot be converted to an xlfd.
1828
1829 2001-11-10 Gerd Moellmann <gerd@gnu.org>
1830
1831 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
1832 instead of malloc/free.
1833
1834 2001-11-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1835
1836 * xfaces.c (merge_face_vectors): Use braces to follow GNU
1837 Coding Standards.
1838 (Finternal_set_lisp_face_attribute): Likewise.
1839
1840 * buffer.c (Fbury_buffer): Likewise.
1841
1842 * indent.c (current_column_1): Remove unused variable `prev_col'.
1843
1844 * coding.c (encode_coding): Use precomputed value of `src'.
1845 (encode_coding): Remove unused variable `src_end'.
1846 (code_convert_region): Remove unused variables `count'.
1847
1848 2001-11-07 Jason Rumney <jasonr@gnu.org>
1849
1850 * w32term.c (x_display_and_set_cursor): Do not move system caret
1851 if cursor_glyph is NULL.
1852
1853 2001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1854
1855 * keymap.c (access_keymap): Fix compilation error.
1856
1857 2001-11-07 Miles Bader <miles@gnu.org>
1858
1859 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
1860
1861 2001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1862
1863 * intervals.c (graft_intervals_into_buffer):
1864 Remove #ifdef'd-out code.
1865 (graft_intervals_into_buffer): Remove unused variable `middle'.
1866
1867 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
1868 code (eval-current-buffer).
1869 Change doc-string comments to `new style' [w/`doc:' keyword].
1870
1871 2001-11-06 Richard M. Stallman <rms@gnu.org>
1872
1873 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
1874
1875 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
1876
1877 * lread.c (read1): Fix behavior with nested backquoting.
1878
1879 * keyboard.c (make_lispy_event): Check integerness and fix
1880 Lisp_Object/int mixup.
1881
1882 2001-11-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1883
1884 * fns.c (copy_hash_table): Remove unused variable `v'.
1885
1886 * fontset.c (fontset_font_pattern): Remove unused variable
1887 `family_registry'.
1888
1889 * indent.c (current_column_1): Remove unused variable `prev_col'.
1890
1891 2001-11-05 Richard M. Stallman <rms@gnu.org>
1892
1893 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
1894
1895 * buffer.c (Fkill_buffer): Don't delete auto save file
1896 if buffer is modified.
1897
1898 2001-11-05 Andrew Innes <andrewi@gnu.org>
1899
1900 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
1901 CHECK_NUMBER_CDR.
1902
1903 2001-11-05 Richard M. Stallman <rms@gnu.org>
1904
1905 * unexelf.c (unexec): Minor changes; clean up comments.
1906
1907 2001-11-05 Sam Steingold <sds@gnu.org>
1908
1909 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
1910
1911 2001-11-05 Andreas Schwab <schwab@suse.de>
1912
1913 * sound.c (sound_perror): Save errno from being clobbered.
1914
1915 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
1916
1917 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
1918 the program image directly.
1919
1920 2001-11-05 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1921
1922 * buffer.h (Fbuffer_local_value): Add prototype.
1923
1924 2001-11-04 Richard M. Stallman <rms@gnu.org>
1925
1926 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
1927 and CHECK_BUFFER.
1928
1929 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
1930 (record_char): Likewise.
1931
1932 * keyboard.c (make_lispy_event): Don't insist a drag event must
1933 move to a different buffer position. Instead, check for moving at
1934 least double_click_fuzz.
1935
1936 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
1937
1938 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
1939
1940 * indent.c (current_column_1, Fmove_to_column): Separate the code
1941 for display-table glyphs from the code buffer text, to fix
1942 bugs in the former.
1943
1944 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
1945
1946 * buffer.c (Fbuffer_local_value): New function.
1947 (syms_of_buffer): Defsubr it.
1948
1949 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
1950 value of `cursor-in-non-selected-windows'.
1951
1952 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
1953 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
1954 (syms_of_xdisp): Initialize it.
1955
1956 2001-11-04 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1957
1958 * xfns.c (Fx_create_frame): Doc fix.
1959
1960 * coding.c: Change doc-string comments to `new style' [w/`doc:'
1961 keyword].
1962
1963 * eval.c (top_level_value, top_level_set): Remove commented and
1964 #ifdef'd-out code.
1965 (Fdefvar): Fix usage in doc-string.
1966
1967 2001-11-03 Richard M. Stallman <rms@gnu.org>
1968
1969 * xfns.c: Include unistd.h, if it exists.
1970
1971 * editfns.c: Move the include of ctype.h after unistd.h.
1972
1973 * gmalloc.c: Test BROKEN_PROTOTYPES.
1974
1975 2001-11-03 Ken Raeburn <raeburn@gnu.org>
1976
1977 * lisp.h (CHECK_STRING_CAR): New macro.
1978 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
1979 treating XCAR and XCDR as lvalues.
1980 (openp): Use CHECK_STRING_CAR.
1981 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
1982
1983 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
1984
1985 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
1986 (SIGMASKTYPE): Define.
1987
1988 * syssignal.h (sigunblock): Don't define if already defined.
1989
1990 2001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1991
1992 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
1993 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
1994 Fix typos in comments.
1995
1996 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
1997 and #ifdef'd-out code.
1998 Fix and reindent comments.
1999
2000 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
2001
2002 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
2003 argument `i' in macros.
2004
2005 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
2006 `i' in macros.
2007
2008 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
2009 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
2010 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
2011 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
2012 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
2013 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
2014 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
2015 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
2016 in macros.
2017
2018 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
2019 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
2020 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
2021 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
2022 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
2023 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
2024 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
2025 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
2026 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
2027 (remove unused second argument).
2028
2029 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
2030
2031 * syntax.c (describe_syntax): New wrapper.
2032 (Finternal_describe_syntax_value): Rename from describe_syntax.
2033 Don't insert space at front and \n at the end.
2034 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
2035
2036 * regex.c (re_wctype): Try to fix some warnings.
2037 (regcomp, regexec): Don't forget the __restrict.
2038
2039 2001-11-02 Richard M. Stallman <rms@gnu.org>
2040
2041 * textprop.c (Fget_char_property): Doc fix.
2042
2043 2001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2044
2045 * process.c (Fstart_process): Add usage to doc-string.
2046
2047 * data.c (Fsetq_default): Ditto.
2048
2049 * callint.c (Finteractive): Ditto.
2050
2051 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
2052
2053 * macros.c: Don't include keymap.h any more.
2054
2055 2001-11-01 Richard M. Stallman <rms@gnu.org>
2056
2057 * data.c (Fmake_local_variable): Doc fix.
2058
2059 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
2060 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
2061
2062 * keymap.c (Fdescribe_buffer_bindings): Print character property
2063 bindings along with or instead of the buffer local map.
2064 Make the overriding maps override what they should.
2065
2066 2001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2067
2068 * window.c (grow_mini_window): Fix typo in comment.
2069
2070 2001-11-01 Gerd Moellmann <gerd@gnu.org>
2071
2072 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
2073 (XTset_vertical_scroll_bar): Likewise.
2074
2075 * xfns.c (x_build_heuristic_mask): Use four_corners_best
2076 instead of IMAGE_BACKGROUND.
2077
2078 * xfns.c (four_corners_best): Reindent.
2079
2080 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
2081 Handle :box so that it is possible to specify sexprs.
2082
2083 2001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2084
2085 * xfaces.c (Finternal_merge_in_global_face): Reindent.
2086 (Fface_font): Ditto.
2087 (Finternal_set_alternative_font_registry_alist): Ditto.
2088 (Ftty_suppress_bold_inverse_default_colors): Ditto.
2089
2090 * xfns.c (x-get-resource): Reindent.
2091
2092 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
2093
2094 * s/hpux11.h: New file.
2095
2096 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2097
2098 * emacs.c (USAGE1): Show command line option --no-window-system
2099 instead of --no-windows in usage.
2100 (standard_args): Rename --no-windows to --no-window-system.
2101 (bug_reporting_address): Follow Emacs coding conventions.
2102
2103 * eval.c (Fcommandp): Doc fix.
2104 Change doc-string comments to `new style' [w/`doc:' keyword].
2105
2106 * frame.c (Fframe_live_p): Doc fix.
2107
2108 * buffer.c (selective-display-ellipses): Doc fix.
2109
2110 2001-10-31 Gerd Moellmann <gerd@gnu.org>
2111
2112 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
2113
2114 * xfaces.c (realize_x_face): If C is not a single-byte character,
2115 set the face's colors_copied_bitwise_p instead of the defaulted_p
2116 members which have a different meaning.
2117 (free_face_colors): Do nothing for a face whose colors have been
2118 copied bitwise.
2119
2120 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
2121
2122 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2123
2124 * marker.c, mocklisp.c: Change doc-string comments to `new style'
2125 [w/`doc:' keyword].
2126
2127 2001-10-31 Gerd Moellmann <gerd@gnu.org>
2128
2129 * fns.c (require_unwind): Return Lisp_Object.
2130
2131 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2132
2133 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
2134 (last-input-char): Revert doc-string to be the same as the
2135 doc-string of `last-input-event'.
2136
2137 * xdisp.c: Fix typos in comments.
2138
2139 2001-10-31 Gerd Moellmann <gerd@gnu.org>
2140
2141 * window.c (grow_mini_window): Handle case that the root
2142 window is already smaller than the nominal mininum height.
2143
2144 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
2145
2146 * emacs.c (main): Don't call keys_of_macros any more.
2147
2148 * lisp.h (keys_of_macros): Remove.
2149
2150 * macros.c (keys_of_macros): Remove.
2151
2152 * xfaces.c (Fface_attribute_relative_p): Declare args.
2153
2154 2001-10-30 Jason Rumney <jasonr@gnu.org>
2155
2156 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
2157 (enum_font_cb2): Ignore fonts with vertical orientation.
2158
2159 2001-10-30 Richard M. Stallman <rms@gnu.org>
2160
2161 * keyboard.c (Finput_pending_p): Doc fix.
2162
2163 2001-10-30 Gerd Moellmann <gerd@gnu.org>
2164
2165 * xterm.c (x_after_update_window_line): Don't run the code
2166 clearing in borders for rows whose visible height is 0.
2167
2168 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
2169 resized_p flag is set. If not set, use the much less flickering
2170 method previously used.
2171
2172 * dispnew.c (change_frame_size_1): Set frame's resized_p.
2173
2174 * frame.h (struct frame) <resized_p>: New member.
2175
2176 * lread.c (to_multibyte): Ensure read_buffer is at least twice
2177 as large as the number of bytes to convert.
2178
2179 * lread.c (to_multibyte): New function.
2180 (read1): Use it.
2181
2182 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
2183
2184 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
2185
2186 2001-10-30 Gerd Moellmann <gerd@gnu.org>
2187
2188 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
2189 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
2190 if the row's fill_line_p is set and drawing the last glyph with
2191 DRAW_IMAGE_{RAISED,SUNKEN}.
2192
2193 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
2194
2195 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
2196
2197 * xmenu.c: Include coding.h and charset.h.
2198 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
2199 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
2200 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
2201 Explicitly set wv->help. Use `TRUE' rather than `True'.
2202 (menu_help_callback): Use empty_string.
2203
2204 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
2205 (Fx_popup_dialog): Explicitly init f.
2206 (w32_menu_display_help): Use empty_string.
2207
2208 2001-10-29 Richard M. Stallman <rms@gnu.org>
2209
2210 * fns.c (Frequire): Detect recursive try to require the same
2211 feature 3 or more levels deep, and get error.
2212 (require_unwind): New subroutine.
2213 (require_nesting_list): New variable.
2214 (syms_of_fns): Init and staticpro it.
2215
2216 * print.c (print_object): Clarify indication of insertion type.
2217
2218 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
2219
2220 * coding.c (syms_of_coding): Document that locale-coding-system is
2221 used for decoding input on X.
2222
2223 * window.c (Fscroll_left, Fscroll_right): Doc fix.
2224
2225 2001-10-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2226
2227 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
2228 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
2229
2230 2001-10-29 Gerd Moellmann <gerd@gnu.org>
2231
2232 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
2233 use NO_CURSOR if cursor_in_non_selected_windows is false.
2234
2235 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
2236 the slant attribute if FRAME is t.
2237
2238 * xfns.c (x_set_internal_border_width): Set frame garbaged
2239 when X window doesn't exist yet.
2240
2241 * xterm.c (x_after_update_window_line): Clear internal border
2242 in different circumstances.
2243
2244 * xterm.c (XTread_socket) <KeyPress>: Don't use
2245 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
2246 <handa@etl.go.jp>.
2247
2248 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
2249
2250 * m/ibms390.h: New file. From Adam Thornton
2251 <athornton@sinenomine.net>.
2252
2253 2001-10-28 Gerd Moellmann <gerd@gnu.org>
2254
2255 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
2256
2257 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
2258 a loop counter.
2259
2260 2001-10-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2261
2262 * emacs.c: Use argv[0] instead of emacs when -t was specified.
2263
2264 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
2265 keyword].
2266 Fix typos in comments.
2267
2268 * emacs.c (bug_reporting_address): New function.
2269 Use it when displaying usage message.
2270
2271 * minibuf.c (read_minibuf): Remove unused external declaration of
2272 variable `Qread_only'.
2273
2274 * keymap.c (access_keymap): Remove unused variable `charset'.
2275
2276 2001-10-28 Miles Bader <miles@gnu.org>
2277
2278 * xfaces.c (merge_face_heights): Handle TO being relative as well.
2279 Remove #ifdef'd-out code.
2280 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
2281 (syms_of_xfaces): Initialize them.
2282
2283 2001-10-27 Jason Rumney <jasonr@gnu.org>
2284
2285 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
2286 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
2287 position using the system caret.
2288
2289 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
2290 (w32_system_caret_height, w32_system_caret_x)
2291 (w32_system_caret_y): New variables for tracking system caret.
2292 (w32_initialize): Initialize them.
2293 (x_display_and_set_cursor): Make system caret follow the active cursor.
2294
2295 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
2296 New messages types.
2297
2298 * w32term.c (note_mouse_highlight): Clear old help_echo.
2299
2300 2001-10-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2301
2302 * xterm.c: Fix typo in a comment.
2303
2304 * emacs.c: Fix typos in comments.
2305 Remove unnecessary spaces.
2306 Change doc-string comments to `new style' [w/`doc:' keyword].
2307 (USAGE2): Fix typos in usage string.
2308
2309 * xterm.c: Fix typo in a comment.
2310
2311 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
2312 emacs.c.
2313
2314 2001-10-27 Gerd Moellmann <gerd@gnu.org>
2315
2316 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
2317 instead of 1/2 line_height in the heuristic for skipping
2318 farther backward when target_y was not reached.
2319
2320 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
2321 Display errno only if non-zero.
2322 (sound_warning): New function.
2323 (vox_configure): Don't treat failing to set sample rate as error.
2324 (various places): Improve error messages.
2325
2326 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
2327
2328 * fileio.c (Faccess_file): Run the argument filename through
2329 Fexpand_file_name, before using it.
2330
2331 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
2332 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
2333
2334 2001-10-26 Gerd Moellmann <gerd@gnu.org>
2335
2336 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
2337
2338 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2339 Fix clearing in the case of scroll bars on the right.
2340
2341 2001-10-26 Juanma Barranquero <lektu@terra.es>
2342
2343 * w32gui.h (XImage): Add a dummy typedef.
2344
2345 2001-10-26 Gerd Moellmann <gerd@gnu.org>
2346
2347 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
2348
2349 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
2350
2351 * frame.c (Fframe_parameter): Fix last change.
2352
2353 * fileio.c: Revert last change (which removed old commented-out
2354 version of expand-file-name). Add a comment that explains why
2355 this old version should not be removed.
2356
2357 2001-10-25 Gerd Moellmann <gerd@gnu.org>
2358
2359 * frame.c (Fframe_parameter): Fix a bug whereby some
2360 ``artificial'' frame parameters, like `minibuffer' were not
2361 obtained by calling Fframe_parameters.
2362
2363 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
2364 cursor differently.
2365
2366 * xdisp.c (move_it_vertically_backward): Compute line height
2367 differently. Add heuristic to try to be more compatible to 20.x.
2368
2369 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
2370
2371 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
2372
2373 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
2374 boolean.
2375
2376 2001-10-25 Miles Bader <miles@gnu.org>
2377
2378 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
2379 BG is a pointer to a structure, not a structure.
2380 (gif_format, png_format): Add missing commas.
2381
2382 2001-10-24 Richard M. Stallman <rms@gnu.org>
2383
2384 * xfaces.c (Fface_attributes_as_vector): New function.
2385 (syms_of_xfaces): Defsubr it.
2386
2387 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2388
2389 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
2390 variable `area'.
2391
2392 2001-10-25 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2393
2394 * search.c (scan_newline): Remove unused variable `selective_display'.
2395
2396 2001-10-25 Miles Bader <miles@gnu.org>
2397
2398 * dispextern.h (struct image): Add `background',
2399 `background_valid', and `background_transparent' fields.
2400 (image_background, image_background_transparent): New declarations.
2401 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
2402 * xfns.c (image_background, image_background_transparent)
2403 (four_corners_best): New functions.
2404 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
2405 (gs_format): Add `:background' entry.
2406 (lookup_image): Set IMG's background color if specified.
2407 (pbm_load, xbm_load_image, png_load): Set IMG's background field
2408 when appropriate.
2409 (x_clear_image_1): Reset `background_valid' and
2410 `background_transparent_valid' fields.
2411 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
2412 calculating it here. Set IMG's background_transparent field.
2413 (enum xpm_keyword_index): Add XPM_BACKGROUND.
2414 (enum png_keyword_index): Add PNG_BACKGROUND.
2415 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
2416 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
2417 (enum gif_keyword_index): Add GIF_BACKGROUND.
2418 (enum gs_keyword_index): Add GS_BACKGROUND.
2419 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
2420 Pre-calculate image background color where necessary.
2421 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
2422 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
2423 color to use for image glyph reliefs.
2424
2425 2001-10-24 Gerd Moellmann <gerd@gnu.org>
2426
2427 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
2428 in full-width rows.
2429
2430 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2431 Fix clearing of area not covered by scroll bar.
2432
2433 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2434
2435 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
2436 and `real_start'.
2437 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2438 (glyph_rect): Remove unused variable `area'.
2439
2440 2001-10-24 Gerd Moellmann <gerd@gnu.org>
2441
2442 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
2443
2444 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
2445 (row_containing_pos): Take additional argument DY.
2446 Treat rows ending in middle of char differently.
2447 (display_line): Handle tabs on window systems differently.
2448
2449 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
2450 with additional argument.
2451
2452 * dispextern.h (row_containing_pos): Adjust prototype.
2453
2454 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
2455 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
2456 (try_window_id, try_window_reusing_current_matrix)
2457 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
2458 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
2459
2460 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2461
2462 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
2463 gnuemacs).
2464 (HAVE_BOXES): Fix typo in comment.
2465 (push_menu_pane): Fix typo in comment.
2466
2467 * xdisp.c: (display_prop_string_p): Remove unused local declaration
2468 of `Qwhen'.
2469 (single_display_prop_string_p): Remove unused local declarations
2470 of `Qwhen' and `Qmargin'.
2471 (string_buffer_position): Remove unused variable `around'.
2472 (store_frame_title): Remove unused variable `width'.
2473
2474 * window.c: Don't define max.
2475 (coordinates_in_window): Remove unused variable `uy'.
2476
2477 * widget.c: Don't define max.
2478
2479 * process.c: Don't define max.
2480 (create_process): Remove unused variable `buffer'.
2481
2482 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2483
2484 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
2485
2486 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
2487
2488 * xfaces.c (Finternal_set_lisp_face_attribute)
2489 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
2490 frame is on a windowed display.
2491
2492 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2493
2494 * dispnew.c (sync_window_with_frame_matrix_rows):
2495 Fix handling of windows which aren't full-width, fix handling
2496 of marginal areas.
2497
2498 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
2499
2500 2001-10-23 Andreas Schwab <schwab@suse.de>
2501
2502 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
2503 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
2504
2505 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2506
2507 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
2508 REAL_END. Notice if cursor gets overwritten.
2509 (notice_overwritten_cursor): Take X positions as parameters.
2510 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
2511 around call to x_draw_glyphs.
2512
2513 2001-10-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2514
2515 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
2516 instead of C) and usage.
2517
2518 * editfns.c (char-to-string): Fix argument names (use CHAR instead
2519 of C) and usage.
2520
2521 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
2522 `left', `max_width' and `max_height'.
2523
2524 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2525
2526 * xdisp.c (display_line): For a tab continued to the next line,
2527 set row's ends_in_middle_of_char_p.
2528
2529 2001-10-22 Gerd Moellmann <gerd@gnu.org>
2530
2531 * xdisp.c (display_line): Fix computation of continuation lines
2532 width for TABs.
2533
2534 2001-10-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2535
2536 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
2537 `Qlaplace'.
2538
2539 * fileio.c: Remove unused code.
2540
2541 2001-10-22 Miles Bader <miles@gnu.org>
2542
2543 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
2544 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
2545 Remove `DOC_STRINGS_IN_COMMENTS' cases.
2546
2547 2001-10-21 Jason Rumney <jasonr@gnu.org>
2548
2549 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
2550
2551 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
2552
2553 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
2554 (Finsert_string): Avoid the multi-line string literals warning.
2555
2556 2001-10-22 Miles Bader <miles@gnu.org>
2557
2558 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
2559 (Fdocumentation): Don't use it.
2560 (syms_of_doc): Don't initialize it.
2561
2562 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
2563 * print.c (Fwith_output_to_temp_buffer): Likewise.
2564 * window.c (Fsave_window_excursion): Likewise.
2565 * editfns.c (Fsave_excursion, Fsave_current_buffer)
2566 (Fsave_restriction): Likewise.
2567 * eval.c (Frun_hooks, Frun_hook_with_args)
2568 (Frun_hook_with_args_until_failure)
2569 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
2570 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
2571 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
2572 (Funwind_protect, Fcondition_case): Likewise.
2573 * coding.c (Ffind_operation_coding_system): Likewise.
2574 * keyboard.c (Ftrack_mouse): Likewise.
2575
2576 2001-10-21 Miles Bader <miles@gnu.org>
2577
2578 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
2579 (Fmake_hash_table): Add usage: string to doc string.
2580 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
2581 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
2582 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
2583 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
2584 (Fml_prefix_argument_loop): Likewise.
2585
2586 2001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2587
2588 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
2589
2590 * sysdep.c (init_sys_modes): Change doc-string comments to `new
2591 style' [w/`doc:' keyword].
2592
2593 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
2594 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
2595 comments to `new style' [w/`doc:' keyword].
2596
2597 2001-10-21 Jason Rumney <jasonr@gnu.org>
2598
2599 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
2600
2601 * w32term.c (remember_mouse_glyph): New function.
2602 (w32_mouse_position): Use it.
2603 (note_mouse_movement): If the mouse moved off the glyph, remember
2604 its new position.
2605
2606 * w32term.h (struct w32_output): Correct spelling of x_compatible.
2607 (w32_display_info): Add mouse_face_overlay.
2608
2609 * w32term.c (notice_overwritten_cursor): Renamed from
2610 note_overwritten_text_cursor. Rewritten to take glyph widths into
2611 account.
2612 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
2613 (fast_find_string_pos): New function.
2614 (fast_find_position): Return the correct vpos. Add parameter
2615 STOP. In the final row, stop before glyphs having STOP as object.
2616 Don't consider glyphs that are not from a buffer.
2617 (fast_find_position) [0]: Add a presumably more correct version
2618 for after 21.1.
2619 (expose_window_tree, expose_frame): Don't compute intersections here.
2620 (expose_window): Do it here instead.
2621 (expose_window_tree, expose_window, expose_line): Return 1 when
2622 overwriting mouse-face.
2623 (expose_window): If W is the window currently being updated, mark
2624 the frame garbaged.
2625 (expose_frame): If mouse-face was overwritten, redo it.
2626 (x_use_underline_position_properties): New variable.
2627 (syms_of_xterm): DEFVAR_BOOL it.
2628 (x_draw_glyph_string): Add comment to use it in future.
2629 (x_draw_glyph_string): Restore clipping after drawing box.
2630 Fix a computation of the underline position.
2631 (w32_get_glyph_string_clip_rect): Minor cleanup.
2632 (x_fill_stretch_glyph_string): Remove an assertion.
2633 (x_produce_glyphs): Don't convert multibyte characters
2634 to unibyte characters in unibyte buffers.
2635 (cursor_in_mouse_face_p): New function.
2636 (x_draw_stretch_glyph_string): Use it to choose a different GC
2637 when drawing a cursor within highlighted text. Don't draw
2638 background again if it has already been drawn.
2639 (x_draw_glyph_string_box): Don't draw a full-width
2640 box just because the glyph row's full_width_p flag is set.
2641 (x_draw_glyphs): Fix computation of rightmost x for
2642 full-width rows.
2643 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
2644 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
2645 change bottom shadow accordingly. Some cleanup.
2646 (x_update_window_end): Handle overwritten mouse face
2647 also for tool bar windows.
2648 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
2649 DRAW is DRAW_IMAGE_RAISED.
2650 (clear_mouse_face): Return 1 if text with mouse face was
2651 actually redrawn. Make the function static. Reset
2652 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
2653 optimize away highlighting if we pass over that same overlay again.
2654 (note_mouse_highlight): Call mouse_face_overlay_overlaps
2655 to detect a case where we have to highlight a different region
2656 despite not having left the currently highlighted region.
2657 Set mouse_face_overlay in the x_display_info. Avoid changing the
2658 mouse pointer shape when show_mouse_face has already done it, or
2659 there is no need. Handle mouse-face and help-echo in strings.
2660 (glyph_rect): New function.
2661 (w32_mouse_position): Use it to raise the threshold for mouse
2662 movement event generation.
2663 (w32_initialize_display_info): Initialize the x_display_info's
2664 mouse_face_overlay.
2665 (w32_set_vertical_scroll_bar): Don't clear a zero height
2666 or width area.
2667 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
2668 a widget to zero height.
2669
2670 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
2671 Protect unibyte strings created by replacing their multibyte
2672 equivalents in menu_items.
2673 (w32_menu_show): Don't overwrite an item's name with its key
2674 description in case the description is a multibyte string.
2675 (single_submenu): Some cleanup.
2676
2677 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
2678 (postprocess_image): New function.
2679 (lookup_image): Call it for all image types except PostScript.
2680 (x_kill_gs_process): Call postprocess_image.
2681 (tiff_error_handler, tiff_warning_handler): New functions.
2682 (tiff_load): Install them as handlers.
2683 (x_kill_gs_process): Recognize if someone has cleared the image
2684 cache under us.
2685 (valid_image_p): Protect better against invalid image
2686 specifications. Previous code could signal an error.
2687 (Fx_hide_tip, Fshow_tip): Doc fix.
2688 (Fv_max_tooltip_size): New variable.
2689 (syns_of_xfns): DEFVAR_LISP it.
2690 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
2691 window buffer to *tip* right after creating the frame. Set frame's
2692 window_width. Use a maximum tooltip size specified by
2693 Vx_max_tooltip_size, if that has valid contents.
2694 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
2695 Make sure the tooltip is completely visible.
2696 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
2697 (Fx_create_frame): Adjust the frame's height for presence
2698 of the tool bar before calling x_figure_window_size.
2699 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
2700 when the window gets smaller.
2701 (x_set_foreground_color): Set frame's cursor_pixel.
2702 (x_set_foreground_color, x_set_background_color): Cleaned up.
2703 (x_set_font): Handle case of x_new_fontset returning the same name
2704 as before, although there was a change in fontsets.
2705
2706 2001-10-21 Miles Bader <miles@gnu.org>
2707
2708 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
2709 (Flogxor): Add usage: string to doc string.
2710 * charset.c (Fstring): Likewise.
2711 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
2712 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
2713
2714 2001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2715
2716 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
2717
2718 * alloc.c: Reindent DEFUNs with doc: keywords.
2719
2720 * abbrev.c (Finsert_abbrev_table_description): Reindent.
2721
2722 * frame.c: Change doc-string comments to `new style' [w/`doc:'
2723 keyword].
2724
2725 2001-10-20 Gerd Moellmann <gerd@gnu.org>
2726
2727 * (Version 21.1 released.)
2728
2729 2001-10-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2730
2731 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
2732
2733 * xdisp.c (invisible_text_between_p): Put prototype inside #if
2734 0 because unused.
2735
2736 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
2737 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
2738 Change doc-string comments to `new style' [w/`doc:' keyword].
2739
2740 2001-10-20 Miles Bader <miles@gnu.org>
2741
2742 The following changes remove the glyph_row `inverse_p' field,
2743 which is never set anymore, due to other changes:
2744
2745 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
2746 (reassert_line_highlight, change_line_highlight): Declarations removed.
2747 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
2748 (line_hash_code, row_equal_p, fake_current_matrices)
2749 (build_frame_matrix_from_leaf_window, update_frame_line)
2750 (update_frame_line, update_frame_line, update_frame_line):
2751 Don't use `inverse_p' field.
2752 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
2753 change_line_highlight_hook.
2754 (XTreassert_line_highlight, x_change_line_highlight):
2755 Functions removed.
2756 (x_fix_overlapping_area, x_write_glyphs, expose_area)
2757 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
2758 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
2759 `inverse_p' field.
2760 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
2761 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
2762 (w32_reassert_line_highlight, x_change_line_highlight):
2763 Functions removed.
2764 * w32console.c (reassert_line_highlight, change_line_highlight):
2765 Functions removed.
2766 (initialize_w32_display): Don't set reassert_line_highlight_hook
2767 or change_line_highlight_hook.
2768 (hl_mode): Function removed.
2769 (reset_terminal_modes, set_terminal_modes, update_begin)
2770 (update_end, w32_face_attributes, initialize_w32_display):
2771 (clear_frame, ins_del_lines): Don't call it.
2772 * termhooks.h (reassert_line_highlight_hook)
2773 (change_line_highlight_hook): Declarations removed.
2774 * term.c (reassert_line_highlight_hook)
2775 (change_line_highlight_hook): Variables removed.
2776 (reassert_line_highlight, change_line_highlight): Functions removed.
2777 * msdos.c (IT_reassert_line_highlight)
2778 (IT_change_line_highlight): Functions removed.
2779 (internal_terminal_init): Don't set reassert_line_highlight_hook
2780 or change_line_highlight_hook.
2781 (highlight): Variable removed.
2782 (IT_set_face, IT_update_begin, IT_update_end)
2783 (IT_set_terminal_modes): Don't set or use it.
2784
2785 The following changes remove inverse-video support for terminals
2786 that use a `magic cookie' standout mode. Due to changes in the
2787 way mode-lines are displayed, such support no longer works
2788 anyway, and it's probable that almost no one uses such terminals
2789 anymore:
2790
2791 * term.c (standout_requested): Variable removed.
2792 (update_end, highlight_if_desired): Don't use it.
2793 (chars_wasted, copybuf): Variables removed.
2794 (write_standout_marker): Function removed.
2795 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
2796 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
2797 Don't use `chars_wasted' or `copybuf'.
2798 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
2799 Set `costs_set' to true.
2800 (cursor_to, clear_end_of_line): Test `costs_set' instead of
2801 `chars_wasted'.
2802 (clear_end_of_line): Function removed.
2803 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
2804 (clear_to_end): Call `clear_end_of_line' instead of
2805 `clear_end_of_line_raw'.
2806 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
2807 (term_init): Don't set them.
2808 Turn off any standout/underline modes that require magic cookies.
2809 (ins_del_lines, highlight_if_desired, background_highlight)
2810 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
2811 Remove special processing for magic-cookie standout modes.
2812 (turn_off_face, turn_on_face): Remove special processing for
2813 underline magic-cookie glitch.
2814
2815 2001-10-19 Richard M. Stallman <rms@gnu.org>
2816
2817 * eval.c (syms_of_eval): Doc fixes.
2818
2819 2001-10-19 Gerd Moellmann <gerd@gnu.org>
2820
2821 * xdisp.c (redisplay_internal): Don't clear echo area if the
2822 mini-window is selected.
2823
2824 2001-10-19 Miles Bader <miles@gnu.org>
2825
2826 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
2827 doesn't take precedence if the affected property's value is nil.
2828
2829 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
2830
2831 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
2832 with fields and suggest using `forward-line' to avoid them.
2833 * editfns.c (Fline_beginning_position, Fline_end_position):
2834 Clarify documentation.
2835
2836 2001-10-18 Stefan Monnier <monnier@cs.yale.edu>
2837
2838 * keymap.c (current_minor_maps): `override' only shadows its
2839 correspondent in minor-mode-map-alist, not the whole tail.
2840
2841 2001-10-18 Andrew Innes <andrewi@gnu.org>
2842
2843 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
2844 optimization. The fontp->encoding array was not being initialized
2845 correctly when compiled with optimizations by MSVC.
2846
2847 2001-10-18 Gerd Moellmann <gerd@gnu.org>
2848
2849 * xdisp.c (display_line): Indicate empty lines in active mini-window.
2850
2851 2001-10-17 Andrew Innes <andrewi@gnu.org>
2852
2853 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
2854
2855 * w32fns.c (w32_load_system_font): Cache codepage for font, in
2856 font_info.charset field.
2857
2858 * w32term.c (w32_encode_char): Get cached codepage from font_info,
2859 rather than working it out by calling w32_codepage_for_font for
2860 every glyph.
2861
2862 2001-10-17 Andrew Innes <andrewi@gnu.org>
2863
2864 * w32term.c (w32_read_socket): Determine clipping rectangle for
2865 the entire frame, including areas covered by scrollbars and the
2866 menubar. This avoids internal arguments about whether a frame is
2867 fully obscured or not.
2868
2869 2001-10-17 Gerd Moellmann <gerd@gnu.org>
2870
2871 * xdisp.c (try_window_id): Undo last change. Give up if
2872 window ends in strings.
2873
2874 * xdisp.c (try_window_id): Don't display lines after the window
2875 end if the rest of the window after the window end was already blank.
2876
2877 * xdisp.c (try_window_id): Remove code that was only there
2878 for the release of 21.1.
2879
2880 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
2881
2882 2001-10-17 Miles Bader <miles@gnu.org>
2883
2884 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
2885 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
2886 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
2887 Change doc-string comments to `new style' [w/`doc:' keyword].
2888 (DOC_STRINGS_IN_COMMENTS): Macro removed.
2889 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
2890 out make-docfile.
2891
2892 2001-10-16 Miles Bader <miles@gnu.org>
2893
2894 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
2895
2896 2001-10-16 Gerd Moellmann <gerd@gnu.org>
2897
2898 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
2899 *scratch*.
2900
2901 2001-10-16 Ken Raeburn <raeburn@gnu.org>
2902
2903 Avoid the assumption that car and cdr slots of cons cells are
2904 addressable lvalues; this allows for easier experimentation with
2905 other lisp implementations that may not permit such accesses for
2906 various reasons. Not quite complete -- buffer.c still needs some
2907 work, and w32/mac files need rechecking -- so compile-time
2908 enforcement is left disabled for now.
2909
2910 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
2911 gcc with a union-based Lisp object rep. Redefine as no-op for now.
2912 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
2913 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
2914 (XSETCAR, XSETCDR): New macros.
2915 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
2916 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
2917 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
2918 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
2919 XSETCDR.
2920 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
2921 * buffer.c (record_buffer, Fbury_buffer)
2922 (swap_out_buffer_local_variables, recenter_overlay_lists)
2923 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
2924 fields of a cons cell respectively.
2925 * callint.c (quotify_args, Fcall_interactively): Likewise.
2926 * ccl.c (Fregister_code_conversion_map): Likewise.
2927 * coding.c (detect_coding_system): Likewise.
2928 * composite.c (get_composition_id, make_composition_value_copy):
2929 Likewise.
2930 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
2931 (swap_in_symval_forwarding, set_internal, Fset_default)
2932 (Fmake_variable_buffer_local, Fmake_local_variable)
2933 (Fmake_variable_frame_local): Likewise.
2934 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
2935 * keymap.c (Fset_keymap_parent, store_in_keymap)
2936 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
2937 * minibuf.c (get_minibuffer): Likewise.
2938 * search.c (Fmatch_data): Likewise.
2939 * textprop.c (extend_property_ranges): Likewise.
2940 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
2941 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
2942 Likewise.
2943 * w32term.c (x_delete_display): Likewise.
2944 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
2945 Likewise.
2946 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
2947 * doc.c (store_function_docstring): Use XSETCARFASTINT.
2948 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
2949 (Fread_file_name): Use XSETCAR.
2950 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
2951 CHECK_NUMBER_CDR.
2952 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
2953 * frame.c (Fmake_terminal_frame): Use XSETCDR.
2954 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
2955 CHECK_NUMBER_CDR.
2956 * keyboard.c (read_char): Alter list traversal to avoid taking the
2957 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
2958 (parse_menu_item): Use XSETCAR and XSETCDR.
2959 (reach_char_x_menu_prompt): Use XSETCAR.
2960 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
2961 (Fcommand_execute): Use XSETCDR.
2962 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
2963 (openp): Change list traversal to avoid using XCAR as lvalue.
2964 (read_list): Use XSETCDR.
2965 * process.c (wait_reading_process_input): Change wait_for_cell
2966 handling to avoid taking addresses of cons cell slots.
2967 * xselect.c (x_own_selection, x_handle_selection_clear)
2968 (x_clear_frame_selections): Use XSETCDR.
2969 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
2970 (x_handle_property_notify, x_get_foreign_selection)
2971 (x_handle_selection_notify): Use XSETCAR.
2972
2973 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2974
2975 * buffer.c: Put doc strings in comments.
2976
2977 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
2978
2979 2001-10-15 Sam Steingold <sds@gnu.org>
2980
2981 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
2982
2983 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2984
2985 * process.c (process-inherit-coding-system-flag)
2986 (get-buffer-process): Do not confuse make-docfile with doc strings
2987 in comment.
2988
2989 * editfns.c (Fchar_to_string): Make doc string consistent with
2990 arguments. Put doc strings in comments.
2991
2992 * abbrev.c, minibuf.c: Put doc strings in comments.
2993
2994 2001-10-15 Gerd Moellmann <gerd@gnu.org>
2995
2996 * window.c (window_loop): Don't check for Fother_buffer returning nil.
2997
2998 * window.c (select_window_1): Unfreeze window start. Remove a
2999 doubled test for WINDOW being live.
3000
3001 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3002
3003 * fns.c (Fmapconcat): Fix typo in a doc string.
3004
3005 * dispnew.c (Fsleep_for): Fix typo in a doc string.
3006
3007 2001-10-15 Gerd Moellmann <gerd@gnu.org>
3008
3009 * xterm.c (x_draw_glyph_string): Restore clipping after
3010 drawing box.
3011
3012 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3013
3014 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
3015
3016 2001-10-14 Stefan Monnier <monnier@cs.yale.edu>
3017
3018 * indent.c (skip_invisible): Use new retval of
3019 TEXT_PROP_MEANS_INVISIBLE.
3020
3021 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
3022 If a parent is reached and noinherit is set, exit immediately.
3023 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
3024
3025 * s/ms-w32.h (EXEC_SUFFIXES):
3026 * s/msdos.h (EXEC_SUFFIXES):
3027 * process.h (EXEC_SUFFIXES): Remove.
3028
3029 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
3030 (decode_suffixes): Remove.
3031
3032 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
3033 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
3034 (invisible_ellipsis_p): Remove.
3035
3036 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
3037 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
3038 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
3039 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
3040 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
3041
3042 2001-10-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3043
3044 * lisp.h (Ftop_level): Add prototype.
3045
3046 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
3047 (XTread_socket): Improve style of comments to follow other
3048 comments.
3049
3050 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
3051 is already prototyped in included lisp.h).
3052
3053 * frame.c (Fset_mouse_position): Improve style of comment to
3054 follow other comments.
3055 (Fset_mouse_pixel_position): Improve style of comment to follow
3056 other comments.
3057 (Fmake_frame_visible): Doc fix and typo in comment.
3058 (Fmake_frame_invisible): Doc fix and typo in comment.
3059 (Ficonify_frame): Fix typo in comment.
3060
3061 2001-10-14 Gerd Moellmann <gerd@gnu.org>
3062
3063 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
3064 * term.c, alloc.c: Put doc strings in comments.
3065
3066 2001-10-13 Gerd Moellmann <gerd@gnu.org>
3067
3068 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
3069 Provide definitions for doc strings in comments.
3070
3071 * fns.c: Put doc strings in comments.
3072
3073 2001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
3074
3075 * dired.c (file_name_completion): Ignore a candidate directory if
3076 it matches an element in completion-ignored-extensions that ends
3077 in a slash.
3078 (syms_of_dired) <completion-ignored-extensions>: Mention the above
3079 feature in the doc string.
3080 (Ffile_name_completion): Ditto.
3081
3082 2001-10-12 Stefan Monnier <monnier@cs.yale.edu>
3083
3084 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
3085
3086 * xfns.c (syms_of_xfns): Update calls to Fprovide.
3087
3088 * lisp.h (Fprovide): Update prototype.
3089 (Ffeaturep, invisible_p): Remove.
3090
3091 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
3092 (DOLIST, LOOP_PROPVAL): New macros.
3093 (invisible_p, invisible_ellipsis_p): Use them.
3094 (invisible_noellipsis_p): New function.
3095 (syms_of_xdisp): Use empty_string.
3096
3097 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
3098
3099 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
3100 (syms_of_lread) <Vafter_load_alist>: Update docstring.
3101
3102 * print.c (Fwith_output_to_temp_buffer): Align with
3103 internal_with_output_to_temp_buffer.
3104 (print_preprocess): Use traverse_intervals_noorder.
3105 (print_object): Update call to traverse_intervals.
3106
3107 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
3108 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
3109
3110 * intervals.c (traverse_intervals_noorder): New function.
3111 (search_for_interval, count_intervals): Use it.
3112 (traverse_intervals): Use less stack space and drop `depth' arg.
3113
3114 * fns.c (Ffeaturep): Add new `subfeature' arg.
3115 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
3116 (Qsubfeatures): New var.
3117 (syms_of_fns): Initialize it.
3118
3119 * keymap.c (Fkey_description): Use empty_string.
3120 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
3121 (syms_of_keymap): Setup inheritance between maps.
3122 Don't export Sdescribe_bindings_internal any more.
3123
3124 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
3125
3126 2001-10-12 Gerd Moellmann <gerd@gnu.org>
3127
3128 * xterm.c (notice_overwritten_cursor): Renamed from
3129 note_overwritten_text_cursor. Rewritten to take glyph widths into
3130 account.
3131
3132 2001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
3133
3134 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
3135 multi-line strings without a trailing "\n\".
3136
3137 2001-10-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3138
3139 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
3140 defined.
3141
3142 2001-10-11 Stefan Monnier <monnier@cs.yale.edu>
3143
3144 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
3145
3146 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
3147 * w32proc.c (sys_spawnve):
3148 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
3149 * w32.c (check_windows_init_file):
3150 * sound.c (Fplay_sound):
3151 * emacs.c (init_cmdargs):
3152 * process.c (Fstart_process): Update calls to openp.
3153
3154 * callproc.c (Vexec_suffixes): New var.
3155 (Fcall_process): Update call to openp.
3156 (decode_suffixes): New function.
3157 (syms_of_callproc): Init exec-suffixes.
3158
3159 * lread.c (Vload_suffixes, default_suffixes): New vars.
3160 (openp): Take a lisp list of suffixes.
3161 Check for file-name-handlers even if the file was absolute already.
3162 (syms_of_lread): Declare load-suffixes.
3163 (Fload): Fix up call to openp.
3164 Don't bother checking for file-name-handler at the very beginning.
3165
3166 * keymap.h (Fcopy_keymap): Don't export.
3167
3168 * lisp.h (empty_string): Declare.
3169 (Vload_suffixes, Vexec_suffixes): Declare.
3170 (openp): Update prototype.
3171
3172 * emacs.c (empty_string): New var.
3173 (syms_of_emacs): Initialize it.
3174
3175 * search.c (wordify): Use it.
3176
3177 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
3178 selected window if it's not displayed there. Handle the case
3179 when the window is dedicated.
3180 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
3181
3182 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
3183
3184 * syntax.h (struct gl_state_s): Change the meaning of b_property.
3185 Remove left_ok and right_ok.
3186 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
3187 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
3188 new meaning of b_property.
3189
3190 * syntax.c (update_syntax_table): Simplify.
3191 (Fforward_comment): Don't skip quoted chars when going backward.
3192
3193 2001-10-11 Gerd Moellmann <gerd@gnu.org>
3194
3195 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
3196 in case I is of some unsigned type, in which case
3197 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
3198 comparison becomes bogus.
3199
3200 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
3201 (Fuser_full_name): Fix bug treating a float as a fixnum.
3202
3203 * data.c (Fstring_to_number): Use make_fixnum_or_float.
3204
3205 * lisp.h (make_fixnum_or_float): New macro.
3206
3207 * lisp.h (circular_list_error): Add prototype.
3208
3209 * data.c (Qcircular_list): New variable.
3210 (circular_list_error): New function.
3211 (syms_of_data): Initialize it Qcircular_list.
3212
3213 2001-10-10 Stefan Monnier <monnier@cs.yale.edu>
3214
3215 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c
3216 * casefiddle.c, buffer.c: Include keymap.h.
3217
3218 2001-10-10 Gerd Moellmann <gerd@gnu.org>
3219
3220 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
3221 options. From Dave Love <d.love@dl.ac.uk>.
3222
3223 2001-10-09 Gerd Moellmann <gerd@gnu.org>
3224
3225 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
3226 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
3227
3228 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
3229 unsigned char.
3230 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
3231
3232 2001-10-08 Andrew Innes <andrewi@gnu.org>
3233
3234 * lisp.h [max]: Undef min and max before redefining them.
3235
3236 * w32gui.h: Do not undef min and max.
3237
3238 * w32heap.h: Do not undef min and max.
3239
3240 * s/ms-w32.h: Do not undef min and max.
3241
3242 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
3243
3244 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
3245
3246 2001-10-08 Sam Steingold <sds@gnu.org>
3247
3248 * keymap.c (current-active-maps): Quote newlines (compilation error).
3249
3250 2001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
3251
3252 * Makefile.in (lisp, shortlisp): Replace bindings.el with
3253 bindings.elc, since otherwise doc strings in bindings.el get wrong
3254 offsets in etc/DOC.
3255
3256 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
3257
3258 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
3259
3260 * keyboard.h (map_prompt): Remove.
3261
3262 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
3263 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
3264
3265 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
3266
3267 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
3268
3269 * keyboard.c (map_prompt): Remove.
3270 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
3271 Use Fkeymap_prompt.
3272
3273 * keymap.h: New file. Extracted from lisp.h.
3274
3275 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
3276 (accessible_keymaps_1): New function.
3277 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
3278 (Fwhere_is_internal): Use Fcurrent_active_maps.
3279 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
3280 Insert in current buffer rather than standard-output.
3281 Don't call `help-mode'. Export to elisp.
3282 (describe_buffer_bindings): New wrapper.
3283 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
3284 and Sdescribe_buffer_bindings.
3285
3286 2001-10-08 Gerd Moellmann <gerd@gnu.org>
3287
3288 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
3289 Remove code setting signal handler.
3290
3291 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
3292 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
3293
3294 2001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3295
3296 * keyboard.c: Don't define min/max.
3297
3298 2001-10-08 Gerd Moellmann <gerd@gnu.org>
3299
3300 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
3301 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
3302 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
3303 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
3304 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
3305 Don't define min/max.
3306
3307 * lisp.h (min, max): New macros.
3308
3309 * puresize.h (BASE_PURESIZE): Increase to 725000.
3310
3311 2001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3312
3313 * xfaces.c (free_frame_menubar): Add prototype.
3314
3315 * lisp.h (init_window): Add prototype.
3316
3317 * editfns.c: Include ctype.h.
3318
3319 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
3320 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
3321 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
3322 variable `sb'.
3323
3324 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
3325 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
3326 `popup_activated_flag' and `title'.
3327
3328 * doc.c (Fdocumentation_property): Fix typo in a doc string.
3329
3330 * emacs.c (main): Remove extra `;'.
3331
3332 * atimer.h (struct atimer): Fix typos in a comment.
3333
3334 * atimer.c: Fix typo.
3335
3336 * Makefile.in: Fix typo.
3337
3338 * README: Remove obsolete part mentioning removed VMS file.
3339
3340 2001-10-07 Miles Bader <miles@gnu.org>
3341
3342 * Makefile.in (lisp, shortlisp): Add `button.elc'.
3343
3344 2001-10-07 Ken Raeburn <raeburn@gnu.org>
3345
3346 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
3347 Lisp_Object.
3348
3349 * lisp.h (Ffield_end): Declare.
3350
3351 2001-10-07 Gerd Moellmann <gerd@gnu.org>
3352
3353 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
3354
3355 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
3356
3357 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
3358
3359 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
3360
3361 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
3362 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
3363
3364 * alloc.c (inhibit_garbage_collection): Simplify.
3365 (Fmemory_use_counts): Ditto.
3366
3367 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
3368 (syms_of_data): DEFVAR_INT most-positive-fixnum and
3369 most-negative-fixnum.
3370
3371 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
3372 (FIXNUM_OVERFLOW_P): New macros.
3373
3374 2001-10-06 Miles Bader <miles@gnu.org>
3375
3376 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
3377 scroll_bar_bottom_shadow_pixel fields.
3378 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
3379 for the shadows, and tell the toolkit about them if we succeed.
3380 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
3381 Free scroll-bar shadow colors.
3382 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
3383 Free scroll-bar shadow colors when the background color changes.
3384 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
3385 Initialize scroll-bar shadow-color fields.
3386
3387 2001-10-05 Gerd Moellmann <gerd@gnu.org>
3388
3389 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
3390
3391 2001-10-05 Miles Bader <miles@gnu.org>
3392
3393 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
3394 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
3395 New functions (were in simple.el).
3396 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
3397 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
3398 (syms_of_minibuf): Initialize them.
3399
3400 2001-10-05 Gerd Moellmann <gerd@gnu.org>
3401
3402 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
3403 (tiff_load): Install them as error and warning handler.
3404
3405 2001-10-04 Andrew Innes <andrewi@gnu.org>
3406
3407 * w32fns.c (x_to_w32_color): Fix argument to alloca.
3408 (w32_load_system_font): Don't believe what GetLanguageFontInfo
3409 says; query codepage info directly to determine if font is double byte.
3410 (x_to_w32_charset): Handle private format for unknown charsets.
3411 Handle wildcards in charset spec, by ignoring them.
3412 (w32_codepage_for_font): Fix argument to alloca. Don't remove
3413 "*-" prefix from charset.
3414 (x_to_w32_font): Enlarge remainder array for safety. Specifically
3415 handle the truncated font spec form constructed by font_list_1, so
3416 that we correctly identify the charset fields. Don't remove "*-"
3417 prefix from charset.
3418 (w32_list_synthesized_fonts): Fix argument to alloca.
3419
3420 2001-10-04 Stefan Monnier <monnier@cs.yale.edu>
3421
3422 * window.h (MINI_WINDOW_P): Use NILP.
3423
3424 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
3425
3426 * termhooks.h (struct input_event): Use proper type for `kind'.
3427
3428 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3429
3430 This handles unknown keysyms better than before. For example,
3431 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
3432 Emacs formerly completely ignored F5. With the change, it derives
3433 a key symbol from the name of the X keysym, `ccaron' in this case.
3434 Reported by Martin Buchholz.
3435
3436 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
3437 unknown keysyms.
3438
3439 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
3440 that EVENT->code isn't a function key, use the keysym's name.
3441
3442 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3443
3444 FOREACH is a macro that should make it easier to loop over Lisp
3445 lists with checks for cycles and proper lists.
3446
3447 * lisp.h (LIST_END_P, FOREACH): New macros.
3448
3449 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3450
3451 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
3452 called for a lost connection. Prevent dumping core in this case.
3453 Instead print the X error, and exit. On user request.
3454
3455 * xterm.c (error_msg): New variable.
3456 (x_fatal_error_signal): New function.
3457 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
3458 as fatal_error_signal_hook around the call to XtCloseDisplay.
3459
3460 * emacs.c (fatal_error_signal_hook): New variable.
3461 (fatal_error_signal): Call that function.
3462
3463 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3464
3465 With this, Emacs prints how much pure storage it will
3466 approximately need in case pure storage overflows while dumping.
3467
3468 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
3469 New variables.
3470 (init_alloc_once): Initialize new variables.
3471 (PURE_POINTER_P): Use new variables.
3472 (pure_alloc): If pure storage overflows, allocate from the heap.
3473 (check_pure_size): New function.
3474 (Fgarbage_collect): Don't GC if pure storage has overflowed.
3475
3476 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
3477 (check_pure_size): Add prototype.
3478
3479 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
3480
3481 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3482
3483 This adds a post-gc-hook that's run with GC inhibited.
3484 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
3485
3486 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
3487 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
3488 (Fgarbage_collect): Run post-gc-hook.
3489
3490 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3491
3492 This adds `defvaralias' and `indirect-variable'. Changes not
3493 directly related to this feature are there to gain the same
3494 performance again as before variable aliases.
3495
3496 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
3497 code to get and set symbol values, to take defvaralias into account.
3498
3499 (Note: the new `constant' bit-flag in symbols would make it
3500 possible to define arbitrary read-only variables, e.g. with
3501 `defconst'.)
3502
3503 Documentation is in lispref/variables.texi. Added to NEWS.
3504
3505 * lisp.h (enum symbol_interned): New enumeration.
3506 (struct Lisp_Symbol): Remove member `obarray', add
3507 `indirect_variable', `constant', and `interned'.
3508 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
3509 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
3510 (indirect_variable): Add prototype.
3511
3512 * print.c (print_preprocess, print_object): Test internedness of
3513 symbols differently.
3514
3515 * lread.c (Fintern, Funintern): Set symbol's interned and constant
3516 bit-fields.
3517 (init_obarray): Likewise for t and nil.
3518
3519 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
3520 (Fdefvaralias): New function.
3521 (specbind): Simplify the test if symbol is a constant.
3522 (syms_of_eval): Defsubr Fdefvaralias.
3523
3524 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
3525 (Qcyclic_variable_indirection): New variable.
3526 (Fkeywordp): Check for internedness differently.
3527 (Fmakunbound): Simplify the test if symbol is a constant.
3528 (indirect_variable, Findirect_variable): New functions.
3529 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
3530 aliased symbol.
3531 (let_shadows_buffer_binding_p): Check for variable aliases.
3532 (set_internal): Simplify the test if SYMBOL is a constant.
3533 If SYMBOL has a buffer-local value and is an alias, use the aliased
3534 symbol instead.
3535 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
3536 Sindirect_variable.
3537
3538 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
3539 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
3540 set directly.
3541
3542 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
3543
3544 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
3545 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
3546 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
3547
3548 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3549
3550 * Branch for 21.1.
3551
3552 2001-10-03 Miles Bader <miles@gnu.org>
3553
3554 * callproc.c (syms_of_callproc): Explicitly state in the
3555 documentation for `process-environment' that earlier entries take
3556 precedence over later ones.
3557
3558 2001-10-02 Miles Bader <miles@gnu.org>
3559
3560 * textprop.c (Fnext_char_property_change)
3561 (Fprevious_char_property_change): Remove reference to non-existant
3562 argument OBJECT from doc-string.
3563
3564 2001-10-01 Gerd Moellmann <gerd@gnu.org>
3565
3566 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
3567 (try_window_id): Skip back over lines ending in a newline from a
3568 string.
3569
3570 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
3571 New bit flag
3572
3573 2001-10-01 Richard M. Stallman <rms@gnu.org>
3574
3575 * search.c (Freplace_match): Doc fix.
3576
3577 2001-09-28 Andrew Innes <andrewi@gnu.org>
3578
3579 * w32menu.c (set_frame_menubar): Take into account that
3580 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
3581 <raeburn@gnu.org>.
3582
3583 2001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
3584
3585 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
3586
3587 2001-09-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3588
3589 * s/gnu-linux.h: Fix a typo in comment.
3590
3591 2001-09-28 Andreas Schwab <schwab@suse.de>
3592
3593 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
3594 nocombreloc, in case -z combreloc is the default.
3595
3596 2001-09-28 Gerd Moellmann <gerd@gnu.org>
3597
3598 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
3599 really going on here.
3600
3601 2001-09-27 Stefan Monnier <monnier@cs.yale.edu>
3602
3603 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
3604
3605 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
3606
3607 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
3608 utf-8, menu-bar, and latin-N.
3609 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
3610 unconditionally now.
3611 (lisp): Add latin-N, since they are preloaded.
3612
3613 2001-09-27 Gerd Moellmann <gerd@gnu.org>
3614
3615 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
3616 to the left. Some cleanup.
3617
3618 * xdisp.c (display_mode_element): One more case where a string's
3619 multibyteness should be used for display.
3620
3621 2001-09-26 Gerd Moellmann <gerd@gnu.org>
3622
3623 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
3624 reading at EOF.
3625
3626 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
3627 of the only temporarily set echoing flag for deciding when
3628 the cancel echoing.
3629
3630 * keyboard.c (echo_kboard): Make externally visible.
3631
3632 * lisp.h (echo_kboard): Declare extern.
3633
3634 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
3635 fonts_changed_p if we need larger matrices due to vscrolling.
3636 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
3637 this round of redisplay if make_cursor_line_fully_visible fails.
3638 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
3639 (try_cursor_movement, try_scrolling): Use them instead of integers.
3640
3641 * dispextern.h (required_matrix_width, required_matrix_height):
3642 Add prototypes.
3643
3644 * dispnew.c (required_matrix_width, required_matrix_height):
3645 New functions.
3646 (allocate_matrices_for_window_redisplay)
3647 (allocate_matrices_for_frame_redisplay: Use them.
3648 Remove parameters CH_DIM.
3649
3650 * xdisp.c (display_mode_lines): Temporarily set selected_frame
3651 and selected_window to the frame of the window whose mode-lines
3652 are displayed, and to the window itself.
3653 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
3654 here.
3655
3656 2001-09-25 Gerd Moellmann <gerd@gnu.org>
3657
3658 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
3659 the image cache under us.
3660
3661 * xdisp.c (display_mode_element): If the mode element is a symbol
3662 with a string value, use that string's multibyteness for displaying.
3663
3664 * keyboard.c (read_char): Don't clear a message for a switch-frame
3665 event. From Stefan Monnier <monnier@cs.yale.edu>.
3666
3667 * xterm.c (fast_find_position) [0]: Add a presumably more correct
3668 version for after 21.1.
3669
3670 * xdisp.c (row_containing_pos): Make externally visible.
3671
3672 * dispextern.h (row_containing_pos): Add prototype.
3673
3674 * process.c (send_process): Disable composition if from_byte < 0.
3675 From Kenichi Handa <handa@etl.go.jp>.
3676
3677 2001-09-24 Gerd Moellmann <gerd@gnu.org>
3678
3679 * xterm.c (refreshicon): Function removed.
3680
3681 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
3682
3683 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
3684
3685 * xterm.c (toplevel): Remove includes in #if 0.
3686
3687 * process.c (sigchld_handler) [LINUX]: Don't return from
3688 the signal handler at the end of the loop.
3689
3690 2001-09-21 Gerd Moellmann <gerd@gnu.org>
3691
3692 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
3693 Terminate only if kill returns -1, and errno is ESRCH.
3694
3695 2001-09-21 Markus Rost <rost@math.ohio-state.edu>
3696
3697 * Makefile.in (shortlisp): Add ../lisp/env.elc.
3698
3699 2001-09-20 Gerd Moellmann <gerd@gnu.org>
3700
3701 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
3702 since this function can be called during GC.
3703
3704 * callproc.c (Fcall_process): Handle errors from pipe(2).
3705 (child_setup): Delete code in #ifdef vipc.
3706
3707 2001-09-19 Gerd Moellmann <gerd@gnu.org>
3708
3709 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
3710 (display_mode_element): Display the string from decode_mode_spec
3711 depending on its multibyteness.
3712
3713 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
3714
3715 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
3716
3717 2001-09-18 Gerd Moellmann <gerd@gnu.org>
3718
3719 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
3720 recursive_edit_unwind.
3721 (recursive_edit_unwind): Set kboard state according to
3722 SINGLE-KBOARD.
3723
3724 * buffer.c (modify_overlay): Don't do nothing if START == END;
3725 This can still be a modification, for example when an overlay has
3726 a before-string or after-string.
3727 (Fdelete_overlay): Prevent redisplay optimizations when deleting
3728 an overlay with before-string or after-string.
3729
3730 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
3731 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
3732
3733 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
3734 first_unchanged_at_end_row is in front of
3735 last_unchanged_at_beg_row. This code should be removed after the
3736 release of 21.1.
3737
3738 2001-09-17 Gerd Moellmann <gerd@gnu.org>
3739
3740 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
3741 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
3742
3743 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
3744 versions >= 2.95.
3745
3746 2001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
3747
3748 * dired.c (Ffile_attributes): Doc fix.
3749
3750 2001-09-14 Gerd Moellmann <gerd@gnu.org>
3751
3752 * fileio.c (Ffile_symlink_p): Fix last change.
3753
3754 * filelock.c (current_lock_owner): Fix last change.
3755
3756 2001-09-13 Gerd Moellmann <gerd@gnu.org>
3757
3758 * filelock.c (current_lock_owner): If readlink returns ERANGE,
3759 take that to mean that the buffer is too small.
3760
3761 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
3762 that to mean that the buffer is too small.
3763
3764 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
3765 current buffer's multibyteness when discarding the iterator's
3766 stack.
3767
3768 * xfns.c (Fx_window_property): Handle case that property gets
3769 deleted between the two calls to XGetWindowProperty.
3770
3771 2001-09-11 Gerd Moellmann <gerd@gnu.org>
3772
3773 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
3774
3775 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
3776 in addition to read-only.
3777
3778 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
3779 to t in addition to read-only.
3780
3781 * lisp.h (Qinhibit_modification_hooks): Declare.
3782
3783 * insdel.c (Qinhibit_modification_hooks): New variable.
3784 (syms_of_insdel): Initialize and staticpro it.
3785
3786 * textprop.c (verify_interval_modification): Don't run
3787 modification-hooks if inhibit_modification_hooks.
3788
3789 * dispnew.c (set_window_cursor_after_update): Fix code
3790 finding glyph row containing cursor when cursor_in_echo_area
3791 is >= 0.
3792
3793 * xdisp.c (init_from_display_pos): Put some code in #if 0.
3794 (add_to_log): Use bcopy instead of strcpy.
3795 (init_from_display_pos): Use an explicit loop over bytes in
3796 overlay strings instead of calling index.
3797
3798 2001-09-10 Gerd Moellmann <gerd@gnu.org>
3799
3800 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
3801
3802 * dispnew.c (direct_output_for_insert): Don't change IT's
3803 stop_charpos to something in front of its current position.
3804
3805 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
3806 `format'.
3807
3808 2001-09-10 Richard M. Stallman <rms@gnu.org>
3809
3810 * frame.c (Fmouse_position): Doc fix.
3811
3812 2001-09-07 Gerd Moellmann <gerd@gnu.org>
3813
3814 * xdisp.c (init_from_display_pos): Don't compare the result
3815 of calling index with NULL.
3816
3817 2001-09-06 Gerd Moellmann <gerd@gnu.org>
3818
3819 * xfns.c (x_set_background_color): Don't change the colors
3820 of the X window of scroll bar widgets.
3821
3822 2001-09-05 Andrew Innes <andrewi@gnu.org>
3823
3824 * w32fns.c (w32_createwindow): Undo last change.
3825
3826 2001-09-05 Gerd Moellmann <gerd@gnu.org>
3827
3828 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
3829
3830 * xdisp.c (string_buffer_position): Use *single_char_property*
3831 functions instead of the *single_property* functions.
3832
3833 2001-09-04 Andrew Innes <andrewi@gnu.org>
3834
3835 * w32term.c (w32_read_socket): Add more information to debugging
3836 output.
3837
3838 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
3839 from Emacs frames, so that calls to GetClipBox in w32term.c
3840 correctly report when part of a frame is visible (including
3841 scrollbars, etc). This prevents repeated redrawing of frames when
3842 only a scrollbar is visible.
3843 (w32_wnd_proc): Add more frame information to debugging output.
3844
3845 2001-09-03 Stefan Monnier <monnier@cs.yale.edu>
3846
3847 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
3848
3849 2001-09-03 Gerd Moellmann <gerd@gnu.org>
3850
3851 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
3852 help-echo for a string which doesn't have help-echo itself, use
3853 get-char-property to obtain the help-echo from the string's buffer
3854 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
3855 have mouse-face, look ``under'' the string for mouse-face from an
3856 overlay.
3857 (fast_find_position): Add parameter STOP. In the final row, stop
3858 before glyphs having STOP as object. Don't consider glyphs that
3859 are not from a buffer.
3860
3861 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
3862
3863 2001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
3864
3865 * fns.c (Fmd5): Doc fix.
3866
3867 2001-08-31 Gerd Moellmann <gerd@gnu.org>
3868
3869 * composite.c (update_compositions): Do nothing if
3870 inhibit-modification-hooks is set.
3871
3872 2001-08-30 Gerd Moellmann <gerd@gnu.org>
3873
3874 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
3875 and check_message_stack if terminating abnormally. We want
3876 glyph matrices etc. in a core dump.
3877
3878 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
3879 (syms_of_xdisp): Initialize them.
3880 (handle_single_display_prop): Don't change point, bind `object',
3881 `position', and `buffer-position' instead to the object having the
3882 `display' property, position in the object and position in the buffer.
3883
3884 * fileio.c (Finsert_file_contents): Don't change the multibyteness
3885 of the buffer if REPLACE is non-nil.
3886
3887 2001-08-29 Gerd Moellmann <gerd@gnu.org>
3888
3889 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
3890
3891 2001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
3892
3893 * w32term.c (x_set_glyph_string_background_width)
3894 (show_mouse_face): Track the last changes in xterm.c.
3895
3896 2001-08-28 Gerd Moellmann <gerd@gnu.org>
3897
3898 * xterm.c (x_set_glyph_string_background_width): Set the glyph
3899 string's background width so that multi-line mouse-face is drawn
3900 to the right edge of the window.
3901 (show_mouse_face): Set the row's mouse_face_p flag after drawing
3902 glyphs.
3903
3904 * dispnew.c (direct_output_for_insert): Set updated_area
3905 before inserting/writing glyphs.
3906
3907 * xdisp.c (display_mode_element): Use string_byte_to_char to
3908 determine character positions in strings, use chars_in_text
3909 instead of strwidth.
3910 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
3911 a matrix as parameter; this is easier to use from GDB.
3912
3913 2001-08-28 Miles Bader <miles@gnu.org>
3914
3915 * textprop.c (Fprevious_single_char_property_change)
3916 (Fnext_single_char_property_change): Doc fixes.
3917
3918 2001-08-27 Gerd Moellmann <gerd@gnu.org>
3919
3920 * fileio.c (Finsert_file_contents): Allocate, restore, and
3921 free composition data in the case of REPLACE not being nil.
3922
3923 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
3924 there exist overlay strings with newlines at POS.
3925 (text_outside_line_unchanged_p): Return 0 if changes start at
3926 START and overlays exist at START. Likewise for END.
3927 (try_window_id): Give up if init_to_row_end returns 0.
3928
3929 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
3930 unconditionally.
3931
3932 2001-08-24 Gerd Moellmann <gerd@gnu.org>
3933
3934 * keymap.c (access_keymap): Return the cdr of the binding of
3935 a generic character instead of its definition (KEY . BINDING).
3936
3937 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
3938 to 0 also in the REPLACE case.
3939
3940 2001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
3941
3942 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
3943 open to determine whether file is readable (as for DOS_NT).
3944
3945 2001-08-23 Gerd Moellmann <gerd@gnu.org>
3946
3947 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
3948 coding.type is coding_type_no_conversion or coding_type_raw_text,
3949 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
3950 non-nil instead of just setting enable_multibyte_characters in the
3951 buffer to nil.
3952
3953 2001-08-22 Gerd Moellmann <gerd@gnu.org>
3954
3955 * dispextern.h (struct face_cache): Add member
3956 menu_face_changed_p.
3957
3958 * xfaces.c (menu_face_changed_default): New variable.
3959 (menu_face_changed_count): Variable removed.
3960 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
3961 the menu_face_changed_default flag, otherwise set the FRAME's
3962 menu_face_changed_p flag if the `menu' face has been changed.
3963 Prevent calling set_font_frame_param if FRAME is t.
3964 (make_face_cache): Initialize cache's menu_face_changed_p
3965 from menu_face_changed_default.
3966 (realize_basic_faces): Look into the frame's face cache to
3967 determine if the menu appearance needs updating.
3968
3969 * keymap.c (access_keymap): Fix last change to not consider
3970 IDX when it has modifiers.
3971
3972 2001-08-21 Gerd Moellmann <gerd@gnu.org>
3973
3974 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
3975 . BINDING) exists, where GENERIC-CHAR is the generic character of
3976 the charset of IDX, return BINDING unless there exists a binding
3977 for IDX itself.
3978
3979 2001-08-16 Gerd Moellmann <gerd@gnu.org>
3980
3981 * xrdb.c (SYSV): Don't define on Solaris 2.
3982 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
3983
3984 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
3985 of the screen line, not text line, containing IT's current position.
3986
3987 2001-08-15 Gerd Moellmann <gerd@gnu.org>
3988
3989 * window.c (window_scroll_pixel_based): Don't recenter if
3990 PT is partially visible in the window.
3991
3992 * xterm.c (expose_window_tree, expose_window, expose_line):
3993 Return 1 when overwriting mouse-face.
3994 (expose_frame): If mouse-face was overwritten, redo it.
3995
3996 * xfaces.c (x_update_menu_appearance): Don't call
3997 set_frame_menubar, let the next redisplay do it.
3998
3999 2001-08-14 Andrew Innes <andrewi@gnu.org>
4000
4001 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
4002 drawing glyph string.
4003
4004 2001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
4005
4006 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
4007 running HI-UX/MPP.
4008
4009 2001-08-14 Gerd Moellmann <gerd@gnu.org>
4010
4011 * xfaces.c (x_update_menu_appearance): Save and restore value of
4012 interrupt_input_blocked.
4013
4014 2001-08-13 Gerd Moellmann <gerd@gnu.org>
4015
4016 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
4017 a line start, move back to the line start.
4018
4019 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
4020 exactly when a mini-buffer is active.
4021
4022 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
4023 in units of 1/8 character on non window-system frames.
4024 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
4025
4026 2001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
4027
4028 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
4029 a doc string.
4030
4031 2001-08-09 Gerd Moellmann <gerd@gnu.org>
4032
4033 * keyboard.c (Vpre_help_message): New variable.
4034 (syms_of_keyboard): Initialize and staticpro it.
4035 (show_help_echo): Record current message before displaying a
4036 help-echo, and restore that message when clearing the help.
4037
4038 * xfns.c (x_create_im): Remove prototype.
4039
4040 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
4041
4042 * dispnew.c (adjust_glyph_matrix): Undo last change.
4043
4044 2001-08-08 Gerd Moellmann <gerd@gnu.org>
4045
4046 * dispnew.c (adjust_glyph_matrix): In the optimization for
4047 windows whose height has changed, disable partially visible lines.
4048
4049 2001-08-07 Gerd Moellmann <gerd@gnu.org>
4050
4051 * window.c (Frecenter): If ARG < 0, and on a window system
4052 frame, count in some empty lines when we can't move -ARG lines down.
4053
4054 * xdisp.c (start_display): Don't try to determine the continuation
4055 lines width if lines are truncated. It's superfluous and leads to
4056 incorrect results if POS is not visible in the window after
4057 reseating the iterator at the previous line start.
4058
4059 2001-08-06 Gerd Moellmann <gerd@gnu.org>
4060
4061 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
4062
4063 2001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
4064
4065 * alloc.c (init_stack): Remove declaration.
4066
4067 2001-08-03 Gerd Moellmann <gerd@gnu.org>
4068
4069 * keyboard.c (read_key_sequence): Check that key is an integer
4070 before comparing it with quit_char.
4071 (add_command_key): Use larger_vector.
4072 (read_char_x_menu_prompt): Instead of converting symbol and
4073 integer events into conses (EVENT . nil), use (EVENT . disabled)
4074 which cannot be confused with valid events.
4075 (read_char): When reading from Vunread_command_events, check for
4076 events of the form (EVENT . disabled) instead of
4077 (EVENT . nil).
4078
4079 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
4080 a float, determine the max height from the frame's height.
4081
4082 2001-08-02 Gerd Moellmann <gerd@gnu.org>
4083
4084 * xdisp.c (redisplay_internal): Take message_cleared_p into
4085 account only if minibuf_level == 0.
4086
4087 2001-08-01 Gerd Moellmann <gerd@gnu.org>
4088
4089 * xdisp.c (redisplay_internal): Add a check for the last
4090 displayed message.
4091
4092 * xdisp.c (message_cleared_p): New variable.
4093 (clear_message): Set message_cleared_p when clearing the current
4094 message.
4095 (redisplay_internal): Look at message_cleared_p to capture
4096 the case that the echo area should be cleared.
4097
4098 * keyboard.c (command_loop_1): Fix spelling of
4099 resize_echo_area_exactly.
4100
4101 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
4102
4103 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
4104
4105 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
4106 current matrix when the window gets smaller.
4107
4108 2001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
4109
4110 * print.c (strout): Cast the character passed to insert_char to
4111 unsigned char, to avoid sign extension when it is promoted to int.
4112
4113 2001-07-31 Gerd Moellmann <gerd@gnu.org>
4114
4115 * fileio.c (Finsert_file_contents): Don't treat a return value
4116 of 0 from emacs_read as an IO error.
4117
4118 2001-07-30 Gerd Moellmann <gerd@gnu.org>
4119
4120 * keyboard.c (abs): New macro.
4121 (double_click_fuzz): New variable.
4122 (make_lispy_event): Use it to determine what makes a double-click.
4123 (syms_of_keyboard): DEFVAR_INT it.
4124
4125 * xmenu.c (set_frame_menubar): Take into account that
4126 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
4127 <raeburn@gnu.org>.
4128
4129 2001-07-27 Gerd Moellmann <gerd@gnu.org>
4130
4131 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
4132
4133 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
4134 of row's visible height.
4135
4136 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
4137 deal with the first overlay string having an image `display' property.
4138 (try_window_reusing_current_matrix, compute_line_metrics):
4139 Fix computation of row's visible height for the case that part of the
4140 row is invisible above and part of the row is at the same time
4141 invisible below the window.
4142
4143 2001-07-26 Gerd Moellmann <gerd@gnu.org>
4144
4145 * xfns.c (x-show-tip): Doc fix.
4146
4147 * xfns.c (Vx_max_tooltip_size): New variable.
4148 (syms_of_xfns): DEFVAR_LISP it.
4149 (Fx_show_tip): Set frame's window_width to the width of the
4150 window. Use a maximum tooltip size specified by
4151 Vx_max_tooltip_size, if that has valid contents.
4152 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
4153
4154 2001-07-26 Andrew Innes <andrewi@gnu.org>
4155
4156 * w32term.c (x_display_list): New variable.
4157 (w32_term_init): Set it.
4158
4159 * w32term.h (x_display_list): New extern.
4160
4161 2001-07-26 Gerd Moellmann <gerd@gnu.org>
4162
4163 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
4164 is non-nil, instead of when redisplaying_p is non-zero.
4165 See comment there.
4166 (mark_window_display_accurate_1): Add an assertion.
4167
4168 2001-07-25 Gerd Moellmann <gerd@gnu.org>
4169
4170 * dispextern.h (struct it): Increase size of ctl_chars to 16.
4171
4172 * xfns.c (Fx_file_dialog): Block/unblock input while processing
4173 events so that we get a chance of processing expose events.
4174
4175 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
4176
4177 2001-07-24 Gerd Moellmann <gerd@gnu.org>
4178
4179 * xfns.c (valid_image_p): Protect better against invalid image
4180 specifications. Previous code could signal an error.
4181
4182 2001-07-23 Gerd Moellmann <gerd@gnu.org>
4183
4184 * indent.c (current_column): Fix column computation in the
4185 presence of display table entries.
4186 (current_column_1, Fmove_to_column, compute_motion): Likewise.
4187
4188 * dispnew.c (adjust_glyph_matrix): In the optimization for
4189 windows whose height has changed, use the new window height
4190 to compute which rows to invalidate.
4191
4192 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
4193 (MAX_10_EXP): New macro.
4194 (Fformat): Use it.
4195
4196 * coding.c (code_convert_region): Handle the multibyte case if
4197 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
4198
4199 2001-07-20 Gerd Moellmann <gerd@gnu.org>
4200
4201 * dispextern.h (struct face): Change type of `stipple' to
4202 int; it's an ID.
4203
4204 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
4205
4206 2001-07-19 Gerd Moellmann <gerd@gnu.org>
4207
4208 * dispnew.c (update_window): Don't set the cursor at the end
4209 of the update if display update has been paused.
4210
4211 * composite.h (syms_of_composite): Renamed from syms_of_composition.
4212
4213 2001-07-18 Ken Raeburn <raeburn@gnu.org>
4214
4215 * fns.c (Fset_char_table_default): Check that a charset is defined
4216 before checking its dimension.
4217
4218 2001-07-17 Ken Raeburn <raeburn@gnu.org>
4219
4220 * coding.c (setup_coding_system): Don't do any designation based
4221 on reg_bits if charset is not yet defined.
4222
4223 * lisp.h (XVECTOR): Verify correct object type before returning a
4224 pointer, using eassert.
4225
4226 2001-07-17 Gerd Moellmann <gerd@gnu.org>
4227
4228 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
4229 Increase to 4096 because of paste problems reported on GNU/Linux.
4230
4231 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
4232
4233 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
4234
4235 2001-07-16 Gerd Moellmann <gerd@gnu.org>
4236
4237 * fileio.c (unwind_read): Function removed.
4238 (read_non_regular, read_non_regular_quit): New functions.
4239 (Finsert_file_contents): When reading from non-regular files,
4240 arrange to catch a `quit' and terminate the loop. Rearrange
4241 code so that a `quit' when reading from a regular file doesn't
4242 insert text in the buffer.
4243
4244 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
4245 Clear faces afterwards.
4246 (clear_font_table): Take a x_display_info parameter. Don't free
4247 fonts being the default font of any frame on the given display.
4248
4249 2001-07-13 Gerd Moellmann <gerd@gnu.org>
4250
4251 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
4252 instead of CHAR_STRING which can signal an error.
4253
4254 * charset.c (char_to_string_1): Extracted from char_to_string.
4255 Return -1 instead of signaling an error.
4256 (char_to_string): Use it.
4257
4258 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
4259
4260 2001-07-12 Stefan Monnier <monnier@cs.yale.edu>
4261
4262 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
4263 is t, don't try to append anything to it.
4264
4265 2001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
4266
4267 * dired.c (file_name_completion): Pass dp->d_name to
4268 Fstring_match, not elt, which is always nil here.
4269
4270 2001-07-12 Gerd Moellmann <gerd@gnu.org>
4271
4272 * xselect.c (x_decline_selection_request): Handle errors
4273 caused by receivers that have vanished.
4274
4275 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
4276 ignoring events on foreign windows in #if 0. Always dispatch
4277 the event after checking it with x_handle_property_notify.
4278
4279 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
4280 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
4281 TRACE macros to facilitate debugging. Add additional trace statements.
4282 (toplevel): Add prototypes for file-local functions.
4283 (x_atom_to_symbol): Remove DPYINFO parameter.
4284
4285 2001-07-11 Stefan Monnier <monnier@cs.yale.edu>
4286
4287 * w32menu.c (menubar_selection_callback, w32_menu_show):
4288 Initialize `entry' to nil.
4289 (w32_dialog_show): Remove unused `save_wv' variable.
4290 (name_is_separator): Recognize "--:foo" and "--foo-bar".
4291
4292 2001-07-11 Gerd Moellmann <gerd@gnu.org>
4293
4294 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
4295
4296 * fileio.c (unwind_read): Print a message when discarding inserted
4297 text or switching the buffer to unibyte. Change parameter.
4298 (Finsert_file_contents): Don't pass VISIT to unwind_read.
4299
4300 * fileio.c (unwind_read): New function.
4301 (Finsert_file_contents): Record it as unwind-function for
4302 the case that reading is interrupted by C-g.
4303
4304 2001-07-10 Gerd Moellmann <gerd@gnu.org>
4305
4306 * dispnew.c (update_window): Don't skip the header-line
4307 update when scrolling_window returns 0.
4308
4309 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
4310
4311 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
4312 for the case that x_decode_color signals an error.
4313
4314 * xdisp.c (add_to_log): Do nothing if called asynchronously.
4315
4316 2001-07-09 Gerd Moellmann <gerd@gnu.org>
4317
4318 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
4319 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
4320 around ioctls.
4321
4322 2001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
4323
4324 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
4325 doc string line for dos-timezone-offset.
4326
4327 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
4328 inline assembly, to avoid compiler warnings.
4329 (syms_of_msdos): Add \n\ at the end of a line in the doc string
4330 line for dos-unsupported-char-glyph.
4331
4332 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
4333
4334 2001-07-05 Gerd Moellmann <gerd@gnu.org>
4335
4336 * sound.c: Include Emacs' header files with #include "...".
4337
4338 * eval.c (specbind): Additionally record the buffer that was
4339 current when a buffer-local or frame-local variable was bound.
4340
4341 2001-07-04 Gerd Moellmann <gerd@gnu.org>
4342
4343 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
4344 to unibyte characters in unibyte buffers.
4345
4346 2001-07-03 Gerd Moellmann <gerd@gnu.org>
4347
4348 * eval.c (specbind): If SYMBOL has a frame-local binding, record
4349 the frame on the binding stack. Change format of entries for
4350 local bindings on the binding stack to '(SYMBOL . WHERE)'.
4351 (unbind_to): Handle unbinding a frame-local variable.
4352
4353 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
4354 glyphs and truncation glyphs at the end of a row from its pixel width.
4355 (dump_glyph_row): Print row's continuation_lines_width.
4356 (try_window_id): Take the shortcut if ZV is visible in the
4357 window, but there are actually no changes at ZV.
4358
4359 2001-07-02 Gerd Moellmann <gerd@gnu.org>
4360
4361 * xterm.h (x_free_dpy_colors): Add prototype.
4362
4363 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
4364 right number of arguments.
4365
4366 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
4367 ($(lwlibdir)TAGS): New target.
4368 (TAGS): Fix dependency list.
4369
4370 * xterm.c (x_list_fonts): Make sure XFreeFont is called
4371 with input blocked.
4372
4373 2001-06-30 Gerd Moellmann <gerd@gnu.org>
4374
4375 * emacs.c (main): Remove extern declaration for sys_nerr, which
4376 isn't used and causes a compilation error with GCC 3.0 on
4377 FreeBSD 4.3.
4378
4379 2001-06-27 Gerd Moellmann <gerd@gnu.org>
4380
4381 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
4382 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
4383 (toplevel): Include <signal.h> and syssignal.h.
4384
4385 * sound.c (vox_configure, vox_close): Turn off atimers
4386 around ioctls.
4387
4388 2001-06-26 Gerd Moellmann <gerd@gnu.org>
4389
4390 * keyboard.c (read_char) <non_reread>: Record the previous idle
4391 start time before calling timer_stop_idle.
4392 (read_char) <reread_first>: After processing a help-echo event,
4393 restore the previous idle start time.
4394
4395 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
4396 the start of invisible text.
4397 (setup_for_ellipsis): New function.
4398 (next_overlay_string): After all overlay strings have been
4399 processed, display an ellipsis if necessary.
4400 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
4401 (push_it): Initialize display_ellipsis_p on the iterator's stack.
4402
4403 * dispextern.h (struct iterator_stack_entry): Add member
4404 display_ellipsis_p.
4405
4406 2001-06-25 Gerd Moellmann <gerd@gnu.org>
4407
4408 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
4409 on the value of the wait-for-wm frame parameter.
4410
4411 * xterm.h (struct x_output): Add member wait_for_wm.
4412
4413 * xfns.c (Qwait_for_wm): New variable.
4414 (x_frame_parms): Add entry for `wait-for-wm".
4415 (x_set_wait_for_wm): New function.
4416 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
4417 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
4418
4419 * xdisp.c (try_window_id) <all changes below window end>: Don't
4420 take this shortcut if ZV is visible in the window.
4421 (try_window_id): When checking for window start being in changed
4422 text, don't check that the buffer's size has changed.
4423
4424 2001-06-23 Richard M. Stallman <rms@gnu.org>
4425
4426 * minibuf.c (Fcompleting_read): Doc fix.
4427
4428 2001-06-19 Gerd Moellmann <gerd@gnu.org>
4429
4430 * composite.c (Ffind_composition_internal): Accept ZV
4431 and a string's end position as POS.
4432
4433 2001-06-18 Gerd Moellmann <gerd@gnu.org>
4434
4435 * composite.c (Ffind_composition_internal): Check POS
4436 for validity.
4437
4438 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
4439
4440 * editfns.c (Fmessage_box): If the frame is not under a window
4441 system, output the message in the echo area.
4442
4443 2001-06-14 Richard M. Stallman <rms@gnu.org>
4444
4445 * xdisp.c (try_window_id): When EOB is visible, don't treat
4446 insertion at EOB as if it were "off the bottom of the screen."
4447
4448 2001-06-11 Andrew Innes <andrewi@gnu.org>
4449
4450 * w32proc.c (create_child): Add new parameter is_gui_app.
4451 (w32_executable_type): Add new parameter is_gui_app.
4452 (sys_spawnve): Use it.
4453 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
4454 SIGQUIT. This matches better how the signals are interpreted by
4455 MSVC compiled programs.
4456 (syms_of_ntproc): Update docstring.
4457
4458 2001-06-02 Stefan Monnier <monnier@cs.yale.edu>
4459
4460 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
4461 well otherwise note_mouse_highlight might optimize away highlighting
4462 if we pass over that same overlay again.
4463
4464 2001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
4465
4466 * lread.c (Fload): Document that the argument is run via
4467 substitute-in-file-name.
4468
4469 2001-05-31 Gerd Moellmann <gerd@gnu.org>
4470
4471 * Makefile.in (bootstrap-doc): New target.
4472 (bootstrap-emacs): Depend on it.
4473
4474 * fileio.c (Fdo_auto_save): Don't try to create the directory of
4475 auto-save-list-file-name when shutting down Emacs, because
4476 creating the directory might signal an error, and leaves
4477 Emacs in a strange state.
4478
4479 * term.c: (tty_cursor_hidden): New variable.
4480 (update_begin): Don't call tty_hide_cursor. Clean up.
4481 (update_end, set_terminal_window, set_scroll_region): Clean up.
4482 (ring_bell, reset_terminal_modes): Clean up.
4483 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
4484 on tty_cursor_hidden.
4485 (write_glyphs): Call tty_hide_cursor.
4486
4487 2001-05-30 Stefan Monnier <monnier@cs.yale.edu>
4488
4489 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
4490
4491 2001-05-30 Gerd Moellmann <gerd@gnu.org>
4492
4493 * xfns.c (enum image_value_type): New enumerator
4494 IMAGE_STRING_OR_NIL_VALUE.
4495 (parse_image_spec): Handle it.
4496 (xbm_format, pbm_format): Use it for :foreground and :background.
4497 (xbm_load, pbm_load): Check for nil color names.
4498
4499 * xterm.c (note_mouse_highlight): If an overlapping overlay
4500 exists, but we find that we highlight the same overlay as before,
4501 don't do the highlighting again.
4502
4503 2001-05-29 Gerd Moellmann <gerd@gnu.org>
4504
4505 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
4506 Protect unibyte strings created by replacing their multibyte
4507 equivalents in menu_items.
4508
4509 * keymap.c (Fsingle_key_description): NUL-terminate the string
4510 buffer before calling build_string.
4511
4512 * callproc.c (Fcall_process): Deal with decode_coding returning
4513 CODING_FINISH_INCONSISTENT_EOL.
4514
4515 2001-05-28 Gerd Moellmann <gerd@gnu.org>
4516
4517 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
4518 an item's name with its key description in case the description
4519 is a multibyte string.
4520
4521 * keymap.c (Fsingle_key_description): Create a multibyte string
4522 only if necessary.
4523
4524 * macros.c (Fstart_kbd_macro): Doc fix.
4525
4526 * xterm.c (cursor_in_mouse_face_p): New function.
4527 (x_draw_stretch_glyph_string): Use it to choose a different GC
4528 when drawing a cursor within highlighted text.
4529
4530 * editfns.c (char_property_eq): Put in #if 0.
4531
4532 * indent.c (string_display_width): Put in #if 0.
4533
4534 * lread.c (Fload): Remove unused label.
4535
4536 * termcap.c (speeds): Put in #if 0.
4537
4538 2001-05-18 Gerd Moellmann <gerd@gnu.org>
4539
4540 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
4541
4542 * xfaces.c (xlfd_point_size): Don't divide pixel size from
4543 transformation matrix by 10.
4544
4545 2001-05-16 Gerd Moellmann <gerd@gnu.org>
4546
4547 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
4548 only if it's equal to the former foreground pixel color.
4549 (x_set_foreground_color, x_set_background_color)
4550 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
4551
4552 2001-05-16 Dave Love <fx@gnu.org>
4553
4554 * insdel.c (signal_before_change, signal_after_change): Consider a
4555 local change hook which changes the buffer.
4556
4557 * process.c (read_process_output): Don't call signal_after_change
4558 and update_compositions after insert_from_string_before_markers.
4559
4560 2001-05-16 Gerd Moellmann <gerd@gnu.org>
4561
4562 * xfaces.c (split_font_name): Use the right field when
4563 checking for `[...]' syntax.
4564
4565 * buffer.c (copy_overlays): New function.
4566 (clone_per_buffer_values): Use it.
4567
4568 * buffer.h (OVERLAY_PLIST): New macro.
4569
4570 * keymap.c (Fsingle_key_description): Replace a build_string with
4571 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
4572
4573 * fontset.c (Ffontset_info): Check that face is non-null
4574 before accessing its fields.
4575
4576 2001-05-15 Gerd Moellmann <gerd@gnu.org>
4577
4578 * keyboard.c (read_key_sequence): Prevent generating a fake
4579 prefix key twice.
4580
4581 * xfaces.c (split_font_name): Handle `[...]' for the right
4582 font name fields.
4583
4584 * ccl.c (ccl_driver): Don't copy remaining bytes in case
4585 of CCL_STAT_INVALID_CMD.
4586
4587 2001-05-14 Stefan Monnier <monnier@cs.yale.edu>
4588
4589 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
4590 in <var> has no default value yet.
4591
4592 * xfaces.c (try_alternative_families): First try the FAMILY.
4593 And if nothing is found in the end, try again with scalable fonts.
4594 (try_font_list): Let try_alternative_families do a bit more of
4595 the work. Only use FAMILY if it is not nil.
4596 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
4597
4598 2001-05-14 Gerd Moellmann <gerd@gnu.org>
4599
4600 * xterm.c (note_mouse_highlight): Avoid changing the mouse
4601 pointer shape when show_mouse_face has already done it.
4602
4603 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
4604 full-width rows.
4605
4606 * xfaces.c (split_font_name): Make sure to leave the loop
4607 with the right value of `i'.
4608
4609 * xfaces.c (split_font_name): Handle matrix transformations
4610 in the pixel and point size fields of XLFD font names.
4611 (xlfd_point_size): Likewise.
4612
4613 2001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
4614
4615 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
4616 (x_to_w32_font): Add prototype.
4617
4618 * regex.c (malloc, realloc, free) [emacs]: Undefine before
4619 redefining, to avoid compiler warnings.
4620
4621 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
4622
4623 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
4624 (w32_get_bdf_glyph): Cast between unsigned char and char when
4625 passing arguments to subroutines, to shut up compiler warnings.
4626 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
4627 GET_HEX_VAL.
4628
4629 * xfaces.c: Include keyboard.h before frame.h, not after it.
4630
4631 * widget.c: Include keyboard.h before frame.h.
4632
4633 * w32term.h (struct image, struct face): Forward declaration, to
4634 avoid compiler warnings.
4635
4636 2001-05-11 Gerd Moellmann <gerd@gnu.org>
4637
4638 * keyboard.c (read_key_sequence): Don't modify events when
4639 generating fake prefix keys (mode-line, scroll-bar, ...) since
4640 this prevents proper processing of such events when pushed back
4641 into unread-command-events.
4642
4643 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
4644 actually redrawn. Make the function static.
4645 (note_mouse_highlight): Fix a case where the mouse cursor
4646 was changed back to the text cursor.
4647
4648 * xterm.h (clear_mouse_face): Remove prototype.
4649
4650 * xdisp.c (try_window_id): Fix the fix and set the right
4651 window_end_vpos.
4652
4653 * xdisp.c (try_window_id): Fix computation of window end in the
4654 case that lines were deleted at the end of the window. Add some
4655 more debug_method_adds.
4656
4657 * xfaces.c (try_alternative_families): New function.
4658 (try_font_list): Use it. If ATTRS specifies a family, check
4659 fonts from that family first.
4660 (choose_face_font): Remove code setting the family part of
4661 the pattern to nil.
4662
4663 2001-05-10 Gerd Moellmann <gerd@gnu.org>
4664
4665 * xdisp.c (try_window_id): Fix case of all changes before
4666 the window start.
4667
4668 * xdisp.c (try_window_id): Add some xasserts.
4669
4670 2001-05-09 Gerd Moellmann <gerd@gnu.org>
4671
4672 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
4673
4674 2001-05-09 Dave Love <fx@gnu.org>
4675
4676 * xdisp.c (GIVE_UP): Fix for K&R C.
4677
4678 2001-05-09 Gerd Moellmann <gerd@gnu.org>
4679
4680 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
4681
4682 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
4683 back to the text cursor shape without need.
4684
4685 2001-05-07 Gerd Moellmann <gerd@gnu.org>
4686
4687 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
4688
4689 * dispextern.h (inverse_video): Declare extern.
4690
4691 * keyboard.c (delete_kboard): Handle the case that selected_frame
4692 has been deleted in the course of x_connection_closed.
4693
4694 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
4695
4696 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
4697 Fix the change from 2001-04-30.
4698
4699 2001-05-03 Gerd Moellmann <gerd@gnu.org>
4700
4701 * xfns.c (file_dialog_unmap_cb): New function.
4702 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
4703 where a dialog is closed via the window manager.
4704
4705 * xdisp.c (try_window_id): Cases of changes all in front of
4706 the window start or all below the window end mostly rewritten.
4707 (redisplay_window): Move the tests if try_window_id is
4708 applicable to try_window_id.
4709 (GIVE_UP): New macro.
4710
4711 2001-05-02 Gerd Moellmann <gerd@gnu.org>
4712
4713 * xterm.c (expose_window): Return int. If W is the window
4714 currently being updated, mark the frame garbaged.
4715 Fix computation of rows intersecting the exposed rectangle.
4716 (expose_window_tree): Stop when expose_window returns 0.
4717
4718 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
4719 again if it has already been drawn.
4720
4721 2001-05-01 Stefan Monnier <monnier@cs.yale.edu>
4722
4723 * syntax.c (update_syntax_table): Check that oldi has the same
4724 properties as old_prop before deciding not to invalidate.
4725
4726 2001-04-30 Gerd Moellmann <gerd@gnu.org>
4727
4728 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
4729 read-only text that is so because of text properties.
4730
4731 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
4732 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
4733 windows that are components of a Lucid menu bar.
4734
4735 2001-04-27 Gerd Moellmann <gerd@gnu.org>
4736
4737 * term.c (turn_on_face): Fix reverse video handling on terminals
4738 that don't support colors.
4739
4740 2001-04-26 Gerd Moellmann <gerd@gnu.org>
4741
4742 * editfns.c (save_excursion_restore): Don't use XBUFFER on
4743 a non-buffer.
4744
4745 2001-04-25 Gerd Moellmann <gerd@gnu.org>
4746
4747 * term.c (toggle_highlight): New function.
4748 (turn_on_face): Change handling of reverse video.
4749
4750 * process.c (wait_reading_process_input):
4751 Call record_asynch_buffer_change only if a timer really changed buffers.
4752
4753 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
4754 of the number of overlays to check.
4755
4756 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
4757
4758 * xdisp.c (try_window_id): Fix a case where window_end_pos
4759 and window_end_bytepos were not adjusted.
4760
4761 2001-04-23 Gerd Moellmann <gerd@gnu.org>
4762
4763 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
4764 zero instead of -1.
4765
4766 2001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
4767
4768 * process.c (wait_reading_process_input) [!subprocesses]:
4769 Don't reference waiting_for_user_input_p, it's not defined in the
4770 branch without async subprocesses support.
4771
4772 2001-04-19 Gerd Moellmann <gerd@gnu.org>
4773
4774 * keyboard.c (delete_kboard): Prevent a dangling reference
4775 from current_kboard to KB, which is freed.
4776
4777 * process.c (wait_reading_process_input):
4778 Call record_asynch_buffer_change after running timers, to make
4779 read_key_sequence aware of buffer changes from under it.
4780
4781 2001-04-18 Gerd Moellmann <gerd@gnu.org>
4782
4783 * xfaces.c (Qscalable_fonts_allowed): New variable.
4784 (realizing_basic_faces_p): Removed.
4785 (x_face_list_fonts): Special handling for realizing_basic_faces_p
4786 removed.
4787 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
4788 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
4789 for scalable-fonts-allowed to t.
4790
4791 * fileio.c (Finsert_file_contents): If the file size returned from
4792 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
4793 read from files on a procfs whose contents are generated dynamically.
4794
4795 2001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
4796
4797 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
4798 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
4799 (__memalign_hook): Make the two prototypes consistent.
4800
4801 2001-04-17 Gerd Moellmann <gerd@gnu.org>
4802
4803 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
4804 matrix of mini-windows.
4805
4806 2001-04-12 Stefan Monnier <monnier@cs.yale.edu>
4807
4808 * intervals.c (find_interval): Don't rebalance during signal handling.
4809
4810 2001-04-11 Gerd Moellmann <gerd@gnu.org>
4811
4812 * fns.c: Include blockinput.h.
4813
4814 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
4815
4816 2001-04-10 Gerd Moellmann <gerd@gnu.org>
4817
4818 * fns.c (Fcompare_strings): Fix return values.
4819
4820 * window.c (window_scroll): Change the meaning of N to mean
4821 N screen-fulls or N lines.
4822 (window_scroll_pixel_based, window_scroll_line_based)
4823 (scroll_command, Fscroll_other_window): Change accordingly.
4824
4825 * window.c (window_scroll_pixel_based, Frecenter):
4826 Call window_box_height instead of using it.last_visible_y for the
4827 height of the window.
4828
4829 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
4830 instead of using it.last_visible_y for the height of the window.
4831
4832 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
4833 From Dan Holmsand <dan@eyebee.com>.
4834
4835 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
4836 able to write to hidden and system files. From Dan Holmsand
4837 <dan@eyebee.com>.
4838
4839 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
4840 Holmsand <dan@eyebee.com>.
4841
4842 2001-04-09 Gerd Moellmann <gerd@gnu.org>
4843
4844 * fns.c (Fplist_get, Fplist_put): Add QUITs.
4845
4846 * window.c (window_internal_height): Return 1 less if the
4847 window has a header line.
4848
4849 * xdisp.c (try_window_id): When scrolling on a terminal, take
4850 the change of window_internal_height into account.
4851
4852 2001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
4853
4854 * gmalloc.c (align): If the argument SIZE would overflow
4855 __malloc_ptrdiff_t, fail right away.
4856
4857 2001-04-06 Gerd Moellmann <gerd@gnu.org>
4858
4859 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
4860 Make sure the tooltip is completely visible.
4861 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
4862
4863 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
4864
4865 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
4866
4867 2001-04-06 Dave Love <fx@gnu.org>
4868
4869 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
4870 Fix test of `from'.
4871
4872 2001-04-06 Gerd Moellmann <gerd@gnu.org>
4873
4874 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
4875
4876 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
4877
4878 2001-04-05 Gerd Moellmann <gerd@gnu.org>
4879
4880 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
4881
4882 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
4883
4884 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
4885 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
4886
4887 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
4888 shell widget's position only if it is non-null.
4889
4890 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
4891 Set f->output_data.x->widget to null after destroying it.
4892
4893 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
4894 FILENAME to bring it in synch with the documentation.
4895
4896 * xfaces.c (realizing_basic_faces_p): Renamed from
4897 realize_default_face_p.
4898 (realize_basic_faces): Set/clear realizing_basic_faces_p.
4899 (realize_default_face): Don't set the flag.
4900
4901 2001-04-04 Gerd Moellmann <gerd@gnu.org>
4902
4903 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
4904
4905 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
4906
4907 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
4908 the buffer that was used for echoing.
4909
4910 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
4911 (first_font_matching): Removed unused function.
4912 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
4913 (may_use_scalable_font_p): Remove parameter FONT; rename
4914 parameter NAME to FONT.
4915 (x_face_list_fonts): Fix missing bounds check.
4916 (realizing_default_face_p): New variable.
4917 (realize_default_face): Set and clear that flag.
4918 (x_face_list_fonts): When called during the realization of the
4919 default face, and no matching fonts are found when ignoring
4920 scalable fonts and fonts matching a regexp from
4921 face-ignored-fonts, try without ignoring fonts.
4922
4923 2001-04-03 Gerd Moellmann <gerd@gnu.org>
4924
4925 * xfns.c (postprocess_image): New function.
4926 (lookup_image): Call it for all image types except PostScript.
4927 (x_kill_gs_process): Call postprocess_image.
4928
4929 * xterm.c (x_use_underline_position_properties): New variable.
4930 (x_draw_glyph_string): Use it.
4931 (syms_of_xterm): DEFVAR_BOOL it.
4932
4933 2001-04-02 Gerd Moellmann <gerd@gnu.org>
4934
4935 * xterm.c (x_alloc_nearest_color_1): New function.
4936 (x_alloc_nearest_color): Use it.
4937 (x_color_cells): Take a Display as argument, instead of a frame.
4938 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
4939 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
4940 (x_initialize): Register cvt_string_to_pixel as resource converter
4941 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
4942
4943 2001-03-30 Gerd Moellmann <gerd@gnu.org>
4944
4945 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
4946 (set_iterator_to_next): If a string from a display property ends,
4947 consider the case that this might also be the end of an
4948 overlay string having the display property.
4949
4950 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
4951
4952 * xdisp.c (reseat_to_string): Undo last change.
4953
4954 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
4955 matrix of a window when the header line changes, when
4956 new rows are allocated, or when the width changes.
4957
4958 2001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
4959
4960 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
4961
4962 2001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
4963
4964 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
4965 deprecated.
4966
4967 2001-03-29 Gerd Moellmann <gerd@gnu.org>
4968
4969 * data.c (Fsubr_interactive_form): New function.
4970 (syms_of_data): Defsubr it.
4971
4972 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
4973 (live_float_p, live_misc_p): Return 1 only if the offset of the
4974 pointer in its block is >= 0.
4975
4976 2001-03-28 Paul Eggert <eggert@twinsun.com>
4977
4978 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
4979 microseconds calcuation. Avoid double-rounding problem.
4980 In doc string, warn that the result is approximate.
4981
4982 2001-03-28 Gerd Moellmann <gerd@gnu.org>
4983
4984 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
4985 bind `inhibit-eval-during-redisplay' to t.
4986
4987 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
4988
4989 * xdisp.c (inhibit_eval_during_redisplay)
4990 (Qinhibit_eval_during_redisplay): New variables.
4991 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
4992 don't eval, return nil instead.
4993 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
4994 Initialize Qinhibit_eval_during_redisplay.
4995
4996 * xdisp.c (reseat_to_string): If STRING is multibyte, set
4997 the iterator's multibyte_p flag.
4998
4999 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
5000 instead of setting it to zero; it's incremented for each frame
5001 where the menu face is changed.
5002
5003 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
5004 change bottom shadow accordingly.
5005
5006 * xterm.c (expose_window_tree, expose_frame): Don't compute
5007 intersections here.
5008 (expose_window): Do it here instead.
5009 (x_draw_glyph_string): Fix a computation of the underline position.
5010
5011 * bytecode.c (BYTE_CODE_QUIT): New macro.
5012 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
5013
5014 2001-03-27 Gerd Moellmann <gerd@gnu.org>
5015
5016 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
5017 Give up if matrix starts in an ellipsis.
5018 (init_from_display_pos): Do nothing if POS doesn't specify
5019 a dpvec_index but the iterator has such a position.
5020
5021 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
5022
5023 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
5024 x/y position is (0, 0) after destroying the menu bar, restore
5025 its original position.
5026
5027 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
5028 (init_from_display_pos): Use it.
5029 (try_window_reusing_current_matrix): Don't use cursor_row_p.
5030
5031 2001-03-26 Gerd Moellmann <gerd@gnu.org>
5032
5033 * xdisp.c (try_window_id): Undo last change.
5034
5035 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
5036
5037 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
5038
5039 * buffer.c (syms_of_buffer): Doc fix.
5040
5041 2001-03-26 Gerd Moellmann <gerd@gnu.org>
5042
5043 * xfaces.c (x_update_menu_appearance): Use local variable
5044 popup_path for setting font resources.
5045
5046 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
5047
5048 * frame.c (Fframe_list): Don't reference tip_frame if
5049 HAVE_WINDOW_SYSTEM is not defined.
5050
5051 * emacs.c (main): Update the copyright year. From Werner LEMBERG
5052 <wl@gnu.org>.
5053
5054 2001-03-25 Gerd Moellmann <gerd@gnu.org>
5055
5056 * xdisp.c (init_from_display_pos): Test invisible property
5057 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
5058
5059 * xdisp.c (redisplay_internal) <update one window>: Make sure
5060 last_arrow_position and last_arrow_string are set.
5061
5062 * frame.c (Fframe_list): Don't return a tooltip frame.
5063
5064 2001-03-23 Gerd Moellmann <gerd@gnu.org>
5065
5066 * xdisp.c (mark_window_display_accurate_1): New function,
5067 extracted from mark_window_display_accurate.
5068 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
5069 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
5070 (mark_window_display_accurate): Use it.
5071 (redisplay_internal): Use it for the selected window.
5072 (redisplay_internal): Avoid duplicate mark_window_display_accurate
5073 for the selected frame.
5074
5075 * xdisp.c Use make_number, for readability.
5076 (try_window_id): Disable rows below the window end.
5077 (try_window_reusing_current_matrix): Use cursor_row_p.
5078 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
5079 of rows.
5080 (init_from_display_pos): If POS specifies a position in a display
5081 vector, maybe get the iterator set up for that ellipsis.
5082
5083 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
5084
5085 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
5086
5087 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
5088
5089 2001-03-23 Gerd Moellmann <gerd@gnu.org>
5090
5091 * xfaces.c (x_update_menu_appearance): Use a different path
5092 for Lucid popup menus.
5093
5094 2001-03-22 Stefan Monnier <monnier@cs.yale.edu>
5095
5096 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
5097
5098 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
5099 (string_buffer_position): Use `make_number'.
5100
5101 2001-03-22 Gerd Moellmann <gerd@gnu.org>
5102
5103 * xfaces.c (x_update_menu_appearance): Renamed from
5104 x_set_menu_face_resources. Use different resources for popups.
5105
5106 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
5107 (GC_CHECK_STRING_BYTES): Don't define.
5108
5109 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
5110 Removed, together with subroutines.
5111 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
5112 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
5113
5114 * dispextern.h (x_set_menu_resources_from_menu_face):
5115 Remove prototype.
5116
5117 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
5118 Remove calls to x_set_menu_resources_from_menu_face.
5119
5120 * xfaces.c (xm_set_menu_resources_from_menu_face):
5121 Remove #ifndef LESSTIF_VERSION.
5122
5123 * xmenu.c: Include widget.h.
5124 (single_submenu): Return int. Some cleanup.
5125 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
5126
5127 2001-03-21 Gerd Moellmann <gerd@gnu.org>
5128
5129 * xterm.c (x_update_window_end): Handle overwritten mouse face
5130 also for tool bar windows.
5131 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
5132 DRAW is DRAW_IMAGE_RAISED.
5133
5134 2001-03-20 Gerd Moellmann <gerd@gnu.org>
5135
5136 * print.c (syms_of_print): Doc fixes.
5137
5138 * fns.c (Fmd5): Doc fix.
5139
5140 2001-03-19 Gerd Moellmann <gerd@gnu.org>
5141
5142 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
5143 Clear area of the frame not occupied by the scroll bar.
5144
5145 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
5146 tip frame's root window buffer to *tip* right after creating
5147 the frame.
5148
5149 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
5150 is an integer don't have to be for space characters.
5151
5152 2001-03-16 Gerd Moellmann <gerd@gnu.org>
5153
5154 * indent.c (current_column, current_column_1, Fmove_to_column)
5155 (compute_motion): Handle characters from display vectors differently.
5156
5157 2001-03-15 Kenichi Handa <handa@etl.go.jp>
5158
5159 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
5160 drawing glyph string.
5161
5162 2001-03-15 Gerd Moellmann <gerd@gnu.org>
5163
5164 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
5165 (command_loop_1): Undo last change.
5166
5167 * xterm.c (fast_find_position): Return the correct vpos.
5168
5169 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
5170 non-null, set a per-buffer value in BUF instead of the current buffer.
5171 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
5172 Call store_symval_forwarding with BUF null.
5173 (set_internal): Call store_symval_forwarding with the BUF
5174 parameter passed to set_internal. Formerly, the value was always
5175 set in the current buffer; the buffer recorded in specbind for
5176 this case wasn't used.
5177 (arith_driver): Reindent.
5178
5179 * buffer.c (swap_out_buffer_local_variables):
5180 Call store_symval_forwarding with BUF null.
5181
5182 * lisp.h (store_symval_forwarding): Change prototype.
5183
5184 * eval.c (specbind): Call store_symval_forwarding with BUF null.
5185
5186 2001-03-14 Gerd Moellmann <gerd@gnu.org>
5187
5188 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
5189 FOR_DELETION. Avoid resizing the mini-window of the selected
5190 frame if FOR_DELETION is set.
5191 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
5192 (Fmake_frame_invisible): Change calls to do_switch_frame for new
5193 signature.
5194
5195 * window.c (Fset_window_configuration): Change call to
5196 do_switch_frame to new format.
5197
5198 * keyboard.c (quit_throw_to_read_char): Change call to
5199 do_switch_frame to new format.
5200
5201 * lisp.h (do_switch_frame): Change prototype.
5202
5203 * frame.c (Fframe_parameters): In the `buffer-list' frame
5204 parameter, store the buffer list of FRAME, not the list of the
5205 selected frame.
5206
5207 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
5208 box just because the glyph row's full_width_p flag is set.
5209
5210 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
5211
5212 * xdisp.c (highlight_trailing_whitespace): On character terminals,
5213 skip the padding blanks inserted in extend_face_to_end_of_line,
5214 before checking for trailing whitespace.
5215
5216 2001-03-13 Gerd Moellmann <gerd@gnu.org>
5217
5218 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
5219 Remove special handling for LessTif/Motif.
5220 (toplevel): Don't include Xm/Xm.h.
5221
5222 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
5223 Remove workaround code for LessTif; it doesn't work anymore.
5224
5225 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
5226 Xm/ScrollBarP.h.
5227
5228 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
5229 Don't access private scroll bar data; it's no longer necessary with
5230 contemporary LessTif.
5231
5232 * xfaces.c (xm_set_menu_resources_from_menu_face):
5233 Change #if 0 to #ifndef LESSTIF_VERSION.
5234
5235 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
5236 removing button grabs.
5237
5238 2001-03-13 Kenichi Handa <handa@etl.go.jp>
5239
5240 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
5241 and clip-large-size-font as obsolete.
5242
5243 * lread.c (read_multibyte): Check the validity of multibyte
5244 sequence. If invalid, return the first byte.
5245
5246 2001-03-12 Gerd Moellmann <gerd@gnu.org>
5247
5248 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
5249 before running the command; timer functions or process
5250 filters may have set it.
5251
5252 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
5253
5254 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
5255 Doc fix.
5256
5257 2001-03-12 Gerd Moellmann <gerd@gnu.org>
5258
5259 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
5260 to sprintf.
5261
5262 2001-03-09 Gerd Moellmann <gerd@gnu.org>
5263
5264 * dispextern.h (string_buffer_position): Add prototype.
5265
5266 * xdisp.c (string_buffer_position, display_prop_string_p)
5267 (single_display_prop_string_p): New functions.
5268
5269 * xterm.c (note_mouse_highlight): If there's no help-echo on
5270 a string, look at the buffer text ``under'' it.
5271
5272 * keyboard.c (make_lispy_event): Add string info to the event,
5273 analogous to what's done on mode lines.
5274 (read_key_sequence): For a click on a string, consider `local-map'
5275 and `keymap' of that string.
5276
5277 * keyboard.c (make_lispy_event, make_lispy_movement):
5278 Adjust calls to buffer_posn_from_coords to new format.
5279
5280 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
5281
5282 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
5283 POS; return void.
5284
5285 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
5286 flags argument to emacs_open; it seems to conflict with O_EXCL.
5287
5288 2001-03-09 Kenichi Handa <handa@etl.go.jp>
5289
5290 * composite.h (struct composition): Change types of members;
5291 glyph_len to unsigned, width to unsigned short.
5292
5293 2001-03-08 Andrew Innes <andrewi@gnu.org>
5294
5295 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
5296 menu titles.
5297
5298 2001-03-08 Gerd Moellmann <gerd@gnu.org>
5299
5300 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
5301 instead of nil.
5302
5303 * xterm.c (note_mouse_highlight): Handle mouse-face and
5304 help-echo in strings.
5305 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
5306 (fast_find_string_pos): New function.
5307
5308 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
5309 (display_string): Call face_at_string_position with new parameter.
5310
5311 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
5312 Handle `mouse-face'.
5313
5314 * dispextern.h (face_at_string_position): Change prototype.
5315
5316 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
5317
5318 * keyboard.c (make_lispy_event): Avoid generating drag events
5319 if the mouse hasn't actually moved to another buffer position.
5320
5321 2001-03-08 Dave Love <fx@gnu.org>
5322
5323 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
5324
5325 2001-03-08 Gerd Moellmann <gerd@gnu.org>
5326
5327 * process.c (Fset_process_window_size): Fix a typo.
5328
5329 2001-03-08 Kenichi Handa <handa@etl.go.jp>
5330
5331 * coding.c (detect_coding_sjis): Do more rigid check.
5332 (detect_coding_big5): Likewise.
5333 (decode_coding_sjis_big5): Likewise.
5334 (Fdetect_coding_region): Call detect_coding_system with tailing
5335 anchor byte `\0' for more rigid detection.
5336 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
5337 (Fdetect_coding_string): Likewise.
5338
5339 2001-03-07 Stefan Monnier <monnier@cs.yale.edu>
5340
5341 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
5342 a string before extracting its data.
5343
5344 2001-03-07 Gerd Moellmann <gerd@gnu.org>
5345
5346 * window.c (Frecenter): Rewrite code handling negative values
5347 of ARG on graphical frames.
5348
5349 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
5350
5351 * window.c (displayed_window_lines): If W->start is outside the
5352 accessible portion of the buffer, call start_display with BEGV or
5353 ZV instead of W->start.
5354
5355 2001-03-07 Gerd Moellmann <gerd@gnu.org>
5356
5357 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
5358
5359 * process.c (Fset_process_filter): Don't crash if the input
5360 file descriptor of PROCESS is closed.
5361 (Fset_process_window_size): Likewise.
5362
5363 2001-03-06 Kenichi Handa <handa@etl.go.jp>
5364
5365 * xterm.c (XTflash): Make the timeout of select shorter, and call
5366 select repeatedly until the desired time expires.
5367
5368 2001-03-06 Gerd Moellmann <gerd@gnu.org>
5369
5370 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
5371
5372 * xfns.c (Fx_create_frame): Clear Vwindow_list.
5373
5374 * lisp.h (Vwindow_list): Declare extern.
5375
5376 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
5377
5378 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
5379
5380 2001-03-06 Gerd Moellmann <gerd@gnu.org>
5381
5382 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
5383 to detect a case where we have to highlight a different region
5384 despite not having left the currently highlighted region.
5385 Set mouse_face_overlay in the x_display_info.
5386 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
5387
5388 * xterm.h (struct x_display_info): Add mouse_face_overlay.
5389
5390 * buffer.c (mouse_face_overlay_overlaps): New function.
5391
5392 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
5393 (Qmouse_face): Declare extern.
5394
5395 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
5396 if face_change_count is non-zero.
5397
5398 2001-03-06 Kenichi Handa <handa@etl.go.jp>
5399
5400 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
5401 that the source is unibyte.
5402
5403 2001-03-05 Dave Love <fx@gnu.org>
5404
5405 * xterm.c (XTmouse_position): Fix typo.
5406
5407 2001-03-05 Gerd Moellmann <gerd@gnu.org>
5408
5409 * minibuf.c (read_minibuf): Clean up the binding stack if
5410 called noninteractively.
5411
5412 2001-03-05 Kenichi Handa <handa@etl.go.jp>
5413
5414 * coding.c (syms_of_coding): Docstring modified.
5415
5416 2001-03-05 Kenichi Handa <handa@etl.go.jp>
5417
5418 * charset.c (char_to_string): If a single byte char has modifier
5419 bits that can't be reflected to the character code, ignore them
5420 instead of signaling an error.
5421
5422 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
5423
5424 * s/msdos.h: Update copyright notice.
5425
5426 * dosfns.h: Update copyright notice.
5427
5428 * dosfns.c: Update copyright notice.
5429
5430 * msdos.c: Update copyright notice.
5431
5432 2001-03-02 Gerd Moellmann <gerd@gnu.org>
5433
5434 * xterm.c (glyph_rect): New function.
5435 (XTmouse_position): Use it to raise the threshold for mouse
5436 movement event generation.
5437
5438 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
5439
5440 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
5441 specifies (reverse . t), reverse the initial screen colors.
5442 (IT_set_frame_parameters): If the property is foreground-color,
5443 but we are reversing the colors, set bg_set, not fg_set.
5444 Likewise for setting background-color and reversing: set fg_set.
5445 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
5446 in effect.
5447
5448 * xfaces.c (Finternal_set_lisp_face_attribute)
5449 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
5450 parameters alist.
5451
5452 2001-03-02 Gerd Moellmann <gerd@gnu.org>
5453
5454 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
5455 to a single slash in the middle of file names.
5456
5457 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
5458 Accept only alphanumeric time zone names.
5459
5460 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
5461 or width area.
5462 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
5463 a widget to zero height.
5464
5465 2001-03-01 Gerd Moellmann <gerd@gnu.org>
5466
5467 * window.c (Fwindow_end): Call move_it_past_eol only if
5468 ending up on a partially visible line.
5469
5470 2001-03-01 Dave Love <fx@gnu.org>
5471
5472 * ccl.c (Fccl_execute): Doc fix.
5473
5474 2001-03-01 Gerd Moellmann <gerd@gnu.org>
5475
5476 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
5477 of the tool bar before calling x_figure_window_size.
5478
5479 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
5480 NULL after destroying it, otherwise XTread_socket can access a
5481 destroyed widget when input is unblocked.
5482
5483 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
5484
5485 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
5486 same name as before, although there was a change in fontsets.
5487
5488 2001-02-28 Ken Raeburn <raeburn@gnu.org>
5489
5490 * lisp.h (Fframe_parameter): Declare.
5491
5492 * window.c (set_window_buffer): Field vscroll is an int, not a
5493 Lisp_Object.
5494
5495 2001-02-28 Gerd Moellmann <gerd@gnu.org>
5496
5497 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
5498 NULL instead.
5499
5500 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
5501 NULL instead.
5502
5503 * alloc.c (toplevel): Include process.h.
5504 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
5505 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
5506 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
5507 (allocate_vector, allocate_hash_table, allocate_window)
5508 (allocate_frame, allocate_process, allocate_other_vector):
5509 New functions.
5510 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
5511 (mark_maybe_pointer): New function.
5512 (mark_memory): Also mark Lisp data to which only pointers
5513 remain and not Lisp_Objects.
5514 (min_heap_address, max_heap_address): New variables.
5515 (mem_find): Return MEM_NIL if START is below min_heap_address or
5516 above max_heap_address.
5517 (mem_insert): Compute min_heap_address and max_heap_address.
5518
5519 * process.c (make_process): Use allocate_process.
5520
5521 * frame.c (make_frame): Use allocate_frame.
5522
5523 * window.c (make_window, make_dummy_parent): Use allocate_window.
5524 (Fcurrent_window_configuration): Use allocate_other_vector.
5525
5526 * lisp.h (allocate_vectorlike): Remove prototype.
5527 (allocate_vector, allocate_other_vector, allocate_frame)
5528 (allocate_window, allocate_process, allocate_hash_table):
5529 Add prototypes.
5530
5531 * fns.c (Fdelete, larger_vector): Use allocate_vector.
5532 (make_hash_table, copy_hash_table): Use allocate_hash_table.
5533
5534 2001-02-27 Kenichi Handa <handa@etl.go.jp>
5535
5536 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
5537 treat the produced bytes as a valid multibyte sequence.
5538
5539 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
5540 (ccl_driver) <CCL_WriteMultibyteChar2>:
5541 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
5542 <ccl_finish>: Set ccl->eight_bit_control properly.
5543
5544 * ccl.h (struct ccl_program): New member eight_bit_control.
5545
5546 2001-02-26 Stefan Monnier <monnier@cs.yale.edu>
5547
5548 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
5549 accessible_keymaps_char_table.
5550 (accessible_keymaps_char_table): Obey `is_metized'.
5551 (where_is_internal, Fwhere_is_internal): Don't confuse int and
5552 Lisp_Object.
5553
5554 2001-02-26 Gerd Moellmann <gerd@gnu.org>
5555
5556 * dispnew.c: Check HAVE_TERM_H before including term.h.
5557
5558 2001-02-24 Andrew Innes <andrewi@gnu.org>
5559
5560 * makefile.w32-in: Update copyright notice.
5561
5562 2001-02-24 Stefan Monnier <monnier@cs.yale.edu>
5563
5564 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
5565
5566 2001-02-24 Kenichi Handa <handa@etl.go.jp>
5567
5568 * Makefile.in (lisp): Add international/utf-8.elc.
5569
5570 * fontset.c (Fnew_fontset): Fix handling of the case that an
5571 element of FONTLIST is a cons of family and registry.
5572
5573 2001-02-23 Jason Rumney <jasonr@gnu.org>
5574
5575 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
5576 to height unconditionally.
5577
5578 * w32term.c (x_set_glyph_string_background_width): Extend the
5579 background face to the end of the drawing area in the text area, only.
5580 (x_insert_glyphs): Call window_box_left to obtain the left
5581 x-coordinate of the area to shift.
5582
5583 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
5584 safe_run_hooks.
5585
5586 2001-02-22 Andrew Innes <andrewi@gnu.org>
5587
5588 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
5589 ($(BLD)\dispnew.obj):
5590 ($(BLD)\editfns.obj):
5591 ($(BLD)\fileio.obj):
5592 ($(BLD)\filelock.obj):
5593 ($(BLD)\keyboard.obj):
5594 ($(BLD)\w32proc.obj):
5595 ($(BLD)\process.obj):
5596 ($(BLD)\sysdep.obj): Ditto.
5597
5598 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
5599 header files.
5600 ($(BLD)/dispnew.$(O)):
5601 ($(BLD)/editfns.$(O)):
5602 ($(BLD)/fileio.$(O)):
5603 ($(BLD)/filelock.$(O)):
5604 ($(BLD)/keyboard.$(O)):
5605 ($(BLD)/w32proc.$(O)):
5606 ($(BLD)/process.$(O)):
5607 ($(BLD)/sysdep.$(O)): Ditto.
5608
5609 2001-02-22 Gerd Moellmann <gerd@gnu.org>
5610
5611 * xdisp.c (forward_to_next_line_start): When taking the shortcut
5612 at the start of the function, check that the \n in it->c is
5613 from the iterator's current position.
5614
5615 * xdisp.c (handle_single_display_prop): Add parameter
5616 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
5617 properties which replace the display of text with something else.
5618 (handle_display_prop): Call handle_single_display_prop with
5619 additional argument saying if we already replaced text display
5620 with something else. Use AREF.
5621 (with_echo_area_buffer_unwind_data, display_menu_bar)
5622 (decode_mode_spec_coding): Use AREF and ASIZE.
5623
5624 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
5625 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
5626 * vmstime.h: Files removed.
5627
5628 * unexencap.c, unexfx2800.c: Files removed.
5629
5630 * dispnew.c (direct_output_for_insert): Give up if we are showing
5631 a message or just cleared the message because we might need to
5632 resize the echo area window or display an empty echo area.
5633
5634 2001-02-21 Gerd Moellmann <gerd@gnu.org>
5635
5636 * xdisp.c (redisplay_internal): Do the
5637 mark_window_display_accurate after all windows have been
5638 redisplayed because this call resets flags in buffers which are
5639 needed for proper redisplay.
5640
5641 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
5642 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
5643 the old names.
5644
5645 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
5646 busy_window to hourglass_window, busy_p to hourglass_p.
5647
5648 * msdos.h (struct x_output): Rename busy_window to
5649 hourglass_window, busy_p to hourglass_p.
5650
5651 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
5652 busy_window to hourglass_window, busy_p to hourglass_p.
5653
5654 * xfns.c: Rename everything containing *busy_cursor* and similar
5655 to *hourglass*.
5656 (syms_of_w32fns): Rename x-busy-pointer-shape to
5657 x-hourglass-pointer-shape, display-busy-cursor to
5658 display-hourglass, busy-cursor-delay to hourglass-delay.
5659
5660 * w32fns.c: Rename everything containing *busy_cursor* and similar
5661 to *hourglass*.
5662 (syms_of_w32fns): Rename x-busy-pointer-shape to
5663 x-hourglass-pointer-shape, display-busy-cursor to
5664 display-hourglass, busy-cursor-delay to hourglass-delay.
5665
5666 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
5667 of its busy_p flag.
5668
5669 * dispextern.h (start_hourglass, cancel_hourglass)
5670 (display_hourglass_p): Renamed from *busy_cursor*.
5671
5672 2001-02-20 Gerd Moellmann <gerd@gnu.org>
5673
5674 * keyboard.c (read_char): When an event from unread-command-events
5675 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
5676
5677 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
5678 equal to the current buffer.
5679
5680 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
5681 nil, otherwise we're left with truncate_lines t when a message
5682 is printed with message-truncate-lines bound to t.
5683
5684 2001-02-19 Gerd Moellmann <gerd@gnu.org>
5685
5686 * window.c (Fmove_to_window_line): Undo last change.
5687 (displayed_window_lines): Call line_bottom_y to determine
5688 the line's bottom position.
5689
5690 * dispextern.h (line_bottom_y): Add prototype.
5691
5692 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
5693 (pos_visible_p): Use it.
5694
5695 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
5696 set redisplaying_p to 0 here instead of in Frecursive_edit.
5697 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
5698 set redisplaying_p.
5699
5700 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
5701 New variables.
5702 (syms_of_xdisp): Initialize new variables.
5703 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
5704 Specbind `inhibit-menubar-update' when updating the menu bar.
5705
5706 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
5707 safe_run_hooks.
5708
5709 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
5710 safe_run_hooks.
5711
5712 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
5713 is null.
5714
5715 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
5716 to the start of the file.
5717
5718 2001-02-16 Gerd Moellmann <gerd@gnu.org>
5719
5720 * window.c (set_window_buffer): Fix last change.
5721
5722 * window.c (set_window_buffer): Set window's vscroll to 0.
5723
5724 * window.c (coordinates_in_window): Increase width of area
5725 where the vertical line can be dragged.
5726
5727 * xterm.c (x_set_glyph_string_background_width): Extend the
5728 background face to the end of the drawing area in the text
5729 area, only.
5730
5731 * xdisp.c (handle_single_display_prop): Set iterator's position
5732 to where the `display' property starts, like for images.
5733 (dump_glyph): New function.
5734 (dump_glyph_row): Use it. Dump info about marginal areas.
5735
5736 * dispnew.c (direct_output_for_insert): Recognize more cases where
5737 glyphs can be written instead of being inserted.
5738
5739 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
5740 the left x-coordinate of the area to shift.
5741
5742 * dired.c (directory_files_internal): Set result list to nil
5743 before retrying.
5744
5745 2001-02-15 Kenichi Handa <handa@etl.go.jp>
5746
5747 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
5748 invalid multibyte sequence, treat *SRC as a character of
5749 eight-bit-graphic.
5750
5751 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
5752
5753 * textprop.c (Fset_text_properties): Doc fix.
5754
5755 2001-02-15 Gerd Moellmann <gerd@gnu.org>
5756
5757 * dispnew.c (update_text_area): Undo change of 2001-01-12.
5758
5759 2001-02-14 Dave Love <fx@gnu.org>
5760
5761 * coding.c: Doc and message fixes.
5762
5763 2001-02-14 Andrew Innes <andrewi@gnu.org>
5764
5765 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
5766 Emacs frame above the screen size.
5767
5768 2001-02-14 Gerd Moellmann <gerd@gnu.org>
5769
5770 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
5771
5772 2001-02-13 Gerd Moellmann <gerd@gnu.org>
5773
5774 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
5775 case that TO ends up beyond ZV after running before-change-functions.
5776
5777 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
5778 the selected window if it is showing the buffer in question.
5779
5780 * dired.c (directory_files_internal): Initialize errno.
5781 (toplevel): Include errno.h.
5782
5783 2001-02-13 Kenichi Handa <handa@etl.go.jp>
5784
5785 * xfaces.c (best_matching_font): New parameter width_ratio.
5786 Multiply avgwidth by width_ratio.
5787 (choose_face_font): Call best_matching_font with width_ratio
5788 calculated from the column width of C.
5789
5790 2001-02-12 Andrew Innes <andrewi@gnu.org>
5791
5792 The following changes are to draw box lines inside characters area
5793 if line-width is negative.
5794
5795 * w32term.c (x_produce_image_glyph): Pay attention to the case that
5796 face->box_line_width is negative.
5797 (x_produce_stretch_glyph): Likewise.
5798 (x_produce_glyphs): Likewise.
5799 (x_estimate_mode_line_height): Likewise.
5800 (x_draw_glyph_string_background): Likewise.
5801 (x_draw_glyph_string_foreground): Likewise.
5802 (x_draw_composite_glyph_string_foreground): Likewise.
5803 (x_draw_glyph_string_box): Likewise.
5804 (x_draw_image_foreground): Likewise.
5805 (x_draw_image_relief): Likewise.
5806 (x_draw_image_foreground_1): Likewise.
5807 (x_draw_image_glyph_string): Likewise.
5808
5809 2001-02-09 Kenichi Handa <handa@etl.go.jp>
5810
5811 The following changes are to draw box lines inside characters area
5812 if line-width is negative.
5813
5814 * xterm.c (x_produce_image_glyph): Pay attention to the case that
5815 face->box_line_width is negative.
5816 (x_produce_stretch_glyph): Likewise.
5817 (x_produce_glyphs): Likewise.
5818 (x_estimate_mode_line_height): Likewise.
5819 (x_draw_glyph_string_background): Likewise.
5820 (x_draw_glyph_string_foreground): Likewise.
5821 (x_draw_composite_glyph_string_foreground): Likewise.
5822 (x_draw_glyph_string_box): Likewise.
5823 (x_draw_image_foreground): Likewise.
5824 (x_draw_image_relief): Likewise.
5825 (x_draw_image_foreground_1): Likewise.
5826 (x_draw_image_glyph_string): Likewise.
5827
5828 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
5829 and :line-width can be negative.
5830 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
5831
5832 2001-02-09 Jason Rumney <jasonr@gnu.org>
5833
5834 * w32term.c (w32_encode_char): Treat eight bit graphic and control
5835 characters the same as ASCII and latin-1.
5836 (x_display_and_set_cursor): Check for the focus frame's selected
5837 window instead of selected_window.
5838 (x_after_update_window_line): Don't clear if frame's internal
5839 border width is zero.
5840 (x_new_font): Don't change a tooltip's size.
5841 (w32_initialize): Set char_ins_del_ok to 1.
5842
5843 * w32fns.c (Fx_show_tip): Fix calls to make_number.
5844 (x_set_font): If font hasn't changed, avoid recomputing
5845 faces and other things.
5846 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
5847 (Fx_create_frame): Add the tool bar height to the frame height.
5848 (x_create_tip_frame): Prevent changing the tooltip's
5849 background color by specifying a color for the default font
5850 in .Xdefaults.
5851 (Qcancel_timer): New variable.
5852 (syms_of_w32fns): Initialize and staticpro it.
5853 (Fx_hide_tip, Fx_show_tip): Use it.
5854 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
5855 the timer.
5856 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
5857
5858 * w32.c (init_environment): Duplicate local string before putenv.
5859
5860 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
5861
5862 * charset.c (Fstring): A typo.
5863
5864 2001-02-09 Kenichi Handa <handa@etl.go.jp>
5865
5866 * charset.c (Fstring): If all arguments are less than 256, return
5867 a unibyte string.
5868
5869 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
5870 return a unibyte string.
5871
5872 * coding.c (code_convert_region): After detecting a coding, if
5873 nothing found, set coding->composing to COMPOSITION_NO.
5874 (decode_coding_string): Likewise.
5875
5876 2001-02-08 Stefan Monnier <monnier@cs.yale.edu>
5877
5878 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
5879 to avoid overflow.
5880
5881 2001-02-07 Kenichi Handa <handa@etl.go.jp>
5882
5883 * charset.c (parse_str_to_multibyte): New function.
5884
5885 * charset.h (parse_str_to_multibyte): Extern it.
5886
5887 * print.c (print_string): If we are going to print a unibyte
5888 string into a multibyte buffer, convert the string to multibyte by
5889 str_to_multibyte.
5890
5891 2001-02-06 Andrew Innes <andrewi@gnu.org>
5892
5893 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
5894 been created. It seems we can get sent window messages such as
5895 WM_ERASEBKGND before we properly update a frame.
5896
5897 2001-02-06 Gerd Moellmann <gerd@gnu.org>
5898
5899 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
5900 Avoid some unnecessary cursor positioning.
5901
5902 2001-02-05 Gerd Moellmann <gerd@gnu.org>
5903
5904 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
5905 (LFACE_AVGWIDTH): New macro.
5906 (LFACEP): Use AREF.
5907 (check_lface_attrs): Check LFACE_AVGWIDTH.
5908 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
5909 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
5910 (merge_face_vectors): Check LFACE_AVGWIDTH.
5911 (Finternal_make_lisp_face): Use AREF.
5912 (xm_set_menu_resources_from_menu_face)
5913 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
5914 (Finternal_lisp_face_empty_p): Use AREF.
5915 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
5916 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
5917 Compare average widths..
5918 (best_matching_font): Arrange for comparing average widths.
5919
5920 * dispextern.h (enum lface_attribute_index):
5921 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
5922
5923 2001-02-05 Dave Love <fx@gnu.org>
5924
5925 * puresize.h: Revert last change following loadup.el change.
5926
5927 2001-02-05 Andrew Innes <andrewi@gnu.org>
5928
5929 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
5930 invocation of temacs, to work with Windows 2000.
5931 (bootstrap-emacs): Ditto.
5932
5933 2001-02-05 Gerd Moellmann <gerd@gnu.org>
5934
5935 * xterm.c (x_display_and_set_cursor): Check for the focus
5936 frame's selected window instead of selected_window.
5937
5938 * xdisp.c (try_scrolling): If point is in the line below the
5939 window, make sure to move the iterator at least a canonical
5940 char height down.
5941
5942 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
5943
5944 2001-02-05 Kenichi Handa <handa@etl.go.jp>
5945
5946 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
5947 If invalid, execute CCL_INVALID_CMD.
5948 (ccl_driver): If the CCL program is terminated because of
5949 CCL_STAT_INVALID_CMD, copy the remaining source data to the
5950 destination instead of throwing them away.
5951
5952 2001-02-02 Gerd Moellmann <gerd@gnu.org>
5953
5954 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
5955 faces and other things.
5956
5957 * xdisp.c (get_next_display_element): Fix case of empty
5958 display table entry.
5959
5960 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
5961
5962 * editfns.c (Fconstrain_to_field): Doc fix.
5963
5964 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
5965 into `thoroughly', to make it consistent with the doc string.
5966
5967 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
5968
5969 2001-02-01 Gerd Moellmann <gerd@gnu.org>
5970
5971 * search.c (search_buffer): Call set_search_regs with a byte
5972 position, not a character position.
5973
5974 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
5975 minibuffer-only,
5976
5977 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
5978
5979 * frame.c (Fmodify_frame_parameters): Doc fix.
5980
5981 2001-01-31 Gerd Moellmann <gerd@gnu.org>
5982
5983 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
5984 identifier which is not reserved by Standard C.
5985
5986 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
5987
5988 * window.c (enum window_part): New enumeration.
5989 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
5990 Qright_bitmap_area.
5991 (coordinates_in_window): Return an enumerator from enum
5992 window_part. Fix handling of right scroll bar.
5993 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
5994 `right-fringe' instead of `left-bitmap-area' and
5995 `right-bitmap-area'. Use enumerators from enum window_part
5996 instead of hard-coded integers.
5997 (check_window_containing, window_from_coordinates):
5998 Use enumerators from enum window_part instead of hard-coded integers.
5999 (syms_of_window): Replace Qleft_bitmap_area and
6000 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
6001
6002 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
6003
6004 * editfns.c (Fformat_time_string): Doc fix.
6005
6006 2001-01-31 Stefan Monnier <monnier@cs.yale.edu>
6007
6008 * keymap.c (Fwhere_is_internal): Use the first valid binding
6009 if no ascii binding is found (when firstonly is t).
6010
6011 2001-01-31 Gerd Moellmann <gerd@gnu.org>
6012
6013 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
6014 instead of Finteractive_p.
6015
6016 * lisp.h (interactive_p): Add prototype.
6017
6018 * eval.c (interactive_p): New function.
6019 (Finteractive_p): Use it.
6020
6021 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
6022
6023 2001-01-31 Dave Love <fx@gnu.org>
6024
6025 * .gdbinit (hook-run): Define to run xreload.
6026
6027 * textprop.c (Fset_text_properties): Fix newline in doc string.
6028
6029 2001-01-30 Gerd Moellmann <gerd@gnu.org>
6030
6031 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
6032 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
6033
6034 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
6035 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
6036 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
6037
6038 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
6039 height.
6040
6041 2001-01-30 Dave Love <fx@gnu.org>
6042
6043 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
6044 AFTER_POTENTIAL_GC.
6045
6046 2001-01-29 Gerd Moellmann <gerd@gnu.org>
6047
6048 * bytecode.c (Fbyte_code) <Bcurrent_column>:
6049 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
6050
6051 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
6052
6053 * textprop.c (Fset_text_properties): Doc fix.
6054
6055 2001-01-29 Gerd Moellmann <gerd@gnu.org>
6056
6057 * xdisp.c (forward_to_next_line_start): Remove xassert.
6058
6059 2001-01-29 Jason Rumney <jasonr@gnu.org>
6060
6061 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
6062 returning without releasing it.
6063
6064 2001-01-29 Kenichi Handa <handa@etl.go.jp>
6065
6066 * w32fns.c (w32_font_match): Allocate three more bytes to regex
6067 for '^', '$', and '\0'.
6068
6069 2001-01-28 Andrew Choi <akochoi@i-cable.com>
6070
6071 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
6072 regex for '^', '$', and '\0'.
6073
6074 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
6075 only if current_sblock has been initialized.
6076
6077 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
6078 terminal frame even if it is the only visible frame.
6079
6080 2001-01-28 Kenichi Handa <handa@etl.go.jp>
6081
6082 * fontset.c (font_family_registry): Even if FONTNAME conform to
6083 XLFD, if it specifies other fields than family and registry,
6084 return FONTANME. New argument FORCE if nonzero cancel that feature.
6085 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
6086 a signle byte character. Don't set FAMILY part to nil here.
6087 It is handled by the caller choose_face_font.
6088 (Fnew_fontset): Call font_family_registry with FORCE 0.
6089 (Fset_fontset_font): Likewise.
6090
6091 2001-01-27 Gerd Moellmann <gerd@gnu.org>
6092
6093 * xdisp.c (display_line): Don't treat a newline as fitting
6094 on the line.
6095
6096 2001-01-26 Gerd Moellmann <gerd@gnu.org>
6097
6098 * window.c (size_window): Set the window's orig_top to nil when
6099 changing heights, so that a future shrink_mini_window won't
6100 restore a bogus height.
6101
6102 * frame.c (do_switch_frame): If selected frame has a mini-window,
6103 resize that to exact size.
6104
6105 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
6106
6107 * xdisp.c (display_line): Simplify check for glyphs fitting
6108 entirely in the line.
6109
6110 * xfns.c (xic_style): New variable.
6111 (create_frame_xic): Move static variable to global scope for
6112 the case that `static' gets defined away.
6113
6114 2001-01-26 Kenichi Handa <handa@etl.go.jp>
6115
6116 * coding.c (decode_coding): Set a flag for inhibiting
6117 inconsistent eol.
6118 (code_convert_region): Always set saved_coding_symbol.
6119 (decode_coding_string): Likewise. Update coding->symbol when we
6120 encounter a inconsistent eol by the same way as code_convert_region.
6121
6122 2001-01-25 Gerd Moellmann <gerd@gnu.org>
6123
6124 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
6125 XClearArea.
6126
6127 * xterm.c (x_after_update_window_line): Don't clear if frame's
6128 internal border width is zero.
6129 (x_clear_area): New function.
6130 (x_after_update_window_line, x_clear_end_of_line)
6131 (x_scroll_bar_create, x_scroll_bar_set_handle)
6132 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
6133 instead of XClearArea.
6134
6135 * xterm.h (x_clear_area): Add prototype.
6136
6137 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
6138 which doesn't seem necessary anymore with Lesstif 0.92.
6139
6140 2001-01-25 Dave Love <fx@gnu.org>
6141
6142 * puresize.h (BASE_PURESIZE): Up to 720000.
6143
6144 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
6145
6146 2001-01-25 Gerd Moellmann <gerd@gnu.org>
6147
6148 * xdisp.c (echo_area_display): Don't call redisplay_internal
6149 when Emacs is shutting down. We can't run hooks etc. that
6150 would be necessary to do a redisplay.
6151
6152 * lread.c (read_integer): Use type EMACS_INT instead of int.
6153
6154 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
6155
6156 * ccl.c (ccl_driver): Fix last change.
6157
6158 2001-01-25 Kenichi Handa <handa@etl.go.jp>
6159
6160 * ccl.h (sturct ccl_program): New member suppress_error.
6161
6162 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
6163 insert error message to the output.
6164 (setup_ccl_program): Initialize ccl->suppress_error to 0.
6165
6166 * coding.h (struct coding_system): New member suppress_error.
6167
6168 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
6169 (Fset_terminal_coding_system_internal): Set the member
6170 suppress_error to 1.
6171 (Fset_safe_terminal_coding_system_internal): Likewise.
6172
6173 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
6174
6175 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
6176 as if it was a `charset'.
6177
6178 2001-01-24 Gerd Moellmann <gerd@gnu.org>
6179
6180 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
6181 value in where_is_cache; the next lookup in the cache returns
6182 something bogus if we do.
6183
6184 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
6185
6186 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
6187 if HAVE_WINDOW_SYSTEM isn't defined.
6188
6189 2001-01-24 Gerd Moellmann <gerd@gnu.org>
6190
6191 * fns.c (sweep_weak_table): Fix code taking items out of
6192 the hash collision chain. Some cleanup.
6193
6194 * xterm.c (x_new_font): Don't change a tooltip's size.
6195
6196 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
6197 background color by specifying a color for the default font
6198 in .Xdefaults.
6199
6200 2001-01-24 Kenichi Handa <handa@etl.go.jp>
6201
6202 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
6203 a workaround for SunOS 4's cc.
6204 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
6205 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
6206 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
6207 statement.
6208
6209 2001-01-23 Gerd Moellmann <gerd@gnu.org>
6210
6211 * xterm.c (x_set_window_size_1): New function extracted from
6212 x_set_window_size.
6213 (x_set_window_size): Use it.
6214 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
6215 doesn't have a widget, like tooltips.
6216
6217 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
6218
6219 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
6220
6221 2001-01-23 Kenichi Handa <handa@etl.go.jp>
6222
6223 * fns.c (Fset_char_table_default): Fix to make sub char-table
6224 correctly.
6225
6226 2001-01-22 Gerd Moellmann <gerd@gnu.org>
6227
6228 * xdisp.c (build_desired_tool_bar_string): Make sure we have
6229 a desired tool bar string, even if there are no tool bar items.
6230
6231 * xdisp.c (Ftool_bar_lines_needed): New function.
6232 (syms_of_xdisp): Defsubr it.
6233
6234 * editfns.c (Fformat): Don't extend text properties from arguments
6235 to padding chars in the result.
6236
6237 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
6238
6239 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
6240
6241 2001-01-20 Andrew Innes <andrewi@gnu.org>
6242
6243 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
6244 (w32_initialize): Don't set term hooks that aren't actually needed
6245 in windowed mode.
6246
6247 * xfaces.c (realize_default_face):
6248 (realize_face):
6249 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
6250
6251 * xdisp.c (handle_single_display_prop): Remove references to
6252 FRAME_W32_CONSOLE_P.
6253
6254 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
6255
6256 * frame.h (output_method): Remove output_w32_console method.
6257 (FRAME_W32_CONSOLE_P): Remove macro.
6258
6259 * frame.c (Qw32_console): Remove variable.
6260 (Fframep): Remove references to it.
6261 (syms_of_frame): Ditto.
6262 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
6263
6264 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
6265 redefinition.
6266
6267 2001-01-20 Kenichi Handa <handa@etl.go.jp>
6268
6269 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
6270
6271 2001-01-19 Andrew Innes <andrewi@gnu.org>
6272
6273 * w32.c (init_environment): Add a version-independent site-lisp
6274 directory to EMACSLOADPATH, after the version dependent one.
6275
6276 2001-01-19 Gerd Moellmann <gerd@gnu.org>
6277
6278 * editfns.c (Fbuffer_substring): Doc fix.
6279
6280 * xdisp.c (message_dolog, message2, message2_nolog):
6281 Rename parameter LEN to NBYTES.
6282
6283 2001-01-19 Kenichi Handa <handa@etl.go.jp>
6284
6285 * charset.c (strwidth): Use c_string_width.
6286 (c_string_width): New function.
6287 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
6288 Caller changed.
6289
6290 * charset.h (c_string_width, lisp_string_width): Extern them.
6291
6292 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
6293
6294 * indent.c (check_composition): Check validity of composition.
6295
6296 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
6297 characters by calling c_string_width.
6298 (x_consider_frame_title): Get byte length of frame tile string
6299 correctly.
6300 (display_mode_element): Pay attention to width of non-ASCII
6301 characters by calling strwidth.
6302
6303 2001-01-18 Gerd Moellmann <gerd@gnu.org>
6304
6305 * xfns.c (Qcancel_timer): New variable.
6306 (syms_of_xfns): Initialize and staticpro it.
6307 (Fx_hide_tip, Fx_show_tip): Use it.
6308 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
6309 the timer.
6310 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
6311
6312 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
6313
6314 * window.h (WINDOW_LIVE_P): New macro.
6315
6316 * window.c (window_size_fixed): New variable.
6317 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
6318 the doc string.
6319
6320 * eval.c (specbind): If binding a per-buffer variable which
6321 doesn't have a buffer-local value in the current buffer, change
6322 the global value by changing the value of the symbol bound in all
6323 buffers not having their own value, to make it consistent with
6324 what happens with other buffer-local variables.
6325
6326 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
6327
6328 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
6329 when searching for a newline.
6330
6331 2001-01-18 Kenichi Handa <handa@etl.go.jp>
6332
6333 * xdisp.c (display_string): Fix previous change.
6334
6335 2001-01-18 Jason Rumney <jasonr@gnu.org>
6336
6337 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
6338 GLYPH_DEBUG is defined.
6339 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
6340 true for images with `:ascent 100'.
6341 (x_set_mouse_face_gc): If the last used mouse face has gone in the
6342 meantime, use face MOUSE_FACE_ID.
6343 If first glyph isn't a character glyph, use the ASCII NUL
6344 character to determine the face.
6345 (expose_area): Do not treat left margin specially.
6346 (note_mode_line_highlight): If no local_map, check global keymap.
6347 (note_mouse_highlight): Initialize overlay.
6348 (clear_mouse_face): Don't return if tip_frame is non-nil.
6349 (show_scroll_bars): Remove unused function.
6350 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
6351 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
6352 Clip to row.
6353 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
6354 (x_free_frame_resources): Unload relief colors.
6355
6356 2001-01-17 Gerd Moellmann <gerd@gnu.org>
6357
6358 * xdisp.c (forward_to_next_line_start): Avoid calling
6359 get_next_display_element when the newline is already found.
6360 This may change the iterator's position, when its current position is
6361 equal to the iterator's stop_charpos.
6362
6363 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
6364 zero, use this method only at the end of a line.
6365
6366 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
6367 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
6368 if SCALABLE_FONTS_P is set.
6369
6370 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
6371 so that scalable fonts are included.
6372
6373 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
6374 In the cache, use a key containing the information if scalable
6375 fonts are included.
6376 (x_load_font): Adapt to change of keys in the font cache.
6377
6378 2001-01-17 Kim F. Storm <storm@filanet.dk>
6379
6380 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
6381 XListFonts to take advantage of font caching.
6382
6383 * xterm.c (x_list_fonts): Ensure caching font information when
6384 called for a null frame, which is the case frequently when Emacs
6385 starts.
6386
6387 2001-01-17 Gerd Moellmann <gerd@gnu.org>
6388
6389 * xfns.c (QCconversion): Replaces QCalgorithm.
6390
6391 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
6392
6393 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
6394 of :algorithm.
6395
6396 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
6397 not everything could be displayed.
6398
6399 * line.h, x-list-font.c: Files removed because unused.
6400
6401 2001-01-17 Andrew Innes <andrewi@gnu.org>
6402
6403 * dired.c (directory_files_internal): Convert result from readdir
6404 to a unibyte string initially, to avoid possible misinterpretation
6405 of some bytes as the internal form of Emacs characters.
6406
6407 2001-01-17 Kenichi Handa <handa@etl.go.jp>
6408
6409 * fns.c (concat): Be sure to avoid putting the same `composition'
6410 property on the adjacent regions.
6411
6412 2001-01-16 Gerd Moellmann <gerd@gnu.org>
6413
6414 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
6415 (Fscroll_right, Fscroll_left): Set it here instead, if called
6416 interactively.
6417
6418 * buffer.c (Fset_buffer_modified_p): Set buffer's
6419 prevent_redisplay_optimizations_p flag.
6420
6421 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
6422 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
6423 with additional arg.
6424
6425 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
6426 Change prototype.
6427
6428 * xdisp.c (redisplay_preserve_echo_area): Add parameter
6429 FROM_WHERE, for debugging.
6430
6431 2001-01-16 Kenichi Handa <handa@etl.go.jp>
6432
6433 * ccl.c (Fregister_ccl_program): Handle the return value of
6434 resolve_symbol_ccl_program correctly.
6435 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
6436
6437 2001-01-15 Gerd Moellmann <gerd@gnu.org>
6438
6439 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
6440 has gone in the meantime, use face MOUSE_FACE_ID.
6441
6442 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
6443 If x_display_info_for_display returns null, don't try to close
6444 the display; we didn't open it.
6445
6446 * dispnew.c (save_or_restore_current_matrices): Function removed.
6447 (save_current_matrix, restore_current_matrix): New functions.
6448 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
6449 restore the frame's current matrix. Due to the glyph pointer
6450 setup done in adjust_glyph_matrix, there is no easy way to make
6451 saving the current matrix in the desired matrix generally correct,
6452 so don't try it.
6453
6454 2001-01-15 Kenichi Handa <handa@etl.go.jp>
6455
6456 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
6457 truncation glyphs.
6458 (display_line): Optimize for wide characters.
6459 (display_string): Don't try to display a multi-column character
6460 partially. On ttys, produce more than one truncation glyph for
6461 multi-column characters that don't fit on the line.
6462
6463 2001-01-13 Kenichi Handa <handa@etl.go.jp>
6464
6465 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
6466 Define it instead of WORDS_BIGENDIAN. Caller changed.
6467
6468 2001-01-13 Jason Rumney <jasonr@gnu.org>
6469
6470 * w32fns.c (Fimage_size, image_ascent, lookup_image)
6471 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
6472 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
6473 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
6474
6475 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
6476 (x_draw_image_relief, x_draw_image_foreground_1)
6477 (x_draw_image_glyph_string): Adapt to change of image margins.
6478
6479 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
6480 variables.
6481
6482 * w32bdf.c (search_file_line, get_cached_font_char)
6483 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
6484
6485 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
6486
6487 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
6488 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
6489 (Fw32_send_sys_command): Remove unused variables.
6490 (w32_msg_pump): Add parentheses.
6491
6492 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
6493 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
6494 Add parentheses.
6495
6496 2001-01-12 Gerd Moellmann <gerd@gnu.org>
6497
6498 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
6499 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
6500 being a pair of margins.
6501 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
6502 to DEFVAR_LISP. Extend doc.
6503
6504 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
6505 margins.
6506 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
6507 pair of integers `(X . Y)', use X for the horizontal and Y for the
6508 vertical margin.
6509 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
6510 (parse_image_spec): Check it.
6511 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
6512 (tiff_format, gif_format, gs_format):
6513 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
6514
6515 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
6516 (x_draw_image_relief, x_draw_image_foreground_1)
6517 (x_draw_image_glyph_string): Adapt to the change of image margins.
6518
6519 * dispextern.h (struct image): Replace member `margin' with
6520 `hmargin' and `vmargin'.
6521
6522 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
6523 and GLYPHS.
6524
6525 * dispnew.c (update_text_area): Put code which decrements the
6526 stop position when the row's face extends to the end of the
6527 line in #if 0.
6528
6529 * xfns.c (x_set_mouse_color): Fix color allocation.
6530
6531 * keyboard.c: Call get_local_map with new argument list.
6532
6533 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
6534
6535 * intervals.h (enum map_property): Removed.
6536 (get_local_map): Change prototype.
6537
6538 * keymap.c: Call get_local_map with new argument list.
6539 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
6540
6541 2001-01-11 Gerd Moellmann <gerd@gnu.org>
6542
6543 * xdisp.c (build_desired_tool_bar_string): Correct the computation
6544 of the size needed for the tool bar string. For the last image,
6545 use a `display' property that reaches to the end of the string.
6546
6547 * xselect.c (selection_request_dpyinfo): New variable.
6548 (x_handle_selection_request): Set it.
6549 (x_selection_request_lisp_error): Don't call
6550 x_decline_selection_request if selection request's display has
6551 been closed.
6552
6553 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
6554 Do the unregister_colors before calling XFreeColors.
6555
6556 2001-01-10 Dave Love <fx@gnu.org>
6557
6558 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
6559 ${SOME_MACHINE_LISP}, not ${lisp}.
6560
6561 2001-01-10 Gerd Moellmann <gerd@gnu.org>
6562
6563 * xdisp.c (display_line): On ttys, produce more than one truncation
6564 glyph for multi-column characters that don't fit on the line.
6565
6566 * xselect.c (x_reply_selection_request): Add a comment.
6567
6568 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
6569 XkbGetNames instead of XkbGetKeyboard.
6570
6571 2001-01-10 Dave Love <fx@gnu.org>
6572
6573 * sysdep.c (random): Revert the declaration.
6574
6575 2001-01-09 Gerd Moellmann <gerd@gnu.org>
6576
6577 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
6578 Call function string_bytes.
6579 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
6580
6581 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
6582 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
6583 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
6584 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
6585 the current sblock.
6586 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
6587 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
6588 after sweeping strings, and at the end.
6589 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
6590
6591 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
6592 ensure that pop_message is called.
6593
6594 * keyboard.c (Fexecute_extended_command): Use a
6595 record_unwind_protect to ensure that pop_message is called.
6596
6597 * lisp.h (push_message_unwind): Add prototype.
6598
6599 * xdisp.c (push_message_unwind): New function.
6600
6601 * fileio.c (do_auto_save_unwind): Do the pop_message here
6602 instead of in Fdo_auto_save.
6603 (Fdo_auto_save): Don't call pop_message.
6604
6605 2001-01-08 Ken Raeburn <raeburn@gnu.org>
6606
6607 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
6608 in inner block.
6609
6610 2001-01-08 Gerd Moellmann <gerd@gnu.org>
6611
6612 * window.c (window_scroll_pixel_based): Adjust glyph matrices
6613 when increasing window's vscroll.
6614
6615 * macros.c (Qkbd_macro_termination_hook): New variable.
6616 (syms_of_macros): Initialize and staticpro it.
6617 (pop_kbd_macro): Run kbd-macro-termination-hook.
6618
6619 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
6620
6621 2001-01-07 Dave Love <fx@gnu.org>
6622
6623 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
6624 arglist, for documentation's sake.
6625
6626 2001-01-06 Andrew Innes <andrewi@gnu.org>
6627
6628 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
6629 of *.pdb.
6630
6631 2001-01-05 Andrew Innes <andrewi@gnu.org>
6632
6633 * term.c (update_end): Don't check updating_frame; for some reason
6634 this can be 0 sometimes, such as after dismissing a popup menu,
6635 and isn't necessary given the explicit frame argument.
6636
6637 2001-01-05 Gerd Moellmann <gerd@gnu.org>
6638
6639 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
6640 on some systems, and an unsigned long on others, like FreeBSD 4.1.
6641
6642 2001-01-04 Gerd Moellmann <gerd@gnu.org>
6643
6644 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
6645
6646 * xfns.c (x_create_tip_frame): Preserve the value of
6647 face_change_count around the creation of the tip frame.
6648
6649 * xfns.c (last_show_tip_args): New variable.
6650 (compute_tip_xy): New function.
6651 (Fx_show_tip): Reuse an existing tip frame, if possible.
6652 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
6653
6654 2001-01-04 Dave Love <fx@gnu.org>
6655
6656 * editfns.c (Fformat): Doc fix.
6657
6658 * systime.h (set_file_times): Prototype.
6659
6660 * widget.h (EmacsFrameSetCharSize_): Prototype.
6661
6662 * sysdep.c (random, srandom): Declare explicitly.
6663
6664 * dispextern.h (move_it_vertically_backward): Declare.
6665
6666 2001-01-04 Gerd Moellmann <gerd@gnu.org>
6667
6668 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
6669 like in Fx_create_frame.
6670
6671 * xfaces.c (set_font_frame_param): Don't do anything for
6672 non-graphical frames.
6673
6674 * window.c (Fdelete_other_windows): Set window's window_end_valid
6675 to nil when changing the window's start. Don't change the
6676 window's start when its top position hasn't changed. If we do,
6677 this will set the window's optional_new_start, which act's like a
6678 force_start during redisplay with C-x 1 M-> under particular
6679 circumstances (see report from Per Starback to emacs-pretest-bug
6680 from 2000-12-13.).
6681
6682 2001-01-03 Gerd Moellmann <gerd@gnu.org>
6683
6684 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
6685 short cut at the start of the function. Add an assertion.
6686 (reseat_at_next_visible_line_start): Add an assertion.
6687
6688 * window.c (Frecenter): When changing the window start, set the
6689 window's window_end_valid to nil.
6690 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
6691
6692 * dispextern.h (move_it_past_eol): Add prototype.
6693
6694 * xdisp.c (move_it_past_eol): New function.
6695
6696 * window.c (Fwindow_end): Doc fix.
6697
6698 2001-01-03 Dave Love <fx@gnu.org>
6699
6700 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
6701
6702 2001-01-03 Gerd Moellmann <gerd@gnu.org>
6703
6704 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
6705 the enabled_p flag of the glyph row at window_end_vpos to 0.
6706 (handle_single_display_prop): Fix last change.
6707
6708 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
6709
6710 * window.c (Frecenter): Doc fix.
6711
6712 2001-01-02 Andrew Innes <andrewi@gnu.org>
6713
6714 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
6715
6716 * frame.h (output_method): Add output_w32_console method.
6717 (FRAME_W32_CONSOLE_P): New macro.
6718
6719 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
6720 use output_w32_console method.
6721 (Qw32_console): New Lisp_Object.
6722 (Fframep): Return it.
6723 (syms_of_frame): Init it.
6724 (Fframe_parameters): Report w32console as font for w32_console frames.
6725
6726 * xfaces.c (realize_default_face): Set face foreground and
6727 background to unspecified for w32_console frames.
6728 (realize_face): Realize face cache for w32_console frames.
6729 (realize_tty_face): Accept w32_console frames.
6730
6731 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
6732 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
6733 necessary, even if running interactively.
6734
6735 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
6736 w32_console frames.
6737
6738 * w32term.c (x_update_begin):
6739 (x_update_end):
6740 (x_clear_frame):
6741 (x_ins_del_lines):
6742 (x_change_line_highlight):
6743 (x_delete_glyphs):
6744 (w32_ring_bell):
6745 (x_update_begin):
6746 (x_update_end):
6747 (w32_reassert_line_highlight):
6748 (w32_frame_rehighlight):
6749 (w32_frame_raise_lower): Do nothing if not w32 frame.
6750
6751 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
6752
6753 * w32fns.c (Fx_display_color_cells): Determine correct value, when
6754 system doesn't tell us directly.
6755 (Fx_display_visual_class): Implement properly.
6756
6757 2001-01-02 Gerd Moellmann <gerd@gnu.org>
6758
6759 * window.c (Frecenter): Handle centering in graphical frames
6760 specially. Centering on the basis of line counts doesn't work
6761 reliably with variable-height lines.
6762
6763 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6764
6765 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
6766 and al[].
6767
6768 * composite.c (run_composition_function): Remove unused var `val'.
6769 (update_compositions): Remove unused variable `hook'.
6770
6771 * intervals.c (get_local_map): Remove unused variable `tem'.
6772
6773 * doprnt.c (doprnt1): Remove unused variable `size'.
6774
6775 * fns.c (Flength): Remove unused variable `tail'.
6776 (Fdelete): Remove unused variable `size'.
6777
6778 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
6779 and `gcpro2'.
6780
6781 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
6782
6783 * data.c (find_symbol_value): Remove extra 3rd argument in the
6784 call to swap_in_symval_forwarding.
6785
6786 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
6787
6788 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
6789 (trivial_regexp_p): Remove unused variable `c'.
6790 (boyer_moore): Remove unused variable `k'.
6791
6792 * indent.c (current_column): Remove unused variable `stopchar'.
6793 (Fcompute_motion): Remove unused variable `contin'.
6794
6795 * casefiddle.c (casify_object): Remove unused variable `tolen'.
6796
6797 * dired.c (directory_files_internal): Fix a typo in a comment.
6798 Remove an unused variable `handler'.
6799 (file_name_completion): Remove unused function-scope variable `dp'.
6800 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
6801 on BSD4_2.
6802
6803 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
6804
6805 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
6806 and `buf'.
6807 (Fmarker_insertion_type): Remove unused variable `buf'.
6808
6809 * insdel.c (make_gap): Remove unused variable `result'.
6810
6811 * keyboard.c (record_char): Remove unused function-scope var `help'.
6812 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
6813 (menu_bar_items): Remove unused function-scope variable `tem'.
6814
6815 * fontset.c (fontset_ref): Remove unused variable `i'.
6816 (fontset_set): Remove unused variables `j' and `tmp'.
6817 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
6818 (make_fontset_for_ascii_face): Remove unused variable `name'.
6819 (fs_load_font): Remove unused variable `font_idx'.
6820 (fs_query_fontset): Remove unused function-local variable `fontset'.
6821 (list_fontsets): Remove unused variable `tail'.
6822 (Fnew_fontset): Remove unused variables `family' and `registry'.
6823 (accumulate_font_info): Remove unused variable `tmp'.
6824 (Ffontset_font): Remove unused variable `id'.
6825 (syms_of_fontset): Remove unused variable `i'.
6826
6827 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
6828 to x_term_init.
6829 (lookup_image): Remove unused variable `file'.
6830 (xbm_load): Remove unused variables `bitmap_data', `height', and
6831 `width'. Remove function-local variable `i', leave the
6832 block-local one.
6833 (gif_load): Remove unused variable `inc'.
6834
6835 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
6836 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
6837 leave only the one in the inner block.
6838
6839 * xfaces.c (face_fontset, realize_default_face): Remove unused
6840 variable `fontset'.
6841 (face_at_buffer_position): Remove unused variable `multibyte_p'.
6842
6843 * term.c (encode_terminal_code): Remove unused variable `c'.
6844
6845 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
6846 char *' instead of `char *'.
6847
6848 * category.c (Fcategory_docstring): Remove unused variable `doc'.
6849 (Fget_unused_category): Remove unused variable `docstring_vector'.
6850 (Fchar_category_set): Remove unused variables `val', `charset',
6851 `c1' and `c2'.
6852
6853 * coding.c (detect_coding_iso2022, setup_coding_system):
6854 Remove unused variable `i'.
6855 (detect_coding_mask): Remove unused variable `idx'.
6856 (detect_coding): Remove unused variable `i'.
6857 (ccl_coding_driver): Remove unused variable `result'.
6858 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
6859 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
6860 (encode_coding_string): Remove unused variables `gcpro1' and
6861 `saved_coding_symbol'.
6862 (Ffind_coding_systems_region_internal): Remove function-local
6863 variable args[], leave only the block-local one.
6864 (code_convert_region1): Remove unused variable `len'.
6865
6866 * charset.c (char_printable_p): Remove unused variable `chars'.
6867 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
6868 (str_to_multibyte): Remove unused variable `c'.
6869
6870 * window.c (size_window): Remove block-local variable `min_size'.
6871
6872 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
6873 `header_line_height'.
6874 (append_space, extend_face_to_end_of_line): Declare `saved_what'
6875 enum display_element_type.
6876
6877 2001-01-02 Gerd Moellmann <gerd@gnu.org>
6878
6879 * xterm.c (x_connection_closed): Catch X errors around all
6880 statements that call X. Save away the error message in a local copy.
6881
6882 * xterm.c (x_connection_closed): Set handling_signal to 0 at
6883 the start.
6884
6885 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
6886 in or at the start of invisible text.
6887
6888 * dispnew.c (update_window): Don't check_current_matrix_flags.
6889
6890 2001-01-01 Jason Rumney <jasonr@gnu.org>
6891
6892 * w32fns.c (x_figure_window_size): Do not allow new_height and
6893 new_width of frame to override specified values.
6894
6895 2000-12-30 Kenichi Handa <handa@etl.go.jp>
6896
6897 * composite.c (find_composition): Fix a code for searching backward.
6898
6899 2000-12-29 Gerd Moellmann <gerd@gnu.org>
6900
6901 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
6902 (update_window) [GLYPH_DEBUG]: Call it.
6903 (scrolling_window): Prevent including current rows which are below
6904 what's displayed in the window.
6905
6906 * xdisp.c (try_window_reusing_current_matrix)
6907 <new start <= old start>: Disable rows in the current matrix
6908 which are below the window after scrolling.
6909
6910 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
6911 is zero. It's not worth the complexity.
6912 (invisible_text_between_p): Put in #if 0 because unused.
6913
6914 2000-12-28 Gerd Moellmann <gerd@gnu.org>
6915
6916 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
6917 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
6918
6919 * keyboard.c (echo_char): If C is an integer, always call
6920 push_key_description. Former code could signal an invalid
6921 character error.
6922
6923 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
6924 If set, print multibyte text.
6925 (Fsingle_key_description): Call push_key_description with
6926 FORCE_MULTIBYTE set.
6927 (describe_buffer_bindings): Likewise.
6928
6929 * lisp.h (push_key_description): Add prototype.
6930
6931 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
6932 around the call to redisplay_internal.
6933
6934 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
6935
6936 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
6937
6938 2000-12-28 Kenichi Handa <handa@etl.go.jp>
6939
6940 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
6941 (ccl_driver): New local variable `extra_bytes'.
6942
6943 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
6944
6945 * coding.c (setup_coding_system):
6946 Initialize coding->spec.ccl.eight_bit_carryover.
6947 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
6948
6949 2000-12-28 Kenichi Handa <handa@etl.go.jp>
6950
6951 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
6952 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
6953 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
6954 (decode_composition_emacs_mule): New function.
6955 (decode_coding_emacs_mule): Decode composition sequence by calling
6956 decode_composition_emacs_mule.
6957 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
6958 (encode_coding_emacs_mule): Changed from macro to function.
6959 If a text contains compositions, encode them correctly.
6960 (setup_coding_system): Set coding->commong_flags for emacs-mule so
6961 that decoding and encoding are required.
6962
6963 2000-12-27 Gerd Moellmann <gerd@gnu.org>
6964
6965 * xfaces.c (PT_PER_INCH): New macro.
6966 (xlfd_point_size): Compute real point size from font's pixel size.
6967 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
6968 instead of 72.
6969
6970 * .gdbinit: Comment out the line pointing to the Lesstif source
6971 directory.
6972
6973 * window.c (Frecenter): Use displayed_window_lines instead
6974 of window_internal_height.
6975
6976 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
6977 instead of x-toolkit-scroll-bars-p.
6978 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
6979
6980 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
6981 instead of x-toolkit-scroll-bars-p.
6982 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
6983
6984 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
6985 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
6986 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
6987 New variables.
6988 (add_window_display_history, add_frame_display_history)
6989 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
6990 (build_frame_matrix_from_leaf_window): Remove unused code.
6991 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
6992 redisplay history.
6993 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
6994 (update_window) [GLYPH_DEBUG]: Likewise.
6995 (syms_of_display): Defsubr dump-redisplay-history.
6996
6997 2000-12-23 Gerd Moellmann <gerd@gnu.org>
6998
6999 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
7000 the end of the prompt. Set echo_after_prompt to the offset
7001 of echoptr in echobuf.
7002
7003 * xdisp.c (init_from_display_pos): Pop until the iterator's
7004 stack is empty; there may be frames for stretch or images
7005 on the stack.
7006
7007 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
7008 (save_or_restore_current_matrix): New function for the same
7009 purpose, but more efficient.
7010 (adjust_frame_glyphs_for_frame_redisplay): Use it.
7011
7012 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
7013
7014 * xdisp.c (syms_of_xdisp): Fix last change.
7015
7016 2000-12-23 Gerd Moellmann <gerd@gnu.org>
7017
7018 * xdisp.c (syms_of_xdisp): Doc fix.
7019
7020 * xdisp.c (redisplay_window): Remove label restore_buffers;
7021 use finish_scroll_bars instead to make sure that scroll bars
7022 are redeemed. If we don't do this, flickering can result from
7023 scroll bars being destroyed and recreated.
7024
7025 2000-12-22 Jason Rumney <jasonr@gnu.org>
7026
7027 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
7028 in the wrong colors when the foreground is not black.
7029 (expose_window): Don't redraw the window that's currently being
7030 updated.
7031
7032 2000-12-22 Gerd Moellmann <gerd@gnu.org>
7033
7034 * window.c (size_window): When setting the window's too_small_ok
7035 flag, compare old size with minimum size depending on WIDTH_P,
7036 don't compare with window_min_width.
7037
7038 * window.c (delete_window): Simplify somewhat.
7039 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
7040 freeing window matrices. The flag windows_or_buffers_changed is
7041 set, so the next redisplay will consider all windows; this should
7042 suffice.
7043
7044 2000-12-22 Kenichi Handa <handa@etl.go.jp>
7045
7046 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
7047
7048 * ccl.h (struct ccl_program): New member cr_consumed.
7049
7050 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
7051 (CCL_READ_CHAR): Handle EOL conversion here.
7052 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
7053
7054 2000-12-21 Gerd Moellmann <gerd@gnu.org>
7055
7056 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
7057
7058 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
7059 otherwise tabs of different size compare equal.
7060
7061 * callint.c (Fcall_interactively): Prevent a compiler warning.
7062
7063 * print.c (print_unwind): Return nil.
7064 (PRINTDECLARE): Initialize all local variables.
7065 (print_preprocess): Add a default case.
7066
7067 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
7068
7069 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
7070
7071 * window.c (delete_window, Fsplit_window)
7072 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
7073
7074 * dispextern.h (ensure_frame_matrix): Function declaration removed.
7075
7076 * dispnew.c (ensure_frame_matrix): Removed.
7077 (save_frame_matrix, restore_frame_matrix): New functions.
7078 (adjust_frame_glyphs_for_frame_redisplay): Use them.
7079
7080 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
7081 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
7082
7083 2000-12-21 Andrew Innes <andrewi@gnu.org>
7084
7085 * w32term.c (x_update_begin): Regenerate the palette here, rather
7086 than for each window.
7087
7088 * w32xfns.c (select_palette): Avoid calling SelectPalette if
7089 palette is NULL, since this corrupts memory! Also get
7090 display_info reference from frame.
7091
7092 2000-12-21 Jason Rumney <jasonr@gnu.org>
7093
7094 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
7095
7096 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
7097 to avoid returning without releasing it.
7098
7099 2000-12-21 Kenichi Handa <handa@etl.go.jp>
7100
7101 * keymap.c (push_key_description): Don't convert eight-bit-control
7102 and eight-bit-graphic to multibyte character.
7103
7104 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
7105 generic character and CODE1 is nil, return the smallest character
7106 in CHARSET.
7107
7108 2000-12-20 Dave Love <fx@gnu.org>
7109
7110 * s/osf5-0.h (NSIG): Don't redefine.
7111
7112 2000-12-20 Stefan Monnier <monnier@cs.yale.edu>
7113
7114 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
7115 excluding menu-bar and tool-bar.
7116 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
7117 (menu_item_p): Remove.
7118 (where_is_internal_1): Don't ignore menu-items.
7119
7120 2000-12-20 Gerd Moellmann <gerd@gnu.org>
7121
7122 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
7123 into account.
7124
7125 * window.c (make_window): Initialize window's min_hscroll.
7126 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
7127 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
7128 to zero.
7129 (struct saved_window): New member min_hscroll.
7130 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
7131 (Fset_window_configuration): Set window's min_hscroll.
7132 (save_window_save): Save window's min_hscroll.
7133 (compare_window_configurations): Compare min_hscroll values.
7134
7135 * window.h (struct window): New member min_hscroll.
7136
7137 * keyboard.c (echo_prompt): Prevent a compiler warning.
7138
7139 * xdisp.c (try_cursor_movement): Fix last change. The real
7140 condition is that PT is at the end of the row, and should
7141 be displayed at the start of the next row.
7142
7143 * xdisp.c (try_cursor_movement): If we end on a partially
7144 visible line, end we already decided to scroll, return -1.
7145
7146 * dispextern.h (ensure_frame_matrix): Add prototype.
7147
7148 * window.c (delete_window, Fsplit_window)
7149 (Fset_window_configuration): Call ensure_frame_matrix.
7150
7151 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
7152 New functions.
7153 (adjust_frame_glyphs_for_frame_redisplay): If display has been
7154 completed, call fake_current_matrices instead of marking frame
7155 garbaged.
7156
7157 2000-12-20 Jason Rumney <jasonr@gnu.org>
7158
7159 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
7160
7161 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
7162
7163 * fns.c (Frequire): Doc fix.
7164
7165 2000-12-19 Gerd Moellmann <gerd@gnu.org>
7166
7167 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
7168
7169 * dispnew.c (direct_output_for_insert): Fix check for mini-window
7170 currently displaying a message.
7171
7172 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
7173 xterm.h.
7174 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
7175
7176 2000-12-18 Andrew Innes <andrewi@gnu.org>
7177
7178 * w32.c (w32_strerror): New function.
7179
7180 * w32.h (w32_strerror): New extern.
7181
7182 * w32fns.c (Fw32_shell_execute): Use it.
7183
7184 2000-12-18 Gerd Moellmann <gerd@gnu.org>
7185
7186 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
7187
7188 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
7189
7190 * msdos.c (IT_set_face): Obey inverse_video.
7191
7192 2000-12-18 Kenichi Handa <handa@etl.go.jp>
7193
7194 * dired.c (directory_files_internal): Always return decoded filenames.
7195
7196 2000-12-18 Gerd Moellmann <gerd@gnu.org>
7197
7198 * xterm.c (x_connection_closed): Prevent being called recursively
7199 because of an error condition in XtCloseDisplay.
7200
7201 * xdisp.c (init_iterator): If noninteractive, and the frame's
7202 face cache is null, make one.
7203
7204 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
7205
7206 * process.c (wait_reading_process_input): Check for pending
7207 input when running timers.
7208
7209 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
7210
7211 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
7212
7213 2000-12-18 Kenichi Handa <handa@etl.go.jp>
7214
7215 * process.c (read_process_output): Don't run a filter if the code
7216 decoder produces nothing but carryover.
7217
7218 2000-12-17 Andrew Innes <andrewi@gnu.org>
7219
7220 * w32.c (sys_rename): Only check errno against EEXIST, and not
7221 EACCES, when determining whether rename failed because the target
7222 exists. This was resulting in indefinite looping on Windows 9x if
7223 the source file was locked by another process.
7224
7225 * w32fns.c (Ffile_system_info): New function.
7226 (syms_of_w32fns): Defsubr it.
7227
7228 2000-12-17 Gerd Moellmann <gerd@gnu.org>
7229
7230 * window.c (coordinates_in_window): Fix computation for
7231 position on vertical line between mode lines.
7232
7233 * xfns.c (unwind_create_frame): Return t if frame was deleted.
7234 Don't alter tip_frame or tip_window.
7235 (unwind_create_tip_frame): Set tip_frame to nil only if frame
7236 was deleted.
7237
7238 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
7239 Don't alter tip_frame or tip_window.
7240 (unwind_create_tip_frame): Set tip_frame to nil only if frame
7241 was deleted.
7242
7243 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
7244
7245 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
7246 be consistent with the doc string. Reported by NAKAJIMA Mikio
7247 <minakaji@osaka.email.ne.jp>.
7248
7249 2000-12-16 Kenichi Handa <handa@etl.go.jp>
7250
7251 * xfaces.c (Vface_ignored_fonts): New variable.
7252 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
7253 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
7254
7255 2000-12-15 Gerd Moellmann <gerd@gnu.org>
7256
7257 * dispnew.c (update_window): Detect pending input every nth line
7258 updated, i.e. do it depending on real work done, and not on the
7259 vpos of the line.
7260
7261 * xterm.c (expose_window): Don't redraw the window that's
7262 currently being updated.
7263
7264 * window.c (Fset_window_point): Remove test for
7265 cursor_in_non_selected_windows.
7266
7267 * lread.c (read1): Recognize end of file after `\\'.
7268
7269 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
7270 not unwind_create_frame.
7271
7272 2000-12-15 Dave Love <fx@gnu.org>
7273
7274 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
7275 bcopy & al.
7276
7277 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
7278
7279 2000-12-15 Kenichi Handa <handa@etl.go.jp>
7280
7281 * coding.c (setup_coding_system): Clear all members of the struct
7282 coding_system at first.
7283 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
7284 argument.
7285 (code_convert_region): Don't override coding->src_multibyte and
7286 coding->dst_multibyte.
7287
7288 * fns.c (Fmd5): Docstring improved.
7289
7290 2000-12-15 Miles Bader <miles@gnu.org>
7291
7292 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
7293 are actually marked as mode-lines; otherwise use
7294 estimate_mode_line_height.
7295
7296 2000-12-14 Gerd Moellmann <gerd@gnu.org>
7297
7298 * editfns.c (Fformat): Prevent a buffer overrun when the format
7299 specifies a precision.
7300
7301 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
7302
7303 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
7304 argument is outside the range [2..3].
7305
7306 2000-12-14 Andrew Innes <andrewi@gnu.org>
7307
7308 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
7309 nothing to do. Bind inhibit-quit.
7310 (tip_frame): Make it a Lisp_Object.
7311 (x_create_tip_frame): Set tip_frame after it has been added to
7312 Vframe_list.
7313 (Fx_show_tip): Don't set tip_frame here.
7314 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
7315 (unwind_create_frame, unwind_create_tip_frame): New functions.
7316 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
7317 while a frame is only partially constructed.
7318
7319 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
7320 (x_free_frame_resources): New function.
7321 (x_destroy_window): Use it.
7322
7323 2000-12-14 Gerd Moellmann <gerd@gnu.org>
7324
7325 * xfns.c (Fx_backspace_delete_keys_p): New function.
7326 (syms_of_xfns): Defsubr it.
7327
7328 * config.in (HAVE_XKBGETKEYBOARD): Add.
7329
7330 2000-12-14 Kenichi Handa <handa@etl.go.jp>
7331
7332 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
7333 Always store string in multibyte representation in echobuf.
7334 (echo_char): Always store string in multibyte representation in
7335 echobuf.
7336 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
7337 (read_key_sequence): Adjusted for the change of echo_prompt.
7338
7339 * fns.c (Fmd5): Docstring improved.
7340
7341 * lisp.h (detect_coding_system): Prototype adjusted.
7342
7343 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
7344 (detect_coding_emacs_mule, detect_coding_iso2022,)
7345 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
7346 (detect_coding_utf_16, detect_coding_ccl): Make them static.
7347 New argument MULTIBYTEP. Callers changed.
7348 (detect_coding_mask, detect_coding_system): New argument
7349 MULTIBYTEP. Callers changed.
7350 (decode_coding_string): Set coding->src_multibyte and
7351 coding->dst_multibyte before calling detect_coding and detect_eol.
7352 Update them after some coding system is detected.
7353
7354 2000-12-13 Stefan Monnier <monnier@cs.yale.edu>
7355
7356 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
7357
7358 * keyboard.c (menu_bar_items, tool_bar_items):
7359 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
7360
7361 2000-12-13 Gerd Moellmann <gerd@gnu.org>
7362
7363 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
7364 New variables.
7365 (unwind_create_frame, unwind_create_tip_frame): New functions.
7366 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
7367 while a frame is only partially constructed.
7368
7369 * xterm.h (x_free_frame_resources): Declare.
7370
7371 * xterm.c (x_free_frame_resources): New function.
7372 (x_destroy_window): Use it.
7373
7374 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
7375 don't interrupt the update for pending input initially, i.e.
7376 update at least some lines.
7377
7378 * keyboard.c (do_mouse_tracking): Make externally visible.
7379
7380 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
7381
7382 * xfns.c (gray_bitmap_bits): Declare `char *'.
7383
7384 2000-12-12 Gerd Moellmann <gerd@gnu.org>
7385
7386 * xdisp.c (display_tool_bar_line): Make sure that tool bar
7387 lines start with a relief line.
7388
7389 2000-12-12 Dave Love <fx@gnu.org>
7390
7391 * window.c (Fdisplay_buffer): Doc fix.
7392 (Fwindow_list): Remove unused var.
7393
7394 * buffer.h (mmap_set_vars): Declare.
7395
7396 * window.h (Fset_window_point): Declare.
7397
7398 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
7399
7400 * msdos.c (fast_find_position): Don't overstep the last window row.
7401 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
7402 variable `area'. When looking for a row under (X,Y), give up if some
7403 of the previous rows is not enabled.
7404
7405 2000-12-12 Gerd Moellmann <gerd@gnu.org>
7406
7407 * window.c (Fset_window_point): If displaying cursors in windows
7408 other than the selected window, make sure redisplay updates
7409 other windows to show the new value of point in the window.
7410
7411 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
7412
7413 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
7414 the buffer is the sole visible buffer when in the mini-buffer.
7415
7416 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
7417 Bind `inhibit-read-only' to t.
7418 (unwind_with_echo_area_buffer): Use AREF.
7419
7420 * xfns.c (Fx_hide_tip): Simplified.
7421
7422 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
7423 instead of `1'.
7424
7425 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
7426
7427 2000-12-11 Gerd Moellmann <gerd@gnu.org>
7428
7429 * xfns.c (Fx_hide_tip): Fix last change.
7430
7431 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
7432 nothing to do. Bind inhibit-quit.
7433 (tip_frame): Make it a Lisp_Object.
7434 (x_create_tip_frame): Set tip_frame after it has been added to
7435 Vframe_list.
7436 (Fx_show_tip): Don't set tip_frame here.
7437
7438 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
7439
7440 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
7441 Lisp_Object.
7442
7443 * dispextern.h: Change external declaration of tip_frame.
7444
7445 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
7446 return an empty string.
7447
7448 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
7449 of the window's update_mode_line flag, since the former is set by
7450 force-mode-line-update, not the latter. This makes
7451 column-number-mode slightly faster.
7452
7453 * xdisp.c (try_window_id) <all changes above window start>:
7454 Set the cursor.
7455
7456 2000-12-11 Paul Eggert <eggert@twinsun.com>
7457
7458 * config.in (HAVE_FTELLO): Remove.
7459 (HAVE_FSEEKO): Add.
7460 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
7461 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
7462 HAVE_FTELLO.
7463 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
7464 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
7465
7466 2000-12-11 Miles Bader <miles@gnu.org>
7467
7468 * window.c (displayed_window_lines): Don't round up when
7469 converting empty space at bottom to lines.
7470 Handle non-newline-terminated final lines properly.
7471 (Fwindow_text_height): New function (used to be in lisp).
7472 (syms_of_window): Initialize it.
7473
7474 2000-12-09 Stefan Monnier <monnier@cs.yale.edu>
7475
7476 * syntax.c (scan_lists): Check that the right quote char has the
7477 right Sstring syntax when jumping over strings.
7478 (init_syntax_once): Use Smax rather than 13.
7479
7480 2000-12-09 Miles Bader <miles@gnu.org>
7481
7482 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
7483 with PARTIALLY, inverting the sense.
7484 (window_scroll_pixel_based): Scroll partially visible lines into
7485 place if we hit the beginning or end of the buffer.
7486 (displayed_window_lines): Don't include partially visible lines.
7487 (Fmove_to_window_line): Skip past any partially visible first line.
7488
7489 2000-12-08 Gerd Moellmann <gerd@gnu.org>
7490
7491 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
7492
7493 * tparam.c (tparam1): Change the way buffers are reallocated to be
7494 portable and less obfuscated.
7495
7496 * termcap.c (tgetent): Change the way buffers are reallocated to
7497 be portable and less obfuscated.
7498
7499 * macros.c (store_kbd_macro_char): Change the way buffers are
7500 reallocated to be portable and less obfuscated.
7501
7502 * lread.c (read1): Change the way buffers are reallocated to be
7503 portable and less obfuscated.
7504
7505 * doc.c (Fsubstitute_command_keys): Change the way buffers
7506 are reallocated so that it is portable.
7507
7508 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
7509
7510 * dosfns.c (Ffile_system_info): New function.
7511 (syms_of_dosfns): Defsubr it.
7512
7513 2000-12-07 Stefan Monnier <monnier@cs.yale.edu>
7514
7515 * alloc.c (gc_sweep): Add comment.
7516
7517 2000-12-07 Gerd Moellmann <gerd@gnu.org>
7518
7519 * sound.c (vox_configure): Change order of ioctls.
7520 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
7521 Ignore errors when changing volume.
7522 (vox_close): Don't reset the device.
7523
7524 * process.c (read_process_output): Make sure the process marker's
7525 position is valid when the process buffer is changed in
7526 after-change functions. W3 does that.
7527
7528 * xfns.c (x_free_gcs): New function.
7529
7530 * xterm.h (x_free_gcs): Add prototype.
7531
7532 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
7533 freeing GCs here.
7534
7535 * xterm.c (x_destroy_window): Call x_free_gcs so that
7536 resources of non-toolkit X windows will be freed.
7537
7538 2000-12-07 Andrew Innes <andrewi@gnu.org>
7539
7540 * w32fns.c (xlfd_charset_of_font): Fix last change.
7541
7542 2000-12-06 Dave Love <fx@gnu.org>
7543
7544 * md5.h (__P): Don't define -- it comes from config.h.
7545
7546 * strftime.c: Change some #if foo to #ifdef foo.
7547
7548 2000-12-06 Andrew Innes <andrewi@gnu.org>
7549
7550 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
7551
7552 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
7553 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
7554 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
7555
7556 2000-12-06 Gerd Moellmann <gerd@gnu.org>
7557
7558 * alloc.c (gc_sweep): Prevent symbols read during loadup
7559 from being freed.
7560
7561 * xdisp.c (underlying_face_id): New function.
7562 (handle_face_prop, face_before_or_after_it_pos): Use it
7563 to determine the face ``under'' a string. Let strings inherit
7564 the face of the buffer under them.
7565
7566 * xfaces.c (face_at_string_position): Update function comment.
7567
7568 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
7569 matrix if the window's left position has changed; we need to
7570 redraw it in this case.
7571
7572 * dispextern.h (struct glyph_matrix): Add member window_left_x.
7573
7574 * window.c (coordinates_in_window): Check mouse on mode-line or
7575 header-line first.
7576
7577 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
7578 advertized by the function documentation.
7579
7580 * window.c (syms_of_window): Doc fix.
7581
7582 * sound.c (vox_configure): Set volume for left and right channel.
7583 (sound_cleanup): Return nil.
7584
7585 * xdisp.c (move_it_by_lines): Fix paren typo.
7586
7587 * xterm.c (x_load_font): Don't use the font's max_bounds for
7588 computing the height of the font. If max_bounds' ascent or
7589 descent are greater than the font's ascent or descent, this means
7590 glyphs overlap, which should be handled now by redisplay.
7591
7592 * window.c (Veven_window_heights): New variable.
7593 (syms_of_window): DEFVAR_LISP it.
7594 (Fdisplay_buffer): Check Veven_window_heights before evening the
7595 window heights.
7596
7597 2000-12-06 Miles Bader <miles@gnu.org>
7598
7599 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
7600 update `default-frame-alist' instead of setting no frame parameters.
7601
7602 2000-12-06 Kenichi Handa <handa@etl.go.jp>
7603
7604 * composite.c (update_compositions): Fix typo (use the correct
7605 variable).
7606
7607 2000-12-05 Jason Rumney <jasonr@gnu.org>
7608
7609 * md5.h: Remove underscores from function declarations.
7610 (__attribute__, __alignof__) [!__GNUC__]: Define.
7611
7612 * md5.c: Delay include of md5.h until after namespace cleaning.
7613
7614 * makefile.w32-in (fns.o): Depend on md5.h
7615 (md5.o): New target.
7616 (sunfns.o): Remove.
7617
7618 * makefile.nt: Likewise.
7619
7620 2000-12-05 Jason Rumney <jasonr@altavista.net>
7621
7622 * w32term.c (expose_area): Complete last change.
7623
7624 2000-12-05 Ken Raeburn <raeburn@gnu.org>
7625
7626 * minibuf.c: Include intervals.h.
7627
7628 2000-12-05 Jason Rumney <jasonr@gnu.org>
7629
7630 * w32term.c (x_produce_glyphs): If a font for a component of
7631 a composition is not found, use 1 pixel dot ascent and 0 dot
7632 descent value to avoid displaying terribly tall empty boxes.
7633 (expose_area): Pass x-coordinate relative to the exposed
7634 area to x_draw_glyphs instead of a window-relative coordinate.
7635
7636 2000-12-05 Gerd Moellmann <gerd@gnu.org>
7637
7638 * xdisp.c (next_element_from_ellipsis): Save face before selective
7639 display in saved_face_id, and set face_before_selective_p.
7640 (reseat_1): Reset face_before_selective_p.
7641 (append_space, extend_face_to_end_of_line): If iterator's
7642 face_before_selective_p is set, use the face from saved_face_id.
7643 (extend_face_to_end_of_line): For tty frames, make sure to
7644 use the right face id when producing spaces at the end of
7645 the line.
7646
7647 * dispextern.h (struct it): Add face_before_selective_p.
7648
7649 * keyboard.c (record_char): Don't record identical help-echo
7650 events in recent_keys.
7651
7652 * xterm.c [USE_X_TOOLKIT]: Close the display.
7653 (xim_close_dpy): Handle case that the display has been closed.
7654
7655 * xterm.c (x_destroy_window): Reset the frame's X window after
7656 destroying it.
7657
7658 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
7659 variable window_width.
7660 (line_draw_cost): Fix code skipping over spaces at the end of the
7661 line when must_write_spaces is not set.
7662 (scrolling_window): Fix code inserting runs in list of all runs.
7663
7664 2000-12-05 Kenichi Handa <handa@etl.go.jp>
7665
7666 * coding.c (setup_coding_system): Be sure to initialize
7667 coding->category_idx.
7668
7669 2000-12-04 Gerd Moellmann <gerd@gnu.org>
7670
7671 * xterm.c (PER_CHAR_METRIC): Removed because not used.
7672
7673 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
7674 area to x_draw_glyphs instead of a window-relative coordinate.
7675
7676 * fileio.c (auto_save_error): Add parameter ERROR. Show the
7677 error in the message.
7678
7679 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
7680 timer after having read a key. It's not good for code reading
7681 several keys in a loop, like an input method.
7682
7683 * fileio.c (Finsert_file_contents): When VISIT is t, don't
7684 record undo information for format-decode.
7685
7686 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
7687 current buffer is read-only, not if it isn't.
7688
7689 * keyboard.c (record_char): Record `help-echo' input events
7690 in recent_keys only if they display some help. Don't record
7691 `help-echo' events as macro char.
7692
7693 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
7694
7695 * editfns.c (save_excursion_restore): Don't move point
7696 in another window if it is showing the wrong buffer.
7697 Avoid the call to Fwindow_live_p, for speed.
7698
7699 2000-12-04 Kenichi Handa <handa@etl.go.jp>
7700
7701 * xfaces.c (struct font_name): New member registry_priority.
7702 (split_font_name): Initialize the above member to zero.
7703 (concat_font_list): New function.
7704 (font_list): Include fonts of all alternative registries.
7705 (FONT_POINT_SIZE_QUANTUM): New macro.
7706 (better_font_p): Ignore point size difference less than
7707 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
7708
7709 * xterm.c (x_produce_glyphs): If a font for a component of
7710 a composition is not found, use 1 pixel dot ascent and 0 dot
7711 descent value to avoid displaying terribly tall empty boxes.
7712
7713 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
7714
7715 2000-12-03 Ken Raeburn <raeburn@gnu.org>
7716
7717 * coding.h (code_convert_string1): Declare.
7718
7719 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
7720
7721 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
7722
7723 2000-12-02 Jason Rumney <jasonr@gnu.org>
7724
7725 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
7726 correctly for single byte character case.
7727 (w32_per_char_metric): Do not try to make any assumptions about
7728 the metrics of BDF fonts.
7729 (x_estimate_mode_line_height): If `mode-line' face
7730 hasn't a font, use that of the frame, as drawing glyphs does.
7731 (note_mouse_highlight): Change the cursor shape on the vertical
7732 border between windows [not enabled].
7733
7734 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
7735
7736 * w32fns.c (Fx_create_frame): Reintroduce the call to
7737 face-set-after-frame-defaults.
7738 (Vx_window_horizontal_drag_shape): New variable.
7739 (syms_of_xfns): DEFVAR_LISP it.
7740 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
7741 enabled].
7742
7743 2000-12-02 Simon Josefsson <simon@josefsson.org>
7744
7745 * fns.c (Fmd5): Use a different logic to decide the coding system
7746 to use.
7747
7748 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
7749
7750 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
7751
7752 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
7753
7754 2000-12-01 Gerd Moellmann <gerd@gnu.org>
7755
7756 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
7757 height for YNegative.
7758 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
7759 height; also see comment there.
7760
7761 * window.c (coordinates_in_window): Handle computations for
7762 positions on the vertical bar and fringes differently for
7763 window-system frames. Consider some pixels near the vertical bar
7764 as on the bar if the frame doesn't have vertical scroll bars.
7765 Associate positions between mode or header lines with the
7766 right window, the left one.
7767
7768 2000-12-01 Jason Rumney <jasonr@gnu.org>
7769
7770 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
7771
7772 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
7773 invalid frame.
7774
7775 2000-12-01 Gerd Moellmann <gerd@gnu.org>
7776
7777 * window.c (struct saved_window): Add members orig_top and orig_height.
7778 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
7779 (save_window_save, Fset_window_configuration): Save/restore
7780 window's orig_top and orig_height.
7781
7782 2000-12-01 Jason Rumney <jasonr@gnu.org>
7783
7784 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
7785
7786 * w32fns.c (x_set_cursor_color): Fix last change.
7787
7788 2000-11-30 Gerd Moellmann <gerd@gnu.org>
7789
7790 * xdisp.c (echo_area_display): If cursor is in the echo area, make
7791 sure that the next redisplay displays the minibuffer, so that
7792 the cursor will be replaced with what the minibuffer wants.
7793
7794 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
7795 #ifndef instead of using #if.
7796 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
7797 USE_TOOLKIT_SCROLL_BARS is defined.
7798
7799 2000-11-30 Jason Rumney <jasonr@gnu.org>
7800
7801 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
7802 x_display_cursor.
7803
7804 2000-11-30 Gerd Moellmann <gerd@gnu.org>
7805
7806 * fns.c (Fmd5): Doc fix.
7807
7808 2000-11-30 Simon Josefsson <simon@josefsson.org>
7809
7810 * fns.c (Fmd5): New function.
7811 (syms_of_fns): Defsubr md5.
7812
7813 * Makefile.in (obj): Add md5.o
7814
7815 2000-11-30 Gerd Moellmann <gerd@gnu.org>
7816
7817 * md5.h, md5.c: New files, taken from glibc.
7818
7819 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
7820
7821 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
7822 hasn't a font, use that of the frame, as drawing glyphs does.
7823
7824 2000-11-29 Stefan Monnier <monnier@cs.yale.edu>
7825
7826 * eval.c (Frun_hooks): Allow 0 arguments.
7827
7828 2000-11-29 Gerd Moellmann <gerd@gnu.org>
7829
7830 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
7831 is over the menu bar widget, say it's not on the frame.
7832
7833 * xfns.c (Fx_create_frame): Reintroduce the call to
7834 face-set-after-frame-defaults.
7835
7836 * eval.c (Fsignal): Reset handling_signal.
7837
7838 2000-11-28 Jason Rumney <jasonr@gnu.org>
7839
7840 * w32menu.c (add_menu_item): Reset menu item text when changing
7841 type to radio button.
7842
7843 2000-11-28 Gerd Moellmann <gerd@gnu.org>
7844
7845 * xselect.c: Update copyright.
7846
7847 * window.c (coordinates_in_window): If on a mode or header line,
7848 but sufficiently close to its start, return ``on vertical
7849 border''. This gives us a way to drag windows horizontally when
7850 using toolkit scroll bars.
7851
7852 * xterm.c (note_mouse_highlight): Change the cursor shape
7853 on the vertical border between windows.
7854
7855 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
7856
7857 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
7858 (syms_of_xfns): DEFVAR_LISP it.
7859 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
7860
7861 * textprop.c (text_read_only): New function.
7862 (verify_interval_modification): Use it instead of signaling
7863 `text-read-only'. This makes it easier to catch this error
7864 with a breakpoint.:
7865
7866 * xdisp.c (forward_to_next_line_start): Check for newlines,
7867 not end of line, which includes CR.
7868
7869 2000-11-28 Kenichi Handa <handa@etl.go.jp>
7870
7871 * coding.c (Ffind_coding_systems_region_internal): Be sure to
7872 include no-conversion.
7873
7874 2000-11-27 Jason Rumney <jasonr@gnu.org>
7875
7876 * w32fns.c (w32_load_system_font): Always mark font as double byte
7877 if codepage is unicode.
7878
7879 2000-11-27 Gerd Moellmann <gerd@gnu.org>
7880
7881 * xdisp.c (forward_to_next_line_start): If already on a newline,
7882 just consume it to avoid unintended skipping over invisible text below.
7883
7884 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
7885 `vertical-line', `mode-line' and `header-line' events.
7886
7887 * xdisp.c (try_window_id): Avoid starting to display in the middle
7888 of a character, a TAB for instance. This is easier than to set
7889 up the iterator exactly, and it's not a frequent case, so the
7890 additional effort wouldn't really pay off.
7891
7892 2000-11-26 Andrew Choi <akochoi@i-cable.com>
7893
7894 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
7895 init_window_once.
7896
7897 2000-11-25 Jason Rumney <jasonr@gnu.org>
7898
7899 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
7900 Args to window_from_coordinates should be pixel coordinates.
7901
7902 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
7903 redisplay handles them properly.
7904
7905 2000-11-25 Miles Bader <miles@gnu.org>
7906
7907 * indent.c (compute_motion): Keep pos_byte in sync with pos.
7908
7909 2000-11-24 Jason Rumney <jasonr@gnu.org>
7910
7911 * w32.c (init_environment): Set LANG environment variable based on
7912 locale settings, if not set.
7913
7914 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
7915 making tool bar smaller. When clearing the frame, also
7916 clear current matrices. Clear frame when tool bar disappears.
7917 Don't use more lines for the tool-bar than is available.
7918 (x_change_window_heights): New function.
7919
7920 2000-11-24 Gerd Moellmann <gerd@gnu.org>
7921
7922 * xdisp.c (init_from_display_pos): If POS says we're already after
7923 an overlay string ending at POS, make sure to pop the iterator
7924 because it will be in front of that overlay string. When POS is
7925 ZV, we've thereby also ``processed'' overlay strings at ZV.
7926
7927 * xfaces.c (lface_from_face_name): Function comment fix.
7928
7929 2000-11-24 Miles Bader <miles@gnu.org>
7930
7931 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
7932 apply `mode-line-inverse-video' -- zero means force display using
7933 the default face, non-zero means display using the specialized face.
7934 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
7935
7936 2000-11-23 Kenichi Handa <handa@etl.go.jp>
7937
7938 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
7939 hard coded `4'.
7940
7941 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
7942
7943 * coding.c (decode_coding_emacs_mule): Fix the case of
7944 CODING_EOL_LF, which used uninitialized value of c.
7945
7946 2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
7947
7948 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
7949
7950 2000-11-22 Gerd Moellmann <gerd@gnu.org>
7951
7952 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
7953 buffer object.
7954
7955 * frame.h (struct frame): Replace desired_tool_bar_items,
7956 current_tool_bar_items, n_desired_tool_bar_items,
7957 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
7958
7959 * frame.c (make_frame): Change initialization of tool bar
7960 items accordingly.
7961
7962 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
7963 Change references to members deleted from struct frame to use the
7964 new ones.
7965
7966 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
7967 references to members deleted from struct frame to use the new ones.
7968
7969 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
7970
7971 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
7972
7973 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
7974 (note_tool_bar_highlight): Change references to members deleted
7975 from struct frame to use the new ones.
7976
7977 2000-11-23 Miles Bader <miles@gnu.org>
7978
7979 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
7980 the face's inverse-video attribute, rather than overriding it.
7981
7982 2000-11-22 Gerd Moellmann <gerd@gnu.org>
7983
7984 * xfns.c (x_set_tool_bar_lines): Clear internal border when
7985 making tool bar smaller.
7986
7987 2000-11-22 Dave Love <fx@gnu.org>
7988
7989 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
7990
7991 2000-11-22 Miles Bader <miles@gnu.org>
7992
7993 * keyboard.c (Vminibuffer_message_timeout): New variable.
7994 (command_loop_1): Use it to determine message timeout.
7995 (syms_of_keyboard): Initialize it.
7996
7997 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
7998
7999 2000-11-22 Kenichi Handa <handa@etl.go.jp>
8000
8001 * sysdep.c: Move the code for declaring h_errno after #include
8002 <netdb.h>.
8003
8004 2000-11-21 Gerd Moellmann <gerd@gnu.org>
8005
8006 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
8007 the menu bar when the tooltip is unmapped.
8008
8009 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
8010 sole visible buffer when we're currently in the mini-buffer, and
8011 give up if so.
8012
8013 2000-11-21 Jason Rumney <jasonr@gnu.org>
8014
8015 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
8016 put on the clipboard.
8017 (Fw32_get_clipboard_data): Compare data on clipboard with saved
8018 copy of what Emacs last put there. If they are the same, do not
8019 use the clipboard copy to avoid losing data due to coding conversions.
8020
8021 2000-11-22 Miles Bader <miles@gnu.org>
8022
8023 * minibuf.c (Vminibuffer_prompt_properties): New variable.
8024 (syms_of_minibuf): Initialize it.
8025 (read_minibuf): Add properties from Vminibuffer_prompt_properties
8026 to prompt, don't make read-only.
8027
8028 2000-11-21 Gerd Moellmann <gerd@gnu.org>
8029
8030 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
8031 Add BEFORE/AFTER_POTENTIAL_GC.
8032
8033 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
8034
8035 * buffer.c (mmap_free_1): Avoid a compiler warning.
8036
8037 * term.c, cm.c: Don't try to include termcap.h; see comment there.
8038
8039 2000-11-21 Kenichi Handa <handa@etl.go.jp>
8040
8041 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
8042 ... #endif scope.
8043
8044 2000-11-20 Gerd Moellmann <gerd@gnu.org>
8045
8046 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
8047 screen supports it.
8048
8049 * s/gnu-linux.h: Don't use `#cpu'.
8050
8051 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
8052 not defined in mman.h.
8053
8054 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
8055 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
8056 and store an index in the XClientMessageEvent. Storing a
8057 Lisp_Object or pointer can fail on a 64 bit system, since X only
8058 transfers 32 bits.
8059 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
8060
8061 2000-11-20 Dave Love <fx@gnu.org>
8062
8063 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
8064
8065 2000-11-20 Gerd Moellmann <gerd@gnu.org>
8066
8067 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
8068
8069 2000-11-20 Kenichi Handa <handa@etl.go.jp>
8070
8071 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
8072 by WIDTH.
8073
8074 * alloc.c (make_string): Fix previous change. Be sure to make
8075 unibyte string correctly.
8076
8077 2000-11-19 Gerd Moellmann <gerd@gnu.org>
8078
8079 * window.c (Fwindow_list): Change parameter list to be XEmacs
8080 compatible.
8081 (window_list_1): New function.
8082 (window_loop): Use it instead of Fwindow_list.
8083
8084 * sysdep.c (emacs_ospeed): New variable.
8085 (toplevel): Don't declare ospeed extern.
8086 (init_baud_rate): Use emacs_ospeed instead of ospeed.
8087
8088 * termcap.c (ospeed): Remove.
8089 (tputs) [!emacs]: Remove unused code.
8090 (tgetent): Avoid a compiler warning.
8091
8092 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
8093 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
8094 SCROLL_BAR_X_WIDGET with additional argument DPY.
8095
8096 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
8097 removed.
8098 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
8099 Take the X display as additional argument.
8100 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
8101 `Widget' is a pointer type that's not easily stored in Lisp_Object
8102 form in a portable way.
8103
8104 * dispnew.c (update_text_area): Fix last change.
8105
8106 2000-11-18 Gerd Moellmann <gerd@gnu.org>
8107
8108 * xdisp.c: Use BINDING_STACK_SIZE throughout.
8109
8110 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
8111 clear current matrices.
8112
8113 * buffer.c (mmap_enlarge): Don't print a message on stderr
8114 if mapping new memory at the end of the existing region fails.
8115
8116 * dispnew.c (update_text_area): Don't skip over equal glyphs
8117 when the last current glyph overlaps the glyph to its right.
8118
8119 2000-11-18 Miles Bader <miles@gnu.org>
8120
8121 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
8122 lines that *end* with "..." too (that's the most common case!).
8123
8124 2000-11-18 Gerd Moellmann <gerd@gnu.org>
8125
8126 * xdisp.c (resize_mini_window): Temporarily change to the
8127 mini-window's buffer if necessary.
8128
8129 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
8130 the tooltip obscures less text under it.
8131
8132 2000-11-17 Gerd Moellmann <gerd@gnu.org>
8133
8134 * puresize.h (BASE_PURESIZE): Increase to 700000.
8135
8136 2000-11-18 Jason Rumney <jasonr@gnu.org>
8137
8138 * w32term.c (w32_draw_bitmap): Use face to set colors.
8139
8140 2000-11-17 Dave Love <fx@gnu.org>
8141
8142 * lread.c (Fload): Fix #ifdef for pcc.
8143
8144 2000-11-17 Gerd Moellmann <gerd@gnu.org>
8145
8146 * xdisp.c (pos_visible_p): Compute the default character height
8147 differently.
8148
8149 2000-11-16 Gerd Moellmann <gerd@gnu.org>
8150
8151 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
8152 knowing the line's height; use the default font's height in that case.
8153
8154 * xfaces.c (weight_table): Add `demi' with the same meaning as
8155 `demibold'.
8156
8157 2000-11-16 Kenichi Handa <handa@etl.go.jp>
8158
8159 * dispnew.c (null_row): New global static variable.
8160 (clear_glyph_row): Delete local static variable null_row.
8161
8162 2000-11-15 Jason Rumney <jasonr@gnu.org>
8163
8164 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
8165 (w32_alloc_lighter_color): Use new brightness calculations from
8166 xterm.c. Scale delta to be in the range expected by W32.
8167 (w32_draw_relief_rect): Use frame relief colors.
8168
8169 2000-11-15 Gerd Moellmann <gerd@gnu.org>
8170
8171 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
8172 (Qinhibit_default_face_x_resources): New variable.
8173 (syms_of_frame): Initialize it.
8174 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
8175
8176 * xdisp.c (pos_visible_p): Improve function comment.
8177
8178 * lisp.h (BINDING_STACK_SIZE): New macro.
8179
8180 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
8181 reading the directory if readdir returns null and errno is EAGAIN
8182 or EINTR.
8183
8184 2000-11-14 Stefan Monnier <monnier@cs.yale.edu>
8185
8186 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
8187 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
8188 Set amount_to_scroll to max of dx and scroll_step so that
8189 scroll-conservatively doesn't defeat scroll-step>1.
8190 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
8191 scroll-conservatively for line-at-a-time scrolling.
8192
8193 2000-11-14 Gerd Moellmann <gerd@gnu.org>
8194
8195 * window.c (Fpos_visible_in_window_p): Call pos_visible with
8196 extra argument.
8197
8198 * xdisp.c (current_mode_line_height, current_header_line_height):
8199 New variables.
8200 (init_xdisp): Initialize them.
8201 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
8202 and use exact mode line heights if it is set.
8203
8204 * lisp.h (pos_visible_p): Change prototype.
8205
8206 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
8207 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
8208 and current_header_line_height first.
8209 (current_mode_line_height, current_header_line_height):
8210 Declare extern.
8211
8212 2000-11-14 Miles Bader <miles@lsi.nec.co.jp>
8213
8214 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
8215 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
8216 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
8217
8218 2000-11-14 Miles Bader <miles@gnu.org>
8219
8220 * xterm.c (x_alloc_lighter_color): Include an additive component
8221 too for dark colors, because FACTOR isn't enough.
8222 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
8223 New macros.
8224
8225 2000-11-13 Gerd Moellmann <gerd@gnu.org>
8226
8227 * keyboard.c (show_help_echo): Call message3_nolog with number of
8228 bytes in the help string as 2nd parameter, instead of the number
8229 of characters.
8230
8231 2000-11-13 Miles Bader <miles@gnu.org>
8232
8233 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
8234 (Fload): Use new openp return protocol.
8235 Don't try to use Vload_source_file_function to load .elc files.
8236 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
8237 openp return protocol.
8238 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
8239
8240 2000-11-11 Kenichi Handa <handa@etl.go.jp>
8241
8242 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
8243
8244 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
8245 Defined these macros.
8246 (NLIST_STRUCT): Avoid re-defining it.
8247
8248 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
8249 -I/usr/contrib/X11R6/include.
8250 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
8251
8252 2000-11-10 Jason Rumney <jasonr@gnu.org>
8253
8254 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
8255
8256 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
8257 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
8258
8259 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
8260 (Qw32_charset_vietnamese): New symbol.
8261 (xlfd_charset_of_font): New function.
8262 (w32_load_system_font): Use it.
8263 (x_to_w32_charset): Use Fassoc to find charset info. Special case
8264 when Vw32_charset_info_alist is nil to ensure default face always
8265 has font. Use Fcar and Fcdr for safety.
8266 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
8267 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
8268 pseudo-codepages for special cases.
8269 (w32_to_x_font): New parameter to allow charset portion to be
8270 specified where there is many to one mapping. Callers changed.
8271 (w32_list_fonts): Avoid listing fonts that won't display.
8272
8273 2000-11-10 Gerd Moellmann <gerd@gnu.org>
8274
8275 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
8276 (font_list_1): Renamed from font_list.
8277 (font_list): New function, trying alternative registries from
8278 Vface_alternative_font_registry_alist.
8279 (Finternal_set_alternative_font_registry_alist): New function.
8280 (syms_of_xfaces): Initialize and Staticpro
8281 Vface_alternative_font_registry_alist.
8282 Defsubr Finternal_set_alternative_font_registry_alist.
8283
8284 2000-11-09 Ken Raeburn <raeburn@gnu.org>
8285
8286 * lisp.h (Flooking_at): Declare.
8287
8288 2000-11-09 Gerd Moellmann <gerd@gnu.org>
8289
8290 * dired.c (directory_files_internal): Fix a braino.
8291
8292 * dired.c (directory_files_internal): Add missing GCPRO's.
8293 Some cleanup.
8294
8295 2000-11-08 Gerd Moellmann <gerd@gnu.org>
8296
8297 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
8298 (resize_mini_window): Return quickly if Vresize_mini_window is
8299 nil. Don't return if Vmax_mini_window_height is nil.
8300
8301 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
8302 (syms_of_xdisp): Initialize them.
8303 (resize_mini_window): Act according to the setting of
8304 Vresize_mini_window.
8305 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
8306
8307 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
8308 scroll bar widget after configuring it, so that it will appear at
8309 the right position from the start.
8310 (XTredeem_scroll_bar): Cleaned up.
8311
8312 2000-11-08 Kenichi Handa <handa@etl.go.jp>
8313
8314 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
8315 font is taller than the frame line, we don't have to bias the
8316 division by two.
8317
8318 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
8319
8320 2000-11-07 Dave Love <fx@gnu.org>
8321
8322 * config.in (HAVE_MKSTEMP): Add.
8323
8324 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
8325
8326 2000-11-07 Gerd Moellmann <gerd@gnu.org>
8327
8328 * window.c (Fset_window_configuration): Don't try to preserve
8329 point in the current buffer, if that buffer is displayed in more
8330 than one window.
8331
8332 * xfaces.c (lookup_named_face): If default face isn't realized,
8333 try to realize it. Return -1 if not successful.
8334 (Fx_list_fonts): Handle case that face cannot be determined.
8335 (Fface_font): Likewise.
8336
8337 2000-11-06 Gerd Moellmann <gerd@gnu.org>
8338
8339 * window.c (displayed_window_lines): Detect partially
8340 visible lines at the bottom correctly.
8341
8342 2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
8343
8344 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
8345 when ensuring we don't do visit in indirect buffer.
8346
8347 2000-11-06 Kenichi Handa <handa@etl.go.jp>
8348
8349 * composite.h (compose_chars_in_text): Add prototype.
8350
8351 * composite.c (Vcomposition_function_table): New variable.
8352 (Qcomposition_function_table): New variable.
8353 (run_composition_function): Call
8354 Vcompose_chars_after_function with three arguments.
8355 (compose_chars_in_text): New function.
8356 (syms_of_composite): Modified the doc-string of
8357 Vcompose_chars_after_function. Declare composition-function-table
8358 as a lisp variable, and initialize it.
8359
8360 * xfns.c (x_encode_text): Suppress producing escape sequences for
8361 composition.
8362
8363 * xselect.c: Include composite.h.
8364 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
8365
8366 2000-11-05 Andrew Innes <andrewi@gnu.org>
8367
8368 * w32term.c (x_produce_glyphs): Fix typo in enum name.
8369
8370 * sysdep.c (read_input_waiting): Remove extraneous argument to
8371 read_socket_hook.
8372
8373 * w32fns.c (Fx_server_version): Include w32_build_number in the
8374 return list.
8375
8376 * w32heap.c (w32_build_number): New variable.
8377 (cache_system_info): Set it.
8378
8379 * w32heap.h (w32_build_number): Add extern.
8380
8381 * emacs.c (syms_of_emacs): Update docstring for
8382 system-configuration, to reflect the actual usage on MS-Windows.
8383
8384 2000-10-31 Gerd Moellmann <gerd@gnu.org>
8385
8386 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
8387 process idle timers while waiting for another event.
8388
8389 * dispnew.c (update_frame_line): Handle case where spaces in
8390 the default face are colored.
8391
8392 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
8393 window height hasn't changed.
8394
8395 2000-10-31 Jason Rumney <jasonr@gnu.org>
8396
8397 * w32term.c (x_produce_glyphs): Handle composite characters.
8398 (x_draw_glyph_string_foreground)
8399 (x_draw_composite_glyph_string_foreground): Restore old font.
8400
8401 2000-10-31 Miles Bader <miles@lsi.nec.co.jp>
8402
8403 * minibuf.c (read_minibuf): Reset the undo history just before
8404 starting the recursive-edit.
8405
8406 2000-10-30 Gerd Moellmann <gerd@gnu.org>
8407
8408 * xfaces.c (menu_face_change_count): New variable.
8409 (Finternal_set_lisp_face_attribute): Increment it for changes
8410 of the `menu' face.
8411 (realize_basic_faces): Reflect changes in the `menu' faces
8412 in menu bars.
8413
8414 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
8415 dy obtained from the iterator's y-position after moving from
8416 scroll_margin_pos to PT; see comment there.
8417
8418 * xdisp.c (safe_eval_handler): Call add_to_log.
8419
8420 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
8421 is not a symbol or string.
8422
8423 * xdisp.c (echo_area_display): Don't perform a display update from
8424 inside redisplay. The update will happen anyway at the end of
8425 redisplay, and it can confuse redisplay (GC messages while
8426 redisplaying, for instance.)
8427
8428 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
8429
8430 * xrdb.c (x_load_resources): Use the class name in the defaults.
8431
8432 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
8433 (regex_compile): Catch bogus \(\1\).
8434
8435 2000-10-30 Gerd Moellmann <gerd@gnu.org>
8436
8437 * xterm.c (x_alloc_nearest_color): Fix last change to compare
8438 RGB values.
8439
8440 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
8441 we have a color cache, check that the cached color equals the
8442 allocated color. If not, clear the color cache.
8443
8444 * window.c (displayed_window_lines): Change buffers if necessary.
8445 Fix computation of displayed lines.
8446
8447 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
8448 update_menu_bindings to DEFVAR_BOOL.
8449
8450 2000-10-30 Kenichi Handa <handa@etl.go.jp>
8451
8452 * search.c (Fset_match_data): Be sure to make search_regs always sane.
8453
8454 * puresize.h (BASE_PURESIZE): Increase to 680000.
8455
8456 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
8457
8458 2000-10-29 Jason Rumney <jasonr@gnu.org>
8459
8460 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
8461
8462 * w32term.c (w32_bdf_per_char_metric): Negate descent.
8463 (w32_cache_char_metrics): Handle possibility that 'x' does not
8464 exist in a BDF font.
8465 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
8466
8467 * w32bdf.h (bdffont): Add nchars.
8468
8469 * w32bdf.c (set_bdf_font_info): Set it.
8470 (w32_BDF_TextOut): Swap byte order of double byte characters.
8471 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
8472
8473 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
8474
8475 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
8476 don't override the colors in frame's param_alist, unless they are
8477 unspecified.
8478
8479 * term.c (reassert_line_highlight): If inverse_video is non-zero,
8480 reverse the effect of the highlight flag.
8481
8482 2000-10-27 Ken Raeburn <raeburn@gnu.org>
8483
8484 * window.h (Fwindow_live_p): Declare.
8485
8486 * undo.c (record_delete): Check that last_undo_buffer is really a
8487 buffer before applying XBUFFER to it.
8488
8489 * keymap.c (where_is_internal): Pass lisp object, not integer, to
8490 Faref.
8491
8492 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
8493
8494 * lisp.h (KEYMAPP): New macro.
8495 (get_keymap): Remove.
8496 (get_keymap_1): Rename get_keymap.
8497
8498 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
8499
8500 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
8501
8502 * xmenu.c (single_submenu): Use KEYMAPP.
8503 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
8504 Use KEYMAPP rather than Fkeymapp.
8505
8506 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
8507
8508 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
8509 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
8510 Use KEYMAPP rather than Fkeymapp.
8511 (single_submenu): Use KEYMAPP.
8512 (w32_menu_show, w32_dialog_show): Use TRUE.
8513
8514 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
8515
8516 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
8517 (Fkeymapp): Use KEYMAPP.
8518 (get_keymap): Rename from get_keymap_1. Remove old def.
8519 Return t when autoload=0 and error=0 and the keymap needs autoloading.
8520 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
8521 (Fminor_mode_key_binding): Don't raise an error if the binding
8522 is not a keymap.
8523 (Fuse_global_map, Fuse_local_map): Allow autoloading.
8524 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
8525
8526 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
8527 Allow Vspecial_event_map to be autoloaded.
8528 (menu_bar_items): Fetch the keymap rather than using keymapp.
8529 (menu_bar_one_keymap): No need to follow func-indirect any more.
8530 (parse_menu_item): get_keymap_1 -> get_keymap.
8531 (tool_bar_items): Fetch the keymap rather than using keymapp.
8532 (read_key_sequence): Use KEYMAPP.
8533
8534 * intervals.c (get_local_map): Use get_keymap rather than following
8535 function-indirections explicitly.
8536
8537 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
8538
8539 2000-10-27 Jason Rumney <jasonr@gnu.org>
8540
8541 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
8542 point, as Windows has oversized fonts.
8543
8544 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
8545
8546 2000-10-27 Gerd Moellmann <gerd@gnu.org>
8547
8548 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
8549 (freehook, reallochook): Handle null pointer arguments.
8550 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
8551
8552 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
8553
8554 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
8555 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
8556 Giving in to popular pressure to shut up the compiler with casts.
8557
8558 2000-10-27 Gerd Moellmann <gerd@gnu.org>
8559
8560 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
8561 signed value, and use a default value computed from the font's
8562 maximum descent.
8563
8564 2000-10-27 Miles Bader <miles@lsi.nec.co.jp>
8565
8566 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
8567 that specify a negative underline position can still use underlines.
8568
8569 * window.c (Fpos_visible_in_window_p): Make POS default to
8570 WINDOW's point, not the current buffer's point.
8571
8572 2000-10-26 Dave Love <fx@gnu.org>
8573
8574 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
8575 when it's necessary.
8576
8577 2000-10-26 Gerd Moellmann <gerd@gnu.org>
8578
8579 * window.c (size_window): Compute size difference from sum of old
8580 child window sizes instead of from parent's size.
8581
8582 * xdisp.c (pos_visible_p): Change current buffer if necessary.
8583 Handle obscured lines at the top of the window.
8584
8585 * frame.c (Fdelete_frame): Doc fix. Move running the hook
8586 down after the last error condition check.
8587
8588 * frame.c (Fdelete_frame): Run delete-frame-hook.
8589
8590 2000-10-26 Kenichi Handa <handa@etl.go.jp>
8591
8592 * coding.c (decode_coding): Fix previous change (check also
8593 CODING_MODE_LAST_BLOCK).
8594
8595 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
8596
8597 * regex.c: More `unsigned char' -> `re_char' changes.
8598 Also change several `int' into `re_wchar_t'.
8599 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
8600 (PUSH_FAILURE_POINTER): Don't cast any more.
8601 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
8602 We want GCC to complain, since this piece of code makes
8603 re_match non-reentrant, which *should* be fixed.
8604 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
8605 (EXTEND_BUFFER): Use RETALLOC.
8606 (SET_LIST_BIT): Don't cast.
8607 (re_wchar_t): New type.
8608 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
8609 that those two functions will always properly return.
8610 (IMMEDIATE_QUIT_CHECK): Cast to void.
8611 (analyse_first): Use recursion rather than an explicit stack.
8612 (re_compile_fastmap): Can't fail anymore.
8613 (re_search_2): Don't check re_compile_fastmap for failure.
8614 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
8615 Now also sets the new value (passed in a new argument).
8616 (re_match_2_internal): Use it.
8617 Also, use a new var `reg' of type size_t when looping through regs
8618 rather than reuse the inappropriate `mcnt'.
8619
8620 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
8621 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
8622 (where_is_internal): Renamed from Fwhere_is_internal.
8623 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
8624 (Fwhere_is_internal): New function wrapping where_is_internal.
8625 (where_is_internal_1): Handle the case where we're filling the cache.
8626 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
8627
8628 2000-10-25 Miles Bader <miles@gnu.org>
8629
8630 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
8631
8632 2000-10-25 Gerd Moellmann <gerd@gnu.org>
8633
8634 * window.c (pos_fully_visible_p): Removed.
8635 (Fpos_visible_in_window_p): Use pos_visible_p to determine
8636 if position is visible and/or fully visible.
8637
8638 * lisp.h (pos_visible_p): Add prototype.
8639
8640 * xdisp.c (pos_visible_p): New function.
8641
8642 2000-10-25 Kenichi Handa <handa@etl.go.jp>
8643
8644 * process.c (send_process): If OBJECT is t, it means that the data
8645 is from C string, but we should encode it. Before calling
8646 setup_raw_text_coding_system, be sure to flush out data by the
8647 previous coding system.
8648
8649 2000-10-25 Miles Bader <miles@lsi.nec.co.jp>
8650
8651 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
8652 assignment of startpos to prev when startpos == pos.
8653
8654 * editfns.c (find_field): Set the field stickiness correctly from
8655 overlay fields. Use renamed `text_property_stickiness'.
8656 (text_property_stickiness): Renamed from `char_property_stickiness'.
8657 Only check text properties, not overlays.
8658 * textprop.c (get_char_property_and_overlay): New function.
8659 (Fget_char_property): Use it.
8660 * intervals.h (get_char_property_and_overlay): Add declaration.
8661
8662 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
8663
8664 * keymap.c: Use AREF, ASET and ASIZE macros.
8665 (Fmake_sparse_keymap): Docstring fix.
8666 (synkey): Remove.
8667 (shadow_lookup): Move up.
8668 Handle the case where lookup-key returns an integer.
8669 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
8670 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
8671 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
8672 Simplify/rewrite the keymap-finding code.
8673 Add check for command shadowing, using shadow_lookup.
8674
8675 2000-10-24 Stefan Monnier <monnier@cs.yale.edu>
8676
8677 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
8678 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
8679 a symbol.
8680
8681 2000-10-24 Andrew Innes <andrewi@gnu.org>
8682
8683 * dired.c (directory_files_internal_unwind): New function.
8684 (directory_files_internal): Use it to ensure closedir is called
8685 even if expand-file-name or file-attributes throw, eg. because of
8686 a user interrupt. Also enable immediate_quit while calling
8687 re_search, so that matching can be interrupted as well.
8688
8689 2000-10-24 Andrew Innes <andrewi@gnu.org>
8690
8691 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
8692 NT-Emacs only.
8693 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
8694 so that re_search functions only quit when callers expect them to.
8695
8696 2000-10-24 Kenichi Handa <handa@etl.go.jp>
8697
8698 * regex.c (regex_compile): Change the way of handling a range from
8699 a char less than 256 to a char not less than 256.
8700
8701 2000-10-24 Gerd Moellmann <gerd@gnu.org>
8702
8703 * window.c (size_window): Prevent setting window's width or
8704 height to a negative value (esp. with XSETFASTINT).
8705
8706 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
8707 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
8708 (protect_malloc_state) [GC_MALLOC_CHECK &&
8709 GC_PROTECT_MALLOC_STATE]: New function.
8710 (PROTECT_MALLOC_STATE): New macro.
8711 (__malloc_initialize, morecore, _malloc_internal)
8712 (_free_internal) _realloc_internal): Use it to make _heapinfo
8713 read-only outside of gmalloc.
8714
8715 * keymap.c: Update copyright.
8716
8717 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
8718 a symbol.
8719
8720 2000-10-24 Colin Walters <walters@cis.ohio-state.edu>
8721
8722 * filelock.c (unlock_all_files): Use unlock_file to expand each
8723 buffer's file_truename before trying remove its lock file.
8724
8725 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
8726
8727 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
8728 or CRLF, decode EOLs.
8729
8730 2000-10-24 Kenichi Handa <handa@etl.go.jp>
8731
8732 * window.c (Fdisplay_buffer): Fix doc.
8733
8734 2000-10-23 Jason Rumney <jasonr@gnu.org>
8735
8736 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
8737 ASCII font of default fontset on Windows.
8738
8739 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
8740 xterm.c comment below).
8741
8742 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
8743
8744 2000-10-23 Gerd Moellmann <gerd@gnu.org>
8745
8746 * xterm.c (x_connection_closed): Reset handling_signal.
8747
8748 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
8749
8750 2000-10-23 Miles Bader <miles@gnu.org>
8751
8752 * window.c (window_scroll_pixel_based, window_scroll_line_based):
8753 Pass nil for FULLY argument to Fpos_visible_in_window_p to
8754 maintain old behavior.
8755 * minibuf.c (Fminibuffer_complete): Likewise.
8756
8757 2000-10-23 Miles Bader <miles@lsi.nec.co.jp>
8758
8759 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
8760 that when a font can't be exactly centered, it errs up rather than
8761 down.
8762
8763 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8764
8765 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8766
8767 2000-10-23 Andrew Choi <akochoi@i-cable.com>
8768
8769 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
8770
8771 * dispnew.c [macintosh]: Include macterm.h.
8772 (init_display) [macintosh]: Initialization for window system.
8773
8774 * emacs.c (main) [macintosh]: Call syms_of_textprop,
8775 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
8776 syms_of_search, x_term_init, and init_keyboard before calling
8777 init_window_once. Also, call syms_of_xmenu.
8778
8779 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
8780 default fontset to Monaco.
8781
8782 * frame.c [macintosh]: Include macterm.h. Remove declarations of
8783 NewMacWindow and DisposeMacWindow.
8784 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
8785 instead of calling NewMacWindow and setting fields of
8786 f->output_data.mac directly. Call init_frame_faces.
8787 (Fdelete_frame) [macintosh]: Remove unused code.
8788 (Fmodify_frame_parameters) [macintosh]: Call
8789 x_set_frame_parameters instead of mac_set_frame_parameters.
8790
8791 * frame.h [macintosh]: Define menu_bar_lines field in struct
8792 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
8793
8794 * keyboard.c [macintosh]: Include macterm.h.
8795 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
8796 and menu_bar_activate_event type events as for X and NT.
8797 (make_lispy_event) [macintosh]: Construct lisp events of type
8798 MENU_BAR_EVENT as for X and NT.
8799
8800 * sysdep.c [macintosh]: Remove declaration for sys_signal.
8801 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
8802 (sys_subshell) [macintosh]: Remove definition entirely.
8803 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
8804 Vwindow_system_version here. Remove initialization of
8805 Vx_bitmap_file_path.
8806 (read_input_waiting): Correct the number of parameters passed to
8807 read_socket_hook.
8808 Move all Macintosh functions to mac/mac.c.
8809
8810 * term.c [macintosh]: Include macterm.h.
8811
8812 * window.c [macintosh]: Include macterm.h.
8813
8814 * xdisp.c [macintosh]: Include macterm.h. Declare
8815 set_frame_menubar and pending_menu_activation.
8816 (echo_area_display) [macintosh]: Do not return if terminal frame
8817 is the selected frame.
8818 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
8819 Allow only the selected frame to set menu bar.
8820 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
8821 calling FRAME_EXTERNAL_MENU_BAR (f).
8822 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
8823
8824 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
8825 and check_x. Declare XCreateGC. Define x_create_gc and
8826 x_free_gc. Initialize font_sort_order.
8827 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
8828 but call x_list_fonts instead of w32_list_fonts.
8829 (Finternal_face_x_get_resource) [macintosh]: Do not call
8830 display_x_get_resource.
8831 (prepare_face_for_display) [macintosh]: Set xgcv.font.
8832 (realize_x_face) [macintosh]: Load the font if it is specified in
8833 ATTRS.
8834 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
8835
8836 2000-10-22 Stefan Monnier <monnier@cs.yale.edu>
8837
8838 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
8839 is nil: since we go to the end of submap anyway, we'd end up
8840 setting nil to nil.
8841 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
8842 doesn't obey autoload.
8843
8844 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8845
8846 * msdos.c (dos_set_window_size): Update screen dimension variables.
8847
8848 2000-10-21 Jason Rumney <jasonr@gnu.org>
8849
8850 * w32term.c (w32_cache_char_metrics): Double check that font is
8851 really fixed pitch before trusting tmPitchAndFamily.
8852
8853 2000-10-21 Andrew Innes <andrewi@gnu.org>
8854
8855 * w32gui.h (w32_char_font_type): Move enum from w32term.c
8856
8857 * w32term.h: Extern decl for w32_cache_char_metrics.
8858
8859 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
8860
8861 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
8862 (w32_unload_font): Free per_char array if present.
8863
8864 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
8865 cached information in emulated XFontStruct to handle common cases
8866 quickly. Do not allocate XCharStruct for return.
8867 (w32_native_per_char_metric): New function.
8868 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
8869 allocating one.
8870 (x_produce_glyphs): Don't get an HDC. Change calls to
8871 w32_per_char_metric to match arg change above. Remove calls to
8872 free results.
8873 (w32_get_glyph_overhangs): Ditto.
8874 (w32_cache_char_metrics): New function.
8875
8876 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
8877 ($(BLD)/casefiddle.$(O)): Remove compile command.
8878 ($(BLD)/gmalloc.$(O)): Remove compile command.
8879 ($(BLD)/dispnew.obj):
8880 ($(BLD)/keyboard.obj):
8881 ($(BLD)/w32inevt.obj):
8882 ($(BLD)/w32bdf.obj):
8883 ($(BLD)/alloc.obj):
8884 ($(BLD)/buffer.obj):
8885 ($(BLD)/editfns.obj):
8886 ($(BLD)/emacs.obj):
8887 ($(BLD)/fileio.obj):
8888 ($(BLD)/fns.obj):
8889 ($(BLD)/indent.obj):
8890 ($(BLD)/insdel.obj):
8891 ($(BLD)/intervals.obj):
8892 ($(BLD)/minibuf.obj):
8893 ($(BLD)/print.obj):
8894 ($(BLD)/scroll.obj):
8895 ($(BLD)/sysdep.obj):
8896 ($(BLD)/textprop.obj):
8897 ($(BLD)/widget.obj):
8898 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
8899 ($(BLD)/term.obj): Add dependency on dispextern.h.
8900
8901 * makefile.nt ($(BLD)\dispnew.obj):
8902 ($(BLD)\keyboard.obj):
8903 ($(BLD)\w32inevt.obj):
8904 ($(BLD)\w32bdf.obj):
8905 ($(BLD)\alloc.obj):
8906 ($(BLD)\buffer.obj):
8907 ($(BLD)\editfns.obj):
8908 ($(BLD)\emacs.obj):
8909 ($(BLD)\fileio.obj):
8910 ($(BLD)\fns.obj):
8911 ($(BLD)\indent.obj):
8912 ($(BLD)\insdel.obj):
8913 ($(BLD)\intervals.obj):
8914 ($(BLD)\minibuf.obj):
8915 ($(BLD)\print.obj):
8916 ($(BLD)\scroll.obj):
8917 ($(BLD)\sysdep.obj):
8918 ($(BLD)\textprop.obj):
8919 ($(BLD)\widget.obj):
8920 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
8921 ($(BLD)\term.obj): Add dependency on dispextern.h
8922
8923 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8924
8925 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
8926 with an additional argument of Qt.
8927
8928 2000-10-21 Miles Bader <miles@gnu.org>
8929
8930 * window.c (pos_fully_visible_in_window_p): New function.
8931 (Fpos_visible_in_window_p): Add FULLY argument.
8932 Use pos_fully_visible_in_window_p.
8933 (window_scroll_pixel_based, window_scroll_line_based): Update
8934 calls to Fpos_visible_in_window_p.
8935 * lisp.h (Fpos_visible_in_window_p): Update prototype
8936
8937 2000-10-20 Gerd Moellmann <gerd@gnu.org>
8938
8939 * alloc.c (toplevel): Conditionalize compilation of mem_*
8940 functions differently.
8941
8942 2000-10-20 Jason Rumney <jasonr@gnu.org>
8943
8944 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
8945 mem_init where it used to be. mem_z etc not defined otherwise.
8946
8947 2000-10-20 Gerd Moellmann <gerd@gnu.org>
8948
8949 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
8950 GC_MALLOC_CHECK.
8951 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
8952 structure definition and related variabled to the top of the file.
8953 Include this code when GC_MALLOC_CHECK is defined.
8954 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
8955 register/unregister allocated region.
8956 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
8957 which isn't allocated.
8958 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
8959 something which is already in use.
8960 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
8961 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
8962 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
8963 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
8964
8965 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
8966 _malloc_internal instead of malloc.
8967 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
8968 of free.
8969
8970 2000-10-20 Andrew Innes <andrewi@gnu.org>
8971
8972 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
8973 Windows.
8974 (my_strftime) <macro>: Don't use macro arg list when redefining as
8975 _strftime_copytm.
8976 (my_strftime) <function>: Supply 0 as ut argument.
8977
8978 2000-10-19 Jason Rumney <jasonr@altavista.net>
8979
8980 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
8981 including dispextern.h, as it stops faces from working.
8982
8983 * w32fns.c (Fx_create_frame): Don't bother calling
8984 face-set-after-frame-default since the caller does it for us
8985 anyway. Clean up calls to x_get_arg to be consistent with X.
8986
8987 * w32term.c (x_produce_glyphs): Handle
8988 unibyte_display_via_language_environment correctly.
8989 (w32_draw_box_rect): Fix the calculation of width and height.
8990
8991 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
8992 as it has stopped working.
8993 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
8994 menu-bar.
8995
8996 2000-10-19 Gerd Moellmann <gerd@gnu.org>
8997
8998 * eval.c (skip_debugger): Prevent a compiler warning.
8999 (Fcondition_case): Likewise.
9000 (Fbacktrace_frame): Use a null interactive spec.
9001
9002 2000-10-19 Kenichi Handa <handa@etl.go.jp>
9003
9004 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
9005
9006 2000-10-18 Gerd Moellmann <gerd@gnu.org>
9007
9008 * strftime.c: Sync with glibc, file version 1.78.
9009 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
9010 should no longer be used according to ISO 8601.
9011
9012 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
9013 no map for meta_prefix_char, don't try to use it as a keymap.
9014 Instead, if T_OK is non-zero, look up a default binding, if any,
9015 otherwise, if T_OK is zero, return nil.
9016
9017 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
9018 (x_to_xcolors, png_load): Use x_query_color.
9019
9020 * xterm.c (x_color_cells, x_query_colors, x_query_color):
9021 New functions.
9022 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
9023 which can be slow.
9024 (x_copy_color, x_alloc_lighter_color): Likewise.
9025
9026 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
9027 (x_query_color, x_query_colors): Add prototype.
9028
9029 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
9030 check_string_bytes only if not noninteractive, increase count to 50.
9031
9032 2000-10-18 Miles Bader <miles@lsi.nec.co.jp>
9033
9034 * insdel.c (adjust_markers_for_delete): Handle before-insertion
9035 markers correctly.
9036
9037 2000-10-17 Gerd Moellmann <gerd@gnu.org>
9038
9039 * alloc.c (pure_bytes_used): Renamed from pureptr.
9040 (ALIGN): New macro.
9041 (pure_alloc): New function.
9042 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
9043 Use it.
9044 (Fpurecopy): Use PURE_POINTER_P.
9045
9046 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
9047 PT has moved backward.
9048
9049 * xdisp.c (cursor_row_p): Take continued lines into account.
9050
9051 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
9052 string's size_byte.
9053 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
9054 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
9055 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
9056 string allocated.
9057
9058 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
9059 of selective display off while searching for the next line start.
9060
9061 2000-10-17 Kenichi Handa <handa@etl.go.jp>
9062
9063 * Makefile.in (term.o): Depend on dispextern.h.
9064
9065 2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
9066
9067 * keymap.c (keymap_memberp): Ensure that nil is not a member.
9068
9069 2000-10-16 Gerd Moellmann <gerd@gnu.org>
9070
9071 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
9072 the iterator at the beginning, so that they can be set later on,
9073 for instance in reseat_at_next_visible_line_start, without being
9074 overwritten.
9075
9076 * xfns.c (pbm_format): Add :foreground and :background keywords.
9077 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
9078 (xbm_load): Recognize foreground and background color specifications.
9079
9080 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
9081
9082 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
9083
9084 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
9085
9086 * msdos.c (IT_set_face): Compare highlighted face with the default
9087 face, and invert colors if these faces' colors are identical.
9088 (Fmsdos_remember_default_colors): Don't swap foreground and
9089 background colors in initial_colors[].
9090 (IT_set_frame_parameters): Don't swap frame's foreground and
9091 background pixels. If ALIST includes "(reverse . t)", swap
9092 foreground-color and background-color properties in frame's
9093 param_alist. If the original frame's param_alist doesn't specify
9094 the colors, store unspecified-fg and unspecified-bg, reversed if
9095 required.
9096
9097 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
9098 the colors are unspecified and reversed, reverse fore- and back-
9099 ground in the returned value.
9100 (Fframe_parameter): Ditto.
9101
9102 2000-10-16 Gerd Moellmann <gerd@gnu.org>
9103
9104 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
9105 get_last_unchanged_at_beg_row.
9106 (find_first_unchanged_at_end_row): Renamed from
9107 get_first_unchanged_at_end_row.
9108 (find_first_unchanged_at_end_row): Convert assertions to
9109 unconditional tests which abort. When looking for a row in
9110 unchanged text, don't go further back than first_text_row.
9111
9112 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
9113 Don't add in the last line's height when deciding if the new
9114 position is below the scroll margin.
9115
9116 2000-10-16 Miles Bader <miles@gnu.org>
9117
9118 * editfns.c (Fconstrain_to_field): Check carefully for field
9119 boundaries if either OLD_POS or NEW_POS has a non-nil field
9120 property, even if they're the same.
9121
9122 2000-10-16 Kenichi Handa <handa@etl.go.jp>
9123
9124 * xterm.c (x_draw_box_rect): Fix the calculation of width and
9125 height for XFillRectangle.
9126
9127 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
9128
9129 * syntax.c (Fstring_to_syntax): New function extracted from
9130 Fmodify_syntax_entry.
9131 (Fmodify_syntax_entry): Use it and document the ! and | fences.
9132 (skip_chars, Fforward_comment): Remove unused variables.
9133 (syms_of_syntax): Add defsubr for string-to-syntax.
9134 (describe_syntax): Add code for comment and string fences.
9135
9136 2000-10-14 Stefan Monnier <monnier@cs.yale.edu>
9137
9138 * keymap.c (access_keymap): Add AUTOLOAD parameter.
9139 Do the meta->esc mapping. Call get_keyelt before returning.
9140 Start scanning from the second element (the first is always `keymap')
9141 to make it easier to detect when we reach a parent map.
9142 Handle the case of inheriting from a symbol whose function is a map.
9143 (Fkeymap_parent): Also handle the `inherit from symbol' case.
9144 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
9145 (get_keyelt, Flookup_key): Update call to access_keymap.
9146 Remove the meta->esc mappings.
9147 (define_as_prefix): Delete old disabled code.
9148 (menu_item_p): New function.
9149 (where_is_internal_1): Skip over the few remaining menu items.
9150 * lisp.h (access_keymap): Update prototype.
9151 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
9152 Update call to access_keymap.
9153 (follow_key, read_key_sequence): Update calls to access_keymap.
9154 Remove the meta->esc mappings.
9155
9156 2000-10-13 Gerd Moellmann <gerd@gnu.org>
9157
9158 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
9159 with additional argument.
9160
9161 * xdisp.c (cursor_row_p): New function.
9162 (try_cursor_movement, display_line): Use it.
9163
9164 * xdisp.c (append_space): Also save/restore iterator's current
9165 character and its length.
9166
9167 * xdisp.c (init_from_display_pos): Add an assertion.
9168 (handle_stop): Don't set iterator's add_overlay_start.
9169 (handle_invisible_prop): Likewise.
9170 (load_overlay_strings): If text under an overlay is invisible,
9171 take both before- and after-strings into account when the iterator
9172 is positioned either at the start or at the end of the overlay.
9173 (forward_to_next_line_start): Rewritten.
9174 (reseat_at_next_visible_line_start): Rewritten.
9175 (set_iterator_to_next): Add parameter RESEAT_P.
9176
9177 * dispextern.h (struct it): Remove member add_overlay_start.
9178 (set_iterator_to_next): Change prototype.
9179
9180 2000-10-13 Kenichi Handa <handa@etl.go.jp>
9181
9182 * coding.c (code_convert_region): Be sure to initialize
9183 coding->category_idx.
9184 (decode_coding_string): Set coding->src_multibyte and
9185 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
9186 (encode_coding_string): Set coding->src_multibyte and
9187 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
9188
9189 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
9190
9191 * xfns.c (Fx_create_frame): Don't bother calling
9192 face-set-after-frame-default since the caller does it for us anyway.
9193
9194 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
9195
9196 * window.c (coordinates_in_window): Fix detection of vertical line
9197 on character terminals.
9198
9199 2000-10-12 Gerd Moellmann <gerd@gnu.org>
9200
9201 * editfns.c (save_excursion_save): Additionally record the
9202 selected window.
9203 (save_excursion_restore): If buffer was visible in a window, and a
9204 different window was selected, and the old selected window is
9205 still live, restore point in that window.
9206
9207 2000-10-12 Kenichi Handa <handa@etl.go.jp>
9208
9209 * xterm.c (x_produce_glyphs): Handle
9210 unibyte_display_via_language_environment correctly.
9211
9212 * regex.c (regex_compile): Change the way of handling a range from
9213 unibyte char to multibyte char.
9214
9215 * syntax.c (skip_chars): Change the way of handling a range from
9216 unibyte char to multibyte char.
9217
9218 * process.c (read_process_output): Cancel previous change.
9219
9220 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
9221
9222 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
9223
9224 * charset.c (Ffind_charset_string): Doc fix.
9225 (Ffind_charset_region): Doc fix.
9226
9227 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
9228
9229 * process.c (read_process_output): Fix previous change. Adjust
9230 multibyteness of text to insert in a buffer by
9231 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
9232
9233 2000-10-10 Andreas Schwab <schwab@suse.de>
9234
9235 * alloc.c (mark_object): Remove all workarounds installed on
9236 1993-08-08.
9237
9238 2000-10-10 Kenichi Handa <handa@etl.go.jp>
9239
9240 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
9241 (base64_encode_1): Make it work for a text of multibyte form.
9242 (Fbase64_decode_region): Allocate sufficient memory for multibyte
9243 case. Don't call str_to_multibyte because base64_decode_1
9244 produces correct multibyte form for eight-bit codes.
9245 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
9246 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
9247 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
9248 codes.
9249
9250 * charset.h (CHAR_STRING): Optimized for single byte characters.
9251
9252 2000-10-09 Andreas Schwab <schwab@suse.de>
9253
9254 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
9255 -1 after socket is closed, to fall through to error processing.
9256
9257 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
9258
9259 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
9260 variables. If ALIST includes foreground-color or
9261 background-color, change also the colors of the default face for
9262 this frame.
9263
9264 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
9265
9266 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
9267 them extern (they are defined on xfaces.c).
9268 (syms_of_msdos): Don't intern and don't staticpro
9269 Qbackground_color and Qforeground_color.
9270
9271 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
9272
9273 * frame.c (Fframe_parameter): For non-windowed frames, if
9274 f->param_alist says foreground or background color is unspecified,
9275 call tty_color_name to return the color name computed from the
9276 frame's current colors.
9277
9278 2000-10-06 Dave Love <fx@gnu.org>
9279
9280 * terminfo.c (ospeed): Don't declare.
9281
9282 * sysdep.c: Don't include string.h.
9283 (h_errno): Declare conditional also on TRY_AGAIN.
9284
9285 * charset.c (Ffind_charset_string): Doc fix.
9286
9287 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
9288 (Fbase64_decode_region, Fbase64_decode_string): More explicit
9289 error messages.
9290
9291 2000-10-05 Dave Love <fx@gnu.org>
9292
9293 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
9294 position like menu-bar.
9295
9296 2000-10-05 Gerd Moellmann <gerd@gnu.org>
9297
9298 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
9299
9300 * xdisp.c (handle_single_display_prop): Use safe_call1.
9301 (safe_call): Renamed from call_function.
9302 (safe_call1): New function.
9303 (handle_fontified_prop): Use safe_call1 instead of call1.
9304 (safe_eval): Renamed from eval_form.
9305 (safe_eval_handler): Renamed from eval_handler.
9306 (handle_single_display_prop, display_mode_element): Use safe_eval
9307 instead of eval_form.
9308
9309 * xfaces.c (merge_face_heights): Use safe_call instead of
9310 call_function.
9311
9312 * keyboard.c (show_help_echo): Use safe_call instead of
9313 call_function; use safe_eval instead of eval_form.
9314
9315 * lisp.h (safe_call): Renamed from call_function.
9316 (safe_eval): Renamed from eval_form.
9317 (safe_call1): Add prototype.
9318
9319 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
9320
9321 * xfns.c (image_ascent): Rearrange ascent calculation for the
9322 has-a-font case.
9323
9324 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
9325
9326 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
9327 (where_is_internal_1): Don't bother ignoring menu-items any more.
9328
9329 2000-10-04 Gerd Moellmann <gerd@gnu.org>
9330
9331 * keyboard.c (update_menu_bindings): New variable.
9332 (parse_menu_item): Use AREF. If update_menu_bindings
9333 is 0, don't update menu bindings.
9334 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
9335
9336 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
9337
9338 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
9339 to `mark_object'.
9340
9341 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
9342
9343 * syntax.c (forw_comment): Match nestedness of ender/starter.
9344 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
9345 (prev_char_comstart_first): Remove.
9346 (back_comment): Check two-char comment markers more carefully
9347 to better handle overlapping cases like *//* or /* */* */ ...
9348 Match nestedness of ender/starter.
9349
9350 2000-10-02 Dave Love <fx@gnu.org>
9351
9352 * config.in (HAVE_GAI_STRERROR): Add undef.
9353
9354 * process.c (Fopen_network_stream): Use it.
9355
9356 * m/alpha.h (NO_REMAP): Don't define.
9357
9358 2000-10-02 Gerd Moellmann <gerd@gnu.org>
9359
9360 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
9361 return with a string converted to an integer or vice versa when
9362 Vmocklisp_arguments is t.
9363 (Fsignal): Likewise. The function can return for `quit'.
9364 (struct gcpro): Declare member `var' to point to a volatile
9365 Lisp_Object.
9366
9367 * eval.c (error): Prevent compiler warning.
9368
9369 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
9370
9371 * keymap.c (keymap_memberp): New function.
9372 (Fset_keymap_parent): Use it.
9373 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
9374 Use keymap_memberp to avoid creating cycles.
9375 (access_keymap): Use KEYMAPP.
9376
9377 2000-09-30 Gerd Moellmann <gerd@gnu.org>
9378
9379 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
9380 gai_strerror. Make sure xerrno is set if connect fails. Improve
9381 error recovery.
9382
9383 2000-09-29 Jason Rumney <jasonr@gnu.org>
9384
9385 * w32term.c (w32_char_font_type, w32_encode_char)
9386 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
9387 (w32_bdf_per_char_metric): New function.
9388 (w32_per_char_metric): Use it.
9389 (x_draw_glyph_string_background): Always draw background for BDF
9390 glyphs.
9391
9392 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
9393 GDI object which is a scarce resource.
9394
9395 * w32bdf.c (search_file_line): Fix skipping of whitespace.
9396 (get_quoted_string): Fix limit on memchr search.
9397 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
9398 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
9399 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
9400 (get_cached_font_char, cache_char_offset): Use macro
9401 BDF_CODEPOINT_RANGE_COVER_P.
9402 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
9403 (clear_cached_bitmap_slots): New function.
9404 (GET_HEX_VALUE): G-Z, g-z are not hex.
9405 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
9406 (get_bitmap_with_cache): Use new cache implementation.
9407 (create_offscreen_bitmap): New function.
9408 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
9409
9410 * w32term.c (x_produce_glyphs): If the distance from the current
9411 position to the next tab stop is less than a canonical character
9412 width, use the tab stop after that.
9413 (x_draw_glyphs): Handle case START and END are out of bounds more
9414 carefully.
9415 (x_clear_mouse_face): Block/unblock input.
9416 (x_display_and_set_cursor): Don't show a hollow box cursor for
9417 buffers whose cursor_type is nil.
9418
9419 2000-09-29 Gerd Moellmann <gerd@gnu.org>
9420
9421 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
9422
9423 * dispextern.h (updating_frame): Declare extern.
9424
9425 2000-09-29 Andreas Schwab <schwab@suse.de>
9426
9427 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
9428
9429 2000-09-29 Gerd Moellmann <gerd@gnu.org>
9430
9431 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
9432 use its function definition.
9433 (tool_bar_items): Likewise.
9434
9435 * lisp.h (fatal): Declare NO_RETURN.
9436
9437 2000-09-29 Kenichi Handa <handa@etl.go.jp>
9438
9439 * keymap.c: Remove the line "#undef NULL".
9440
9441 2000-09-28 Gerd Moellmann <gerd@gnu.org>
9442
9443 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
9444
9445 2000-09-28 Dave Love <fx@gnu.org>
9446
9447 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
9448
9449 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
9450
9451 * .gdbinit (xreload): Note its need on GNU/Linux.
9452
9453 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
9454 r_alloc, r_alloc_free.
9455
9456 2000-09-28 Kenichi Handa <handa@etl.go.jp>
9457
9458 * syntax.c (skip_chars): Handle negation correctly.
9459
9460 2000-09-27 Gerd Moellmann <gerd@gnu.org>
9461
9462 * xfaces.c (realize_default_face): Call set_lface_from_font_name
9463 with non-zero FORCE_P argument.
9464
9465 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
9466 Add assertions.
9467
9468 * xdisp.c (window_box_height): Add an assertion.
9469
9470 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
9471 tool-bar than is available.
9472 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
9473
9474 2000-09-27 Dave Love <fx@gnu.org>
9475
9476 * s/irix6-5.h: Now works 64-bit. Tidied.
9477
9478 2000-09-26 Gerd Moellmann <gerd@gnu.org>
9479
9480 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
9481 instead of BITS_PER_INT.
9482 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
9483 EMACS_UINT, respectively.
9484 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
9485
9486 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
9487
9488 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
9489
9490 * window.c (freeze_window_starts): Construct last argument for
9491 foreach_window differently.
9492
9493 * xfns.c (x_decode_color): Don't return a Lisp_Object.
9494
9495 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
9496 EMACS_UINT instead of `int' and `unsigned int'.
9497 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
9498
9499 * frame.h (struct frame): Make the `nothing' member of union
9500 output_data an EMACS_INT.
9501
9502 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
9503 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
9504 size in the sdata structure.
9505 (SDATA_NBYTES, SDATA_DATA): New macros.
9506 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
9507 differently for the different layout of the sdata structure.
9508 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
9509 in sdata.
9510 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
9511 Check that size recorded in the string size and size recorded in
9512 the sdata structure agree.
9513
9514 2000-09-25 Dave Love <fx@gnu.org>
9515
9516 * buffer.c: Include stdio.h.
9517
9518 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
9519
9520 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
9521
9522 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
9523 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
9524 (__malloc_extra_blocks): Declare as __malloc_size_t.
9525
9526 2000-09-25 Gerd Moellmann <gerd@gnu.org>
9527
9528 * alloc.c (mark_image): Use GC_NILP instead of NILP.
9529
9530 * keyboard.c (show_help_echo): Set help_echo_showing_p.
9531 (read_char): If help-echo is showing, preserve the echo area
9532 when redisplaying.
9533
9534 * xdisp.c (help_echo_showing_p): New variable.
9535 (set_message): Reset it to 0.
9536 (init_xdisp): Initialize help_echo_showing_p.
9537
9538 * dispextern.h (help_echo_showing_p): Declare extern.
9539
9540 * config.in: Fix typo in __GNUC_MINOR__.
9541
9542 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
9543
9544 * s/freebsd.h (POSIX_SIGNALS): Define.
9545
9546 * xterm.c (x_clear_mouse_face): Block/unblock input.
9547
9548 2000-09-24 Dave Love <fx@gnu.org>
9549
9550 * fns.c (base64_encode_1): Fix last change.
9551
9552 2000-09-22 Gerd Moellmann <gerd@gnu.org>
9553
9554 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
9555
9556 * xdisp.c (try_window_reusing_current_matrix): More fixes
9557 for the case window has a header-line.
9558
9559 2000-09-22 Dave Love <fx@gnu.org>
9560
9561 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
9562 a doc string.
9563
9564 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
9565
9566 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
9567
9568 2000-09-21 Gerd Moellmann <gerd@gnu.org>
9569
9570 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
9571 for GCC >= 2.5.
9572
9573 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
9574 Declare NO_RETURN.
9575
9576 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
9577 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
9578 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
9579 warnings.
9580
9581 * marker.c (byte_char_debug_check): Return void.
9582
9583 * xfns.c (Fx_create_frame): Set default frame parameter value
9584 for tool-bar-lines to 1.
9585
9586 * dispnew.c (scrolling_window): Compare y-positions of rows
9587 equal at the start. Some simplification.
9588
9589 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
9590 reused rows' y-position in the case window has a header-line, and
9591 new window start is greater than old window start.
9592
9593 * process.c (process_sent_to): New variable.
9594 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
9595 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
9596 Declare more parameters volatile.
9597
9598 * lread.c (Vrecursive_load_depth_limit): New variable.
9599 (Fload): Check recursive loads whose recursion depth exceeds
9600 Vrecursive_load_depth_limit.
9601 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
9602
9603 2000-09-20 Gerd Moellmann <gerd@gnu.org>
9604
9605 * fileio.c (Fread_file_name): Doc fix.
9606
9607 * editfns.c (Fmessage_or_box): Doc fix.
9608
9609 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
9610
9611 * xfns.c (xbm_scan): Allow C-style comments.
9612
9613 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
9614 symbols are specified, add color translations to the cache.
9615 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
9616 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
9617 xpm_cache_color.
9618 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
9619 structures to xpm_init_color_cache.
9620
9621 2000-09-19 Gerd Moellmann <gerd@gnu.org>
9622
9623 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
9624
9625 2000-09-19 Andrew Innes <andrewi@gnu.org>
9626
9627 * makefile.nt (bootstrap-emacs): Don't change directory.
9628
9629 2000-09-19 Kenichi Handa <handa@etl.go.jp>
9630
9631 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
9632
9633 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
9634 If output buffer is too small, signal an appropriated error.
9635
9636 2000-09-18 Dave Love <fx@gnu.org>
9637
9638 * keyboard.c (menu_bar_items, tool_bar_items)
9639 (current_active_maps): Remove redundant get_local_map call.
9640
9641 2000-09-18 Gerd Moellmann <gerd@gnu.org>
9642
9643 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
9644 cursor for buffers whose cursor_type is nil.
9645
9646 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
9647 a feature to implement that is already implemented.
9648 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
9649 warnings.
9650
9651 * xfns.c (x_clear_image_1): New function.
9652 (x_clear_image): Use it.
9653 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
9654
9655 * dispnew.c (update_window): Move test for invisible lines
9656 at the top to update_window_line.
9657 (update_window_line): Handle invisible lines here.
9658
9659 * xfns.c (clear_image_cache): Clear current matrices of all
9660 frames sharing an image cache. Block input while freeing
9661 images. Fix timestamp comparison.
9662 (x_clear_image): Also free the mask.
9663
9664 * xfns.c (lookup_image): Block input while loading the image so
9665 that we won't get interrupted in a state where the image isn't yet
9666 set up completely.
9667 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
9668 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
9669 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
9670 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
9671
9672 2000-09-16 Gerd Moellmann <gerd@gnu.org>
9673
9674 * dispnew.c (update_window): Make sure to make desired rows
9675 current even if they are completely invisible at the top
9676 of a window.
9677
9678 2000-09-15 Gerd Moellmann <gerd@gnu.org>
9679
9680 * xfns.c (lookup_image): Build mask before applying an algorithm.
9681 Recognize algorithm `disabled'.
9682 (cross_disabled_images): New variable.
9683 (COLOR_INTENSITY): New macro.
9684 (x_detect_edges): Use COLOR_INTENSITY.
9685 (x_disable_image): New function.
9686 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
9687
9688 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
9689 disabled state, don't apply an image transformation algorithm if
9690 the user specified an image for the disabled state. Use
9691 `:algorithm disabled' for creating a disabled item's image if the
9692 user hasn't specified an image.
9693
9694 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
9695 allocation functions with the XPM lib.
9696 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
9697 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
9698 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
9699 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
9700 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
9701 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
9702 functions, if possible, because these handle color allocation
9703 failure more gracefully.
9704 (Fimage_mask_p): New function.
9705
9706 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
9707 (Qedge_detection, Qheuristic): New symbols.
9708 (syms_of_xfns): Initialize new symbols.
9709 (lookup_image): Handle `:mask X', `:algorithm emboss', and
9710 `algorithm (edge-detection ...)'.
9711 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
9712 (tiff_format, gif_format, gs_format): Add `:mask'.
9713 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
9714 (GIF_MASK, GS_MASK): New enumerators.
9715 (x_laplace_read_row, x_laplace_write_row): Functions removed.
9716 (emboss_matrix, laplace_matrix): New variables.
9717 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
9718 (x_edge_detection): New functions.
9719 (x_laplace): Rewritten in terms of x_detect_edges.
9720 (x_build_heuristic_mask): If image has a mask, free it.
9721
9722 2000-09-14 Andrew Innes <andrewi@gnu.org>
9723
9724 * makefile.w32-in: Revert to Unix line endings.
9725
9726 2000-09-14 Andrew Innes <andrewi@gnu.org>
9727
9728 * makefile.w32-in: Standardize indentation somewhat.
9729 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
9730 cater for differences between shells.
9731
9732 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
9733
9734 2000-09-14 Gerd Moellmann <gerd@gnu.org>
9735
9736 * xterm.c (x_produce_glyphs): If the distance from the current
9737 position to the next tab stop is less than a canonical character
9738 width, use the tab stop after that.
9739
9740 2000-09-14 Dave Love <fx@gnu.org>
9741
9742 * buffer.c (alloc_buffer_text): Fix xmalloc call.
9743
9744 2000-09-14 Gerd Moellmann <gerd@gnu.org>
9745
9746 * xdisp.c (handle_fontified_prop): While running fontification
9747 functions, bind `fontification-functions' and
9748 `after-change-functions' to nil.
9749
9750 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
9751 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
9752
9753 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
9754
9755 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
9756 USE_MMAP_FOR_BUFFERS.
9757
9758 * insdel.c (make_gap): Use enlarge_buffer_text.
9759
9760 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
9761 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
9762 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
9763 from former r_alloc_* functions in ralloc.c.
9764 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
9765 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
9766 (mmap_init) [REL_ALLOC_MMAP]: New function.
9767 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
9768 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
9769 BUFFER_FREE.
9770
9771 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
9772 (enlarge_buffer_text): Add prototype.
9773
9774 * ralloc.c: Remove everything having to do with the use of mmap.
9775
9776 2000-09-13 Gerd Moellmann <gerd@gnu.org>
9777
9778 * sound.c (Fplay_sound): Doc fix.
9779
9780 * keyboard.c: Avoid some more compiler warnings.
9781 (parse_tool_bar_item): Ignore cached key bindings.
9782
9783 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
9784 and allocation of Lisp data.
9785
9786 2000-09-12 Gerd Moellmann <gerd@gnu.org>
9787
9788 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
9789 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
9790 defaults first.
9791
9792 * lread.c (Fload): Put code checking for recursive loads in #if 0.
9793
9794 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
9795
9796 * ccl.c: Comment fixed.
9797 (MAX_MAP_SET_LEVEL): Increased to 30.
9798 (PUSH_MAPPING_STACK): Enclose with do-while block.
9799 (POP_MAPPING_STACK): Likewise.
9800 (stack_idx_of_map_multiple): New variable.
9801 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
9802 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
9803 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
9804 (ccl_driver) <CCL_MapSingle>: Likewise.
9805 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
9806 with the case where looking up process reaches to the end of
9807 map-set, and call CCL programs as the above change.
9808
9809 2000-09-11 Gerd Moellmann <gerd@gnu.org>
9810
9811 * xfns.c (png_load, jpeg_load): Declare some variables volatile
9812 that might be clobbered by longjmp.
9813 (check_x_display_info, x_decode_color, create_frame_xic)
9814 (Fx_display_backing_store, Fx_display_visual_class)
9815 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
9816
9817 * lread.c (init_lread): Set Vloads_in_progress to nil.
9818 (Fload): Show list of recursively loaded files, when signaling an
9819 error.
9820
9821 * lread.c (Vloads_in_progress): New variable.
9822 (record_load_unwind): New function.
9823 (Fload): Check for recursive loads.
9824 (syms_of_lread): Initialize Vloads_in_progress.
9825 (read_integer, read1): Avoid some compiler warnings.
9826
9827 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
9828 compiler warnings.
9829
9830 2000-09-11 Miles Bader <miles@gnu.org>
9831
9832 * editfns.c (Fbuffer_string): Doc fix.
9833
9834 2000-09-10 Gerd Moellmann <gerd@gnu.org>
9835
9836 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
9837
9838 2000-09-09 Ken Raeburn <raeburn@gnu.org>
9839
9840 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
9841 whether to include other header files.
9842
9843 2000-09-09 Gerd Moellmann <gerd@gnu.org>
9844
9845 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9846 by Fmemq as a boolean.
9847
9848 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
9849
9850 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
9851
9852 2000-09-08 Gerd Moellmann <gerd@gnu.org>
9853
9854 * ralloc.c (mmap_fd): Remove initializer which can make it
9855 read-only in a dumped Emacs.
9856 (mmap_fd_1): New variable.
9857 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
9858 restore it from there.
9859 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
9860 unconditionally so that mmap_fd can be initialized there.
9861 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
9862 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
9863 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
9864
9865 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
9866
9867 * xdisp.c (dump_glyph_row): Fix printf format string.
9868 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
9869
9870 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
9871
9872 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
9873 inheritance.
9874
9875 * xdisp.c (try_window_id): When trying to locate cursor in
9876 unchanged rows at the top, handle the case that we can't find it.
9877
9878 * xterm.c (x_draw_glyphs): Handle case START and END are out
9879 of bounds more carefully.
9880
9881 2000-09-08 Dave Love <fx@gnu.org>
9882
9883 * s/sol2.h (REL_ALLOC_MMAP): Define.
9884 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
9885
9886 * ralloc.c: Don't include string.h (redundant).
9887 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
9888 [!MAP_ANON]: Include fcntl.h.
9889 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
9890 (r_alloc, r_re_alloc, r_alloc_free)
9891 (mmap_enlarge, mmap_set_vars): Use it.
9892 (r_alloc_init_fd): New function.
9893 (__morecore) [SYSTEM_MALLOC]: Don't declare.
9894 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
9895 malloc type.
9896
9897 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
9898 Remove vm-limit.o.
9899
9900 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
9901 change to __NetBSD__.
9902
9903 2000-09-08 Kenichi Handa <handa@etl.go.jp>
9904
9905 * search.c (compile_pattern): Check the multibyteness of cached
9906 string and PATTERN.
9907
9908 2000-09-08 Miles Bader <miles@gnu.org>
9909
9910 * xfaces.c (default_face_vector): Function removed.
9911 (Finternal_merge_in_global_face): Restore old global/local
9912 attribute override order. Use inline loop instead of calling
9913 default_face_vector.
9914
9915 2000-09-07 Gerd Moellmann <gerd@gnu.org>
9916
9917 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
9918 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
9919 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
9920 where necessary, in case POINTER_TYPE is `void'.
9921
9922 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
9923
9924 * frame.c (make_terminal_frame): Initialize frame foreground and
9925 background colors to unspecified, for the initial instance of an
9926 MSDOS frame.
9927
9928 2000-09-07 Gerd Moellmann <gerd@gnu.org>
9929
9930 * ralloc.c (mmap_find): Fix overlap computation.
9931 (mmap_enlarge): Compute nbytes before trying to find an
9932 overlapping region.
9933
9934 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
9935 instead of `!='.
9936
9937 * lread.c (syms_of_lread): Change value of regexp
9938 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
9939
9940 * xmenu.c (xdialog_show): When looking up the selection in
9941 menu_items, take `quote' boundaries into account; this corresponds
9942 to a nil ITEM in x-popup-dialog.
9943
9944 2000-09-07 Kenichi Handa <handa@etl.go.jp>
9945
9946 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
9947 not 0x81.
9948 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
9949
9950 * coding.c (encode_coding_sjis_big5): Use translation table for
9951 encoding, not decoding. Fix the handling of latin-jisx0201.
9952 Check for the charset katakana-jisx0201 too.
9953 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
9954 (detect_coding_sjis): Check the byte sequence more rigidly.
9955
9956 2000-09-07 Gerd Moellmann <gerd@gnu.org>
9957
9958 * xfaces.c (Vparam_value_alist): New variable.
9959 (syms_of_xfaces): Initialize it.
9960 (Finternal_set_lisp_face_attribute): Avoid more consing.
9961
9962 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
9963 specially.
9964 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
9965 (Qbackground_mode): New variable.
9966 (syms_of_frame_1): Initialize Qbackground_mode.
9967
9968 * lisp.h (Qdisplay): Declare extern.
9969
9970 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
9971 change face on all frames, and change the default for new frames.
9972
9973 2000-09-07 Dave Love <fx@gnu.org>
9974
9975 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
9976
9977 2000-09-07 Kenichi Handa <handa@etl.go.jp>
9978
9979 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
9980
9981 * charset.c: Include composite.h
9982 (lisp_string_width): New function.
9983 (Fstring_width): Call lisp_string_width instead of strwidth.
9984
9985 * Makefile.in (charset.o): Depends on composite.h.
9986
9987 * process.c (read_process_output): Before inserting the decoded
9988 text in the buffer, adjust the multibyteness.
9989
9990 2000-09-06 Gerd Moellmann <gerd@gnu.org>
9991
9992 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
9993 buffer's text buffer is null, map new memory.
9994
9995 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
9996 POINTER_TYPE and size_t.
9997 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
9998 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
9999 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
10000 [REL_ALLOC_MMAP]: New macros.
10001 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
10002 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
10003 [REL_ALLOC_MMAP]: New functions.
10004
10005 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
10006 before and after unexec.
10007
10008 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
10009 text buffers if necessary.
10010
10011 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
10012 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
10013 in prototypes.
10014
10015 * config.in (HAVE_MMAP): Add #undef.
10016
10017 2000-09-05 Gerd Moellmann <gerd@gnu.org>
10018
10019 * frame.c (Qdisplay_type): New variable.
10020 (syms_of_frame_1): Initialize it.
10021 (Fframe_parameter): New function that avoids consing.
10022 (syms_of_frame): Defsubr it.
10023
10024 * buffer.c (Fother_buffer): Consider buffers as invisible when
10025 they are displayed in a window on an invisible frame.
10026
10027 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
10028 get-largest-window always return nil.
10029
10030 2000-09-04 Gerd Moellmann <gerd@gnu.org>
10031
10032 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
10033 variable; recognize Emacs 19 elc files.
10034
10035 2000-09-04 Miles Bader <miles@gnu.org>
10036
10037 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
10038 before initially popping up the menu, so the menu doesn't flash
10039 when the face settings are significantly different from the defaults.
10040
10041 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
10042
10043 * regex.c (WIDE_CHAR_SUPPORT): New macro.
10044 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
10045 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
10046 (BIT_UNIBYTE): Remove.
10047 (re_match_2_internal): Delete corresponding code and streamline the
10048 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
10049 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
10050 (re_wctype_t): New type.
10051 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
10052 (regex_compile): Use them and fix handling of overly long char classes.
10053
10054 2000-09-03 Andrew Innes <andrewi@gnu.org>
10055
10056 * makefile.w32-in: Change to DOS line endings.
10057
10058 * s/ms-w32.h (ORDINARY_LINK): New define.
10059
10060 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
10061 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
10062
10063 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
10064 (distclean): Delete them here instead.
10065
10066 * w32proc.c (compare_env): Convert to uppercase for comparison,
10067 not lowercase, to match how the native Windows shell works.
10068
10069 2000-09-03 Jason Rumney <jasonr@gnu.org>
10070
10071 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
10072 CVS changes the line-ends when checking in/out on DOS/Windows.
10073
10074 * makefile.nt (emacs): Do not change directory to run temacs, as
10075 the load-path is set relative to current directory.
10076
10077 2000-09-03 Miles Bader <miles@gnu.org>
10078
10079 * xterm.c (x_alloc_lighter_color_for_widget): New function.
10080
10081 2000-09-02 Gerd Moellmann <gerd@gnu.org>
10082
10083 * xdisp.c (redisplay_mode_lines): New function.
10084 (display_mode_lines): Return number of mode lines displayed.
10085 (echo_area_display): Use redisplay_mode_lines to draw garbaged
10086 mode lines. Don't temporarily bind redisplay-dont-pause to t.
10087
10088 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
10089 string.h and strings.h.
10090 (index) [HAVE_INDEX]: Add prototype.
10091
10092 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
10093 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
10094
10095 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
10096 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
10097
10098 2000-09-01 Gerd Moellmann <gerd@gnu.org>
10099
10100 * lread.c (read1): Accept `?' as symbol constituent, for
10101 compatiblity with XEmacs.
10102
10103 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
10104
10105 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
10106 (struct re_pattern_buffer): Remove newline_anchor.
10107 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
10108 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
10109 (re_max_failures, fail_stack): Use size_t rather than unsigned.
10110 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
10111 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
10112 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
10113 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
10114 Get rid of references to newline_anchor.
10115 (regcomp): Allocate and precompute a fastmap.
10116
10117 2000-08-31 Gerd Moellmann <gerd@gnu.org>
10118
10119 * lread.c (openp): GCPRO local variable `filename'.
10120
10121 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
10122
10123 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
10124
10125 * regex.c: Merge some changes from GNU libc. Add prototypes.
10126 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
10127 Use memcmp and memcpy instead of bcopy and bcmp.
10128 (init_syntax_once): Use ISALNUM.
10129 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
10130 (REG_UNSET_VALUE): Remove. Use NULL instead.
10131 (REG_UNSET, re_match_2_internal): Use NULL.
10132 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
10133 New macros.
10134 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
10135 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
10136 (regex_compile): In handle_interval, return an error rather than try to
10137 unfetch the interval if we can't find the closing brace.
10138 Obey the RE_NO_GNU_OPS syntax bit.
10139 (TOLOWER): New macro.
10140 (regcomp): Use it.
10141 (regexec): Allocate regs.start and regs.end as one block.
10142
10143 2000-08-30 Gerd Moellmann <gerd@gnu.org>
10144
10145 * xdisp.c (echo_area_display): Check display_completed instead
10146 of calling detect_input_pending.
10147
10148 * dispnew.c (update_frame): Only set display_completed here; move
10149 the update_begin and update_end calls here from update_frame_1.
10150 (update_frame_1): Don't set display_completed here, don't call
10151 update_begin/update_end.
10152
10153 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
10154 instead of store_frame_param.
10155
10156 2000-08-29 Gerd Moellmann <gerd@gnu.org>
10157
10158 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
10159 desired window matrix hasn't been displayed, use the current row
10160 instead. Make sure that only those frame rows are updated for
10161 which there exists a corresponding enabled desired row.
10162
10163 2000-08-29 Miles Bader <miles@gnu.org>
10164
10165 * xfaces.c (default_face_vector): New function.
10166 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
10167
10168 2000-08-29 Gerd Moellmann <gerd@gnu.org>
10169
10170 * lread.c (openp): Prevent temporary string passed to
10171 Ffile_readable_p from being garbage collected.
10172
10173 2000-08-28 Dave Love <fx@gnu.org>
10174
10175 * keymap.c (store_in_keymap): Add `static' to declaration.
10176
10177 2000-08-28 Gerd Moellmann <gerd@gnu.org>
10178
10179 * emacs.c, callint.c, doc.c, editfns.c
10180 (toplevel) [HAVE_STRING_H]: Include string.h.
10181 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
10182 (index): Remove prototypes which might conflict with non-standard
10183 definitions of index/strchr.
10184
10185 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
10186 (rindex): Define only if !HAVE_RINDEX.
10187
10188 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
10189
10190 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
10191
10192 2000-08-28 Miles Bader <miles@gnu.org>
10193
10194 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
10195 made inconsistent by a font-related attribute in FROM.
10196 (merge_face_inheritance): Add function comment.
10197
10198 2000-08-28 Kenichi Handa <handa@etl.go.jp>
10199
10200 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
10201 the 4th arg (PREV_EVENT) Qt to suppress input method.
10202
10203 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
10204
10205 * regex.c: Indent cpp directives and remove parens after `defined'.
10206 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
10207 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
10208 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
10209 (re_compile_pattern): Use size_t for length.
10210 (init_syntax_once): Move to a better place.
10211 * regex.h: Merge changes from GNU libc. Indent cpp directives.
10212 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
10213
10214 * syntax.c (back_comment): Detect cases where a comment-starter is
10215 actually inside another comment as in: /* a // b */ c // d \n.
10216 Make it clear that `comstart_pos' is unused for nested comments.
10217
10218 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
10219 (KEYMAPP): New macro.
10220 (Fkeymap_parent, Fset_keymap_parent): Use it.
10221 (fix_submap_inheritance): Mark it static.
10222 (define_as_prefix, describe_buffer_bindings, describe_command)
10223 (describe_translation, describe_map): Complete prototypes.
10224
10225 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
10226
10227 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
10228 to better match the key-lookup behavior.
10229
10230 2000-08-27 Gerd Moellmann <gerd@gnu.org>
10231
10232 * xfaces.c (lface_fully_specified_p): Handle :inherit.
10233 (Finternal_set_lisp_face_attribute): Fix typo in error message.
10234
10235 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
10236
10237 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
10238 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
10239 (xterm.o): Depend on coding.h
10240
10241 2000-08-26 Kenichi Handa <handa@etl.go.jp>
10242
10243 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
10244 the corresponding '#endif'.
10245
10246 2000-08-26 Miles Bader <miles@gnu.org>
10247
10248 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
10249 * xfaces.c (QCinherit): New variable.
10250 (syms_of_xfaces): Initialize it.
10251 (LFACE_INHERIT): New macro.
10252 (Finternal_get_lisp_face_attribute)
10253 (merge_face_vector_with_property)
10254 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
10255 (check_lface_attrs): Allow new types of face height. Check
10256 inherit attribute.
10257 (CYCLE_CHECK): New macro.
10258 (merge_face_inheritance): New function.
10259 (merge_face_vectors): Merge inherited faces too. Add F and
10260 CYCLE_CHECK arguments.
10261 (merge_face_vector_with_property, Finternal_merge_in_global_face)
10262 (lookup_named_face, lookup_derived_face, realize_named_face)
10263 (face_at_string_position, face_at_buffer_position): Supply
10264 new F and CYCLE_CHECK arguments to merge_face_vectors.
10265 (merge_face_heights): New function.
10266 (merge_face_vectors, merge_face_vector_with_property)
10267 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
10268 handle relative face heights.
10269 (lface_same_font_attributes_p): Compare heights using EQ.
10270
10271 2000-08-26 Kenichi Handa <handa@etl.go.jp>
10272
10273 * charset.c (char_to_string): Check the character validity.
10274 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
10275
10276 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
10277
10278 * regex.c (PUSH_FAILURE_COUNT): New macro.
10279 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
10280 Handle popping of a register's or a counter's data.
10281 (POP_FAILURE_POINT): Use the new name.
10282 (re_match_2_internal): Push counter data on the stack for succeed_n,
10283 jump_n and set_number_at and remove misleading dead code in succeed_n.
10284
10285 2000-08-25 Gerd Moellmann <gerd@gnu.org>
10286
10287 * xdisp.c (redisplay_internal): If considering all windows on all
10288 frames, update the display for each frame as soon as possible,
10289 instead of first building all desired matrices for all frames, and
10290 then updating them all.
10291 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
10292
10293 2000-08-24 Gerd Moellmann <gerd@gnu.org>
10294
10295 * bytecode.c (mark_byte_stack): Add a comment.
10296
10297 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
10298 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
10299 a graphical frame.
10300
10301 2000-08-24 Kenichi Handa <handa@etl.go.jp>
10302
10303 * minibuf.c (do_completion): Always use compare-string, not
10304 string-equal because the latter doesn't pay attention to
10305 multibyteness of strings.
10306
10307 * process.c (create_process): Don't setup raw-text coding here.
10308 (Fopen_network_stream): Don't set coding->src_multibyte and
10309 coding->dst_multibyte here.
10310 (read_process_output): For process filter, return unibyte string
10311 if default-enable-multibyte-characters is nil.
10312 (send_process): If OBJECT is multibyte text, be sure to encoded it
10313 by the specified coding system for the process. Otherwise, setup
10314 raw-text coding.
10315 (init_process): Don't initialize default-process-coding-system here.
10316
10317 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
10318
10319 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
10320 <scroll-down-aggressively>: Likewise.
10321
10322 2000-08-23 Kenichi Handa <handa@etl.go.jp>
10323
10324 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
10325 zero. Set coding->produced_char correctly.
10326
10327 2000-08-22 Andrew Innes <andrewi@gnu.org>
10328
10329 * makefile.w32-in: New file.
10330
10331 * unexw32.c (unexec): Ignore old_name, and use the actual location
10332 of the current executable instead. Base new_name on this.
10333
10334 * w32proc.c (create_child): Remove reference to security
10335 descriptor, which isn't needed and doesn't compile with mingw32.
10336
10337 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10338 up dllimport attributes.
10339 (x_update_window_end): Update prototype.
10340
10341 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
10342 extern, which screws up dllimport attributes.
10343
10344 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10345 up dllimport attributes.
10346
10347 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
10348 screws up dllimport attributes.
10349
10350 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10351 up dllimport attributes.
10352 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
10353 screws up dllimport attributes.
10354
10355 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10356 up dllimport attributes.
10357
10358 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
10359 screws up dllimport attributes.
10360
10361 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
10362 screws up dllimport attributes.
10363
10364 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10365 up dllimport attributes.
10366
10367 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
10368 unnecessary extern, which screws up dllimport attributes.
10369 (main): Ditto.
10370
10371 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10372 up dllimport attributes.
10373
10374 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
10375 unnecessary extern, which screws up dllimport attributes.
10376
10377 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
10378 screws up dllimport attributes.
10379
10380 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10381 up dllimport attributes.
10382
10383 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
10384
10385 * w32bdf.c (search_file_line):
10386 (set_bdf_font_info):
10387 (seek_char):
10388 (w32_get_bdf_glyph):
10389 (w32_BDF_to_x_font): Fix compile warnings.
10390
10391 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
10392
10393 * w32select.c: Include keyboard.h before frame.h.
10394
10395 * w32fns.c (max): Define macro.
10396 (JOHAB_CHARSET): Define if not known.
10397 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
10398 (Fx_show_tip): Synch with X version.
10399
10400 * w32xfns.c: Include keyboard.h before frame.h.
10401
10402 * w32fns.c: Include keyboard.h before frame.h.
10403
10404 * w32term.c: Include keyboard.h before frame.h.
10405
10406 * fontset.c: Include keyboard.h before frame.h.
10407
10408 * w32inevt.c: Include keyboard.h before frame.h.
10409 (MOUSE_MOVED): Define if not known.
10410
10411 * minibuf.c: Include keyboard.h before frame.h.
10412
10413 * keyboard.c: Include keyboard.h before frame.h.
10414
10415 * indent.c: Include keyboard.h before frame.h.
10416
10417 * dispnew.c: Include keyboard.h before frame.h.
10418
10419 * buffer.c: Include keyboard.h before frame.h.
10420
10421 * alloc.c: Include keyboard.h before frame.h.
10422
10423 * print.c: Include keyboard.h before frame.h.
10424
10425 * process.c: Include keyboard.h before frame.h.
10426
10427 * scroll.c: Include keyboard.h before frame.h.
10428
10429 * sysdep.c: Include keyboard.h before frame.h.
10430
10431 * term.c: Include keyboard.h before frame.h.
10432
10433 * window.c: Include keyboard.h before frame.h.
10434
10435 * xdisp.c: Include keyboard.h before frame.h.
10436 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
10437
10438 * frame.c: Include keyboard.h before frame.h.
10439
10440 * w32heap.h: Undefine min, max.
10441
10442 * w32gui.h: Undefine min, max.
10443
10444 * unexw32.c: Change PUCHAR to PCHAR.
10445 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
10446 (relocate_offset):
10447 (get_section_info):
10448 (copy_executable_and_dump_data): Remove unnecessary static defs.
10449 (copy_executable_and_dump_data): Fix compile warnings.
10450
10451 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
10452
10453 * w32console.c (min): Define macro.
10454 (clear_frame, write_glyphs): Fix compile warning.
10455
10456 * w32proc.c (compare_env):
10457 (find_child_console): Fix compile warning.
10458
10459 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
10460 sys_errlist instead of _sys_errlist.
10461 (get_emacs_configuration_options): New function.
10462
10463 * s/ms-w32.h (sys_nerr): Provide default definition.
10464 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
10465 name with _ prepended.
10466 (NSIG): Define if not known.
10467 (get_emacs_configuration): Provide extern declaration.
10468 (get_emacs_configuration_options): Provide extern declaration.
10469 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
10470
10471 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
10472 (map_w32_filename):
10473 (read_unc_volume): Fix compile warning.
10474
10475 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
10476 definitions from being used.
10477
10478 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
10479
10480 * w32.c (unc_volume_file_attributes):
10481 (open_unc_volume): Make arg const.
10482
10483 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
10484 (read_input_waiting): Remove excess parameter.
10485
10486 * w32.c (init_environment): Call _access.
10487 (check_windows_init_file): Call _close.
10488 (init_user_info): Call _putenv.
10489 (init_environment): Call _putenv and _strdup.
10490 (init_ntproc): Reset volume info cache on startup.
10491
10492 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
10493 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
10494 cannot override the CRT malloc.
10495
10496 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
10497 (LINK_FLAGS): Append to original value of LINK_FLAGS.
10498
10499 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
10500 unless we are linking with a static CRT.
10501 (RVA_TO_PTR): Cast result to unsigned char*.
10502
10503 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
10504 (add_volume_info): Use xstrdup.
10505
10506 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
10507
10508 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
10509 (do_completion, Fminibuffer_complete_word): Use it.
10510 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
10511 var so it can take non-boolean values.
10512
10513 2000-08-21 Gerd Moellmann <gerd@gnu.org>
10514
10515 * editfns.c (find_field): Formatting changes.
10516 (toplevel): Some old-style function forward declarations
10517 changed to prototypes, some new protypes added, some functions
10518 made static.
10519
10520 * lisp.h (set_time_zone_rule): Add prototype.
10521 (use_dialog_box): External declaration.
10522
10523 * keyboard.c (gen_help_event): Add parameter SIZE.
10524 (kbd_buffer_events_waiting): Slightly rewritten.
10525 (clear_event): New function.
10526 (kbd_buffer_get_event): Use it, and clear the input_events of
10527 HELP_EVENTs.
10528 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
10529 don't fill the newly created array with nils.
10530 (toplevel): Convert some old-style function forward declarations
10531 to prototypes.
10532
10533 * keyboard.h (gen_help_event): Change prototype.
10534
10535 * xterm.c (XTread_socket): Change calls to gen_help_event.
10536
10537 * w32term.c (w32_read_socket): Change calls to gen_help_event.
10538
10539 * eval.c (Fmacroexpand): Doc fix.
10540
10541 2000-08-20 Jason Rumney <jasonr@gnu.org>
10542
10543 * w32term.h (x_display_info_for_display): Remove as this function
10544 does not exist on W32.
10545
10546 * w32term.c (help_echo_window): New variable.
10547 (syms_of_w32term): staticpro it.
10548 (note_mode_line_highlight): Set it.
10549 (XTextExtents16): Removed as there is no equivalent on W32.
10550 (x_compute_glyph_string_overhangs): Incomplete body removed, as
10551 the X way of doing this will not work for W32.
10552 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
10553 (x_draw_image_foreground): Avoid drawing outside of the clip area
10554 when image doesn't have a mask.
10555 (note_mouse_highlight): Process overlays in the right order of
10556 priority. Set help_echo_window.
10557 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
10558 because that's more visible for large images.
10559
10560 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
10561 name to single_keymap_panes.
10562 (w32_menu_show): Set wv->title when dealing with titles.
10563 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
10564
10565 2000-08-21 Miles Bader <miles@gnu.org>
10566
10567 * minibuf.c (do_completion): Try again if we rewrite the input
10568 string, but no completion was done, so that any completion message
10569 will be correct.
10570
10571 2000-08-20 Gerd Moellmann <gerd@gnu.org>
10572
10573 * xfaces.c (lface_equal_p): Compare strings differently.
10574 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
10575 (realize_tty_face): Use them.
10576 (syms_of_xfaces): Initialize new variables.
10577 (map_tty_color): New function, extracted from realize_tty_face.
10578 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
10579 foreground or background color, store the new color name in the
10580 realized face; previous code trying to do this had no effect.
10581 (realize_tty_face): Use map_tty_color.
10582 (Fclear_face_cache): Set face_change_count and ensure thorough
10583 redisplay.
10584
10585 2000-08-19 Gerd Moellmann <gerd@gnu.org>
10586
10587 * undo.c (record_first_change, record_marker_adjustment): Don't
10588 use XBUFFER on last_undo_buffer which might not be a buffer.
10589
10590 2000-08-18 Kenichi Handa <handa@etl.go.jp>
10591
10592 * coding.c (decode_coding_string): Set members consumed,
10593 consumed_char, produced, produced_char of *coding correctly. If
10594 decode_coding doesn't consume any byte, don't try anymore.
10595 (encode_coding_string): Likewise.
10596
10597 2000-08-18 Gerd Moellmann <gerd@gnu.org>
10598
10599 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
10600 conditional have void type, for Standard C compilers.
10601
10602 * xdisp.c (redisplay_internal): Compare windows for equality with
10603 EQ, instead of applying XWINDOW to something that might not
10604 be a window.
10605
10606 2000-08-18 Kenichi Handa <handa@etl.go.jp>
10607
10608 * fontset.c (Finternal_char_font): Search only the selected frame
10609 for a window of the current buffer.
10610
10611 2000-08-18 Gerd Moellmann <gerd@gnu.org>
10612
10613 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
10614 Lisp_Objects.
10615
10616 * keyboard.c (kbd_buffer_get_event): Handle the case that the
10617 second half of a HELP_EVENT is found at the start of kbd_buffer.
10618
10619 2000-08-18 Miles Bader <miles@gnu.org>
10620
10621 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
10622
10623 * editfns.c (save_restriction_save): Rewrite to use markers.
10624 (save_restriction_restore): Rewrite to understand new form of data
10625 saved by save_restriction_save.
10626 (Fsave_restriction): Remove cautionary note in doc-string.
10627
10628 2000-08-17 Gerd Moellmann <gerd@gnu.org>
10629
10630 * fileio.c (build_annotations): Add a comment explaining the
10631 return value of format-annotate-function. Replace a spurious call
10632 to Flength with a CONSP test. Call format-annotate-function with
10633 a fifth arg specifying how many times the function is been called
10634 in a row, to let it choose temporary buffers appropriately.
10635
10636 2000-08-17 Dave Love <fx@gnu.org>
10637
10638 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
10639 declare make_temp_name twice.
10640
10641 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
10642 (unreadpure): Give it an arg.
10643
10644 * unexalpha.c: Prototype fatal_unexec, mark_x,
10645 update_dynamic_symbols. Declare unexec as void.
10646
10647 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
10648 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
10649
10650 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
10651 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
10652
10653 * alloca.c: Use #error.
10654 [POINTER_TYPE]: Use it.
10655
10656 * eval.c (Fdefvar): Doc fix.
10657
10658 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
10659 INITIALIZE_INTERVAL.
10660
10661 * buffer.h: Avoid DECLARE_INTERVALS.
10662
10663 * config.in: Add size_t.
10664
10665 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
10666
10667 * w16select.c (set_clipboard_data): If there's not enough memory
10668 to put text into clipboard, return 1, as Fw16_set_clipboard_data
10669 expects. In case of other failures, return 3.
10670 (system_error_msg): New error message.
10671 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
10672 system_error_msg.
10673
10674 2000-08-16 Gerd Moellmann <gerd@gnu.org>
10675
10676 * term.c (write_glyphs): Also turn off inverse video after turning
10677 off other appearances in case TS_exit_attribute_mode is not equal
10678 to TS_end_standout_mode.
10679 (insert_glyphs): Turn inverse video on/off for each run of glyphs
10680 with the same face.
10681 (turn_off_face): Reset standout_mode only if
10682 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
10683 is equal to TS_end_standout_mode.
10684
10685 2000-08-16 Kenichi Handa <handa@etl.go.jp>
10686
10687 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
10688 sequence at the end of the source block.
10689
10690 * ccl.c (Fccl_program_p): Docstring modified.
10691 (Fccl_execute): Likewise.
10692 (Fccl_execute_on_string): Likewise.
10693
10694 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
10695
10696 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
10697
10698 2000-08-16 Kenichi Handa <handa@etl.go.jp>
10699
10700 The following changes are mainly to fix bugs of
10701 encode/decode-coding-string failing if encoding/decoding return
10702 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
10703 variable conversion_buffer.
10704
10705 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
10706 decrement dst_end to avoid buffer overflow in the later call of
10707 string_as_multibyte
10708
10709 * coding.h (conversion_buffer_size, conversion_buffer)
10710 (get_conversion_buffer): Extern deleted.
10711
10712 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
10713 (conversion_buffer, conversion_buffer_size): Variables deleted.
10714 (get_conversion_buffer): Function deleted.
10715 (struct conversion_buffer): New structure.
10716 (MAX_ALLOCA): New macro.
10717 (allocate_conversion_buffer): New macro.
10718 (extend_conversion_buffer, free_conversion_buffer): New functions.
10719 (ccl_coding_driver): Set coding->result.
10720 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
10721 this is the last block of source.
10722 (encode_coding): Likewise. Handle the source block as the last
10723 one only when the whole source text is consumed.
10724 (decode_coding_string): Handle the case that the output buffer is
10725 too small to decode the whole source text. Use
10726 allocate_conversion_buffer, extend_conversion_buffer and
10727 free_conversion_buffer, not get_conversion_buffer.
10728 (encode_coding_string): Likewise.
10729 (init_coding): Function deleted.
10730 (init_coding_once): Delete code to initialize conversion_buffer_size.
10731
10732 * emacs.c (main): Don't call init_coding.
10733
10734 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
10735
10736 * term.c (write_glyphs): Use a locally declared conversion_buffer.
10737 (insert_glyphs): Likewise.
10738
10739 * w32console.c (write_glyphs): Use a locally declared
10740 conversion_buffer.
10741
10742 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
10743
10744 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
10745 member of display_info is NULL.
10746
10747 2000-08-15 Gerd Moellmann <gerd@gnu.org>
10748
10749 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
10750
10751 * term.c (turn_off_face): Reset standout_mode when resetting
10752 appearances with capability `me'.
10753 (write_glyphs): Switch on inverse video before each face change.
10754
10755 2000-08-14 Dave Love <fx@gnu.org>
10756
10757 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
10758 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
10759 (lisp_free): Declare and make static.
10760
10761 * window.c: Fix embedded comment.
10762 (syms_of_window): Fix doc string.
10763
10764 2000-08-14 Gerd Moellmann <gerd@gnu.org>
10765
10766 * keymap.c (push_key_description): If C without modifiers is < 32,
10767 make sure to print `C-' before `M-', like in the manual.
10768
10769 2000-08-11 Gerd Moellmann <gerd@gnu.org>
10770
10771 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
10772 since they aren't relocated anymore.
10773 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
10774
10775 * xdisp.c (try_cursor_movement): Fix handling of cursor in
10776 partially visible line which is smaller than the window's height.
10777
10778 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10779
10780 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
10781 the multibyte form of eight-bit-control characters.
10782 (Fccl_execute_on_string): Initialize ccl->multibyte.
10783
10784 * ccl.h (struct ccl_program): New member multibyte.
10785
10786 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
10787
10788 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10789
10790 * regex.c (regex_compile) <normal_char>: Pay attention to
10791 multibyteness.
10792 (analyse_first) <exactn>: Setup fastmap correctly for
10793 eight-bit-control characters.
10794
10795 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10796
10797 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
10798
10799 * keyboard.c (make_lispy_event): Handle the new event type
10800 multibyte_char_keystroke.
10801
10802 * xterm.c: Include coding.h.
10803 (XTread_socket): Work around a bug of XmbLookupString. If the
10804 input is from XIM, decode it according to the current locale. In
10805 that case, generate multibyte_char_keystroke events.
10806
10807 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10808
10809 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
10810 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
10811
10812 2000-08-10 Gerd Moellmann <gerd@gnu.org>
10813
10814 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
10815 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
10816 (move_it_in_display_line_to): Record iterator's ascent and descent
10817 before producing glyphs, and restore them when we know the glyph
10818 doesn't fit on the line.
10819 (move_it_to): Restructured so that it's easier to debug. If
10820 moving to a vpos, and not moving to an x or character position,
10821 stop as soon as the specified vpos is reached; don't move further
10822 into that line because that might change the computed line height.
10823 (try_cursor_movement): New function, extracted from the cursor
10824 movement branch of redisplay_window. If ending on a partially
10825 visible line, don't try to scroll if the cursor line is taller
10826 than the window.
10827 (redisplay_window): Use try_cursor_movement.
10828
10829 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
10830 because that function doesn't cope with variable-height lines.
10831
10832 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
10833 box cursor because that's better visible for large images.
10834
10835 2000-08-10 Miles Bader <miles@gnu.org>
10836
10837 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
10838
10839 2000-08-10 Gerd Moellmann <gerd@gnu.org>
10840
10841 * xdisp.c (Vmessages_buffer_name): New variable.
10842 (message_dolog): Use it.
10843 (syms_of_xdisp): Initialize it.
10844
10845 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
10846
10847 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
10848 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
10849 redundant now that keyboard.h is included.
10850
10851 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
10852
10853 * keyboard.c (kbd_buffer_events_waiting): New function.
10854
10855 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
10856
10857 * msdos.c: Include keyboard.h.
10858 (XMenuActivate): Empty no_event events from the event buffer. If
10859 no events are left after that, call clear_input_pending.
10860 (mouse_clear_clicks): New function, code moved from mouse_init.
10861 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
10862 mouse driver to ``forget'' any past clicks.
10863
10864 * Makefile.in (msdos.o): Depend on keyboard.h.
10865
10866 2000-08-09 Gerd Moellmann <gerd@gnu.org>
10867
10868 * lisp.h (input_pending): External declaration.
10869
10870 * dispextern.h (Qredisplay_dont_pause): Declare extern.
10871
10872 * xdisp.c (echo_area_display): Display thoroughly if input is
10873 pending. Bind redisplay-dont-pause to t during the redisplay.
10874 in case input is pending.
10875
10876 * dispnew.c (Qredisplay_dont_pause): New variable.
10877 (syms_of_display): Initialize and staticpro it.
10878 (update_frame_1): Don't interrupt the display for pending input if
10879 redisplay_dont_pause is set.
10880
10881 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
10882
10883 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
10884
10885 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
10886
10887 * callproc.c (Fcall_process): Terminate the unwind-protect around
10888 the post-read-conversion of coding system.
10889
10890 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
10891 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
10892 * buffer.h (overlays_at): Update prototype.
10893 * xdisp.c (next_overlay_change): Update call to overlays_at.
10894 * xfaces.c (face_at_buffer_position): Likewise.
10895 * textprop.c (Fget_char_property): Likewise.
10896 * xterm.c (note_mouse_highlight): Likewise.
10897
10898 * minibuf.c (do_completion): Don't consider a simple change of
10899 case as `completion'.
10900
10901 2000-08-08 Ken Raeburn <raeburn@gnu.org>
10902
10903 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
10904 * undo.c (record_delete): Make sure last_point_position_buffer is
10905 a buffer before comparing pointers.
10906
10907 * coding.h (decode_coding_string): Declare.
10908
10909 * intervals.h (Fprevious_single_char_property_change): Declare.
10910
10911 * textprop.c (Fprevious_single_char_property_change): Don't do
10912 arithmetic directly on lisp objects.
10913
10914 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
10915
10916 * keyboard.h (menu_item_eval_property): Declare.
10917
10918 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
10919 reuse as buffer name, instead of recreating (and discarding) every
10920 time a message is logged.
10921 (with_echo_area_buffer): Make callback arg A2 a lisp object.
10922 (current_message_1, truncate_message_1, set_message_1)
10923 (display_echo_area_1, resize_mini_window_1): Signatures changed.
10924 (current_message, truncate_echo_area, display_echo_area)
10925 (resize_echo_area_axactly): Changed calls.
10926
10927 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
10928 Lisp object.
10929 (Ffind_coding_systems_region_internal): First argument to Fappend
10930 must be an integer, not a Lisp object.
10931
10932 2000-08-08 Kenichi Handa <handa@etl.go.jp>
10933
10934 * charset.c (Fchar_width): Doc fix.
10935
10936 2000-08-08 Gerd Moellmann <gerd@gnu.org>
10937
10938 * charset.c (Fstring_width): Doc fix.
10939
10940 2000-08-07 Gerd Moellmann <gerd@gnu.org>
10941
10942 * xdisp.c (start_display): When starting display on a continuation
10943 line, clear ascent and descent members of the iterator structure;
10944 the height of the continued line does not affect the height of the
10945 continuation line.
10946 (make_cursor_line_fully_visible): Do nothing if cursor is on a
10947 line taller than the window.
10948 (redisplay_window) <forced window start>: Handle case that the
10949 middle of the window is not found in any row.
10950 (dump_glyph_row): Show more information.
10951 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
10952 first text line in a glyph matrix.
10953
10954 * xterm.c (x_draw_image_foreground): Avoid drawing outside
10955 of the clip area when image doesn't have a mask.
10956
10957 * fns.c (sweep_weak_table): Fix survival conditions for
10958 key-or-value and key-and-value weakness.
10959
10960 * .gdbinit (xhashtable): New command.
10961
10962 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
10963 tables out of the list of all weak hash tables.
10964
10965 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
10966 a new buffer is created, make sure echo_area_buffer[] references
10967 the new buffer.
10968
10969 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
10970
10971 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
10972 the doc string.
10973
10974 2000-08-07 Kenichi Handa <handa@etl.go.jp>
10975
10976 * syntax.c (skip_chars): Fix previous change. Make the handling
10977 of unibyte string consistent with that of regex search.
10978
10979 2000-08-05 Gerd Moellmann <gerd@gnu.org>
10980
10981 * xmenu.c (popup_get_selection): Use xfree instead of free.
10982
10983 * fileio.c (Finsert_file_contents): Use xfree instead of free.
10984
10985 * editfns.c (Ftranspose_regions): Use xfree instead of free.
10986
10987 * callproc.c (child_setup): Use xfree instead of free.
10988
10989 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
10990 instead of malloc.
10991 (run_mac_command, closedir): Use `xfree' instead of `free'.
10992
10993 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
10994
10995 * eval.c (error): Use xfree instead of free.
10996
10997 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
10998
10999 * fns.c: Replace `illegal' with `invalid'.
11000 (Fmake_hash_table, make_hash_table): Allow table size of 0.
11001
11002 2000-08-05 Kenichi Handa <handa@etl.go.jp>
11003
11004 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
11005 conversion.
11006
11007 2000-08-04 Noah Friedman <friedman@splode.com>
11008
11009 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
11010 docstring.
11011
11012 2000-08-04 Gerd Moellmann <gerd@gnu.org>
11013
11014 * syntax.c (skip_chars): Fix typo in error message.
11015
11016 2000-08-04 Andreas Schwab <schwab@suse.de>
11017
11018 * m/ia64.h: Moved from s/ia64.h.
11019
11020 2000-08-04 Kenichi Handa <handa@etl.go.jp>
11021
11022 * process.c (read_process_output): Big simplification. Handle
11023 composition and post-read-conversion of coding system correctly.
11024 (send_process): Handle composition correctly.
11025
11026 * callproc.c (Fcall_process): Handle post-read-conversion of
11027 coding system if any.
11028
11029 * coding.c (decode_coding_iso2022): More strict check for handling
11030 single shifting.
11031 (coding_restore_composition): Pay attention to the case that
11032 cmp_data is not set properly (because of invalid code in the
11033 source text).
11034 (run_pre_post_conversion_on_str): Include text properties in the
11035 resulting string.
11036 (decode_coding_string): Set members of coding correctly.
11037
11038 2000-08-03 Gerd Moellmann <gerd@gnu.org>
11039
11040 * s/ia64.h: New file.
11041
11042 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
11043 Use NULL instead of 0 at the end of variable argument list of
11044 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
11045 sizeof (int) < sizeof (void *).
11046
11047 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
11048 of variable argument lists of XtVaGetValues and XtVaSetValues.
11049
11050 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
11051 variable argument lists of XtVaGetValues and XtVaSetValues.
11052
11053 2000-08-02 Gerd Moellmann <gerd@gnu.org>
11054
11055 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
11056 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
11057
11058 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
11059 prototype.
11060
11061 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
11062 in call to Fsingle_key_description.
11063
11064 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
11065 Callers changed.
11066
11067 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
11068
11069 * window.c (display_buffer_reuse_frames): New variable.
11070 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
11071 frames displaying BUFFER.
11072 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
11073
11074 2000-08-01 Miles Bader <miles@gnu.org>
11075
11076 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
11077 when to constrain NEW_POS (they were pretty screwed up before).
11078
11079 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
11080
11081 * msdos.c (run_msdos_command): Save and restore the master
11082 environment, for the case that child_setup signals an error.
11083 When mirroring slashes in DOS shell commands, don't fail when
11084 argv[2] has embedded blanks.
11085 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
11086 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
11087 (dos_ttraw): Call mouse_setup_buttons.
11088
11089 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
11090 using alloca; free it after run_msdos_command returns.
11091
11092 2000-07-27 Dave Love <fx@gnu.org>
11093
11094 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
11095 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
11096
11097 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
11098
11099 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
11100
11101 * editfns.c (lisp_time_argument): Fix last change.
11102
11103 2000-07-27 Gerd Moellmann <gerd@gnu.org>
11104
11105 * fns.c (Fdelete): Make it work on vectors and strings in addition
11106 to lists.
11107
11108 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
11109 (syms_of_fns): Initialize new variables.
11110 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
11111 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
11112 weakness, with t meaning the same as `key-and-value'.
11113
11114 2000-07-27 Kenichi Handa <handa@etl.go.jp>
11115
11116 * coding.h (struct coding_system): Member safe_charset deleted.
11117
11118 * coding.c (Qsafe_charsets): This variable deleted.
11119 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
11120 New variables.
11121 (coding_safe_chars): New function.
11122 (CODING_SAFE_CHAR_P): New macro.
11123 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
11124 checking safe_charsets member of the coding system. Caller changed.
11125 (detect_coding_iso2022): New local variable safe_chars.
11126 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
11127 safe_charsets member of the coding system.
11128 (decode_coding_iso2022): New local variable safe_chars.
11129 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
11130 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
11131 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
11132 (ENCODE_UNSAFE_CHARACTER): New macro.
11133 (encode_coding_iso2022): New local variable safe_chars. Check
11134 unsafe chars.
11135 (setup_coding_system): Delete the code to initialize
11136 coding->safe_charses
11137 (intersection, find_safe_codings): New functions.
11138 (Ffind_coding_systems_region_internal): New function.
11139 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
11140 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
11141 variable and initialize it.
11142
11143 * fns.c (char_table_ref_and_index): New function.
11144
11145 * lisp.h (char_table_ref_and_index): Add prototype.
11146
11147 2000-07-26 Sam Steingold <sds@gnu.org>
11148
11149 * editfns.c (lisp_time_argument): Added third argument `usec'.
11150 (Ffloat_time): New built-in Lisp function.
11151
11152 2000-07-26 Gerd Moellmann <gerd@gnu.org>
11153
11154 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
11155 for the character code.
11156
11157 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
11158 GNU/Linux.
11159
11160 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
11161 if called for a popup menu.
11162 (xmenu_show): Store help string in widget values.
11163
11164 2000-07-26 Dave Love <fx@gnu.org>
11165
11166 * syswait.h: Move some definitions.
11167 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
11168 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
11169 perspicuous definitions.
11170 (WTERMSIG): Fix bit pattern used.
11171
11172 2000-07-26 Kenichi Handa <handa@etl.go.jp>
11173
11174 * print.c (print_object): If vector printing is truncated, print
11175 "..." to indicate it as well as the case of list printing.
11176
11177 2000-07-25 Gerd Moellmann <gerd@gnu.org>
11178
11179 * xdisp.c (next_element_from_display_vector): Improve comments.
11180
11181 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
11182 for the character code, and the rest for the face id as in 20.x.
11183 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
11184
11185 * window.c (window_display_table): Cleaned up.
11186
11187 * syntax.c (Fforward_word): Add last arg nil in call of
11188 Fconstrain_to_field.
11189
11190 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
11191
11192 * fileio.c (Frename_file) [DOS_NT]: If the file names are
11193 identical but for the letter-case, don't call
11194 barf_or_query_if_file_exists.
11195
11196 2000-07-25 Miles Bader <miles@gnu.org>
11197
11198 * editfns.c (find_field): Honor special `boundary' fields.
11199 (Qboundary): New variables.
11200 (syms_of_editfns): Initialize Qboundary.
11201 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
11202 Use scan_buffer instead of find_before_next_newline, because it
11203 allows us to detect the boundary case where there's a newline at
11204 the search limit.
11205 * lisp.h (Fconstrain_to_field): Update external declaration.
11206
11207 2000-07-24 Gerd Moellmann <gerd@gnu.org>
11208
11209 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
11210 if that is nil.
11211
11212 2000-07-24 Dave Love <fx@gnu.org>
11213
11214 * s/sunos4-0.h, s/sol2.h:
11215 (LIBS_TERMCAP): Move from m/sparc.h.
11216
11217 * m/sparc.h (TERMINFO): Moved to system files (probably only
11218 relevant for sunos4 judging by its vintage).
11219 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
11220 __arch64__.
11221
11222 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
11223
11224 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
11225 name to single_keymap_panes.
11226
11227 2000-07-24 Andreas Schwab <schwab@suse.de>
11228
11229 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
11230
11231 2000-07-24 Gerd Moellmann <gerd@gnu.org>
11232
11233 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
11234 parameters instead of using int parameters. Expect FN to accept
11235 EMACS_INT parameters.
11236 (display_echo_area, resize_echo_area_axactly, current_message)
11237 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
11238 with new argument list.
11239 (resize_mini_window_1): New callback function.
11240 (current_message_1, truncate_message_1, set_message_1): Change
11241 parameter lists to the new format expected by with_echo_area_buffer.
11242
11243 2000-07-24 Kenichi Handa <handa@etl.go.jp>
11244
11245 * fontset.c (fontset_ref): Remove INLINE declaration.
11246 (fontset_ref_via_base): Likewise.
11247 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
11248 to downcase.
11249
11250 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
11251
11252 * msdos.c (IT_note_mouse_highlight): Process overlays in the
11253 correct order of priority. If help echo was found in an overlay,
11254 use that overlay as the object in which the help echo was found.
11255
11256 2000-07-22 Miles Bader <miles@gnu.org>
11257
11258 * textprop.c (Fprevious_single_char_property_change): The initial
11259 property value should be from the position preceding POSITION, not
11260 following it.
11261
11262 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
11263
11264 * coding.c (syms_of_coding): Doc fix for
11265 inhibit-iso-escape-detection.
11266
11267 2000-07-21 Gerd Moellmann <gerd@gnu.org>
11268
11269 * xterm.c (note_mouse_highlight): Process overlays in the right
11270 order of priority.
11271
11272 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
11273
11274 * xterm.c (note_mouse_highlight): If help-echo was found in an
11275 overlay, use that overlay as the object in which the help was found.
11276
11277 * window.c (foreach_window_1): Fix typo reversing an if-condition.
11278
11279 * window.c (foreach_window): Instead of a fake variable argument
11280 list, take one USER_DATA argument.
11281 (foreach_window_1): Likewise, and call callback functions with two
11282 args, the window and USER_DATA.
11283 (struct check_window_data): New struct.
11284 (check_window_containing): Use it.
11285 (window_from_coordinates): Set up a struct check_window_data for
11286 foreach_window.
11287 (add_window_to_list, freeze_window_start): Change parameters
11288 according to new calling convention.
11289
11290 * window.h (foreach_window): Change prototype.
11291
11292 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
11293
11294 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
11295
11296 * xmenu.c (menu_help_callback): Call show_help_echo with
11297 additional arguments OBJECT and POS.
11298
11299 2000-07-21 Kenichi Handa <handa@etl.go.jp>
11300
11301 * data.c (Faset): Allow storing any multibyte character in a
11302 string. Convert unibyte string to multibyte if necessary.
11303
11304 * xfns.c (x_encode_text): New function.
11305 (x_set_name): Use x_encode_text.
11306 (x_set_title): Likewise.
11307
11308 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
11309
11310 * xterm.h (x_encode_text): Add prototype.
11311
11312 2000-07-20 Dave Love <fx@gnu.org>
11313
11314 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
11315 xfree, not free.
11316
11317 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
11318
11319 * msdos.c (help_echo_window): New variable.
11320 (syms_of_msdos): Initialize and staticpro it.
11321 (IT_note_mode_line_highlight): Set help_echo_window.
11322 (IT_note_mouse_highlight): Ditto.
11323 (dos_rawgetc): Store help_echo_window in the second event produced
11324 for HELP_EVENTs.
11325
11326 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
11327 Record the object that generated the help echo and the position of
11328 that object in help_echo_object and help_echo_pos. Record that
11329 some glyphs in a row are displayed in mouse-face.
11330 (IT_update_begin): Don't clear mouse highlight unless one of the
11331 enabled glyph rows is marked as being displayed in mouse-face.
11332 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
11333 and position recorded in help_echo_object and help_echo_pos to the
11334 event queue.
11335 (IT_menu_display): Accept a new argument PN: the pane number of
11336 the current menu pane. Record the pane number and the item
11337 number of the item which has associated help string.
11338 (XMenuActivate): Update the prototype for help_callback in
11339 function declaration. Call IT_menu_display with the current menu
11340 pane number as an additional argument. Call help_callback with
11341 two additional arguments: the pane number and the item number of
11342 the menu item associated with the help text.
11343 (help_echo_object, help_echo_pos): New variables.
11344 (syms_of_msdos): Initialize them and staticpro help_echo_object.
11345
11346 * msdos.h (XMenuActivate): Update prototype.
11347
11348 2000-07-19 Gerd Moellmann <gerd@gnu.org>
11349
11350 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
11351 Add some more prototypes.
11352
11353 * xterm.c, xterm.h: Add some more prototypes.
11354
11355 * lisp.h (Fnext_single_char_property_change): Add prototype.
11356
11357 * dispnew.c (direct_output_for_insert): Remove confusing
11358 outer local variable mouse_face_overwritten_p.
11359 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
11360
11361 * alloc.c (allocate_string_data): Don't copy old string contents.
11362
11363 2000-07-19 Kenichi Handa <handa@etl.go.jp>
11364
11365 * coding.c (code_convert_region): Delete text properties before
11366 shrinking the conversion region.
11367
11368 2000-07-18 Gerd Moellmann <gerd@gnu.org>
11369
11370 * dispnew.c (update_text_area): Write the whole row if it
11371 has mouse-face in it.
11372
11373 * xfaces.c (face-alternative-font-family-alist): Remove
11374 DEFVAR_LISP; staticpro instead.
11375
11376 * xmenu.c (menu_help_callback): Call show_help_echo with
11377 new arguments.
11378
11379 * keyboard.c (show_help_echo): Add parameter WINDOW.
11380 (read_char): Call show_help_echo with window extracted from Lisp
11381 help event.
11382 (gen_help_event): Add parameter WINDOW.
11383
11384 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
11385
11386 * xterm.c (help_echo_window): New variable.
11387 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
11388 (XTread_socket): Pass help_echo_window to gen_help_event.
11389 (syms_of_xterm): Initialize and staticpro help_echo_window.
11390
11391 2000-07-18 Dave Love <fx@gnu.org>
11392
11393 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
11394
11395 2000-07-18 Gerd Moellmann <gerd@gnu.org>
11396
11397 * alloc.c (allocate_string_data): If string had already data
11398 assigned, copy old contents to new string data.
11399
11400 * coding.c (syms_of_coding): Fix typo in spelling of variable
11401 `inhibit-iso-escape-detection'.
11402
11403 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
11404
11405 * Makefile.in: Add dependencies on dispextern.h.
11406 (alloca.o): Don't define malloc and define EMACS_FREE instead of
11407 `free'; both can conflict with system header files.
11408
11409 2000-07-18 Kenichi Handa <handa@etl.go.jp>
11410
11411 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
11412 undefined.
11413
11414 2000-07-18 Dave Love <fx@gnu.org>
11415
11416 * window.c (Fwindow_list): Declare arg `window'.
11417
11418 2000-07-18 Kenichi Handa <handa@etl.go.jp>
11419
11420 * coding.c (setup_coding_system): Don't override the explicitly
11421 specified designations.
11422
11423 2000-07-15 Miles Bader <miles@gnu.org>
11424
11425 * editfns.c (char_property_eq, char_property_stickiness): Renamed
11426 from `text_property_eq' and `text_property_stickiness', respectively.
11427 (find_field, Fconstrain_to_field, char_property_eq)
11428 (char_property_stickiness): Changed to call char-property functions
11429 instead of text-property-only ones.
11430
11431 * textprop.c (Fnext_single_char_property_change): Made a subr (was
11432 `next_single_char_property_change'). Do more error checking, and
11433 cleanup limit behavior.
11434 (Fprevious_single_char_property_change): New function.
11435 (syms_of_textprop): Initialize new subrs.
11436
11437 * xdisp.c (display_prop_end, invisible_text_between_p):
11438 Call Fnext_single_char_property_change instead of
11439 next_single_char_property_change.
11440
11441 2000-07-15 Jason Rumney <jasonr@gnu.org>
11442
11443 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
11444 after menu is finished with.
11445 (add_menu_item): Only consider wv->title as a menu title.
11446 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
11447
11448 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
11449 null title.
11450 (FONT_REGEXP): Remove unused macro, and its sub-components.
11451 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
11452
11453 * w32term.c (help_echo_object, help_echo_pos): New variables.
11454 (note_mode_line_highlight): Store additional information about the
11455 help-echo in help_echo_object and help_echo_pos. Check both
11456 `local-map' and `keymap' properties for changing the cursor
11457 (note_mouse_highlight): Store additional information about the
11458 help-echo in help_echo_object and help_echo_pos.
11459 (note_tool_bar_highlight): Set help_echo_object to nil and
11460 help_echo_pos to -1.
11461 (w32_read_socket): Use gen_help_event instead of filling
11462 input_events manually.
11463 (syms_of_w32term): Staticpro help_echo_object.
11464 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
11465 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
11466 (x_clear_mouse_face): New function.
11467 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
11468 (x_update_window_begin): No need to turn off the mouse
11469 highlight here.
11470 (show_mouse_face): Set the mouse_face_p flag of glyph rows
11471 depending on whether they contain glyphs highlighted in mouse-face.
11472 (x_fill_stretch_glyph_string): Consume runs of stretch
11473 glyphs instead of a single one.
11474 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
11475 with new argument list.
11476 (x_set_glyph_string_gc): Make sure the face's GC is valid.
11477 (x_append_glyph, x_append_composite_glyph)
11478 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
11479 changes in struct glyph starting 1999-12-27. See comments for
11480 xterm.c on 2000-07-05.
11481
11482 2000-07-14 Sam Steingold <sds@gnu.org>
11483
11484 * xfaces.c (realize_x_face): Fix the last patch:
11485 check `default_face' before dereferencing.
11486
11487 2000-07-14 Dave Love <fx@gnu.org>
11488
11489 * syntax.c (back_comment): Add null default in switch (for pcc).
11490
11491 2000-07-14 Kenichi Handa <handa@etl.go.jp>
11492
11493 * xfaces.c (realize_x_face): Make fontset using the base of the
11494 default_face's fontset, not using the default fontset.
11495
11496 * coding.c (inhibit_iso_escape_detection): New variable.
11497 (syms_of_coding): Make it a Lisp variable.
11498 (detect_coding_iso2022): If inhibit_iso_escape_detection is
11499 nonzero, ignore ISO2022's escape sequence.
11500
11501 2000-07-14 Gerd Moellmann <gerd@gnu.org>
11502
11503 * alloca.c (malloc) [emacs]: Define as xmalloc.
11504
11505 * xfns.c (Fx_show_tip): If frame parameters contain a position,
11506 use that instead of the mouse position. Add parameters DX and DY.
11507
11508 * dispextern.h (Fx_show_tip): Adjust number of parameters
11509 in prototype.
11510
11511 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
11512 if HELP is a function, call it with OBJECT and POS as parameters
11513 to get the help to display.
11514 (gen_help_event, kbd_buffer_store_help_event): New functions.
11515 (kbd_buffer_get_event): Construct the Lisp help-event differently.
11516 (read_char): Call show_help_echo with new parameters.
11517
11518 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
11519 Add prototypes.
11520
11521 * xterm.c (help_echo_object, help_echo_pos): New variables.
11522 (note_mode_line_highlight): Store additional information about the
11523 help-echo in help_echo_object and help_echo_pos. Check both
11524 `local-map' and `keymap' properties for changing the cursor
11525 (note_mouse_highlight): Store additional information about the
11526 help-echo in help_echo_object and help_echo_pos.
11527 (note_tool_bar_highlight): Set help_echo_object to nil and
11528 help_echo_pos to -1.
11529 (XTread_socket): Use gen_help_event instead of filling
11530 input_events manually.
11531 (syms_of_xterm): Staticpro help_echo_object.
11532
11533 * xmenu.c (menu_highlight_callback): Use
11534 kbd_buffer_store_help_event instead of setting up and input_event
11535 structure manually.
11536
11537 * xdisp.c (eval_form): GCPRO argument sexpr.
11538 (call_function): New function.
11539 (handle_single_display_prop): Use call_function and FUNCTIONP
11540 instead of checking whether if font_height is a symbol and
11541 using eval_form.
11542
11543 * eval.c (internal_condition_case_2): New function.
11544
11545 * lisp.h (FUNCTIONP): New macro.
11546 (internal_condition_case_2, call_function): Add prototypes.
11547
11548 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
11549 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
11550 Always set `arg' member of input_events.
11551 (construct_menu_click): Unused function removed.
11552
11553 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
11554
11555 * w32term.c (construct_mouse_click, construct_mouse_wheel)
11556 (construct_drag_n_drop, x_scroll_bar_handle_click)
11557 (w32_read_socket): Always set `arg' member of input_events.
11558
11559 * keyboard.c (show_help_echo): Use eval_form. Add comment.
11560
11561 * lisp.h (eval_form): Add prototype.
11562
11563 * xdisp.c (eval_form): Make it externally visible.
11564
11565 2000-07-13 Gerd Moellmann <gerd@gnu.org>
11566
11567 * xterm.c (x_handle_tool_bar_click): Store the frame in the
11568 frame_or_window slot of TOOL_BAR_EVENT input events instead of
11569 consing. For prefix events, store the frame in the `arg' slot of
11570 the event, otherwise store the key there.
11571 (XTread_socket): Instead of consing, use the frame_or_window slot
11572 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
11573
11574 * xmenu.c (menu_highlight_callback): Store help string in the
11575 `arg' member of the input event; don't cons.
11576 (menubar_selection_callback): Use the `arg' slot of input events
11577 to queue additional information, instead of consing.
11578
11579 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
11580
11581 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
11582 TOOL_BAR_EVENTs.
11583 (w32_read_socket): Adapt to changes in HELP_EVENTs.
11584
11585 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
11586 input events to queue additional information, instead of consing.
11587
11588 * keyboard.c (kbd_buffer_gcpro): Renamed from
11589 kbd_buffer_frame_or_window. Now used for all Lisp objects
11590 referenced from the input queue.
11591 (kbd_buffer_store_event): Always use structure assignment for
11592 copying input events. Record all Lisp objects referenced from
11593 events in kbd_buffer_gcpro.
11594 (kbd_buffer_get_event): Construct Lisp `help-echo' events
11595 differently from input events. Test for prefix menu_bar_events
11596 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
11597 event in kbd_buffer_gcpro to nil.
11598 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
11599 frame_or_window is equal to its arg member as prefix events.
11600 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
11601 used by an input event to nil.
11602 (init_keyboard): Use two times the size of the input queue
11603 for kbd_buffer_gcpro.
11604 (syms_of_keyboard): Likewise.
11605
11606 * emacs.c (handle_USR2_signal, handle_USR1_signal):
11607 Use USER_SIGNAL_EVENT.
11608
11609 * termhooks.h (struct input_event): Add member `arg'.
11610 (MENU_BAR_EVENT): Renamed from menu_bar_event.
11611 (USER_SIGNAL_EVENT): Renamed from user_signal.
11612
11613 * xfaces.c (ASET): Remove definition.
11614
11615 * lisp.h (AREF, ASET, ASIZE): New macros.
11616
11617 * fontset.c (AREF, ASIZE): Remove definitions.
11618
11619 * fns.c (AREF): Remove definition.
11620
11621 * composite.c (AREF): Remove definition.
11622
11623 2000-07-12 Gerd Moellmann <gerd@gnu.org>
11624
11625 * dispnew.c (redraw_overlapped_rows): Add missing local.
11626 (scrolling_window): Remove debug code.
11627
11628 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
11629 Before scrolling, turn off a mouse-highlight in the window
11630 being scrolled.
11631
11632 * xterm.c (x_update_window_end): Add parameter
11633 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
11634 redisplay in XTframe_up_to_date.
11635 (x_clear_mouse_face): New function.
11636 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
11637
11638 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
11639 current glyph row.
11640 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
11641 it when any row is written to that contains glyphs highlighted in
11642 mouse-face.
11643 (update_window): Call the window update end hook with new
11644 parameter MOUSE_FACE_OVERWRITTEN_P.
11645 (direct_output_for_insert): Give up if row contains mouse-face.
11646
11647 * dispextern.h (struct redisplay_interface): Add parameter
11648 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
11649 (clear_mouse_face): New function pointer member.
11650
11651 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
11652
11653 * syntax.c (back_comment): Use one switch rather than a few `if's.
11654 Obey open_paren_in_column_0_is_defun_start.
11655 When reverting to the `slow' method, try to nicely handle the case
11656 of nested comments by checking that the comment-starter we found
11657 does indeed match the comment-ender.
11658 (scan_sexps_forward, scan_sexps_forward):
11659 Ignore excessive opening parenthesis rather than throwing an error.
11660
11661 2000-07-11 Gerd Moellmann <gerd@gnu.org>
11662
11663 * doc.c (Fsubstitute_command_keys): Handle case that a GC
11664 in Fwhere_is_internal or get_keymap_1 relocates string contents.
11665
11666 * dispnew.c (direct_output_forward_char): Give up if currently
11667 displaying a message instead of the minibuffer contents.
11668
11669 * xterm.c (x_update_window_begin): No need to turn off the mouse
11670 highlight here.
11671 (show_mouse_face): Set the mouse_face_p flag of glyph rows
11672 depending on whether they contain glyphs highlighted in mouse-face.
11673
11674 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
11675 compare the mouse_face_p flags of both rows.
11676
11677 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
11678
11679 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
11680
11681 * keyboard.c (show_help_echo): Accept additional parameter
11682 ok_to_overwrite_keystroke_echo.
11683 (read_char): Call show_help_echo with a zero
11684 ok_to_overwrite_keystroke_echo argument.
11685 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
11686 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
11687 ok_to_overwrite_keystroke_echo argument.
11688 * w32menu.c (w32_menu_display_help): Call show_help_echo with
11689 non-zero ok_to_overwrite_keystroke_echo argument.
11690
11691 2000-07-10 Gerd Moellmann <gerd@gnu.org>
11692
11693 * xdisp.c (try_window_id): If changes are all below what is
11694 displayed in the window, and point is in the window, we still
11695 might have to find point on the display.
11696
11697 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
11698 glyphs instead of a single one.
11699 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
11700 with new argument list.
11701 (x_set_glyph_string_gc): Make sure the face's GC is valid.
11702
11703 * keymap.c (get_keymap_1): Add comment that this function can GC.
11704 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
11705 comment that functions can GC.
11706 (Fset_keymap_parent): GCPRO arg KEYMAP.
11707
11708 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
11709
11710 * msdos.c (XMenuActivate): After exiting the menu, restore the
11711 echo area message and erase it.
11712
11713 2000-07-10 Kenichi Handa <handa@etl.go.jp>
11714
11715 * fontset.c (Ffontset_info): Make the return value more compatible
11716 with that of Emacs 20.
11717
11718 2000-07-07 Gerd Moellmann <gerd@gnu.org>
11719
11720 * eval.c (Fsignal): Handle case that backtrace_list is null.
11721
11722 2000-07-07 Kenichi Handa <handa@etl.go.jp>
11723
11724 * ccl.c (Fccl_execute): Typo fixed.
11725
11726 2000-07-06 Gerd Moellmann <gerd@gnu.org>
11727
11728 * window.c (window_loop): Add missing gcpro1 local variable.
11729
11730 * window.c (Fwindow_list): Reverse list at the end.
11731 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
11732 means allow windows on OWINDOW's frame, only.
11733 (window_loop): Simplified; use Fwindow_list.
11734
11735 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
11736
11737 2000-07-05 Gerd Moellmann <gerd@gnu.org>
11738
11739 * xterm.c (XTread_socket): Increment handling_signal at the start,
11740 decrement it at the end.
11741
11742 * eval.c (handling_signal): New variable.
11743 (Fsignal): Abort if handling_signal is non-zero.
11744
11745 * lisp.h (handling_signal): External declaration.
11746
11747 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
11748
11749 2000-07-05 Ken Raeburn <raeburn@gnu.org>
11750
11751 Sound support for NetBSD through "Linux emulation" support:
11752 * config.in (HAVE_SOUNDCARD_H): Undef.
11753 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
11754 * Makefile.in (LIBSOUND): New variable.
11755 (LIBES): Include it.
11756 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
11757 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
11758 (vox_open): Use DEFAULT_SOUND_DEVICE.
11759 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
11760
11761 2000-07-05 Gerd Moellmann <gerd@gnu.org>
11762
11763 * print.c (print_error_message): If Vsignaling_function is set,
11764 show it in *Messages*.
11765
11766 * lisp.h (Vsignaling_function): External declaration.
11767
11768 * eval.c (Vsignaling_function): New variable.
11769 (Fsignal): Compute it.
11770 (syms_of_eval): Staticpro it.
11771
11772 2000-07-05 Dave Love <fx@gnu.org>
11773
11774 * syswait.h: Use the autoconf recommended approach. Old code
11775 #if'd out in case we need to revert.
11776
11777 * config.in (HAVE_SYS_WAIT_H): Added.
11778
11779 2000-07-05 Andrew Innes <andrewi@gnu.org>
11780
11781 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
11782 when non-NULL instead of __morecore, to take account of buffer
11783 memory. This also solves a problem with spurious memory warnings
11784 on Windows.
11785
11786 * ralloc.c: Make real_morecore non-static.
11787
11788 * eval.c (internal_condition_case): Comment out abort if
11789 interrupt_input_blocked is not zero.
11790
11791 * makefile.nt: Add support for `bootstrap' and related targets.
11792 Include minimal debug info in emacs.exe in release build.
11793 Remove all dependencies on lisp.h, and fixup some others.
11794
11795 * w32.c (init_environment): Install code from 20.7 for providing
11796 default values for environment variables, based on the
11797 executable's own location.
11798 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
11799 (sys_socket): Install socket inheritance bug fix from 20.7.
11800
11801 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
11802 here via blockinput.h).
11803
11804 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
11805
11806 * w32menu.c (w32_menu_display_help):
11807 * xmenu.c (menu_help_callback): Use show_help_echo.
11808
11809 * keyboard.h (show_help_echo): Declare.
11810
11811 * keyboard.c (show_help_echo): New function, extracted from read_char.
11812 Feval its `msg' argument if it's a cons cell.
11813 (read_char): Use it.
11814 (follow_key): Pass `autoload' to get_keyelt.
11815
11816 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
11817 (note_tool_bar_highlight, XTread_socket):
11818 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
11819 (dos_rawgetc):
11820 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
11821 (note_tool_bar_highlight, w32_read_socket):
11822 Do not gratuitously ignore non-string `help-echo' properties.
11823
11824 2000-07-05 Gerd Moellmann <gerd@gnu.org>
11825
11826 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
11827
11828 * window.c (delete_all_subwindows): Reset Vwindow_list.
11829
11830 * xterm.c (x_append_glyph, x_append_composite_glyph)
11831 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
11832 changes in struct glyph starting 1999-12-27. Some bit-fields of
11833 struct glyph were not set, which made glyphs unequal when compared
11834 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
11835 effects were the result. This also depended on the contents of
11836 memory returned by xmalloc. If flickering happens again, activate
11837 the code in clear_glyph_row that's in #if 0. If the flickering is
11838 gone with that, chances are that it is caused by something similar.
11839
11840 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
11841
11842 * dispextern.h: Add some comments.
11843
11844 * window.c (add_window_to_list): Add parameter LIST.
11845 (window_list): Order list so that, for each frame, windows are
11846 in canonical order, and so that frames appear in the list in
11847 the order given by Vframe_list.
11848 (next_window): Reverse the handling of NEXT_P.
11849
11850 2000-07-04 Gerd Moellmann <gerd@gnu.org>
11851
11852 * window.c (Vwindow_list): New variable.
11853 (make_window, delete_window): Set Vwindow_list to nil.
11854 (check_window_containing): New function.
11855 (window_from_coordinates): Rewritten.
11856 (add_window_to_list, window_list, candidate_window_p)
11857 (decode_next_window_args, next_window): New functions.
11858 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
11859 (Fwindow_list): New function.
11860 (Fother_window): Cleaned up.
11861 (foreach_window): Add a longer "variable argument list". Let
11862 callback function return 0 to indicate that cycling over windows
11863 should stop.
11864 (foreach_window_1): Likewise.
11865 (freeze_window_start): Return int.
11866 (init_window): New function.
11867 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
11868
11869 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
11870 input_event with bzero.
11871 (main): Call init_window.
11872
11873 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
11874 a menu filter.
11875
11876 2000-07-04 Kenichi Handa <handa@etl.go.jp>
11877
11878 * composite.h (make_composition_value_copy): Extern it.
11879
11880 * composite.c (make_composition_value_copy): New function.
11881
11882 * editfns.c (Fformat): While copying text properties, make each
11883 composition property value a copy.
11884
11885 * fns.c (concat): While copying text properties, make each
11886 composition property value a copy.
11887
11888 2000-07-03 Gerd Moellmann <gerd@gnu.org>
11889
11890 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
11891
11892 * fns.c (sweep_weak_table): Mark only objects that are not
11893 marked already.
11894
11895 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
11896 include those frames as candidates which have their focus
11897 redirected to the minibuffer frame.
11898
11899 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
11900
11901 * fns.c (Fputhash): Return `value' rather than nil.
11902
11903 2000-06-30 Gerd Moellmann <gerd@gnu.org>
11904
11905 * frame.c (next_frame): Don't check focus redirection in case
11906 MINIBUF is a window. Doing so excludes frames using MINIBUF
11907 unless their focus is redirected, which contradicts the
11908 specification of next-frame, and leads to infinite loops in
11909 certain situations when cycling through windows with next-window.
11910
11911 2000-06-30 Kenichi Handa <handa@etl.go.jp>
11912
11913 * coding.c (code_convert_region): Even if the length of text is
11914 zero, try to convert it if coding->type is coding_type_ccl.
11915 (decode_coding_string, encode_coding_string): Likewise.
11916
11917 2000-06-28 Gerd Moellmann <gerd@gnu.org>
11918
11919 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
11920 the display if windows_or_buffers_changed.
11921
11922 * dispnew.c (struct row_entry): New structure.
11923 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
11924 (row_table_size, old_lines, new_lines, old_lines_size)
11925 (new_lines_size, run_pool, runs_size, runs): New variables.
11926 (add_row_entry): New function.
11927 (scrolling_window): Use data structures allocated with xmalloc and
11928 held in global variables, instead of allocating them with alloca and
11929 holding them in local variables. Use a larger hash table whose
11930 size depends on glyph matrix sizes. Don't use bzero to clear the
11931 hash table; instead, clear used slots only.
11932
11933 * fns.c (next_almost_prime): Make it externally visible.
11934
11935 * lisp.h (next_almost_prime): Add prototype.
11936
11937 * s/isc4-0.h (sigunblock): Define.
11938
11939 * s/sco5.h (sigunblock): Define.
11940
11941 2000-06-27 Dave Love <fx@gnu.org>
11942
11943 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
11944 (moved to osf5-0.h).
11945 [!NOT_C_CODE]: Protect string.h stuff.
11946
11947 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
11948 (sys_siglist, NSIG): Definitions moved here from osf1.h.
11949
11950 2000-06-27 Gerd Moellmann <gerd@gnu.org>
11951
11952 * xdisp.c (resize_mini_window): Subtract the extra line spacing
11953 below the last line from the needed window height.
11954
11955 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
11956
11957 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
11958 (Fwidget_get): Use it.
11959 (syms_of_fns): Defsubr it.
11960
11961 2000-06-26 Gerd Moellmann <gerd@gnu.org>
11962
11963 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
11964 display info for XIM.
11965 (xim_open_dpy): Likewise.
11966 (xim_close_dpy): Don't free the display info's XIM.
11967
11968 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
11969
11970 * config.in (USE_XIM): New define.
11971
11972 * keymap.c (get_keyelt): For menu-items containing a `:filter
11973 FILTER', apply FILTER to the menu-item's definition to get the
11974 real definition to use.
11975
11976 * lisp.h (QCfilter): External declaration.
11977
11978 * xfns.c (Fimage_size): New function.
11979 (syms_of_xfns): Defsubr it.
11980
11981 2000-06-26 Andreas Schwab <schwab@suse.de>
11982
11983 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
11984 Fstring_as_unibyte.
11985
11986 2000-06-25 Dave Love <fx@gnu.org>
11987
11988 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
11989
11990 * Makefile.in (blockinput.h): Depend on atimer.h.
11991 (atimer.h): Depend on systime.h.
11992
11993 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
11994
11995 * atimer.h: Protect against multiple inclusion. Include systime.h.
11996
11997 * lisp.h (swap_in_global_binding): Declare.
11998
11999 2000-06-24 Ken Raeburn <raeburn@gnu.org>
12000
12001 * process.c (Fopen_network_stream): Turn off atimers for duration
12002 of call to connect. (Patch from Gerd.)
12003
12004 2000-06-23 Dave Love <fx@gnu.org>
12005
12006 * ralloc.c: Maybe include unistd.h
12007
12008 * emacs.c (setgrp): Undefine before defining.
12009 (malloc_warning, set_time_zone_rule, index): Prototype.
12010
12011 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
12012 HAVE_STRUCT_TIMEZONE.
12013
12014 * s/osf1.h: Move string.h hack here from alpha.h and make it
12015 conditional.
12016 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
12017 _XOPEN_SOURCE.
12018 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
12019 (SOCKLEN_TYPE): Don't define.
12020
12021 * m/alpha.h: Remove string.h hack.
12022
12023 * s/osf5-0.h: New file.
12024
12025 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
12026 include time.h, done by systime.h.
12027 [__FreeBSD__]: Remove redundant includes.
12028
12029 * callproc.c (setpgrp): Undefine before defining.
12030 (delete_temp_file): Return Qnil to avoid warning.
12031
12032 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
12033
12034 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
12035 HAVE_X_WINDOWS.
12036
12037 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
12038
12039 * composite.h (compose_text): Declare.
12040
12041 * xterm.c: Don't include sys/types.h unconditionally. Don't
12042 protect its inclusion with !USG (following xmenu.c).
12043
12044 2000-06-23 Gerd Moellmann <gerd@gnu.org>
12045
12046 * xfns.c (x_create_tip_frame): Initialize frame's colors like
12047 in x_create_frame.
12048
12049 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
12050
12051 * coding.c (decode_eol_post_ccl): Special handling for undecided
12052 and inconsistent EOL types.
12053
12054 2000-06-22 Gerd Moellmann <gerd@gnu.org>
12055
12056 * xrdb.c (x_load_resources): Add default resource for scroll bar's
12057 trough color and main window's background color.
12058
12059 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
12060
12061 * xterm.h (Xt_app_con): External declaration.
12062
12063 * widget.c (EmacsFrameRealize): Fix typo.
12064
12065 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
12066
12067 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
12068 (handle_invisible_prop): Record the start of invisible text in
12069 it->add_overlay_start.
12070 (struct overlay_entry): Add member `overlay'.
12071 (handle_overlay_change): Simplify.
12072 (next_overlay_string): After having processed overlay strings at the
12073 end of the buffer, record that fact in
12074 it->overlay_strings_at_end_processed_p.
12075 (compare_overlay_entries): If before- and after-strings come
12076 from the same overlay, let before-strings come first.
12077 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
12078 (load_overlay_strings): Take it->add_overlay_start into account
12079 when adding overlay strings.
12080
12081 * dispextern.h (struct it): Add member add_overlay_start.
12082
12083 2000-06-22 Dave Love <fx@gnu.org>
12084
12085 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
12086
12087 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
12088
12089 2000-06-22 Kenichi Handa <handa@etl.go.jp>
12090
12091 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
12092 is greater than 0.
12093
12094 2000-06-21 Dave Love <fx@gnu.org>
12095
12096 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
12097
12098 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
12099
12100 * syntax.c (back_comment): Simplify string-parity counting (with
12101 the added benefit of handling multiple string-styles as long as
12102 they are not intertwined).
12103 Jump to the slow code as soon as a comment starter is found in
12104 a "string_lossage" position. Fixes the case: " /* " /* " */.
12105
12106 2000-06-21 Dave Love <fx@gnu.org>
12107
12108 * Makefile.in: Use GETLOADAVG_LIBS.
12109
12110 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
12111 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
12112
12113 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
12114
12115 * syntax.c (describe_syntax): Recognize the `n'estable bit.
12116 (Fforward_comment, scan_lists):
12117 Check the comstyle of single-char comment-starters.
12118 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
12119 we're just at the beginning of the comment (f.ex with (*) ... (*)).
12120 Check the comstyle of single-char comment-starters.
12121 Clarify control-flow around the Scomment case.
12122
12123 2000-06-20 Dave Love <fx@gnu.org>
12124
12125 * fns.c (make_hash_table, maybe_resize_hash_table):
12126 Cast arg of next_almost_prime.
12127
12128 * tparam.c [emacs]: Include lisp.h.
12129
12130 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
12131 and unistd.h.
12132
12133 2000-06-20 Gerd Moellmann <gerd@gnu.org>
12134
12135 * keyboard.c (adjust_point_for_property): Check if display
12136 property should be treated as intangible by looking at its value.
12137
12138 * xdisp.c (single_display_prop_intangible_p)
12139 (display_prop_intangible_p): New functions.
12140
12141 * dispextern.h (display_prop_intangible_p): Add prototype.
12142
12143 * xdisp.c (dump_glyph_row): Show type of glyph->object.
12144
12145 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
12146 argument to sigprocmask.
12147
12148 * s/sco5.h (sigblock): Redefined to pass a pointer as second
12149 argument to sigprocmask.
12150
12151 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
12152 sigprocmask_set, and pass a pointer to it to sigprocmask.
12153
12154 * sysdep.c (sigprocmask_set): New variable.
12155
12156 * fileio.c (make_temp_name): Don't use `%s' in string passed to
12157 report_file_error.
12158
12159 2000-06-20 Sam Steingold <sds@gnu.org>
12160
12161 * xrdb.c: Don't declare xmalloc, xrealloc.
12162
12163 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
12164
12165 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
12166 (re_comp): Cast gettext return value to avoid complaints when
12167 !HAVE_LIBINTL.
12168
12169 2000-06-20 Dave Love <fx@gnu.org>
12170
12171 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
12172
12173 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
12174
12175 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
12176
12177 * m/alpha.h: Don't declare xmalloc, xrealloc.
12178
12179 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
12180
12181 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
12182
12183 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
12184
12185 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
12186 HAVE_GETWD.
12187
12188 * keyboard.h (poll_for_input_1): Declare.
12189
12190 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
12191
12192 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
12193
12194 * doprnt.c: Don't declare xmalloc, xrealloc.
12195
12196 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
12197 (getenv, ctime, getwd): Removed.
12198 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
12199
12200 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
12201 x_set_tool_bar_lines.
12202
12203 * config.in: Add HAVE_GETWD. Move some definitions above
12204 machine/system includes.
12205
12206 2000-06-20 Kenichi Handa <handa@etl.go.jp>
12207
12208 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
12209
12210 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
12211 contain information about ENCODING.
12212
12213 * fontset.c (FONTSET_ASCII): Use the first element of char table
12214 for an ASCII font, not defalt slot.
12215 (fontset_ref_via_base): If FONTSET doesn't contain information for
12216 C, try the default fontset.
12217 (make_fontset): Don't copy the default fontset.
12218 (fontset_font_pattern): Likewise.
12219 (accumulate_font_info): If ELT is nil, use the corresponding
12220 element in the default fontset.
12221
12222 2000-06-19 Dave Love <fx@gnu.org>
12223
12224 * syntax.c (Fparse_partial_sexp): Doc fix.
12225
12226 * regex.h: Test PROTOTYPES as well as __STDC__.
12227
12228 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
12229 errno, strerror. Put text after #endif in comment.
12230
12231 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
12232
12233 * xterm.c (x_frame_of_widget): Likewise.
12234
12235 2000-06-19 Gerd Moellmann <gerd@gnu.org>
12236
12237 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
12238 to Vfundamental_mode_abbrev_table.
12239
12240 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
12241 bogus objects are marked. This slows down GC by ~80 percent, but
12242 it might be worth trying when debugging GC-related problems.
12243 This feature requires conservative stack marking to be enabled.
12244
12245 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
12246 returns XLookupChars, reset `modifiers' to zero.
12247
12248 2000-06-19 Dave Love <fx@gnu.org>
12249
12250 * mktime.c: Unprotoized.
12251
12252 2000-06-19 Richard Stallman <rms@gnu.org>
12253
12254 * data.c (set_internal): If variable is frame-local,
12255 store the new value immediately into the frame parameter alist.
12256
12257 2000-06-19 Ken Raeburn <raeburn@gnu.org>
12258
12259 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
12260 in the custom handler pointer.
12261
12262 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
12263 value, or checks for CHAR_META can fail when Lisp_Object is a
12264 union type.
12265 * keymap.c (get_keyelt): Likewise.
12266
12267 2000-06-19 Kenichi Handa <handa@etl.go.jp>
12268
12269 * ccl.h (struct ccl_program): New member eol_type.
12270 (struct ccl_spec): New member cr_carryover.
12271
12272 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
12273 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
12274
12275 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
12276 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
12277 (decode_eol_post_ccl): New function.
12278 (decode_coding): Don't detect EOL format here for CCL based coding
12279 systems.
12280 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
12281 decode_eol_post_ccl after running the CCL program.
12282 (code_convert_region): Don't detect EOL format here for CCL based
12283 coding systems.
12284 (decode_coding_string): Likewise.
12285
12286 2000-06-18 Ken Raeburn <raeburn@gnu.org>
12287
12288 * charset.c (update_charset_table): Use XINT on "iso_final_char"
12289 when treating it as an integer.
12290
12291 * coding.h (encode_coding_string): Declare.
12292
12293 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
12294 it as an integer.
12295
12296 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
12297 "xkeymap" to avoid shadowing the "enum map_type" value that needs
12298 to be passed to get_local_map.
12299
12300 * sound.c (Fplay_sound): Don't call make_number on
12301 Frun_hook_with_args count argument.
12302
12303 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
12304 for lisp objects in X event structure data field, when lisp
12305 objects are represented with unions.
12306 (x_scroll_bar_to_input_event): Ditto.
12307
12308 2000-06-16 Ken Raeburn <raeburn@gnu.org>
12309
12310 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
12311 termination of string. Fix sense of test whether
12312 Vline_number_display_limit is an integer.
12313
12314 2000-06-16 Gerd Moellmann <gerd@gnu.org>
12315
12316 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
12317 only if HAVE_X_WINDOWS.
12318
12319 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
12320 of titles.
12321
12322 * dispnew.c (update_frame_1): Handle case that cursor vpos is
12323 out of bounds.
12324
12325 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
12326
12327 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
12328 of its headers.
12329
12330 2000-06-15 Kenichi Handa <handa@etl.go.jp>
12331
12332 * coding.c (decode_coding_emacs_mule): Always set src_base at the
12333 start of the while loop.
12334
12335 2000-06-15 Gerd Moellmann <gerd@gnu.org>
12336
12337 * atimer.c (alarm_signal_handler): Add forward declaration.
12338
12339 * data.c (set_internal): Remove debug code.
12340
12341 2000-06-14 Gerd Moellmann <gerd@gnu.org>
12342
12343 * Makefile.in (bootstrap-temacs): Add `-I../src'.
12344
12345 * unexec.c (toplevel) [COFF]: Include coff.h.
12346
12347 * s/lynxos.h: New file.
12348
12349 * keymap.c (Fsingle_key_description): Enclose function key and
12350 event symbol names in angle brackets.
12351
12352 * xdisp.c (setup_echo_area_for_printing): Call
12353 message_log_maybe_newline if message_buf_print is not set.
12354
12355 * print.c (printchar, strout): Don't check message_buf_print
12356 before calling setup_echo_area_for_printing because that
12357 function does something useful even when message_buf_print is
12358 already set.
12359
12360 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
12361 New variables.
12362 (ensure_echo_area_buffers): Initialize echo buffer's
12363 truncate lines setting to nil.
12364 (with_echo_area_buffer): Don't set the echo buffer's truncate
12365 lines setting here.
12366 (set_message_1): Set it here instead, based on the value
12367 of message_truncate_lines.
12368 (resize_mini_window): Handle case that lines are truncated.
12369 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
12370 DEFVAR_BOOL message-truncate-lines.
12371
12372 * keyboard.c (read_char): Bind message-truncate-lines to t
12373 while displaying a help-echo.
12374
12375 * lisp.h (Qmessage_truncate_lines): External declaration.
12376
12377 2000-06-13 Gerd Moellmann <gerd@gnu.org>
12378
12379 * xdisp.c (Vline_number_display_limit): Renamed from
12380 line_number_display_limit.
12381 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
12382 Extend documentation string. Initialize
12383 Vline_number_display_limit to nil meaning no limit.
12384 (decode_mode_spec): Use Vline_number_display_limit with its new
12385 meaning.
12386
12387 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
12388
12389 2000-06-13 Richard Stallman <rms@gnu.org>
12390
12391 * frame.c (Fmodify_frame_parameters): Doc fix.
12392
12393 * xfns.c (x_set_frame_parameters): Comment fix.
12394
12395 * frame.c (store_frame_param): Call swap_in_global_binding if the
12396 variable's current binding was chosen based on this frame.
12397
12398 * data.c (swap_in_global_binding): New function.
12399
12400 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
12401
12402 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
12403 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
12404
12405 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
12406
12407 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
12408
12409 2000-06-12 Jason Rumney <jasonr@gnu.org>
12410
12411 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
12412
12413 * w32.h (EMACS_W32_H): Renamed from _NT_H_
12414
12415 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
12416
12417 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
12418
12419 2000-06-12 Gerd Moellmann <gerd@gnu.org>
12420
12421 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
12422 (syms_of_xfaces): Defsubr Sdump_colors.
12423 (x_free_colors): Don't treat b&w specially on default visual.
12424 (x_free_dpy_colors): New function.
12425 (free_face_colors): Don't check visual class; it's done
12426 in x_free_colors.
12427
12428 * xterm.c (x_frame_of_widget): New function.
12429 (x_alloc_nearest_color_for_widget): Use it.
12430 (x_copy_dpy_color): New function.
12431 (x_destroy_window): Free various colors.
12432
12433 2000-06-12 Kenichi Handa <handa@etl.go.jp>
12434
12435 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
12436
12437 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
12438
12439 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
12440
12441 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
12442
12443 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
12444
12445 2000-06-11 Dave Love <fx@gnu.org>
12446
12447 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
12448
12449 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
12450
12451 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
12452
12453 2000-06-11 Gerd Moellmann <gerd@gnu.org>
12454
12455 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
12456 to `XEvent *'.
12457
12458 2000-06-10 Kenichi Handa <handa@etl.go.jp>
12459
12460 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
12461 (regex_compile): Fix the code for handling the case of single byte
12462 char and multibyte char being mixed in a range within [...].
12463
12464 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
12465 and dst_multibyte members of coding.
12466
12467 * charset.c (update_charset_table): Update the table
12468 bytes_by_char_head.
12469 (init_charset_once): Initialize elements of bytes_by_char_head to
12470 1 except for leading codes for private charases.
12471
12472 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
12473 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
12474
12475 2000-06-09 Ken Raeburn <raeburn@gnu.org>
12476
12477 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
12478 access the data it doesn't point to.
12479
12480 2000-06-08 Gerd Moellmann <gerd@gnu.org>
12481
12482 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
12483 will be translated to a switch-frame event when reading the
12484 event queue. This is necessary because Emacs otherwise won't
12485 perform a switch-frame to a new frame until some other event, for
12486 example a keystroke event, forces it to do so. This has various
12487 effects, one visible being that the cursor of a frame created with
12488 C-x 5 2 or switched to with a window manager key binding like
12489 A-TAB stays hollow because selected_window isn't on the newly
12490 focused frame until the switch-frame is performed.
12491
12492 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
12493 generating a switch-frame event if necessary.
12494
12495 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
12496
12497 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
12498 it's an integer.
12499
12500 2000-06-08 Kenichi Handa <handa@etl.go.jp>
12501
12502 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
12503
12504 2000-06-07 Gerd Moellmann <gerd@gnu.org>
12505
12506 * window.c (displayed_window_lines): Take empty lines at
12507 the bottom of a window into account.
12508
12509 * window.c (displayed_window_lines): New function.
12510 (Fmove_to_window_line): Use displayed_window_lines to determine
12511 the number of lines to move, instead of using the window's height.
12512
12513 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
12514 to stop reading, even if the form read sets point to a different
12515 value when evaluated.
12516
12517 * xdisp.c (display_line): Fix code deciding in which line to
12518 put the cursor.
12519
12520 2000-06-07 Kenichi Handa <handa@etl.go.jp>
12521
12522 * fileio.c (e_write): Free composition data if stored in
12523 coding->cmp_data.
12524
12525 2000-06-06 Gerd Moellmann <gerd@gnu.org>
12526
12527 * xdisp.c (display_line): Set row's and iterator's
12528 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
12529 Set cursor even if row ends in the middle of a character.
12530 (dump_glyph_row): Print values of new flags.
12531 (redisplay_window) <cursor movement in unchanged window>: When
12532 point has been moved forward, and PT is at the end of the cursor
12533 row, don't place the cursor in the next row if the cursor row ends
12534 in the middle of a character or at ZV.
12535
12536 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
12537 (struct glyph_row): Add starts_in_middle_of_char_p and
12538 ends_in_middle_of_char_p.
12539 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
12540 ends_in_middle_of_char_p flag.
12541 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
12542
12543 * term.c (append_glyph): Revert change of 2000-06-06.
12544
12545 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
12546 padding glyph not fitting on line as whole character not
12547 fitting on line.
12548
12549 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
12550 this isn't true for images with `:ascent 100'.
12551
12552 2000-06-06 Kenichi Handa <handa@etl.go.jp>
12553
12554 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
12555 as modified if it is originally unmodified.
12556
12557 * term.c (encode_terminal_code): Change the way to check if
12558 terminal coding does any conversion.
12559 (append_glyph): Set glyph->pixel_width correctly.
12560
12561 * xdisp.c (display_line): While checking line continuation, pay
12562 attention to a padding glyph.
12563
12564 2000-06-05 Gerd Moellmann <gerd@gnu.org>
12565
12566 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
12567
12568 2000-06-05 Dave Love <fx@gnu.org>
12569
12570 * xdisp.c: Include fontset.h.
12571
12572 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
12573
12574 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
12575
12576 * dispnew.c: Conditionally include term.h.
12577
12578 * coding.h: Declare code_convert_string_norecord.
12579
12580 * frame.h (struct frame): Use volatile unconditionally.
12581
12582 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
12583
12584 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
12585
12586 * systime.h: Protect against multiple inclusion.
12587 (timezone) [USG5_4]: Define as time_t.
12588
12589 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
12590 (Foptimize_char_table, make_temp_name): Declare.
12591
12592 * Makefile.in (xdisp.o): Depend on fontset.h.
12593
12594 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
12595
12596 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
12597 (Foptimize_char_table, make_temp_name): Declare.
12598
12599 * s/irix4-0.h:
12600 * s/irix5-0.h:
12601 * s/netbsd.h: Don't define autoconfiscated MATHERR.
12602
12603 2000-06-02 Dave Love <fx@gnu.org>
12604
12605 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
12606
12607 2000-06-02 Gerd Moellmann <gerd@gnu.org>
12608
12609 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
12610 result face, set flags in that face indicating that colors may not
12611 be freed.
12612
12613 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
12614 glyph, use the ASCII NUL character to determine the face.
12615
12616 2000-06-02 Dave Love <fx@gnu.org>
12617
12618 * sysdep.c: Conditionally include stdlib.h, unistd.h.
12619 (VFORK_RETURN_TYPE): Remove.
12620
12621 * config.in: Add NO_MATHERR.
12622
12623 2000-06-01 Dave Love <fx@gnu.org>
12624
12625 * cmds.c (internal_self_insert): Don't check
12626 Vbefore_change_function, Vafter_change_function.
12627
12628 * insdel.c (signal_before_change, signal_after_change): Likewise.
12629
12630 * buffer.c (Vbefore_change_function, Vafter_change_function):
12631 Variables and their initializations deleted.
12632
12633 * callint.c (Fcall_interactively): Doc fix.
12634
12635 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
12636
12637 2000-05-31 Dave Love <fx@gnu.org>
12638
12639 * textprop.c: Revert last change -- duplicated.
12640
12641 2000-05-31 Gerd Moellmann <gerd@gnu.org>
12642
12643 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
12644 in #if 0.
12645
12646 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
12647
12648 2000-05-31 Jason Rumney <jasonr@gnu.org>
12649
12650 * search.c (Fre_search_forward, Fre_search_backward)
12651 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
12652
12653 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
12654
12655 2000-05-30 Jason Rumney <jasonr@gnu.org>
12656
12657 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
12658 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
12659
12660 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
12661
12662 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
12663 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
12664 expand a nil default_filename.
12665
12666 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
12667 pointer to glyph_to_pixel_coords, not a frame.
12668
12669 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
12670 coding.h to dependencies.
12671
12672 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
12673
12674 * w32console.c (glyph_to_pixel_coords): Change first parameter to
12675 window pointer to be consistent with w32term.c and xterm.c.
12676
12677 * w32fns.c: Format and doc changes to bring closer to xfns.c.
12678 (VIETNAMESE_CHARSET): Define if not defined in system headers.
12679 (Qline_spacing, Qcenter): New variables.
12680 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
12681 (x_set_line_spacing): New function.
12682 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
12683 (x_specified_cursor_type): New function.
12684 (x_set_cursor_type): Use it.
12685 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
12686 and icon strings.
12687 (validate_x_resource_name, x_get_resource_string): Measure lengths
12688 of external strings in bytes.
12689 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
12690 GetTextExtentPoint32 with NULL title.
12691 (Fx_create_frame): Initialize Qline_spacing.
12692 (w32_load_system_font): Initialize font->double_byte_p.
12693 (x_to_w32_charset): Use Vw32_charset_info_alist.
12694 (Image, busy cursor, tooltip functions): Merged changes from
12695 xfns.c. Not yet functional on Windows.
12696
12697 * w32gui.h (W32FontStruct): Add double_byte_p member.
12698
12699 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
12700 (emacs_button_translation): Use it.
12701 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
12702 in `mask' to be set.
12703
12704 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
12705 menu strings.
12706
12707 * w32term.c: Format and doc changes to bring closer to xterm.c.
12708 (w32_char_font_type): New enum.
12709 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
12710 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
12711 (w32_encode_char): New function.
12712 (x_encode_char): Removed.
12713 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
12714 x_encode_char and w32_font_is_double_byte.
12715 (x_produce_image_glyph): Use image_ascent.
12716 (x_produce_glyphs): Use new version of w32_per_char_metric and
12717 handle NULL return value. Allow extra line spacing.
12718 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
12719 (w32_get_glyph_overhangs): Remove unicode_p param. Use
12720 w32_font_type member of glyph instead.
12721 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
12722 (fast_find_position): Make sure not to consider rows not visible
12723 in the window.
12724 (w32_read_socket) [WM_MENUSELECT]: Cannot call
12725 w32_menu_display_help with input blocked, as it can abort.
12726 (x_display_and_set_cursor): Choose cursor depending
12727 on buffer-local value of cursor_type.
12728 (x_draw_bar_cursor): Add parameter WIDTH.
12729
12730 * w32term.h (CP_DEFAULT): Define.
12731 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
12732
12733 2000-05-30 Gerd Moellmann <gerd@gnu.org>
12734
12735 * search.c (Fre_search_forward, Fre_search_backward)
12736 (Fposix_search_backward, Fposix_search_forward): Doc fix.
12737
12738 2000-05-30 Kenichi Handa <handa@etl.go.jp>
12739
12740 * coding.c (detect_coding_iso2022): Fix code for checking
12741 CODING_CATEGORY_MASK_ISO_8_2.
12742
12743 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
12744
12745 * regex.c (PREFETCH_NOLIMIT): New function.
12746 (re_match_2_internal): Use it and adjust the end_match_2 logic.
12747
12748 2000-05-29 Gerd Moellmann <gerd@gnu.org>
12749
12750 * syntax.c (find_defun_start): Move test for
12751 open_paren_in_column_0_is_defun_start outside of the loop.
12752
12753 * xdisp.c (redisplay_window): Really switch buffers when
12754 displaying mode lines, and temporarily set selected_frame to the
12755 frame of the window that's redisplayed.
12756
12757 * xfaces.c (free_realized_faces): Block/unblock input.
12758 (free_realized_multibyte_face): Ditto.
12759
12760 2000-05-29 Dave Love <fx@gnu.org>
12761
12762 * textprop.c (Qkeymap): New variable.
12763 (syms_of_textprop): Intern it.
12764
12765 * keymap.c: Include intervals.h.
12766 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
12767
12768 * Makefile.in (keymap.o): Depend on intervals.h.
12769
12770 * keyboard.c (menu_bar_items, tool_bar_items)
12771 (Fexecute_extended_command): Deal with `keymap' property.
12772 (read_key_sequence): Track map from `keymap' property as well as
12773 `local_map'.
12774
12775 * intervals.c (get_local_map): Extra arg to allow looking for
12776 `keymap' too.
12777
12778 * intervals.h (map_property): New enum.
12779 (get_local_map): Extra arg using it.
12780 (Qkeymap): Declare.
12781
12782 * lisp.h (get_local_map): Don't declare here.
12783
12784 2000-05-29 Kenichi Handa <handa@etl.go.jp>
12785
12786 * Makefile.in (callproc.o): Depend on composite.h.
12787
12788 * callproc.c: Include composite.h.
12789 (Fcall_process): Handle composition correctly.
12790
12791 * coding.h (coding_allocate_composition_data): Extern it.
12792 (coding_restore_composition): Likewise.
12793
12794 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
12795 yet allocated, finish decoding with result
12796 CODING_FINISH_INSUFFICIENT_CMP.
12797 (coding_allocate_composition_data): Make it non-static.
12798 (coding_restore_composition): Likewise.
12799
12800 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
12801
12802 * charset.c (syms_of_charset): Revert last change.
12803
12804 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
12805
12806 * term.c (produce_glyphs): Treat characters from the eight-bit-*
12807 charsets as unibyte, with 1-column screen width. Sent by Kenichi
12808 Handa.
12809
12810 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
12811
12812 * charset.c (syms_of_charset): Set width of character sets
12813 eight-bit-control and eight-bit-graphic to 1 column.
12814
12815 2000-05-26 Gerd Moellmann <gerd@gnu.org>
12816
12817 * config.in (HAVE_SPEED_T): New define.
12818
12819 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
12820 `extern speed_t'.
12821
12822 2000-05-26 Dave Love <fx@gnu.org>
12823
12824 * coding.c (shrink_decoding_region): Initialize eol_conversion.
12825
12826 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
12827 (Fsubr_arity): New function.
12828 (syms_of_data): Install them.
12829
12830 2000-05-26 Kenichi Handa <handa@etl.go.jp>
12831
12832 * charset.c (init_charset_once): Set the table bytes_by_char_head
12833 correctly.
12834
12835 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
12836 the default fontset to what Emacs uses by default.
12837 (check_registry_encoding): This function deleted.
12838 (Fset_fontset_font): Remove the adhoc condition for the default
12839 fontset. Allow cons in FONTNAME.
12840
12841 * fns.c (map_char_table): Ignore char-table entries for
12842 charsets eight-bit-control and eight-bit-graphic.
12843
12844 2000-05-25 Ken Raeburn <raeburn@gnu.org>
12845
12846 * emacs.c (main): Initialize keyboard syms before initializing
12847 window code, so face names are available.
12848
12849 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
12850
12851 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
12852 of an anchor at the beginning of a shy-group.
12853
12854 2000-05-25 Gerd Moellmann <gerd@gnu.org>
12855
12856 * xdisp.c (handle_invisible_prop): Don't try to skip over
12857 invisible text if end of text is already reached.
12858
12859 2000-05-25 Dave Love <fx@gnu.org>
12860
12861 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
12862
12863 * coding.c (encode_eol): Add null statement after label.
12864
12865 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
12866
12867 * w16select.c (Fw16_set_clipboard_data): Fix the change from
12868 2000-05-20.
12869
12870 2000-05-25 Kenichi Handa <handa@etl.go.jp>
12871
12872 * ccl.c (ccl_driver): Fix previous change.
12873
12874 2000-05-25 Kenichi Handa <handa@etl.go.jp>
12875
12876 * coding.c (run_pre_post_conversion_on_str): Set point to the
12877 beginning of buffer before calling coding->post_read_conversion.
12878 (decode_coding_string): Give correct args to
12879 run_pre_post_conversion_on_str.
12880 (encode_coding_string): Likewise.
12881
12882 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
12883 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
12884 eight-bit-graphic correctly.
12885
12886 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
12887
12888 * fileio.c (Finsert_file_contents): Even if a file is not found,
12889 execute codes for setting up coding system. Call
12890 after-insert-file-functions unconditionally.
12891
12892 2000-05-24 Gerd Moellmann <gerd@gnu.org>
12893
12894 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
12895 BSD_PGRPS are not defined.
12896
12897 2000-05-24 Kenichi Handa <handa@etl.go.jp>
12898
12899 * charset.c (update_charset_table): Accept nil in LONG_NAME and
12900 DESCRIPTION.
12901 (syms_of_charset): Avoid building same strings.
12902
12903 2000-05-23 Gerd Moellmann <gerd@gnu.org>
12904
12905 * lread.c (Fload): Add a comment about the meaning of
12906 Vuser_init_file being t.
12907
12908 * puresize.h (BASE_PURESIZE): Increase to 675000.
12909
12910 * s/gnu-linux.h (setpgrp): Don't define it here because this
12911 prevents compilation on GNU/Linux systems with glib 2.2.
12912
12913 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
12914 as setpgid.
12915
12916 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
12917
12918 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
12919 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
12920 version.
12921 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
12922
12923 2000-05-23 Kenichi Handa <handa@etl.go.jp>
12924
12925 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12926
12927 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
12928
12929 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
12930
12931 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
12932
12933 2000-05-22 Kenichi Handa <handa@etl.go.jp>
12934
12935 * keyboard.c (read_char): Allow character codes 128..255 to be
12936 handled by input-method-function.
12937
12938 * insdel.c (adjust_markers_for_replace): Fix previous change.
12939 (adjust_after_replace): If PREV_TEXT is nil, call
12940 adjust_markers_for_insert, not adjust_markers_for_replace.
12941
12942 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
12943
12944 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
12945 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
12946 [HAVE_GRANDPT]: Define.
12947 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
12948
12949 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
12950 like SYSV_PTYS.
12951
12952 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
12953
12954 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
12955
12956 2000-05-20 Kenichi Handa <handa@etl.go.jp>
12957
12958 The following changes are to handle 8-bit characters in a
12959 multibyte buffer/string without facing with byte combining
12960 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
12961 eight-bit-graphic (for 0xA0..0xFF) are introduced.
12962
12963 * Makefile.in (fns.o): Depend on charset.h.
12964
12965 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
12966 convert it to unibyte.
12967 (make_string): Use parse_str_as_multibyte, not chars_in_text.
12968
12969 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
12970 apparent char boundary.
12971 (Fset_buffer_multibyte): Convert 8-bit characters in the range
12972 0x80..0x9F to/from multibyte form.
12973
12974 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
12975 to unibyte.
12976
12977 * callproc.c (Fcall_process): Always encode an argument string if
12978 it is multibyte. Setup src_multibyte and dst_multibyte members of
12979 process_coding properly.
12980
12981 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
12982 SPLIT_NON_ASCII_CHAR.
12983
12984 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
12985 as is.
12986 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
12987
12988 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
12989 (SPLIT_CHARACTER_SEQ): This macro deleted.
12990 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
12991 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
12992 and eight-bit-graphic.
12993 (char_to_string): Likewise. Signal an error for too large
12994 character code.
12995 (char_printable_p): Return 0 for 8-bit characters.
12996 (update_charset_table): Update iso_charset_table only when a final
12997 character is non-negative.
12998 (find_charset_in_text): Renamed from find_charset_in_str.
12999 Arguments and return value changed. Callers changed.
13000 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
13001 be -1 if CHARSET is used only internally.
13002 (Fmake_char_internal): Handle new charsets; eight-bit-control and
13003 eight-bit-graphic.
13004 (Fcharset_after): Simplified.
13005 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
13006 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
13007 (multibyte_chars_in_text): Simplified by assuming there's no
13008 invalid multibyte sequence.
13009 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
13010 (str_as_unibyte): New functions.
13011 (Fstring): Simpified by assuming that byte combining never happens.
13012 (init_charset_once): Initialization for
13013 LEADING_CODE_8_BIT_CONTROL.
13014 (syms_of_charset): Intern and staticpro Qeight_bit_control and
13015 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
13016 eight-bit-control and eight-bit-graphic.
13017
13018 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
13019 (CHARSET_8_BIT_GRAPHIC): New macros.
13020 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
13021 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
13022 (CHARSET_REVERSE_CHARSET): Likewise.
13023 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
13024 eight-bit-graphic.
13025 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
13026 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
13027 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
13028 encounter an invalid multibyte sequence.
13029 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
13030 sequence is always valid.
13031 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
13032 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
13033 (CHAR_STRING): For 8-bit characters, call char_to_string.
13034 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
13035 multibyte sequence is always valid.
13036 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
13037 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
13038 (str_as_unibyte): Extern them.
13039 (BCOPY_SHORT): Fix a bug.
13040 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
13041 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
13042 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
13043 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
13044
13045 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
13046 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
13047 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
13048 (EMIT_BYTES): New macros.
13049 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
13050 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
13051 macros deleted.
13052 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
13053 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
13054 check the validity of multibyte sequence.
13055 (decode_coding_emacs_mule): New function.
13056 (encode_coding_emacs_mule): New macro.
13057 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
13058 the source.
13059 (DECODE_ISO_CHARACTER): Just return a character code.
13060 (DECODE_COMPOSITION_START): Set coding->result instead of result.
13061 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
13062 EMIT_CHAR to produced decoded characters. Exit the loop only by
13063 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
13064 block here.
13065 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
13066 only position codes for an invalid character.
13067 (encode_designation_at_bol): Return new destination pointer. 5th
13068 arg DSTP is changed to DST.
13069 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
13070 from the source by ONE_MORE_CHAR. Don't handle the case of last
13071 block here.
13072 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
13073 macros deleted.
13074 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
13075 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
13076 TWO_MORE_BYTES to fetch a byte from the source.
13077 (encode_eol): Pay attention to coding->src_multibyte.
13078 (detect_coding, detect_eol): Preserve members src_multibyte and
13079 dst_multibyte.
13080 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
13081 (encoding_buffer_size): Set magnification to 3 for all coding
13082 systems that require encoding.
13083 (ccl_coding_driver): For decoding, be sure that the result is
13084 valid multibyte sequence.
13085 (decode_coding): Initialize coding->errors and coding->result.
13086 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
13087 and raw-text, always call decode_eol. Handle the case of last
13088 block here. If not coding->dst_multibyte, convert the resulting
13089 sequence to unibyte.
13090 (encode_coding): Initialize coding->errors and coding->result.
13091 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
13092 and raw-text, always call encode_eol. Handle the case of last
13093 block here.
13094 (shrink_decoding_region, shrink_encoding_region): Detect cases
13095 that we can't skip data more rigidly.
13096 (code_convert_region): Setup src_multibyte and dst_multibyte
13097 members of coding. For decoding, if the buffer is multibyte,
13098 convert the source sequence to unibyte in advance. For encoding,
13099 if the buffer is multibyte, convert the resulting sequence to
13100 multibyte afterward.
13101 (run_pre_post_conversion_on_str): New function.
13102 (code_convert_string): Deleted and divided into the following two.
13103 (decode_coding_string, encode_coding_string): New functions.
13104 (code_convert_string1, code_convert_string_norecord): Call one of
13105 above.
13106 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
13107 MAKE_NON_ASCII_CHAR.
13108 (Fset_terminal_coding_system_internal)
13109 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
13110 and dst_multibyte members.
13111 (init_coding_once): Initialize iso_code_class with new enum
13112 ISO_control_0 and ISO_control_1.
13113
13114 * coding.h (enum iso_code_class_type): Member ISO_control_code is
13115 devided into ISO_control_0 and ISO_control_1.
13116 (struct coding_system): New members src_multibyte, dst_multibyte,
13117 errors, and result. Delete member fake_multibyte.
13118 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
13119 nonzero.
13120 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
13121 nonzero.
13122
13123 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
13124 (Faset): Likewise.
13125
13126 * editfns.c (Fformat): Be sure to convert 8-bit characters to
13127 multibyte form.
13128 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
13129 combining occurs.
13130 (Ftranspose_region): Delete codes for handling byte combining.
13131
13132 * fileio.c (Finsert_file_contents): Setup src_multibyte and
13133 dst_multibyte members of coding. On handling REPLACE on unibyte
13134 buffer, convert the result of decode_coding to unibyte. On
13135 inserting into a mutibyte buffer, always call code_convert_region.
13136 (e_write): Setup coding->src_multibyte according to the
13137 multibyteness of the source (buffer or string).
13138
13139 * fns.c (concat): Handle 8-bit characters correctly.
13140 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
13141 unibyte in the result.
13142 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
13143 valid multibyte form in the result.
13144 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
13145 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
13146 return -1, signal an error.
13147 (base64_encode_1): New arg MULTIBYTE. Get each character by
13148 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
13149 character is found, return -1.
13150 (Fbase64_decode_region): Delete codes for handling byte-combining.
13151 Treat each decoded byte as a unibyte character.
13152 (Fbase64_decode_string): Return unibyte string.
13153 (Fcompare_strings, concat, string_byte_to_char): Use
13154 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
13155 FETCH_STRING_CHAR_ADVANCE.
13156 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13157 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
13158
13159 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
13160 SPLIT_NON_ASCII_CHAR.
13161 (fontset_ref_via_base, fontset_set): Likewise
13162
13163 * insdel.c (adjust_markers_for_record_delete): Deleted.
13164 (adjust_markers_for_insert): Argument changed. Caller changed.
13165 (adjust_markers_for_replace): Likewise.
13166 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
13167 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
13168 (copy_text): Delete unused local varialbe c_save. For converting
13169 to multibyte, be sure to make all 8-bit characters in valid
13170 multibyte form.
13171 (count_size_as_multibyte): Handle 8-bit characters correctly.
13172 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
13173 (adjust_after_replace, replace_range, del_range_2)
13174 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
13175 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
13176 (adjust_after_replace, replace_range, del_range_2) Delete codes for
13177 handling byte combining.
13178 (adjust_before_replace): Deleted.
13179
13180 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
13181 SPLIT_NON_ASCII_CHAR.
13182 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
13183 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13184 (Fkey_description): Likewise.
13185
13186 * lread.c (read1): On reading multibyte string, be sure to make
13187 all 8-bit chararacters in valid multibyte form.
13188 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13189
13190 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
13191 unconditionally.
13192
13193 * process.c (Fstart_process): GCPRO current_dir before calling
13194 Ffind_operation_coding_system. Encode arguments here.
13195 (create_process): Don't encode arguments here. Setup
13196 src_multibyte and dst_multibyte members of struct coding.
13197 (read_process_output): Setup src_multibyte and dst_multibyte
13198 members of struct coding. If the output is to multibyte buffer,
13199 always decode the output of the process. Adjust the
13200 representation of 8-bit characters to the multibyteness of the output.
13201 (send_process): Setup coding->src_multibyte according to the
13202 multibyteness of the source.
13203
13204 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
13205 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
13206 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
13207
13208 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
13209
13210 * w16select.c (Fw16_set_clipboard_data): Setup members
13211 src_multibyte and dst_multibyte of coding. Adjusted for the
13212 change for find_charset_in_str.
13213 (Fw16_get_clipboard_data): Likewise.
13214
13215 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
13216 dst_multibyte of coding.
13217 (x_to_w32_font): Likewise.
13218
13219 * w32select.c (Fw32_set_clipboard_data): Setup members
13220 src_multibyte and dst_multibyte of coding. Adjusted for the
13221 change for find_charset_in_str.
13222 (Fw32_get_clipboard_data): Likewise.
13223
13224 * xdisp.c (get_next_display_element): Handle 8-bit characters
13225 correctly.
13226 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
13227 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
13228
13229 * xselect.c (selection_data_to_lisp_data): Setup members
13230 src_multibyte and dst_multibyte of coding. Adjusted for the
13231 change for find_charset_in_str.
13232 (lisp_data_to_selection_data): Likewise.
13233
13234 2000-05-19 Gerd Moellmann <gerd@gnu.org>
13235
13236 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
13237
13238 * dispextern.h (Vimage_types): Add extern declaration.
13239
13240 * xdisp.c (Vimage_types): Moved here from xfns.c.
13241 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
13242
13243 * xfns.c (Vimages_types): Moved to xdisp.c.
13244 (syms_of_xfns): Move `image-types' to xdisp.c.
13245
13246 * w32fns.c (Vimage_types): Removed.
13247 (syms_of_w32fns): Remove `image-types'.
13248
13249 2000-05-18 Kenichi Handa <handa@etl.go.jp>
13250
13251 * fns.c (map_char_table): Pay attention to character number of
13252 charset. Check the validity of charset at the first level. For
13253 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
13254 the default value.
13255
13256 * fontset.c: Include "buffer.h".
13257 (fs_load_font): If the face has fontset, record the face ID in
13258 that fontset.
13259 (Finternal_char_font): New function.
13260 (accumulate_font_info): New function.
13261 (Ffontset_info): Rewritten for the new fontset implementation.
13262 (syms_of_fontset): Register Vdefault_fontset in the first element
13263 of Vfontset_table. Include Vdefault_fontset in
13264 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
13265 function.
13266
13267 2000-05-16 Dave Love <fx@gnu.org>
13268
13269 * m/iris5d.h: Deleted -- unused.
13270
13271 2000-05-16 Gerd Moellmann <gerd@gnu.org>
13272
13273 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
13274 `invalid' instead of `illegal'.
13275
13276 * indent.c (Fmove_to_column): When ending within a tab, insert
13277 spaces first so that markers at the end of the tab get adjusted.
13278
13279 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
13280 buffer list that wasn't selected in that frame.
13281
13282 * filelock.c (get_boot_time): To obtain an 8 char file name, which
13283 is needed on mescaline, use a 2 char prefix, and call
13284 make_temp_name with second arg non-zero.
13285
13286 * fileio.c (make_temp_name): New function, extracted from
13287 Fmake_temp_name.
13288 (Fmake_temp_name): Use it.
13289
13290 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
13291
13292 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
13293
13294 2000-05-15 Gerd Moellmann <gerd@gnu.org>
13295
13296 * Makefile.in (lisp): Add env.elc.
13297
13298 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
13299
13300 2000-05-12 Gerd Moellmann <gerd@gnu.org>
13301
13302 * search.c (Freplace_match): Handle case of `\N' in the
13303 replacement when there's no group N.
13304
13305 2000-05-11 Gerd Moellmann <gerd@gnu.org>
13306
13307 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
13308 of the message to message_dolog.
13309
13310 * keyboard.c (read_char): Don't clear current message for help
13311 events; let the code handling help events handle this. Change
13312 code detecting help events that should be ignored.
13313
13314 * xdisp.c (handle_single_display_prop): Don't try to set PT if
13315 we're interating over a string.
13316
13317 2000-05-09 Dave Love <fx@gnu.org>
13318
13319 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
13320 that offset before writing. Move gcpro region past call of
13321 Ffile_regular_p.
13322
13323 2000-05-04 Dave Love <fx@gnu.org>
13324
13325 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
13326
13327 2000-05-04 Gerd Moellmann <gerd@gnu.org>
13328
13329 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
13330 of inserted characters when BUF equals the current buffer, and PT
13331 is in front of or equal to FROM.
13332
13333 2000-05-03 Gerd Moellmann <gerd@gnu.org>
13334
13335 * xdisp.c (handle_single_display_prop): If display property value
13336 is invalid, or something not supported on the frame, restore
13337 iterator's position to what it was initially. Make sure to return
13338 0 for invalid and unsupported property values.
13339
13340 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
13341 that x_per_char_metric returns null.
13342
13343 2000-05-02 Gerd Moellmann <gerd@gnu.org>
13344
13345 * xterm.h (struct face): Add forward declaration.
13346 (struct image): Ditto.
13347 (image_ascent): Add prototype.
13348
13349 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
13350 (x_draw_image_relief, x_draw_image_foreground_1): Call function
13351 image_ascent instead of using IMAGE_ASCENT.
13352
13353 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
13354 (IMAGE_ASCENT): Removed.
13355
13356 * xfns.c (Qcenter): New variable.
13357 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
13358 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
13359 (image_ascent): New function.
13360 (lookup_image): Recognize `:ascent center'.
13361 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
13362 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
13363 (xbm_load): Don't set image's ascent here.
13364 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
13365 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
13366 check ascent values here.
13367 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
13368 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
13369 (syms_of_xfns): Initialize Qcenter.
13370
13371 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
13372 to the limits, increase the limits.
13373
13374 2000-05-01 Kenichi Handa <handa@etl.go.jp>
13375
13376 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
13377 Check Vfont_encoding_alist against the full name of the opened font.
13378
13379 2000-04-28 Gerd Moellmann <gerd@gnu.org>
13380
13381 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
13382 taller than the window.
13383
13384 2000-04-28 Kenichi Handa <handa@etl.go.jp>
13385
13386 * xfaces.c (realize_x_face): Fix the argument of the second
13387 xassert. BASE_FACE may not be a face for ASCII.
13388
13389 2000-04-27 Gerd Moellmann <gerd@gnu.org>
13390
13391 * print.c (print_object): Treat print-length < 0 as nil.
13392
13393 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
13394
13395 * s/freebsd.h (TERMCAP_OBJ): Removed.
13396 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
13397
13398 * lread.c (read1): Don't treat period followed by certain
13399 characters as symbol start.
13400
13401 * xfns.c (slurp_file): New function.
13402 (xbm_image_p): Handle case of in-memory XBM files.
13403 (xbm_scan): Rewritten to work on memory buffers instead of files.
13404 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
13405 Work on memory buffers instead of files. If DATA is null test
13406 if buffer looks like an in-memory XBM file.
13407 (xbm_load_image): Renamed from xbm_load_image_file. Work on
13408 memory buffers instead of files.
13409 (xbm_file_p): New function.
13410 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
13411
13412 * lread.c (end_of_file_error): New function.
13413 (read1): Call it instead of signaling `end-of-file' directly.
13414
13415 * print.c (print_error_message): Print data of `end-of-file'
13416 with Fprinc instead of Fprin1.
13417
13418 2000-04-26 Ken Raeburn <raeburn@gnu.org>
13419
13420 * window.c (freeze_window_start): Check that minibuffer scroll
13421 window isn't nil before extracting the window structure pointer
13422 from it.
13423
13424 * undo.c (record_delete): If we hit the end of the undo list, stop
13425 picking elements apart.
13426
13427 2000-04-26 Gerd Moellmann <gerd@gnu.org>
13428
13429 * xdisp.c (display_line): If lines are continued, restore
13430 iterator's ascent/descent information to the values before the
13431 first glyph not fitting on the line.
13432
13433 2000-04-25 Gerd Moellmann <gerd@gnu.org>
13434
13435 * xdisp.c (try_window_id) <all changes above window start>: Adjust
13436 positions in glyph matrix. Don't compute new window end positions.
13437
13438 * dispnew.c (increment_matrix_positions): Renamed from
13439 increment_glyph_matrix_buffer_positions.
13440 (increment_row_positions): Renamed from
13441 increment_glyph_row_buffer_positions.
13442
13443 * dispextern.h: Change names of renamed functions from dispnew.c
13444 in prototypes.
13445
13446 2000-04-24 Gerd Moellmann <gerd@gnu.org>
13447
13448 * fileio.c (Fdo_auto_save): Create directories for auto-save
13449 list file if necessary.
13450
13451 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
13452 from buffer or frame.
13453 (automatic_hscrolling_p): New variable.
13454 (hscroll_windows): Scroll windows horizontally only if automatic
13455 hscrolling is allowed.
13456 (syms_of_xdisp): New variable `automatic-hscrolling'.
13457
13458 * frame.h (struct frame): Add member extra_line_spacing.
13459
13460 * xfns.c (x_set_line_spacing): New function.
13461 (Fx_create_frame): Set line spacing from resources.
13462 (Qline_spacing): New variable.
13463 (syms_of_xfns): Initialize Qline_spacing.
13464
13465 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
13466
13467 * buffer.c (init_buffer_once): Handle extra_line_spacing.
13468 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
13469 (reset_buffer): Don't initialize extra2 and extra3. Initialize
13470 extra_line_spacing from default value.
13471 (init_buffer_once): Initialize default value of extra_line_spacing.
13472
13473 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
13474 and extra3.
13475
13476 * xterm.c (x_produce_glyphs): Remove reference to struct it's
13477 prompt_width. Add extra line spacing.
13478
13479 * term.c (produce_glyphs): Remove reference to struct it's
13480 prompt_width.
13481
13482 * dispextern.h (struct it): Remove member prompt_width, add
13483 extra_line_spacing.
13484
13485 2000-04-22 Gerd Moellmann <gerd@gnu.org>
13486
13487 * dispnew.c (update_frame_line): When writing a whole line, make
13488 sure cursor is in the right row afterwards, otherwise a use of
13489 capability `ch' in cmgoto might leave the cursor in the row below.
13490
13491 2000-04-21 Gerd Moellmann <gerd@gnu.org>
13492
13493 * lisp.h (struct Lisp_Buffer_Cons): Remove.
13494
13495 * keyboard.c (timer_check): Fix typo in comment.
13496
13497 2000-04-21 Kenichi Handa <handa@etl.go.jp>
13498
13499 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
13500 name change: ch -> character.
13501
13502 2000-04-20 Gerd Moellmann <gerd@gnu.org>
13503
13504 * keyboard.c (echo_message_buffer): New variable.
13505 (echo_now): Set echo_message_buffer to the echo area buffer used
13506 to display the echo.
13507 (cancel_echoing): Reset echo_message_buffer to nil.
13508 (read_char): Code rewritten that handles canceling an echo or
13509 echoing a dash, respectively.
13510
13511 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
13512 directory doesn't exist.
13513
13514 2000-04-19 Dave Love <fx@gnu.org>
13515
13516 * fns.c (syms_of_fns): Defsubr mapc.
13517 (concat): Don't allow numeric args.
13518 (Fconcat): Doc change.
13519
13520 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
13521
13522 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
13523 instead define end_match(1|2) more carefully.
13524 Use GET_CHAR_BEFORE_2 for `begline'.
13525
13526 2000-04-19 Gerd Moellmann <gerd@gnu.org>
13527
13528 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
13529 on 64-bit systems where NULL is defined as `0'.
13530
13531 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
13532 the `variable argument list' to make it work on Alpha.
13533
13534 * m/alpha.h (_LP64) [!_LP64]: Define.
13535 (ORDINARY_LINK): Define for NetBSD.
13536
13537 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
13538
13539 2000-04-19 Dave Love <fx@gnu.org>
13540
13541 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
13542 change.
13543
13544 * Makefile.in (LIBS): Don't use.
13545 (GETLOADAVG_OBJ): Define again.
13546 (otherobj): Add GETLOADAVG_OBJ.
13547
13548 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
13549
13550 2000-04-18 Gerd Moellmann <gerd@gnu.org>
13551
13552 * lread.c (read_filtered_event): Cancel and start busy cursor.
13553
13554 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
13555 that the per-character metrics may be null.
13556
13557 2000-04-17 Gerd Moellmann <gerd@gnu.org>
13558
13559 * buffer.c (clone_per_buffer_values): New function.
13560 (Fmake_indirect_buffer): Add optional argument CLONE. Call
13561 clone_per_buffer_values if CLONE is not nil.
13562
13563 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
13564
13565 2000-04-16 Dave Love <fx@gnu.org>
13566
13567 * Makefile.in: Remove obsolete localcpp stuff.
13568 (GETLOADAVG_OBJ): Don't define.
13569 (obj): Move LIBOBJS...
13570 (otherobj): ... to here.
13571 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
13572 whitespace-only lines after the continuation (Irix).
13573
13574 2000-04-14 Gerd Moellmann <gerd@gnu.org>
13575
13576 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
13577
13578 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
13579
13580 2000-04-14 Dave Love <fx@gnu.org>
13581
13582 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
13583 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
13584 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
13585 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
13586 NLIST_STRUCT.
13587
13588 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
13589 autoconfiscated HAVE_GETLOADAVG.
13590
13591 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
13592 BROKEN_MKTIME.
13593
13594 2000-04-14 Gerd Moellmann <gerd@gnu.org>
13595
13596 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
13597 (fill_in_lock_file_name): Avoid existing files that aren't links.
13598
13599 2000-04-14 Dave Love <fx@gnu.org>
13600
13601 * Makefile.in (LIBS, LIBOBJS): New variable.
13602 (INTERVAL_SRC): Convert to make variable.
13603 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
13604 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
13605 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
13606 add LIBOBJS.
13607 (SOME_MACHINE_OBJECTS): Remove interval stuff.
13608 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
13609 (shortlisp): Add facemenu, float-sup, frame.
13610 (SOME_MACHINE_LISP): Remove them from here.
13611 (LIBES): Change unused LDLIBS to autoconf LIBS.
13612
13613 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
13614
13615 2000-04-14 Kenichi Handa <handa@etl.go.jp>
13616
13617 * composite.c (update_compositions): If FROM and TO are not in a
13618 valid range, do nothing.
13619
13620 2000-04-13 Gerd Moellmann <gerd@gnu.org>
13621
13622 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
13623
13624 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
13625
13626 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
13627 as TERMCAP_OBJ.
13628
13629 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
13630
13631 * fileio.c (a_write): Remove redundant semi-colons.
13632 (e_write): Return -1 if failed to write all the data.
13633 This fixes the changes made at 1999-12-15.
13634
13635 2000-04-12 Dave Love <fx@gnu.org>
13636
13637 * fns.c (mapcar1): Test for null vals to support mapc.
13638 (Fmapc): New function.
13639
13640 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
13641
13642 * msdos.c (NUM_MOUSE_BUTTONS): Define.
13643 (IT_frame_up_to_date): Support the buffer local value of
13644 cursor-type, if defined.
13645
13646 2000-04-10 Dave Love <fx@gnu.org>
13647
13648 * editfns.c (preceding-char, following-char): Doc fix.
13649
13650 2000-04-10 Ken Raeburn <raeburn@gnu.org>
13651
13652 * Makefile.in (temacs): Revert 2000-03-12 change.
13653
13654 2000-04-10 Jason Rumney <jasonr@gnu.org>
13655
13656 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
13657
13658 2000-04-10 Gerd Moellmann <gerd@gnu.org>
13659
13660 * xdisp.c (setup_echo_area_for_printing): Choose an echo
13661 area buffer, if it's not set up yet.
13662
13663 * indent.c (compute_motion): Set immediate_quit.
13664
13665 2000-04-09 Gerd Moellmann <gerd@gnu.org>
13666
13667 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
13668 (realize_tty_face): Suppress boldness if colors are the inverse of
13669 the default colors, and tty_suppress_bold_inverse_default_colors_p
13670 is set.
13671 (Ftty_suppress_bold_inverse_default_colors): New function.
13672 (syms_of_xfaces): Defsubr it.
13673
13674 * buffer.c (Frestore_buffer_modified_p): New function.
13675 (syms_of_buffer): Defsubr it.
13676
13677 2000-04-08 Ken Raeburn <raeburn@gnu.org>
13678
13679 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
13680 charset id (int) argument, not a charset (Lisp_Object).
13681
13682 * coding.h (code_convert_string): Declare.
13683 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
13684 object, as the fourth argument to code_convert_string.
13685
13686 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
13687 (Fset_fontset_font): Use EQ to compare lisp objects.
13688
13689 2000-04-05 Ken Raeburn <raeburn@gnu.org>
13690
13691 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
13692 a pointer that looks like a lisp object.
13693 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
13694 zero, instead see whether it's an integer object, since they can't
13695 have intervals.
13696 (GET_INTERVAL_OBJECT): Simply assign to the destination.
13697
13698 * dispnew.c (allocate_matrices_for_frame_redisplay)
13699 (direct_output_forward_char): Use X(U)INT and make_number as needed
13700 to convert between (unsigned) int values and lisp integers.
13701 * keyboard.c (read_key_sequence): Likewise.
13702 * lread.c (substitute_object_recurse): Likewise.
13703 * fns.c (concat, hash_lookup, hash_remove): Likewise.
13704 * minibuf.c (do_completion, Fminibuffer_complete_word)
13705 (Fminibuffer_completion_help): Likewise.
13706 * term.c (produce_special_glyphs): Likewise.
13707
13708 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
13709 * print.c (print_preprocess, print_object): Likewise.
13710
13711 * search.c (compile_pattern): Use NILP when checking for nil.
13712
13713 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
13714 __OPTIMIZE__]: Provide a GNU C macro version that handles
13715 lisp-object unions.
13716 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
13717 field, to better cope with ENABLE_CHECKING and calls that modify a
13718 Lisp_Object using its old value.
13719
13720 2000-04-04 Gerd Moellmann <gerd@gnu.org>
13721
13722 * window.c (compare_window_configurations): Signal an error
13723 if parameters C1 or C2 aren't window configurations.
13724
13725 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
13726 AFTER_POTENTIAL_GC calls around calls to functions that can
13727 signal an error and thus invoke the debugger.
13728
13729 2000-04-03 Gerd Moellmann <gerd@gnu.org>
13730
13731 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
13732 an error if decoding fails.
13733
13734 * keyboard.c (lispy_mouse_names): Variable removed.
13735 (Vlispy_mouse_stem): New variable.
13736 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
13737 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
13738 for any mouse button number. Increase size of mouse_syms and
13739 button_down_location as needed. Call modify_event_symbol with
13740 different arguments.
13741 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
13742 Call modify_event_symbol with different arguments.
13743 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
13744 for any button number. Call modify_event_symbol with different
13745 arguments.
13746 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
13747 Accept a string for NAME_ALIST_OR_STEM.
13748
13749 * lisp.h (larger_vector): Add prototype.
13750
13751 * fns.c (larger_vector): Make externally visible.
13752
13753 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
13754
13755 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
13756
13757 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
13758 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
13759 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
13760 we are between str1 and str2.
13761 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
13762 (PATFETCH): Use `TRANSLATE'.
13763 (PATFETCH_RAW): Fetch multibyte char if applicable.
13764 (PATUNFETCH): Remove.
13765 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
13766 When writing a char, write it directly into the pattern buffer rather
13767 than going needlessly through a temp char-array.
13768 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
13769 multibyte magic and remove the useless `#ifdef emacs'.
13770 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
13771 buffer.
13772
13773 * regex.h (struct re_pattern_buffer): Make field `multibyte'
13774 conditional on `emacs'.
13775
13776 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
13777
13778 2000-04-01 Ken Raeburn <raeburn@gnu.org>
13779
13780 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
13781 non-union-type versions of XMARK and friends here, because XMARK
13782 and friends won't work on an integer field if NO_UNION_TYPE is not
13783 defined.
13784 (make_number): Define as a function if it's not defined as a macro.
13785
13786 * composite.c (run_composite_function): Use NILP when checking for nil.
13787 (syms_of_composite): Delete local var NARGS, pass an int as first
13788 argument to Fmake_hash_table.
13789
13790 * editfns.c (text_property_stickiness): Use NILP to test
13791 Lisp_Object boolean value.
13792 (Fmessage_or_box): Don't use NILP to test int variable.
13793 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
13794 problems reading from and changing the same lisp value in an
13795 XSETSTRING call.
13796
13797 2000-04-01 Gerd Moellmann <gerd@gnu.org>
13798
13799 * term.c (TN_no_color_video): New variable.
13800 (term_init): Intitialize TN_no_color_video.
13801 (enum no_color_bit): New enumeration.
13802 (MAY_USE_WITH_COLORS_P): New macro.
13803 (turn_on_face): Use it to determine if attributes may be used
13804 combined with colors.
13805
13806 2000-04-01 Ken Raeburn <raeburn@gnu.org>
13807
13808 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
13809 with int lvalues via casts; instead, just yield lisp object lvalues.
13810 (enlarge_window): Variable sizep now points to Lisp_Object. Use
13811 proper accessor macros.
13812 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
13813 (grow_mini_window): Fix typo getting int value of root->height.
13814
13815 * xdisp.c (compute_string_pos): Fix order of arguments to
13816 string_pos_nchars_ahead.
13817 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
13818 count arg to variable-arg routines like Frun_hook_with_args and
13819 Fformat.
13820 (back_to_previous_visible_line_start)
13821 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
13822 fixed-arg routines like Fget_char_property and Fmake_string.
13823 (reconsider_clip_changes): Use XINT when comparing integer lisp
13824 objects, or passing them as int arguments.
13825 (mark_window_display_accurate, insert_left_trunc_glyphs)
13826 (append_space, extend_face_to_end_of_line): Use make_number when
13827 storing or passing integer values as lisp objects.
13828 (set_cursor_from_row, highlight_trailing_whitespace): Use
13829 INTEGERP, not implicit test against zero, for glyph object.
13830 (try_window_id): Don't use make_number when we want an int value.
13831
13832 * xfaces.c (xlfd_symbolic_value): Make last argument a
13833 Lisp_Object, to be consistent with callers.
13834 (Fbitmap_spec_p): Use XINT to get numeric value of height.
13835 (lface_hash): Apply XFASTINT to lisp values before folding in.
13836
13837 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
13838 fill in window width and height. Pass an int, not a lisp object,
13839 as first arg to Finsert.
13840
13841 2000-04-01 Gerd Moellmann <gerd@gnu.org>
13842
13843 * xfaces.c (realize_basic_faces): Block input while realizing
13844 the faces.
13845
13846 * keyboard.c (lispy_mouse_names): Add additional mouse names.
13847
13848 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
13849
13850 2000-03-31 Gerd Moellmann <gerd@gnu.org>
13851
13852 * xterm.c (x_produce_glyphs): When displaying unibyte text
13853 or ASCII, handle case that per-char metric is null.
13854
13855 2000-03-30 Ken Raeburn <raeburn@gnu.org>
13856
13857 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
13858
13859 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
13860 (XSUBR, XBUFFER): Verify correct object type before returning
13861 pointer, using eassert.
13862 * frame.h (XFRAME): Likewise.
13863
13864 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
13865 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
13866 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
13867 * data.c (set_internal): Likewise.
13868 * dispextern.h (WINDOW_WANTS_MODELINE_P)
13869 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
13870 * fileio.c (auto_save_1): Likewise.
13871 * insdel.c (check_markers): Likewise.
13872 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
13873 * undo.c (record_insert): Likewise.
13874 * vmsproc.c (child_sig): Likewise.
13875 * window.c (unshow_buffer, window_loop): Likewise.
13876 * xterm.c (x_erase_phys_cursor): Likewise.
13877
13878 2000-03-30 Gerd Moellmann <gerd@gnu.org>
13879
13880 * xfns.c (free_image_cache): Free the cache structure itself
13881 last, after all its members have been freed.
13882
13883 * lisp.h (xstrdup): Add prototype.
13884
13885 * alloc.c (xstrdup): Moved here from xfaces.c.
13886 (allocating_for_lisp): Variable removed.
13887 (lisp_malloc): Block input around the calls to malloc and mem_insert.
13888
13889 * xfaces.c (realize_tty_face): Use find_symbol_value instead
13890 of Fsymbol_value.
13891 (xstrdup): Moved to alloc.c.
13892
13893 2000-03-29 Ken Raeburn <raeburn@gnu.org>
13894
13895 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
13896
13897 * emacs.c (main): Fix sense of no-loadup test.
13898
13899 * config.in (ENABLE_CHECKING): Undef.
13900
13901 * lisp.h (struct interval): Replace "parent" field with a union of
13902 interval pointer and Lisp_Object; add new bitfield to use as
13903 discriminant. Change other flag fields to bitfields.
13904 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
13905 is defined and the supplied test fails, print a message and abort.
13906 (eassert): New macro. Use CHECK to provide an assert-like facility.
13907
13908 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
13909 pointers; abort if the value looks like a lisp object.
13910 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
13911 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
13912 Modify for new interval parent definition.
13913
13914 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
13915 (UNMARK_BALANCE_INTERVALS): Update references that need an
13916 addressable lisp object in the interval structure.
13917 (die): New function.
13918 (suppress_checking): New variable.
13919
13920 * intervals.c (interval_start_pos): Just return 0 if there's no
13921 parent object.
13922
13923 2000-03-29 Gerd Moellmann <gerd@gnu.org>
13924
13925 * lread.c (read1): Accept `.' (period) as symbol start like in CL
13926 and earlier Emacs versions.
13927
13928 * keyboard.c (Ftop_level): Cancel busy-cursor.
13929
13930 * eval.c (call_debugger): Cancel busy-cursor.
13931
13932 2000-03-29 Kenichi Handa <handa@etl.go.jp>
13933
13934 * search.c (Freplace_match): Adjust multibyteness of the current
13935 buffer and NEWTEXT. Free allocated memory before signaling an error.
13936
13937 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
13938
13939 * regex.c (analyse_first): New function obtained by ripping out most
13940 of re_compile_fastmap and generalizing it a little bit so that it
13941 can also just return whether a given (sub)pattern can match the empty
13942 string or not.
13943 (regex_compile): Use `analyse_first' to decide whether the loop-check
13944 needs to be done or not for *, +, *? and +? (the loop check is costly
13945 for non-greedy repetition).
13946 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
13947
13948 2000-03-28 Dave Love <fx@gnu.org>
13949
13950 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
13951
13952 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
13953
13954 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
13955
13956 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
13957 an expression.
13958 (enum re_opcode_t): Update description of succeed_n.
13959 (PATFETCH): Always define.
13960 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
13961 operators, char classes, shy-groups and intervals).
13962 Optimize special cases of intervals so as to only use succeed_n and
13963 jump_n when really needed.
13964 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
13965 that we don't have to handle the special cases any more.
13966 Simplify on_failure_jump handling as well.
13967
13968 2000-03-28 Jason Rumney <jasonr@gnu.org>
13969
13970 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
13971
13972 2000-03-27 Gerd Moellmann <gerd@gnu.org>
13973
13974 * s/freebsd.h (GC_SETJMP_WORKS): Define.
13975
13976 * s/msdos.h (GC_SETJMP_WORKS): Define.
13977
13978 * alloc.c (mark_maybe_object): New function.
13979 (mark_memory): Use it.
13980 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
13981 (setjmp_tested_p, longjmp_done): New variables.
13982 (test_setjmp): New function.
13983 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
13984 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
13985
13986 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
13987 to DEC_TEXT_POS and INC_TEXT_POS.
13988
13989 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
13990 with parameter MULTIBYTE_P.
13991
13992 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
13993
13994 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
13995 buffers because it looks for multibyte character byte sequences
13996 which don't exist in unibyte text.
13997
13998 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
13999
14000 * xfaces.c (register_color, unregister_color, unregister_colors)
14001 [DEBUG_X_COLORS]: New functions.
14002 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
14003
14004 * xfns.c (x_set_cursor_color): Get color reference counts right.
14005
14006 * xterm.c (x_copy_color): New function.
14007 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
14008
14009 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
14010 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
14011 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
14012 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
14013 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
14014 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
14015 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
14016 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
14017 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
14018 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
14019
14020 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
14021 names for handling per-buffer variables.
14022
14023 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
14024 instead of MAX_BUFFER_LOCAL_VARS.
14025 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
14026
14027 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
14028
14029 * xfns.c (x_specified_cursor_type): New function.
14030 (x_set_cursor_type): Use it.
14031
14032 * buffer.h (struct buffer): Add cursor_type.
14033
14034 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
14035
14036 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
14037 (print_partial_compiled_pattern, re_compile_fastmap):
14038 Handle new opcode.
14039 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
14040 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
14041 executing it as well as when popping it off the stack to find infinite
14042 loops in non-greedy repetition operators.
14043
14044 2000-03-26 Gerd Moellmann <gerd@gnu.org>
14045
14046 * doc.c (Qfunction_documentation): New variable.
14047 (syms_of_doc): Initialize Qfunction_documentation.
14048 (Fdocumentation): If FUNCTION is a symbol with non-nil
14049 `function-documentation' property, return a documentation derived
14050 from that.
14051
14052 * buffer.c (syms_of_buffer): Add default-cursor-type.
14053 (init_buffer_once): Don't let cursor_type have a local value
14054 in every buffer.
14055
14056 * xterm.c (x_display_and_set_cursor): Choose cursor depending
14057 on buffer-local value of cursor_type.
14058 (x_draw_bar_cursor): Add parameter WIDTH.
14059
14060 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
14061 (init_buffer_once): Set default cursor_type value to t.
14062 Mark cursor_type as local everywhere.
14063 (syms_of_buffer): New per-buffer variable cursor-type.
14064
14065 * buffer.h (struct buffer): Remove member local_var_flags,
14066 add local_flags.
14067 (MAX_BUFFER_LOCAL_VARS): New macro.
14068 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
14069 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
14070 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
14071 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
14072
14073 * print.c (print_object): Use new macros for per-buffer variables.
14074
14075 * category.c (Fset_category_table): Use new macros for per-buffer
14076 variables.
14077
14078 * buffer.c (buffer_permanent_local_flags): Make a char array.
14079 (max_buffer_local_idx): New variable.
14080 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
14081 for new handling of per-buffer variables.
14082 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
14083 (init_buffer_once): Initialize per-buffer vars differently.
14084 Set max_buffer_local_idx.
14085
14086 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
14087 variables.
14088
14089 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
14090
14091 * data.c (do_symval_forwarding, store_symval_forwarding)
14092 (find_symbol_value, set_internal, default_value, Fset_default)
14093 (Fkill_local_variable, Flocal_variable_p): Use new macros for
14094 per-buffer variables.
14095
14096 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
14097
14098 2000-03-24 Gerd Moellmann <gerd@gnu.org>
14099
14100 * xterm.c (x_term_init): Unblock input around call1 of
14101 Qvendor_specific_keysyms.
14102
14103 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
14104 (find_defun_start): Consider an open parenthesis in column 0
14105 a defun start only if open_paren_in_column_0_is_defun_start is set.
14106 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
14107
14108 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
14109
14110 * eval.c (Fautoload): Add entry in load-history (if after dump).
14111 * lread.c (load-history): Update docstring.
14112
14113 2000-03-24 Gerd Moellmann <gerd@gnu.org>
14114
14115 * indent.c (Fvertical_motion): Always use the current buffer.
14116 Temporarily change the window's buffer, if necessary.
14117
14118 2000-03-23 Gerd Moellmann <gerd@gnu.org>
14119
14120 * xterm.c (fast_find_position): Make sure not to consider rows
14121 not visible in the window.
14122
14123 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
14124
14125 * regex.c (enum syntaxcode): Provide default for non-Emacs.
14126 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
14127
14128 2000-03-22 Jason Rumney <jasonr@gnu.org>
14129
14130 * w32menu.c (single_submenu): Set help string to NULL if none.
14131 (w32_menu_show): Set help string correctly.
14132 (add-menu-item): Set help string in MIIM_DATA for menu item.
14133 Load SetMenuItemInfoA explicitly.
14134 (w32_menu_display_help): New function.
14135
14136 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
14137 (QCdata): Moved to xdisp.c.
14138
14139 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
14140 (Vw32_charset_to_codepage_alist): Removed.
14141 (Vw32_charset_info_alist): New variable.
14142 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
14143 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
14144 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
14145 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
14146 with TODO comment.
14147 (w32_codepage_for_font): Use Vw32_charset_info_alist.
14148 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
14149 Define Vw32_charset_info_alist and w32_charset symbols.
14150
14151 2000-03-22 Jason Rumney <jasonr@gnu.org>
14152
14153 * makefile.nt (w32bdf.obj): Update dependencies.
14154
14155 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
14156
14157 * w32fns.c: Include fontset.h after dispextern.h.
14158 (Fx_create_frame): Do not create fontset.
14159 (w32_load_system_font): Doc fix.
14160 (Fx_close_connection): Free full_name if it is not shared.
14161
14162 * w32term.c: Include fontset.h after dispextern.h.
14163 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
14164 Callers updated.
14165 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
14166 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
14167 (w32_font_is_double_byte): New function, needs body.
14168 (x_append_glyph): Set glyph->glyph_not_available_p.
14169 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
14170 it->charset. If it->multibyte_p is zero and it->c is a multibyte
14171 character, convert it to a unibyte character.
14172 (struct glyph_string): Delete member `charset'.
14173 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
14174 calculating it is found.
14175 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
14176 the case that per char metric is not available correctly.
14177 (x_fill_glyph_string): Handle the case that the specific glyph is
14178 not available correctly.
14179 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
14180 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
14181 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
14182 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
14183 fontset. Don't call FS_LOAD_FONT.
14184
14185 2000-03-22 Ken Raeburn <raeburn@gnu.org>
14186
14187 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
14188 (INT_LISPLIKE): New macro.
14189 (NULL_INTERVAL_P): Use it.
14190 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
14191 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
14192 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
14193
14194 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
14195 explicit references to "parent" field of struct interval and
14196 associated unclean type conversions.
14197 * intervals.c (create_root_interval, root_interval, rotate_right)
14198 (rotate_left, balance_possible_root_interval, split_interval_right)
14199 (split_interval_left, interval_start_pos, find_interval)
14200 (next_interval, previous_interval, update_interval)
14201 (adjust_intervals_for_insertion, delete_node, delete_interval)
14202 (adjust_intervals_for_deletion, merge_interval_right)
14203 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
14204 (copy_intervals_to_string): Likewise.
14205 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
14206 Likewise.
14207 * syntax.c (update_syntax_table): Likewise.
14208
14209 * intervals.c (reproduce_tree_obj): New function, like
14210 reproduce_tree but takes a Lisp_Object for the parent. Declare
14211 with prototype.
14212 (graft_intervals_into_buffer): Use it when appropriate.
14213 (reproduce_tree): Declare with prototype.
14214 (balance_possible_root_interval): Check that the parent is a lisp
14215 object before trying to examine its type.
14216
14217 2000-03-22 Gerd Moellmann <gerd@gnu.org>
14218
14219 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
14220 as strings only if both are known to be strings.
14221
14222 * s/openbsd.h (LIBS_TERMCAP): Undef.
14223
14224 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
14225
14226 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
14227 definitions for non-Emacs compilation.
14228 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
14229 outside of `#ifdef emacs'.
14230 (print_partial_compiled_pattern): Update.
14231 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
14232 (re_compile_fastmap): Merge handling of charset and charset_not (for
14233 emacs and non-emacs compilation as well).
14234 Similarly for (not)categoryspec and (not)syntaxspec.
14235 Don't use the fastmap when reaching `anychar' since the added
14236 complexity is not justified.
14237 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
14238 and (not)syntaxspec. Merge (not)categoryspec.
14239
14240 2000-03-22 Kenichi Handa <handa@etl.go.jp>
14241
14242 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
14243 (FACE_FOR_CHAR): Define them differently for the configuration of
14244 --without-x.
14245
14246 2000-03-21 Dave Love <fx@gnu.org>
14247
14248 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
14249 doc string.
14250
14251 2000-03-21 Gerd Moellmann <gerd@gnu.org>
14252
14253 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
14254 (lface_fully_specified_p): Don't check contents of
14255 LFACE_FONT_INDEX because that attribute is optional.
14256 (realize_x_face): Remove now unwarranted xassert.
14257
14258 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
14259
14260 The following changes are to make font selection based on
14261 characters, not charset. In addition, they recover fontset
14262 facilities while utilizing the new font selection mechanism.
14263
14264 * Makefile.in (fontset.o): Depend on dispextern.h.
14265
14266 * alloc.c (mark_face_cache): Don't mark face->registry.
14267
14268 * dispextern.h (struct glyph): New member glyph_not_available_p.
14269 Use 22 bits for face_id.
14270 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
14271 (struct face): Delete member registry, new member ascii_face.
14272 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
14273 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
14274 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
14275 (struct it): Delete member charset, new member glyph_not_available_p.
14276
14277 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
14278 (struct fontset_info, struct fontset_data): Structs removed.
14279 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
14280 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
14281 (fs_load_font, fs_query_fontset): Adjusted for new argument.
14282 (fs_free_face_fontset, fontset_font_pattern)
14283 (face_suitable_for_char_p, face_for_char)
14284 (make_fontset_for_ascii_face): Extern them.
14285 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
14286 (FS_LOAD_FACE_FONT): New macro.
14287
14288 * fontset.c: All codes rewritten or adjusted for the change of
14289 fontset implementation. Now fontset is represented by char table.
14290 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
14291 Variables removed.
14292 (my_strcasecmp): Function removed.
14293 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
14294 (AREF, ASIZE): New macros.
14295 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
14296 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
14297 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
14298 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
14299 (fontset_id_valid_p, font_family_registry, fontset_name)
14300 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
14301 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
14302 New functions.
14303 (fs_load_font): New arg FACE. Caller changed.
14304 (fs_query_fontset): Argument changed. Caller changed.
14305 (Fquery_fontset): call fs_query_fontset.
14306 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
14307 Functions removed.
14308 (clear_fontset_elements, check_registry_encoding)
14309 (check_fontset_name): New functions.
14310 (syms_of_fontset): Set char-table-extra-slots property of fontset
14311 to 3. Staticpro and initialize Vfontset_table and
14312 Vdefault_fontset. Defsubr fontset_font and fontset_list.
14313
14314 * frame.h (struct frame): Member `fontset_data' removed.
14315 (FRAME_FONTSET_DATA): Macro removed.
14316
14317 * frame.c (make_frame): Don't allocate f->fontset_data.
14318 (Fdelete_frame): Don't free f->fontset_data.
14319
14320 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
14321
14322 * xdisp.c (charset_at_position): Function removed.
14323 (init_iterator): Don't set member charset of struct `it'.
14324 (handle_face_prop, reseat_to_string, set_iterator_to_next)
14325 (next_element_from_display_vector, insert_left_trunc_glyphs):
14326 Likewise.
14327 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
14328 FACE_FOR_CHARSET.
14329 (get_next_display_element, append_space)
14330 (extend_face_to_end_of_line): Likewise.
14331
14332 * xfaces.c (Qx_charset_registry, Vface_default_registry):
14333 Variables removed.
14334 (clear_font_table, frame_update_line_height, load_face_font):
14335 Adjusted for the change of fontset implementation.
14336 (load_face_fontset_font): Function removed.
14337 (pixel_point_size): New function.
14338 (font_list): Argument type changed. Caller changed.
14339 (LFACE_FONT): New macro.
14340 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
14341 (set_lface_from_font_name): Type of arg FONTNAME is changed to
14342 Lisp_Object. Determine the font name by actually loading a font
14343 by the specified pattern. Set LFACE_FONT (lface) to the specified
14344 pattern. Even if a font is not found, don't try alternatives.
14345 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
14346 (set_font_frame_param): If `font' is specified in lface, use it.
14347 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
14348 (lface_same_font_attributes_p): Likewise.
14349 (make_realized_face): Arguent changed. Caller changed. Set
14350 face->ascii_face to face itself.
14351 (free_realized_face): Free face->fontset if face is for ASCII.
14352 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
14353 (deduce_unibyte_registry, x_charset_registry): Functions removed.
14354 (free_realized_multibyte_face): New function.
14355 (lookup_face, lookup_named_face, lookup_derived_face): Argument
14356 changed. Caller changed.
14357 (try_font_list): Argument type changed.
14358 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
14359 (choose_face_font): Argument changed. Handle fontset properly.
14360 (choose_face_fontset_font): Function removed.
14361 (realize_default_face, realize_named_face): Don't remove the
14362 former face here.
14363 (realize_face): Argument changed. Caller changed. Remove face
14364 with the arg former_face_id in advance. Load font for the new face.
14365 (realize_x_face): Argument changed. Caller changed. For a
14366 multibyte character, share fontset with base_face. For a single
14367 byte character, make a new realized fontset. Don't load a font here.
14368 (realize_tty_face): Argument changed. Caller changed.
14369 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
14370 (face_at_buffer_position): Don't check multibyte_p for returning
14371 DEFAULT_FACE_ID.
14372 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
14373 FACE_SUITABLE_FOR_CHARSET_P.
14374 (syms_of_xfaces): Remove code for Qx_charset_registry and
14375 Vface_default_registry.
14376
14377 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
14378 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
14379 (x_per_char_metric): Don't try FONT->default_char. Even if
14380 pcm->width is zero, glyph bits may exist.
14381 (x_encode_char): Always initialize char2b->byte1.
14382 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
14383 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
14384 (x_append_glyph): Set glyph->glyph_not_available_p.
14385 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
14386 it->charset. Handle the case that per char metric is not
14387 available. If it->multibyte_p is zero and it->c is a multibyte
14388 character, convert it to a unibyte character.
14389 (struct glyph_string): Delete member `charset'.
14390 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
14391 the case that per char metric is not available correctly.
14392 (x_fill_glyph_string): Handle the case that the specific glyph is
14393 not available correctly.
14394 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
14395 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
14396 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
14397 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
14398 fontset. Don't call FS_LOAD_FONT.
14399
14400 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
14401 (x_create_tip_frame): Likewise.
14402 (Fx_close_connection): Free full_name of font_info.
14403
14404 * fns.c (optimize_sub_char_table): New function.
14405 (Foptimize_char_table): New function.
14406 (syms_of_fns): Defsubr Soptimize_char_table.
14407
14408 2000-03-20 Gerd Moellmann <gerd@gnu.org>
14409
14410 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
14411 only if buffer is displayed in some window.
14412
14413 * xdisp.c (handle_single_display_prop): Initialize local `value'.
14414 (try_window_reusing_current_matrix): Don't call scroll run
14415 function if run's current and desired position are the same;
14416 this prevents cursor flickering.
14417
14418 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
14419
14420 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
14421
14422 * regex.c (RE_STRING_CHAR): New macro.
14423 (GET_CHAR_AFER_2): Remove.
14424 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
14425 (enum re_opcode_t): Remove on_failure_jump_exclusive.
14426 (print_partial_compiled_pattern, re_compile_fastmap)
14427 (re_match_2_internal): Remove on_failure_jump_exclusive.
14428 (regex_compile): Turn optimizable P+ loops into PP*, so that the
14429 optimization only need to work for * (ie. can use of_keep_string_jump).
14430 Remove the special case for .*\n since it is now covered by the general
14431 optimization.
14432 (re_search_2): Don't bother with `room'.
14433 (skip_one_char): New function.
14434 (skip_noops): Simplify since `memory' is not needed any more.
14435 (mutually_exclusive_p): Restructure slightly to use `switch' and
14436 add handling for "all" remaining cases.
14437 (re_match_2_internal): Change on_failure_jump_smart to use
14438 on_failure_keep_string_jump (and redirect the end-of-loop jump)
14439 rather than on_failure_jump_exclusive.
14440
14441 2000-03-19 Gerd Moellmann <gerd@gnu.org>
14442
14443 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
14444 number of bits per RGB because it's everywhere used as the depth
14445 of the visual.
14446
14447 * term.c (calculate_costs): Remove code dealing with X frames.
14448
14449 2000-03-19 Richard M. Stallman <rms@gnu.org>
14450
14451 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
14452
14453 2000-03-18 Gerd Moellmann <gerd@gnu.org>
14454
14455 * lread.c (read_integer): Unread the last char not consumed.
14456
14457 2000-03-17 Gerd Moellmann <gerd@gnu.org>
14458
14459 * xterm.c (x_update_window_cursor): Don't update in frames
14460 which are in the process of being deleted.
14461
14462 2000-03-16 Gerd Moellmann <gerd@gnu.org>
14463
14464 * Makefile.in (mostlyclean): Add `*.core'.
14465 (clean): Add `bootstrap-emacs'.
14466
14467 * lread.c (read_integer): New function.
14468 (read1): Support read syntax #o, #x, #b, #r.
14469
14470 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
14471
14472 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
14473 make sure POINTER_TO_OFFSET gives the same value before and after
14474 PREFETCH. Use `dfail' to guarantee "atomic" matching.
14475 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
14476 (debug): Now only active if > 0 rather than if != 0.
14477 (DEBUG_*): Update for the new meaning of `debug'.
14478 (print_partial_compiled_pattern): Add missing `succeed' case. Use
14479 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
14480 in `succeed_n', `jump_n' and `set_number_at'.
14481 (store_op1, store_op2, insert_op1, insert_op2)
14482 (at_begline_loc_p, at_endline_loc_p): Add prototype.
14483 (group_in_compile_stack): Move to after its arg's types are
14484 declared and add a prototype.
14485 (PATFETCH): Define in terms of PATFETCH_RAW.
14486 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
14487 (QUIT): Redefine as a nop except for NTemacs.
14488 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
14489 indentation of the greedy-op and shy-group code.
14490 (at_(beg|end)line_loc_p): Fix argument's types.
14491 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
14492 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
14493 (MATCHING_IN_FIRST_STRING): Remove.
14494 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
14495 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
14496 QUIT unconditionally.
14497
14498 2000-03-15 Gerd Moellmann <gerd@gnu.org>
14499
14500 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
14501 a sole completion.
14502
14503 * process.c (send_process): Add a hint that the function
14504 can call Lisp code to its comment.
14505
14506 * lread.c (load_dangerous_libraries): New variable.
14507 (Vbytecomp_version_regexp): New variable.
14508 (safe_to_load_p): New function.
14509 (Fload): Handle files not compiled with Emacs specially.
14510 (syms_of_lread): New Lisp variable load-dangerous-libraries.
14511
14512 2000-03-14 Gerd Moellmann <gerd@gnu.org>
14513
14514 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
14515
14516 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
14517 support functions only if HAVE_X11R6_XIM is defined.
14518 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
14519
14520 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
14521
14522 * xfns.c (X_I18N_INHIBITED): Don't define.
14523 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
14524 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
14525
14526 * config.in (HAVE_X_I18N): Moved here from xterm.h.
14527 (HAVE_X11R6_XIM): Define.
14528
14529 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
14530
14531 * xterm.c (x_term_init): Add support for X resource `synchronous'.
14532 If set, call XSynchronize.
14533
14534 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
14535
14536 * regex.c: Declare a new type `re_char' used throughout the code
14537 for the string char type. It's `const unsigned char' to match the
14538 rest of Emacs. Consistently make sure all pointers to strings use
14539 it and make sure all pointers into the pattern use `unsigned char'.
14540 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
14541 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
14542 code duplication.
14543
14544 * charset.h (GET_CHAR_AFTER_2): Remove.
14545 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
14546
14547 2000-03-12 Ken Raeburn <raeburn@gnu.org>
14548
14549 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
14550 variable before the invocation of YMF_PASS_LDFLAGS, in case both
14551 of them try to use backquotes.
14552
14553 2000-03-12 Dave Love <fx@gnu.org>
14554
14555 * unexelf.c: Restore changes of 1999-10-19.
14556 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
14557 fix its type and alignment; copy it from current process.
14558
14559 2000-03-12 Gerd Moellmann <gerd@gnu.org>
14560
14561 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
14562 has been found. Fix bug not computing timer's predecessor.
14563
14564 * fileio.c (Fread_file_name): Handle case that DIR contains a
14565 file name.
14566
14567 * window.c (Fsave_window_excursion): Doc fix.
14568
14569 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
14570
14571 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
14572
14573 * msdos.c (vga_installed): New function, code moved from
14574 dos_set_window_size.
14575 (Qbar, Qcursor_type, outside_cursor): New variables.
14576 (syms_of_msdos): Intern and staticpro them.
14577 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
14578 shape used outside Emacs when called for the first time.
14579 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
14580 cursor shape used outside Emacs.
14581 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
14582 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
14583 type has changed.
14584 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
14585 parameters specify the cursor. Make qreverse a global
14586 variable (renamed to Qreverse).
14587
14588 2000-03-09 Gerd Moellmann <gerd@gnu.org>
14589
14590 * fns.c (Fy_or_n_p): Cancel busy-cursor.
14591
14592 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
14593
14594 This is a big redesign of failure-stack and register handling, prompted
14595 by bugs revealed when trying to add shy-groups. Overall, what happened
14596 is that loops are now structured a little differently, groups can be
14597 shy and the code is a little simpler.
14598
14599 * regex.h: Update the copyright.
14600 (RE_SHY_GROUPS): New value.
14601 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
14602 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
14603
14604 * regex.c (enum re_opcode_t): Remove jump_past_alt,
14605 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
14606 on_failure_jump_(exclusive, loop and smart). Also fix the comment
14607 for (start|stop)_memory since they now only take one argument (the
14608 second has becomes unnecessary).
14609 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
14610 (print_compiled_pattern): Use %ld to printf long ints and flush to
14611 make debugging a little easier.
14612 (union fail_stack_elt): Make the integer unsigned.
14613 (struct fail_stack_type): Add a `frame' element.
14614 (INIT_FAIL_STACK): Init `frame' as well.
14615 (POP_PATTERN_OP): New macro for re_compile_fastmap.
14616 (DEBUG_PUSH, DEBUG_POP): Remove.
14617 (NUM_REG_ITEMS): Remove.
14618 (NUM_NONREG_ITEMS): Adjust.
14619 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
14620 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
14621 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
14622 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
14623 New macros.
14624 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
14625 address pushed is not the destination of the jump but the source
14626 of it instead.
14627 (NUM_FAILURE_ITEMS): Remove.
14628 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
14629 registers before the actual failure point). Don't hardcode any
14630 meaning for str==NULL anymore.
14631 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
14632 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
14633 Remove.
14634 (REG_UNSET_VALUE): Use NULL (why not?).
14635 (compile_range): Remove declaration since it doesn't exist.
14636 (struct compile_stack_elt_t): Remove inner_group_offset.
14637 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
14638 (regex_grow_registers): Remove dead code.
14639 (FIXUP_ALT_JUMP): New macro.
14640 (regex_compile): Add shy-groups Change loops to use
14641 on_failure_jump_smart&jump instead of
14642 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
14643 initial (dummy_failure_)jump. Remove c1_base (looks like unused
14644 variable to me). Use `jump' instead of `jump_past_alt' and don't
14645 bother with push_dummy_failure in alternatives since it is now
14646 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
14647 emacs' for (re)allocating the stack.
14648 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
14649 from loop when bufp->can_be_null rather than jumping to `done'.
14650 Avoid jumping backwards so as to ensure termination. Use
14651 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
14652 backreferences. Remove dead code in handling of `anychar'.
14653 (skip_noops, mutually_exclusive_p): New functions taken from the
14654 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
14655 improve mutually_exclusive_p to handle ".+\n".
14656 (lowest_active_reg, highest_active_reg)
14657 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
14658 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
14659 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
14660 variables. Push register (in `start_memory') on the stack rather
14661 than storing it in old_reg(start|end). Remove the cycle detection
14662 from `stop_memory', replaced by the use of on_failure_jump_loop
14663 for greedy loops. Add code for the new on_failure_jump_<foo>.
14664 Remove ad-hoc code in `on_failure_jump' to push more registers in
14665 the case of a loop. Take out code from `maybe_pop_jump' into
14666 separate functions and adapt it to the semantics of
14667 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
14668 and push_dummy_failure. Remove dummy_failure handling and
14669 handling of `failures to jump to on_failure_jump' (this last one
14670 was already dead code, it seems).
14671 (group_match_null_string_p, alt_match_null_string_p)
14672 (common_op_match_null_string_p): Remove.
14673
14674 2000-03-08 Dave Love <fx@gnu.org>
14675
14676 * config.in: Don't depend on __STDC__ for volatile.
14677 Add POINTER_TYPE, PTR, PROTOTYPES.
14678
14679 * hftctl.c, strftime.c: Use PROTOTYPES.
14680 * eval.c (find_handler_clause): Likewise.
14681
14682 * mem-limits.h: Use POINTER_TYPE.
14683
14684 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
14685 (memory_warnings): Declare using POINTER_TYPE.
14686
14687 2000-03-08 Gerd Moellmann <gerd@gnu.org>
14688
14689 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
14690
14691 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
14692
14693 * xfns.c: Remove obsolete code in #if 0.
14694 (Fx_focus_frame): New function.
14695
14696 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
14697
14698 * coding.c (coding_category_name): Add coding-category-utf-8,
14699 coding-category-utf-16-be, coding-category-utf-16-le.
14700 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
14701 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
14702 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
14703 (detect_coding_utf_8): New function.
14704 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
14705 UTF_16_LOW_SURROGATE_P): New macros.
14706 (detect_coding_utf_16): New function
14707 (detect_coding_mask): When priorities are specified, skip any
14708 categories that have `nil' coding-system. Fix bug of returning
14709 wrong mask when PRIORITIES is specified and detect_coding_XXX()
14710 returns a mask not set in PRIORITIES.
14711 (detect_eol_type_in_2_octet_form): New function.
14712 (detect_eol): selects detect_eol_type_XXX to call according to
14713 cooding->category_idx.
14714 (detect_coding_system): Remove `nil' coding-system in the result.
14715 (Fupdate_coding_systems_internal): Update all coding-categories.
14716
14717 * coding.h (CODING_CATEGORY_IDX_UTF_8)
14718 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
14719 New macros.
14720 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
14721 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
14722 (CODING_CATEGORY_IDX_UTF_16_LE)
14723 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
14724 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
14725 (CODING_CATEGORY_MASK_ANY): Include the above macros.
14726 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
14727
14728 2000-03-07 Gerd Moellmann <gerd@gnu.org>
14729
14730 * doc.c (Fdocumentation_property): If value is not a string,
14731 and doesn't refer to etc/DOC, evaluate it to obtain a string.
14732
14733 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
14734 close the display with XtCloseDisplay. This caused a bus error
14735 on OpenWindows.
14736
14737 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
14738 complete but not unique.
14739
14740 2000-03-06 Gerd Moellmann <gerd@gnu.org>
14741
14742 * process.c (send_process): Remove local variable `procname' that
14743 might become invalid when a GC happens. Instead, access the
14744 process name slot directly.
14745
14746 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
14747 orig_height if set.
14748
14749 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
14750 orig_height if set.
14751
14752 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
14753
14754 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
14755 glyph matrices have been freed.
14756
14757 2000-03-05 Gerd Moellmann <gerd@gnu.org>
14758
14759 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
14760 (bootstrap-temacs): Set LC_ALL to C like for temacs.
14761
14762 * xfns.c (QCdata): Moved to xdisp.c.
14763
14764 * xdisp.c (QCdata): Moved here from xfns.c.
14765 (syms_of_xdisp): Initialize QCdata.
14766
14767 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
14768
14769 * window.c (coordinates_in_window): Use
14770 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
14771 FRAME_INTERNAL_BORDER_WIDTH.
14772
14773 * xdisp.c (try_window_id): Recompute unchanged information if
14774 it is obviously invalid.
14775
14776 * xterm.c (x_term_init): Create a colormap if not using the
14777 default visual.
14778
14779 * xterm.h (select_visual): Change prototype.
14780
14781 * xfns.c (select_visual): Rewritten. Recognize user-specified
14782 visual classes.
14783 (visual_classes): New variable.
14784
14785 2000-03-04 Gerd Moellmann <gerd@gnu.org>
14786
14787 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
14788 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
14789 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
14790 (x_decode_color): Don't handle allocation of white and black specially.
14791 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
14792 XtNcolormap resources.
14793 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
14794 (Fx_create_frame): Initialize color members of x_output structure.
14795 (xpm_load): Pass colormap to XPM lib.
14796
14797 * xfaces.c (x_free_colors): Access colormap of frame using
14798 FRAME_X_COLORMAP. Be paranoid about freeing black and white
14799 when default colormap is used.
14800
14801 * xterm.c (x_term_init): Set Colormap member of x_display_info
14802 structure. Copy colormap if resource `privateColormap' is
14803 specified (PseudoColor only).
14804 (x_setup_relief_color): Access colormap of frame using
14805 FRAME_X_COLORMAP.
14806
14807 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
14808 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
14809
14810 2000-03-04 Jason Rumney <jasonr@gnu.org>
14811
14812 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
14813 other non-platform-specific equivalents.
14814 [WINDOWSNT]: Include w32term.h, fontset.h and define X
14815 specific functions and macros as their w32 equivalents where
14816 non-platform-specifics are not available.
14817 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
14818 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
14819 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
14820 (frame_update_line_height): Use macros to access f->output_data.
14821 (defined_color): Remove FIXME comments; fixed.
14822 (x_face_list_fonts, prepare_face_for_display): Put X specifics
14823 into #ifdef blocks. Add WINDOWSNT blocks.
14824 (Fx_list_fonts): Use macros for accessing font data.
14825 (set_lface_from_font_name): Different default fonts for X and
14826 WINDOWSNT.
14827 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
14828 scalable for backward compatibility.
14829 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
14830 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
14831
14832 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
14833 syms_of_w32faces.
14834
14835 * makefile.nt (w32faces.obj): Remove.
14836 (xfaces.obj): Add.
14837
14838 2000-03-03 Jason Rumney <jasonr@gnu.org>
14839
14840 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
14841 correct parameters.
14842
14843 2000-03-03 Ken Raeburn <raeburn@gnu.org>
14844
14845 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
14846 standard ELF definitions here if the system header does not.
14847
14848 2000-03-03 Gerd Moellmann <gerd@gnu.org>
14849
14850 * xterm.c (PER_CHAR_METRIC): Removed.
14851 (x_per_char_metric_1, x_default_char): New functions.
14852 (x_per_char_metric): If font's default char is invalid, return
14853 metrics of a suitably chosen usable default char.
14854 (x_draw_glyph_string_foreground): If font has an invalid default
14855 char, replace occurrences of unprintable chars with a suitably
14856 chosen usable default char.
14857
14858 2000-03-02 Gerd Moellmann <gerd@gnu.org>
14859
14860 * xterm.c (note_mouse_highlight): Return quickly if frame's
14861 glyph matrices have been freed.
14862
14863 * dispnew.c (free_glyphs): Block input while freeing matrices.
14864
14865 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
14866
14867 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
14868 Use x_free_colors.
14869
14870 * dispextern.h (x_free_colors): Add prototype.
14871
14872 * xfaces.c (x_free_colors): New function.
14873 (unload_color, free_face_colors): Use it.
14874
14875 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14876
14877 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
14878
14879 * window.c [MSDOS]: Include msdos.h.
14880
14881 2000-03-02 Dave Love <fx@gnu.org>
14882
14883 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
14884
14885 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
14886 set C_OPTIMIZE_SWITCH for gcc.
14887
14888 2000-03-02 Kenichi Handa <handa@etl.go.jp>
14889
14890 * coding.c (coding_save_composition): Be sure to allocate
14891 composition data area in coding even if there's no composition in
14892 the current run.
14893
14894 2000-03-01 Jason Rumney <jasonr@gnu.org>
14895
14896 * w32term.c: Equivalent changes to those made to xterm.c on
14897 2000-02-25 and 2000-02-24.
14898
14899 * w32fns.c: Equivalent changes to those made to xfns.c on
14900 2000-02-25 and 2000-02-21.
14901
14902 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
14903 correct line-end convention is followed.
14904
14905 * w32menu.c [HAVE_BOXES]: Remove #undef.
14906 (single_keymap_panes): Remove code for simulating checkmarks.
14907 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
14908 Remove code for drawing simulated checkmarks.
14909 (w32_menu_show): make unibyte help string correctly.
14910 (add_menu_item): draw standard Windows checkmarks. Draw radio
14911 buttons as radio buttons if possible.
14912
14913 2000-03-01 Gerd Moellmann <gerd@gnu.org>
14914
14915 * sysdep.c (start_of_text): Don't define this function for NetBSD
14916 with ELF.
14917
14918 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
14919 Don't define.
14920 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
14921 (LINKER): Don't undef if __NetBSD__ is defined.
14922
14923 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
14924
14925 * fileio.c [__NetBSD__]: Define `unix'.
14926
14927 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
14928
14929 2000-02-29 Gerd Moellmann <gerd@gnu.org>
14930
14931 * atimer.c (start_atimer): Don't abort when timers are stopped.
14932 (append_atimer_lists): New function.
14933 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
14934 arbitrary lists of stopped and running atimers.
14935
14936 * atimer.c (cancel_atimer): Handle canceling an atimer when
14937 some timers are stopped.
14938
14939 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
14940 after canceling it.
14941
14942 * fns.c (maybe_resize_hash_table): Handle case of new size
14943 coming out as being the same as old size.
14944
14945 2000-02-27 Jason Rumney <jasonr@gnu.org>
14946
14947 * makefile.nt: Add atimer.h to dependencies.
14948 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
14949 * w32console.c: Only disable window system features for dispextern.h
14950 (initialize_w32_display): Build a display info for the console.
14951 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
14952 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
14953 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
14954 as 2 button mice.
14955 * w32gui.h (struct W32FontStruct): Revert last change after change
14956 to xdisp.c.
14957 * w32menu.c (single_submenu): Set up help string.
14958 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
14959 (w32_dialog_show): Set up help string.
14960 * w32term.c (w32_display_info_for_display): Remove unused function.
14961 (w32_draw_bitmap): Use pre-built bitmaps.
14962 (w32_initialize_display_info): New function to initialize parts of
14963 display info that are common to both GUI and console frames.
14964 (w32_term_init): Use w32_initialize_display_info. Do not set
14965 Vw32_num_mouse_buttons here, as it is not called for console
14966 frames. Build bitmaps for indicating truncated lines etc.
14967 (x_delete_display): Destroy pre-built bitmaps.
14968 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
14969 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
14970
14971 2000-02-27 Dave Love <fx@gnu.org>
14972
14973 * lisp.h: Add a bunch of prototypes.
14974
14975 2000-02-26 Kenichi Handa <handa@etl.go.jp>
14976
14977 * keyboard.c (read_char): Set `usec' correctly.
14978
14979 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
14980
14981 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
14982 `lambda', set reg[RRR] to the map index.
14983 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
14984 reg[RRR] to 0. Otherwise, set it to -1.
14985
14986 2000-02-25 Gerd Moellmann <gerd@gnu.org>
14987
14988 * emacs.c (main): Remove code snippet commented out with `//'.
14989
14990 2000-02-25 Richard M. Stallman <rms@gnu.org>
14991
14992 * fileio.c (Ffile_symlink_p): If result starts with a `/'
14993 and contains a `:', prepend `/:'.
14994
14995 * window.c (select_window_1): If selected_window is nil,
14996 don't "swap out" the buffer's point.
14997 (Fset_window_configuration): Set selected_window to nil
14998 before calling Fselect_window.
14999 (unshow_buffer): Don't set point in buffer from window's point
15000 if another more recently selected window also shows the buffer.
15001
15002 2000-02-25 Gerd Moellmann <gerd@gnu.org>
15003
15004 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
15005
15006 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
15007 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
15008 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
15009 New variables.
15010 (DEFAULT_BUSY_CURSOR_DELAY): New define.
15011 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
15012 (hide_busy_cursor): New functions.
15013 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
15014
15015 * minibuf.c (read_minibuf): Cancel busy-cursor.
15016
15017 * keyboard.c (command_loop_1): Call start_busy_cursor before
15018 Fcommand_execute and cancel_busy_cursor after it.
15019 (timer_check): Remove busy-cursor code.
15020 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
15021 cursor timer.
15022
15023 * process.c (wait_reading_process_input): Remove busy-cursor code.
15024
15025 * eval.c (Fsignal): Call cancel_busy_cursor instead of
15026 Fx_hide_busy_cursor.
15027
15028 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
15029 Remove prototyoes.
15030 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
15031
15032 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
15033
15034 * xterm.c (XTread_socket): Remove busy-cursor code.
15035
15036 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
15037 (build_frame_matrix_from_leaf_window): Put code handling
15038 glyph row's not being a slice of a frame row in #if 0.
15039 (sync_window_with_frame_matrix_rows): New function.
15040 (frame_row_to_window): New function.
15041 (mirror_line_dance): Handle copies between windows.
15042
15043 * lread.c (Fload): Use `xfree' instead of `free'.
15044 (init_obarray): Use `xmalloc' instead of `malloc'.
15045
15046 * window.c (Fset_window_buffer): Set WINDOW to the window
15047 after decoding.
15048 (coordinates_in_window): Take frame's internal border width
15049 into account.
15050
15051 2000-02-24 Gerd Moellmann <gerd@gnu.org>
15052
15053 * xterm.c (x_display_and_set_cursor): Display cursor of
15054 non-selected windows depending on the setting of
15055 cursor_in_non_selected_windows.
15056
15057 * xdisp.c (cursor_in_non_selected_windows): New variable.
15058 (syms_of_xdisp): DEFVAR_BOOL it.
15059
15060 2000-02-23 Gerd Moellmann <gerd@gnu.org>
15061
15062 * data.c (Fstring_to_number): If number is greater than what
15063 fits into an integer, return a float.
15064
15065 * eval.c (specbind): Remove references to
15066 keyword_symbols_constant_flag.
15067
15068 * data.c (keyword_symbols_constant_flag): Removed.
15069 (Fmakunbound, set_internal, syms_of_data): Remove references to
15070 keyword_symbols_constant_flag.
15071
15072 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
15073
15074 2000-02-23 Kenichi Handa <handa@etl.go.jp>
15075
15076 * syntax.c (multibyte_syntax_as_symbol): New variable.
15077 (syms_of_syntax): Declare it as a Lisp variable.
15078 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
15079 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
15080 nonzero, treat all multibyte characters as symbol.
15081 (init_syntax_once): Give syntax `word' to all multibyte characters.
15082
15083 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
15084
15085 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
15086 a deleted frame.
15087
15088 2000-02-21 Gerd Moellmann <gerd@gnu.org>
15089
15090 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
15091
15092 * xfns.c (x_window_to_frame, x_any_window_to_frame)
15093 (x_non_menubar_window_to_frame): Check the busy-cursor window.
15094
15095 2000-02-21 Dave Love <fx@gnu.org>
15096
15097 * frame.c (Vmouse_position_function): New variable.
15098 (Fmouse_position): Use it.
15099 (syms_of_frame): Install it.
15100
15101 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
15102
15103 2000-02-20 Gerd Moellmann <gerd@gnu.org>
15104
15105 * fileio.c (Finsert_file_contents): Unbind the binding of
15106 standard-output done by temp_output_buffer_setup.
15107
15108 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
15109 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
15110 (specbind, unbind_to): Handle most common case of non-constant
15111 symbol with trivial value specially.
15112
15113 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
15114
15115 2000-02-20 Richard M. Stallman <rms@gnu.org>
15116
15117 * data.c (Fmake_variable_buffer_local): Doc fix.
15118 Init found_for_buffer to 0.
15119 (Fmake_variable_frame_local): If the variable has already
15120 been buffer-local, set the check_frame field.
15121
15122 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
15123
15124 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
15125 produced for CODING_MODE_LAST_BLOCK requires.
15126
15127 2000-02-18 Dave Love <fx@gnu.org>
15128
15129 * keyboard.c (echo_keystrokes): Remove declaration.
15130 (Vecho_keystrokes) New variable.
15131 (read_char, record_menu_key, read_key_sequence): Use it to allow
15132 use of float value.
15133 (syms_of_keyboard): Change Vecho_keystrokes declaration.
15134
15135 * lread.c: Undef feature selection macros before defining.
15136
15137 2000-02-18 Gerd Moellmann <gerd@gnu.org>
15138
15139 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
15140 for symbols other than the symbol in question.
15141
15142 2000-02-17 Dave Love <fx@gnu.org>
15143
15144 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
15145
15146 2000-02-17 Gerd Moellmann <gerd@gnu.org>
15147
15148 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
15149
15150 * alloc.c (enum mem_type): Compile unconditionally.
15151
15152 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
15153
15154 * xfaces.c (tty_defined_color): Don't return faulire indication
15155 for unspecified-fg and unspecified-bg pseudo-colors.
15156
15157 2000-02-17 Gerd Moellmann <gerd@gnu.org>
15158
15159 * alloc.c (mark_object): Don't mark symbol names in pure space.
15160 (gc_sweep): Don't unmark symbol names in pure space.
15161
15162 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
15163 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
15164 [GC_MARK_STACK]: New defines.
15165 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
15166 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
15167
15168 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
15169
15170 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
15171 allocate_buffer instead of xmalloc.
15172
15173 * alloc.c (toplevel): Include setjmp.h.
15174 (PURE_POINTER_P): New define.
15175 (enum mem_type) [GC_MARK_STACK]: New enumeration.
15176 (Vdead) [GC_MARK_STACK]: New variable.
15177 (lisp_malloc): Add parameter TYPE, call mem_insert if
15178 GC_MARK_STACK is defined.
15179 (allocate_buffer): New function.
15180 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
15181 (free_float) [GC_MARK_STACK]: Set type to Vdead.
15182 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
15183 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
15184 (MEM_NIL) [GC_MARK_STACK]: New define.
15185 (struct mem_node) [GC_MARK_STACK]: New structure.
15186 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
15187 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
15188 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
15189 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
15190 (mark_stack) [GC_MARK_STACK]: New functions.
15191 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
15192 (clear_marks): Removed.
15193 (gc_sweep): Set free conses' car, free floats' type, free
15194 symbols' function to Vdead. Use lisp_free to free buffers.
15195 (init_alloc_once): Initialize Vdead.
15196 (survives_gc_p): Return non-zero for pure objects.
15197
15198 * alloc.c: Add comments throughout the file.
15199
15200 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
15201 that unblocks alarms.
15202
15203 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
15204 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
15205 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
15206
15207 * frame.c (make_frame): Set frame initiallly to `garbaged'.
15208
15209 2000-02-17 Kenichi Handa <handa@etl.go.jp>
15210
15211 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
15212 avoid infinite error signaling. Allocate sufficient memory for
15213 eol_str in the case that eoltype is Lisp_Int.
15214
15215 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
15216
15217 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
15218 depends on the previous behavior.
15219
15220 2000-02-16 Gerd Moellmann <gerd@gnu.org>
15221
15222 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
15223
15224 2000-02-15 Gerd Moellmann <gerd@gnu.org>
15225
15226 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
15227
15228 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
15229 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
15230 write(2).
15231
15232 2000-02-15 Richard M. Stallman <rms@gnu.org>
15233
15234 * data.c (set_internal): Don't make variable buffer-local
15235 if within a let-binding for the same buffer.
15236 (let_shadows_buffer_binding_p): New function.
15237
15238 * eval.c (specbind): For buffer-local value,
15239 record the current buffer also.
15240 (unbind_to): Cope with that change.
15241
15242 2000-02-15 Gerd Moellmann <gerd@gnu.org>
15243
15244 * window.c (Fsave_window_excursion): Doc fix.
15245
15246 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
15247
15248 * syntax.c (back_comment): Make sure we only consider comment-starters
15249 of the relevant style and return -1 in case of a failure to find the
15250 beginning of the comment.
15251 (Fforward_comment): If back_comment fails, go back to the position just
15252 after the comment-end.
15253 (scan_lists): Add comment describing a very minor bug.
15254
15255 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
15256
15257 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
15258 `completion-regexp-list' in the docstring.
15259
15260 2000-02-14 Dave Love <fx@gnu.org>
15261
15262 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
15263
15264 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
15265
15266 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
15267 to Emacs' syntax. Also fix the comment about set/not-set meanings
15268 since Emacs syntax is not the value 0 any more.
15269 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
15270 since it's now part of RE_SYNTAX_EMACS.
15271
15272 2000-02-12 Dave Love <fx@gnu.org>
15273
15274 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
15275
15276 2000-02-12 Gerd Moellmann <gerd@gnu.org>
15277
15278 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
15279
15280 2000-02-12 Dave Love <fx@gnu.org>
15281
15282 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
15283
15284 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
15285 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
15286 * s/hpux.h: Don't define HAVE_VFORK.
15287
15288 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
15289
15290 * s/nextstep.h: Don't define HAVE_ALLOCA.
15291
15292 * config.in: Add vfork bits.
15293
15294 2000-02-12 Gerd Moellmann <gerd@gnu.org>
15295
15296 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
15297 unwind function to undo the effect of stopping atimers.
15298
15299 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
15300
15301 * atimer.c (stopped_atimers): New variable.
15302 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
15303 New functions.
15304
15305 * atimer.h (stop_other_atimers, run_all_atimers)
15306 (unwind_stop_other_atimers): Add function prototypes.
15307
15308 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
15309
15310 2000-02-11 Ken Raeburn <raeburn@gnu.org>
15311
15312 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
15313 library may depend on jpeg.
15314 (atimer.o): Depends on atimer.c.
15315
15316 2000-02-11 Kenichi Handa <handa@etl.go.jp>
15317
15318 * insdel.c (del_range_1): Call update_compositions.
15319 (del_range_both): Call update_compositions just once..
15320
15321 2000-02-10 Dave Love <fx@gnu.org>
15322
15323 * xfns.c (create_frame_xic): Fix initialization of automatic
15324 aggregates for pcc.
15325
15326 2000-02-09 Kenichi Handa <handa@etl.go.jp>
15327
15328 * ccl.c (CCL_MAKE_CHAR): New macro.
15329 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
15330 registers by CCL_MAKE_CHAR before calling translate_char.
15331 <CCL_TranslateCharacterConstTbl> Likewise.
15332
15333 2000-02-08 Dave Love <fx@gnu.org>
15334
15335 * lread.c (__EXTENSIONS__): Define.
15336
15337 2000-02-08 Gerd Moellmann <gerd@gnu.org>
15338
15339 * puresize.h (BASE_PURESIZE): Increase to 650000.
15340
15341 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
15342
15343 * msdos.c (XMenuActivate): Turn off the cursor after displaying
15344 the help message.
15345
15346 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
15347
15348 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
15349 md, mh, mb, mr, and me to the fake termcap entry.
15350
15351 2000-02-06 Ken Raeburn <raeburn@gnu.org>
15352
15353 * sound.c (sound_cleanup): Don't call device close routine if the
15354 function pointer is null.
15355
15356 2000-02-06 Andrew Innes <andrewi@gnu.org>
15357
15358 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
15359 around image definitions and prototypes.
15360 (gamma_correct) [WINDOWSNT]: New prototype.
15361
15362 * w32term.c (x_make_frame_visible): Replace call to
15363 input_poll_signal with poll_for_input.
15364
15365 * window.c [WINDOWSNT]: Include w32term.h.
15366
15367 * xdisp.c [WINDOWSNT]: Include w32term.h.
15368
15369 * makefile.nt: Add dependencies on w32gui.h.
15370 (OBJ1): Include atimer.obj.
15371 ($(BLD)\atimer.obj): New dependency rule.
15372
15373 * w32.c (sigmask): New function (does nothing).
15374 (sigunblock): Ditto.
15375
15376 * frame.c [WINDOWSNT]: Include w32term.h.
15377
15378 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
15379
15380 * lread.c (syms_of_lread): Fix literal newlines.
15381
15382 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
15383 the string constant limit (2048 bytes) in MSVC.
15384 (main): Ditto.
15385
15386 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
15387
15388 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
15389 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
15390 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
15391 dispatch the event.
15392
15393 2000-02-04 Dave Love <fx@gnu.org>
15394
15395 * fileio.c: Remove some unused vars.
15396 (_GNU_SOURCE): Define (for euidaccess).
15397
15398 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
15399
15400 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
15401 gcpro1, gcpro2.
15402 (read_minibuf): Deal with allow_props correctly.
15403
15404 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
15405
15406 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
15407
15408 2000-02-03 Ken Raeburn <raeburn@gnu.org>
15409
15410 * search.c (compile_pattern): If a cache entry has a nil regexp,
15411 fill in that entry instead of clobbering a previously cached
15412 string regexp.
15413
15414 2000-02-02 Ken Raeburn <raeburn@gnu.org>
15415
15416 * puresize.h (BASE_PURESIZE): Increase to 610000.
15417
15418 2000-02-02 Gerd Moellmann <gerd@gnu.org>
15419
15420 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
15421 can GC.
15422
15423 2000-02-02 Kenichi Handa <handa@etl.go.jp>
15424
15425 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
15426 instead of incrementing ic directly.
15427 <CCL_WriteExprConst> Likewise.
15428 <ccl_set_expr>: Set ic to jump_address.
15429
15430 * fileio.c (e_write): Fix the handling of
15431 CODING_FINISH_INSUFFICIENT_SRC.
15432
15433 2000-02-01 Dave Love <fx@gnu.org>
15434
15435 * editfns.c (Fpropertize): Doc fix.
15436
15437 * process.c (Fstart_process): Doc fix.
15438
15439 * eval.c: Fix various doc strings not to duplicate information
15440 from help-manyarg-func-alist.
15441
15442 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
15443
15444 * doc.c (Vhelp_manyarg_func_alist): New variable.
15445 (Fdocumentation): Use it.
15446 (syms_of_doc): Define it.
15447
15448 2000-01-31 Gerd Moellmann <gerd@gnu.org>
15449
15450 * xterm.c (xim_open_dpy): Remove unused local variable.
15451
15452 * emacs.c (USAGE): Use term `display options' instead of `X options'.
15453
15454 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
15455 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
15456
15457 * fns.c (sweep_weak_table): New function.
15458 (sweep_weak_hash_tables): Use it. Keep on marking until there
15459 is no more change.
15460
15461 2000-01-30 Gerd Moellmann <gerd@gnu.org>
15462
15463 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
15464 that XTread_socket does not crash by trying to call XNoOp on a
15465 closed display.
15466
15467 2000-01-30 Jason Rumney <jasonr@gnu.org>
15468
15469 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
15470 Change selected_frame to SELECTED_FRAME ().
15471 (w32_console_mouse_position): Remove #ifndef MULE from around
15472 `insist' parameter.
15473
15474 * makefile.nt: Remove dosfns.obj.
15475
15476 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
15477
15478 * w32fns.c (w32_defined_color): Check for valid frame before
15479 applying gamma correction. Eliminate dependency on frame elsewhere.
15480 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
15481 (w32_to_x_font): Use resx and resy not height_in and width_in.
15482 (x_to_w32_font): Doc fix.
15483 (xlfd_strip_height): New function to strip and return font height.
15484 (w32_font_match): Compare height separately from rest of xlfd
15485 spec, using xlfd_strip_height.
15486
15487 * w32term.c (w32_term_init): Swap resx and height_in, resy and
15488 width_in. Use w32_defined_color in place of defined_color.
15489
15490 * w32faces.c: Merge more of DOS and X specifics in preparation for
15491 merge with xfaces.c.
15492 (defined_color): Remove FIXME comment.
15493 (tty_color_name): Provide w32-specific function.
15494 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
15495
15496 * w32console.c (turn_on_face, turn_off_face): Removed.
15497 (w32_face_attributes): New function.
15498 (Global_variables): Reduce scope where possible.
15499 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
15500 fill attribute.
15501 (hl_mode): Don't modify text attributes.
15502 (write_glyphs): Don't do anything if len <= 0. Use
15503 w32_face_attributes to get attributes for drawing. Write
15504 terminating codes using char_attr_normal.
15505 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
15506 (update_begin, update_end): Likewise.
15507 (vga_stdcolor_name): New function.
15508 (initialize_w32_display): Remove char_attr_reverse and char_attr.
15509 (Fset_screen_color): Remove char_attr_reverse.
15510
15511 2000-01-29 Gerd Moellmann <gerd@gnu.org>
15512
15513 * xfns.c (xic_set_preeditarea): Take window parameter and
15514 window-relative pixel-positions.
15515
15516 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
15517 is its frame's selected window.
15518 (xim_instantiate_callback): Likewise.
15519
15520 * xfns.c (x_create_im): Removed.
15521 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
15522 (supported_xim_styles): Renamed from supported_styles.
15523 (best_xim_style): Renamed from best_style.
15524 (create_frame_xic): Renamed from xic_create_frame.
15525 (free_frame_xic): Renamed from xic_destroy_frame.
15526
15527 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
15528
15529 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
15530 our frames, call XFilterEvent with 2nd parameter `None'.
15531 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
15532 returning XBufferOverflow.
15533 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
15534 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
15535 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
15536 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
15537 (xim_initialize, xim_close)
15538 [HAVE_X_I18N && HAVE_X11R6]: New functions.
15539 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
15540 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
15541 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
15542
15543 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
15544 and `xim_styles'.
15545 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
15546 `xic_style' and `xic_xfs'.
15547 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
15548 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
15549 (FRAME_XIM): Removed.
15550
15551 * xfns.c (supported_styles): New variable.
15552 (DEFAULT_STYLE, DEFAULT_FONT): New macros
15553 (xic_create_xfontset, best_style, xic_create_frame)
15554 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
15555 (xic_set_xfontset): New functions.
15556
15557 2000-01-28 Dave Love <fx@gnu.org>
15558
15559 * s/irix6-5.h: Revert last change after change to irix5-0.h.
15560
15561 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
15562
15563 2000-01-28 Gerd Moellmann <gerd@gnu.org>
15564
15565 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
15566 for *scratch* if it already existed.
15567
15568 * emacs.c (USAGE): New macro.
15569 (main): Use it to display usage information.
15570
15571 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
15572
15573 Support for the menu-help feature:
15574
15575 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
15576
15577 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
15578 part of the line to the termscript file.
15579 (IT_clear_to_end): Clear the entire line, not just its beginning.
15580 (menu_help_message, prev_menu_help_message): New variables.
15581 (IT_menu_make_room): Make room for the help_text member.
15582 (IT_menu_display): New argument disp_help; all callers changed.
15583 If disp_help is non-zero, store the help text of the active menu
15584 item in menu_help_message.
15585 (XMenuAddPane): Initialize the help_text member to NULL.
15586 (XMenuAddSelection): New argument help_text. Store it in the
15587 XMenu structure.
15588 (XMenuActivate): New argument help_callback. If the value of
15589 menu_help_message has changed since the last time, display the
15590 menu help message text while waiting for the mouse to move. Clear
15591 the echo area before exiting.
15592 (XMenuDestroy): Free the help_text member.
15593
15594 2000-01-27 Gerd Moellmann <gerd@gnu.org>
15595
15596 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
15597 XMenuAddSelection. Pass help callback to XMenuActivate.
15598 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
15599
15600 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
15601
15602 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
15603 and EMACS_SET_USECS.
15604
15605 2000-01-26 Dave Love <fx@gnu.org>
15606
15607 * editfns.c (Fchar_after, Fchar_before): Doc fix.
15608
15609 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
15610 an error may be signalled.
15611
15612 2000-01-26 Gerd Moellmann <gerd@gnu.org>
15613
15614 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
15615 LD_SWITCH_SYSTEM inherited from irix5-0.h.
15616
15617 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
15618
15619 2000-01-25 Gerd Moellmann <gerd@gnu.org>
15620
15621 * charset.c (Fstring): If there is a multibyte char among
15622 the args, always return a multibyte string.
15623
15624 2000-01-25 Gerd Moellmann <gerd@gnu.org>
15625
15626 * sysdep.c (sys_select): Turn atimers off and on instead of
15627 recording and restoring old alarm handler
15628
15629 * process.c (toplevel): Include atimer.h.
15630 (create_process_1): Rewritten.
15631 (create_process): Use atimers instead of alarm.
15632 (wait_reading_process_input) [hpux]: Turn atimers off instead
15633 of turning off SIGALRM.
15634 (wait_reading_process_input): Turn off atimers instead off
15635 calling stop_polling.
15636
15637 * emacs.c (main): Call init_atimer.
15638
15639 * keyboard.c (toplevel): Include systime.h and atimer.h.
15640 (polling_for_input): Removed because unused.
15641 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
15642 (poll_timer): New variable.
15643 (poll_for_input, poll_for_input_1): New functions.
15644 (start_polling, stop_polling): Rewritten.
15645
15646 * keyboard.h (polling_for_input): Removed.
15647
15648 * atimer.h, atimer.c: New files.
15649
15650 * Makefile.in (obj): Add atimer.o.
15651 (atimer.o): New target.
15652
15653 * blockinput.h (pending_atimers): Add extern declaration.
15654 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
15655
15656 * lisp.h (popup_activated_flag): Add extern declaration.
15657
15658 * xmenu.c (popup_activated_flag): Make externally visible.
15659 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
15660 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
15661
15662 * xterm.c (toplevel): Include atimer.h.
15663 (toolkit_scroll_bar_interaction): New variable.
15664 (Fxt_process_timeouts): Removed.
15665 (x_process_timeouts): New function.
15666 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
15667 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
15668 (x_make_frame_visible): Call poll_for_input_1 instead of
15669 input_poll_signal. Don't call alarm.
15670 (x_initialize): Install timer calling x_process_timeouts.
15671
15672 2000-01-24 Dave Love <fx@gnu.org>
15673
15674 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
15675 Don't use -cckr -- apparently not now necessary.
15676
15677 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
15678
15679 * msdos.c (IT_menu_display): Truncate long menu lines at the right
15680 screen boundary.
15681
15682 2000-01-23 Jason Rumney <jasonr@gnu.org>
15683
15684 * w32fns.c (w32_defined_color): Apply gamma correction before
15685 trying to map to the palette.
15686 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
15687 to w32_clear_rect.
15688
15689 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
15690 here. Callers changed to always pass real device context.
15691 (w32_draw_bitmap): Likewise.
15692 (w32_get_glyph_overhangs): Likewise.
15693 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
15694 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
15695 pfnSetScrollInfo and SetScrollRange.
15696 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
15697 back into MULE characters after decoding them.
15698 (x_get_glyph_face_and_encoding): Likewise.
15699 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
15700 GetCharABCWidthsW fails, since this is defined on Windows 9x.
15701 (x_produce_glyphs): Calculate per char metrics for a character
15702 that we know exists in default font when font_not_found_p is true.
15703
15704 2000-01-22 Jason Rumney <jasonr@gnu.org>
15705
15706 * makefile.nt (intervals.obj, composite.obj): New modules.
15707 (composite.h): Added as dependency where appropriate.
15708
15709 * w32gui.h (XGCValue): New struct for emulating X GCs.
15710
15711 * w32term.h (XCharStruct): New struct for emulating X.
15712
15713 * w32console.c (turn_on_face, turn_off_face): New functions.
15714 (change_line_highlight): New prototype for new redisplay.
15715 (write_glyphs): Support multibyte text. Support faces.
15716
15717 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
15718
15719 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
15720 throughout. struct frame * in place of FRAME_PTR.
15721 Skeleton support for images, toolbars, tooltips from xfns.c.
15722 (Fx_create_frame): Use system default for default scroll bar width.
15723 (w32_get_arg): Renamed from x_get_arg.
15724 (Fx_file_dialog): New function.
15725 (w32_list_fonts): Check cache before asking system.
15726 (Vw32_enable_synthesized_fonts): New variable.
15727 (Vw32_enable_italics): Obsolete, removed.
15728
15729 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
15730 Use SELECTED_FRAME macro.
15731
15732 * w32menu.c: Add skeleton support for help strings on menus.
15733 (add_menu_item): Native checkbox and radio support added, but not
15734 yet enabled due to bugs.
15735 (push_menu_item): Add parameters type, selection and help.
15736 Callers updated.
15737 Formatting changes to reduce unnecessary diffs with xmenu.c.
15738
15739 * w32select.c (Fw32_set_clipboard_data): Update call to
15740 find_charset_in_str.
15741
15742 * w32term.c: Complete rewrite for new redisplay based on new
15743 xterm.c with necessary sections merged back in from old w32term.c.
15744
15745 2000-01-21 Richard M. Stallman <rms@gnu.org>
15746
15747 * data.c (set_internal): Further fix in same criterion.
15748
15749 2000-01-20 Richard M. Stallman <rms@gnu.org>
15750
15751 * data.c (set_internal): Fix the criteria for whether
15752 to swap out the old cached binding.
15753
15754 2000-01-19 Dave Love <fx@gnu.org>
15755
15756 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
15757
15758 2000-01-18 Kenichi Handa <handa@etl.go.jp>
15759
15760 * regex.c (re_compile_fastmap): While checking a range table for
15761 `charset', skip flag bits for a character class correctly.
15762
15763 2000-01-17 Gerd Moellmann <gerd@gnu.org>
15764
15765 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
15766
15767 * xfns.c (x_window): Call lw_create_widget with new parameter list.
15768
15769 * widget.c (EmacsFrameSetCharSize): Change size of children first
15770 because of problems with main window geometry management under Lesstif.
15771
15772 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
15773 MENU_ITEMS_ITEM_.*.
15774 (MENU_ITEMS_ITEM_HELP): New enumerator.
15775 (push_menu_item): Add parameter HELP. Record help in menu_items.
15776 (single_menu_item, single_submenu, list_of_items): Call
15777 push_menu_item with new parameter.
15778 (single_submenu): Set help string in widget value.
15779 (menu_highlight_callback): New function.
15780 (set_frame_menubar): Call lw_create_widget with new
15781 parameter list.
15782 (xmenu_show, xdialog_show): Ditto.
15783
15784 2000-01-13 Gerd Moellmann <gerd@gnu.org>
15785
15786 * sound.c (Fplay_sound): Improve doc string.
15787
15788 2000-01-11 Richard M. Stallman <rms@gnu.org>
15789
15790 * lisp.h (set_internal): Enter the new arg.
15791
15792 * eval.c (specbind): Record buffer-local variables specially,
15793 indicating which buffer's binding was saved.
15794 (unbind_to): Restore buffer-local variables specially
15795 in the proper buffer.
15796
15797 * data.c (set_internal): New arg BUF.
15798
15799 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
15800 * data.c (Fset): Pass new arg to set_internal.
15801 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
15802
15803 2000-01-11 Gerd Moellmann <gerd@gnu.org>
15804
15805 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
15806
15807 2000-01-11 Richard M. Stallman <rms@gnu.org>
15808
15809 * minibuf.c (Ftry_completion): Doc fix.
15810
15811 2000-01-11 Gerd Moellmann <gerd@gnu.org>
15812
15813 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
15814 vector, too.
15815
15816 2000-01-11 Andreas Schwab <schwab@suse.de>
15817
15818 * coding.c (code_convert_region): Initialize total_skip.
15819
15820 2000-01-08 Dave Love <fx@gnu.org>
15821
15822 * eval.c (Fuser_variable_p): Check customizability too.
15823
15824 2000-01-07 Gerd Moellmann <gerd@gnu.org>
15825
15826 * minibuf.c (Fcompleting_read): Doc fix.
15827
15828 2000-01-05 Gerd Moellmann <gerd@gnu.org>
15829
15830 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
15831 -L /usr/local/lib.
15832
15833 * xfns.c (x_create_im): New function to set IM and IC of a frame.
15834 Check that input style is supported before trying to create an
15835 IC for it.
15836 (x_window): Call x_create_im.
15837
15838 2000-01-04 Gerd Moellmann <gerd@gnu.org>
15839
15840 * xfns.c (current_gif_memory_src): New variable.
15841 (gif_load): Record the address of the current memory source
15842 in current_gif_memory_src.
15843 (gif_read_from_memory): Use current_gif_memory_src.
15844
15845 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
15846 macros statement form.
15847
15848 * sound.c (struct sound): Renamed from struct sound_file.
15849 (struct sound): Add members `data' and `header_size'.
15850 (enum sound_attr): Add SOUND_DATA.
15851 (current_sound, current_sound_device): Variables renamed from
15852 sound_file and sound_device.
15853 (parse_sound): Parse :data.
15854 (parse_sound): Handle sound data in strings.
15855 (find_sound_type): Function renamed from find_sound_file_type.
15856 (wav_init, au_init): Fail if sound's header_size is smaller than
15857 needed header size.
15858 (wav_play, au_play): Play sounds from string data.
15859
15860 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
15861
15862 * lisp.h: Add prototype for allocate_string_data.
15863
15864 * alloc.c (Fgarbage_collect): Return number of live and free strings.
15865
15866 * alloc.c (mark_buffer): Remove code in #if 0.
15867 (gc_sweep): Ditto.
15868 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
15869 (strings_consed): New variable.
15870 (allocate_string): Set it.
15871 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
15872 (Fmemory_use_counts): Return strings_consed. Use Flist.
15873
15874 * alloc.c: General cleanup in comments etc. Remove conditional
15875 compilation for `standalone'.
15876
15877 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
15878
15879 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
15880 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
15881 (DONT_COPY_FLAG): Removed.
15882 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
15883 (struct sdata, struct sblock): New
15884 (struct string_block): Rewritten.
15885 (STRINGS_IN_STRING_BLOCK): New macro.
15886 (oldest_sblock, current_sblock, total_strings, total_free_strings)
15887 (large_sblocks, string_blocks, string_free_list): New variables.
15888 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
15889 (init_strings): Rewritten.
15890 (allocate_string, allocate_string_data, compact_small_strings)
15891 (free_large_strings, sweep_strings): New functions.
15892 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
15893 (struct string_block_head, current_string_block)
15894 (first_string_block, large_string_blocks, STRING_FULLSIZE)
15895 (STRING_PAD): Removed.
15896 (make_uninit_multibyte_string, make_pure_string): Rewritten.
15897 (Fgarbage_collect): Don't set mark bit in large strings.
15898 (mark_object): Mark strings differently. Mark symbol names
15899 differently.
15900 (survives_gc_p): Test marked strings differently.
15901 (gc_sweep): Sweep strings differently, unmark strings in
15902 symbol names.
15903 (compact_strings): Removed.
15904
15905 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
15906
15907 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
15908 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
15909
15910 2000-01-04 Kenichi Handa <handa@etl.go.jp>
15911
15912 * fileio.c (Finsert_file_contents): Signal error if visiting file
15913 in a non-empty buffer.
15914
15915 * term.c (encode_terminal_code): Fix the previous change.
15916
15917 2000-01-03 Gerd Moellmann <gerd@gnu.org>
15918
15919 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
15920 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
15921
15922 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
15923
15924 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15925
15926 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
15927 need to test for MSDOS frames.
15928
15929 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15930
15931 * dosfns.c (unspecified_colors): Remove.
15932 (msdos_stdcolor_idx): Use global variables unspecified_fg and
15933 unspecified_bg.
15934 (msdos_stdcolor_name): Return strings for unspecified fore- and
15935 back-ground colors.
15936
15937 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
15938 (syms_of_xfaces): Remove their staticpro's.
15939 (tty_color_name): Return Lisp strings for unspecified fore- and
15940 back-ground colors.
15941 (Finternal_set_lisp_face_attribute): Remove the special treatment
15942 for Qunspecified_{f,b}g.
15943 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
15944
15945 2000-01-03 Gerd Moellmann <gerd@gnu.org>
15946
15947 * xdisp.c (reseat_at_next_visible_line_start): Position before
15948 newline only if ending up on a newline.
15949 (next_element_from_ellipsis): Return success. Handle case of
15950 displaying no ellipsis. Fix case of ellipsis defined in display table.
15951 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
15952 returns 0.
15953
15954 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15955
15956 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
15957 (Fcolor_supported_p): Renamed from face-color-supported-p.
15958
15959 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15960
15961 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
15962 list of colors renamed to tty-defined-color-alist.
15963 (tty_color_name): Pass the frame to tty-color-by-index.
15964 (realize_tty_face): tty-color-alist is now a function which
15965 accepts the frame as argument.
15966
15967 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
15968
15969 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15970
15971 * term.c (insert_glyphs): Pass glyph, not &glyph, to
15972 encode_terminal_code.
15973
15974 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15975
15976 * dispnew.c (mode_line_string): Support termcap frames as well.
15977
15978 2000-01-01 Gerd Moellmann <gerd@gnu.org>
15979
15980 * syntax.c (Fforward_word): Undo previous change.
15981
15982 * editfns.c (Fconstrain_to_field): Don't constrain if
15983 inhibit-field-text-motion is non-nil.
15984 (Fline_beginning_position): Undo previous change.
15985 (Fline_end_position): Ditto.
15986
15987 * syntax.c (Fforward_word): Notice field boundaries only if
15988 inhibit-field-text-motion is nil.
15989
15990 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
15991
15992 * editfns.c (Vinhibit_field_text_motion): New variable.
15993 (inhibit-field-text-motion): New DEFVAR_LISP.
15994 (Fline_beginning_position, Fline_end_position): Notice field
15995 boundaries only if inhibit-field-text-motion is nil.
15996
15997 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
15998 All calls adjusted.
15999 (x_build_heuristic_mask): Likewise.
16000 (xbm_load_image_from_file): Change error output.
16001 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
16002 (gif_load, gs_load, x_kill_gs_process): Ditto.
16003
16004 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
16005 color indices when accessing raster pixels.
16006 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
16007 one of :file or :data.
16008 (enum pbm_keyword_index): Add PBM_DATA.
16009 (pbm_format): Add :data.
16010 (pbm_image_p): Allow either :file or :data.
16011 (pbm_read_file): New function.
16012 (pbm_scan_number): Rewritten to read from string.
16013 (pbm_load): Support :data.
16014
16015 See ChangeLog.8 for earlier changes.
16016
16017 ;; Local Variables:
16018 ;; coding: iso-2022-7bit
16019 ;; End:
16020
16021 Copyright (C) 2001 Free Software Foundation, Inc.
16022 Copying and distribution of this file, with or without modification,
16023 are permitted provided the copyright notice and this notice are preserved.