]> code.delx.au - gnu-emacs/blob - src/ChangeLog
*** empty log message ***
[gnu-emacs] / src / ChangeLog
1 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il>
2
3 * floatfns.c (Fround): Doc fix.
4
5 2002-02-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
6
7 * sysdep.c (init_system_name): Put unused variable `p' in #if 0.
8
9 2002-02-07 Stefan Monnier <monnier@cs.yale.edu>
10
11 * lisp.h (Fx_file_dialog): Export (for Motif code in fileio.c).
12
13 2002-02-07 Kim F. Storm <storm@cua.dk>
14
15 * keymap.c (where_is_internal): Only check whether definition is
16 remapped if it fulfills is_command_symbol.
17
18 2002-02-07 Andreas Schwab <schwab@suse.de>
19
20 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k.
21
22 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4.
23
24 2002-02-06 Kim F. Storm <storm@cua.dk>
25
26 * keymap.c (Fdefine_key): Allow symbol as KEY argument for
27 defining command remapping. Doc updated.
28 (Flookup_key): Remap command through keymap if KEY is a symbol.
29 (is_command_symbol): New function.
30 (Fkey_binding): Use it. New optional argument NO-REMAP.
31 Doc updated. Callers changed. Perform command remapping via
32 recursive call unless that arg is non-nil.
33 (where_is_internal): New argument no_remap. Callers changed.
34 Call recursively to find original key bindings for a remapped
35 comand unless that arg is non-nil.
36 (Fwhere_is_internal): New optional argument NO-REMAP.
37 Doc updated. Callers changed. Pass arg to where_is_internal.
38
39 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype.
40 (is_command_symbol): Added prototype.
41
42 * keyboard.c (Vthis_original_command): New variable.
43 (syms_of_keyboard): DEFVAR_LISP it.
44 (command_loop_1): Set it, and perform command remapping.
45
46 2002-02-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
47
48 * keyboard.c (recursive_edit_1): Call cancel_hourglass
49 unconditionally.
50
51 2002-02-06 Jason Rumney <jasonr@gnu.org>
52
53 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change.
54
55 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il>
56
57 * charset.c (get_charset_id): Use if-else instead of ?:.
58
59 2002-02-06 Richard M. Stallman <rms@gnu.org>
60
61 * filelock.c (S_ISLNK): Define if not defined.
62
63 2002-02-03 Richard M. Stallman <rms@gnu.org>
64
65 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg.
66
67 * lread.c (read1): Redesign strategy for force_multibyte and
68 force_singlebyte. Now is_multibyte records whether read_buffer
69 is multibyte. Encountering any multibyte character makes it so.
70
71 2002-02-02 Stefan Monnier <monnier@cs.yale.edu>
72
73 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and
74 with the same sequence, map that sequence to f10 rather than f0.
75
76 2002-02-03 Andreas Schwab <schwab@suse.de>
77
78 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the
79 latter never being defined on GNU/Linux.
80
81 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il>
82
83 * xfaces.c (realize_default_face): Don't set the weight and slant
84 of the default face to Qnormal, unless these attributes are
85 unspecified.
86
87 2002-02-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
88
89 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]:
90 Call cancel_hourglass unconditionally.
91
92 * eval.c (Fsignal): Remove duplicated declaration of
93 the variable `display_hourglass_p'.
94
95 2002-01-31 Richard M. Stallman <rms@gnu.org>
96
97 * editfns.c (region_limit): Nicer error message.
98
99 * coding.c (decode_composition_emacs_mule):
100 Give up if NCOMPONENT gets too large to index `component'.
101
102 * callint.c (check_mark): New arg to specify clearer error message.
103 Callers changed.
104
105 2002-01-27 Richard M. Stallman <rms@gnu.org>
106
107 * minibuf.c (Fcompleting_read): Doc fix.
108
109 2002-01-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
110
111 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function)
112 (Fread_variable, Fread_buffer, minibuffer-completion-confirm):
113 Fix doc-strings.
114
115 2002-01-26 Richard M. Stallman <rms@gnu.org>
116
117 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively.
118
119 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively
120 and scroll_up_aggressively.
121
122 2002-01-26 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
123
124 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes.
125
126 2002-01-25 Stefan Monnier <monnier@cs.yale.edu>
127
128 * textprop.c (Fnext_property_change, Fnext_single_property_change)
129 (Fprevious_property_change, Fprevious_single_property_change):
130 Stay within the narrowed-buffer boundaries.
131
132 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il>
133
134 * term.c (Ftty_display_color_cells): New function.
135 (syms_of_term): Defsubr it.
136 (Ftty_display_color_cells, Ftty_display_color_p): Change the
137 argument name to DISPLAY. Doc fix.
138
139 * dispextern.h: Add prototype for set_tty_color_mode and
140 tty_setup_colors.
141
142 2002-01-24 Jason Rumney <jasonr@gnu.org>
143
144 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
145 If region left to draw is not what was expected, mark the frame as
146 garbaged.
147
148 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect.
149 Combine the regions returned by BeginPaint and GetUpdateRect.
150
151 2002-01-23 Jason Rumney <jasonr@gnu.org>
152
153 * w32term.c (x_update_window_begin): Only hide caret if
154 w32_use_visible_system_caret is set.
155 (x_update_window_end): Only show caret if
156 w32_use_visible_system_caret is set.
157 (syms_of_w32term): Handle SystemParametersInfo call failing.
158
159 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd.
160
161 2002-01-22 Richard M. Stallman <rms@gnu.org>
162
163 * unexelf.c (unexec): Define n so as to cause compilation error
164 for the code where people have often written n instead of nn.
165
166 * .gdbinit (hookpost-run): Defined.
167
168 2002-01-22 Jan D. <Jan.Djarv@mbox200.swipnet.se>
169
170 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected.
171
172 2002-01-21 Jan D. <Jan.Djarv@mbox200.swipnet.se>
173
174 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust
175 if fullscreen is being set.
176
177 2002-01-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
178
179 * minibuf.c (Fminibuffer_contents)
180 (Fminibuffer_contents_no_properties, Fread_from_minibuffer)
181 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes.
182
183 2002-01-21 Richard M. Stallman <rms@gnu.org>
184
185 * window.c (check_frame_size): Fix minimum height calculation.
186
187 2002-01-20 Ken Raeburn <raeburn@gnu.org>
188
189 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window
190 height before comparison.
191 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
192
193 2002-01-20 Jason Rumney <jasonr@gnu.org>
194
195 * w32term.c (w32_system_caret_width): Remove.
196 (w32_use_visible_system_caret): New user flag.
197 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether
198 Windows reports a screen reader running.
199 (x_update_window_begin): Hide the system caret.
200 (x_update_window_end): Show the system caret.
201 (x_display_and_set_cursor): Don't draw a cursor when
202 w32_use_visible_system_caret is set. Do not adjust width.
203
204 * w32fns.c (w32_visible_system_caret_hwnd): New static variable.
205 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it.
206 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if
207 the user requests it. Use system default width when creating.
208 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages.
209
210 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET):
211 New window messages.
212
213 2002-01-20 Richard M. Stallman <rms@gnu.org>
214
215 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1.
216
217 2002-01-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
218
219 * doprnt.c (doprnt1): Fix typos in error call.
220
221 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il>
222
223 * unexelf.c (unexec) [__sgi]: Support the .got sections.
224
225 2002-01-20 Jason Rumney <jasonr@gnu.org>
226
227 * w32term.c (w32_native_per_char_metric): Don't trust the metrics
228 that Windows returns. If a double check fails, try to guess how
229 ExtTextOut is going to act.
230
231 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp
232 in place of stricmp.
233 (w32_list_synthesized_fonts): Removed.
234 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions.
235 (struct enumfont_t): New element; list.
236 (enum_font_cb2): List all style and charset variations of a font.
237 (Fw32_select_font): New optional argument; include_proportional.
238 Exclude vertical fonts. Exclude proportional fonts unless
239 include_proportional is non-nil.
240 (w32_enable_synthesized_fonts): Change to a boolean.
241 (Fw32_send_sys_command): Doc fix.
242
243 2002-01-19 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
244
245 * dispnew.c (update_frame): Move the variable `tem' to the block
246 where it is used.
247
248 2002-01-19 Jason Rumney <jasonr@gnu.org>
249
250 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around
251 call to face-set-after-frame-default.
252
253 2002-01-18 Richard M. Stallman <rms@gnu.org>
254
255 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1.
256 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room.
257
258 2002-01-17 Richard M. Stallman <rms@gnu.org>
259
260 * window.c (enlarge_window): When exceeding size of parent,
261 directly delete all the siblings instead of trying to resize it.
262
263 2002-01-17 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
264
265 * term.c (set_tty_color_mode): Remove unused variable `tem'.
266
267 2002-01-16 Henrik Enberg <henrik@enberg.org>
268
269 * lread.c (init_lread): Move the installed-lisp dirs later in the path.
270
271 2002-01-16 Kim F. Storm <storm@cua.dk>
272
273 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row
274 is invisible. This can happen if cursor is on top line of a
275 window, and we switch to a buffer with a header line.
276
277 * w32term.c (x_erase_phys_cursor): Ditto.
278
279 2002-01-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
280
281 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of
282 `dont_resize' only when used.
283
284 * xdisp.c: Remove forgotten extern declaration of `Qimage'.
285
286 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il>
287
288 * xdisp.c (display_mode_element): When computing charpos, depend
289 on multibyteness of elt, not the text in field.
290
291 2002-01-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
292
293 * buffer.c (Fkill_all_local_variables): Increment
294 `update_mode_lines' only once.
295
296 2002-01-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
297
298 * lisp.h (adjust_after_replace_noundo)
299 (Fupdate_coding_systems_internal): Add prototypes.
300
301 * sound.c (Fplay_sound): Initialize header_size also for :data case.
302
303 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il>
304
305 Support for the --color command-line argument and tty-color-mode
306 frame parameter:
307
308 * term.c (tty_default_color_capabilities, tty_setup_colors)
309 (set_tty_color_mode): New functions.
310 (term_init): Call tty_default_color_capabilities.
311 (Qtty_color_mode_alist): New variable.
312 (syms_of_term): Intern and staticpro it.
313
314 * frame.c (store_frame_param): Call set_tty_color_mode for termcap
315 frames.
316 (do_switch_frame): For termcap frames, switch the tty
317 color mode as specified by the frame's parameters.
318 (Qtty_color_mode): New variable.
319 (syms_of_frame): Intern and staticpro it.
320
321 * emacs.c (USAGE2): Add the --color option.
322 (standard_args): Ditto.
323
324 2002-01-13 Jan Djarv <Jan.Djarv@mbox200.swipnet.se>
325
326 * xterm.h (struct x_output): New members want_fullscreen,
327 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and
328 y_pixels_outer_diff.
329 New enum for FULLSCREEN_* constants.
330 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget
331 is NULL.
332 (x_fullscreen_adjust): Add prototype.
333
334 * emacs.c (USAGE2): Add the new full-screen arguments.
335 (standard_args): Ditto.
336
337 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth):
338 New variables.
339 (syms_of_xfns): Intern and staticpro them.
340 (x_frame_parms) <"fullscreen">: New parameter.
341 (x_fullscreen_move, x_set_fullscreen): New functions.
342 (x_set_frame_parameters): Support for Qfullscreen.
343 (x_real_positions): More accurate computation of the frame position.
344 (x_figure_window_size): Support full-screen frames.
345 (Fx_create_frame): Default the fullscreen parameter.
346
347 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions.
348 (XTread_socket) <Expose>: Call x_check_fullscreen.
349 <ConfigureNotify>: Don't resize to fullscreen.
350 Call x_check_fullscreen_move, and set the want_fullscreen member of
351 output_data.x.
352
353 2002-01-13 Jason Rumney <jasonr@gnu.org>
354
355 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages
356 for mice with more than 3 buttons.
357
358 * w32term.c (parse_button): New parameter xbutton. Callers changed.
359 (w32_read_socket): Handle new "XBUTTON" messages.
360
361 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
362 (syms_of_w32fns): DEFVAR_BOOL it.
363 (w32_wnd_proc): Handle new "XBUTTON" messages.
364
365 2002-01-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
366
367 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
368
369 2002-01-13 Andreas Schwab <schwab@suse.de>
370
371 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
372
373 2002-01-12 Andreas Schwab <schwab@suse.de>
374
375 * .gdbinit (xbuffer): Remove address operator since data is now a
376 pointer.
377
378 2002-01-11 Richard M. Stallman <rms@gnu.org>
379
380 * insdel.c (adjust_after_replace_noundo): New function.
381
382 * coding.c (code_convert_region): Don't copy old text if undo disabled.
383
384 2002-01-09 Jason Rumney <jasonr@gnu.org>
385
386 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
387 when checking for multiple frames.
388
389 2002-01-08 Richard M. Stallman <rms@gnu.org>
390
391 * window.c (delete_window): Rewrite the code for changing the
392 selected window to handle the case where WINDOW is not a leaf.
393
394 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
395
396 * process.c (send_process): Set src_multibyte to 1 after the call
397 top setup_coding_system, not before the call.
398
399 2002-01-07 Jason Rumney <jasonr@gnu.org>
400
401 * xmenu.c (set_frame_menubar, xmenu_show):
402 (xdialog_show): Initialize wv->help to Qnil.
403
404 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
405 (w32_dialog_show): Initialize wv->help to Qnil.
406
407 2002-01-06 Jason Rumney <jasonr@gnu.org>
408
409 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
410
411 * w32menu.c (w32_menu_display_help): Revert last change.
412
413 * xmenu.c (menu_highlight_callback): Revert last change.
414
415 2002-01-06 Andreas Schwab <schwab@suse.de>
416
417 * insdel.c (make_gap_larger): Make sure buffer size does not
418 overflow range of int.
419
420 2002-01-05 Jason Rumney <jasonr@gnu.org>
421
422 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
423 OVERLAPS_P.
424
425 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
426
427 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
428 to the left or to the right of the pointer, put it against
429 the left screen edge.
430 (x_frame_parms): Add missing braces around initializer.
431
432 * w32term.c (x_setup_relief_colors): Don't compute an image's
433 background color if it doesn't have a Pixmap.
434 (notice_overwritten_cursor): Don't depend on
435 output_cursor and updated_area. Compare pixel coordinates with
436 window's cursor pixel coordinates.
437 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
438 Call notice_overwritten_cursor with new arg list.
439 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
440 unconditionally.
441 (x_draw_image_relief): Use predefined macro instead of
442 constant when the value of `tool_bar_button_relief' is negative.
443
444 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
445
446 2002-01-04 Richard M. Stallman <rms@gnu.org>
447
448 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
449
450 2002-01-03 Richard M. Stallman <rms@gnu.org>
451
452 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
453 (Fkey_binding): Try the `keymap' property map first.
454 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
455 minor mode bindings.
456
457 2002-01-03 Kim F. Storm <storm@cua.dk>
458
459 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
460
461 2002-01-02 Richard M. Stallman <rms@gnu.org>
462
463 * keyboard.c (read_key_sequence): Handle the keymap property
464 before minor mode maps.
465
466 * editfns.c (Fformat): Update thissize from field_width
467 based on the actual width, in the string case.
468
469 2002-01-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
470
471 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
472 when used as truth value to prevent gcc warnings.
473
474 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
475 * w32proc.c: Include <config.h>.
476
477 2002-01-01 Andreas Schwab <schwab@suse.de>
478
479 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
480 not EMACS_INT, to make them compatible with DEFVAR_INT.
481 * lisp.h (max_specpdl_size): Adjust declaration.
482
483 2002-01-01 Richard M. Stallman <rms@gnu.org>
484
485 * print.c (print_object): Test print_escape_nonascii only for
486 unibyte strings.
487 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
488 when outputting to a multibyte buffer.
489
490 2001-12-29 Richard M. Stallman <rms@gnu.org>
491
492 * print.c (print_object): In multibyte string, use hex escapes.
493 Use octal only for unibyte strings.
494 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
495
496 * lread.c (read_escape): New arg BYTEREP for reporting whether
497 escape forces unibyte or multibyte.
498 (read1): When reading a string, take note of that info.
499
500 2001-12-29 Ken Raeburn <raeburn@gnu.org>
501
502 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
503 comparison to test lisp value returned by Fget.
504
505 2001-12-29 Richard M. Stallman <rms@gnu.org>
506
507 * lisp.h (max_specpdl_size): Add declaration.
508
509 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
510
511 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
512 Handle modifier bits. Correct typo in error message.
513
514 2001-12-28 Richard M. Stallman <rms@gnu.org>
515
516 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
517 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
518 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
519 Update calls to Fdefine_abbrev.
520 (write_abbrev): Update for changed data format.
521 Don't list "system" abbrevs.
522 (Fexpand_abbrev): Update use count with new data format.
523 (describe_abbrev): Update for changed data format.
524 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
525
526 * config.in (HAVE_MBSINIT): Add #undef.
527
528 * strftime.c (mbsinit): Define as no-op if not available.
529
530 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
531 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
532
533 * keymap.c (Flookup_key): Error message if key has wrong data type.
534 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
535 (exclude_key): New variable.
536
537 2001-12-28 Gerd Moellmann <gerd@gnu.org>
538
539 * xterm.c (x_setup_relief_colors): Don't compute an image's
540 background color if it doesn't have a Pixmap.
541
542 * xterm.c (notice_overwritten_cursor): Don't depend on
543 output_cursor and updated_area. Compare pixel coordinates with
544 window's cursor pixel coordinates.
545 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
546 Call notice_overwritten_cursor with new arg list.
547 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
548 unconditionally.
549
550 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
551 height of the cursor line to the amount to scroll.
552
553 2001-12-27 Richard M. Stallman <rms@gnu.org>
554
555 * intervals.c (set_point_both): The position after an invisible,
556 intangible character is not an acceptable stopping point.
557
558 2001-12-27 Ken Raeburn <raeburn@gnu.org>
559
560 * window.c (enlarge_window): In new preserve_before code, convert
561 CURBEG from lisp object to integer before doing arithmetic.
562
563 2001-12-27 Richard M. Stallman <rms@gnu.org>
564
565 * bytecode.c (Fbyte_code): Undo previous change.
566
567 2001-12-26 Kim F. Storm <storm@cua.dk>
568
569 * keyboard.c (record_char): Ignore duplicate help-echo events only
570 separated by mouse-movement. When tracking mouse, only record
571 first and last mouse-movement event in same window.
572 Don't record mouse-movement events in keyboard macros.
573
574 2001-12-25 Richard M. Stallman <rms@gnu.org>
575
576 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
577 (Fenlarge_window): New arg PRESERVE_BEFORE.
578
579 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
580 instead of Fstring_as_unibyte.
581
582 2001-12-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
583
584 The following changes remove mocklisp support:
585
586 * mocklisp.h, mocklisp.c: Files removed.
587
588 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
589 `Qmocklisp' and `Qmocklisp_arguments'.
590 Remove prototype of syms_of_mocklisp.
591
592 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
593
594 * callint.c: Do not include mocklisp.h.
595 (Fcall_interactively): Do not test for mocklisp case.
596
597 * eval.c: Remove variables `Qmocklisp_arguments',
598 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
599 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
600 Do not test for mocklisp case.
601 (Fwhile): Remove unused variable `tem'.
602 (syms_of_eval): Remove variable `moclisp-arguments'.
603
604 * data.c (wrong_type_argument): Remove mocklisp case.
605
606 * doc.c (Fdocumentation): Remove mocklisp case.
607
608 * emacs.c (main): Do not call syms_of_mocklisp.
609
610 2001-12-21 Richard M. Stallman <rms@gnu.org>
611
612 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
613 to the left or to the right of the pointer, put it against
614 the left screen edge.
615
616 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
617
618 * Makefile.in (distclean): Remove .gdbinit if we are building
619 outside the source tree.
620
621 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
622
623 * w32.c (emacs_root_dir): New function.
624
625 * msdos.c (emacs_root_dir): New function.
626
627 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
628 of the current drive as the fallback for default_directory.
629
630 * dired.c (file_name_completion): Run the elements of
631 completion-ignored-extensions through ENCODE_FILE.
632
633 * lisp.h (scmp): Remove prototype, since it's now a static
634 function private to dired.c.
635
636 2001-12-18 Richard M. Stallman <rms@gnu.org>
637
638 * dired.c (scmp): Function moved from minibuf.c.
639 Delete multibyte handling--used only on encoded strings.
640
641 * minibuf.c (scmp): Function moved to dired.c.
642
643 * fns.c (merge): Add QUIT call.
644
645 2001-12-18 Dave Love <fx@gnu.org>
646
647 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
648 language/georgian.el.
649
650 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
651
652 * Makefile.in (lisp, shortlisp): Synchronize with changes to
653 lisp/Makefile.in:DONTCOMPILE.
654
655 2001-12-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
656
657 * xdisp.c (window_box_height): Do not return negative values.
658 From Gerd Moellmann <gerd@gnu.org>.
659
660 * keyboard.c (head_table): Add missing braces around initializer.
661
662 * term.c (keys): Likewise.
663
664 * xfns.c (x_frame_parms, visual_classes): Likewise.
665
666 2001-12-17 Sam Steingold <sds@gnu.org>
667
668 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
669 patch (COMPOSING_P, not COMPOSING).
670
671 2001-12-17 Richard M. Stallman <rms@gnu.org>
672
673 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
674
675 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
676 before calling decode_coding.
677
678 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
679
680 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
681 instead of only for COMPOSITION_DISABLED.
682
683 2001-12-16 Richard M. Stallman <rms@gnu.org>
684
685 * alloc.c (pure_alloc): After overflow, allocate just a small block.
686
687 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
688
689 * buffer.h (struct buffer): New field `display_error_modiff'.
690 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
691
692 * window.c (Frecenter): Clear display_error_modiff field.
693
694 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
695 Call redisplay_window, but not if display_error_modiff field says no.
696 (redisplay_window_error): New function.
697 (displayed_buffer): New variable.
698 (redisplay_internal, redisplay_windows): Call the new functions
699 instead of redisplay_window directly.
700
701 2001-12-15 Richard M. Stallman <rms@gnu.org>
702
703 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
704
705 2001-12-14 Andrew Innes <andrewi@gnu.org>
706
707 * makefile.w32-in (EMACSLOADPATH): Define.
708 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
709 (bootstrap-temacs): Remove dependency on bootstrap-clean.
710
711 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
712
713 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
714 parameter have a numeric value all the time.
715
716 * w32fns.c (x_report_frame_params): Likewise.
717
718 2001-12-12 Richard M. Stallman <rms@gnu.org>
719
720 * fileio.c (Fwrite_region): Doc fix.
721
722 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
723 (redisplay_internal): Call clear_image_cache only for window terminals.
724
725 2001-12-12 Gerd Moellmann <gerd@gnu.org>
726
727 * xdisp.c (move_it_vertically_backward): Change heuristic
728 for the case that we didn't move far enough initially.
729
730 * window.c (Frecenter): Simplify computation in the case of window
731 system frames and ARG < 0; use window_box_height.
732
733 2001-12-11 Richard M. Stallman <rms@gnu.org>
734
735 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
736 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
737
738 2001-12-11 Andrew Innes <andrewi@gnu.org>
739
740 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
741 arg is negative.
742
743 2001-12-11 Richard M. Stallman <rms@gnu.org>
744
745 * m/hp800.h: Split the __hpux conditional into the parts
746 that are right for GNU/Linux too and the parts that are not.
747 Use the former if GNU_LINUX.
748 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
749
750 * s/gnu-linux.h (GNU_LINUX): Defined.
751
752 2001-12-11 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
753
754 * macros.c, msdos.c, w16select.c: Change doc-string comments to
755 `new style' [w/`doc:' keyword].
756
757 2001-12-10 Jason Rumney <jasonr@gnu.org>
758
759 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
760 before using.
761
762 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
763
764 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
765 keyword].
766
767 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
768
769 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
770
771 * s/hpux10.h (srand48): Don't undefine.
772
773 2001-12-09 Jason Rumney <jasonr@gnu.org>
774
775 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
776 Add comment to explain where the struct came from.
777 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
778 (add_menu_item): Process pop-up menus first to avoid memory leak.
779 (add_menu_item, w32_menu_display_help): Use `help' field as
780 Lisp_Object.
781 (w32_free_submenu_strings): Only free owner-drawn strings.
782
783 2001-12-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
784
785 * COPYING: Moved back.
786
787 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
788 Add parentheses around && within ||.
789
790 * indent.c (compute_motion): Likewise.
791
792 * intervals.c (merge_properties_sticky): Likewise.
793
794 * coding.c (setup_coding_system, shrink_encoding_region)
795 (Fdecode_sjis_char): Likewise.
796
797 2001-12-07 Andreas Schwab <schwab@suse.de>
798
799 * xdisp.c (display_mode_element): Don't read past end of string if
800 it ends with '%'.
801
802 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
803 can hold.
804
805 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename
806 from most_positive_fixnum and most_negative_fixnum, resp., and
807 type changed to Lisp_Object.
808 (syms_of_data): DEFVAR_LISP them.
809
810 2001-12-07 Richard M. Stallman <rms@gnu.org>
811
812 * callproc.c (init_callproc): Set Vdata_directory based on the source
813 location whenever Emacs was run uninstalled.
814
815 2001-12-06 Paul Eggert <eggert@twinsun.com>
816
817 * config.in (HAVE_WORKING_VFORK): New #undefs.
818 * process.c (create_process):
819 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
820 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
821 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
822 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
823 * m/intel386.h (HAVE_VFORK): Likewise.
824 * m/mips-siemens.h (HAVE_VFORK): Likewise.
825 * m/mips.h (HAVE_VFORK): Likewise.
826 * s/freebsd.h (vfork): Remove #define.
827 * s/lynxos.h (HAVE_VFORK): Remove #undef.
828 * s/usg5-4-2.h: Fix comment about vfork.
829
830 2001-12-06 Richard M. Stallman <rms@gnu.org>
831
832 * s/hpux10.h (random): Add undef.
833 (HAVE_RANDOM): Define it just once.
834
835 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
836
837 * eval.c: Undo last change: the standard syntax is not wanted.
838
839 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
840
841 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
842 scroll bars of the frame before deleting the frame itself. If the
843 frame has a widget, delete the frame with XtDestroyWidget, and do
844 not call XDestroyWindow before that.
845
846 2001-12-06 Kim F. Storm <storm@cua.dk>
847
848 * xfns.c (x_report_frame_params): Return actual fringe widths.
849
850 * w32fns.c (x_report_frame_params): Return actual fringe widths.
851
852 2001-12-05 Andrew Innes <andrewi@gnu.org>
853
854 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
855 excessively large.
856
857 * insdel.c (make_gap_larger): New function.
858 (make_gap_smaller): New function.
859 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
860 make_gap_smaller if arg is negative.
861
862 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
863
864 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
865 Pass a dummy argument when calling interrupt_signal.
866 (parse_menu_item): Mark disabled items before checking for empty def.
867 (read_char_minibuf_menu_prompt): Make safety more visible.
868 (read_key_sequence): Add a `first_unbound' variable.
869 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
870 unbound prefix as soon as we can detect it.
871
872 * doc.c (Fsnarf_documentation): Add prototype.
873 (get_doc_string): Handle negative arguments.
874 (Fdocumentation): Use AREF and ASIZE.
875 Move the calls to get_doc_string to a single place.
876 Don't confuse an interactive-spec for a docstring reference.
877 (Fdocumentation_property): Take advantage of the fact that
878 get_doc_string now ignores the sign of the docstring position.
879
880 * eval.c: Use standard syntax for usage in docstrings.
881
882 2001-12-03 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
883
884 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
885
886 2001-12-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
887
888 * xterm.c (x_draw_image_relief): Use predefined macro instead of
889 constant when the value of `tool_bar_button_relief' is negative.
890
891 2001-12-02 Richard M. Stallman <rms@gnu.org>
892
893 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
894 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
895
896 * fileio.c (read_non_regular): Delete Fsignal call.
897
898 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
899
900 * lisp.h (run_hook_list_with_args): Undo last change.
901
902 2001-12-01 Gerd Moellmann <gerd@gnu.org>
903
904 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
905
906 2001-12-01 Jason Rumney <jasonr@gnu.org>
907
908 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
909
910 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
911 [!WM_MOUSELEAVE]: Define.
912
913 * w32menu.c (current_popup_menu, get_menu_item_info):
914 (set_menu_item_info): New vars.
915 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
916 (w32_menu_show): Set current_popup_menu.
917 (add_menu_item): Allocate new strings for owner-drawn menu items
918 and help strings.
919 Use owner-draw for disabled menu items again.
920 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
921 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
922
923 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
924 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
925 <WM_EXITMENULOOP>: Free menu strings.
926 <WM_MOUSELEAVE>: Stop tracking mouse.
927 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
928
929 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
930 and mouse face.
931
932 2001-12-01 Kim F. Storm <storm@cua.dk>
933
934 The following changes add left-fringe and right-fringe
935 frame parameters to adjust fringe widths, or remove one or
936 both fringes.
937
938 * frame.h (struct frame): Remove trunc_area_pixel_width and
939 trunc_area_cols fields.
940 (Qleft_fringe, Qright_fringe): Declare.
941 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
942
943 * frame.c (Qleft_fringe, Qright_fringe): New vars.
944 (syms_of_frame): Initialize them.
945
946 * window.c (coordinates_in_window): Handle separate left and right
947 fringe widths.
948
949 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
950 and fringe_cols fields.
951 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
952 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
953 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
954 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
955 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
956 (x_compute_fringe_widths): Add prototype.
957
958 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
959 fill fringe evenly with small dashes.
960 (x_draw_fringe_bitmap): Clear background if necessary. Align and
961 clip the new ZV bitmap to avoid jitter between rows.
962 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
963 background. Don't draw fringe bitmaps if fringe width is zero.
964 (x_compute_fringe_widths): New function.
965 (x_new_font, x_set_window_size_1): Use it.
966
967 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
968 (x_set_frame_parameters): Process `font' parameter before other
969 parameters as fringe widths depend on it.
970 (x_set_fringe_width): New function.
971 (x_figure_window_size): Use x_compute_fringe_widths.
972 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
973 parameters.
974
975 * widget.c (set_frame_size): Use x_compute_fringe_widths.
976 (EmacsFrameSetCharSize): Ditto.
977
978 * w32term.h: Merged changes from xterm.h.
979 * w32term.c: Merged changes from xterm.c.
980 * w32fns.c: Merged changes from xfns.c.
981
982 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
983
984 * COPYING: Removed.
985
986 2001-11-29 Dave Love <fx@gnu.org>
987
988 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
989 extra extra slot.
990 (detect_coding_mask): Fix call of detect_coding_iso2022.
991
992 2001-11-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
993
994 * fileio.c (file-name-coding-system)
995 (default-file-name-coding-system): Doc fix (links to referenced
996 variables added).
997
998 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
999
1000 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
1001 Add dummy uses of gcproN variables.
1002
1003 * category.c (describe_category, describe_category_1)
1004 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
1005 (syms_of_category): Don't defsubr Sdescribe_categories.
1006
1007 2001-11-28 Richard M. Stallman <rms@gnu.org>
1008
1009 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
1010
1011 * Makefile.in (lispdir): New variable, referring to build dir.
1012 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
1013
1014 2001-11-28 Andrew Innes <andrewi@gnu.org>
1015
1016 * w32menu.c (w32_menu_display_help): Actually add the new argument
1017 OWNER.
1018
1019 2001-11-28 Jason Rumney <jasonr@gnu.org>
1020
1021 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
1022 menu items. From David Ponce <dponce@wanadoo.fr>.
1023 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
1024 conditionally.
1025 (w32_menu_display_help): New argument OWNER. Rewritten to store a
1026 help event in the owner frame's keyboard buffer.
1027
1028 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
1029 (Fx_show_tip): Don't subtract last width from row width.
1030
1031 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
1032 (w32_read_socket): Use EQ to compare frames.
1033
1034 2001-11-28 Gerd Moellmann <gerd@gnu.org>
1035
1036 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
1037 OVERLAPS_P.
1038
1039 2001-11-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1040
1041 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
1042 `gcpro3' and `gcpro4'.
1043
1044 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
1045
1046 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
1047
1048 * ccl.c: Use AREF and ASIZE.
1049
1050 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
1051
1052 * lisp.h (run_hook_list_with_args): Remove.
1053 (LIST_END_P): Fix call to wrong_type_argument.
1054 (make_fixnum_or_float): Use EMACS_INT rather than int.
1055
1056 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
1057
1058 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
1059 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
1060
1061 * eval.c: Use AREF and ASIZE.
1062 (Ffetch_bytecode): Add the file name to the error message.
1063
1064 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
1065 which match the end of the file-name.
1066 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
1067 is not a valid env var, but leave it as is instead.
1068
1069 * keymap.c (access_keymap): Handle t bindings like nil bindings.
1070 Make nil bindings in char-tables transparent.
1071 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
1072
1073 2001-11-26 Richard M. Stallman <rms@gnu.org>
1074
1075 * textprop.c (set_text_properties_1): Allow START, END in either order.
1076 Do nothing if range is empty.
1077
1078 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
1079
1080 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
1081 (clean): Not here.
1082
1083 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
1084
1085 * textprop.c (set_text_properties_1): Clearly mark that the
1086 interval should not be empty.
1087
1088 * intervals.c (graft_intervals_into_buffer):
1089 Don't call set_text_properties_1 on an empty interval.
1090
1091 2001-11-25 Richard M. Stallman <rms@gnu.org>
1092
1093 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
1094
1095 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
1096 don't lose the data in it.
1097
1098 2001-11-25 Juanma Barranquero <lektu@terra.es>
1099
1100 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
1101
1102 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
1103
1104 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
1105
1106 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
1107
1108 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
1109
1110 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
1111
1112 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
1113 Niemitalo <kon@iki.fi>.
1114
1115 2001-11-25 Jason Rumney <jasonr@gnu.org>
1116
1117 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
1118
1119 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
1120 (Fx_show_tip): Block input during frame creation.
1121 (Fx_show_tip, Fx_hide_tip): Enable.
1122
1123 2001-11-24 Richard M. Stallman <rms@gnu.org>
1124
1125 * lread.c (Fload): Detect recursive load error for more than 3
1126 nestings of the same file.
1127 (Vrecursive_load_depth_limit): Variable deleted.
1128 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
1129
1130 2001-11-24 Jason Rumney <jasonr@gnu.org>
1131
1132 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
1133 mouse position if either left or top is not specified.
1134
1135 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
1136 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
1137 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
1138 (my_create_tip_window): Assign tip_window.
1139 (x_create_tip_frame): Use same defaults as X.
1140 (compute_tip_xy): Remove unused variable. Use full screen width.
1141 (Fx_show_tip): Do not double height. Call ShowWindow directly.
1142
1143 * w32term.c (x_after_update_window_line): Doc fix.
1144 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
1145 frames.
1146 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
1147
1148 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
1149 for all Windowed systems.
1150
1151 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
1152
1153 * msdos.c (IT_clear_screen): If the frame's faces are not yet
1154 realized, use the initial screen colors to clear the screen.
1155
1156 2001-11-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1157
1158 * textprop.c (Fset_text_properties): Remove unused variables
1159 `unchanged', `prev_changed', `s' and `len'.
1160
1161 * search.c (Freplace_match): Remove unused variable `inslen'.
1162
1163 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
1164
1165 2001-11-22 Jason Rumney <jasonr@gnu.org>
1166
1167 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
1168 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
1169 (my_create_tip_window): New function.
1170 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
1171 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
1172
1173 2001-11-20 Jason Rumney <jasonr@gnu.org>
1174
1175 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
1176 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
1177
1178 * w32fns.c (Vw32_system_coding_system): Remove.
1179 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
1180
1181 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
1182
1183 * fileio.c (Fwrite_region): Move choose_write_coding_system to
1184 after build_annotations.
1185
1186 * syntax.c (describe_syntax): Add dummy arg.
1187 (describe_syntax_1): Update call to describe_vector.
1188
1189 * category.c (describe_category): Add dummy arg.
1190 (describe_category_1): Update call to describe_vector.
1191
1192 * keymap.c (Fdescribe_vector): Add `describer' parameter.
1193 (describe_command, describe_translation): Add dummy second param.
1194 (describe_map): Call elt_describer with two arguments.
1195 (describe_vector_princ): Add `fun' parameter.
1196 Call it instead of the hardcoded `princ'.
1197 (describe_vector): Add arg `args'.
1198 Pass it as a new second argument to elt_describer.
1199
1200 * keymap.h (describe_vector): Update prototype.
1201
1202 * frame.c: Don't include keymap.h any more.
1203 (keys_of_frame): Remove.
1204
1205 * lisp.h (keys_of_frame): Remove declaration.
1206
1207 * emacs.c (main): Don't call `keys_of_frame' any more.
1208
1209 2001-11-14 Andreas Schwab <schwab@suse.de>
1210
1211 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
1212 if defined, 0 otherwise.
1213 (MAP_FAILED): Define if not defined and use it to test mmap failure.
1214 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
1215
1216 2001-11-19 Richard M. Stallman <rms@gnu.org>
1217
1218 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
1219
1220 2001-11-18 Jason Rumney <jasonr@gnu.org>
1221
1222 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
1223 (x_draw_bar_cursor): If the background color of the glyph under
1224 the cursor equals the frame's cursor color, use the glyph's
1225 foreground color for drawing the bar cursor.
1226 (x_after_update_window_line): Clear internal border in different
1227 circumstances.
1228 (w32_set_vertical_scroll_bar): Check for width and height > 0.
1229 (w32_draw_relief_rect): Correct relief by 1 pixel.
1230 (x_set_glyph_string_background_width):
1231 Set extends_to_end_of_line_p if the row's fill_line_p is set and
1232 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
1233 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
1234 if cursor_in_non_selected_windows is false.
1235 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
1236 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
1237 Notice if cursor gets overwritten.
1238 (notice_overwritten_cursor): Renamed from
1239 note_overwritten_text_cursor. Rewritten to take glyph widths
1240 into account, and to take X positions as parameters.
1241 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
1242 around call to x_draw_glyphs.
1243 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
1244 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
1245 color to use for image glyph reliefs.
1246 (x_draw_image_relief): Accept zero tool_bar_button_relief.
1247 (glyph_rect): Remove unused variable `area'.
1248
1249 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
1250 some items.
1251 (x_set_internal_border_width): Set frame garbaged when window
1252 doesn't exist yet.
1253 (Fx_create_frame): Accept zero tool_bar_button_relief.
1254 (x_clear_image_1, four_corners_best, image_background)
1255 (image_background_transparent): New functions.
1256 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
1257 (gs_format): Add `:background' entry.
1258 (lookup_image): Set IMG's background color if specified.
1259 (pbm_load, xbm_load_image, png_load): Set IMG's background field
1260 when appropriate.
1261 (x_clear_image_1): Reset `background_valid' and
1262 `background_transparent_valid' fields.
1263 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
1264 calculating it here. Set IMG's background_transparent field.
1265 (enum xpm_keyword_index): Add XPM_BACKGROUND.
1266 (enum png_keyword_index): Add PNG_BACKGROUND.
1267 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
1268 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
1269 (enum gif_keyword_index): Add GIF_BACKGROUND.
1270 (enum gs_keyword_index): Add GS_BACKGROUND.
1271 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
1272 Pre-calculate image background color where necessary.
1273 (x_create_x_image_and_pixmap, xbm_load, gs_load):
1274 Use display info's n_cbits entry for screen depth.
1275 (Fx_show_tip): Remove unused variables `buffer', `top',
1276 `left', `max_width' and `max_height'.
1277
1278 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
1279
1280 2001-11-18 Gerd Moellmann <gerd@gnu.org>
1281
1282 * puresize.h (BASE_PURESIZE): Increase to 750000.
1283
1284 2001-11-18 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1285
1286 * frame.c (Fframe_live_p): Doc fix.
1287
1288 2001-11-18 Richard M. Stallman <rms@gnu.org>
1289
1290 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
1291 (message_dolog_marker3): New static variables hold three markers.
1292 (syms_of_xdisp): Initialize and staticpro them.
1293 (message_dolog): Use message_dolog_marker1..3 instead of
1294 allocating markers each time. Unchain them when done.
1295
1296 2001-11-17 Richard M. Stallman <rms@gnu.org>
1297
1298 * doc.c (Fsnarf_documentation): Doc fix.
1299
1300 2001-11-17 Andreas Schwab <schwab@suse.de>
1301
1302 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
1303
1304 2001-11-17 Richard M. Stallman <rms@gnu.org>
1305
1306 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
1307
1308 2001-11-17 Jason Rumney <jasonr@gnu.org>
1309
1310 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
1311
1312 2001-11-17 Gerd Moellmann <gerd@gnu.org>
1313
1314 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
1315 with invalid position.
1316
1317 2001-11-16 Richard M. Stallman <rms@gnu.org>
1318
1319 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
1320
1321 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
1322 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
1323 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
1324
1325 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
1326
1327 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
1328
1329 * fileio.c (build_annotations): Split off the tail.
1330 (build_annotations_2): New fun. Extracted from build_annotations.
1331 (Fwrite_region): Split the call to build_annotations into two
1332 calls to build_annotations and build_annotations_2.
1333
1334 2001-11-16 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1335
1336 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
1337 clear_waiting_for_input with argument.
1338
1339 * xterm.h (x_update_cursor): Remove duplicated prototype.
1340
1341 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
1342
1343 * xterm.c (waiting_for_input): Remove unnecessary declaration.
1344
1345 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
1346
1347 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
1348
1349 * fileio.c (choose_write_coding_system): New fun, extracted
1350 from Fwrite_region.
1351 (Fwrite_region): Use it.
1352
1353 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
1354 (funcall_lambda, run_hook_with_args): Make static and add prototype.
1355 (ml_apply, find_handler_clause): Add prototype.
1356
1357 2001-11-16 Eli Zaretskii <eliz@gnu.org>
1358
1359 * config.in: Add #undef HAVE_COFF_H.
1360
1361 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
1362 Required for ISC 4.1.
1363
1364 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
1365
1366 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
1367 Andrew Wiseman <a.wiseman@btclick.com>.
1368
1369 2001-11-16 Kim F. Storm <storm@cua.dk>
1370
1371 The following changes are made to clean up the various internal
1372 references to the fringes to actually use the term `fringe' for
1373 them. Previously, they were called `flags areas', `bitmap areas',
1374 `left/right side of windows', or implicitly as `flags' or
1375 `bitmaps':
1376
1377 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
1378 Comments fixed. Use renamed symbols.
1379
1380 * dispnew.c: Comment fix. Use renamed symbols.
1381
1382 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
1383 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
1384 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
1385
1386 * msdos.c: Comment fix.
1387
1388 * w32fns.c: Use renamed symbols.
1389
1390 * w32term.c: Comment fixes. Use renamed symbols.
1391 (fringe_bitmap_type): Renamed from bitmap_type.
1392 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
1393 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
1394 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
1395
1396 * w32term.h: Comment fixes. Use renamed symbols.
1397 (fringes_extra): Renamed from flags_areas_extra.
1398 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
1399 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
1400 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
1401 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
1402 (FRAME_X_LEFT_FRINGE_WIDTH):
1403 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
1404 (FRAME_X_RIGHT_FRINGE_WIDTH):
1405 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
1406
1407 * widget.c: Use renamed symbols.
1408
1409 * window.c: Comment fixes. Use renamed symbols.
1410 (coordinates-in-window-p): Doc fix.
1411
1412 * xdisp.c: Comment fixes. Use renamed symbols.
1413
1414 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
1415
1416 * xfns.c: Use renamed symbols.
1417
1418 * xterm.c: Comment fixes. Use renamed symbols.
1419 (fringe_bitmap_type): Renamed from bitmap_type.
1420 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
1421 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
1422 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
1423
1424 * xterm.h: Comment fixes. Use renamed symbols.
1425 (fringes_extra): Renamed from flags_areas_extra.
1426 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
1427 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
1428 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
1429 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
1430 (FRAME_X_LEFT_FRINGE_WIDTH):
1431 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
1432 (FRAME_X_RIGHT_FRINGE_WIDTH):
1433 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
1434
1435 2001-11-15 Jason Rumney <jasonr@gnu.org>
1436
1437 * w32menu.c (add-menu-item): Make help_echo and radio buttons
1438 work for most menu items. From David Ponce
1439 <david.ponce@wanadoo.fr>.
1440
1441 2001-11-15 Gerd Moellmann <gerd@gnu.org>
1442
1443 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
1444 Some x_set_* function expect to be called even if old and new
1445 value are equal.
1446
1447 * xdisp.c (build_desired_tool_bar_string): Accept zero
1448 tool_bar_button_relief.
1449
1450 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
1451
1452 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
1453
1454 * xterm.c (x_draw_bar_cursor): If the background color of the
1455 glyph under the cursor equals the frame's cursor color, use
1456 the glyph's foreground color for drawing the bar cursor.
1457
1458 * dispnew.c (direct_output_forward_char): Fix character/byte
1459 position comparison.
1460
1461 2001-11-15 Miles Bader <miles@gnu.org>
1462
1463 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
1464 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
1465 Update arguments to find_field.
1466 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
1467 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
1468 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
1469 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
1470
1471 2001-11-14 Richard M. Stallman <rms@gnu.org>
1472
1473 * editfns.c (Fpropertize): Allow call with 1 arg.
1474
1475 * dispextern.h (image_background, image_background_transparent):
1476 Conditionalize on HAVE_X_WINDOWS.
1477
1478 2001-11-13 Richard M. Stallman <rms@gnu.org>
1479
1480 * print.c (Fprin1_to_string): Doc fix.
1481
1482 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
1483
1484 * floatfns.c (Fceiling, Ffloor): Doc fixes.
1485
1486 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
1487
1488 * fileio.c (Ffile_accessible_directory_p): Doc fix.
1489
1490 * eval.c (syms_of_eval): Doc fix.
1491
1492 * coding.c (syms_of_coding): Doc fix.
1493
1494 * doc.c (Fsnarf_documentation): Doc fix.
1495
1496 * dispnew.c (syms_of_display): Doc fix.
1497
1498 * category.c (Fget_unused_category): Doc fix.
1499
1500 * buffer.c (syms_of_buffer): Doc fixes.
1501
1502 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
1503
1504 * print.c (prin1, print): Doc fix.
1505
1506 2001-11-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1507
1508 * fontset.h: Remove declarations of variables
1509 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
1510
1511 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
1512 `Vclip_large_size_font'.
1513
1514 2001-11-13 Jason Rumney <jasonr@gnu.org>
1515
1516 * w32fns.c: Doc fix.
1517
1518 2001-11-13 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1519
1520 * xfaces.c (Fface_attributes_as_vector): Doc fix.
1521
1522 * w32fns.c (Fx_synchronize): Reindent.
1523
1524 * fns.c: Doc fix.
1525
1526 * emacs.c: Doc fix.
1527
1528 * coding.c: Doc fix.
1529
1530 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
1531 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
1532 `new style' [w/`doc:' keyword].
1533
1534 * xmenu.c (x-popup-menu): Reindent.
1535 (x-popup-dialog): Likewise.
1536
1537 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
1538
1539 * xdisp.c (Fdump_tool_bar_row): Reindent.
1540
1541 * minibuf.c (Fminibuffer_complete_word): Reindent.
1542 (Fminibuffer_complete_and_exit): Likewise.
1543 (Fminibuffer_completion_help): Likewise.
1544 (Fminibuffer_message): Likewise.
1545
1546 * fns.c (Freverse): Reindent.
1547
1548 * eval.c (Fif): Reindent.
1549 (Fand): Likewise.
1550
1551 * editfns.c (Fuser_real_login_name): Reindent.
1552 (Finsert_buffer_substring): Likewise.
1553 (Fcompare_buffer_substrings): Likewise.
1554 (Fsubst_char_in_region): Likewise.
1555
1556 * dispnew.c (Fsit_for): Reindent.
1557 (Fframe_or_buffer_changed_p): Likewise.
1558 (Finternal_show_cursor_p): Likewise.
1559 (syms_of_display): Likewise.
1560
1561 * alloc.c (Flist): Reindent.
1562 (Fvector): Likewise.
1563
1564 2001-11-12 Richard M. Stallman <rms@gnu.org>
1565
1566 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
1567 LeaveNotify events. Only FocusIn and FocusOut do that now.
1568 (x_display_and_set_cursor): Do display hollow cursors in active
1569 minibuffer windows when they are not selected.
1570
1571 2001-11-12 Jason Rumney <jasonr@gnu.org>
1572
1573 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
1574 * w32term.c: Change doc-string comments to `new style'.
1575 [w/`doc:' keyword]. Doc fixes.
1576
1577 * w32fns.c: Don't define max.
1578 (Fx_open_connection): Only execute once.
1579
1580 2001-11-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1581
1582 * ccl.c: Change macros to use do-while block instead of if-else.
1583 Use braces to follow GNU Coding Standards.
1584
1585 2001-11-11 Richard M. Stallman <rms@gnu.org>
1586
1587 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
1588
1589 * lread.c (read_escape): Use end_of_file_error for reporting eof.
1590
1591 * insdel.c (replace_range): Use adjust_markers_for_replace
1592 instead of adjust_markers_for_delete and adjust_markers_for_insert.
1593
1594 * intervals.h: Declare set_text_properties and set_text_properties_1.
1595
1596 * textprop.c (set_text_properties_1): New subroutine
1597 broken out of set_text_properties.
1598 (set_text_properties): Use set_text_properties_1.
1599
1600 * intervals.c (graft_intervals_into_buffer):
1601 Use set_text_properties_1 to clear out properties.
1602
1603 * search.c (Freplace_match): Use replace_range to insert
1604 and delete. Don't request property inheritance from
1605 surrounding text.
1606
1607 2001-11-10 Jason Rumney <jasonr@gnu.org>
1608
1609 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
1610 vertical fonts. Allow them if face name is explicitly specified.
1611 Do not give up if we find a font that cannot be converted to an xlfd.
1612
1613 2001-11-10 Gerd Moellmann <gerd@gnu.org>
1614
1615 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
1616 instead of malloc/free.
1617
1618 2001-11-09 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1619
1620 * xfaces.c (merge_face_vectors): Use braces to follow GNU
1621 Coding Standards.
1622 (Finternal_set_lisp_face_attribute): Likewise.
1623
1624 * buffer.c (Fbury_buffer): Likewise.
1625
1626 * indent.c (current_column_1): Remove unused variable `prev_col'.
1627
1628 * coding.c (encode_coding): Use precomputed value of `src'.
1629 (encode_coding): Remove unused variable `src_end'.
1630 (code_convert_region): Remove unused variables `count'.
1631
1632 2001-11-07 Jason Rumney <jasonr@gnu.org>
1633
1634 * w32term.c (x_display_and_set_cursor): Do not move system caret
1635 if cursor_glyph is NULL.
1636
1637 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1638
1639 * keymap.c (access_keymap): Fix compilation error.
1640
1641 2001-11-07 Miles Bader <miles@gnu.org>
1642
1643 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
1644
1645 2001-11-07 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1646
1647 * intervals.c (graft_intervals_into_buffer):
1648 Remove #ifdef'd-out code.
1649 (graft_intervals_into_buffer): Remove unused variable `middle'.
1650
1651 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
1652 code (eval-current-buffer).
1653 Change doc-string comments to `new style' [w/`doc:' keyword].
1654
1655 2001-11-06 Richard M. Stallman <rms@gnu.org>
1656
1657 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
1658
1659 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
1660
1661 * lread.c (read1): Fix behavior with nested backquoting.
1662
1663 * keyboard.c (make_lispy_event): Check integerness and fix
1664 Lisp_Object/int mixup.
1665
1666 2001-11-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1667
1668 * fns.c (copy_hash_table): Remove unused variable `v'.
1669
1670 * fontset.c (fontset_font_pattern): Remove unused variable
1671 `family_registry'.
1672
1673 * indent.c (current_column_1): Remove unused variable `prev_col'.
1674
1675 2001-11-05 Richard M. Stallman <rms@gnu.org>
1676
1677 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
1678
1679 * buffer.c (Fkill_buffer): Don't delete auto save file
1680 if buffer is modified.
1681
1682 2001-11-05 Andrew Innes <andrewi@gnu.org>
1683
1684 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
1685 CHECK_NUMBER_CDR.
1686
1687 2001-11-05 Richard M. Stallman <rms@gnu.org>
1688
1689 * unexelf.c (unexec): Minor changes; clean up comments.
1690
1691 2001-11-05 Sam Steingold <sds@gnu.org>
1692
1693 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
1694
1695 2001-11-05 Andreas Schwab <schwab@suse.de>
1696
1697 * sound.c (sound_perror): Save errno from being clobbered.
1698
1699 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
1700
1701 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
1702 the program image directly.
1703
1704 2001-11-05 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1705
1706 * buffer.h (Fbuffer_local_value): Add prototype.
1707
1708 2001-11-04 Richard M. Stallman <rms@gnu.org>
1709
1710 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
1711 and CHECK_BUFFER.
1712
1713 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
1714 (record_char): Likewise.
1715
1716 * keyboard.c (make_lispy_event): Don't insist a drag event must
1717 move to a different buffer position. Instead, check for moving at
1718 least double_click_fuzz.
1719
1720 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
1721
1722 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
1723
1724 * indent.c (current_column_1, Fmove_to_column): Separate the code
1725 for display-table glyphs from the code buffer text, to fix
1726 bugs in the former.
1727
1728 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
1729
1730 * buffer.c (Fbuffer_local_value): New function.
1731 (syms_of_buffer): Defsubr it.
1732
1733 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
1734 value of `cursor-in-non-selected-windows'.
1735
1736 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
1737 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
1738 (syms_of_xdisp): Initialize it.
1739
1740 2001-11-04 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1741
1742 * xfns.c (Fx_create_frame): Doc fix.
1743
1744 * coding.c: Change doc-string comments to `new style' [w/`doc:'
1745 keyword].
1746
1747 * eval.c (top_level_value, top_level_set): Remove commented and
1748 #ifdef'd-out code.
1749 (Fdefvar): Fix usage in doc-string.
1750
1751 2001-11-03 Richard M. Stallman <rms@gnu.org>
1752
1753 * xfns.c: Include unistd.h, if it exists.
1754
1755 * editfns.c: Move the include of ctype.h after unistd.h.
1756
1757 * gmalloc.c: Test BROKEN_PROTOTYPES.
1758
1759 2001-11-03 Ken Raeburn <raeburn@gnu.org>
1760
1761 * lisp.h (CHECK_STRING_CAR): New macro.
1762 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
1763 treating XCAR and XCDR as lvalues.
1764 (openp): Use CHECK_STRING_CAR.
1765 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
1766
1767 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
1768
1769 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
1770 (SIGMASKTYPE): Define.
1771
1772 * syssignal.h (sigunblock): Don't define if already defined.
1773
1774 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1775
1776 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
1777 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
1778 Fix typos in comments.
1779
1780 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
1781 and #ifdef'd-out code.
1782 Fix and reindent comments.
1783
1784 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
1785
1786 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
1787 argument `i' in macros.
1788
1789 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
1790 `i' in macros.
1791
1792 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
1793 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
1794 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
1795 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
1796 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
1797 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
1798 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
1799 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
1800 in macros.
1801
1802 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
1803 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
1804 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
1805 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
1806 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
1807 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
1808 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
1809 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
1810 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
1811 (remove unused second argument).
1812
1813 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
1814
1815 * syntax.c (describe_syntax): New wrapper.
1816 (Finternal_describe_syntax_value): Rename from describe_syntax.
1817 Don't insert space at front and \n at the end.
1818 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
1819
1820 * regex.c (re_wctype): Try to fix some warnings.
1821 (regcomp, regexec): Don't forget the __restrict.
1822
1823 2001-11-02 Richard M. Stallman <rms@gnu.org>
1824
1825 * textprop.c (Fget_char_property): Doc fix.
1826
1827 2001-11-02 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1828
1829 * process.c (Fstart_process): Add usage to doc-string.
1830
1831 * data.c (Fsetq_default): Ditto.
1832
1833 * callint.c (Finteractive): Ditto.
1834
1835 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
1836
1837 * macros.c: Don't include keymap.h any more.
1838
1839 2001-11-01 Richard M. Stallman <rms@gnu.org>
1840
1841 * data.c (Fmake_local_variable): Doc fix.
1842
1843 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
1844 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
1845
1846 * keymap.c (Fdescribe_buffer_bindings): Print character property
1847 bindings along with or instead of the buffer local map.
1848 Make the overriding maps override what they should.
1849
1850 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1851
1852 * window.c (grow_mini_window): Fix typo in comment.
1853
1854 2001-11-01 Gerd Moellmann <gerd@gnu.org>
1855
1856 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
1857 (XTset_vertical_scroll_bar): Likewise.
1858
1859 * xfns.c (x_build_heuristic_mask): Use four_corners_best
1860 instead of IMAGE_BACKGROUND.
1861
1862 * xfns.c (four_corners_best): Reindent.
1863
1864 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
1865 Handle :box so that it is possible to specify sexprs.
1866
1867 2001-11-01 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1868
1869 * xfaces.c (Finternal_merge_in_global_face): Reindent.
1870 (Fface_font): Ditto.
1871 (Finternal_set_alternative_font_registry_alist): Ditto.
1872 (Ftty_suppress_bold_inverse_default_colors): Ditto.
1873
1874 * xfns.c (x-get-resource): Reindent.
1875
1876 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
1877
1878 * s/hpux11.h: New file.
1879
1880 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1881
1882 * emacs.c (USAGE1): Show command line option --no-window-system
1883 instead of --no-windows in usage.
1884 (standard_args): Rename --no-windows to --no-window-system.
1885 (bug_reporting_address): Follow Emacs coding conventions.
1886
1887 * eval.c (Fcommandp): Doc fix.
1888 Change doc-string comments to `new style' [w/`doc:' keyword].
1889
1890 * frame.c (Fframe_live_p): Doc fix.
1891
1892 * buffer.c (selective-display-ellipses): Doc fix.
1893
1894 2001-10-31 Gerd Moellmann <gerd@gnu.org>
1895
1896 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
1897
1898 * xfaces.c (realize_x_face): If C is not a single-byte character,
1899 set the face's colors_copied_bitwise_p instead of the defaulted_p
1900 members which have a different meaning.
1901 (free_face_colors): Do nothing for a face whose colors have been
1902 copied bitwise.
1903
1904 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
1905
1906 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1907
1908 * marker.c, mocklisp.c: Change doc-string comments to `new style'
1909 [w/`doc:' keyword].
1910
1911 2001-10-31 Gerd Moellmann <gerd@gnu.org>
1912
1913 * fns.c (require_unwind): Return Lisp_Object.
1914
1915 2001-10-31 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
1916
1917 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
1918 (last-input-char): Revert doc-string to be the same as the
1919 doc-string of `last-input-event'.
1920
1921 * xdisp.c: Fix typos in comments.
1922
1923 2001-10-31 Gerd Moellmann <gerd@gnu.org>
1924
1925 * window.c (grow_mini_window): Handle case that the root
1926 window is already smaller than the nominal mininum height.
1927
1928 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
1929
1930 * emacs.c (main): Don't call keys_of_macros any more.
1931
1932 * lisp.h (keys_of_macros): Remove.
1933
1934 * macros.c (keys_of_macros): Remove.
1935
1936 * xfaces.c (Fface_attribute_relative_p): Declare args.
1937
1938 2001-10-30 Jason Rumney <jasonr@gnu.org>
1939
1940 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
1941 (enum_font_cb2): Ignore fonts with vertical orientation.
1942
1943 2001-10-30 Richard M. Stallman <rms@gnu.org>
1944
1945 * keyboard.c (Finput_pending_p): Doc fix.
1946
1947 2001-10-30 Gerd Moellmann <gerd@gnu.org>
1948
1949 * xterm.c (x_after_update_window_line): Don't run the code
1950 clearing in borders for rows whose visible height is 0.
1951
1952 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
1953 resized_p flag is set. If not set, use the much less flickering
1954 method previously used.
1955
1956 * dispnew.c (change_frame_size_1): Set frame's resized_p.
1957
1958 * frame.h (struct frame) <resized_p>: New member.
1959
1960 * lread.c (to_multibyte): Ensure read_buffer is at least twice
1961 as large as the number of bytes to convert.
1962
1963 * lread.c (to_multibyte): New function.
1964 (read1): Use it.
1965
1966 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
1967
1968 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
1969
1970 2001-10-30 Gerd Moellmann <gerd@gnu.org>
1971
1972 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
1973 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
1974 if the row's fill_line_p is set and drawing the last glyph with
1975 DRAW_IMAGE_{RAISED,SUNKEN}.
1976
1977 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
1978
1979 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
1980
1981 * xmenu.c: Include coding.h and charset.h.
1982 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
1983 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
1984 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
1985 Explicitly set wv->help. Use `TRUE' rather than `True'.
1986 (menu_help_callback): Use empty_string.
1987
1988 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
1989 (Fx_popup_dialog): Explicitly init f.
1990 (w32_menu_display_help): Use empty_string.
1991
1992 2001-10-29 Richard M. Stallman <rms@gnu.org>
1993
1994 * fns.c (Frequire): Detect recursive try to require the same
1995 feature 3 or more levels deep, and get error.
1996 (require_unwind): New subroutine.
1997 (require_nesting_list): New variable.
1998 (syms_of_fns): Init and staticpro it.
1999
2000 * print.c (print_object): Clarify indication of insertion type.
2001
2002 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
2003
2004 * coding.c (syms_of_coding): Document that locale-coding-system is
2005 used for decoding input on X.
2006
2007 * window.c (Fscroll_left, Fscroll_right): Doc fix.
2008
2009 2001-10-29 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2010
2011 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
2012 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
2013
2014 2001-10-29 Gerd Moellmann <gerd@gnu.org>
2015
2016 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
2017 use NO_CURSOR if cursor_in_non_selected_windows is false.
2018
2019 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
2020 the slant attribute if FRAME is t.
2021
2022 * xfns.c (x_set_internal_border_width): Set frame garbaged
2023 when X window doesn't exist yet.
2024
2025 * xterm.c (x_after_update_window_line): Clear internal border
2026 in different circumstances.
2027
2028 * xterm.c (XTread_socket) <KeyPress>: Don't use
2029 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
2030 <handa@etl.go.jp>.
2031
2032 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
2033
2034 * m/ibms390.h: New file. From Adam Thornton
2035 <athornton@sinenomine.net>.
2036
2037 2001-10-28 Gerd Moellmann <gerd@gnu.org>
2038
2039 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
2040
2041 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
2042 a loop counter.
2043
2044 2001-10-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2045
2046 * emacs.c: Use argv[0] instead of emacs when -t was specified.
2047
2048 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
2049 keyword].
2050 Fix typos in comments.
2051
2052 * emacs.c (bug_reporting_address): New function.
2053 Use it when displaying usage message.
2054
2055 * minibuf.c (read_minibuf): Remove unused external declaration of
2056 variable `Qread_only'.
2057
2058 * keymap.c (access_keymap): Remove unused variable `charset'.
2059
2060 2001-10-28 Miles Bader <miles@gnu.org>
2061
2062 * xfaces.c (merge_face_heights): Handle TO being relative as well.
2063 Remove #ifdef'd-out code.
2064 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
2065 (syms_of_xfaces): Initialize them.
2066
2067 2001-10-27 Jason Rumney <jasonr@gnu.org>
2068
2069 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
2070 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
2071 position using the system caret.
2072
2073 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
2074 (w32_system_caret_height, w32_system_caret_x)
2075 (w32_system_caret_y): New variables for tracking system caret.
2076 (w32_initialize): Initialize them.
2077 (x_display_and_set_cursor): Make system caret follow the active cursor.
2078
2079 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
2080 New messages types.
2081
2082 * w32term.c (note_mouse_highlight): Clear old help_echo.
2083
2084 2001-10-27 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2085
2086 * xterm.c: Fix typo in a comment.
2087
2088 * emacs.c: Fix typos in comments.
2089 Remove unnecessary spaces.
2090 Change doc-string comments to `new style' [w/`doc:' keyword].
2091 (USAGE2): Fix typos in usage string.
2092
2093 * xterm.c: Fix typo in a comment.
2094
2095 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
2096 emacs.c.
2097
2098 2001-10-27 Gerd Moellmann <gerd@gnu.org>
2099
2100 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
2101 instead of 1/2 line_height in the heuristic for skipping
2102 farther backward when target_y was not reached.
2103
2104 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
2105 Display errno only if non-zero.
2106 (sound_warning): New function.
2107 (vox_configure): Don't treat failing to set sample rate as error.
2108 (various places): Improve error messages.
2109
2110 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
2111
2112 * fileio.c (Faccess_file): Run the argument filename through
2113 Fexpand_file_name, before using it.
2114
2115 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
2116 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
2117
2118 2001-10-26 Gerd Moellmann <gerd@gnu.org>
2119
2120 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
2121
2122 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2123 Fix clearing in the case of scroll bars on the right.
2124
2125 2001-10-26 Juanma Barranquero <lektu@terra.es>
2126
2127 * w32gui.h (XImage): Add a dummy typedef.
2128
2129 2001-10-26 Gerd Moellmann <gerd@gnu.org>
2130
2131 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
2132
2133 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
2134
2135 * frame.c (Fframe_parameter): Fix last change.
2136
2137 * fileio.c: Revert last change (which removed old commented-out
2138 version of expand-file-name). Add a comment that explains why
2139 this old version should not be removed.
2140
2141 2001-10-25 Gerd Moellmann <gerd@gnu.org>
2142
2143 * frame.c (Fframe_parameter): Fix a bug whereby some
2144 ``artificial'' frame parameters, like `minibuffer' were not
2145 obtained by calling Fframe_parameters.
2146
2147 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
2148 cursor differently.
2149
2150 * xdisp.c (move_it_vertically_backward): Compute line height
2151 differently. Add heuristic to try to be more compatible to 20.x.
2152
2153 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
2154
2155 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
2156
2157 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
2158 boolean.
2159
2160 2001-10-25 Miles Bader <miles@gnu.org>
2161
2162 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
2163 BG is a pointer to a structure, not a structure.
2164 (gif_format, png_format): Add missing commas.
2165
2166 2001-10-24 Richard M. Stallman <rms@gnu.org>
2167
2168 * xfaces.c (Fface_attributes_as_vector): New function.
2169 (syms_of_xfaces): Defsubr it.
2170
2171 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2172
2173 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
2174 variable `area'.
2175
2176 2001-10-25 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2177
2178 * search.c (scan_newline): Remove unused variable `selective_display'.
2179
2180 2001-10-25 Miles Bader <miles@gnu.org>
2181
2182 * dispextern.h (struct image): Add `background',
2183 `background_valid', and `background_transparent' fields.
2184 (image_background, image_background_transparent): New declarations.
2185 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
2186 * xfns.c (image_background, image_background_transparent)
2187 (four_corners_best): New functions.
2188 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
2189 (gs_format): Add `:background' entry.
2190 (lookup_image): Set IMG's background color if specified.
2191 (pbm_load, xbm_load_image, png_load): Set IMG's background field
2192 when appropriate.
2193 (x_clear_image_1): Reset `background_valid' and
2194 `background_transparent_valid' fields.
2195 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
2196 calculating it here. Set IMG's background_transparent field.
2197 (enum xpm_keyword_index): Add XPM_BACKGROUND.
2198 (enum png_keyword_index): Add PNG_BACKGROUND.
2199 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
2200 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
2201 (enum gif_keyword_index): Add GIF_BACKGROUND.
2202 (enum gs_keyword_index): Add GS_BACKGROUND.
2203 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
2204 Pre-calculate image background color where necessary.
2205 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
2206 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
2207 color to use for image glyph reliefs.
2208
2209 2001-10-24 Gerd Moellmann <gerd@gnu.org>
2210
2211 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
2212 in full-width rows.
2213
2214 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2215 Fix clearing of area not covered by scroll bar.
2216
2217 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2218
2219 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
2220 and `real_start'.
2221 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2222 (glyph_rect): Remove unused variable `area'.
2223
2224 2001-10-24 Gerd Moellmann <gerd@gnu.org>
2225
2226 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
2227
2228 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
2229 (row_containing_pos): Take additional argument DY.
2230 Treat rows ending in middle of char differently.
2231 (display_line): Handle tabs on window systems differently.
2232
2233 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
2234 with additional argument.
2235
2236 * dispextern.h (row_containing_pos): Adjust prototype.
2237
2238 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
2239 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
2240 (try_window_id, try_window_reusing_current_matrix)
2241 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
2242 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
2243
2244 2001-10-24 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2245
2246 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
2247 gnuemacs).
2248 (HAVE_BOXES): Fix typo in comment.
2249 (push_menu_pane): Fix typo in comment.
2250
2251 * xdisp.c: (display_prop_string_p): Remove unused local declaration
2252 of `Qwhen'.
2253 (single_display_prop_string_p): Remove unused local declarations
2254 of `Qwhen' and `Qmargin'.
2255 (string_buffer_position): Remove unused variable `around'.
2256 (store_frame_title): Remove unused variable `width'.
2257
2258 * window.c: Don't define max.
2259 (coordinates_in_window): Remove unused variable `uy'.
2260
2261 * widget.c: Don't define max.
2262
2263 * process.c: Don't define max.
2264 (create_process): Remove unused variable `buffer'.
2265
2266 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2267
2268 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
2269
2270 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
2271
2272 * xfaces.c (Finternal_set_lisp_face_attribute)
2273 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
2274 frame is on a windowed display.
2275
2276 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2277
2278 * dispnew.c (sync_window_with_frame_matrix_rows):
2279 Fix handling of windows which aren't full-width, fix handling
2280 of marginal areas.
2281
2282 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
2283
2284 2001-10-23 Andreas Schwab <schwab@suse.de>
2285
2286 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
2287 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
2288
2289 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2290
2291 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
2292 REAL_END. Notice if cursor gets overwritten.
2293 (notice_overwritten_cursor): Take X positions as parameters.
2294 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
2295 around call to x_draw_glyphs.
2296
2297 2001-10-23 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2298
2299 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
2300 instead of C) and usage.
2301
2302 * editfns.c (char-to-string): Fix argument names (use CHAR instead
2303 of C) and usage.
2304
2305 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
2306 `left', `max_width' and `max_height'.
2307
2308 2001-10-23 Gerd Moellmann <gerd@gnu.org>
2309
2310 * xdisp.c (display_line): For a tab continued to the next line,
2311 set row's ends_in_middle_of_char_p.
2312
2313 2001-10-22 Gerd Moellmann <gerd@gnu.org>
2314
2315 * xdisp.c (display_line): Fix computation of continuation lines
2316 width for TABs.
2317
2318 2001-10-22 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2319
2320 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
2321 `Qlaplace'.
2322
2323 * fileio.c: Remove unused code.
2324
2325 2001-10-22 Miles Bader <miles@gnu.org>
2326
2327 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
2328 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
2329 Remove `DOC_STRINGS_IN_COMMENTS' cases.
2330
2331 2001-10-21 Jason Rumney <jasonr@gnu.org>
2332
2333 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
2334
2335 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
2336
2337 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
2338 (Finsert_string): Avoid the multi-line string literals warning.
2339
2340 2001-10-22 Miles Bader <miles@gnu.org>
2341
2342 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
2343 (Fdocumentation): Don't use it.
2344 (syms_of_doc): Don't initialize it.
2345
2346 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
2347 * print.c (Fwith_output_to_temp_buffer): Likewise.
2348 * window.c (Fsave_window_excursion): Likewise.
2349 * editfns.c (Fsave_excursion, Fsave_current_buffer)
2350 (Fsave_restriction): Likewise.
2351 * eval.c (Frun_hooks, Frun_hook_with_args)
2352 (Frun_hook_with_args_until_failure)
2353 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
2354 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
2355 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
2356 (Funwind_protect, Fcondition_case): Likewise.
2357 * coding.c (Ffind_operation_coding_system): Likewise.
2358 * keyboard.c (Ftrack_mouse): Likewise.
2359
2360 2001-10-21 Miles Bader <miles@gnu.org>
2361
2362 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
2363 (Fmake_hash_table): Add usage: string to doc string.
2364 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
2365 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
2366 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
2367 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
2368 (Fml_prefix_argument_loop): Likewise.
2369
2370 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2371
2372 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
2373
2374 * sysdep.c (init_sys_modes): Change doc-string comments to `new
2375 style' [w/`doc:' keyword].
2376
2377 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
2378 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
2379 comments to `new style' [w/`doc:' keyword].
2380
2381 2001-10-21 Jason Rumney <jasonr@gnu.org>
2382
2383 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
2384
2385 * w32term.c (remember_mouse_glyph): New function.
2386 (w32_mouse_position): Use it.
2387 (note_mouse_movement): If the mouse moved off the glyph, remember
2388 its new position.
2389
2390 * w32term.h (struct w32_output): Correct spelling of x_compatible.
2391 (w32_display_info): Add mouse_face_overlay.
2392
2393 * w32term.c (notice_overwritten_cursor): Renamed from
2394 note_overwritten_text_cursor. Rewritten to take glyph widths into
2395 account.
2396 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
2397 (fast_find_string_pos): New function.
2398 (fast_find_position): Return the correct vpos. Add parameter
2399 STOP. In the final row, stop before glyphs having STOP as object.
2400 Don't consider glyphs that are not from a buffer.
2401 (fast_find_position) [0]: Add a presumably more correct version
2402 for after 21.1.
2403 (expose_window_tree, expose_frame): Don't compute intersections here.
2404 (expose_window): Do it here instead.
2405 (expose_window_tree, expose_window, expose_line): Return 1 when
2406 overwriting mouse-face.
2407 (expose_window): If W is the window currently being updated, mark
2408 the frame garbaged.
2409 (expose_frame): If mouse-face was overwritten, redo it.
2410 (x_use_underline_position_properties): New variable.
2411 (syms_of_xterm): DEFVAR_BOOL it.
2412 (x_draw_glyph_string): Add comment to use it in future.
2413 (x_draw_glyph_string): Restore clipping after drawing box.
2414 Fix a computation of the underline position.
2415 (w32_get_glyph_string_clip_rect): Minor cleanup.
2416 (x_fill_stretch_glyph_string): Remove an assertion.
2417 (x_produce_glyphs): Don't convert multibyte characters
2418 to unibyte characters in unibyte buffers.
2419 (cursor_in_mouse_face_p): New function.
2420 (x_draw_stretch_glyph_string): Use it to choose a different GC
2421 when drawing a cursor within highlighted text. Don't draw
2422 background again if it has already been drawn.
2423 (x_draw_glyph_string_box): Don't draw a full-width
2424 box just because the glyph row's full_width_p flag is set.
2425 (x_draw_glyphs): Fix computation of rightmost x for
2426 full-width rows.
2427 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
2428 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
2429 change bottom shadow accordingly. Some cleanup.
2430 (x_update_window_end): Handle overwritten mouse face
2431 also for tool bar windows.
2432 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
2433 DRAW is DRAW_IMAGE_RAISED.
2434 (clear_mouse_face): Return 1 if text with mouse face was
2435 actually redrawn. Make the function static. Reset
2436 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
2437 optimize away highlighting if we pass over that same overlay again.
2438 (note_mouse_highlight): Call mouse_face_overlay_overlaps
2439 to detect a case where we have to highlight a different region
2440 despite not having left the currently highlighted region.
2441 Set mouse_face_overlay in the x_display_info. Avoid changing the
2442 mouse pointer shape when show_mouse_face has already done it, or
2443 there is no need. Handle mouse-face and help-echo in strings.
2444 (glyph_rect): New function.
2445 (w32_mouse_position): Use it to raise the threshold for mouse
2446 movement event generation.
2447 (w32_initialize_display_info): Initialize the x_display_info's
2448 mouse_face_overlay.
2449 (w32_set_vertical_scroll_bar): Don't clear a zero height
2450 or width area.
2451 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
2452 a widget to zero height.
2453
2454 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
2455 Protect unibyte strings created by replacing their multibyte
2456 equivalents in menu_items.
2457 (w32_menu_show): Don't overwrite an item's name with its key
2458 description in case the description is a multibyte string.
2459 (single_submenu): Some cleanup.
2460
2461 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
2462 (postprocess_image): New function.
2463 (lookup_image): Call it for all image types except PostScript.
2464 (x_kill_gs_process): Call postprocess_image.
2465 (tiff_error_handler, tiff_warning_handler): New functions.
2466 (tiff_load): Install them as handlers.
2467 (x_kill_gs_process): Recognize if someone has cleared the image
2468 cache under us.
2469 (valid_image_p): Protect better against invalid image
2470 specifications. Previous code could signal an error.
2471 (Fx_hide_tip, Fshow_tip): Doc fix.
2472 (Fv_max_tooltip_size): New variable.
2473 (syns_of_xfns): DEFVAR_LISP it.
2474 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
2475 window buffer to *tip* right after creating the frame. Set frame's
2476 window_width. Use a maximum tooltip size specified by
2477 Vx_max_tooltip_size, if that has valid contents.
2478 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
2479 Make sure the tooltip is completely visible.
2480 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
2481 (Fx_create_frame): Adjust the frame's height for presence
2482 of the tool bar before calling x_figure_window_size.
2483 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
2484 when the window gets smaller.
2485 (x_set_foreground_color): Set frame's cursor_pixel.
2486 (x_set_foreground_color, x_set_background_color): Cleaned up.
2487 (x_set_font): Handle case of x_new_fontset returning the same name
2488 as before, although there was a change in fontsets.
2489
2490 2001-10-21 Miles Bader <miles@gnu.org>
2491
2492 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
2493 (Flogxor): Add usage: string to doc string.
2494 * charset.c (Fstring): Likewise.
2495 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
2496 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
2497
2498 2001-10-21 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2499
2500 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
2501
2502 * alloc.c: Reindent DEFUNs with doc: keywords.
2503
2504 * abbrev.c (Finsert_abbrev_table_description): Reindent.
2505
2506 * frame.c: Change doc-string comments to `new style' [w/`doc:'
2507 keyword].
2508
2509 2001-10-20 Gerd Moellmann <gerd@gnu.org>
2510
2511 * (Version 21.1 released.)
2512
2513 2001-10-20 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2514
2515 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
2516
2517 * xdisp.c (invisible_text_between_p): Put prototype inside #if
2518 0 because unused.
2519
2520 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
2521 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
2522 Change doc-string comments to `new style' [w/`doc:' keyword].
2523
2524 2001-10-20 Miles Bader <miles@gnu.org>
2525
2526 The following changes remove the glyph_row `inverse_p' field,
2527 which is never set anymore, due to other changes:
2528
2529 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
2530 (reassert_line_highlight, change_line_highlight): Declarations removed.
2531 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
2532 (line_hash_code, row_equal_p, fake_current_matrices)
2533 (build_frame_matrix_from_leaf_window, update_frame_line)
2534 (update_frame_line, update_frame_line, update_frame_line):
2535 Don't use `inverse_p' field.
2536 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
2537 change_line_highlight_hook.
2538 (XTreassert_line_highlight, x_change_line_highlight):
2539 Functions removed.
2540 (x_fix_overlapping_area, x_write_glyphs, expose_area)
2541 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
2542 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
2543 `inverse_p' field.
2544 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
2545 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
2546 (w32_reassert_line_highlight, x_change_line_highlight):
2547 Functions removed.
2548 * w32console.c (reassert_line_highlight, change_line_highlight):
2549 Functions removed.
2550 (initialize_w32_display): Don't set reassert_line_highlight_hook
2551 or change_line_highlight_hook.
2552 (hl_mode): Function removed.
2553 (reset_terminal_modes, set_terminal_modes, update_begin)
2554 (update_end, w32_face_attributes, initialize_w32_display):
2555 (clear_frame, ins_del_lines): Don't call it.
2556 * termhooks.h (reassert_line_highlight_hook)
2557 (change_line_highlight_hook): Declarations removed.
2558 * term.c (reassert_line_highlight_hook)
2559 (change_line_highlight_hook): Variables removed.
2560 (reassert_line_highlight, change_line_highlight): Functions removed.
2561 * msdos.c (IT_reassert_line_highlight)
2562 (IT_change_line_highlight): Functions removed.
2563 (internal_terminal_init): Don't set reassert_line_highlight_hook
2564 or change_line_highlight_hook.
2565 (highlight): Variable removed.
2566 (IT_set_face, IT_update_begin, IT_update_end)
2567 (IT_set_terminal_modes): Don't set or use it.
2568
2569 The following changes remove inverse-video support for terminals
2570 that use a `magic cookie' standout mode. Due to changes in the
2571 way mode-lines are displayed, such support no longer works
2572 anyway, and it's probable that almost no one uses such terminals
2573 anymore:
2574
2575 * term.c (standout_requested): Variable removed.
2576 (update_end, highlight_if_desired): Don't use it.
2577 (chars_wasted, copybuf): Variables removed.
2578 (write_standout_marker): Function removed.
2579 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
2580 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
2581 Don't use `chars_wasted' or `copybuf'.
2582 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
2583 Set `costs_set' to true.
2584 (cursor_to, clear_end_of_line): Test `costs_set' instead of
2585 `chars_wasted'.
2586 (clear_end_of_line): Function removed.
2587 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
2588 (clear_to_end): Call `clear_end_of_line' instead of
2589 `clear_end_of_line_raw'.
2590 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
2591 (term_init): Don't set them.
2592 Turn off any standout/underline modes that require magic cookies.
2593 (ins_del_lines, highlight_if_desired, background_highlight)
2594 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
2595 Remove special processing for magic-cookie standout modes.
2596 (turn_off_face, turn_on_face): Remove special processing for
2597 underline magic-cookie glitch.
2598
2599 2001-10-19 Richard M. Stallman <rms@gnu.org>
2600
2601 * eval.c (syms_of_eval): Doc fixes.
2602
2603 2001-10-19 Gerd Moellmann <gerd@gnu.org>
2604
2605 * xdisp.c (redisplay_internal): Don't clear echo area if the
2606 mini-window is selected.
2607
2608 2001-10-19 Miles Bader <miles@gnu.org>
2609
2610 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
2611 doesn't take precedence if the affected property's value is nil.
2612
2613 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
2614
2615 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
2616 with fields and suggest using `forward-line' to avoid them.
2617 * editfns.c (Fline_beginning_position, Fline_end_position):
2618 Clarify documentation.
2619
2620 2001-10-18 Stefan Monnier <monnier@cs.yale.edu>
2621
2622 * keymap.c (current_minor_maps): `override' only shadows its
2623 correspondent in minor-mode-map-alist, not the whole tail.
2624
2625 2001-10-18 Andrew Innes <andrewi@gnu.org>
2626
2627 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
2628 optimization. The fontp->encoding array was not being initialized
2629 correctly when compiled with optimizations by MSVC.
2630
2631 2001-10-18 Gerd Moellmann <gerd@gnu.org>
2632
2633 * xdisp.c (display_line): Indicate empty lines in active mini-window.
2634
2635 2001-10-17 Andrew Innes <andrewi@gnu.org>
2636
2637 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
2638
2639 * w32fns.c (w32_load_system_font): Cache codepage for font, in
2640 font_info.charset field.
2641
2642 * w32term.c (w32_encode_char): Get cached codepage from font_info,
2643 rather than working it out by calling w32_codepage_for_font for
2644 every glyph.
2645
2646 2001-10-17 Andrew Innes <andrewi@gnu.org>
2647
2648 * w32term.c (w32_read_socket): Determine clipping rectangle for
2649 the entire frame, including areas covered by scrollbars and the
2650 menubar. This avoids internal arguments about whether a frame is
2651 fully obscured or not.
2652
2653 2001-10-17 Gerd Moellmann <gerd@gnu.org>
2654
2655 * xdisp.c (try_window_id): Undo last change. Give up if
2656 window ends in strings.
2657
2658 * xdisp.c (try_window_id): Don't display lines after the window
2659 end if the rest of the window after the window end was already blank.
2660
2661 * xdisp.c (try_window_id): Remove code that was only there
2662 for the release of 21.1.
2663
2664 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
2665
2666 2001-10-17 Miles Bader <miles@gnu.org>
2667
2668 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
2669 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
2670 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
2671 Change doc-string comments to `new style' [w/`doc:' keyword].
2672 (DOC_STRINGS_IN_COMMENTS): Macro removed.
2673 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
2674 out make-docfile.
2675
2676 2001-10-16 Miles Bader <miles@gnu.org>
2677
2678 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
2679
2680 2001-10-16 Gerd Moellmann <gerd@gnu.org>
2681
2682 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
2683 *scratch*.
2684
2685 2001-10-16 Ken Raeburn <raeburn@gnu.org>
2686
2687 Avoid the assumption that car and cdr slots of cons cells are
2688 addressable lvalues; this allows for easier experimentation with
2689 other lisp implementations that may not permit such accesses for
2690 various reasons. Not quite complete -- buffer.c still needs some
2691 work, and w32/mac files need rechecking -- so compile-time
2692 enforcement is left disabled for now.
2693
2694 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
2695 gcc with a union-based Lisp object rep. Redefine as no-op for now.
2696 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
2697 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
2698 (XSETCAR, XSETCDR): New macros.
2699 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
2700 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
2701 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
2702 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
2703 XSETCDR.
2704 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
2705 * buffer.c (record_buffer, Fbury_buffer)
2706 (swap_out_buffer_local_variables, recenter_overlay_lists)
2707 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
2708 fields of a cons cell respectively.
2709 * callint.c (quotify_args, Fcall_interactively): Likewise.
2710 * ccl.c (Fregister_code_conversion_map): Likewise.
2711 * coding.c (detect_coding_system): Likewise.
2712 * composite.c (get_composition_id, make_composition_value_copy):
2713 Likewise.
2714 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
2715 (swap_in_symval_forwarding, set_internal, Fset_default)
2716 (Fmake_variable_buffer_local, Fmake_local_variable)
2717 (Fmake_variable_frame_local): Likewise.
2718 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
2719 * keymap.c (Fset_keymap_parent, store_in_keymap)
2720 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
2721 * minibuf.c (get_minibuffer): Likewise.
2722 * search.c (Fmatch_data): Likewise.
2723 * textprop.c (extend_property_ranges): Likewise.
2724 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
2725 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
2726 Likewise.
2727 * w32term.c (x_delete_display): Likewise.
2728 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
2729 Likewise.
2730 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
2731 * doc.c (store_function_docstring): Use XSETCARFASTINT.
2732 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
2733 (Fread_file_name): Use XSETCAR.
2734 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
2735 CHECK_NUMBER_CDR.
2736 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
2737 * frame.c (Fmake_terminal_frame): Use XSETCDR.
2738 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
2739 CHECK_NUMBER_CDR.
2740 * keyboard.c (read_char): Alter list traversal to avoid taking the
2741 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
2742 (parse_menu_item): Use XSETCAR and XSETCDR.
2743 (reach_char_x_menu_prompt): Use XSETCAR.
2744 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
2745 (Fcommand_execute): Use XSETCDR.
2746 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
2747 (openp): Change list traversal to avoid using XCAR as lvalue.
2748 (read_list): Use XSETCDR.
2749 * process.c (wait_reading_process_input): Change wait_for_cell
2750 handling to avoid taking addresses of cons cell slots.
2751 * xselect.c (x_own_selection, x_handle_selection_clear)
2752 (x_clear_frame_selections): Use XSETCDR.
2753 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
2754 (x_handle_property_notify, x_get_foreign_selection)
2755 (x_handle_selection_notify): Use XSETCAR.
2756
2757 2001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2758
2759 * buffer.c: Put doc strings in comments.
2760
2761 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
2762
2763 2001-10-15 Sam Steingold <sds@gnu.org>
2764
2765 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
2766
2767 2001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2768
2769 * process.c (process-inherit-coding-system-flag)
2770 (get-buffer-process): Do not confuse make-docfile with doc strings
2771 in comment.
2772
2773 * editfns.c (Fchar_to_string): Make doc string consistent with
2774 arguments. Put doc strings in comments.
2775
2776 * abbrev.c, minibuf.c: Put doc strings in comments.
2777
2778 2001-10-15 Gerd Moellmann <gerd@gnu.org>
2779
2780 * window.c (window_loop): Don't check for Fother_buffer returning nil.
2781
2782 * window.c (select_window_1): Unfreeze window start. Remove a
2783 doubled test for WINDOW being live.
2784
2785 2001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2786
2787 * fns.c (Fmapconcat): Fix typo in a doc string.
2788
2789 * dispnew.c (Fsleep_for): Fix typo in a doc string.
2790
2791 2001-10-15 Gerd Moellmann <gerd@gnu.org>
2792
2793 * xterm.c (x_draw_glyph_string): Restore clipping after
2794 drawing box.
2795
2796 2001-10-15 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2797
2798 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
2799
2800 2001-10-14 Stefan Monnier <monnier@cs.yale.edu>
2801
2802 * indent.c (skip_invisible): Use new retval of
2803 TEXT_PROP_MEANS_INVISIBLE.
2804
2805 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
2806 If a parent is reached and noinherit is set, exit immediately.
2807 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
2808
2809 * s/ms-w32.h (EXEC_SUFFIXES):
2810 * s/msdos.h (EXEC_SUFFIXES):
2811 * process.h (EXEC_SUFFIXES): Remove.
2812
2813 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
2814 (decode_suffixes): Remove.
2815
2816 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
2817 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
2818 (invisible_ellipsis_p): Remove.
2819
2820 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
2821 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
2822 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
2823 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
2824 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
2825
2826 2001-10-14 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2827
2828 * lisp.h (Ftop_level): Add prototype.
2829
2830 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
2831 (XTread_socket): Improve style of comments to follow other
2832 comments.
2833
2834 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
2835 is already prototyped in included lisp.h).
2836
2837 * frame.c (Fset_mouse_position): Improve style of comment to
2838 follow other comments.
2839 (Fset_mouse_pixel_position): Improve style of comment to follow
2840 other comments.
2841 (Fmake_frame_visible): Doc fix and typo in comment.
2842 (Fmake_frame_invisible): Doc fix and typo in comment.
2843 (Ficonify_frame): Fix typo in comment.
2844
2845 2001-10-14 Gerd Moellmann <gerd@gnu.org>
2846
2847 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
2848 * term.c, alloc.c: Put doc strings in comments.
2849
2850 2001-10-13 Gerd Moellmann <gerd@gnu.org>
2851
2852 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
2853 Provide definitions for doc strings in comments.
2854
2855 * fns.c: Put doc strings in comments.
2856
2857 2001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
2858
2859 * dired.c (file_name_completion): Ignore a candidate directory if
2860 it matches an element in completion-ignored-extensions that ends
2861 in a slash.
2862 (syms_of_dired) <completion-ignored-extensions>: Mention the above
2863 feature in the doc string.
2864 (Ffile_name_completion): Ditto.
2865
2866 2001-10-12 Stefan Monnier <monnier@cs.yale.edu>
2867
2868 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
2869
2870 * xfns.c (syms_of_xfns): Update calls to Fprovide.
2871
2872 * lisp.h (Fprovide): Update prototype.
2873 (Ffeaturep, invisible_p): Remove.
2874
2875 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
2876 (DOLIST, LOOP_PROPVAL): New macros.
2877 (invisible_p, invisible_ellipsis_p): Use them.
2878 (invisible_noellipsis_p): New function.
2879 (syms_of_xdisp): Use empty_string.
2880
2881 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
2882
2883 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
2884 (syms_of_lread) <Vafter_load_alist>: Update docstring.
2885
2886 * print.c (Fwith_output_to_temp_buffer): Align with
2887 internal_with_output_to_temp_buffer.
2888 (print_preprocess): Use traverse_intervals_noorder.
2889 (print_object): Update call to traverse_intervals.
2890
2891 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
2892 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
2893
2894 * intervals.c (traverse_intervals_noorder): New function.
2895 (search_for_interval, count_intervals): Use it.
2896 (traverse_intervals): Use less stack space and drop `depth' arg.
2897
2898 * fns.c (Ffeaturep): Add new `subfeature' arg.
2899 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
2900 (Qsubfeatures): New var.
2901 (syms_of_fns): Initialize it.
2902
2903 * keymap.c (Fkey_description): Use empty_string.
2904 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
2905 (syms_of_keymap): Setup inheritance between maps.
2906 Don't export Sdescribe_bindings_internal any more.
2907
2908 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
2909
2910 2001-10-12 Gerd Moellmann <gerd@gnu.org>
2911
2912 * xterm.c (notice_overwritten_cursor): Renamed from
2913 note_overwritten_text_cursor. Rewritten to take glyph widths into
2914 account.
2915
2916 2001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
2917
2918 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
2919 multi-line strings without a trailing "\n\".
2920
2921 2001-10-12 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
2922
2923 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
2924 defined.
2925
2926 2001-10-11 Stefan Monnier <monnier@cs.yale.edu>
2927
2928 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
2929
2930 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
2931 * w32proc.c (sys_spawnve):
2932 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
2933 * w32.c (check_windows_init_file):
2934 * sound.c (Fplay_sound):
2935 * emacs.c (init_cmdargs):
2936 * process.c (Fstart_process): Update calls to openp.
2937
2938 * callproc.c (Vexec_suffixes): New var.
2939 (Fcall_process): Update call to openp.
2940 (decode_suffixes): New function.
2941 (syms_of_callproc): Init exec-suffixes.
2942
2943 * lread.c (Vload_suffixes, default_suffixes): New vars.
2944 (openp): Take a lisp list of suffixes.
2945 Check for file-name-handlers even if the file was absolute already.
2946 (syms_of_lread): Declare load-suffixes.
2947 (Fload): Fix up call to openp.
2948 Don't bother checking for file-name-handler at the very beginning.
2949
2950 * keymap.h (Fcopy_keymap): Don't export.
2951
2952 * lisp.h (empty_string): Declare.
2953 (Vload_suffixes, Vexec_suffixes): Declare.
2954 (openp): Update prototype.
2955
2956 * emacs.c (empty_string): New var.
2957 (syms_of_emacs): Initialize it.
2958
2959 * search.c (wordify): Use it.
2960
2961 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
2962 selected window if it's not displayed there. Handle the case
2963 when the window is dedicated.
2964 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
2965
2966 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
2967
2968 * syntax.h (struct gl_state_s): Change the meaning of b_property.
2969 Remove left_ok and right_ok.
2970 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
2971 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
2972 new meaning of b_property.
2973
2974 * syntax.c (update_syntax_table): Simplify.
2975 (Fforward_comment): Don't skip quoted chars when going backward.
2976
2977 2001-10-11 Gerd Moellmann <gerd@gnu.org>
2978
2979 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
2980 in case I is of some unsigned type, in which case
2981 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
2982 comparison becomes bogus.
2983
2984 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
2985 (Fuser_full_name): Fix bug treating a float as a fixnum.
2986
2987 * data.c (Fstring_to_number): Use make_fixnum_or_float.
2988
2989 * lisp.h (make_fixnum_or_float): New macro.
2990
2991 * lisp.h (circular_list_error): Add prototype.
2992
2993 * data.c (Qcircular_list): New variable.
2994 (circular_list_error): New function.
2995 (syms_of_data): Initialize it Qcircular_list.
2996
2997 2001-10-10 Stefan Monnier <monnier@cs.yale.edu>
2998
2999 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c
3000 * casefiddle.c, buffer.c: Include keymap.h.
3001
3002 2001-10-10 Gerd Moellmann <gerd@gnu.org>
3003
3004 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
3005 options. From Dave Love <d.love@dl.ac.uk>.
3006
3007 2001-10-09 Gerd Moellmann <gerd@gnu.org>
3008
3009 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
3010 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
3011
3012 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
3013 unsigned char.
3014 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
3015
3016 2001-10-08 Andrew Innes <andrewi@gnu.org>
3017
3018 * lisp.h [max]: Undef min and max before redefining them.
3019
3020 * w32gui.h: Do not undef min and max.
3021
3022 * w32heap.h: Do not undef min and max.
3023
3024 * s/ms-w32.h: Do not undef min and max.
3025
3026 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
3027
3028 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
3029
3030 2001-10-08 Sam Steingold <sds@gnu.org>
3031
3032 * keymap.c (current-active-maps): Quote newlines (compilation error).
3033
3034 2001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
3035
3036 * Makefile.in (lisp, shortlisp): Replace bindings.el with
3037 bindings.elc, since otherwise doc strings in bindings.el get wrong
3038 offsets in etc/DOC.
3039
3040 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
3041
3042 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
3043
3044 * keyboard.h (map_prompt): Remove.
3045
3046 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
3047 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
3048
3049 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
3050
3051 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
3052
3053 * keyboard.c (map_prompt): Remove.
3054 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
3055 Use Fkeymap_prompt.
3056
3057 * keymap.h: New file. Extracted from lisp.h.
3058
3059 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
3060 (accessible_keymaps_1): New function.
3061 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
3062 (Fwhere_is_internal): Use Fcurrent_active_maps.
3063 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
3064 Insert in current buffer rather than standard-output.
3065 Don't call `help-mode'. Export to elisp.
3066 (describe_buffer_bindings): New wrapper.
3067 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
3068 and Sdescribe_buffer_bindings.
3069
3070 2001-10-08 Gerd Moellmann <gerd@gnu.org>
3071
3072 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
3073 Remove code setting signal handler.
3074
3075 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
3076 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
3077
3078 2001-10-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3079
3080 * keyboard.c: Don't define min/max.
3081
3082 2001-10-08 Gerd Moellmann <gerd@gnu.org>
3083
3084 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
3085 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
3086 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
3087 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
3088 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
3089 Don't define min/max.
3090
3091 * lisp.h (min, max): New macros.
3092
3093 * puresize.h (BASE_PURESIZE): Increase to 725000.
3094
3095 2001-10-08 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3096
3097 * xfaces.c (free_frame_menubar): Add prototype.
3098
3099 * lisp.h (init_window): Add prototype.
3100
3101 * editfns.c: Include ctype.h.
3102
3103 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
3104 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
3105 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
3106 variable `sb'.
3107
3108 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
3109 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
3110 `popup_activated_flag' and `title'.
3111
3112 * doc.c (Fdocumentation_property): Fix typo in a doc string.
3113
3114 * emacs.c (main): Remove extra `;'.
3115
3116 * atimer.h (struct atimer): Fix typos in a comment.
3117
3118 * atimer.c: Fix typo.
3119
3120 * Makefile.in: Fix typo.
3121
3122 * README: Remove obsolete part mentioning removed VMS file.
3123
3124 2001-10-07 Miles Bader <miles@gnu.org>
3125
3126 * Makefile.in (lisp, shortlisp): Add `button.elc'.
3127
3128 2001-10-07 Ken Raeburn <raeburn@gnu.org>
3129
3130 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
3131 Lisp_Object.
3132
3133 * lisp.h (Ffield_end): Declare.
3134
3135 2001-10-07 Gerd Moellmann <gerd@gnu.org>
3136
3137 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
3138
3139 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
3140
3141 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
3142
3143 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
3144
3145 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
3146 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
3147
3148 * alloc.c (inhibit_garbage_collection): Simplify.
3149 (Fmemory_use_counts): Ditto.
3150
3151 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
3152 (syms_of_data): DEFVAR_INT most-positive-fixnum and
3153 most-negative-fixnum.
3154
3155 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
3156 (FIXNUM_OVERFLOW_P): New macros.
3157
3158 2001-10-06 Miles Bader <miles@gnu.org>
3159
3160 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
3161 scroll_bar_bottom_shadow_pixel fields.
3162 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
3163 for the shadows, and tell the toolkit about them if we succeed.
3164 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
3165 Free scroll-bar shadow colors.
3166 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
3167 Free scroll-bar shadow colors when the background color changes.
3168 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
3169 Initialize scroll-bar shadow-color fields.
3170
3171 2001-10-05 Gerd Moellmann <gerd@gnu.org>
3172
3173 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
3174
3175 2001-10-05 Miles Bader <miles@gnu.org>
3176
3177 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
3178 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
3179 New functions (were in simple.el).
3180 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
3181 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
3182 (syms_of_minibuf): Initialize them.
3183
3184 2001-10-05 Gerd Moellmann <gerd@gnu.org>
3185
3186 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
3187 (tiff_load): Install them as error and warning handler.
3188
3189 2001-10-04 Andrew Innes <andrewi@gnu.org>
3190
3191 * w32fns.c (x_to_w32_color): Fix argument to alloca.
3192 (w32_load_system_font): Don't believe what GetLanguageFontInfo
3193 says; query codepage info directly to determine if font is double byte.
3194 (x_to_w32_charset): Handle private format for unknown charsets.
3195 Handle wildcards in charset spec, by ignoring them.
3196 (w32_codepage_for_font): Fix argument to alloca. Don't remove
3197 "*-" prefix from charset.
3198 (x_to_w32_font): Enlarge remainder array for safety. Specifically
3199 handle the truncated font spec form constructed by font_list_1, so
3200 that we correctly identify the charset fields. Don't remove "*-"
3201 prefix from charset.
3202 (w32_list_synthesized_fonts): Fix argument to alloca.
3203
3204 2001-10-04 Stefan Monnier <monnier@cs.yale.edu>
3205
3206 * window.h (MINI_WINDOW_P): Use NILP.
3207
3208 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
3209
3210 * termhooks.h (struct input_event): Use proper type for `kind'.
3211
3212 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3213
3214 This handles unknown keysyms better than before. For example,
3215 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
3216 Emacs formerly completely ignored F5. With the change, it derives
3217 a key symbol from the name of the X keysym, `ccaron' in this case.
3218 Reported by Martin Buchholz.
3219
3220 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
3221 unknown keysyms.
3222
3223 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
3224 that EVENT->code isn't a function key, use the keysym's name.
3225
3226 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3227
3228 FOREACH is a macro that should make it easier to loop over Lisp
3229 lists with checks for cycles and proper lists.
3230
3231 * lisp.h (LIST_END_P, FOREACH): New macros.
3232
3233 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3234
3235 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
3236 called for a lost connection. Prevent dumping core in this case.
3237 Instead print the X error, and exit. On user request.
3238
3239 * xterm.c (error_msg): New variable.
3240 (x_fatal_error_signal): New function.
3241 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
3242 as fatal_error_signal_hook around the call to XtCloseDisplay.
3243
3244 * emacs.c (fatal_error_signal_hook): New variable.
3245 (fatal_error_signal): Call that function.
3246
3247 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3248
3249 With this, Emacs prints how much pure storage it will
3250 approximately need in case pure storage overflows while dumping.
3251
3252 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
3253 New variables.
3254 (init_alloc_once): Initialize new variables.
3255 (PURE_POINTER_P): Use new variables.
3256 (pure_alloc): If pure storage overflows, allocate from the heap.
3257 (check_pure_size): New function.
3258 (Fgarbage_collect): Don't GC if pure storage has overflowed.
3259
3260 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
3261 (check_pure_size): Add prototype.
3262
3263 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
3264
3265 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3266
3267 This adds a post-gc-hook that's run with GC inhibited.
3268 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
3269
3270 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
3271 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
3272 (Fgarbage_collect): Run post-gc-hook.
3273
3274 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3275
3276 This adds `defvaralias' and `indirect-variable'. Changes not
3277 directly related to this feature are there to gain the same
3278 performance again as before variable aliases.
3279
3280 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
3281 code to get and set symbol values, to take defvaralias into account.
3282
3283 (Note: the new `constant' bit-flag in symbols would make it
3284 possible to define arbitrary read-only variables, e.g. with
3285 `defconst'.)
3286
3287 Documentation is in lispref/variables.texi. Added to NEWS.
3288
3289 * lisp.h (enum symbol_interned): New enumeration.
3290 (struct Lisp_Symbol): Remove member `obarray', add
3291 `indirect_variable', `constant', and `interned'.
3292 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
3293 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
3294 (indirect_variable): Add prototype.
3295
3296 * print.c (print_preprocess, print_object): Test internedness of
3297 symbols differently.
3298
3299 * lread.c (Fintern, Funintern): Set symbol's interned and constant
3300 bit-fields.
3301 (init_obarray): Likewise for t and nil.
3302
3303 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
3304 (Fdefvaralias): New function.
3305 (specbind): Simplify the test if symbol is a constant.
3306 (syms_of_eval): Defsubr Fdefvaralias.
3307
3308 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
3309 (Qcyclic_variable_indirection): New variable.
3310 (Fkeywordp): Check for internedness differently.
3311 (Fmakunbound): Simplify the test if symbol is a constant.
3312 (indirect_variable, Findirect_variable): New functions.
3313 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
3314 aliased symbol.
3315 (let_shadows_buffer_binding_p): Check for variable aliases.
3316 (set_internal): Simplify the test if SYMBOL is a constant.
3317 If SYMBOL has a buffer-local value and is an alias, use the aliased
3318 symbol instead.
3319 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
3320 Sindirect_variable.
3321
3322 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
3323 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
3324 set directly.
3325
3326 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
3327
3328 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
3329 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
3330 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
3331
3332 2001-10-04 Gerd Moellmann <gerd@gnu.org>
3333
3334 * Branch for 21.1.
3335
3336 2001-10-03 Miles Bader <miles@gnu.org>
3337
3338 * callproc.c (syms_of_callproc): Explicitly state in the
3339 documentation for `process-environment' that earlier entries take
3340 precedence over later ones.
3341
3342 2001-10-02 Miles Bader <miles@gnu.org>
3343
3344 * textprop.c (Fnext_char_property_change)
3345 (Fprevious_char_property_change): Remove reference to non-existant
3346 argument OBJECT from doc-string.
3347
3348 2001-10-01 Gerd Moellmann <gerd@gnu.org>
3349
3350 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
3351 (try_window_id): Skip back over lines ending in a newline from a
3352 string.
3353
3354 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
3355 New bit flag
3356
3357 2001-10-01 Richard M. Stallman <rms@gnu.org>
3358
3359 * search.c (Freplace_match): Doc fix.
3360
3361 2001-09-28 Andrew Innes <andrewi@gnu.org>
3362
3363 * w32menu.c (set_frame_menubar): Take into account that
3364 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
3365 <raeburn@gnu.org>.
3366
3367 2001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
3368
3369 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
3370
3371 2001-09-28 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3372
3373 * s/gnu-linux.h: Fix a typo in comment.
3374
3375 2001-09-28 Andreas Schwab <schwab@suse.de>
3376
3377 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
3378 nocombreloc, in case -z combreloc is the default.
3379
3380 2001-09-28 Gerd Moellmann <gerd@gnu.org>
3381
3382 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
3383 really going on here.
3384
3385 2001-09-27 Stefan Monnier <monnier@cs.yale.edu>
3386
3387 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
3388
3389 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
3390
3391 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
3392 utf-8, menu-bar, and latin-N.
3393 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
3394 unconditionally now.
3395 (lisp): Add latin-N, since they are preloaded.
3396
3397 2001-09-27 Gerd Moellmann <gerd@gnu.org>
3398
3399 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
3400 to the left. Some cleanup.
3401
3402 * xdisp.c (display_mode_element): One more case where a string's
3403 multibyteness should be used for display.
3404
3405 2001-09-26 Gerd Moellmann <gerd@gnu.org>
3406
3407 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
3408 reading at EOF.
3409
3410 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
3411 of the only temporarily set echoing flag for deciding when
3412 the cancel echoing.
3413
3414 * keyboard.c (echo_kboard): Make externally visible.
3415
3416 * lisp.h (echo_kboard): Declare extern.
3417
3418 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
3419 fonts_changed_p if we need larger matrices due to vscrolling.
3420 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
3421 this round of redisplay if make_cursor_line_fully_visible fails.
3422 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
3423 (try_cursor_movement, try_scrolling): Use them instead of integers.
3424
3425 * dispextern.h (required_matrix_width, required_matrix_height):
3426 Add prototypes.
3427
3428 * dispnew.c (required_matrix_width, required_matrix_height):
3429 New functions.
3430 (allocate_matrices_for_window_redisplay)
3431 (allocate_matrices_for_frame_redisplay: Use them.
3432 Remove parameters CH_DIM.
3433
3434 * xdisp.c (display_mode_lines): Temporarily set selected_frame
3435 and selected_window to the frame of the window whose mode-lines
3436 are displayed, and to the window itself.
3437 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
3438 here.
3439
3440 2001-09-25 Gerd Moellmann <gerd@gnu.org>
3441
3442 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
3443 the image cache under us.
3444
3445 * xdisp.c (display_mode_element): If the mode element is a symbol
3446 with a string value, use that string's multibyteness for displaying.
3447
3448 * keyboard.c (read_char): Don't clear a message for a switch-frame
3449 event. From Stefan Monnier <monnier@cs.yale.edu>.
3450
3451 * xterm.c (fast_find_position) [0]: Add a presumably more correct
3452 version for after 21.1.
3453
3454 * xdisp.c (row_containing_pos): Make externally visible.
3455
3456 * dispextern.h (row_containing_pos): Add prototype.
3457
3458 * process.c (send_process): Disable composition if from_byte < 0.
3459 From Kenichi Handa <handa@etl.go.jp>.
3460
3461 2001-09-24 Gerd Moellmann <gerd@gnu.org>
3462
3463 * xterm.c (refreshicon): Function removed.
3464
3465 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
3466
3467 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
3468
3469 * xterm.c (toplevel): Remove includes in #if 0.
3470
3471 * process.c (sigchld_handler) [LINUX]: Don't return from
3472 the signal handler at the end of the loop.
3473
3474 2001-09-21 Gerd Moellmann <gerd@gnu.org>
3475
3476 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
3477 Terminate only if kill returns -1, and errno is ESRCH.
3478
3479 2001-09-21 Markus Rost <rost@math.ohio-state.edu>
3480
3481 * Makefile.in (shortlisp): Add ../lisp/env.elc.
3482
3483 2001-09-20 Gerd Moellmann <gerd@gnu.org>
3484
3485 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
3486 since this function can be called during GC.
3487
3488 * callproc.c (Fcall_process): Handle errors from pipe(2).
3489 (child_setup): Delete code in #ifdef vipc.
3490
3491 2001-09-19 Gerd Moellmann <gerd@gnu.org>
3492
3493 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
3494 (display_mode_element): Display the string from decode_mode_spec
3495 depending on its multibyteness.
3496
3497 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
3498
3499 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
3500
3501 2001-09-18 Gerd Moellmann <gerd@gnu.org>
3502
3503 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
3504 recursive_edit_unwind.
3505 (recursive_edit_unwind): Set kboard state according to
3506 SINGLE-KBOARD.
3507
3508 * buffer.c (modify_overlay): Don't do nothing if START == END;
3509 This can still be a modification, for example when an overlay has
3510 a before-string or after-string.
3511 (Fdelete_overlay): Prevent redisplay optimizations when deleting
3512 an overlay with before-string or after-string.
3513
3514 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
3515 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
3516
3517 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
3518 first_unchanged_at_end_row is in front of
3519 last_unchanged_at_beg_row. This code should be removed after the
3520 release of 21.1.
3521
3522 2001-09-17 Gerd Moellmann <gerd@gnu.org>
3523
3524 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
3525 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
3526
3527 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
3528 versions >= 2.95.
3529
3530 2001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
3531
3532 * dired.c (Ffile_attributes): Doc fix.
3533
3534 2001-09-14 Gerd Moellmann <gerd@gnu.org>
3535
3536 * fileio.c (Ffile_symlink_p): Fix last change.
3537
3538 * filelock.c (current_lock_owner): Fix last change.
3539
3540 2001-09-13 Gerd Moellmann <gerd@gnu.org>
3541
3542 * filelock.c (current_lock_owner): If readlink returns ERANGE,
3543 take that to mean that the buffer is too small.
3544
3545 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
3546 that to mean that the buffer is too small.
3547
3548 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
3549 current buffer's multibyteness when discarding the iterator's
3550 stack.
3551
3552 * xfns.c (Fx_window_property): Handle case that property gets
3553 deleted between the two calls to XGetWindowProperty.
3554
3555 2001-09-11 Gerd Moellmann <gerd@gnu.org>
3556
3557 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
3558
3559 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
3560 in addition to read-only.
3561
3562 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
3563 to t in addition to read-only.
3564
3565 * lisp.h (Qinhibit_modification_hooks): Declare.
3566
3567 * insdel.c (Qinhibit_modification_hooks): New variable.
3568 (syms_of_insdel): Initialize and staticpro it.
3569
3570 * textprop.c (verify_interval_modification): Don't run
3571 modification-hooks if inhibit_modification_hooks.
3572
3573 * dispnew.c (set_window_cursor_after_update): Fix code
3574 finding glyph row containing cursor when cursor_in_echo_area
3575 is >= 0.
3576
3577 * xdisp.c (init_from_display_pos): Put some code in #if 0.
3578 (add_to_log): Use bcopy instead of strcpy.
3579 (init_from_display_pos): Use an explicit loop over bytes in
3580 overlay strings instead of calling index.
3581
3582 2001-09-10 Gerd Moellmann <gerd@gnu.org>
3583
3584 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
3585
3586 * dispnew.c (direct_output_for_insert): Don't change IT's
3587 stop_charpos to something in front of its current position.
3588
3589 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
3590 `format'.
3591
3592 2001-09-10 Richard M. Stallman <rms@gnu.org>
3593
3594 * frame.c (Fmouse_position): Doc fix.
3595
3596 2001-09-07 Gerd Moellmann <gerd@gnu.org>
3597
3598 * xdisp.c (init_from_display_pos): Don't compare the result
3599 of calling index with NULL.
3600
3601 2001-09-06 Gerd Moellmann <gerd@gnu.org>
3602
3603 * xfns.c (x_set_background_color): Don't change the colors
3604 of the X window of scroll bar widgets.
3605
3606 2001-09-05 Andrew Innes <andrewi@gnu.org>
3607
3608 * w32fns.c (w32_createwindow): Undo last change.
3609
3610 2001-09-05 Gerd Moellmann <gerd@gnu.org>
3611
3612 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
3613
3614 * xdisp.c (string_buffer_position): Use *single_char_property*
3615 functions instead of the *single_property* functions.
3616
3617 2001-09-04 Andrew Innes <andrewi@gnu.org>
3618
3619 * w32term.c (w32_read_socket): Add more information to debugging
3620 output.
3621
3622 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
3623 from Emacs frames, so that calls to GetClipBox in w32term.c
3624 correctly report when part of a frame is visible (including
3625 scrollbars, etc). This prevents repeated redrawing of frames when
3626 only a scrollbar is visible.
3627 (w32_wnd_proc): Add more frame information to debugging output.
3628
3629 2001-09-03 Stefan Monnier <monnier@cs.yale.edu>
3630
3631 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
3632
3633 2001-09-03 Gerd Moellmann <gerd@gnu.org>
3634
3635 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
3636 help-echo for a string which doesn't have help-echo itself, use
3637 get-char-property to obtain the help-echo from the string's buffer
3638 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
3639 have mouse-face, look ``under'' the string for mouse-face from an
3640 overlay.
3641 (fast_find_position): Add parameter STOP. In the final row, stop
3642 before glyphs having STOP as object. Don't consider glyphs that
3643 are not from a buffer.
3644
3645 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
3646
3647 2001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
3648
3649 * fns.c (Fmd5): Doc fix.
3650
3651 2001-08-31 Gerd Moellmann <gerd@gnu.org>
3652
3653 * composite.c (update_compositions): Do nothing if
3654 inhibit-modification-hooks is set.
3655
3656 2001-08-30 Gerd Moellmann <gerd@gnu.org>
3657
3658 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
3659 and check_message_stack if terminating abnormally. We want
3660 glyph matrices etc. in a core dump.
3661
3662 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
3663 (syms_of_xdisp): Initialize them.
3664 (handle_single_display_prop): Don't change point, bind `object',
3665 `position', and `buffer-position' instead to the object having the
3666 `display' property, position in the object and position in the buffer.
3667
3668 * fileio.c (Finsert_file_contents): Don't change the multibyteness
3669 of the buffer if REPLACE is non-nil.
3670
3671 2001-08-29 Gerd Moellmann <gerd@gnu.org>
3672
3673 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
3674
3675 2001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
3676
3677 * w32term.c (x_set_glyph_string_background_width)
3678 (show_mouse_face): Track the last changes in xterm.c.
3679
3680 2001-08-28 Gerd Moellmann <gerd@gnu.org>
3681
3682 * xterm.c (x_set_glyph_string_background_width): Set the glyph
3683 string's background width so that multi-line mouse-face is drawn
3684 to the right edge of the window.
3685 (show_mouse_face): Set the row's mouse_face_p flag after drawing
3686 glyphs.
3687
3688 * dispnew.c (direct_output_for_insert): Set updated_area
3689 before inserting/writing glyphs.
3690
3691 * xdisp.c (display_mode_element): Use string_byte_to_char to
3692 determine character positions in strings, use chars_in_text
3693 instead of strwidth.
3694 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
3695 a matrix as parameter; this is easier to use from GDB.
3696
3697 2001-08-28 Miles Bader <miles@gnu.org>
3698
3699 * textprop.c (Fprevious_single_char_property_change)
3700 (Fnext_single_char_property_change): Doc fixes.
3701
3702 2001-08-27 Gerd Moellmann <gerd@gnu.org>
3703
3704 * fileio.c (Finsert_file_contents): Allocate, restore, and
3705 free composition data in the case of REPLACE not being nil.
3706
3707 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
3708 there exist overlay strings with newlines at POS.
3709 (text_outside_line_unchanged_p): Return 0 if changes start at
3710 START and overlays exist at START. Likewise for END.
3711 (try_window_id): Give up if init_to_row_end returns 0.
3712
3713 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
3714 unconditionally.
3715
3716 2001-08-24 Gerd Moellmann <gerd@gnu.org>
3717
3718 * keymap.c (access_keymap): Return the cdr of the binding of
3719 a generic character instead of its definition (KEY . BINDING).
3720
3721 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
3722 to 0 also in the REPLACE case.
3723
3724 2001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
3725
3726 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
3727 open to determine whether file is readable (as for DOS_NT).
3728
3729 2001-08-23 Gerd Moellmann <gerd@gnu.org>
3730
3731 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
3732 coding.type is coding_type_no_conversion or coding_type_raw_text,
3733 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
3734 non-nil instead of just setting enable_multibyte_characters in the
3735 buffer to nil.
3736
3737 2001-08-22 Gerd Moellmann <gerd@gnu.org>
3738
3739 * dispextern.h (struct face_cache): Add member
3740 menu_face_changed_p.
3741
3742 * xfaces.c (menu_face_changed_default): New variable.
3743 (menu_face_changed_count): Variable removed.
3744 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
3745 the menu_face_changed_default flag, otherwise set the FRAME's
3746 menu_face_changed_p flag if the `menu' face has been changed.
3747 Prevent calling set_font_frame_param if FRAME is t.
3748 (make_face_cache): Initialize cache's menu_face_changed_p
3749 from menu_face_changed_default.
3750 (realize_basic_faces): Look into the frame's face cache to
3751 determine if the menu appearance needs updating.
3752
3753 * keymap.c (access_keymap): Fix last change to not consider
3754 IDX when it has modifiers.
3755
3756 2001-08-21 Gerd Moellmann <gerd@gnu.org>
3757
3758 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
3759 . BINDING) exists, where GENERIC-CHAR is the generic character of
3760 the charset of IDX, return BINDING unless there exists a binding
3761 for IDX itself.
3762
3763 2001-08-16 Gerd Moellmann <gerd@gnu.org>
3764
3765 * xrdb.c (SYSV): Don't define on Solaris 2.
3766 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
3767
3768 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
3769 of the screen line, not text line, containing IT's current position.
3770
3771 2001-08-15 Gerd Moellmann <gerd@gnu.org>
3772
3773 * window.c (window_scroll_pixel_based): Don't recenter if
3774 PT is partially visible in the window.
3775
3776 * xterm.c (expose_window_tree, expose_window, expose_line):
3777 Return 1 when overwriting mouse-face.
3778 (expose_frame): If mouse-face was overwritten, redo it.
3779
3780 * xfaces.c (x_update_menu_appearance): Don't call
3781 set_frame_menubar, let the next redisplay do it.
3782
3783 2001-08-14 Andrew Innes <andrewi@gnu.org>
3784
3785 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
3786 drawing glyph string.
3787
3788 2001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
3789
3790 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
3791 running HI-UX/MPP.
3792
3793 2001-08-14 Gerd Moellmann <gerd@gnu.org>
3794
3795 * xfaces.c (x_update_menu_appearance): Save and restore value of
3796 interrupt_input_blocked.
3797
3798 2001-08-13 Gerd Moellmann <gerd@gnu.org>
3799
3800 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
3801 a line start, move back to the line start.
3802
3803 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
3804 exactly when a mini-buffer is active.
3805
3806 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
3807 in units of 1/8 character on non window-system frames.
3808 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
3809
3810 2001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
3811
3812 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
3813 a doc string.
3814
3815 2001-08-09 Gerd Moellmann <gerd@gnu.org>
3816
3817 * keyboard.c (Vpre_help_message): New variable.
3818 (syms_of_keyboard): Initialize and staticpro it.
3819 (show_help_echo): Record current message before displaying a
3820 help-echo, and restore that message when clearing the help.
3821
3822 * xfns.c (x_create_im): Remove prototype.
3823
3824 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
3825
3826 * dispnew.c (adjust_glyph_matrix): Undo last change.
3827
3828 2001-08-08 Gerd Moellmann <gerd@gnu.org>
3829
3830 * dispnew.c (adjust_glyph_matrix): In the optimization for
3831 windows whose height has changed, disable partially visible lines.
3832
3833 2001-08-07 Gerd Moellmann <gerd@gnu.org>
3834
3835 * window.c (Frecenter): If ARG < 0, and on a window system
3836 frame, count in some empty lines when we can't move -ARG lines down.
3837
3838 * xdisp.c (start_display): Don't try to determine the continuation
3839 lines width if lines are truncated. It's superfluous and leads to
3840 incorrect results if POS is not visible in the window after
3841 reseating the iterator at the previous line start.
3842
3843 2001-08-06 Gerd Moellmann <gerd@gnu.org>
3844
3845 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
3846
3847 2001-08-06 Pavel Jan\e,Am\e(Bk <Pavel@Janik.cz>
3848
3849 * alloc.c (init_stack): Remove declaration.
3850
3851 2001-08-03 Gerd Moellmann <gerd@gnu.org>
3852
3853 * keyboard.c (read_key_sequence): Check that key is an integer
3854 before comparing it with quit_char.
3855 (add_command_key): Use larger_vector.
3856 (read_char_x_menu_prompt): Instead of converting symbol and
3857 integer events into conses (EVENT . nil), use (EVENT . disabled)
3858 which cannot be confused with valid events.
3859 (read_char): When reading from Vunread_command_events, check for
3860 events of the form (EVENT . disabled) instead of
3861 (EVENT . nil).
3862
3863 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
3864 a float, determine the max height from the frame's height.
3865
3866 2001-08-02 Gerd Moellmann <gerd@gnu.org>
3867
3868 * xdisp.c (redisplay_internal): Take message_cleared_p into
3869 account only if minibuf_level == 0.
3870
3871 2001-08-01 Gerd Moellmann <gerd@gnu.org>
3872
3873 * xdisp.c (redisplay_internal): Add a check for the last
3874 displayed message.
3875
3876 * xdisp.c (message_cleared_p): New variable.
3877 (clear_message): Set message_cleared_p when clearing the current
3878 message.
3879 (redisplay_internal): Look at message_cleared_p to capture
3880 the case that the echo area should be cleared.
3881
3882 * keyboard.c (command_loop_1): Fix spelling of
3883 resize_echo_area_exactly.
3884
3885 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
3886
3887 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
3888
3889 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
3890 current matrix when the window gets smaller.
3891
3892 2001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
3893
3894 * print.c (strout): Cast the character passed to insert_char to
3895 unsigned char, to avoid sign extension when it is promoted to int.
3896
3897 2001-07-31 Gerd Moellmann <gerd@gnu.org>
3898
3899 * fileio.c (Finsert_file_contents): Don't treat a return value
3900 of 0 from emacs_read as an IO error.
3901
3902 2001-07-30 Gerd Moellmann <gerd@gnu.org>
3903
3904 * keyboard.c (abs): New macro.
3905 (double_click_fuzz): New variable.
3906 (make_lispy_event): Use it to determine what makes a double-click.
3907 (syms_of_keyboard): DEFVAR_INT it.
3908
3909 * xmenu.c (set_frame_menubar): Take into account that
3910 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
3911 <raeburn@gnu.org>.
3912
3913 2001-07-27 Gerd Moellmann <gerd@gnu.org>
3914
3915 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
3916
3917 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
3918 of row's visible height.
3919
3920 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
3921 deal with the first overlay string having an image `display' property.
3922 (try_window_reusing_current_matrix, compute_line_metrics):
3923 Fix computation of row's visible height for the case that part of the
3924 row is invisible above and part of the row is at the same time
3925 invisible below the window.
3926
3927 2001-07-26 Gerd Moellmann <gerd@gnu.org>
3928
3929 * xfns.c (x-show-tip): Doc fix.
3930
3931 * xfns.c (Vx_max_tooltip_size): New variable.
3932 (syms_of_xfns): DEFVAR_LISP it.
3933 (Fx_show_tip): Set frame's window_width to the width of the
3934 window. Use a maximum tooltip size specified by
3935 Vx_max_tooltip_size, if that has valid contents.
3936 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3937
3938 2001-07-26 Andrew Innes <andrewi@gnu.org>
3939
3940 * w32term.c (x_display_list): New variable.
3941 (w32_term_init): Set it.
3942
3943 * w32term.h (x_display_list): New extern.
3944
3945 2001-07-26 Gerd Moellmann <gerd@gnu.org>
3946
3947 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
3948 is non-nil, instead of when redisplaying_p is non-zero.
3949 See comment there.
3950 (mark_window_display_accurate_1): Add an assertion.
3951
3952 2001-07-25 Gerd Moellmann <gerd@gnu.org>
3953
3954 * dispextern.h (struct it): Increase size of ctl_chars to 16.
3955
3956 * xfns.c (Fx_file_dialog): Block/unblock input while processing
3957 events so that we get a chance of processing expose events.
3958
3959 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
3960
3961 2001-07-24 Gerd Moellmann <gerd@gnu.org>
3962
3963 * xfns.c (valid_image_p): Protect better against invalid image
3964 specifications. Previous code could signal an error.
3965
3966 2001-07-23 Gerd Moellmann <gerd@gnu.org>
3967
3968 * indent.c (current_column): Fix column computation in the
3969 presence of display table entries.
3970 (current_column_1, Fmove_to_column, compute_motion): Likewise.
3971
3972 * dispnew.c (adjust_glyph_matrix): In the optimization for
3973 windows whose height has changed, use the new window height
3974 to compute which rows to invalidate.
3975
3976 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
3977 (MAX_10_EXP): New macro.
3978 (Fformat): Use it.
3979
3980 * coding.c (code_convert_region): Handle the multibyte case if
3981 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
3982
3983 2001-07-20 Gerd Moellmann <gerd@gnu.org>
3984
3985 * dispextern.h (struct face): Change type of `stipple' to
3986 int; it's an ID.
3987
3988 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
3989
3990 2001-07-19 Gerd Moellmann <gerd@gnu.org>
3991
3992 * dispnew.c (update_window): Don't set the cursor at the end
3993 of the update if display update has been paused.
3994
3995 * composite.h (syms_of_composite): Renamed from syms_of_composition.
3996
3997 2001-07-18 Ken Raeburn <raeburn@gnu.org>
3998
3999 * fns.c (Fset_char_table_default): Check that a charset is defined
4000 before checking its dimension.
4001
4002 2001-07-17 Ken Raeburn <raeburn@gnu.org>
4003
4004 * coding.c (setup_coding_system): Don't do any designation based
4005 on reg_bits if charset is not yet defined.
4006
4007 * lisp.h (XVECTOR): Verify correct object type before returning a
4008 pointer, using eassert.
4009
4010 2001-07-17 Gerd Moellmann <gerd@gnu.org>
4011
4012 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
4013 Increase to 4096 because of paste problems reported on GNU/Linux.
4014
4015 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
4016
4017 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
4018
4019 2001-07-16 Gerd Moellmann <gerd@gnu.org>
4020
4021 * fileio.c (unwind_read): Function removed.
4022 (read_non_regular, read_non_regular_quit): New functions.
4023 (Finsert_file_contents): When reading from non-regular files,
4024 arrange to catch a `quit' and terminate the loop. Rearrange
4025 code so that a `quit' when reading from a regular file doesn't
4026 insert text in the buffer.
4027
4028 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
4029 Clear faces afterwards.
4030 (clear_font_table): Take a x_display_info parameter. Don't free
4031 fonts being the default font of any frame on the given display.
4032
4033 2001-07-13 Gerd Moellmann <gerd@gnu.org>
4034
4035 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
4036 instead of CHAR_STRING which can signal an error.
4037
4038 * charset.c (char_to_string_1): Extracted from char_to_string.
4039 Return -1 instead of signaling an error.
4040 (char_to_string): Use it.
4041
4042 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
4043
4044 2001-07-12 Stefan Monnier <monnier@cs.yale.edu>
4045
4046 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
4047 is t, don't try to append anything to it.
4048
4049 2001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
4050
4051 * dired.c (file_name_completion): Pass dp->d_name to
4052 Fstring_match, not elt, which is always nil here.
4053
4054 2001-07-12 Gerd Moellmann <gerd@gnu.org>
4055
4056 * xselect.c (x_decline_selection_request): Handle errors
4057 caused by receivers that have vanished.
4058
4059 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
4060 ignoring events on foreign windows in #if 0. Always dispatch
4061 the event after checking it with x_handle_property_notify.
4062
4063 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
4064 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
4065 TRACE macros to facilitate debugging. Add additional trace statements.
4066 (toplevel): Add prototypes for file-local functions.
4067 (x_atom_to_symbol): Remove DPYINFO parameter.
4068
4069 2001-07-11 Stefan Monnier <monnier@cs.yale.edu>
4070
4071 * w32menu.c (menubar_selection_callback, w32_menu_show):
4072 Initialize `entry' to nil.
4073 (w32_dialog_show): Remove unused `save_wv' variable.
4074 (name_is_separator): Recognize "--:foo" and "--foo-bar".
4075
4076 2001-07-11 Gerd Moellmann <gerd@gnu.org>
4077
4078 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
4079
4080 * fileio.c (unwind_read): Print a message when discarding inserted
4081 text or switching the buffer to unibyte. Change parameter.
4082 (Finsert_file_contents): Don't pass VISIT to unwind_read.
4083
4084 * fileio.c (unwind_read): New function.
4085 (Finsert_file_contents): Record it as unwind-function for
4086 the case that reading is interrupted by C-g.
4087
4088 2001-07-10 Gerd Moellmann <gerd@gnu.org>
4089
4090 * dispnew.c (update_window): Don't skip the header-line
4091 update when scrolling_window returns 0.
4092
4093 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
4094
4095 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
4096 for the case that x_decode_color signals an error.
4097
4098 * xdisp.c (add_to_log): Do nothing if called asynchronously.
4099
4100 2001-07-09 Gerd Moellmann <gerd@gnu.org>
4101
4102 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
4103 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
4104 around ioctls.
4105
4106 2001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
4107
4108 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
4109 doc string line for dos-timezone-offset.
4110
4111 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
4112 inline assembly, to avoid compiler warnings.
4113 (syms_of_msdos): Add \n\ at the end of a line in the doc string
4114 line for dos-unsupported-char-glyph.
4115
4116 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
4117
4118 2001-07-05 Gerd Moellmann <gerd@gnu.org>
4119
4120 * sound.c: Include Emacs' header files with #include "...".
4121
4122 * eval.c (specbind): Additionally record the buffer that was
4123 current when a buffer-local or frame-local variable was bound.
4124
4125 2001-07-04 Gerd Moellmann <gerd@gnu.org>
4126
4127 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
4128 to unibyte characters in unibyte buffers.
4129
4130 2001-07-03 Gerd Moellmann <gerd@gnu.org>
4131
4132 * eval.c (specbind): If SYMBOL has a frame-local binding, record
4133 the frame on the binding stack. Change format of entries for
4134 local bindings on the binding stack to '(SYMBOL . WHERE)'.
4135 (unbind_to): Handle unbinding a frame-local variable.
4136
4137 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
4138 glyphs and truncation glyphs at the end of a row from its pixel width.
4139 (dump_glyph_row): Print row's continuation_lines_width.
4140 (try_window_id): Take the shortcut if ZV is visible in the
4141 window, but there are actually no changes at ZV.
4142
4143 2001-07-02 Gerd Moellmann <gerd@gnu.org>
4144
4145 * xterm.h (x_free_dpy_colors): Add prototype.
4146
4147 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
4148 right number of arguments.
4149
4150 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
4151 ($(lwlibdir)TAGS): New target.
4152 (TAGS): Fix dependency list.
4153
4154 * xterm.c (x_list_fonts): Make sure XFreeFont is called
4155 with input blocked.
4156
4157 2001-06-30 Gerd Moellmann <gerd@gnu.org>
4158
4159 * emacs.c (main): Remove extern declaration for sys_nerr, which
4160 isn't used and causes a compilation error with GCC 3.0 on
4161 FreeBSD 4.3.
4162
4163 2001-06-27 Gerd Moellmann <gerd@gnu.org>
4164
4165 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
4166 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
4167 (toplevel): Include <signal.h> and syssignal.h.
4168
4169 * sound.c (vox_configure, vox_close): Turn off atimers
4170 around ioctls.
4171
4172 2001-06-26 Gerd Moellmann <gerd@gnu.org>
4173
4174 * keyboard.c (read_char) <non_reread>: Record the previous idle
4175 start time before calling timer_stop_idle.
4176 (read_char) <reread_first>: After processing a help-echo event,
4177 restore the previous idle start time.
4178
4179 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
4180 the start of invisible text.
4181 (setup_for_ellipsis): New function.
4182 (next_overlay_string): After all overlay strings have been
4183 processed, display an ellipsis if necessary.
4184 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
4185 (push_it): Initialize display_ellipsis_p on the iterator's stack.
4186
4187 * dispextern.h (struct iterator_stack_entry): Add member
4188 display_ellipsis_p.
4189
4190 2001-06-25 Gerd Moellmann <gerd@gnu.org>
4191
4192 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
4193 on the value of the wait-for-wm frame parameter.
4194
4195 * xterm.h (struct x_output): Add member wait_for_wm.
4196
4197 * xfns.c (Qwait_for_wm): New variable.
4198 (x_frame_parms): Add entry for `wait-for-wm".
4199 (x_set_wait_for_wm): New function.
4200 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
4201 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
4202
4203 * xdisp.c (try_window_id) <all changes below window end>: Don't
4204 take this shortcut if ZV is visible in the window.
4205 (try_window_id): When checking for window start being in changed
4206 text, don't check that the buffer's size has changed.
4207
4208 2001-06-23 Richard M. Stallman <rms@gnu.org>
4209
4210 * minibuf.c (Fcompleting_read): Doc fix.
4211
4212 2001-06-19 Gerd Moellmann <gerd@gnu.org>
4213
4214 * composite.c (Ffind_composition_internal): Accept ZV
4215 and a string's end position as POS.
4216
4217 2001-06-18 Gerd Moellmann <gerd@gnu.org>
4218
4219 * composite.c (Ffind_composition_internal): Check POS
4220 for validity.
4221
4222 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
4223
4224 * editfns.c (Fmessage_box): If the frame is not under a window
4225 system, output the message in the echo area.
4226
4227 2001-06-14 Richard M. Stallman <rms@gnu.org>
4228
4229 * xdisp.c (try_window_id): When EOB is visible, don't treat
4230 insertion at EOB as if it were "off the bottom of the screen."
4231
4232 2001-06-11 Andrew Innes <andrewi@gnu.org>
4233
4234 * w32proc.c (create_child): Add new parameter is_gui_app.
4235 (w32_executable_type): Add new parameter is_gui_app.
4236 (sys_spawnve): Use it.
4237 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
4238 SIGQUIT. This matches better how the signals are interpreted by
4239 MSVC compiled programs.
4240 (syms_of_ntproc): Update docstring.
4241
4242 2001-06-02 Stefan Monnier <monnier@cs.yale.edu>
4243
4244 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
4245 well otherwise note_mouse_highlight might optimize away highlighting
4246 if we pass over that same overlay again.
4247
4248 2001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
4249
4250 * lread.c (Fload): Document that the argument is run via
4251 substitute-in-file-name.
4252
4253 2001-05-31 Gerd Moellmann <gerd@gnu.org>
4254
4255 * Makefile.in (bootstrap-doc): New target.
4256 (bootstrap-emacs): Depend on it.
4257
4258 * fileio.c (Fdo_auto_save): Don't try to create the directory of
4259 auto-save-list-file-name when shutting down Emacs, because
4260 creating the directory might signal an error, and leaves
4261 Emacs in a strange state.
4262
4263 * term.c: (tty_cursor_hidden): New variable.
4264 (update_begin): Don't call tty_hide_cursor. Clean up.
4265 (update_end, set_terminal_window, set_scroll_region): Clean up.
4266 (ring_bell, reset_terminal_modes): Clean up.
4267 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
4268 on tty_cursor_hidden.
4269 (write_glyphs): Call tty_hide_cursor.
4270
4271 2001-05-30 Stefan Monnier <monnier@cs.yale.edu>
4272
4273 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
4274
4275 2001-05-30 Gerd Moellmann <gerd@gnu.org>
4276
4277 * xfns.c (enum image_value_type): New enumerator
4278 IMAGE_STRING_OR_NIL_VALUE.
4279 (parse_image_spec): Handle it.
4280 (xbm_format, pbm_format): Use it for :foreground and :background.
4281 (xbm_load, pbm_load): Check for nil color names.
4282
4283 * xterm.c (note_mouse_highlight): If an overlapping overlay
4284 exists, but we find that we highlight the same overlay as before,
4285 don't do the highlighting again.
4286
4287 2001-05-29 Gerd Moellmann <gerd@gnu.org>
4288
4289 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
4290 Protect unibyte strings created by replacing their multibyte
4291 equivalents in menu_items.
4292
4293 * keymap.c (Fsingle_key_description): NUL-terminate the string
4294 buffer before calling build_string.
4295
4296 * callproc.c (Fcall_process): Deal with decode_coding returning
4297 CODING_FINISH_INCONSISTENT_EOL.
4298
4299 2001-05-28 Gerd Moellmann <gerd@gnu.org>
4300
4301 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
4302 an item's name with its key description in case the description
4303 is a multibyte string.
4304
4305 * keymap.c (Fsingle_key_description): Create a multibyte string
4306 only if necessary.
4307
4308 * macros.c (Fstart_kbd_macro): Doc fix.
4309
4310 * xterm.c (cursor_in_mouse_face_p): New function.
4311 (x_draw_stretch_glyph_string): Use it to choose a different GC
4312 when drawing a cursor within highlighted text.
4313
4314 * editfns.c (char_property_eq): Put in #if 0.
4315
4316 * indent.c (string_display_width): Put in #if 0.
4317
4318 * lread.c (Fload): Remove unused label.
4319
4320 * termcap.c (speeds): Put in #if 0.
4321
4322 2001-05-18 Gerd Moellmann <gerd@gnu.org>
4323
4324 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
4325
4326 * xfaces.c (xlfd_point_size): Don't divide pixel size from
4327 transformation matrix by 10.
4328
4329 2001-05-16 Gerd Moellmann <gerd@gnu.org>
4330
4331 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
4332 only if it's equal to the former foreground pixel color.
4333 (x_set_foreground_color, x_set_background_color)
4334 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
4335
4336 2001-05-16 Dave Love <fx@gnu.org>
4337
4338 * insdel.c (signal_before_change, signal_after_change): Consider a
4339 local change hook which changes the buffer.
4340
4341 * process.c (read_process_output): Don't call signal_after_change
4342 and update_compositions after insert_from_string_before_markers.
4343
4344 2001-05-16 Gerd Moellmann <gerd@gnu.org>
4345
4346 * xfaces.c (split_font_name): Use the right field when
4347 checking for `[...]' syntax.
4348
4349 * buffer.c (copy_overlays): New function.
4350 (clone_per_buffer_values): Use it.
4351
4352 * buffer.h (OVERLAY_PLIST): New macro.
4353
4354 * keymap.c (Fsingle_key_description): Replace a build_string with
4355 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
4356
4357 * fontset.c (Ffontset_info): Check that face is non-null
4358 before accessing its fields.
4359
4360 2001-05-15 Gerd Moellmann <gerd@gnu.org>
4361
4362 * keyboard.c (read_key_sequence): Prevent generating a fake
4363 prefix key twice.
4364
4365 * xfaces.c (split_font_name): Handle `[...]' for the right
4366 font name fields.
4367
4368 * ccl.c (ccl_driver): Don't copy remaining bytes in case
4369 of CCL_STAT_INVALID_CMD.
4370
4371 2001-05-14 Stefan Monnier <monnier@cs.yale.edu>
4372
4373 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
4374 in <var> has no default value yet.
4375
4376 * xfaces.c (try_alternative_families): First try the FAMILY.
4377 And if nothing is found in the end, try again with scalable fonts.
4378 (try_font_list): Let try_alternative_families do a bit more of
4379 the work. Only use FAMILY if it is not nil.
4380 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
4381
4382 2001-05-14 Gerd Moellmann <gerd@gnu.org>
4383
4384 * xterm.c (note_mouse_highlight): Avoid changing the mouse
4385 pointer shape when show_mouse_face has already done it.
4386
4387 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
4388 full-width rows.
4389
4390 * xfaces.c (split_font_name): Make sure to leave the loop
4391 with the right value of `i'.
4392
4393 * xfaces.c (split_font_name): Handle matrix transformations
4394 in the pixel and point size fields of XLFD font names.
4395 (xlfd_point_size): Likewise.
4396
4397 2001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
4398
4399 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
4400 (x_to_w32_font): Add prototype.
4401
4402 * regex.c (malloc, realloc, free) [emacs]: Undefine before
4403 redefining, to avoid compiler warnings.
4404
4405 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
4406
4407 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
4408 (w32_get_bdf_glyph): Cast between unsigned char and char when
4409 passing arguments to subroutines, to shut up compiler warnings.
4410 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
4411 GET_HEX_VAL.
4412
4413 * xfaces.c: Include keyboard.h before frame.h, not after it.
4414
4415 * widget.c: Include keyboard.h before frame.h.
4416
4417 * w32term.h (struct image, struct face): Forward declaration, to
4418 avoid compiler warnings.
4419
4420 2001-05-11 Gerd Moellmann <gerd@gnu.org>
4421
4422 * keyboard.c (read_key_sequence): Don't modify events when
4423 generating fake prefix keys (mode-line, scroll-bar, ...) since
4424 this prevents proper processing of such events when pushed back
4425 into unread-command-events.
4426
4427 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
4428 actually redrawn. Make the function static.
4429 (note_mouse_highlight): Fix a case where the mouse cursor
4430 was changed back to the text cursor.
4431
4432 * xterm.h (clear_mouse_face): Remove prototype.
4433
4434 * xdisp.c (try_window_id): Fix the fix and set the right
4435 window_end_vpos.
4436
4437 * xdisp.c (try_window_id): Fix computation of window end in the
4438 case that lines were deleted at the end of the window. Add some
4439 more debug_method_adds.
4440
4441 * xfaces.c (try_alternative_families): New function.
4442 (try_font_list): Use it. If ATTRS specifies a family, check
4443 fonts from that family first.
4444 (choose_face_font): Remove code setting the family part of
4445 the pattern to nil.
4446
4447 2001-05-10 Gerd Moellmann <gerd@gnu.org>
4448
4449 * xdisp.c (try_window_id): Fix case of all changes before
4450 the window start.
4451
4452 * xdisp.c (try_window_id): Add some xasserts.
4453
4454 2001-05-09 Gerd Moellmann <gerd@gnu.org>
4455
4456 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
4457
4458 2001-05-09 Dave Love <fx@gnu.org>
4459
4460 * xdisp.c (GIVE_UP): Fix for K&R C.
4461
4462 2001-05-09 Gerd Moellmann <gerd@gnu.org>
4463
4464 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
4465
4466 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
4467 back to the text cursor shape without need.
4468
4469 2001-05-07 Gerd Moellmann <gerd@gnu.org>
4470
4471 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
4472
4473 * dispextern.h (inverse_video): Declare extern.
4474
4475 * keyboard.c (delete_kboard): Handle the case that selected_frame
4476 has been deleted in the course of x_connection_closed.
4477
4478 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
4479
4480 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
4481 Fix the change from 2001-04-30.
4482
4483 2001-05-03 Gerd Moellmann <gerd@gnu.org>
4484
4485 * xfns.c (file_dialog_unmap_cb): New function.
4486 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
4487 where a dialog is closed via the window manager.
4488
4489 * xdisp.c (try_window_id): Cases of changes all in front of
4490 the window start or all below the window end mostly rewritten.
4491 (redisplay_window): Move the tests if try_window_id is
4492 applicable to try_window_id.
4493 (GIVE_UP): New macro.
4494
4495 2001-05-02 Gerd Moellmann <gerd@gnu.org>
4496
4497 * xterm.c (expose_window): Return int. If W is the window
4498 currently being updated, mark the frame garbaged.
4499 Fix computation of rows intersecting the exposed rectangle.
4500 (expose_window_tree): Stop when expose_window returns 0.
4501
4502 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
4503 again if it has already been drawn.
4504
4505 2001-05-01 Stefan Monnier <monnier@cs.yale.edu>
4506
4507 * syntax.c (update_syntax_table): Check that oldi has the same
4508 properties as old_prop before deciding not to invalidate.
4509
4510 2001-04-30 Gerd Moellmann <gerd@gnu.org>
4511
4512 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
4513 read-only text that is so because of text properties.
4514
4515 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
4516 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
4517 windows that are components of a Lucid menu bar.
4518
4519 2001-04-27 Gerd Moellmann <gerd@gnu.org>
4520
4521 * term.c (turn_on_face): Fix reverse video handling on terminals
4522 that don't support colors.
4523
4524 2001-04-26 Gerd Moellmann <gerd@gnu.org>
4525
4526 * editfns.c (save_excursion_restore): Don't use XBUFFER on
4527 a non-buffer.
4528
4529 2001-04-25 Gerd Moellmann <gerd@gnu.org>
4530
4531 * term.c (toggle_highlight): New function.
4532 (turn_on_face): Change handling of reverse video.
4533
4534 * process.c (wait_reading_process_input):
4535 Call record_asynch_buffer_change only if a timer really changed buffers.
4536
4537 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
4538 of the number of overlays to check.
4539
4540 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
4541
4542 * xdisp.c (try_window_id): Fix a case where window_end_pos
4543 and window_end_bytepos were not adjusted.
4544
4545 2001-04-23 Gerd Moellmann <gerd@gnu.org>
4546
4547 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
4548 zero instead of -1.
4549
4550 2001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
4551
4552 * process.c (wait_reading_process_input) [!subprocesses]:
4553 Don't reference waiting_for_user_input_p, it's not defined in the
4554 branch without async subprocesses support.
4555
4556 2001-04-19 Gerd Moellmann <gerd@gnu.org>
4557
4558 * keyboard.c (delete_kboard): Prevent a dangling reference
4559 from current_kboard to KB, which is freed.
4560
4561 * process.c (wait_reading_process_input):
4562 Call record_asynch_buffer_change after running timers, to make
4563 read_key_sequence aware of buffer changes from under it.
4564
4565 2001-04-18 Gerd Moellmann <gerd@gnu.org>
4566
4567 * xfaces.c (Qscalable_fonts_allowed): New variable.
4568 (realizing_basic_faces_p): Removed.
4569 (x_face_list_fonts): Special handling for realizing_basic_faces_p
4570 removed.
4571 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
4572 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
4573 for scalable-fonts-allowed to t.
4574
4575 * fileio.c (Finsert_file_contents): If the file size returned from
4576 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
4577 read from files on a procfs whose contents are generated dynamically.
4578
4579 2001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
4580
4581 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
4582 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
4583 (__memalign_hook): Make the two prototypes consistent.
4584
4585 2001-04-17 Gerd Moellmann <gerd@gnu.org>
4586
4587 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
4588 matrix of mini-windows.
4589
4590 2001-04-12 Stefan Monnier <monnier@cs.yale.edu>
4591
4592 * intervals.c (find_interval): Don't rebalance during signal handling.
4593
4594 2001-04-11 Gerd Moellmann <gerd@gnu.org>
4595
4596 * fns.c: Include blockinput.h.
4597
4598 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
4599
4600 2001-04-10 Gerd Moellmann <gerd@gnu.org>
4601
4602 * fns.c (Fcompare_strings): Fix return values.
4603
4604 * window.c (window_scroll): Change the meaning of N to mean
4605 N screen-fulls or N lines.
4606 (window_scroll_pixel_based, window_scroll_line_based)
4607 (scroll_command, Fscroll_other_window): Change accordingly.
4608
4609 * window.c (window_scroll_pixel_based, Frecenter):
4610 Call window_box_height instead of using it.last_visible_y for the
4611 height of the window.
4612
4613 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
4614 instead of using it.last_visible_y for the height of the window.
4615
4616 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
4617 From Dan Holmsand <dan@eyebee.com>.
4618
4619 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
4620 able to write to hidden and system files. From Dan Holmsand
4621 <dan@eyebee.com>.
4622
4623 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
4624 Holmsand <dan@eyebee.com>.
4625
4626 2001-04-09 Gerd Moellmann <gerd@gnu.org>
4627
4628 * fns.c (Fplist_get, Fplist_put): Add QUITs.
4629
4630 * window.c (window_internal_height): Return 1 less if the
4631 window has a header line.
4632
4633 * xdisp.c (try_window_id): When scrolling on a terminal, take
4634 the change of window_internal_height into account.
4635
4636 2001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
4637
4638 * gmalloc.c (align): If the argument SIZE would overflow
4639 __malloc_ptrdiff_t, fail right away.
4640
4641 2001-04-06 Gerd Moellmann <gerd@gnu.org>
4642
4643 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
4644 Make sure the tooltip is completely visible.
4645 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
4646
4647 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
4648
4649 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
4650
4651 2001-04-06 Dave Love <fx@gnu.org>
4652
4653 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
4654 Fix test of `from'.
4655
4656 2001-04-06 Gerd Moellmann <gerd@gnu.org>
4657
4658 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
4659
4660 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
4661
4662 2001-04-05 Gerd Moellmann <gerd@gnu.org>
4663
4664 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
4665
4666 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
4667
4668 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
4669 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
4670
4671 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
4672 shell widget's position only if it is non-null.
4673
4674 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
4675 Set f->output_data.x->widget to null after destroying it.
4676
4677 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
4678 FILENAME to bring it in synch with the documentation.
4679
4680 * xfaces.c (realizing_basic_faces_p): Renamed from
4681 realize_default_face_p.
4682 (realize_basic_faces): Set/clear realizing_basic_faces_p.
4683 (realize_default_face): Don't set the flag.
4684
4685 2001-04-04 Gerd Moellmann <gerd@gnu.org>
4686
4687 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
4688
4689 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
4690
4691 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
4692 the buffer that was used for echoing.
4693
4694 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
4695 (first_font_matching): Removed unused function.
4696 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
4697 (may_use_scalable_font_p): Remove parameter FONT; rename
4698 parameter NAME to FONT.
4699 (x_face_list_fonts): Fix missing bounds check.
4700 (realizing_default_face_p): New variable.
4701 (realize_default_face): Set and clear that flag.
4702 (x_face_list_fonts): When called during the realization of the
4703 default face, and no matching fonts are found when ignoring
4704 scalable fonts and fonts matching a regexp from
4705 face-ignored-fonts, try without ignoring fonts.
4706
4707 2001-04-03 Gerd Moellmann <gerd@gnu.org>
4708
4709 * xfns.c (postprocess_image): New function.
4710 (lookup_image): Call it for all image types except PostScript.
4711 (x_kill_gs_process): Call postprocess_image.
4712
4713 * xterm.c (x_use_underline_position_properties): New variable.
4714 (x_draw_glyph_string): Use it.
4715 (syms_of_xterm): DEFVAR_BOOL it.
4716
4717 2001-04-02 Gerd Moellmann <gerd@gnu.org>
4718
4719 * xterm.c (x_alloc_nearest_color_1): New function.
4720 (x_alloc_nearest_color): Use it.
4721 (x_color_cells): Take a Display as argument, instead of a frame.
4722 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
4723 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
4724 (x_initialize): Register cvt_string_to_pixel as resource converter
4725 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
4726
4727 2001-03-30 Gerd Moellmann <gerd@gnu.org>
4728
4729 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
4730 (set_iterator_to_next): If a string from a display property ends,
4731 consider the case that this might also be the end of an
4732 overlay string having the display property.
4733
4734 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
4735
4736 * xdisp.c (reseat_to_string): Undo last change.
4737
4738 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
4739 matrix of a window when the header line changes, when
4740 new rows are allocated, or when the width changes.
4741
4742 2001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
4743
4744 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
4745
4746 2001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
4747
4748 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
4749 deprecated.
4750
4751 2001-03-29 Gerd Moellmann <gerd@gnu.org>
4752
4753 * data.c (Fsubr_interactive_form): New function.
4754 (syms_of_data): Defsubr it.
4755
4756 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
4757 (live_float_p, live_misc_p): Return 1 only if the offset of the
4758 pointer in its block is >= 0.
4759
4760 2001-03-28 Paul Eggert <eggert@twinsun.com>
4761
4762 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
4763 microseconds calcuation. Avoid double-rounding problem.
4764 In doc string, warn that the result is approximate.
4765
4766 2001-03-28 Gerd Moellmann <gerd@gnu.org>
4767
4768 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
4769 bind `inhibit-eval-during-redisplay' to t.
4770
4771 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
4772
4773 * xdisp.c (inhibit_eval_during_redisplay)
4774 (Qinhibit_eval_during_redisplay): New variables.
4775 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
4776 don't eval, return nil instead.
4777 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
4778 Initialize Qinhibit_eval_during_redisplay.
4779
4780 * xdisp.c (reseat_to_string): If STRING is multibyte, set
4781 the iterator's multibyte_p flag.
4782
4783 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
4784 instead of setting it to zero; it's incremented for each frame
4785 where the menu face is changed.
4786
4787 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
4788 change bottom shadow accordingly.
4789
4790 * xterm.c (expose_window_tree, expose_frame): Don't compute
4791 intersections here.
4792 (expose_window): Do it here instead.
4793 (x_draw_glyph_string): Fix a computation of the underline position.
4794
4795 * bytecode.c (BYTE_CODE_QUIT): New macro.
4796 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
4797
4798 2001-03-27 Gerd Moellmann <gerd@gnu.org>
4799
4800 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
4801 Give up if matrix starts in an ellipsis.
4802 (init_from_display_pos): Do nothing if POS doesn't specify
4803 a dpvec_index but the iterator has such a position.
4804
4805 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
4806
4807 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
4808 x/y position is (0, 0) after destroying the menu bar, restore
4809 its original position.
4810
4811 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
4812 (init_from_display_pos): Use it.
4813 (try_window_reusing_current_matrix): Don't use cursor_row_p.
4814
4815 2001-03-26 Gerd Moellmann <gerd@gnu.org>
4816
4817 * xdisp.c (try_window_id): Undo last change.
4818
4819 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
4820
4821 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
4822
4823 * buffer.c (syms_of_buffer): Doc fix.
4824
4825 2001-03-26 Gerd Moellmann <gerd@gnu.org>
4826
4827 * xfaces.c (x_update_menu_appearance): Use local variable
4828 popup_path for setting font resources.
4829
4830 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
4831
4832 * frame.c (Fframe_list): Don't reference tip_frame if
4833 HAVE_WINDOW_SYSTEM is not defined.
4834
4835 * emacs.c (main): Update the copyright year. From Werner LEMBERG
4836 <wl@gnu.org>.
4837
4838 2001-03-25 Gerd Moellmann <gerd@gnu.org>
4839
4840 * xdisp.c (init_from_display_pos): Test invisible property
4841 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
4842
4843 * xdisp.c (redisplay_internal) <update one window>: Make sure
4844 last_arrow_position and last_arrow_string are set.
4845
4846 * frame.c (Fframe_list): Don't return a tooltip frame.
4847
4848 2001-03-23 Gerd Moellmann <gerd@gnu.org>
4849
4850 * xdisp.c (mark_window_display_accurate_1): New function,
4851 extracted from mark_window_display_accurate.
4852 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
4853 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
4854 (mark_window_display_accurate): Use it.
4855 (redisplay_internal): Use it for the selected window.
4856 (redisplay_internal): Avoid duplicate mark_window_display_accurate
4857 for the selected frame.
4858
4859 * xdisp.c Use make_number, for readability.
4860 (try_window_id): Disable rows below the window end.
4861 (try_window_reusing_current_matrix): Use cursor_row_p.
4862 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
4863 of rows.
4864 (init_from_display_pos): If POS specifies a position in a display
4865 vector, maybe get the iterator set up for that ellipsis.
4866
4867 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
4868
4869 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
4870
4871 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
4872
4873 2001-03-23 Gerd Moellmann <gerd@gnu.org>
4874
4875 * xfaces.c (x_update_menu_appearance): Use a different path
4876 for Lucid popup menus.
4877
4878 2001-03-22 Stefan Monnier <monnier@cs.yale.edu>
4879
4880 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
4881
4882 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
4883 (string_buffer_position): Use `make_number'.
4884
4885 2001-03-22 Gerd Moellmann <gerd@gnu.org>
4886
4887 * xfaces.c (x_update_menu_appearance): Renamed from
4888 x_set_menu_face_resources. Use different resources for popups.
4889
4890 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
4891 (GC_CHECK_STRING_BYTES): Don't define.
4892
4893 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
4894 Removed, together with subroutines.
4895 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
4896 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
4897
4898 * dispextern.h (x_set_menu_resources_from_menu_face):
4899 Remove prototype.
4900
4901 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
4902 Remove calls to x_set_menu_resources_from_menu_face.
4903
4904 * xfaces.c (xm_set_menu_resources_from_menu_face):
4905 Remove #ifndef LESSTIF_VERSION.
4906
4907 * xmenu.c: Include widget.h.
4908 (single_submenu): Return int. Some cleanup.
4909 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
4910
4911 2001-03-21 Gerd Moellmann <gerd@gnu.org>
4912
4913 * xterm.c (x_update_window_end): Handle overwritten mouse face
4914 also for tool bar windows.
4915 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
4916 DRAW is DRAW_IMAGE_RAISED.
4917
4918 2001-03-20 Gerd Moellmann <gerd@gnu.org>
4919
4920 * print.c (syms_of_print): Doc fixes.
4921
4922 * fns.c (Fmd5): Doc fix.
4923
4924 2001-03-19 Gerd Moellmann <gerd@gnu.org>
4925
4926 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4927 Clear area of the frame not occupied by the scroll bar.
4928
4929 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
4930 tip frame's root window buffer to *tip* right after creating
4931 the frame.
4932
4933 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
4934 is an integer don't have to be for space characters.
4935
4936 2001-03-16 Gerd Moellmann <gerd@gnu.org>
4937
4938 * indent.c (current_column, current_column_1, Fmove_to_column)
4939 (compute_motion): Handle characters from display vectors differently.
4940
4941 2001-03-15 Kenichi Handa <handa@etl.go.jp>
4942
4943 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
4944 drawing glyph string.
4945
4946 2001-03-15 Gerd Moellmann <gerd@gnu.org>
4947
4948 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
4949 (command_loop_1): Undo last change.
4950
4951 * xterm.c (fast_find_position): Return the correct vpos.
4952
4953 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
4954 non-null, set a per-buffer value in BUF instead of the current buffer.
4955 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
4956 Call store_symval_forwarding with BUF null.
4957 (set_internal): Call store_symval_forwarding with the BUF
4958 parameter passed to set_internal. Formerly, the value was always
4959 set in the current buffer; the buffer recorded in specbind for
4960 this case wasn't used.
4961 (arith_driver): Reindent.
4962
4963 * buffer.c (swap_out_buffer_local_variables):
4964 Call store_symval_forwarding with BUF null.
4965
4966 * lisp.h (store_symval_forwarding): Change prototype.
4967
4968 * eval.c (specbind): Call store_symval_forwarding with BUF null.
4969
4970 2001-03-14 Gerd Moellmann <gerd@gnu.org>
4971
4972 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
4973 FOR_DELETION. Avoid resizing the mini-window of the selected
4974 frame if FOR_DELETION is set.
4975 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
4976 (Fmake_frame_invisible): Change calls to do_switch_frame for new
4977 signature.
4978
4979 * window.c (Fset_window_configuration): Change call to
4980 do_switch_frame to new format.
4981
4982 * keyboard.c (quit_throw_to_read_char): Change call to
4983 do_switch_frame to new format.
4984
4985 * lisp.h (do_switch_frame): Change prototype.
4986
4987 * frame.c (Fframe_parameters): In the `buffer-list' frame
4988 parameter, store the buffer list of FRAME, not the list of the
4989 selected frame.
4990
4991 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
4992 box just because the glyph row's full_width_p flag is set.
4993
4994 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
4995
4996 * xdisp.c (highlight_trailing_whitespace): On character terminals,
4997 skip the padding blanks inserted in extend_face_to_end_of_line,
4998 before checking for trailing whitespace.
4999
5000 2001-03-13 Gerd Moellmann <gerd@gnu.org>
5001
5002 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
5003 Remove special handling for LessTif/Motif.
5004 (toplevel): Don't include Xm/Xm.h.
5005
5006 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
5007 Remove workaround code for LessTif; it doesn't work anymore.
5008
5009 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
5010 Xm/ScrollBarP.h.
5011
5012 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
5013 Don't access private scroll bar data; it's no longer necessary with
5014 contemporary LessTif.
5015
5016 * xfaces.c (xm_set_menu_resources_from_menu_face):
5017 Change #if 0 to #ifndef LESSTIF_VERSION.
5018
5019 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
5020 removing button grabs.
5021
5022 2001-03-13 Kenichi Handa <handa@etl.go.jp>
5023
5024 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
5025 and clip-large-size-font as obsolete.
5026
5027 * lread.c (read_multibyte): Check the validity of multibyte
5028 sequence. If invalid, return the first byte.
5029
5030 2001-03-12 Gerd Moellmann <gerd@gnu.org>
5031
5032 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
5033 before running the command; timer functions or process
5034 filters may have set it.
5035
5036 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
5037
5038 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
5039 Doc fix.
5040
5041 2001-03-12 Gerd Moellmann <gerd@gnu.org>
5042
5043 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
5044 to sprintf.
5045
5046 2001-03-09 Gerd Moellmann <gerd@gnu.org>
5047
5048 * dispextern.h (string_buffer_position): Add prototype.
5049
5050 * xdisp.c (string_buffer_position, display_prop_string_p)
5051 (single_display_prop_string_p): New functions.
5052
5053 * xterm.c (note_mouse_highlight): If there's no help-echo on
5054 a string, look at the buffer text ``under'' it.
5055
5056 * keyboard.c (make_lispy_event): Add string info to the event,
5057 analogous to what's done on mode lines.
5058 (read_key_sequence): For a click on a string, consider `local-map'
5059 and `keymap' of that string.
5060
5061 * keyboard.c (make_lispy_event, make_lispy_movement):
5062 Adjust calls to buffer_posn_from_coords to new format.
5063
5064 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
5065
5066 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
5067 POS; return void.
5068
5069 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
5070 flags argument to emacs_open; it seems to conflict with O_EXCL.
5071
5072 2001-03-09 Kenichi Handa <handa@etl.go.jp>
5073
5074 * composite.h (struct composition): Change types of members;
5075 glyph_len to unsigned, width to unsigned short.
5076
5077 2001-03-08 Andrew Innes <andrewi@gnu.org>
5078
5079 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
5080 menu titles.
5081
5082 2001-03-08 Gerd Moellmann <gerd@gnu.org>
5083
5084 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
5085 instead of nil.
5086
5087 * xterm.c (note_mouse_highlight): Handle mouse-face and
5088 help-echo in strings.
5089 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
5090 (fast_find_string_pos): New function.
5091
5092 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
5093 (display_string): Call face_at_string_position with new parameter.
5094
5095 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
5096 Handle `mouse-face'.
5097
5098 * dispextern.h (face_at_string_position): Change prototype.
5099
5100 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
5101
5102 * keyboard.c (make_lispy_event): Avoid generating drag events
5103 if the mouse hasn't actually moved to another buffer position.
5104
5105 2001-03-08 Dave Love <fx@gnu.org>
5106
5107 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
5108
5109 2001-03-08 Gerd Moellmann <gerd@gnu.org>
5110
5111 * process.c (Fset_process_window_size): Fix a typo.
5112
5113 2001-03-08 Kenichi Handa <handa@etl.go.jp>
5114
5115 * coding.c (detect_coding_sjis): Do more rigid check.
5116 (detect_coding_big5): Likewise.
5117 (decode_coding_sjis_big5): Likewise.
5118 (Fdetect_coding_region): Call detect_coding_system with tailing
5119 anchor byte `\0' for more rigid detection.
5120 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
5121 (Fdetect_coding_string): Likewise.
5122
5123 2001-03-07 Stefan Monnier <monnier@cs.yale.edu>
5124
5125 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
5126 a string before extracting its data.
5127
5128 2001-03-07 Gerd Moellmann <gerd@gnu.org>
5129
5130 * window.c (Frecenter): Rewrite code handling negative values
5131 of ARG on graphical frames.
5132
5133 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
5134
5135 * window.c (displayed_window_lines): If W->start is outside the
5136 accessible portion of the buffer, call start_display with BEGV or
5137 ZV instead of W->start.
5138
5139 2001-03-07 Gerd Moellmann <gerd@gnu.org>
5140
5141 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
5142
5143 * process.c (Fset_process_filter): Don't crash if the input
5144 file descriptor of PROCESS is closed.
5145 (Fset_process_window_size): Likewise.
5146
5147 2001-03-06 Kenichi Handa <handa@etl.go.jp>
5148
5149 * xterm.c (XTflash): Make the timeout of select shorter, and call
5150 select repeatedly until the desired time expires.
5151
5152 2001-03-06 Gerd Moellmann <gerd@gnu.org>
5153
5154 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
5155
5156 * xfns.c (Fx_create_frame): Clear Vwindow_list.
5157
5158 * lisp.h (Vwindow_list): Declare extern.
5159
5160 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
5161
5162 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
5163
5164 2001-03-06 Gerd Moellmann <gerd@gnu.org>
5165
5166 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
5167 to detect a case where we have to highlight a different region
5168 despite not having left the currently highlighted region.
5169 Set mouse_face_overlay in the x_display_info.
5170 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
5171
5172 * xterm.h (struct x_display_info): Add mouse_face_overlay.
5173
5174 * buffer.c (mouse_face_overlay_overlaps): New function.
5175
5176 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
5177 (Qmouse_face): Declare extern.
5178
5179 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
5180 if face_change_count is non-zero.
5181
5182 2001-03-06 Kenichi Handa <handa@etl.go.jp>
5183
5184 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
5185 that the source is unibyte.
5186
5187 2001-03-05 Dave Love <fx@gnu.org>
5188
5189 * xterm.c (XTmouse_position): Fix typo.
5190
5191 2001-03-05 Gerd Moellmann <gerd@gnu.org>
5192
5193 * minibuf.c (read_minibuf): Clean up the binding stack if
5194 called noninteractively.
5195
5196 2001-03-05 Kenichi Handa <handa@etl.go.jp>
5197
5198 * coding.c (syms_of_coding): Docstring modified.
5199
5200 2001-03-05 Kenichi Handa <handa@etl.go.jp>
5201
5202 * charset.c (char_to_string): If a single byte char has modifier
5203 bits that can't be reflected to the character code, ignore them
5204 instead of signaling an error.
5205
5206 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
5207
5208 * s/msdos.h: Update copyright notice.
5209
5210 * dosfns.h: Update copyright notice.
5211
5212 * dosfns.c: Update copyright notice.
5213
5214 * msdos.c: Update copyright notice.
5215
5216 2001-03-02 Gerd Moellmann <gerd@gnu.org>
5217
5218 * xterm.c (glyph_rect): New function.
5219 (XTmouse_position): Use it to raise the threshold for mouse
5220 movement event generation.
5221
5222 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
5223
5224 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
5225 specifies (reverse . t), reverse the initial screen colors.
5226 (IT_set_frame_parameters): If the property is foreground-color,
5227 but we are reversing the colors, set bg_set, not fg_set.
5228 Likewise for setting background-color and reversing: set fg_set.
5229 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
5230 in effect.
5231
5232 * xfaces.c (Finternal_set_lisp_face_attribute)
5233 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
5234 parameters alist.
5235
5236 2001-03-02 Gerd Moellmann <gerd@gnu.org>
5237
5238 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
5239 to a single slash in the middle of file names.
5240
5241 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
5242 Accept only alphanumeric time zone names.
5243
5244 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
5245 or width area.
5246 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
5247 a widget to zero height.
5248
5249 2001-03-01 Gerd Moellmann <gerd@gnu.org>
5250
5251 * window.c (Fwindow_end): Call move_it_past_eol only if
5252 ending up on a partially visible line.
5253
5254 2001-03-01 Dave Love <fx@gnu.org>
5255
5256 * ccl.c (Fccl_execute): Doc fix.
5257
5258 2001-03-01 Gerd Moellmann <gerd@gnu.org>
5259
5260 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
5261 of the tool bar before calling x_figure_window_size.
5262
5263 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
5264 NULL after destroying it, otherwise XTread_socket can access a
5265 destroyed widget when input is unblocked.
5266
5267 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
5268
5269 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
5270 same name as before, although there was a change in fontsets.
5271
5272 2001-02-28 Ken Raeburn <raeburn@gnu.org>
5273
5274 * lisp.h (Fframe_parameter): Declare.
5275
5276 * window.c (set_window_buffer): Field vscroll is an int, not a
5277 Lisp_Object.
5278
5279 2001-02-28 Gerd Moellmann <gerd@gnu.org>
5280
5281 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
5282 NULL instead.
5283
5284 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
5285 NULL instead.
5286
5287 * alloc.c (toplevel): Include process.h.
5288 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
5289 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
5290 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
5291 (allocate_vector, allocate_hash_table, allocate_window)
5292 (allocate_frame, allocate_process, allocate_other_vector):
5293 New functions.
5294 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
5295 (mark_maybe_pointer): New function.
5296 (mark_memory): Also mark Lisp data to which only pointers
5297 remain and not Lisp_Objects.
5298 (min_heap_address, max_heap_address): New variables.
5299 (mem_find): Return MEM_NIL if START is below min_heap_address or
5300 above max_heap_address.
5301 (mem_insert): Compute min_heap_address and max_heap_address.
5302
5303 * process.c (make_process): Use allocate_process.
5304
5305 * frame.c (make_frame): Use allocate_frame.
5306
5307 * window.c (make_window, make_dummy_parent): Use allocate_window.
5308 (Fcurrent_window_configuration): Use allocate_other_vector.
5309
5310 * lisp.h (allocate_vectorlike): Remove prototype.
5311 (allocate_vector, allocate_other_vector, allocate_frame)
5312 (allocate_window, allocate_process, allocate_hash_table):
5313 Add prototypes.
5314
5315 * fns.c (Fdelete, larger_vector): Use allocate_vector.
5316 (make_hash_table, copy_hash_table): Use allocate_hash_table.
5317
5318 2001-02-27 Kenichi Handa <handa@etl.go.jp>
5319
5320 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
5321 treat the produced bytes as a valid multibyte sequence.
5322
5323 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
5324 (ccl_driver) <CCL_WriteMultibyteChar2>:
5325 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
5326 <ccl_finish>: Set ccl->eight_bit_control properly.
5327
5328 * ccl.h (struct ccl_program): New member eight_bit_control.
5329
5330 2001-02-26 Stefan Monnier <monnier@cs.yale.edu>
5331
5332 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
5333 accessible_keymaps_char_table.
5334 (accessible_keymaps_char_table): Obey `is_metized'.
5335 (where_is_internal, Fwhere_is_internal): Don't confuse int and
5336 Lisp_Object.
5337
5338 2001-02-26 Gerd Moellmann <gerd@gnu.org>
5339
5340 * dispnew.c: Check HAVE_TERM_H before including term.h.
5341
5342 2001-02-24 Andrew Innes <andrewi@gnu.org>
5343
5344 * makefile.w32-in: Update copyright notice.
5345
5346 2001-02-24 Stefan Monnier <monnier@cs.yale.edu>
5347
5348 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
5349
5350 2001-02-24 Kenichi Handa <handa@etl.go.jp>
5351
5352 * Makefile.in (lisp): Add international/utf-8.elc.
5353
5354 * fontset.c (Fnew_fontset): Fix handling of the case that an
5355 element of FONTLIST is a cons of family and registry.
5356
5357 2001-02-23 Jason Rumney <jasonr@gnu.org>
5358
5359 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
5360 to height unconditionally.
5361
5362 * w32term.c (x_set_glyph_string_background_width): Extend the
5363 background face to the end of the drawing area in the text area, only.
5364 (x_insert_glyphs): Call window_box_left to obtain the left
5365 x-coordinate of the area to shift.
5366
5367 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
5368 safe_run_hooks.
5369
5370 2001-02-22 Andrew Innes <andrewi@gnu.org>
5371
5372 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
5373 ($(BLD)\dispnew.obj):
5374 ($(BLD)\editfns.obj):
5375 ($(BLD)\fileio.obj):
5376 ($(BLD)\filelock.obj):
5377 ($(BLD)\keyboard.obj):
5378 ($(BLD)\w32proc.obj):
5379 ($(BLD)\process.obj):
5380 ($(BLD)\sysdep.obj): Ditto.
5381
5382 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
5383 header files.
5384 ($(BLD)/dispnew.$(O)):
5385 ($(BLD)/editfns.$(O)):
5386 ($(BLD)/fileio.$(O)):
5387 ($(BLD)/filelock.$(O)):
5388 ($(BLD)/keyboard.$(O)):
5389 ($(BLD)/w32proc.$(O)):
5390 ($(BLD)/process.$(O)):
5391 ($(BLD)/sysdep.$(O)): Ditto.
5392
5393 2001-02-22 Gerd Moellmann <gerd@gnu.org>
5394
5395 * xdisp.c (forward_to_next_line_start): When taking the shortcut
5396 at the start of the function, check that the \n in it->c is
5397 from the iterator's current position.
5398
5399 * xdisp.c (handle_single_display_prop): Add parameter
5400 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
5401 properties which replace the display of text with something else.
5402 (handle_display_prop): Call handle_single_display_prop with
5403 additional argument saying if we already replaced text display
5404 with something else. Use AREF.
5405 (with_echo_area_buffer_unwind_data, display_menu_bar)
5406 (decode_mode_spec_coding): Use AREF and ASIZE.
5407
5408 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
5409 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
5410 * vmstime.h: Files removed.
5411
5412 * unexencap.c, unexfx2800.c: Files removed.
5413
5414 * dispnew.c (direct_output_for_insert): Give up if we are showing
5415 a message or just cleared the message because we might need to
5416 resize the echo area window or display an empty echo area.
5417
5418 2001-02-21 Gerd Moellmann <gerd@gnu.org>
5419
5420 * xdisp.c (redisplay_internal): Do the
5421 mark_window_display_accurate after all windows have been
5422 redisplayed because this call resets flags in buffers which are
5423 needed for proper redisplay.
5424
5425 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
5426 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
5427 the old names.
5428
5429 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
5430 busy_window to hourglass_window, busy_p to hourglass_p.
5431
5432 * msdos.h (struct x_output): Rename busy_window to
5433 hourglass_window, busy_p to hourglass_p.
5434
5435 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
5436 busy_window to hourglass_window, busy_p to hourglass_p.
5437
5438 * xfns.c: Rename everything containing *busy_cursor* and similar
5439 to *hourglass*.
5440 (syms_of_w32fns): Rename x-busy-pointer-shape to
5441 x-hourglass-pointer-shape, display-busy-cursor to
5442 display-hourglass, busy-cursor-delay to hourglass-delay.
5443
5444 * w32fns.c: Rename everything containing *busy_cursor* and similar
5445 to *hourglass*.
5446 (syms_of_w32fns): Rename x-busy-pointer-shape to
5447 x-hourglass-pointer-shape, display-busy-cursor to
5448 display-hourglass, busy-cursor-delay to hourglass-delay.
5449
5450 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
5451 of its busy_p flag.
5452
5453 * dispextern.h (start_hourglass, cancel_hourglass)
5454 (display_hourglass_p): Renamed from *busy_cursor*.
5455
5456 2001-02-20 Gerd Moellmann <gerd@gnu.org>
5457
5458 * keyboard.c (read_char): When an event from unread-command-events
5459 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
5460
5461 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
5462 equal to the current buffer.
5463
5464 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
5465 nil, otherwise we're left with truncate_lines t when a message
5466 is printed with message-truncate-lines bound to t.
5467
5468 2001-02-19 Gerd Moellmann <gerd@gnu.org>
5469
5470 * window.c (Fmove_to_window_line): Undo last change.
5471 (displayed_window_lines): Call line_bottom_y to determine
5472 the line's bottom position.
5473
5474 * dispextern.h (line_bottom_y): Add prototype.
5475
5476 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
5477 (pos_visible_p): Use it.
5478
5479 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
5480 set redisplaying_p to 0 here instead of in Frecursive_edit.
5481 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
5482 set redisplaying_p.
5483
5484 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
5485 New variables.
5486 (syms_of_xdisp): Initialize new variables.
5487 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
5488 Specbind `inhibit-menubar-update' when updating the menu bar.
5489
5490 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
5491 safe_run_hooks.
5492
5493 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
5494 safe_run_hooks.
5495
5496 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
5497 is null.
5498
5499 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
5500 to the start of the file.
5501
5502 2001-02-16 Gerd Moellmann <gerd@gnu.org>
5503
5504 * window.c (set_window_buffer): Fix last change.
5505
5506 * window.c (set_window_buffer): Set window's vscroll to 0.
5507
5508 * window.c (coordinates_in_window): Increase width of area
5509 where the vertical line can be dragged.
5510
5511 * xterm.c (x_set_glyph_string_background_width): Extend the
5512 background face to the end of the drawing area in the text
5513 area, only.
5514
5515 * xdisp.c (handle_single_display_prop): Set iterator's position
5516 to where the `display' property starts, like for images.
5517 (dump_glyph): New function.
5518 (dump_glyph_row): Use it. Dump info about marginal areas.
5519
5520 * dispnew.c (direct_output_for_insert): Recognize more cases where
5521 glyphs can be written instead of being inserted.
5522
5523 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
5524 the left x-coordinate of the area to shift.
5525
5526 * dired.c (directory_files_internal): Set result list to nil
5527 before retrying.
5528
5529 2001-02-15 Kenichi Handa <handa@etl.go.jp>
5530
5531 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
5532 invalid multibyte sequence, treat *SRC as a character of
5533 eight-bit-graphic.
5534
5535 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
5536
5537 * textprop.c (Fset_text_properties): Doc fix.
5538
5539 2001-02-15 Gerd Moellmann <gerd@gnu.org>
5540
5541 * dispnew.c (update_text_area): Undo change of 2001-01-12.
5542
5543 2001-02-14 Dave Love <fx@gnu.org>
5544
5545 * coding.c: Doc and message fixes.
5546
5547 2001-02-14 Andrew Innes <andrewi@gnu.org>
5548
5549 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
5550 Emacs frame above the screen size.
5551
5552 2001-02-14 Gerd Moellmann <gerd@gnu.org>
5553
5554 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
5555
5556 2001-02-13 Gerd Moellmann <gerd@gnu.org>
5557
5558 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
5559 case that TO ends up beyond ZV after running before-change-functions.
5560
5561 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
5562 the selected window if it is showing the buffer in question.
5563
5564 * dired.c (directory_files_internal): Initialize errno.
5565 (toplevel): Include errno.h.
5566
5567 2001-02-13 Kenichi Handa <handa@etl.go.jp>
5568
5569 * xfaces.c (best_matching_font): New parameter width_ratio.
5570 Multiply avgwidth by width_ratio.
5571 (choose_face_font): Call best_matching_font with width_ratio
5572 calculated from the column width of C.
5573
5574 2001-02-12 Andrew Innes <andrewi@gnu.org>
5575
5576 The following changes are to draw box lines inside characters area
5577 if line-width is negative.
5578
5579 * w32term.c (x_produce_image_glyph): Pay attention to the case that
5580 face->box_line_width is negative.
5581 (x_produce_stretch_glyph): Likewise.
5582 (x_produce_glyphs): Likewise.
5583 (x_estimate_mode_line_height): Likewise.
5584 (x_draw_glyph_string_background): Likewise.
5585 (x_draw_glyph_string_foreground): Likewise.
5586 (x_draw_composite_glyph_string_foreground): Likewise.
5587 (x_draw_glyph_string_box): Likewise.
5588 (x_draw_image_foreground): Likewise.
5589 (x_draw_image_relief): Likewise.
5590 (x_draw_image_foreground_1): Likewise.
5591 (x_draw_image_glyph_string): Likewise.
5592
5593 2001-02-09 Kenichi Handa <handa@etl.go.jp>
5594
5595 The following changes are to draw box lines inside characters area
5596 if line-width is negative.
5597
5598 * xterm.c (x_produce_image_glyph): Pay attention to the case that
5599 face->box_line_width is negative.
5600 (x_produce_stretch_glyph): Likewise.
5601 (x_produce_glyphs): Likewise.
5602 (x_estimate_mode_line_height): Likewise.
5603 (x_draw_glyph_string_background): Likewise.
5604 (x_draw_glyph_string_foreground): Likewise.
5605 (x_draw_composite_glyph_string_foreground): Likewise.
5606 (x_draw_glyph_string_box): Likewise.
5607 (x_draw_image_foreground): Likewise.
5608 (x_draw_image_relief): Likewise.
5609 (x_draw_image_foreground_1): Likewise.
5610 (x_draw_image_glyph_string): Likewise.
5611
5612 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
5613 and :line-width can be negative.
5614 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
5615
5616 2001-02-09 Jason Rumney <jasonr@gnu.org>
5617
5618 * w32term.c (w32_encode_char): Treat eight bit graphic and control
5619 characters the same as ASCII and latin-1.
5620 (x_display_and_set_cursor): Check for the focus frame's selected
5621 window instead of selected_window.
5622 (x_after_update_window_line): Don't clear if frame's internal
5623 border width is zero.
5624 (x_new_font): Don't change a tooltip's size.
5625 (w32_initialize): Set char_ins_del_ok to 1.
5626
5627 * w32fns.c (Fx_show_tip): Fix calls to make_number.
5628 (x_set_font): If font hasn't changed, avoid recomputing
5629 faces and other things.
5630 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
5631 (Fx_create_frame): Add the tool bar height to the frame height.
5632 (x_create_tip_frame): Prevent changing the tooltip's
5633 background color by specifying a color for the default font
5634 in .Xdefaults.
5635 (Qcancel_timer): New variable.
5636 (syms_of_w32fns): Initialize and staticpro it.
5637 (Fx_hide_tip, Fx_show_tip): Use it.
5638 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
5639 the timer.
5640 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
5641
5642 * w32.c (init_environment): Duplicate local string before putenv.
5643
5644 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
5645
5646 * charset.c (Fstring): A typo.
5647
5648 2001-02-09 Kenichi Handa <handa@etl.go.jp>
5649
5650 * charset.c (Fstring): If all arguments are less than 256, return
5651 a unibyte string.
5652
5653 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
5654 return a unibyte string.
5655
5656 * coding.c (code_convert_region): After detecting a coding, if
5657 nothing found, set coding->composing to COMPOSITION_NO.
5658 (decode_coding_string): Likewise.
5659
5660 2001-02-08 Stefan Monnier <monnier@cs.yale.edu>
5661
5662 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
5663 to avoid overflow.
5664
5665 2001-02-07 Kenichi Handa <handa@etl.go.jp>
5666
5667 * charset.c (parse_str_to_multibyte): New function.
5668
5669 * charset.h (parse_str_to_multibyte): Extern it.
5670
5671 * print.c (print_string): If we are going to print a unibyte
5672 string into a multibyte buffer, convert the string to multibyte by
5673 str_to_multibyte.
5674
5675 2001-02-06 Andrew Innes <andrewi@gnu.org>
5676
5677 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
5678 been created. It seems we can get sent window messages such as
5679 WM_ERASEBKGND before we properly update a frame.
5680
5681 2001-02-06 Gerd Moellmann <gerd@gnu.org>
5682
5683 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
5684 Avoid some unnecessary cursor positioning.
5685
5686 2001-02-05 Gerd Moellmann <gerd@gnu.org>
5687
5688 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
5689 (LFACE_AVGWIDTH): New macro.
5690 (LFACEP): Use AREF.
5691 (check_lface_attrs): Check LFACE_AVGWIDTH.
5692 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
5693 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
5694 (merge_face_vectors): Check LFACE_AVGWIDTH.
5695 (Finternal_make_lisp_face): Use AREF.
5696 (xm_set_menu_resources_from_menu_face)
5697 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
5698 (Finternal_lisp_face_empty_p): Use AREF.
5699 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
5700 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
5701 Compare average widths..
5702 (best_matching_font): Arrange for comparing average widths.
5703
5704 * dispextern.h (enum lface_attribute_index):
5705 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
5706
5707 2001-02-05 Dave Love <fx@gnu.org>
5708
5709 * puresize.h: Revert last change following loadup.el change.
5710
5711 2001-02-05 Andrew Innes <andrewi@gnu.org>
5712
5713 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
5714 invocation of temacs, to work with Windows 2000.
5715 (bootstrap-emacs): Ditto.
5716
5717 2001-02-05 Gerd Moellmann <gerd@gnu.org>
5718
5719 * xterm.c (x_display_and_set_cursor): Check for the focus
5720 frame's selected window instead of selected_window.
5721
5722 * xdisp.c (try_scrolling): If point is in the line below the
5723 window, make sure to move the iterator at least a canonical
5724 char height down.
5725
5726 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
5727
5728 2001-02-05 Kenichi Handa <handa@etl.go.jp>
5729
5730 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
5731 If invalid, execute CCL_INVALID_CMD.
5732 (ccl_driver): If the CCL program is terminated because of
5733 CCL_STAT_INVALID_CMD, copy the remaining source data to the
5734 destination instead of throwing them away.
5735
5736 2001-02-02 Gerd Moellmann <gerd@gnu.org>
5737
5738 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
5739 faces and other things.
5740
5741 * xdisp.c (get_next_display_element): Fix case of empty
5742 display table entry.
5743
5744 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
5745
5746 * editfns.c (Fconstrain_to_field): Doc fix.
5747
5748 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
5749 into `thoroughly', to make it consistent with the doc string.
5750
5751 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
5752
5753 2001-02-01 Gerd Moellmann <gerd@gnu.org>
5754
5755 * search.c (search_buffer): Call set_search_regs with a byte
5756 position, not a character position.
5757
5758 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
5759 minibuffer-only,
5760
5761 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
5762
5763 * frame.c (Fmodify_frame_parameters): Doc fix.
5764
5765 2001-01-31 Gerd Moellmann <gerd@gnu.org>
5766
5767 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
5768 identifier which is not reserved by Standard C.
5769
5770 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
5771
5772 * window.c (enum window_part): New enumeration.
5773 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
5774 Qright_bitmap_area.
5775 (coordinates_in_window): Return an enumerator from enum
5776 window_part. Fix handling of right scroll bar.
5777 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
5778 `right-fringe' instead of `left-bitmap-area' and
5779 `right-bitmap-area'. Use enumerators from enum window_part
5780 instead of hard-coded integers.
5781 (check_window_containing, window_from_coordinates):
5782 Use enumerators from enum window_part instead of hard-coded integers.
5783 (syms_of_window): Replace Qleft_bitmap_area and
5784 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
5785
5786 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
5787
5788 * editfns.c (Fformat_time_string): Doc fix.
5789
5790 2001-01-31 Stefan Monnier <monnier@cs.yale.edu>
5791
5792 * keymap.c (Fwhere_is_internal): Use the first valid binding
5793 if no ascii binding is found (when firstonly is t).
5794
5795 2001-01-31 Gerd Moellmann <gerd@gnu.org>
5796
5797 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
5798 instead of Finteractive_p.
5799
5800 * lisp.h (interactive_p): Add prototype.
5801
5802 * eval.c (interactive_p): New function.
5803 (Finteractive_p): Use it.
5804
5805 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
5806
5807 2001-01-31 Dave Love <fx@gnu.org>
5808
5809 * .gdbinit (hook-run): Define to run xreload.
5810
5811 * textprop.c (Fset_text_properties): Fix newline in doc string.
5812
5813 2001-01-30 Gerd Moellmann <gerd@gnu.org>
5814
5815 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
5816 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
5817
5818 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
5819 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
5820 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
5821
5822 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
5823 height.
5824
5825 2001-01-30 Dave Love <fx@gnu.org>
5826
5827 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
5828 AFTER_POTENTIAL_GC.
5829
5830 2001-01-29 Gerd Moellmann <gerd@gnu.org>
5831
5832 * bytecode.c (Fbyte_code) <Bcurrent_column>:
5833 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
5834
5835 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
5836
5837 * textprop.c (Fset_text_properties): Doc fix.
5838
5839 2001-01-29 Gerd Moellmann <gerd@gnu.org>
5840
5841 * xdisp.c (forward_to_next_line_start): Remove xassert.
5842
5843 2001-01-29 Jason Rumney <jasonr@gnu.org>
5844
5845 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
5846 returning without releasing it.
5847
5848 2001-01-29 Kenichi Handa <handa@etl.go.jp>
5849
5850 * w32fns.c (w32_font_match): Allocate three more bytes to regex
5851 for '^', '$', and '\0'.
5852
5853 2001-01-28 Andrew Choi <akochoi@i-cable.com>
5854
5855 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
5856 regex for '^', '$', and '\0'.
5857
5858 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
5859 only if current_sblock has been initialized.
5860
5861 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
5862 terminal frame even if it is the only visible frame.
5863
5864 2001-01-28 Kenichi Handa <handa@etl.go.jp>
5865
5866 * fontset.c (font_family_registry): Even if FONTNAME conform to
5867 XLFD, if it specifies other fields than family and registry,
5868 return FONTANME. New argument FORCE if nonzero cancel that feature.
5869 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
5870 a signle byte character. Don't set FAMILY part to nil here.
5871 It is handled by the caller choose_face_font.
5872 (Fnew_fontset): Call font_family_registry with FORCE 0.
5873 (Fset_fontset_font): Likewise.
5874
5875 2001-01-27 Gerd Moellmann <gerd@gnu.org>
5876
5877 * xdisp.c (display_line): Don't treat a newline as fitting
5878 on the line.
5879
5880 2001-01-26 Gerd Moellmann <gerd@gnu.org>
5881
5882 * window.c (size_window): Set the window's orig_top to nil when
5883 changing heights, so that a future shrink_mini_window won't
5884 restore a bogus height.
5885
5886 * frame.c (do_switch_frame): If selected frame has a mini-window,
5887 resize that to exact size.
5888
5889 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
5890
5891 * xdisp.c (display_line): Simplify check for glyphs fitting
5892 entirely in the line.
5893
5894 * xfns.c (xic_style): New variable.
5895 (create_frame_xic): Move static variable to global scope for
5896 the case that `static' gets defined away.
5897
5898 2001-01-26 Kenichi Handa <handa@etl.go.jp>
5899
5900 * coding.c (decode_coding): Set a flag for inhibiting
5901 inconsistent eol.
5902 (code_convert_region): Always set saved_coding_symbol.
5903 (decode_coding_string): Likewise. Update coding->symbol when we
5904 encounter a inconsistent eol by the same way as code_convert_region.
5905
5906 2001-01-25 Gerd Moellmann <gerd@gnu.org>
5907
5908 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
5909 XClearArea.
5910
5911 * xterm.c (x_after_update_window_line): Don't clear if frame's
5912 internal border width is zero.
5913 (x_clear_area): New function.
5914 (x_after_update_window_line, x_clear_end_of_line)
5915 (x_scroll_bar_create, x_scroll_bar_set_handle)
5916 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
5917 instead of XClearArea.
5918
5919 * xterm.h (x_clear_area): Add prototype.
5920
5921 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
5922 which doesn't seem necessary anymore with Lesstif 0.92.
5923
5924 2001-01-25 Dave Love <fx@gnu.org>
5925
5926 * puresize.h (BASE_PURESIZE): Up to 720000.
5927
5928 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
5929
5930 2001-01-25 Gerd Moellmann <gerd@gnu.org>
5931
5932 * xdisp.c (echo_area_display): Don't call redisplay_internal
5933 when Emacs is shutting down. We can't run hooks etc. that
5934 would be necessary to do a redisplay.
5935
5936 * lread.c (read_integer): Use type EMACS_INT instead of int.
5937
5938 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
5939
5940 * ccl.c (ccl_driver): Fix last change.
5941
5942 2001-01-25 Kenichi Handa <handa@etl.go.jp>
5943
5944 * ccl.h (sturct ccl_program): New member suppress_error.
5945
5946 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
5947 insert error message to the output.
5948 (setup_ccl_program): Initialize ccl->suppress_error to 0.
5949
5950 * coding.h (struct coding_system): New member suppress_error.
5951
5952 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
5953 (Fset_terminal_coding_system_internal): Set the member
5954 suppress_error to 1.
5955 (Fset_safe_terminal_coding_system_internal): Likewise.
5956
5957 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
5958
5959 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
5960 as if it was a `charset'.
5961
5962 2001-01-24 Gerd Moellmann <gerd@gnu.org>
5963
5964 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
5965 value in where_is_cache; the next lookup in the cache returns
5966 something bogus if we do.
5967
5968 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
5969
5970 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
5971 if HAVE_WINDOW_SYSTEM isn't defined.
5972
5973 2001-01-24 Gerd Moellmann <gerd@gnu.org>
5974
5975 * fns.c (sweep_weak_table): Fix code taking items out of
5976 the hash collision chain. Some cleanup.
5977
5978 * xterm.c (x_new_font): Don't change a tooltip's size.
5979
5980 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
5981 background color by specifying a color for the default font
5982 in .Xdefaults.
5983
5984 2001-01-24 Kenichi Handa <handa@etl.go.jp>
5985
5986 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
5987 a workaround for SunOS 4's cc.
5988 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
5989 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
5990 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
5991 statement.
5992
5993 2001-01-23 Gerd Moellmann <gerd@gnu.org>
5994
5995 * xterm.c (x_set_window_size_1): New function extracted from
5996 x_set_window_size.
5997 (x_set_window_size): Use it.
5998 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
5999 doesn't have a widget, like tooltips.
6000
6001 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
6002
6003 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
6004
6005 2001-01-23 Kenichi Handa <handa@etl.go.jp>
6006
6007 * fns.c (Fset_char_table_default): Fix to make sub char-table
6008 correctly.
6009
6010 2001-01-22 Gerd Moellmann <gerd@gnu.org>
6011
6012 * xdisp.c (build_desired_tool_bar_string): Make sure we have
6013 a desired tool bar string, even if there are no tool bar items.
6014
6015 * xdisp.c (Ftool_bar_lines_needed): New function.
6016 (syms_of_xdisp): Defsubr it.
6017
6018 * editfns.c (Fformat): Don't extend text properties from arguments
6019 to padding chars in the result.
6020
6021 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
6022
6023 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
6024
6025 2001-01-20 Andrew Innes <andrewi@gnu.org>
6026
6027 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
6028 (w32_initialize): Don't set term hooks that aren't actually needed
6029 in windowed mode.
6030
6031 * xfaces.c (realize_default_face):
6032 (realize_face):
6033 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
6034
6035 * xdisp.c (handle_single_display_prop): Remove references to
6036 FRAME_W32_CONSOLE_P.
6037
6038 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
6039
6040 * frame.h (output_method): Remove output_w32_console method.
6041 (FRAME_W32_CONSOLE_P): Remove macro.
6042
6043 * frame.c (Qw32_console): Remove variable.
6044 (Fframep): Remove references to it.
6045 (syms_of_frame): Ditto.
6046 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
6047
6048 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
6049 redefinition.
6050
6051 2001-01-20 Kenichi Handa <handa@etl.go.jp>
6052
6053 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
6054
6055 2001-01-19 Andrew Innes <andrewi@gnu.org>
6056
6057 * w32.c (init_environment): Add a version-independent site-lisp
6058 directory to EMACSLOADPATH, after the version dependent one.
6059
6060 2001-01-19 Gerd Moellmann <gerd@gnu.org>
6061
6062 * editfns.c (Fbuffer_substring): Doc fix.
6063
6064 * xdisp.c (message_dolog, message2, message2_nolog):
6065 Rename parameter LEN to NBYTES.
6066
6067 2001-01-19 Kenichi Handa <handa@etl.go.jp>
6068
6069 * charset.c (strwidth): Use c_string_width.
6070 (c_string_width): New function.
6071 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
6072 Caller changed.
6073
6074 * charset.h (c_string_width, lisp_string_width): Extern them.
6075
6076 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
6077
6078 * indent.c (check_composition): Check validity of composition.
6079
6080 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
6081 characters by calling c_string_width.
6082 (x_consider_frame_title): Get byte length of frame tile string
6083 correctly.
6084 (display_mode_element): Pay attention to width of non-ASCII
6085 characters by calling strwidth.
6086
6087 2001-01-18 Gerd Moellmann <gerd@gnu.org>
6088
6089 * xfns.c (Qcancel_timer): New variable.
6090 (syms_of_xfns): Initialize and staticpro it.
6091 (Fx_hide_tip, Fx_show_tip): Use it.
6092 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
6093 the timer.
6094 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
6095
6096 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
6097
6098 * window.h (WINDOW_LIVE_P): New macro.
6099
6100 * window.c (window_size_fixed): New variable.
6101 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
6102 the doc string.
6103
6104 * eval.c (specbind): If binding a per-buffer variable which
6105 doesn't have a buffer-local value in the current buffer, change
6106 the global value by changing the value of the symbol bound in all
6107 buffers not having their own value, to make it consistent with
6108 what happens with other buffer-local variables.
6109
6110 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
6111
6112 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
6113 when searching for a newline.
6114
6115 2001-01-18 Kenichi Handa <handa@etl.go.jp>
6116
6117 * xdisp.c (display_string): Fix previous change.
6118
6119 2001-01-18 Jason Rumney <jasonr@gnu.org>
6120
6121 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
6122 GLYPH_DEBUG is defined.
6123 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
6124 true for images with `:ascent 100'.
6125 (x_set_mouse_face_gc): If the last used mouse face has gone in the
6126 meantime, use face MOUSE_FACE_ID.
6127 If first glyph isn't a character glyph, use the ASCII NUL
6128 character to determine the face.
6129 (expose_area): Do not treat left margin specially.
6130 (note_mode_line_highlight): If no local_map, check global keymap.
6131 (note_mouse_highlight): Initialize overlay.
6132 (clear_mouse_face): Don't return if tip_frame is non-nil.
6133 (show_scroll_bars): Remove unused function.
6134 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
6135 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
6136 Clip to row.
6137 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
6138 (x_free_frame_resources): Unload relief colors.
6139
6140 2001-01-17 Gerd Moellmann <gerd@gnu.org>
6141
6142 * xdisp.c (forward_to_next_line_start): Avoid calling
6143 get_next_display_element when the newline is already found.
6144 This may change the iterator's position, when its current position is
6145 equal to the iterator's stop_charpos.
6146
6147 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
6148 zero, use this method only at the end of a line.
6149
6150 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
6151 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
6152 if SCALABLE_FONTS_P is set.
6153
6154 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
6155 so that scalable fonts are included.
6156
6157 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
6158 In the cache, use a key containing the information if scalable
6159 fonts are included.
6160 (x_load_font): Adapt to change of keys in the font cache.
6161
6162 2001-01-17 Kim F. Storm <storm@filanet.dk>
6163
6164 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
6165 XListFonts to take advantage of font caching.
6166
6167 * xterm.c (x_list_fonts): Ensure caching font information when
6168 called for a null frame, which is the case frequently when Emacs
6169 starts.
6170
6171 2001-01-17 Gerd Moellmann <gerd@gnu.org>
6172
6173 * xfns.c (QCconversion): Replaces QCalgorithm.
6174
6175 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
6176
6177 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
6178 of :algorithm.
6179
6180 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
6181 not everything could be displayed.
6182
6183 * line.h, x-list-font.c: Files removed because unused.
6184
6185 2001-01-17 Andrew Innes <andrewi@gnu.org>
6186
6187 * dired.c (directory_files_internal): Convert result from readdir
6188 to a unibyte string initially, to avoid possible misinterpretation
6189 of some bytes as the internal form of Emacs characters.
6190
6191 2001-01-17 Kenichi Handa <handa@etl.go.jp>
6192
6193 * fns.c (concat): Be sure to avoid putting the same `composition'
6194 property on the adjacent regions.
6195
6196 2001-01-16 Gerd Moellmann <gerd@gnu.org>
6197
6198 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
6199 (Fscroll_right, Fscroll_left): Set it here instead, if called
6200 interactively.
6201
6202 * buffer.c (Fset_buffer_modified_p): Set buffer's
6203 prevent_redisplay_optimizations_p flag.
6204
6205 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
6206 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
6207 with additional arg.
6208
6209 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
6210 Change prototype.
6211
6212 * xdisp.c (redisplay_preserve_echo_area): Add parameter
6213 FROM_WHERE, for debugging.
6214
6215 2001-01-16 Kenichi Handa <handa@etl.go.jp>
6216
6217 * ccl.c (Fregister_ccl_program): Handle the return value of
6218 resolve_symbol_ccl_program correctly.
6219 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
6220
6221 2001-01-15 Gerd Moellmann <gerd@gnu.org>
6222
6223 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
6224 has gone in the meantime, use face MOUSE_FACE_ID.
6225
6226 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
6227 If x_display_info_for_display returns null, don't try to close
6228 the display; we didn't open it.
6229
6230 * dispnew.c (save_or_restore_current_matrices): Function removed.
6231 (save_current_matrix, restore_current_matrix): New functions.
6232 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
6233 restore the frame's current matrix. Due to the glyph pointer
6234 setup done in adjust_glyph_matrix, there is no easy way to make
6235 saving the current matrix in the desired matrix generally correct,
6236 so don't try it.
6237
6238 2001-01-15 Kenichi Handa <handa@etl.go.jp>
6239
6240 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
6241 truncation glyphs.
6242 (display_line): Optimize for wide characters.
6243 (display_string): Don't try to display a multi-column character
6244 partially. On ttys, produce more than one truncation glyph for
6245 multi-column characters that don't fit on the line.
6246
6247 2001-01-13 Kenichi Handa <handa@etl.go.jp>
6248
6249 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
6250 Define it instead of WORDS_BIGENDIAN. Caller changed.
6251
6252 2001-01-13 Jason Rumney <jasonr@gnu.org>
6253
6254 * w32fns.c (Fimage_size, image_ascent, lookup_image)
6255 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
6256 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
6257 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
6258
6259 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
6260 (x_draw_image_relief, x_draw_image_foreground_1)
6261 (x_draw_image_glyph_string): Adapt to change of image margins.
6262
6263 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
6264 variables.
6265
6266 * w32bdf.c (search_file_line, get_cached_font_char)
6267 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
6268
6269 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
6270
6271 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
6272 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
6273 (Fw32_send_sys_command): Remove unused variables.
6274 (w32_msg_pump): Add parentheses.
6275
6276 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
6277 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
6278 Add parentheses.
6279
6280 2001-01-12 Gerd Moellmann <gerd@gnu.org>
6281
6282 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
6283 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
6284 being a pair of margins.
6285 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
6286 to DEFVAR_LISP. Extend doc.
6287
6288 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
6289 margins.
6290 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
6291 pair of integers `(X . Y)', use X for the horizontal and Y for the
6292 vertical margin.
6293 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
6294 (parse_image_spec): Check it.
6295 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
6296 (tiff_format, gif_format, gs_format):
6297 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
6298
6299 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
6300 (x_draw_image_relief, x_draw_image_foreground_1)
6301 (x_draw_image_glyph_string): Adapt to the change of image margins.
6302
6303 * dispextern.h (struct image): Replace member `margin' with
6304 `hmargin' and `vmargin'.
6305
6306 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
6307 and GLYPHS.
6308
6309 * dispnew.c (update_text_area): Put code which decrements the
6310 stop position when the row's face extends to the end of the
6311 line in #if 0.
6312
6313 * xfns.c (x_set_mouse_color): Fix color allocation.
6314
6315 * keyboard.c: Call get_local_map with new argument list.
6316
6317 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
6318
6319 * intervals.h (enum map_property): Removed.
6320 (get_local_map): Change prototype.
6321
6322 * keymap.c: Call get_local_map with new argument list.
6323 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
6324
6325 2001-01-11 Gerd Moellmann <gerd@gnu.org>
6326
6327 * xdisp.c (build_desired_tool_bar_string): Correct the computation
6328 of the size needed for the tool bar string. For the last image,
6329 use a `display' property that reaches to the end of the string.
6330
6331 * xselect.c (selection_request_dpyinfo): New variable.
6332 (x_handle_selection_request): Set it.
6333 (x_selection_request_lisp_error): Don't call
6334 x_decline_selection_request if selection request's display has
6335 been closed.
6336
6337 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
6338 Do the unregister_colors before calling XFreeColors.
6339
6340 2001-01-10 Dave Love <fx@gnu.org>
6341
6342 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
6343 ${SOME_MACHINE_LISP}, not ${lisp}.
6344
6345 2001-01-10 Gerd Moellmann <gerd@gnu.org>
6346
6347 * xdisp.c (display_line): On ttys, produce more than one truncation
6348 glyph for multi-column characters that don't fit on the line.
6349
6350 * xselect.c (x_reply_selection_request): Add a comment.
6351
6352 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
6353 XkbGetNames instead of XkbGetKeyboard.
6354
6355 2001-01-10 Dave Love <fx@gnu.org>
6356
6357 * sysdep.c (random): Revert the declaration.
6358
6359 2001-01-09 Gerd Moellmann <gerd@gnu.org>
6360
6361 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
6362 Call function string_bytes.
6363 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
6364
6365 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
6366 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
6367 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
6368 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
6369 the current sblock.
6370 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
6371 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
6372 after sweeping strings, and at the end.
6373 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
6374
6375 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
6376 ensure that pop_message is called.
6377
6378 * keyboard.c (Fexecute_extended_command): Use a
6379 record_unwind_protect to ensure that pop_message is called.
6380
6381 * lisp.h (push_message_unwind): Add prototype.
6382
6383 * xdisp.c (push_message_unwind): New function.
6384
6385 * fileio.c (do_auto_save_unwind): Do the pop_message here
6386 instead of in Fdo_auto_save.
6387 (Fdo_auto_save): Don't call pop_message.
6388
6389 2001-01-08 Ken Raeburn <raeburn@gnu.org>
6390
6391 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
6392 in inner block.
6393
6394 2001-01-08 Gerd Moellmann <gerd@gnu.org>
6395
6396 * window.c (window_scroll_pixel_based): Adjust glyph matrices
6397 when increasing window's vscroll.
6398
6399 * macros.c (Qkbd_macro_termination_hook): New variable.
6400 (syms_of_macros): Initialize and staticpro it.
6401 (pop_kbd_macro): Run kbd-macro-termination-hook.
6402
6403 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
6404
6405 2001-01-07 Dave Love <fx@gnu.org>
6406
6407 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
6408 arglist, for documentation's sake.
6409
6410 2001-01-06 Andrew Innes <andrewi@gnu.org>
6411
6412 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
6413 of *.pdb.
6414
6415 2001-01-05 Andrew Innes <andrewi@gnu.org>
6416
6417 * term.c (update_end): Don't check updating_frame; for some reason
6418 this can be 0 sometimes, such as after dismissing a popup menu,
6419 and isn't necessary given the explicit frame argument.
6420
6421 2001-01-05 Gerd Moellmann <gerd@gnu.org>
6422
6423 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
6424 on some systems, and an unsigned long on others, like FreeBSD 4.1.
6425
6426 2001-01-04 Gerd Moellmann <gerd@gnu.org>
6427
6428 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
6429
6430 * xfns.c (x_create_tip_frame): Preserve the value of
6431 face_change_count around the creation of the tip frame.
6432
6433 * xfns.c (last_show_tip_args): New variable.
6434 (compute_tip_xy): New function.
6435 (Fx_show_tip): Reuse an existing tip frame, if possible.
6436 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
6437
6438 2001-01-04 Dave Love <fx@gnu.org>
6439
6440 * editfns.c (Fformat): Doc fix.
6441
6442 * systime.h (set_file_times): Prototype.
6443
6444 * widget.h (EmacsFrameSetCharSize_): Prototype.
6445
6446 * sysdep.c (random, srandom): Declare explicitly.
6447
6448 * dispextern.h (move_it_vertically_backward): Declare.
6449
6450 2001-01-04 Gerd Moellmann <gerd@gnu.org>
6451
6452 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
6453 like in Fx_create_frame.
6454
6455 * xfaces.c (set_font_frame_param): Don't do anything for
6456 non-graphical frames.
6457
6458 * window.c (Fdelete_other_windows): Set window's window_end_valid
6459 to nil when changing the window's start. Don't change the
6460 window's start when its top position hasn't changed. If we do,
6461 this will set the window's optional_new_start, which act's like a
6462 force_start during redisplay with C-x 1 M-> under particular
6463 circumstances (see report from Per Starback to emacs-pretest-bug
6464 from 2000-12-13.).
6465
6466 2001-01-03 Gerd Moellmann <gerd@gnu.org>
6467
6468 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
6469 short cut at the start of the function. Add an assertion.
6470 (reseat_at_next_visible_line_start): Add an assertion.
6471
6472 * window.c (Frecenter): When changing the window start, set the
6473 window's window_end_valid to nil.
6474 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
6475
6476 * dispextern.h (move_it_past_eol): Add prototype.
6477
6478 * xdisp.c (move_it_past_eol): New function.
6479
6480 * window.c (Fwindow_end): Doc fix.
6481
6482 2001-01-03 Dave Love <fx@gnu.org>
6483
6484 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
6485
6486 2001-01-03 Gerd Moellmann <gerd@gnu.org>
6487
6488 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
6489 the enabled_p flag of the glyph row at window_end_vpos to 0.
6490 (handle_single_display_prop): Fix last change.
6491
6492 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
6493
6494 * window.c (Frecenter): Doc fix.
6495
6496 2001-01-02 Andrew Innes <andrewi@gnu.org>
6497
6498 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
6499
6500 * frame.h (output_method): Add output_w32_console method.
6501 (FRAME_W32_CONSOLE_P): New macro.
6502
6503 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
6504 use output_w32_console method.
6505 (Qw32_console): New Lisp_Object.
6506 (Fframep): Return it.
6507 (syms_of_frame): Init it.
6508 (Fframe_parameters): Report w32console as font for w32_console frames.
6509
6510 * xfaces.c (realize_default_face): Set face foreground and
6511 background to unspecified for w32_console frames.
6512 (realize_face): Realize face cache for w32_console frames.
6513 (realize_tty_face): Accept w32_console frames.
6514
6515 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
6516 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
6517 necessary, even if running interactively.
6518
6519 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
6520 w32_console frames.
6521
6522 * w32term.c (x_update_begin):
6523 (x_update_end):
6524 (x_clear_frame):
6525 (x_ins_del_lines):
6526 (x_change_line_highlight):
6527 (x_delete_glyphs):
6528 (w32_ring_bell):
6529 (x_update_begin):
6530 (x_update_end):
6531 (w32_reassert_line_highlight):
6532 (w32_frame_rehighlight):
6533 (w32_frame_raise_lower): Do nothing if not w32 frame.
6534
6535 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
6536
6537 * w32fns.c (Fx_display_color_cells): Determine correct value, when
6538 system doesn't tell us directly.
6539 (Fx_display_visual_class): Implement properly.
6540
6541 2001-01-02 Gerd Moellmann <gerd@gnu.org>
6542
6543 * window.c (Frecenter): Handle centering in graphical frames
6544 specially. Centering on the basis of line counts doesn't work
6545 reliably with variable-height lines.
6546
6547 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6548
6549 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
6550 and al[].
6551
6552 * composite.c (run_composition_function): Remove unused var `val'.
6553 (update_compositions): Remove unused variable `hook'.
6554
6555 * intervals.c (get_local_map): Remove unused variable `tem'.
6556
6557 * doprnt.c (doprnt1): Remove unused variable `size'.
6558
6559 * fns.c (Flength): Remove unused variable `tail'.
6560 (Fdelete): Remove unused variable `size'.
6561
6562 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
6563 and `gcpro2'.
6564
6565 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
6566
6567 * data.c (find_symbol_value): Remove extra 3rd argument in the
6568 call to swap_in_symval_forwarding.
6569
6570 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
6571
6572 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
6573 (trivial_regexp_p): Remove unused variable `c'.
6574 (boyer_moore): Remove unused variable `k'.
6575
6576 * indent.c (current_column): Remove unused variable `stopchar'.
6577 (Fcompute_motion): Remove unused variable `contin'.
6578
6579 * casefiddle.c (casify_object): Remove unused variable `tolen'.
6580
6581 * dired.c (directory_files_internal): Fix a typo in a comment.
6582 Remove an unused variable `handler'.
6583 (file_name_completion): Remove unused function-scope variable `dp'.
6584 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
6585 on BSD4_2.
6586
6587 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
6588
6589 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
6590 and `buf'.
6591 (Fmarker_insertion_type): Remove unused variable `buf'.
6592
6593 * insdel.c (make_gap): Remove unused variable `result'.
6594
6595 * keyboard.c (record_char): Remove unused function-scope var `help'.
6596 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
6597 (menu_bar_items): Remove unused function-scope variable `tem'.
6598
6599 * fontset.c (fontset_ref): Remove unused variable `i'.
6600 (fontset_set): Remove unused variables `j' and `tmp'.
6601 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
6602 (make_fontset_for_ascii_face): Remove unused variable `name'.
6603 (fs_load_font): Remove unused variable `font_idx'.
6604 (fs_query_fontset): Remove unused function-local variable `fontset'.
6605 (list_fontsets): Remove unused variable `tail'.
6606 (Fnew_fontset): Remove unused variables `family' and `registry'.
6607 (accumulate_font_info): Remove unused variable `tmp'.
6608 (Ffontset_font): Remove unused variable `id'.
6609 (syms_of_fontset): Remove unused variable `i'.
6610
6611 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
6612 to x_term_init.
6613 (lookup_image): Remove unused variable `file'.
6614 (xbm_load): Remove unused variables `bitmap_data', `height', and
6615 `width'. Remove function-local variable `i', leave the
6616 block-local one.
6617 (gif_load): Remove unused variable `inc'.
6618
6619 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
6620 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
6621 leave only the one in the inner block.
6622
6623 * xfaces.c (face_fontset, realize_default_face): Remove unused
6624 variable `fontset'.
6625 (face_at_buffer_position): Remove unused variable `multibyte_p'.
6626
6627 * term.c (encode_terminal_code): Remove unused variable `c'.
6628
6629 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
6630 char *' instead of `char *'.
6631
6632 * category.c (Fcategory_docstring): Remove unused variable `doc'.
6633 (Fget_unused_category): Remove unused variable `docstring_vector'.
6634 (Fchar_category_set): Remove unused variables `val', `charset',
6635 `c1' and `c2'.
6636
6637 * coding.c (detect_coding_iso2022, setup_coding_system):
6638 Remove unused variable `i'.
6639 (detect_coding_mask): Remove unused variable `idx'.
6640 (detect_coding): Remove unused variable `i'.
6641 (ccl_coding_driver): Remove unused variable `result'.
6642 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
6643 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
6644 (encode_coding_string): Remove unused variables `gcpro1' and
6645 `saved_coding_symbol'.
6646 (Ffind_coding_systems_region_internal): Remove function-local
6647 variable args[], leave only the block-local one.
6648 (code_convert_region1): Remove unused variable `len'.
6649
6650 * charset.c (char_printable_p): Remove unused variable `chars'.
6651 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
6652 (str_to_multibyte): Remove unused variable `c'.
6653
6654 * window.c (size_window): Remove block-local variable `min_size'.
6655
6656 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
6657 `header_line_height'.
6658 (append_space, extend_face_to_end_of_line): Declare `saved_what'
6659 enum display_element_type.
6660
6661 2001-01-02 Gerd Moellmann <gerd@gnu.org>
6662
6663 * xterm.c (x_connection_closed): Catch X errors around all
6664 statements that call X. Save away the error message in a local copy.
6665
6666 * xterm.c (x_connection_closed): Set handling_signal to 0 at
6667 the start.
6668
6669 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
6670 in or at the start of invisible text.
6671
6672 * dispnew.c (update_window): Don't check_current_matrix_flags.
6673
6674 2001-01-01 Jason Rumney <jasonr@gnu.org>
6675
6676 * w32fns.c (x_figure_window_size): Do not allow new_height and
6677 new_width of frame to override specified values.
6678
6679 2000-12-30 Kenichi Handa <handa@etl.go.jp>
6680
6681 * composite.c (find_composition): Fix a code for searching backward.
6682
6683 2000-12-29 Gerd Moellmann <gerd@gnu.org>
6684
6685 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
6686 (update_window) [GLYPH_DEBUG]: Call it.
6687 (scrolling_window): Prevent including current rows which are below
6688 what's displayed in the window.
6689
6690 * xdisp.c (try_window_reusing_current_matrix)
6691 <new start <= old start>: Disable rows in the current matrix
6692 which are below the window after scrolling.
6693
6694 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
6695 is zero. It's not worth the complexity.
6696 (invisible_text_between_p): Put in #if 0 because unused.
6697
6698 2000-12-28 Gerd Moellmann <gerd@gnu.org>
6699
6700 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
6701 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
6702
6703 * keyboard.c (echo_char): If C is an integer, always call
6704 push_key_description. Former code could signal an invalid
6705 character error.
6706
6707 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
6708 If set, print multibyte text.
6709 (Fsingle_key_description): Call push_key_description with
6710 FORCE_MULTIBYTE set.
6711 (describe_buffer_bindings): Likewise.
6712
6713 * lisp.h (push_key_description): Add prototype.
6714
6715 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
6716 around the call to redisplay_internal.
6717
6718 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
6719
6720 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
6721
6722 2000-12-28 Kenichi Handa <handa@etl.go.jp>
6723
6724 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
6725 (ccl_driver): New local variable `extra_bytes'.
6726
6727 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
6728
6729 * coding.c (setup_coding_system):
6730 Initialize coding->spec.ccl.eight_bit_carryover.
6731 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
6732
6733 2000-12-28 Kenichi Handa <handa@etl.go.jp>
6734
6735 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
6736 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
6737 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
6738 (decode_composition_emacs_mule): New function.
6739 (decode_coding_emacs_mule): Decode composition sequence by calling
6740 decode_composition_emacs_mule.
6741 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
6742 (encode_coding_emacs_mule): Changed from macro to function.
6743 If a text contains compositions, encode them correctly.
6744 (setup_coding_system): Set coding->commong_flags for emacs-mule so
6745 that decoding and encoding are required.
6746
6747 2000-12-27 Gerd Moellmann <gerd@gnu.org>
6748
6749 * xfaces.c (PT_PER_INCH): New macro.
6750 (xlfd_point_size): Compute real point size from font's pixel size.
6751 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
6752 instead of 72.
6753
6754 * .gdbinit: Comment out the line pointing to the Lesstif source
6755 directory.
6756
6757 * window.c (Frecenter): Use displayed_window_lines instead
6758 of window_internal_height.
6759
6760 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
6761 instead of x-toolkit-scroll-bars-p.
6762 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
6763
6764 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
6765 instead of x-toolkit-scroll-bars-p.
6766 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
6767
6768 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
6769 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
6770 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
6771 New variables.
6772 (add_window_display_history, add_frame_display_history)
6773 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
6774 (build_frame_matrix_from_leaf_window): Remove unused code.
6775 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
6776 redisplay history.
6777 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
6778 (update_window) [GLYPH_DEBUG]: Likewise.
6779 (syms_of_display): Defsubr dump-redisplay-history.
6780
6781 2000-12-23 Gerd Moellmann <gerd@gnu.org>
6782
6783 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
6784 the end of the prompt. Set echo_after_prompt to the offset
6785 of echoptr in echobuf.
6786
6787 * xdisp.c (init_from_display_pos): Pop until the iterator's
6788 stack is empty; there may be frames for stretch or images
6789 on the stack.
6790
6791 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
6792 (save_or_restore_current_matrix): New function for the same
6793 purpose, but more efficient.
6794 (adjust_frame_glyphs_for_frame_redisplay): Use it.
6795
6796 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
6797
6798 * xdisp.c (syms_of_xdisp): Fix last change.
6799
6800 2000-12-23 Gerd Moellmann <gerd@gnu.org>
6801
6802 * xdisp.c (syms_of_xdisp): Doc fix.
6803
6804 * xdisp.c (redisplay_window): Remove label restore_buffers;
6805 use finish_scroll_bars instead to make sure that scroll bars
6806 are redeemed. If we don't do this, flickering can result from
6807 scroll bars being destroyed and recreated.
6808
6809 2000-12-22 Jason Rumney <jasonr@gnu.org>
6810
6811 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
6812 in the wrong colors when the foreground is not black.
6813 (expose_window): Don't redraw the window that's currently being
6814 updated.
6815
6816 2000-12-22 Gerd Moellmann <gerd@gnu.org>
6817
6818 * window.c (size_window): When setting the window's too_small_ok
6819 flag, compare old size with minimum size depending on WIDTH_P,
6820 don't compare with window_min_width.
6821
6822 * window.c (delete_window): Simplify somewhat.
6823 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
6824 freeing window matrices. The flag windows_or_buffers_changed is
6825 set, so the next redisplay will consider all windows; this should
6826 suffice.
6827
6828 2000-12-22 Kenichi Handa <handa@etl.go.jp>
6829
6830 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
6831
6832 * ccl.h (struct ccl_program): New member cr_consumed.
6833
6834 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
6835 (CCL_READ_CHAR): Handle EOL conversion here.
6836 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
6837
6838 2000-12-21 Gerd Moellmann <gerd@gnu.org>
6839
6840 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6841
6842 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
6843 otherwise tabs of different size compare equal.
6844
6845 * callint.c (Fcall_interactively): Prevent a compiler warning.
6846
6847 * print.c (print_unwind): Return nil.
6848 (PRINTDECLARE): Initialize all local variables.
6849 (print_preprocess): Add a default case.
6850
6851 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
6852
6853 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
6854
6855 * window.c (delete_window, Fsplit_window)
6856 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
6857
6858 * dispextern.h (ensure_frame_matrix): Function declaration removed.
6859
6860 * dispnew.c (ensure_frame_matrix): Removed.
6861 (save_frame_matrix, restore_frame_matrix): New functions.
6862 (adjust_frame_glyphs_for_frame_redisplay): Use them.
6863
6864 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
6865 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
6866
6867 2000-12-21 Andrew Innes <andrewi@gnu.org>
6868
6869 * w32term.c (x_update_begin): Regenerate the palette here, rather
6870 than for each window.
6871
6872 * w32xfns.c (select_palette): Avoid calling SelectPalette if
6873 palette is NULL, since this corrupts memory! Also get
6874 display_info reference from frame.
6875
6876 2000-12-21 Jason Rumney <jasonr@gnu.org>
6877
6878 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
6879
6880 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
6881 to avoid returning without releasing it.
6882
6883 2000-12-21 Kenichi Handa <handa@etl.go.jp>
6884
6885 * keymap.c (push_key_description): Don't convert eight-bit-control
6886 and eight-bit-graphic to multibyte character.
6887
6888 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
6889 generic character and CODE1 is nil, return the smallest character
6890 in CHARSET.
6891
6892 2000-12-20 Dave Love <fx@gnu.org>
6893
6894 * s/osf5-0.h (NSIG): Don't redefine.
6895
6896 2000-12-20 Stefan Monnier <monnier@cs.yale.edu>
6897
6898 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
6899 excluding menu-bar and tool-bar.
6900 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
6901 (menu_item_p): Remove.
6902 (where_is_internal_1): Don't ignore menu-items.
6903
6904 2000-12-20 Gerd Moellmann <gerd@gnu.org>
6905
6906 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
6907 into account.
6908
6909 * window.c (make_window): Initialize window's min_hscroll.
6910 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
6911 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
6912 to zero.
6913 (struct saved_window): New member min_hscroll.
6914 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
6915 (Fset_window_configuration): Set window's min_hscroll.
6916 (save_window_save): Save window's min_hscroll.
6917 (compare_window_configurations): Compare min_hscroll values.
6918
6919 * window.h (struct window): New member min_hscroll.
6920
6921 * keyboard.c (echo_prompt): Prevent a compiler warning.
6922
6923 * xdisp.c (try_cursor_movement): Fix last change. The real
6924 condition is that PT is at the end of the row, and should
6925 be displayed at the start of the next row.
6926
6927 * xdisp.c (try_cursor_movement): If we end on a partially
6928 visible line, end we already decided to scroll, return -1.
6929
6930 * dispextern.h (ensure_frame_matrix): Add prototype.
6931
6932 * window.c (delete_window, Fsplit_window)
6933 (Fset_window_configuration): Call ensure_frame_matrix.
6934
6935 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
6936 New functions.
6937 (adjust_frame_glyphs_for_frame_redisplay): If display has been
6938 completed, call fake_current_matrices instead of marking frame
6939 garbaged.
6940
6941 2000-12-20 Jason Rumney <jasonr@gnu.org>
6942
6943 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
6944
6945 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
6946
6947 * fns.c (Frequire): Doc fix.
6948
6949 2000-12-19 Gerd Moellmann <gerd@gnu.org>
6950
6951 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
6952
6953 * dispnew.c (direct_output_for_insert): Fix check for mini-window
6954 currently displaying a message.
6955
6956 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
6957 xterm.h.
6958 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
6959
6960 2000-12-18 Andrew Innes <andrewi@gnu.org>
6961
6962 * w32.c (w32_strerror): New function.
6963
6964 * w32.h (w32_strerror): New extern.
6965
6966 * w32fns.c (Fw32_shell_execute): Use it.
6967
6968 2000-12-18 Gerd Moellmann <gerd@gnu.org>
6969
6970 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
6971
6972 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
6973
6974 * msdos.c (IT_set_face): Obey inverse_video.
6975
6976 2000-12-18 Kenichi Handa <handa@etl.go.jp>
6977
6978 * dired.c (directory_files_internal): Always return decoded filenames.
6979
6980 2000-12-18 Gerd Moellmann <gerd@gnu.org>
6981
6982 * xterm.c (x_connection_closed): Prevent being called recursively
6983 because of an error condition in XtCloseDisplay.
6984
6985 * xdisp.c (init_iterator): If noninteractive, and the frame's
6986 face cache is null, make one.
6987
6988 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
6989
6990 * process.c (wait_reading_process_input): Check for pending
6991 input when running timers.
6992
6993 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
6994
6995 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
6996
6997 2000-12-18 Kenichi Handa <handa@etl.go.jp>
6998
6999 * process.c (read_process_output): Don't run a filter if the code
7000 decoder produces nothing but carryover.
7001
7002 2000-12-17 Andrew Innes <andrewi@gnu.org>
7003
7004 * w32.c (sys_rename): Only check errno against EEXIST, and not
7005 EACCES, when determining whether rename failed because the target
7006 exists. This was resulting in indefinite looping on Windows 9x if
7007 the source file was locked by another process.
7008
7009 * w32fns.c (Ffile_system_info): New function.
7010 (syms_of_w32fns): Defsubr it.
7011
7012 2000-12-17 Gerd Moellmann <gerd@gnu.org>
7013
7014 * window.c (coordinates_in_window): Fix computation for
7015 position on vertical line between mode lines.
7016
7017 * xfns.c (unwind_create_frame): Return t if frame was deleted.
7018 Don't alter tip_frame or tip_window.
7019 (unwind_create_tip_frame): Set tip_frame to nil only if frame
7020 was deleted.
7021
7022 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
7023 Don't alter tip_frame or tip_window.
7024 (unwind_create_tip_frame): Set tip_frame to nil only if frame
7025 was deleted.
7026
7027 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
7028
7029 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
7030 be consistent with the doc string. Reported by NAKAJIMA Mikio
7031 <minakaji@osaka.email.ne.jp>.
7032
7033 2000-12-16 Kenichi Handa <handa@etl.go.jp>
7034
7035 * xfaces.c (Vface_ignored_fonts): New variable.
7036 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
7037 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
7038
7039 2000-12-15 Gerd Moellmann <gerd@gnu.org>
7040
7041 * dispnew.c (update_window): Detect pending input every nth line
7042 updated, i.e. do it depending on real work done, and not on the
7043 vpos of the line.
7044
7045 * xterm.c (expose_window): Don't redraw the window that's
7046 currently being updated.
7047
7048 * window.c (Fset_window_point): Remove test for
7049 cursor_in_non_selected_windows.
7050
7051 * lread.c (read1): Recognize end of file after `\\'.
7052
7053 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
7054 not unwind_create_frame.
7055
7056 2000-12-15 Dave Love <fx@gnu.org>
7057
7058 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
7059 bcopy & al.
7060
7061 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
7062
7063 2000-12-15 Kenichi Handa <handa@etl.go.jp>
7064
7065 * coding.c (setup_coding_system): Clear all members of the struct
7066 coding_system at first.
7067 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
7068 argument.
7069 (code_convert_region): Don't override coding->src_multibyte and
7070 coding->dst_multibyte.
7071
7072 * fns.c (Fmd5): Docstring improved.
7073
7074 2000-12-15 Miles Bader <miles@gnu.org>
7075
7076 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
7077 are actually marked as mode-lines; otherwise use
7078 estimate_mode_line_height.
7079
7080 2000-12-14 Gerd Moellmann <gerd@gnu.org>
7081
7082 * editfns.c (Fformat): Prevent a buffer overrun when the format
7083 specifies a precision.
7084
7085 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
7086
7087 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
7088 argument is outside the range [2..3].
7089
7090 2000-12-14 Andrew Innes <andrewi@gnu.org>
7091
7092 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
7093 nothing to do. Bind inhibit-quit.
7094 (tip_frame): Make it a Lisp_Object.
7095 (x_create_tip_frame): Set tip_frame after it has been added to
7096 Vframe_list.
7097 (Fx_show_tip): Don't set tip_frame here.
7098 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
7099 (unwind_create_frame, unwind_create_tip_frame): New functions.
7100 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
7101 while a frame is only partially constructed.
7102
7103 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
7104 (x_free_frame_resources): New function.
7105 (x_destroy_window): Use it.
7106
7107 2000-12-14 Gerd Moellmann <gerd@gnu.org>
7108
7109 * xfns.c (Fx_backspace_delete_keys_p): New function.
7110 (syms_of_xfns): Defsubr it.
7111
7112 * config.in (HAVE_XKBGETKEYBOARD): Add.
7113
7114 2000-12-14 Kenichi Handa <handa@etl.go.jp>
7115
7116 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
7117 Always store string in multibyte representation in echobuf.
7118 (echo_char): Always store string in multibyte representation in
7119 echobuf.
7120 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
7121 (read_key_sequence): Adjusted for the change of echo_prompt.
7122
7123 * fns.c (Fmd5): Docstring improved.
7124
7125 * lisp.h (detect_coding_system): Prototype adjusted.
7126
7127 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
7128 (detect_coding_emacs_mule, detect_coding_iso2022,)
7129 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
7130 (detect_coding_utf_16, detect_coding_ccl): Make them static.
7131 New argument MULTIBYTEP. Callers changed.
7132 (detect_coding_mask, detect_coding_system): New argument
7133 MULTIBYTEP. Callers changed.
7134 (decode_coding_string): Set coding->src_multibyte and
7135 coding->dst_multibyte before calling detect_coding and detect_eol.
7136 Update them after some coding system is detected.
7137
7138 2000-12-13 Stefan Monnier <monnier@cs.yale.edu>
7139
7140 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
7141
7142 * keyboard.c (menu_bar_items, tool_bar_items):
7143 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
7144
7145 2000-12-13 Gerd Moellmann <gerd@gnu.org>
7146
7147 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
7148 New variables.
7149 (unwind_create_frame, unwind_create_tip_frame): New functions.
7150 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
7151 while a frame is only partially constructed.
7152
7153 * xterm.h (x_free_frame_resources): Declare.
7154
7155 * xterm.c (x_free_frame_resources): New function.
7156 (x_destroy_window): Use it.
7157
7158 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
7159 don't interrupt the update for pending input initially, i.e.
7160 update at least some lines.
7161
7162 * keyboard.c (do_mouse_tracking): Make externally visible.
7163
7164 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
7165
7166 * xfns.c (gray_bitmap_bits): Declare `char *'.
7167
7168 2000-12-12 Gerd Moellmann <gerd@gnu.org>
7169
7170 * xdisp.c (display_tool_bar_line): Make sure that tool bar
7171 lines start with a relief line.
7172
7173 2000-12-12 Dave Love <fx@gnu.org>
7174
7175 * window.c (Fdisplay_buffer): Doc fix.
7176 (Fwindow_list): Remove unused var.
7177
7178 * buffer.h (mmap_set_vars): Declare.
7179
7180 * window.h (Fset_window_point): Declare.
7181
7182 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
7183
7184 * msdos.c (fast_find_position): Don't overstep the last window row.
7185 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
7186 variable `area'. When looking for a row under (X,Y), give up if some
7187 of the previous rows is not enabled.
7188
7189 2000-12-12 Gerd Moellmann <gerd@gnu.org>
7190
7191 * window.c (Fset_window_point): If displaying cursors in windows
7192 other than the selected window, make sure redisplay updates
7193 other windows to show the new value of point in the window.
7194
7195 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
7196
7197 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
7198 the buffer is the sole visible buffer when in the mini-buffer.
7199
7200 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
7201 Bind `inhibit-read-only' to t.
7202 (unwind_with_echo_area_buffer): Use AREF.
7203
7204 * xfns.c (Fx_hide_tip): Simplified.
7205
7206 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
7207 instead of `1'.
7208
7209 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
7210
7211 2000-12-11 Gerd Moellmann <gerd@gnu.org>
7212
7213 * xfns.c (Fx_hide_tip): Fix last change.
7214
7215 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
7216 nothing to do. Bind inhibit-quit.
7217 (tip_frame): Make it a Lisp_Object.
7218 (x_create_tip_frame): Set tip_frame after it has been added to
7219 Vframe_list.
7220 (Fx_show_tip): Don't set tip_frame here.
7221
7222 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
7223
7224 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
7225 Lisp_Object.
7226
7227 * dispextern.h: Change external declaration of tip_frame.
7228
7229 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
7230 return an empty string.
7231
7232 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
7233 of the window's update_mode_line flag, since the former is set by
7234 force-mode-line-update, not the latter. This makes
7235 column-number-mode slightly faster.
7236
7237 * xdisp.c (try_window_id) <all changes above window start>:
7238 Set the cursor.
7239
7240 2000-12-11 Paul Eggert <eggert@twinsun.com>
7241
7242 * config.in (HAVE_FTELLO): Remove.
7243 (HAVE_FSEEKO): Add.
7244 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
7245 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
7246 HAVE_FTELLO.
7247 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
7248 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
7249
7250 2000-12-11 Miles Bader <miles@gnu.org>
7251
7252 * window.c (displayed_window_lines): Don't round up when
7253 converting empty space at bottom to lines.
7254 Handle non-newline-terminated final lines properly.
7255 (Fwindow_text_height): New function (used to be in lisp).
7256 (syms_of_window): Initialize it.
7257
7258 2000-12-09 Stefan Monnier <monnier@cs.yale.edu>
7259
7260 * syntax.c (scan_lists): Check that the right quote char has the
7261 right Sstring syntax when jumping over strings.
7262 (init_syntax_once): Use Smax rather than 13.
7263
7264 2000-12-09 Miles Bader <miles@gnu.org>
7265
7266 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
7267 with PARTIALLY, inverting the sense.
7268 (window_scroll_pixel_based): Scroll partially visible lines into
7269 place if we hit the beginning or end of the buffer.
7270 (displayed_window_lines): Don't include partially visible lines.
7271 (Fmove_to_window_line): Skip past any partially visible first line.
7272
7273 2000-12-08 Gerd Moellmann <gerd@gnu.org>
7274
7275 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
7276
7277 * tparam.c (tparam1): Change the way buffers are reallocated to be
7278 portable and less obfuscated.
7279
7280 * termcap.c (tgetent): Change the way buffers are reallocated to
7281 be portable and less obfuscated.
7282
7283 * macros.c (store_kbd_macro_char): Change the way buffers are
7284 reallocated to be portable and less obfuscated.
7285
7286 * lread.c (read1): Change the way buffers are reallocated to be
7287 portable and less obfuscated.
7288
7289 * doc.c (Fsubstitute_command_keys): Change the way buffers
7290 are reallocated so that it is portable.
7291
7292 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
7293
7294 * dosfns.c (Ffile_system_info): New function.
7295 (syms_of_dosfns): Defsubr it.
7296
7297 2000-12-07 Stefan Monnier <monnier@cs.yale.edu>
7298
7299 * alloc.c (gc_sweep): Add comment.
7300
7301 2000-12-07 Gerd Moellmann <gerd@gnu.org>
7302
7303 * sound.c (vox_configure): Change order of ioctls.
7304 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
7305 Ignore errors when changing volume.
7306 (vox_close): Don't reset the device.
7307
7308 * process.c (read_process_output): Make sure the process marker's
7309 position is valid when the process buffer is changed in
7310 after-change functions. W3 does that.
7311
7312 * xfns.c (x_free_gcs): New function.
7313
7314 * xterm.h (x_free_gcs): Add prototype.
7315
7316 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
7317 freeing GCs here.
7318
7319 * xterm.c (x_destroy_window): Call x_free_gcs so that
7320 resources of non-toolkit X windows will be freed.
7321
7322 2000-12-07 Andrew Innes <andrewi@gnu.org>
7323
7324 * w32fns.c (xlfd_charset_of_font): Fix last change.
7325
7326 2000-12-06 Dave Love <fx@gnu.org>
7327
7328 * md5.h (__P): Don't define -- it comes from config.h.
7329
7330 * strftime.c: Change some #if foo to #ifdef foo.
7331
7332 2000-12-06 Andrew Innes <andrewi@gnu.org>
7333
7334 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
7335
7336 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
7337 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
7338 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
7339
7340 2000-12-06 Gerd Moellmann <gerd@gnu.org>
7341
7342 * alloc.c (gc_sweep): Prevent symbols read during loadup
7343 from being freed.
7344
7345 * xdisp.c (underlying_face_id): New function.
7346 (handle_face_prop, face_before_or_after_it_pos): Use it
7347 to determine the face ``under'' a string. Let strings inherit
7348 the face of the buffer under them.
7349
7350 * xfaces.c (face_at_string_position): Update function comment.
7351
7352 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
7353 matrix if the window's left position has changed; we need to
7354 redraw it in this case.
7355
7356 * dispextern.h (struct glyph_matrix): Add member window_left_x.
7357
7358 * window.c (coordinates_in_window): Check mouse on mode-line or
7359 header-line first.
7360
7361 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
7362 advertized by the function documentation.
7363
7364 * window.c (syms_of_window): Doc fix.
7365
7366 * sound.c (vox_configure): Set volume for left and right channel.
7367 (sound_cleanup): Return nil.
7368
7369 * xdisp.c (move_it_by_lines): Fix paren typo.
7370
7371 * xterm.c (x_load_font): Don't use the font's max_bounds for
7372 computing the height of the font. If max_bounds' ascent or
7373 descent are greater than the font's ascent or descent, this means
7374 glyphs overlap, which should be handled now by redisplay.
7375
7376 * window.c (Veven_window_heights): New variable.
7377 (syms_of_window): DEFVAR_LISP it.
7378 (Fdisplay_buffer): Check Veven_window_heights before evening the
7379 window heights.
7380
7381 2000-12-06 Miles Bader <miles@gnu.org>
7382
7383 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
7384 update `default-frame-alist' instead of setting no frame parameters.
7385
7386 2000-12-06 Kenichi Handa <handa@etl.go.jp>
7387
7388 * composite.c (update_compositions): Fix typo (use the correct
7389 variable).
7390
7391 2000-12-05 Jason Rumney <jasonr@gnu.org>
7392
7393 * md5.h: Remove underscores from function declarations.
7394 (__attribute__, __alignof__) [!__GNUC__]: Define.
7395
7396 * md5.c: Delay include of md5.h until after namespace cleaning.
7397
7398 * makefile.w32-in (fns.o): Depend on md5.h
7399 (md5.o): New target.
7400 (sunfns.o): Remove.
7401
7402 * makefile.nt: Likewise.
7403
7404 2000-12-05 Jason Rumney <jasonr@altavista.net>
7405
7406 * w32term.c (expose_area): Complete last change.
7407
7408 2000-12-05 Ken Raeburn <raeburn@gnu.org>
7409
7410 * minibuf.c: Include intervals.h.
7411
7412 2000-12-05 Jason Rumney <jasonr@gnu.org>
7413
7414 * w32term.c (x_produce_glyphs): If a font for a component of
7415 a composition is not found, use 1 pixel dot ascent and 0 dot
7416 descent value to avoid displaying terribly tall empty boxes.
7417 (expose_area): Pass x-coordinate relative to the exposed
7418 area to x_draw_glyphs instead of a window-relative coordinate.
7419
7420 2000-12-05 Gerd Moellmann <gerd@gnu.org>
7421
7422 * xdisp.c (next_element_from_ellipsis): Save face before selective
7423 display in saved_face_id, and set face_before_selective_p.
7424 (reseat_1): Reset face_before_selective_p.
7425 (append_space, extend_face_to_end_of_line): If iterator's
7426 face_before_selective_p is set, use the face from saved_face_id.
7427 (extend_face_to_end_of_line): For tty frames, make sure to
7428 use the right face id when producing spaces at the end of
7429 the line.
7430
7431 * dispextern.h (struct it): Add face_before_selective_p.
7432
7433 * keyboard.c (record_char): Don't record identical help-echo
7434 events in recent_keys.
7435
7436 * xterm.c [USE_X_TOOLKIT]: Close the display.
7437 (xim_close_dpy): Handle case that the display has been closed.
7438
7439 * xterm.c (x_destroy_window): Reset the frame's X window after
7440 destroying it.
7441
7442 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
7443 variable window_width.
7444 (line_draw_cost): Fix code skipping over spaces at the end of the
7445 line when must_write_spaces is not set.
7446 (scrolling_window): Fix code inserting runs in list of all runs.
7447
7448 2000-12-05 Kenichi Handa <handa@etl.go.jp>
7449
7450 * coding.c (setup_coding_system): Be sure to initialize
7451 coding->category_idx.
7452
7453 2000-12-04 Gerd Moellmann <gerd@gnu.org>
7454
7455 * xterm.c (PER_CHAR_METRIC): Removed because not used.
7456
7457 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
7458 area to x_draw_glyphs instead of a window-relative coordinate.
7459
7460 * fileio.c (auto_save_error): Add parameter ERROR. Show the
7461 error in the message.
7462
7463 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
7464 timer after having read a key. It's not good for code reading
7465 several keys in a loop, like an input method.
7466
7467 * fileio.c (Finsert_file_contents): When VISIT is t, don't
7468 record undo information for format-decode.
7469
7470 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
7471 current buffer is read-only, not if it isn't.
7472
7473 * keyboard.c (record_char): Record `help-echo' input events
7474 in recent_keys only if they display some help. Don't record
7475 `help-echo' events as macro char.
7476
7477 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
7478
7479 * editfns.c (save_excursion_restore): Don't move point
7480 in another window if it is showing the wrong buffer.
7481 Avoid the call to Fwindow_live_p, for speed.
7482
7483 2000-12-04 Kenichi Handa <handa@etl.go.jp>
7484
7485 * xfaces.c (struct font_name): New member registry_priority.
7486 (split_font_name): Initialize the above member to zero.
7487 (concat_font_list): New function.
7488 (font_list): Include fonts of all alternative registries.
7489 (FONT_POINT_SIZE_QUANTUM): New macro.
7490 (better_font_p): Ignore point size difference less than
7491 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
7492
7493 * xterm.c (x_produce_glyphs): If a font for a component of
7494 a composition is not found, use 1 pixel dot ascent and 0 dot
7495 descent value to avoid displaying terribly tall empty boxes.
7496
7497 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
7498
7499 2000-12-03 Ken Raeburn <raeburn@gnu.org>
7500
7501 * coding.h (code_convert_string1): Declare.
7502
7503 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
7504
7505 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
7506
7507 2000-12-02 Jason Rumney <jasonr@gnu.org>
7508
7509 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
7510 correctly for single byte character case.
7511 (w32_per_char_metric): Do not try to make any assumptions about
7512 the metrics of BDF fonts.
7513 (x_estimate_mode_line_height): If `mode-line' face
7514 hasn't a font, use that of the frame, as drawing glyphs does.
7515 (note_mouse_highlight): Change the cursor shape on the vertical
7516 border between windows [not enabled].
7517
7518 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
7519
7520 * w32fns.c (Fx_create_frame): Reintroduce the call to
7521 face-set-after-frame-defaults.
7522 (Vx_window_horizontal_drag_shape): New variable.
7523 (syms_of_xfns): DEFVAR_LISP it.
7524 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
7525 enabled].
7526
7527 2000-12-02 Simon Josefsson <simon@josefsson.org>
7528
7529 * fns.c (Fmd5): Use a different logic to decide the coding system
7530 to use.
7531
7532 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
7533
7534 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
7535
7536 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
7537
7538 2000-12-01 Gerd Moellmann <gerd@gnu.org>
7539
7540 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
7541 height for YNegative.
7542 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
7543 height; also see comment there.
7544
7545 * window.c (coordinates_in_window): Handle computations for
7546 positions on the vertical bar and fringes differently for
7547 window-system frames. Consider some pixels near the vertical bar
7548 as on the bar if the frame doesn't have vertical scroll bars.
7549 Associate positions between mode or header lines with the
7550 right window, the left one.
7551
7552 2000-12-01 Jason Rumney <jasonr@gnu.org>
7553
7554 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
7555
7556 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
7557 invalid frame.
7558
7559 2000-12-01 Gerd Moellmann <gerd@gnu.org>
7560
7561 * window.c (struct saved_window): Add members orig_top and orig_height.
7562 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
7563 (save_window_save, Fset_window_configuration): Save/restore
7564 window's orig_top and orig_height.
7565
7566 2000-12-01 Jason Rumney <jasonr@gnu.org>
7567
7568 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
7569
7570 * w32fns.c (x_set_cursor_color): Fix last change.
7571
7572 2000-11-30 Gerd Moellmann <gerd@gnu.org>
7573
7574 * xdisp.c (echo_area_display): If cursor is in the echo area, make
7575 sure that the next redisplay displays the minibuffer, so that
7576 the cursor will be replaced with what the minibuffer wants.
7577
7578 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
7579 #ifndef instead of using #if.
7580 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
7581 USE_TOOLKIT_SCROLL_BARS is defined.
7582
7583 2000-11-30 Jason Rumney <jasonr@gnu.org>
7584
7585 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
7586 x_display_cursor.
7587
7588 2000-11-30 Gerd Moellmann <gerd@gnu.org>
7589
7590 * fns.c (Fmd5): Doc fix.
7591
7592 2000-11-30 Simon Josefsson <simon@josefsson.org>
7593
7594 * fns.c (Fmd5): New function.
7595 (syms_of_fns): Defsubr md5.
7596
7597 * Makefile.in (obj): Add md5.o
7598
7599 2000-11-30 Gerd Moellmann <gerd@gnu.org>
7600
7601 * md5.h, md5.c: New files, taken from glibc.
7602
7603 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
7604
7605 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
7606 hasn't a font, use that of the frame, as drawing glyphs does.
7607
7608 2000-11-29 Stefan Monnier <monnier@cs.yale.edu>
7609
7610 * eval.c (Frun_hooks): Allow 0 arguments.
7611
7612 2000-11-29 Gerd Moellmann <gerd@gnu.org>
7613
7614 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
7615 is over the menu bar widget, say it's not on the frame.
7616
7617 * xfns.c (Fx_create_frame): Reintroduce the call to
7618 face-set-after-frame-defaults.
7619
7620 * eval.c (Fsignal): Reset handling_signal.
7621
7622 2000-11-28 Jason Rumney <jasonr@gnu.org>
7623
7624 * w32menu.c (add_menu_item): Reset menu item text when changing
7625 type to radio button.
7626
7627 2000-11-28 Gerd Moellmann <gerd@gnu.org>
7628
7629 * xselect.c: Update copyright.
7630
7631 * window.c (coordinates_in_window): If on a mode or header line,
7632 but sufficiently close to its start, return ``on vertical
7633 border''. This gives us a way to drag windows horizontally when
7634 using toolkit scroll bars.
7635
7636 * xterm.c (note_mouse_highlight): Change the cursor shape
7637 on the vertical border between windows.
7638
7639 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
7640
7641 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
7642 (syms_of_xfns): DEFVAR_LISP it.
7643 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
7644
7645 * textprop.c (text_read_only): New function.
7646 (verify_interval_modification): Use it instead of signaling
7647 `text-read-only'. This makes it easier to catch this error
7648 with a breakpoint.:
7649
7650 * xdisp.c (forward_to_next_line_start): Check for newlines,
7651 not end of line, which includes CR.
7652
7653 2000-11-28 Kenichi Handa <handa@etl.go.jp>
7654
7655 * coding.c (Ffind_coding_systems_region_internal): Be sure to
7656 include no-conversion.
7657
7658 2000-11-27 Jason Rumney <jasonr@gnu.org>
7659
7660 * w32fns.c (w32_load_system_font): Always mark font as double byte
7661 if codepage is unicode.
7662
7663 2000-11-27 Gerd Moellmann <gerd@gnu.org>
7664
7665 * xdisp.c (forward_to_next_line_start): If already on a newline,
7666 just consume it to avoid unintended skipping over invisible text below.
7667
7668 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
7669 `vertical-line', `mode-line' and `header-line' events.
7670
7671 * xdisp.c (try_window_id): Avoid starting to display in the middle
7672 of a character, a TAB for instance. This is easier than to set
7673 up the iterator exactly, and it's not a frequent case, so the
7674 additional effort wouldn't really pay off.
7675
7676 2000-11-26 Andrew Choi <akochoi@i-cable.com>
7677
7678 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
7679 init_window_once.
7680
7681 2000-11-25 Jason Rumney <jasonr@gnu.org>
7682
7683 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
7684 Args to window_from_coordinates should be pixel coordinates.
7685
7686 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
7687 redisplay handles them properly.
7688
7689 2000-11-25 Miles Bader <miles@gnu.org>
7690
7691 * indent.c (compute_motion): Keep pos_byte in sync with pos.
7692
7693 2000-11-24 Jason Rumney <jasonr@gnu.org>
7694
7695 * w32.c (init_environment): Set LANG environment variable based on
7696 locale settings, if not set.
7697
7698 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
7699 making tool bar smaller. When clearing the frame, also
7700 clear current matrices. Clear frame when tool bar disappears.
7701 Don't use more lines for the tool-bar than is available.
7702 (x_change_window_heights): New function.
7703
7704 2000-11-24 Gerd Moellmann <gerd@gnu.org>
7705
7706 * xdisp.c (init_from_display_pos): If POS says we're already after
7707 an overlay string ending at POS, make sure to pop the iterator
7708 because it will be in front of that overlay string. When POS is
7709 ZV, we've thereby also ``processed'' overlay strings at ZV.
7710
7711 * xfaces.c (lface_from_face_name): Function comment fix.
7712
7713 2000-11-24 Miles Bader <miles@gnu.org>
7714
7715 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
7716 apply `mode-line-inverse-video' -- zero means force display using
7717 the default face, non-zero means display using the specialized face.
7718 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
7719
7720 2000-11-23 Kenichi Handa <handa@etl.go.jp>
7721
7722 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
7723 hard coded `4'.
7724
7725 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
7726
7727 * coding.c (decode_coding_emacs_mule): Fix the case of
7728 CODING_EOL_LF, which used uninitialized value of c.
7729
7730 2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
7731
7732 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
7733
7734 2000-11-22 Gerd Moellmann <gerd@gnu.org>
7735
7736 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
7737 buffer object.
7738
7739 * frame.h (struct frame): Replace desired_tool_bar_items,
7740 current_tool_bar_items, n_desired_tool_bar_items,
7741 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
7742
7743 * frame.c (make_frame): Change initialization of tool bar
7744 items accordingly.
7745
7746 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
7747 Change references to members deleted from struct frame to use the
7748 new ones.
7749
7750 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
7751 references to members deleted from struct frame to use the new ones.
7752
7753 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
7754
7755 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
7756
7757 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
7758 (note_tool_bar_highlight): Change references to members deleted
7759 from struct frame to use the new ones.
7760
7761 2000-11-23 Miles Bader <miles@gnu.org>
7762
7763 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
7764 the face's inverse-video attribute, rather than overriding it.
7765
7766 2000-11-22 Gerd Moellmann <gerd@gnu.org>
7767
7768 * xfns.c (x_set_tool_bar_lines): Clear internal border when
7769 making tool bar smaller.
7770
7771 2000-11-22 Dave Love <fx@gnu.org>
7772
7773 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
7774
7775 2000-11-22 Miles Bader <miles@gnu.org>
7776
7777 * keyboard.c (Vminibuffer_message_timeout): New variable.
7778 (command_loop_1): Use it to determine message timeout.
7779 (syms_of_keyboard): Initialize it.
7780
7781 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
7782
7783 2000-11-22 Kenichi Handa <handa@etl.go.jp>
7784
7785 * sysdep.c: Move the code for declaring h_errno after #include
7786 <netdb.h>.
7787
7788 2000-11-21 Gerd Moellmann <gerd@gnu.org>
7789
7790 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
7791 the menu bar when the tooltip is unmapped.
7792
7793 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
7794 sole visible buffer when we're currently in the mini-buffer, and
7795 give up if so.
7796
7797 2000-11-21 Jason Rumney <jasonr@gnu.org>
7798
7799 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
7800 put on the clipboard.
7801 (Fw32_get_clipboard_data): Compare data on clipboard with saved
7802 copy of what Emacs last put there. If they are the same, do not
7803 use the clipboard copy to avoid losing data due to coding conversions.
7804
7805 2000-11-22 Miles Bader <miles@gnu.org>
7806
7807 * minibuf.c (Vminibuffer_prompt_properties): New variable.
7808 (syms_of_minibuf): Initialize it.
7809 (read_minibuf): Add properties from Vminibuffer_prompt_properties
7810 to prompt, don't make read-only.
7811
7812 2000-11-21 Gerd Moellmann <gerd@gnu.org>
7813
7814 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
7815 Add BEFORE/AFTER_POTENTIAL_GC.
7816
7817 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
7818
7819 * buffer.c (mmap_free_1): Avoid a compiler warning.
7820
7821 * term.c, cm.c: Don't try to include termcap.h; see comment there.
7822
7823 2000-11-21 Kenichi Handa <handa@etl.go.jp>
7824
7825 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
7826 ... #endif scope.
7827
7828 2000-11-20 Gerd Moellmann <gerd@gnu.org>
7829
7830 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
7831 screen supports it.
7832
7833 * s/gnu-linux.h: Don't use `#cpu'.
7834
7835 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
7836 not defined in mman.h.
7837
7838 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
7839 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
7840 and store an index in the XClientMessageEvent. Storing a
7841 Lisp_Object or pointer can fail on a 64 bit system, since X only
7842 transfers 32 bits.
7843 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
7844
7845 2000-11-20 Dave Love <fx@gnu.org>
7846
7847 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
7848
7849 2000-11-20 Gerd Moellmann <gerd@gnu.org>
7850
7851 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
7852
7853 2000-11-20 Kenichi Handa <handa@etl.go.jp>
7854
7855 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
7856 by WIDTH.
7857
7858 * alloc.c (make_string): Fix previous change. Be sure to make
7859 unibyte string correctly.
7860
7861 2000-11-19 Gerd Moellmann <gerd@gnu.org>
7862
7863 * window.c (Fwindow_list): Change parameter list to be XEmacs
7864 compatible.
7865 (window_list_1): New function.
7866 (window_loop): Use it instead of Fwindow_list.
7867
7868 * sysdep.c (emacs_ospeed): New variable.
7869 (toplevel): Don't declare ospeed extern.
7870 (init_baud_rate): Use emacs_ospeed instead of ospeed.
7871
7872 * termcap.c (ospeed): Remove.
7873 (tputs) [!emacs]: Remove unused code.
7874 (tgetent): Avoid a compiler warning.
7875
7876 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
7877 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
7878 SCROLL_BAR_X_WIDGET with additional argument DPY.
7879
7880 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
7881 removed.
7882 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
7883 Take the X display as additional argument.
7884 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
7885 `Widget' is a pointer type that's not easily stored in Lisp_Object
7886 form in a portable way.
7887
7888 * dispnew.c (update_text_area): Fix last change.
7889
7890 2000-11-18 Gerd Moellmann <gerd@gnu.org>
7891
7892 * xdisp.c: Use BINDING_STACK_SIZE throughout.
7893
7894 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
7895 clear current matrices.
7896
7897 * buffer.c (mmap_enlarge): Don't print a message on stderr
7898 if mapping new memory at the end of the existing region fails.
7899
7900 * dispnew.c (update_text_area): Don't skip over equal glyphs
7901 when the last current glyph overlaps the glyph to its right.
7902
7903 2000-11-18 Miles Bader <miles@gnu.org>
7904
7905 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
7906 lines that *end* with "..." too (that's the most common case!).
7907
7908 2000-11-18 Gerd Moellmann <gerd@gnu.org>
7909
7910 * xdisp.c (resize_mini_window): Temporarily change to the
7911 mini-window's buffer if necessary.
7912
7913 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
7914 the tooltip obscures less text under it.
7915
7916 2000-11-17 Gerd Moellmann <gerd@gnu.org>
7917
7918 * puresize.h (BASE_PURESIZE): Increase to 700000.
7919
7920 2000-11-18 Jason Rumney <jasonr@gnu.org>
7921
7922 * w32term.c (w32_draw_bitmap): Use face to set colors.
7923
7924 2000-11-17 Dave Love <fx@gnu.org>
7925
7926 * lread.c (Fload): Fix #ifdef for pcc.
7927
7928 2000-11-17 Gerd Moellmann <gerd@gnu.org>
7929
7930 * xdisp.c (pos_visible_p): Compute the default character height
7931 differently.
7932
7933 2000-11-16 Gerd Moellmann <gerd@gnu.org>
7934
7935 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
7936 knowing the line's height; use the default font's height in that case.
7937
7938 * xfaces.c (weight_table): Add `demi' with the same meaning as
7939 `demibold'.
7940
7941 2000-11-16 Kenichi Handa <handa@etl.go.jp>
7942
7943 * dispnew.c (null_row): New global static variable.
7944 (clear_glyph_row): Delete local static variable null_row.
7945
7946 2000-11-15 Jason Rumney <jasonr@gnu.org>
7947
7948 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
7949 (w32_alloc_lighter_color): Use new brightness calculations from
7950 xterm.c. Scale delta to be in the range expected by W32.
7951 (w32_draw_relief_rect): Use frame relief colors.
7952
7953 2000-11-15 Gerd Moellmann <gerd@gnu.org>
7954
7955 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
7956 (Qinhibit_default_face_x_resources): New variable.
7957 (syms_of_frame): Initialize it.
7958 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
7959
7960 * xdisp.c (pos_visible_p): Improve function comment.
7961
7962 * lisp.h (BINDING_STACK_SIZE): New macro.
7963
7964 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
7965 reading the directory if readdir returns null and errno is EAGAIN
7966 or EINTR.
7967
7968 2000-11-14 Stefan Monnier <monnier@cs.yale.edu>
7969
7970 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
7971 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
7972 Set amount_to_scroll to max of dx and scroll_step so that
7973 scroll-conservatively doesn't defeat scroll-step>1.
7974 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
7975 scroll-conservatively for line-at-a-time scrolling.
7976
7977 2000-11-14 Gerd Moellmann <gerd@gnu.org>
7978
7979 * window.c (Fpos_visible_in_window_p): Call pos_visible with
7980 extra argument.
7981
7982 * xdisp.c (current_mode_line_height, current_header_line_height):
7983 New variables.
7984 (init_xdisp): Initialize them.
7985 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
7986 and use exact mode line heights if it is set.
7987
7988 * lisp.h (pos_visible_p): Change prototype.
7989
7990 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
7991 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
7992 and current_header_line_height first.
7993 (current_mode_line_height, current_header_line_height):
7994 Declare extern.
7995
7996 2000-11-14 Miles Bader <miles@lsi.nec.co.jp>
7997
7998 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
7999 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
8000 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
8001
8002 2000-11-14 Miles Bader <miles@gnu.org>
8003
8004 * xterm.c (x_alloc_lighter_color): Include an additive component
8005 too for dark colors, because FACTOR isn't enough.
8006 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
8007 New macros.
8008
8009 2000-11-13 Gerd Moellmann <gerd@gnu.org>
8010
8011 * keyboard.c (show_help_echo): Call message3_nolog with number of
8012 bytes in the help string as 2nd parameter, instead of the number
8013 of characters.
8014
8015 2000-11-13 Miles Bader <miles@gnu.org>
8016
8017 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
8018 (Fload): Use new openp return protocol.
8019 Don't try to use Vload_source_file_function to load .elc files.
8020 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
8021 openp return protocol.
8022 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
8023
8024 2000-11-11 Kenichi Handa <handa@etl.go.jp>
8025
8026 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
8027
8028 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
8029 Defined these macros.
8030 (NLIST_STRUCT): Avoid re-defining it.
8031
8032 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
8033 -I/usr/contrib/X11R6/include.
8034 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
8035
8036 2000-11-10 Jason Rumney <jasonr@gnu.org>
8037
8038 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
8039
8040 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
8041 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
8042
8043 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
8044 (Qw32_charset_vietnamese): New symbol.
8045 (xlfd_charset_of_font): New function.
8046 (w32_load_system_font): Use it.
8047 (x_to_w32_charset): Use Fassoc to find charset info. Special case
8048 when Vw32_charset_info_alist is nil to ensure default face always
8049 has font. Use Fcar and Fcdr for safety.
8050 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
8051 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
8052 pseudo-codepages for special cases.
8053 (w32_to_x_font): New parameter to allow charset portion to be
8054 specified where there is many to one mapping. Callers changed.
8055 (w32_list_fonts): Avoid listing fonts that won't display.
8056
8057 2000-11-10 Gerd Moellmann <gerd@gnu.org>
8058
8059 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
8060 (font_list_1): Renamed from font_list.
8061 (font_list): New function, trying alternative registries from
8062 Vface_alternative_font_registry_alist.
8063 (Finternal_set_alternative_font_registry_alist): New function.
8064 (syms_of_xfaces): Initialize and Staticpro
8065 Vface_alternative_font_registry_alist.
8066 Defsubr Finternal_set_alternative_font_registry_alist.
8067
8068 2000-11-09 Ken Raeburn <raeburn@gnu.org>
8069
8070 * lisp.h (Flooking_at): Declare.
8071
8072 2000-11-09 Gerd Moellmann <gerd@gnu.org>
8073
8074 * dired.c (directory_files_internal): Fix a braino.
8075
8076 * dired.c (directory_files_internal): Add missing GCPRO's.
8077 Some cleanup.
8078
8079 2000-11-08 Gerd Moellmann <gerd@gnu.org>
8080
8081 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
8082 (resize_mini_window): Return quickly if Vresize_mini_window is
8083 nil. Don't return if Vmax_mini_window_height is nil.
8084
8085 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
8086 (syms_of_xdisp): Initialize them.
8087 (resize_mini_window): Act according to the setting of
8088 Vresize_mini_window.
8089 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
8090
8091 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
8092 scroll bar widget after configuring it, so that it will appear at
8093 the right position from the start.
8094 (XTredeem_scroll_bar): Cleaned up.
8095
8096 2000-11-08 Kenichi Handa <handa@etl.go.jp>
8097
8098 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
8099 font is taller than the frame line, we don't have to bias the
8100 division by two.
8101
8102 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
8103
8104 2000-11-07 Dave Love <fx@gnu.org>
8105
8106 * config.in (HAVE_MKSTEMP): Add.
8107
8108 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
8109
8110 2000-11-07 Gerd Moellmann <gerd@gnu.org>
8111
8112 * window.c (Fset_window_configuration): Don't try to preserve
8113 point in the current buffer, if that buffer is displayed in more
8114 than one window.
8115
8116 * xfaces.c (lookup_named_face): If default face isn't realized,
8117 try to realize it. Return -1 if not successful.
8118 (Fx_list_fonts): Handle case that face cannot be determined.
8119 (Fface_font): Likewise.
8120
8121 2000-11-06 Gerd Moellmann <gerd@gnu.org>
8122
8123 * window.c (displayed_window_lines): Detect partially
8124 visible lines at the bottom correctly.
8125
8126 2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
8127
8128 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
8129 when ensuring we don't do visit in indirect buffer.
8130
8131 2000-11-06 Kenichi Handa <handa@etl.go.jp>
8132
8133 * composite.h (compose_chars_in_text): Add prototype.
8134
8135 * composite.c (Vcomposition_function_table): New variable.
8136 (Qcomposition_function_table): New variable.
8137 (run_composition_function): Call
8138 Vcompose_chars_after_function with three arguments.
8139 (compose_chars_in_text): New function.
8140 (syms_of_composite): Modified the doc-string of
8141 Vcompose_chars_after_function. Declare composition-function-table
8142 as a lisp variable, and initialize it.
8143
8144 * xfns.c (x_encode_text): Suppress producing escape sequences for
8145 composition.
8146
8147 * xselect.c: Include composite.h.
8148 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
8149
8150 2000-11-05 Andrew Innes <andrewi@gnu.org>
8151
8152 * w32term.c (x_produce_glyphs): Fix typo in enum name.
8153
8154 * sysdep.c (read_input_waiting): Remove extraneous argument to
8155 read_socket_hook.
8156
8157 * w32fns.c (Fx_server_version): Include w32_build_number in the
8158 return list.
8159
8160 * w32heap.c (w32_build_number): New variable.
8161 (cache_system_info): Set it.
8162
8163 * w32heap.h (w32_build_number): Add extern.
8164
8165 * emacs.c (syms_of_emacs): Update docstring for
8166 system-configuration, to reflect the actual usage on MS-Windows.
8167
8168 2000-10-31 Gerd Moellmann <gerd@gnu.org>
8169
8170 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
8171 process idle timers while waiting for another event.
8172
8173 * dispnew.c (update_frame_line): Handle case where spaces in
8174 the default face are colored.
8175
8176 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
8177 window height hasn't changed.
8178
8179 2000-10-31 Jason Rumney <jasonr@gnu.org>
8180
8181 * w32term.c (x_produce_glyphs): Handle composite characters.
8182 (x_draw_glyph_string_foreground)
8183 (x_draw_composite_glyph_string_foreground): Restore old font.
8184
8185 2000-10-31 Miles Bader <miles@lsi.nec.co.jp>
8186
8187 * minibuf.c (read_minibuf): Reset the undo history just before
8188 starting the recursive-edit.
8189
8190 2000-10-30 Gerd Moellmann <gerd@gnu.org>
8191
8192 * xfaces.c (menu_face_change_count): New variable.
8193 (Finternal_set_lisp_face_attribute): Increment it for changes
8194 of the `menu' face.
8195 (realize_basic_faces): Reflect changes in the `menu' faces
8196 in menu bars.
8197
8198 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
8199 dy obtained from the iterator's y-position after moving from
8200 scroll_margin_pos to PT; see comment there.
8201
8202 * xdisp.c (safe_eval_handler): Call add_to_log.
8203
8204 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
8205 is not a symbol or string.
8206
8207 * xdisp.c (echo_area_display): Don't perform a display update from
8208 inside redisplay. The update will happen anyway at the end of
8209 redisplay, and it can confuse redisplay (GC messages while
8210 redisplaying, for instance.)
8211
8212 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
8213
8214 * xrdb.c (x_load_resources): Use the class name in the defaults.
8215
8216 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
8217 (regex_compile): Catch bogus \(\1\).
8218
8219 2000-10-30 Gerd Moellmann <gerd@gnu.org>
8220
8221 * xterm.c (x_alloc_nearest_color): Fix last change to compare
8222 RGB values.
8223
8224 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
8225 we have a color cache, check that the cached color equals the
8226 allocated color. If not, clear the color cache.
8227
8228 * window.c (displayed_window_lines): Change buffers if necessary.
8229 Fix computation of displayed lines.
8230
8231 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
8232 update_menu_bindings to DEFVAR_BOOL.
8233
8234 2000-10-30 Kenichi Handa <handa@etl.go.jp>
8235
8236 * search.c (Fset_match_data): Be sure to make search_regs always sane.
8237
8238 * puresize.h (BASE_PURESIZE): Increase to 680000.
8239
8240 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
8241
8242 2000-10-29 Jason Rumney <jasonr@gnu.org>
8243
8244 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
8245
8246 * w32term.c (w32_bdf_per_char_metric): Negate descent.
8247 (w32_cache_char_metrics): Handle possibility that 'x' does not
8248 exist in a BDF font.
8249 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
8250
8251 * w32bdf.h (bdffont): Add nchars.
8252
8253 * w32bdf.c (set_bdf_font_info): Set it.
8254 (w32_BDF_TextOut): Swap byte order of double byte characters.
8255 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
8256
8257 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
8258
8259 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
8260 don't override the colors in frame's param_alist, unless they are
8261 unspecified.
8262
8263 * term.c (reassert_line_highlight): If inverse_video is non-zero,
8264 reverse the effect of the highlight flag.
8265
8266 2000-10-27 Ken Raeburn <raeburn@gnu.org>
8267
8268 * window.h (Fwindow_live_p): Declare.
8269
8270 * undo.c (record_delete): Check that last_undo_buffer is really a
8271 buffer before applying XBUFFER to it.
8272
8273 * keymap.c (where_is_internal): Pass lisp object, not integer, to
8274 Faref.
8275
8276 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
8277
8278 * lisp.h (KEYMAPP): New macro.
8279 (get_keymap): Remove.
8280 (get_keymap_1): Rename get_keymap.
8281
8282 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
8283
8284 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
8285
8286 * xmenu.c (single_submenu): Use KEYMAPP.
8287 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
8288 Use KEYMAPP rather than Fkeymapp.
8289
8290 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
8291
8292 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
8293 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
8294 Use KEYMAPP rather than Fkeymapp.
8295 (single_submenu): Use KEYMAPP.
8296 (w32_menu_show, w32_dialog_show): Use TRUE.
8297
8298 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
8299
8300 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
8301 (Fkeymapp): Use KEYMAPP.
8302 (get_keymap): Rename from get_keymap_1. Remove old def.
8303 Return t when autoload=0 and error=0 and the keymap needs autoloading.
8304 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
8305 (Fminor_mode_key_binding): Don't raise an error if the binding
8306 is not a keymap.
8307 (Fuse_global_map, Fuse_local_map): Allow autoloading.
8308 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
8309
8310 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
8311 Allow Vspecial_event_map to be autoloaded.
8312 (menu_bar_items): Fetch the keymap rather than using keymapp.
8313 (menu_bar_one_keymap): No need to follow func-indirect any more.
8314 (parse_menu_item): get_keymap_1 -> get_keymap.
8315 (tool_bar_items): Fetch the keymap rather than using keymapp.
8316 (read_key_sequence): Use KEYMAPP.
8317
8318 * intervals.c (get_local_map): Use get_keymap rather than following
8319 function-indirections explicitly.
8320
8321 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
8322
8323 2000-10-27 Jason Rumney <jasonr@gnu.org>
8324
8325 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
8326 point, as Windows has oversized fonts.
8327
8328 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
8329
8330 2000-10-27 Gerd Moellmann <gerd@gnu.org>
8331
8332 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
8333 (freehook, reallochook): Handle null pointer arguments.
8334 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
8335
8336 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
8337
8338 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
8339 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
8340 Giving in to popular pressure to shut up the compiler with casts.
8341
8342 2000-10-27 Gerd Moellmann <gerd@gnu.org>
8343
8344 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
8345 signed value, and use a default value computed from the font's
8346 maximum descent.
8347
8348 2000-10-27 Miles Bader <miles@lsi.nec.co.jp>
8349
8350 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
8351 that specify a negative underline position can still use underlines.
8352
8353 * window.c (Fpos_visible_in_window_p): Make POS default to
8354 WINDOW's point, not the current buffer's point.
8355
8356 2000-10-26 Dave Love <fx@gnu.org>
8357
8358 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
8359 when it's necessary.
8360
8361 2000-10-26 Gerd Moellmann <gerd@gnu.org>
8362
8363 * window.c (size_window): Compute size difference from sum of old
8364 child window sizes instead of from parent's size.
8365
8366 * xdisp.c (pos_visible_p): Change current buffer if necessary.
8367 Handle obscured lines at the top of the window.
8368
8369 * frame.c (Fdelete_frame): Doc fix. Move running the hook
8370 down after the last error condition check.
8371
8372 * frame.c (Fdelete_frame): Run delete-frame-hook.
8373
8374 2000-10-26 Kenichi Handa <handa@etl.go.jp>
8375
8376 * coding.c (decode_coding): Fix previous change (check also
8377 CODING_MODE_LAST_BLOCK).
8378
8379 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
8380
8381 * regex.c: More `unsigned char' -> `re_char' changes.
8382 Also change several `int' into `re_wchar_t'.
8383 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
8384 (PUSH_FAILURE_POINTER): Don't cast any more.
8385 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
8386 We want GCC to complain, since this piece of code makes
8387 re_match non-reentrant, which *should* be fixed.
8388 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
8389 (EXTEND_BUFFER): Use RETALLOC.
8390 (SET_LIST_BIT): Don't cast.
8391 (re_wchar_t): New type.
8392 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
8393 that those two functions will always properly return.
8394 (IMMEDIATE_QUIT_CHECK): Cast to void.
8395 (analyse_first): Use recursion rather than an explicit stack.
8396 (re_compile_fastmap): Can't fail anymore.
8397 (re_search_2): Don't check re_compile_fastmap for failure.
8398 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
8399 Now also sets the new value (passed in a new argument).
8400 (re_match_2_internal): Use it.
8401 Also, use a new var `reg' of type size_t when looping through regs
8402 rather than reuse the inappropriate `mcnt'.
8403
8404 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
8405 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
8406 (where_is_internal): Renamed from Fwhere_is_internal.
8407 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
8408 (Fwhere_is_internal): New function wrapping where_is_internal.
8409 (where_is_internal_1): Handle the case where we're filling the cache.
8410 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
8411
8412 2000-10-25 Miles Bader <miles@gnu.org>
8413
8414 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
8415
8416 2000-10-25 Gerd Moellmann <gerd@gnu.org>
8417
8418 * window.c (pos_fully_visible_p): Removed.
8419 (Fpos_visible_in_window_p): Use pos_visible_p to determine
8420 if position is visible and/or fully visible.
8421
8422 * lisp.h (pos_visible_p): Add prototype.
8423
8424 * xdisp.c (pos_visible_p): New function.
8425
8426 2000-10-25 Kenichi Handa <handa@etl.go.jp>
8427
8428 * process.c (send_process): If OBJECT is t, it means that the data
8429 is from C string, but we should encode it. Before calling
8430 setup_raw_text_coding_system, be sure to flush out data by the
8431 previous coding system.
8432
8433 2000-10-25 Miles Bader <miles@lsi.nec.co.jp>
8434
8435 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
8436 assignment of startpos to prev when startpos == pos.
8437
8438 * editfns.c (find_field): Set the field stickiness correctly from
8439 overlay fields. Use renamed `text_property_stickiness'.
8440 (text_property_stickiness): Renamed from `char_property_stickiness'.
8441 Only check text properties, not overlays.
8442 * textprop.c (get_char_property_and_overlay): New function.
8443 (Fget_char_property): Use it.
8444 * intervals.h (get_char_property_and_overlay): Add declaration.
8445
8446 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
8447
8448 * keymap.c: Use AREF, ASET and ASIZE macros.
8449 (Fmake_sparse_keymap): Docstring fix.
8450 (synkey): Remove.
8451 (shadow_lookup): Move up.
8452 Handle the case where lookup-key returns an integer.
8453 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
8454 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
8455 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
8456 Simplify/rewrite the keymap-finding code.
8457 Add check for command shadowing, using shadow_lookup.
8458
8459 2000-10-24 Stefan Monnier <monnier@cs.yale.edu>
8460
8461 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
8462 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
8463 a symbol.
8464
8465 2000-10-24 Andrew Innes <andrewi@gnu.org>
8466
8467 * dired.c (directory_files_internal_unwind): New function.
8468 (directory_files_internal): Use it to ensure closedir is called
8469 even if expand-file-name or file-attributes throw, eg. because of
8470 a user interrupt. Also enable immediate_quit while calling
8471 re_search, so that matching can be interrupted as well.
8472
8473 2000-10-24 Andrew Innes <andrewi@gnu.org>
8474
8475 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
8476 NT-Emacs only.
8477 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
8478 so that re_search functions only quit when callers expect them to.
8479
8480 2000-10-24 Kenichi Handa <handa@etl.go.jp>
8481
8482 * regex.c (regex_compile): Change the way of handling a range from
8483 a char less than 256 to a char not less than 256.
8484
8485 2000-10-24 Gerd Moellmann <gerd@gnu.org>
8486
8487 * window.c (size_window): Prevent setting window's width or
8488 height to a negative value (esp. with XSETFASTINT).
8489
8490 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
8491 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
8492 (protect_malloc_state) [GC_MALLOC_CHECK &&
8493 GC_PROTECT_MALLOC_STATE]: New function.
8494 (PROTECT_MALLOC_STATE): New macro.
8495 (__malloc_initialize, morecore, _malloc_internal)
8496 (_free_internal) _realloc_internal): Use it to make _heapinfo
8497 read-only outside of gmalloc.
8498
8499 * keymap.c: Update copyright.
8500
8501 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
8502 a symbol.
8503
8504 2000-10-24 Colin Walters <walters@cis.ohio-state.edu>
8505
8506 * filelock.c (unlock_all_files): Use unlock_file to expand each
8507 buffer's file_truename before trying remove its lock file.
8508
8509 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
8510
8511 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
8512 or CRLF, decode EOLs.
8513
8514 2000-10-24 Kenichi Handa <handa@etl.go.jp>
8515
8516 * window.c (Fdisplay_buffer): Fix doc.
8517
8518 2000-10-23 Jason Rumney <jasonr@gnu.org>
8519
8520 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
8521 ASCII font of default fontset on Windows.
8522
8523 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
8524 xterm.c comment below).
8525
8526 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
8527
8528 2000-10-23 Gerd Moellmann <gerd@gnu.org>
8529
8530 * xterm.c (x_connection_closed): Reset handling_signal.
8531
8532 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
8533
8534 2000-10-23 Miles Bader <miles@gnu.org>
8535
8536 * window.c (window_scroll_pixel_based, window_scroll_line_based):
8537 Pass nil for FULLY argument to Fpos_visible_in_window_p to
8538 maintain old behavior.
8539 * minibuf.c (Fminibuffer_complete): Likewise.
8540
8541 2000-10-23 Miles Bader <miles@lsi.nec.co.jp>
8542
8543 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
8544 that when a font can't be exactly centered, it errs up rather than
8545 down.
8546
8547 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8548
8549 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8550
8551 2000-10-23 Andrew Choi <akochoi@i-cable.com>
8552
8553 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
8554
8555 * dispnew.c [macintosh]: Include macterm.h.
8556 (init_display) [macintosh]: Initialization for window system.
8557
8558 * emacs.c (main) [macintosh]: Call syms_of_textprop,
8559 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
8560 syms_of_search, x_term_init, and init_keyboard before calling
8561 init_window_once. Also, call syms_of_xmenu.
8562
8563 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
8564 default fontset to Monaco.
8565
8566 * frame.c [macintosh]: Include macterm.h. Remove declarations of
8567 NewMacWindow and DisposeMacWindow.
8568 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
8569 instead of calling NewMacWindow and setting fields of
8570 f->output_data.mac directly. Call init_frame_faces.
8571 (Fdelete_frame) [macintosh]: Remove unused code.
8572 (Fmodify_frame_parameters) [macintosh]: Call
8573 x_set_frame_parameters instead of mac_set_frame_parameters.
8574
8575 * frame.h [macintosh]: Define menu_bar_lines field in struct
8576 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
8577
8578 * keyboard.c [macintosh]: Include macterm.h.
8579 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
8580 and menu_bar_activate_event type events as for X and NT.
8581 (make_lispy_event) [macintosh]: Construct lisp events of type
8582 MENU_BAR_EVENT as for X and NT.
8583
8584 * sysdep.c [macintosh]: Remove declaration for sys_signal.
8585 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
8586 (sys_subshell) [macintosh]: Remove definition entirely.
8587 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
8588 Vwindow_system_version here. Remove initialization of
8589 Vx_bitmap_file_path.
8590 (read_input_waiting): Correct the number of parameters passed to
8591 read_socket_hook.
8592 Move all Macintosh functions to mac/mac.c.
8593
8594 * term.c [macintosh]: Include macterm.h.
8595
8596 * window.c [macintosh]: Include macterm.h.
8597
8598 * xdisp.c [macintosh]: Include macterm.h. Declare
8599 set_frame_menubar and pending_menu_activation.
8600 (echo_area_display) [macintosh]: Do not return if terminal frame
8601 is the selected frame.
8602 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
8603 Allow only the selected frame to set menu bar.
8604 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
8605 calling FRAME_EXTERNAL_MENU_BAR (f).
8606 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
8607
8608 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
8609 and check_x. Declare XCreateGC. Define x_create_gc and
8610 x_free_gc. Initialize font_sort_order.
8611 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
8612 but call x_list_fonts instead of w32_list_fonts.
8613 (Finternal_face_x_get_resource) [macintosh]: Do not call
8614 display_x_get_resource.
8615 (prepare_face_for_display) [macintosh]: Set xgcv.font.
8616 (realize_x_face) [macintosh]: Load the font if it is specified in
8617 ATTRS.
8618 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
8619
8620 2000-10-22 Stefan Monnier <monnier@cs.yale.edu>
8621
8622 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
8623 is nil: since we go to the end of submap anyway, we'd end up
8624 setting nil to nil.
8625 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
8626 doesn't obey autoload.
8627
8628 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8629
8630 * msdos.c (dos_set_window_size): Update screen dimension variables.
8631
8632 2000-10-21 Jason Rumney <jasonr@gnu.org>
8633
8634 * w32term.c (w32_cache_char_metrics): Double check that font is
8635 really fixed pitch before trusting tmPitchAndFamily.
8636
8637 2000-10-21 Andrew Innes <andrewi@gnu.org>
8638
8639 * w32gui.h (w32_char_font_type): Move enum from w32term.c
8640
8641 * w32term.h: Extern decl for w32_cache_char_metrics.
8642
8643 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
8644
8645 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
8646 (w32_unload_font): Free per_char array if present.
8647
8648 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
8649 cached information in emulated XFontStruct to handle common cases
8650 quickly. Do not allocate XCharStruct for return.
8651 (w32_native_per_char_metric): New function.
8652 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
8653 allocating one.
8654 (x_produce_glyphs): Don't get an HDC. Change calls to
8655 w32_per_char_metric to match arg change above. Remove calls to
8656 free results.
8657 (w32_get_glyph_overhangs): Ditto.
8658 (w32_cache_char_metrics): New function.
8659
8660 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
8661 ($(BLD)/casefiddle.$(O)): Remove compile command.
8662 ($(BLD)/gmalloc.$(O)): Remove compile command.
8663 ($(BLD)/dispnew.obj):
8664 ($(BLD)/keyboard.obj):
8665 ($(BLD)/w32inevt.obj):
8666 ($(BLD)/w32bdf.obj):
8667 ($(BLD)/alloc.obj):
8668 ($(BLD)/buffer.obj):
8669 ($(BLD)/editfns.obj):
8670 ($(BLD)/emacs.obj):
8671 ($(BLD)/fileio.obj):
8672 ($(BLD)/fns.obj):
8673 ($(BLD)/indent.obj):
8674 ($(BLD)/insdel.obj):
8675 ($(BLD)/intervals.obj):
8676 ($(BLD)/minibuf.obj):
8677 ($(BLD)/print.obj):
8678 ($(BLD)/scroll.obj):
8679 ($(BLD)/sysdep.obj):
8680 ($(BLD)/textprop.obj):
8681 ($(BLD)/widget.obj):
8682 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
8683 ($(BLD)/term.obj): Add dependency on dispextern.h.
8684
8685 * makefile.nt ($(BLD)\dispnew.obj):
8686 ($(BLD)\keyboard.obj):
8687 ($(BLD)\w32inevt.obj):
8688 ($(BLD)\w32bdf.obj):
8689 ($(BLD)\alloc.obj):
8690 ($(BLD)\buffer.obj):
8691 ($(BLD)\editfns.obj):
8692 ($(BLD)\emacs.obj):
8693 ($(BLD)\fileio.obj):
8694 ($(BLD)\fns.obj):
8695 ($(BLD)\indent.obj):
8696 ($(BLD)\insdel.obj):
8697 ($(BLD)\intervals.obj):
8698 ($(BLD)\minibuf.obj):
8699 ($(BLD)\print.obj):
8700 ($(BLD)\scroll.obj):
8701 ($(BLD)\sysdep.obj):
8702 ($(BLD)\textprop.obj):
8703 ($(BLD)\widget.obj):
8704 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
8705 ($(BLD)\term.obj): Add dependency on dispextern.h
8706
8707 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8708
8709 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
8710 with an additional argument of Qt.
8711
8712 2000-10-21 Miles Bader <miles@gnu.org>
8713
8714 * window.c (pos_fully_visible_in_window_p): New function.
8715 (Fpos_visible_in_window_p): Add FULLY argument.
8716 Use pos_fully_visible_in_window_p.
8717 (window_scroll_pixel_based, window_scroll_line_based): Update
8718 calls to Fpos_visible_in_window_p.
8719 * lisp.h (Fpos_visible_in_window_p): Update prototype
8720
8721 2000-10-20 Gerd Moellmann <gerd@gnu.org>
8722
8723 * alloc.c (toplevel): Conditionalize compilation of mem_*
8724 functions differently.
8725
8726 2000-10-20 Jason Rumney <jasonr@gnu.org>
8727
8728 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
8729 mem_init where it used to be. mem_z etc not defined otherwise.
8730
8731 2000-10-20 Gerd Moellmann <gerd@gnu.org>
8732
8733 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
8734 GC_MALLOC_CHECK.
8735 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
8736 structure definition and related variabled to the top of the file.
8737 Include this code when GC_MALLOC_CHECK is defined.
8738 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
8739 register/unregister allocated region.
8740 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
8741 which isn't allocated.
8742 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
8743 something which is already in use.
8744 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
8745 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
8746 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
8747 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
8748
8749 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
8750 _malloc_internal instead of malloc.
8751 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
8752 of free.
8753
8754 2000-10-20 Andrew Innes <andrewi@gnu.org>
8755
8756 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
8757 Windows.
8758 (my_strftime) <macro>: Don't use macro arg list when redefining as
8759 _strftime_copytm.
8760 (my_strftime) <function>: Supply 0 as ut argument.
8761
8762 2000-10-19 Jason Rumney <jasonr@altavista.net>
8763
8764 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
8765 including dispextern.h, as it stops faces from working.
8766
8767 * w32fns.c (Fx_create_frame): Don't bother calling
8768 face-set-after-frame-default since the caller does it for us
8769 anyway. Clean up calls to x_get_arg to be consistent with X.
8770
8771 * w32term.c (x_produce_glyphs): Handle
8772 unibyte_display_via_language_environment correctly.
8773 (w32_draw_box_rect): Fix the calculation of width and height.
8774
8775 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
8776 as it has stopped working.
8777 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
8778 menu-bar.
8779
8780 2000-10-19 Gerd Moellmann <gerd@gnu.org>
8781
8782 * eval.c (skip_debugger): Prevent a compiler warning.
8783 (Fcondition_case): Likewise.
8784 (Fbacktrace_frame): Use a null interactive spec.
8785
8786 2000-10-19 Kenichi Handa <handa@etl.go.jp>
8787
8788 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
8789
8790 2000-10-18 Gerd Moellmann <gerd@gnu.org>
8791
8792 * strftime.c: Sync with glibc, file version 1.78.
8793 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
8794 should no longer be used according to ISO 8601.
8795
8796 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
8797 no map for meta_prefix_char, don't try to use it as a keymap.
8798 Instead, if T_OK is non-zero, look up a default binding, if any,
8799 otherwise, if T_OK is zero, return nil.
8800
8801 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
8802 (x_to_xcolors, png_load): Use x_query_color.
8803
8804 * xterm.c (x_color_cells, x_query_colors, x_query_color):
8805 New functions.
8806 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
8807 which can be slow.
8808 (x_copy_color, x_alloc_lighter_color): Likewise.
8809
8810 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
8811 (x_query_color, x_query_colors): Add prototype.
8812
8813 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
8814 check_string_bytes only if not noninteractive, increase count to 50.
8815
8816 2000-10-18 Miles Bader <miles@lsi.nec.co.jp>
8817
8818 * insdel.c (adjust_markers_for_delete): Handle before-insertion
8819 markers correctly.
8820
8821 2000-10-17 Gerd Moellmann <gerd@gnu.org>
8822
8823 * alloc.c (pure_bytes_used): Renamed from pureptr.
8824 (ALIGN): New macro.
8825 (pure_alloc): New function.
8826 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
8827 Use it.
8828 (Fpurecopy): Use PURE_POINTER_P.
8829
8830 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
8831 PT has moved backward.
8832
8833 * xdisp.c (cursor_row_p): Take continued lines into account.
8834
8835 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
8836 string's size_byte.
8837 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
8838 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
8839 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
8840 string allocated.
8841
8842 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
8843 of selective display off while searching for the next line start.
8844
8845 2000-10-17 Kenichi Handa <handa@etl.go.jp>
8846
8847 * Makefile.in (term.o): Depend on dispextern.h.
8848
8849 2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
8850
8851 * keymap.c (keymap_memberp): Ensure that nil is not a member.
8852
8853 2000-10-16 Gerd Moellmann <gerd@gnu.org>
8854
8855 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
8856 the iterator at the beginning, so that they can be set later on,
8857 for instance in reseat_at_next_visible_line_start, without being
8858 overwritten.
8859
8860 * xfns.c (pbm_format): Add :foreground and :background keywords.
8861 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
8862 (xbm_load): Recognize foreground and background color specifications.
8863
8864 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
8865
8866 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
8867
8868 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
8869
8870 * msdos.c (IT_set_face): Compare highlighted face with the default
8871 face, and invert colors if these faces' colors are identical.
8872 (Fmsdos_remember_default_colors): Don't swap foreground and
8873 background colors in initial_colors[].
8874 (IT_set_frame_parameters): Don't swap frame's foreground and
8875 background pixels. If ALIST includes "(reverse . t)", swap
8876 foreground-color and background-color properties in frame's
8877 param_alist. If the original frame's param_alist doesn't specify
8878 the colors, store unspecified-fg and unspecified-bg, reversed if
8879 required.
8880
8881 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
8882 the colors are unspecified and reversed, reverse fore- and back-
8883 ground in the returned value.
8884 (Fframe_parameter): Ditto.
8885
8886 2000-10-16 Gerd Moellmann <gerd@gnu.org>
8887
8888 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
8889 get_last_unchanged_at_beg_row.
8890 (find_first_unchanged_at_end_row): Renamed from
8891 get_first_unchanged_at_end_row.
8892 (find_first_unchanged_at_end_row): Convert assertions to
8893 unconditional tests which abort. When looking for a row in
8894 unchanged text, don't go further back than first_text_row.
8895
8896 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
8897 Don't add in the last line's height when deciding if the new
8898 position is below the scroll margin.
8899
8900 2000-10-16 Miles Bader <miles@gnu.org>
8901
8902 * editfns.c (Fconstrain_to_field): Check carefully for field
8903 boundaries if either OLD_POS or NEW_POS has a non-nil field
8904 property, even if they're the same.
8905
8906 2000-10-16 Kenichi Handa <handa@etl.go.jp>
8907
8908 * xterm.c (x_draw_box_rect): Fix the calculation of width and
8909 height for XFillRectangle.
8910
8911 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
8912
8913 * syntax.c (Fstring_to_syntax): New function extracted from
8914 Fmodify_syntax_entry.
8915 (Fmodify_syntax_entry): Use it and document the ! and | fences.
8916 (skip_chars, Fforward_comment): Remove unused variables.
8917 (syms_of_syntax): Add defsubr for string-to-syntax.
8918 (describe_syntax): Add code for comment and string fences.
8919
8920 2000-10-14 Stefan Monnier <monnier@cs.yale.edu>
8921
8922 * keymap.c (access_keymap): Add AUTOLOAD parameter.
8923 Do the meta->esc mapping. Call get_keyelt before returning.
8924 Start scanning from the second element (the first is always `keymap')
8925 to make it easier to detect when we reach a parent map.
8926 Handle the case of inheriting from a symbol whose function is a map.
8927 (Fkeymap_parent): Also handle the `inherit from symbol' case.
8928 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
8929 (get_keyelt, Flookup_key): Update call to access_keymap.
8930 Remove the meta->esc mappings.
8931 (define_as_prefix): Delete old disabled code.
8932 (menu_item_p): New function.
8933 (where_is_internal_1): Skip over the few remaining menu items.
8934 * lisp.h (access_keymap): Update prototype.
8935 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
8936 Update call to access_keymap.
8937 (follow_key, read_key_sequence): Update calls to access_keymap.
8938 Remove the meta->esc mappings.
8939
8940 2000-10-13 Gerd Moellmann <gerd@gnu.org>
8941
8942 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
8943 with additional argument.
8944
8945 * xdisp.c (cursor_row_p): New function.
8946 (try_cursor_movement, display_line): Use it.
8947
8948 * xdisp.c (append_space): Also save/restore iterator's current
8949 character and its length.
8950
8951 * xdisp.c (init_from_display_pos): Add an assertion.
8952 (handle_stop): Don't set iterator's add_overlay_start.
8953 (handle_invisible_prop): Likewise.
8954 (load_overlay_strings): If text under an overlay is invisible,
8955 take both before- and after-strings into account when the iterator
8956 is positioned either at the start or at the end of the overlay.
8957 (forward_to_next_line_start): Rewritten.
8958 (reseat_at_next_visible_line_start): Rewritten.
8959 (set_iterator_to_next): Add parameter RESEAT_P.
8960
8961 * dispextern.h (struct it): Remove member add_overlay_start.
8962 (set_iterator_to_next): Change prototype.
8963
8964 2000-10-13 Kenichi Handa <handa@etl.go.jp>
8965
8966 * coding.c (code_convert_region): Be sure to initialize
8967 coding->category_idx.
8968 (decode_coding_string): Set coding->src_multibyte and
8969 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
8970 (encode_coding_string): Set coding->src_multibyte and
8971 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
8972
8973 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
8974
8975 * xfns.c (Fx_create_frame): Don't bother calling
8976 face-set-after-frame-default since the caller does it for us anyway.
8977
8978 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
8979
8980 * window.c (coordinates_in_window): Fix detection of vertical line
8981 on character terminals.
8982
8983 2000-10-12 Gerd Moellmann <gerd@gnu.org>
8984
8985 * editfns.c (save_excursion_save): Additionally record the
8986 selected window.
8987 (save_excursion_restore): If buffer was visible in a window, and a
8988 different window was selected, and the old selected window is
8989 still live, restore point in that window.
8990
8991 2000-10-12 Kenichi Handa <handa@etl.go.jp>
8992
8993 * xterm.c (x_produce_glyphs): Handle
8994 unibyte_display_via_language_environment correctly.
8995
8996 * regex.c (regex_compile): Change the way of handling a range from
8997 unibyte char to multibyte char.
8998
8999 * syntax.c (skip_chars): Change the way of handling a range from
9000 unibyte char to multibyte char.
9001
9002 * process.c (read_process_output): Cancel previous change.
9003
9004 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
9005
9006 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
9007
9008 * charset.c (Ffind_charset_string): Doc fix.
9009 (Ffind_charset_region): Doc fix.
9010
9011 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
9012
9013 * process.c (read_process_output): Fix previous change. Adjust
9014 multibyteness of text to insert in a buffer by
9015 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
9016
9017 2000-10-10 Andreas Schwab <schwab@suse.de>
9018
9019 * alloc.c (mark_object): Remove all workarounds installed on
9020 1993-08-08.
9021
9022 2000-10-10 Kenichi Handa <handa@etl.go.jp>
9023
9024 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
9025 (base64_encode_1): Make it work for a text of multibyte form.
9026 (Fbase64_decode_region): Allocate sufficient memory for multibyte
9027 case. Don't call str_to_multibyte because base64_decode_1
9028 produces correct multibyte form for eight-bit codes.
9029 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
9030 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
9031 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
9032 codes.
9033
9034 * charset.h (CHAR_STRING): Optimized for single byte characters.
9035
9036 2000-10-09 Andreas Schwab <schwab@suse.de>
9037
9038 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
9039 -1 after socket is closed, to fall through to error processing.
9040
9041 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
9042
9043 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
9044 variables. If ALIST includes foreground-color or
9045 background-color, change also the colors of the default face for
9046 this frame.
9047
9048 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
9049
9050 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
9051 them extern (they are defined on xfaces.c).
9052 (syms_of_msdos): Don't intern and don't staticpro
9053 Qbackground_color and Qforeground_color.
9054
9055 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
9056
9057 * frame.c (Fframe_parameter): For non-windowed frames, if
9058 f->param_alist says foreground or background color is unspecified,
9059 call tty_color_name to return the color name computed from the
9060 frame's current colors.
9061
9062 2000-10-06 Dave Love <fx@gnu.org>
9063
9064 * terminfo.c (ospeed): Don't declare.
9065
9066 * sysdep.c: Don't include string.h.
9067 (h_errno): Declare conditional also on TRY_AGAIN.
9068
9069 * charset.c (Ffind_charset_string): Doc fix.
9070
9071 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
9072 (Fbase64_decode_region, Fbase64_decode_string): More explicit
9073 error messages.
9074
9075 2000-10-05 Dave Love <fx@gnu.org>
9076
9077 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
9078 position like menu-bar.
9079
9080 2000-10-05 Gerd Moellmann <gerd@gnu.org>
9081
9082 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
9083
9084 * xdisp.c (handle_single_display_prop): Use safe_call1.
9085 (safe_call): Renamed from call_function.
9086 (safe_call1): New function.
9087 (handle_fontified_prop): Use safe_call1 instead of call1.
9088 (safe_eval): Renamed from eval_form.
9089 (safe_eval_handler): Renamed from eval_handler.
9090 (handle_single_display_prop, display_mode_element): Use safe_eval
9091 instead of eval_form.
9092
9093 * xfaces.c (merge_face_heights): Use safe_call instead of
9094 call_function.
9095
9096 * keyboard.c (show_help_echo): Use safe_call instead of
9097 call_function; use safe_eval instead of eval_form.
9098
9099 * lisp.h (safe_call): Renamed from call_function.
9100 (safe_eval): Renamed from eval_form.
9101 (safe_call1): Add prototype.
9102
9103 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
9104
9105 * xfns.c (image_ascent): Rearrange ascent calculation for the
9106 has-a-font case.
9107
9108 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
9109
9110 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
9111 (where_is_internal_1): Don't bother ignoring menu-items any more.
9112
9113 2000-10-04 Gerd Moellmann <gerd@gnu.org>
9114
9115 * keyboard.c (update_menu_bindings): New variable.
9116 (parse_menu_item): Use AREF. If update_menu_bindings
9117 is 0, don't update menu bindings.
9118 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
9119
9120 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
9121
9122 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
9123 to `mark_object'.
9124
9125 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
9126
9127 * syntax.c (forw_comment): Match nestedness of ender/starter.
9128 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
9129 (prev_char_comstart_first): Remove.
9130 (back_comment): Check two-char comment markers more carefully
9131 to better handle overlapping cases like *//* or /* */* */ ...
9132 Match nestedness of ender/starter.
9133
9134 2000-10-02 Dave Love <fx@gnu.org>
9135
9136 * config.in (HAVE_GAI_STRERROR): Add undef.
9137
9138 * process.c (Fopen_network_stream): Use it.
9139
9140 * m/alpha.h (NO_REMAP): Don't define.
9141
9142 2000-10-02 Gerd Moellmann <gerd@gnu.org>
9143
9144 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
9145 return with a string converted to an integer or vice versa when
9146 Vmocklisp_arguments is t.
9147 (Fsignal): Likewise. The function can return for `quit'.
9148 (struct gcpro): Declare member `var' to point to a volatile
9149 Lisp_Object.
9150
9151 * eval.c (error): Prevent compiler warning.
9152
9153 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
9154
9155 * keymap.c (keymap_memberp): New function.
9156 (Fset_keymap_parent): Use it.
9157 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
9158 Use keymap_memberp to avoid creating cycles.
9159 (access_keymap): Use KEYMAPP.
9160
9161 2000-09-30 Gerd Moellmann <gerd@gnu.org>
9162
9163 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
9164 gai_strerror. Make sure xerrno is set if connect fails. Improve
9165 error recovery.
9166
9167 2000-09-29 Jason Rumney <jasonr@gnu.org>
9168
9169 * w32term.c (w32_char_font_type, w32_encode_char)
9170 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
9171 (w32_bdf_per_char_metric): New function.
9172 (w32_per_char_metric): Use it.
9173 (x_draw_glyph_string_background): Always draw background for BDF
9174 glyphs.
9175
9176 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
9177 GDI object which is a scarce resource.
9178
9179 * w32bdf.c (search_file_line): Fix skipping of whitespace.
9180 (get_quoted_string): Fix limit on memchr search.
9181 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
9182 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
9183 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
9184 (get_cached_font_char, cache_char_offset): Use macro
9185 BDF_CODEPOINT_RANGE_COVER_P.
9186 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
9187 (clear_cached_bitmap_slots): New function.
9188 (GET_HEX_VALUE): G-Z, g-z are not hex.
9189 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
9190 (get_bitmap_with_cache): Use new cache implementation.
9191 (create_offscreen_bitmap): New function.
9192 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
9193
9194 * w32term.c (x_produce_glyphs): If the distance from the current
9195 position to the next tab stop is less than a canonical character
9196 width, use the tab stop after that.
9197 (x_draw_glyphs): Handle case START and END are out of bounds more
9198 carefully.
9199 (x_clear_mouse_face): Block/unblock input.
9200 (x_display_and_set_cursor): Don't show a hollow box cursor for
9201 buffers whose cursor_type is nil.
9202
9203 2000-09-29 Gerd Moellmann <gerd@gnu.org>
9204
9205 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
9206
9207 * dispextern.h (updating_frame): Declare extern.
9208
9209 2000-09-29 Andreas Schwab <schwab@suse.de>
9210
9211 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
9212
9213 2000-09-29 Gerd Moellmann <gerd@gnu.org>
9214
9215 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
9216 use its function definition.
9217 (tool_bar_items): Likewise.
9218
9219 * lisp.h (fatal): Declare NO_RETURN.
9220
9221 2000-09-29 Kenichi Handa <handa@etl.go.jp>
9222
9223 * keymap.c: Remove the line "#undef NULL".
9224
9225 2000-09-28 Gerd Moellmann <gerd@gnu.org>
9226
9227 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
9228
9229 2000-09-28 Dave Love <fx@gnu.org>
9230
9231 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
9232
9233 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
9234
9235 * .gdbinit (xreload): Note its need on GNU/Linux.
9236
9237 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
9238 r_alloc, r_alloc_free.
9239
9240 2000-09-28 Kenichi Handa <handa@etl.go.jp>
9241
9242 * syntax.c (skip_chars): Handle negation correctly.
9243
9244 2000-09-27 Gerd Moellmann <gerd@gnu.org>
9245
9246 * xfaces.c (realize_default_face): Call set_lface_from_font_name
9247 with non-zero FORCE_P argument.
9248
9249 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
9250 Add assertions.
9251
9252 * xdisp.c (window_box_height): Add an assertion.
9253
9254 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
9255 tool-bar than is available.
9256 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
9257
9258 2000-09-27 Dave Love <fx@gnu.org>
9259
9260 * s/irix6-5.h: Now works 64-bit. Tidied.
9261
9262 2000-09-26 Gerd Moellmann <gerd@gnu.org>
9263
9264 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
9265 instead of BITS_PER_INT.
9266 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
9267 EMACS_UINT, respectively.
9268 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
9269
9270 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
9271
9272 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
9273
9274 * window.c (freeze_window_starts): Construct last argument for
9275 foreach_window differently.
9276
9277 * xfns.c (x_decode_color): Don't return a Lisp_Object.
9278
9279 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
9280 EMACS_UINT instead of `int' and `unsigned int'.
9281 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
9282
9283 * frame.h (struct frame): Make the `nothing' member of union
9284 output_data an EMACS_INT.
9285
9286 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
9287 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
9288 size in the sdata structure.
9289 (SDATA_NBYTES, SDATA_DATA): New macros.
9290 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
9291 differently for the different layout of the sdata structure.
9292 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
9293 in sdata.
9294 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
9295 Check that size recorded in the string size and size recorded in
9296 the sdata structure agree.
9297
9298 2000-09-25 Dave Love <fx@gnu.org>
9299
9300 * buffer.c: Include stdio.h.
9301
9302 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
9303
9304 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
9305
9306 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
9307 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
9308 (__malloc_extra_blocks): Declare as __malloc_size_t.
9309
9310 2000-09-25 Gerd Moellmann <gerd@gnu.org>
9311
9312 * alloc.c (mark_image): Use GC_NILP instead of NILP.
9313
9314 * keyboard.c (show_help_echo): Set help_echo_showing_p.
9315 (read_char): If help-echo is showing, preserve the echo area
9316 when redisplaying.
9317
9318 * xdisp.c (help_echo_showing_p): New variable.
9319 (set_message): Reset it to 0.
9320 (init_xdisp): Initialize help_echo_showing_p.
9321
9322 * dispextern.h (help_echo_showing_p): Declare extern.
9323
9324 * config.in: Fix typo in __GNUC_MINOR__.
9325
9326 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
9327
9328 * s/freebsd.h (POSIX_SIGNALS): Define.
9329
9330 * xterm.c (x_clear_mouse_face): Block/unblock input.
9331
9332 2000-09-24 Dave Love <fx@gnu.org>
9333
9334 * fns.c (base64_encode_1): Fix last change.
9335
9336 2000-09-22 Gerd Moellmann <gerd@gnu.org>
9337
9338 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
9339
9340 * xdisp.c (try_window_reusing_current_matrix): More fixes
9341 for the case window has a header-line.
9342
9343 2000-09-22 Dave Love <fx@gnu.org>
9344
9345 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
9346 a doc string.
9347
9348 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
9349
9350 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
9351
9352 2000-09-21 Gerd Moellmann <gerd@gnu.org>
9353
9354 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
9355 for GCC >= 2.5.
9356
9357 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
9358 Declare NO_RETURN.
9359
9360 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
9361 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
9362 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
9363 warnings.
9364
9365 * marker.c (byte_char_debug_check): Return void.
9366
9367 * xfns.c (Fx_create_frame): Set default frame parameter value
9368 for tool-bar-lines to 1.
9369
9370 * dispnew.c (scrolling_window): Compare y-positions of rows
9371 equal at the start. Some simplification.
9372
9373 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
9374 reused rows' y-position in the case window has a header-line, and
9375 new window start is greater than old window start.
9376
9377 * process.c (process_sent_to): New variable.
9378 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
9379 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
9380 Declare more parameters volatile.
9381
9382 * lread.c (Vrecursive_load_depth_limit): New variable.
9383 (Fload): Check recursive loads whose recursion depth exceeds
9384 Vrecursive_load_depth_limit.
9385 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
9386
9387 2000-09-20 Gerd Moellmann <gerd@gnu.org>
9388
9389 * fileio.c (Fread_file_name): Doc fix.
9390
9391 * editfns.c (Fmessage_or_box): Doc fix.
9392
9393 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
9394
9395 * xfns.c (xbm_scan): Allow C-style comments.
9396
9397 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
9398 symbols are specified, add color translations to the cache.
9399 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
9400 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
9401 xpm_cache_color.
9402 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
9403 structures to xpm_init_color_cache.
9404
9405 2000-09-19 Gerd Moellmann <gerd@gnu.org>
9406
9407 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
9408
9409 2000-09-19 Andrew Innes <andrewi@gnu.org>
9410
9411 * makefile.nt (bootstrap-emacs): Don't change directory.
9412
9413 2000-09-19 Kenichi Handa <handa@etl.go.jp>
9414
9415 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
9416
9417 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
9418 If output buffer is too small, signal an appropriated error.
9419
9420 2000-09-18 Dave Love <fx@gnu.org>
9421
9422 * keyboard.c (menu_bar_items, tool_bar_items)
9423 (current_active_maps): Remove redundant get_local_map call.
9424
9425 2000-09-18 Gerd Moellmann <gerd@gnu.org>
9426
9427 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
9428 cursor for buffers whose cursor_type is nil.
9429
9430 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
9431 a feature to implement that is already implemented.
9432 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
9433 warnings.
9434
9435 * xfns.c (x_clear_image_1): New function.
9436 (x_clear_image): Use it.
9437 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
9438
9439 * dispnew.c (update_window): Move test for invisible lines
9440 at the top to update_window_line.
9441 (update_window_line): Handle invisible lines here.
9442
9443 * xfns.c (clear_image_cache): Clear current matrices of all
9444 frames sharing an image cache. Block input while freeing
9445 images. Fix timestamp comparison.
9446 (x_clear_image): Also free the mask.
9447
9448 * xfns.c (lookup_image): Block input while loading the image so
9449 that we won't get interrupted in a state where the image isn't yet
9450 set up completely.
9451 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
9452 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
9453 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
9454 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
9455
9456 2000-09-16 Gerd Moellmann <gerd@gnu.org>
9457
9458 * dispnew.c (update_window): Make sure to make desired rows
9459 current even if they are completely invisible at the top
9460 of a window.
9461
9462 2000-09-15 Gerd Moellmann <gerd@gnu.org>
9463
9464 * xfns.c (lookup_image): Build mask before applying an algorithm.
9465 Recognize algorithm `disabled'.
9466 (cross_disabled_images): New variable.
9467 (COLOR_INTENSITY): New macro.
9468 (x_detect_edges): Use COLOR_INTENSITY.
9469 (x_disable_image): New function.
9470 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
9471
9472 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
9473 disabled state, don't apply an image transformation algorithm if
9474 the user specified an image for the disabled state. Use
9475 `:algorithm disabled' for creating a disabled item's image if the
9476 user hasn't specified an image.
9477
9478 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
9479 allocation functions with the XPM lib.
9480 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
9481 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
9482 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
9483 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
9484 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
9485 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
9486 functions, if possible, because these handle color allocation
9487 failure more gracefully.
9488 (Fimage_mask_p): New function.
9489
9490 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
9491 (Qedge_detection, Qheuristic): New symbols.
9492 (syms_of_xfns): Initialize new symbols.
9493 (lookup_image): Handle `:mask X', `:algorithm emboss', and
9494 `algorithm (edge-detection ...)'.
9495 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
9496 (tiff_format, gif_format, gs_format): Add `:mask'.
9497 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
9498 (GIF_MASK, GS_MASK): New enumerators.
9499 (x_laplace_read_row, x_laplace_write_row): Functions removed.
9500 (emboss_matrix, laplace_matrix): New variables.
9501 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
9502 (x_edge_detection): New functions.
9503 (x_laplace): Rewritten in terms of x_detect_edges.
9504 (x_build_heuristic_mask): If image has a mask, free it.
9505
9506 2000-09-14 Andrew Innes <andrewi@gnu.org>
9507
9508 * makefile.w32-in: Revert to Unix line endings.
9509
9510 2000-09-14 Andrew Innes <andrewi@gnu.org>
9511
9512 * makefile.w32-in: Standardize indentation somewhat.
9513 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
9514 cater for differences between shells.
9515
9516 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
9517
9518 2000-09-14 Gerd Moellmann <gerd@gnu.org>
9519
9520 * xterm.c (x_produce_glyphs): If the distance from the current
9521 position to the next tab stop is less than a canonical character
9522 width, use the tab stop after that.
9523
9524 2000-09-14 Dave Love <fx@gnu.org>
9525
9526 * buffer.c (alloc_buffer_text): Fix xmalloc call.
9527
9528 2000-09-14 Gerd Moellmann <gerd@gnu.org>
9529
9530 * xdisp.c (handle_fontified_prop): While running fontification
9531 functions, bind `fontification-functions' and
9532 `after-change-functions' to nil.
9533
9534 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
9535 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
9536
9537 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
9538
9539 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
9540 USE_MMAP_FOR_BUFFERS.
9541
9542 * insdel.c (make_gap): Use enlarge_buffer_text.
9543
9544 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
9545 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
9546 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
9547 from former r_alloc_* functions in ralloc.c.
9548 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
9549 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
9550 (mmap_init) [REL_ALLOC_MMAP]: New function.
9551 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
9552 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
9553 BUFFER_FREE.
9554
9555 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
9556 (enlarge_buffer_text): Add prototype.
9557
9558 * ralloc.c: Remove everything having to do with the use of mmap.
9559
9560 2000-09-13 Gerd Moellmann <gerd@gnu.org>
9561
9562 * sound.c (Fplay_sound): Doc fix.
9563
9564 * keyboard.c: Avoid some more compiler warnings.
9565 (parse_tool_bar_item): Ignore cached key bindings.
9566
9567 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
9568 and allocation of Lisp data.
9569
9570 2000-09-12 Gerd Moellmann <gerd@gnu.org>
9571
9572 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
9573 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
9574 defaults first.
9575
9576 * lread.c (Fload): Put code checking for recursive loads in #if 0.
9577
9578 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
9579
9580 * ccl.c: Comment fixed.
9581 (MAX_MAP_SET_LEVEL): Increased to 30.
9582 (PUSH_MAPPING_STACK): Enclose with do-while block.
9583 (POP_MAPPING_STACK): Likewise.
9584 (stack_idx_of_map_multiple): New variable.
9585 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
9586 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
9587 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
9588 (ccl_driver) <CCL_MapSingle>: Likewise.
9589 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
9590 with the case where looking up process reaches to the end of
9591 map-set, and call CCL programs as the above change.
9592
9593 2000-09-11 Gerd Moellmann <gerd@gnu.org>
9594
9595 * xfns.c (png_load, jpeg_load): Declare some variables volatile
9596 that might be clobbered by longjmp.
9597 (check_x_display_info, x_decode_color, create_frame_xic)
9598 (Fx_display_backing_store, Fx_display_visual_class)
9599 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
9600
9601 * lread.c (init_lread): Set Vloads_in_progress to nil.
9602 (Fload): Show list of recursively loaded files, when signaling an
9603 error.
9604
9605 * lread.c (Vloads_in_progress): New variable.
9606 (record_load_unwind): New function.
9607 (Fload): Check for recursive loads.
9608 (syms_of_lread): Initialize Vloads_in_progress.
9609 (read_integer, read1): Avoid some compiler warnings.
9610
9611 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
9612 compiler warnings.
9613
9614 2000-09-11 Miles Bader <miles@gnu.org>
9615
9616 * editfns.c (Fbuffer_string): Doc fix.
9617
9618 2000-09-10 Gerd Moellmann <gerd@gnu.org>
9619
9620 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
9621
9622 2000-09-09 Ken Raeburn <raeburn@gnu.org>
9623
9624 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
9625 whether to include other header files.
9626
9627 2000-09-09 Gerd Moellmann <gerd@gnu.org>
9628
9629 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9630 by Fmemq as a boolean.
9631
9632 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
9633
9634 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
9635
9636 2000-09-08 Gerd Moellmann <gerd@gnu.org>
9637
9638 * ralloc.c (mmap_fd): Remove initializer which can make it
9639 read-only in a dumped Emacs.
9640 (mmap_fd_1): New variable.
9641 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
9642 restore it from there.
9643 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
9644 unconditionally so that mmap_fd can be initialized there.
9645 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
9646 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
9647 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
9648
9649 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
9650
9651 * xdisp.c (dump_glyph_row): Fix printf format string.
9652 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
9653
9654 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
9655
9656 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
9657 inheritance.
9658
9659 * xdisp.c (try_window_id): When trying to locate cursor in
9660 unchanged rows at the top, handle the case that we can't find it.
9661
9662 * xterm.c (x_draw_glyphs): Handle case START and END are out
9663 of bounds more carefully.
9664
9665 2000-09-08 Dave Love <fx@gnu.org>
9666
9667 * s/sol2.h (REL_ALLOC_MMAP): Define.
9668 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
9669
9670 * ralloc.c: Don't include string.h (redundant).
9671 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
9672 [!MAP_ANON]: Include fcntl.h.
9673 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
9674 (r_alloc, r_re_alloc, r_alloc_free)
9675 (mmap_enlarge, mmap_set_vars): Use it.
9676 (r_alloc_init_fd): New function.
9677 (__morecore) [SYSTEM_MALLOC]: Don't declare.
9678 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
9679 malloc type.
9680
9681 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
9682 Remove vm-limit.o.
9683
9684 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
9685 change to __NetBSD__.
9686
9687 2000-09-08 Kenichi Handa <handa@etl.go.jp>
9688
9689 * search.c (compile_pattern): Check the multibyteness of cached
9690 string and PATTERN.
9691
9692 2000-09-08 Miles Bader <miles@gnu.org>
9693
9694 * xfaces.c (default_face_vector): Function removed.
9695 (Finternal_merge_in_global_face): Restore old global/local
9696 attribute override order. Use inline loop instead of calling
9697 default_face_vector.
9698
9699 2000-09-07 Gerd Moellmann <gerd@gnu.org>
9700
9701 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
9702 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
9703 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
9704 where necessary, in case POINTER_TYPE is `void'.
9705
9706 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
9707
9708 * frame.c (make_terminal_frame): Initialize frame foreground and
9709 background colors to unspecified, for the initial instance of an
9710 MSDOS frame.
9711
9712 2000-09-07 Gerd Moellmann <gerd@gnu.org>
9713
9714 * ralloc.c (mmap_find): Fix overlap computation.
9715 (mmap_enlarge): Compute nbytes before trying to find an
9716 overlapping region.
9717
9718 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
9719 instead of `!='.
9720
9721 * lread.c (syms_of_lread): Change value of regexp
9722 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
9723
9724 * xmenu.c (xdialog_show): When looking up the selection in
9725 menu_items, take `quote' boundaries into account; this corresponds
9726 to a nil ITEM in x-popup-dialog.
9727
9728 2000-09-07 Kenichi Handa <handa@etl.go.jp>
9729
9730 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
9731 not 0x81.
9732 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
9733
9734 * coding.c (encode_coding_sjis_big5): Use translation table for
9735 encoding, not decoding. Fix the handling of latin-jisx0201.
9736 Check for the charset katakana-jisx0201 too.
9737 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
9738 (detect_coding_sjis): Check the byte sequence more rigidly.
9739
9740 2000-09-07 Gerd Moellmann <gerd@gnu.org>
9741
9742 * xfaces.c (Vparam_value_alist): New variable.
9743 (syms_of_xfaces): Initialize it.
9744 (Finternal_set_lisp_face_attribute): Avoid more consing.
9745
9746 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
9747 specially.
9748 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
9749 (Qbackground_mode): New variable.
9750 (syms_of_frame_1): Initialize Qbackground_mode.
9751
9752 * lisp.h (Qdisplay): Declare extern.
9753
9754 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
9755 change face on all frames, and change the default for new frames.
9756
9757 2000-09-07 Dave Love <fx@gnu.org>
9758
9759 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
9760
9761 2000-09-07 Kenichi Handa <handa@etl.go.jp>
9762
9763 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
9764
9765 * charset.c: Include composite.h
9766 (lisp_string_width): New function.
9767 (Fstring_width): Call lisp_string_width instead of strwidth.
9768
9769 * Makefile.in (charset.o): Depends on composite.h.
9770
9771 * process.c (read_process_output): Before inserting the decoded
9772 text in the buffer, adjust the multibyteness.
9773
9774 2000-09-06 Gerd Moellmann <gerd@gnu.org>
9775
9776 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
9777 buffer's text buffer is null, map new memory.
9778
9779 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
9780 POINTER_TYPE and size_t.
9781 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
9782 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
9783 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
9784 [REL_ALLOC_MMAP]: New macros.
9785 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
9786 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
9787 [REL_ALLOC_MMAP]: New functions.
9788
9789 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
9790 before and after unexec.
9791
9792 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
9793 text buffers if necessary.
9794
9795 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
9796 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
9797 in prototypes.
9798
9799 * config.in (HAVE_MMAP): Add #undef.
9800
9801 2000-09-05 Gerd Moellmann <gerd@gnu.org>
9802
9803 * frame.c (Qdisplay_type): New variable.
9804 (syms_of_frame_1): Initialize it.
9805 (Fframe_parameter): New function that avoids consing.
9806 (syms_of_frame): Defsubr it.
9807
9808 * buffer.c (Fother_buffer): Consider buffers as invisible when
9809 they are displayed in a window on an invisible frame.
9810
9811 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
9812 get-largest-window always return nil.
9813
9814 2000-09-04 Gerd Moellmann <gerd@gnu.org>
9815
9816 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
9817 variable; recognize Emacs 19 elc files.
9818
9819 2000-09-04 Miles Bader <miles@gnu.org>
9820
9821 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
9822 before initially popping up the menu, so the menu doesn't flash
9823 when the face settings are significantly different from the defaults.
9824
9825 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
9826
9827 * regex.c (WIDE_CHAR_SUPPORT): New macro.
9828 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
9829 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
9830 (BIT_UNIBYTE): Remove.
9831 (re_match_2_internal): Delete corresponding code and streamline the
9832 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
9833 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
9834 (re_wctype_t): New type.
9835 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
9836 (regex_compile): Use them and fix handling of overly long char classes.
9837
9838 2000-09-03 Andrew Innes <andrewi@gnu.org>
9839
9840 * makefile.w32-in: Change to DOS line endings.
9841
9842 * s/ms-w32.h (ORDINARY_LINK): New define.
9843
9844 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
9845 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
9846
9847 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
9848 (distclean): Delete them here instead.
9849
9850 * w32proc.c (compare_env): Convert to uppercase for comparison,
9851 not lowercase, to match how the native Windows shell works.
9852
9853 2000-09-03 Jason Rumney <jasonr@gnu.org>
9854
9855 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
9856 CVS changes the line-ends when checking in/out on DOS/Windows.
9857
9858 * makefile.nt (emacs): Do not change directory to run temacs, as
9859 the load-path is set relative to current directory.
9860
9861 2000-09-03 Miles Bader <miles@gnu.org>
9862
9863 * xterm.c (x_alloc_lighter_color_for_widget): New function.
9864
9865 2000-09-02 Gerd Moellmann <gerd@gnu.org>
9866
9867 * xdisp.c (redisplay_mode_lines): New function.
9868 (display_mode_lines): Return number of mode lines displayed.
9869 (echo_area_display): Use redisplay_mode_lines to draw garbaged
9870 mode lines. Don't temporarily bind redisplay-dont-pause to t.
9871
9872 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
9873 string.h and strings.h.
9874 (index) [HAVE_INDEX]: Add prototype.
9875
9876 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
9877 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
9878
9879 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
9880 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9881
9882 2000-09-01 Gerd Moellmann <gerd@gnu.org>
9883
9884 * lread.c (read1): Accept `?' as symbol constituent, for
9885 compatiblity with XEmacs.
9886
9887 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
9888
9889 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
9890 (struct re_pattern_buffer): Remove newline_anchor.
9891 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
9892 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
9893 (re_max_failures, fail_stack): Use size_t rather than unsigned.
9894 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
9895 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
9896 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
9897 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
9898 Get rid of references to newline_anchor.
9899 (regcomp): Allocate and precompute a fastmap.
9900
9901 2000-08-31 Gerd Moellmann <gerd@gnu.org>
9902
9903 * lread.c (openp): GCPRO local variable `filename'.
9904
9905 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
9906
9907 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
9908
9909 * regex.c: Merge some changes from GNU libc. Add prototypes.
9910 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
9911 Use memcmp and memcpy instead of bcopy and bcmp.
9912 (init_syntax_once): Use ISALNUM.
9913 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
9914 (REG_UNSET_VALUE): Remove. Use NULL instead.
9915 (REG_UNSET, re_match_2_internal): Use NULL.
9916 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
9917 New macros.
9918 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
9919 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
9920 (regex_compile): In handle_interval, return an error rather than try to
9921 unfetch the interval if we can't find the closing brace.
9922 Obey the RE_NO_GNU_OPS syntax bit.
9923 (TOLOWER): New macro.
9924 (regcomp): Use it.
9925 (regexec): Allocate regs.start and regs.end as one block.
9926
9927 2000-08-30 Gerd Moellmann <gerd@gnu.org>
9928
9929 * xdisp.c (echo_area_display): Check display_completed instead
9930 of calling detect_input_pending.
9931
9932 * dispnew.c (update_frame): Only set display_completed here; move
9933 the update_begin and update_end calls here from update_frame_1.
9934 (update_frame_1): Don't set display_completed here, don't call
9935 update_begin/update_end.
9936
9937 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
9938 instead of store_frame_param.
9939
9940 2000-08-29 Gerd Moellmann <gerd@gnu.org>
9941
9942 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
9943 desired window matrix hasn't been displayed, use the current row
9944 instead. Make sure that only those frame rows are updated for
9945 which there exists a corresponding enabled desired row.
9946
9947 2000-08-29 Miles Bader <miles@gnu.org>
9948
9949 * xfaces.c (default_face_vector): New function.
9950 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
9951
9952 2000-08-29 Gerd Moellmann <gerd@gnu.org>
9953
9954 * lread.c (openp): Prevent temporary string passed to
9955 Ffile_readable_p from being garbage collected.
9956
9957 2000-08-28 Dave Love <fx@gnu.org>
9958
9959 * keymap.c (store_in_keymap): Add `static' to declaration.
9960
9961 2000-08-28 Gerd Moellmann <gerd@gnu.org>
9962
9963 * emacs.c, callint.c, doc.c, editfns.c
9964 (toplevel) [HAVE_STRING_H]: Include string.h.
9965 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
9966 (index): Remove prototypes which might conflict with non-standard
9967 definitions of index/strchr.
9968
9969 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
9970 (rindex): Define only if !HAVE_RINDEX.
9971
9972 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
9973
9974 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
9975
9976 2000-08-28 Miles Bader <miles@gnu.org>
9977
9978 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
9979 made inconsistent by a font-related attribute in FROM.
9980 (merge_face_inheritance): Add function comment.
9981
9982 2000-08-28 Kenichi Handa <handa@etl.go.jp>
9983
9984 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
9985 the 4th arg (PREV_EVENT) Qt to suppress input method.
9986
9987 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
9988
9989 * regex.c: Indent cpp directives and remove parens after `defined'.
9990 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
9991 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
9992 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
9993 (re_compile_pattern): Use size_t for length.
9994 (init_syntax_once): Move to a better place.
9995 * regex.h: Merge changes from GNU libc. Indent cpp directives.
9996 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
9997
9998 * syntax.c (back_comment): Detect cases where a comment-starter is
9999 actually inside another comment as in: /* a // b */ c // d \n.
10000 Make it clear that `comstart_pos' is unused for nested comments.
10001
10002 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
10003 (KEYMAPP): New macro.
10004 (Fkeymap_parent, Fset_keymap_parent): Use it.
10005 (fix_submap_inheritance): Mark it static.
10006 (define_as_prefix, describe_buffer_bindings, describe_command)
10007 (describe_translation, describe_map): Complete prototypes.
10008
10009 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
10010
10011 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
10012 to better match the key-lookup behavior.
10013
10014 2000-08-27 Gerd Moellmann <gerd@gnu.org>
10015
10016 * xfaces.c (lface_fully_specified_p): Handle :inherit.
10017 (Finternal_set_lisp_face_attribute): Fix typo in error message.
10018
10019 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
10020
10021 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
10022 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
10023 (xterm.o): Depend on coding.h
10024
10025 2000-08-26 Kenichi Handa <handa@etl.go.jp>
10026
10027 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
10028 the corresponding '#endif'.
10029
10030 2000-08-26 Miles Bader <miles@gnu.org>
10031
10032 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
10033 * xfaces.c (QCinherit): New variable.
10034 (syms_of_xfaces): Initialize it.
10035 (LFACE_INHERIT): New macro.
10036 (Finternal_get_lisp_face_attribute)
10037 (merge_face_vector_with_property)
10038 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
10039 (check_lface_attrs): Allow new types of face height. Check
10040 inherit attribute.
10041 (CYCLE_CHECK): New macro.
10042 (merge_face_inheritance): New function.
10043 (merge_face_vectors): Merge inherited faces too. Add F and
10044 CYCLE_CHECK arguments.
10045 (merge_face_vector_with_property, Finternal_merge_in_global_face)
10046 (lookup_named_face, lookup_derived_face, realize_named_face)
10047 (face_at_string_position, face_at_buffer_position): Supply
10048 new F and CYCLE_CHECK arguments to merge_face_vectors.
10049 (merge_face_heights): New function.
10050 (merge_face_vectors, merge_face_vector_with_property)
10051 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
10052 handle relative face heights.
10053 (lface_same_font_attributes_p): Compare heights using EQ.
10054
10055 2000-08-26 Kenichi Handa <handa@etl.go.jp>
10056
10057 * charset.c (char_to_string): Check the character validity.
10058 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
10059
10060 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
10061
10062 * regex.c (PUSH_FAILURE_COUNT): New macro.
10063 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
10064 Handle popping of a register's or a counter's data.
10065 (POP_FAILURE_POINT): Use the new name.
10066 (re_match_2_internal): Push counter data on the stack for succeed_n,
10067 jump_n and set_number_at and remove misleading dead code in succeed_n.
10068
10069 2000-08-25 Gerd Moellmann <gerd@gnu.org>
10070
10071 * xdisp.c (redisplay_internal): If considering all windows on all
10072 frames, update the display for each frame as soon as possible,
10073 instead of first building all desired matrices for all frames, and
10074 then updating them all.
10075 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
10076
10077 2000-08-24 Gerd Moellmann <gerd@gnu.org>
10078
10079 * bytecode.c (mark_byte_stack): Add a comment.
10080
10081 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
10082 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
10083 a graphical frame.
10084
10085 2000-08-24 Kenichi Handa <handa@etl.go.jp>
10086
10087 * minibuf.c (do_completion): Always use compare-string, not
10088 string-equal because the latter doesn't pay attention to
10089 multibyteness of strings.
10090
10091 * process.c (create_process): Don't setup raw-text coding here.
10092 (Fopen_network_stream): Don't set coding->src_multibyte and
10093 coding->dst_multibyte here.
10094 (read_process_output): For process filter, return unibyte string
10095 if default-enable-multibyte-characters is nil.
10096 (send_process): If OBJECT is multibyte text, be sure to encoded it
10097 by the specified coding system for the process. Otherwise, setup
10098 raw-text coding.
10099 (init_process): Don't initialize default-process-coding-system here.
10100
10101 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
10102
10103 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
10104 <scroll-down-aggressively>: Likewise.
10105
10106 2000-08-23 Kenichi Handa <handa@etl.go.jp>
10107
10108 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
10109 zero. Set coding->produced_char correctly.
10110
10111 2000-08-22 Andrew Innes <andrewi@gnu.org>
10112
10113 * makefile.w32-in: New file.
10114
10115 * unexw32.c (unexec): Ignore old_name, and use the actual location
10116 of the current executable instead. Base new_name on this.
10117
10118 * w32proc.c (create_child): Remove reference to security
10119 descriptor, which isn't needed and doesn't compile with mingw32.
10120
10121 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10122 up dllimport attributes.
10123 (x_update_window_end): Update prototype.
10124
10125 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
10126 extern, which screws up dllimport attributes.
10127
10128 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10129 up dllimport attributes.
10130
10131 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
10132 screws up dllimport attributes.
10133
10134 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10135 up dllimport attributes.
10136 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
10137 screws up dllimport attributes.
10138
10139 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10140 up dllimport attributes.
10141
10142 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
10143 screws up dllimport attributes.
10144
10145 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
10146 screws up dllimport attributes.
10147
10148 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10149 up dllimport attributes.
10150
10151 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
10152 unnecessary extern, which screws up dllimport attributes.
10153 (main): Ditto.
10154
10155 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10156 up dllimport attributes.
10157
10158 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
10159 unnecessary extern, which screws up dllimport attributes.
10160
10161 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
10162 screws up dllimport attributes.
10163
10164 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
10165 up dllimport attributes.
10166
10167 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
10168
10169 * w32bdf.c (search_file_line):
10170 (set_bdf_font_info):
10171 (seek_char):
10172 (w32_get_bdf_glyph):
10173 (w32_BDF_to_x_font): Fix compile warnings.
10174
10175 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
10176
10177 * w32select.c: Include keyboard.h before frame.h.
10178
10179 * w32fns.c (max): Define macro.
10180 (JOHAB_CHARSET): Define if not known.
10181 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
10182 (Fx_show_tip): Synch with X version.
10183
10184 * w32xfns.c: Include keyboard.h before frame.h.
10185
10186 * w32fns.c: Include keyboard.h before frame.h.
10187
10188 * w32term.c: Include keyboard.h before frame.h.
10189
10190 * fontset.c: Include keyboard.h before frame.h.
10191
10192 * w32inevt.c: Include keyboard.h before frame.h.
10193 (MOUSE_MOVED): Define if not known.
10194
10195 * minibuf.c: Include keyboard.h before frame.h.
10196
10197 * keyboard.c: Include keyboard.h before frame.h.
10198
10199 * indent.c: Include keyboard.h before frame.h.
10200
10201 * dispnew.c: Include keyboard.h before frame.h.
10202
10203 * buffer.c: Include keyboard.h before frame.h.
10204
10205 * alloc.c: Include keyboard.h before frame.h.
10206
10207 * print.c: Include keyboard.h before frame.h.
10208
10209 * process.c: Include keyboard.h before frame.h.
10210
10211 * scroll.c: Include keyboard.h before frame.h.
10212
10213 * sysdep.c: Include keyboard.h before frame.h.
10214
10215 * term.c: Include keyboard.h before frame.h.
10216
10217 * window.c: Include keyboard.h before frame.h.
10218
10219 * xdisp.c: Include keyboard.h before frame.h.
10220 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
10221
10222 * frame.c: Include keyboard.h before frame.h.
10223
10224 * w32heap.h: Undefine min, max.
10225
10226 * w32gui.h: Undefine min, max.
10227
10228 * unexw32.c: Change PUCHAR to PCHAR.
10229 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
10230 (relocate_offset):
10231 (get_section_info):
10232 (copy_executable_and_dump_data): Remove unnecessary static defs.
10233 (copy_executable_and_dump_data): Fix compile warnings.
10234
10235 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
10236
10237 * w32console.c (min): Define macro.
10238 (clear_frame, write_glyphs): Fix compile warning.
10239
10240 * w32proc.c (compare_env):
10241 (find_child_console): Fix compile warning.
10242
10243 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
10244 sys_errlist instead of _sys_errlist.
10245 (get_emacs_configuration_options): New function.
10246
10247 * s/ms-w32.h (sys_nerr): Provide default definition.
10248 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
10249 name with _ prepended.
10250 (NSIG): Define if not known.
10251 (get_emacs_configuration): Provide extern declaration.
10252 (get_emacs_configuration_options): Provide extern declaration.
10253 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
10254
10255 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
10256 (map_w32_filename):
10257 (read_unc_volume): Fix compile warning.
10258
10259 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
10260 definitions from being used.
10261
10262 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
10263
10264 * w32.c (unc_volume_file_attributes):
10265 (open_unc_volume): Make arg const.
10266
10267 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
10268 (read_input_waiting): Remove excess parameter.
10269
10270 * w32.c (init_environment): Call _access.
10271 (check_windows_init_file): Call _close.
10272 (init_user_info): Call _putenv.
10273 (init_environment): Call _putenv and _strdup.
10274 (init_ntproc): Reset volume info cache on startup.
10275
10276 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
10277 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
10278 cannot override the CRT malloc.
10279
10280 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
10281 (LINK_FLAGS): Append to original value of LINK_FLAGS.
10282
10283 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
10284 unless we are linking with a static CRT.
10285 (RVA_TO_PTR): Cast result to unsigned char*.
10286
10287 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
10288 (add_volume_info): Use xstrdup.
10289
10290 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
10291
10292 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
10293 (do_completion, Fminibuffer_complete_word): Use it.
10294 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
10295 var so it can take non-boolean values.
10296
10297 2000-08-21 Gerd Moellmann <gerd@gnu.org>
10298
10299 * editfns.c (find_field): Formatting changes.
10300 (toplevel): Some old-style function forward declarations
10301 changed to prototypes, some new protypes added, some functions
10302 made static.
10303
10304 * lisp.h (set_time_zone_rule): Add prototype.
10305 (use_dialog_box): External declaration.
10306
10307 * keyboard.c (gen_help_event): Add parameter SIZE.
10308 (kbd_buffer_events_waiting): Slightly rewritten.
10309 (clear_event): New function.
10310 (kbd_buffer_get_event): Use it, and clear the input_events of
10311 HELP_EVENTs.
10312 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
10313 don't fill the newly created array with nils.
10314 (toplevel): Convert some old-style function forward declarations
10315 to prototypes.
10316
10317 * keyboard.h (gen_help_event): Change prototype.
10318
10319 * xterm.c (XTread_socket): Change calls to gen_help_event.
10320
10321 * w32term.c (w32_read_socket): Change calls to gen_help_event.
10322
10323 * eval.c (Fmacroexpand): Doc fix.
10324
10325 2000-08-20 Jason Rumney <jasonr@gnu.org>
10326
10327 * w32term.h (x_display_info_for_display): Remove as this function
10328 does not exist on W32.
10329
10330 * w32term.c (help_echo_window): New variable.
10331 (syms_of_w32term): staticpro it.
10332 (note_mode_line_highlight): Set it.
10333 (XTextExtents16): Removed as there is no equivalent on W32.
10334 (x_compute_glyph_string_overhangs): Incomplete body removed, as
10335 the X way of doing this will not work for W32.
10336 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
10337 (x_draw_image_foreground): Avoid drawing outside of the clip area
10338 when image doesn't have a mask.
10339 (note_mouse_highlight): Process overlays in the right order of
10340 priority. Set help_echo_window.
10341 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
10342 because that's more visible for large images.
10343
10344 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
10345 name to single_keymap_panes.
10346 (w32_menu_show): Set wv->title when dealing with titles.
10347 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
10348
10349 2000-08-21 Miles Bader <miles@gnu.org>
10350
10351 * minibuf.c (do_completion): Try again if we rewrite the input
10352 string, but no completion was done, so that any completion message
10353 will be correct.
10354
10355 2000-08-20 Gerd Moellmann <gerd@gnu.org>
10356
10357 * xfaces.c (lface_equal_p): Compare strings differently.
10358 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
10359 (realize_tty_face): Use them.
10360 (syms_of_xfaces): Initialize new variables.
10361 (map_tty_color): New function, extracted from realize_tty_face.
10362 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
10363 foreground or background color, store the new color name in the
10364 realized face; previous code trying to do this had no effect.
10365 (realize_tty_face): Use map_tty_color.
10366 (Fclear_face_cache): Set face_change_count and ensure thorough
10367 redisplay.
10368
10369 2000-08-19 Gerd Moellmann <gerd@gnu.org>
10370
10371 * undo.c (record_first_change, record_marker_adjustment): Don't
10372 use XBUFFER on last_undo_buffer which might not be a buffer.
10373
10374 2000-08-18 Kenichi Handa <handa@etl.go.jp>
10375
10376 * coding.c (decode_coding_string): Set members consumed,
10377 consumed_char, produced, produced_char of *coding correctly. If
10378 decode_coding doesn't consume any byte, don't try anymore.
10379 (encode_coding_string): Likewise.
10380
10381 2000-08-18 Gerd Moellmann <gerd@gnu.org>
10382
10383 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
10384 conditional have void type, for Standard C compilers.
10385
10386 * xdisp.c (redisplay_internal): Compare windows for equality with
10387 EQ, instead of applying XWINDOW to something that might not
10388 be a window.
10389
10390 2000-08-18 Kenichi Handa <handa@etl.go.jp>
10391
10392 * fontset.c (Finternal_char_font): Search only the selected frame
10393 for a window of the current buffer.
10394
10395 2000-08-18 Gerd Moellmann <gerd@gnu.org>
10396
10397 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
10398 Lisp_Objects.
10399
10400 * keyboard.c (kbd_buffer_get_event): Handle the case that the
10401 second half of a HELP_EVENT is found at the start of kbd_buffer.
10402
10403 2000-08-18 Miles Bader <miles@gnu.org>
10404
10405 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
10406
10407 * editfns.c (save_restriction_save): Rewrite to use markers.
10408 (save_restriction_restore): Rewrite to understand new form of data
10409 saved by save_restriction_save.
10410 (Fsave_restriction): Remove cautionary note in doc-string.
10411
10412 2000-08-17 Gerd Moellmann <gerd@gnu.org>
10413
10414 * fileio.c (build_annotations): Add a comment explaining the
10415 return value of format-annotate-function. Replace a spurious call
10416 to Flength with a CONSP test. Call format-annotate-function with
10417 a fifth arg specifying how many times the function is been called
10418 in a row, to let it choose temporary buffers appropriately.
10419
10420 2000-08-17 Dave Love <fx@gnu.org>
10421
10422 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
10423 declare make_temp_name twice.
10424
10425 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
10426 (unreadpure): Give it an arg.
10427
10428 * unexalpha.c: Prototype fatal_unexec, mark_x,
10429 update_dynamic_symbols. Declare unexec as void.
10430
10431 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
10432 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
10433
10434 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
10435 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
10436
10437 * alloca.c: Use #error.
10438 [POINTER_TYPE]: Use it.
10439
10440 * eval.c (Fdefvar): Doc fix.
10441
10442 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
10443 INITIALIZE_INTERVAL.
10444
10445 * buffer.h: Avoid DECLARE_INTERVALS.
10446
10447 * config.in: Add size_t.
10448
10449 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
10450
10451 * w16select.c (set_clipboard_data): If there's not enough memory
10452 to put text into clipboard, return 1, as Fw16_set_clipboard_data
10453 expects. In case of other failures, return 3.
10454 (system_error_msg): New error message.
10455 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
10456 system_error_msg.
10457
10458 2000-08-16 Gerd Moellmann <gerd@gnu.org>
10459
10460 * term.c (write_glyphs): Also turn off inverse video after turning
10461 off other appearances in case TS_exit_attribute_mode is not equal
10462 to TS_end_standout_mode.
10463 (insert_glyphs): Turn inverse video on/off for each run of glyphs
10464 with the same face.
10465 (turn_off_face): Reset standout_mode only if
10466 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
10467 is equal to TS_end_standout_mode.
10468
10469 2000-08-16 Kenichi Handa <handa@etl.go.jp>
10470
10471 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
10472 sequence at the end of the source block.
10473
10474 * ccl.c (Fccl_program_p): Docstring modified.
10475 (Fccl_execute): Likewise.
10476 (Fccl_execute_on_string): Likewise.
10477
10478 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
10479
10480 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
10481
10482 2000-08-16 Kenichi Handa <handa@etl.go.jp>
10483
10484 The following changes are mainly to fix bugs of
10485 encode/decode-coding-string failing if encoding/decoding return
10486 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
10487 variable conversion_buffer.
10488
10489 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
10490 decrement dst_end to avoid buffer overflow in the later call of
10491 string_as_multibyte
10492
10493 * coding.h (conversion_buffer_size, conversion_buffer)
10494 (get_conversion_buffer): Extern deleted.
10495
10496 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
10497 (conversion_buffer, conversion_buffer_size): Variables deleted.
10498 (get_conversion_buffer): Function deleted.
10499 (struct conversion_buffer): New structure.
10500 (MAX_ALLOCA): New macro.
10501 (allocate_conversion_buffer): New macro.
10502 (extend_conversion_buffer, free_conversion_buffer): New functions.
10503 (ccl_coding_driver): Set coding->result.
10504 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
10505 this is the last block of source.
10506 (encode_coding): Likewise. Handle the source block as the last
10507 one only when the whole source text is consumed.
10508 (decode_coding_string): Handle the case that the output buffer is
10509 too small to decode the whole source text. Use
10510 allocate_conversion_buffer, extend_conversion_buffer and
10511 free_conversion_buffer, not get_conversion_buffer.
10512 (encode_coding_string): Likewise.
10513 (init_coding): Function deleted.
10514 (init_coding_once): Delete code to initialize conversion_buffer_size.
10515
10516 * emacs.c (main): Don't call init_coding.
10517
10518 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
10519
10520 * term.c (write_glyphs): Use a locally declared conversion_buffer.
10521 (insert_glyphs): Likewise.
10522
10523 * w32console.c (write_glyphs): Use a locally declared
10524 conversion_buffer.
10525
10526 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
10527
10528 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
10529 member of display_info is NULL.
10530
10531 2000-08-15 Gerd Moellmann <gerd@gnu.org>
10532
10533 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
10534
10535 * term.c (turn_off_face): Reset standout_mode when resetting
10536 appearances with capability `me'.
10537 (write_glyphs): Switch on inverse video before each face change.
10538
10539 2000-08-14 Dave Love <fx@gnu.org>
10540
10541 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
10542 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
10543 (lisp_free): Declare and make static.
10544
10545 * window.c: Fix embedded comment.
10546 (syms_of_window): Fix doc string.
10547
10548 2000-08-14 Gerd Moellmann <gerd@gnu.org>
10549
10550 * keymap.c (push_key_description): If C without modifiers is < 32,
10551 make sure to print `C-' before `M-', like in the manual.
10552
10553 2000-08-11 Gerd Moellmann <gerd@gnu.org>
10554
10555 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
10556 since they aren't relocated anymore.
10557 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
10558
10559 * xdisp.c (try_cursor_movement): Fix handling of cursor in
10560 partially visible line which is smaller than the window's height.
10561
10562 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10563
10564 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
10565 the multibyte form of eight-bit-control characters.
10566 (Fccl_execute_on_string): Initialize ccl->multibyte.
10567
10568 * ccl.h (struct ccl_program): New member multibyte.
10569
10570 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
10571
10572 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10573
10574 * regex.c (regex_compile) <normal_char>: Pay attention to
10575 multibyteness.
10576 (analyse_first) <exactn>: Setup fastmap correctly for
10577 eight-bit-control characters.
10578
10579 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10580
10581 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
10582
10583 * keyboard.c (make_lispy_event): Handle the new event type
10584 multibyte_char_keystroke.
10585
10586 * xterm.c: Include coding.h.
10587 (XTread_socket): Work around a bug of XmbLookupString. If the
10588 input is from XIM, decode it according to the current locale. In
10589 that case, generate multibyte_char_keystroke events.
10590
10591 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10592
10593 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
10594 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
10595
10596 2000-08-10 Gerd Moellmann <gerd@gnu.org>
10597
10598 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
10599 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
10600 (move_it_in_display_line_to): Record iterator's ascent and descent
10601 before producing glyphs, and restore them when we know the glyph
10602 doesn't fit on the line.
10603 (move_it_to): Restructured so that it's easier to debug. If
10604 moving to a vpos, and not moving to an x or character position,
10605 stop as soon as the specified vpos is reached; don't move further
10606 into that line because that might change the computed line height.
10607 (try_cursor_movement): New function, extracted from the cursor
10608 movement branch of redisplay_window. If ending on a partially
10609 visible line, don't try to scroll if the cursor line is taller
10610 than the window.
10611 (redisplay_window): Use try_cursor_movement.
10612
10613 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
10614 because that function doesn't cope with variable-height lines.
10615
10616 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
10617 box cursor because that's better visible for large images.
10618
10619 2000-08-10 Miles Bader <miles@gnu.org>
10620
10621 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
10622
10623 2000-08-10 Gerd Moellmann <gerd@gnu.org>
10624
10625 * xdisp.c (Vmessages_buffer_name): New variable.
10626 (message_dolog): Use it.
10627 (syms_of_xdisp): Initialize it.
10628
10629 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
10630
10631 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
10632 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
10633 redundant now that keyboard.h is included.
10634
10635 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
10636
10637 * keyboard.c (kbd_buffer_events_waiting): New function.
10638
10639 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
10640
10641 * msdos.c: Include keyboard.h.
10642 (XMenuActivate): Empty no_event events from the event buffer. If
10643 no events are left after that, call clear_input_pending.
10644 (mouse_clear_clicks): New function, code moved from mouse_init.
10645 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
10646 mouse driver to ``forget'' any past clicks.
10647
10648 * Makefile.in (msdos.o): Depend on keyboard.h.
10649
10650 2000-08-09 Gerd Moellmann <gerd@gnu.org>
10651
10652 * lisp.h (input_pending): External declaration.
10653
10654 * dispextern.h (Qredisplay_dont_pause): Declare extern.
10655
10656 * xdisp.c (echo_area_display): Display thoroughly if input is
10657 pending. Bind redisplay-dont-pause to t during the redisplay.
10658 in case input is pending.
10659
10660 * dispnew.c (Qredisplay_dont_pause): New variable.
10661 (syms_of_display): Initialize and staticpro it.
10662 (update_frame_1): Don't interrupt the display for pending input if
10663 redisplay_dont_pause is set.
10664
10665 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
10666
10667 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
10668
10669 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
10670
10671 * callproc.c (Fcall_process): Terminate the unwind-protect around
10672 the post-read-conversion of coding system.
10673
10674 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
10675 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
10676 * buffer.h (overlays_at): Update prototype.
10677 * xdisp.c (next_overlay_change): Update call to overlays_at.
10678 * xfaces.c (face_at_buffer_position): Likewise.
10679 * textprop.c (Fget_char_property): Likewise.
10680 * xterm.c (note_mouse_highlight): Likewise.
10681
10682 * minibuf.c (do_completion): Don't consider a simple change of
10683 case as `completion'.
10684
10685 2000-08-08 Ken Raeburn <raeburn@gnu.org>
10686
10687 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
10688 * undo.c (record_delete): Make sure last_point_position_buffer is
10689 a buffer before comparing pointers.
10690
10691 * coding.h (decode_coding_string): Declare.
10692
10693 * intervals.h (Fprevious_single_char_property_change): Declare.
10694
10695 * textprop.c (Fprevious_single_char_property_change): Don't do
10696 arithmetic directly on lisp objects.
10697
10698 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
10699
10700 * keyboard.h (menu_item_eval_property): Declare.
10701
10702 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
10703 reuse as buffer name, instead of recreating (and discarding) every
10704 time a message is logged.
10705 (with_echo_area_buffer): Make callback arg A2 a lisp object.
10706 (current_message_1, truncate_message_1, set_message_1)
10707 (display_echo_area_1, resize_mini_window_1): Signatures changed.
10708 (current_message, truncate_echo_area, display_echo_area)
10709 (resize_echo_area_axactly): Changed calls.
10710
10711 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
10712 Lisp object.
10713 (Ffind_coding_systems_region_internal): First argument to Fappend
10714 must be an integer, not a Lisp object.
10715
10716 2000-08-08 Kenichi Handa <handa@etl.go.jp>
10717
10718 * charset.c (Fchar_width): Doc fix.
10719
10720 2000-08-08 Gerd Moellmann <gerd@gnu.org>
10721
10722 * charset.c (Fstring_width): Doc fix.
10723
10724 2000-08-07 Gerd Moellmann <gerd@gnu.org>
10725
10726 * xdisp.c (start_display): When starting display on a continuation
10727 line, clear ascent and descent members of the iterator structure;
10728 the height of the continued line does not affect the height of the
10729 continuation line.
10730 (make_cursor_line_fully_visible): Do nothing if cursor is on a
10731 line taller than the window.
10732 (redisplay_window) <forced window start>: Handle case that the
10733 middle of the window is not found in any row.
10734 (dump_glyph_row): Show more information.
10735 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
10736 first text line in a glyph matrix.
10737
10738 * xterm.c (x_draw_image_foreground): Avoid drawing outside
10739 of the clip area when image doesn't have a mask.
10740
10741 * fns.c (sweep_weak_table): Fix survival conditions for
10742 key-or-value and key-and-value weakness.
10743
10744 * .gdbinit (xhashtable): New command.
10745
10746 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
10747 tables out of the list of all weak hash tables.
10748
10749 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
10750 a new buffer is created, make sure echo_area_buffer[] references
10751 the new buffer.
10752
10753 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
10754
10755 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
10756 the doc string.
10757
10758 2000-08-07 Kenichi Handa <handa@etl.go.jp>
10759
10760 * syntax.c (skip_chars): Fix previous change. Make the handling
10761 of unibyte string consistent with that of regex search.
10762
10763 2000-08-05 Gerd Moellmann <gerd@gnu.org>
10764
10765 * xmenu.c (popup_get_selection): Use xfree instead of free.
10766
10767 * fileio.c (Finsert_file_contents): Use xfree instead of free.
10768
10769 * editfns.c (Ftranspose_regions): Use xfree instead of free.
10770
10771 * callproc.c (child_setup): Use xfree instead of free.
10772
10773 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
10774 instead of malloc.
10775 (run_mac_command, closedir): Use `xfree' instead of `free'.
10776
10777 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
10778
10779 * eval.c (error): Use xfree instead of free.
10780
10781 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
10782
10783 * fns.c: Replace `illegal' with `invalid'.
10784 (Fmake_hash_table, make_hash_table): Allow table size of 0.
10785
10786 2000-08-05 Kenichi Handa <handa@etl.go.jp>
10787
10788 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
10789 conversion.
10790
10791 2000-08-04 Noah Friedman <friedman@splode.com>
10792
10793 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
10794 docstring.
10795
10796 2000-08-04 Gerd Moellmann <gerd@gnu.org>
10797
10798 * syntax.c (skip_chars): Fix typo in error message.
10799
10800 2000-08-04 Andreas Schwab <schwab@suse.de>
10801
10802 * m/ia64.h: Moved from s/ia64.h.
10803
10804 2000-08-04 Kenichi Handa <handa@etl.go.jp>
10805
10806 * process.c (read_process_output): Big simplification. Handle
10807 composition and post-read-conversion of coding system correctly.
10808 (send_process): Handle composition correctly.
10809
10810 * callproc.c (Fcall_process): Handle post-read-conversion of
10811 coding system if any.
10812
10813 * coding.c (decode_coding_iso2022): More strict check for handling
10814 single shifting.
10815 (coding_restore_composition): Pay attention to the case that
10816 cmp_data is not set properly (because of invalid code in the
10817 source text).
10818 (run_pre_post_conversion_on_str): Include text properties in the
10819 resulting string.
10820 (decode_coding_string): Set members of coding correctly.
10821
10822 2000-08-03 Gerd Moellmann <gerd@gnu.org>
10823
10824 * s/ia64.h: New file.
10825
10826 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
10827 Use NULL instead of 0 at the end of variable argument list of
10828 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
10829 sizeof (int) < sizeof (void *).
10830
10831 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
10832 of variable argument lists of XtVaGetValues and XtVaSetValues.
10833
10834 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
10835 variable argument lists of XtVaGetValues and XtVaSetValues.
10836
10837 2000-08-02 Gerd Moellmann <gerd@gnu.org>
10838
10839 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
10840 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
10841
10842 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
10843 prototype.
10844
10845 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
10846 in call to Fsingle_key_description.
10847
10848 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
10849 Callers changed.
10850
10851 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
10852
10853 * window.c (display_buffer_reuse_frames): New variable.
10854 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
10855 frames displaying BUFFER.
10856 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
10857
10858 2000-08-01 Miles Bader <miles@gnu.org>
10859
10860 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
10861 when to constrain NEW_POS (they were pretty screwed up before).
10862
10863 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
10864
10865 * msdos.c (run_msdos_command): Save and restore the master
10866 environment, for the case that child_setup signals an error.
10867 When mirroring slashes in DOS shell commands, don't fail when
10868 argv[2] has embedded blanks.
10869 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
10870 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
10871 (dos_ttraw): Call mouse_setup_buttons.
10872
10873 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
10874 using alloca; free it after run_msdos_command returns.
10875
10876 2000-07-27 Dave Love <fx@gnu.org>
10877
10878 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
10879 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
10880
10881 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
10882
10883 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
10884
10885 * editfns.c (lisp_time_argument): Fix last change.
10886
10887 2000-07-27 Gerd Moellmann <gerd@gnu.org>
10888
10889 * fns.c (Fdelete): Make it work on vectors and strings in addition
10890 to lists.
10891
10892 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
10893 (syms_of_fns): Initialize new variables.
10894 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
10895 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
10896 weakness, with t meaning the same as `key-and-value'.
10897
10898 2000-07-27 Kenichi Handa <handa@etl.go.jp>
10899
10900 * coding.h (struct coding_system): Member safe_charset deleted.
10901
10902 * coding.c (Qsafe_charsets): This variable deleted.
10903 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
10904 New variables.
10905 (coding_safe_chars): New function.
10906 (CODING_SAFE_CHAR_P): New macro.
10907 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
10908 checking safe_charsets member of the coding system. Caller changed.
10909 (detect_coding_iso2022): New local variable safe_chars.
10910 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
10911 safe_charsets member of the coding system.
10912 (decode_coding_iso2022): New local variable safe_chars.
10913 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
10914 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
10915 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
10916 (ENCODE_UNSAFE_CHARACTER): New macro.
10917 (encode_coding_iso2022): New local variable safe_chars. Check
10918 unsafe chars.
10919 (setup_coding_system): Delete the code to initialize
10920 coding->safe_charses
10921 (intersection, find_safe_codings): New functions.
10922 (Ffind_coding_systems_region_internal): New function.
10923 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
10924 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
10925 variable and initialize it.
10926
10927 * fns.c (char_table_ref_and_index): New function.
10928
10929 * lisp.h (char_table_ref_and_index): Add prototype.
10930
10931 2000-07-26 Sam Steingold <sds@gnu.org>
10932
10933 * editfns.c (lisp_time_argument): Added third argument `usec'.
10934 (Ffloat_time): New built-in Lisp function.
10935
10936 2000-07-26 Gerd Moellmann <gerd@gnu.org>
10937
10938 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
10939 for the character code.
10940
10941 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
10942 GNU/Linux.
10943
10944 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
10945 if called for a popup menu.
10946 (xmenu_show): Store help string in widget values.
10947
10948 2000-07-26 Dave Love <fx@gnu.org>
10949
10950 * syswait.h: Move some definitions.
10951 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
10952 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
10953 perspicuous definitions.
10954 (WTERMSIG): Fix bit pattern used.
10955
10956 2000-07-26 Kenichi Handa <handa@etl.go.jp>
10957
10958 * print.c (print_object): If vector printing is truncated, print
10959 "..." to indicate it as well as the case of list printing.
10960
10961 2000-07-25 Gerd Moellmann <gerd@gnu.org>
10962
10963 * xdisp.c (next_element_from_display_vector): Improve comments.
10964
10965 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
10966 for the character code, and the rest for the face id as in 20.x.
10967 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
10968
10969 * window.c (window_display_table): Cleaned up.
10970
10971 * syntax.c (Fforward_word): Add last arg nil in call of
10972 Fconstrain_to_field.
10973
10974 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
10975
10976 * fileio.c (Frename_file) [DOS_NT]: If the file names are
10977 identical but for the letter-case, don't call
10978 barf_or_query_if_file_exists.
10979
10980 2000-07-25 Miles Bader <miles@gnu.org>
10981
10982 * editfns.c (find_field): Honor special `boundary' fields.
10983 (Qboundary): New variables.
10984 (syms_of_editfns): Initialize Qboundary.
10985 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
10986 Use scan_buffer instead of find_before_next_newline, because it
10987 allows us to detect the boundary case where there's a newline at
10988 the search limit.
10989 * lisp.h (Fconstrain_to_field): Update external declaration.
10990
10991 2000-07-24 Gerd Moellmann <gerd@gnu.org>
10992
10993 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
10994 if that is nil.
10995
10996 2000-07-24 Dave Love <fx@gnu.org>
10997
10998 * s/sunos4-0.h, s/sol2.h:
10999 (LIBS_TERMCAP): Move from m/sparc.h.
11000
11001 * m/sparc.h (TERMINFO): Moved to system files (probably only
11002 relevant for sunos4 judging by its vintage).
11003 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
11004 __arch64__.
11005
11006 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
11007
11008 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
11009 name to single_keymap_panes.
11010
11011 2000-07-24 Andreas Schwab <schwab@suse.de>
11012
11013 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
11014
11015 2000-07-24 Gerd Moellmann <gerd@gnu.org>
11016
11017 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
11018 parameters instead of using int parameters. Expect FN to accept
11019 EMACS_INT parameters.
11020 (display_echo_area, resize_echo_area_axactly, current_message)
11021 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
11022 with new argument list.
11023 (resize_mini_window_1): New callback function.
11024 (current_message_1, truncate_message_1, set_message_1): Change
11025 parameter lists to the new format expected by with_echo_area_buffer.
11026
11027 2000-07-24 Kenichi Handa <handa@etl.go.jp>
11028
11029 * fontset.c (fontset_ref): Remove INLINE declaration.
11030 (fontset_ref_via_base): Likewise.
11031 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
11032 to downcase.
11033
11034 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
11035
11036 * msdos.c (IT_note_mouse_highlight): Process overlays in the
11037 correct order of priority. If help echo was found in an overlay,
11038 use that overlay as the object in which the help echo was found.
11039
11040 2000-07-22 Miles Bader <miles@gnu.org>
11041
11042 * textprop.c (Fprevious_single_char_property_change): The initial
11043 property value should be from the position preceding POSITION, not
11044 following it.
11045
11046 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
11047
11048 * coding.c (syms_of_coding): Doc fix for
11049 inhibit-iso-escape-detection.
11050
11051 2000-07-21 Gerd Moellmann <gerd@gnu.org>
11052
11053 * xterm.c (note_mouse_highlight): Process overlays in the right
11054 order of priority.
11055
11056 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
11057
11058 * xterm.c (note_mouse_highlight): If help-echo was found in an
11059 overlay, use that overlay as the object in which the help was found.
11060
11061 * window.c (foreach_window_1): Fix typo reversing an if-condition.
11062
11063 * window.c (foreach_window): Instead of a fake variable argument
11064 list, take one USER_DATA argument.
11065 (foreach_window_1): Likewise, and call callback functions with two
11066 args, the window and USER_DATA.
11067 (struct check_window_data): New struct.
11068 (check_window_containing): Use it.
11069 (window_from_coordinates): Set up a struct check_window_data for
11070 foreach_window.
11071 (add_window_to_list, freeze_window_start): Change parameters
11072 according to new calling convention.
11073
11074 * window.h (foreach_window): Change prototype.
11075
11076 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
11077
11078 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
11079
11080 * xmenu.c (menu_help_callback): Call show_help_echo with
11081 additional arguments OBJECT and POS.
11082
11083 2000-07-21 Kenichi Handa <handa@etl.go.jp>
11084
11085 * data.c (Faset): Allow storing any multibyte character in a
11086 string. Convert unibyte string to multibyte if necessary.
11087
11088 * xfns.c (x_encode_text): New function.
11089 (x_set_name): Use x_encode_text.
11090 (x_set_title): Likewise.
11091
11092 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
11093
11094 * xterm.h (x_encode_text): Add prototype.
11095
11096 2000-07-20 Dave Love <fx@gnu.org>
11097
11098 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
11099 xfree, not free.
11100
11101 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
11102
11103 * msdos.c (help_echo_window): New variable.
11104 (syms_of_msdos): Initialize and staticpro it.
11105 (IT_note_mode_line_highlight): Set help_echo_window.
11106 (IT_note_mouse_highlight): Ditto.
11107 (dos_rawgetc): Store help_echo_window in the second event produced
11108 for HELP_EVENTs.
11109
11110 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
11111 Record the object that generated the help echo and the position of
11112 that object in help_echo_object and help_echo_pos. Record that
11113 some glyphs in a row are displayed in mouse-face.
11114 (IT_update_begin): Don't clear mouse highlight unless one of the
11115 enabled glyph rows is marked as being displayed in mouse-face.
11116 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
11117 and position recorded in help_echo_object and help_echo_pos to the
11118 event queue.
11119 (IT_menu_display): Accept a new argument PN: the pane number of
11120 the current menu pane. Record the pane number and the item
11121 number of the item which has associated help string.
11122 (XMenuActivate): Update the prototype for help_callback in
11123 function declaration. Call IT_menu_display with the current menu
11124 pane number as an additional argument. Call help_callback with
11125 two additional arguments: the pane number and the item number of
11126 the menu item associated with the help text.
11127 (help_echo_object, help_echo_pos): New variables.
11128 (syms_of_msdos): Initialize them and staticpro help_echo_object.
11129
11130 * msdos.h (XMenuActivate): Update prototype.
11131
11132 2000-07-19 Gerd Moellmann <gerd@gnu.org>
11133
11134 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
11135 Add some more prototypes.
11136
11137 * xterm.c, xterm.h: Add some more prototypes.
11138
11139 * lisp.h (Fnext_single_char_property_change): Add prototype.
11140
11141 * dispnew.c (direct_output_for_insert): Remove confusing
11142 outer local variable mouse_face_overwritten_p.
11143 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
11144
11145 * alloc.c (allocate_string_data): Don't copy old string contents.
11146
11147 2000-07-19 Kenichi Handa <handa@etl.go.jp>
11148
11149 * coding.c (code_convert_region): Delete text properties before
11150 shrinking the conversion region.
11151
11152 2000-07-18 Gerd Moellmann <gerd@gnu.org>
11153
11154 * dispnew.c (update_text_area): Write the whole row if it
11155 has mouse-face in it.
11156
11157 * xfaces.c (face-alternative-font-family-alist): Remove
11158 DEFVAR_LISP; staticpro instead.
11159
11160 * xmenu.c (menu_help_callback): Call show_help_echo with
11161 new arguments.
11162
11163 * keyboard.c (show_help_echo): Add parameter WINDOW.
11164 (read_char): Call show_help_echo with window extracted from Lisp
11165 help event.
11166 (gen_help_event): Add parameter WINDOW.
11167
11168 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
11169
11170 * xterm.c (help_echo_window): New variable.
11171 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
11172 (XTread_socket): Pass help_echo_window to gen_help_event.
11173 (syms_of_xterm): Initialize and staticpro help_echo_window.
11174
11175 2000-07-18 Dave Love <fx@gnu.org>
11176
11177 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
11178
11179 2000-07-18 Gerd Moellmann <gerd@gnu.org>
11180
11181 * alloc.c (allocate_string_data): If string had already data
11182 assigned, copy old contents to new string data.
11183
11184 * coding.c (syms_of_coding): Fix typo in spelling of variable
11185 `inhibit-iso-escape-detection'.
11186
11187 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
11188
11189 * Makefile.in: Add dependencies on dispextern.h.
11190 (alloca.o): Don't define malloc and define EMACS_FREE instead of
11191 `free'; both can conflict with system header files.
11192
11193 2000-07-18 Kenichi Handa <handa@etl.go.jp>
11194
11195 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
11196 undefined.
11197
11198 2000-07-18 Dave Love <fx@gnu.org>
11199
11200 * window.c (Fwindow_list): Declare arg `window'.
11201
11202 2000-07-18 Kenichi Handa <handa@etl.go.jp>
11203
11204 * coding.c (setup_coding_system): Don't override the explicitly
11205 specified designations.
11206
11207 2000-07-15 Miles Bader <miles@gnu.org>
11208
11209 * editfns.c (char_property_eq, char_property_stickiness): Renamed
11210 from `text_property_eq' and `text_property_stickiness', respectively.
11211 (find_field, Fconstrain_to_field, char_property_eq)
11212 (char_property_stickiness): Changed to call char-property functions
11213 instead of text-property-only ones.
11214
11215 * textprop.c (Fnext_single_char_property_change): Made a subr (was
11216 `next_single_char_property_change'). Do more error checking, and
11217 cleanup limit behavior.
11218 (Fprevious_single_char_property_change): New function.
11219 (syms_of_textprop): Initialize new subrs.
11220
11221 * xdisp.c (display_prop_end, invisible_text_between_p):
11222 Call Fnext_single_char_property_change instead of
11223 next_single_char_property_change.
11224
11225 2000-07-15 Jason Rumney <jasonr@gnu.org>
11226
11227 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
11228 after menu is finished with.
11229 (add_menu_item): Only consider wv->title as a menu title.
11230 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
11231
11232 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
11233 null title.
11234 (FONT_REGEXP): Remove unused macro, and its sub-components.
11235 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
11236
11237 * w32term.c (help_echo_object, help_echo_pos): New variables.
11238 (note_mode_line_highlight): Store additional information about the
11239 help-echo in help_echo_object and help_echo_pos. Check both
11240 `local-map' and `keymap' properties for changing the cursor
11241 (note_mouse_highlight): Store additional information about the
11242 help-echo in help_echo_object and help_echo_pos.
11243 (note_tool_bar_highlight): Set help_echo_object to nil and
11244 help_echo_pos to -1.
11245 (w32_read_socket): Use gen_help_event instead of filling
11246 input_events manually.
11247 (syms_of_w32term): Staticpro help_echo_object.
11248 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
11249 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
11250 (x_clear_mouse_face): New function.
11251 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
11252 (x_update_window_begin): No need to turn off the mouse
11253 highlight here.
11254 (show_mouse_face): Set the mouse_face_p flag of glyph rows
11255 depending on whether they contain glyphs highlighted in mouse-face.
11256 (x_fill_stretch_glyph_string): Consume runs of stretch
11257 glyphs instead of a single one.
11258 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
11259 with new argument list.
11260 (x_set_glyph_string_gc): Make sure the face's GC is valid.
11261 (x_append_glyph, x_append_composite_glyph)
11262 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
11263 changes in struct glyph starting 1999-12-27. See comments for
11264 xterm.c on 2000-07-05.
11265
11266 2000-07-14 Sam Steingold <sds@gnu.org>
11267
11268 * xfaces.c (realize_x_face): Fix the last patch:
11269 check `default_face' before dereferencing.
11270
11271 2000-07-14 Dave Love <fx@gnu.org>
11272
11273 * syntax.c (back_comment): Add null default in switch (for pcc).
11274
11275 2000-07-14 Kenichi Handa <handa@etl.go.jp>
11276
11277 * xfaces.c (realize_x_face): Make fontset using the base of the
11278 default_face's fontset, not using the default fontset.
11279
11280 * coding.c (inhibit_iso_escape_detection): New variable.
11281 (syms_of_coding): Make it a Lisp variable.
11282 (detect_coding_iso2022): If inhibit_iso_escape_detection is
11283 nonzero, ignore ISO2022's escape sequence.
11284
11285 2000-07-14 Gerd Moellmann <gerd@gnu.org>
11286
11287 * alloca.c (malloc) [emacs]: Define as xmalloc.
11288
11289 * xfns.c (Fx_show_tip): If frame parameters contain a position,
11290 use that instead of the mouse position. Add parameters DX and DY.
11291
11292 * dispextern.h (Fx_show_tip): Adjust number of parameters
11293 in prototype.
11294
11295 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
11296 if HELP is a function, call it with OBJECT and POS as parameters
11297 to get the help to display.
11298 (gen_help_event, kbd_buffer_store_help_event): New functions.
11299 (kbd_buffer_get_event): Construct the Lisp help-event differently.
11300 (read_char): Call show_help_echo with new parameters.
11301
11302 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
11303 Add prototypes.
11304
11305 * xterm.c (help_echo_object, help_echo_pos): New variables.
11306 (note_mode_line_highlight): Store additional information about the
11307 help-echo in help_echo_object and help_echo_pos. Check both
11308 `local-map' and `keymap' properties for changing the cursor
11309 (note_mouse_highlight): Store additional information about the
11310 help-echo in help_echo_object and help_echo_pos.
11311 (note_tool_bar_highlight): Set help_echo_object to nil and
11312 help_echo_pos to -1.
11313 (XTread_socket): Use gen_help_event instead of filling
11314 input_events manually.
11315 (syms_of_xterm): Staticpro help_echo_object.
11316
11317 * xmenu.c (menu_highlight_callback): Use
11318 kbd_buffer_store_help_event instead of setting up and input_event
11319 structure manually.
11320
11321 * xdisp.c (eval_form): GCPRO argument sexpr.
11322 (call_function): New function.
11323 (handle_single_display_prop): Use call_function and FUNCTIONP
11324 instead of checking whether if font_height is a symbol and
11325 using eval_form.
11326
11327 * eval.c (internal_condition_case_2): New function.
11328
11329 * lisp.h (FUNCTIONP): New macro.
11330 (internal_condition_case_2, call_function): Add prototypes.
11331
11332 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
11333 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
11334 Always set `arg' member of input_events.
11335 (construct_menu_click): Unused function removed.
11336
11337 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
11338
11339 * w32term.c (construct_mouse_click, construct_mouse_wheel)
11340 (construct_drag_n_drop, x_scroll_bar_handle_click)
11341 (w32_read_socket): Always set `arg' member of input_events.
11342
11343 * keyboard.c (show_help_echo): Use eval_form. Add comment.
11344
11345 * lisp.h (eval_form): Add prototype.
11346
11347 * xdisp.c (eval_form): Make it externally visible.
11348
11349 2000-07-13 Gerd Moellmann <gerd@gnu.org>
11350
11351 * xterm.c (x_handle_tool_bar_click): Store the frame in the
11352 frame_or_window slot of TOOL_BAR_EVENT input events instead of
11353 consing. For prefix events, store the frame in the `arg' slot of
11354 the event, otherwise store the key there.
11355 (XTread_socket): Instead of consing, use the frame_or_window slot
11356 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
11357
11358 * xmenu.c (menu_highlight_callback): Store help string in the
11359 `arg' member of the input event; don't cons.
11360 (menubar_selection_callback): Use the `arg' slot of input events
11361 to queue additional information, instead of consing.
11362
11363 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
11364
11365 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
11366 TOOL_BAR_EVENTs.
11367 (w32_read_socket): Adapt to changes in HELP_EVENTs.
11368
11369 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
11370 input events to queue additional information, instead of consing.
11371
11372 * keyboard.c (kbd_buffer_gcpro): Renamed from
11373 kbd_buffer_frame_or_window. Now used for all Lisp objects
11374 referenced from the input queue.
11375 (kbd_buffer_store_event): Always use structure assignment for
11376 copying input events. Record all Lisp objects referenced from
11377 events in kbd_buffer_gcpro.
11378 (kbd_buffer_get_event): Construct Lisp `help-echo' events
11379 differently from input events. Test for prefix menu_bar_events
11380 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
11381 event in kbd_buffer_gcpro to nil.
11382 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
11383 frame_or_window is equal to its arg member as prefix events.
11384 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
11385 used by an input event to nil.
11386 (init_keyboard): Use two times the size of the input queue
11387 for kbd_buffer_gcpro.
11388 (syms_of_keyboard): Likewise.
11389
11390 * emacs.c (handle_USR2_signal, handle_USR1_signal):
11391 Use USER_SIGNAL_EVENT.
11392
11393 * termhooks.h (struct input_event): Add member `arg'.
11394 (MENU_BAR_EVENT): Renamed from menu_bar_event.
11395 (USER_SIGNAL_EVENT): Renamed from user_signal.
11396
11397 * xfaces.c (ASET): Remove definition.
11398
11399 * lisp.h (AREF, ASET, ASIZE): New macros.
11400
11401 * fontset.c (AREF, ASIZE): Remove definitions.
11402
11403 * fns.c (AREF): Remove definition.
11404
11405 * composite.c (AREF): Remove definition.
11406
11407 2000-07-12 Gerd Moellmann <gerd@gnu.org>
11408
11409 * dispnew.c (redraw_overlapped_rows): Add missing local.
11410 (scrolling_window): Remove debug code.
11411
11412 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
11413 Before scrolling, turn off a mouse-highlight in the window
11414 being scrolled.
11415
11416 * xterm.c (x_update_window_end): Add parameter
11417 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
11418 redisplay in XTframe_up_to_date.
11419 (x_clear_mouse_face): New function.
11420 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
11421
11422 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
11423 current glyph row.
11424 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
11425 it when any row is written to that contains glyphs highlighted in
11426 mouse-face.
11427 (update_window): Call the window update end hook with new
11428 parameter MOUSE_FACE_OVERWRITTEN_P.
11429 (direct_output_for_insert): Give up if row contains mouse-face.
11430
11431 * dispextern.h (struct redisplay_interface): Add parameter
11432 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
11433 (clear_mouse_face): New function pointer member.
11434
11435 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
11436
11437 * syntax.c (back_comment): Use one switch rather than a few `if's.
11438 Obey open_paren_in_column_0_is_defun_start.
11439 When reverting to the `slow' method, try to nicely handle the case
11440 of nested comments by checking that the comment-starter we found
11441 does indeed match the comment-ender.
11442 (scan_sexps_forward, scan_sexps_forward):
11443 Ignore excessive opening parenthesis rather than throwing an error.
11444
11445 2000-07-11 Gerd Moellmann <gerd@gnu.org>
11446
11447 * doc.c (Fsubstitute_command_keys): Handle case that a GC
11448 in Fwhere_is_internal or get_keymap_1 relocates string contents.
11449
11450 * dispnew.c (direct_output_forward_char): Give up if currently
11451 displaying a message instead of the minibuffer contents.
11452
11453 * xterm.c (x_update_window_begin): No need to turn off the mouse
11454 highlight here.
11455 (show_mouse_face): Set the mouse_face_p flag of glyph rows
11456 depending on whether they contain glyphs highlighted in mouse-face.
11457
11458 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
11459 compare the mouse_face_p flags of both rows.
11460
11461 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
11462
11463 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
11464
11465 * keyboard.c (show_help_echo): Accept additional parameter
11466 ok_to_overwrite_keystroke_echo.
11467 (read_char): Call show_help_echo with a zero
11468 ok_to_overwrite_keystroke_echo argument.
11469 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
11470 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
11471 ok_to_overwrite_keystroke_echo argument.
11472 * w32menu.c (w32_menu_display_help): Call show_help_echo with
11473 non-zero ok_to_overwrite_keystroke_echo argument.
11474
11475 2000-07-10 Gerd Moellmann <gerd@gnu.org>
11476
11477 * xdisp.c (try_window_id): If changes are all below what is
11478 displayed in the window, and point is in the window, we still
11479 might have to find point on the display.
11480
11481 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
11482 glyphs instead of a single one.
11483 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
11484 with new argument list.
11485 (x_set_glyph_string_gc): Make sure the face's GC is valid.
11486
11487 * keymap.c (get_keymap_1): Add comment that this function can GC.
11488 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
11489 comment that functions can GC.
11490 (Fset_keymap_parent): GCPRO arg KEYMAP.
11491
11492 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
11493
11494 * msdos.c (XMenuActivate): After exiting the menu, restore the
11495 echo area message and erase it.
11496
11497 2000-07-10 Kenichi Handa <handa@etl.go.jp>
11498
11499 * fontset.c (Ffontset_info): Make the return value more compatible
11500 with that of Emacs 20.
11501
11502 2000-07-07 Gerd Moellmann <gerd@gnu.org>
11503
11504 * eval.c (Fsignal): Handle case that backtrace_list is null.
11505
11506 2000-07-07 Kenichi Handa <handa@etl.go.jp>
11507
11508 * ccl.c (Fccl_execute): Typo fixed.
11509
11510 2000-07-06 Gerd Moellmann <gerd@gnu.org>
11511
11512 * window.c (window_loop): Add missing gcpro1 local variable.
11513
11514 * window.c (Fwindow_list): Reverse list at the end.
11515 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
11516 means allow windows on OWINDOW's frame, only.
11517 (window_loop): Simplified; use Fwindow_list.
11518
11519 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
11520
11521 2000-07-05 Gerd Moellmann <gerd@gnu.org>
11522
11523 * xterm.c (XTread_socket): Increment handling_signal at the start,
11524 decrement it at the end.
11525
11526 * eval.c (handling_signal): New variable.
11527 (Fsignal): Abort if handling_signal is non-zero.
11528
11529 * lisp.h (handling_signal): External declaration.
11530
11531 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
11532
11533 2000-07-05 Ken Raeburn <raeburn@gnu.org>
11534
11535 Sound support for NetBSD through "Linux emulation" support:
11536 * config.in (HAVE_SOUNDCARD_H): Undef.
11537 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
11538 * Makefile.in (LIBSOUND): New variable.
11539 (LIBES): Include it.
11540 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
11541 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
11542 (vox_open): Use DEFAULT_SOUND_DEVICE.
11543 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
11544
11545 2000-07-05 Gerd Moellmann <gerd@gnu.org>
11546
11547 * print.c (print_error_message): If Vsignaling_function is set,
11548 show it in *Messages*.
11549
11550 * lisp.h (Vsignaling_function): External declaration.
11551
11552 * eval.c (Vsignaling_function): New variable.
11553 (Fsignal): Compute it.
11554 (syms_of_eval): Staticpro it.
11555
11556 2000-07-05 Dave Love <fx@gnu.org>
11557
11558 * syswait.h: Use the autoconf recommended approach. Old code
11559 #if'd out in case we need to revert.
11560
11561 * config.in (HAVE_SYS_WAIT_H): Added.
11562
11563 2000-07-05 Andrew Innes <andrewi@gnu.org>
11564
11565 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
11566 when non-NULL instead of __morecore, to take account of buffer
11567 memory. This also solves a problem with spurious memory warnings
11568 on Windows.
11569
11570 * ralloc.c: Make real_morecore non-static.
11571
11572 * eval.c (internal_condition_case): Comment out abort if
11573 interrupt_input_blocked is not zero.
11574
11575 * makefile.nt: Add support for `bootstrap' and related targets.
11576 Include minimal debug info in emacs.exe in release build.
11577 Remove all dependencies on lisp.h, and fixup some others.
11578
11579 * w32.c (init_environment): Install code from 20.7 for providing
11580 default values for environment variables, based on the
11581 executable's own location.
11582 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
11583 (sys_socket): Install socket inheritance bug fix from 20.7.
11584
11585 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
11586 here via blockinput.h).
11587
11588 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
11589
11590 * w32menu.c (w32_menu_display_help):
11591 * xmenu.c (menu_help_callback): Use show_help_echo.
11592
11593 * keyboard.h (show_help_echo): Declare.
11594
11595 * keyboard.c (show_help_echo): New function, extracted from read_char.
11596 Feval its `msg' argument if it's a cons cell.
11597 (read_char): Use it.
11598 (follow_key): Pass `autoload' to get_keyelt.
11599
11600 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
11601 (note_tool_bar_highlight, XTread_socket):
11602 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
11603 (dos_rawgetc):
11604 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
11605 (note_tool_bar_highlight, w32_read_socket):
11606 Do not gratuitously ignore non-string `help-echo' properties.
11607
11608 2000-07-05 Gerd Moellmann <gerd@gnu.org>
11609
11610 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
11611
11612 * window.c (delete_all_subwindows): Reset Vwindow_list.
11613
11614 * xterm.c (x_append_glyph, x_append_composite_glyph)
11615 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
11616 changes in struct glyph starting 1999-12-27. Some bit-fields of
11617 struct glyph were not set, which made glyphs unequal when compared
11618 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
11619 effects were the result. This also depended on the contents of
11620 memory returned by xmalloc. If flickering happens again, activate
11621 the code in clear_glyph_row that's in #if 0. If the flickering is
11622 gone with that, chances are that it is caused by something similar.
11623
11624 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
11625
11626 * dispextern.h: Add some comments.
11627
11628 * window.c (add_window_to_list): Add parameter LIST.
11629 (window_list): Order list so that, for each frame, windows are
11630 in canonical order, and so that frames appear in the list in
11631 the order given by Vframe_list.
11632 (next_window): Reverse the handling of NEXT_P.
11633
11634 2000-07-04 Gerd Moellmann <gerd@gnu.org>
11635
11636 * window.c (Vwindow_list): New variable.
11637 (make_window, delete_window): Set Vwindow_list to nil.
11638 (check_window_containing): New function.
11639 (window_from_coordinates): Rewritten.
11640 (add_window_to_list, window_list, candidate_window_p)
11641 (decode_next_window_args, next_window): New functions.
11642 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
11643 (Fwindow_list): New function.
11644 (Fother_window): Cleaned up.
11645 (foreach_window): Add a longer "variable argument list". Let
11646 callback function return 0 to indicate that cycling over windows
11647 should stop.
11648 (foreach_window_1): Likewise.
11649 (freeze_window_start): Return int.
11650 (init_window): New function.
11651 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
11652
11653 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
11654 input_event with bzero.
11655 (main): Call init_window.
11656
11657 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
11658 a menu filter.
11659
11660 2000-07-04 Kenichi Handa <handa@etl.go.jp>
11661
11662 * composite.h (make_composition_value_copy): Extern it.
11663
11664 * composite.c (make_composition_value_copy): New function.
11665
11666 * editfns.c (Fformat): While copying text properties, make each
11667 composition property value a copy.
11668
11669 * fns.c (concat): While copying text properties, make each
11670 composition property value a copy.
11671
11672 2000-07-03 Gerd Moellmann <gerd@gnu.org>
11673
11674 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
11675
11676 * fns.c (sweep_weak_table): Mark only objects that are not
11677 marked already.
11678
11679 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
11680 include those frames as candidates which have their focus
11681 redirected to the minibuffer frame.
11682
11683 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
11684
11685 * fns.c (Fputhash): Return `value' rather than nil.
11686
11687 2000-06-30 Gerd Moellmann <gerd@gnu.org>
11688
11689 * frame.c (next_frame): Don't check focus redirection in case
11690 MINIBUF is a window. Doing so excludes frames using MINIBUF
11691 unless their focus is redirected, which contradicts the
11692 specification of next-frame, and leads to infinite loops in
11693 certain situations when cycling through windows with next-window.
11694
11695 2000-06-30 Kenichi Handa <handa@etl.go.jp>
11696
11697 * coding.c (code_convert_region): Even if the length of text is
11698 zero, try to convert it if coding->type is coding_type_ccl.
11699 (decode_coding_string, encode_coding_string): Likewise.
11700
11701 2000-06-28 Gerd Moellmann <gerd@gnu.org>
11702
11703 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
11704 the display if windows_or_buffers_changed.
11705
11706 * dispnew.c (struct row_entry): New structure.
11707 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
11708 (row_table_size, old_lines, new_lines, old_lines_size)
11709 (new_lines_size, run_pool, runs_size, runs): New variables.
11710 (add_row_entry): New function.
11711 (scrolling_window): Use data structures allocated with xmalloc and
11712 held in global variables, instead of allocating them with alloca and
11713 holding them in local variables. Use a larger hash table whose
11714 size depends on glyph matrix sizes. Don't use bzero to clear the
11715 hash table; instead, clear used slots only.
11716
11717 * fns.c (next_almost_prime): Make it externally visible.
11718
11719 * lisp.h (next_almost_prime): Add prototype.
11720
11721 * s/isc4-0.h (sigunblock): Define.
11722
11723 * s/sco5.h (sigunblock): Define.
11724
11725 2000-06-27 Dave Love <fx@gnu.org>
11726
11727 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
11728 (moved to osf5-0.h).
11729 [!NOT_C_CODE]: Protect string.h stuff.
11730
11731 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
11732 (sys_siglist, NSIG): Definitions moved here from osf1.h.
11733
11734 2000-06-27 Gerd Moellmann <gerd@gnu.org>
11735
11736 * xdisp.c (resize_mini_window): Subtract the extra line spacing
11737 below the last line from the needed window height.
11738
11739 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
11740
11741 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
11742 (Fwidget_get): Use it.
11743 (syms_of_fns): Defsubr it.
11744
11745 2000-06-26 Gerd Moellmann <gerd@gnu.org>
11746
11747 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
11748 display info for XIM.
11749 (xim_open_dpy): Likewise.
11750 (xim_close_dpy): Don't free the display info's XIM.
11751
11752 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
11753
11754 * config.in (USE_XIM): New define.
11755
11756 * keymap.c (get_keyelt): For menu-items containing a `:filter
11757 FILTER', apply FILTER to the menu-item's definition to get the
11758 real definition to use.
11759
11760 * lisp.h (QCfilter): External declaration.
11761
11762 * xfns.c (Fimage_size): New function.
11763 (syms_of_xfns): Defsubr it.
11764
11765 2000-06-26 Andreas Schwab <schwab@suse.de>
11766
11767 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
11768 Fstring_as_unibyte.
11769
11770 2000-06-25 Dave Love <fx@gnu.org>
11771
11772 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
11773
11774 * Makefile.in (blockinput.h): Depend on atimer.h.
11775 (atimer.h): Depend on systime.h.
11776
11777 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
11778
11779 * atimer.h: Protect against multiple inclusion. Include systime.h.
11780
11781 * lisp.h (swap_in_global_binding): Declare.
11782
11783 2000-06-24 Ken Raeburn <raeburn@gnu.org>
11784
11785 * process.c (Fopen_network_stream): Turn off atimers for duration
11786 of call to connect. (Patch from Gerd.)
11787
11788 2000-06-23 Dave Love <fx@gnu.org>
11789
11790 * ralloc.c: Maybe include unistd.h
11791
11792 * emacs.c (setgrp): Undefine before defining.
11793 (malloc_warning, set_time_zone_rule, index): Prototype.
11794
11795 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
11796 HAVE_STRUCT_TIMEZONE.
11797
11798 * s/osf1.h: Move string.h hack here from alpha.h and make it
11799 conditional.
11800 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
11801 _XOPEN_SOURCE.
11802 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
11803 (SOCKLEN_TYPE): Don't define.
11804
11805 * m/alpha.h: Remove string.h hack.
11806
11807 * s/osf5-0.h: New file.
11808
11809 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
11810 include time.h, done by systime.h.
11811 [__FreeBSD__]: Remove redundant includes.
11812
11813 * callproc.c (setpgrp): Undefine before defining.
11814 (delete_temp_file): Return Qnil to avoid warning.
11815
11816 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
11817
11818 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
11819 HAVE_X_WINDOWS.
11820
11821 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
11822
11823 * composite.h (compose_text): Declare.
11824
11825 * xterm.c: Don't include sys/types.h unconditionally. Don't
11826 protect its inclusion with !USG (following xmenu.c).
11827
11828 2000-06-23 Gerd Moellmann <gerd@gnu.org>
11829
11830 * xfns.c (x_create_tip_frame): Initialize frame's colors like
11831 in x_create_frame.
11832
11833 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
11834
11835 * coding.c (decode_eol_post_ccl): Special handling for undecided
11836 and inconsistent EOL types.
11837
11838 2000-06-22 Gerd Moellmann <gerd@gnu.org>
11839
11840 * xrdb.c (x_load_resources): Add default resource for scroll bar's
11841 trough color and main window's background color.
11842
11843 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
11844
11845 * xterm.h (Xt_app_con): External declaration.
11846
11847 * widget.c (EmacsFrameRealize): Fix typo.
11848
11849 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
11850
11851 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
11852 (handle_invisible_prop): Record the start of invisible text in
11853 it->add_overlay_start.
11854 (struct overlay_entry): Add member `overlay'.
11855 (handle_overlay_change): Simplify.
11856 (next_overlay_string): After having processed overlay strings at the
11857 end of the buffer, record that fact in
11858 it->overlay_strings_at_end_processed_p.
11859 (compare_overlay_entries): If before- and after-strings come
11860 from the same overlay, let before-strings come first.
11861 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
11862 (load_overlay_strings): Take it->add_overlay_start into account
11863 when adding overlay strings.
11864
11865 * dispextern.h (struct it): Add member add_overlay_start.
11866
11867 2000-06-22 Dave Love <fx@gnu.org>
11868
11869 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
11870
11871 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
11872
11873 2000-06-22 Kenichi Handa <handa@etl.go.jp>
11874
11875 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
11876 is greater than 0.
11877
11878 2000-06-21 Dave Love <fx@gnu.org>
11879
11880 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
11881
11882 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
11883
11884 * syntax.c (back_comment): Simplify string-parity counting (with
11885 the added benefit of handling multiple string-styles as long as
11886 they are not intertwined).
11887 Jump to the slow code as soon as a comment starter is found in
11888 a "string_lossage" position. Fixes the case: " /* " /* " */.
11889
11890 2000-06-21 Dave Love <fx@gnu.org>
11891
11892 * Makefile.in: Use GETLOADAVG_LIBS.
11893
11894 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
11895 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
11896
11897 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
11898
11899 * syntax.c (describe_syntax): Recognize the `n'estable bit.
11900 (Fforward_comment, scan_lists):
11901 Check the comstyle of single-char comment-starters.
11902 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
11903 we're just at the beginning of the comment (f.ex with (*) ... (*)).
11904 Check the comstyle of single-char comment-starters.
11905 Clarify control-flow around the Scomment case.
11906
11907 2000-06-20 Dave Love <fx@gnu.org>
11908
11909 * fns.c (make_hash_table, maybe_resize_hash_table):
11910 Cast arg of next_almost_prime.
11911
11912 * tparam.c [emacs]: Include lisp.h.
11913
11914 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
11915 and unistd.h.
11916
11917 2000-06-20 Gerd Moellmann <gerd@gnu.org>
11918
11919 * keyboard.c (adjust_point_for_property): Check if display
11920 property should be treated as intangible by looking at its value.
11921
11922 * xdisp.c (single_display_prop_intangible_p)
11923 (display_prop_intangible_p): New functions.
11924
11925 * dispextern.h (display_prop_intangible_p): Add prototype.
11926
11927 * xdisp.c (dump_glyph_row): Show type of glyph->object.
11928
11929 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
11930 argument to sigprocmask.
11931
11932 * s/sco5.h (sigblock): Redefined to pass a pointer as second
11933 argument to sigprocmask.
11934
11935 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
11936 sigprocmask_set, and pass a pointer to it to sigprocmask.
11937
11938 * sysdep.c (sigprocmask_set): New variable.
11939
11940 * fileio.c (make_temp_name): Don't use `%s' in string passed to
11941 report_file_error.
11942
11943 2000-06-20 Sam Steingold <sds@gnu.org>
11944
11945 * xrdb.c: Don't declare xmalloc, xrealloc.
11946
11947 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
11948
11949 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
11950 (re_comp): Cast gettext return value to avoid complaints when
11951 !HAVE_LIBINTL.
11952
11953 2000-06-20 Dave Love <fx@gnu.org>
11954
11955 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
11956
11957 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
11958
11959 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
11960
11961 * m/alpha.h: Don't declare xmalloc, xrealloc.
11962
11963 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
11964
11965 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
11966
11967 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
11968
11969 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
11970 HAVE_GETWD.
11971
11972 * keyboard.h (poll_for_input_1): Declare.
11973
11974 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
11975
11976 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
11977
11978 * doprnt.c: Don't declare xmalloc, xrealloc.
11979
11980 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
11981 (getenv, ctime, getwd): Removed.
11982 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
11983
11984 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
11985 x_set_tool_bar_lines.
11986
11987 * config.in: Add HAVE_GETWD. Move some definitions above
11988 machine/system includes.
11989
11990 2000-06-20 Kenichi Handa <handa@etl.go.jp>
11991
11992 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
11993
11994 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
11995 contain information about ENCODING.
11996
11997 * fontset.c (FONTSET_ASCII): Use the first element of char table
11998 for an ASCII font, not defalt slot.
11999 (fontset_ref_via_base): If FONTSET doesn't contain information for
12000 C, try the default fontset.
12001 (make_fontset): Don't copy the default fontset.
12002 (fontset_font_pattern): Likewise.
12003 (accumulate_font_info): If ELT is nil, use the corresponding
12004 element in the default fontset.
12005
12006 2000-06-19 Dave Love <fx@gnu.org>
12007
12008 * syntax.c (Fparse_partial_sexp): Doc fix.
12009
12010 * regex.h: Test PROTOTYPES as well as __STDC__.
12011
12012 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
12013 errno, strerror. Put text after #endif in comment.
12014
12015 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
12016
12017 * xterm.c (x_frame_of_widget): Likewise.
12018
12019 2000-06-19 Gerd Moellmann <gerd@gnu.org>
12020
12021 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
12022 to Vfundamental_mode_abbrev_table.
12023
12024 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
12025 bogus objects are marked. This slows down GC by ~80 percent, but
12026 it might be worth trying when debugging GC-related problems.
12027 This feature requires conservative stack marking to be enabled.
12028
12029 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
12030 returns XLookupChars, reset `modifiers' to zero.
12031
12032 2000-06-19 Dave Love <fx@gnu.org>
12033
12034 * mktime.c: Unprotoized.
12035
12036 2000-06-19 Richard Stallman <rms@gnu.org>
12037
12038 * data.c (set_internal): If variable is frame-local,
12039 store the new value immediately into the frame parameter alist.
12040
12041 2000-06-19 Ken Raeburn <raeburn@gnu.org>
12042
12043 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
12044 in the custom handler pointer.
12045
12046 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
12047 value, or checks for CHAR_META can fail when Lisp_Object is a
12048 union type.
12049 * keymap.c (get_keyelt): Likewise.
12050
12051 2000-06-19 Kenichi Handa <handa@etl.go.jp>
12052
12053 * ccl.h (struct ccl_program): New member eol_type.
12054 (struct ccl_spec): New member cr_carryover.
12055
12056 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
12057 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
12058
12059 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
12060 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
12061 (decode_eol_post_ccl): New function.
12062 (decode_coding): Don't detect EOL format here for CCL based coding
12063 systems.
12064 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
12065 decode_eol_post_ccl after running the CCL program.
12066 (code_convert_region): Don't detect EOL format here for CCL based
12067 coding systems.
12068 (decode_coding_string): Likewise.
12069
12070 2000-06-18 Ken Raeburn <raeburn@gnu.org>
12071
12072 * charset.c (update_charset_table): Use XINT on "iso_final_char"
12073 when treating it as an integer.
12074
12075 * coding.h (encode_coding_string): Declare.
12076
12077 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
12078 it as an integer.
12079
12080 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
12081 "xkeymap" to avoid shadowing the "enum map_type" value that needs
12082 to be passed to get_local_map.
12083
12084 * sound.c (Fplay_sound): Don't call make_number on
12085 Frun_hook_with_args count argument.
12086
12087 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
12088 for lisp objects in X event structure data field, when lisp
12089 objects are represented with unions.
12090 (x_scroll_bar_to_input_event): Ditto.
12091
12092 2000-06-16 Ken Raeburn <raeburn@gnu.org>
12093
12094 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
12095 termination of string. Fix sense of test whether
12096 Vline_number_display_limit is an integer.
12097
12098 2000-06-16 Gerd Moellmann <gerd@gnu.org>
12099
12100 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
12101 only if HAVE_X_WINDOWS.
12102
12103 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
12104 of titles.
12105
12106 * dispnew.c (update_frame_1): Handle case that cursor vpos is
12107 out of bounds.
12108
12109 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
12110
12111 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
12112 of its headers.
12113
12114 2000-06-15 Kenichi Handa <handa@etl.go.jp>
12115
12116 * coding.c (decode_coding_emacs_mule): Always set src_base at the
12117 start of the while loop.
12118
12119 2000-06-15 Gerd Moellmann <gerd@gnu.org>
12120
12121 * atimer.c (alarm_signal_handler): Add forward declaration.
12122
12123 * data.c (set_internal): Remove debug code.
12124
12125 2000-06-14 Gerd Moellmann <gerd@gnu.org>
12126
12127 * Makefile.in (bootstrap-temacs): Add `-I../src'.
12128
12129 * unexec.c (toplevel) [COFF]: Include coff.h.
12130
12131 * s/lynxos.h: New file.
12132
12133 * keymap.c (Fsingle_key_description): Enclose function key and
12134 event symbol names in angle brackets.
12135
12136 * xdisp.c (setup_echo_area_for_printing): Call
12137 message_log_maybe_newline if message_buf_print is not set.
12138
12139 * print.c (printchar, strout): Don't check message_buf_print
12140 before calling setup_echo_area_for_printing because that
12141 function does something useful even when message_buf_print is
12142 already set.
12143
12144 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
12145 New variables.
12146 (ensure_echo_area_buffers): Initialize echo buffer's
12147 truncate lines setting to nil.
12148 (with_echo_area_buffer): Don't set the echo buffer's truncate
12149 lines setting here.
12150 (set_message_1): Set it here instead, based on the value
12151 of message_truncate_lines.
12152 (resize_mini_window): Handle case that lines are truncated.
12153 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
12154 DEFVAR_BOOL message-truncate-lines.
12155
12156 * keyboard.c (read_char): Bind message-truncate-lines to t
12157 while displaying a help-echo.
12158
12159 * lisp.h (Qmessage_truncate_lines): External declaration.
12160
12161 2000-06-13 Gerd Moellmann <gerd@gnu.org>
12162
12163 * xdisp.c (Vline_number_display_limit): Renamed from
12164 line_number_display_limit.
12165 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
12166 Extend documentation string. Initialize
12167 Vline_number_display_limit to nil meaning no limit.
12168 (decode_mode_spec): Use Vline_number_display_limit with its new
12169 meaning.
12170
12171 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
12172
12173 2000-06-13 Richard Stallman <rms@gnu.org>
12174
12175 * frame.c (Fmodify_frame_parameters): Doc fix.
12176
12177 * xfns.c (x_set_frame_parameters): Comment fix.
12178
12179 * frame.c (store_frame_param): Call swap_in_global_binding if the
12180 variable's current binding was chosen based on this frame.
12181
12182 * data.c (swap_in_global_binding): New function.
12183
12184 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
12185
12186 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
12187 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
12188
12189 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
12190
12191 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
12192
12193 2000-06-12 Jason Rumney <jasonr@gnu.org>
12194
12195 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
12196
12197 * w32.h (EMACS_W32_H): Renamed from _NT_H_
12198
12199 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
12200
12201 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
12202
12203 2000-06-12 Gerd Moellmann <gerd@gnu.org>
12204
12205 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
12206 (syms_of_xfaces): Defsubr Sdump_colors.
12207 (x_free_colors): Don't treat b&w specially on default visual.
12208 (x_free_dpy_colors): New function.
12209 (free_face_colors): Don't check visual class; it's done
12210 in x_free_colors.
12211
12212 * xterm.c (x_frame_of_widget): New function.
12213 (x_alloc_nearest_color_for_widget): Use it.
12214 (x_copy_dpy_color): New function.
12215 (x_destroy_window): Free various colors.
12216
12217 2000-06-12 Kenichi Handa <handa@etl.go.jp>
12218
12219 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
12220
12221 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
12222
12223 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
12224
12225 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
12226
12227 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
12228
12229 2000-06-11 Dave Love <fx@gnu.org>
12230
12231 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
12232
12233 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
12234
12235 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
12236
12237 2000-06-11 Gerd Moellmann <gerd@gnu.org>
12238
12239 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
12240 to `XEvent *'.
12241
12242 2000-06-10 Kenichi Handa <handa@etl.go.jp>
12243
12244 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
12245 (regex_compile): Fix the code for handling the case of single byte
12246 char and multibyte char being mixed in a range within [...].
12247
12248 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
12249 and dst_multibyte members of coding.
12250
12251 * charset.c (update_charset_table): Update the table
12252 bytes_by_char_head.
12253 (init_charset_once): Initialize elements of bytes_by_char_head to
12254 1 except for leading codes for private charases.
12255
12256 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
12257 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
12258
12259 2000-06-09 Ken Raeburn <raeburn@gnu.org>
12260
12261 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
12262 access the data it doesn't point to.
12263
12264 2000-06-08 Gerd Moellmann <gerd@gnu.org>
12265
12266 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
12267 will be translated to a switch-frame event when reading the
12268 event queue. This is necessary because Emacs otherwise won't
12269 perform a switch-frame to a new frame until some other event, for
12270 example a keystroke event, forces it to do so. This has various
12271 effects, one visible being that the cursor of a frame created with
12272 C-x 5 2 or switched to with a window manager key binding like
12273 A-TAB stays hollow because selected_window isn't on the newly
12274 focused frame until the switch-frame is performed.
12275
12276 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
12277 generating a switch-frame event if necessary.
12278
12279 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
12280
12281 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
12282 it's an integer.
12283
12284 2000-06-08 Kenichi Handa <handa@etl.go.jp>
12285
12286 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
12287
12288 2000-06-07 Gerd Moellmann <gerd@gnu.org>
12289
12290 * window.c (displayed_window_lines): Take empty lines at
12291 the bottom of a window into account.
12292
12293 * window.c (displayed_window_lines): New function.
12294 (Fmove_to_window_line): Use displayed_window_lines to determine
12295 the number of lines to move, instead of using the window's height.
12296
12297 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
12298 to stop reading, even if the form read sets point to a different
12299 value when evaluated.
12300
12301 * xdisp.c (display_line): Fix code deciding in which line to
12302 put the cursor.
12303
12304 2000-06-07 Kenichi Handa <handa@etl.go.jp>
12305
12306 * fileio.c (e_write): Free composition data if stored in
12307 coding->cmp_data.
12308
12309 2000-06-06 Gerd Moellmann <gerd@gnu.org>
12310
12311 * xdisp.c (display_line): Set row's and iterator's
12312 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
12313 Set cursor even if row ends in the middle of a character.
12314 (dump_glyph_row): Print values of new flags.
12315 (redisplay_window) <cursor movement in unchanged window>: When
12316 point has been moved forward, and PT is at the end of the cursor
12317 row, don't place the cursor in the next row if the cursor row ends
12318 in the middle of a character or at ZV.
12319
12320 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
12321 (struct glyph_row): Add starts_in_middle_of_char_p and
12322 ends_in_middle_of_char_p.
12323 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
12324 ends_in_middle_of_char_p flag.
12325 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
12326
12327 * term.c (append_glyph): Revert change of 2000-06-06.
12328
12329 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
12330 padding glyph not fitting on line as whole character not
12331 fitting on line.
12332
12333 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
12334 this isn't true for images with `:ascent 100'.
12335
12336 2000-06-06 Kenichi Handa <handa@etl.go.jp>
12337
12338 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
12339 as modified if it is originally unmodified.
12340
12341 * term.c (encode_terminal_code): Change the way to check if
12342 terminal coding does any conversion.
12343 (append_glyph): Set glyph->pixel_width correctly.
12344
12345 * xdisp.c (display_line): While checking line continuation, pay
12346 attention to a padding glyph.
12347
12348 2000-06-05 Gerd Moellmann <gerd@gnu.org>
12349
12350 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
12351
12352 2000-06-05 Dave Love <fx@gnu.org>
12353
12354 * xdisp.c: Include fontset.h.
12355
12356 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
12357
12358 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
12359
12360 * dispnew.c: Conditionally include term.h.
12361
12362 * coding.h: Declare code_convert_string_norecord.
12363
12364 * frame.h (struct frame): Use volatile unconditionally.
12365
12366 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
12367
12368 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
12369
12370 * systime.h: Protect against multiple inclusion.
12371 (timezone) [USG5_4]: Define as time_t.
12372
12373 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
12374 (Foptimize_char_table, make_temp_name): Declare.
12375
12376 * Makefile.in (xdisp.o): Depend on fontset.h.
12377
12378 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
12379
12380 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
12381 (Foptimize_char_table, make_temp_name): Declare.
12382
12383 * s/irix4-0.h:
12384 * s/irix5-0.h:
12385 * s/netbsd.h: Don't define autoconfiscated MATHERR.
12386
12387 2000-06-02 Dave Love <fx@gnu.org>
12388
12389 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
12390
12391 2000-06-02 Gerd Moellmann <gerd@gnu.org>
12392
12393 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
12394 result face, set flags in that face indicating that colors may not
12395 be freed.
12396
12397 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
12398 glyph, use the ASCII NUL character to determine the face.
12399
12400 2000-06-02 Dave Love <fx@gnu.org>
12401
12402 * sysdep.c: Conditionally include stdlib.h, unistd.h.
12403 (VFORK_RETURN_TYPE): Remove.
12404
12405 * config.in: Add NO_MATHERR.
12406
12407 2000-06-01 Dave Love <fx@gnu.org>
12408
12409 * cmds.c (internal_self_insert): Don't check
12410 Vbefore_change_function, Vafter_change_function.
12411
12412 * insdel.c (signal_before_change, signal_after_change): Likewise.
12413
12414 * buffer.c (Vbefore_change_function, Vafter_change_function):
12415 Variables and their initializations deleted.
12416
12417 * callint.c (Fcall_interactively): Doc fix.
12418
12419 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
12420
12421 2000-05-31 Dave Love <fx@gnu.org>
12422
12423 * textprop.c: Revert last change -- duplicated.
12424
12425 2000-05-31 Gerd Moellmann <gerd@gnu.org>
12426
12427 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
12428 in #if 0.
12429
12430 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
12431
12432 2000-05-31 Jason Rumney <jasonr@gnu.org>
12433
12434 * search.c (Fre_search_forward, Fre_search_backward)
12435 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
12436
12437 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
12438
12439 2000-05-30 Jason Rumney <jasonr@gnu.org>
12440
12441 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
12442 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
12443
12444 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
12445
12446 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
12447 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
12448 expand a nil default_filename.
12449
12450 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
12451 pointer to glyph_to_pixel_coords, not a frame.
12452
12453 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
12454 coding.h to dependencies.
12455
12456 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
12457
12458 * w32console.c (glyph_to_pixel_coords): Change first parameter to
12459 window pointer to be consistent with w32term.c and xterm.c.
12460
12461 * w32fns.c: Format and doc changes to bring closer to xfns.c.
12462 (VIETNAMESE_CHARSET): Define if not defined in system headers.
12463 (Qline_spacing, Qcenter): New variables.
12464 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
12465 (x_set_line_spacing): New function.
12466 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
12467 (x_specified_cursor_type): New function.
12468 (x_set_cursor_type): Use it.
12469 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
12470 and icon strings.
12471 (validate_x_resource_name, x_get_resource_string): Measure lengths
12472 of external strings in bytes.
12473 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
12474 GetTextExtentPoint32 with NULL title.
12475 (Fx_create_frame): Initialize Qline_spacing.
12476 (w32_load_system_font): Initialize font->double_byte_p.
12477 (x_to_w32_charset): Use Vw32_charset_info_alist.
12478 (Image, busy cursor, tooltip functions): Merged changes from
12479 xfns.c. Not yet functional on Windows.
12480
12481 * w32gui.h (W32FontStruct): Add double_byte_p member.
12482
12483 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
12484 (emacs_button_translation): Use it.
12485 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
12486 in `mask' to be set.
12487
12488 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
12489 menu strings.
12490
12491 * w32term.c: Format and doc changes to bring closer to xterm.c.
12492 (w32_char_font_type): New enum.
12493 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
12494 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
12495 (w32_encode_char): New function.
12496 (x_encode_char): Removed.
12497 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
12498 x_encode_char and w32_font_is_double_byte.
12499 (x_produce_image_glyph): Use image_ascent.
12500 (x_produce_glyphs): Use new version of w32_per_char_metric and
12501 handle NULL return value. Allow extra line spacing.
12502 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
12503 (w32_get_glyph_overhangs): Remove unicode_p param. Use
12504 w32_font_type member of glyph instead.
12505 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
12506 (fast_find_position): Make sure not to consider rows not visible
12507 in the window.
12508 (w32_read_socket) [WM_MENUSELECT]: Cannot call
12509 w32_menu_display_help with input blocked, as it can abort.
12510 (x_display_and_set_cursor): Choose cursor depending
12511 on buffer-local value of cursor_type.
12512 (x_draw_bar_cursor): Add parameter WIDTH.
12513
12514 * w32term.h (CP_DEFAULT): Define.
12515 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
12516
12517 2000-05-30 Gerd Moellmann <gerd@gnu.org>
12518
12519 * search.c (Fre_search_forward, Fre_search_backward)
12520 (Fposix_search_backward, Fposix_search_forward): Doc fix.
12521
12522 2000-05-30 Kenichi Handa <handa@etl.go.jp>
12523
12524 * coding.c (detect_coding_iso2022): Fix code for checking
12525 CODING_CATEGORY_MASK_ISO_8_2.
12526
12527 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
12528
12529 * regex.c (PREFETCH_NOLIMIT): New function.
12530 (re_match_2_internal): Use it and adjust the end_match_2 logic.
12531
12532 2000-05-29 Gerd Moellmann <gerd@gnu.org>
12533
12534 * syntax.c (find_defun_start): Move test for
12535 open_paren_in_column_0_is_defun_start outside of the loop.
12536
12537 * xdisp.c (redisplay_window): Really switch buffers when
12538 displaying mode lines, and temporarily set selected_frame to the
12539 frame of the window that's redisplayed.
12540
12541 * xfaces.c (free_realized_faces): Block/unblock input.
12542 (free_realized_multibyte_face): Ditto.
12543
12544 2000-05-29 Dave Love <fx@gnu.org>
12545
12546 * textprop.c (Qkeymap): New variable.
12547 (syms_of_textprop): Intern it.
12548
12549 * keymap.c: Include intervals.h.
12550 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
12551
12552 * Makefile.in (keymap.o): Depend on intervals.h.
12553
12554 * keyboard.c (menu_bar_items, tool_bar_items)
12555 (Fexecute_extended_command): Deal with `keymap' property.
12556 (read_key_sequence): Track map from `keymap' property as well as
12557 `local_map'.
12558
12559 * intervals.c (get_local_map): Extra arg to allow looking for
12560 `keymap' too.
12561
12562 * intervals.h (map_property): New enum.
12563 (get_local_map): Extra arg using it.
12564 (Qkeymap): Declare.
12565
12566 * lisp.h (get_local_map): Don't declare here.
12567
12568 2000-05-29 Kenichi Handa <handa@etl.go.jp>
12569
12570 * Makefile.in (callproc.o): Depend on composite.h.
12571
12572 * callproc.c: Include composite.h.
12573 (Fcall_process): Handle composition correctly.
12574
12575 * coding.h (coding_allocate_composition_data): Extern it.
12576 (coding_restore_composition): Likewise.
12577
12578 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
12579 yet allocated, finish decoding with result
12580 CODING_FINISH_INSUFFICIENT_CMP.
12581 (coding_allocate_composition_data): Make it non-static.
12582 (coding_restore_composition): Likewise.
12583
12584 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
12585
12586 * charset.c (syms_of_charset): Revert last change.
12587
12588 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
12589
12590 * term.c (produce_glyphs): Treat characters from the eight-bit-*
12591 charsets as unibyte, with 1-column screen width. Sent by Kenichi
12592 Handa.
12593
12594 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
12595
12596 * charset.c (syms_of_charset): Set width of character sets
12597 eight-bit-control and eight-bit-graphic to 1 column.
12598
12599 2000-05-26 Gerd Moellmann <gerd@gnu.org>
12600
12601 * config.in (HAVE_SPEED_T): New define.
12602
12603 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
12604 `extern speed_t'.
12605
12606 2000-05-26 Dave Love <fx@gnu.org>
12607
12608 * coding.c (shrink_decoding_region): Initialize eol_conversion.
12609
12610 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
12611 (Fsubr_arity): New function.
12612 (syms_of_data): Install them.
12613
12614 2000-05-26 Kenichi Handa <handa@etl.go.jp>
12615
12616 * charset.c (init_charset_once): Set the table bytes_by_char_head
12617 correctly.
12618
12619 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
12620 the default fontset to what Emacs uses by default.
12621 (check_registry_encoding): This function deleted.
12622 (Fset_fontset_font): Remove the adhoc condition for the default
12623 fontset. Allow cons in FONTNAME.
12624
12625 * fns.c (map_char_table): Ignore char-table entries for
12626 charsets eight-bit-control and eight-bit-graphic.
12627
12628 2000-05-25 Ken Raeburn <raeburn@gnu.org>
12629
12630 * emacs.c (main): Initialize keyboard syms before initializing
12631 window code, so face names are available.
12632
12633 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
12634
12635 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
12636 of an anchor at the beginning of a shy-group.
12637
12638 2000-05-25 Gerd Moellmann <gerd@gnu.org>
12639
12640 * xdisp.c (handle_invisible_prop): Don't try to skip over
12641 invisible text if end of text is already reached.
12642
12643 2000-05-25 Dave Love <fx@gnu.org>
12644
12645 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
12646
12647 * coding.c (encode_eol): Add null statement after label.
12648
12649 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
12650
12651 * w16select.c (Fw16_set_clipboard_data): Fix the change from
12652 2000-05-20.
12653
12654 2000-05-25 Kenichi Handa <handa@etl.go.jp>
12655
12656 * ccl.c (ccl_driver): Fix previous change.
12657
12658 2000-05-25 Kenichi Handa <handa@etl.go.jp>
12659
12660 * coding.c (run_pre_post_conversion_on_str): Set point to the
12661 beginning of buffer before calling coding->post_read_conversion.
12662 (decode_coding_string): Give correct args to
12663 run_pre_post_conversion_on_str.
12664 (encode_coding_string): Likewise.
12665
12666 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
12667 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
12668 eight-bit-graphic correctly.
12669
12670 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
12671
12672 * fileio.c (Finsert_file_contents): Even if a file is not found,
12673 execute codes for setting up coding system. Call
12674 after-insert-file-functions unconditionally.
12675
12676 2000-05-24 Gerd Moellmann <gerd@gnu.org>
12677
12678 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
12679 BSD_PGRPS are not defined.
12680
12681 2000-05-24 Kenichi Handa <handa@etl.go.jp>
12682
12683 * charset.c (update_charset_table): Accept nil in LONG_NAME and
12684 DESCRIPTION.
12685 (syms_of_charset): Avoid building same strings.
12686
12687 2000-05-23 Gerd Moellmann <gerd@gnu.org>
12688
12689 * lread.c (Fload): Add a comment about the meaning of
12690 Vuser_init_file being t.
12691
12692 * puresize.h (BASE_PURESIZE): Increase to 675000.
12693
12694 * s/gnu-linux.h (setpgrp): Don't define it here because this
12695 prevents compilation on GNU/Linux systems with glib 2.2.
12696
12697 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
12698 as setpgid.
12699
12700 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
12701
12702 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
12703 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
12704 version.
12705 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
12706
12707 2000-05-23 Kenichi Handa <handa@etl.go.jp>
12708
12709 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12710
12711 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
12712
12713 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
12714
12715 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
12716
12717 2000-05-22 Kenichi Handa <handa@etl.go.jp>
12718
12719 * keyboard.c (read_char): Allow character codes 128..255 to be
12720 handled by input-method-function.
12721
12722 * insdel.c (adjust_markers_for_replace): Fix previous change.
12723 (adjust_after_replace): If PREV_TEXT is nil, call
12724 adjust_markers_for_insert, not adjust_markers_for_replace.
12725
12726 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
12727
12728 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
12729 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
12730 [HAVE_GRANDPT]: Define.
12731 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
12732
12733 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
12734 like SYSV_PTYS.
12735
12736 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
12737
12738 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
12739
12740 2000-05-20 Kenichi Handa <handa@etl.go.jp>
12741
12742 The following changes are to handle 8-bit characters in a
12743 multibyte buffer/string without facing with byte combining
12744 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
12745 eight-bit-graphic (for 0xA0..0xFF) are introduced.
12746
12747 * Makefile.in (fns.o): Depend on charset.h.
12748
12749 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
12750 convert it to unibyte.
12751 (make_string): Use parse_str_as_multibyte, not chars_in_text.
12752
12753 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
12754 apparent char boundary.
12755 (Fset_buffer_multibyte): Convert 8-bit characters in the range
12756 0x80..0x9F to/from multibyte form.
12757
12758 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
12759 to unibyte.
12760
12761 * callproc.c (Fcall_process): Always encode an argument string if
12762 it is multibyte. Setup src_multibyte and dst_multibyte members of
12763 process_coding properly.
12764
12765 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
12766 SPLIT_NON_ASCII_CHAR.
12767
12768 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
12769 as is.
12770 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
12771
12772 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
12773 (SPLIT_CHARACTER_SEQ): This macro deleted.
12774 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
12775 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
12776 and eight-bit-graphic.
12777 (char_to_string): Likewise. Signal an error for too large
12778 character code.
12779 (char_printable_p): Return 0 for 8-bit characters.
12780 (update_charset_table): Update iso_charset_table only when a final
12781 character is non-negative.
12782 (find_charset_in_text): Renamed from find_charset_in_str.
12783 Arguments and return value changed. Callers changed.
12784 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
12785 be -1 if CHARSET is used only internally.
12786 (Fmake_char_internal): Handle new charsets; eight-bit-control and
12787 eight-bit-graphic.
12788 (Fcharset_after): Simplified.
12789 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
12790 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
12791 (multibyte_chars_in_text): Simplified by assuming there's no
12792 invalid multibyte sequence.
12793 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
12794 (str_as_unibyte): New functions.
12795 (Fstring): Simpified by assuming that byte combining never happens.
12796 (init_charset_once): Initialization for
12797 LEADING_CODE_8_BIT_CONTROL.
12798 (syms_of_charset): Intern and staticpro Qeight_bit_control and
12799 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
12800 eight-bit-control and eight-bit-graphic.
12801
12802 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
12803 (CHARSET_8_BIT_GRAPHIC): New macros.
12804 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
12805 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
12806 (CHARSET_REVERSE_CHARSET): Likewise.
12807 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
12808 eight-bit-graphic.
12809 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
12810 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
12811 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
12812 encounter an invalid multibyte sequence.
12813 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
12814 sequence is always valid.
12815 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
12816 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
12817 (CHAR_STRING): For 8-bit characters, call char_to_string.
12818 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
12819 multibyte sequence is always valid.
12820 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
12821 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
12822 (str_as_unibyte): Extern them.
12823 (BCOPY_SHORT): Fix a bug.
12824 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
12825 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
12826 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
12827 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
12828
12829 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
12830 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
12831 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
12832 (EMIT_BYTES): New macros.
12833 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
12834 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
12835 macros deleted.
12836 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
12837 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
12838 check the validity of multibyte sequence.
12839 (decode_coding_emacs_mule): New function.
12840 (encode_coding_emacs_mule): New macro.
12841 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
12842 the source.
12843 (DECODE_ISO_CHARACTER): Just return a character code.
12844 (DECODE_COMPOSITION_START): Set coding->result instead of result.
12845 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
12846 EMIT_CHAR to produced decoded characters. Exit the loop only by
12847 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
12848 block here.
12849 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
12850 only position codes for an invalid character.
12851 (encode_designation_at_bol): Return new destination pointer. 5th
12852 arg DSTP is changed to DST.
12853 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
12854 from the source by ONE_MORE_CHAR. Don't handle the case of last
12855 block here.
12856 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
12857 macros deleted.
12858 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
12859 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
12860 TWO_MORE_BYTES to fetch a byte from the source.
12861 (encode_eol): Pay attention to coding->src_multibyte.
12862 (detect_coding, detect_eol): Preserve members src_multibyte and
12863 dst_multibyte.
12864 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
12865 (encoding_buffer_size): Set magnification to 3 for all coding
12866 systems that require encoding.
12867 (ccl_coding_driver): For decoding, be sure that the result is
12868 valid multibyte sequence.
12869 (decode_coding): Initialize coding->errors and coding->result.
12870 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
12871 and raw-text, always call decode_eol. Handle the case of last
12872 block here. If not coding->dst_multibyte, convert the resulting
12873 sequence to unibyte.
12874 (encode_coding): Initialize coding->errors and coding->result.
12875 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
12876 and raw-text, always call encode_eol. Handle the case of last
12877 block here.
12878 (shrink_decoding_region, shrink_encoding_region): Detect cases
12879 that we can't skip data more rigidly.
12880 (code_convert_region): Setup src_multibyte and dst_multibyte
12881 members of coding. For decoding, if the buffer is multibyte,
12882 convert the source sequence to unibyte in advance. For encoding,
12883 if the buffer is multibyte, convert the resulting sequence to
12884 multibyte afterward.
12885 (run_pre_post_conversion_on_str): New function.
12886 (code_convert_string): Deleted and divided into the following two.
12887 (decode_coding_string, encode_coding_string): New functions.
12888 (code_convert_string1, code_convert_string_norecord): Call one of
12889 above.
12890 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
12891 MAKE_NON_ASCII_CHAR.
12892 (Fset_terminal_coding_system_internal)
12893 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
12894 and dst_multibyte members.
12895 (init_coding_once): Initialize iso_code_class with new enum
12896 ISO_control_0 and ISO_control_1.
12897
12898 * coding.h (enum iso_code_class_type): Member ISO_control_code is
12899 devided into ISO_control_0 and ISO_control_1.
12900 (struct coding_system): New members src_multibyte, dst_multibyte,
12901 errors, and result. Delete member fake_multibyte.
12902 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
12903 nonzero.
12904 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
12905 nonzero.
12906
12907 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
12908 (Faset): Likewise.
12909
12910 * editfns.c (Fformat): Be sure to convert 8-bit characters to
12911 multibyte form.
12912 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
12913 combining occurs.
12914 (Ftranspose_region): Delete codes for handling byte combining.
12915
12916 * fileio.c (Finsert_file_contents): Setup src_multibyte and
12917 dst_multibyte members of coding. On handling REPLACE on unibyte
12918 buffer, convert the result of decode_coding to unibyte. On
12919 inserting into a mutibyte buffer, always call code_convert_region.
12920 (e_write): Setup coding->src_multibyte according to the
12921 multibyteness of the source (buffer or string).
12922
12923 * fns.c (concat): Handle 8-bit characters correctly.
12924 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
12925 unibyte in the result.
12926 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
12927 valid multibyte form in the result.
12928 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
12929 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
12930 return -1, signal an error.
12931 (base64_encode_1): New arg MULTIBYTE. Get each character by
12932 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
12933 character is found, return -1.
12934 (Fbase64_decode_region): Delete codes for handling byte-combining.
12935 Treat each decoded byte as a unibyte character.
12936 (Fbase64_decode_string): Return unibyte string.
12937 (Fcompare_strings, concat, string_byte_to_char): Use
12938 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
12939 FETCH_STRING_CHAR_ADVANCE.
12940 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12941 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
12942
12943 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
12944 SPLIT_NON_ASCII_CHAR.
12945 (fontset_ref_via_base, fontset_set): Likewise
12946
12947 * insdel.c (adjust_markers_for_record_delete): Deleted.
12948 (adjust_markers_for_insert): Argument changed. Caller changed.
12949 (adjust_markers_for_replace): Likewise.
12950 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
12951 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
12952 (copy_text): Delete unused local varialbe c_save. For converting
12953 to multibyte, be sure to make all 8-bit characters in valid
12954 multibyte form.
12955 (count_size_as_multibyte): Handle 8-bit characters correctly.
12956 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
12957 (adjust_after_replace, replace_range, del_range_2)
12958 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
12959 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
12960 (adjust_after_replace, replace_range, del_range_2) Delete codes for
12961 handling byte combining.
12962 (adjust_before_replace): Deleted.
12963
12964 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
12965 SPLIT_NON_ASCII_CHAR.
12966 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
12967 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12968 (Fkey_description): Likewise.
12969
12970 * lread.c (read1): On reading multibyte string, be sure to make
12971 all 8-bit chararacters in valid multibyte form.
12972 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12973
12974 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
12975 unconditionally.
12976
12977 * process.c (Fstart_process): GCPRO current_dir before calling
12978 Ffind_operation_coding_system. Encode arguments here.
12979 (create_process): Don't encode arguments here. Setup
12980 src_multibyte and dst_multibyte members of struct coding.
12981 (read_process_output): Setup src_multibyte and dst_multibyte
12982 members of struct coding. If the output is to multibyte buffer,
12983 always decode the output of the process. Adjust the
12984 representation of 8-bit characters to the multibyteness of the output.
12985 (send_process): Setup coding->src_multibyte according to the
12986 multibyteness of the source.
12987
12988 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12989 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
12990 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
12991
12992 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
12993
12994 * w16select.c (Fw16_set_clipboard_data): Setup members
12995 src_multibyte and dst_multibyte of coding. Adjusted for the
12996 change for find_charset_in_str.
12997 (Fw16_get_clipboard_data): Likewise.
12998
12999 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
13000 dst_multibyte of coding.
13001 (x_to_w32_font): Likewise.
13002
13003 * w32select.c (Fw32_set_clipboard_data): Setup members
13004 src_multibyte and dst_multibyte of coding. Adjusted for the
13005 change for find_charset_in_str.
13006 (Fw32_get_clipboard_data): Likewise.
13007
13008 * xdisp.c (get_next_display_element): Handle 8-bit characters
13009 correctly.
13010 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
13011 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
13012
13013 * xselect.c (selection_data_to_lisp_data): Setup members
13014 src_multibyte and dst_multibyte of coding. Adjusted for the
13015 change for find_charset_in_str.
13016 (lisp_data_to_selection_data): Likewise.
13017
13018 2000-05-19 Gerd Moellmann <gerd@gnu.org>
13019
13020 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
13021
13022 * dispextern.h (Vimage_types): Add extern declaration.
13023
13024 * xdisp.c (Vimage_types): Moved here from xfns.c.
13025 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
13026
13027 * xfns.c (Vimages_types): Moved to xdisp.c.
13028 (syms_of_xfns): Move `image-types' to xdisp.c.
13029
13030 * w32fns.c (Vimage_types): Removed.
13031 (syms_of_w32fns): Remove `image-types'.
13032
13033 2000-05-18 Kenichi Handa <handa@etl.go.jp>
13034
13035 * fns.c (map_char_table): Pay attention to character number of
13036 charset. Check the validity of charset at the first level. For
13037 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
13038 the default value.
13039
13040 * fontset.c: Include "buffer.h".
13041 (fs_load_font): If the face has fontset, record the face ID in
13042 that fontset.
13043 (Finternal_char_font): New function.
13044 (accumulate_font_info): New function.
13045 (Ffontset_info): Rewritten for the new fontset implementation.
13046 (syms_of_fontset): Register Vdefault_fontset in the first element
13047 of Vfontset_table. Include Vdefault_fontset in
13048 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
13049 function.
13050
13051 2000-05-16 Dave Love <fx@gnu.org>
13052
13053 * m/iris5d.h: Deleted -- unused.
13054
13055 2000-05-16 Gerd Moellmann <gerd@gnu.org>
13056
13057 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
13058 `invalid' instead of `illegal'.
13059
13060 * indent.c (Fmove_to_column): When ending within a tab, insert
13061 spaces first so that markers at the end of the tab get adjusted.
13062
13063 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
13064 buffer list that wasn't selected in that frame.
13065
13066 * filelock.c (get_boot_time): To obtain an 8 char file name, which
13067 is needed on mescaline, use a 2 char prefix, and call
13068 make_temp_name with second arg non-zero.
13069
13070 * fileio.c (make_temp_name): New function, extracted from
13071 Fmake_temp_name.
13072 (Fmake_temp_name): Use it.
13073
13074 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
13075
13076 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
13077
13078 2000-05-15 Gerd Moellmann <gerd@gnu.org>
13079
13080 * Makefile.in (lisp): Add env.elc.
13081
13082 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
13083
13084 2000-05-12 Gerd Moellmann <gerd@gnu.org>
13085
13086 * search.c (Freplace_match): Handle case of `\N' in the
13087 replacement when there's no group N.
13088
13089 2000-05-11 Gerd Moellmann <gerd@gnu.org>
13090
13091 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
13092 of the message to message_dolog.
13093
13094 * keyboard.c (read_char): Don't clear current message for help
13095 events; let the code handling help events handle this. Change
13096 code detecting help events that should be ignored.
13097
13098 * xdisp.c (handle_single_display_prop): Don't try to set PT if
13099 we're interating over a string.
13100
13101 2000-05-09 Dave Love <fx@gnu.org>
13102
13103 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
13104 that offset before writing. Move gcpro region past call of
13105 Ffile_regular_p.
13106
13107 2000-05-04 Dave Love <fx@gnu.org>
13108
13109 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
13110
13111 2000-05-04 Gerd Moellmann <gerd@gnu.org>
13112
13113 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
13114 of inserted characters when BUF equals the current buffer, and PT
13115 is in front of or equal to FROM.
13116
13117 2000-05-03 Gerd Moellmann <gerd@gnu.org>
13118
13119 * xdisp.c (handle_single_display_prop): If display property value
13120 is invalid, or something not supported on the frame, restore
13121 iterator's position to what it was initially. Make sure to return
13122 0 for invalid and unsupported property values.
13123
13124 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
13125 that x_per_char_metric returns null.
13126
13127 2000-05-02 Gerd Moellmann <gerd@gnu.org>
13128
13129 * xterm.h (struct face): Add forward declaration.
13130 (struct image): Ditto.
13131 (image_ascent): Add prototype.
13132
13133 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
13134 (x_draw_image_relief, x_draw_image_foreground_1): Call function
13135 image_ascent instead of using IMAGE_ASCENT.
13136
13137 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
13138 (IMAGE_ASCENT): Removed.
13139
13140 * xfns.c (Qcenter): New variable.
13141 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
13142 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
13143 (image_ascent): New function.
13144 (lookup_image): Recognize `:ascent center'.
13145 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
13146 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
13147 (xbm_load): Don't set image's ascent here.
13148 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
13149 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
13150 check ascent values here.
13151 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
13152 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
13153 (syms_of_xfns): Initialize Qcenter.
13154
13155 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
13156 to the limits, increase the limits.
13157
13158 2000-05-01 Kenichi Handa <handa@etl.go.jp>
13159
13160 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
13161 Check Vfont_encoding_alist against the full name of the opened font.
13162
13163 2000-04-28 Gerd Moellmann <gerd@gnu.org>
13164
13165 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
13166 taller than the window.
13167
13168 2000-04-28 Kenichi Handa <handa@etl.go.jp>
13169
13170 * xfaces.c (realize_x_face): Fix the argument of the second
13171 xassert. BASE_FACE may not be a face for ASCII.
13172
13173 2000-04-27 Gerd Moellmann <gerd@gnu.org>
13174
13175 * print.c (print_object): Treat print-length < 0 as nil.
13176
13177 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
13178
13179 * s/freebsd.h (TERMCAP_OBJ): Removed.
13180 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
13181
13182 * lread.c (read1): Don't treat period followed by certain
13183 characters as symbol start.
13184
13185 * xfns.c (slurp_file): New function.
13186 (xbm_image_p): Handle case of in-memory XBM files.
13187 (xbm_scan): Rewritten to work on memory buffers instead of files.
13188 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
13189 Work on memory buffers instead of files. If DATA is null test
13190 if buffer looks like an in-memory XBM file.
13191 (xbm_load_image): Renamed from xbm_load_image_file. Work on
13192 memory buffers instead of files.
13193 (xbm_file_p): New function.
13194 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
13195
13196 * lread.c (end_of_file_error): New function.
13197 (read1): Call it instead of signaling `end-of-file' directly.
13198
13199 * print.c (print_error_message): Print data of `end-of-file'
13200 with Fprinc instead of Fprin1.
13201
13202 2000-04-26 Ken Raeburn <raeburn@gnu.org>
13203
13204 * window.c (freeze_window_start): Check that minibuffer scroll
13205 window isn't nil before extracting the window structure pointer
13206 from it.
13207
13208 * undo.c (record_delete): If we hit the end of the undo list, stop
13209 picking elements apart.
13210
13211 2000-04-26 Gerd Moellmann <gerd@gnu.org>
13212
13213 * xdisp.c (display_line): If lines are continued, restore
13214 iterator's ascent/descent information to the values before the
13215 first glyph not fitting on the line.
13216
13217 2000-04-25 Gerd Moellmann <gerd@gnu.org>
13218
13219 * xdisp.c (try_window_id) <all changes above window start>: Adjust
13220 positions in glyph matrix. Don't compute new window end positions.
13221
13222 * dispnew.c (increment_matrix_positions): Renamed from
13223 increment_glyph_matrix_buffer_positions.
13224 (increment_row_positions): Renamed from
13225 increment_glyph_row_buffer_positions.
13226
13227 * dispextern.h: Change names of renamed functions from dispnew.c
13228 in prototypes.
13229
13230 2000-04-24 Gerd Moellmann <gerd@gnu.org>
13231
13232 * fileio.c (Fdo_auto_save): Create directories for auto-save
13233 list file if necessary.
13234
13235 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
13236 from buffer or frame.
13237 (automatic_hscrolling_p): New variable.
13238 (hscroll_windows): Scroll windows horizontally only if automatic
13239 hscrolling is allowed.
13240 (syms_of_xdisp): New variable `automatic-hscrolling'.
13241
13242 * frame.h (struct frame): Add member extra_line_spacing.
13243
13244 * xfns.c (x_set_line_spacing): New function.
13245 (Fx_create_frame): Set line spacing from resources.
13246 (Qline_spacing): New variable.
13247 (syms_of_xfns): Initialize Qline_spacing.
13248
13249 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
13250
13251 * buffer.c (init_buffer_once): Handle extra_line_spacing.
13252 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
13253 (reset_buffer): Don't initialize extra2 and extra3. Initialize
13254 extra_line_spacing from default value.
13255 (init_buffer_once): Initialize default value of extra_line_spacing.
13256
13257 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
13258 and extra3.
13259
13260 * xterm.c (x_produce_glyphs): Remove reference to struct it's
13261 prompt_width. Add extra line spacing.
13262
13263 * term.c (produce_glyphs): Remove reference to struct it's
13264 prompt_width.
13265
13266 * dispextern.h (struct it): Remove member prompt_width, add
13267 extra_line_spacing.
13268
13269 2000-04-22 Gerd Moellmann <gerd@gnu.org>
13270
13271 * dispnew.c (update_frame_line): When writing a whole line, make
13272 sure cursor is in the right row afterwards, otherwise a use of
13273 capability `ch' in cmgoto might leave the cursor in the row below.
13274
13275 2000-04-21 Gerd Moellmann <gerd@gnu.org>
13276
13277 * lisp.h (struct Lisp_Buffer_Cons): Remove.
13278
13279 * keyboard.c (timer_check): Fix typo in comment.
13280
13281 2000-04-21 Kenichi Handa <handa@etl.go.jp>
13282
13283 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
13284 name change: ch -> character.
13285
13286 2000-04-20 Gerd Moellmann <gerd@gnu.org>
13287
13288 * keyboard.c (echo_message_buffer): New variable.
13289 (echo_now): Set echo_message_buffer to the echo area buffer used
13290 to display the echo.
13291 (cancel_echoing): Reset echo_message_buffer to nil.
13292 (read_char): Code rewritten that handles canceling an echo or
13293 echoing a dash, respectively.
13294
13295 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
13296 directory doesn't exist.
13297
13298 2000-04-19 Dave Love <fx@gnu.org>
13299
13300 * fns.c (syms_of_fns): Defsubr mapc.
13301 (concat): Don't allow numeric args.
13302 (Fconcat): Doc change.
13303
13304 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
13305
13306 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
13307 instead define end_match(1|2) more carefully.
13308 Use GET_CHAR_BEFORE_2 for `begline'.
13309
13310 2000-04-19 Gerd Moellmann <gerd@gnu.org>
13311
13312 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
13313 on 64-bit systems where NULL is defined as `0'.
13314
13315 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
13316 the `variable argument list' to make it work on Alpha.
13317
13318 * m/alpha.h (_LP64) [!_LP64]: Define.
13319 (ORDINARY_LINK): Define for NetBSD.
13320
13321 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
13322
13323 2000-04-19 Dave Love <fx@gnu.org>
13324
13325 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
13326 change.
13327
13328 * Makefile.in (LIBS): Don't use.
13329 (GETLOADAVG_OBJ): Define again.
13330 (otherobj): Add GETLOADAVG_OBJ.
13331
13332 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
13333
13334 2000-04-18 Gerd Moellmann <gerd@gnu.org>
13335
13336 * lread.c (read_filtered_event): Cancel and start busy cursor.
13337
13338 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
13339 that the per-character metrics may be null.
13340
13341 2000-04-17 Gerd Moellmann <gerd@gnu.org>
13342
13343 * buffer.c (clone_per_buffer_values): New function.
13344 (Fmake_indirect_buffer): Add optional argument CLONE. Call
13345 clone_per_buffer_values if CLONE is not nil.
13346
13347 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
13348
13349 2000-04-16 Dave Love <fx@gnu.org>
13350
13351 * Makefile.in: Remove obsolete localcpp stuff.
13352 (GETLOADAVG_OBJ): Don't define.
13353 (obj): Move LIBOBJS...
13354 (otherobj): ... to here.
13355 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
13356 whitespace-only lines after the continuation (Irix).
13357
13358 2000-04-14 Gerd Moellmann <gerd@gnu.org>
13359
13360 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
13361
13362 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
13363
13364 2000-04-14 Dave Love <fx@gnu.org>
13365
13366 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
13367 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
13368 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
13369 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
13370 NLIST_STRUCT.
13371
13372 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
13373 autoconfiscated HAVE_GETLOADAVG.
13374
13375 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
13376 BROKEN_MKTIME.
13377
13378 2000-04-14 Gerd Moellmann <gerd@gnu.org>
13379
13380 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
13381 (fill_in_lock_file_name): Avoid existing files that aren't links.
13382
13383 2000-04-14 Dave Love <fx@gnu.org>
13384
13385 * Makefile.in (LIBS, LIBOBJS): New variable.
13386 (INTERVAL_SRC): Convert to make variable.
13387 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
13388 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
13389 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
13390 add LIBOBJS.
13391 (SOME_MACHINE_OBJECTS): Remove interval stuff.
13392 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
13393 (shortlisp): Add facemenu, float-sup, frame.
13394 (SOME_MACHINE_LISP): Remove them from here.
13395 (LIBES): Change unused LDLIBS to autoconf LIBS.
13396
13397 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
13398
13399 2000-04-14 Kenichi Handa <handa@etl.go.jp>
13400
13401 * composite.c (update_compositions): If FROM and TO are not in a
13402 valid range, do nothing.
13403
13404 2000-04-13 Gerd Moellmann <gerd@gnu.org>
13405
13406 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
13407
13408 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
13409
13410 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
13411 as TERMCAP_OBJ.
13412
13413 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
13414
13415 * fileio.c (a_write): Remove redundant semi-colons.
13416 (e_write): Return -1 if failed to write all the data.
13417 This fixes the changes made at 1999-12-15.
13418
13419 2000-04-12 Dave Love <fx@gnu.org>
13420
13421 * fns.c (mapcar1): Test for null vals to support mapc.
13422 (Fmapc): New function.
13423
13424 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
13425
13426 * msdos.c (NUM_MOUSE_BUTTONS): Define.
13427 (IT_frame_up_to_date): Support the buffer local value of
13428 cursor-type, if defined.
13429
13430 2000-04-10 Dave Love <fx@gnu.org>
13431
13432 * editfns.c (preceding-char, following-char): Doc fix.
13433
13434 2000-04-10 Ken Raeburn <raeburn@gnu.org>
13435
13436 * Makefile.in (temacs): Revert 2000-03-12 change.
13437
13438 2000-04-10 Jason Rumney <jasonr@gnu.org>
13439
13440 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
13441
13442 2000-04-10 Gerd Moellmann <gerd@gnu.org>
13443
13444 * xdisp.c (setup_echo_area_for_printing): Choose an echo
13445 area buffer, if it's not set up yet.
13446
13447 * indent.c (compute_motion): Set immediate_quit.
13448
13449 2000-04-09 Gerd Moellmann <gerd@gnu.org>
13450
13451 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
13452 (realize_tty_face): Suppress boldness if colors are the inverse of
13453 the default colors, and tty_suppress_bold_inverse_default_colors_p
13454 is set.
13455 (Ftty_suppress_bold_inverse_default_colors): New function.
13456 (syms_of_xfaces): Defsubr it.
13457
13458 * buffer.c (Frestore_buffer_modified_p): New function.
13459 (syms_of_buffer): Defsubr it.
13460
13461 2000-04-08 Ken Raeburn <raeburn@gnu.org>
13462
13463 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
13464 charset id (int) argument, not a charset (Lisp_Object).
13465
13466 * coding.h (code_convert_string): Declare.
13467 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
13468 object, as the fourth argument to code_convert_string.
13469
13470 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
13471 (Fset_fontset_font): Use EQ to compare lisp objects.
13472
13473 2000-04-05 Ken Raeburn <raeburn@gnu.org>
13474
13475 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
13476 a pointer that looks like a lisp object.
13477 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
13478 zero, instead see whether it's an integer object, since they can't
13479 have intervals.
13480 (GET_INTERVAL_OBJECT): Simply assign to the destination.
13481
13482 * dispnew.c (allocate_matrices_for_frame_redisplay)
13483 (direct_output_forward_char): Use X(U)INT and make_number as needed
13484 to convert between (unsigned) int values and lisp integers.
13485 * keyboard.c (read_key_sequence): Likewise.
13486 * lread.c (substitute_object_recurse): Likewise.
13487 * fns.c (concat, hash_lookup, hash_remove): Likewise.
13488 * minibuf.c (do_completion, Fminibuffer_complete_word)
13489 (Fminibuffer_completion_help): Likewise.
13490 * term.c (produce_special_glyphs): Likewise.
13491
13492 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
13493 * print.c (print_preprocess, print_object): Likewise.
13494
13495 * search.c (compile_pattern): Use NILP when checking for nil.
13496
13497 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
13498 __OPTIMIZE__]: Provide a GNU C macro version that handles
13499 lisp-object unions.
13500 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
13501 field, to better cope with ENABLE_CHECKING and calls that modify a
13502 Lisp_Object using its old value.
13503
13504 2000-04-04 Gerd Moellmann <gerd@gnu.org>
13505
13506 * window.c (compare_window_configurations): Signal an error
13507 if parameters C1 or C2 aren't window configurations.
13508
13509 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
13510 AFTER_POTENTIAL_GC calls around calls to functions that can
13511 signal an error and thus invoke the debugger.
13512
13513 2000-04-03 Gerd Moellmann <gerd@gnu.org>
13514
13515 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
13516 an error if decoding fails.
13517
13518 * keyboard.c (lispy_mouse_names): Variable removed.
13519 (Vlispy_mouse_stem): New variable.
13520 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
13521 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
13522 for any mouse button number. Increase size of mouse_syms and
13523 button_down_location as needed. Call modify_event_symbol with
13524 different arguments.
13525 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
13526 Call modify_event_symbol with different arguments.
13527 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
13528 for any button number. Call modify_event_symbol with different
13529 arguments.
13530 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
13531 Accept a string for NAME_ALIST_OR_STEM.
13532
13533 * lisp.h (larger_vector): Add prototype.
13534
13535 * fns.c (larger_vector): Make externally visible.
13536
13537 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
13538
13539 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
13540
13541 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
13542 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
13543 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
13544 we are between str1 and str2.
13545 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
13546 (PATFETCH): Use `TRANSLATE'.
13547 (PATFETCH_RAW): Fetch multibyte char if applicable.
13548 (PATUNFETCH): Remove.
13549 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
13550 When writing a char, write it directly into the pattern buffer rather
13551 than going needlessly through a temp char-array.
13552 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
13553 multibyte magic and remove the useless `#ifdef emacs'.
13554 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
13555 buffer.
13556
13557 * regex.h (struct re_pattern_buffer): Make field `multibyte'
13558 conditional on `emacs'.
13559
13560 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
13561
13562 2000-04-01 Ken Raeburn <raeburn@gnu.org>
13563
13564 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
13565 non-union-type versions of XMARK and friends here, because XMARK
13566 and friends won't work on an integer field if NO_UNION_TYPE is not
13567 defined.
13568 (make_number): Define as a function if it's not defined as a macro.
13569
13570 * composite.c (run_composite_function): Use NILP when checking for nil.
13571 (syms_of_composite): Delete local var NARGS, pass an int as first
13572 argument to Fmake_hash_table.
13573
13574 * editfns.c (text_property_stickiness): Use NILP to test
13575 Lisp_Object boolean value.
13576 (Fmessage_or_box): Don't use NILP to test int variable.
13577 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
13578 problems reading from and changing the same lisp value in an
13579 XSETSTRING call.
13580
13581 2000-04-01 Gerd Moellmann <gerd@gnu.org>
13582
13583 * term.c (TN_no_color_video): New variable.
13584 (term_init): Intitialize TN_no_color_video.
13585 (enum no_color_bit): New enumeration.
13586 (MAY_USE_WITH_COLORS_P): New macro.
13587 (turn_on_face): Use it to determine if attributes may be used
13588 combined with colors.
13589
13590 2000-04-01 Ken Raeburn <raeburn@gnu.org>
13591
13592 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
13593 with int lvalues via casts; instead, just yield lisp object lvalues.
13594 (enlarge_window): Variable sizep now points to Lisp_Object. Use
13595 proper accessor macros.
13596 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
13597 (grow_mini_window): Fix typo getting int value of root->height.
13598
13599 * xdisp.c (compute_string_pos): Fix order of arguments to
13600 string_pos_nchars_ahead.
13601 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
13602 count arg to variable-arg routines like Frun_hook_with_args and
13603 Fformat.
13604 (back_to_previous_visible_line_start)
13605 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
13606 fixed-arg routines like Fget_char_property and Fmake_string.
13607 (reconsider_clip_changes): Use XINT when comparing integer lisp
13608 objects, or passing them as int arguments.
13609 (mark_window_display_accurate, insert_left_trunc_glyphs)
13610 (append_space, extend_face_to_end_of_line): Use make_number when
13611 storing or passing integer values as lisp objects.
13612 (set_cursor_from_row, highlight_trailing_whitespace): Use
13613 INTEGERP, not implicit test against zero, for glyph object.
13614 (try_window_id): Don't use make_number when we want an int value.
13615
13616 * xfaces.c (xlfd_symbolic_value): Make last argument a
13617 Lisp_Object, to be consistent with callers.
13618 (Fbitmap_spec_p): Use XINT to get numeric value of height.
13619 (lface_hash): Apply XFASTINT to lisp values before folding in.
13620
13621 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
13622 fill in window width and height. Pass an int, not a lisp object,
13623 as first arg to Finsert.
13624
13625 2000-04-01 Gerd Moellmann <gerd@gnu.org>
13626
13627 * xfaces.c (realize_basic_faces): Block input while realizing
13628 the faces.
13629
13630 * keyboard.c (lispy_mouse_names): Add additional mouse names.
13631
13632 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
13633
13634 2000-03-31 Gerd Moellmann <gerd@gnu.org>
13635
13636 * xterm.c (x_produce_glyphs): When displaying unibyte text
13637 or ASCII, handle case that per-char metric is null.
13638
13639 2000-03-30 Ken Raeburn <raeburn@gnu.org>
13640
13641 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
13642
13643 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
13644 (XSUBR, XBUFFER): Verify correct object type before returning
13645 pointer, using eassert.
13646 * frame.h (XFRAME): Likewise.
13647
13648 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
13649 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
13650 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
13651 * data.c (set_internal): Likewise.
13652 * dispextern.h (WINDOW_WANTS_MODELINE_P)
13653 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
13654 * fileio.c (auto_save_1): Likewise.
13655 * insdel.c (check_markers): Likewise.
13656 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
13657 * undo.c (record_insert): Likewise.
13658 * vmsproc.c (child_sig): Likewise.
13659 * window.c (unshow_buffer, window_loop): Likewise.
13660 * xterm.c (x_erase_phys_cursor): Likewise.
13661
13662 2000-03-30 Gerd Moellmann <gerd@gnu.org>
13663
13664 * xfns.c (free_image_cache): Free the cache structure itself
13665 last, after all its members have been freed.
13666
13667 * lisp.h (xstrdup): Add prototype.
13668
13669 * alloc.c (xstrdup): Moved here from xfaces.c.
13670 (allocating_for_lisp): Variable removed.
13671 (lisp_malloc): Block input around the calls to malloc and mem_insert.
13672
13673 * xfaces.c (realize_tty_face): Use find_symbol_value instead
13674 of Fsymbol_value.
13675 (xstrdup): Moved to alloc.c.
13676
13677 2000-03-29 Ken Raeburn <raeburn@gnu.org>
13678
13679 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
13680
13681 * emacs.c (main): Fix sense of no-loadup test.
13682
13683 * config.in (ENABLE_CHECKING): Undef.
13684
13685 * lisp.h (struct interval): Replace "parent" field with a union of
13686 interval pointer and Lisp_Object; add new bitfield to use as
13687 discriminant. Change other flag fields to bitfields.
13688 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
13689 is defined and the supplied test fails, print a message and abort.
13690 (eassert): New macro. Use CHECK to provide an assert-like facility.
13691
13692 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
13693 pointers; abort if the value looks like a lisp object.
13694 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
13695 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
13696 Modify for new interval parent definition.
13697
13698 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
13699 (UNMARK_BALANCE_INTERVALS): Update references that need an
13700 addressable lisp object in the interval structure.
13701 (die): New function.
13702 (suppress_checking): New variable.
13703
13704 * intervals.c (interval_start_pos): Just return 0 if there's no
13705 parent object.
13706
13707 2000-03-29 Gerd Moellmann <gerd@gnu.org>
13708
13709 * lread.c (read1): Accept `.' (period) as symbol start like in CL
13710 and earlier Emacs versions.
13711
13712 * keyboard.c (Ftop_level): Cancel busy-cursor.
13713
13714 * eval.c (call_debugger): Cancel busy-cursor.
13715
13716 2000-03-29 Kenichi Handa <handa@etl.go.jp>
13717
13718 * search.c (Freplace_match): Adjust multibyteness of the current
13719 buffer and NEWTEXT. Free allocated memory before signaling an error.
13720
13721 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
13722
13723 * regex.c (analyse_first): New function obtained by ripping out most
13724 of re_compile_fastmap and generalizing it a little bit so that it
13725 can also just return whether a given (sub)pattern can match the empty
13726 string or not.
13727 (regex_compile): Use `analyse_first' to decide whether the loop-check
13728 needs to be done or not for *, +, *? and +? (the loop check is costly
13729 for non-greedy repetition).
13730 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
13731
13732 2000-03-28 Dave Love <fx@gnu.org>
13733
13734 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
13735
13736 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
13737
13738 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
13739
13740 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
13741 an expression.
13742 (enum re_opcode_t): Update description of succeed_n.
13743 (PATFETCH): Always define.
13744 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
13745 operators, char classes, shy-groups and intervals).
13746 Optimize special cases of intervals so as to only use succeed_n and
13747 jump_n when really needed.
13748 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
13749 that we don't have to handle the special cases any more.
13750 Simplify on_failure_jump handling as well.
13751
13752 2000-03-28 Jason Rumney <jasonr@gnu.org>
13753
13754 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
13755
13756 2000-03-27 Gerd Moellmann <gerd@gnu.org>
13757
13758 * s/freebsd.h (GC_SETJMP_WORKS): Define.
13759
13760 * s/msdos.h (GC_SETJMP_WORKS): Define.
13761
13762 * alloc.c (mark_maybe_object): New function.
13763 (mark_memory): Use it.
13764 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
13765 (setjmp_tested_p, longjmp_done): New variables.
13766 (test_setjmp): New function.
13767 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
13768 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
13769
13770 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
13771 to DEC_TEXT_POS and INC_TEXT_POS.
13772
13773 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
13774 with parameter MULTIBYTE_P.
13775
13776 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
13777
13778 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
13779 buffers because it looks for multibyte character byte sequences
13780 which don't exist in unibyte text.
13781
13782 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
13783
13784 * xfaces.c (register_color, unregister_color, unregister_colors)
13785 [DEBUG_X_COLORS]: New functions.
13786 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
13787
13788 * xfns.c (x_set_cursor_color): Get color reference counts right.
13789
13790 * xterm.c (x_copy_color): New function.
13791 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
13792
13793 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
13794 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
13795 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
13796 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
13797 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
13798 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
13799 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
13800 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
13801 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
13802 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
13803
13804 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
13805 names for handling per-buffer variables.
13806
13807 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
13808 instead of MAX_BUFFER_LOCAL_VARS.
13809 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
13810
13811 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
13812
13813 * xfns.c (x_specified_cursor_type): New function.
13814 (x_set_cursor_type): Use it.
13815
13816 * buffer.h (struct buffer): Add cursor_type.
13817
13818 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
13819
13820 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
13821 (print_partial_compiled_pattern, re_compile_fastmap):
13822 Handle new opcode.
13823 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
13824 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
13825 executing it as well as when popping it off the stack to find infinite
13826 loops in non-greedy repetition operators.
13827
13828 2000-03-26 Gerd Moellmann <gerd@gnu.org>
13829
13830 * doc.c (Qfunction_documentation): New variable.
13831 (syms_of_doc): Initialize Qfunction_documentation.
13832 (Fdocumentation): If FUNCTION is a symbol with non-nil
13833 `function-documentation' property, return a documentation derived
13834 from that.
13835
13836 * buffer.c (syms_of_buffer): Add default-cursor-type.
13837 (init_buffer_once): Don't let cursor_type have a local value
13838 in every buffer.
13839
13840 * xterm.c (x_display_and_set_cursor): Choose cursor depending
13841 on buffer-local value of cursor_type.
13842 (x_draw_bar_cursor): Add parameter WIDTH.
13843
13844 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
13845 (init_buffer_once): Set default cursor_type value to t.
13846 Mark cursor_type as local everywhere.
13847 (syms_of_buffer): New per-buffer variable cursor-type.
13848
13849 * buffer.h (struct buffer): Remove member local_var_flags,
13850 add local_flags.
13851 (MAX_BUFFER_LOCAL_VARS): New macro.
13852 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
13853 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
13854 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
13855 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
13856
13857 * print.c (print_object): Use new macros for per-buffer variables.
13858
13859 * category.c (Fset_category_table): Use new macros for per-buffer
13860 variables.
13861
13862 * buffer.c (buffer_permanent_local_flags): Make a char array.
13863 (max_buffer_local_idx): New variable.
13864 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
13865 for new handling of per-buffer variables.
13866 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
13867 (init_buffer_once): Initialize per-buffer vars differently.
13868 Set max_buffer_local_idx.
13869
13870 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
13871 variables.
13872
13873 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
13874
13875 * data.c (do_symval_forwarding, store_symval_forwarding)
13876 (find_symbol_value, set_internal, default_value, Fset_default)
13877 (Fkill_local_variable, Flocal_variable_p): Use new macros for
13878 per-buffer variables.
13879
13880 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
13881
13882 2000-03-24 Gerd Moellmann <gerd@gnu.org>
13883
13884 * xterm.c (x_term_init): Unblock input around call1 of
13885 Qvendor_specific_keysyms.
13886
13887 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
13888 (find_defun_start): Consider an open parenthesis in column 0
13889 a defun start only if open_paren_in_column_0_is_defun_start is set.
13890 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
13891
13892 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
13893
13894 * eval.c (Fautoload): Add entry in load-history (if after dump).
13895 * lread.c (load-history): Update docstring.
13896
13897 2000-03-24 Gerd Moellmann <gerd@gnu.org>
13898
13899 * indent.c (Fvertical_motion): Always use the current buffer.
13900 Temporarily change the window's buffer, if necessary.
13901
13902 2000-03-23 Gerd Moellmann <gerd@gnu.org>
13903
13904 * xterm.c (fast_find_position): Make sure not to consider rows
13905 not visible in the window.
13906
13907 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
13908
13909 * regex.c (enum syntaxcode): Provide default for non-Emacs.
13910 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
13911
13912 2000-03-22 Jason Rumney <jasonr@gnu.org>
13913
13914 * w32menu.c (single_submenu): Set help string to NULL if none.
13915 (w32_menu_show): Set help string correctly.
13916 (add-menu-item): Set help string in MIIM_DATA for menu item.
13917 Load SetMenuItemInfoA explicitly.
13918 (w32_menu_display_help): New function.
13919
13920 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
13921 (QCdata): Moved to xdisp.c.
13922
13923 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
13924 (Vw32_charset_to_codepage_alist): Removed.
13925 (Vw32_charset_info_alist): New variable.
13926 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
13927 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
13928 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
13929 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
13930 with TODO comment.
13931 (w32_codepage_for_font): Use Vw32_charset_info_alist.
13932 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
13933 Define Vw32_charset_info_alist and w32_charset symbols.
13934
13935 2000-03-22 Jason Rumney <jasonr@gnu.org>
13936
13937 * makefile.nt (w32bdf.obj): Update dependencies.
13938
13939 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
13940
13941 * w32fns.c: Include fontset.h after dispextern.h.
13942 (Fx_create_frame): Do not create fontset.
13943 (w32_load_system_font): Doc fix.
13944 (Fx_close_connection): Free full_name if it is not shared.
13945
13946 * w32term.c: Include fontset.h after dispextern.h.
13947 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
13948 Callers updated.
13949 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
13950 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
13951 (w32_font_is_double_byte): New function, needs body.
13952 (x_append_glyph): Set glyph->glyph_not_available_p.
13953 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
13954 it->charset. If it->multibyte_p is zero and it->c is a multibyte
13955 character, convert it to a unibyte character.
13956 (struct glyph_string): Delete member `charset'.
13957 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
13958 calculating it is found.
13959 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
13960 the case that per char metric is not available correctly.
13961 (x_fill_glyph_string): Handle the case that the specific glyph is
13962 not available correctly.
13963 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
13964 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
13965 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
13966 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
13967 fontset. Don't call FS_LOAD_FONT.
13968
13969 2000-03-22 Ken Raeburn <raeburn@gnu.org>
13970
13971 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
13972 (INT_LISPLIKE): New macro.
13973 (NULL_INTERVAL_P): Use it.
13974 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
13975 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
13976 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
13977
13978 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
13979 explicit references to "parent" field of struct interval and
13980 associated unclean type conversions.
13981 * intervals.c (create_root_interval, root_interval, rotate_right)
13982 (rotate_left, balance_possible_root_interval, split_interval_right)
13983 (split_interval_left, interval_start_pos, find_interval)
13984 (next_interval, previous_interval, update_interval)
13985 (adjust_intervals_for_insertion, delete_node, delete_interval)
13986 (adjust_intervals_for_deletion, merge_interval_right)
13987 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
13988 (copy_intervals_to_string): Likewise.
13989 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
13990 Likewise.
13991 * syntax.c (update_syntax_table): Likewise.
13992
13993 * intervals.c (reproduce_tree_obj): New function, like
13994 reproduce_tree but takes a Lisp_Object for the parent. Declare
13995 with prototype.
13996 (graft_intervals_into_buffer): Use it when appropriate.
13997 (reproduce_tree): Declare with prototype.
13998 (balance_possible_root_interval): Check that the parent is a lisp
13999 object before trying to examine its type.
14000
14001 2000-03-22 Gerd Moellmann <gerd@gnu.org>
14002
14003 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
14004 as strings only if both are known to be strings.
14005
14006 * s/openbsd.h (LIBS_TERMCAP): Undef.
14007
14008 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
14009
14010 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
14011 definitions for non-Emacs compilation.
14012 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
14013 outside of `#ifdef emacs'.
14014 (print_partial_compiled_pattern): Update.
14015 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
14016 (re_compile_fastmap): Merge handling of charset and charset_not (for
14017 emacs and non-emacs compilation as well).
14018 Similarly for (not)categoryspec and (not)syntaxspec.
14019 Don't use the fastmap when reaching `anychar' since the added
14020 complexity is not justified.
14021 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
14022 and (not)syntaxspec. Merge (not)categoryspec.
14023
14024 2000-03-22 Kenichi Handa <handa@etl.go.jp>
14025
14026 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
14027 (FACE_FOR_CHAR): Define them differently for the configuration of
14028 --without-x.
14029
14030 2000-03-21 Dave Love <fx@gnu.org>
14031
14032 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
14033 doc string.
14034
14035 2000-03-21 Gerd Moellmann <gerd@gnu.org>
14036
14037 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
14038 (lface_fully_specified_p): Don't check contents of
14039 LFACE_FONT_INDEX because that attribute is optional.
14040 (realize_x_face): Remove now unwarranted xassert.
14041
14042 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
14043
14044 The following changes are to make font selection based on
14045 characters, not charset. In addition, they recover fontset
14046 facilities while utilizing the new font selection mechanism.
14047
14048 * Makefile.in (fontset.o): Depend on dispextern.h.
14049
14050 * alloc.c (mark_face_cache): Don't mark face->registry.
14051
14052 * dispextern.h (struct glyph): New member glyph_not_available_p.
14053 Use 22 bits for face_id.
14054 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
14055 (struct face): Delete member registry, new member ascii_face.
14056 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
14057 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
14058 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
14059 (struct it): Delete member charset, new member glyph_not_available_p.
14060
14061 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
14062 (struct fontset_info, struct fontset_data): Structs removed.
14063 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
14064 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
14065 (fs_load_font, fs_query_fontset): Adjusted for new argument.
14066 (fs_free_face_fontset, fontset_font_pattern)
14067 (face_suitable_for_char_p, face_for_char)
14068 (make_fontset_for_ascii_face): Extern them.
14069 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
14070 (FS_LOAD_FACE_FONT): New macro.
14071
14072 * fontset.c: All codes rewritten or adjusted for the change of
14073 fontset implementation. Now fontset is represented by char table.
14074 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
14075 Variables removed.
14076 (my_strcasecmp): Function removed.
14077 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
14078 (AREF, ASIZE): New macros.
14079 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
14080 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
14081 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
14082 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
14083 (fontset_id_valid_p, font_family_registry, fontset_name)
14084 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
14085 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
14086 New functions.
14087 (fs_load_font): New arg FACE. Caller changed.
14088 (fs_query_fontset): Argument changed. Caller changed.
14089 (Fquery_fontset): call fs_query_fontset.
14090 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
14091 Functions removed.
14092 (clear_fontset_elements, check_registry_encoding)
14093 (check_fontset_name): New functions.
14094 (syms_of_fontset): Set char-table-extra-slots property of fontset
14095 to 3. Staticpro and initialize Vfontset_table and
14096 Vdefault_fontset. Defsubr fontset_font and fontset_list.
14097
14098 * frame.h (struct frame): Member `fontset_data' removed.
14099 (FRAME_FONTSET_DATA): Macro removed.
14100
14101 * frame.c (make_frame): Don't allocate f->fontset_data.
14102 (Fdelete_frame): Don't free f->fontset_data.
14103
14104 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
14105
14106 * xdisp.c (charset_at_position): Function removed.
14107 (init_iterator): Don't set member charset of struct `it'.
14108 (handle_face_prop, reseat_to_string, set_iterator_to_next)
14109 (next_element_from_display_vector, insert_left_trunc_glyphs):
14110 Likewise.
14111 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
14112 FACE_FOR_CHARSET.
14113 (get_next_display_element, append_space)
14114 (extend_face_to_end_of_line): Likewise.
14115
14116 * xfaces.c (Qx_charset_registry, Vface_default_registry):
14117 Variables removed.
14118 (clear_font_table, frame_update_line_height, load_face_font):
14119 Adjusted for the change of fontset implementation.
14120 (load_face_fontset_font): Function removed.
14121 (pixel_point_size): New function.
14122 (font_list): Argument type changed. Caller changed.
14123 (LFACE_FONT): New macro.
14124 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
14125 (set_lface_from_font_name): Type of arg FONTNAME is changed to
14126 Lisp_Object. Determine the font name by actually loading a font
14127 by the specified pattern. Set LFACE_FONT (lface) to the specified
14128 pattern. Even if a font is not found, don't try alternatives.
14129 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
14130 (set_font_frame_param): If `font' is specified in lface, use it.
14131 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
14132 (lface_same_font_attributes_p): Likewise.
14133 (make_realized_face): Arguent changed. Caller changed. Set
14134 face->ascii_face to face itself.
14135 (free_realized_face): Free face->fontset if face is for ASCII.
14136 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
14137 (deduce_unibyte_registry, x_charset_registry): Functions removed.
14138 (free_realized_multibyte_face): New function.
14139 (lookup_face, lookup_named_face, lookup_derived_face): Argument
14140 changed. Caller changed.
14141 (try_font_list): Argument type changed.
14142 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
14143 (choose_face_font): Argument changed. Handle fontset properly.
14144 (choose_face_fontset_font): Function removed.
14145 (realize_default_face, realize_named_face): Don't remove the
14146 former face here.
14147 (realize_face): Argument changed. Caller changed. Remove face
14148 with the arg former_face_id in advance. Load font for the new face.
14149 (realize_x_face): Argument changed. Caller changed. For a
14150 multibyte character, share fontset with base_face. For a single
14151 byte character, make a new realized fontset. Don't load a font here.
14152 (realize_tty_face): Argument changed. Caller changed.
14153 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
14154 (face_at_buffer_position): Don't check multibyte_p for returning
14155 DEFAULT_FACE_ID.
14156 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
14157 FACE_SUITABLE_FOR_CHARSET_P.
14158 (syms_of_xfaces): Remove code for Qx_charset_registry and
14159 Vface_default_registry.
14160
14161 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
14162 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
14163 (x_per_char_metric): Don't try FONT->default_char. Even if
14164 pcm->width is zero, glyph bits may exist.
14165 (x_encode_char): Always initialize char2b->byte1.
14166 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
14167 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
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. Handle the case that per char metric is not
14171 available. If it->multibyte_p is zero and it->c is a multibyte
14172 character, convert it to a unibyte character.
14173 (struct glyph_string): Delete member `charset'.
14174 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
14175 the case that per char metric is not available correctly.
14176 (x_fill_glyph_string): Handle the case that the specific glyph is
14177 not available correctly.
14178 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
14179 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
14180 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
14181 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
14182 fontset. Don't call FS_LOAD_FONT.
14183
14184 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
14185 (x_create_tip_frame): Likewise.
14186 (Fx_close_connection): Free full_name of font_info.
14187
14188 * fns.c (optimize_sub_char_table): New function.
14189 (Foptimize_char_table): New function.
14190 (syms_of_fns): Defsubr Soptimize_char_table.
14191
14192 2000-03-20 Gerd Moellmann <gerd@gnu.org>
14193
14194 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
14195 only if buffer is displayed in some window.
14196
14197 * xdisp.c (handle_single_display_prop): Initialize local `value'.
14198 (try_window_reusing_current_matrix): Don't call scroll run
14199 function if run's current and desired position are the same;
14200 this prevents cursor flickering.
14201
14202 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
14203
14204 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
14205
14206 * regex.c (RE_STRING_CHAR): New macro.
14207 (GET_CHAR_AFER_2): Remove.
14208 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
14209 (enum re_opcode_t): Remove on_failure_jump_exclusive.
14210 (print_partial_compiled_pattern, re_compile_fastmap)
14211 (re_match_2_internal): Remove on_failure_jump_exclusive.
14212 (regex_compile): Turn optimizable P+ loops into PP*, so that the
14213 optimization only need to work for * (ie. can use of_keep_string_jump).
14214 Remove the special case for .*\n since it is now covered by the general
14215 optimization.
14216 (re_search_2): Don't bother with `room'.
14217 (skip_one_char): New function.
14218 (skip_noops): Simplify since `memory' is not needed any more.
14219 (mutually_exclusive_p): Restructure slightly to use `switch' and
14220 add handling for "all" remaining cases.
14221 (re_match_2_internal): Change on_failure_jump_smart to use
14222 on_failure_keep_string_jump (and redirect the end-of-loop jump)
14223 rather than on_failure_jump_exclusive.
14224
14225 2000-03-19 Gerd Moellmann <gerd@gnu.org>
14226
14227 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
14228 number of bits per RGB because it's everywhere used as the depth
14229 of the visual.
14230
14231 * term.c (calculate_costs): Remove code dealing with X frames.
14232
14233 2000-03-19 Richard M. Stallman <rms@gnu.org>
14234
14235 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
14236
14237 2000-03-18 Gerd Moellmann <gerd@gnu.org>
14238
14239 * lread.c (read_integer): Unread the last char not consumed.
14240
14241 2000-03-17 Gerd Moellmann <gerd@gnu.org>
14242
14243 * xterm.c (x_update_window_cursor): Don't update in frames
14244 which are in the process of being deleted.
14245
14246 2000-03-16 Gerd Moellmann <gerd@gnu.org>
14247
14248 * Makefile.in (mostlyclean): Add `*.core'.
14249 (clean): Add `bootstrap-emacs'.
14250
14251 * lread.c (read_integer): New function.
14252 (read1): Support read syntax #o, #x, #b, #r.
14253
14254 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
14255
14256 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
14257 make sure POINTER_TO_OFFSET gives the same value before and after
14258 PREFETCH. Use `dfail' to guarantee "atomic" matching.
14259 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
14260 (debug): Now only active if > 0 rather than if != 0.
14261 (DEBUG_*): Update for the new meaning of `debug'.
14262 (print_partial_compiled_pattern): Add missing `succeed' case. Use
14263 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
14264 in `succeed_n', `jump_n' and `set_number_at'.
14265 (store_op1, store_op2, insert_op1, insert_op2)
14266 (at_begline_loc_p, at_endline_loc_p): Add prototype.
14267 (group_in_compile_stack): Move to after its arg's types are
14268 declared and add a prototype.
14269 (PATFETCH): Define in terms of PATFETCH_RAW.
14270 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
14271 (QUIT): Redefine as a nop except for NTemacs.
14272 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
14273 indentation of the greedy-op and shy-group code.
14274 (at_(beg|end)line_loc_p): Fix argument's types.
14275 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
14276 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
14277 (MATCHING_IN_FIRST_STRING): Remove.
14278 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
14279 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
14280 QUIT unconditionally.
14281
14282 2000-03-15 Gerd Moellmann <gerd@gnu.org>
14283
14284 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
14285 a sole completion.
14286
14287 * process.c (send_process): Add a hint that the function
14288 can call Lisp code to its comment.
14289
14290 * lread.c (load_dangerous_libraries): New variable.
14291 (Vbytecomp_version_regexp): New variable.
14292 (safe_to_load_p): New function.
14293 (Fload): Handle files not compiled with Emacs specially.
14294 (syms_of_lread): New Lisp variable load-dangerous-libraries.
14295
14296 2000-03-14 Gerd Moellmann <gerd@gnu.org>
14297
14298 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
14299
14300 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
14301 support functions only if HAVE_X11R6_XIM is defined.
14302 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
14303
14304 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
14305
14306 * xfns.c (X_I18N_INHIBITED): Don't define.
14307 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
14308 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
14309
14310 * config.in (HAVE_X_I18N): Moved here from xterm.h.
14311 (HAVE_X11R6_XIM): Define.
14312
14313 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
14314
14315 * xterm.c (x_term_init): Add support for X resource `synchronous'.
14316 If set, call XSynchronize.
14317
14318 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
14319
14320 * regex.c: Declare a new type `re_char' used throughout the code
14321 for the string char type. It's `const unsigned char' to match the
14322 rest of Emacs. Consistently make sure all pointers to strings use
14323 it and make sure all pointers into the pattern use `unsigned char'.
14324 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
14325 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
14326 code duplication.
14327
14328 * charset.h (GET_CHAR_AFTER_2): Remove.
14329 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
14330
14331 2000-03-12 Ken Raeburn <raeburn@gnu.org>
14332
14333 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
14334 variable before the invocation of YMF_PASS_LDFLAGS, in case both
14335 of them try to use backquotes.
14336
14337 2000-03-12 Dave Love <fx@gnu.org>
14338
14339 * unexelf.c: Restore changes of 1999-10-19.
14340 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
14341 fix its type and alignment; copy it from current process.
14342
14343 2000-03-12 Gerd Moellmann <gerd@gnu.org>
14344
14345 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
14346 has been found. Fix bug not computing timer's predecessor.
14347
14348 * fileio.c (Fread_file_name): Handle case that DIR contains a
14349 file name.
14350
14351 * window.c (Fsave_window_excursion): Doc fix.
14352
14353 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
14354
14355 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
14356
14357 * msdos.c (vga_installed): New function, code moved from
14358 dos_set_window_size.
14359 (Qbar, Qcursor_type, outside_cursor): New variables.
14360 (syms_of_msdos): Intern and staticpro them.
14361 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
14362 shape used outside Emacs when called for the first time.
14363 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
14364 cursor shape used outside Emacs.
14365 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
14366 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
14367 type has changed.
14368 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
14369 parameters specify the cursor. Make qreverse a global
14370 variable (renamed to Qreverse).
14371
14372 2000-03-09 Gerd Moellmann <gerd@gnu.org>
14373
14374 * fns.c (Fy_or_n_p): Cancel busy-cursor.
14375
14376 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
14377
14378 This is a big redesign of failure-stack and register handling, prompted
14379 by bugs revealed when trying to add shy-groups. Overall, what happened
14380 is that loops are now structured a little differently, groups can be
14381 shy and the code is a little simpler.
14382
14383 * regex.h: Update the copyright.
14384 (RE_SHY_GROUPS): New value.
14385 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
14386 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
14387
14388 * regex.c (enum re_opcode_t): Remove jump_past_alt,
14389 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
14390 on_failure_jump_(exclusive, loop and smart). Also fix the comment
14391 for (start|stop)_memory since they now only take one argument (the
14392 second has becomes unnecessary).
14393 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
14394 (print_compiled_pattern): Use %ld to printf long ints and flush to
14395 make debugging a little easier.
14396 (union fail_stack_elt): Make the integer unsigned.
14397 (struct fail_stack_type): Add a `frame' element.
14398 (INIT_FAIL_STACK): Init `frame' as well.
14399 (POP_PATTERN_OP): New macro for re_compile_fastmap.
14400 (DEBUG_PUSH, DEBUG_POP): Remove.
14401 (NUM_REG_ITEMS): Remove.
14402 (NUM_NONREG_ITEMS): Adjust.
14403 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
14404 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
14405 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
14406 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
14407 New macros.
14408 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
14409 address pushed is not the destination of the jump but the source
14410 of it instead.
14411 (NUM_FAILURE_ITEMS): Remove.
14412 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
14413 registers before the actual failure point). Don't hardcode any
14414 meaning for str==NULL anymore.
14415 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
14416 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
14417 Remove.
14418 (REG_UNSET_VALUE): Use NULL (why not?).
14419 (compile_range): Remove declaration since it doesn't exist.
14420 (struct compile_stack_elt_t): Remove inner_group_offset.
14421 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
14422 (regex_grow_registers): Remove dead code.
14423 (FIXUP_ALT_JUMP): New macro.
14424 (regex_compile): Add shy-groups Change loops to use
14425 on_failure_jump_smart&jump instead of
14426 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
14427 initial (dummy_failure_)jump. Remove c1_base (looks like unused
14428 variable to me). Use `jump' instead of `jump_past_alt' and don't
14429 bother with push_dummy_failure in alternatives since it is now
14430 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
14431 emacs' for (re)allocating the stack.
14432 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
14433 from loop when bufp->can_be_null rather than jumping to `done'.
14434 Avoid jumping backwards so as to ensure termination. Use
14435 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
14436 backreferences. Remove dead code in handling of `anychar'.
14437 (skip_noops, mutually_exclusive_p): New functions taken from the
14438 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
14439 improve mutually_exclusive_p to handle ".+\n".
14440 (lowest_active_reg, highest_active_reg)
14441 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
14442 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
14443 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
14444 variables. Push register (in `start_memory') on the stack rather
14445 than storing it in old_reg(start|end). Remove the cycle detection
14446 from `stop_memory', replaced by the use of on_failure_jump_loop
14447 for greedy loops. Add code for the new on_failure_jump_<foo>.
14448 Remove ad-hoc code in `on_failure_jump' to push more registers in
14449 the case of a loop. Take out code from `maybe_pop_jump' into
14450 separate functions and adapt it to the semantics of
14451 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
14452 and push_dummy_failure. Remove dummy_failure handling and
14453 handling of `failures to jump to on_failure_jump' (this last one
14454 was already dead code, it seems).
14455 (group_match_null_string_p, alt_match_null_string_p)
14456 (common_op_match_null_string_p): Remove.
14457
14458 2000-03-08 Dave Love <fx@gnu.org>
14459
14460 * config.in: Don't depend on __STDC__ for volatile.
14461 Add POINTER_TYPE, PTR, PROTOTYPES.
14462
14463 * hftctl.c, strftime.c: Use PROTOTYPES.
14464 * eval.c (find_handler_clause): Likewise.
14465
14466 * mem-limits.h: Use POINTER_TYPE.
14467
14468 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
14469 (memory_warnings): Declare using POINTER_TYPE.
14470
14471 2000-03-08 Gerd Moellmann <gerd@gnu.org>
14472
14473 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
14474
14475 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
14476
14477 * xfns.c: Remove obsolete code in #if 0.
14478 (Fx_focus_frame): New function.
14479
14480 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
14481
14482 * coding.c (coding_category_name): Add coding-category-utf-8,
14483 coding-category-utf-16-be, coding-category-utf-16-le.
14484 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
14485 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
14486 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
14487 (detect_coding_utf_8): New function.
14488 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
14489 UTF_16_LOW_SURROGATE_P): New macros.
14490 (detect_coding_utf_16): New function
14491 (detect_coding_mask): When priorities are specified, skip any
14492 categories that have `nil' coding-system. Fix bug of returning
14493 wrong mask when PRIORITIES is specified and detect_coding_XXX()
14494 returns a mask not set in PRIORITIES.
14495 (detect_eol_type_in_2_octet_form): New function.
14496 (detect_eol): selects detect_eol_type_XXX to call according to
14497 cooding->category_idx.
14498 (detect_coding_system): Remove `nil' coding-system in the result.
14499 (Fupdate_coding_systems_internal): Update all coding-categories.
14500
14501 * coding.h (CODING_CATEGORY_IDX_UTF_8)
14502 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
14503 New macros.
14504 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
14505 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
14506 (CODING_CATEGORY_IDX_UTF_16_LE)
14507 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
14508 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
14509 (CODING_CATEGORY_MASK_ANY): Include the above macros.
14510 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
14511
14512 2000-03-07 Gerd Moellmann <gerd@gnu.org>
14513
14514 * doc.c (Fdocumentation_property): If value is not a string,
14515 and doesn't refer to etc/DOC, evaluate it to obtain a string.
14516
14517 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
14518 close the display with XtCloseDisplay. This caused a bus error
14519 on OpenWindows.
14520
14521 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
14522 complete but not unique.
14523
14524 2000-03-06 Gerd Moellmann <gerd@gnu.org>
14525
14526 * process.c (send_process): Remove local variable `procname' that
14527 might become invalid when a GC happens. Instead, access the
14528 process name slot directly.
14529
14530 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
14531 orig_height if set.
14532
14533 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
14534 orig_height if set.
14535
14536 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
14537
14538 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
14539 glyph matrices have been freed.
14540
14541 2000-03-05 Gerd Moellmann <gerd@gnu.org>
14542
14543 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
14544 (bootstrap-temacs): Set LC_ALL to C like for temacs.
14545
14546 * xfns.c (QCdata): Moved to xdisp.c.
14547
14548 * xdisp.c (QCdata): Moved here from xfns.c.
14549 (syms_of_xdisp): Initialize QCdata.
14550
14551 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
14552
14553 * window.c (coordinates_in_window): Use
14554 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
14555 FRAME_INTERNAL_BORDER_WIDTH.
14556
14557 * xdisp.c (try_window_id): Recompute unchanged information if
14558 it is obviously invalid.
14559
14560 * xterm.c (x_term_init): Create a colormap if not using the
14561 default visual.
14562
14563 * xterm.h (select_visual): Change prototype.
14564
14565 * xfns.c (select_visual): Rewritten. Recognize user-specified
14566 visual classes.
14567 (visual_classes): New variable.
14568
14569 2000-03-04 Gerd Moellmann <gerd@gnu.org>
14570
14571 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
14572 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
14573 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
14574 (x_decode_color): Don't handle allocation of white and black specially.
14575 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
14576 XtNcolormap resources.
14577 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
14578 (Fx_create_frame): Initialize color members of x_output structure.
14579 (xpm_load): Pass colormap to XPM lib.
14580
14581 * xfaces.c (x_free_colors): Access colormap of frame using
14582 FRAME_X_COLORMAP. Be paranoid about freeing black and white
14583 when default colormap is used.
14584
14585 * xterm.c (x_term_init): Set Colormap member of x_display_info
14586 structure. Copy colormap if resource `privateColormap' is
14587 specified (PseudoColor only).
14588 (x_setup_relief_color): Access colormap of frame using
14589 FRAME_X_COLORMAP.
14590
14591 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
14592 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
14593
14594 2000-03-04 Jason Rumney <jasonr@gnu.org>
14595
14596 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
14597 other non-platform-specific equivalents.
14598 [WINDOWSNT]: Include w32term.h, fontset.h and define X
14599 specific functions and macros as their w32 equivalents where
14600 non-platform-specifics are not available.
14601 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
14602 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
14603 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
14604 (frame_update_line_height): Use macros to access f->output_data.
14605 (defined_color): Remove FIXME comments; fixed.
14606 (x_face_list_fonts, prepare_face_for_display): Put X specifics
14607 into #ifdef blocks. Add WINDOWSNT blocks.
14608 (Fx_list_fonts): Use macros for accessing font data.
14609 (set_lface_from_font_name): Different default fonts for X and
14610 WINDOWSNT.
14611 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
14612 scalable for backward compatibility.
14613 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
14614 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
14615
14616 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
14617 syms_of_w32faces.
14618
14619 * makefile.nt (w32faces.obj): Remove.
14620 (xfaces.obj): Add.
14621
14622 2000-03-03 Jason Rumney <jasonr@gnu.org>
14623
14624 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
14625 correct parameters.
14626
14627 2000-03-03 Ken Raeburn <raeburn@gnu.org>
14628
14629 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
14630 standard ELF definitions here if the system header does not.
14631
14632 2000-03-03 Gerd Moellmann <gerd@gnu.org>
14633
14634 * xterm.c (PER_CHAR_METRIC): Removed.
14635 (x_per_char_metric_1, x_default_char): New functions.
14636 (x_per_char_metric): If font's default char is invalid, return
14637 metrics of a suitably chosen usable default char.
14638 (x_draw_glyph_string_foreground): If font has an invalid default
14639 char, replace occurrences of unprintable chars with a suitably
14640 chosen usable default char.
14641
14642 2000-03-02 Gerd Moellmann <gerd@gnu.org>
14643
14644 * xterm.c (note_mouse_highlight): Return quickly if frame's
14645 glyph matrices have been freed.
14646
14647 * dispnew.c (free_glyphs): Block input while freeing matrices.
14648
14649 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
14650
14651 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
14652 Use x_free_colors.
14653
14654 * dispextern.h (x_free_colors): Add prototype.
14655
14656 * xfaces.c (x_free_colors): New function.
14657 (unload_color, free_face_colors): Use it.
14658
14659 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14660
14661 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
14662
14663 * window.c [MSDOS]: Include msdos.h.
14664
14665 2000-03-02 Dave Love <fx@gnu.org>
14666
14667 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
14668
14669 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
14670 set C_OPTIMIZE_SWITCH for gcc.
14671
14672 2000-03-02 Kenichi Handa <handa@etl.go.jp>
14673
14674 * coding.c (coding_save_composition): Be sure to allocate
14675 composition data area in coding even if there's no composition in
14676 the current run.
14677
14678 2000-03-01 Jason Rumney <jasonr@gnu.org>
14679
14680 * w32term.c: Equivalent changes to those made to xterm.c on
14681 2000-02-25 and 2000-02-24.
14682
14683 * w32fns.c: Equivalent changes to those made to xfns.c on
14684 2000-02-25 and 2000-02-21.
14685
14686 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
14687 correct line-end convention is followed.
14688
14689 * w32menu.c [HAVE_BOXES]: Remove #undef.
14690 (single_keymap_panes): Remove code for simulating checkmarks.
14691 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
14692 Remove code for drawing simulated checkmarks.
14693 (w32_menu_show): make unibyte help string correctly.
14694 (add_menu_item): draw standard Windows checkmarks. Draw radio
14695 buttons as radio buttons if possible.
14696
14697 2000-03-01 Gerd Moellmann <gerd@gnu.org>
14698
14699 * sysdep.c (start_of_text): Don't define this function for NetBSD
14700 with ELF.
14701
14702 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
14703 Don't define.
14704 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
14705 (LINKER): Don't undef if __NetBSD__ is defined.
14706
14707 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
14708
14709 * fileio.c [__NetBSD__]: Define `unix'.
14710
14711 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
14712
14713 2000-02-29 Gerd Moellmann <gerd@gnu.org>
14714
14715 * atimer.c (start_atimer): Don't abort when timers are stopped.
14716 (append_atimer_lists): New function.
14717 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
14718 arbitrary lists of stopped and running atimers.
14719
14720 * atimer.c (cancel_atimer): Handle canceling an atimer when
14721 some timers are stopped.
14722
14723 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
14724 after canceling it.
14725
14726 * fns.c (maybe_resize_hash_table): Handle case of new size
14727 coming out as being the same as old size.
14728
14729 2000-02-27 Jason Rumney <jasonr@gnu.org>
14730
14731 * makefile.nt: Add atimer.h to dependencies.
14732 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
14733 * w32console.c: Only disable window system features for dispextern.h
14734 (initialize_w32_display): Build a display info for the console.
14735 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
14736 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
14737 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
14738 as 2 button mice.
14739 * w32gui.h (struct W32FontStruct): Revert last change after change
14740 to xdisp.c.
14741 * w32menu.c (single_submenu): Set up help string.
14742 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
14743 (w32_dialog_show): Set up help string.
14744 * w32term.c (w32_display_info_for_display): Remove unused function.
14745 (w32_draw_bitmap): Use pre-built bitmaps.
14746 (w32_initialize_display_info): New function to initialize parts of
14747 display info that are common to both GUI and console frames.
14748 (w32_term_init): Use w32_initialize_display_info. Do not set
14749 Vw32_num_mouse_buttons here, as it is not called for console
14750 frames. Build bitmaps for indicating truncated lines etc.
14751 (x_delete_display): Destroy pre-built bitmaps.
14752 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
14753 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
14754
14755 2000-02-27 Dave Love <fx@gnu.org>
14756
14757 * lisp.h: Add a bunch of prototypes.
14758
14759 2000-02-26 Kenichi Handa <handa@etl.go.jp>
14760
14761 * keyboard.c (read_char): Set `usec' correctly.
14762
14763 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
14764
14765 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
14766 `lambda', set reg[RRR] to the map index.
14767 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
14768 reg[RRR] to 0. Otherwise, set it to -1.
14769
14770 2000-02-25 Gerd Moellmann <gerd@gnu.org>
14771
14772 * emacs.c (main): Remove code snippet commented out with `//'.
14773
14774 2000-02-25 Richard M. Stallman <rms@gnu.org>
14775
14776 * fileio.c (Ffile_symlink_p): If result starts with a `/'
14777 and contains a `:', prepend `/:'.
14778
14779 * window.c (select_window_1): If selected_window is nil,
14780 don't "swap out" the buffer's point.
14781 (Fset_window_configuration): Set selected_window to nil
14782 before calling Fselect_window.
14783 (unshow_buffer): Don't set point in buffer from window's point
14784 if another more recently selected window also shows the buffer.
14785
14786 2000-02-25 Gerd Moellmann <gerd@gnu.org>
14787
14788 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
14789
14790 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
14791 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
14792 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
14793 New variables.
14794 (DEFAULT_BUSY_CURSOR_DELAY): New define.
14795 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
14796 (hide_busy_cursor): New functions.
14797 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
14798
14799 * minibuf.c (read_minibuf): Cancel busy-cursor.
14800
14801 * keyboard.c (command_loop_1): Call start_busy_cursor before
14802 Fcommand_execute and cancel_busy_cursor after it.
14803 (timer_check): Remove busy-cursor code.
14804 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
14805 cursor timer.
14806
14807 * process.c (wait_reading_process_input): Remove busy-cursor code.
14808
14809 * eval.c (Fsignal): Call cancel_busy_cursor instead of
14810 Fx_hide_busy_cursor.
14811
14812 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
14813 Remove prototyoes.
14814 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
14815
14816 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
14817
14818 * xterm.c (XTread_socket): Remove busy-cursor code.
14819
14820 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
14821 (build_frame_matrix_from_leaf_window): Put code handling
14822 glyph row's not being a slice of a frame row in #if 0.
14823 (sync_window_with_frame_matrix_rows): New function.
14824 (frame_row_to_window): New function.
14825 (mirror_line_dance): Handle copies between windows.
14826
14827 * lread.c (Fload): Use `xfree' instead of `free'.
14828 (init_obarray): Use `xmalloc' instead of `malloc'.
14829
14830 * window.c (Fset_window_buffer): Set WINDOW to the window
14831 after decoding.
14832 (coordinates_in_window): Take frame's internal border width
14833 into account.
14834
14835 2000-02-24 Gerd Moellmann <gerd@gnu.org>
14836
14837 * xterm.c (x_display_and_set_cursor): Display cursor of
14838 non-selected windows depending on the setting of
14839 cursor_in_non_selected_windows.
14840
14841 * xdisp.c (cursor_in_non_selected_windows): New variable.
14842 (syms_of_xdisp): DEFVAR_BOOL it.
14843
14844 2000-02-23 Gerd Moellmann <gerd@gnu.org>
14845
14846 * data.c (Fstring_to_number): If number is greater than what
14847 fits into an integer, return a float.
14848
14849 * eval.c (specbind): Remove references to
14850 keyword_symbols_constant_flag.
14851
14852 * data.c (keyword_symbols_constant_flag): Removed.
14853 (Fmakunbound, set_internal, syms_of_data): Remove references to
14854 keyword_symbols_constant_flag.
14855
14856 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
14857
14858 2000-02-23 Kenichi Handa <handa@etl.go.jp>
14859
14860 * syntax.c (multibyte_syntax_as_symbol): New variable.
14861 (syms_of_syntax): Declare it as a Lisp variable.
14862 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
14863 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
14864 nonzero, treat all multibyte characters as symbol.
14865 (init_syntax_once): Give syntax `word' to all multibyte characters.
14866
14867 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14868
14869 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
14870 a deleted frame.
14871
14872 2000-02-21 Gerd Moellmann <gerd@gnu.org>
14873
14874 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
14875
14876 * xfns.c (x_window_to_frame, x_any_window_to_frame)
14877 (x_non_menubar_window_to_frame): Check the busy-cursor window.
14878
14879 2000-02-21 Dave Love <fx@gnu.org>
14880
14881 * frame.c (Vmouse_position_function): New variable.
14882 (Fmouse_position): Use it.
14883 (syms_of_frame): Install it.
14884
14885 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
14886
14887 2000-02-20 Gerd Moellmann <gerd@gnu.org>
14888
14889 * fileio.c (Finsert_file_contents): Unbind the binding of
14890 standard-output done by temp_output_buffer_setup.
14891
14892 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
14893 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
14894 (specbind, unbind_to): Handle most common case of non-constant
14895 symbol with trivial value specially.
14896
14897 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
14898
14899 2000-02-20 Richard M. Stallman <rms@gnu.org>
14900
14901 * data.c (Fmake_variable_buffer_local): Doc fix.
14902 Init found_for_buffer to 0.
14903 (Fmake_variable_frame_local): If the variable has already
14904 been buffer-local, set the check_frame field.
14905
14906 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
14907
14908 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
14909 produced for CODING_MODE_LAST_BLOCK requires.
14910
14911 2000-02-18 Dave Love <fx@gnu.org>
14912
14913 * keyboard.c (echo_keystrokes): Remove declaration.
14914 (Vecho_keystrokes) New variable.
14915 (read_char, record_menu_key, read_key_sequence): Use it to allow
14916 use of float value.
14917 (syms_of_keyboard): Change Vecho_keystrokes declaration.
14918
14919 * lread.c: Undef feature selection macros before defining.
14920
14921 2000-02-18 Gerd Moellmann <gerd@gnu.org>
14922
14923 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
14924 for symbols other than the symbol in question.
14925
14926 2000-02-17 Dave Love <fx@gnu.org>
14927
14928 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
14929
14930 2000-02-17 Gerd Moellmann <gerd@gnu.org>
14931
14932 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
14933
14934 * alloc.c (enum mem_type): Compile unconditionally.
14935
14936 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
14937
14938 * xfaces.c (tty_defined_color): Don't return faulire indication
14939 for unspecified-fg and unspecified-bg pseudo-colors.
14940
14941 2000-02-17 Gerd Moellmann <gerd@gnu.org>
14942
14943 * alloc.c (mark_object): Don't mark symbol names in pure space.
14944 (gc_sweep): Don't unmark symbol names in pure space.
14945
14946 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
14947 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
14948 [GC_MARK_STACK]: New defines.
14949 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
14950 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
14951
14952 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
14953
14954 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
14955 allocate_buffer instead of xmalloc.
14956
14957 * alloc.c (toplevel): Include setjmp.h.
14958 (PURE_POINTER_P): New define.
14959 (enum mem_type) [GC_MARK_STACK]: New enumeration.
14960 (Vdead) [GC_MARK_STACK]: New variable.
14961 (lisp_malloc): Add parameter TYPE, call mem_insert if
14962 GC_MARK_STACK is defined.
14963 (allocate_buffer): New function.
14964 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
14965 (free_float) [GC_MARK_STACK]: Set type to Vdead.
14966 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
14967 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
14968 (MEM_NIL) [GC_MARK_STACK]: New define.
14969 (struct mem_node) [GC_MARK_STACK]: New structure.
14970 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
14971 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
14972 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
14973 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
14974 (mark_stack) [GC_MARK_STACK]: New functions.
14975 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
14976 (clear_marks): Removed.
14977 (gc_sweep): Set free conses' car, free floats' type, free
14978 symbols' function to Vdead. Use lisp_free to free buffers.
14979 (init_alloc_once): Initialize Vdead.
14980 (survives_gc_p): Return non-zero for pure objects.
14981
14982 * alloc.c: Add comments throughout the file.
14983
14984 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
14985 that unblocks alarms.
14986
14987 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
14988 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
14989 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
14990
14991 * frame.c (make_frame): Set frame initiallly to `garbaged'.
14992
14993 2000-02-17 Kenichi Handa <handa@etl.go.jp>
14994
14995 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
14996 avoid infinite error signaling. Allocate sufficient memory for
14997 eol_str in the case that eoltype is Lisp_Int.
14998
14999 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
15000
15001 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
15002 depends on the previous behavior.
15003
15004 2000-02-16 Gerd Moellmann <gerd@gnu.org>
15005
15006 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
15007
15008 2000-02-15 Gerd Moellmann <gerd@gnu.org>
15009
15010 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
15011
15012 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
15013 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
15014 write(2).
15015
15016 2000-02-15 Richard M. Stallman <rms@gnu.org>
15017
15018 * data.c (set_internal): Don't make variable buffer-local
15019 if within a let-binding for the same buffer.
15020 (let_shadows_buffer_binding_p): New function.
15021
15022 * eval.c (specbind): For buffer-local value,
15023 record the current buffer also.
15024 (unbind_to): Cope with that change.
15025
15026 2000-02-15 Gerd Moellmann <gerd@gnu.org>
15027
15028 * window.c (Fsave_window_excursion): Doc fix.
15029
15030 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
15031
15032 * syntax.c (back_comment): Make sure we only consider comment-starters
15033 of the relevant style and return -1 in case of a failure to find the
15034 beginning of the comment.
15035 (Fforward_comment): If back_comment fails, go back to the position just
15036 after the comment-end.
15037 (scan_lists): Add comment describing a very minor bug.
15038
15039 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
15040
15041 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
15042 `completion-regexp-list' in the docstring.
15043
15044 2000-02-14 Dave Love <fx@gnu.org>
15045
15046 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
15047
15048 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
15049
15050 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
15051 to Emacs' syntax. Also fix the comment about set/not-set meanings
15052 since Emacs syntax is not the value 0 any more.
15053 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
15054 since it's now part of RE_SYNTAX_EMACS.
15055
15056 2000-02-12 Dave Love <fx@gnu.org>
15057
15058 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
15059
15060 2000-02-12 Gerd Moellmann <gerd@gnu.org>
15061
15062 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
15063
15064 2000-02-12 Dave Love <fx@gnu.org>
15065
15066 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
15067
15068 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
15069 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
15070 * s/hpux.h: Don't define HAVE_VFORK.
15071
15072 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
15073
15074 * s/nextstep.h: Don't define HAVE_ALLOCA.
15075
15076 * config.in: Add vfork bits.
15077
15078 2000-02-12 Gerd Moellmann <gerd@gnu.org>
15079
15080 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
15081 unwind function to undo the effect of stopping atimers.
15082
15083 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
15084
15085 * atimer.c (stopped_atimers): New variable.
15086 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
15087 New functions.
15088
15089 * atimer.h (stop_other_atimers, run_all_atimers)
15090 (unwind_stop_other_atimers): Add function prototypes.
15091
15092 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
15093
15094 2000-02-11 Ken Raeburn <raeburn@gnu.org>
15095
15096 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
15097 library may depend on jpeg.
15098 (atimer.o): Depends on atimer.c.
15099
15100 2000-02-11 Kenichi Handa <handa@etl.go.jp>
15101
15102 * insdel.c (del_range_1): Call update_compositions.
15103 (del_range_both): Call update_compositions just once..
15104
15105 2000-02-10 Dave Love <fx@gnu.org>
15106
15107 * xfns.c (create_frame_xic): Fix initialization of automatic
15108 aggregates for pcc.
15109
15110 2000-02-09 Kenichi Handa <handa@etl.go.jp>
15111
15112 * ccl.c (CCL_MAKE_CHAR): New macro.
15113 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
15114 registers by CCL_MAKE_CHAR before calling translate_char.
15115 <CCL_TranslateCharacterConstTbl> Likewise.
15116
15117 2000-02-08 Dave Love <fx@gnu.org>
15118
15119 * lread.c (__EXTENSIONS__): Define.
15120
15121 2000-02-08 Gerd Moellmann <gerd@gnu.org>
15122
15123 * puresize.h (BASE_PURESIZE): Increase to 650000.
15124
15125 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
15126
15127 * msdos.c (XMenuActivate): Turn off the cursor after displaying
15128 the help message.
15129
15130 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
15131
15132 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
15133 md, mh, mb, mr, and me to the fake termcap entry.
15134
15135 2000-02-06 Ken Raeburn <raeburn@gnu.org>
15136
15137 * sound.c (sound_cleanup): Don't call device close routine if the
15138 function pointer is null.
15139
15140 2000-02-06 Andrew Innes <andrewi@gnu.org>
15141
15142 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
15143 around image definitions and prototypes.
15144 (gamma_correct) [WINDOWSNT]: New prototype.
15145
15146 * w32term.c (x_make_frame_visible): Replace call to
15147 input_poll_signal with poll_for_input.
15148
15149 * window.c [WINDOWSNT]: Include w32term.h.
15150
15151 * xdisp.c [WINDOWSNT]: Include w32term.h.
15152
15153 * makefile.nt: Add dependencies on w32gui.h.
15154 (OBJ1): Include atimer.obj.
15155 ($(BLD)\atimer.obj): New dependency rule.
15156
15157 * w32.c (sigmask): New function (does nothing).
15158 (sigunblock): Ditto.
15159
15160 * frame.c [WINDOWSNT]: Include w32term.h.
15161
15162 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
15163
15164 * lread.c (syms_of_lread): Fix literal newlines.
15165
15166 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
15167 the string constant limit (2048 bytes) in MSVC.
15168 (main): Ditto.
15169
15170 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
15171
15172 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
15173 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
15174 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
15175 dispatch the event.
15176
15177 2000-02-04 Dave Love <fx@gnu.org>
15178
15179 * fileio.c: Remove some unused vars.
15180 (_GNU_SOURCE): Define (for euidaccess).
15181
15182 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
15183
15184 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
15185 gcpro1, gcpro2.
15186 (read_minibuf): Deal with allow_props correctly.
15187
15188 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
15189
15190 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
15191
15192 2000-02-03 Ken Raeburn <raeburn@gnu.org>
15193
15194 * search.c (compile_pattern): If a cache entry has a nil regexp,
15195 fill in that entry instead of clobbering a previously cached
15196 string regexp.
15197
15198 2000-02-02 Ken Raeburn <raeburn@gnu.org>
15199
15200 * puresize.h (BASE_PURESIZE): Increase to 610000.
15201
15202 2000-02-02 Gerd Moellmann <gerd@gnu.org>
15203
15204 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
15205 can GC.
15206
15207 2000-02-02 Kenichi Handa <handa@etl.go.jp>
15208
15209 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
15210 instead of incrementing ic directly.
15211 <CCL_WriteExprConst> Likewise.
15212 <ccl_set_expr>: Set ic to jump_address.
15213
15214 * fileio.c (e_write): Fix the handling of
15215 CODING_FINISH_INSUFFICIENT_SRC.
15216
15217 2000-02-01 Dave Love <fx@gnu.org>
15218
15219 * editfns.c (Fpropertize): Doc fix.
15220
15221 * process.c (Fstart_process): Doc fix.
15222
15223 * eval.c: Fix various doc strings not to duplicate information
15224 from help-manyarg-func-alist.
15225
15226 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
15227
15228 * doc.c (Vhelp_manyarg_func_alist): New variable.
15229 (Fdocumentation): Use it.
15230 (syms_of_doc): Define it.
15231
15232 2000-01-31 Gerd Moellmann <gerd@gnu.org>
15233
15234 * xterm.c (xim_open_dpy): Remove unused local variable.
15235
15236 * emacs.c (USAGE): Use term `display options' instead of `X options'.
15237
15238 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
15239 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
15240
15241 * fns.c (sweep_weak_table): New function.
15242 (sweep_weak_hash_tables): Use it. Keep on marking until there
15243 is no more change.
15244
15245 2000-01-30 Gerd Moellmann <gerd@gnu.org>
15246
15247 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
15248 that XTread_socket does not crash by trying to call XNoOp on a
15249 closed display.
15250
15251 2000-01-30 Jason Rumney <jasonr@gnu.org>
15252
15253 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
15254 Change selected_frame to SELECTED_FRAME ().
15255 (w32_console_mouse_position): Remove #ifndef MULE from around
15256 `insist' parameter.
15257
15258 * makefile.nt: Remove dosfns.obj.
15259
15260 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
15261
15262 * w32fns.c (w32_defined_color): Check for valid frame before
15263 applying gamma correction. Eliminate dependency on frame elsewhere.
15264 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
15265 (w32_to_x_font): Use resx and resy not height_in and width_in.
15266 (x_to_w32_font): Doc fix.
15267 (xlfd_strip_height): New function to strip and return font height.
15268 (w32_font_match): Compare height separately from rest of xlfd
15269 spec, using xlfd_strip_height.
15270
15271 * w32term.c (w32_term_init): Swap resx and height_in, resy and
15272 width_in. Use w32_defined_color in place of defined_color.
15273
15274 * w32faces.c: Merge more of DOS and X specifics in preparation for
15275 merge with xfaces.c.
15276 (defined_color): Remove FIXME comment.
15277 (tty_color_name): Provide w32-specific function.
15278 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
15279
15280 * w32console.c (turn_on_face, turn_off_face): Removed.
15281 (w32_face_attributes): New function.
15282 (Global_variables): Reduce scope where possible.
15283 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
15284 fill attribute.
15285 (hl_mode): Don't modify text attributes.
15286 (write_glyphs): Don't do anything if len <= 0. Use
15287 w32_face_attributes to get attributes for drawing. Write
15288 terminating codes using char_attr_normal.
15289 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
15290 (update_begin, update_end): Likewise.
15291 (vga_stdcolor_name): New function.
15292 (initialize_w32_display): Remove char_attr_reverse and char_attr.
15293 (Fset_screen_color): Remove char_attr_reverse.
15294
15295 2000-01-29 Gerd Moellmann <gerd@gnu.org>
15296
15297 * xfns.c (xic_set_preeditarea): Take window parameter and
15298 window-relative pixel-positions.
15299
15300 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
15301 is its frame's selected window.
15302 (xim_instantiate_callback): Likewise.
15303
15304 * xfns.c (x_create_im): Removed.
15305 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
15306 (supported_xim_styles): Renamed from supported_styles.
15307 (best_xim_style): Renamed from best_style.
15308 (create_frame_xic): Renamed from xic_create_frame.
15309 (free_frame_xic): Renamed from xic_destroy_frame.
15310
15311 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
15312
15313 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
15314 our frames, call XFilterEvent with 2nd parameter `None'.
15315 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
15316 returning XBufferOverflow.
15317 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
15318 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
15319 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
15320 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
15321 (xim_initialize, xim_close)
15322 [HAVE_X_I18N && HAVE_X11R6]: New functions.
15323 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
15324 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
15325 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
15326
15327 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
15328 and `xim_styles'.
15329 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
15330 `xic_style' and `xic_xfs'.
15331 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
15332 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
15333 (FRAME_XIM): Removed.
15334
15335 * xfns.c (supported_styles): New variable.
15336 (DEFAULT_STYLE, DEFAULT_FONT): New macros
15337 (xic_create_xfontset, best_style, xic_create_frame)
15338 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
15339 (xic_set_xfontset): New functions.
15340
15341 2000-01-28 Dave Love <fx@gnu.org>
15342
15343 * s/irix6-5.h: Revert last change after change to irix5-0.h.
15344
15345 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
15346
15347 2000-01-28 Gerd Moellmann <gerd@gnu.org>
15348
15349 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
15350 for *scratch* if it already existed.
15351
15352 * emacs.c (USAGE): New macro.
15353 (main): Use it to display usage information.
15354
15355 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
15356
15357 Support for the menu-help feature:
15358
15359 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
15360
15361 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
15362 part of the line to the termscript file.
15363 (IT_clear_to_end): Clear the entire line, not just its beginning.
15364 (menu_help_message, prev_menu_help_message): New variables.
15365 (IT_menu_make_room): Make room for the help_text member.
15366 (IT_menu_display): New argument disp_help; all callers changed.
15367 If disp_help is non-zero, store the help text of the active menu
15368 item in menu_help_message.
15369 (XMenuAddPane): Initialize the help_text member to NULL.
15370 (XMenuAddSelection): New argument help_text. Store it in the
15371 XMenu structure.
15372 (XMenuActivate): New argument help_callback. If the value of
15373 menu_help_message has changed since the last time, display the
15374 menu help message text while waiting for the mouse to move. Clear
15375 the echo area before exiting.
15376 (XMenuDestroy): Free the help_text member.
15377
15378 2000-01-27 Gerd Moellmann <gerd@gnu.org>
15379
15380 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
15381 XMenuAddSelection. Pass help callback to XMenuActivate.
15382 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
15383
15384 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
15385
15386 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
15387 and EMACS_SET_USECS.
15388
15389 2000-01-26 Dave Love <fx@gnu.org>
15390
15391 * editfns.c (Fchar_after, Fchar_before): Doc fix.
15392
15393 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
15394 an error may be signalled.
15395
15396 2000-01-26 Gerd Moellmann <gerd@gnu.org>
15397
15398 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
15399 LD_SWITCH_SYSTEM inherited from irix5-0.h.
15400
15401 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
15402
15403 2000-01-25 Gerd Moellmann <gerd@gnu.org>
15404
15405 * charset.c (Fstring): If there is a multibyte char among
15406 the args, always return a multibyte string.
15407
15408 2000-01-25 Gerd Moellmann <gerd@gnu.org>
15409
15410 * sysdep.c (sys_select): Turn atimers off and on instead of
15411 recording and restoring old alarm handler
15412
15413 * process.c (toplevel): Include atimer.h.
15414 (create_process_1): Rewritten.
15415 (create_process): Use atimers instead of alarm.
15416 (wait_reading_process_input) [hpux]: Turn atimers off instead
15417 of turning off SIGALRM.
15418 (wait_reading_process_input): Turn off atimers instead off
15419 calling stop_polling.
15420
15421 * emacs.c (main): Call init_atimer.
15422
15423 * keyboard.c (toplevel): Include systime.h and atimer.h.
15424 (polling_for_input): Removed because unused.
15425 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
15426 (poll_timer): New variable.
15427 (poll_for_input, poll_for_input_1): New functions.
15428 (start_polling, stop_polling): Rewritten.
15429
15430 * keyboard.h (polling_for_input): Removed.
15431
15432 * atimer.h, atimer.c: New files.
15433
15434 * Makefile.in (obj): Add atimer.o.
15435 (atimer.o): New target.
15436
15437 * blockinput.h (pending_atimers): Add extern declaration.
15438 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
15439
15440 * lisp.h (popup_activated_flag): Add extern declaration.
15441
15442 * xmenu.c (popup_activated_flag): Make externally visible.
15443 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
15444 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
15445
15446 * xterm.c (toplevel): Include atimer.h.
15447 (toolkit_scroll_bar_interaction): New variable.
15448 (Fxt_process_timeouts): Removed.
15449 (x_process_timeouts): New function.
15450 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
15451 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
15452 (x_make_frame_visible): Call poll_for_input_1 instead of
15453 input_poll_signal. Don't call alarm.
15454 (x_initialize): Install timer calling x_process_timeouts.
15455
15456 2000-01-24 Dave Love <fx@gnu.org>
15457
15458 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
15459 Don't use -cckr -- apparently not now necessary.
15460
15461 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
15462
15463 * msdos.c (IT_menu_display): Truncate long menu lines at the right
15464 screen boundary.
15465
15466 2000-01-23 Jason Rumney <jasonr@gnu.org>
15467
15468 * w32fns.c (w32_defined_color): Apply gamma correction before
15469 trying to map to the palette.
15470 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
15471 to w32_clear_rect.
15472
15473 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
15474 here. Callers changed to always pass real device context.
15475 (w32_draw_bitmap): Likewise.
15476 (w32_get_glyph_overhangs): Likewise.
15477 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
15478 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
15479 pfnSetScrollInfo and SetScrollRange.
15480 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
15481 back into MULE characters after decoding them.
15482 (x_get_glyph_face_and_encoding): Likewise.
15483 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
15484 GetCharABCWidthsW fails, since this is defined on Windows 9x.
15485 (x_produce_glyphs): Calculate per char metrics for a character
15486 that we know exists in default font when font_not_found_p is true.
15487
15488 2000-01-22 Jason Rumney <jasonr@gnu.org>
15489
15490 * makefile.nt (intervals.obj, composite.obj): New modules.
15491 (composite.h): Added as dependency where appropriate.
15492
15493 * w32gui.h (XGCValue): New struct for emulating X GCs.
15494
15495 * w32term.h (XCharStruct): New struct for emulating X.
15496
15497 * w32console.c (turn_on_face, turn_off_face): New functions.
15498 (change_line_highlight): New prototype for new redisplay.
15499 (write_glyphs): Support multibyte text. Support faces.
15500
15501 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
15502
15503 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
15504 throughout. struct frame * in place of FRAME_PTR.
15505 Skeleton support for images, toolbars, tooltips from xfns.c.
15506 (Fx_create_frame): Use system default for default scroll bar width.
15507 (w32_get_arg): Renamed from x_get_arg.
15508 (Fx_file_dialog): New function.
15509 (w32_list_fonts): Check cache before asking system.
15510 (Vw32_enable_synthesized_fonts): New variable.
15511 (Vw32_enable_italics): Obsolete, removed.
15512
15513 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
15514 Use SELECTED_FRAME macro.
15515
15516 * w32menu.c: Add skeleton support for help strings on menus.
15517 (add_menu_item): Native checkbox and radio support added, but not
15518 yet enabled due to bugs.
15519 (push_menu_item): Add parameters type, selection and help.
15520 Callers updated.
15521 Formatting changes to reduce unnecessary diffs with xmenu.c.
15522
15523 * w32select.c (Fw32_set_clipboard_data): Update call to
15524 find_charset_in_str.
15525
15526 * w32term.c: Complete rewrite for new redisplay based on new
15527 xterm.c with necessary sections merged back in from old w32term.c.
15528
15529 2000-01-21 Richard M. Stallman <rms@gnu.org>
15530
15531 * data.c (set_internal): Further fix in same criterion.
15532
15533 2000-01-20 Richard M. Stallman <rms@gnu.org>
15534
15535 * data.c (set_internal): Fix the criteria for whether
15536 to swap out the old cached binding.
15537
15538 2000-01-19 Dave Love <fx@gnu.org>
15539
15540 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
15541
15542 2000-01-18 Kenichi Handa <handa@etl.go.jp>
15543
15544 * regex.c (re_compile_fastmap): While checking a range table for
15545 `charset', skip flag bits for a character class correctly.
15546
15547 2000-01-17 Gerd Moellmann <gerd@gnu.org>
15548
15549 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
15550
15551 * xfns.c (x_window): Call lw_create_widget with new parameter list.
15552
15553 * widget.c (EmacsFrameSetCharSize): Change size of children first
15554 because of problems with main window geometry management under Lesstif.
15555
15556 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
15557 MENU_ITEMS_ITEM_.*.
15558 (MENU_ITEMS_ITEM_HELP): New enumerator.
15559 (push_menu_item): Add parameter HELP. Record help in menu_items.
15560 (single_menu_item, single_submenu, list_of_items): Call
15561 push_menu_item with new parameter.
15562 (single_submenu): Set help string in widget value.
15563 (menu_highlight_callback): New function.
15564 (set_frame_menubar): Call lw_create_widget with new
15565 parameter list.
15566 (xmenu_show, xdialog_show): Ditto.
15567
15568 2000-01-13 Gerd Moellmann <gerd@gnu.org>
15569
15570 * sound.c (Fplay_sound): Improve doc string.
15571
15572 2000-01-11 Richard M. Stallman <rms@gnu.org>
15573
15574 * lisp.h (set_internal): Enter the new arg.
15575
15576 * eval.c (specbind): Record buffer-local variables specially,
15577 indicating which buffer's binding was saved.
15578 (unbind_to): Restore buffer-local variables specially
15579 in the proper buffer.
15580
15581 * data.c (set_internal): New arg BUF.
15582
15583 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
15584 * data.c (Fset): Pass new arg to set_internal.
15585 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
15586
15587 2000-01-11 Gerd Moellmann <gerd@gnu.org>
15588
15589 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
15590
15591 2000-01-11 Richard M. Stallman <rms@gnu.org>
15592
15593 * minibuf.c (Ftry_completion): Doc fix.
15594
15595 2000-01-11 Gerd Moellmann <gerd@gnu.org>
15596
15597 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
15598 vector, too.
15599
15600 2000-01-11 Andreas Schwab <schwab@suse.de>
15601
15602 * coding.c (code_convert_region): Initialize total_skip.
15603
15604 2000-01-08 Dave Love <fx@gnu.org>
15605
15606 * eval.c (Fuser_variable_p): Check customizability too.
15607
15608 2000-01-07 Gerd Moellmann <gerd@gnu.org>
15609
15610 * minibuf.c (Fcompleting_read): Doc fix.
15611
15612 2000-01-05 Gerd Moellmann <gerd@gnu.org>
15613
15614 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
15615 -L /usr/local/lib.
15616
15617 * xfns.c (x_create_im): New function to set IM and IC of a frame.
15618 Check that input style is supported before trying to create an
15619 IC for it.
15620 (x_window): Call x_create_im.
15621
15622 2000-01-04 Gerd Moellmann <gerd@gnu.org>
15623
15624 * xfns.c (current_gif_memory_src): New variable.
15625 (gif_load): Record the address of the current memory source
15626 in current_gif_memory_src.
15627 (gif_read_from_memory): Use current_gif_memory_src.
15628
15629 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
15630 macros statement form.
15631
15632 * sound.c (struct sound): Renamed from struct sound_file.
15633 (struct sound): Add members `data' and `header_size'.
15634 (enum sound_attr): Add SOUND_DATA.
15635 (current_sound, current_sound_device): Variables renamed from
15636 sound_file and sound_device.
15637 (parse_sound): Parse :data.
15638 (parse_sound): Handle sound data in strings.
15639 (find_sound_type): Function renamed from find_sound_file_type.
15640 (wav_init, au_init): Fail if sound's header_size is smaller than
15641 needed header size.
15642 (wav_play, au_play): Play sounds from string data.
15643
15644 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
15645
15646 * lisp.h: Add prototype for allocate_string_data.
15647
15648 * alloc.c (Fgarbage_collect): Return number of live and free strings.
15649
15650 * alloc.c (mark_buffer): Remove code in #if 0.
15651 (gc_sweep): Ditto.
15652 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
15653 (strings_consed): New variable.
15654 (allocate_string): Set it.
15655 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
15656 (Fmemory_use_counts): Return strings_consed. Use Flist.
15657
15658 * alloc.c: General cleanup in comments etc. Remove conditional
15659 compilation for `standalone'.
15660
15661 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
15662
15663 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
15664 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
15665 (DONT_COPY_FLAG): Removed.
15666 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
15667 (struct sdata, struct sblock): New
15668 (struct string_block): Rewritten.
15669 (STRINGS_IN_STRING_BLOCK): New macro.
15670 (oldest_sblock, current_sblock, total_strings, total_free_strings)
15671 (large_sblocks, string_blocks, string_free_list): New variables.
15672 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
15673 (init_strings): Rewritten.
15674 (allocate_string, allocate_string_data, compact_small_strings)
15675 (free_large_strings, sweep_strings): New functions.
15676 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
15677 (struct string_block_head, current_string_block)
15678 (first_string_block, large_string_blocks, STRING_FULLSIZE)
15679 (STRING_PAD): Removed.
15680 (make_uninit_multibyte_string, make_pure_string): Rewritten.
15681 (Fgarbage_collect): Don't set mark bit in large strings.
15682 (mark_object): Mark strings differently. Mark symbol names
15683 differently.
15684 (survives_gc_p): Test marked strings differently.
15685 (gc_sweep): Sweep strings differently, unmark strings in
15686 symbol names.
15687 (compact_strings): Removed.
15688
15689 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
15690
15691 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
15692 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
15693
15694 2000-01-04 Kenichi Handa <handa@etl.go.jp>
15695
15696 * fileio.c (Finsert_file_contents): Signal error if visiting file
15697 in a non-empty buffer.
15698
15699 * term.c (encode_terminal_code): Fix the previous change.
15700
15701 2000-01-03 Gerd Moellmann <gerd@gnu.org>
15702
15703 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
15704 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
15705
15706 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
15707
15708 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15709
15710 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
15711 need to test for MSDOS frames.
15712
15713 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15714
15715 * dosfns.c (unspecified_colors): Remove.
15716 (msdos_stdcolor_idx): Use global variables unspecified_fg and
15717 unspecified_bg.
15718 (msdos_stdcolor_name): Return strings for unspecified fore- and
15719 back-ground colors.
15720
15721 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
15722 (syms_of_xfaces): Remove their staticpro's.
15723 (tty_color_name): Return Lisp strings for unspecified fore- and
15724 back-ground colors.
15725 (Finternal_set_lisp_face_attribute): Remove the special treatment
15726 for Qunspecified_{f,b}g.
15727 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
15728
15729 2000-01-03 Gerd Moellmann <gerd@gnu.org>
15730
15731 * xdisp.c (reseat_at_next_visible_line_start): Position before
15732 newline only if ending up on a newline.
15733 (next_element_from_ellipsis): Return success. Handle case of
15734 displaying no ellipsis. Fix case of ellipsis defined in display table.
15735 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
15736 returns 0.
15737
15738 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15739
15740 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
15741 (Fcolor_supported_p): Renamed from face-color-supported-p.
15742
15743 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15744
15745 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
15746 list of colors renamed to tty-defined-color-alist.
15747 (tty_color_name): Pass the frame to tty-color-by-index.
15748 (realize_tty_face): tty-color-alist is now a function which
15749 accepts the frame as argument.
15750
15751 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
15752
15753 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15754
15755 * term.c (insert_glyphs): Pass glyph, not &glyph, to
15756 encode_terminal_code.
15757
15758 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15759
15760 * dispnew.c (mode_line_string): Support termcap frames as well.
15761
15762 2000-01-01 Gerd Moellmann <gerd@gnu.org>
15763
15764 * syntax.c (Fforward_word): Undo previous change.
15765
15766 * editfns.c (Fconstrain_to_field): Don't constrain if
15767 inhibit-field-text-motion is non-nil.
15768 (Fline_beginning_position): Undo previous change.
15769 (Fline_end_position): Ditto.
15770
15771 * syntax.c (Fforward_word): Notice field boundaries only if
15772 inhibit-field-text-motion is nil.
15773
15774 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
15775
15776 * editfns.c (Vinhibit_field_text_motion): New variable.
15777 (inhibit-field-text-motion): New DEFVAR_LISP.
15778 (Fline_beginning_position, Fline_end_position): Notice field
15779 boundaries only if inhibit-field-text-motion is nil.
15780
15781 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
15782 All calls adjusted.
15783 (x_build_heuristic_mask): Likewise.
15784 (xbm_load_image_from_file): Change error output.
15785 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
15786 (gif_load, gs_load, x_kill_gs_process): Ditto.
15787
15788 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
15789 color indices when accessing raster pixels.
15790 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
15791 one of :file or :data.
15792 (enum pbm_keyword_index): Add PBM_DATA.
15793 (pbm_format): Add :data.
15794 (pbm_image_p): Allow either :file or :data.
15795 (pbm_read_file): New function.
15796 (pbm_scan_number): Rewritten to read from string.
15797 (pbm_load): Support :data.
15798
15799 See ChangeLog.8 for earlier changes.
15800
15801 ;; Local Variables:
15802 ;; coding: iso-2022-7bit
15803 ;; End:
15804
15805 Copyright (C) 2001 Free Software Foundation, Inc.
15806 Copying and distribution of this file, with or without modification,
15807 are permitted provided the copyright notice and this notice are preserved.