(single_submenu): Initialize wv->help to Qnil.
[bpt/emacs.git] / src / ChangeLog
1 2002-01-06 Jason Rumney <jasonr@gnu.org>
2
3 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
4
5 * w32menu.c (w32_menu_display_help): Revert last change.
6
7 * xmenu.c (menu_highlight_callback): Revert last change.
8
9 2002-01-06 Andreas Schwab <schwab@suse.de>
10
11 * insdel.c (make_gap_larger): Make sure buffer size does not
12 overflow range of int.
13
14 2002-01-05 Jason Rumney <jasonr@gnu.org>
15
16 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
17 OVERLAPS_P.
18
19 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
20
21 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
22 to the left or to the right of the pointer, put it against
23 the left screen edge.
24 (x_frame_parms): Add missing braces around initializer.
25
26 * w32term.c (x_setup_relief_colors): Don't compute an image's
27 background color if it doesn't have a Pixmap.
28 (notice_overwritten_cursor): Don't depend on
29 output_cursor and updated_area. Compare pixel coordinates with
30 window's cursor pixel coordinates.
31 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face): Call
32 notice_overwritten_cursor with new arg list.
33 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
34 unconditionally.
35 (x_draw_image_relief): Use predefined macro instead of
36 constant when the value of `tool_bar_button_relief' is negative.
37
38 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
39
40 2002-01-04 Richard M. Stallman <rms@gnu.org>
41
42 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
43
44 2002-01-03 Richard M. Stallman <rms@gnu.org>
45
46 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
47 (Fkey_binding): Try the `keymap' property map first.
48 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
49 minor mode bindings.
50
51 2002-01-03 Kim F. Storm <storm@cua.dk>
52
53 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
54
55 2002-01-02 Richard M. Stallman <rms@gnu.org>
56
57 * keyboard.c (read_key_sequence): Handle the keymap property
58 before minor mode maps.
59
60 * editfns.c (Fformat): Update thissize from field_width
61 based on the actual width, in the string case.
62
63 2002-01-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
64
65 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
66 when used as truth value to prevent gcc warnings.
67
68 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
69 * w32proc.c: Include <config.h>.
70
71 2002-01-01 Andreas Schwab <schwab@suse.de>
72
73 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
74 not EMACS_INT, to make them compatible with DEFVAR_INT.
75 * lisp.h (max_specpdl_size): Adjust declaration.
76
77 2002-01-01 Richard M. Stallman <rms@gnu.org>
78
79 * print.c (print_object): Test print_escape_nonascii only for
80 unibyte strings.
81 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
82 when outputting to a multibyte buffer.
83
84 2001-12-29 Richard M. Stallman <rms@gnu.org>
85
86 * print.c (print_object): In multibyte string, use hex escapes.
87 Use octal only for unibyte strings.
88 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
89
90 * lread.c (read_escape): New arg BYTEREP for reporting whether
91 escape forces unibyte or multibyte.
92 (read1): When reading a string, take note of that info.
93
94 2001-12-29 Ken Raeburn <raeburn@gnu.org>
95
96 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
97 comparison to test lisp value returned by Fget.
98
99 2001-12-29 Richard M. Stallman <rms@gnu.org>
100
101 * lisp.h (max_specpdl_size): Add declaration.
102
103 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
104
105 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
106 Handle modifier bits. Correct typo in error message.
107
108 2001-12-28 Richard M. Stallman <rms@gnu.org>
109
110 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
111 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
112 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
113 Update calls to Fdefine_abbrev.
114 (write_abbrev): Update for changed data format.
115 Don't list "system" abbrevs.
116 (Fexpand_abbrev): Update use count with new data format.
117 (describe_abbrev): Update for changed data format.
118 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
119
120 * config.in (HAVE_MBSINIT): Add #undef.
121
122 * strftime.c (mbsinit): Define as no-op if not available.
123
124 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
125 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
126
127 * keymap.c (Flookup_key): Error message if key has wrong data type.
128 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
129 (exclude_key): New variable.
130
131 2001-12-28 Gerd Moellmann <gerd@gnu.org>
132
133 * xterm.c (x_setup_relief_colors): Don't compute an image's
134 background color if it doesn't have a Pixmap.
135
136 * xterm.c (notice_overwritten_cursor): Don't depend on
137 output_cursor and updated_area. Compare pixel coordinates with
138 window's cursor pixel coordinates.
139 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face): Call
140 notice_overwritten_cursor with new arg list.
141 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
142 unconditionally.
143
144 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
145 height of the cursor line to the amount to scroll.
146
147 2001-12-27 Richard M. Stallman <rms@gnu.org>
148
149 * intervals.c (set_point_both): The position after an invisible,
150 intangible character is not an acceptable stopping point.
151
152 2001-12-27 Ken Raeburn <raeburn@gnu.org>
153
154 * window.c (enlarge_window): In new preserve_before code, convert
155 CURBEG from lisp object to integer before doing arithmetic.
156
157 2001-12-27 Richard M. Stallman <rms@gnu.org>
158
159 * bytecode.c (Fbyte_code): Undo previous change.
160
161 2001-12-26 Kim F. Storm <storm@cua.dk>
162
163 * keyboard.c (record_char): Ignore duplicate help-echo events only
164 separated by mouse-movement. When tracking mouse, only record
165 first and last mouse-movement event in same window.
166 Don't record mouse-movement events in keyboard macros.
167
168 2001-12-25 Richard M. Stallman <rms@gnu.org>
169
170 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
171 (Fenlarge_window): New arg PRESERVE_BEFORE.
172
173 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
174 instead of Fstring_as_unibyte.
175
176 2001-12-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
177
178 The following changes remove mocklisp support:
179
180 * mocklisp.h, mocklisp.c: Files removed.
181
182 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
183 `Qmocklisp' and `Qmocklisp_arguments'.
184 Remove prototype of syms_of_mocklisp.
185
186 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp
187 files.
188
189 * callint.c: Do not include mocklisp.h.
190 (Fcall_interactively): Do not test for mocklisp case.
191
192 * eval.c: Remove variables `Qmocklisp_arguments',
193 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of
194 ml_apply.
195 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda): Do
196 not test for mocklisp case.
197 (Fwhile): Remove unused variable `tem'.
198 (syms_of_eval): Remove variable `moclisp-arguments'.
199
200 * data.c (wrong_type_argument): Remove mocklisp case.
201
202 * doc.c (Fdocumentation): Remove mocklisp case.
203
204 * emacs.c (main): Do not call syms_of_mocklisp.
205
206 2001-12-21 Richard M. Stallman <rms@gnu.org>
207
208 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
209 to the left or to the right of the pointer, put it against
210 the left screen edge.
211
212 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
213
214 * Makefile.in (distclean): Remove .gdbinit if we are building
215 outside the source tree.
216
217 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
218
219 * w32.c (emacs_root_dir): New function.
220
221 * msdos.c (emacs_root_dir): New function.
222
223 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
224 of the current drive as the fallback for default_directory.
225
226 * dired.c (file_name_completion): Run the elements of
227 completion-ignored-extensions through ENCODE_FILE.
228
229 * lisp.h (scmp): Remove prototype, since it's now a static
230 function private to dired.c.
231
232 2001-12-18 Richard M. Stallman <rms@gnu.org>
233
234 * dired.c (scmp): Function moved from minibuf.c.
235 Delete multibyte handling--used only on encoded strings.
236
237 * minibuf.c (scmp): Function moved to dired.c.
238
239 * fns.c (merge): Add QUIT call.
240
241 2001-12-18 Dave Love <fx@gnu.org>
242
243 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
244 language/georgian.el.
245
246 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
247
248 * Makefile.in (lisp, shortlisp): Synchronize with changes to
249 lisp/Makefile.in:DONTCOMPILE.
250
251 2001-12-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
252
253 * xdisp.c (window_box_height): Do not return negative values.
254 From Gerd Moellmann <gerd@gnu.org>.
255
256 * keyboard.c (head_table): Add missing braces around initializer.
257
258 * term.c (keys): Likewise.
259
260 * xfns.c (x_frame_parms, visual_classes): Likewise.
261
262 2001-12-17 Sam Steingold <sds@gnu.org>
263
264 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
265 patch (COMPOSING_P, not COMPOSING).
266
267 2001-12-17 Richard M. Stallman <rms@gnu.org>
268
269 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
270
271 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
272 before calling decode_coding.
273
274 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
275
276 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
277 instead of only for COMPOSITION_DISABLED.
278
279 2001-12-16 Richard M. Stallman <rms@gnu.org>
280
281 * alloc.c (pure_alloc): After overflow, allocate just a small block.
282
283 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
284
285 * buffer.h (struct buffer): New field `display_error_modiff'.
286 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
287
288 * window.c (Frecenter): Clear display_error_modiff field.
289
290 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
291 Call redisplay_window, but not if display_error_modiff field says no.
292 (redisplay_window_error): New function.
293 (displayed_buffer): New variable.
294 (redisplay_internal, redisplay_windows): Call the new functions
295 instead of redisplay_window directly.
296
297 2001-12-15 Richard M. Stallman <rms@gnu.org>
298
299 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
300
301 2001-12-14 Andrew Innes <andrewi@gnu.org>
302
303 * makefile.w32-in (EMACSLOADPATH): Define.
304 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
305 (bootstrap-temacs): Remove dependency on bootstrap-clean.
306
307 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
308
309 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
310 parameter have a numeric value all the time.
311
312 * w32fns.c (x_report_frame_params): Likewise.
313
314 2001-12-12 Richard M. Stallman <rms@gnu.org>
315
316 * fileio.c (Fwrite_region): Doc fix.
317
318 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
319 (redisplay_internal): Call clear_image_cache only for window terminals.
320
321 2001-12-12 Gerd Moellmann <gerd@gnu.org>
322
323 * xdisp.c (move_it_vertically_backward): Change heuristic
324 for the case that we didn't move far enough initially.
325
326 * window.c (Frecenter): Simplify computation in the case of window
327 system frames and ARG < 0; use window_box_height.
328
329 2001-12-11 Richard M. Stallman <rms@gnu.org>
330
331 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
332 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
333
334 2001-12-11 Andrew Innes <andrewi@gnu.org>
335
336 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
337 arg is negative.
338
339 2001-12-11 Richard M. Stallman <rms@gnu.org>
340
341 * m/hp800.h: Split the __hpux conditional into the parts
342 that are right for GNU/Linux too and the parts that are not.
343 Use the former if GNU_LINUX.
344 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
345
346 * s/gnu-linux.h (GNU_LINUX): Defined.
347
348 2001-12-11 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
349
350 * macros.c, msdos.c, w16select.c: Change doc-string comments to
351 `new style' [w/`doc:' keyword].
352
353 2001-12-10 Jason Rumney <jasonr@gnu.org>
354
355 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
356 before using.
357
358 2001-12-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
359
360 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
361 keyword].
362
363 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
364
365 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
366
367 * s/hpux10.h (srand48): Don't undefine.
368
369 2001-12-09 Jason Rumney <jasonr@gnu.org>
370
371 * w32menu.c (_widget_value): Make `help' field a Lisp_Object. Add
372 comment to explain where the struct came from.
373 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
374 (add_menu_item): Process pop-up menus first to avoid memory leak.
375 (add_menu_item, w32_menu_display_help): Use `help' field as
376 Lisp_Object.
377 (w32_free_submenu_strings): Only free owner-drawn strings.
378
379 2001-12-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
380
381 * COPYING: Moved back.
382
383 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
384 Add parentheses around && within ||.
385
386 * indent.c (compute_motion): Likewise.
387
388 * intervals.c (merge_properties_sticky): Likewise.
389
390 * coding.c (setup_coding_system, shrink_encoding_region)
391 (Fdecode_sjis_char): Likewise.
392
393 2001-12-07 Andreas Schwab <schwab@suse.de>
394
395 * xdisp.c (display_mode_element): Don't read past end of string if
396 it ends with '%'.
397
398 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
399 can hold.
400
401 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Renamed
402 from most_positive_fixnum and most_negative_fixnum, resp., and
403 type changed to Lisp_Object.
404 (syms_of_data): DEFVAR_LISP them.
405
406 2001-12-07 Richard M. Stallman <rms@gnu.org>
407
408 * callproc.c (init_callproc): Set Vdata_directory based on the source
409 location whenever Emacs was run uninstalled.
410
411 2001-12-06 Paul Eggert <eggert@twinsun.com>
412
413 * config.in (HAVE_WORKING_VFORK): New #undefs.
414 * process.c (create_process):
415 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
416 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
417 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
418 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
419 * m/intel386.h (HAVE_VFORK): Likewise.
420 * m/mips-siemens.h (HAVE_VFORK): Likewise.
421 * m/mips.h (HAVE_VFORK): Likewise.
422 * s/freebsd.h (vfork): Remove #define.
423 * s/lynxos.h (HAVE_VFORK): Remove #undef.
424 * s/usg5-4-2.h: Fix comment about vfork.
425
426 2001-12-06 Richard M. Stallman <rms@gnu.org>
427
428 * s/hpux10.h (random): Add undef.
429 (HAVE_RANDOM): Define it just once.
430
431 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
432
433 * eval.c: Undo last change: the standard syntax is not wanted.
434
435 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
436
437 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
438 scroll bars of the frame before deleting the frame itself. If the
439 frame has a widget, delete the frame with XtDestroyWidget, and do
440 not call XDestroyWindow before that.
441
442 2001-12-06 Kim F. Storm <storm@cua.dk>
443
444 * xfns.c (x_report_frame_params): Return actual fringe widths.
445
446 * w32fns.c (x_report_frame_params): Return actual fringe widths.
447
448 2001-12-05 Andrew Innes <andrewi@gnu.org>
449
450 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
451 excessively large.
452
453 * insdel.c (make_gap_larger): New function.
454 (make_gap_smaller): New function.
455 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
456 make_gap_smaller if arg is negative.
457
458 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
459
460 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
461 Pass a dummy argument when calling interrupt_signal.
462 (parse_menu_item): Mark disabled items before checking for empty def.
463 (read_char_minibuf_menu_prompt): Make safety more visible.
464 (read_key_sequence): Add a `first_unbound' variable.
465 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
466 unbound prefix as soon as we can detect it.
467
468 * doc.c (Fsnarf_documentation): Add prototype.
469 (get_doc_string): Handle negative arguments.
470 (Fdocumentation): Use AREF and ASIZE.
471 Move the calls to get_doc_string to a single place.
472 Don't confuse an interactive-spec for a docstring reference.
473 (Fdocumentation_property): Take advantage of the fact that
474 get_doc_string now ignores the sign of the docstring position.
475
476 * eval.c: Use standard syntax for usage in docstrings.
477
478 2001-12-03 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
479
480 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
481
482 2001-12-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
483
484 * xterm.c (x_draw_image_relief): Use predefined macro instead of
485 constant when the value of `tool_bar_button_relief' is negative.
486
487 2001-12-02 Richard M. Stallman <rms@gnu.org>
488
489 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
490 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
491
492 * fileio.c (read_non_regular): Delete Fsignal call.
493
494 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
495
496 * lisp.h (run_hook_list_with_args): Undo last change.
497
498 2001-12-01 Gerd Moellmann <gerd@gnu.org>
499
500 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
501
502 2001-12-01 Jason Rumney <jasonr@gnu.org>
503
504 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
505
506 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
507 [!WM_MOUSELEAVE]: Define.
508
509 * w32menu.c (current_popup_menu, get_menu_item_info):
510 (set_menu_item_info): New vars.
511 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
512 (w32_menu_show): Set current_popup_menu.
513 (add_menu_item): Allocate new strings for owner-drawn menu items
514 and help strings.
515 Use owner-draw for disabled menu items again.
516 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
517 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
518
519 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
520 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
521 <WM_EXITMENULOOP>: Free menu strings.
522 <WM_MOUSELEAVE>: Stop tracking mouse.
523 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
524
525 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
526 and mouse face.
527
528 2001-12-01 Kim F. Storm <storm@cua.dk>
529
530 The following changes add left-fringe and right-fringe
531 frame parameters to adjust fringe widths, or remove one or
532 both fringes.
533
534 * frame.h (struct frame): Remove trunc_area_pixel_width and
535 trunc_area_cols fields.
536 (Qleft_fringe, Qright_fringe): Declare.
537 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
538
539 * frame.c (Qleft_fringe, Qright_fringe): New vars.
540 (syms_of_frame): Initialize them.
541
542 * window.c (coordinates_in_window): Handle separate left and right
543 fringe widths.
544
545 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
546 and fringe_cols fields.
547 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
548 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
549 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
550 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
551 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
552 (x_compute_fringe_widths): Add prototype.
553
554 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
555 fill fringe evenly with small dashes.
556 (x_draw_fringe_bitmap): Clear background if necessary. Align and
557 clip the new ZV bitmap to avoid jitter between rows.
558 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
559 background. Don't draw fringe bitmaps if fringe width is zero.
560 (x_compute_fringe_widths): New function.
561 (x_new_font, x_set_window_size_1): Use it.
562
563 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
564 (x_set_frame_parameters): Process Process `font' parameter before other
565 parameters as fringe widths depend on it.
566 (x_set_fringe_width): New function.
567 (x_figure_window_size): Use x_compute_fringe_widths.
568 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
569 parameters.
570
571 * widget.c (set_frame_size): Use x_compute_fringe_widths.
572 (EmacsFrameSetCharSize): Ditto.
573
574 * w32term.h: Merged changes from xterm.h.
575 * w32term.c: Merged changes from xterm.c.
576 * w32fns.c: Merged changes from xfns.c.
577
578 2001-11-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
579
580 * COPYING: Removed.
581
582 2001-11-29 Dave Love <fx@gnu.org>
583
584 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
585 extra extra slot.
586 (detect_coding_mask): Fix call of detect_coding_iso2022.
587
588 2001-11-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
589
590 * fileio.c (file-name-coding-system)
591 (default-file-name-coding-system): Doc fix (links to referenced
592 variables added).
593
594 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
595
596 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
597 Add dummy uses of gcproN variables.
598
599 * category.c (describe_category, describe_category_1)
600 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
601 (syms_of_category): Don't defsubr Sdescribe_categories.
602
603 2001-11-28 Richard M. Stallman <rms@gnu.org>
604
605 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
606
607 * Makefile.in (lispdir): New variable, referring to build dir.
608 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
609
610 2001-11-28 Andrew Innes <andrewi@gnu.org>
611
612 * w32menu.c (w32_menu_display_help): Actually add the new argument
613 OWNER.
614
615 2001-11-28 Jason Rumney <jasonr@gnu.org>
616
617 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
618 menu items. From David Ponce <dponce@wanadoo.fr>.
619 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
620 conditionally.
621 (w32_menu_display_help): New argument OWNER. Rewritten to store a
622 help event in the owner frame's keyboard buffer.
623
624 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
625 (Fx_show_tip): Don't subtract last width from row width.
626
627 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
628 (w32_read_socket): Use EQ to compare frames.
629
630 2001-11-28 Gerd Moellmann <gerd@gnu.org>
631
632 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
633 OVERLAPS_P.
634
635 2001-11-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
636
637 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
638 `gcpro3' and `gcpro4'.
639
640 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
641
642 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
643
644 * ccl.c: Use AREF and ASIZE.
645
646 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
647
648 * lisp.h (run_hook_list_with_args): Remove.
649 (LIST_END_P): Fix call to wrong_type_argument.
650 (make_fixnum_or_float): Use EMACS_INT rather than int.
651
652 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
653
654 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
655 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
656
657 * eval.c: Use AREF and ASIZE.
658 (Ffetch_bytecode): Add the file name to the error message.
659
660 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
661 which match the end of the file-name.
662 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
663 is not a valid env var, but leave it as is instead.
664
665 * keymap.c (access_keymap): Handle t bindings like nil bindings.
666 Make nil bindings in char-tables transparent.
667 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
668
669 2001-11-26 Richard M. Stallman <rms@gnu.org>
670
671 * textprop.c (set_text_properties_1): Allow START, END in either order.
672 Do nothing if range is empty.
673
674 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
675
676 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
677 (clean): Not here.
678
679 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
680
681 * textprop.c (set_text_properties_1): Clearly mark that the
682 interval should not be empty.
683
684 * intervals.c (graft_intervals_into_buffer):
685 Don't call set_text_properties_1 on an empty interval.
686
687 2001-11-25 Richard M. Stallman <rms@gnu.org>
688
689 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
690
691 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
692 don't lose the data in it.
693
694 2001-11-25 Juanma Barranquero <lektu@terra.es>
695
696 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
697
698 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
699
700 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
701
702 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
703
704 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
705
706 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
707
708 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
709 Niemitalo <kon@iki.fi>.
710
711 2001-11-25 Jason Rumney <jasonr@gnu.org>
712
713 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
714
715 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
716 (Fx_show_tip): Block input during frame creation.
717 (Fx_show_tip, Fx_hide_tip): Enable.
718
719 2001-11-24 Richard M. Stallman <rms@gnu.org>
720
721 * lread.c (Fload): Detect recursive load error for more than 3
722 nestings of the same file.
723 (Vrecursive_load_depth_limit): Variable deleted.
724 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
725
726 2001-11-24 Jason Rumney <jasonr@gnu.org>
727
728 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
729 mouse position if either left or top is not specified.
730
731 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
732 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
733 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
734 (my_create_tip_window): Assign tip_window.
735 (x_create_tip_frame): Use same defaults as X.
736 (compute_tip_xy): Remove unused variable. Use full screen width.
737 (Fx_show_tip): Do not double height. Call ShowWindow directly.
738
739 * w32term.c (x_after_update_window_line): Doc fix.
740 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
741 frames.
742 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
743
744 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
745 for all Windowed systems.
746
747 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
748
749 * msdos.c (IT_clear_screen): If the frame's faces are not yet
750 realized, use the initial screen colors to clear the screen.
751
752 2001-11-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
753
754 * textprop.c (Fset_text_properties): Remove unused variables
755 `unchanged', `prev_changed', `s' and `len'.
756
757 * search.c (Freplace_match): Remove unused variable `inslen'.
758
759 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
760
761 2001-11-22 Jason Rumney <jasonr@gnu.org>
762
763 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
764 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
765 (my_create_tip_window): New function.
766 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
767 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
768
769 2001-11-20 Jason Rumney <jasonr@gnu.org>
770
771 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
772 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
773
774 * w32fns.c (Vw32_system_coding_system): Remove.
775 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
776
777 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
778
779 * fileio.c (Fwrite_region): Move choose_write_coding_system to
780 after build_annotations.
781
782 * syntax.c (describe_syntax): Add dummy arg.
783 (describe_syntax_1): Update call to describe_vector.
784
785 * category.c (describe_category): Add dummy arg.
786 (describe_category_1): Update call to describe_vector.
787
788 * keymap.c (Fdescribe_vector): Add `describer' parameter.
789 (describe_command, describe_translation): Add dummy second param.
790 (describe_map): Call elt_describer with two arguments.
791 (describe_vector_princ): Add `fun' parameter.
792 Call it instead of the hardcoded `princ'.
793 (describe_vector): Add arg `args'.
794 Pass it as a new second argument to elt_describer.
795
796 * keymap.h (describe_vector): Update prototype.
797
798 * frame.c: Don't include keymap.h any more.
799 (keys_of_frame): Remove.
800
801 * lisp.h (keys_of_frame): Remove declaration.
802
803 * emacs.c (main): Don't call `keys_of_frame' any more.
804
805 2001-11-14 Andreas Schwab <schwab@suse.de>
806
807 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
808 if defined, 0 otherwise.
809 (MAP_FAILED): Define if not defined and use it to test mmap failure.
810 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
811
812 2001-11-19 Richard M. Stallman <rms@gnu.org>
813
814 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
815
816 2001-11-18 Jason Rumney <jasonr@gnu.org>
817
818 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
819 (x_draw_bar_cursor): If the background color of the glyph under
820 the cursor equals the frame's cursor color, use the glyph's
821 foreground color for drawing the bar cursor.
822 (x_after_update_window_line): Clear internal border in different
823 circumstances.
824 (w32_set_vertical_scroll_bar): Check for width and height > 0.
825 (w32_draw_relief_rect): Correct relief by 1 pixel.
826 (x_set_glyph_string_background_width):
827 Set extends_to_end_of_line_p if the row's fill_line_p is set and
828 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
829 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
830 if cursor_in_non_selected_windows is false.
831 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
832 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
833 Notice if cursor gets overwritten.
834 (notice_overwritten_cursor): Renamed from
835 note_overwritten_text_cursor. Rewritten to take glyph widths
836 into account, and to take X positions as parameters.
837 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
838 around call to x_draw_glyphs.
839 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
840 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
841 color to use for image glyph reliefs.
842 (x_draw_image_relief): Accept zero tool_bar_button_relief.
843 (glyph_rect): Remove unused variable `area'.
844
845 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
846 some items.
847 (x_set_internal_border_width): Set frame garbaged when window
848 doesn't exist yet.
849 (Fx_create_frame): Accept zero tool_bar_button_relief.
850 (x_clear_image_1, four_corners_best, image_background)
851 (image_background_transparent): New functions.
852 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
853 (gs_format): Add `:background' entry.
854 (lookup_image): Set IMG's background color if specified.
855 (pbm_load, xbm_load_image, png_load): Set IMG's background field
856 when appropriate.
857 (x_clear_image_1): Reset `background_valid' and
858 `background_transparent_valid' fields.
859 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
860 calculating it here. Set IMG's background_transparent field.
861 (enum xpm_keyword_index): Add XPM_BACKGROUND.
862 (enum png_keyword_index): Add PNG_BACKGROUND.
863 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
864 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
865 (enum gif_keyword_index): Add GIF_BACKGROUND.
866 (enum gs_keyword_index): Add GS_BACKGROUND.
867 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
868 Pre-calculate image background color where necessary.
869 (x_create_x_image_and_pixmap, xbm_load, gs_load):
870 Use display info's n_cbits entry for screen depth.
871 (Fx_show_tip): Remove unused variables `buffer', `top',
872 `left', `max_width' and `max_height'.
873
874 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
875
876 2001-11-18 Gerd Moellmann <gerd@gnu.org>
877
878 * puresize.h (BASE_PURESIZE): Increase to 750000.
879
880 2001-11-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
881
882 * frame.c (Fframe_live_p): Doc fix.
883
884 2001-11-18 Richard M. Stallman <rms@gnu.org>
885
886 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
887 (message_dolog_marker3): New static variables hold three markers.
888 (syms_of_xdisp): Initialize and staticpro them.
889 (message_dolog): Use message_dolog_marker1..3 instead of
890 allocating markers each time. Unchain them when done.
891
892 2001-11-17 Richard M. Stallman <rms@gnu.org>
893
894 * doc.c (Fsnarf_documentation): Doc fix.
895
896 2001-11-17 Andreas Schwab <schwab@suse.de>
897
898 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
899
900 2001-11-17 Richard M. Stallman <rms@gnu.org>
901
902 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
903
904 2001-11-17 Jason Rumney <jasonr@gnu.org>
905
906 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
907
908 2001-11-17 Gerd Moellmann <gerd@gnu.org>
909
910 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
911 with invalid position.
912
913 2001-11-16 Richard M. Stallman <rms@gnu.org>
914
915 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
916
917 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
918 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
919 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
920
921 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
922
923 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
924
925 * fileio.c (build_annotations): Split off the tail.
926 (build_annotations_2): New fun. Extracted from build_annotations.
927 (Fwrite_region): Split the call to build_annotations into two
928 calls to build_annotations and build_annotations_2.
929
930 2001-11-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
931
932 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
933 clear_waiting_for_input with argument.
934
935 * xterm.h (x_update_cursor): Remove duplicated prototype.
936
937 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
938
939 * xterm.c (waiting_for_input): Remove unnecessary declaration.
940
941 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
942
943 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
944
945 * fileio.c (choose_write_coding_system): New fun, extracted
946 from Fwrite_region.
947 (Fwrite_region): Use it.
948
949 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
950 (funcall_lambda, run_hook_with_args): Make static and add prototype.
951 (ml_apply, find_handler_clause): Add prototype.
952
953 2001-11-16 Eli Zaretskii <eliz@gnu.org>
954
955 * config.in: Add #undef HAVE_COFF_H.
956
957 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
958 Required for ISC 4.1.
959
960 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
961
962 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
963 Andrew Wiseman <a.wiseman@btclick.com>.
964
965 2001-11-16 Kim F. Storm <storm@cua.dk>
966
967 The following changes are made to clean up the various internal
968 references to the fringes to actually use the term `fringe' for
969 them. Previously, they were called `flags areas', `bitmap areas',
970 `left/right side of windows', or implicitly as `flags' or
971 `bitmaps':
972
973 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
974 Comments fixed. Use renamed symbols.
975
976 * dispnew.c: Comment fix. Use renamed symbols.
977
978 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
979 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
980 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
981
982 * msdos.c: Comment fix.
983
984 * w32fns.c: Use renamed symbols.
985
986 * w32term.c: Comment fixes. Use renamed symbols.
987 (fringe_bitmap_type): Renamed from bitmap_type.
988 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
989 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
990 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
991
992 * w32term.h: Comment fixes. Use renamed symbols.
993 (fringes_extra): Renamed from flags_areas_extra.
994 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
995 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
996 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
997 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
998 (FRAME_X_LEFT_FRINGE_WIDTH):
999 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
1000 (FRAME_X_RIGHT_FRINGE_WIDTH):
1001 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
1002
1003 * widget.c: Use renamed symbols.
1004
1005 * window.c: Comment fixes. Use renamed symbols.
1006 (coordinates-in-window-p): Doc fix.
1007
1008 * xdisp.c: Comment fixes. Use renamed symbols.
1009
1010 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
1011
1012 * xfns.c: Use renamed symbols.
1013
1014 * xterm.c: Comment fixes. Use renamed symbols.
1015 (fringe_bitmap_type): Renamed from bitmap_type.
1016 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
1017 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
1018 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
1019
1020 * xterm.h: Comment fixes. Use renamed symbols.
1021 (fringes_extra): Renamed from flags_areas_extra.
1022 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
1023 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
1024 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
1025 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
1026 (FRAME_X_LEFT_FRINGE_WIDTH):
1027 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
1028 (FRAME_X_RIGHT_FRINGE_WIDTH):
1029 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
1030
1031 2001-11-15 Jason Rumney <jasonr@gnu.org>
1032
1033 * w32menu.c (add-menu-item): Make help_echo and radio buttons
1034 work for most menu items. From David Ponce
1035 <david.ponce@wanadoo.fr>.
1036
1037 2001-11-15 Gerd Moellmann <gerd@gnu.org>
1038
1039 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
1040 Some x_set_* function expect to be called even if old and new
1041 value are equal.
1042
1043 * xdisp.c (build_desired_tool_bar_string): Accept zero
1044 tool_bar_button_relief.
1045
1046 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
1047
1048 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
1049
1050 * xterm.c (x_draw_bar_cursor): If the background color of the
1051 glyph under the cursor equals the frame's cursor color, use
1052 the glyph's foreground color for drawing the bar cursor.
1053
1054 * dispnew.c (direct_output_forward_char): Fix character/byte
1055 position comparison.
1056
1057 2001-11-15 Miles Bader <miles@gnu.org>
1058
1059 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
1060 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
1061 Update arguments to find_field.
1062 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
1063 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
1064 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
1065 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
1066
1067 2001-11-14 Richard M. Stallman <rms@gnu.org>
1068
1069 * editfns.c (Fpropertize): Allow call with 1 arg.
1070
1071 * dispextern.h (image_background, image_background_transparent):
1072 Conditionalize on HAVE_X_WINDOWS.
1073
1074 2001-11-13 Richard M. Stallman <rms@gnu.org>
1075
1076 * print.c (Fprin1_to_string): Doc fix.
1077
1078 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
1079
1080 * floatfns.c (Fceiling, Ffloor): Doc fixes.
1081
1082 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
1083
1084 * fileio.c (Ffile_accessible_directory_p): Doc fix.
1085
1086 * eval.c (syms_of_eval): Doc fix.
1087
1088 * coding.c (syms_of_coding): Doc fix.
1089
1090 * doc.c (Fsnarf_documentation): Doc fix.
1091
1092 * dispnew.c (syms_of_display): Doc fix.
1093
1094 * category.c (Fget_unused_category): Doc fix.
1095
1096 * buffer.c (syms_of_buffer): Doc fixes.
1097
1098 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
1099
1100 * print.c (prin1, print): Doc fix.
1101
1102 2001-11-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1103
1104 * fontset.h: Remove declarations of variables
1105 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
1106
1107 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
1108 `Vclip_large_size_font'.
1109
1110 2001-11-13 Jason Rumney <jasonr@gnu.org>
1111
1112 * w32fns.c: Doc fix.
1113
1114 2001-11-13 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1115
1116 * xfaces.c (Fface_attributes_as_vector): Doc fix.
1117
1118 * w32fns.c (Fx_synchronize): Reindent.
1119
1120 * fns.c: Doc fix.
1121
1122 * emacs.c: Doc fix.
1123
1124 * coding.c: Doc fix.
1125
1126 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
1127 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
1128 `new style' [w/`doc:' keyword].
1129
1130 * xmenu.c (x-popup-menu): Reindent.
1131 (x-popup-dialog): Likewise.
1132
1133 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
1134
1135 * xdisp.c (Fdump_tool_bar_row): Reindent.
1136
1137 * minibuf.c (Fminibuffer_complete_word): Reindent.
1138 (Fminibuffer_complete_and_exit): Likewise.
1139 (Fminibuffer_completion_help): Likewise.
1140 (Fminibuffer_message): Likewise.
1141
1142 * fns.c (Freverse): Reindent.
1143
1144 * eval.c (Fif): Reindent.
1145 (Fand): Likewise.
1146
1147 * editfns.c (Fuser_real_login_name): Reindent.
1148 (Finsert_buffer_substring): Likewise.
1149 (Fcompare_buffer_substrings): Likewise.
1150 (Fsubst_char_in_region): Likewise.
1151
1152 * dispnew.c (Fsit_for): Reindent.
1153 (Fframe_or_buffer_changed_p): Likewise.
1154 (Finternal_show_cursor_p): Likewise.
1155 (syms_of_display): Likewise.
1156
1157 * alloc.c (Flist): Reindent.
1158 (Fvector): Likewise.
1159
1160 2001-11-12 Richard M. Stallman <rms@gnu.org>
1161
1162 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
1163 LeaveNotify events. Only FocusIn and FocusOut do that now.
1164 (x_display_and_set_cursor): Do display hollow cursors in active
1165 minibuffer windows when they are not selected.
1166
1167 2001-11-12 Jason Rumney <jasonr@gnu.org>
1168
1169 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
1170 * w32term.c: Change doc-string comments to `new style'.
1171 [w/`doc:' keyword]. Doc fixes.
1172
1173 * w32fns.c: Don't define max.
1174 (Fx_open_connection): Only execute once.
1175
1176 2001-11-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1177
1178 * ccl.c: Change macros to use do-while block instead of if-else.
1179 Use braces to follow GNU Coding Standards.
1180
1181 2001-11-11 Richard M. Stallman <rms@gnu.org>
1182
1183 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
1184
1185 * lread.c (read_escape): Use end_of_file_error for reporting eof.
1186
1187 * insdel.c (replace_range): Use adjust_markers_for_replace
1188 instead of adjust_markers_for_delete and adjust_markers_for_insert.
1189
1190 * intervals.h: Declare set_text_properties and set_text_properties_1.
1191
1192 * textprop.c (set_text_properties_1): New subroutine
1193 broken out of set_text_properties.
1194 (set_text_properties): Use set_text_properties_1.
1195
1196 * intervals.c (graft_intervals_into_buffer):
1197 Use set_text_properties_1 to clear out properties.
1198
1199 * search.c (Freplace_match): Use replace_range to insert
1200 and delete. Don't request property inheritance from
1201 surrounding text.
1202
1203 2001-11-10 Jason Rumney <jasonr@gnu.org>
1204
1205 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
1206 vertical fonts. Allow them if face name is explicitly specified.
1207 Do not give up if we find a font that cannot be converted to an xlfd.
1208
1209 2001-11-10 Gerd Moellmann <gerd@gnu.org>
1210
1211 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
1212 instead of malloc/free.
1213
1214 2001-11-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1215
1216 * xfaces.c (merge_face_vectors): Use braces to follow GNU
1217 Coding Standards.
1218 (Finternal_set_lisp_face_attribute): Likewise.
1219
1220 * buffer.c (Fbury_buffer): Likewise.
1221
1222 * indent.c (current_column_1): Remove unused variable `prev_col'.
1223
1224 * coding.c (encode_coding): Use precomputed value of `src'.
1225 (encode_coding): Remove unused variable `src_end'.
1226 (code_convert_region): Remove unused variables `count'.
1227
1228 2001-11-07 Jason Rumney <jasonr@gnu.org>
1229
1230 * w32term.c (x_display_and_set_cursor): Do not move system caret
1231 if cursor_glyph is NULL.
1232
1233 2001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1234
1235 * keymap.c (access_keymap): Fix compilation error.
1236
1237 2001-11-07 Miles Bader <miles@gnu.org>
1238
1239 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
1240
1241 2001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1242
1243 * intervals.c (graft_intervals_into_buffer):
1244 Remove #ifdef'd-out code.
1245 (graft_intervals_into_buffer): Remove unused variable `middle'.
1246
1247 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
1248 code (eval-current-buffer).
1249 Change doc-string comments to `new style' [w/`doc:' keyword].
1250
1251 2001-11-06 Richard M. Stallman <rms@gnu.org>
1252
1253 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
1254
1255 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
1256
1257 * lread.c (read1): Fix behavior with nested backquoting.
1258
1259 * keyboard.c (make_lispy_event): Check integerness and fix
1260 Lisp_Object/int mixup.
1261
1262 2001-11-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1263
1264 * fns.c (copy_hash_table): Remove unused variable `v'.
1265
1266 * fontset.c (fontset_font_pattern): Remove unused variable
1267 `family_registry'.
1268
1269 * indent.c (current_column_1): Remove unused variable `prev_col'.
1270
1271 2001-11-05 Richard M. Stallman <rms@gnu.org>
1272
1273 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
1274
1275 * buffer.c (Fkill_buffer): Don't delete auto save file
1276 if buffer is modified.
1277
1278 2001-11-05 Andrew Innes <andrewi@gnu.org>
1279
1280 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
1281 CHECK_NUMBER_CDR.
1282
1283 2001-11-05 Richard M. Stallman <rms@gnu.org>
1284
1285 * unexelf.c (unexec): Minor changes; clean up comments.
1286
1287 2001-11-05 Sam Steingold <sds@gnu.org>
1288
1289 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
1290
1291 2001-11-05 Andreas Schwab <schwab@suse.de>
1292
1293 * sound.c (sound_perror): Save errno from being clobbered.
1294
1295 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
1296
1297 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
1298 the program image directly.
1299
1300 2001-11-05 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1301
1302 * buffer.h (Fbuffer_local_value): Add prototype.
1303
1304 2001-11-04 Richard M. Stallman <rms@gnu.org>
1305
1306 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
1307 and CHECK_BUFFER.
1308
1309 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
1310 (record_char): Likewise.
1311
1312 * keyboard.c (make_lispy_event): Don't insist a drag event must
1313 move to a different buffer position. Instead, check for moving at
1314 least double_click_fuzz.
1315
1316 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
1317
1318 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
1319
1320 * indent.c (current_column_1, Fmove_to_column): Separate the code
1321 for display-table glyphs from the code buffer text, to fix
1322 bugs in the former.
1323
1324 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
1325
1326 * buffer.c (Fbuffer_local_value): New function.
1327 (syms_of_buffer): Defsubr it.
1328
1329 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
1330 value of `cursor-in-non-selected-windows'.
1331
1332 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
1333 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
1334 (syms_of_xdisp): Initialize it.
1335
1336 2001-11-04 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1337
1338 * xfns.c (Fx_create_frame): Doc fix.
1339
1340 * coding.c: Change doc-string comments to `new style' [w/`doc:'
1341 keyword].
1342
1343 * eval.c (top_level_value, top_level_set): Remove commented and
1344 #ifdef'd-out code.
1345 (Fdefvar): Fix usage in doc-string.
1346
1347 2001-11-03 Richard M. Stallman <rms@gnu.org>
1348
1349 * xfns.c: Include unistd.h, if it exists.
1350
1351 * editfns.c: Move the include of ctype.h after unistd.h.
1352
1353 * gmalloc.c: Test BROKEN_PROTOTYPES.
1354
1355 2001-11-03 Ken Raeburn <raeburn@gnu.org>
1356
1357 * lisp.h (CHECK_STRING_CAR): New macro.
1358 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
1359 treating XCAR and XCDR as lvalues.
1360 (openp): Use CHECK_STRING_CAR.
1361 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
1362
1363 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
1364
1365 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
1366 (SIGMASKTYPE): Define.
1367
1368 * syssignal.h (sigunblock): Don't define if already defined.
1369
1370 2001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1371
1372 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
1373 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
1374 Fix typos in comments.
1375
1376 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
1377 and #ifdef'd-out code.
1378 Fix and reindent comments.
1379
1380 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
1381
1382 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
1383 argument `i' in macros.
1384
1385 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
1386 `i' in macros.
1387
1388 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
1389 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
1390 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
1391 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
1392 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
1393 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
1394 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
1395 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
1396 in macros.
1397
1398 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
1399 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
1400 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
1401 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
1402 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
1403 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
1404 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
1405 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
1406 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
1407 (remove unused second argument).
1408
1409 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
1410
1411 * syntax.c (describe_syntax): New wrapper.
1412 (Finternal_describe_syntax_value): Rename from describe_syntax.
1413 Don't insert space at front and \n at the end.
1414 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
1415
1416 * regex.c (re_wctype): Try to fix some warnings.
1417 (regcomp, regexec): Don't forget the __restrict.
1418
1419 2001-11-02 Richard M. Stallman <rms@gnu.org>
1420
1421 * textprop.c (Fget_char_property): Doc fix.
1422
1423 2001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1424
1425 * process.c (Fstart_process): Add usage to doc-string.
1426
1427 * data.c (Fsetq_default): Ditto.
1428
1429 * callint.c (Finteractive): Ditto.
1430
1431 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
1432
1433 * macros.c: Don't include keymap.h any more.
1434
1435 2001-11-01 Richard M. Stallman <rms@gnu.org>
1436
1437 * data.c (Fmake_local_variable): Doc fix.
1438
1439 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
1440 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
1441
1442 * keymap.c (Fdescribe_buffer_bindings): Print character property
1443 bindings along with or instead of the buffer local map.
1444 Make the overriding maps override what they should.
1445
1446 2001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1447
1448 * window.c (grow_mini_window): Fix typo in comment.
1449
1450 2001-11-01 Gerd Moellmann <gerd@gnu.org>
1451
1452 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
1453 (XTset_vertical_scroll_bar): Likewise.
1454
1455 * xfns.c (x_build_heuristic_mask): Use four_corners_best
1456 instead of IMAGE_BACKGROUND.
1457
1458 * xfns.c (four_corners_best): Reindent.
1459
1460 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
1461 Handle :box so that it is possible to specify sexprs.
1462
1463 2001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1464
1465 * xfaces.c (Finternal_merge_in_global_face): Reindent.
1466 (Fface_font): Ditto.
1467 (Finternal_set_alternative_font_registry_alist): Ditto.
1468 (Ftty_suppress_bold_inverse_default_colors): Ditto.
1469
1470 * xfns.c (x-get-resource): Reindent.
1471
1472 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
1473
1474 * s/hpux11.h: New file.
1475
1476 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1477
1478 * emacs.c (USAGE1): Show command line option --no-window-system
1479 instead of --no-windows in usage.
1480 (standard_args): Rename --no-windows to --no-window-system.
1481 (bug_reporting_address): Follow Emacs coding conventions.
1482
1483 * eval.c (Fcommandp): Doc fix.
1484 Change doc-string comments to `new style' [w/`doc:' keyword].
1485
1486 * frame.c (Fframe_live_p): Doc fix.
1487
1488 * buffer.c (selective-display-ellipses): Doc fix.
1489
1490 2001-10-31 Gerd Moellmann <gerd@gnu.org>
1491
1492 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
1493
1494 * xfaces.c (realize_x_face): If C is not a single-byte character,
1495 set the face's colors_copied_bitwise_p instead of the defaulted_p
1496 members which have a different meaning.
1497 (free_face_colors): Do nothing for a face whose colors have been
1498 copied bitwise.
1499
1500 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
1501
1502 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1503
1504 * marker.c, mocklisp.c: Change doc-string comments to `new style'
1505 [w/`doc:' keyword].
1506
1507 2001-10-31 Gerd Moellmann <gerd@gnu.org>
1508
1509 * fns.c (require_unwind): Return Lisp_Object.
1510
1511 2001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1512
1513 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
1514 (last-input-char): Revert doc-string to be the same as the
1515 doc-string of `last-input-event'.
1516
1517 * xdisp.c: Fix typos in comments.
1518
1519 2001-10-31 Gerd Moellmann <gerd@gnu.org>
1520
1521 * window.c (grow_mini_window): Handle case that the root
1522 window is already smaller than the nominal mininum height.
1523
1524 2001-10-30 Stefan Monnier <monnier@cs.yale.edu>
1525
1526 * emacs.c (main): Don't call keys_of_macros any more.
1527
1528 * lisp.h (keys_of_macros): Remove.
1529
1530 * macros.c (keys_of_macros): Remove.
1531
1532 * xfaces.c (Fface_attribute_relative_p): Declare args.
1533
1534 2001-10-30 Jason Rumney <jasonr@gnu.org>
1535
1536 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
1537 (enum_font_cb2): Ignore fonts with vertical orientation.
1538
1539 2001-10-30 Richard M. Stallman <rms@gnu.org>
1540
1541 * keyboard.c (Finput_pending_p): Doc fix.
1542
1543 2001-10-30 Gerd Moellmann <gerd@gnu.org>
1544
1545 * xterm.c (x_after_update_window_line): Don't run the code
1546 clearing in borders for rows whose visible height is 0.
1547
1548 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
1549 resized_p flag is set. If not set, use the much less flickering
1550 method previously used.
1551
1552 * dispnew.c (change_frame_size_1): Set frame's resized_p.
1553
1554 * frame.h (struct frame) <resized_p>: New member.
1555
1556 * lread.c (to_multibyte): Ensure read_buffer is at least twice
1557 as large as the number of bytes to convert.
1558
1559 * lread.c (to_multibyte): New function.
1560 (read1): Use it.
1561
1562 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
1563
1564 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
1565
1566 2001-10-30 Gerd Moellmann <gerd@gnu.org>
1567
1568 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
1569 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
1570 if the row's fill_line_p is set and drawing the last glyph with
1571 DRAW_IMAGE_{RAISED,SUNKEN}.
1572
1573 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
1574
1575 2001-10-29 Stefan Monnier <monnier@cs.yale.edu>
1576
1577 * xmenu.c: Include coding.h and charset.h.
1578 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
1579 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
1580 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
1581 Explicitly set wv->help. Use `TRUE' rather than `True'.
1582 (menu_help_callback): Use empty_string.
1583
1584 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
1585 (Fx_popup_dialog): Explicitly init f.
1586 (w32_menu_display_help): Use empty_string.
1587
1588 2001-10-29 Richard M. Stallman <rms@gnu.org>
1589
1590 * fns.c (Frequire): Detect recursive try to require the same
1591 feature 3 or more levels deep, and get error.
1592 (require_unwind): New subroutine.
1593 (require_nesting_list): New variable.
1594 (syms_of_fns): Init and staticpro it.
1595
1596 * print.c (print_object): Clarify indication of insertion type.
1597
1598 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
1599
1600 * coding.c (syms_of_coding): Document that locale-coding-system is
1601 used for decoding input on X.
1602
1603 * window.c (Fscroll_left, Fscroll_right): Doc fix.
1604
1605 2001-10-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1606
1607 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
1608 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
1609
1610 2001-10-29 Gerd Moellmann <gerd@gnu.org>
1611
1612 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
1613 use NO_CURSOR if cursor_in_non_selected_windows is false.
1614
1615 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
1616 the slant attribute if FRAME is t.
1617
1618 * xfns.c (x_set_internal_border_width): Set frame garbaged
1619 when X window doesn't exist yet.
1620
1621 * xterm.c (x_after_update_window_line): Clear internal border
1622 in different circumstances.
1623
1624 * xterm.c (XTread_socket) <KeyPress>: Don't use
1625 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
1626 <handa@etl.go.jp>.
1627
1628 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
1629
1630 * m/ibms390.h: New file. From Adam Thornton
1631 <athornton@sinenomine.net>.
1632
1633 2001-10-28 Gerd Moellmann <gerd@gnu.org>
1634
1635 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
1636
1637 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
1638 a loop counter.
1639
1640 2001-10-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1641
1642 * emacs.c: Use argv[0] instead of emacs when -t was specified.
1643
1644 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
1645 keyword].
1646 Fix typos in comments.
1647
1648 * emacs.c (bug_reporting_address): New function.
1649 Use it when displaying usage message.
1650
1651 * minibuf.c (read_minibuf): Remove unused external declaration of
1652 variable `Qread_only'.
1653
1654 * keymap.c (access_keymap): Remove unused variable `charset'.
1655
1656 2001-10-28 Miles Bader <miles@gnu.org>
1657
1658 * xfaces.c (merge_face_heights): Handle TO being relative as well.
1659 Remove #ifdef'd-out code.
1660 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
1661 (syms_of_xfaces): Initialize them.
1662
1663 2001-10-27 Jason Rumney <jasonr@gnu.org>
1664
1665 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
1666 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
1667 position using the system caret.
1668
1669 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
1670 (w32_system_caret_height, w32_system_caret_x)
1671 (w32_system_caret_y): New variables for tracking system caret.
1672 (w32_initialize): Initialize them.
1673 (x_display_and_set_cursor): Make system caret follow the active cursor.
1674
1675 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
1676 New messages types.
1677
1678 * w32term.c (note_mouse_highlight): Clear old help_echo.
1679
1680 2001-10-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1681
1682 * xterm.c: Fix typo in a comment.
1683
1684 * emacs.c: Fix typos in comments.
1685 Remove unnecessary spaces.
1686 Change doc-string comments to `new style' [w/`doc:' keyword].
1687 (USAGE2): Fix typos in usage string.
1688
1689 * xterm.c: Fix typo in a comment.
1690
1691 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
1692 emacs.c.
1693
1694 2001-10-27 Gerd Moellmann <gerd@gnu.org>
1695
1696 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
1697 instead of 1/2 line_height in the heuristic for skipping
1698 farther backward when target_y was not reached.
1699
1700 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
1701 Display errno only if non-zero.
1702 (sound_warning): New function.
1703 (vox_configure): Don't treat failing to set sample rate as error.
1704 (various places): Improve error messages.
1705
1706 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
1707
1708 * fileio.c (Faccess_file): Run the argument filename through
1709 Fexpand_file_name, before using it.
1710
1711 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
1712 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
1713
1714 2001-10-26 Gerd Moellmann <gerd@gnu.org>
1715
1716 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
1717
1718 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1719 Fix clearing in the case of scroll bars on the right.
1720
1721 2001-10-26 Juanma Barranquero <lektu@terra.es>
1722
1723 * w32gui.h (XImage): Add a dummy typedef.
1724
1725 2001-10-26 Gerd Moellmann <gerd@gnu.org>
1726
1727 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
1728
1729 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
1730
1731 * frame.c (Fframe_parameter): Fix last change.
1732
1733 * fileio.c: Revert last change (which removed old commented-out
1734 version of expand-file-name). Add a comment that explains why
1735 this old version should not be removed.
1736
1737 2001-10-25 Gerd Moellmann <gerd@gnu.org>
1738
1739 * frame.c (Fframe_parameter): Fix a bug whereby some
1740 ``artificial'' frame parameters, like `minibuffer' were not
1741 obtained by calling Fframe_parameters.
1742
1743 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
1744 cursor differently.
1745
1746 * xdisp.c (move_it_vertically_backward): Compute line height
1747 differently. Add heuristic to try to be more compatible to 20.x.
1748
1749 2001-10-25 Stefan Monnier <monnier@cs.yale.edu>
1750
1751 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
1752
1753 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
1754 boolean.
1755
1756 2001-10-25 Miles Bader <miles@gnu.org>
1757
1758 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
1759 BG is a pointer to a structure, not a structure.
1760 (gif_format, png_format): Add missing commas.
1761
1762 2001-10-24 Richard M. Stallman <rms@gnu.org>
1763
1764 * xfaces.c (Fface_attributes_as_vector): New function.
1765 (syms_of_xfaces): Defsubr it.
1766
1767 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1768
1769 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
1770 variable `area'.
1771
1772 2001-10-25 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1773
1774 * search.c (scan_newline): Remove unused variable `selective_display'.
1775
1776 2001-10-25 Miles Bader <miles@gnu.org>
1777
1778 * dispextern.h (struct image): Add `background',
1779 `background_valid', and `background_transparent' fields.
1780 (image_background, image_background_transparent): New declarations.
1781 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
1782 * xfns.c (image_background, image_background_transparent)
1783 (four_corners_best): New functions.
1784 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
1785 (gs_format): Add `:background' entry.
1786 (lookup_image): Set IMG's background color if specified.
1787 (pbm_load, xbm_load_image, png_load): Set IMG's background field
1788 when appropriate.
1789 (x_clear_image_1): Reset `background_valid' and
1790 `background_transparent_valid' fields.
1791 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
1792 calculating it here. Set IMG's background_transparent field.
1793 (enum xpm_keyword_index): Add XPM_BACKGROUND.
1794 (enum png_keyword_index): Add PNG_BACKGROUND.
1795 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
1796 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
1797 (enum gif_keyword_index): Add GIF_BACKGROUND.
1798 (enum gs_keyword_index): Add GS_BACKGROUND.
1799 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
1800 Pre-calculate image background color where necessary.
1801 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
1802 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
1803 color to use for image glyph reliefs.
1804
1805 2001-10-24 Gerd Moellmann <gerd@gnu.org>
1806
1807 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
1808 in full-width rows.
1809
1810 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1811 Fix clearing of area not covered by scroll bar.
1812
1813 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1814
1815 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
1816 and `real_start'.
1817 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
1818 (glyph_rect): Remove unused variable `area'.
1819
1820 2001-10-24 Gerd Moellmann <gerd@gnu.org>
1821
1822 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
1823
1824 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
1825 (row_containing_pos): Take additional argument DY.
1826 Treat rows ending in middle of char differently.
1827 (display_line): Handle tabs on window systems differently.
1828
1829 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
1830 with additional argument.
1831
1832 * dispextern.h (row_containing_pos): Adjust prototype.
1833
1834 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
1835 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
1836 (try_window_id, try_window_reusing_current_matrix)
1837 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
1838 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
1839
1840 2001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1841
1842 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
1843 gnuemacs).
1844 (HAVE_BOXES): Fix typo in comment.
1845 (push_menu_pane): Fix typo in comment.
1846
1847 * xdisp.c: (display_prop_string_p): Remove unused local declaration
1848 of `Qwhen'.
1849 (single_display_prop_string_p): Remove unused local declarations
1850 of `Qwhen' and `Qmargin'.
1851 (string_buffer_position): Remove unused variable `around'.
1852 (store_frame_title): Remove unused variable `width'.
1853
1854 * window.c: Don't define max.
1855 (coordinates_in_window): Remove unused variable `uy'.
1856
1857 * widget.c: Don't define max.
1858
1859 * process.c: Don't define max.
1860 (create_process): Remove unused variable `buffer'.
1861
1862 2001-10-23 Gerd Moellmann <gerd@gnu.org>
1863
1864 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
1865
1866 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
1867
1868 * xfaces.c (Finternal_set_lisp_face_attribute)
1869 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
1870 frame is on a windowed display.
1871
1872 2001-10-23 Gerd Moellmann <gerd@gnu.org>
1873
1874 * dispnew.c (sync_window_with_frame_matrix_rows):
1875 Fix handling of windows which aren't full-width, fix handling
1876 of marginal areas.
1877
1878 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
1879
1880 2001-10-23 Andreas Schwab <schwab@suse.de>
1881
1882 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
1883 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
1884
1885 2001-10-23 Gerd Moellmann <gerd@gnu.org>
1886
1887 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
1888 REAL_END. Notice if cursor gets overwritten.
1889 (notice_overwritten_cursor): Take X positions as parameters.
1890 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
1891 around call to x_draw_glyphs.
1892
1893 2001-10-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1894
1895 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
1896 instead of C) and usage.
1897
1898 * editfns.c (char-to-string): Fix argument names (use CHAR instead
1899 of C) and usage.
1900
1901 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
1902 `left', `max_width' and `max_height'.
1903
1904 2001-10-23 Gerd Moellmann <gerd@gnu.org>
1905
1906 * xdisp.c (display_line): For a tab continued to the next line,
1907 set row's ends_in_middle_of_char_p.
1908
1909 2001-10-22 Gerd Moellmann <gerd@gnu.org>
1910
1911 * xdisp.c (display_line): Fix computation of continuation lines
1912 width for TABs.
1913
1914 2001-10-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1915
1916 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
1917 `Qlaplace'.
1918
1919 * fileio.c: Remove unused code.
1920
1921 2001-10-22 Miles Bader <miles@gnu.org>
1922
1923 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
1924 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
1925 Remove `DOC_STRINGS_IN_COMMENTS' cases.
1926
1927 2001-10-21 Jason Rumney <jasonr@gnu.org>
1928
1929 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
1930
1931 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
1932
1933 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
1934 (Finsert_string): Avoid the multi-line string literals warning.
1935
1936 2001-10-22 Miles Bader <miles@gnu.org>
1937
1938 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
1939 (Fdocumentation): Don't use it.
1940 (syms_of_doc): Don't initialize it.
1941
1942 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
1943 * print.c (Fwith_output_to_temp_buffer): Likewise.
1944 * window.c (Fsave_window_excursion): Likewise.
1945 * editfns.c (Fsave_excursion, Fsave_current_buffer)
1946 (Fsave_restriction): Likewise.
1947 * eval.c (Frun_hooks, Frun_hook_with_args)
1948 (Frun_hook_with_args_until_failure)
1949 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
1950 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
1951 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
1952 (Funwind_protect, Fcondition_case): Likewise.
1953 * coding.c (Ffind_operation_coding_system): Likewise.
1954 * keyboard.c (Ftrack_mouse): Likewise.
1955
1956 2001-10-21 Miles Bader <miles@gnu.org>
1957
1958 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
1959 (Fmake_hash_table): Add usage: string to doc string.
1960 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
1961 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
1962 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
1963 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
1964 (Fml_prefix_argument_loop): Likewise.
1965
1966 2001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1967
1968 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
1969
1970 * sysdep.c (init_sys_modes): Change doc-string comments to `new
1971 style' [w/`doc:' keyword].
1972
1973 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
1974 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
1975 comments to `new style' [w/`doc:' keyword].
1976
1977 2001-10-21 Jason Rumney <jasonr@gnu.org>
1978
1979 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
1980
1981 * w32term.c (remember_mouse_glyph): New function.
1982 (w32_mouse_position): Use it.
1983 (note_mouse_movement): If the mouse moved off the glyph, remember
1984 its new position.
1985
1986 * w32term.h (struct w32_output): Correct spelling of x_compatible.
1987 (w32_display_info): Add mouse_face_overlay.
1988
1989 * w32term.c (notice_overwritten_cursor): Renamed from
1990 note_overwritten_text_cursor. Rewritten to take glyph widths into
1991 account.
1992 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
1993 (fast_find_string_pos): New function.
1994 (fast_find_position): Return the correct vpos. Add parameter
1995 STOP. In the final row, stop before glyphs having STOP as object.
1996 Don't consider glyphs that are not from a buffer.
1997 (fast_find_position) [0]: Add a presumably more correct version
1998 for after 21.1.
1999 (expose_window_tree, expose_frame): Don't compute intersections here.
2000 (expose_window): Do it here instead.
2001 (expose_window_tree, expose_window, expose_line): Return 1 when
2002 overwriting mouse-face.
2003 (expose_window): If W is the window currently being updated, mark
2004 the frame garbaged.
2005 (expose_frame): If mouse-face was overwritten, redo it.
2006 (x_use_underline_position_properties): New variable.
2007 (syms_of_xterm): DEFVAR_BOOL it.
2008 (x_draw_glyph_string): Add comment to use it in future.
2009 (x_draw_glyph_string): Restore clipping after drawing box.
2010 Fix a computation of the underline position.
2011 (w32_get_glyph_string_clip_rect): Minor cleanup.
2012 (x_fill_stretch_glyph_string): Remove an assertion.
2013 (x_produce_glyphs): Don't convert multibyte characters
2014 to unibyte characters in unibyte buffers.
2015 (cursor_in_mouse_face_p): New function.
2016 (x_draw_stretch_glyph_string): Use it to choose a different GC
2017 when drawing a cursor within highlighted text. Don't draw
2018 background again if it has already been drawn.
2019 (x_draw_glyph_string_box): Don't draw a full-width
2020 box just because the glyph row's full_width_p flag is set.
2021 (x_draw_glyphs): Fix computation of rightmost x for
2022 full-width rows.
2023 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
2024 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
2025 change bottom shadow accordingly. Some cleanup.
2026 (x_update_window_end): Handle overwritten mouse face
2027 also for tool bar windows.
2028 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
2029 DRAW is DRAW_IMAGE_RAISED.
2030 (clear_mouse_face): Return 1 if text with mouse face was
2031 actually redrawn. Make the function static. Reset
2032 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
2033 optimize away highlighting if we pass over that same overlay again.
2034 (note_mouse_highlight): Call mouse_face_overlay_overlaps
2035 to detect a case where we have to highlight a different region
2036 despite not having left the currently highlighted region.
2037 Set mouse_face_overlay in the x_display_info. Avoid changing the
2038 mouse pointer shape when show_mouse_face has already done it, or
2039 there is no need. Handle mouse-face and help-echo in strings.
2040 (glyph_rect): New function.
2041 (w32_mouse_position): Use it to raise the threshold for mouse
2042 movement event generation.
2043 (w32_initialize_display_info): Initialize the x_display_info's
2044 mouse_face_overlay.
2045 (w32_set_vertical_scroll_bar): Don't clear a zero height
2046 or width area.
2047 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
2048 a widget to zero height.
2049
2050 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
2051 Protect unibyte strings created by replacing their multibyte
2052 equivalents in menu_items.
2053 (w32_menu_show): Don't overwrite an item's name with its key
2054 description in case the description is a multibyte string.
2055 (single_submenu): Some cleanup.
2056
2057 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
2058 (postprocess_image): New function.
2059 (lookup_image): Call it for all image types except PostScript.
2060 (x_kill_gs_process): Call postprocess_image.
2061 (tiff_error_handler, tiff_warning_handler): New functions.
2062 (tiff_load): Install them as handlers.
2063 (x_kill_gs_process): Recognize if someone has cleared the image
2064 cache under us.
2065 (valid_image_p): Protect better against invalid image
2066 specifications. Previous code could signal an error.
2067 (Fx_hide_tip, Fshow_tip): Doc fix.
2068 (Fv_max_tooltip_size): New variable.
2069 (syns_of_xfns): DEFVAR_LISP it.
2070 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
2071 window buffer to *tip* right after creating the frame. Set frame's
2072 window_width. Use a maximum tooltip size specified by
2073 Vx_max_tooltip_size, if that has valid contents.
2074 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
2075 Make sure the tooltip is completely visible.
2076 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
2077 (Fx_create_frame): Adjust the frame's height for presence
2078 of the tool bar before calling x_figure_window_size.
2079 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
2080 when the window gets smaller.
2081 (x_set_foreground_color): Set frame's cursor_pixel.
2082 (x_set_foreground_color, x_set_background_color): Cleaned up.
2083 (x_set_font): Handle case of x_new_fontset returning the same name
2084 as before, although there was a change in fontsets.
2085
2086 2001-10-21 Miles Bader <miles@gnu.org>
2087
2088 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
2089 (Flogxor): Add usage: string to doc string.
2090 * charset.c (Fstring): Likewise.
2091 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
2092 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
2093
2094 2001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2095
2096 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
2097
2098 * alloc.c: Reindent DEFUNs with doc: keywords.
2099
2100 * abbrev.c (Finsert_abbrev_table_description): Reindent.
2101
2102 * frame.c: Change doc-string comments to `new style' [w/`doc:'
2103 keyword].
2104
2105 2001-10-20 Gerd Moellmann <gerd@gnu.org>
2106
2107 * (Version 21.1 released.)
2108
2109 2001-10-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2110
2111 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
2112
2113 * xdisp.c (invisible_text_between_p): Put prototype inside #if
2114 0 because unused.
2115
2116 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
2117 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
2118 Change doc-string comments to `new style' [w/`doc:' keyword].
2119
2120 2001-10-20 Miles Bader <miles@gnu.org>
2121
2122 The following changes remove the glyph_row `inverse_p' field,
2123 which is never set anymore, due to other changes:
2124
2125 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
2126 (reassert_line_highlight, change_line_highlight): Declarations removed.
2127 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
2128 (line_hash_code, row_equal_p, fake_current_matrices)
2129 (build_frame_matrix_from_leaf_window, update_frame_line)
2130 (update_frame_line, update_frame_line, update_frame_line):
2131 Don't use `inverse_p' field.
2132 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
2133 change_line_highlight_hook.
2134 (XTreassert_line_highlight, x_change_line_highlight):
2135 Functions removed.
2136 (x_fix_overlapping_area, x_write_glyphs, expose_area)
2137 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
2138 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
2139 `inverse_p' field.
2140 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
2141 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
2142 (w32_reassert_line_highlight, x_change_line_highlight):
2143 Functions removed.
2144 * w32console.c (reassert_line_highlight, change_line_highlight):
2145 Functions removed.
2146 (initialize_w32_display): Don't set reassert_line_highlight_hook
2147 or change_line_highlight_hook.
2148 (hl_mode): Function removed.
2149 (reset_terminal_modes, set_terminal_modes, update_begin)
2150 (update_end, w32_face_attributes, initialize_w32_display):
2151 (clear_frame, ins_del_lines): Don't call it.
2152 * termhooks.h (reassert_line_highlight_hook)
2153 (change_line_highlight_hook): Declarations removed.
2154 * term.c (reassert_line_highlight_hook)
2155 (change_line_highlight_hook): Variables removed.
2156 (reassert_line_highlight, change_line_highlight): Functions removed.
2157 * msdos.c (IT_reassert_line_highlight)
2158 (IT_change_line_highlight): Functions removed.
2159 (internal_terminal_init): Don't set reassert_line_highlight_hook
2160 or change_line_highlight_hook.
2161 (highlight): Variable removed.
2162 (IT_set_face, IT_update_begin, IT_update_end)
2163 (IT_set_terminal_modes): Don't set or use it.
2164
2165 The following changes remove inverse-video support for terminals
2166 that use a `magic cookie' standout mode. Due to changes in the
2167 way mode-lines are displayed, such support no longer works
2168 anyway, and it's probable that almost no one uses such terminals
2169 anymore:
2170
2171 * term.c (standout_requested): Variable removed.
2172 (update_end, highlight_if_desired): Don't use it.
2173 (chars_wasted, copybuf): Variables removed.
2174 (write_standout_marker): Function removed.
2175 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
2176 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
2177 Don't use `chars_wasted' or `copybuf'.
2178 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
2179 Set `costs_set' to true.
2180 (cursor_to, clear_end_of_line): Test `costs_set' instead of
2181 `chars_wasted'.
2182 (clear_end_of_line): Function removed.
2183 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
2184 (clear_to_end): Call `clear_end_of_line' instead of
2185 `clear_end_of_line_raw'.
2186 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
2187 (term_init): Don't set them.
2188 Turn off any standout/underline modes that require magic cookies.
2189 (ins_del_lines, highlight_if_desired, background_highlight)
2190 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
2191 Remove special processing for magic-cookie standout modes.
2192 (turn_off_face, turn_on_face): Remove special processing for
2193 underline magic-cookie glitch.
2194
2195 2001-10-19 Richard M. Stallman <rms@gnu.org>
2196
2197 * eval.c (syms_of_eval): Doc fixes.
2198
2199 2001-10-19 Gerd Moellmann <gerd@gnu.org>
2200
2201 * xdisp.c (redisplay_internal): Don't clear echo area if the
2202 mini-window is selected.
2203
2204 2001-10-19 Miles Bader <miles@gnu.org>
2205
2206 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
2207 doesn't take precedence if the affected property's value is nil.
2208
2209 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
2210
2211 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
2212 with fields and suggest using `forward-line' to avoid them.
2213 * editfns.c (Fline_beginning_position, Fline_end_position):
2214 Clarify documentation.
2215
2216 2001-10-18 Stefan Monnier <monnier@cs.yale.edu>
2217
2218 * keymap.c (current_minor_maps): `override' only shadows its
2219 correspondent in minor-mode-map-alist, not the whole tail.
2220
2221 2001-10-18 Andrew Innes <andrewi@gnu.org>
2222
2223 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
2224 optimization. The fontp->encoding array was not being initialized
2225 correctly when compiled with optimizations by MSVC.
2226
2227 2001-10-18 Gerd Moellmann <gerd@gnu.org>
2228
2229 * xdisp.c (display_line): Indicate empty lines in active mini-window.
2230
2231 2001-10-17 Andrew Innes <andrewi@gnu.org>
2232
2233 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
2234
2235 * w32fns.c (w32_load_system_font): Cache codepage for font, in
2236 font_info.charset field.
2237
2238 * w32term.c (w32_encode_char): Get cached codepage from font_info,
2239 rather than working it out by calling w32_codepage_for_font for
2240 every glyph.
2241
2242 2001-10-17 Andrew Innes <andrewi@gnu.org>
2243
2244 * w32term.c (w32_read_socket): Determine clipping rectangle for
2245 the entire frame, including areas covered by scrollbars and the
2246 menubar. This avoids internal arguments about whether a frame is
2247 fully obscured or not.
2248
2249 2001-10-17 Gerd Moellmann <gerd@gnu.org>
2250
2251 * xdisp.c (try_window_id): Undo last change. Give up if
2252 window ends in strings.
2253
2254 * xdisp.c (try_window_id): Don't display lines after the window
2255 end if the rest of the window after the window end was already blank.
2256
2257 * xdisp.c (try_window_id): Remove code that was only there
2258 for the release of 21.1.
2259
2260 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
2261
2262 2001-10-17 Miles Bader <miles@gnu.org>
2263
2264 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
2265 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
2266 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
2267 Change doc-string comments to `new style' [w/`doc:' keyword].
2268 (DOC_STRINGS_IN_COMMENTS): Macro removed.
2269 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
2270 out make-docfile.
2271
2272 2001-10-16 Miles Bader <miles@gnu.org>
2273
2274 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
2275
2276 2001-10-16 Gerd Moellmann <gerd@gnu.org>
2277
2278 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
2279 *scratch*.
2280
2281 2001-10-16 Ken Raeburn <raeburn@gnu.org>
2282
2283 Avoid the assumption that car and cdr slots of cons cells are
2284 addressable lvalues; this allows for easier experimentation with
2285 other lisp implementations that may not permit such accesses for
2286 various reasons. Not quite complete -- buffer.c still needs some
2287 work, and w32/mac files need rechecking -- so compile-time
2288 enforcement is left disabled for now.
2289
2290 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
2291 gcc with a union-based Lisp object rep. Redefine as no-op for now.
2292 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
2293 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
2294 (XSETCAR, XSETCDR): New macros.
2295 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
2296 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
2297 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
2298 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
2299 XSETCDR.
2300 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
2301 * buffer.c (record_buffer, Fbury_buffer)
2302 (swap_out_buffer_local_variables, recenter_overlay_lists)
2303 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
2304 fields of a cons cell respectively.
2305 * callint.c (quotify_args, Fcall_interactively): Likewise.
2306 * ccl.c (Fregister_code_conversion_map): Likewise.
2307 * coding.c (detect_coding_system): Likewise.
2308 * composite.c (get_composition_id, make_composition_value_copy):
2309 Likewise.
2310 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
2311 (swap_in_symval_forwarding, set_internal, Fset_default)
2312 (Fmake_variable_buffer_local, Fmake_local_variable)
2313 (Fmake_variable_frame_local): Likewise.
2314 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
2315 * keymap.c (Fset_keymap_parent, store_in_keymap)
2316 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
2317 * minibuf.c (get_minibuffer): Likewise.
2318 * search.c (Fmatch_data): Likewise.
2319 * textprop.c (extend_property_ranges): Likewise.
2320 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
2321 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
2322 Likewise.
2323 * w32term.c (x_delete_display): Likewise.
2324 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
2325 Likewise.
2326 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
2327 * doc.c (store_function_docstring): Use XSETCARFASTINT.
2328 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
2329 (Fread_file_name): Use XSETCAR.
2330 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
2331 CHECK_NUMBER_CDR.
2332 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
2333 * frame.c (Fmake_terminal_frame): Use XSETCDR.
2334 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
2335 CHECK_NUMBER_CDR.
2336 * keyboard.c (read_char): Alter list traversal to avoid taking the
2337 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
2338 (parse_menu_item): Use XSETCAR and XSETCDR.
2339 (reach_char_x_menu_prompt): Use XSETCAR.
2340 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
2341 (Fcommand_execute): Use XSETCDR.
2342 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
2343 (openp): Change list traversal to avoid using XCAR as lvalue.
2344 (read_list): Use XSETCDR.
2345 * process.c (wait_reading_process_input): Change wait_for_cell
2346 handling to avoid taking addresses of cons cell slots.
2347 * xselect.c (x_own_selection, x_handle_selection_clear)
2348 (x_clear_frame_selections): Use XSETCDR.
2349 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
2350 (x_handle_property_notify, x_get_foreign_selection)
2351 (x_handle_selection_notify): Use XSETCAR.
2352
2353 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2354
2355 * buffer.c: Put doc strings in comments.
2356
2357 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
2358
2359 2001-10-15 Sam Steingold <sds@gnu.org>
2360
2361 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
2362
2363 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2364
2365 * process.c (process-inherit-coding-system-flag)
2366 (get-buffer-process): Do not confuse make-docfile with doc strings
2367 in comment.
2368
2369 * editfns.c (Fchar_to_string): Make doc string consistent with
2370 arguments. Put doc strings in comments.
2371
2372 * abbrev.c, minibuf.c: Put doc strings in comments.
2373
2374 2001-10-15 Gerd Moellmann <gerd@gnu.org>
2375
2376 * window.c (window_loop): Don't check for Fother_buffer returning nil.
2377
2378 * window.c (select_window_1): Unfreeze window start. Remove a
2379 doubled test for WINDOW being live.
2380
2381 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2382
2383 * fns.c (Fmapconcat): Fix typo in a doc string.
2384
2385 * dispnew.c (Fsleep_for): Fix typo in a doc string.
2386
2387 2001-10-15 Gerd Moellmann <gerd@gnu.org>
2388
2389 * xterm.c (x_draw_glyph_string): Restore clipping after
2390 drawing box.
2391
2392 2001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2393
2394 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
2395
2396 2001-10-14 Stefan Monnier <monnier@cs.yale.edu>
2397
2398 * indent.c (skip_invisible): Use new retval of
2399 TEXT_PROP_MEANS_INVISIBLE.
2400
2401 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
2402 If a parent is reached and noinherit is set, exit immediately.
2403 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
2404
2405 * s/ms-w32.h (EXEC_SUFFIXES):
2406 * s/msdos.h (EXEC_SUFFIXES):
2407 * process.h (EXEC_SUFFIXES): Remove.
2408
2409 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
2410 (decode_suffixes): Remove.
2411
2412 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
2413 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
2414 (invisible_ellipsis_p): Remove.
2415
2416 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
2417 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
2418 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
2419 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
2420 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
2421
2422 2001-10-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2423
2424 * lisp.h (Ftop_level): Add prototype.
2425
2426 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
2427 (XTread_socket): Improve style of comments to follow other
2428 comments.
2429
2430 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
2431 is already prototyped in included lisp.h).
2432
2433 * frame.c (Fset_mouse_position): Improve style of comment to
2434 follow other comments.
2435 (Fset_mouse_pixel_position): Improve style of comment to follow
2436 other comments.
2437 (Fmake_frame_visible): Doc fix and typo in comment.
2438 (Fmake_frame_invisible): Doc fix and typo in comment.
2439 (Ficonify_frame): Fix typo in comment.
2440
2441 2001-10-14 Gerd Moellmann <gerd@gnu.org>
2442
2443 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
2444 * term.c, alloc.c: Put doc strings in comments.
2445
2446 2001-10-13 Gerd Moellmann <gerd@gnu.org>
2447
2448 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
2449 Provide definitions for doc strings in comments.
2450
2451 * fns.c: Put doc strings in comments.
2452
2453 2001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
2454
2455 * dired.c (file_name_completion): Ignore a candidate directory if
2456 it matches an element in completion-ignored-extensions that ends
2457 in a slash.
2458 (syms_of_dired) <completion-ignored-extensions>: Mention the above
2459 feature in the doc string.
2460 (Ffile_name_completion): Ditto.
2461
2462 2001-10-12 Stefan Monnier <monnier@cs.yale.edu>
2463
2464 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
2465
2466 * xfns.c (syms_of_xfns): Update calls to Fprovide.
2467
2468 * lisp.h (Fprovide): Update prototype.
2469 (Ffeaturep, invisible_p): Remove.
2470
2471 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
2472 (DOLIST, LOOP_PROPVAL): New macros.
2473 (invisible_p, invisible_ellipsis_p): Use them.
2474 (invisible_noellipsis_p): New function.
2475 (syms_of_xdisp): Use empty_string.
2476
2477 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
2478
2479 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
2480 (syms_of_lread) <Vafter_load_alist>: Update docstring.
2481
2482 * print.c (Fwith_output_to_temp_buffer): Align with
2483 internal_with_output_to_temp_buffer.
2484 (print_preprocess): Use traverse_intervals_noorder.
2485 (print_object): Update call to traverse_intervals.
2486
2487 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
2488 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
2489
2490 * intervals.c (traverse_intervals_noorder): New function.
2491 (search_for_interval, count_intervals): Use it.
2492 (traverse_intervals): Use less stack space and drop `depth' arg.
2493
2494 * fns.c (Ffeaturep): Add new `subfeature' arg.
2495 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
2496 (Qsubfeatures): New var.
2497 (syms_of_fns): Initialize it.
2498
2499 * keymap.c (Fkey_description): Use empty_string.
2500 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
2501 (syms_of_keymap): Setup inheritance between maps.
2502 Don't export Sdescribe_bindings_internal any more.
2503
2504 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
2505
2506 2001-10-12 Gerd Moellmann <gerd@gnu.org>
2507
2508 * xterm.c (notice_overwritten_cursor): Renamed from
2509 note_overwritten_text_cursor. Rewritten to take glyph widths into
2510 account.
2511
2512 2001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
2513
2514 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
2515 multi-line strings without a trailing "\n\".
2516
2517 2001-10-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2518
2519 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
2520 defined.
2521
2522 2001-10-11 Stefan Monnier <monnier@cs.yale.edu>
2523
2524 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
2525
2526 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
2527 * w32proc.c (sys_spawnve):
2528 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
2529 * w32.c (check_windows_init_file):
2530 * sound.c (Fplay_sound):
2531 * emacs.c (init_cmdargs):
2532 * process.c (Fstart_process): Update calls to openp.
2533
2534 * callproc.c (Vexec_suffixes): New var.
2535 (Fcall_process): Update call to openp.
2536 (decode_suffixes): New function.
2537 (syms_of_callproc): Init exec-suffixes.
2538
2539 * lread.c (Vload_suffixes, default_suffixes): New vars.
2540 (openp): Take a lisp list of suffixes.
2541 Check for file-name-handlers even if the file was absolute already.
2542 (syms_of_lread): Declare load-suffixes.
2543 (Fload): Fix up call to openp.
2544 Don't bother checking for file-name-handler at the very beginning.
2545
2546 * keymap.h (Fcopy_keymap): Don't export.
2547
2548 * lisp.h (empty_string): Declare.
2549 (Vload_suffixes, Vexec_suffixes): Declare.
2550 (openp): Update prototype.
2551
2552 * emacs.c (empty_string): New var.
2553 (syms_of_emacs): Initialize it.
2554
2555 * search.c (wordify): Use it.
2556
2557 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
2558 selected window if it's not displayed there. Handle the case
2559 when the window is dedicated.
2560 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
2561
2562 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
2563
2564 * syntax.h (struct gl_state_s): Change the meaning of b_property.
2565 Remove left_ok and right_ok.
2566 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
2567 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
2568 new meaning of b_property.
2569
2570 * syntax.c (update_syntax_table): Simplify.
2571 (Fforward_comment): Don't skip quoted chars when going backward.
2572
2573 2001-10-11 Gerd Moellmann <gerd@gnu.org>
2574
2575 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
2576 in case I is of some unsigned type, in which case
2577 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
2578 comparison becomes bogus.
2579
2580 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
2581 (Fuser_full_name): Fix bug treating a float as a fixnum.
2582
2583 * data.c (Fstring_to_number): Use make_fixnum_or_float.
2584
2585 * lisp.h (make_fixnum_or_float): New macro.
2586
2587 * lisp.h (circular_list_error): Add prototype.
2588
2589 * data.c (Qcircular_list): New variable.
2590 (circular_list_error): New function.
2591 (syms_of_data): Initialize it Qcircular_list.
2592
2593 2001-10-10 Stefan Monnier <monnier@cs.yale.edu>
2594
2595 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c,
2596 casefiddle.c, buffer.c: Include keymap.h.
2597
2598 2001-10-10 Gerd Moellmann <gerd@gnu.org>
2599
2600 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
2601 options. From Dave Love <d.love@dl.ac.uk>.
2602
2603 2001-10-09 Gerd Moellmann <gerd@gnu.org>
2604
2605 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
2606 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
2607
2608 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
2609 unsigned char.
2610 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
2611
2612 2001-10-08 Andrew Innes <andrewi@gnu.org>
2613
2614 * lisp.h [max]: Undef min and max before redefining them.
2615
2616 * w32gui.h: Do not undef min and max.
2617
2618 * w32heap.h: Do not undef min and max.
2619
2620 * s/ms-w32.h: Do not undef min and max.
2621
2622 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
2623
2624 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
2625
2626 2001-10-08 Sam Steingold <sds@gnu.org>
2627
2628 * keymap.c (current-active-maps): Quote newlines (compilation error).
2629
2630 2001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
2631
2632 * Makefile.in (lisp, shortlisp): Replace bindings.el with
2633 bindings.elc, since otherwise doc strings in bindings.el get wrong
2634 offsets in etc/DOC.
2635
2636 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
2637
2638 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
2639
2640 * keyboard.h (map_prompt): Remove.
2641
2642 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
2643 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
2644
2645 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
2646
2647 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
2648
2649 * keyboard.c (map_prompt): Remove.
2650 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
2651 Use Fkeymap_prompt.
2652
2653 * keymap.h: New file. Extracted from lisp.h.
2654
2655 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
2656 (accessible_keymaps_1): New function.
2657 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
2658 (Fwhere_is_internal): Use Fcurrent_active_maps.
2659 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
2660 Insert in current buffer rather than standard-output.
2661 Don't call `help-mode'. Export to elisp.
2662 (describe_buffer_bindings): New wrapper.
2663 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
2664 and Sdescribe_buffer_bindings.
2665
2666 2001-10-08 Gerd Moellmann <gerd@gnu.org>
2667
2668 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
2669 Remove code setting signal handler.
2670
2671 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
2672 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
2673
2674 2001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2675
2676 * keyboard.c: Don't define min/max.
2677
2678 2001-10-08 Gerd Moellmann <gerd@gnu.org>
2679
2680 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
2681 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
2682 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
2683 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
2684 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
2685 Don't define min/max.
2686
2687 * lisp.h (min, max): New macros.
2688
2689 * puresize.h (BASE_PURESIZE): Increase to 725000.
2690
2691 2001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2692
2693 * xfaces.c (free_frame_menubar): Add prototype.
2694
2695 * lisp.h (init_window): Add prototype.
2696
2697 * editfns.c: Include ctype.h.
2698
2699 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
2700 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
2701 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
2702 variable `sb'.
2703
2704 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
2705 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
2706 `popup_activated_flag' and `title'.
2707
2708 * doc.c (Fdocumentation_property): Fix typo in a doc string.
2709
2710 * emacs.c (main): Remove extra `;'.
2711
2712 * atimer.h (struct atimer): Fix typos in a comment.
2713
2714 * atimer.c: Fix typo.
2715
2716 * Makefile.in: Fix typo.
2717
2718 * README: Remove obsolete part mentioning removed VMS file.
2719
2720 2001-10-07 Miles Bader <miles@gnu.org>
2721
2722 * Makefile.in (lisp, shortlisp): Add `button.elc'.
2723
2724 2001-10-07 Ken Raeburn <raeburn@gnu.org>
2725
2726 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
2727 Lisp_Object.
2728
2729 * lisp.h (Ffield_end): Declare.
2730
2731 2001-10-07 Gerd Moellmann <gerd@gnu.org>
2732
2733 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
2734
2735 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
2736
2737 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
2738
2739 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
2740
2741 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
2742 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
2743
2744 * alloc.c (inhibit_garbage_collection): Simplify.
2745 (Fmemory_use_counts): Ditto.
2746
2747 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
2748 (syms_of_data): DEFVAR_INT most-positive-fixnum and
2749 most-negative-fixnum.
2750
2751 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
2752 (FIXNUM_OVERFLOW_P): New macros.
2753
2754 2001-10-06 Miles Bader <miles@gnu.org>
2755
2756 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
2757 scroll_bar_bottom_shadow_pixel fields.
2758 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
2759 for the shadows, and tell the toolkit about them if we succeed.
2760 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
2761 Free scroll-bar shadow colors.
2762 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
2763 Free scroll-bar shadow colors when the background color changes.
2764 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
2765 Initialize scroll-bar shadow-color fields.
2766
2767 2001-10-05 Gerd Moellmann <gerd@gnu.org>
2768
2769 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
2770
2771 2001-10-05 Miles Bader <miles@gnu.org>
2772
2773 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
2774 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
2775 New functions (were in simple.el).
2776 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
2777 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
2778 (syms_of_minibuf): Initialize them.
2779
2780 2001-10-05 Gerd Moellmann <gerd@gnu.org>
2781
2782 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
2783 (tiff_load): Install them as error and warning handler.
2784
2785 2001-10-04 Andrew Innes <andrewi@gnu.org>
2786
2787 * w32fns.c (x_to_w32_color): Fix argument to alloca.
2788 (w32_load_system_font): Don't believe what GetLanguageFontInfo
2789 says; query codepage info directly to determine if font is double byte.
2790 (x_to_w32_charset): Handle private format for unknown charsets.
2791 Handle wildcards in charset spec, by ignoring them.
2792 (w32_codepage_for_font): Fix argument to alloca. Don't remove
2793 "*-" prefix from charset.
2794 (x_to_w32_font): Enlarge remainder array for safety. Specifically
2795 handle the truncated font spec form constructed by font_list_1, so
2796 that we correctly identify the charset fields. Don't remove "*-"
2797 prefix from charset.
2798 (w32_list_synthesized_fonts): Fix argument to alloca.
2799
2800 2001-10-04 Stefan Monnier <monnier@cs.yale.edu>
2801
2802 * window.h (MINI_WINDOW_P): Use NILP.
2803
2804 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
2805
2806 * termhooks.h (struct input_event): Use proper type for `kind'.
2807
2808 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2809
2810 This handles unknown keysyms better than before. For example,
2811 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
2812 Emacs formerly completely ignored F5. With the change, it derives
2813 a key symbol from the name of the X keysym, `ccaron' in this case.
2814 Reported by Martin Buchholz.
2815
2816 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
2817 unknown keysyms.
2818
2819 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
2820 that EVENT->code isn't a function key, use the keysym's name.
2821
2822 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2823
2824 FOREACH is a macro that should make it easier to loop over Lisp
2825 lists with checks for cycles and proper lists.
2826
2827 * lisp.h (LIST_END_P, FOREACH): New macros.
2828
2829 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2830
2831 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
2832 called for a lost connection. Prevent dumping core in this case.
2833 Instead print the X error, and exit. On user request.
2834
2835 * xterm.c (error_msg): New variable.
2836 (x_fatal_error_signal): New function.
2837 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
2838 as fatal_error_signal_hook around the call to XtCloseDisplay.
2839
2840 * emacs.c (fatal_error_signal_hook): New variable.
2841 (fatal_error_signal): Call that function.
2842
2843 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2844
2845 With this, Emacs prints how much pure storage it will
2846 approximately need in case pure storage overflows while dumping.
2847
2848 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
2849 New variables.
2850 (init_alloc_once): Initialize new variables.
2851 (PURE_POINTER_P): Use new variables.
2852 (pure_alloc): If pure storage overflows, allocate from the heap.
2853 (check_pure_size): New function.
2854 (Fgarbage_collect): Don't GC if pure storage has overflowed.
2855
2856 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
2857 (check_pure_size): Add prototype.
2858
2859 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
2860
2861 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2862
2863 This adds a post-gc-hook that's run with GC inhibited.
2864 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
2865
2866 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
2867 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
2868 (Fgarbage_collect): Run post-gc-hook.
2869
2870 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2871
2872 This adds `defvaralias' and `indirect-variable'. Changes not
2873 directly related to this feature are there to gain the same
2874 performance again as before variable aliases.
2875
2876 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
2877 code to get and set symbol values, to take defvaralias into account.
2878
2879 (Note: the new `constant' bit-flag in symbols would make it
2880 possible to define arbitrary read-only variables, e.g. with
2881 `defconst'.)
2882
2883 Documentation is in lispref/variables.texi. Added to NEWS.
2884
2885 * lisp.h (enum symbol_interned): New enumeration.
2886 (struct Lisp_Symbol): Remove member `obarray', add
2887 `indirect_variable', `constant', and `interned'.
2888 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
2889 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
2890 (indirect_variable): Add prototype.
2891
2892 * print.c (print_preprocess, print_object): Test internedness of
2893 symbols differently.
2894
2895 * lread.c (Fintern, Funintern): Set symbol's interned and constant
2896 bit-fields.
2897 (init_obarray): Likewise for t and nil.
2898
2899 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
2900 (Fdefvaralias): New function.
2901 (specbind): Simplify the test if symbol is a constant.
2902 (syms_of_eval): Defsubr Fdefvaralias.
2903
2904 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
2905 (Qcyclic_variable_indirection): New variable.
2906 (Fkeywordp): Check for internedness differently.
2907 (Fmakunbound): Simplify the test if symbol is a constant.
2908 (indirect_variable, Findirect_variable): New functions.
2909 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
2910 aliased symbol.
2911 (let_shadows_buffer_binding_p): Check for variable aliases.
2912 (set_internal): Simplify the test if SYMBOL is a constant.
2913 If SYMBOL has a buffer-local value and is an alias, use the aliased
2914 symbol instead.
2915 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
2916 Sindirect_variable.
2917
2918 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
2919 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
2920 set directly.
2921
2922 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
2923
2924 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
2925 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
2926 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
2927
2928 2001-10-04 Gerd Moellmann <gerd@gnu.org>
2929
2930 * Branch for 21.1.
2931
2932 2001-10-03 Miles Bader <miles@gnu.org>
2933
2934 * callproc.c (syms_of_callproc): Explicitly state in the
2935 documentation for `process-environment' that earlier entries take
2936 precedence over later ones.
2937
2938 2001-10-02 Miles Bader <miles@gnu.org>
2939
2940 * textprop.c (Fnext_char_property_change)
2941 (Fprevious_char_property_change): Remove reference to non-existant
2942 argument OBJECT from doc-string.
2943
2944 2001-10-01 Gerd Moellmann <gerd@gnu.org>
2945
2946 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
2947 (try_window_id): Skip back over lines ending in a newline from a
2948 string.
2949
2950 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
2951 New bit flag
2952
2953 2001-10-01 Richard M. Stallman <rms@gnu.org>
2954
2955 * search.c (Freplace_match): Doc fix.
2956
2957 2001-09-28 Andrew Innes <andrewi@gnu.org>
2958
2959 * w32menu.c (set_frame_menubar): Take into account that
2960 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
2961 <raeburn@gnu.org>.
2962
2963 2001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
2964
2965 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
2966
2967 2001-09-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2968
2969 * s/gnu-linux.h: Fix a typo in comment.
2970
2971 2001-09-28 Andreas Schwab <schwab@suse.de>
2972
2973 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
2974 nocombreloc, in case -z combreloc is the default.
2975
2976 2001-09-28 Gerd Moellmann <gerd@gnu.org>
2977
2978 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
2979 really going on here.
2980
2981 2001-09-27 Stefan Monnier <monnier@cs.yale.edu>
2982
2983 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
2984
2985 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
2986
2987 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
2988 utf-8, menu-bar, and latin-N.
2989 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
2990 unconditionally now.
2991 (lisp): Add latin-N, since they are preloaded.
2992
2993 2001-09-27 Gerd Moellmann <gerd@gnu.org>
2994
2995 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
2996 to the left. Some cleanup.
2997
2998 * xdisp.c (display_mode_element): One more case where a string's
2999 multibyteness should be used for display.
3000
3001 2001-09-26 Gerd Moellmann <gerd@gnu.org>
3002
3003 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
3004 reading at EOF.
3005
3006 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
3007 of the only temporarily set echoing flag for deciding when
3008 the cancel echoing.
3009
3010 * keyboard.c (echo_kboard): Make externally visible.
3011
3012 * lisp.h (echo_kboard): Declare extern.
3013
3014 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
3015 fonts_changed_p if we need larger matrices due to vscrolling.
3016 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
3017 this round of redisplay if make_cursor_line_fully_visible fails.
3018 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
3019 (try_cursor_movement, try_scrolling): Use them instead of integers.
3020
3021 * dispextern.h (required_matrix_width, required_matrix_height):
3022 Add prototypes.
3023
3024 * dispnew.c (required_matrix_width, required_matrix_height):
3025 New functions.
3026 (allocate_matrices_for_window_redisplay)
3027 (allocate_matrices_for_frame_redisplay: Use them.
3028 Remove parameters CH_DIM.
3029
3030 * xdisp.c (display_mode_lines): Temporarily set selected_frame
3031 and selected_window to the frame of the window whose mode-lines
3032 are displayed, and to the window itself.
3033 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
3034 here.
3035
3036 2001-09-25 Gerd Moellmann <gerd@gnu.org>
3037
3038 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
3039 the image cache under us.
3040
3041 * xdisp.c (display_mode_element): If the mode element is a symbol
3042 with a string value, use that string's multibyteness for displaying.
3043
3044 * keyboard.c (read_char): Don't clear a message for a switch-frame
3045 event. From Stefan Monnier <monnier@cs.yale.edu>.
3046
3047 * xterm.c (fast_find_position) [0]: Add a presumably more correct
3048 version for after 21.1.
3049
3050 * xdisp.c (row_containing_pos): Make externally visible.
3051
3052 * dispextern.h (row_containing_pos): Add prototype.
3053
3054 * process.c (send_process): Disable composition if from_byte < 0.
3055 From Kenichi Handa <handa@etl.go.jp>.
3056
3057 2001-09-24 Gerd Moellmann <gerd@gnu.org>
3058
3059 * xterm.c (refreshicon): Function removed.
3060
3061 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
3062
3063 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
3064
3065 * xterm.c (toplevel): Remove includes in #if 0.
3066
3067 * process.c (sigchld_handler) [LINUX]: Don't return from
3068 the signal handler at the end of the loop.
3069
3070 2001-09-21 Gerd Moellmann <gerd@gnu.org>
3071
3072 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
3073 Terminate only if kill returns -1, and errno is ESRCH.
3074
3075 2001-09-21 Markus Rost <rost@math.ohio-state.edu>
3076
3077 * Makefile.in (shortlisp): Add ../lisp/env.elc.
3078
3079 2001-09-20 Gerd Moellmann <gerd@gnu.org>
3080
3081 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
3082 since this function can be called during GC.
3083
3084 * callproc.c (Fcall_process): Handle errors from pipe(2).
3085 (child_setup): Delete code in #ifdef vipc.
3086
3087 2001-09-19 Gerd Moellmann <gerd@gnu.org>
3088
3089 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
3090 (display_mode_element): Display the string from decode_mode_spec
3091 depending on its multibyteness.
3092
3093 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
3094
3095 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
3096
3097 2001-09-18 Gerd Moellmann <gerd@gnu.org>
3098
3099 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
3100 recursive_edit_unwind.
3101 (recursive_edit_unwind): Set kboard state according to
3102 SINGLE-KBOARD.
3103
3104 * buffer.c (modify_overlay): Don't do nothing if START == END;
3105 This can still be a modification, for example when an overlay has
3106 a before-string or after-string.
3107 (Fdelete_overlay): Prevent redisplay optimizations when deleting
3108 an overlay with before-string or after-string.
3109
3110 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
3111 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
3112
3113 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
3114 first_unchanged_at_end_row is in front of
3115 last_unchanged_at_beg_row. This code should be removed after the
3116 release of 21.1.
3117
3118 2001-09-17 Gerd Moellmann <gerd@gnu.org>
3119
3120 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
3121 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
3122
3123 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
3124 versions >= 2.95.
3125
3126 2001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
3127
3128 * dired.c (Ffile_attributes): Doc fix.
3129
3130 2001-09-14 Gerd Moellmann <gerd@gnu.org>
3131
3132 * fileio.c (Ffile_symlink_p): Fix last change.
3133
3134 * filelock.c (current_lock_owner): Fix last change.
3135
3136 2001-09-13 Gerd Moellmann <gerd@gnu.org>
3137
3138 * filelock.c (current_lock_owner): If readlink returns ERANGE,
3139 take that to mean that the buffer is too small.
3140
3141 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
3142 that to mean that the buffer is too small.
3143
3144 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
3145 current buffer's multibyteness when discarding the iterator's
3146 stack.
3147
3148 * xfns.c (Fx_window_property): Handle case that property gets
3149 deleted between the two calls to XGetWindowProperty.
3150
3151 2001-09-11 Gerd Moellmann <gerd@gnu.org>
3152
3153 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
3154
3155 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
3156 in addition to read-only.
3157
3158 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
3159 to t in addition to read-only.
3160
3161 * lisp.h (Qinhibit_modification_hooks): Declare.
3162
3163 * insdel.c (Qinhibit_modification_hooks): New variable.
3164 (syms_of_insdel): Initialize and staticpro it.
3165
3166 * textprop.c (verify_interval_modification): Don't run
3167 modification-hooks if inhibit_modification_hooks.
3168
3169 * dispnew.c (set_window_cursor_after_update): Fix code
3170 finding glyph row containing cursor when cursor_in_echo_area
3171 is >= 0.
3172
3173 * xdisp.c (init_from_display_pos): Put some code in #if 0.
3174 (add_to_log): Use bcopy instead of strcpy.
3175 (init_from_display_pos): Use an explicit loop over bytes in
3176 overlay strings instead of calling index.
3177
3178 2001-09-10 Gerd Moellmann <gerd@gnu.org>
3179
3180 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
3181
3182 * dispnew.c (direct_output_for_insert): Don't change IT's
3183 stop_charpos to something in front of its current position.
3184
3185 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
3186 `format'.
3187
3188 2001-09-10 Richard M. Stallman <rms@gnu.org>
3189
3190 * frame.c (Fmouse_position): Doc fix.
3191
3192 2001-09-07 Gerd Moellmann <gerd@gnu.org>
3193
3194 * xdisp.c (init_from_display_pos): Don't compare the result
3195 of calling index with NULL.
3196
3197 2001-09-06 Gerd Moellmann <gerd@gnu.org>
3198
3199 * xfns.c (x_set_background_color): Don't change the colors
3200 of the X window of scroll bar widgets.
3201
3202 2001-09-05 Andrew Innes <andrewi@gnu.org>
3203
3204 * w32fns.c (w32_createwindow): Undo last change.
3205
3206 2001-09-05 Gerd Moellmann <gerd@gnu.org>
3207
3208 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
3209
3210 * xdisp.c (string_buffer_position): Use *single_char_property*
3211 functions instead of the *single_property* functions.
3212
3213 2001-09-04 Andrew Innes <andrewi@gnu.org>
3214
3215 * w32term.c (w32_read_socket): Add more information to debugging
3216 output.
3217
3218 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
3219 from Emacs frames, so that calls to GetClipBox in w32term.c
3220 correctly report when part of a frame is visible (including
3221 scrollbars, etc). This prevents repeated redrawing of frames when
3222 only a scrollbar is visible.
3223 (w32_wnd_proc): Add more frame information to debugging output.
3224
3225 2001-09-03 Stefan Monnier <monnier@cs.yale.edu>
3226
3227 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
3228
3229 2001-09-03 Gerd Moellmann <gerd@gnu.org>
3230
3231 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
3232 help-echo for a string which doesn't have help-echo itself, use
3233 get-char-property to obtain the help-echo from the string's buffer
3234 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
3235 have mouse-face, look ``under'' the string for mouse-face from an
3236 overlay.
3237 (fast_find_position): Add parameter STOP. In the final row, stop
3238 before glyphs having STOP as object. Don't consider glyphs that
3239 are not from a buffer.
3240
3241 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
3242
3243 2001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
3244
3245 * fns.c (Fmd5): Doc fix.
3246
3247 2001-08-31 Gerd Moellmann <gerd@gnu.org>
3248
3249 * composite.c (update_compositions): Do nothing if
3250 inhibit-modification-hooks is set.
3251
3252 2001-08-30 Gerd Moellmann <gerd@gnu.org>
3253
3254 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
3255 and check_message_stack if terminating abnormally. We want
3256 glyph matrices etc. in a core dump.
3257
3258 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
3259 (syms_of_xdisp): Initialize them.
3260 (handle_single_display_prop): Don't change point, bind `object',
3261 `position', and `buffer-position' instead to the object having the
3262 `display' property, position in the object and position in the buffer.
3263
3264 * fileio.c (Finsert_file_contents): Don't change the multibyteness
3265 of the buffer if REPLACE is non-nil.
3266
3267 2001-08-29 Gerd Moellmann <gerd@gnu.org>
3268
3269 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
3270
3271 2001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
3272
3273 * w32term.c (x_set_glyph_string_background_width)
3274 (show_mouse_face): Track the last changes in xterm.c.
3275
3276 2001-08-28 Gerd Moellmann <gerd@gnu.org>
3277
3278 * xterm.c (x_set_glyph_string_background_width): Set the glyph
3279 string's background width so that multi-line mouse-face is drawn
3280 to the right edge of the window.
3281 (show_mouse_face): Set the row's mouse_face_p flag after drawing
3282 glyphs.
3283
3284 * dispnew.c (direct_output_for_insert): Set updated_area
3285 before inserting/writing glyphs.
3286
3287 * xdisp.c (display_mode_element): Use string_byte_to_char to
3288 determine character positions in strings, use chars_in_text
3289 instead of strwidth.
3290 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
3291 a matrix as parameter; this is easier to use from GDB.
3292
3293 2001-08-28 Miles Bader <miles@gnu.org>
3294
3295 * textprop.c (Fprevious_single_char_property_change)
3296 (Fnext_single_char_property_change): Doc fixes.
3297
3298 2001-08-27 Gerd Moellmann <gerd@gnu.org>
3299
3300 * fileio.c (Finsert_file_contents): Allocate, restore, and
3301 free composition data in the case of REPLACE not being nil.
3302
3303 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
3304 there exist overlay strings with newlines at POS.
3305 (text_outside_line_unchanged_p): Return 0 if changes start at
3306 START and overlays exist at START. Likewise for END.
3307 (try_window_id): Give up if init_to_row_end returns 0.
3308
3309 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
3310 unconditionally.
3311
3312 2001-08-24 Gerd Moellmann <gerd@gnu.org>
3313
3314 * keymap.c (access_keymap): Return the cdr of the binding of
3315 a generic character instead of its definition (KEY . BINDING).
3316
3317 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
3318 to 0 also in the REPLACE case.
3319
3320 2001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
3321
3322 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
3323 open to determine whether file is readable (as for DOS_NT).
3324
3325 2001-08-23 Gerd Moellmann <gerd@gnu.org>
3326
3327 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
3328 coding.type is coding_type_no_conversion or coding_type_raw_text,
3329 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
3330 non-nil instead of just setting enable_multibyte_characters in the
3331 buffer to nil.
3332
3333 2001-08-22 Gerd Moellmann <gerd@gnu.org>
3334
3335 * dispextern.h (struct face_cache): Add member
3336 menu_face_changed_p.
3337
3338 * xfaces.c (menu_face_changed_default): New variable.
3339 (menu_face_changed_count): Variable removed.
3340 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
3341 the menu_face_changed_default flag, otherwise set the FRAME's
3342 menu_face_changed_p flag if the `menu' face has been changed.
3343 Prevent calling set_font_frame_param if FRAME is t.
3344 (make_face_cache): Initialize cache's menu_face_changed_p
3345 from menu_face_changed_default.
3346 (realize_basic_faces): Look into the frame's face cache to
3347 determine if the menu appearance needs updating.
3348
3349 * keymap.c (access_keymap): Fix last change to not consider
3350 IDX when it has modifiers.
3351
3352 2001-08-21 Gerd Moellmann <gerd@gnu.org>
3353
3354 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
3355 . BINDING) exists, where GENERIC-CHAR is the generic character of
3356 the charset of IDX, return BINDING unless there exists a binding
3357 for IDX itself.
3358
3359 2001-08-16 Gerd Moellmann <gerd@gnu.org>
3360
3361 * xrdb.c (SYSV): Don't define on Solaris 2.
3362 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
3363
3364 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
3365 of the screen line, not text line, containing IT's current position.
3366
3367 2001-08-15 Gerd Moellmann <gerd@gnu.org>
3368
3369 * window.c (window_scroll_pixel_based): Don't recenter if
3370 PT is partially visible in the window.
3371
3372 * xterm.c (expose_window_tree, expose_window, expose_line):
3373 Return 1 when overwriting mouse-face.
3374 (expose_frame): If mouse-face was overwritten, redo it.
3375
3376 * xfaces.c (x_update_menu_appearance): Don't call
3377 set_frame_menubar, let the next redisplay do it.
3378
3379 2001-08-14 Andrew Innes <andrewi@gnu.org>
3380
3381 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
3382 drawing glyph string.
3383
3384 2001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
3385
3386 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
3387 running HI-UX/MPP.
3388
3389 2001-08-14 Gerd Moellmann <gerd@gnu.org>
3390
3391 * xfaces.c (x_update_menu_appearance): Save and restore value of
3392 interrupt_input_blocked.
3393
3394 2001-08-13 Gerd Moellmann <gerd@gnu.org>
3395
3396 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
3397 a line start, move back to the line start.
3398
3399 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
3400 exactly when a mini-buffer is active.
3401
3402 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
3403 in units of 1/8 character on non window-system frames.
3404 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
3405
3406 2001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
3407
3408 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
3409 a doc string.
3410
3411 2001-08-09 Gerd Moellmann <gerd@gnu.org>
3412
3413 * keyboard.c (Vpre_help_message): New variable.
3414 (syms_of_keyboard): Initialize and staticpro it.
3415 (show_help_echo): Record current message before displaying a
3416 help-echo, and restore that message when clearing the help.
3417
3418 * xfns.c (x_create_im): Remove prototype.
3419
3420 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
3421
3422 * dispnew.c (adjust_glyph_matrix): Undo last change.
3423
3424 2001-08-08 Gerd Moellmann <gerd@gnu.org>
3425
3426 * dispnew.c (adjust_glyph_matrix): In the optimization for
3427 windows whose height has changed, disable partially visible lines.
3428
3429 2001-08-07 Gerd Moellmann <gerd@gnu.org>
3430
3431 * window.c (Frecenter): If ARG < 0, and on a window system
3432 frame, count in some empty lines when we can't move -ARG lines down.
3433
3434 * xdisp.c (start_display): Don't try to determine the continuation
3435 lines width if lines are truncated. It's superfluous and leads to
3436 incorrect results if POS is not visible in the window after
3437 reseating the iterator at the previous line start.
3438
3439 2001-08-06 Gerd Moellmann <gerd@gnu.org>
3440
3441 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
3442
3443 2001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3444
3445 * alloc.c (init_stack): Remove declaration.
3446
3447 2001-08-03 Gerd Moellmann <gerd@gnu.org>
3448
3449 * keyboard.c (read_key_sequence): Check that key is an integer
3450 before comparing it with quit_char.
3451 (add_command_key): Use larger_vector.
3452 (read_char_x_menu_prompt): Instead of converting symbol and
3453 integer events into conses (EVENT . nil), use (EVENT . disabled)
3454 which cannot be confused with valid events.
3455 (read_char): When reading from Vunread_command_events, check for
3456 events of the form (EVENT . disabled) instead of
3457 (EVENT . nil).
3458
3459 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
3460 a float, determine the max height from the frame's height.
3461
3462 2001-08-02 Gerd Moellmann <gerd@gnu.org>
3463
3464 * xdisp.c (redisplay_internal): Take message_cleared_p into
3465 account only if minibuf_level == 0.
3466
3467 2001-08-01 Gerd Moellmann <gerd@gnu.org>
3468
3469 * xdisp.c (redisplay_internal): Add a check for the last
3470 displayed message.
3471
3472 * xdisp.c (message_cleared_p): New variable.
3473 (clear_message): Set message_cleared_p when clearing the current
3474 message.
3475 (redisplay_internal): Look at message_cleared_p to capture
3476 the case that the echo area should be cleared.
3477
3478 * keyboard.c (command_loop_1): Fix spelling of
3479 resize_echo_area_exactly.
3480
3481 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
3482
3483 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
3484
3485 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
3486 current matrix when the window gets smaller.
3487
3488 2001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
3489
3490 * print.c (strout): Cast the character passed to insert_char to
3491 unsigned char, to avoid sign extension when it is promoted to int.
3492
3493 2001-07-31 Gerd Moellmann <gerd@gnu.org>
3494
3495 * fileio.c (Finsert_file_contents): Don't treat a return value
3496 of 0 from emacs_read as an IO error.
3497
3498 2001-07-30 Gerd Moellmann <gerd@gnu.org>
3499
3500 * keyboard.c (abs): New macro.
3501 (double_click_fuzz): New variable.
3502 (make_lispy_event): Use it to determine what makes a double-click.
3503 (syms_of_keyboard): DEFVAR_INT it.
3504
3505 * xmenu.c (set_frame_menubar): Take into account that
3506 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
3507 <raeburn@gnu.org>.
3508
3509 2001-07-27 Gerd Moellmann <gerd@gnu.org>
3510
3511 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
3512
3513 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
3514 of row's visible height.
3515
3516 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
3517 deal with the first overlay string having an image `display' property.
3518 (try_window_reusing_current_matrix, compute_line_metrics):
3519 Fix computation of row's visible height for the case that part of the
3520 row is invisible above and part of the row is at the same time
3521 invisible below the window.
3522
3523 2001-07-26 Gerd Moellmann <gerd@gnu.org>
3524
3525 * xfns.c (x-show-tip): Doc fix.
3526
3527 * xfns.c (Vx_max_tooltip_size): New variable.
3528 (syms_of_xfns): DEFVAR_LISP it.
3529 (Fx_show_tip): Set frame's window_width to the width of the
3530 window. Use a maximum tooltip size specified by
3531 Vx_max_tooltip_size, if that has valid contents.
3532 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3533
3534 2001-07-26 Andrew Innes <andrewi@gnu.org>
3535
3536 * w32term.c (x_display_list): New variable.
3537 (w32_term_init): Set it.
3538
3539 * w32term.h (x_display_list): New extern.
3540
3541 2001-07-26 Gerd Moellmann <gerd@gnu.org>
3542
3543 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
3544 is non-nil, instead of when redisplaying_p is non-zero.
3545 See comment there.
3546 (mark_window_display_accurate_1): Add an assertion.
3547
3548 2001-07-25 Gerd Moellmann <gerd@gnu.org>
3549
3550 * dispextern.h (struct it): Increase size of ctl_chars to 16.
3551
3552 * xfns.c (Fx_file_dialog): Block/unblock input while processing
3553 events so that we get a chance of processing expose events.
3554
3555 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
3556
3557 2001-07-24 Gerd Moellmann <gerd@gnu.org>
3558
3559 * xfns.c (valid_image_p): Protect better against invalid image
3560 specifications. Previous code could signal an error.
3561
3562 2001-07-23 Gerd Moellmann <gerd@gnu.org>
3563
3564 * indent.c (current_column): Fix column computation in the
3565 presence of display table entries.
3566 (current_column_1, Fmove_to_column, compute_motion): Likewise.
3567
3568 * dispnew.c (adjust_glyph_matrix): In the optimization for
3569 windows whose height has changed, use the new window height
3570 to compute which rows to invalidate.
3571
3572 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
3573 (MAX_10_EXP): New macro.
3574 (Fformat): Use it.
3575
3576 * coding.c (code_convert_region): Handle the multibyte case if
3577 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
3578
3579 2001-07-20 Gerd Moellmann <gerd@gnu.org>
3580
3581 * dispextern.h (struct face): Change type of `stipple' to
3582 int; it's an ID.
3583
3584 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
3585
3586 2001-07-19 Gerd Moellmann <gerd@gnu.org>
3587
3588 * dispnew.c (update_window): Don't set the cursor at the end
3589 of the update if display update has been paused.
3590
3591 * composite.h (syms_of_composite): Renamed from syms_of_composition.
3592
3593 2001-07-18 Ken Raeburn <raeburn@gnu.org>
3594
3595 * fns.c (Fset_char_table_default): Check that a charset is defined
3596 before checking its dimension.
3597
3598 2001-07-17 Ken Raeburn <raeburn@gnu.org>
3599
3600 * coding.c (setup_coding_system): Don't do any designation based
3601 on reg_bits if charset is not yet defined.
3602
3603 * lisp.h (XVECTOR): Verify correct object type before returning a
3604 pointer, using eassert.
3605
3606 2001-07-17 Gerd Moellmann <gerd@gnu.org>
3607
3608 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
3609 Increase to 4096 because of paste problems reported on GNU/Linux.
3610
3611 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
3612
3613 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
3614
3615 2001-07-16 Gerd Moellmann <gerd@gnu.org>
3616
3617 * fileio.c (unwind_read): Function removed.
3618 (read_non_regular, read_non_regular_quit): New functions.
3619 (Finsert_file_contents): When reading from non-regular files,
3620 arrange to catch a `quit' and terminate the loop. Rearrange
3621 code so that a `quit' when reading from a regular file doesn't
3622 insert text in the buffer.
3623
3624 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
3625 Clear faces afterwards.
3626 (clear_font_table): Take a x_display_info parameter. Don't free
3627 fonts being the default font of any frame on the given display.
3628
3629 2001-07-13 Gerd Moellmann <gerd@gnu.org>
3630
3631 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
3632 instead of CHAR_STRING which can signal an error.
3633
3634 * charset.c (char_to_string_1): Extracted from char_to_string.
3635 Return -1 instead of signaling an error.
3636 (char_to_string): Use it.
3637
3638 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
3639
3640 2001-07-12 Stefan Monnier <monnier@cs.yale.edu>
3641
3642 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
3643 is t, don't try to append anything to it.
3644
3645 2001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
3646
3647 * dired.c (file_name_completion): Pass dp->d_name to
3648 Fstring_match, not elt, which is always nil here.
3649
3650 2001-07-12 Gerd Moellmann <gerd@gnu.org>
3651
3652 * xselect.c (x_decline_selection_request): Handle errors
3653 caused by receivers that have vanished.
3654
3655 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
3656 ignoring events on foreign windows in #if 0. Always dispatch
3657 the event after checking it with x_handle_property_notify.
3658
3659 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
3660 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
3661 TRACE macros to facilitate debugging. Add additional trace statements.
3662 (toplevel): Add prototypes for file-local functions.
3663 (x_atom_to_symbol): Remove DPYINFO parameter.
3664
3665 2001-07-11 Stefan Monnier <monnier@cs.yale.edu>
3666
3667 * w32menu.c (menubar_selection_callback, w32_menu_show):
3668 Initialize `entry' to nil.
3669 (w32_dialog_show): Remove unused `save_wv' variable.
3670 (name_is_separator): Recognize "--:foo" and "--foo-bar".
3671
3672 2001-07-11 Gerd Moellmann <gerd@gnu.org>
3673
3674 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
3675
3676 * fileio.c (unwind_read): Print a message when discarding inserted
3677 text or switching the buffer to unibyte. Change parameter.
3678 (Finsert_file_contents): Don't pass VISIT to unwind_read.
3679
3680 * fileio.c (unwind_read): New function.
3681 (Finsert_file_contents): Record it as unwind-function for
3682 the case that reading is interrupted by C-g.
3683
3684 2001-07-10 Gerd Moellmann <gerd@gnu.org>
3685
3686 * dispnew.c (update_window): Don't skip the header-line
3687 update when scrolling_window returns 0.
3688
3689 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
3690
3691 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
3692 for the case that x_decode_color signals an error.
3693
3694 * xdisp.c (add_to_log): Do nothing if called asynchronously.
3695
3696 2001-07-09 Gerd Moellmann <gerd@gnu.org>
3697
3698 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
3699 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
3700 around ioctls.
3701
3702 2001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
3703
3704 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
3705 doc string line for dos-timezone-offset.
3706
3707 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
3708 inline assembly, to avoid compiler warnings.
3709 (syms_of_msdos): Add \n\ at the end of a line in the doc string
3710 line for dos-unsupported-char-glyph.
3711
3712 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
3713
3714 2001-07-05 Gerd Moellmann <gerd@gnu.org>
3715
3716 * sound.c: Include Emacs' header files with #include "...".
3717
3718 * eval.c (specbind): Additionally record the buffer that was
3719 current when a buffer-local or frame-local variable was bound.
3720
3721 2001-07-04 Gerd Moellmann <gerd@gnu.org>
3722
3723 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
3724 to unibyte characters in unibyte buffers.
3725
3726 2001-07-03 Gerd Moellmann <gerd@gnu.org>
3727
3728 * eval.c (specbind): If SYMBOL has a frame-local binding, record
3729 the frame on the binding stack. Change format of entries for
3730 local bindings on the binding stack to '(SYMBOL . WHERE)'.
3731 (unbind_to): Handle unbinding a frame-local variable.
3732
3733 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
3734 glyphs and truncation glyphs at the end of a row from its pixel width.
3735 (dump_glyph_row): Print row's continuation_lines_width.
3736 (try_window_id): Take the shortcut if ZV is visible in the
3737 window, but there are actually no changes at ZV.
3738
3739 2001-07-02 Gerd Moellmann <gerd@gnu.org>
3740
3741 * xterm.h (x_free_dpy_colors): Add prototype.
3742
3743 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
3744 right number of arguments.
3745
3746 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
3747 ($(lwlibdir)TAGS): New target.
3748 (TAGS): Fix dependency list.
3749
3750 * xterm.c (x_list_fonts): Make sure XFreeFont is called
3751 with input blocked.
3752
3753 2001-06-30 Gerd Moellmann <gerd@gnu.org>
3754
3755 * emacs.c (main): Remove extern declaration for sys_nerr, which
3756 isn't used and causes a compilation error with GCC 3.0 on
3757 FreeBSD 4.3.
3758
3759 2001-06-27 Gerd Moellmann <gerd@gnu.org>
3760
3761 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
3762 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
3763 (toplevel): Include <signal.h> and syssignal.h.
3764
3765 * sound.c (vox_configure, vox_close): Turn off atimers
3766 around ioctls.
3767
3768 2001-06-26 Gerd Moellmann <gerd@gnu.org>
3769
3770 * keyboard.c (read_char) <non_reread>: Record the previous idle
3771 start time before calling timer_stop_idle.
3772 (read_char) <reread_first>: After processing a help-echo event,
3773 restore the previous idle start time.
3774
3775 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
3776 the start of invisible text.
3777 (setup_for_ellipsis): New function.
3778 (next_overlay_string): After all overlay strings have been
3779 processed, display an ellipsis if necessary.
3780 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
3781 (push_it): Initialize display_ellipsis_p on the iterator's stack.
3782
3783 * dispextern.h (struct iterator_stack_entry): Add member
3784 display_ellipsis_p.
3785
3786 2001-06-25 Gerd Moellmann <gerd@gnu.org>
3787
3788 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
3789 on the value of the wait-for-wm frame parameter.
3790
3791 * xterm.h (struct x_output): Add member wait_for_wm.
3792
3793 * xfns.c (Qwait_for_wm): New variable.
3794 (x_frame_parms): Add entry for `wait-for-wm".
3795 (x_set_wait_for_wm): New function.
3796 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
3797 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
3798
3799 * xdisp.c (try_window_id) <all changes below window end>: Don't
3800 take this shortcut if ZV is visible in the window.
3801 (try_window_id): When checking for window start being in changed
3802 text, don't check that the buffer's size has changed.
3803
3804 2001-06-23 Richard M. Stallman <rms@gnu.org>
3805
3806 * minibuf.c (Fcompleting_read): Doc fix.
3807
3808 2001-06-19 Gerd Moellmann <gerd@gnu.org>
3809
3810 * composite.c (Ffind_composition_internal): Accept ZV
3811 and a string's end position as POS.
3812
3813 2001-06-18 Gerd Moellmann <gerd@gnu.org>
3814
3815 * composite.c (Ffind_composition_internal): Check POS
3816 for validity.
3817
3818 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
3819
3820 * editfns.c (Fmessage_box): If the frame is not under a window
3821 system, output the message in the echo area.
3822
3823 2001-06-14 Richard M. Stallman <rms@gnu.org>
3824
3825 * xdisp.c (try_window_id): When EOB is visible, don't treat
3826 insertion at EOB as if it were "off the bottom of the screen."
3827
3828 2001-06-11 Andrew Innes <andrewi@gnu.org>
3829
3830 * w32proc.c (create_child): Add new parameter is_gui_app.
3831 (w32_executable_type): Add new parameter is_gui_app.
3832 (sys_spawnve): Use it.
3833 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
3834 SIGQUIT. This matches better how the signals are interpreted by
3835 MSVC compiled programs.
3836 (syms_of_ntproc): Update docstring.
3837
3838 2001-06-02 Stefan Monnier <monnier@cs.yale.edu>
3839
3840 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
3841 well otherwise note_mouse_highlight might optimize away highlighting
3842 if we pass over that same overlay again.
3843
3844 2001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
3845
3846 * lread.c (Fload): Document that the argument is run via
3847 substitute-in-file-name.
3848
3849 2001-05-31 Gerd Moellmann <gerd@gnu.org>
3850
3851 * Makefile.in (bootstrap-doc): New target.
3852 (bootstrap-emacs): Depend on it.
3853
3854 * fileio.c (Fdo_auto_save): Don't try to create the directory of
3855 auto-save-list-file-name when shutting down Emacs, because
3856 creating the directory might signal an error, and leaves
3857 Emacs in a strange state.
3858
3859 * term.c: (tty_cursor_hidden): New variable.
3860 (update_begin): Don't call tty_hide_cursor. Clean up.
3861 (update_end, set_terminal_window, set_scroll_region): Clean up.
3862 (ring_bell, reset_terminal_modes): Clean up.
3863 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
3864 on tty_cursor_hidden.
3865 (write_glyphs): Call tty_hide_cursor.
3866
3867 2001-05-30 Stefan Monnier <monnier@cs.yale.edu>
3868
3869 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
3870
3871 2001-05-30 Gerd Moellmann <gerd@gnu.org>
3872
3873 * xfns.c (enum image_value_type): New enumerator
3874 IMAGE_STRING_OR_NIL_VALUE.
3875 (parse_image_spec): Handle it.
3876 (xbm_format, pbm_format): Use it for :foreground and :background.
3877 (xbm_load, pbm_load): Check for nil color names.
3878
3879 * xterm.c (note_mouse_highlight): If an overlapping overlay
3880 exists, but we find that we highlight the same overlay as before,
3881 don't do the highlighting again.
3882
3883 2001-05-29 Gerd Moellmann <gerd@gnu.org>
3884
3885 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
3886 Protect unibyte strings created by replacing their multibyte
3887 equivalents in menu_items.
3888
3889 * keymap.c (Fsingle_key_description): NUL-terminate the string
3890 buffer before calling build_string.
3891
3892 * callproc.c (Fcall_process): Deal with decode_coding returning
3893 CODING_FINISH_INCONSISTENT_EOL.
3894
3895 2001-05-28 Gerd Moellmann <gerd@gnu.org>
3896
3897 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3898 an item's name with its key description in case the description
3899 is a multibyte string.
3900
3901 * keymap.c (Fsingle_key_description): Create a multibyte string
3902 only if necessary.
3903
3904 * macros.c (Fstart_kbd_macro): Doc fix.
3905
3906 * xterm.c (cursor_in_mouse_face_p): New function.
3907 (x_draw_stretch_glyph_string): Use it to choose a different GC
3908 when drawing a cursor within highlighted text.
3909
3910 * editfns.c (char_property_eq): Put in #if 0.
3911
3912 * indent.c (string_display_width): Put in #if 0.
3913
3914 * lread.c (Fload): Remove unused label.
3915
3916 * termcap.c (speeds): Put in #if 0.
3917
3918 2001-05-18 Gerd Moellmann <gerd@gnu.org>
3919
3920 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
3921
3922 * xfaces.c (xlfd_point_size): Don't divide pixel size from
3923 transformation matrix by 10.
3924
3925 2001-05-16 Gerd Moellmann <gerd@gnu.org>
3926
3927 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
3928 only if it's equal to the former foreground pixel color.
3929 (x_set_foreground_color, x_set_background_color)
3930 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
3931
3932 2001-05-16 Dave Love <fx@gnu.org>
3933
3934 * insdel.c (signal_before_change, signal_after_change): Consider a
3935 local change hook which changes the buffer.
3936
3937 * process.c (read_process_output): Don't call signal_after_change
3938 and update_compositions after insert_from_string_before_markers.
3939
3940 2001-05-16 Gerd Moellmann <gerd@gnu.org>
3941
3942 * xfaces.c (split_font_name): Use the right field when
3943 checking for `[...]' syntax.
3944
3945 * buffer.c (copy_overlays): New function.
3946 (clone_per_buffer_values): Use it.
3947
3948 * buffer.h (OVERLAY_PLIST): New macro.
3949
3950 * keymap.c (Fsingle_key_description): Replace a build_string with
3951 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
3952
3953 * fontset.c (Ffontset_info): Check that face is non-null
3954 before accessing its fields.
3955
3956 2001-05-15 Gerd Moellmann <gerd@gnu.org>
3957
3958 * keyboard.c (read_key_sequence): Prevent generating a fake
3959 prefix key twice.
3960
3961 * xfaces.c (split_font_name): Handle `[...]' for the right
3962 font name fields.
3963
3964 * ccl.c (ccl_driver): Don't copy remaining bytes in case
3965 of CCL_STAT_INVALID_CMD.
3966
3967 2001-05-14 Stefan Monnier <monnier@cs.yale.edu>
3968
3969 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
3970 in <var> has no default value yet.
3971
3972 * xfaces.c (try_alternative_families): First try the FAMILY.
3973 And if nothing is found in the end, try again with scalable fonts.
3974 (try_font_list): Let try_alternative_families do a bit more of
3975 the work. Only use FAMILY if it is not nil.
3976 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
3977
3978 2001-05-14 Gerd Moellmann <gerd@gnu.org>
3979
3980 * xterm.c (note_mouse_highlight): Avoid changing the mouse
3981 pointer shape when show_mouse_face has already done it.
3982
3983 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
3984 full-width rows.
3985
3986 * xfaces.c (split_font_name): Make sure to leave the loop
3987 with the right value of `i'.
3988
3989 * xfaces.c (split_font_name): Handle matrix transformations
3990 in the pixel and point size fields of XLFD font names.
3991 (xlfd_point_size): Likewise.
3992
3993 2001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
3994
3995 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
3996 (x_to_w32_font): Add prototype.
3997
3998 * regex.c (malloc, realloc, free) [emacs]: Undefine before
3999 redefining, to avoid compiler warnings.
4000
4001 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
4002
4003 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
4004 (w32_get_bdf_glyph): Cast between unsigned char and char when
4005 passing arguments to subroutines, to shut up compiler warnings.
4006 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
4007 GET_HEX_VAL.
4008
4009 * xfaces.c: Include keyboard.h before frame.h, not after it.
4010
4011 * widget.c: Include keyboard.h before frame.h.
4012
4013 * w32term.h (struct image, struct face): Forward declaration, to
4014 avoid compiler warnings.
4015
4016 2001-05-11 Gerd Moellmann <gerd@gnu.org>
4017
4018 * keyboard.c (read_key_sequence): Don't modify events when
4019 generating fake prefix keys (mode-line, scroll-bar, ...) since
4020 this prevents proper processing of such events when pushed back
4021 into unread-command-events.
4022
4023 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
4024 actually redrawn. Make the function static.
4025 (note_mouse_highlight): Fix a case where the mouse cursor
4026 was changed back to the text cursor.
4027
4028 * xterm.h (clear_mouse_face): Remove prototype.
4029
4030 * xdisp.c (try_window_id): Fix the fix and set the right
4031 window_end_vpos.
4032
4033 * xdisp.c (try_window_id): Fix computation of window end in the
4034 case that lines were deleted at the end of the window. Add some
4035 more debug_method_adds.
4036
4037 * xfaces.c (try_alternative_families): New function.
4038 (try_font_list): Use it. If ATTRS specifies a family, check
4039 fonts from that family first.
4040 (choose_face_font): Remove code setting the family part of
4041 the pattern to nil.
4042
4043 2001-05-10 Gerd Moellmann <gerd@gnu.org>
4044
4045 * xdisp.c (try_window_id): Fix case of all changes before
4046 the window start.
4047
4048 * xdisp.c (try_window_id): Add some xasserts.
4049
4050 2001-05-09 Gerd Moellmann <gerd@gnu.org>
4051
4052 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
4053
4054 2001-05-09 Dave Love <fx@gnu.org>
4055
4056 * xdisp.c (GIVE_UP): Fix for K&R C.
4057
4058 2001-05-09 Gerd Moellmann <gerd@gnu.org>
4059
4060 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
4061
4062 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
4063 back to the text cursor shape without need.
4064
4065 2001-05-07 Gerd Moellmann <gerd@gnu.org>
4066
4067 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
4068
4069 * dispextern.h (inverse_video): Declare extern.
4070
4071 * keyboard.c (delete_kboard): Handle the case that selected_frame
4072 has been deleted in the course of x_connection_closed.
4073
4074 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
4075
4076 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
4077 Fix the change from 2001-04-30.
4078
4079 2001-05-03 Gerd Moellmann <gerd@gnu.org>
4080
4081 * xfns.c (file_dialog_unmap_cb): New function.
4082 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
4083 where a dialog is closed via the window manager.
4084
4085 * xdisp.c (try_window_id): Cases of changes all in front of
4086 the window start or all below the window end mostly rewritten.
4087 (redisplay_window): Move the tests if try_window_id is
4088 applicable to try_window_id.
4089 (GIVE_UP): New macro.
4090
4091 2001-05-02 Gerd Moellmann <gerd@gnu.org>
4092
4093 * xterm.c (expose_window): Return int. If W is the window
4094 currently being updated, mark the frame garbaged.
4095 Fix computation of rows intersecting the exposed rectangle.
4096 (expose_window_tree): Stop when expose_window returns 0.
4097
4098 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
4099 again if it has already been drawn.
4100
4101 2001-05-01 Stefan Monnier <monnier@cs.yale.edu>
4102
4103 * syntax.c (update_syntax_table): Check that oldi has the same
4104 properties as old_prop before deciding not to invalidate.
4105
4106 2001-04-30 Gerd Moellmann <gerd@gnu.org>
4107
4108 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
4109 read-only text that is so because of text properties.
4110
4111 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
4112 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
4113 windows that are components of a Lucid menu bar.
4114
4115 2001-04-27 Gerd Moellmann <gerd@gnu.org>
4116
4117 * term.c (turn_on_face): Fix reverse video handling on terminals
4118 that don't support colors.
4119
4120 2001-04-26 Gerd Moellmann <gerd@gnu.org>
4121
4122 * editfns.c (save_excursion_restore): Don't use XBUFFER on
4123 a non-buffer.
4124
4125 2001-04-25 Gerd Moellmann <gerd@gnu.org>
4126
4127 * term.c (toggle_highlight): New function.
4128 (turn_on_face): Change handling of reverse video.
4129
4130 * process.c (wait_reading_process_input):
4131 Call record_asynch_buffer_change only if a timer really changed buffers.
4132
4133 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
4134 of the number of overlays to check.
4135
4136 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
4137
4138 * xdisp.c (try_window_id): Fix a case where window_end_pos
4139 and window_end_bytepos were not adjusted.
4140
4141 2001-04-23 Gerd Moellmann <gerd@gnu.org>
4142
4143 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
4144 zero instead of -1.
4145
4146 2001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
4147
4148 * process.c (wait_reading_process_input) [!subprocesses]:
4149 Don't reference waiting_for_user_input_p, it's not defined in the
4150 branch without async subprocesses support.
4151
4152 2001-04-19 Gerd Moellmann <gerd@gnu.org>
4153
4154 * keyboard.c (delete_kboard): Prevent a dangling reference
4155 from current_kboard to KB, which is freed.
4156
4157 * process.c (wait_reading_process_input):
4158 Call record_asynch_buffer_change after running timers, to make
4159 read_key_sequence aware of buffer changes from under it.
4160
4161 2001-04-18 Gerd Moellmann <gerd@gnu.org>
4162
4163 * xfaces.c (Qscalable_fonts_allowed): New variable.
4164 (realizing_basic_faces_p): Removed.
4165 (x_face_list_fonts): Special handling for realizing_basic_faces_p
4166 removed.
4167 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
4168 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
4169 for scalable-fonts-allowed to t.
4170
4171 * fileio.c (Finsert_file_contents): If the file size returned from
4172 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
4173 read from files on a procfs whose contents are generated dynamically.
4174
4175 2001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
4176
4177 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
4178 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
4179 (__memalign_hook): Make the two prototypes consistent.
4180
4181 2001-04-17 Gerd Moellmann <gerd@gnu.org>
4182
4183 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
4184 matrix of mini-windows.
4185
4186 2001-04-12 Stefan Monnier <monnier@cs.yale.edu>
4187
4188 * intervals.c (find_interval): Don't rebalance during signal handling.
4189
4190 2001-04-11 Gerd Moellmann <gerd@gnu.org>
4191
4192 * fns.c: Include blockinput.h.
4193
4194 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
4195
4196 2001-04-10 Gerd Moellmann <gerd@gnu.org>
4197
4198 * fns.c (Fcompare_strings): Fix return values.
4199
4200 * window.c (window_scroll): Change the meaning of N to mean
4201 N screen-fulls or N lines.
4202 (window_scroll_pixel_based, window_scroll_line_based)
4203 (scroll_command, Fscroll_other_window): Change accordingly.
4204
4205 * window.c (window_scroll_pixel_based, Frecenter):
4206 Call window_box_height instead of using it.last_visible_y for the
4207 height of the window.
4208
4209 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
4210 instead of using it.last_visible_y for the height of the window.
4211
4212 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
4213 From Dan Holmsand <dan@eyebee.com>.
4214
4215 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
4216 able to write to hidden and system files. From Dan Holmsand
4217 <dan@eyebee.com>.
4218
4219 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
4220 Holmsand <dan@eyebee.com>.
4221
4222 2001-04-09 Gerd Moellmann <gerd@gnu.org>
4223
4224 * fns.c (Fplist_get, Fplist_put): Add QUITs.
4225
4226 * window.c (window_internal_height): Return 1 less if the
4227 window has a header line.
4228
4229 * xdisp.c (try_window_id): When scrolling on a terminal, take
4230 the change of window_internal_height into account.
4231
4232 2001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
4233
4234 * gmalloc.c (align): If the argument SIZE would overflow
4235 __malloc_ptrdiff_t, fail right away.
4236
4237 2001-04-06 Gerd Moellmann <gerd@gnu.org>
4238
4239 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
4240 Make sure the tooltip is completely visible.
4241 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
4242
4243 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
4244
4245 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
4246
4247 2001-04-06 Dave Love <fx@gnu.org>
4248
4249 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
4250 Fix test of `from'.
4251
4252 2001-04-06 Gerd Moellmann <gerd@gnu.org>
4253
4254 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
4255
4256 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
4257
4258 2001-04-05 Gerd Moellmann <gerd@gnu.org>
4259
4260 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
4261
4262 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
4263
4264 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
4265 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
4266
4267 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
4268 shell widget's position only if it is non-null.
4269
4270 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
4271 Set f->output_data.x->widget to null after destroying it.
4272
4273 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
4274 FILENAME to bring it in synch with the documentation.
4275
4276 * xfaces.c (realizing_basic_faces_p): Renamed from
4277 realize_default_face_p.
4278 (realize_basic_faces): Set/clear realizing_basic_faces_p.
4279 (realize_default_face): Don't set the flag.
4280
4281 2001-04-04 Gerd Moellmann <gerd@gnu.org>
4282
4283 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
4284
4285 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
4286
4287 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
4288 the buffer that was used for echoing.
4289
4290 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
4291 (first_font_matching): Removed unused function.
4292 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
4293 (may_use_scalable_font_p): Remove parameter FONT; rename
4294 parameter NAME to FONT.
4295 (x_face_list_fonts): Fix missing bounds check.
4296 (realizing_default_face_p): New variable.
4297 (realize_default_face): Set and clear that flag.
4298 (x_face_list_fonts): When called during the realization of the
4299 default face, and no matching fonts are found when ignoring
4300 scalable fonts and fonts matching a regexp from
4301 face-ignored-fonts, try without ignoring fonts.
4302
4303 2001-04-03 Gerd Moellmann <gerd@gnu.org>
4304
4305 * xfns.c (postprocess_image): New function.
4306 (lookup_image): Call it for all image types except PostScript.
4307 (x_kill_gs_process): Call postprocess_image.
4308
4309 * xterm.c (x_use_underline_position_properties): New variable.
4310 (x_draw_glyph_string): Use it.
4311 (syms_of_xterm): DEFVAR_BOOL it.
4312
4313 2001-04-02 Gerd Moellmann <gerd@gnu.org>
4314
4315 * xterm.c (x_alloc_nearest_color_1): New function.
4316 (x_alloc_nearest_color): Use it.
4317 (x_color_cells): Take a Display as argument, instead of a frame.
4318 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
4319 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
4320 (x_initialize): Register cvt_string_to_pixel as resource converter
4321 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
4322
4323 2001-03-30 Gerd Moellmann <gerd@gnu.org>
4324
4325 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
4326 (set_iterator_to_next): If a string from a display property ends,
4327 consider the case that this might also be the end of an
4328 overlay string having the display property.
4329
4330 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
4331
4332 * xdisp.c (reseat_to_string): Undo last change.
4333
4334 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
4335 matrix of a window when the header line changes, when
4336 new rows are allocated, or when the width changes.
4337
4338 2001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
4339
4340 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
4341
4342 2001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
4343
4344 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
4345 deprecated.
4346
4347 2001-03-29 Gerd Moellmann <gerd@gnu.org>
4348
4349 * data.c (Fsubr_interactive_form): New function.
4350 (syms_of_data): Defsubr it.
4351
4352 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
4353 (live_float_p, live_misc_p): Return 1 only if the offset of the
4354 pointer in its block is >= 0.
4355
4356 2001-03-28 Paul Eggert <eggert@twinsun.com>
4357
4358 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
4359 microseconds calcuation. Avoid double-rounding problem.
4360 In doc string, warn that the result is approximate.
4361
4362 2001-03-28 Gerd Moellmann <gerd@gnu.org>
4363
4364 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
4365 bind `inhibit-eval-during-redisplay' to t.
4366
4367 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
4368
4369 * xdisp.c (inhibit_eval_during_redisplay)
4370 (Qinhibit_eval_during_redisplay): New variables.
4371 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
4372 don't eval, return nil instead.
4373 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
4374 Initialize Qinhibit_eval_during_redisplay.
4375
4376 * xdisp.c (reseat_to_string): If STRING is multibyte, set
4377 the iterator's multibyte_p flag.
4378
4379 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
4380 instead of setting it to zero; it's incremented for each frame
4381 where the menu face is changed.
4382
4383 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
4384 change bottom shadow accordingly.
4385
4386 * xterm.c (expose_window_tree, expose_frame): Don't compute
4387 intersections here.
4388 (expose_window): Do it here instead.
4389 (x_draw_glyph_string): Fix a computation of the underline position.
4390
4391 * bytecode.c (BYTE_CODE_QUIT): New macro.
4392 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
4393
4394 2001-03-27 Gerd Moellmann <gerd@gnu.org>
4395
4396 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
4397 Give up if matrix starts in an ellipsis.
4398 (init_from_display_pos): Do nothing if POS doesn't specify
4399 a dpvec_index but the iterator has such a position.
4400
4401 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
4402
4403 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
4404 x/y position is (0, 0) after destroying the menu bar, restore
4405 its original position.
4406
4407 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
4408 (init_from_display_pos): Use it.
4409 (try_window_reusing_current_matrix): Don't use cursor_row_p.
4410
4411 2001-03-26 Gerd Moellmann <gerd@gnu.org>
4412
4413 * xdisp.c (try_window_id): Undo last change.
4414
4415 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
4416
4417 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
4418
4419 * buffer.c (syms_of_buffer): Doc fix.
4420
4421 2001-03-26 Gerd Moellmann <gerd@gnu.org>
4422
4423 * xfaces.c (x_update_menu_appearance): Use local variable
4424 popup_path for setting font resources.
4425
4426 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
4427
4428 * frame.c (Fframe_list): Don't reference tip_frame if
4429 HAVE_WINDOW_SYSTEM is not defined.
4430
4431 * emacs.c (main): Update the copyright year. From Werner LEMBERG
4432 <wl@gnu.org>.
4433
4434 2001-03-25 Gerd Moellmann <gerd@gnu.org>
4435
4436 * xdisp.c (init_from_display_pos): Test invisible property
4437 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
4438
4439 * xdisp.c (redisplay_internal) <update one window>: Make sure
4440 last_arrow_position and last_arrow_string are set.
4441
4442 * frame.c (Fframe_list): Don't return a tooltip frame.
4443
4444 2001-03-23 Gerd Moellmann <gerd@gnu.org>
4445
4446 * xdisp.c (mark_window_display_accurate_1): New function,
4447 extracted from mark_window_display_accurate.
4448 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
4449 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
4450 (mark_window_display_accurate): Use it.
4451 (redisplay_internal): Use it for the selected window.
4452 (redisplay_internal): Avoid duplicate mark_window_display_accurate
4453 for the selected frame.
4454
4455 * xdisp.c Use make_number, for readability.
4456 (try_window_id): Disable rows below the window end.
4457 (try_window_reusing_current_matrix): Use cursor_row_p.
4458 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
4459 of rows.
4460 (init_from_display_pos): If POS specifies a position in a display
4461 vector, maybe get the iterator set up for that ellipsis.
4462
4463 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
4464
4465 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
4466
4467 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
4468
4469 2001-03-23 Gerd Moellmann <gerd@gnu.org>
4470
4471 * xfaces.c (x_update_menu_appearance): Use a different path
4472 for Lucid popup menus.
4473
4474 2001-03-22 Stefan Monnier <monnier@cs.yale.edu>
4475
4476 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
4477
4478 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
4479 (string_buffer_position): Use `make_number'.
4480
4481 2001-03-22 Gerd Moellmann <gerd@gnu.org>
4482
4483 * xfaces.c (x_update_menu_appearance): Renamed from
4484 x_set_menu_face_resources. Use different resources for popups.
4485
4486 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
4487 (GC_CHECK_STRING_BYTES): Don't define.
4488
4489 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
4490 Removed, together with subroutines.
4491 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
4492 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
4493
4494 * dispextern.h (x_set_menu_resources_from_menu_face):
4495 Remove prototype.
4496
4497 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
4498 Remove calls to x_set_menu_resources_from_menu_face.
4499
4500 * xfaces.c (xm_set_menu_resources_from_menu_face):
4501 Remove #ifndef LESSTIF_VERSION.
4502
4503 * xmenu.c: Include widget.h.
4504 (single_submenu): Return int. Some cleanup.
4505 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
4506
4507 2001-03-21 Gerd Moellmann <gerd@gnu.org>
4508
4509 * xterm.c (x_update_window_end): Handle overwritten mouse face
4510 also for tool bar windows.
4511 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
4512 DRAW is DRAW_IMAGE_RAISED.
4513
4514 2001-03-20 Gerd Moellmann <gerd@gnu.org>
4515
4516 * print.c (syms_of_print): Doc fixes.
4517
4518 * fns.c (Fmd5): Doc fix.
4519
4520 2001-03-19 Gerd Moellmann <gerd@gnu.org>
4521
4522 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4523 Clear area of the frame not occupied by the scroll bar.
4524
4525 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
4526 tip frame's root window buffer to *tip* right after creating
4527 the frame.
4528
4529 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
4530 is an integer don't have to be for space characters.
4531
4532 2001-03-16 Gerd Moellmann <gerd@gnu.org>
4533
4534 * indent.c (current_column, current_column_1, Fmove_to_column)
4535 (compute_motion): Handle characters from display vectors differently.
4536
4537 2001-03-15 Kenichi Handa <handa@etl.go.jp>
4538
4539 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
4540 drawing glyph string.
4541
4542 2001-03-15 Gerd Moellmann <gerd@gnu.org>
4543
4544 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
4545 (command_loop_1): Undo last change.
4546
4547 * xterm.c (fast_find_position): Return the correct vpos.
4548
4549 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
4550 non-null, set a per-buffer value in BUF instead of the current buffer.
4551 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
4552 Call store_symval_forwarding with BUF null.
4553 (set_internal): Call store_symval_forwarding with the BUF
4554 parameter passed to set_internal. Formerly, the value was always
4555 set in the current buffer; the buffer recorded in specbind for
4556 this case wasn't used.
4557 (arith_driver): Reindent.
4558
4559 * buffer.c (swap_out_buffer_local_variables):
4560 Call store_symval_forwarding with BUF null.
4561
4562 * lisp.h (store_symval_forwarding): Change prototype.
4563
4564 * eval.c (specbind): Call store_symval_forwarding with BUF null.
4565
4566 2001-03-14 Gerd Moellmann <gerd@gnu.org>
4567
4568 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
4569 FOR_DELETION. Avoid resizing the mini-window of the selected
4570 frame if FOR_DELETION is set.
4571 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
4572 (Fmake_frame_invisible): Change calls to do_switch_frame for new
4573 signature.
4574
4575 * window.c (Fset_window_configuration): Change call to
4576 do_switch_frame to new format.
4577
4578 * keyboard.c (quit_throw_to_read_char): Change call to
4579 do_switch_frame to new format.
4580
4581 * lisp.h (do_switch_frame): Change prototype.
4582
4583 * frame.c (Fframe_parameters): In the `buffer-list' frame
4584 parameter, store the buffer list of FRAME, not the list of the
4585 selected frame.
4586
4587 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
4588 box just because the glyph row's full_width_p flag is set.
4589
4590 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
4591
4592 * xdisp.c (highlight_trailing_whitespace): On character terminals,
4593 skip the padding blanks inserted in extend_face_to_end_of_line,
4594 before checking for trailing whitespace.
4595
4596 2001-03-13 Gerd Moellmann <gerd@gnu.org>
4597
4598 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
4599 Remove special handling for LessTif/Motif.
4600 (toplevel): Don't include Xm/Xm.h.
4601
4602 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
4603 Remove workaround code for LessTif; it doesn't work anymore.
4604
4605 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
4606 Xm/ScrollBarP.h.
4607
4608 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
4609 Don't access private scroll bar data; it's no longer necessary with
4610 contemporary LessTif.
4611
4612 * xfaces.c (xm_set_menu_resources_from_menu_face):
4613 Change #if 0 to #ifndef LESSTIF_VERSION.
4614
4615 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
4616 removing button grabs.
4617
4618 2001-03-13 Kenichi Handa <handa@etl.go.jp>
4619
4620 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
4621 and clip-large-size-font as obsolete.
4622
4623 * lread.c (read_multibyte): Check the validity of multibyte
4624 sequence. If invalid, return the first byte.
4625
4626 2001-03-12 Gerd Moellmann <gerd@gnu.org>
4627
4628 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
4629 before running the command; timer functions or process
4630 filters may have set it.
4631
4632 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
4633
4634 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
4635 Doc fix.
4636
4637 2001-03-12 Gerd Moellmann <gerd@gnu.org>
4638
4639 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
4640 to sprintf.
4641
4642 2001-03-09 Gerd Moellmann <gerd@gnu.org>
4643
4644 * dispextern.h (string_buffer_position): Add prototype.
4645
4646 * xdisp.c (string_buffer_position, display_prop_string_p)
4647 (single_display_prop_string_p): New functions.
4648
4649 * xterm.c (note_mouse_highlight): If there's no help-echo on
4650 a string, look at the buffer text ``under'' it.
4651
4652 * keyboard.c (make_lispy_event): Add string info to the event,
4653 analogous to what's done on mode lines.
4654 (read_key_sequence): For a click on a string, consider `local-map'
4655 and `keymap' of that string.
4656
4657 * keyboard.c (make_lispy_event, make_lispy_movement):
4658 Adjust calls to buffer_posn_from_coords to new format.
4659
4660 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
4661
4662 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
4663 POS; return void.
4664
4665 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
4666 flags argument to emacs_open; it seems to conflict with O_EXCL.
4667
4668 2001-03-09 Kenichi Handa <handa@etl.go.jp>
4669
4670 * composite.h (struct composition): Change types of members;
4671 glyph_len to unsigned, width to unsigned short.
4672
4673 2001-03-08 Andrew Innes <andrewi@gnu.org>
4674
4675 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
4676 menu titles.
4677
4678 2001-03-08 Gerd Moellmann <gerd@gnu.org>
4679
4680 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
4681 instead of nil.
4682
4683 * xterm.c (note_mouse_highlight): Handle mouse-face and
4684 help-echo in strings.
4685 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
4686 (fast_find_string_pos): New function.
4687
4688 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
4689 (display_string): Call face_at_string_position with new parameter.
4690
4691 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
4692 Handle `mouse-face'.
4693
4694 * dispextern.h (face_at_string_position): Change prototype.
4695
4696 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
4697
4698 * keyboard.c (make_lispy_event): Avoid generating drag events
4699 if the mouse hasn't actually moved to another buffer position.
4700
4701 2001-03-08 Dave Love <fx@gnu.org>
4702
4703 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
4704
4705 2001-03-08 Gerd Moellmann <gerd@gnu.org>
4706
4707 * process.c (Fset_process_window_size): Fix a typo.
4708
4709 2001-03-08 Kenichi Handa <handa@etl.go.jp>
4710
4711 * coding.c (detect_coding_sjis): Do more rigid check.
4712 (detect_coding_big5): Likewise.
4713 (decode_coding_sjis_big5): Likewise.
4714 (Fdetect_coding_region): Call detect_coding_system with tailing
4715 anchor byte `\0' for more rigid detection.
4716 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
4717 (Fdetect_coding_string): Likewise.
4718
4719 2001-03-07 Stefan Monnier <monnier@cs.yale.edu>
4720
4721 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
4722 a string before extracting its data.
4723
4724 2001-03-07 Gerd Moellmann <gerd@gnu.org>
4725
4726 * window.c (Frecenter): Rewrite code handling negative values
4727 of ARG on graphical frames.
4728
4729 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
4730
4731 * window.c (displayed_window_lines): If W->start is outside the
4732 accessible portion of the buffer, call start_display with BEGV or
4733 ZV instead of W->start.
4734
4735 2001-03-07 Gerd Moellmann <gerd@gnu.org>
4736
4737 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
4738
4739 * process.c (Fset_process_filter): Don't crash if the input
4740 file descriptor of PROCESS is closed.
4741 (Fset_process_window_size): Likewise.
4742
4743 2001-03-06 Kenichi Handa <handa@etl.go.jp>
4744
4745 * xterm.c (XTflash): Make the timeout of select shorter, and call
4746 select repeatedly until the desired time expires.
4747
4748 2001-03-06 Gerd Moellmann <gerd@gnu.org>
4749
4750 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
4751
4752 * xfns.c (Fx_create_frame): Clear Vwindow_list.
4753
4754 * lisp.h (Vwindow_list): Declare extern.
4755
4756 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
4757
4758 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
4759
4760 2001-03-06 Gerd Moellmann <gerd@gnu.org>
4761
4762 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
4763 to detect a case where we have to highlight a different region
4764 despite not having left the currently highlighted region.
4765 Set mouse_face_overlay in the x_display_info.
4766 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
4767
4768 * xterm.h (struct x_display_info): Add mouse_face_overlay.
4769
4770 * buffer.c (mouse_face_overlay_overlaps): New function.
4771
4772 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
4773 (Qmouse_face): Declare extern.
4774
4775 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
4776 if face_change_count is non-zero.
4777
4778 2001-03-06 Kenichi Handa <handa@etl.go.jp>
4779
4780 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
4781 that the source is unibyte.
4782
4783 2001-03-05 Dave Love <fx@gnu.org>
4784
4785 * xterm.c (XTmouse_position): Fix typo.
4786
4787 2001-03-05 Gerd Moellmann <gerd@gnu.org>
4788
4789 * minibuf.c (read_minibuf): Clean up the binding stack if
4790 called noninteractively.
4791
4792 2001-03-05 Kenichi Handa <handa@etl.go.jp>
4793
4794 * coding.c (syms_of_coding): Docstring modified.
4795
4796 2001-03-05 Kenichi Handa <handa@etl.go.jp>
4797
4798 * charset.c (char_to_string): If a single byte char has modifier
4799 bits that can't be reflected to the character code, ignore them
4800 instead of signaling an error.
4801
4802 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
4803
4804 * s/msdos.h: Update copyright notice.
4805
4806 * dosfns.h: Update copyright notice.
4807
4808 * dosfns.c: Update copyright notice.
4809
4810 * msdos.c: Update copyright notice.
4811
4812 2001-03-02 Gerd Moellmann <gerd@gnu.org>
4813
4814 * xterm.c (glyph_rect): New function.
4815 (XTmouse_position): Use it to raise the threshold for mouse
4816 movement event generation.
4817
4818 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
4819
4820 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
4821 specifies (reverse . t), reverse the initial screen colors.
4822 (IT_set_frame_parameters): If the property is foreground-color,
4823 but we are reversing the colors, set bg_set, not fg_set.
4824 Likewise for setting background-color and reversing: set fg_set.
4825 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
4826 in effect.
4827
4828 * xfaces.c (Finternal_set_lisp_face_attribute)
4829 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
4830 parameters alist.
4831
4832 2001-03-02 Gerd Moellmann <gerd@gnu.org>
4833
4834 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
4835 to a single slash in the middle of file names.
4836
4837 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
4838 Accept only alphanumeric time zone names.
4839
4840 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
4841 or width area.
4842 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
4843 a widget to zero height.
4844
4845 2001-03-01 Gerd Moellmann <gerd@gnu.org>
4846
4847 * window.c (Fwindow_end): Call move_it_past_eol only if
4848 ending up on a partially visible line.
4849
4850 2001-03-01 Dave Love <fx@gnu.org>
4851
4852 * ccl.c (Fccl_execute): Doc fix.
4853
4854 2001-03-01 Gerd Moellmann <gerd@gnu.org>
4855
4856 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
4857 of the tool bar before calling x_figure_window_size.
4858
4859 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
4860 NULL after destroying it, otherwise XTread_socket can access a
4861 destroyed widget when input is unblocked.
4862
4863 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
4864
4865 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
4866 same name as before, although there was a change in fontsets.
4867
4868 2001-02-28 Ken Raeburn <raeburn@gnu.org>
4869
4870 * lisp.h (Fframe_parameter): Declare.
4871
4872 * window.c (set_window_buffer): Field vscroll is an int, not a
4873 Lisp_Object.
4874
4875 2001-02-28 Gerd Moellmann <gerd@gnu.org>
4876
4877 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
4878 NULL instead.
4879
4880 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
4881 NULL instead.
4882
4883 * alloc.c (toplevel): Include process.h.
4884 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
4885 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
4886 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
4887 (allocate_vector, allocate_hash_table, allocate_window)
4888 (allocate_frame, allocate_process, allocate_other_vector):
4889 New functions.
4890 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
4891 (mark_maybe_pointer): New function.
4892 (mark_memory): Also mark Lisp data to which only pointers
4893 remain and not Lisp_Objects.
4894 (min_heap_address, max_heap_address): New variables.
4895 (mem_find): Return MEM_NIL if START is below min_heap_address or
4896 above max_heap_address.
4897 (mem_insert): Compute min_heap_address and max_heap_address.
4898
4899 * process.c (make_process): Use allocate_process.
4900
4901 * frame.c (make_frame): Use allocate_frame.
4902
4903 * window.c (make_window, make_dummy_parent): Use allocate_window.
4904 (Fcurrent_window_configuration): Use allocate_other_vector.
4905
4906 * lisp.h (allocate_vectorlike): Remove prototype.
4907 (allocate_vector, allocate_other_vector, allocate_frame)
4908 (allocate_window, allocate_process, allocate_hash_table):
4909 Add prototypes.
4910
4911 * fns.c (Fdelete, larger_vector): Use allocate_vector.
4912 (make_hash_table, copy_hash_table): Use allocate_hash_table.
4913
4914 2001-02-27 Kenichi Handa <handa@etl.go.jp>
4915
4916 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
4917 treat the produced bytes as a valid multibyte sequence.
4918
4919 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
4920 (ccl_driver) <CCL_WriteMultibyteChar2>:
4921 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
4922 <ccl_finish>: Set ccl->eight_bit_control properly.
4923
4924 * ccl.h (struct ccl_program): New member eight_bit_control.
4925
4926 2001-02-26 Stefan Monnier <monnier@cs.yale.edu>
4927
4928 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
4929 accessible_keymaps_char_table.
4930 (accessible_keymaps_char_table): Obey `is_metized'.
4931 (where_is_internal, Fwhere_is_internal): Don't confuse int and
4932 Lisp_Object.
4933
4934 2001-02-26 Gerd Moellmann <gerd@gnu.org>
4935
4936 * dispnew.c: Check HAVE_TERM_H before including term.h.
4937
4938 2001-02-24 Andrew Innes <andrewi@gnu.org>
4939
4940 * makefile.w32-in: Update copyright notice.
4941
4942 2001-02-24 Stefan Monnier <monnier@cs.yale.edu>
4943
4944 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
4945
4946 2001-02-24 Kenichi Handa <handa@etl.go.jp>
4947
4948 * Makefile.in (lisp): Add international/utf-8.elc.
4949
4950 * fontset.c (Fnew_fontset): Fix handling of the case that an
4951 element of FONTLIST is a cons of family and registry.
4952
4953 2001-02-23 Jason Rumney <jasonr@gnu.org>
4954
4955 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
4956 to height unconditionally.
4957
4958 * w32term.c (x_set_glyph_string_background_width): Extend the
4959 background face to the end of the drawing area in the text area, only.
4960 (x_insert_glyphs): Call window_box_left to obtain the left
4961 x-coordinate of the area to shift.
4962
4963 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
4964 safe_run_hooks.
4965
4966 2001-02-22 Andrew Innes <andrewi@gnu.org>
4967
4968 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
4969 ($(BLD)\dispnew.obj):
4970 ($(BLD)\editfns.obj):
4971 ($(BLD)\fileio.obj):
4972 ($(BLD)\filelock.obj):
4973 ($(BLD)\keyboard.obj):
4974 ($(BLD)\w32proc.obj):
4975 ($(BLD)\process.obj):
4976 ($(BLD)\sysdep.obj): Ditto.
4977
4978 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
4979 header files.
4980 ($(BLD)/dispnew.$(O)):
4981 ($(BLD)/editfns.$(O)):
4982 ($(BLD)/fileio.$(O)):
4983 ($(BLD)/filelock.$(O)):
4984 ($(BLD)/keyboard.$(O)):
4985 ($(BLD)/w32proc.$(O)):
4986 ($(BLD)/process.$(O)):
4987 ($(BLD)/sysdep.$(O)): Ditto.
4988
4989 2001-02-22 Gerd Moellmann <gerd@gnu.org>
4990
4991 * xdisp.c (forward_to_next_line_start): When taking the shortcut
4992 at the start of the function, check that the \n in it->c is
4993 from the iterator's current position.
4994
4995 * xdisp.c (handle_single_display_prop): Add parameter
4996 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
4997 properties which replace the display of text with something else.
4998 (handle_display_prop): Call handle_single_display_prop with
4999 additional argument saying if we already replaced text display
5000 with something else. Use AREF.
5001 (with_echo_area_buffer_unwind_data, display_menu_bar)
5002 (decode_mode_spec_coding): Use AREF and ASIZE.
5003
5004 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
5005 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
5006 * vmstime.h: Files removed.
5007
5008 * unexencap.c, unexfx2800.c: Files removed.
5009
5010 * dispnew.c (direct_output_for_insert): Give up if we are showing
5011 a message or just cleared the message because we might need to
5012 resize the echo area window or display an empty echo area.
5013
5014 2001-02-21 Gerd Moellmann <gerd@gnu.org>
5015
5016 * xdisp.c (redisplay_internal): Do the
5017 mark_window_display_accurate after all windows have been
5018 redisplayed because this call resets flags in buffers which are
5019 needed for proper redisplay.
5020
5021 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
5022 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
5023 the old names.
5024
5025 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
5026 busy_window to hourglass_window, busy_p to hourglass_p.
5027
5028 * msdos.h (struct x_output): Rename busy_window to
5029 hourglass_window, busy_p to hourglass_p.
5030
5031 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
5032 busy_window to hourglass_window, busy_p to hourglass_p.
5033
5034 * xfns.c: Rename everything containing *busy_cursor* and similar
5035 to *hourglass*.
5036 (syms_of_w32fns): Rename x-busy-pointer-shape to
5037 x-hourglass-pointer-shape, display-busy-cursor to
5038 display-hourglass, busy-cursor-delay to hourglass-delay.
5039
5040 * w32fns.c: Rename everything containing *busy_cursor* and similar
5041 to *hourglass*.
5042 (syms_of_w32fns): Rename x-busy-pointer-shape to
5043 x-hourglass-pointer-shape, display-busy-cursor to
5044 display-hourglass, busy-cursor-delay to hourglass-delay.
5045
5046 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
5047 of its busy_p flag.
5048
5049 * dispextern.h (start_hourglass, cancel_hourglass)
5050 (display_hourglass_p): Renamed from *busy_cursor*.
5051
5052 2001-02-20 Gerd Moellmann <gerd@gnu.org>
5053
5054 * keyboard.c (read_char): When an event from unread-command-events
5055 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
5056
5057 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
5058 equal to the current buffer.
5059
5060 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
5061 nil, otherwise we're left with truncate_lines t when a message
5062 is printed with message-truncate-lines bound to t.
5063
5064 2001-02-19 Gerd Moellmann <gerd@gnu.org>
5065
5066 * window.c (Fmove_to_window_line): Undo last change.
5067 (displayed_window_lines): Call line_bottom_y to determine
5068 the line's bottom position.
5069
5070 * dispextern.h (line_bottom_y): Add prototype.
5071
5072 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
5073 (pos_visible_p): Use it.
5074
5075 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
5076 set redisplaying_p to 0 here instead of in Frecursive_edit.
5077 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
5078 set redisplaying_p.
5079
5080 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
5081 New variables.
5082 (syms_of_xdisp): Initialize new variables.
5083 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
5084 Specbind `inhibit-menubar-update' when updating the menu bar.
5085
5086 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
5087 safe_run_hooks.
5088
5089 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
5090 safe_run_hooks.
5091
5092 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
5093 is null.
5094
5095 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
5096 to the start of the file.
5097
5098 2001-02-16 Gerd Moellmann <gerd@gnu.org>
5099
5100 * window.c (set_window_buffer): Fix last change.
5101
5102 * window.c (set_window_buffer): Set window's vscroll to 0.
5103
5104 * window.c (coordinates_in_window): Increase width of area
5105 where the vertical line can be dragged.
5106
5107 * xterm.c (x_set_glyph_string_background_width): Extend the
5108 background face to the end of the drawing area in the text
5109 area, only.
5110
5111 * xdisp.c (handle_single_display_prop): Set iterator's position
5112 to where the `display' property starts, like for images.
5113 (dump_glyph): New function.
5114 (dump_glyph_row): Use it. Dump info about marginal areas.
5115
5116 * dispnew.c (direct_output_for_insert): Recognize more cases where
5117 glyphs can be written instead of being inserted.
5118
5119 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
5120 the left x-coordinate of the area to shift.
5121
5122 * dired.c (directory_files_internal): Set result list to nil
5123 before retrying.
5124
5125 2001-02-15 Kenichi Handa <handa@etl.go.jp>
5126
5127 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
5128 invalid multibyte sequence, treat *SRC as a character of
5129 eight-bit-graphic.
5130
5131 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
5132
5133 * textprop.c (Fset_text_properties): Doc fix.
5134
5135 2001-02-15 Gerd Moellmann <gerd@gnu.org>
5136
5137 * dispnew.c (update_text_area): Undo change of 2001-01-12.
5138
5139 2001-02-14 Dave Love <fx@gnu.org>
5140
5141 * coding.c: Doc and message fixes.
5142
5143 2001-02-14 Andrew Innes <andrewi@gnu.org>
5144
5145 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
5146 Emacs frame above the screen size.
5147
5148 2001-02-14 Gerd Moellmann <gerd@gnu.org>
5149
5150 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
5151
5152 2001-02-13 Gerd Moellmann <gerd@gnu.org>
5153
5154 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
5155 case that TO ends up beyond ZV after running before-change-functions.
5156
5157 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
5158 the selected window if it is showing the buffer in question.
5159
5160 * dired.c (directory_files_internal): Initialize errno.
5161 (toplevel): Include errno.h.
5162
5163 2001-02-13 Kenichi Handa <handa@etl.go.jp>
5164
5165 * xfaces.c (best_matching_font): New parameter width_ratio.
5166 Multiply avgwidth by width_ratio.
5167 (choose_face_font): Call best_matching_font with width_ratio
5168 calculated from the column width of C.
5169
5170 2001-02-12 Andrew Innes <andrewi@gnu.org>
5171
5172 The following changes are to draw box lines inside characters area
5173 if line-width is negative.
5174
5175 * w32term.c (x_produce_image_glyph): Pay attention to the case that
5176 face->box_line_width is negative.
5177 (x_produce_stretch_glyph): Likewise.
5178 (x_produce_glyphs): Likewise.
5179 (x_estimate_mode_line_height): Likewise.
5180 (x_draw_glyph_string_background): Likewise.
5181 (x_draw_glyph_string_foreground): Likewise.
5182 (x_draw_composite_glyph_string_foreground): Likewise.
5183 (x_draw_glyph_string_box): Likewise.
5184 (x_draw_image_foreground): Likewise.
5185 (x_draw_image_relief): Likewise.
5186 (x_draw_image_foreground_1): Likewise.
5187 (x_draw_image_glyph_string): Likewise.
5188
5189 2001-02-09 Kenichi Handa <handa@etl.go.jp>
5190
5191 The following changes are to draw box lines inside characters area
5192 if line-width is negative.
5193
5194 * xterm.c (x_produce_image_glyph): Pay attention to the case that
5195 face->box_line_width is negative.
5196 (x_produce_stretch_glyph): Likewise.
5197 (x_produce_glyphs): Likewise.
5198 (x_estimate_mode_line_height): Likewise.
5199 (x_draw_glyph_string_background): Likewise.
5200 (x_draw_glyph_string_foreground): Likewise.
5201 (x_draw_composite_glyph_string_foreground): Likewise.
5202 (x_draw_glyph_string_box): Likewise.
5203 (x_draw_image_foreground): Likewise.
5204 (x_draw_image_relief): Likewise.
5205 (x_draw_image_foreground_1): Likewise.
5206 (x_draw_image_glyph_string): Likewise.
5207
5208 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
5209 and :line-width can be negative.
5210 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
5211
5212 2001-02-09 Jason Rumney <jasonr@gnu.org>
5213
5214 * w32term.c (w32_encode_char): Treat eight bit graphic and control
5215 characters the same as ASCII and latin-1.
5216 (x_display_and_set_cursor): Check for the focus frame's selected
5217 window instead of selected_window.
5218 (x_after_update_window_line): Don't clear if frame's internal
5219 border width is zero.
5220 (x_new_font): Don't change a tooltip's size.
5221 (w32_initialize): Set char_ins_del_ok to 1.
5222
5223 * w32fns.c (Fx_show_tip): Fix calls to make_number.
5224 (x_set_font): If font hasn't changed, avoid recomputing
5225 faces and other things.
5226 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
5227 (Fx_create_frame): Add the tool bar height to the frame height.
5228 (x_create_tip_frame): Prevent changing the tooltip's
5229 background color by specifying a color for the default font
5230 in .Xdefaults.
5231 (Qcancel_timer): New variable.
5232 (syms_of_w32fns): Initialize and staticpro it.
5233 (Fx_hide_tip, Fx_show_tip): Use it.
5234 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
5235 the timer.
5236 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
5237
5238 * w32.c (init_environment): Duplicate local string before putenv.
5239
5240 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
5241
5242 * charset.c (Fstring): A typo.
5243
5244 2001-02-09 Kenichi Handa <handa@etl.go.jp>
5245
5246 * charset.c (Fstring): If all arguments are less than 256, return
5247 a unibyte string.
5248
5249 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
5250 return a unibyte string.
5251
5252 * coding.c (code_convert_region): After detecting a coding, if
5253 nothing found, set coding->composing to COMPOSITION_NO.
5254 (decode_coding_string): Likewise.
5255
5256 2001-02-08 Stefan Monnier <monnier@cs.yale.edu>
5257
5258 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
5259 to avoid overflow.
5260
5261 2001-02-07 Kenichi Handa <handa@etl.go.jp>
5262
5263 * charset.c (parse_str_to_multibyte): New function.
5264
5265 * charset.h (parse_str_to_multibyte): Extern it.
5266
5267 * print.c (print_string): If we are going to print a unibyte
5268 string into a multibyte buffer, convert the string to multibyte by
5269 str_to_multibyte.
5270
5271 2001-02-06 Andrew Innes <andrewi@gnu.org>
5272
5273 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
5274 been created. It seems we can get sent window messages such as
5275 WM_ERASEBKGND before we properly update a frame.
5276
5277 2001-02-06 Gerd Moellmann <gerd@gnu.org>
5278
5279 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
5280 Avoid some unnecessary cursor positioning.
5281
5282 2001-02-05 Gerd Moellmann <gerd@gnu.org>
5283
5284 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
5285 (LFACE_AVGWIDTH): New macro.
5286 (LFACEP): Use AREF.
5287 (check_lface_attrs): Check LFACE_AVGWIDTH.
5288 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
5289 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
5290 (merge_face_vectors): Check LFACE_AVGWIDTH.
5291 (Finternal_make_lisp_face): Use AREF.
5292 (xm_set_menu_resources_from_menu_face)
5293 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
5294 (Finternal_lisp_face_empty_p): Use AREF.
5295 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
5296 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
5297 Compare average widths..
5298 (best_matching_font): Arrange for comparing average widths.
5299
5300 * dispextern.h (enum lface_attribute_index):
5301 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
5302
5303 2001-02-05 Dave Love <fx@gnu.org>
5304
5305 * puresize.h: Revert last change following loadup.el change.
5306
5307 2001-02-05 Andrew Innes <andrewi@gnu.org>
5308
5309 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
5310 invocation of temacs, to work with Windows 2000.
5311 (bootstrap-emacs): Ditto.
5312
5313 2001-02-05 Gerd Moellmann <gerd@gnu.org>
5314
5315 * xterm.c (x_display_and_set_cursor): Check for the focus
5316 frame's selected window instead of selected_window.
5317
5318 * xdisp.c (try_scrolling): If point is in the line below the
5319 window, make sure to move the iterator at least a canonical
5320 char height down.
5321
5322 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
5323
5324 2001-02-05 Kenichi Handa <handa@etl.go.jp>
5325
5326 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
5327 If invalid, execute CCL_INVALID_CMD.
5328 (ccl_driver): If the CCL program is terminated because of
5329 CCL_STAT_INVALID_CMD, copy the remaining source data to the
5330 destination instead of throwing them away.
5331
5332 2001-02-02 Gerd Moellmann <gerd@gnu.org>
5333
5334 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
5335 faces and other things.
5336
5337 * xdisp.c (get_next_display_element): Fix case of empty
5338 display table entry.
5339
5340 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
5341
5342 * editfns.c (Fconstrain_to_field): Doc fix.
5343
5344 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
5345 into `thoroughly', to make it consistent with the doc string.
5346
5347 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
5348
5349 2001-02-01 Gerd Moellmann <gerd@gnu.org>
5350
5351 * search.c (search_buffer): Call set_search_regs with a byte
5352 position, not a character position.
5353
5354 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
5355 minibuffer-only,
5356
5357 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
5358
5359 * frame.c (Fmodify_frame_parameters): Doc fix.
5360
5361 2001-01-31 Gerd Moellmann <gerd@gnu.org>
5362
5363 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
5364 identifier which is not reserved by Standard C.
5365
5366 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
5367
5368 * window.c (enum window_part): New enumeration.
5369 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
5370 Qright_bitmap_area.
5371 (coordinates_in_window): Return an enumerator from enum
5372 window_part. Fix handling of right scroll bar.
5373 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
5374 `right-fringe' instead of `left-bitmap-area' and
5375 `right-bitmap-area'. Use enumerators from enum window_part
5376 instead of hard-coded integers.
5377 (check_window_containing, window_from_coordinates):
5378 Use enumerators from enum window_part instead of hard-coded integers.
5379 (syms_of_window): Replace Qleft_bitmap_area and
5380 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
5381
5382 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
5383
5384 * editfns.c (Fformat_time_string): Doc fix.
5385
5386 2001-01-31 Stefan Monnier <monnier@cs.yale.edu>
5387
5388 * keymap.c (Fwhere_is_internal): Use the first valid binding
5389 if no ascii binding is found (when firstonly is t).
5390
5391 2001-01-31 Gerd Moellmann <gerd@gnu.org>
5392
5393 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
5394 instead of Finteractive_p.
5395
5396 * lisp.h (interactive_p): Add prototype.
5397
5398 * eval.c (interactive_p): New function.
5399 (Finteractive_p): Use it.
5400
5401 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
5402
5403 2001-01-31 Dave Love <fx@gnu.org>
5404
5405 * .gdbinit (hook-run): Define to run xreload.
5406
5407 * textprop.c (Fset_text_properties): Fix newline in doc string.
5408
5409 2001-01-30 Gerd Moellmann <gerd@gnu.org>
5410
5411 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
5412 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
5413
5414 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
5415 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
5416 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
5417
5418 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
5419 height.
5420
5421 2001-01-30 Dave Love <fx@gnu.org>
5422
5423 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
5424 AFTER_POTENTIAL_GC.
5425
5426 2001-01-29 Gerd Moellmann <gerd@gnu.org>
5427
5428 * bytecode.c (Fbyte_code) <Bcurrent_column>:
5429 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
5430
5431 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
5432
5433 * textprop.c (Fset_text_properties): Doc fix.
5434
5435 2001-01-29 Gerd Moellmann <gerd@gnu.org>
5436
5437 * xdisp.c (forward_to_next_line_start): Remove xassert.
5438
5439 2001-01-29 Jason Rumney <jasonr@gnu.org>
5440
5441 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
5442 returning without releasing it.
5443
5444 2001-01-29 Kenichi Handa <handa@etl.go.jp>
5445
5446 * w32fns.c (w32_font_match): Allocate three more bytes to regex
5447 for '^', '$', and '\0'.
5448
5449 2001-01-28 Andrew Choi <akochoi@i-cable.com>
5450
5451 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
5452 regex for '^', '$', and '\0'.
5453
5454 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
5455 only if current_sblock has been initialized.
5456
5457 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
5458 terminal frame even if it is the only visible frame.
5459
5460 2001-01-28 Kenichi Handa <handa@etl.go.jp>
5461
5462 * fontset.c (font_family_registry): Even if FONTNAME conform to
5463 XLFD, if it specifies other fields than family and registry,
5464 return FONTANME. New argument FORCE if nonzero cancel that feature.
5465 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
5466 a signle byte character. Don't set FAMILY part to nil here.
5467 It is handled by the caller choose_face_font.
5468 (Fnew_fontset): Call font_family_registry with FORCE 0.
5469 (Fset_fontset_font): Likewise.
5470
5471 2001-01-27 Gerd Moellmann <gerd@gnu.org>
5472
5473 * xdisp.c (display_line): Don't treat a newline as fitting
5474 on the line.
5475
5476 2001-01-26 Gerd Moellmann <gerd@gnu.org>
5477
5478 * window.c (size_window): Set the window's orig_top to nil when
5479 changing heights, so that a future shrink_mini_window won't
5480 restore a bogus height.
5481
5482 * frame.c (do_switch_frame): If selected frame has a mini-window,
5483 resize that to exact size.
5484
5485 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
5486
5487 * xdisp.c (display_line): Simplify check for glyphs fitting
5488 entirely in the line.
5489
5490 * xfns.c (xic_style): New variable.
5491 (create_frame_xic): Move static variable to global scope for
5492 the case that `static' gets defined away.
5493
5494 2001-01-26 Kenichi Handa <handa@etl.go.jp>
5495
5496 * coding.c (decode_coding): Set a flag for inhibiting
5497 inconsistent eol.
5498 (code_convert_region): Always set saved_coding_symbol.
5499 (decode_coding_string): Likewise. Update coding->symbol when we
5500 encounter a inconsistent eol by the same way as code_convert_region.
5501
5502 2001-01-25 Gerd Moellmann <gerd@gnu.org>
5503
5504 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
5505 XClearArea.
5506
5507 * xterm.c (x_after_update_window_line): Don't clear if frame's
5508 internal border width is zero.
5509 (x_clear_area): New function.
5510 (x_after_update_window_line, x_clear_end_of_line)
5511 (x_scroll_bar_create, x_scroll_bar_set_handle)
5512 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
5513 instead of XClearArea.
5514
5515 * xterm.h (x_clear_area): Add prototype.
5516
5517 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
5518 which doesn't seem necessary anymore with Lesstif 0.92.
5519
5520 2001-01-25 Dave Love <fx@gnu.org>
5521
5522 * puresize.h (BASE_PURESIZE): Up to 720000.
5523
5524 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
5525
5526 2001-01-25 Gerd Moellmann <gerd@gnu.org>
5527
5528 * xdisp.c (echo_area_display): Don't call redisplay_internal
5529 when Emacs is shutting down. We can't run hooks etc. that
5530 would be necessary to do a redisplay.
5531
5532 * lread.c (read_integer): Use type EMACS_INT instead of int.
5533
5534 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
5535
5536 * ccl.c (ccl_driver): Fix last change.
5537
5538 2001-01-25 Kenichi Handa <handa@etl.go.jp>
5539
5540 * ccl.h (sturct ccl_program): New member suppress_error.
5541
5542 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
5543 insert error message to the output.
5544 (setup_ccl_program): Initialize ccl->suppress_error to 0.
5545
5546 * coding.h (struct coding_system): New member suppress_error.
5547
5548 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
5549 (Fset_terminal_coding_system_internal): Set the member
5550 suppress_error to 1.
5551 (Fset_safe_terminal_coding_system_internal): Likewise.
5552
5553 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
5554
5555 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
5556 as if it was a `charset'.
5557
5558 2001-01-24 Gerd Moellmann <gerd@gnu.org>
5559
5560 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
5561 value in where_is_cache; the next lookup in the cache returns
5562 something bogus if we do.
5563
5564 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
5565
5566 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
5567 if HAVE_WINDOW_SYSTEM isn't defined.
5568
5569 2001-01-24 Gerd Moellmann <gerd@gnu.org>
5570
5571 * fns.c (sweep_weak_table): Fix code taking items out of
5572 the hash collision chain. Some cleanup.
5573
5574 * xterm.c (x_new_font): Don't change a tooltip's size.
5575
5576 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
5577 background color by specifying a color for the default font
5578 in .Xdefaults.
5579
5580 2001-01-24 Kenichi Handa <handa@etl.go.jp>
5581
5582 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
5583 a workaround for SunOS 4's cc.
5584 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
5585 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
5586 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
5587 statement.
5588
5589 2001-01-23 Gerd Moellmann <gerd@gnu.org>
5590
5591 * xterm.c (x_set_window_size_1): New function extracted from
5592 x_set_window_size.
5593 (x_set_window_size): Use it.
5594 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
5595 doesn't have a widget, like tooltips.
5596
5597 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
5598
5599 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5600
5601 2001-01-23 Kenichi Handa <handa@etl.go.jp>
5602
5603 * fns.c (Fset_char_table_default): Fix to make sub char-table
5604 correctly.
5605
5606 2001-01-22 Gerd Moellmann <gerd@gnu.org>
5607
5608 * xdisp.c (build_desired_tool_bar_string): Make sure we have
5609 a desired tool bar string, even if there are no tool bar items.
5610
5611 * xdisp.c (Ftool_bar_lines_needed): New function.
5612 (syms_of_xdisp): Defsubr it.
5613
5614 * editfns.c (Fformat): Don't extend text properties from arguments
5615 to padding chars in the result.
5616
5617 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
5618
5619 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
5620
5621 2001-01-20 Andrew Innes <andrewi@gnu.org>
5622
5623 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
5624 (w32_initialize): Don't set term hooks that aren't actually needed
5625 in windowed mode.
5626
5627 * xfaces.c (realize_default_face):
5628 (realize_face):
5629 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
5630
5631 * xdisp.c (handle_single_display_prop): Remove references to
5632 FRAME_W32_CONSOLE_P.
5633
5634 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
5635
5636 * frame.h (output_method): Remove output_w32_console method.
5637 (FRAME_W32_CONSOLE_P): Remove macro.
5638
5639 * frame.c (Qw32_console): Remove variable.
5640 (Fframep): Remove references to it.
5641 (syms_of_frame): Ditto.
5642 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
5643
5644 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
5645 redefinition.
5646
5647 2001-01-20 Kenichi Handa <handa@etl.go.jp>
5648
5649 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
5650
5651 2001-01-19 Andrew Innes <andrewi@gnu.org>
5652
5653 * w32.c (init_environment): Add a version-independent site-lisp
5654 directory to EMACSLOADPATH, after the version dependent one.
5655
5656 2001-01-19 Gerd Moellmann <gerd@gnu.org>
5657
5658 * editfns.c (Fbuffer_substring): Doc fix.
5659
5660 * xdisp.c (message_dolog, message2, message2_nolog):
5661 Rename parameter LEN to NBYTES.
5662
5663 2001-01-19 Kenichi Handa <handa@etl.go.jp>
5664
5665 * charset.c (strwidth): Use c_string_width.
5666 (c_string_width): New function.
5667 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
5668 Caller changed.
5669
5670 * charset.h (c_string_width, lisp_string_width): Extern them.
5671
5672 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
5673
5674 * indent.c (check_composition): Check validity of composition.
5675
5676 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
5677 characters by calling c_string_width.
5678 (x_consider_frame_title): Get byte length of frame tile string
5679 correctly.
5680 (display_mode_element): Pay attention to width of non-ASCII
5681 characters by calling strwidth.
5682
5683 2001-01-18 Gerd Moellmann <gerd@gnu.org>
5684
5685 * xfns.c (Qcancel_timer): New variable.
5686 (syms_of_xfns): Initialize and staticpro it.
5687 (Fx_hide_tip, Fx_show_tip): Use it.
5688 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
5689 the timer.
5690 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
5691
5692 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
5693
5694 * window.h (WINDOW_LIVE_P): New macro.
5695
5696 * window.c (window_size_fixed): New variable.
5697 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
5698 the doc string.
5699
5700 * eval.c (specbind): If binding a per-buffer variable which
5701 doesn't have a buffer-local value in the current buffer, change
5702 the global value by changing the value of the symbol bound in all
5703 buffers not having their own value, to make it consistent with
5704 what happens with other buffer-local variables.
5705
5706 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
5707
5708 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
5709 when searching for a newline.
5710
5711 2001-01-18 Kenichi Handa <handa@etl.go.jp>
5712
5713 * xdisp.c (display_string): Fix previous change.
5714
5715 2001-01-18 Jason Rumney <jasonr@gnu.org>
5716
5717 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
5718 GLYPH_DEBUG is defined.
5719 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
5720 true for images with `:ascent 100'.
5721 (x_set_mouse_face_gc): If the last used mouse face has gone in the
5722 meantime, use face MOUSE_FACE_ID.
5723 If first glyph isn't a character glyph, use the ASCII NUL
5724 character to determine the face.
5725 (expose_area): Do not treat left margin specially.
5726 (note_mode_line_highlight): If no local_map, check global keymap.
5727 (note_mouse_highlight): Initialize overlay.
5728 (clear_mouse_face): Don't return if tip_frame is non-nil.
5729 (show_scroll_bars): Remove unused function.
5730 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
5731 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
5732 Clip to row.
5733 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
5734 (x_free_frame_resources): Unload relief colors.
5735
5736 2001-01-17 Gerd Moellmann <gerd@gnu.org>
5737
5738 * xdisp.c (forward_to_next_line_start): Avoid calling
5739 get_next_display_element when the newline is already found.
5740 This may change the iterator's position, when its current position is
5741 equal to the iterator's stop_charpos.
5742
5743 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
5744 zero, use this method only at the end of a line.
5745
5746 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
5747 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
5748 if SCALABLE_FONTS_P is set.
5749
5750 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
5751 so that scalable fonts are included.
5752
5753 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
5754 In the cache, use a key containing the information if scalable
5755 fonts are included.
5756 (x_load_font): Adapt to change of keys in the font cache.
5757
5758 2001-01-17 Kim F. Storm <storm@filanet.dk>
5759
5760 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
5761 XListFonts to take advantage of font caching.
5762
5763 * xterm.c (x_list_fonts): Ensure caching font information when
5764 called for a null frame, which is the case frequently when Emacs
5765 starts.
5766
5767 2001-01-17 Gerd Moellmann <gerd@gnu.org>
5768
5769 * xfns.c (QCconversion): Replaces QCalgorithm.
5770
5771 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
5772
5773 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
5774 of :algorithm.
5775
5776 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
5777 not everything could be displayed.
5778
5779 * line.h, x-list-font.c: Files removed because unused.
5780
5781 2001-01-17 Andrew Innes <andrewi@gnu.org>
5782
5783 * dired.c (directory_files_internal): Convert result from readdir
5784 to a unibyte string initially, to avoid possible misinterpretation
5785 of some bytes as the internal form of Emacs characters.
5786
5787 2001-01-17 Kenichi Handa <handa@etl.go.jp>
5788
5789 * fns.c (concat): Be sure to avoid putting the same `composition'
5790 property on the adjacent regions.
5791
5792 2001-01-16 Gerd Moellmann <gerd@gnu.org>
5793
5794 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
5795 (Fscroll_right, Fscroll_left): Set it here instead, if called
5796 interactively.
5797
5798 * buffer.c (Fset_buffer_modified_p): Set buffer's
5799 prevent_redisplay_optimizations_p flag.
5800
5801 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
5802 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
5803 with additional arg.
5804
5805 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
5806 Change prototype.
5807
5808 * xdisp.c (redisplay_preserve_echo_area): Add parameter
5809 FROM_WHERE, for debugging.
5810
5811 2001-01-16 Kenichi Handa <handa@etl.go.jp>
5812
5813 * ccl.c (Fregister_ccl_program): Handle the return value of
5814 resolve_symbol_ccl_program correctly.
5815 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
5816
5817 2001-01-15 Gerd Moellmann <gerd@gnu.org>
5818
5819 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
5820 has gone in the meantime, use face MOUSE_FACE_ID.
5821
5822 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
5823 If x_display_info_for_display returns null, don't try to close
5824 the display; we didn't open it.
5825
5826 * dispnew.c (save_or_restore_current_matrices): Function removed.
5827 (save_current_matrix, restore_current_matrix): New functions.
5828 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
5829 restore the frame's current matrix. Due to the glyph pointer
5830 setup done in adjust_glyph_matrix, there is no easy way to make
5831 saving the current matrix in the desired matrix generally correct,
5832 so don't try it.
5833
5834 2001-01-15 Kenichi Handa <handa@etl.go.jp>
5835
5836 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
5837 truncation glyphs.
5838 (display_line): Optimize for wide characters.
5839 (display_string): Don't try to display a multi-column character
5840 partially. On ttys, produce more than one truncation glyph for
5841 multi-column characters that don't fit on the line.
5842
5843 2001-01-13 Kenichi Handa <handa@etl.go.jp>
5844
5845 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
5846 Define it instead of WORDS_BIGENDIAN. Caller changed.
5847
5848 2001-01-13 Jason Rumney <jasonr@gnu.org>
5849
5850 * w32fns.c (Fimage_size, image_ascent, lookup_image)
5851 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
5852 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
5853 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
5854
5855 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
5856 (x_draw_image_relief, x_draw_image_foreground_1)
5857 (x_draw_image_glyph_string): Adapt to change of image margins.
5858
5859 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
5860 variables.
5861
5862 * w32bdf.c (search_file_line, get_cached_font_char)
5863 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
5864
5865 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
5866
5867 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
5868 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
5869 (Fw32_send_sys_command): Remove unused variables.
5870 (w32_msg_pump): Add parentheses.
5871
5872 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
5873 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
5874 Add parentheses.
5875
5876 2001-01-12 Gerd Moellmann <gerd@gnu.org>
5877
5878 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
5879 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
5880 being a pair of margins.
5881 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
5882 to DEFVAR_LISP. Extend doc.
5883
5884 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
5885 margins.
5886 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
5887 pair of integers `(X . Y)', use X for the horizontal and Y for the
5888 vertical margin.
5889 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
5890 (parse_image_spec): Check it.
5891 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
5892 (tiff_format, gif_format, gs_format):
5893 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
5894
5895 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
5896 (x_draw_image_relief, x_draw_image_foreground_1)
5897 (x_draw_image_glyph_string): Adapt to the change of image margins.
5898
5899 * dispextern.h (struct image): Replace member `margin' with
5900 `hmargin' and `vmargin'.
5901
5902 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
5903 and GLYPHS.
5904
5905 * dispnew.c (update_text_area): Put code which decrements the
5906 stop position when the row's face extends to the end of the
5907 line in #if 0.
5908
5909 * xfns.c (x_set_mouse_color): Fix color allocation.
5910
5911 * keyboard.c: Call get_local_map with new argument list.
5912
5913 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
5914
5915 * intervals.h (enum map_property): Removed.
5916 (get_local_map): Change prototype.
5917
5918 * keymap.c: Call get_local_map with new argument list.
5919 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
5920
5921 2001-01-11 Gerd Moellmann <gerd@gnu.org>
5922
5923 * xdisp.c (build_desired_tool_bar_string): Correct the computation
5924 of the size needed for the tool bar string. For the last image,
5925 use a `display' property that reaches to the end of the string.
5926
5927 * xselect.c (selection_request_dpyinfo): New variable.
5928 (x_handle_selection_request): Set it.
5929 (x_selection_request_lisp_error): Don't call
5930 x_decline_selection_request if selection request's display has
5931 been closed.
5932
5933 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
5934 Do the unregister_colors before calling XFreeColors.
5935
5936 2001-01-10 Dave Love <fx@gnu.org>
5937
5938 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
5939 ${SOME_MACHINE_LISP}, not ${lisp}.
5940
5941 2001-01-10 Gerd Moellmann <gerd@gnu.org>
5942
5943 * xdisp.c (display_line): On ttys, produce more than one truncation
5944 glyph for multi-column characters that don't fit on the line.
5945
5946 * xselect.c (x_reply_selection_request): Add a comment.
5947
5948 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
5949 XkbGetNames instead of XkbGetKeyboard.
5950
5951 2001-01-10 Dave Love <fx@gnu.org>
5952
5953 * sysdep.c (random): Revert the declaration.
5954
5955 2001-01-09 Gerd Moellmann <gerd@gnu.org>
5956
5957 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
5958 Call function string_bytes.
5959 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
5960
5961 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
5962 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
5963 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
5964 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
5965 the current sblock.
5966 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
5967 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
5968 after sweeping strings, and at the end.
5969 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
5970
5971 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
5972 ensure that pop_message is called.
5973
5974 * keyboard.c (Fexecute_extended_command): Use a
5975 record_unwind_protect to ensure that pop_message is called.
5976
5977 * lisp.h (push_message_unwind): Add prototype.
5978
5979 * xdisp.c (push_message_unwind): New function.
5980
5981 * fileio.c (do_auto_save_unwind): Do the pop_message here
5982 instead of in Fdo_auto_save.
5983 (Fdo_auto_save): Don't call pop_message.
5984
5985 2001-01-08 Ken Raeburn <raeburn@gnu.org>
5986
5987 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
5988 in inner block.
5989
5990 2001-01-08 Gerd Moellmann <gerd@gnu.org>
5991
5992 * window.c (window_scroll_pixel_based): Adjust glyph matrices
5993 when increasing window's vscroll.
5994
5995 * macros.c (Qkbd_macro_termination_hook): New variable.
5996 (syms_of_macros): Initialize and staticpro it.
5997 (pop_kbd_macro): Run kbd-macro-termination-hook.
5998
5999 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
6000
6001 2001-01-07 Dave Love <fx@gnu.org>
6002
6003 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
6004 arglist, for documentation's sake.
6005
6006 2001-01-06 Andrew Innes <andrewi@gnu.org>
6007
6008 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
6009 of *.pdb.
6010
6011 2001-01-05 Andrew Innes <andrewi@gnu.org>
6012
6013 * term.c (update_end): Don't check updating_frame; for some reason
6014 this can be 0 sometimes, such as after dismissing a popup menu,
6015 and isn't necessary given the explicit frame argument.
6016
6017 2001-01-05 Gerd Moellmann <gerd@gnu.org>
6018
6019 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
6020 on some systems, and an unsigned long on others, like FreeBSD 4.1.
6021
6022 2001-01-04 Gerd Moellmann <gerd@gnu.org>
6023
6024 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
6025
6026 * xfns.c (x_create_tip_frame): Preserve the value of
6027 face_change_count around the creation of the tip frame.
6028
6029 * xfns.c (last_show_tip_args): New variable.
6030 (compute_tip_xy): New function.
6031 (Fx_show_tip): Reuse an existing tip frame, if possible.
6032 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
6033
6034 2001-01-04 Dave Love <fx@gnu.org>
6035
6036 * editfns.c (Fformat): Doc fix.
6037
6038 * systime.h (set_file_times): Prototype.
6039
6040 * widget.h (EmacsFrameSetCharSize_): Prototype.
6041
6042 * sysdep.c (random, srandom): Declare explicitly.
6043
6044 * dispextern.h (move_it_vertically_backward): Declare.
6045
6046 2001-01-04 Gerd Moellmann <gerd@gnu.org>
6047
6048 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
6049 like in Fx_create_frame.
6050
6051 * xfaces.c (set_font_frame_param): Don't do anything for
6052 non-graphical frames.
6053
6054 * window.c (Fdelete_other_windows): Set window's window_end_valid
6055 to nil when changing the window's start. Don't change the
6056 window's start when its top position hasn't changed. If we do,
6057 this will set the window's optional_new_start, which act's like a
6058 force_start during redisplay with C-x 1 M-> under particular
6059 circumstances (see report from Per Starback to emacs-pretest-bug
6060 from 2000-12-13.).
6061
6062 2001-01-03 Gerd Moellmann <gerd@gnu.org>
6063
6064 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
6065 short cut at the start of the function. Add an assertion.
6066 (reseat_at_next_visible_line_start): Add an assertion.
6067
6068 * window.c (Frecenter): When changing the window start, set the
6069 window's window_end_valid to nil.
6070 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
6071
6072 * dispextern.h (move_it_past_eol): Add prototype.
6073
6074 * xdisp.c (move_it_past_eol): New function.
6075
6076 * window.c (Fwindow_end): Doc fix.
6077
6078 2001-01-03 Dave Love <fx@gnu.org>
6079
6080 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
6081
6082 2001-01-03 Gerd Moellmann <gerd@gnu.org>
6083
6084 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
6085 the enabled_p flag of the glyph row at window_end_vpos to 0.
6086 (handle_single_display_prop): Fix last change.
6087
6088 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
6089
6090 * window.c (Frecenter): Doc fix.
6091
6092 2001-01-02 Andrew Innes <andrewi@gnu.org>
6093
6094 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
6095
6096 * frame.h (output_method): Add output_w32_console method.
6097 (FRAME_W32_CONSOLE_P): New macro.
6098
6099 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
6100 use output_w32_console method.
6101 (Qw32_console): New Lisp_Object.
6102 (Fframep): Return it.
6103 (syms_of_frame): Init it.
6104 (Fframe_parameters): Report w32console as font for w32_console frames.
6105
6106 * xfaces.c (realize_default_face): Set face foreground and
6107 background to unspecified for w32_console frames.
6108 (realize_face): Realize face cache for w32_console frames.
6109 (realize_tty_face): Accept w32_console frames.
6110
6111 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
6112 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
6113 necessary, even if running interactively.
6114
6115 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
6116 w32_console frames.
6117
6118 * w32term.c (x_update_begin):
6119 (x_update_end):
6120 (x_clear_frame):
6121 (x_ins_del_lines):
6122 (x_change_line_highlight):
6123 (x_delete_glyphs):
6124 (w32_ring_bell):
6125 (x_update_begin):
6126 (x_update_end):
6127 (w32_reassert_line_highlight):
6128 (w32_frame_rehighlight):
6129 (w32_frame_raise_lower): Do nothing if not w32 frame.
6130
6131 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
6132
6133 * w32fns.c (Fx_display_color_cells): Determine correct value, when
6134 system doesn't tell us directly.
6135 (Fx_display_visual_class): Implement properly.
6136
6137 2001-01-02 Gerd Moellmann <gerd@gnu.org>
6138
6139 * window.c (Frecenter): Handle centering in graphical frames
6140 specially. Centering on the basis of line counts doesn't work
6141 reliably with variable-height lines.
6142
6143 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6144
6145 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
6146 and al[].
6147
6148 * composite.c (run_composition_function): Remove unused var `val'.
6149 (update_compositions): Remove unused variable `hook'.
6150
6151 * intervals.c (get_local_map): Remove unused variable `tem'.
6152
6153 * doprnt.c (doprnt1): Remove unused variable `size'.
6154
6155 * fns.c (Flength): Remove unused variable `tail'.
6156 (Fdelete): Remove unused variable `size'.
6157
6158 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
6159 and `gcpro2'.
6160
6161 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
6162
6163 * data.c (find_symbol_value): Remove extra 3rd argument in the
6164 call to swap_in_symval_forwarding.
6165
6166 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
6167
6168 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
6169 (trivial_regexp_p): Remove unused variable `c'.
6170 (boyer_moore): Remove unused variable `k'.
6171
6172 * indent.c (current_column): Remove unused variable `stopchar'.
6173 (Fcompute_motion): Remove unused variable `contin'.
6174
6175 * casefiddle.c (casify_object): Remove unused variable `tolen'.
6176
6177 * dired.c (directory_files_internal): Fix a typo in a comment.
6178 Remove an unused variable `handler'.
6179 (file_name_completion): Remove unused function-scope variable `dp'.
6180 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
6181 on BSD4_2.
6182
6183 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
6184
6185 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
6186 and `buf'.
6187 (Fmarker_insertion_type): Remove unused variable `buf'.
6188
6189 * insdel.c (make_gap): Remove unused variable `result'.
6190
6191 * keyboard.c (record_char): Remove unused function-scope var `help'.
6192 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
6193 (menu_bar_items): Remove unused function-scope variable `tem'.
6194
6195 * fontset.c (fontset_ref): Remove unused variable `i'.
6196 (fontset_set): Remove unused variables `j' and `tmp'.
6197 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
6198 (make_fontset_for_ascii_face): Remove unused variable `name'.
6199 (fs_load_font): Remove unused variable `font_idx'.
6200 (fs_query_fontset): Remove unused function-local variable `fontset'.
6201 (list_fontsets): Remove unused variable `tail'.
6202 (Fnew_fontset): Remove unused variables `family' and `registry'.
6203 (accumulate_font_info): Remove unused variable `tmp'.
6204 (Ffontset_font): Remove unused variable `id'.
6205 (syms_of_fontset): Remove unused variable `i'.
6206
6207 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
6208 to x_term_init.
6209 (lookup_image): Remove unused variable `file'.
6210 (xbm_load): Remove unused variables `bitmap_data', `height', and
6211 `width'. Remove function-local variable `i', leave the
6212 block-local one.
6213 (gif_load): Remove unused variable `inc'.
6214
6215 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
6216 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
6217 leave only the one in the inner block.
6218
6219 * xfaces.c (face_fontset, realize_default_face): Remove unused
6220 variable `fontset'.
6221 (face_at_buffer_position): Remove unused variable `multibyte_p'.
6222
6223 * term.c (encode_terminal_code): Remove unused variable `c'.
6224
6225 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
6226 char *' instead of `char *'.
6227
6228 * category.c (Fcategory_docstring): Remove unused variable `doc'.
6229 (Fget_unused_category): Remove unused variable `docstring_vector'.
6230 (Fchar_category_set): Remove unused variables `val', `charset',
6231 `c1' and `c2'.
6232
6233 * coding.c (detect_coding_iso2022, setup_coding_system):
6234 Remove unused variable `i'.
6235 (detect_coding_mask): Remove unused variable `idx'.
6236 (detect_coding): Remove unused variable `i'.
6237 (ccl_coding_driver): Remove unused variable `result'.
6238 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
6239 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
6240 (encode_coding_string): Remove unused variables `gcpro1' and
6241 `saved_coding_symbol'.
6242 (Ffind_coding_systems_region_internal): Remove function-local
6243 variable args[], leave only the block-local one.
6244 (code_convert_region1): Remove unused variable `len'.
6245
6246 * charset.c (char_printable_p): Remove unused variable `chars'.
6247 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
6248 (str_to_multibyte): Remove unused variable `c'.
6249
6250 * window.c (size_window): Remove block-local variable `min_size'.
6251
6252 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
6253 `header_line_height'.
6254 (append_space, extend_face_to_end_of_line): Declare `saved_what'
6255 enum display_element_type.
6256
6257 2001-01-02 Gerd Moellmann <gerd@gnu.org>
6258
6259 * xterm.c (x_connection_closed): Catch X errors around all
6260 statements that call X. Save away the error message in a local copy.
6261
6262 * xterm.c (x_connection_closed): Set handling_signal to 0 at
6263 the start.
6264
6265 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
6266 in or at the start of invisible text.
6267
6268 * dispnew.c (update_window): Don't check_current_matrix_flags.
6269
6270 2001-01-01 Jason Rumney <jasonr@gnu.org>
6271
6272 * w32fns.c (x_figure_window_size): Do not allow new_height and
6273 new_width of frame to override specified values.
6274
6275 2000-12-30 Kenichi Handa <handa@etl.go.jp>
6276
6277 * composite.c (find_composition): Fix a code for searching backward.
6278
6279 2000-12-29 Gerd Moellmann <gerd@gnu.org>
6280
6281 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
6282 (update_window) [GLYPH_DEBUG]: Call it.
6283 (scrolling_window): Prevent including current rows which are below
6284 what's displayed in the window.
6285
6286 * xdisp.c (try_window_reusing_current_matrix)
6287 <new start <= old start>: Disable rows in the current matrix
6288 which are below the window after scrolling.
6289
6290 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
6291 is zero. It's not worth the complexity.
6292 (invisible_text_between_p): Put in #if 0 because unused.
6293
6294 2000-12-28 Gerd Moellmann <gerd@gnu.org>
6295
6296 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
6297 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
6298
6299 * keyboard.c (echo_char): If C is an integer, always call
6300 push_key_description. Former code could signal an invalid
6301 character error.
6302
6303 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
6304 If set, print multibyte text.
6305 (Fsingle_key_description): Call push_key_description with
6306 FORCE_MULTIBYTE set.
6307 (describe_buffer_bindings): Likewise.
6308
6309 * lisp.h (push_key_description): Add prototype.
6310
6311 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
6312 around the call to redisplay_internal.
6313
6314 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
6315
6316 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
6317
6318 2000-12-28 Kenichi Handa <handa@etl.go.jp>
6319
6320 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
6321 (ccl_driver): New local variable `extra_bytes'.
6322
6323 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
6324
6325 * coding.c (setup_coding_system):
6326 Initialize coding->spec.ccl.eight_bit_carryover.
6327 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
6328
6329 2000-12-28 Kenichi Handa <handa@etl.go.jp>
6330
6331 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
6332 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
6333 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
6334 (decode_composition_emacs_mule): New function.
6335 (decode_coding_emacs_mule): Decode composition sequence by calling
6336 decode_composition_emacs_mule.
6337 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
6338 (encode_coding_emacs_mule): Changed from macro to function.
6339 If a text contains compositions, encode them correctly.
6340 (setup_coding_system): Set coding->commong_flags for emacs-mule so
6341 that decoding and encoding are required.
6342
6343 2000-12-27 Gerd Moellmann <gerd@gnu.org>
6344
6345 * xfaces.c (PT_PER_INCH): New macro.
6346 (xlfd_point_size): Compute real point size from font's pixel size.
6347 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
6348 instead of 72.
6349
6350 * .gdbinit: Comment out the line pointing to the Lesstif source
6351 directory.
6352
6353 * window.c (Frecenter): Use displayed_window_lines instead
6354 of window_internal_height.
6355
6356 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
6357 instead of x-toolkit-scroll-bars-p.
6358 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
6359
6360 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
6361 instead of x-toolkit-scroll-bars-p.
6362 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
6363
6364 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
6365 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
6366 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
6367 New variables.
6368 (add_window_display_history, add_frame_display_history)
6369 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
6370 (build_frame_matrix_from_leaf_window): Remove unused code.
6371 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
6372 redisplay history.
6373 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
6374 (update_window) [GLYPH_DEBUG]: Likewise.
6375 (syms_of_display): Defsubr dump-redisplay-history.
6376
6377 2000-12-23 Gerd Moellmann <gerd@gnu.org>
6378
6379 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
6380 the end of the prompt. Set echo_after_prompt to the offset
6381 of echoptr in echobuf.
6382
6383 * xdisp.c (init_from_display_pos): Pop until the iterator's
6384 stack is empty; there may be frames for stretch or images
6385 on the stack.
6386
6387 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
6388 (save_or_restore_current_matrix): New function for the same
6389 purpose, but more efficient.
6390 (adjust_frame_glyphs_for_frame_redisplay): Use it.
6391
6392 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
6393
6394 * xdisp.c (syms_of_xdisp): Fix last change.
6395
6396 2000-12-23 Gerd Moellmann <gerd@gnu.org>
6397
6398 * xdisp.c (syms_of_xdisp): Doc fix.
6399
6400 * xdisp.c (redisplay_window): Remove label restore_buffers;
6401 use finish_scroll_bars instead to make sure that scroll bars
6402 are redeemed. If we don't do this, flickering can result from
6403 scroll bars being destroyed and recreated.
6404
6405 2000-12-22 Jason Rumney <jasonr@gnu.org>
6406
6407 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
6408 in the wrong colors when the foreground is not black.
6409 (expose_window): Don't redraw the window that's currently being
6410 updated.
6411
6412 2000-12-22 Gerd Moellmann <gerd@gnu.org>
6413
6414 * window.c (size_window): When setting the window's too_small_ok
6415 flag, compare old size with minimum size depending on WIDTH_P,
6416 don't compare with window_min_width.
6417
6418 * window.c (delete_window): Simplify somewhat.
6419 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
6420 freeing window matrices. The flag windows_or_buffers_changed is
6421 set, so the next redisplay will consider all windows; this should
6422 suffice.
6423
6424 2000-12-22 Kenichi Handa <handa@etl.go.jp>
6425
6426 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
6427
6428 * ccl.h (struct ccl_program): New member cr_consumed.
6429
6430 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
6431 (CCL_READ_CHAR): Handle EOL conversion here.
6432 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
6433
6434 2000-12-21 Gerd Moellmann <gerd@gnu.org>
6435
6436 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6437
6438 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
6439 otherwise tabs of different size compare equal.
6440
6441 * callint.c (Fcall_interactively): Prevent a compiler warning.
6442
6443 * print.c (print_unwind): Return nil.
6444 (PRINTDECLARE): Initialize all local variables.
6445 (print_preprocess): Add a default case.
6446
6447 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
6448
6449 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
6450
6451 * window.c (delete_window, Fsplit_window)
6452 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
6453
6454 * dispextern.h (ensure_frame_matrix): Function declaration removed.
6455
6456 * dispnew.c (ensure_frame_matrix): Removed.
6457 (save_frame_matrix, restore_frame_matrix): New functions.
6458 (adjust_frame_glyphs_for_frame_redisplay): Use them.
6459
6460 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
6461 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
6462
6463 2000-12-21 Andrew Innes <andrewi@gnu.org>
6464
6465 * w32term.c (x_update_begin): Regenerate the palette here, rather
6466 than for each window.
6467
6468 * w32xfns.c (select_palette): Avoid calling SelectPalette if
6469 palette is NULL, since this corrupts memory! Also get
6470 display_info reference from frame.
6471
6472 2000-12-21 Jason Rumney <jasonr@gnu.org>
6473
6474 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
6475
6476 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
6477 to avoid returning without releasing it.
6478
6479 2000-12-21 Kenichi Handa <handa@etl.go.jp>
6480
6481 * keymap.c (push_key_description): Don't convert eight-bit-control
6482 and eight-bit-graphic to multibyte character.
6483
6484 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
6485 generic character and CODE1 is nil, return the smallest character
6486 in CHARSET.
6487
6488 2000-12-20 Dave Love <fx@gnu.org>
6489
6490 * s/osf5-0.h (NSIG): Don't redefine.
6491
6492 2000-12-20 Stefan Monnier <monnier@cs.yale.edu>
6493
6494 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
6495 excluding menu-bar and tool-bar.
6496 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
6497 (menu_item_p): Remove.
6498 (where_is_internal_1): Don't ignore menu-items.
6499
6500 2000-12-20 Gerd Moellmann <gerd@gnu.org>
6501
6502 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
6503 into account.
6504
6505 * window.c (make_window): Initialize window's min_hscroll.
6506 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
6507 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
6508 to zero.
6509 (struct saved_window): New member min_hscroll.
6510 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
6511 (Fset_window_configuration): Set window's min_hscroll.
6512 (save_window_save): Save window's min_hscroll.
6513 (compare_window_configurations): Compare min_hscroll values.
6514
6515 * window.h (struct window): New member min_hscroll.
6516
6517 * keyboard.c (echo_prompt): Prevent a compiler warning.
6518
6519 * xdisp.c (try_cursor_movement): Fix last change. The real
6520 condition is that PT is at the end of the row, and should
6521 be displayed at the start of the next row.
6522
6523 * xdisp.c (try_cursor_movement): If we end on a partially
6524 visible line, end we already decided to scroll, return -1.
6525
6526 * dispextern.h (ensure_frame_matrix): Add prototype.
6527
6528 * window.c (delete_window, Fsplit_window)
6529 (Fset_window_configuration): Call ensure_frame_matrix.
6530
6531 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
6532 New functions.
6533 (adjust_frame_glyphs_for_frame_redisplay): If display has been
6534 completed, call fake_current_matrices instead of marking frame
6535 garbaged.
6536
6537 2000-12-20 Jason Rumney <jasonr@gnu.org>
6538
6539 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
6540
6541 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
6542
6543 * fns.c (Frequire): Doc fix.
6544
6545 2000-12-19 Gerd Moellmann <gerd@gnu.org>
6546
6547 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
6548
6549 * dispnew.c (direct_output_for_insert): Fix check for mini-window
6550 currently displaying a message.
6551
6552 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
6553 xterm.h.
6554 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
6555
6556 2000-12-18 Andrew Innes <andrewi@gnu.org>
6557
6558 * w32.c (w32_strerror): New function.
6559
6560 * w32.h (w32_strerror): New extern.
6561
6562 * w32fns.c (Fw32_shell_execute): Use it.
6563
6564 2000-12-18 Gerd Moellmann <gerd@gnu.org>
6565
6566 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
6567
6568 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
6569
6570 * msdos.c (IT_set_face): Obey inverse_video.
6571
6572 2000-12-18 Kenichi Handa <handa@etl.go.jp>
6573
6574 * dired.c (directory_files_internal): Always return decoded filenames.
6575
6576 2000-12-18 Gerd Moellmann <gerd@gnu.org>
6577
6578 * xterm.c (x_connection_closed): Prevent being called recursively
6579 because of an error condition in XtCloseDisplay.
6580
6581 * xdisp.c (init_iterator): If noninteractive, and the frame's
6582 face cache is null, make one.
6583
6584 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
6585
6586 * process.c (wait_reading_process_input): Check for pending
6587 input when running timers.
6588
6589 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
6590
6591 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
6592
6593 2000-12-18 Kenichi Handa <handa@etl.go.jp>
6594
6595 * process.c (read_process_output): Don't run a filter if the code
6596 decoder produces nothing but carryover.
6597
6598 2000-12-17 Andrew Innes <andrewi@gnu.org>
6599
6600 * w32.c (sys_rename): Only check errno against EEXIST, and not
6601 EACCES, when determining whether rename failed because the target
6602 exists. This was resulting in indefinite looping on Windows 9x if
6603 the source file was locked by another process.
6604
6605 * w32fns.c (Ffile_system_info): New function.
6606 (syms_of_w32fns): Defsubr it.
6607
6608 2000-12-17 Gerd Moellmann <gerd@gnu.org>
6609
6610 * window.c (coordinates_in_window): Fix computation for
6611 position on vertical line between mode lines.
6612
6613 * xfns.c (unwind_create_frame): Return t if frame was deleted.
6614 Don't alter tip_frame or tip_window.
6615 (unwind_create_tip_frame): Set tip_frame to nil only if frame
6616 was deleted.
6617
6618 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
6619 Don't alter tip_frame or tip_window.
6620 (unwind_create_tip_frame): Set tip_frame to nil only if frame
6621 was deleted.
6622
6623 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
6624
6625 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
6626 be consistent with the doc string. Reported by NAKAJIMA Mikio
6627 <minakaji@osaka.email.ne.jp>.
6628
6629 2000-12-16 Kenichi Handa <handa@etl.go.jp>
6630
6631 * xfaces.c (Vface_ignored_fonts): New variable.
6632 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
6633 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
6634
6635 2000-12-15 Gerd Moellmann <gerd@gnu.org>
6636
6637 * dispnew.c (update_window): Detect pending input every nth line
6638 updated, i.e. do it depending on real work done, and not on the
6639 vpos of the line.
6640
6641 * xterm.c (expose_window): Don't redraw the window that's
6642 currently being updated.
6643
6644 * window.c (Fset_window_point): Remove test for
6645 cursor_in_non_selected_windows.
6646
6647 * lread.c (read1): Recognize end of file after `\\'.
6648
6649 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
6650 not unwind_create_frame.
6651
6652 2000-12-15 Dave Love <fx@gnu.org>
6653
6654 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
6655 bcopy & al.
6656
6657 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
6658
6659 2000-12-15 Kenichi Handa <handa@etl.go.jp>
6660
6661 * coding.c (setup_coding_system): Clear all members of the struct
6662 coding_system at first.
6663 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
6664 argument.
6665 (code_convert_region): Don't override coding->src_multibyte and
6666 coding->dst_multibyte.
6667
6668 * fns.c (Fmd5): Docstring improved.
6669
6670 2000-12-15 Miles Bader <miles@gnu.org>
6671
6672 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
6673 are actually marked as mode-lines; otherwise use
6674 estimate_mode_line_height.
6675
6676 2000-12-14 Gerd Moellmann <gerd@gnu.org>
6677
6678 * editfns.c (Fformat): Prevent a buffer overrun when the format
6679 specifies a precision.
6680
6681 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
6682
6683 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
6684 argument is outside the range [2..3].
6685
6686 2000-12-14 Andrew Innes <andrewi@gnu.org>
6687
6688 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
6689 nothing to do. Bind inhibit-quit.
6690 (tip_frame): Make it a Lisp_Object.
6691 (x_create_tip_frame): Set tip_frame after it has been added to
6692 Vframe_list.
6693 (Fx_show_tip): Don't set tip_frame here.
6694 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
6695 (unwind_create_frame, unwind_create_tip_frame): New functions.
6696 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
6697 while a frame is only partially constructed.
6698
6699 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
6700 (x_free_frame_resources): New function.
6701 (x_destroy_window): Use it.
6702
6703 2000-12-14 Gerd Moellmann <gerd@gnu.org>
6704
6705 * xfns.c (Fx_backspace_delete_keys_p): New function.
6706 (syms_of_xfns): Defsubr it.
6707
6708 * config.in (HAVE_XKBGETKEYBOARD): Add.
6709
6710 2000-12-14 Kenichi Handa <handa@etl.go.jp>
6711
6712 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
6713 Always store string in multibyte representation in echobuf.
6714 (echo_char): Always store string in multibyte representation in
6715 echobuf.
6716 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
6717 (read_key_sequence): Adjusted for the change of echo_prompt.
6718
6719 * fns.c (Fmd5): Docstring improved.
6720
6721 * lisp.h (detect_coding_system): Prototype adjusted.
6722
6723 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
6724 (detect_coding_emacs_mule, detect_coding_iso2022,)
6725 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
6726 (detect_coding_utf_16, detect_coding_ccl): Make them static.
6727 New argument MULTIBYTEP. Callers changed.
6728 (detect_coding_mask, detect_coding_system): New argument
6729 MULTIBYTEP. Callers changed.
6730 (decode_coding_string): Set coding->src_multibyte and
6731 coding->dst_multibyte before calling detect_coding and detect_eol.
6732 Update them after some coding system is detected.
6733
6734 2000-12-13 Stefan Monnier <monnier@cs.yale.edu>
6735
6736 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
6737
6738 * keyboard.c (menu_bar_items, tool_bar_items):
6739 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
6740
6741 2000-12-13 Gerd Moellmann <gerd@gnu.org>
6742
6743 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
6744 New variables.
6745 (unwind_create_frame, unwind_create_tip_frame): New functions.
6746 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
6747 while a frame is only partially constructed.
6748
6749 * xterm.h (x_free_frame_resources): Declare.
6750
6751 * xterm.c (x_free_frame_resources): New function.
6752 (x_destroy_window): Use it.
6753
6754 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
6755 don't interrupt the update for pending input initially, i.e.
6756 update at least some lines.
6757
6758 * keyboard.c (do_mouse_tracking): Make externally visible.
6759
6760 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
6761
6762 * xfns.c (gray_bitmap_bits): Declare `char *'.
6763
6764 2000-12-12 Gerd Moellmann <gerd@gnu.org>
6765
6766 * xdisp.c (display_tool_bar_line): Make sure that tool bar
6767 lines start with a relief line.
6768
6769 2000-12-12 Dave Love <fx@gnu.org>
6770
6771 * window.c (Fdisplay_buffer): Doc fix.
6772 (Fwindow_list): Remove unused var.
6773
6774 * buffer.h (mmap_set_vars): Declare.
6775
6776 * window.h (Fset_window_point): Declare.
6777
6778 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
6779
6780 * msdos.c (fast_find_position): Don't overstep the last window row.
6781 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
6782 variable `area'. When looking for a row under (X,Y), give up if some
6783 of the previous rows is not enabled.
6784
6785 2000-12-12 Gerd Moellmann <gerd@gnu.org>
6786
6787 * window.c (Fset_window_point): If displaying cursors in windows
6788 other than the selected window, make sure redisplay updates
6789 other windows to show the new value of point in the window.
6790
6791 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
6792
6793 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
6794 the buffer is the sole visible buffer when in the mini-buffer.
6795
6796 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
6797 Bind `inhibit-read-only' to t.
6798 (unwind_with_echo_area_buffer): Use AREF.
6799
6800 * xfns.c (Fx_hide_tip): Simplified.
6801
6802 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
6803 instead of `1'.
6804
6805 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
6806
6807 2000-12-11 Gerd Moellmann <gerd@gnu.org>
6808
6809 * xfns.c (Fx_hide_tip): Fix last change.
6810
6811 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
6812 nothing to do. Bind inhibit-quit.
6813 (tip_frame): Make it a Lisp_Object.
6814 (x_create_tip_frame): Set tip_frame after it has been added to
6815 Vframe_list.
6816 (Fx_show_tip): Don't set tip_frame here.
6817
6818 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
6819
6820 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
6821 Lisp_Object.
6822
6823 * dispextern.h: Change external declaration of tip_frame.
6824
6825 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
6826 return an empty string.
6827
6828 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
6829 of the window's update_mode_line flag, since the former is set by
6830 force-mode-line-update, not the latter. This makes
6831 column-number-mode slightly faster.
6832
6833 * xdisp.c (try_window_id) <all changes above window start>:
6834 Set the cursor.
6835
6836 2000-12-11 Paul Eggert <eggert@twinsun.com>
6837
6838 * config.in (HAVE_FTELLO): Remove.
6839 (HAVE_FSEEKO): Add.
6840 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
6841 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
6842 HAVE_FTELLO.
6843 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
6844 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
6845
6846 2000-12-11 Miles Bader <miles@gnu.org>
6847
6848 * window.c (displayed_window_lines): Don't round up when
6849 converting empty space at bottom to lines.
6850 Handle non-newline-terminated final lines properly.
6851 (Fwindow_text_height): New function (used to be in lisp).
6852 (syms_of_window): Initialize it.
6853
6854 2000-12-09 Stefan Monnier <monnier@cs.yale.edu>
6855
6856 * syntax.c (scan_lists): Check that the right quote char has the
6857 right Sstring syntax when jumping over strings.
6858 (init_syntax_once): Use Smax rather than 13.
6859
6860 2000-12-09 Miles Bader <miles@gnu.org>
6861
6862 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
6863 with PARTIALLY, inverting the sense.
6864 (window_scroll_pixel_based): Scroll partially visible lines into
6865 place if we hit the beginning or end of the buffer.
6866 (displayed_window_lines): Don't include partially visible lines.
6867 (Fmove_to_window_line): Skip past any partially visible first line.
6868
6869 2000-12-08 Gerd Moellmann <gerd@gnu.org>
6870
6871 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
6872
6873 * tparam.c (tparam1): Change the way buffers are reallocated to be
6874 portable and less obfuscated.
6875
6876 * termcap.c (tgetent): Change the way buffers are reallocated to
6877 be portable and less obfuscated.
6878
6879 * macros.c (store_kbd_macro_char): Change the way buffers are
6880 reallocated to be portable and less obfuscated.
6881
6882 * lread.c (read1): Change the way buffers are reallocated to be
6883 portable and less obfuscated.
6884
6885 * doc.c (Fsubstitute_command_keys): Change the way buffers
6886 are reallocated so that it is portable.
6887
6888 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
6889
6890 * dosfns.c (Ffile_system_info): New function.
6891 (syms_of_dosfns): Defsubr it.
6892
6893 2000-12-07 Stefan Monnier <monnier@cs.yale.edu>
6894
6895 * alloc.c (gc_sweep): Add comment.
6896
6897 2000-12-07 Gerd Moellmann <gerd@gnu.org>
6898
6899 * sound.c (vox_configure): Change order of ioctls.
6900 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
6901 Ignore errors when changing volume.
6902 (vox_close): Don't reset the device.
6903
6904 * process.c (read_process_output): Make sure the process marker's
6905 position is valid when the process buffer is changed in
6906 after-change functions. W3 does that.
6907
6908 * xfns.c (x_free_gcs): New function.
6909
6910 * xterm.h (x_free_gcs): Add prototype.
6911
6912 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
6913 freeing GCs here.
6914
6915 * xterm.c (x_destroy_window): Call x_free_gcs so that
6916 resources of non-toolkit X windows will be freed.
6917
6918 2000-12-07 Andrew Innes <andrewi@gnu.org>
6919
6920 * w32fns.c (xlfd_charset_of_font): Fix last change.
6921
6922 2000-12-06 Dave Love <fx@gnu.org>
6923
6924 * md5.h (__P): Don't define -- it comes from config.h.
6925
6926 * strftime.c: Change some #if foo to #ifdef foo.
6927
6928 2000-12-06 Andrew Innes <andrewi@gnu.org>
6929
6930 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
6931
6932 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
6933 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
6934 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
6935
6936 2000-12-06 Gerd Moellmann <gerd@gnu.org>
6937
6938 * alloc.c (gc_sweep): Prevent symbols read during loadup
6939 from being freed.
6940
6941 * xdisp.c (underlying_face_id): New function.
6942 (handle_face_prop, face_before_or_after_it_pos): Use it
6943 to determine the face ``under'' a string. Let strings inherit
6944 the face of the buffer under them.
6945
6946 * xfaces.c (face_at_string_position): Update function comment.
6947
6948 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
6949 matrix if the window's left position has changed; we need to
6950 redraw it in this case.
6951
6952 * dispextern.h (struct glyph_matrix): Add member window_left_x.
6953
6954 * window.c (coordinates_in_window): Check mouse on mode-line or
6955 header-line first.
6956
6957 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
6958 advertized by the function documentation.
6959
6960 * window.c (syms_of_window): Doc fix.
6961
6962 * sound.c (vox_configure): Set volume for left and right channel.
6963 (sound_cleanup): Return nil.
6964
6965 * xdisp.c (move_it_by_lines): Fix paren typo.
6966
6967 * xterm.c (x_load_font): Don't use the font's max_bounds for
6968 computing the height of the font. If max_bounds' ascent or
6969 descent are greater than the font's ascent or descent, this means
6970 glyphs overlap, which should be handled now by redisplay.
6971
6972 * window.c (Veven_window_heights): New variable.
6973 (syms_of_window): DEFVAR_LISP it.
6974 (Fdisplay_buffer): Check Veven_window_heights before evening the
6975 window heights.
6976
6977 2000-12-06 Miles Bader <miles@gnu.org>
6978
6979 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
6980 update `default-frame-alist' instead of setting no frame parameters.
6981
6982 2000-12-06 Kenichi Handa <handa@etl.go.jp>
6983
6984 * composite.c (update_compositions): Fix typo (use the correct
6985 variable).
6986
6987 2000-12-05 Jason Rumney <jasonr@gnu.org>
6988
6989 * md5.h: Remove underscores from function declarations.
6990 (__attribute__, __alignof__) [!__GNUC__]: Define.
6991
6992 * md5.c: Delay include of md5.h until after namespace cleaning.
6993
6994 * makefile.w32-in (fns.o): Depend on md5.h
6995 (md5.o): New target.
6996 (sunfns.o): Remove.
6997
6998 * makefile.nt: Likewise.
6999
7000 2000-12-05 Jason Rumney <jasonr@altavista.net>
7001
7002 * w32term.c (expose_area): Complete last change.
7003
7004 2000-12-05 Ken Raeburn <raeburn@gnu.org>
7005
7006 * minibuf.c: Include intervals.h.
7007
7008 2000-12-05 Jason Rumney <jasonr@gnu.org>
7009
7010 * w32term.c (x_produce_glyphs): If a font for a component of
7011 a composition is not found, use 1 pixel dot ascent and 0 dot
7012 descent value to avoid displaying terribly tall empty boxes.
7013 (expose_area): Pass x-coordinate relative to the exposed
7014 area to x_draw_glyphs instead of a window-relative coordinate.
7015
7016 2000-12-05 Gerd Moellmann <gerd@gnu.org>
7017
7018 * xdisp.c (next_element_from_ellipsis): Save face before selective
7019 display in saved_face_id, and set face_before_selective_p.
7020 (reseat_1): Reset face_before_selective_p.
7021 (append_space, extend_face_to_end_of_line): If iterator's
7022 face_before_selective_p is set, use the face from saved_face_id.
7023 (extend_face_to_end_of_line): For tty frames, make sure to
7024 use the right face id when producing spaces at the end of
7025 the line.
7026
7027 * dispextern.h (struct it): Add face_before_selective_p.
7028
7029 * keyboard.c (record_char): Don't record identical help-echo
7030 events in recent_keys.
7031
7032 * xterm.c [USE_X_TOOLKIT]: Close the display.
7033 (xim_close_dpy): Handle case that the display has been closed.
7034
7035 * xterm.c (x_destroy_window): Reset the frame's X window after
7036 destroying it.
7037
7038 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
7039 variable window_width.
7040 (line_draw_cost): Fix code skipping over spaces at the end of the
7041 line when must_write_spaces is not set.
7042 (scrolling_window): Fix code inserting runs in list of all runs.
7043
7044 2000-12-05 Kenichi Handa <handa@etl.go.jp>
7045
7046 * coding.c (setup_coding_system): Be sure to initialize
7047 coding->category_idx.
7048
7049 2000-12-04 Gerd Moellmann <gerd@gnu.org>
7050
7051 * xterm.c (PER_CHAR_METRIC): Removed because not used.
7052
7053 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
7054 area to x_draw_glyphs instead of a window-relative coordinate.
7055
7056 * fileio.c (auto_save_error): Add parameter ERROR. Show the
7057 error in the message.
7058
7059 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
7060 timer after having read a key. It's not good for code reading
7061 several keys in a loop, like an input method.
7062
7063 * fileio.c (Finsert_file_contents): When VISIT is t, don't
7064 record undo information for format-decode.
7065
7066 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
7067 current buffer is read-only, not if it isn't.
7068
7069 * keyboard.c (record_char): Record `help-echo' input events
7070 in recent_keys only if they display some help. Don't record
7071 `help-echo' events as macro char.
7072
7073 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
7074
7075 * editfns.c (save_excursion_restore): Don't move point
7076 in another window if it is showing the wrong buffer.
7077 Avoid the call to Fwindow_live_p, for speed.
7078
7079 2000-12-04 Kenichi Handa <handa@etl.go.jp>
7080
7081 * xfaces.c (struct font_name): New member registry_priority.
7082 (split_font_name): Initialize the above member to zero.
7083 (concat_font_list): New function.
7084 (font_list): Include fonts of all alternative registries.
7085 (FONT_POINT_SIZE_QUANTUM): New macro.
7086 (better_font_p): Ignore point size difference less than
7087 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
7088
7089 * xterm.c (x_produce_glyphs): If a font for a component of
7090 a composition is not found, use 1 pixel dot ascent and 0 dot
7091 descent value to avoid displaying terribly tall empty boxes.
7092
7093 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
7094
7095 2000-12-03 Ken Raeburn <raeburn@gnu.org>
7096
7097 * coding.h (code_convert_string1): Declare.
7098
7099 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
7100
7101 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
7102
7103 2000-12-02 Jason Rumney <jasonr@gnu.org>
7104
7105 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
7106 correctly for single byte character case.
7107 (w32_per_char_metric): Do not try to make any assumptions about
7108 the metrics of BDF fonts.
7109 (x_estimate_mode_line_height): If `mode-line' face
7110 hasn't a font, use that of the frame, as drawing glyphs does.
7111 (note_mouse_highlight): Change the cursor shape on the vertical
7112 border between windows [not enabled].
7113
7114 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
7115
7116 * w32fns.c (Fx_create_frame): Reintroduce the call to
7117 face-set-after-frame-defaults.
7118 (Vx_window_horizontal_drag_shape): New variable.
7119 (syms_of_xfns): DEFVAR_LISP it.
7120 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
7121 enabled].
7122
7123 2000-12-02 Simon Josefsson <simon@josefsson.org>
7124
7125 * fns.c (Fmd5): Use a different logic to decide the coding system
7126 to use.
7127
7128 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
7129
7130 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
7131
7132 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
7133
7134 2000-12-01 Gerd Moellmann <gerd@gnu.org>
7135
7136 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
7137 height for YNegative.
7138 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
7139 height; also see comment there.
7140
7141 * window.c (coordinates_in_window): Handle computations for
7142 positions on the vertical bar and fringes differently for
7143 window-system frames. Consider some pixels near the vertical bar
7144 as on the bar if the frame doesn't have vertical scroll bars.
7145 Associate positions between mode or header lines with the
7146 right window, the left one.
7147
7148 2000-12-01 Jason Rumney <jasonr@gnu.org>
7149
7150 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
7151
7152 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
7153 invalid frame.
7154
7155 2000-12-01 Gerd Moellmann <gerd@gnu.org>
7156
7157 * window.c (struct saved_window): Add members orig_top and orig_height.
7158 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
7159 (save_window_save, Fset_window_configuration): Save/restore
7160 window's orig_top and orig_height.
7161
7162 2000-12-01 Jason Rumney <jasonr@gnu.org>
7163
7164 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
7165
7166 * w32fns.c (x_set_cursor_color): Fix last change.
7167
7168 2000-11-30 Gerd Moellmann <gerd@gnu.org>
7169
7170 * xdisp.c (echo_area_display): If cursor is in the echo area, make
7171 sure that the next redisplay displays the minibuffer, so that
7172 the cursor will be replaced with what the minibuffer wants.
7173
7174 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
7175 #ifndef instead of using #if.
7176 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
7177 USE_TOOLKIT_SCROLL_BARS is defined.
7178
7179 2000-11-30 Jason Rumney <jasonr@gnu.org>
7180
7181 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
7182 x_display_cursor.
7183
7184 2000-11-30 Gerd Moellmann <gerd@gnu.org>
7185
7186 * fns.c (Fmd5): Doc fix.
7187
7188 2000-11-30 Simon Josefsson <simon@josefsson.org>
7189
7190 * fns.c (Fmd5): New function.
7191 (syms_of_fns): Defsubr md5.
7192
7193 * Makefile.in (obj): Add md5.o
7194
7195 2000-11-30 Gerd Moellmann <gerd@gnu.org>
7196
7197 * md5.h, md5.c: New files, taken from glibc.
7198
7199 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
7200
7201 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
7202 hasn't a font, use that of the frame, as drawing glyphs does.
7203
7204 2000-11-29 Stefan Monnier <monnier@cs.yale.edu>
7205
7206 * eval.c (Frun_hooks): Allow 0 arguments.
7207
7208 2000-11-29 Gerd Moellmann <gerd@gnu.org>
7209
7210 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
7211 is over the menu bar widget, say it's not on the frame.
7212
7213 * xfns.c (Fx_create_frame): Reintroduce the call to
7214 face-set-after-frame-defaults.
7215
7216 * eval.c (Fsignal): Reset handling_signal.
7217
7218 2000-11-28 Jason Rumney <jasonr@gnu.org>
7219
7220 * w32menu.c (add_menu_item): Reset menu item text when changing
7221 type to radio button.
7222
7223 2000-11-28 Gerd Moellmann <gerd@gnu.org>
7224
7225 * xselect.c: Update copyright.
7226
7227 * window.c (coordinates_in_window): If on a mode or header line,
7228 but sufficiently close to its start, return ``on vertical
7229 border''. This gives us a way to drag windows horizontally when
7230 using toolkit scroll bars.
7231
7232 * xterm.c (note_mouse_highlight): Change the cursor shape
7233 on the vertical border between windows.
7234
7235 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
7236
7237 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
7238 (syms_of_xfns): DEFVAR_LISP it.
7239 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
7240
7241 * textprop.c (text_read_only): New function.
7242 (verify_interval_modification): Use it instead of signaling
7243 `text-read-only'. This makes it easier to catch this error
7244 with a breakpoint.:
7245
7246 * xdisp.c (forward_to_next_line_start): Check for newlines,
7247 not end of line, which includes CR.
7248
7249 2000-11-28 Kenichi Handa <handa@etl.go.jp>
7250
7251 * coding.c (Ffind_coding_systems_region_internal): Be sure to
7252 include no-conversion.
7253
7254 2000-11-27 Jason Rumney <jasonr@gnu.org>
7255
7256 * w32fns.c (w32_load_system_font): Always mark font as double byte
7257 if codepage is unicode.
7258
7259 2000-11-27 Gerd Moellmann <gerd@gnu.org>
7260
7261 * xdisp.c (forward_to_next_line_start): If already on a newline,
7262 just consume it to avoid unintended skipping over invisible text below.
7263
7264 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
7265 `vertical-line', `mode-line' and `header-line' events.
7266
7267 * xdisp.c (try_window_id): Avoid starting to display in the middle
7268 of a character, a TAB for instance. This is easier than to set
7269 up the iterator exactly, and it's not a frequent case, so the
7270 additional effort wouldn't really pay off.
7271
7272 2000-11-26 Andrew Choi <akochoi@i-cable.com>
7273
7274 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
7275 init_window_once.
7276
7277 2000-11-25 Jason Rumney <jasonr@gnu.org>
7278
7279 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
7280 Args to window_from_coordinates should be pixel coordinates.
7281
7282 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
7283 redisplay handles them properly.
7284
7285 2000-11-25 Miles Bader <miles@gnu.org>
7286
7287 * indent.c (compute_motion): Keep pos_byte in sync with pos.
7288
7289 2000-11-24 Jason Rumney <jasonr@gnu.org>
7290
7291 * w32.c (init_environment): Set LANG environment variable based on
7292 locale settings, if not set.
7293
7294 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
7295 making tool bar smaller. When clearing the frame, also
7296 clear current matrices. Clear frame when tool bar disappears.
7297 Don't use more lines for the tool-bar than is available.
7298 (x_change_window_heights): New function.
7299
7300 2000-11-24 Gerd Moellmann <gerd@gnu.org>
7301
7302 * xdisp.c (init_from_display_pos): If POS says we're already after
7303 an overlay string ending at POS, make sure to pop the iterator
7304 because it will be in front of that overlay string. When POS is
7305 ZV, we've thereby also ``processed'' overlay strings at ZV.
7306
7307 * xfaces.c (lface_from_face_name): Function comment fix.
7308
7309 2000-11-24 Miles Bader <miles@gnu.org>
7310
7311 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
7312 apply `mode-line-inverse-video' -- zero means force display using
7313 the default face, non-zero means display using the specialized face.
7314 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
7315
7316 2000-11-23 Kenichi Handa <handa@etl.go.jp>
7317
7318 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
7319 hard coded `4'.
7320
7321 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
7322
7323 * coding.c (decode_coding_emacs_mule): Fix the case of
7324 CODING_EOL_LF, which used uninitialized value of c.
7325
7326 2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
7327
7328 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
7329
7330 2000-11-22 Gerd Moellmann <gerd@gnu.org>
7331
7332 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
7333 buffer object.
7334
7335 * frame.h (struct frame): Replace desired_tool_bar_items,
7336 current_tool_bar_items, n_desired_tool_bar_items,
7337 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
7338
7339 * frame.c (make_frame): Change initialization of tool bar
7340 items accordingly.
7341
7342 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
7343 Change references to members deleted from struct frame to use the
7344 new ones.
7345
7346 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
7347 references to members deleted from struct frame to use the new ones.
7348
7349 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
7350
7351 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
7352
7353 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
7354 (note_tool_bar_highlight): Change references to members deleted
7355 from struct frame to use the new ones.
7356
7357 2000-11-23 Miles Bader <miles@gnu.org>
7358
7359 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
7360 the face's inverse-video attribute, rather than overriding it.
7361
7362 2000-11-22 Gerd Moellmann <gerd@gnu.org>
7363
7364 * xfns.c (x_set_tool_bar_lines): Clear internal border when
7365 making tool bar smaller.
7366
7367 2000-11-22 Dave Love <fx@gnu.org>
7368
7369 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
7370
7371 2000-11-22 Miles Bader <miles@gnu.org>
7372
7373 * keyboard.c (Vminibuffer_message_timeout): New variable.
7374 (command_loop_1): Use it to determine message timeout.
7375 (syms_of_keyboard): Initialize it.
7376
7377 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
7378
7379 2000-11-22 Kenichi Handa <handa@etl.go.jp>
7380
7381 * sysdep.c: Move the code for declaring h_errno after #include
7382 <netdb.h>.
7383
7384 2000-11-21 Gerd Moellmann <gerd@gnu.org>
7385
7386 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
7387 the menu bar when the tooltip is unmapped.
7388
7389 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
7390 sole visible buffer when we're currently in the mini-buffer, and
7391 give up if so.
7392
7393 2000-11-21 Jason Rumney <jasonr@gnu.org>
7394
7395 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
7396 put on the clipboard.
7397 (Fw32_get_clipboard_data): Compare data on clipboard with saved
7398 copy of what Emacs last put there. If they are the same, do not
7399 use the clipboard copy to avoid losing data due to coding conversions.
7400
7401 2000-11-22 Miles Bader <miles@gnu.org>
7402
7403 * minibuf.c (Vminibuffer_prompt_properties): New variable.
7404 (syms_of_minibuf): Initialize it.
7405 (read_minibuf): Add properties from Vminibuffer_prompt_properties
7406 to prompt, don't make read-only.
7407
7408 2000-11-21 Gerd Moellmann <gerd@gnu.org>
7409
7410 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
7411 Add BEFORE/AFTER_POTENTIAL_GC.
7412
7413 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
7414
7415 * buffer.c (mmap_free_1): Avoid a compiler warning.
7416
7417 * term.c, cm.c: Don't try to include termcap.h; see comment there.
7418
7419 2000-11-21 Kenichi Handa <handa@etl.go.jp>
7420
7421 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
7422 ... #endif scope.
7423
7424 2000-11-20 Gerd Moellmann <gerd@gnu.org>
7425
7426 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
7427 screen supports it.
7428
7429 * s/gnu-linux.h: Don't use `#cpu'.
7430
7431 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
7432 not defined in mman.h.
7433
7434 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
7435 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
7436 and store an index in the XClientMessageEvent. Storing a
7437 Lisp_Object or pointer can fail on a 64 bit system, since X only
7438 transfers 32 bits.
7439 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
7440
7441 2000-11-20 Dave Love <fx@gnu.org>
7442
7443 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
7444
7445 2000-11-20 Gerd Moellmann <gerd@gnu.org>
7446
7447 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
7448
7449 2000-11-20 Kenichi Handa <handa@etl.go.jp>
7450
7451 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
7452 by WIDTH.
7453
7454 * alloc.c (make_string): Fix previous change. Be sure to make
7455 unibyte string correctly.
7456
7457 2000-11-19 Gerd Moellmann <gerd@gnu.org>
7458
7459 * window.c (Fwindow_list): Change parameter list to be XEmacs
7460 compatible.
7461 (window_list_1): New function.
7462 (window_loop): Use it instead of Fwindow_list.
7463
7464 * sysdep.c (emacs_ospeed): New variable.
7465 (toplevel): Don't declare ospeed extern.
7466 (init_baud_rate): Use emacs_ospeed instead of ospeed.
7467
7468 * termcap.c (ospeed): Remove.
7469 (tputs) [!emacs]: Remove unused code.
7470 (tgetent): Avoid a compiler warning.
7471
7472 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
7473 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
7474 SCROLL_BAR_X_WIDGET with additional argument DPY.
7475
7476 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
7477 removed.
7478 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
7479 Take the X display as additional argument.
7480 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
7481 `Widget' is a pointer type that's not easily stored in Lisp_Object
7482 form in a portable way.
7483
7484 * dispnew.c (update_text_area): Fix last change.
7485
7486 2000-11-18 Gerd Moellmann <gerd@gnu.org>
7487
7488 * xdisp.c: Use BINDING_STACK_SIZE throughout.
7489
7490 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
7491 clear current matrices.
7492
7493 * buffer.c (mmap_enlarge): Don't print a message on stderr
7494 if mapping new memory at the end of the existing region fails.
7495
7496 * dispnew.c (update_text_area): Don't skip over equal glyphs
7497 when the last current glyph overlaps the glyph to its right.
7498
7499 2000-11-18 Miles Bader <miles@gnu.org>
7500
7501 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
7502 lines that *end* with "..." too (that's the most common case!).
7503
7504 2000-11-18 Gerd Moellmann <gerd@gnu.org>
7505
7506 * xdisp.c (resize_mini_window): Temporarily change to the
7507 mini-window's buffer if necessary.
7508
7509 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
7510 the tooltip obscures less text under it.
7511
7512 2000-11-17 Gerd Moellmann <gerd@gnu.org>
7513
7514 * puresize.h (BASE_PURESIZE): Increase to 700000.
7515
7516 2000-11-18 Jason Rumney <jasonr@gnu.org>
7517
7518 * w32term.c (w32_draw_bitmap): Use face to set colors.
7519
7520 2000-11-17 Dave Love <fx@gnu.org>
7521
7522 * lread.c (Fload): Fix #ifdef for pcc.
7523
7524 2000-11-17 Gerd Moellmann <gerd@gnu.org>
7525
7526 * xdisp.c (pos_visible_p): Compute the default character height
7527 differently.
7528
7529 2000-11-16 Gerd Moellmann <gerd@gnu.org>
7530
7531 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
7532 knowing the line's height; use the default font's height in that case.
7533
7534 * xfaces.c (weight_table): Add `demi' with the same meaning as
7535 `demibold'.
7536
7537 2000-11-16 Kenichi Handa <handa@etl.go.jp>
7538
7539 * dispnew.c (null_row): New global static variable.
7540 (clear_glyph_row): Delete local static variable null_row.
7541
7542 2000-11-15 Jason Rumney <jasonr@gnu.org>
7543
7544 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
7545 (w32_alloc_lighter_color): Use new brightness calculations from
7546 xterm.c. Scale delta to be in the range expected by W32.
7547 (w32_draw_relief_rect): Use frame relief colors.
7548
7549 2000-11-15 Gerd Moellmann <gerd@gnu.org>
7550
7551 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
7552 (Qinhibit_default_face_x_resources): New variable.
7553 (syms_of_frame): Initialize it.
7554 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
7555
7556 * xdisp.c (pos_visible_p): Improve function comment.
7557
7558 * lisp.h (BINDING_STACK_SIZE): New macro.
7559
7560 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
7561 reading the directory if readdir returns null and errno is EAGAIN
7562 or EINTR.
7563
7564 2000-11-14 Stefan Monnier <monnier@cs.yale.edu>
7565
7566 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
7567 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
7568 Set amount_to_scroll to max of dx and scroll_step so that
7569 scroll-conservatively doesn't defeat scroll-step>1.
7570 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
7571 scroll-conservatively for line-at-a-time scrolling.
7572
7573 2000-11-14 Gerd Moellmann <gerd@gnu.org>
7574
7575 * window.c (Fpos_visible_in_window_p): Call pos_visible with
7576 extra argument.
7577
7578 * xdisp.c (current_mode_line_height, current_header_line_height):
7579 New variables.
7580 (init_xdisp): Initialize them.
7581 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
7582 and use exact mode line heights if it is set.
7583
7584 * lisp.h (pos_visible_p): Change prototype.
7585
7586 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
7587 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
7588 and current_header_line_height first.
7589 (current_mode_line_height, current_header_line_height):
7590 Declare extern.
7591
7592 2000-11-14 Miles Bader <miles@lsi.nec.co.jp>
7593
7594 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
7595 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
7596 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
7597
7598 2000-11-14 Miles Bader <miles@gnu.org>
7599
7600 * xterm.c (x_alloc_lighter_color): Include an additive component
7601 too for dark colors, because FACTOR isn't enough.
7602 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
7603 New macros.
7604
7605 2000-11-13 Gerd Moellmann <gerd@gnu.org>
7606
7607 * keyboard.c (show_help_echo): Call message3_nolog with number of
7608 bytes in the help string as 2nd parameter, instead of the number
7609 of characters.
7610
7611 2000-11-13 Miles Bader <miles@gnu.org>
7612
7613 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
7614 (Fload): Use new openp return protocol.
7615 Don't try to use Vload_source_file_function to load .elc files.
7616 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
7617 openp return protocol.
7618 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
7619
7620 2000-11-11 Kenichi Handa <handa@etl.go.jp>
7621
7622 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
7623
7624 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
7625 Defined these macros.
7626 (NLIST_STRUCT): Avoid re-defining it.
7627
7628 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
7629 -I/usr/contrib/X11R6/include.
7630 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
7631
7632 2000-11-10 Jason Rumney <jasonr@gnu.org>
7633
7634 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
7635
7636 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
7637 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
7638
7639 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
7640 (Qw32_charset_vietnamese): New symbol.
7641 (xlfd_charset_of_font): New function.
7642 (w32_load_system_font): Use it.
7643 (x_to_w32_charset): Use Fassoc to find charset info. Special case
7644 when Vw32_charset_info_alist is nil to ensure default face always
7645 has font. Use Fcar and Fcdr for safety.
7646 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
7647 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
7648 pseudo-codepages for special cases.
7649 (w32_to_x_font): New parameter to allow charset portion to be
7650 specified where there is many to one mapping. Callers changed.
7651 (w32_list_fonts): Avoid listing fonts that won't display.
7652
7653 2000-11-10 Gerd Moellmann <gerd@gnu.org>
7654
7655 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
7656 (font_list_1): Renamed from font_list.
7657 (font_list): New function, trying alternative registries from
7658 Vface_alternative_font_registry_alist.
7659 (Finternal_set_alternative_font_registry_alist): New function.
7660 (syms_of_xfaces): Initialize and Staticpro
7661 Vface_alternative_font_registry_alist.
7662 Defsubr Finternal_set_alternative_font_registry_alist.
7663
7664 2000-11-09 Ken Raeburn <raeburn@gnu.org>
7665
7666 * lisp.h (Flooking_at): Declare.
7667
7668 2000-11-09 Gerd Moellmann <gerd@gnu.org>
7669
7670 * dired.c (directory_files_internal): Fix a braino.
7671
7672 * dired.c (directory_files_internal): Add missing GCPRO's.
7673 Some cleanup.
7674
7675 2000-11-08 Gerd Moellmann <gerd@gnu.org>
7676
7677 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
7678 (resize_mini_window): Return quickly if Vresize_mini_window is
7679 nil. Don't return if Vmax_mini_window_height is nil.
7680
7681 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
7682 (syms_of_xdisp): Initialize them.
7683 (resize_mini_window): Act according to the setting of
7684 Vresize_mini_window.
7685 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
7686
7687 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
7688 scroll bar widget after configuring it, so that it will appear at
7689 the right position from the start.
7690 (XTredeem_scroll_bar): Cleaned up.
7691
7692 2000-11-08 Kenichi Handa <handa@etl.go.jp>
7693
7694 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
7695 font is taller than the frame line, we don't have to bias the
7696 division by two.
7697
7698 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
7699
7700 2000-11-07 Dave Love <fx@gnu.org>
7701
7702 * config.in (HAVE_MKSTEMP): Add.
7703
7704 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
7705
7706 2000-11-07 Gerd Moellmann <gerd@gnu.org>
7707
7708 * window.c (Fset_window_configuration): Don't try to preserve
7709 point in the current buffer, if that buffer is displayed in more
7710 than one window.
7711
7712 * xfaces.c (lookup_named_face): If default face isn't realized,
7713 try to realize it. Return -1 if not successful.
7714 (Fx_list_fonts): Handle case that face cannot be determined.
7715 (Fface_font): Likewise.
7716
7717 2000-11-06 Gerd Moellmann <gerd@gnu.org>
7718
7719 * window.c (displayed_window_lines): Detect partially
7720 visible lines at the bottom correctly.
7721
7722 2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
7723
7724 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
7725 when ensuring we don't do visit in indirect buffer.
7726
7727 2000-11-06 Kenichi Handa <handa@etl.go.jp>
7728
7729 * composite.h (compose_chars_in_text): Add prototype.
7730
7731 * composite.c (Vcomposition_function_table): New variable.
7732 (Qcomposition_function_table): New variable.
7733 (run_composition_function): Call
7734 Vcompose_chars_after_function with three arguments.
7735 (compose_chars_in_text): New function.
7736 (syms_of_composite): Modified the doc-string of
7737 Vcompose_chars_after_function. Declare composition-function-table
7738 as a lisp variable, and initialize it.
7739
7740 * xfns.c (x_encode_text): Suppress producing escape sequences for
7741 composition.
7742
7743 * xselect.c: Include composite.h.
7744 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
7745
7746 2000-11-05 Andrew Innes <andrewi@gnu.org>
7747
7748 * w32term.c (x_produce_glyphs): Fix typo in enum name.
7749
7750 * sysdep.c (read_input_waiting): Remove extraneous argument to
7751 read_socket_hook.
7752
7753 * w32fns.c (Fx_server_version): Include w32_build_number in the
7754 return list.
7755
7756 * w32heap.c (w32_build_number): New variable.
7757 (cache_system_info): Set it.
7758
7759 * w32heap.h (w32_build_number): Add extern.
7760
7761 * emacs.c (syms_of_emacs): Update docstring for
7762 system-configuration, to reflect the actual usage on MS-Windows.
7763
7764 2000-10-31 Gerd Moellmann <gerd@gnu.org>
7765
7766 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
7767 process idle timers while waiting for another event.
7768
7769 * dispnew.c (update_frame_line): Handle case where spaces in
7770 the default face are colored.
7771
7772 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
7773 window height hasn't changed.
7774
7775 2000-10-31 Jason Rumney <jasonr@gnu.org>
7776
7777 * w32term.c (x_produce_glyphs): Handle composite characters.
7778 (x_draw_glyph_string_foreground)
7779 (x_draw_composite_glyph_string_foreground): Restore old font.
7780
7781 2000-10-31 Miles Bader <miles@lsi.nec.co.jp>
7782
7783 * minibuf.c (read_minibuf): Reset the undo history just before
7784 starting the recursive-edit.
7785
7786 2000-10-30 Gerd Moellmann <gerd@gnu.org>
7787
7788 * xfaces.c (menu_face_change_count): New variable.
7789 (Finternal_set_lisp_face_attribute): Increment it for changes
7790 of the `menu' face.
7791 (realize_basic_faces): Reflect changes in the `menu' faces
7792 in menu bars.
7793
7794 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
7795 dy obtained from the iterator's y-position after moving from
7796 scroll_margin_pos to PT; see comment there.
7797
7798 * xdisp.c (safe_eval_handler): Call add_to_log.
7799
7800 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
7801 is not a symbol or string.
7802
7803 * xdisp.c (echo_area_display): Don't perform a display update from
7804 inside redisplay. The update will happen anyway at the end of
7805 redisplay, and it can confuse redisplay (GC messages while
7806 redisplaying, for instance.)
7807
7808 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
7809
7810 * xrdb.c (x_load_resources): Use the class name in the defaults.
7811
7812 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
7813 (regex_compile): Catch bogus \(\1\).
7814
7815 2000-10-30 Gerd Moellmann <gerd@gnu.org>
7816
7817 * xterm.c (x_alloc_nearest_color): Fix last change to compare
7818 RGB values.
7819
7820 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
7821 we have a color cache, check that the cached color equals the
7822 allocated color. If not, clear the color cache.
7823
7824 * window.c (displayed_window_lines): Change buffers if necessary.
7825 Fix computation of displayed lines.
7826
7827 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
7828 update_menu_bindings to DEFVAR_BOOL.
7829
7830 2000-10-30 Kenichi Handa <handa@etl.go.jp>
7831
7832 * search.c (Fset_match_data): Be sure to make search_regs always sane.
7833
7834 * puresize.h (BASE_PURESIZE): Increase to 680000.
7835
7836 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
7837
7838 2000-10-29 Jason Rumney <jasonr@gnu.org>
7839
7840 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
7841
7842 * w32term.c (w32_bdf_per_char_metric): Negate descent.
7843 (w32_cache_char_metrics): Handle possibility that 'x' does not
7844 exist in a BDF font.
7845 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
7846
7847 * w32bdf.h (bdffont): Add nchars.
7848
7849 * w32bdf.c (set_bdf_font_info): Set it.
7850 (w32_BDF_TextOut): Swap byte order of double byte characters.
7851 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
7852
7853 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
7854
7855 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
7856 don't override the colors in frame's param_alist, unless they are
7857 unspecified.
7858
7859 * term.c (reassert_line_highlight): If inverse_video is non-zero,
7860 reverse the effect of the highlight flag.
7861
7862 2000-10-27 Ken Raeburn <raeburn@gnu.org>
7863
7864 * window.h (Fwindow_live_p): Declare.
7865
7866 * undo.c (record_delete): Check that last_undo_buffer is really a
7867 buffer before applying XBUFFER to it.
7868
7869 * keymap.c (where_is_internal): Pass lisp object, not integer, to
7870 Faref.
7871
7872 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
7873
7874 * lisp.h (KEYMAPP): New macro.
7875 (get_keymap): Remove.
7876 (get_keymap_1): Rename get_keymap.
7877
7878 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
7879
7880 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
7881
7882 * xmenu.c (single_submenu): Use KEYMAPP.
7883 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
7884 Use KEYMAPP rather than Fkeymapp.
7885
7886 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
7887
7888 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
7889 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
7890 Use KEYMAPP rather than Fkeymapp.
7891 (single_submenu): Use KEYMAPP.
7892 (w32_menu_show, w32_dialog_show): Use TRUE.
7893
7894 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
7895
7896 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
7897 (Fkeymapp): Use KEYMAPP.
7898 (get_keymap): Rename from get_keymap_1. Remove old def.
7899 Return t when autoload=0 and error=0 and the keymap needs autoloading.
7900 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
7901 (Fminor_mode_key_binding): Don't raise an error if the binding
7902 is not a keymap.
7903 (Fuse_global_map, Fuse_local_map): Allow autoloading.
7904 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
7905
7906 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
7907 Allow Vspecial_event_map to be autoloaded.
7908 (menu_bar_items): Fetch the keymap rather than using keymapp.
7909 (menu_bar_one_keymap): No need to follow func-indirect any more.
7910 (parse_menu_item): get_keymap_1 -> get_keymap.
7911 (tool_bar_items): Fetch the keymap rather than using keymapp.
7912 (read_key_sequence): Use KEYMAPP.
7913
7914 * intervals.c (get_local_map): Use get_keymap rather than following
7915 function-indirections explicitly.
7916
7917 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
7918
7919 2000-10-27 Jason Rumney <jasonr@gnu.org>
7920
7921 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
7922 point, as Windows has oversized fonts.
7923
7924 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
7925
7926 2000-10-27 Gerd Moellmann <gerd@gnu.org>
7927
7928 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
7929 (freehook, reallochook): Handle null pointer arguments.
7930 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
7931
7932 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
7933
7934 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
7935 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
7936 Giving in to popular pressure to shut up the compiler with casts.
7937
7938 2000-10-27 Gerd Moellmann <gerd@gnu.org>
7939
7940 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
7941 signed value, and use a default value computed from the font's
7942 maximum descent.
7943
7944 2000-10-27 Miles Bader <miles@lsi.nec.co.jp>
7945
7946 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
7947 that specify a negative underline position can still use underlines.
7948
7949 * window.c (Fpos_visible_in_window_p): Make POS default to
7950 WINDOW's point, not the current buffer's point.
7951
7952 2000-10-26 Dave Love <fx@gnu.org>
7953
7954 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
7955 when it's necessary.
7956
7957 2000-10-26 Gerd Moellmann <gerd@gnu.org>
7958
7959 * window.c (size_window): Compute size difference from sum of old
7960 child window sizes instead of from parent's size.
7961
7962 * xdisp.c (pos_visible_p): Change current buffer if necessary.
7963 Handle obscured lines at the top of the window.
7964
7965 * frame.c (Fdelete_frame): Doc fix. Move running the hook
7966 down after the last error condition check.
7967
7968 * frame.c (Fdelete_frame): Run delete-frame-hook.
7969
7970 2000-10-26 Kenichi Handa <handa@etl.go.jp>
7971
7972 * coding.c (decode_coding): Fix previous change (check also
7973 CODING_MODE_LAST_BLOCK).
7974
7975 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
7976
7977 * regex.c: More `unsigned char' -> `re_char' changes.
7978 Also change several `int' into `re_wchar_t'.
7979 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
7980 (PUSH_FAILURE_POINTER): Don't cast any more.
7981 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
7982 We want GCC to complain, since this piece of code makes
7983 re_match non-reentrant, which *should* be fixed.
7984 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
7985 (EXTEND_BUFFER): Use RETALLOC.
7986 (SET_LIST_BIT): Don't cast.
7987 (re_wchar_t): New type.
7988 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
7989 that those two functions will always properly return.
7990 (IMMEDIATE_QUIT_CHECK): Cast to void.
7991 (analyse_first): Use recursion rather than an explicit stack.
7992 (re_compile_fastmap): Can't fail anymore.
7993 (re_search_2): Don't check re_compile_fastmap for failure.
7994 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
7995 Now also sets the new value (passed in a new argument).
7996 (re_match_2_internal): Use it.
7997 Also, use a new var `reg' of type size_t when looping through regs
7998 rather than reuse the inappropriate `mcnt'.
7999
8000 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
8001 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
8002 (where_is_internal): Renamed from Fwhere_is_internal.
8003 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
8004 (Fwhere_is_internal): New function wrapping where_is_internal.
8005 (where_is_internal_1): Handle the case where we're filling the cache.
8006 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
8007
8008 2000-10-25 Miles Bader <miles@gnu.org>
8009
8010 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
8011
8012 2000-10-25 Gerd Moellmann <gerd@gnu.org>
8013
8014 * window.c (pos_fully_visible_p): Removed.
8015 (Fpos_visible_in_window_p): Use pos_visible_p to determine
8016 if position is visible and/or fully visible.
8017
8018 * lisp.h (pos_visible_p): Add prototype.
8019
8020 * xdisp.c (pos_visible_p): New function.
8021
8022 2000-10-25 Kenichi Handa <handa@etl.go.jp>
8023
8024 * process.c (send_process): If OBJECT is t, it means that the data
8025 is from C string, but we should encode it. Before calling
8026 setup_raw_text_coding_system, be sure to flush out data by the
8027 previous coding system.
8028
8029 2000-10-25 Miles Bader <miles@lsi.nec.co.jp>
8030
8031 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
8032 assignment of startpos to prev when startpos == pos.
8033
8034 * editfns.c (find_field): Set the field stickiness correctly from
8035 overlay fields. Use renamed `text_property_stickiness'.
8036 (text_property_stickiness): Renamed from `char_property_stickiness'.
8037 Only check text properties, not overlays.
8038 * textprop.c (get_char_property_and_overlay): New function.
8039 (Fget_char_property): Use it.
8040 * intervals.h (get_char_property_and_overlay): Add declaration.
8041
8042 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
8043
8044 * keymap.c: Use AREF, ASET and ASIZE macros.
8045 (Fmake_sparse_keymap): Docstring fix.
8046 (synkey): Remove.
8047 (shadow_lookup): Move up.
8048 Handle the case where lookup-key returns an integer.
8049 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
8050 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
8051 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
8052 Simplify/rewrite the keymap-finding code.
8053 Add check for command shadowing, using shadow_lookup.
8054
8055 2000-10-24 Stefan Monnier <monnier@cs.yale.edu>
8056
8057 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
8058 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
8059 a symbol.
8060
8061 2000-10-24 Andrew Innes <andrewi@gnu.org>
8062
8063 * dired.c (directory_files_internal_unwind): New function.
8064 (directory_files_internal): Use it to ensure closedir is called
8065 even if expand-file-name or file-attributes throw, eg. because of
8066 a user interrupt. Also enable immediate_quit while calling
8067 re_search, so that matching can be interrupted as well.
8068
8069 2000-10-24 Andrew Innes <andrewi@gnu.org>
8070
8071 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
8072 NT-Emacs only.
8073 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
8074 so that re_search functions only quit when callers expect them to.
8075
8076 2000-10-24 Kenichi Handa <handa@etl.go.jp>
8077
8078 * regex.c (regex_compile): Change the way of handling a range from
8079 a char less than 256 to a char not less than 256.
8080
8081 2000-10-24 Gerd Moellmann <gerd@gnu.org>
8082
8083 * window.c (size_window): Prevent setting window's width or
8084 height to a negative value (esp. with XSETFASTINT).
8085
8086 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
8087 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
8088 (protect_malloc_state) [GC_MALLOC_CHECK &&
8089 GC_PROTECT_MALLOC_STATE]: New function.
8090 (PROTECT_MALLOC_STATE): New macro.
8091 (__malloc_initialize, morecore, _malloc_internal)
8092 (_free_internal) _realloc_internal): Use it to make _heapinfo
8093 read-only outside of gmalloc.
8094
8095 * keymap.c: Update copyright.
8096
8097 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
8098 a symbol.
8099
8100 2000-10-24 Colin Walters <walters@cis.ohio-state.edu>
8101
8102 * filelock.c (unlock_all_files): Use unlock_file to expand each
8103 buffer's file_truename before trying remove its lock file.
8104
8105 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
8106
8107 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
8108 or CRLF, decode EOLs.
8109
8110 2000-10-24 Kenichi Handa <handa@etl.go.jp>
8111
8112 * window.c (Fdisplay_buffer): Fix doc.
8113
8114 2000-10-23 Jason Rumney <jasonr@gnu.org>
8115
8116 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
8117 ASCII font of default fontset on Windows.
8118
8119 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
8120 xterm.c comment below).
8121
8122 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
8123
8124 2000-10-23 Gerd Moellmann <gerd@gnu.org>
8125
8126 * xterm.c (x_connection_closed): Reset handling_signal.
8127
8128 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
8129
8130 2000-10-23 Miles Bader <miles@gnu.org>
8131
8132 * window.c (window_scroll_pixel_based, window_scroll_line_based):
8133 Pass nil for FULLY argument to Fpos_visible_in_window_p to
8134 maintain old behavior.
8135 * minibuf.c (Fminibuffer_complete): Likewise.
8136
8137 2000-10-23 Miles Bader <miles@lsi.nec.co.jp>
8138
8139 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
8140 that when a font can't be exactly centered, it errs up rather than
8141 down.
8142
8143 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8144
8145 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8146
8147 2000-10-23 Andrew Choi <akochoi@i-cable.com>
8148
8149 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
8150
8151 * dispnew.c [macintosh]: Include macterm.h.
8152 (init_display) [macintosh]: Initialization for window system.
8153
8154 * emacs.c (main) [macintosh]: Call syms_of_textprop,
8155 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
8156 syms_of_search, x_term_init, and init_keyboard before calling
8157 init_window_once. Also, call syms_of_xmenu.
8158
8159 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
8160 default fontset to Monaco.
8161
8162 * frame.c [macintosh]: Include macterm.h. Remove declarations of
8163 NewMacWindow and DisposeMacWindow.
8164 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
8165 instead of calling NewMacWindow and setting fields of
8166 f->output_data.mac directly. Call init_frame_faces.
8167 (Fdelete_frame) [macintosh]: Remove unused code.
8168 (Fmodify_frame_parameters) [macintosh]: Call
8169 x_set_frame_parameters instead of mac_set_frame_parameters.
8170
8171 * frame.h [macintosh]: Define menu_bar_lines field in struct
8172 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
8173
8174 * keyboard.c [macintosh]: Include macterm.h.
8175 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
8176 and menu_bar_activate_event type events as for X and NT.
8177 (make_lispy_event) [macintosh]: Construct lisp events of type
8178 MENU_BAR_EVENT as for X and NT.
8179
8180 * sysdep.c [macintosh]: Remove declaration for sys_signal.
8181 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
8182 (sys_subshell) [macintosh]: Remove definition entirely.
8183 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
8184 Vwindow_system_version here. Remove initialization of
8185 Vx_bitmap_file_path.
8186 (read_input_waiting): Correct the number of parameters passed to
8187 read_socket_hook.
8188 Move all Macintosh functions to mac/mac.c.
8189
8190 * term.c [macintosh]: Include macterm.h.
8191
8192 * window.c [macintosh]: Include macterm.h.
8193
8194 * xdisp.c [macintosh]: Include macterm.h. Declare
8195 set_frame_menubar and pending_menu_activation.
8196 (echo_area_display) [macintosh]: Do not return if terminal frame
8197 is the selected frame.
8198 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
8199 Allow only the selected frame to set menu bar.
8200 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
8201 calling FRAME_EXTERNAL_MENU_BAR (f).
8202 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
8203
8204 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
8205 and check_x. Declare XCreateGC. Define x_create_gc and
8206 x_free_gc. Initialize font_sort_order.
8207 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
8208 but call x_list_fonts instead of w32_list_fonts.
8209 (Finternal_face_x_get_resource) [macintosh]: Do not call
8210 display_x_get_resource.
8211 (prepare_face_for_display) [macintosh]: Set xgcv.font.
8212 (realize_x_face) [macintosh]: Load the font if it is specified in
8213 ATTRS.
8214 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
8215
8216 2000-10-22 Stefan Monnier <monnier@cs.yale.edu>
8217
8218 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
8219 is nil: since we go to the end of submap anyway, we'd end up
8220 setting nil to nil.
8221 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
8222 doesn't obey autoload.
8223
8224 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8225
8226 * msdos.c (dos_set_window_size): Update screen dimension variables.
8227
8228 2000-10-21 Jason Rumney <jasonr@gnu.org>
8229
8230 * w32term.c (w32_cache_char_metrics): Double check that font is
8231 really fixed pitch before trusting tmPitchAndFamily.
8232
8233 2000-10-21 Andrew Innes <andrewi@gnu.org>
8234
8235 * w32gui.h (w32_char_font_type): Move enum from w32term.c
8236
8237 * w32term.h: Extern decl for w32_cache_char_metrics.
8238
8239 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
8240
8241 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
8242 (w32_unload_font): Free per_char array if present.
8243
8244 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
8245 cached information in emulated XFontStruct to handle common cases
8246 quickly. Do not allocate XCharStruct for return.
8247 (w32_native_per_char_metric): New function.
8248 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
8249 allocating one.
8250 (x_produce_glyphs): Don't get an HDC. Change calls to
8251 w32_per_char_metric to match arg change above. Remove calls to
8252 free results.
8253 (w32_get_glyph_overhangs): Ditto.
8254 (w32_cache_char_metrics): New function.
8255
8256 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
8257 ($(BLD)/casefiddle.$(O)): Remove compile command.
8258 ($(BLD)/gmalloc.$(O)): Remove compile command.
8259 ($(BLD)/dispnew.obj):
8260 ($(BLD)/keyboard.obj):
8261 ($(BLD)/w32inevt.obj):
8262 ($(BLD)/w32bdf.obj):
8263 ($(BLD)/alloc.obj):
8264 ($(BLD)/buffer.obj):
8265 ($(BLD)/editfns.obj):
8266 ($(BLD)/emacs.obj):
8267 ($(BLD)/fileio.obj):
8268 ($(BLD)/fns.obj):
8269 ($(BLD)/indent.obj):
8270 ($(BLD)/insdel.obj):
8271 ($(BLD)/intervals.obj):
8272 ($(BLD)/minibuf.obj):
8273 ($(BLD)/print.obj):
8274 ($(BLD)/scroll.obj):
8275 ($(BLD)/sysdep.obj):
8276 ($(BLD)/textprop.obj):
8277 ($(BLD)/widget.obj):
8278 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
8279 ($(BLD)/term.obj): Add dependency on dispextern.h.
8280
8281 * makefile.nt ($(BLD)\dispnew.obj):
8282 ($(BLD)\keyboard.obj):
8283 ($(BLD)\w32inevt.obj):
8284 ($(BLD)\w32bdf.obj):
8285 ($(BLD)\alloc.obj):
8286 ($(BLD)\buffer.obj):
8287 ($(BLD)\editfns.obj):
8288 ($(BLD)\emacs.obj):
8289 ($(BLD)\fileio.obj):
8290 ($(BLD)\fns.obj):
8291 ($(BLD)\indent.obj):
8292 ($(BLD)\insdel.obj):
8293 ($(BLD)\intervals.obj):
8294 ($(BLD)\minibuf.obj):
8295 ($(BLD)\print.obj):
8296 ($(BLD)\scroll.obj):
8297 ($(BLD)\sysdep.obj):
8298 ($(BLD)\textprop.obj):
8299 ($(BLD)\widget.obj):
8300 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
8301 ($(BLD)\term.obj): Add dependency on dispextern.h
8302
8303 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8304
8305 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
8306 with an additional argument of Qt.
8307
8308 2000-10-21 Miles Bader <miles@gnu.org>
8309
8310 * window.c (pos_fully_visible_in_window_p): New function.
8311 (Fpos_visible_in_window_p): Add FULLY argument.
8312 Use pos_fully_visible_in_window_p.
8313 (window_scroll_pixel_based, window_scroll_line_based): Update
8314 calls to Fpos_visible_in_window_p.
8315 * lisp.h (Fpos_visible_in_window_p): Update prototype
8316
8317 2000-10-20 Gerd Moellmann <gerd@gnu.org>
8318
8319 * alloc.c (toplevel): Conditionalize compilation of mem_*
8320 functions differently.
8321
8322 2000-10-20 Jason Rumney <jasonr@gnu.org>
8323
8324 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
8325 mem_init where it used to be. mem_z etc not defined otherwise.
8326
8327 2000-10-20 Gerd Moellmann <gerd@gnu.org>
8328
8329 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
8330 GC_MALLOC_CHECK.
8331 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
8332 structure definition and related variabled to the top of the file.
8333 Include this code when GC_MALLOC_CHECK is defined.
8334 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
8335 register/unregister allocated region.
8336 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
8337 which isn't allocated.
8338 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
8339 something which is already in use.
8340 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
8341 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
8342 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
8343 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
8344
8345 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
8346 _malloc_internal instead of malloc.
8347 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
8348 of free.
8349
8350 2000-10-20 Andrew Innes <andrewi@gnu.org>
8351
8352 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
8353 Windows.
8354 (my_strftime) <macro>: Don't use macro arg list when redefining as
8355 _strftime_copytm.
8356 (my_strftime) <function>: Supply 0 as ut argument.
8357
8358 2000-10-19 Jason Rumney <jasonr@altavista.net>
8359
8360 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
8361 including dispextern.h, as it stops faces from working.
8362
8363 * w32fns.c (Fx_create_frame): Don't bother calling
8364 face-set-after-frame-default since the caller does it for us
8365 anyway. Clean up calls to x_get_arg to be consistent with X.
8366
8367 * w32term.c (x_produce_glyphs): Handle
8368 unibyte_display_via_language_environment correctly.
8369 (w32_draw_box_rect): Fix the calculation of width and height.
8370
8371 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
8372 as it has stopped working.
8373 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
8374 menu-bar.
8375
8376 2000-10-19 Gerd Moellmann <gerd@gnu.org>
8377
8378 * eval.c (skip_debugger): Prevent a compiler warning.
8379 (Fcondition_case): Likewise.
8380 (Fbacktrace_frame): Use a null interactive spec.
8381
8382 2000-10-19 Kenichi Handa <handa@etl.go.jp>
8383
8384 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
8385
8386 2000-10-18 Gerd Moellmann <gerd@gnu.org>
8387
8388 * strftime.c: Sync with glibc, file version 1.78.
8389 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
8390 should no longer be used according to ISO 8601.
8391
8392 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
8393 no map for meta_prefix_char, don't try to use it as a keymap.
8394 Instead, if T_OK is non-zero, look up a default binding, if any,
8395 otherwise, if T_OK is zero, return nil.
8396
8397 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
8398 (x_to_xcolors, png_load): Use x_query_color.
8399
8400 * xterm.c (x_color_cells, x_query_colors, x_query_color):
8401 New functions.
8402 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
8403 which can be slow.
8404 (x_copy_color, x_alloc_lighter_color): Likewise.
8405
8406 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
8407 (x_query_color, x_query_colors): Add prototype.
8408
8409 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
8410 check_string_bytes only if not noninteractive, increase count to 50.
8411
8412 2000-10-18 Miles Bader <miles@lsi.nec.co.jp>
8413
8414 * insdel.c (adjust_markers_for_delete): Handle before-insertion
8415 markers correctly.
8416
8417 2000-10-17 Gerd Moellmann <gerd@gnu.org>
8418
8419 * alloc.c (pure_bytes_used): Renamed from pureptr.
8420 (ALIGN): New macro.
8421 (pure_alloc): New function.
8422 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
8423 Use it.
8424 (Fpurecopy): Use PURE_POINTER_P.
8425
8426 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
8427 PT has moved backward.
8428
8429 * xdisp.c (cursor_row_p): Take continued lines into account.
8430
8431 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
8432 string's size_byte.
8433 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
8434 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
8435 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
8436 string allocated.
8437
8438 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
8439 of selective display off while searching for the next line start.
8440
8441 2000-10-17 Kenichi Handa <handa@etl.go.jp>
8442
8443 * Makefile.in (term.o): Depend on dispextern.h.
8444
8445 2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
8446
8447 * keymap.c (keymap_memberp): Ensure that nil is not a member.
8448
8449 2000-10-16 Gerd Moellmann <gerd@gnu.org>
8450
8451 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
8452 the iterator at the beginning, so that they can be set later on,
8453 for instance in reseat_at_next_visible_line_start, without being
8454 overwritten.
8455
8456 * xfns.c (pbm_format): Add :foreground and :background keywords.
8457 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
8458 (xbm_load): Recognize foreground and background color specifications.
8459
8460 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
8461
8462 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
8463
8464 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
8465
8466 * msdos.c (IT_set_face): Compare highlighted face with the default
8467 face, and invert colors if these faces' colors are identical.
8468 (Fmsdos_remember_default_colors): Don't swap foreground and
8469 background colors in initial_colors[].
8470 (IT_set_frame_parameters): Don't swap frame's foreground and
8471 background pixels. If ALIST includes "(reverse . t)", swap
8472 foreground-color and background-color properties in frame's
8473 param_alist. If the original frame's param_alist doesn't specify
8474 the colors, store unspecified-fg and unspecified-bg, reversed if
8475 required.
8476
8477 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
8478 the colors are unspecified and reversed, reverse fore- and back-
8479 ground in the returned value.
8480 (Fframe_parameter): Ditto.
8481
8482 2000-10-16 Gerd Moellmann <gerd@gnu.org>
8483
8484 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
8485 get_last_unchanged_at_beg_row.
8486 (find_first_unchanged_at_end_row): Renamed from
8487 get_first_unchanged_at_end_row.
8488 (find_first_unchanged_at_end_row): Convert assertions to
8489 unconditional tests which abort. When looking for a row in
8490 unchanged text, don't go further back than first_text_row.
8491
8492 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
8493 Don't add in the last line's height when deciding if the new
8494 position is below the scroll margin.
8495
8496 2000-10-16 Miles Bader <miles@gnu.org>
8497
8498 * editfns.c (Fconstrain_to_field): Check carefully for field
8499 boundaries if either OLD_POS or NEW_POS has a non-nil field
8500 property, even if they're the same.
8501
8502 2000-10-16 Kenichi Handa <handa@etl.go.jp>
8503
8504 * xterm.c (x_draw_box_rect): Fix the calculation of width and
8505 height for XFillRectangle.
8506
8507 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
8508
8509 * syntax.c (Fstring_to_syntax): New function extracted from
8510 Fmodify_syntax_entry.
8511 (Fmodify_syntax_entry): Use it and document the ! and | fences.
8512 (skip_chars, Fforward_comment): Remove unused variables.
8513 (syms_of_syntax): Add defsubr for string-to-syntax.
8514 (describe_syntax): Add code for comment and string fences.
8515
8516 2000-10-14 Stefan Monnier <monnier@cs.yale.edu>
8517
8518 * keymap.c (access_keymap): Add AUTOLOAD parameter.
8519 Do the meta->esc mapping. Call get_keyelt before returning.
8520 Start scanning from the second element (the first is always `keymap')
8521 to make it easier to detect when we reach a parent map.
8522 Handle the case of inheriting from a symbol whose function is a map.
8523 (Fkeymap_parent): Also handle the `inherit from symbol' case.
8524 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
8525 (get_keyelt, Flookup_key): Update call to access_keymap.
8526 Remove the meta->esc mappings.
8527 (define_as_prefix): Delete old disabled code.
8528 (menu_item_p): New function.
8529 (where_is_internal_1): Skip over the few remaining menu items.
8530 * lisp.h (access_keymap): Update prototype.
8531 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
8532 Update call to access_keymap.
8533 (follow_key, read_key_sequence): Update calls to access_keymap.
8534 Remove the meta->esc mappings.
8535
8536 2000-10-13 Gerd Moellmann <gerd@gnu.org>
8537
8538 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
8539 with additional argument.
8540
8541 * xdisp.c (cursor_row_p): New function.
8542 (try_cursor_movement, display_line): Use it.
8543
8544 * xdisp.c (append_space): Also save/restore iterator's current
8545 character and its length.
8546
8547 * xdisp.c (init_from_display_pos): Add an assertion.
8548 (handle_stop): Don't set iterator's add_overlay_start.
8549 (handle_invisible_prop): Likewise.
8550 (load_overlay_strings): If text under an overlay is invisible,
8551 take both before- and after-strings into account when the iterator
8552 is positioned either at the start or at the end of the overlay.
8553 (forward_to_next_line_start): Rewritten.
8554 (reseat_at_next_visible_line_start): Rewritten.
8555 (set_iterator_to_next): Add parameter RESEAT_P.
8556
8557 * dispextern.h (struct it): Remove member add_overlay_start.
8558 (set_iterator_to_next): Change prototype.
8559
8560 2000-10-13 Kenichi Handa <handa@etl.go.jp>
8561
8562 * coding.c (code_convert_region): Be sure to initialize
8563 coding->category_idx.
8564 (decode_coding_string): Set coding->src_multibyte and
8565 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
8566 (encode_coding_string): Set coding->src_multibyte and
8567 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
8568
8569 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
8570
8571 * xfns.c (Fx_create_frame): Don't bother calling
8572 face-set-after-frame-default since the caller does it for us anyway.
8573
8574 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
8575
8576 * window.c (coordinates_in_window): Fix detection of vertical line
8577 on character terminals.
8578
8579 2000-10-12 Gerd Moellmann <gerd@gnu.org>
8580
8581 * editfns.c (save_excursion_save): Additionally record the
8582 selected window.
8583 (save_excursion_restore): If buffer was visible in a window, and a
8584 different window was selected, and the old selected window is
8585 still live, restore point in that window.
8586
8587 2000-10-12 Kenichi Handa <handa@etl.go.jp>
8588
8589 * xterm.c (x_produce_glyphs): Handle
8590 unibyte_display_via_language_environment correctly.
8591
8592 * regex.c (regex_compile): Change the way of handling a range from
8593 unibyte char to multibyte char.
8594
8595 * syntax.c (skip_chars): Change the way of handling a range from
8596 unibyte char to multibyte char.
8597
8598 * process.c (read_process_output): Cancel previous change.
8599
8600 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
8601
8602 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
8603
8604 * charset.c (Ffind_charset_string): Doc fix.
8605 (Ffind_charset_region): Doc fix.
8606
8607 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
8608
8609 * process.c (read_process_output): Fix previous change. Adjust
8610 multibyteness of text to insert in a buffer by
8611 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
8612
8613 2000-10-10 Andreas Schwab <schwab@suse.de>
8614
8615 * alloc.c (mark_object): Remove all workarounds installed on
8616 1993-08-08.
8617
8618 2000-10-10 Kenichi Handa <handa@etl.go.jp>
8619
8620 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
8621 (base64_encode_1): Make it work for a text of multibyte form.
8622 (Fbase64_decode_region): Allocate sufficient memory for multibyte
8623 case. Don't call str_to_multibyte because base64_decode_1
8624 produces correct multibyte form for eight-bit codes.
8625 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
8626 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
8627 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
8628 codes.
8629
8630 * charset.h (CHAR_STRING): Optimized for single byte characters.
8631
8632 2000-10-09 Andreas Schwab <schwab@suse.de>
8633
8634 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
8635 -1 after socket is closed, to fall through to error processing.
8636
8637 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
8638
8639 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
8640 variables. If ALIST includes foreground-color or
8641 background-color, change also the colors of the default face for
8642 this frame.
8643
8644 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
8645
8646 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
8647 them extern (they are defined on xfaces.c).
8648 (syms_of_msdos): Don't intern and don't staticpro
8649 Qbackground_color and Qforeground_color.
8650
8651 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
8652
8653 * frame.c (Fframe_parameter): For non-windowed frames, if
8654 f->param_alist says foreground or background color is unspecified,
8655 call tty_color_name to return the color name computed from the
8656 frame's current colors.
8657
8658 2000-10-06 Dave Love <fx@gnu.org>
8659
8660 * terminfo.c (ospeed): Don't declare.
8661
8662 * sysdep.c: Don't include string.h.
8663 (h_errno): Declare conditional also on TRY_AGAIN.
8664
8665 * charset.c (Ffind_charset_string): Doc fix.
8666
8667 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
8668 (Fbase64_decode_region, Fbase64_decode_string): More explicit
8669 error messages.
8670
8671 2000-10-05 Dave Love <fx@gnu.org>
8672
8673 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
8674 position like menu-bar.
8675
8676 2000-10-05 Gerd Moellmann <gerd@gnu.org>
8677
8678 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
8679
8680 * xdisp.c (handle_single_display_prop): Use safe_call1.
8681 (safe_call): Renamed from call_function.
8682 (safe_call1): New function.
8683 (handle_fontified_prop): Use safe_call1 instead of call1.
8684 (safe_eval): Renamed from eval_form.
8685 (safe_eval_handler): Renamed from eval_handler.
8686 (handle_single_display_prop, display_mode_element): Use safe_eval
8687 instead of eval_form.
8688
8689 * xfaces.c (merge_face_heights): Use safe_call instead of
8690 call_function.
8691
8692 * keyboard.c (show_help_echo): Use safe_call instead of
8693 call_function; use safe_eval instead of eval_form.
8694
8695 * lisp.h (safe_call): Renamed from call_function.
8696 (safe_eval): Renamed from eval_form.
8697 (safe_call1): Add prototype.
8698
8699 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
8700
8701 * xfns.c (image_ascent): Rearrange ascent calculation for the
8702 has-a-font case.
8703
8704 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
8705
8706 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
8707 (where_is_internal_1): Don't bother ignoring menu-items any more.
8708
8709 2000-10-04 Gerd Moellmann <gerd@gnu.org>
8710
8711 * keyboard.c (update_menu_bindings): New variable.
8712 (parse_menu_item): Use AREF. If update_menu_bindings
8713 is 0, don't update menu bindings.
8714 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
8715
8716 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
8717
8718 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
8719 to `mark_object'.
8720
8721 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
8722
8723 * syntax.c (forw_comment): Match nestedness of ender/starter.
8724 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
8725 (prev_char_comstart_first): Remove.
8726 (back_comment): Check two-char comment markers more carefully
8727 to better handle overlapping cases like *//* or /* */* */ ...
8728 Match nestedness of ender/starter.
8729
8730 2000-10-02 Dave Love <fx@gnu.org>
8731
8732 * config.in (HAVE_GAI_STRERROR): Add undef.
8733
8734 * process.c (Fopen_network_stream): Use it.
8735
8736 * m/alpha.h (NO_REMAP): Don't define.
8737
8738 2000-10-02 Gerd Moellmann <gerd@gnu.org>
8739
8740 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
8741 return with a string converted to an integer or vice versa when
8742 Vmocklisp_arguments is t.
8743 (Fsignal): Likewise. The function can return for `quit'.
8744 (struct gcpro): Declare member `var' to point to a volatile
8745 Lisp_Object.
8746
8747 * eval.c (error): Prevent compiler warning.
8748
8749 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
8750
8751 * keymap.c (keymap_memberp): New function.
8752 (Fset_keymap_parent): Use it.
8753 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
8754 Use keymap_memberp to avoid creating cycles.
8755 (access_keymap): Use KEYMAPP.
8756
8757 2000-09-30 Gerd Moellmann <gerd@gnu.org>
8758
8759 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
8760 gai_strerror. Make sure xerrno is set if connect fails. Improve
8761 error recovery.
8762
8763 2000-09-29 Jason Rumney <jasonr@gnu.org>
8764
8765 * w32term.c (w32_char_font_type, w32_encode_char)
8766 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
8767 (w32_bdf_per_char_metric): New function.
8768 (w32_per_char_metric): Use it.
8769 (x_draw_glyph_string_background): Always draw background for BDF
8770 glyphs.
8771
8772 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
8773 GDI object which is a scarce resource.
8774
8775 * w32bdf.c (search_file_line): Fix skipping of whitespace.
8776 (get_quoted_string): Fix limit on memchr search.
8777 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
8778 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
8779 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
8780 (get_cached_font_char, cache_char_offset): Use macro
8781 BDF_CODEPOINT_RANGE_COVER_P.
8782 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
8783 (clear_cached_bitmap_slots): New function.
8784 (GET_HEX_VALUE): G-Z, g-z are not hex.
8785 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
8786 (get_bitmap_with_cache): Use new cache implementation.
8787 (create_offscreen_bitmap): New function.
8788 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
8789
8790 * w32term.c (x_produce_glyphs): If the distance from the current
8791 position to the next tab stop is less than a canonical character
8792 width, use the tab stop after that.
8793 (x_draw_glyphs): Handle case START and END are out of bounds more
8794 carefully.
8795 (x_clear_mouse_face): Block/unblock input.
8796 (x_display_and_set_cursor): Don't show a hollow box cursor for
8797 buffers whose cursor_type is nil.
8798
8799 2000-09-29 Gerd Moellmann <gerd@gnu.org>
8800
8801 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
8802
8803 * dispextern.h (updating_frame): Declare extern.
8804
8805 2000-09-29 Andreas Schwab <schwab@suse.de>
8806
8807 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
8808
8809 2000-09-29 Gerd Moellmann <gerd@gnu.org>
8810
8811 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
8812 use its function definition.
8813 (tool_bar_items): Likewise.
8814
8815 * lisp.h (fatal): Declare NO_RETURN.
8816
8817 2000-09-29 Kenichi Handa <handa@etl.go.jp>
8818
8819 * keymap.c: Remove the line "#undef NULL".
8820
8821 2000-09-28 Gerd Moellmann <gerd@gnu.org>
8822
8823 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
8824
8825 2000-09-28 Dave Love <fx@gnu.org>
8826
8827 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
8828
8829 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
8830
8831 * .gdbinit (xreload): Note its need on GNU/Linux.
8832
8833 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
8834 r_alloc, r_alloc_free.
8835
8836 2000-09-28 Kenichi Handa <handa@etl.go.jp>
8837
8838 * syntax.c (skip_chars): Handle negation correctly.
8839
8840 2000-09-27 Gerd Moellmann <gerd@gnu.org>
8841
8842 * xfaces.c (realize_default_face): Call set_lface_from_font_name
8843 with non-zero FORCE_P argument.
8844
8845 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8846 Add assertions.
8847
8848 * xdisp.c (window_box_height): Add an assertion.
8849
8850 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
8851 tool-bar than is available.
8852 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
8853
8854 2000-09-27 Dave Love <fx@gnu.org>
8855
8856 * s/irix6-5.h: Now works 64-bit. Tidied.
8857
8858 2000-09-26 Gerd Moellmann <gerd@gnu.org>
8859
8860 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
8861 instead of BITS_PER_INT.
8862 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
8863 EMACS_UINT, respectively.
8864 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
8865
8866 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
8867
8868 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
8869
8870 * window.c (freeze_window_starts): Construct last argument for
8871 foreach_window differently.
8872
8873 * xfns.c (x_decode_color): Don't return a Lisp_Object.
8874
8875 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
8876 EMACS_UINT instead of `int' and `unsigned int'.
8877 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
8878
8879 * frame.h (struct frame): Make the `nothing' member of union
8880 output_data an EMACS_INT.
8881
8882 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
8883 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
8884 size in the sdata structure.
8885 (SDATA_NBYTES, SDATA_DATA): New macros.
8886 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
8887 differently for the different layout of the sdata structure.
8888 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
8889 in sdata.
8890 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
8891 Check that size recorded in the string size and size recorded in
8892 the sdata structure agree.
8893
8894 2000-09-25 Dave Love <fx@gnu.org>
8895
8896 * buffer.c: Include stdio.h.
8897
8898 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
8899
8900 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
8901
8902 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
8903 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
8904 (__malloc_extra_blocks): Declare as __malloc_size_t.
8905
8906 2000-09-25 Gerd Moellmann <gerd@gnu.org>
8907
8908 * alloc.c (mark_image): Use GC_NILP instead of NILP.
8909
8910 * keyboard.c (show_help_echo): Set help_echo_showing_p.
8911 (read_char): If help-echo is showing, preserve the echo area
8912 when redisplaying.
8913
8914 * xdisp.c (help_echo_showing_p): New variable.
8915 (set_message): Reset it to 0.
8916 (init_xdisp): Initialize help_echo_showing_p.
8917
8918 * dispextern.h (help_echo_showing_p): Declare extern.
8919
8920 * config.in: Fix typo in __GNUC_MINOR__.
8921
8922 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
8923
8924 * s/freebsd.h (POSIX_SIGNALS): Define.
8925
8926 * xterm.c (x_clear_mouse_face): Block/unblock input.
8927
8928 2000-09-24 Dave Love <fx@gnu.org>
8929
8930 * fns.c (base64_encode_1): Fix last change.
8931
8932 2000-09-22 Gerd Moellmann <gerd@gnu.org>
8933
8934 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
8935
8936 * xdisp.c (try_window_reusing_current_matrix): More fixes
8937 for the case window has a header-line.
8938
8939 2000-09-22 Dave Love <fx@gnu.org>
8940
8941 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
8942 a doc string.
8943
8944 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
8945
8946 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
8947
8948 2000-09-21 Gerd Moellmann <gerd@gnu.org>
8949
8950 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
8951 for GCC >= 2.5.
8952
8953 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
8954 Declare NO_RETURN.
8955
8956 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
8957 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
8958 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
8959 warnings.
8960
8961 * marker.c (byte_char_debug_check): Return void.
8962
8963 * xfns.c (Fx_create_frame): Set default frame parameter value
8964 for tool-bar-lines to 1.
8965
8966 * dispnew.c (scrolling_window): Compare y-positions of rows
8967 equal at the start. Some simplification.
8968
8969 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
8970 reused rows' y-position in the case window has a header-line, and
8971 new window start is greater than old window start.
8972
8973 * process.c (process_sent_to): New variable.
8974 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
8975 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
8976 Declare more parameters volatile.
8977
8978 * lread.c (Vrecursive_load_depth_limit): New variable.
8979 (Fload): Check recursive loads whose recursion depth exceeds
8980 Vrecursive_load_depth_limit.
8981 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
8982
8983 2000-09-20 Gerd Moellmann <gerd@gnu.org>
8984
8985 * fileio.c (Fread_file_name): Doc fix.
8986
8987 * editfns.c (Fmessage_or_box): Doc fix.
8988
8989 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
8990
8991 * xfns.c (xbm_scan): Allow C-style comments.
8992
8993 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
8994 symbols are specified, add color translations to the cache.
8995 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8996 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
8997 xpm_cache_color.
8998 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
8999 structures to xpm_init_color_cache.
9000
9001 2000-09-19 Gerd Moellmann <gerd@gnu.org>
9002
9003 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
9004
9005 2000-09-19 Andrew Innes <andrewi@gnu.org>
9006
9007 * makefile.nt (bootstrap-emacs): Don't change directory.
9008
9009 2000-09-19 Kenichi Handa <handa@etl.go.jp>
9010
9011 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
9012
9013 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
9014 If output buffer is too small, signal an appropriated error.
9015
9016 2000-09-18 Dave Love <fx@gnu.org>
9017
9018 * keyboard.c (menu_bar_items, tool_bar_items)
9019 (current_active_maps): Remove redundant get_local_map call.
9020
9021 2000-09-18 Gerd Moellmann <gerd@gnu.org>
9022
9023 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
9024 cursor for buffers whose cursor_type is nil.
9025
9026 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
9027 a feature to implement that is already implemented.
9028 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
9029 warnings.
9030
9031 * xfns.c (x_clear_image_1): New function.
9032 (x_clear_image): Use it.
9033 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
9034
9035 * dispnew.c (update_window): Move test for invisible lines
9036 at the top to update_window_line.
9037 (update_window_line): Handle invisible lines here.
9038
9039 * xfns.c (clear_image_cache): Clear current matrices of all
9040 frames sharing an image cache. Block input while freeing
9041 images. Fix timestamp comparison.
9042 (x_clear_image): Also free the mask.
9043
9044 * xfns.c (lookup_image): Block input while loading the image so
9045 that we won't get interrupted in a state where the image isn't yet
9046 set up completely.
9047 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
9048 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
9049 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
9050 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
9051
9052 2000-09-16 Gerd Moellmann <gerd@gnu.org>
9053
9054 * dispnew.c (update_window): Make sure to make desired rows
9055 current even if they are completely invisible at the top
9056 of a window.
9057
9058 2000-09-15 Gerd Moellmann <gerd@gnu.org>
9059
9060 * xfns.c (lookup_image): Build mask before applying an algorithm.
9061 Recognize algorithm `disabled'.
9062 (cross_disabled_images): New variable.
9063 (COLOR_INTENSITY): New macro.
9064 (x_detect_edges): Use COLOR_INTENSITY.
9065 (x_disable_image): New function.
9066 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
9067
9068 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
9069 disabled state, don't apply an image transformation algorithm if
9070 the user specified an image for the disabled state. Use
9071 `:algorithm disabled' for creating a disabled item's image if the
9072 user hasn't specified an image.
9073
9074 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
9075 allocation functions with the XPM lib.
9076 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
9077 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
9078 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
9079 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
9080 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
9081 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
9082 functions, if possible, because these handle color allocation
9083 failure more gracefully.
9084 (Fimage_mask_p): New function.
9085
9086 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
9087 (Qedge_detection, Qheuristic): New symbols.
9088 (syms_of_xfns): Initialize new symbols.
9089 (lookup_image): Handle `:mask X', `:algorithm emboss', and
9090 `algorithm (edge-detection ...)'.
9091 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
9092 (tiff_format, gif_format, gs_format): Add `:mask'.
9093 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
9094 (GIF_MASK, GS_MASK): New enumerators.
9095 (x_laplace_read_row, x_laplace_write_row): Functions removed.
9096 (emboss_matrix, laplace_matrix): New variables.
9097 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
9098 (x_edge_detection): New functions.
9099 (x_laplace): Rewritten in terms of x_detect_edges.
9100 (x_build_heuristic_mask): If image has a mask, free it.
9101
9102 2000-09-14 Andrew Innes <andrewi@gnu.org>
9103
9104 * makefile.w32-in: Revert to Unix line endings.
9105
9106 2000-09-14 Andrew Innes <andrewi@gnu.org>
9107
9108 * makefile.w32-in: Standardize indentation somewhat.
9109 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
9110 cater for differences between shells.
9111
9112 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
9113
9114 2000-09-14 Gerd Moellmann <gerd@gnu.org>
9115
9116 * xterm.c (x_produce_glyphs): If the distance from the current
9117 position to the next tab stop is less than a canonical character
9118 width, use the tab stop after that.
9119
9120 2000-09-14 Dave Love <fx@gnu.org>
9121
9122 * buffer.c (alloc_buffer_text): Fix xmalloc call.
9123
9124 2000-09-14 Gerd Moellmann <gerd@gnu.org>
9125
9126 * xdisp.c (handle_fontified_prop): While running fontification
9127 functions, bind `fontification-functions' and
9128 `after-change-functions' to nil.
9129
9130 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
9131 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
9132
9133 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
9134
9135 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
9136 USE_MMAP_FOR_BUFFERS.
9137
9138 * insdel.c (make_gap): Use enlarge_buffer_text.
9139
9140 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
9141 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
9142 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
9143 from former r_alloc_* functions in ralloc.c.
9144 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
9145 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
9146 (mmap_init) [REL_ALLOC_MMAP]: New function.
9147 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
9148 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
9149 BUFFER_FREE.
9150
9151 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
9152 (enlarge_buffer_text): Add prototype.
9153
9154 * ralloc.c: Remove everything having to do with the use of mmap.
9155
9156 2000-09-13 Gerd Moellmann <gerd@gnu.org>
9157
9158 * sound.c (Fplay_sound): Doc fix.
9159
9160 * keyboard.c: Avoid some more compiler warnings.
9161 (parse_tool_bar_item): Ignore cached key bindings.
9162
9163 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
9164 and allocation of Lisp data.
9165
9166 2000-09-12 Gerd Moellmann <gerd@gnu.org>
9167
9168 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
9169 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
9170 defaults first.
9171
9172 * lread.c (Fload): Put code checking for recursive loads in #if 0.
9173
9174 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
9175
9176 * ccl.c: Comment fixed.
9177 (MAX_MAP_SET_LEVEL): Increased to 30.
9178 (PUSH_MAPPING_STACK): Enclose with do-while block.
9179 (POP_MAPPING_STACK): Likewise.
9180 (stack_idx_of_map_multiple): New variable.
9181 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
9182 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
9183 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
9184 (ccl_driver) <CCL_MapSingle>: Likewise.
9185 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
9186 with the case where looking up process reaches to the end of
9187 map-set, and call CCL programs as the above change.
9188
9189 2000-09-11 Gerd Moellmann <gerd@gnu.org>
9190
9191 * xfns.c (png_load, jpeg_load): Declare some variables volatile
9192 that might be clobbered by longjmp.
9193 (check_x_display_info, x_decode_color, create_frame_xic)
9194 (Fx_display_backing_store, Fx_display_visual_class)
9195 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
9196
9197 * lread.c (init_lread): Set Vloads_in_progress to nil.
9198 (Fload): Show list of recursively loaded files, when signaling an
9199 error.
9200
9201 * lread.c (Vloads_in_progress): New variable.
9202 (record_load_unwind): New function.
9203 (Fload): Check for recursive loads.
9204 (syms_of_lread): Initialize Vloads_in_progress.
9205 (read_integer, read1): Avoid some compiler warnings.
9206
9207 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
9208 compiler warnings.
9209
9210 2000-09-11 Miles Bader <miles@gnu.org>
9211
9212 * editfns.c (Fbuffer_string): Doc fix.
9213
9214 2000-09-10 Gerd Moellmann <gerd@gnu.org>
9215
9216 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
9217
9218 2000-09-09 Ken Raeburn <raeburn@gnu.org>
9219
9220 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
9221 whether to include other header files.
9222
9223 2000-09-09 Gerd Moellmann <gerd@gnu.org>
9224
9225 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9226 by Fmemq as a boolean.
9227
9228 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
9229
9230 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
9231
9232 2000-09-08 Gerd Moellmann <gerd@gnu.org>
9233
9234 * ralloc.c (mmap_fd): Remove initializer which can make it
9235 read-only in a dumped Emacs.
9236 (mmap_fd_1): New variable.
9237 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
9238 restore it from there.
9239 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
9240 unconditionally so that mmap_fd can be initialized there.
9241 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
9242 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
9243 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
9244
9245 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
9246
9247 * xdisp.c (dump_glyph_row): Fix printf format string.
9248 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
9249
9250 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
9251
9252 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
9253 inheritance.
9254
9255 * xdisp.c (try_window_id): When trying to locate cursor in
9256 unchanged rows at the top, handle the case that we can't find it.
9257
9258 * xterm.c (x_draw_glyphs): Handle case START and END are out
9259 of bounds more carefully.
9260
9261 2000-09-08 Dave Love <fx@gnu.org>
9262
9263 * s/sol2.h (REL_ALLOC_MMAP): Define.
9264 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
9265
9266 * ralloc.c: Don't include string.h (redundant).
9267 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
9268 [!MAP_ANON]: Include fcntl.h.
9269 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
9270 (r_alloc, r_re_alloc, r_alloc_free)
9271 (mmap_enlarge, mmap_set_vars): Use it.
9272 (r_alloc_init_fd): New function.
9273 (__morecore) [SYSTEM_MALLOC]: Don't declare.
9274 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
9275 malloc type.
9276
9277 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
9278 Remove vm-limit.o.
9279
9280 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
9281 change to __NetBSD__.
9282
9283 2000-09-08 Kenichi Handa <handa@etl.go.jp>
9284
9285 * search.c (compile_pattern): Check the multibyteness of cached
9286 string and PATTERN.
9287
9288 2000-09-08 Miles Bader <miles@gnu.org>
9289
9290 * xfaces.c (default_face_vector): Function removed.
9291 (Finternal_merge_in_global_face): Restore old global/local
9292 attribute override order. Use inline loop instead of calling
9293 default_face_vector.
9294
9295 2000-09-07 Gerd Moellmann <gerd@gnu.org>
9296
9297 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
9298 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
9299 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
9300 where necessary, in case POINTER_TYPE is `void'.
9301
9302 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
9303
9304 * frame.c (make_terminal_frame): Initialize frame foreground and
9305 background colors to unspecified, for the initial instance of an
9306 MSDOS frame.
9307
9308 2000-09-07 Gerd Moellmann <gerd@gnu.org>
9309
9310 * ralloc.c (mmap_find): Fix overlap computation.
9311 (mmap_enlarge): Compute nbytes before trying to find an
9312 overlapping region.
9313
9314 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
9315 instead of `!='.
9316
9317 * lread.c (syms_of_lread): Change value of regexp
9318 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
9319
9320 * xmenu.c (xdialog_show): When looking up the selection in
9321 menu_items, take `quote' boundaries into account; this corresponds
9322 to a nil ITEM in x-popup-dialog.
9323
9324 2000-09-07 Kenichi Handa <handa@etl.go.jp>
9325
9326 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
9327 not 0x81.
9328 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
9329
9330 * coding.c (encode_coding_sjis_big5): Use translation table for
9331 encoding, not decoding. Fix the handling of latin-jisx0201.
9332 Check for the charset katakana-jisx0201 too.
9333 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
9334 (detect_coding_sjis): Check the byte sequence more rigidly.
9335
9336 2000-09-07 Gerd Moellmann <gerd@gnu.org>
9337
9338 * xfaces.c (Vparam_value_alist): New variable.
9339 (syms_of_xfaces): Initialize it.
9340 (Finternal_set_lisp_face_attribute): Avoid more consing.
9341
9342 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
9343 specially.
9344 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
9345 (Qbackground_mode): New variable.
9346 (syms_of_frame_1): Initialize Qbackground_mode.
9347
9348 * lisp.h (Qdisplay): Declare extern.
9349
9350 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
9351 change face on all frames, and change the default for new frames.
9352
9353 2000-09-07 Dave Love <fx@gnu.org>
9354
9355 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
9356
9357 2000-09-07 Kenichi Handa <handa@etl.go.jp>
9358
9359 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
9360
9361 * charset.c: Include composite.h
9362 (lisp_string_width): New function.
9363 (Fstring_width): Call lisp_string_width instead of strwidth.
9364
9365 * Makefile.in (charset.o): Depends on composite.h.
9366
9367 * process.c (read_process_output): Before inserting the decoded
9368 text in the buffer, adjust the multibyteness.
9369
9370 2000-09-06 Gerd Moellmann <gerd@gnu.org>
9371
9372 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
9373 buffer's text buffer is null, map new memory.
9374
9375 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
9376 POINTER_TYPE and size_t.
9377 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
9378 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
9379 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
9380 [REL_ALLOC_MMAP]: New macros.
9381 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
9382 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
9383 [REL_ALLOC_MMAP]: New functions.
9384
9385 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
9386 before and after unexec.
9387
9388 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
9389 text buffers if necessary.
9390
9391 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
9392 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
9393 in prototypes.
9394
9395 * config.in (HAVE_MMAP): Add #undef.
9396
9397 2000-09-05 Gerd Moellmann <gerd@gnu.org>
9398
9399 * frame.c (Qdisplay_type): New variable.
9400 (syms_of_frame_1): Initialize it.
9401 (Fframe_parameter): New function that avoids consing.
9402 (syms_of_frame): Defsubr it.
9403
9404 * buffer.c (Fother_buffer): Consider buffers as invisible when
9405 they are displayed in a window on an invisible frame.
9406
9407 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
9408 get-largest-window always return nil.
9409
9410 2000-09-04 Gerd Moellmann <gerd@gnu.org>
9411
9412 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
9413 variable; recognize Emacs 19 elc files.
9414
9415 2000-09-04 Miles Bader <miles@gnu.org>
9416
9417 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
9418 before initially popping up the menu, so the menu doesn't flash
9419 when the face settings are significantly different from the defaults.
9420
9421 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
9422
9423 * regex.c (WIDE_CHAR_SUPPORT): New macro.
9424 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
9425 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
9426 (BIT_UNIBYTE): Remove.
9427 (re_match_2_internal): Delete corresponding code and streamline the
9428 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
9429 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
9430 (re_wctype_t): New type.
9431 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
9432 (regex_compile): Use them and fix handling of overly long char classes.
9433
9434 2000-09-03 Andrew Innes <andrewi@gnu.org>
9435
9436 * makefile.w32-in: Change to DOS line endings.
9437
9438 * s/ms-w32.h (ORDINARY_LINK): New define.
9439
9440 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
9441 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
9442
9443 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
9444 (distclean): Delete them here instead.
9445
9446 * w32proc.c (compare_env): Convert to uppercase for comparison,
9447 not lowercase, to match how the native Windows shell works.
9448
9449 2000-09-03 Jason Rumney <jasonr@gnu.org>
9450
9451 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
9452 CVS changes the line-ends when checking in/out on DOS/Windows.
9453
9454 * makefile.nt (emacs): Do not change directory to run temacs, as
9455 the load-path is set relative to current directory.
9456
9457 2000-09-03 Miles Bader <miles@gnu.org>
9458
9459 * xterm.c (x_alloc_lighter_color_for_widget): New function.
9460
9461 2000-09-02 Gerd Moellmann <gerd@gnu.org>
9462
9463 * xdisp.c (redisplay_mode_lines): New function.
9464 (display_mode_lines): Return number of mode lines displayed.
9465 (echo_area_display): Use redisplay_mode_lines to draw garbaged
9466 mode lines. Don't temporarily bind redisplay-dont-pause to t.
9467
9468 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
9469 string.h and strings.h.
9470 (index) [HAVE_INDEX]: Add prototype.
9471
9472 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
9473 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
9474
9475 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
9476 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9477
9478 2000-09-01 Gerd Moellmann <gerd@gnu.org>
9479
9480 * lread.c (read1): Accept `?' as symbol constituent, for
9481 compatiblity with XEmacs.
9482
9483 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
9484
9485 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
9486 (struct re_pattern_buffer): Remove newline_anchor.
9487 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
9488 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
9489 (re_max_failures, fail_stack): Use size_t rather than unsigned.
9490 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
9491 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
9492 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
9493 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
9494 Get rid of references to newline_anchor.
9495 (regcomp): Allocate and precompute a fastmap.
9496
9497 2000-08-31 Gerd Moellmann <gerd@gnu.org>
9498
9499 * lread.c (openp): GCPRO local variable `filename'.
9500
9501 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
9502
9503 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
9504
9505 * regex.c: Merge some changes from GNU libc. Add prototypes.
9506 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
9507 Use memcmp and memcpy instead of bcopy and bcmp.
9508 (init_syntax_once): Use ISALNUM.
9509 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
9510 (REG_UNSET_VALUE): Remove. Use NULL instead.
9511 (REG_UNSET, re_match_2_internal): Use NULL.
9512 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
9513 New macros.
9514 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
9515 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
9516 (regex_compile): In handle_interval, return an error rather than try to
9517 unfetch the interval if we can't find the closing brace.
9518 Obey the RE_NO_GNU_OPS syntax bit.
9519 (TOLOWER): New macro.
9520 (regcomp): Use it.
9521 (regexec): Allocate regs.start and regs.end as one block.
9522
9523 2000-08-30 Gerd Moellmann <gerd@gnu.org>
9524
9525 * xdisp.c (echo_area_display): Check display_completed instead
9526 of calling detect_input_pending.
9527
9528 * dispnew.c (update_frame): Only set display_completed here; move
9529 the update_begin and update_end calls here from update_frame_1.
9530 (update_frame_1): Don't set display_completed here, don't call
9531 update_begin/update_end.
9532
9533 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
9534 instead of store_frame_param.
9535
9536 2000-08-29 Gerd Moellmann <gerd@gnu.org>
9537
9538 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
9539 desired window matrix hasn't been displayed, use the current row
9540 instead. Make sure that only those frame rows are updated for
9541 which there exists a corresponding enabled desired row.
9542
9543 2000-08-29 Miles Bader <miles@gnu.org>
9544
9545 * xfaces.c (default_face_vector): New function.
9546 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
9547
9548 2000-08-29 Gerd Moellmann <gerd@gnu.org>
9549
9550 * lread.c (openp): Prevent temporary string passed to
9551 Ffile_readable_p from being garbage collected.
9552
9553 2000-08-28 Dave Love <fx@gnu.org>
9554
9555 * keymap.c (store_in_keymap): Add `static' to declaration.
9556
9557 2000-08-28 Gerd Moellmann <gerd@gnu.org>
9558
9559 * emacs.c, callint.c, doc.c, editfns.c
9560 (toplevel) [HAVE_STRING_H]: Include string.h.
9561 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
9562 (index): Remove prototypes which might conflict with non-standard
9563 definitions of index/strchr.
9564
9565 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
9566 (rindex): Define only if !HAVE_RINDEX.
9567
9568 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
9569
9570 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
9571
9572 2000-08-28 Miles Bader <miles@gnu.org>
9573
9574 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
9575 made inconsistent by a font-related attribute in FROM.
9576 (merge_face_inheritance): Add function comment.
9577
9578 2000-08-28 Kenichi Handa <handa@etl.go.jp>
9579
9580 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
9581 the 4th arg (PREV_EVENT) Qt to suppress input method.
9582
9583 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
9584
9585 * regex.c: Indent cpp directives and remove parens after `defined'.
9586 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
9587 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
9588 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
9589 (re_compile_pattern): Use size_t for length.
9590 (init_syntax_once): Move to a better place.
9591 * regex.h: Merge changes from GNU libc. Indent cpp directives.
9592 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
9593
9594 * syntax.c (back_comment): Detect cases where a comment-starter is
9595 actually inside another comment as in: /* a // b */ c // d \n.
9596 Make it clear that `comstart_pos' is unused for nested comments.
9597
9598 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
9599 (KEYMAPP): New macro.
9600 (Fkeymap_parent, Fset_keymap_parent): Use it.
9601 (fix_submap_inheritance): Mark it static.
9602 (define_as_prefix, describe_buffer_bindings, describe_command)
9603 (describe_translation, describe_map): Complete prototypes.
9604
9605 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
9606
9607 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
9608 to better match the key-lookup behavior.
9609
9610 2000-08-27 Gerd Moellmann <gerd@gnu.org>
9611
9612 * xfaces.c (lface_fully_specified_p): Handle :inherit.
9613 (Finternal_set_lisp_face_attribute): Fix typo in error message.
9614
9615 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
9616
9617 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
9618 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
9619 (xterm.o): Depend on coding.h
9620
9621 2000-08-26 Kenichi Handa <handa@etl.go.jp>
9622
9623 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
9624 the corresponding '#endif'.
9625
9626 2000-08-26 Miles Bader <miles@gnu.org>
9627
9628 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
9629 * xfaces.c (QCinherit): New variable.
9630 (syms_of_xfaces): Initialize it.
9631 (LFACE_INHERIT): New macro.
9632 (Finternal_get_lisp_face_attribute)
9633 (merge_face_vector_with_property)
9634 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
9635 (check_lface_attrs): Allow new types of face height. Check
9636 inherit attribute.
9637 (CYCLE_CHECK): New macro.
9638 (merge_face_inheritance): New function.
9639 (merge_face_vectors): Merge inherited faces too. Add F and
9640 CYCLE_CHECK arguments.
9641 (merge_face_vector_with_property, Finternal_merge_in_global_face)
9642 (lookup_named_face, lookup_derived_face, realize_named_face)
9643 (face_at_string_position, face_at_buffer_position): Supply
9644 new F and CYCLE_CHECK arguments to merge_face_vectors.
9645 (merge_face_heights): New function.
9646 (merge_face_vectors, merge_face_vector_with_property)
9647 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
9648 handle relative face heights.
9649 (lface_same_font_attributes_p): Compare heights using EQ.
9650
9651 2000-08-26 Kenichi Handa <handa@etl.go.jp>
9652
9653 * charset.c (char_to_string): Check the character validity.
9654 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
9655
9656 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
9657
9658 * regex.c (PUSH_FAILURE_COUNT): New macro.
9659 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
9660 Handle popping of a register's or a counter's data.
9661 (POP_FAILURE_POINT): Use the new name.
9662 (re_match_2_internal): Push counter data on the stack for succeed_n,
9663 jump_n and set_number_at and remove misleading dead code in succeed_n.
9664
9665 2000-08-25 Gerd Moellmann <gerd@gnu.org>
9666
9667 * xdisp.c (redisplay_internal): If considering all windows on all
9668 frames, update the display for each frame as soon as possible,
9669 instead of first building all desired matrices for all frames, and
9670 then updating them all.
9671 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
9672
9673 2000-08-24 Gerd Moellmann <gerd@gnu.org>
9674
9675 * bytecode.c (mark_byte_stack): Add a comment.
9676
9677 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
9678 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
9679 a graphical frame.
9680
9681 2000-08-24 Kenichi Handa <handa@etl.go.jp>
9682
9683 * minibuf.c (do_completion): Always use compare-string, not
9684 string-equal because the latter doesn't pay attention to
9685 multibyteness of strings.
9686
9687 * process.c (create_process): Don't setup raw-text coding here.
9688 (Fopen_network_stream): Don't set coding->src_multibyte and
9689 coding->dst_multibyte here.
9690 (read_process_output): For process filter, return unibyte string
9691 if default-enable-multibyte-characters is nil.
9692 (send_process): If OBJECT is multibyte text, be sure to encoded it
9693 by the specified coding system for the process. Otherwise, setup
9694 raw-text coding.
9695 (init_process): Don't initialize default-process-coding-system here.
9696
9697 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
9698
9699 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
9700 <scroll-down-aggressively>: Likewise.
9701
9702 2000-08-23 Kenichi Handa <handa@etl.go.jp>
9703
9704 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
9705 zero. Set coding->produced_char correctly.
9706
9707 2000-08-22 Andrew Innes <andrewi@gnu.org>
9708
9709 * makefile.w32-in: New file.
9710
9711 * unexw32.c (unexec): Ignore old_name, and use the actual location
9712 of the current executable instead. Base new_name on this.
9713
9714 * w32proc.c (create_child): Remove reference to security
9715 descriptor, which isn't needed and doesn't compile with mingw32.
9716
9717 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9718 up dllimport attributes.
9719 (x_update_window_end): Update prototype.
9720
9721 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
9722 extern, which screws up dllimport attributes.
9723
9724 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9725 up dllimport attributes.
9726
9727 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
9728 screws up dllimport attributes.
9729
9730 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9731 up dllimport attributes.
9732 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
9733 screws up dllimport attributes.
9734
9735 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9736 up dllimport attributes.
9737
9738 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
9739 screws up dllimport attributes.
9740
9741 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
9742 screws up dllimport attributes.
9743
9744 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9745 up dllimport attributes.
9746
9747 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
9748 unnecessary extern, which screws up dllimport attributes.
9749 (main): Ditto.
9750
9751 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9752 up dllimport attributes.
9753
9754 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
9755 unnecessary extern, which screws up dllimport attributes.
9756
9757 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
9758 screws up dllimport attributes.
9759
9760 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9761 up dllimport attributes.
9762
9763 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
9764
9765 * w32bdf.c (search_file_line):
9766 (set_bdf_font_info):
9767 (seek_char):
9768 (w32_get_bdf_glyph):
9769 (w32_BDF_to_x_font): Fix compile warnings.
9770
9771 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
9772
9773 * w32select.c: Include keyboard.h before frame.h.
9774
9775 * w32fns.c (max): Define macro.
9776 (JOHAB_CHARSET): Define if not known.
9777 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
9778 (Fx_show_tip): Synch with X version.
9779
9780 * w32xfns.c: Include keyboard.h before frame.h.
9781
9782 * w32fns.c: Include keyboard.h before frame.h.
9783
9784 * w32term.c: Include keyboard.h before frame.h.
9785
9786 * fontset.c: Include keyboard.h before frame.h.
9787
9788 * w32inevt.c: Include keyboard.h before frame.h.
9789 (MOUSE_MOVED): Define if not known.
9790
9791 * minibuf.c: Include keyboard.h before frame.h.
9792
9793 * keyboard.c: Include keyboard.h before frame.h.
9794
9795 * indent.c: Include keyboard.h before frame.h.
9796
9797 * dispnew.c: Include keyboard.h before frame.h.
9798
9799 * buffer.c: Include keyboard.h before frame.h.
9800
9801 * alloc.c: Include keyboard.h before frame.h.
9802
9803 * print.c: Include keyboard.h before frame.h.
9804
9805 * process.c: Include keyboard.h before frame.h.
9806
9807 * scroll.c: Include keyboard.h before frame.h.
9808
9809 * sysdep.c: Include keyboard.h before frame.h.
9810
9811 * term.c: Include keyboard.h before frame.h.
9812
9813 * window.c: Include keyboard.h before frame.h.
9814
9815 * xdisp.c: Include keyboard.h before frame.h.
9816 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
9817
9818 * frame.c: Include keyboard.h before frame.h.
9819
9820 * w32heap.h: Undefine min, max.
9821
9822 * w32gui.h: Undefine min, max.
9823
9824 * unexw32.c: Change PUCHAR to PCHAR.
9825 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
9826 (relocate_offset):
9827 (get_section_info):
9828 (copy_executable_and_dump_data): Remove unnecessary static defs.
9829 (copy_executable_and_dump_data): Fix compile warnings.
9830
9831 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
9832
9833 * w32console.c (min): Define macro.
9834 (clear_frame, write_glyphs): Fix compile warning.
9835
9836 * w32proc.c (compare_env):
9837 (find_child_console): Fix compile warning.
9838
9839 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
9840 sys_errlist instead of _sys_errlist.
9841 (get_emacs_configuration_options): New function.
9842
9843 * s/ms-w32.h (sys_nerr): Provide default definition.
9844 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
9845 name with _ prepended.
9846 (NSIG): Define if not known.
9847 (get_emacs_configuration): Provide extern declaration.
9848 (get_emacs_configuration_options): Provide extern declaration.
9849 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
9850
9851 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
9852 (map_w32_filename):
9853 (read_unc_volume): Fix compile warning.
9854
9855 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
9856 definitions from being used.
9857
9858 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
9859
9860 * w32.c (unc_volume_file_attributes):
9861 (open_unc_volume): Make arg const.
9862
9863 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
9864 (read_input_waiting): Remove excess parameter.
9865
9866 * w32.c (init_environment): Call _access.
9867 (check_windows_init_file): Call _close.
9868 (init_user_info): Call _putenv.
9869 (init_environment): Call _putenv and _strdup.
9870 (init_ntproc): Reset volume info cache on startup.
9871
9872 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
9873 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
9874 cannot override the CRT malloc.
9875
9876 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
9877 (LINK_FLAGS): Append to original value of LINK_FLAGS.
9878
9879 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
9880 unless we are linking with a static CRT.
9881 (RVA_TO_PTR): Cast result to unsigned char*.
9882
9883 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
9884 (add_volume_info): Use xstrdup.
9885
9886 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
9887
9888 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
9889 (do_completion, Fminibuffer_complete_word): Use it.
9890 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
9891 var so it can take non-boolean values.
9892
9893 2000-08-21 Gerd Moellmann <gerd@gnu.org>
9894
9895 * editfns.c (find_field): Formatting changes.
9896 (toplevel): Some old-style function forward declarations
9897 changed to prototypes, some new protypes added, some functions
9898 made static.
9899
9900 * lisp.h (set_time_zone_rule): Add prototype.
9901 (use_dialog_box): External declaration.
9902
9903 * keyboard.c (gen_help_event): Add parameter SIZE.
9904 (kbd_buffer_events_waiting): Slightly rewritten.
9905 (clear_event): New function.
9906 (kbd_buffer_get_event): Use it, and clear the input_events of
9907 HELP_EVENTs.
9908 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
9909 don't fill the newly created array with nils.
9910 (toplevel): Convert some old-style function forward declarations
9911 to prototypes.
9912
9913 * keyboard.h (gen_help_event): Change prototype.
9914
9915 * xterm.c (XTread_socket): Change calls to gen_help_event.
9916
9917 * w32term.c (w32_read_socket): Change calls to gen_help_event.
9918
9919 * eval.c (Fmacroexpand): Doc fix.
9920
9921 2000-08-20 Jason Rumney <jasonr@gnu.org>
9922
9923 * w32term.h (x_display_info_for_display): Remove as this function
9924 does not exist on W32.
9925
9926 * w32term.c (help_echo_window): New variable.
9927 (syms_of_w32term): staticpro it.
9928 (note_mode_line_highlight): Set it.
9929 (XTextExtents16): Removed as there is no equivalent on W32.
9930 (x_compute_glyph_string_overhangs): Incomplete body removed, as
9931 the X way of doing this will not work for W32.
9932 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
9933 (x_draw_image_foreground): Avoid drawing outside of the clip area
9934 when image doesn't have a mask.
9935 (note_mouse_highlight): Process overlays in the right order of
9936 priority. Set help_echo_window.
9937 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
9938 because that's more visible for large images.
9939
9940 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
9941 name to single_keymap_panes.
9942 (w32_menu_show): Set wv->title when dealing with titles.
9943 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
9944
9945 2000-08-21 Miles Bader <miles@gnu.org>
9946
9947 * minibuf.c (do_completion): Try again if we rewrite the input
9948 string, but no completion was done, so that any completion message
9949 will be correct.
9950
9951 2000-08-20 Gerd Moellmann <gerd@gnu.org>
9952
9953 * xfaces.c (lface_equal_p): Compare strings differently.
9954 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
9955 (realize_tty_face): Use them.
9956 (syms_of_xfaces): Initialize new variables.
9957 (map_tty_color): New function, extracted from realize_tty_face.
9958 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
9959 foreground or background color, store the new color name in the
9960 realized face; previous code trying to do this had no effect.
9961 (realize_tty_face): Use map_tty_color.
9962 (Fclear_face_cache): Set face_change_count and ensure thorough
9963 redisplay.
9964
9965 2000-08-19 Gerd Moellmann <gerd@gnu.org>
9966
9967 * undo.c (record_first_change, record_marker_adjustment): Don't
9968 use XBUFFER on last_undo_buffer which might not be a buffer.
9969
9970 2000-08-18 Kenichi Handa <handa@etl.go.jp>
9971
9972 * coding.c (decode_coding_string): Set members consumed,
9973 consumed_char, produced, produced_char of *coding correctly. If
9974 decode_coding doesn't consume any byte, don't try anymore.
9975 (encode_coding_string): Likewise.
9976
9977 2000-08-18 Gerd Moellmann <gerd@gnu.org>
9978
9979 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
9980 conditional have void type, for Standard C compilers.
9981
9982 * xdisp.c (redisplay_internal): Compare windows for equality with
9983 EQ, instead of applying XWINDOW to something that might not
9984 be a window.
9985
9986 2000-08-18 Kenichi Handa <handa@etl.go.jp>
9987
9988 * fontset.c (Finternal_char_font): Search only the selected frame
9989 for a window of the current buffer.
9990
9991 2000-08-18 Gerd Moellmann <gerd@gnu.org>
9992
9993 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
9994 Lisp_Objects.
9995
9996 * keyboard.c (kbd_buffer_get_event): Handle the case that the
9997 second half of a HELP_EVENT is found at the start of kbd_buffer.
9998
9999 2000-08-18 Miles Bader <miles@gnu.org>
10000
10001 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
10002
10003 * editfns.c (save_restriction_save): Rewrite to use markers.
10004 (save_restriction_restore): Rewrite to understand new form of data
10005 saved by save_restriction_save.
10006 (Fsave_restriction): Remove cautionary note in doc-string.
10007
10008 2000-08-17 Gerd Moellmann <gerd@gnu.org>
10009
10010 * fileio.c (build_annotations): Add a comment explaining the
10011 return value of format-annotate-function. Replace a spurious call
10012 to Flength with a CONSP test. Call format-annotate-function with
10013 a fifth arg specifying how many times the function is been called
10014 in a row, to let it choose temporary buffers appropriately.
10015
10016 2000-08-17 Dave Love <fx@gnu.org>
10017
10018 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
10019 declare make_temp_name twice.
10020
10021 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
10022 (unreadpure): Give it an arg.
10023
10024 * unexalpha.c: Prototype fatal_unexec, mark_x,
10025 update_dynamic_symbols. Declare unexec as void.
10026
10027 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
10028 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
10029
10030 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
10031 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
10032
10033 * alloca.c: Use #error.
10034 [POINTER_TYPE]: Use it.
10035
10036 * eval.c (Fdefvar): Doc fix.
10037
10038 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
10039 INITIALIZE_INTERVAL.
10040
10041 * buffer.h: Avoid DECLARE_INTERVALS.
10042
10043 * config.in: Add size_t.
10044
10045 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
10046
10047 * w16select.c (set_clipboard_data): If there's not enough memory
10048 to put text into clipboard, return 1, as Fw16_set_clipboard_data
10049 expects. In case of other failures, return 3.
10050 (system_error_msg): New error message.
10051 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
10052 system_error_msg.
10053
10054 2000-08-16 Gerd Moellmann <gerd@gnu.org>
10055
10056 * term.c (write_glyphs): Also turn off inverse video after turning
10057 off other appearances in case TS_exit_attribute_mode is not equal
10058 to TS_end_standout_mode.
10059 (insert_glyphs): Turn inverse video on/off for each run of glyphs
10060 with the same face.
10061 (turn_off_face): Reset standout_mode only if
10062 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
10063 is equal to TS_end_standout_mode.
10064
10065 2000-08-16 Kenichi Handa <handa@etl.go.jp>
10066
10067 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
10068 sequence at the end of the source block.
10069
10070 * ccl.c (Fccl_program_p): Docstring modified.
10071 (Fccl_execute): Likewise.
10072 (Fccl_execute_on_string): Likewise.
10073
10074 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
10075
10076 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
10077
10078 2000-08-16 Kenichi Handa <handa@etl.go.jp>
10079
10080 The following changes are mainly to fix bugs of
10081 encode/decode-coding-string failing if encoding/decoding return
10082 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
10083 variable conversion_buffer.
10084
10085 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
10086 decrement dst_end to avoid buffer overflow in the later call of
10087 string_as_multibyte
10088
10089 * coding.h (conversion_buffer_size, conversion_buffer)
10090 (get_conversion_buffer): Extern deleted.
10091
10092 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
10093 (conversion_buffer, conversion_buffer_size): Variables deleted.
10094 (get_conversion_buffer): Function deleted.
10095 (struct conversion_buffer): New structure.
10096 (MAX_ALLOCA): New macro.
10097 (allocate_conversion_buffer): New macro.
10098 (extend_conversion_buffer, free_conversion_buffer): New functions.
10099 (ccl_coding_driver): Set coding->result.
10100 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
10101 this is the last block of source.
10102 (encode_coding): Likewise. Handle the source block as the last
10103 one only when the whole source text is consumed.
10104 (decode_coding_string): Handle the case that the output buffer is
10105 too small to decode the whole source text. Use
10106 allocate_conversion_buffer, extend_conversion_buffer and
10107 free_conversion_buffer, not get_conversion_buffer.
10108 (encode_coding_string): Likewise.
10109 (init_coding): Function deleted.
10110 (init_coding_once): Delete code to initialize conversion_buffer_size.
10111
10112 * emacs.c (main): Don't call init_coding.
10113
10114 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
10115
10116 * term.c (write_glyphs): Use a locally declared conversion_buffer.
10117 (insert_glyphs): Likewise.
10118
10119 * w32console.c (write_glyphs): Use a locally declared
10120 conversion_buffer.
10121
10122 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
10123
10124 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
10125 member of display_info is NULL.
10126
10127 2000-08-15 Gerd Moellmann <gerd@gnu.org>
10128
10129 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
10130
10131 * term.c (turn_off_face): Reset standout_mode when resetting
10132 appearances with capability `me'.
10133 (write_glyphs): Switch on inverse video before each face change.
10134
10135 2000-08-14 Dave Love <fx@gnu.org>
10136
10137 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
10138 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
10139 (lisp_free): Declare and make static.
10140
10141 * window.c: Fix embedded comment.
10142 (syms_of_window): Fix doc string.
10143
10144 2000-08-14 Gerd Moellmann <gerd@gnu.org>
10145
10146 * keymap.c (push_key_description): If C without modifiers is < 32,
10147 make sure to print `C-' before `M-', like in the manual.
10148
10149 2000-08-11 Gerd Moellmann <gerd@gnu.org>
10150
10151 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
10152 since they aren't relocated anymore.
10153 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
10154
10155 * xdisp.c (try_cursor_movement): Fix handling of cursor in
10156 partially visible line which is smaller than the window's height.
10157
10158 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10159
10160 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
10161 the multibyte form of eight-bit-control characters.
10162 (Fccl_execute_on_string): Initialize ccl->multibyte.
10163
10164 * ccl.h (struct ccl_program): New member multibyte.
10165
10166 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
10167
10168 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10169
10170 * regex.c (regex_compile) <normal_char>: Pay attention to
10171 multibyteness.
10172 (analyse_first) <exactn>: Setup fastmap correctly for
10173 eight-bit-control characters.
10174
10175 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10176
10177 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
10178
10179 * keyboard.c (make_lispy_event): Handle the new event type
10180 multibyte_char_keystroke.
10181
10182 * xterm.c: Include coding.h.
10183 (XTread_socket): Work around a bug of XmbLookupString. If the
10184 input is from XIM, decode it according to the current locale. In
10185 that case, generate multibyte_char_keystroke events.
10186
10187 2000-08-11 Kenichi Handa <handa@etl.go.jp>
10188
10189 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
10190 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
10191
10192 2000-08-10 Gerd Moellmann <gerd@gnu.org>
10193
10194 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
10195 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
10196 (move_it_in_display_line_to): Record iterator's ascent and descent
10197 before producing glyphs, and restore them when we know the glyph
10198 doesn't fit on the line.
10199 (move_it_to): Restructured so that it's easier to debug. If
10200 moving to a vpos, and not moving to an x or character position,
10201 stop as soon as the specified vpos is reached; don't move further
10202 into that line because that might change the computed line height.
10203 (try_cursor_movement): New function, extracted from the cursor
10204 movement branch of redisplay_window. If ending on a partially
10205 visible line, don't try to scroll if the cursor line is taller
10206 than the window.
10207 (redisplay_window): Use try_cursor_movement.
10208
10209 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
10210 because that function doesn't cope with variable-height lines.
10211
10212 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
10213 box cursor because that's better visible for large images.
10214
10215 2000-08-10 Miles Bader <miles@gnu.org>
10216
10217 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
10218
10219 2000-08-10 Gerd Moellmann <gerd@gnu.org>
10220
10221 * xdisp.c (Vmessages_buffer_name): New variable.
10222 (message_dolog): Use it.
10223 (syms_of_xdisp): Initialize it.
10224
10225 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
10226
10227 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
10228 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
10229 redundant now that keyboard.h is included.
10230
10231 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
10232
10233 * keyboard.c (kbd_buffer_events_waiting): New function.
10234
10235 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
10236
10237 * msdos.c: Include keyboard.h.
10238 (XMenuActivate): Empty no_event events from the event buffer. If
10239 no events are left after that, call clear_input_pending.
10240 (mouse_clear_clicks): New function, code moved from mouse_init.
10241 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
10242 mouse driver to ``forget'' any past clicks.
10243
10244 * Makefile.in (msdos.o): Depend on keyboard.h.
10245
10246 2000-08-09 Gerd Moellmann <gerd@gnu.org>
10247
10248 * lisp.h (input_pending): External declaration.
10249
10250 * dispextern.h (Qredisplay_dont_pause): Declare extern.
10251
10252 * xdisp.c (echo_area_display): Display thoroughly if input is
10253 pending. Bind redisplay-dont-pause to t during the redisplay.
10254 in case input is pending.
10255
10256 * dispnew.c (Qredisplay_dont_pause): New variable.
10257 (syms_of_display): Initialize and staticpro it.
10258 (update_frame_1): Don't interrupt the display for pending input if
10259 redisplay_dont_pause is set.
10260
10261 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
10262
10263 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
10264
10265 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
10266
10267 * callproc.c (Fcall_process): Terminate the unwind-protect around
10268 the post-read-conversion of coding system.
10269
10270 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
10271 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
10272 * buffer.h (overlays_at): Update prototype.
10273 * xdisp.c (next_overlay_change): Update call to overlays_at.
10274 * xfaces.c (face_at_buffer_position): Likewise.
10275 * textprop.c (Fget_char_property): Likewise.
10276 * xterm.c (note_mouse_highlight): Likewise.
10277
10278 * minibuf.c (do_completion): Don't consider a simple change of
10279 case as `completion'.
10280
10281 2000-08-08 Ken Raeburn <raeburn@gnu.org>
10282
10283 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
10284 * undo.c (record_delete): Make sure last_point_position_buffer is
10285 a buffer before comparing pointers.
10286
10287 * coding.h (decode_coding_string): Declare.
10288
10289 * intervals.h (Fprevious_single_char_property_change): Declare.
10290
10291 * textprop.c (Fprevious_single_char_property_change): Don't do
10292 arithmetic directly on lisp objects.
10293
10294 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
10295
10296 * keyboard.h (menu_item_eval_property): Declare.
10297
10298 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
10299 reuse as buffer name, instead of recreating (and discarding) every
10300 time a message is logged.
10301 (with_echo_area_buffer): Make callback arg A2 a lisp object.
10302 (current_message_1, truncate_message_1, set_message_1)
10303 (display_echo_area_1, resize_mini_window_1): Signatures changed.
10304 (current_message, truncate_echo_area, display_echo_area)
10305 (resize_echo_area_axactly): Changed calls.
10306
10307 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
10308 Lisp object.
10309 (Ffind_coding_systems_region_internal): First argument to Fappend
10310 must be an integer, not a Lisp object.
10311
10312 2000-08-08 Kenichi Handa <handa@etl.go.jp>
10313
10314 * charset.c (Fchar_width): Doc fix.
10315
10316 2000-08-08 Gerd Moellmann <gerd@gnu.org>
10317
10318 * charset.c (Fstring_width): Doc fix.
10319
10320 2000-08-07 Gerd Moellmann <gerd@gnu.org>
10321
10322 * xdisp.c (start_display): When starting display on a continuation
10323 line, clear ascent and descent members of the iterator structure;
10324 the height of the continued line does not affect the height of the
10325 continuation line.
10326 (make_cursor_line_fully_visible): Do nothing if cursor is on a
10327 line taller than the window.
10328 (redisplay_window) <forced window start>: Handle case that the
10329 middle of the window is not found in any row.
10330 (dump_glyph_row): Show more information.
10331 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
10332 first text line in a glyph matrix.
10333
10334 * xterm.c (x_draw_image_foreground): Avoid drawing outside
10335 of the clip area when image doesn't have a mask.
10336
10337 * fns.c (sweep_weak_table): Fix survival conditions for
10338 key-or-value and key-and-value weakness.
10339
10340 * .gdbinit (xhashtable): New command.
10341
10342 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
10343 tables out of the list of all weak hash tables.
10344
10345 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
10346 a new buffer is created, make sure echo_area_buffer[] references
10347 the new buffer.
10348
10349 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
10350
10351 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
10352 the doc string.
10353
10354 2000-08-07 Kenichi Handa <handa@etl.go.jp>
10355
10356 * syntax.c (skip_chars): Fix previous change. Make the handling
10357 of unibyte string consistent with that of regex search.
10358
10359 2000-08-05 Gerd Moellmann <gerd@gnu.org>
10360
10361 * xmenu.c (popup_get_selection): Use xfree instead of free.
10362
10363 * fileio.c (Finsert_file_contents): Use xfree instead of free.
10364
10365 * editfns.c (Ftranspose_regions): Use xfree instead of free.
10366
10367 * callproc.c (child_setup): Use xfree instead of free.
10368
10369 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
10370 instead of malloc.
10371 (run_mac_command, closedir): Use `xfree' instead of `free'.
10372
10373 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
10374
10375 * eval.c (error): Use xfree instead of free.
10376
10377 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
10378
10379 * fns.c: Replace `illegal' with `invalid'.
10380 (Fmake_hash_table, make_hash_table): Allow table size of 0.
10381
10382 2000-08-05 Kenichi Handa <handa@etl.go.jp>
10383
10384 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
10385 conversion.
10386
10387 2000-08-04 Noah Friedman <friedman@splode.com>
10388
10389 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
10390 docstring.
10391
10392 2000-08-04 Gerd Moellmann <gerd@gnu.org>
10393
10394 * syntax.c (skip_chars): Fix typo in error message.
10395
10396 2000-08-04 Andreas Schwab <schwab@suse.de>
10397
10398 * m/ia64.h: Moved from s/ia64.h.
10399
10400 2000-08-04 Kenichi Handa <handa@etl.go.jp>
10401
10402 * process.c (read_process_output): Big simplification. Handle
10403 composition and post-read-conversion of coding system correctly.
10404 (send_process): Handle composition correctly.
10405
10406 * callproc.c (Fcall_process): Handle post-read-conversion of
10407 coding system if any.
10408
10409 * coding.c (decode_coding_iso2022): More strict check for handling
10410 single shifting.
10411 (coding_restore_composition): Pay attention to the case that
10412 cmp_data is not set properly (because of invalid code in the
10413 source text).
10414 (run_pre_post_conversion_on_str): Include text properties in the
10415 resulting string.
10416 (decode_coding_string): Set members of coding correctly.
10417
10418 2000-08-03 Gerd Moellmann <gerd@gnu.org>
10419
10420 * s/ia64.h: New file.
10421
10422 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
10423 Use NULL instead of 0 at the end of variable argument list of
10424 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
10425 sizeof (int) < sizeof (void *).
10426
10427 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
10428 of variable argument lists of XtVaGetValues and XtVaSetValues.
10429
10430 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
10431 variable argument lists of XtVaGetValues and XtVaSetValues.
10432
10433 2000-08-02 Gerd Moellmann <gerd@gnu.org>
10434
10435 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
10436 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
10437
10438 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
10439 prototype.
10440
10441 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
10442 in call to Fsingle_key_description.
10443
10444 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
10445 Callers changed.
10446
10447 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
10448
10449 * window.c (display_buffer_reuse_frames): New variable.
10450 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
10451 frames displaying BUFFER.
10452 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
10453
10454 2000-08-01 Miles Bader <miles@gnu.org>
10455
10456 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
10457 when to constrain NEW_POS (they were pretty screwed up before).
10458
10459 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
10460
10461 * msdos.c (run_msdos_command): Save and restore the master
10462 environment, for the case that child_setup signals an error.
10463 When mirroring slashes in DOS shell commands, don't fail when
10464 argv[2] has embedded blanks.
10465 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
10466 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
10467 (dos_ttraw): Call mouse_setup_buttons.
10468
10469 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
10470 using alloca; free it after run_msdos_command returns.
10471
10472 2000-07-27 Dave Love <fx@gnu.org>
10473
10474 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
10475 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
10476
10477 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
10478
10479 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
10480
10481 * editfns.c (lisp_time_argument): Fix last change.
10482
10483 2000-07-27 Gerd Moellmann <gerd@gnu.org>
10484
10485 * fns.c (Fdelete): Make it work on vectors and strings in addition
10486 to lists.
10487
10488 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
10489 (syms_of_fns): Initialize new variables.
10490 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
10491 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
10492 weakness, with t meaning the same as `key-and-value'.
10493
10494 2000-07-27 Kenichi Handa <handa@etl.go.jp>
10495
10496 * coding.h (struct coding_system): Member safe_charset deleted.
10497
10498 * coding.c (Qsafe_charsets): This variable deleted.
10499 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
10500 New variables.
10501 (coding_safe_chars): New function.
10502 (CODING_SAFE_CHAR_P): New macro.
10503 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
10504 checking safe_charsets member of the coding system. Caller changed.
10505 (detect_coding_iso2022): New local variable safe_chars.
10506 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
10507 safe_charsets member of the coding system.
10508 (decode_coding_iso2022): New local variable safe_chars.
10509 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
10510 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
10511 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
10512 (ENCODE_UNSAFE_CHARACTER): New macro.
10513 (encode_coding_iso2022): New local variable safe_chars. Check
10514 unsafe chars.
10515 (setup_coding_system): Delete the code to initialize
10516 coding->safe_charses
10517 (intersection, find_safe_codings): New functions.
10518 (Ffind_coding_systems_region_internal): New function.
10519 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
10520 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
10521 variable and initialize it.
10522
10523 * fns.c (char_table_ref_and_index): New function.
10524
10525 * lisp.h (char_table_ref_and_index): Add prototype.
10526
10527 2000-07-26 Sam Steingold <sds@gnu.org>
10528
10529 * editfns.c (lisp_time_argument): Added third argument `usec'.
10530 (Ffloat_time): New built-in Lisp function.
10531
10532 2000-07-26 Gerd Moellmann <gerd@gnu.org>
10533
10534 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
10535 for the character code.
10536
10537 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
10538 GNU/Linux.
10539
10540 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
10541 if called for a popup menu.
10542 (xmenu_show): Store help string in widget values.
10543
10544 2000-07-26 Dave Love <fx@gnu.org>
10545
10546 * syswait.h: Move some definitions.
10547 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
10548 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
10549 perspicuous definitions.
10550 (WTERMSIG): Fix bit pattern used.
10551
10552 2000-07-26 Kenichi Handa <handa@etl.go.jp>
10553
10554 * print.c (print_object): If vector printing is truncated, print
10555 "..." to indicate it as well as the case of list printing.
10556
10557 2000-07-25 Gerd Moellmann <gerd@gnu.org>
10558
10559 * xdisp.c (next_element_from_display_vector): Improve comments.
10560
10561 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
10562 for the character code, and the rest for the face id as in 20.x.
10563 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
10564
10565 * window.c (window_display_table): Cleaned up.
10566
10567 * syntax.c (Fforward_word): Add last arg nil in call of
10568 Fconstrain_to_field.
10569
10570 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
10571
10572 * fileio.c (Frename_file) [DOS_NT]: If the file names are
10573 identical but for the letter-case, don't call
10574 barf_or_query_if_file_exists.
10575
10576 2000-07-25 Miles Bader <miles@gnu.org>
10577
10578 * editfns.c (find_field): Honor special `boundary' fields.
10579 (Qboundary): New variables.
10580 (syms_of_editfns): Initialize Qboundary.
10581 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
10582 Use scan_buffer instead of find_before_next_newline, because it
10583 allows us to detect the boundary case where there's a newline at
10584 the search limit.
10585 * lisp.h (Fconstrain_to_field): Update external declaration.
10586
10587 2000-07-24 Gerd Moellmann <gerd@gnu.org>
10588
10589 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
10590 if that is nil.
10591
10592 2000-07-24 Dave Love <fx@gnu.org>
10593
10594 * s/sunos4-0.h, s/sol2.h:
10595 (LIBS_TERMCAP): Move from m/sparc.h.
10596
10597 * m/sparc.h (TERMINFO): Moved to system files (probably only
10598 relevant for sunos4 judging by its vintage).
10599 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
10600 __arch64__.
10601
10602 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
10603
10604 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
10605 name to single_keymap_panes.
10606
10607 2000-07-24 Andreas Schwab <schwab@suse.de>
10608
10609 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
10610
10611 2000-07-24 Gerd Moellmann <gerd@gnu.org>
10612
10613 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
10614 parameters instead of using int parameters. Expect FN to accept
10615 EMACS_INT parameters.
10616 (display_echo_area, resize_echo_area_axactly, current_message)
10617 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
10618 with new argument list.
10619 (resize_mini_window_1): New callback function.
10620 (current_message_1, truncate_message_1, set_message_1): Change
10621 parameter lists to the new format expected by with_echo_area_buffer.
10622
10623 2000-07-24 Kenichi Handa <handa@etl.go.jp>
10624
10625 * fontset.c (fontset_ref): Remove INLINE declaration.
10626 (fontset_ref_via_base): Likewise.
10627 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
10628 to downcase.
10629
10630 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
10631
10632 * msdos.c (IT_note_mouse_highlight): Process overlays in the
10633 correct order of priority. If help echo was found in an overlay,
10634 use that overlay as the object in which the help echo was found.
10635
10636 2000-07-22 Miles Bader <miles@gnu.org>
10637
10638 * textprop.c (Fprevious_single_char_property_change): The initial
10639 property value should be from the position preceding POSITION, not
10640 following it.
10641
10642 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
10643
10644 * coding.c (syms_of_coding): Doc fix for
10645 inhibit-iso-escape-detection.
10646
10647 2000-07-21 Gerd Moellmann <gerd@gnu.org>
10648
10649 * xterm.c (note_mouse_highlight): Process overlays in the right
10650 order of priority.
10651
10652 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
10653
10654 * xterm.c (note_mouse_highlight): If help-echo was found in an
10655 overlay, use that overlay as the object in which the help was found.
10656
10657 * window.c (foreach_window_1): Fix typo reversing an if-condition.
10658
10659 * window.c (foreach_window): Instead of a fake variable argument
10660 list, take one USER_DATA argument.
10661 (foreach_window_1): Likewise, and call callback functions with two
10662 args, the window and USER_DATA.
10663 (struct check_window_data): New struct.
10664 (check_window_containing): Use it.
10665 (window_from_coordinates): Set up a struct check_window_data for
10666 foreach_window.
10667 (add_window_to_list, freeze_window_start): Change parameters
10668 according to new calling convention.
10669
10670 * window.h (foreach_window): Change prototype.
10671
10672 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
10673
10674 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
10675
10676 * xmenu.c (menu_help_callback): Call show_help_echo with
10677 additional arguments OBJECT and POS.
10678
10679 2000-07-21 Kenichi Handa <handa@etl.go.jp>
10680
10681 * data.c (Faset): Allow storing any multibyte character in a
10682 string. Convert unibyte string to multibyte if necessary.
10683
10684 * xfns.c (x_encode_text): New function.
10685 (x_set_name): Use x_encode_text.
10686 (x_set_title): Likewise.
10687
10688 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
10689
10690 * xterm.h (x_encode_text): Add prototype.
10691
10692 2000-07-20 Dave Love <fx@gnu.org>
10693
10694 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
10695 xfree, not free.
10696
10697 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
10698
10699 * msdos.c (help_echo_window): New variable.
10700 (syms_of_msdos): Initialize and staticpro it.
10701 (IT_note_mode_line_highlight): Set help_echo_window.
10702 (IT_note_mouse_highlight): Ditto.
10703 (dos_rawgetc): Store help_echo_window in the second event produced
10704 for HELP_EVENTs.
10705
10706 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
10707 Record the object that generated the help echo and the position of
10708 that object in help_echo_object and help_echo_pos. Record that
10709 some glyphs in a row are displayed in mouse-face.
10710 (IT_update_begin): Don't clear mouse highlight unless one of the
10711 enabled glyph rows is marked as being displayed in mouse-face.
10712 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
10713 and position recorded in help_echo_object and help_echo_pos to the
10714 event queue.
10715 (IT_menu_display): Accept a new argument PN: the pane number of
10716 the current menu pane. Record the pane number and the item
10717 number of the item which has associated help string.
10718 (XMenuActivate): Update the prototype for help_callback in
10719 function declaration. Call IT_menu_display with the current menu
10720 pane number as an additional argument. Call help_callback with
10721 two additional arguments: the pane number and the item number of
10722 the menu item associated with the help text.
10723 (help_echo_object, help_echo_pos): New variables.
10724 (syms_of_msdos): Initialize them and staticpro help_echo_object.
10725
10726 * msdos.h (XMenuActivate): Update prototype.
10727
10728 2000-07-19 Gerd Moellmann <gerd@gnu.org>
10729
10730 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
10731 Add some more prototypes.
10732
10733 * xterm.c, xterm.h: Add some more prototypes.
10734
10735 * lisp.h (Fnext_single_char_property_change): Add prototype.
10736
10737 * dispnew.c (direct_output_for_insert): Remove confusing
10738 outer local variable mouse_face_overwritten_p.
10739 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
10740
10741 * alloc.c (allocate_string_data): Don't copy old string contents.
10742
10743 2000-07-19 Kenichi Handa <handa@etl.go.jp>
10744
10745 * coding.c (code_convert_region): Delete text properties before
10746 shrinking the conversion region.
10747
10748 2000-07-18 Gerd Moellmann <gerd@gnu.org>
10749
10750 * dispnew.c (update_text_area): Write the whole row if it
10751 has mouse-face in it.
10752
10753 * xfaces.c (face-alternative-font-family-alist): Remove
10754 DEFVAR_LISP; staticpro instead.
10755
10756 * xmenu.c (menu_help_callback): Call show_help_echo with
10757 new arguments.
10758
10759 * keyboard.c (show_help_echo): Add parameter WINDOW.
10760 (read_char): Call show_help_echo with window extracted from Lisp
10761 help event.
10762 (gen_help_event): Add parameter WINDOW.
10763
10764 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
10765
10766 * xterm.c (help_echo_window): New variable.
10767 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
10768 (XTread_socket): Pass help_echo_window to gen_help_event.
10769 (syms_of_xterm): Initialize and staticpro help_echo_window.
10770
10771 2000-07-18 Dave Love <fx@gnu.org>
10772
10773 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
10774
10775 2000-07-18 Gerd Moellmann <gerd@gnu.org>
10776
10777 * alloc.c (allocate_string_data): If string had already data
10778 assigned, copy old contents to new string data.
10779
10780 * coding.c (syms_of_coding): Fix typo in spelling of variable
10781 `inhibit-iso-escape-detection'.
10782
10783 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
10784
10785 * Makefile.in: Add dependencies on dispextern.h.
10786 (alloca.o): Don't define malloc and define EMACS_FREE instead of
10787 `free'; both can conflict with system header files.
10788
10789 2000-07-18 Kenichi Handa <handa@etl.go.jp>
10790
10791 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
10792 undefined.
10793
10794 2000-07-18 Dave Love <fx@gnu.org>
10795
10796 * window.c (Fwindow_list): Declare arg `window'.
10797
10798 2000-07-18 Kenichi Handa <handa@etl.go.jp>
10799
10800 * coding.c (setup_coding_system): Don't override the explicitly
10801 specified designations.
10802
10803 2000-07-15 Miles Bader <miles@gnu.org>
10804
10805 * editfns.c (char_property_eq, char_property_stickiness): Renamed
10806 from `text_property_eq' and `text_property_stickiness', respectively.
10807 (find_field, Fconstrain_to_field, char_property_eq)
10808 (char_property_stickiness): Changed to call char-property functions
10809 instead of text-property-only ones.
10810
10811 * textprop.c (Fnext_single_char_property_change): Made a subr (was
10812 `next_single_char_property_change'). Do more error checking, and
10813 cleanup limit behavior.
10814 (Fprevious_single_char_property_change): New function.
10815 (syms_of_textprop): Initialize new subrs.
10816
10817 * xdisp.c (display_prop_end, invisible_text_between_p):
10818 Call Fnext_single_char_property_change instead of
10819 next_single_char_property_change.
10820
10821 2000-07-15 Jason Rumney <jasonr@gnu.org>
10822
10823 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
10824 after menu is finished with.
10825 (add_menu_item): Only consider wv->title as a menu title.
10826 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
10827
10828 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
10829 null title.
10830 (FONT_REGEXP): Remove unused macro, and its sub-components.
10831 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
10832
10833 * w32term.c (help_echo_object, help_echo_pos): New variables.
10834 (note_mode_line_highlight): Store additional information about the
10835 help-echo in help_echo_object and help_echo_pos. Check both
10836 `local-map' and `keymap' properties for changing the cursor
10837 (note_mouse_highlight): Store additional information about the
10838 help-echo in help_echo_object and help_echo_pos.
10839 (note_tool_bar_highlight): Set help_echo_object to nil and
10840 help_echo_pos to -1.
10841 (w32_read_socket): Use gen_help_event instead of filling
10842 input_events manually.
10843 (syms_of_w32term): Staticpro help_echo_object.
10844 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
10845 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
10846 (x_clear_mouse_face): New function.
10847 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
10848 (x_update_window_begin): No need to turn off the mouse
10849 highlight here.
10850 (show_mouse_face): Set the mouse_face_p flag of glyph rows
10851 depending on whether they contain glyphs highlighted in mouse-face.
10852 (x_fill_stretch_glyph_string): Consume runs of stretch
10853 glyphs instead of a single one.
10854 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
10855 with new argument list.
10856 (x_set_glyph_string_gc): Make sure the face's GC is valid.
10857 (x_append_glyph, x_append_composite_glyph)
10858 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
10859 changes in struct glyph starting 1999-12-27. See comments for
10860 xterm.c on 2000-07-05.
10861
10862 2000-07-14 Sam Steingold <sds@gnu.org>
10863
10864 * xfaces.c (realize_x_face): Fix the last patch:
10865 check `default_face' before dereferencing.
10866
10867 2000-07-14 Dave Love <fx@gnu.org>
10868
10869 * syntax.c (back_comment): Add null default in switch (for pcc).
10870
10871 2000-07-14 Kenichi Handa <handa@etl.go.jp>
10872
10873 * xfaces.c (realize_x_face): Make fontset using the base of the
10874 default_face's fontset, not using the default fontset.
10875
10876 * coding.c (inhibit_iso_escape_detection): New variable.
10877 (syms_of_coding): Make it a Lisp variable.
10878 (detect_coding_iso2022): If inhibit_iso_escape_detection is
10879 nonzero, ignore ISO2022's escape sequence.
10880
10881 2000-07-14 Gerd Moellmann <gerd@gnu.org>
10882
10883 * alloca.c (malloc) [emacs]: Define as xmalloc.
10884
10885 * xfns.c (Fx_show_tip): If frame parameters contain a position,
10886 use that instead of the mouse position. Add parameters DX and DY.
10887
10888 * dispextern.h (Fx_show_tip): Adjust number of parameters
10889 in prototype.
10890
10891 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
10892 if HELP is a function, call it with OBJECT and POS as parameters
10893 to get the help to display.
10894 (gen_help_event, kbd_buffer_store_help_event): New functions.
10895 (kbd_buffer_get_event): Construct the Lisp help-event differently.
10896 (read_char): Call show_help_echo with new parameters.
10897
10898 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
10899 Add prototypes.
10900
10901 * xterm.c (help_echo_object, help_echo_pos): New variables.
10902 (note_mode_line_highlight): Store additional information about the
10903 help-echo in help_echo_object and help_echo_pos. Check both
10904 `local-map' and `keymap' properties for changing the cursor
10905 (note_mouse_highlight): Store additional information about the
10906 help-echo in help_echo_object and help_echo_pos.
10907 (note_tool_bar_highlight): Set help_echo_object to nil and
10908 help_echo_pos to -1.
10909 (XTread_socket): Use gen_help_event instead of filling
10910 input_events manually.
10911 (syms_of_xterm): Staticpro help_echo_object.
10912
10913 * xmenu.c (menu_highlight_callback): Use
10914 kbd_buffer_store_help_event instead of setting up and input_event
10915 structure manually.
10916
10917 * xdisp.c (eval_form): GCPRO argument sexpr.
10918 (call_function): New function.
10919 (handle_single_display_prop): Use call_function and FUNCTIONP
10920 instead of checking whether if font_height is a symbol and
10921 using eval_form.
10922
10923 * eval.c (internal_condition_case_2): New function.
10924
10925 * lisp.h (FUNCTIONP): New macro.
10926 (internal_condition_case_2, call_function): Add prototypes.
10927
10928 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
10929 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
10930 Always set `arg' member of input_events.
10931 (construct_menu_click): Unused function removed.
10932
10933 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
10934
10935 * w32term.c (construct_mouse_click, construct_mouse_wheel)
10936 (construct_drag_n_drop, x_scroll_bar_handle_click)
10937 (w32_read_socket): Always set `arg' member of input_events.
10938
10939 * keyboard.c (show_help_echo): Use eval_form. Add comment.
10940
10941 * lisp.h (eval_form): Add prototype.
10942
10943 * xdisp.c (eval_form): Make it externally visible.
10944
10945 2000-07-13 Gerd Moellmann <gerd@gnu.org>
10946
10947 * xterm.c (x_handle_tool_bar_click): Store the frame in the
10948 frame_or_window slot of TOOL_BAR_EVENT input events instead of
10949 consing. For prefix events, store the frame in the `arg' slot of
10950 the event, otherwise store the key there.
10951 (XTread_socket): Instead of consing, use the frame_or_window slot
10952 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
10953
10954 * xmenu.c (menu_highlight_callback): Store help string in the
10955 `arg' member of the input event; don't cons.
10956 (menubar_selection_callback): Use the `arg' slot of input events
10957 to queue additional information, instead of consing.
10958
10959 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
10960
10961 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
10962 TOOL_BAR_EVENTs.
10963 (w32_read_socket): Adapt to changes in HELP_EVENTs.
10964
10965 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
10966 input events to queue additional information, instead of consing.
10967
10968 * keyboard.c (kbd_buffer_gcpro): Renamed from
10969 kbd_buffer_frame_or_window. Now used for all Lisp objects
10970 referenced from the input queue.
10971 (kbd_buffer_store_event): Always use structure assignment for
10972 copying input events. Record all Lisp objects referenced from
10973 events in kbd_buffer_gcpro.
10974 (kbd_buffer_get_event): Construct Lisp `help-echo' events
10975 differently from input events. Test for prefix menu_bar_events
10976 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
10977 event in kbd_buffer_gcpro to nil.
10978 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
10979 frame_or_window is equal to its arg member as prefix events.
10980 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
10981 used by an input event to nil.
10982 (init_keyboard): Use two times the size of the input queue
10983 for kbd_buffer_gcpro.
10984 (syms_of_keyboard): Likewise.
10985
10986 * emacs.c (handle_USR2_signal, handle_USR1_signal):
10987 Use USER_SIGNAL_EVENT.
10988
10989 * termhooks.h (struct input_event): Add member `arg'.
10990 (MENU_BAR_EVENT): Renamed from menu_bar_event.
10991 (USER_SIGNAL_EVENT): Renamed from user_signal.
10992
10993 * xfaces.c (ASET): Remove definition.
10994
10995 * lisp.h (AREF, ASET, ASIZE): New macros.
10996
10997 * fontset.c (AREF, ASIZE): Remove definitions.
10998
10999 * fns.c (AREF): Remove definition.
11000
11001 * composite.c (AREF): Remove definition.
11002
11003 2000-07-12 Gerd Moellmann <gerd@gnu.org>
11004
11005 * dispnew.c (redraw_overlapped_rows): Add missing local.
11006 (scrolling_window): Remove debug code.
11007
11008 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
11009 Before scrolling, turn off a mouse-highlight in the window
11010 being scrolled.
11011
11012 * xterm.c (x_update_window_end): Add parameter
11013 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
11014 redisplay in XTframe_up_to_date.
11015 (x_clear_mouse_face): New function.
11016 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
11017
11018 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
11019 current glyph row.
11020 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
11021 it when any row is written to that contains glyphs highlighted in
11022 mouse-face.
11023 (update_window): Call the window update end hook with new
11024 parameter MOUSE_FACE_OVERWRITTEN_P.
11025 (direct_output_for_insert): Give up if row contains mouse-face.
11026
11027 * dispextern.h (struct redisplay_interface): Add parameter
11028 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
11029 (clear_mouse_face): New function pointer member.
11030
11031 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
11032
11033 * syntax.c (back_comment): Use one switch rather than a few `if's.
11034 Obey open_paren_in_column_0_is_defun_start.
11035 When reverting to the `slow' method, try to nicely handle the case
11036 of nested comments by checking that the comment-starter we found
11037 does indeed match the comment-ender.
11038 (scan_sexps_forward, scan_sexps_forward):
11039 Ignore excessive opening parenthesis rather than throwing an error.
11040
11041 2000-07-11 Gerd Moellmann <gerd@gnu.org>
11042
11043 * doc.c (Fsubstitute_command_keys): Handle case that a GC
11044 in Fwhere_is_internal or get_keymap_1 relocates string contents.
11045
11046 * dispnew.c (direct_output_forward_char): Give up if currently
11047 displaying a message instead of the minibuffer contents.
11048
11049 * xterm.c (x_update_window_begin): No need to turn off the mouse
11050 highlight here.
11051 (show_mouse_face): Set the mouse_face_p flag of glyph rows
11052 depending on whether they contain glyphs highlighted in mouse-face.
11053
11054 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
11055 compare the mouse_face_p flags of both rows.
11056
11057 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
11058
11059 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
11060
11061 * keyboard.c (show_help_echo): Accept additional parameter
11062 ok_to_overwrite_keystroke_echo.
11063 (read_char): Call show_help_echo with a zero
11064 ok_to_overwrite_keystroke_echo argument.
11065 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
11066 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
11067 ok_to_overwrite_keystroke_echo argument.
11068 * w32menu.c (w32_menu_display_help): Call show_help_echo with
11069 non-zero ok_to_overwrite_keystroke_echo argument.
11070
11071 2000-07-10 Gerd Moellmann <gerd@gnu.org>
11072
11073 * xdisp.c (try_window_id): If changes are all below what is
11074 displayed in the window, and point is in the window, we still
11075 might have to find point on the display.
11076
11077 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
11078 glyphs instead of a single one.
11079 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
11080 with new argument list.
11081 (x_set_glyph_string_gc): Make sure the face's GC is valid.
11082
11083 * keymap.c (get_keymap_1): Add comment that this function can GC.
11084 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
11085 comment that functions can GC.
11086 (Fset_keymap_parent): GCPRO arg KEYMAP.
11087
11088 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
11089
11090 * msdos.c (XMenuActivate): After exiting the menu, restore the
11091 echo area message and erase it.
11092
11093 2000-07-10 Kenichi Handa <handa@etl.go.jp>
11094
11095 * fontset.c (Ffontset_info): Make the return value more compatible
11096 with that of Emacs 20.
11097
11098 2000-07-07 Gerd Moellmann <gerd@gnu.org>
11099
11100 * eval.c (Fsignal): Handle case that backtrace_list is null.
11101
11102 2000-07-07 Kenichi Handa <handa@etl.go.jp>
11103
11104 * ccl.c (Fccl_execute): Typo fixed.
11105
11106 2000-07-06 Gerd Moellmann <gerd@gnu.org>
11107
11108 * window.c (window_loop): Add missing gcpro1 local variable.
11109
11110 * window.c (Fwindow_list): Reverse list at the end.
11111 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
11112 means allow windows on OWINDOW's frame, only.
11113 (window_loop): Simplified; use Fwindow_list.
11114
11115 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
11116
11117 2000-07-05 Gerd Moellmann <gerd@gnu.org>
11118
11119 * xterm.c (XTread_socket): Increment handling_signal at the start,
11120 decrement it at the end.
11121
11122 * eval.c (handling_signal): New variable.
11123 (Fsignal): Abort if handling_signal is non-zero.
11124
11125 * lisp.h (handling_signal): External declaration.
11126
11127 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
11128
11129 2000-07-05 Ken Raeburn <raeburn@gnu.org>
11130
11131 Sound support for NetBSD through "Linux emulation" support:
11132 * config.in (HAVE_SOUNDCARD_H): Undef.
11133 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
11134 * Makefile.in (LIBSOUND): New variable.
11135 (LIBES): Include it.
11136 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
11137 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
11138 (vox_open): Use DEFAULT_SOUND_DEVICE.
11139 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
11140
11141 2000-07-05 Gerd Moellmann <gerd@gnu.org>
11142
11143 * print.c (print_error_message): If Vsignaling_function is set,
11144 show it in *Messages*.
11145
11146 * lisp.h (Vsignaling_function): External declaration.
11147
11148 * eval.c (Vsignaling_function): New variable.
11149 (Fsignal): Compute it.
11150 (syms_of_eval): Staticpro it.
11151
11152 2000-07-05 Dave Love <fx@gnu.org>
11153
11154 * syswait.h: Use the autoconf recommended approach. Old code
11155 #if'd out in case we need to revert.
11156
11157 * config.in (HAVE_SYS_WAIT_H): Added.
11158
11159 2000-07-05 Andrew Innes <andrewi@gnu.org>
11160
11161 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
11162 when non-NULL instead of __morecore, to take account of buffer
11163 memory. This also solves a problem with spurious memory warnings
11164 on Windows.
11165
11166 * ralloc.c: Make real_morecore non-static.
11167
11168 * eval.c (internal_condition_case): Comment out abort if
11169 interrupt_input_blocked is not zero.
11170
11171 * makefile.nt: Add support for `bootstrap' and related targets.
11172 Include minimal debug info in emacs.exe in release build.
11173 Remove all dependencies on lisp.h, and fixup some others.
11174
11175 * w32.c (init_environment): Install code from 20.7 for providing
11176 default values for environment variables, based on the
11177 executable's own location.
11178 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
11179 (sys_socket): Install socket inheritance bug fix from 20.7.
11180
11181 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
11182 here via blockinput.h).
11183
11184 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
11185
11186 * w32menu.c (w32_menu_display_help):
11187 * xmenu.c (menu_help_callback): Use show_help_echo.
11188
11189 * keyboard.h (show_help_echo): Declare.
11190
11191 * keyboard.c (show_help_echo): New function, extracted from read_char.
11192 Feval its `msg' argument if it's a cons cell.
11193 (read_char): Use it.
11194 (follow_key): Pass `autoload' to get_keyelt.
11195
11196 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
11197 (note_tool_bar_highlight, XTread_socket):
11198 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
11199 (dos_rawgetc):
11200 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
11201 (note_tool_bar_highlight, w32_read_socket):
11202 Do not gratuitously ignore non-string `help-echo' properties.
11203
11204 2000-07-05 Gerd Moellmann <gerd@gnu.org>
11205
11206 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
11207
11208 * window.c (delete_all_subwindows): Reset Vwindow_list.
11209
11210 * xterm.c (x_append_glyph, x_append_composite_glyph)
11211 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
11212 changes in struct glyph starting 1999-12-27. Some bit-fields of
11213 struct glyph were not set, which made glyphs unequal when compared
11214 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
11215 effects were the result. This also depended on the contents of
11216 memory returned by xmalloc. If flickering happens again, activate
11217 the code in clear_glyph_row that's in #if 0. If the flickering is
11218 gone with that, chances are that it is caused by something similar.
11219
11220 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
11221
11222 * dispextern.h: Add some comments.
11223
11224 * window.c (add_window_to_list): Add parameter LIST.
11225 (window_list): Order list so that, for each frame, windows are
11226 in canonical order, and so that frames appear in the list in
11227 the order given by Vframe_list.
11228 (next_window): Reverse the handling of NEXT_P.
11229
11230 2000-07-04 Gerd Moellmann <gerd@gnu.org>
11231
11232 * window.c (Vwindow_list): New variable.
11233 (make_window, delete_window): Set Vwindow_list to nil.
11234 (check_window_containing): New function.
11235 (window_from_coordinates): Rewritten.
11236 (add_window_to_list, window_list, candidate_window_p)
11237 (decode_next_window_args, next_window): New functions.
11238 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
11239 (Fwindow_list): New function.
11240 (Fother_window): Cleaned up.
11241 (foreach_window): Add a longer "variable argument list". Let
11242 callback function return 0 to indicate that cycling over windows
11243 should stop.
11244 (foreach_window_1): Likewise.
11245 (freeze_window_start): Return int.
11246 (init_window): New function.
11247 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
11248
11249 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
11250 input_event with bzero.
11251 (main): Call init_window.
11252
11253 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
11254 a menu filter.
11255
11256 2000-07-04 Kenichi Handa <handa@etl.go.jp>
11257
11258 * composite.h (make_composition_value_copy): Extern it.
11259
11260 * composite.c (make_composition_value_copy): New function.
11261
11262 * editfns.c (Fformat): While copying text properties, make each
11263 composition property value a copy.
11264
11265 * fns.c (concat): While copying text properties, make each
11266 composition property value a copy.
11267
11268 2000-07-03 Gerd Moellmann <gerd@gnu.org>
11269
11270 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
11271
11272 * fns.c (sweep_weak_table): Mark only objects that are not
11273 marked already.
11274
11275 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
11276 include those frames as candidates which have their focus
11277 redirected to the minibuffer frame.
11278
11279 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
11280
11281 * fns.c (Fputhash): Return `value' rather than nil.
11282
11283 2000-06-30 Gerd Moellmann <gerd@gnu.org>
11284
11285 * frame.c (next_frame): Don't check focus redirection in case
11286 MINIBUF is a window. Doing so excludes frames using MINIBUF
11287 unless their focus is redirected, which contradicts the
11288 specification of next-frame, and leads to infinite loops in
11289 certain situations when cycling through windows with next-window.
11290
11291 2000-06-30 Kenichi Handa <handa@etl.go.jp>
11292
11293 * coding.c (code_convert_region): Even if the length of text is
11294 zero, try to convert it if coding->type is coding_type_ccl.
11295 (decode_coding_string, encode_coding_string): Likewise.
11296
11297 2000-06-28 Gerd Moellmann <gerd@gnu.org>
11298
11299 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
11300 the display if windows_or_buffers_changed.
11301
11302 * dispnew.c (struct row_entry): New structure.
11303 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
11304 (row_table_size, old_lines, new_lines, old_lines_size)
11305 (new_lines_size, run_pool, runs_size, runs): New variables.
11306 (add_row_entry): New function.
11307 (scrolling_window): Use data structures allocated with xmalloc and
11308 held in global variables, instead of allocating them with alloca and
11309 holding them in local variables. Use a larger hash table whose
11310 size depends on glyph matrix sizes. Don't use bzero to clear the
11311 hash table; instead, clear used slots only.
11312
11313 * fns.c (next_almost_prime): Make it externally visible.
11314
11315 * lisp.h (next_almost_prime): Add prototype.
11316
11317 * s/isc4-0.h (sigunblock): Define.
11318
11319 * s/sco5.h (sigunblock): Define.
11320
11321 2000-06-27 Dave Love <fx@gnu.org>
11322
11323 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
11324 (moved to osf5-0.h).
11325 [!NOT_C_CODE]: Protect string.h stuff.
11326
11327 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
11328 (sys_siglist, NSIG): Definitions moved here from osf1.h.
11329
11330 2000-06-27 Gerd Moellmann <gerd@gnu.org>
11331
11332 * xdisp.c (resize_mini_window): Subtract the extra line spacing
11333 below the last line from the needed window height.
11334
11335 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
11336
11337 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
11338 (Fwidget_get): Use it.
11339 (syms_of_fns): Defsubr it.
11340
11341 2000-06-26 Gerd Moellmann <gerd@gnu.org>
11342
11343 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
11344 display info for XIM.
11345 (xim_open_dpy): Likewise.
11346 (xim_close_dpy): Don't free the display info's XIM.
11347
11348 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
11349
11350 * config.in (USE_XIM): New define.
11351
11352 * keymap.c (get_keyelt): For menu-items containing a `:filter
11353 FILTER', apply FILTER to the menu-item's definition to get the
11354 real definition to use.
11355
11356 * lisp.h (QCfilter): External declaration.
11357
11358 * xfns.c (Fimage_size): New function.
11359 (syms_of_xfns): Defsubr it.
11360
11361 2000-06-26 Andreas Schwab <schwab@suse.de>
11362
11363 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
11364 Fstring_as_unibyte.
11365
11366 2000-06-25 Dave Love <fx@gnu.org>
11367
11368 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
11369
11370 * Makefile.in (blockinput.h): Depend on atimer.h.
11371 (atimer.h): Depend on systime.h.
11372
11373 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
11374
11375 * atimer.h: Protect against multiple inclusion. Include systime.h.
11376
11377 * lisp.h (swap_in_global_binding): Declare.
11378
11379 2000-06-24 Ken Raeburn <raeburn@gnu.org>
11380
11381 * process.c (Fopen_network_stream): Turn off atimers for duration
11382 of call to connect. (Patch from Gerd.)
11383
11384 2000-06-23 Dave Love <fx@gnu.org>
11385
11386 * ralloc.c: Maybe include unistd.h
11387
11388 * emacs.c (setgrp): Undefine before defining.
11389 (malloc_warning, set_time_zone_rule, index): Prototype.
11390
11391 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
11392 HAVE_STRUCT_TIMEZONE.
11393
11394 * s/osf1.h: Move string.h hack here from alpha.h and make it
11395 conditional.
11396 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
11397 _XOPEN_SOURCE.
11398 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
11399 (SOCKLEN_TYPE): Don't define.
11400
11401 * m/alpha.h: Remove string.h hack.
11402
11403 * s/osf5-0.h: New file.
11404
11405 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
11406 include time.h, done by systime.h.
11407 [__FreeBSD__]: Remove redundant includes.
11408
11409 * callproc.c (setpgrp): Undefine before defining.
11410 (delete_temp_file): Return Qnil to avoid warning.
11411
11412 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
11413
11414 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
11415 HAVE_X_WINDOWS.
11416
11417 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
11418
11419 * composite.h (compose_text): Declare.
11420
11421 * xterm.c: Don't include sys/types.h unconditionally. Don't
11422 protect its inclusion with !USG (following xmenu.c).
11423
11424 2000-06-23 Gerd Moellmann <gerd@gnu.org>
11425
11426 * xfns.c (x_create_tip_frame): Initialize frame's colors like
11427 in x_create_frame.
11428
11429 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
11430
11431 * coding.c (decode_eol_post_ccl): Special handling for undecided
11432 and inconsistent EOL types.
11433
11434 2000-06-22 Gerd Moellmann <gerd@gnu.org>
11435
11436 * xrdb.c (x_load_resources): Add default resource for scroll bar's
11437 trough color and main window's background color.
11438
11439 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
11440
11441 * xterm.h (Xt_app_con): External declaration.
11442
11443 * widget.c (EmacsFrameRealize): Fix typo.
11444
11445 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
11446
11447 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
11448 (handle_invisible_prop): Record the start of invisible text in
11449 it->add_overlay_start.
11450 (struct overlay_entry): Add member `overlay'.
11451 (handle_overlay_change): Simplify.
11452 (next_overlay_string): After having processed overlay strings at the
11453 end of the buffer, record that fact in
11454 it->overlay_strings_at_end_processed_p.
11455 (compare_overlay_entries): If before- and after-strings come
11456 from the same overlay, let before-strings come first.
11457 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
11458 (load_overlay_strings): Take it->add_overlay_start into account
11459 when adding overlay strings.
11460
11461 * dispextern.h (struct it): Add member add_overlay_start.
11462
11463 2000-06-22 Dave Love <fx@gnu.org>
11464
11465 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
11466
11467 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
11468
11469 2000-06-22 Kenichi Handa <handa@etl.go.jp>
11470
11471 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
11472 is greater than 0.
11473
11474 2000-06-21 Dave Love <fx@gnu.org>
11475
11476 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
11477
11478 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
11479
11480 * syntax.c (back_comment): Simplify string-parity counting (with
11481 the added benefit of handling multiple string-styles as long as
11482 they are not intertwined).
11483 Jump to the slow code as soon as a comment starter is found in
11484 a "string_lossage" position. Fixes the case: " /* " /* " */.
11485
11486 2000-06-21 Dave Love <fx@gnu.org>
11487
11488 * Makefile.in: Use GETLOADAVG_LIBS.
11489
11490 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
11491 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
11492
11493 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
11494
11495 * syntax.c (describe_syntax): Recognize the `n'estable bit.
11496 (Fforward_comment, scan_lists):
11497 Check the comstyle of single-char comment-starters.
11498 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
11499 we're just at the beginning of the comment (f.ex with (*) ... (*)).
11500 Check the comstyle of single-char comment-starters.
11501 Clarify control-flow around the Scomment case.
11502
11503 2000-06-20 Dave Love <fx@gnu.org>
11504
11505 * fns.c (make_hash_table, maybe_resize_hash_table):
11506 Cast arg of next_almost_prime.
11507
11508 * tparam.c [emacs]: Include lisp.h.
11509
11510 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
11511 and unistd.h.
11512
11513 2000-06-20 Gerd Moellmann <gerd@gnu.org>
11514
11515 * keyboard.c (adjust_point_for_property): Check if display
11516 property should be treated as intangible by looking at its value.
11517
11518 * xdisp.c (single_display_prop_intangible_p)
11519 (display_prop_intangible_p): New functions.
11520
11521 * dispextern.h (display_prop_intangible_p): Add prototype.
11522
11523 * xdisp.c (dump_glyph_row): Show type of glyph->object.
11524
11525 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
11526 argument to sigprocmask.
11527
11528 * s/sco5.h (sigblock): Redefined to pass a pointer as second
11529 argument to sigprocmask.
11530
11531 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
11532 sigprocmask_set, and pass a pointer to it to sigprocmask.
11533
11534 * sysdep.c (sigprocmask_set): New variable.
11535
11536 * fileio.c (make_temp_name): Don't use `%s' in string passed to
11537 report_file_error.
11538
11539 2000-06-20 Sam Steingold <sds@gnu.org>
11540
11541 * xrdb.c: Don't declare xmalloc, xrealloc.
11542
11543 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
11544
11545 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
11546 (re_comp): Cast gettext return value to avoid complaints when
11547 !HAVE_LIBINTL.
11548
11549 2000-06-20 Dave Love <fx@gnu.org>
11550
11551 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
11552
11553 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
11554
11555 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
11556
11557 * m/alpha.h: Don't declare xmalloc, xrealloc.
11558
11559 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
11560
11561 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
11562
11563 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
11564
11565 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
11566 HAVE_GETWD.
11567
11568 * keyboard.h (poll_for_input_1): Declare.
11569
11570 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
11571
11572 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
11573
11574 * doprnt.c: Don't declare xmalloc, xrealloc.
11575
11576 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
11577 (getenv, ctime, getwd): Removed.
11578 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
11579
11580 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
11581 x_set_tool_bar_lines.
11582
11583 * config.in: Add HAVE_GETWD. Move some definitions above
11584 machine/system includes.
11585
11586 2000-06-20 Kenichi Handa <handa@etl.go.jp>
11587
11588 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
11589
11590 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
11591 contain information about ENCODING.
11592
11593 * fontset.c (FONTSET_ASCII): Use the first element of char table
11594 for an ASCII font, not defalt slot.
11595 (fontset_ref_via_base): If FONTSET doesn't contain information for
11596 C, try the default fontset.
11597 (make_fontset): Don't copy the default fontset.
11598 (fontset_font_pattern): Likewise.
11599 (accumulate_font_info): If ELT is nil, use the corresponding
11600 element in the default fontset.
11601
11602 2000-06-19 Dave Love <fx@gnu.org>
11603
11604 * syntax.c (Fparse_partial_sexp): Doc fix.
11605
11606 * regex.h: Test PROTOTYPES as well as __STDC__.
11607
11608 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
11609 errno, strerror. Put text after #endif in comment.
11610
11611 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
11612
11613 * xterm.c (x_frame_of_widget): Likewise.
11614
11615 2000-06-19 Gerd Moellmann <gerd@gnu.org>
11616
11617 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
11618 to Vfundamental_mode_abbrev_table.
11619
11620 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
11621 bogus objects are marked. This slows down GC by ~80 percent, but
11622 it might be worth trying when debugging GC-related problems.
11623 This feature requires conservative stack marking to be enabled.
11624
11625 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
11626 returns XLookupChars, reset `modifiers' to zero.
11627
11628 2000-06-19 Dave Love <fx@gnu.org>
11629
11630 * mktime.c: Unprotoized.
11631
11632 2000-06-19 Richard Stallman <rms@gnu.org>
11633
11634 * data.c (set_internal): If variable is frame-local,
11635 store the new value immediately into the frame parameter alist.
11636
11637 2000-06-19 Ken Raeburn <raeburn@gnu.org>
11638
11639 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
11640 in the custom handler pointer.
11641
11642 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
11643 value, or checks for CHAR_META can fail when Lisp_Object is a
11644 union type.
11645 * keymap.c (get_keyelt): Likewise.
11646
11647 2000-06-19 Kenichi Handa <handa@etl.go.jp>
11648
11649 * ccl.h (struct ccl_program): New member eol_type.
11650 (struct ccl_spec): New member cr_carryover.
11651
11652 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
11653 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
11654
11655 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
11656 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
11657 (decode_eol_post_ccl): New function.
11658 (decode_coding): Don't detect EOL format here for CCL based coding
11659 systems.
11660 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
11661 decode_eol_post_ccl after running the CCL program.
11662 (code_convert_region): Don't detect EOL format here for CCL based
11663 coding systems.
11664 (decode_coding_string): Likewise.
11665
11666 2000-06-18 Ken Raeburn <raeburn@gnu.org>
11667
11668 * charset.c (update_charset_table): Use XINT on "iso_final_char"
11669 when treating it as an integer.
11670
11671 * coding.h (encode_coding_string): Declare.
11672
11673 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
11674 it as an integer.
11675
11676 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
11677 "xkeymap" to avoid shadowing the "enum map_type" value that needs
11678 to be passed to get_local_map.
11679
11680 * sound.c (Fplay_sound): Don't call make_number on
11681 Frun_hook_with_args count argument.
11682
11683 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
11684 for lisp objects in X event structure data field, when lisp
11685 objects are represented with unions.
11686 (x_scroll_bar_to_input_event): Ditto.
11687
11688 2000-06-16 Ken Raeburn <raeburn@gnu.org>
11689
11690 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
11691 termination of string. Fix sense of test whether
11692 Vline_number_display_limit is an integer.
11693
11694 2000-06-16 Gerd Moellmann <gerd@gnu.org>
11695
11696 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
11697 only if HAVE_X_WINDOWS.
11698
11699 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
11700 of titles.
11701
11702 * dispnew.c (update_frame_1): Handle case that cursor vpos is
11703 out of bounds.
11704
11705 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
11706
11707 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
11708 of its headers.
11709
11710 2000-06-15 Kenichi Handa <handa@etl.go.jp>
11711
11712 * coding.c (decode_coding_emacs_mule): Always set src_base at the
11713 start of the while loop.
11714
11715 2000-06-15 Gerd Moellmann <gerd@gnu.org>
11716
11717 * atimer.c (alarm_signal_handler): Add forward declaration.
11718
11719 * data.c (set_internal): Remove debug code.
11720
11721 2000-06-14 Gerd Moellmann <gerd@gnu.org>
11722
11723 * Makefile.in (bootstrap-temacs): Add `-I../src'.
11724
11725 * unexec.c (toplevel) [COFF]: Include coff.h.
11726
11727 * s/lynxos.h: New file.
11728
11729 * keymap.c (Fsingle_key_description): Enclose function key and
11730 event symbol names in angle brackets.
11731
11732 * xdisp.c (setup_echo_area_for_printing): Call
11733 message_log_maybe_newline if message_buf_print is not set.
11734
11735 * print.c (printchar, strout): Don't check message_buf_print
11736 before calling setup_echo_area_for_printing because that
11737 function does something useful even when message_buf_print is
11738 already set.
11739
11740 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
11741 New variables.
11742 (ensure_echo_area_buffers): Initialize echo buffer's
11743 truncate lines setting to nil.
11744 (with_echo_area_buffer): Don't set the echo buffer's truncate
11745 lines setting here.
11746 (set_message_1): Set it here instead, based on the value
11747 of message_truncate_lines.
11748 (resize_mini_window): Handle case that lines are truncated.
11749 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
11750 DEFVAR_BOOL message-truncate-lines.
11751
11752 * keyboard.c (read_char): Bind message-truncate-lines to t
11753 while displaying a help-echo.
11754
11755 * lisp.h (Qmessage_truncate_lines): External declaration.
11756
11757 2000-06-13 Gerd Moellmann <gerd@gnu.org>
11758
11759 * xdisp.c (Vline_number_display_limit): Renamed from
11760 line_number_display_limit.
11761 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
11762 Extend documentation string. Initialize
11763 Vline_number_display_limit to nil meaning no limit.
11764 (decode_mode_spec): Use Vline_number_display_limit with its new
11765 meaning.
11766
11767 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
11768
11769 2000-06-13 Richard Stallman <rms@gnu.org>
11770
11771 * frame.c (Fmodify_frame_parameters): Doc fix.
11772
11773 * xfns.c (x_set_frame_parameters): Comment fix.
11774
11775 * frame.c (store_frame_param): Call swap_in_global_binding if the
11776 variable's current binding was chosen based on this frame.
11777
11778 * data.c (swap_in_global_binding): New function.
11779
11780 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
11781
11782 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
11783 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
11784
11785 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
11786
11787 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
11788
11789 2000-06-12 Jason Rumney <jasonr@gnu.org>
11790
11791 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
11792
11793 * w32.h (EMACS_W32_H): Renamed from _NT_H_
11794
11795 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
11796
11797 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
11798
11799 2000-06-12 Gerd Moellmann <gerd@gnu.org>
11800
11801 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
11802 (syms_of_xfaces): Defsubr Sdump_colors.
11803 (x_free_colors): Don't treat b&w specially on default visual.
11804 (x_free_dpy_colors): New function.
11805 (free_face_colors): Don't check visual class; it's done
11806 in x_free_colors.
11807
11808 * xterm.c (x_frame_of_widget): New function.
11809 (x_alloc_nearest_color_for_widget): Use it.
11810 (x_copy_dpy_color): New function.
11811 (x_destroy_window): Free various colors.
11812
11813 2000-06-12 Kenichi Handa <handa@etl.go.jp>
11814
11815 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
11816
11817 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
11818
11819 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
11820
11821 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
11822
11823 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
11824
11825 2000-06-11 Dave Love <fx@gnu.org>
11826
11827 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
11828
11829 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
11830
11831 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
11832
11833 2000-06-11 Gerd Moellmann <gerd@gnu.org>
11834
11835 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
11836 to `XEvent *'.
11837
11838 2000-06-10 Kenichi Handa <handa@etl.go.jp>
11839
11840 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
11841 (regex_compile): Fix the code for handling the case of single byte
11842 char and multibyte char being mixed in a range within [...].
11843
11844 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
11845 and dst_multibyte members of coding.
11846
11847 * charset.c (update_charset_table): Update the table
11848 bytes_by_char_head.
11849 (init_charset_once): Initialize elements of bytes_by_char_head to
11850 1 except for leading codes for private charases.
11851
11852 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
11853 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
11854
11855 2000-06-09 Ken Raeburn <raeburn@gnu.org>
11856
11857 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
11858 access the data it doesn't point to.
11859
11860 2000-06-08 Gerd Moellmann <gerd@gnu.org>
11861
11862 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
11863 will be translated to a switch-frame event when reading the
11864 event queue. This is necessary because Emacs otherwise won't
11865 perform a switch-frame to a new frame until some other event, for
11866 example a keystroke event, forces it to do so. This has various
11867 effects, one visible being that the cursor of a frame created with
11868 C-x 5 2 or switched to with a window manager key binding like
11869 A-TAB stays hollow because selected_window isn't on the newly
11870 focused frame until the switch-frame is performed.
11871
11872 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
11873 generating a switch-frame event if necessary.
11874
11875 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
11876
11877 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
11878 it's an integer.
11879
11880 2000-06-08 Kenichi Handa <handa@etl.go.jp>
11881
11882 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
11883
11884 2000-06-07 Gerd Moellmann <gerd@gnu.org>
11885
11886 * window.c (displayed_window_lines): Take empty lines at
11887 the bottom of a window into account.
11888
11889 * window.c (displayed_window_lines): New function.
11890 (Fmove_to_window_line): Use displayed_window_lines to determine
11891 the number of lines to move, instead of using the window's height.
11892
11893 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
11894 to stop reading, even if the form read sets point to a different
11895 value when evaluated.
11896
11897 * xdisp.c (display_line): Fix code deciding in which line to
11898 put the cursor.
11899
11900 2000-06-07 Kenichi Handa <handa@etl.go.jp>
11901
11902 * fileio.c (e_write): Free composition data if stored in
11903 coding->cmp_data.
11904
11905 2000-06-06 Gerd Moellmann <gerd@gnu.org>
11906
11907 * xdisp.c (display_line): Set row's and iterator's
11908 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
11909 Set cursor even if row ends in the middle of a character.
11910 (dump_glyph_row): Print values of new flags.
11911 (redisplay_window) <cursor movement in unchanged window>: When
11912 point has been moved forward, and PT is at the end of the cursor
11913 row, don't place the cursor in the next row if the cursor row ends
11914 in the middle of a character or at ZV.
11915
11916 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
11917 (struct glyph_row): Add starts_in_middle_of_char_p and
11918 ends_in_middle_of_char_p.
11919 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
11920 ends_in_middle_of_char_p flag.
11921 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
11922
11923 * term.c (append_glyph): Revert change of 2000-06-06.
11924
11925 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
11926 padding glyph not fitting on line as whole character not
11927 fitting on line.
11928
11929 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
11930 this isn't true for images with `:ascent 100'.
11931
11932 2000-06-06 Kenichi Handa <handa@etl.go.jp>
11933
11934 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
11935 as modified if it is originally unmodified.
11936
11937 * term.c (encode_terminal_code): Change the way to check if
11938 terminal coding does any conversion.
11939 (append_glyph): Set glyph->pixel_width correctly.
11940
11941 * xdisp.c (display_line): While checking line continuation, pay
11942 attention to a padding glyph.
11943
11944 2000-06-05 Gerd Moellmann <gerd@gnu.org>
11945
11946 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
11947
11948 2000-06-05 Dave Love <fx@gnu.org>
11949
11950 * xdisp.c: Include fontset.h.
11951
11952 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
11953
11954 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
11955
11956 * dispnew.c: Conditionally include term.h.
11957
11958 * coding.h: Declare code_convert_string_norecord.
11959
11960 * frame.h (struct frame): Use volatile unconditionally.
11961
11962 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
11963
11964 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
11965
11966 * systime.h: Protect against multiple inclusion.
11967 (timezone) [USG5_4]: Define as time_t.
11968
11969 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
11970 (Foptimize_char_table, make_temp_name): Declare.
11971
11972 * Makefile.in (xdisp.o): Depend on fontset.h.
11973
11974 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
11975
11976 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
11977 (Foptimize_char_table, make_temp_name): Declare.
11978
11979 * s/irix4-0.h:
11980 * s/irix5-0.h:
11981 * s/netbsd.h: Don't define autoconfiscated MATHERR.
11982
11983 2000-06-02 Dave Love <fx@gnu.org>
11984
11985 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
11986
11987 2000-06-02 Gerd Moellmann <gerd@gnu.org>
11988
11989 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
11990 result face, set flags in that face indicating that colors may not
11991 be freed.
11992
11993 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
11994 glyph, use the ASCII NUL character to determine the face.
11995
11996 2000-06-02 Dave Love <fx@gnu.org>
11997
11998 * sysdep.c: Conditionally include stdlib.h, unistd.h.
11999 (VFORK_RETURN_TYPE): Remove.
12000
12001 * config.in: Add NO_MATHERR.
12002
12003 2000-06-01 Dave Love <fx@gnu.org>
12004
12005 * cmds.c (internal_self_insert): Don't check
12006 Vbefore_change_function, Vafter_change_function.
12007
12008 * insdel.c (signal_before_change, signal_after_change): Likewise.
12009
12010 * buffer.c (Vbefore_change_function, Vafter_change_function):
12011 Variables and their initializations deleted.
12012
12013 * callint.c (Fcall_interactively): Doc fix.
12014
12015 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
12016
12017 2000-05-31 Dave Love <fx@gnu.org>
12018
12019 * textprop.c: Revert last change -- duplicated.
12020
12021 2000-05-31 Gerd Moellmann <gerd@gnu.org>
12022
12023 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
12024 in #if 0.
12025
12026 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
12027
12028 2000-05-31 Jason Rumney <jasonr@gnu.org>
12029
12030 * search.c (Fre_search_forward, Fre_search_backward)
12031 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
12032
12033 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
12034
12035 2000-05-30 Jason Rumney <jasonr@gnu.org>
12036
12037 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
12038 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
12039
12040 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
12041
12042 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
12043 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
12044 expand a nil default_filename.
12045
12046 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
12047 pointer to glyph_to_pixel_coords, not a frame.
12048
12049 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
12050 coding.h to dependencies.
12051
12052 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
12053
12054 * w32console.c (glyph_to_pixel_coords): Change first parameter to
12055 window pointer to be consistent with w32term.c and xterm.c.
12056
12057 * w32fns.c: Format and doc changes to bring closer to xfns.c.
12058 (VIETNAMESE_CHARSET): Define if not defined in system headers.
12059 (Qline_spacing, Qcenter): New variables.
12060 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
12061 (x_set_line_spacing): New function.
12062 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
12063 (x_specified_cursor_type): New function.
12064 (x_set_cursor_type): Use it.
12065 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
12066 and icon strings.
12067 (validate_x_resource_name, x_get_resource_string): Measure lengths
12068 of external strings in bytes.
12069 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
12070 GetTextExtentPoint32 with NULL title.
12071 (Fx_create_frame): Initialize Qline_spacing.
12072 (w32_load_system_font): Initialize font->double_byte_p.
12073 (x_to_w32_charset): Use Vw32_charset_info_alist.
12074 (Image, busy cursor, tooltip functions): Merged changes from
12075 xfns.c. Not yet functional on Windows.
12076
12077 * w32gui.h (W32FontStruct): Add double_byte_p member.
12078
12079 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
12080 (emacs_button_translation): Use it.
12081 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
12082 in `mask' to be set.
12083
12084 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
12085 menu strings.
12086
12087 * w32term.c: Format and doc changes to bring closer to xterm.c.
12088 (w32_char_font_type): New enum.
12089 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
12090 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
12091 (w32_encode_char): New function.
12092 (x_encode_char): Removed.
12093 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
12094 x_encode_char and w32_font_is_double_byte.
12095 (x_produce_image_glyph): Use image_ascent.
12096 (x_produce_glyphs): Use new version of w32_per_char_metric and
12097 handle NULL return value. Allow extra line spacing.
12098 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
12099 (w32_get_glyph_overhangs): Remove unicode_p param. Use
12100 w32_font_type member of glyph instead.
12101 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
12102 (fast_find_position): Make sure not to consider rows not visible
12103 in the window.
12104 (w32_read_socket) [WM_MENUSELECT]: Cannot call
12105 w32_menu_display_help with input blocked, as it can abort.
12106 (x_display_and_set_cursor): Choose cursor depending
12107 on buffer-local value of cursor_type.
12108 (x_draw_bar_cursor): Add parameter WIDTH.
12109
12110 * w32term.h (CP_DEFAULT): Define.
12111 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
12112
12113 2000-05-30 Gerd Moellmann <gerd@gnu.org>
12114
12115 * search.c (Fre_search_forward, Fre_search_backward)
12116 (Fposix_search_backward, Fposix_search_forward): Doc fix.
12117
12118 2000-05-30 Kenichi Handa <handa@etl.go.jp>
12119
12120 * coding.c (detect_coding_iso2022): Fix code for checking
12121 CODING_CATEGORY_MASK_ISO_8_2.
12122
12123 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
12124
12125 * regex.c (PREFETCH_NOLIMIT): New function.
12126 (re_match_2_internal): Use it and adjust the end_match_2 logic.
12127
12128 2000-05-29 Gerd Moellmann <gerd@gnu.org>
12129
12130 * syntax.c (find_defun_start): Move test for
12131 open_paren_in_column_0_is_defun_start outside of the loop.
12132
12133 * xdisp.c (redisplay_window): Really switch buffers when
12134 displaying mode lines, and temporarily set selected_frame to the
12135 frame of the window that's redisplayed.
12136
12137 * xfaces.c (free_realized_faces): Block/unblock input.
12138 (free_realized_multibyte_face): Ditto.
12139
12140 2000-05-29 Dave Love <fx@gnu.org>
12141
12142 * textprop.c (Qkeymap): New variable.
12143 (syms_of_textprop): Intern it.
12144
12145 * keymap.c: Include intervals.h.
12146 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
12147
12148 * Makefile.in (keymap.o): Depend on intervals.h.
12149
12150 * keyboard.c (menu_bar_items, tool_bar_items)
12151 (Fexecute_extended_command): Deal with `keymap' property.
12152 (read_key_sequence): Track map from `keymap' property as well as
12153 `local_map'.
12154
12155 * intervals.c (get_local_map): Extra arg to allow looking for
12156 `keymap' too.
12157
12158 * intervals.h (map_property): New enum.
12159 (get_local_map): Extra arg using it.
12160 (Qkeymap): Declare.
12161
12162 * lisp.h (get_local_map): Don't declare here.
12163
12164 2000-05-29 Kenichi Handa <handa@etl.go.jp>
12165
12166 * Makefile.in (callproc.o): Depend on composite.h.
12167
12168 * callproc.c: Include composite.h.
12169 (Fcall_process): Handle composition correctly.
12170
12171 * coding.h (coding_allocate_composition_data): Extern it.
12172 (coding_restore_composition): Likewise.
12173
12174 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
12175 yet allocated, finish decoding with result
12176 CODING_FINISH_INSUFFICIENT_CMP.
12177 (coding_allocate_composition_data): Make it non-static.
12178 (coding_restore_composition): Likewise.
12179
12180 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
12181
12182 * charset.c (syms_of_charset): Revert last change.
12183
12184 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
12185
12186 * term.c (produce_glyphs): Treat characters from the eight-bit-*
12187 charsets as unibyte, with 1-column screen width. Sent by Kenichi
12188 Handa.
12189
12190 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
12191
12192 * charset.c (syms_of_charset): Set width of character sets
12193 eight-bit-control and eight-bit-graphic to 1 column.
12194
12195 2000-05-26 Gerd Moellmann <gerd@gnu.org>
12196
12197 * config.in (HAVE_SPEED_T): New define.
12198
12199 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
12200 `extern speed_t'.
12201
12202 2000-05-26 Dave Love <fx@gnu.org>
12203
12204 * coding.c (shrink_decoding_region): Initialize eol_conversion.
12205
12206 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
12207 (Fsubr_arity): New function.
12208 (syms_of_data): Install them.
12209
12210 2000-05-26 Kenichi Handa <handa@etl.go.jp>
12211
12212 * charset.c (init_charset_once): Set the table bytes_by_char_head
12213 correctly.
12214
12215 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
12216 the default fontset to what Emacs uses by default.
12217 (check_registry_encoding): This function deleted.
12218 (Fset_fontset_font): Remove the adhoc condition for the default
12219 fontset. Allow cons in FONTNAME.
12220
12221 * fns.c (map_char_table): Ignore char-table entries for
12222 charsets eight-bit-control and eight-bit-graphic.
12223
12224 2000-05-25 Ken Raeburn <raeburn@gnu.org>
12225
12226 * emacs.c (main): Initialize keyboard syms before initializing
12227 window code, so face names are available.
12228
12229 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
12230
12231 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
12232 of an anchor at the beginning of a shy-group.
12233
12234 2000-05-25 Gerd Moellmann <gerd@gnu.org>
12235
12236 * xdisp.c (handle_invisible_prop): Don't try to skip over
12237 invisible text if end of text is already reached.
12238
12239 2000-05-25 Dave Love <fx@gnu.org>
12240
12241 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
12242
12243 * coding.c (encode_eol): Add null statement after label.
12244
12245 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
12246
12247 * w16select.c (Fw16_set_clipboard_data): Fix the change from
12248 2000-05-20.
12249
12250 2000-05-25 Kenichi Handa <handa@etl.go.jp>
12251
12252 * ccl.c (ccl_driver): Fix previous change.
12253
12254 2000-05-25 Kenichi Handa <handa@etl.go.jp>
12255
12256 * coding.c (run_pre_post_conversion_on_str): Set point to the
12257 beginning of buffer before calling coding->post_read_conversion.
12258 (decode_coding_string): Give correct args to
12259 run_pre_post_conversion_on_str.
12260 (encode_coding_string): Likewise.
12261
12262 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
12263 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
12264 eight-bit-graphic correctly.
12265
12266 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
12267
12268 * fileio.c (Finsert_file_contents): Even if a file is not found,
12269 execute codes for setting up coding system. Call
12270 after-insert-file-functions unconditionally.
12271
12272 2000-05-24 Gerd Moellmann <gerd@gnu.org>
12273
12274 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
12275 BSD_PGRPS are not defined.
12276
12277 2000-05-24 Kenichi Handa <handa@etl.go.jp>
12278
12279 * charset.c (update_charset_table): Accept nil in LONG_NAME and
12280 DESCRIPTION.
12281 (syms_of_charset): Avoid building same strings.
12282
12283 2000-05-23 Gerd Moellmann <gerd@gnu.org>
12284
12285 * lread.c (Fload): Add a comment about the meaning of
12286 Vuser_init_file being t.
12287
12288 * puresize.h (BASE_PURESIZE): Increase to 675000.
12289
12290 * s/gnu-linux.h (setpgrp): Don't define it here because this
12291 prevents compilation on GNU/Linux systems with glib 2.2.
12292
12293 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
12294 as setpgid.
12295
12296 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
12297
12298 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
12299 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
12300 version.
12301 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
12302
12303 2000-05-23 Kenichi Handa <handa@etl.go.jp>
12304
12305 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12306
12307 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
12308
12309 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
12310
12311 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
12312
12313 2000-05-22 Kenichi Handa <handa@etl.go.jp>
12314
12315 * keyboard.c (read_char): Allow character codes 128..255 to be
12316 handled by input-method-function.
12317
12318 * insdel.c (adjust_markers_for_replace): Fix previous change.
12319 (adjust_after_replace): If PREV_TEXT is nil, call
12320 adjust_markers_for_insert, not adjust_markers_for_replace.
12321
12322 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
12323
12324 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
12325 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
12326 [HAVE_GRANDPT]: Define.
12327 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
12328
12329 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
12330 like SYSV_PTYS.
12331
12332 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
12333
12334 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
12335
12336 2000-05-20 Kenichi Handa <handa@etl.go.jp>
12337
12338 The following changes are to handle 8-bit characters in a
12339 multibyte buffer/string without facing with byte combining
12340 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
12341 eight-bit-graphic (for 0xA0..0xFF) are introduced.
12342
12343 * Makefile.in (fns.o): Depend on charset.h.
12344
12345 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
12346 convert it to unibyte.
12347 (make_string): Use parse_str_as_multibyte, not chars_in_text.
12348
12349 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
12350 apparent char boundary.
12351 (Fset_buffer_multibyte): Convert 8-bit characters in the range
12352 0x80..0x9F to/from multibyte form.
12353
12354 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
12355 to unibyte.
12356
12357 * callproc.c (Fcall_process): Always encode an argument string if
12358 it is multibyte. Setup src_multibyte and dst_multibyte members of
12359 process_coding properly.
12360
12361 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
12362 SPLIT_NON_ASCII_CHAR.
12363
12364 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
12365 as is.
12366 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
12367
12368 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
12369 (SPLIT_CHARACTER_SEQ): This macro deleted.
12370 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
12371 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
12372 and eight-bit-graphic.
12373 (char_to_string): Likewise. Signal an error for too large
12374 character code.
12375 (char_printable_p): Return 0 for 8-bit characters.
12376 (update_charset_table): Update iso_charset_table only when a final
12377 character is non-negative.
12378 (find_charset_in_text): Renamed from find_charset_in_str.
12379 Arguments and return value changed. Callers changed.
12380 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
12381 be -1 if CHARSET is used only internally.
12382 (Fmake_char_internal): Handle new charsets; eight-bit-control and
12383 eight-bit-graphic.
12384 (Fcharset_after): Simplified.
12385 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
12386 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
12387 (multibyte_chars_in_text): Simplified by assuming there's no
12388 invalid multibyte sequence.
12389 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
12390 (str_as_unibyte): New functions.
12391 (Fstring): Simpified by assuming that byte combining never happens.
12392 (init_charset_once): Initialization for
12393 LEADING_CODE_8_BIT_CONTROL.
12394 (syms_of_charset): Intern and staticpro Qeight_bit_control and
12395 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
12396 eight-bit-control and eight-bit-graphic.
12397
12398 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
12399 (CHARSET_8_BIT_GRAPHIC): New macros.
12400 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
12401 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
12402 (CHARSET_REVERSE_CHARSET): Likewise.
12403 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
12404 eight-bit-graphic.
12405 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
12406 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
12407 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
12408 encounter an invalid multibyte sequence.
12409 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
12410 sequence is always valid.
12411 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
12412 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
12413 (CHAR_STRING): For 8-bit characters, call char_to_string.
12414 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
12415 multibyte sequence is always valid.
12416 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
12417 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
12418 (str_as_unibyte): Extern them.
12419 (BCOPY_SHORT): Fix a bug.
12420 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
12421 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
12422 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
12423 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
12424
12425 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
12426 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
12427 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
12428 (EMIT_BYTES): New macros.
12429 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
12430 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
12431 macros deleted.
12432 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
12433 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
12434 check the validity of multibyte sequence.
12435 (decode_coding_emacs_mule): New function.
12436 (encode_coding_emacs_mule): New macro.
12437 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
12438 the source.
12439 (DECODE_ISO_CHARACTER): Just return a character code.
12440 (DECODE_COMPOSITION_START): Set coding->result instead of result.
12441 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
12442 EMIT_CHAR to produced decoded characters. Exit the loop only by
12443 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
12444 block here.
12445 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
12446 only position codes for an invalid character.
12447 (encode_designation_at_bol): Return new destination pointer. 5th
12448 arg DSTP is changed to DST.
12449 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
12450 from the source by ONE_MORE_CHAR. Don't handle the case of last
12451 block here.
12452 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
12453 macros deleted.
12454 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
12455 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
12456 TWO_MORE_BYTES to fetch a byte from the source.
12457 (encode_eol): Pay attention to coding->src_multibyte.
12458 (detect_coding, detect_eol): Preserve members src_multibyte and
12459 dst_multibyte.
12460 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
12461 (encoding_buffer_size): Set magnification to 3 for all coding
12462 systems that require encoding.
12463 (ccl_coding_driver): For decoding, be sure that the result is
12464 valid multibyte sequence.
12465 (decode_coding): Initialize coding->errors and coding->result.
12466 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
12467 and raw-text, always call decode_eol. Handle the case of last
12468 block here. If not coding->dst_multibyte, convert the resulting
12469 sequence to unibyte.
12470 (encode_coding): Initialize coding->errors and coding->result.
12471 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
12472 and raw-text, always call encode_eol. Handle the case of last
12473 block here.
12474 (shrink_decoding_region, shrink_encoding_region): Detect cases
12475 that we can't skip data more rigidly.
12476 (code_convert_region): Setup src_multibyte and dst_multibyte
12477 members of coding. For decoding, if the buffer is multibyte,
12478 convert the source sequence to unibyte in advance. For encoding,
12479 if the buffer is multibyte, convert the resulting sequence to
12480 multibyte afterward.
12481 (run_pre_post_conversion_on_str): New function.
12482 (code_convert_string): Deleted and divided into the following two.
12483 (decode_coding_string, encode_coding_string): New functions.
12484 (code_convert_string1, code_convert_string_norecord): Call one of
12485 above.
12486 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
12487 MAKE_NON_ASCII_CHAR.
12488 (Fset_terminal_coding_system_internal)
12489 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
12490 and dst_multibyte members.
12491 (init_coding_once): Initialize iso_code_class with new enum
12492 ISO_control_0 and ISO_control_1.
12493
12494 * coding.h (enum iso_code_class_type): Member ISO_control_code is
12495 devided into ISO_control_0 and ISO_control_1.
12496 (struct coding_system): New members src_multibyte, dst_multibyte,
12497 errors, and result. Delete member fake_multibyte.
12498 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
12499 nonzero.
12500 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
12501 nonzero.
12502
12503 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
12504 (Faset): Likewise.
12505
12506 * editfns.c (Fformat): Be sure to convert 8-bit characters to
12507 multibyte form.
12508 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
12509 combining occurs.
12510 (Ftranspose_region): Delete codes for handling byte combining.
12511
12512 * fileio.c (Finsert_file_contents): Setup src_multibyte and
12513 dst_multibyte members of coding. On handling REPLACE on unibyte
12514 buffer, convert the result of decode_coding to unibyte. On
12515 inserting into a mutibyte buffer, always call code_convert_region.
12516 (e_write): Setup coding->src_multibyte according to the
12517 multibyteness of the source (buffer or string).
12518
12519 * fns.c (concat): Handle 8-bit characters correctly.
12520 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
12521 unibyte in the result.
12522 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
12523 valid multibyte form in the result.
12524 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
12525 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
12526 return -1, signal an error.
12527 (base64_encode_1): New arg MULTIBYTE. Get each character by
12528 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
12529 character is found, return -1.
12530 (Fbase64_decode_region): Delete codes for handling byte-combining.
12531 Treat each decoded byte as a unibyte character.
12532 (Fbase64_decode_string): Return unibyte string.
12533 (Fcompare_strings, concat, string_byte_to_char): Use
12534 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
12535 FETCH_STRING_CHAR_ADVANCE.
12536 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12537 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
12538
12539 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
12540 SPLIT_NON_ASCII_CHAR.
12541 (fontset_ref_via_base, fontset_set): Likewise
12542
12543 * insdel.c (adjust_markers_for_record_delete): Deleted.
12544 (adjust_markers_for_insert): Argument changed. Caller changed.
12545 (adjust_markers_for_replace): Likewise.
12546 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
12547 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
12548 (copy_text): Delete unused local varialbe c_save. For converting
12549 to multibyte, be sure to make all 8-bit characters in valid
12550 multibyte form.
12551 (count_size_as_multibyte): Handle 8-bit characters correctly.
12552 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
12553 (adjust_after_replace, replace_range, del_range_2)
12554 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
12555 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
12556 (adjust_after_replace, replace_range, del_range_2) Delete codes for
12557 handling byte combining.
12558 (adjust_before_replace): Deleted.
12559
12560 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
12561 SPLIT_NON_ASCII_CHAR.
12562 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
12563 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12564 (Fkey_description): Likewise.
12565
12566 * lread.c (read1): On reading multibyte string, be sure to make
12567 all 8-bit chararacters in valid multibyte form.
12568 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12569
12570 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
12571 unconditionally.
12572
12573 * process.c (Fstart_process): GCPRO current_dir before calling
12574 Ffind_operation_coding_system. Encode arguments here.
12575 (create_process): Don't encode arguments here. Setup
12576 src_multibyte and dst_multibyte members of struct coding.
12577 (read_process_output): Setup src_multibyte and dst_multibyte
12578 members of struct coding. If the output is to multibyte buffer,
12579 always decode the output of the process. Adjust the
12580 representation of 8-bit characters to the multibyteness of the output.
12581 (send_process): Setup coding->src_multibyte according to the
12582 multibyteness of the source.
12583
12584 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12585 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
12586 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
12587
12588 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
12589
12590 * w16select.c (Fw16_set_clipboard_data): Setup members
12591 src_multibyte and dst_multibyte of coding. Adjusted for the
12592 change for find_charset_in_str.
12593 (Fw16_get_clipboard_data): Likewise.
12594
12595 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
12596 dst_multibyte of coding.
12597 (x_to_w32_font): Likewise.
12598
12599 * w32select.c (Fw32_set_clipboard_data): Setup members
12600 src_multibyte and dst_multibyte of coding. Adjusted for the
12601 change for find_charset_in_str.
12602 (Fw32_get_clipboard_data): Likewise.
12603
12604 * xdisp.c (get_next_display_element): Handle 8-bit characters
12605 correctly.
12606 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
12607 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
12608
12609 * xselect.c (selection_data_to_lisp_data): Setup members
12610 src_multibyte and dst_multibyte of coding. Adjusted for the
12611 change for find_charset_in_str.
12612 (lisp_data_to_selection_data): Likewise.
12613
12614 2000-05-19 Gerd Moellmann <gerd@gnu.org>
12615
12616 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
12617
12618 * dispextern.h (Vimage_types): Add extern declaration.
12619
12620 * xdisp.c (Vimage_types): Moved here from xfns.c.
12621 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
12622
12623 * xfns.c (Vimages_types): Moved to xdisp.c.
12624 (syms_of_xfns): Move `image-types' to xdisp.c.
12625
12626 * w32fns.c (Vimage_types): Removed.
12627 (syms_of_w32fns): Remove `image-types'.
12628
12629 2000-05-18 Kenichi Handa <handa@etl.go.jp>
12630
12631 * fns.c (map_char_table): Pay attention to character number of
12632 charset. Check the validity of charset at the first level. For
12633 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
12634 the default value.
12635
12636 * fontset.c: Include "buffer.h".
12637 (fs_load_font): If the face has fontset, record the face ID in
12638 that fontset.
12639 (Finternal_char_font): New function.
12640 (accumulate_font_info): New function.
12641 (Ffontset_info): Rewritten for the new fontset implementation.
12642 (syms_of_fontset): Register Vdefault_fontset in the first element
12643 of Vfontset_table. Include Vdefault_fontset in
12644 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
12645 function.
12646
12647 2000-05-16 Dave Love <fx@gnu.org>
12648
12649 * m/iris5d.h: Deleted -- unused.
12650
12651 2000-05-16 Gerd Moellmann <gerd@gnu.org>
12652
12653 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
12654 `invalid' instead of `illegal'.
12655
12656 * indent.c (Fmove_to_column): When ending within a tab, insert
12657 spaces first so that markers at the end of the tab get adjusted.
12658
12659 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
12660 buffer list that wasn't selected in that frame.
12661
12662 * filelock.c (get_boot_time): To obtain an 8 char file name, which
12663 is needed on mescaline, use a 2 char prefix, and call
12664 make_temp_name with second arg non-zero.
12665
12666 * fileio.c (make_temp_name): New function, extracted from
12667 Fmake_temp_name.
12668 (Fmake_temp_name): Use it.
12669
12670 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
12671
12672 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
12673
12674 2000-05-15 Gerd Moellmann <gerd@gnu.org>
12675
12676 * Makefile.in (lisp): Add env.elc.
12677
12678 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
12679
12680 2000-05-12 Gerd Moellmann <gerd@gnu.org>
12681
12682 * search.c (Freplace_match): Handle case of `\N' in the
12683 replacement when there's no group N.
12684
12685 2000-05-11 Gerd Moellmann <gerd@gnu.org>
12686
12687 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
12688 of the message to message_dolog.
12689
12690 * keyboard.c (read_char): Don't clear current message for help
12691 events; let the code handling help events handle this. Change
12692 code detecting help events that should be ignored.
12693
12694 * xdisp.c (handle_single_display_prop): Don't try to set PT if
12695 we're interating over a string.
12696
12697 2000-05-09 Dave Love <fx@gnu.org>
12698
12699 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
12700 that offset before writing. Move gcpro region past call of
12701 Ffile_regular_p.
12702
12703 2000-05-04 Dave Love <fx@gnu.org>
12704
12705 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
12706
12707 2000-05-04 Gerd Moellmann <gerd@gnu.org>
12708
12709 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
12710 of inserted characters when BUF equals the current buffer, and PT
12711 is in front of or equal to FROM.
12712
12713 2000-05-03 Gerd Moellmann <gerd@gnu.org>
12714
12715 * xdisp.c (handle_single_display_prop): If display property value
12716 is invalid, or something not supported on the frame, restore
12717 iterator's position to what it was initially. Make sure to return
12718 0 for invalid and unsupported property values.
12719
12720 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
12721 that x_per_char_metric returns null.
12722
12723 2000-05-02 Gerd Moellmann <gerd@gnu.org>
12724
12725 * xterm.h (struct face): Add forward declaration.
12726 (struct image): Ditto.
12727 (image_ascent): Add prototype.
12728
12729 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
12730 (x_draw_image_relief, x_draw_image_foreground_1): Call function
12731 image_ascent instead of using IMAGE_ASCENT.
12732
12733 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
12734 (IMAGE_ASCENT): Removed.
12735
12736 * xfns.c (Qcenter): New variable.
12737 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
12738 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
12739 (image_ascent): New function.
12740 (lookup_image): Recognize `:ascent center'.
12741 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
12742 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
12743 (xbm_load): Don't set image's ascent here.
12744 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
12745 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
12746 check ascent values here.
12747 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
12748 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
12749 (syms_of_xfns): Initialize Qcenter.
12750
12751 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
12752 to the limits, increase the limits.
12753
12754 2000-05-01 Kenichi Handa <handa@etl.go.jp>
12755
12756 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
12757 Check Vfont_encoding_alist against the full name of the opened font.
12758
12759 2000-04-28 Gerd Moellmann <gerd@gnu.org>
12760
12761 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
12762 taller than the window.
12763
12764 2000-04-28 Kenichi Handa <handa@etl.go.jp>
12765
12766 * xfaces.c (realize_x_face): Fix the argument of the second
12767 xassert. BASE_FACE may not be a face for ASCII.
12768
12769 2000-04-27 Gerd Moellmann <gerd@gnu.org>
12770
12771 * print.c (print_object): Treat print-length < 0 as nil.
12772
12773 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
12774
12775 * s/freebsd.h (TERMCAP_OBJ): Removed.
12776 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
12777
12778 * lread.c (read1): Don't treat period followed by certain
12779 characters as symbol start.
12780
12781 * xfns.c (slurp_file): New function.
12782 (xbm_image_p): Handle case of in-memory XBM files.
12783 (xbm_scan): Rewritten to work on memory buffers instead of files.
12784 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
12785 Work on memory buffers instead of files. If DATA is null test
12786 if buffer looks like an in-memory XBM file.
12787 (xbm_load_image): Renamed from xbm_load_image_file. Work on
12788 memory buffers instead of files.
12789 (xbm_file_p): New function.
12790 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
12791
12792 * lread.c (end_of_file_error): New function.
12793 (read1): Call it instead of signaling `end-of-file' directly.
12794
12795 * print.c (print_error_message): Print data of `end-of-file'
12796 with Fprinc instead of Fprin1.
12797
12798 2000-04-26 Ken Raeburn <raeburn@gnu.org>
12799
12800 * window.c (freeze_window_start): Check that minibuffer scroll
12801 window isn't nil before extracting the window structure pointer
12802 from it.
12803
12804 * undo.c (record_delete): If we hit the end of the undo list, stop
12805 picking elements apart.
12806
12807 2000-04-26 Gerd Moellmann <gerd@gnu.org>
12808
12809 * xdisp.c (display_line): If lines are continued, restore
12810 iterator's ascent/descent information to the values before the
12811 first glyph not fitting on the line.
12812
12813 2000-04-25 Gerd Moellmann <gerd@gnu.org>
12814
12815 * xdisp.c (try_window_id) <all changes above window start>: Adjust
12816 positions in glyph matrix. Don't compute new window end positions.
12817
12818 * dispnew.c (increment_matrix_positions): Renamed from
12819 increment_glyph_matrix_buffer_positions.
12820 (increment_row_positions): Renamed from
12821 increment_glyph_row_buffer_positions.
12822
12823 * dispextern.h: Change names of renamed functions from dispnew.c
12824 in prototypes.
12825
12826 2000-04-24 Gerd Moellmann <gerd@gnu.org>
12827
12828 * fileio.c (Fdo_auto_save): Create directories for auto-save
12829 list file if necessary.
12830
12831 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
12832 from buffer or frame.
12833 (automatic_hscrolling_p): New variable.
12834 (hscroll_windows): Scroll windows horizontally only if automatic
12835 hscrolling is allowed.
12836 (syms_of_xdisp): New variable `automatic-hscrolling'.
12837
12838 * frame.h (struct frame): Add member extra_line_spacing.
12839
12840 * xfns.c (x_set_line_spacing): New function.
12841 (Fx_create_frame): Set line spacing from resources.
12842 (Qline_spacing): New variable.
12843 (syms_of_xfns): Initialize Qline_spacing.
12844
12845 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
12846
12847 * buffer.c (init_buffer_once): Handle extra_line_spacing.
12848 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
12849 (reset_buffer): Don't initialize extra2 and extra3. Initialize
12850 extra_line_spacing from default value.
12851 (init_buffer_once): Initialize default value of extra_line_spacing.
12852
12853 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
12854 and extra3.
12855
12856 * xterm.c (x_produce_glyphs): Remove reference to struct it's
12857 prompt_width. Add extra line spacing.
12858
12859 * term.c (produce_glyphs): Remove reference to struct it's
12860 prompt_width.
12861
12862 * dispextern.h (struct it): Remove member prompt_width, add
12863 extra_line_spacing.
12864
12865 2000-04-22 Gerd Moellmann <gerd@gnu.org>
12866
12867 * dispnew.c (update_frame_line): When writing a whole line, make
12868 sure cursor is in the right row afterwards, otherwise a use of
12869 capability `ch' in cmgoto might leave the cursor in the row below.
12870
12871 2000-04-21 Gerd Moellmann <gerd@gnu.org>
12872
12873 * lisp.h (struct Lisp_Buffer_Cons): Remove.
12874
12875 * keyboard.c (timer_check): Fix typo in comment.
12876
12877 2000-04-21 Kenichi Handa <handa@etl.go.jp>
12878
12879 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
12880 name change: ch -> character.
12881
12882 2000-04-20 Gerd Moellmann <gerd@gnu.org>
12883
12884 * keyboard.c (echo_message_buffer): New variable.
12885 (echo_now): Set echo_message_buffer to the echo area buffer used
12886 to display the echo.
12887 (cancel_echoing): Reset echo_message_buffer to nil.
12888 (read_char): Code rewritten that handles canceling an echo or
12889 echoing a dash, respectively.
12890
12891 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
12892 directory doesn't exist.
12893
12894 2000-04-19 Dave Love <fx@gnu.org>
12895
12896 * fns.c (syms_of_fns): Defsubr mapc.
12897 (concat): Don't allow numeric args.
12898 (Fconcat): Doc change.
12899
12900 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
12901
12902 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
12903 instead define end_match(1|2) more carefully.
12904 Use GET_CHAR_BEFORE_2 for `begline'.
12905
12906 2000-04-19 Gerd Moellmann <gerd@gnu.org>
12907
12908 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
12909 on 64-bit systems where NULL is defined as `0'.
12910
12911 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
12912 the `variable argument list' to make it work on Alpha.
12913
12914 * m/alpha.h (_LP64) [!_LP64]: Define.
12915 (ORDINARY_LINK): Define for NetBSD.
12916
12917 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
12918
12919 2000-04-19 Dave Love <fx@gnu.org>
12920
12921 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
12922 change.
12923
12924 * Makefile.in (LIBS): Don't use.
12925 (GETLOADAVG_OBJ): Define again.
12926 (otherobj): Add GETLOADAVG_OBJ.
12927
12928 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
12929
12930 2000-04-18 Gerd Moellmann <gerd@gnu.org>
12931
12932 * lread.c (read_filtered_event): Cancel and start busy cursor.
12933
12934 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
12935 that the per-character metrics may be null.
12936
12937 2000-04-17 Gerd Moellmann <gerd@gnu.org>
12938
12939 * buffer.c (clone_per_buffer_values): New function.
12940 (Fmake_indirect_buffer): Add optional argument CLONE. Call
12941 clone_per_buffer_values if CLONE is not nil.
12942
12943 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
12944
12945 2000-04-16 Dave Love <fx@gnu.org>
12946
12947 * Makefile.in: Remove obsolete localcpp stuff.
12948 (GETLOADAVG_OBJ): Don't define.
12949 (obj): Move LIBOBJS...
12950 (otherobj): ... to here.
12951 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
12952 whitespace-only lines after the continuation (Irix).
12953
12954 2000-04-14 Gerd Moellmann <gerd@gnu.org>
12955
12956 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
12957
12958 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
12959
12960 2000-04-14 Dave Love <fx@gnu.org>
12961
12962 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
12963 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
12964 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
12965 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
12966 NLIST_STRUCT.
12967
12968 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
12969 autoconfiscated HAVE_GETLOADAVG.
12970
12971 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
12972 BROKEN_MKTIME.
12973
12974 2000-04-14 Gerd Moellmann <gerd@gnu.org>
12975
12976 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
12977 (fill_in_lock_file_name): Avoid existing files that aren't links.
12978
12979 2000-04-14 Dave Love <fx@gnu.org>
12980
12981 * Makefile.in (LIBS, LIBOBJS): New variable.
12982 (INTERVAL_SRC): Convert to make variable.
12983 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
12984 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
12985 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
12986 add LIBOBJS.
12987 (SOME_MACHINE_OBJECTS): Remove interval stuff.
12988 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
12989 (shortlisp): Add facemenu, float-sup, frame.
12990 (SOME_MACHINE_LISP): Remove them from here.
12991 (LIBES): Change unused LDLIBS to autoconf LIBS.
12992
12993 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
12994
12995 2000-04-14 Kenichi Handa <handa@etl.go.jp>
12996
12997 * composite.c (update_compositions): If FROM and TO are not in a
12998 valid range, do nothing.
12999
13000 2000-04-13 Gerd Moellmann <gerd@gnu.org>
13001
13002 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
13003
13004 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
13005
13006 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
13007 as TERMCAP_OBJ.
13008
13009 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
13010
13011 * fileio.c (a_write): Remove redundant semi-colons.
13012 (e_write): Return -1 if failed to write all the data.
13013 This fixes the changes made at 1999-12-15.
13014
13015 2000-04-12 Dave Love <fx@gnu.org>
13016
13017 * fns.c (mapcar1): Test for null vals to support mapc.
13018 (Fmapc): New function.
13019
13020 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
13021
13022 * msdos.c (NUM_MOUSE_BUTTONS): Define.
13023 (IT_frame_up_to_date): Support the buffer local value of
13024 cursor-type, if defined.
13025
13026 2000-04-10 Dave Love <fx@gnu.org>
13027
13028 * editfns.c (preceding-char, following-char): Doc fix.
13029
13030 2000-04-10 Ken Raeburn <raeburn@gnu.org>
13031
13032 * Makefile.in (temacs): Revert 2000-03-12 change.
13033
13034 2000-04-10 Jason Rumney <jasonr@gnu.org>
13035
13036 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
13037
13038 2000-04-10 Gerd Moellmann <gerd@gnu.org>
13039
13040 * xdisp.c (setup_echo_area_for_printing): Choose an echo
13041 area buffer, if it's not set up yet.
13042
13043 * indent.c (compute_motion): Set immediate_quit.
13044
13045 2000-04-09 Gerd Moellmann <gerd@gnu.org>
13046
13047 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
13048 (realize_tty_face): Suppress boldness if colors are the inverse of
13049 the default colors, and tty_suppress_bold_inverse_default_colors_p
13050 is set.
13051 (Ftty_suppress_bold_inverse_default_colors): New function.
13052 (syms_of_xfaces): Defsubr it.
13053
13054 * buffer.c (Frestore_buffer_modified_p): New function.
13055 (syms_of_buffer): Defsubr it.
13056
13057 2000-04-08 Ken Raeburn <raeburn@gnu.org>
13058
13059 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
13060 charset id (int) argument, not a charset (Lisp_Object).
13061
13062 * coding.h (code_convert_string): Declare.
13063 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
13064 object, as the fourth argument to code_convert_string.
13065
13066 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
13067 (Fset_fontset_font): Use EQ to compare lisp objects.
13068
13069 2000-04-05 Ken Raeburn <raeburn@gnu.org>
13070
13071 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
13072 a pointer that looks like a lisp object.
13073 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
13074 zero, instead see whether it's an integer object, since they can't
13075 have intervals.
13076 (GET_INTERVAL_OBJECT): Simply assign to the destination.
13077
13078 * dispnew.c (allocate_matrices_for_frame_redisplay)
13079 (direct_output_forward_char): Use X(U)INT and make_number as needed
13080 to convert between (unsigned) int values and lisp integers.
13081 * keyboard.c (read_key_sequence): Likewise.
13082 * lread.c (substitute_object_recurse): Likewise.
13083 * fns.c (concat, hash_lookup, hash_remove): Likewise.
13084 * minibuf.c (do_completion, Fminibuffer_complete_word)
13085 (Fminibuffer_completion_help): Likewise.
13086 * term.c (produce_special_glyphs): Likewise.
13087
13088 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
13089 * print.c (print_preprocess, print_object): Likewise.
13090
13091 * search.c (compile_pattern): Use NILP when checking for nil.
13092
13093 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
13094 __OPTIMIZE__]: Provide a GNU C macro version that handles
13095 lisp-object unions.
13096 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
13097 field, to better cope with ENABLE_CHECKING and calls that modify a
13098 Lisp_Object using its old value.
13099
13100 2000-04-04 Gerd Moellmann <gerd@gnu.org>
13101
13102 * window.c (compare_window_configurations): Signal an error
13103 if parameters C1 or C2 aren't window configurations.
13104
13105 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
13106 AFTER_POTENTIAL_GC calls around calls to functions that can
13107 signal an error and thus invoke the debugger.
13108
13109 2000-04-03 Gerd Moellmann <gerd@gnu.org>
13110
13111 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
13112 an error if decoding fails.
13113
13114 * keyboard.c (lispy_mouse_names): Variable removed.
13115 (Vlispy_mouse_stem): New variable.
13116 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
13117 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
13118 for any mouse button number. Increase size of mouse_syms and
13119 button_down_location as needed. Call modify_event_symbol with
13120 different arguments.
13121 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
13122 Call modify_event_symbol with different arguments.
13123 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
13124 for any button number. Call modify_event_symbol with different
13125 arguments.
13126 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
13127 Accept a string for NAME_ALIST_OR_STEM.
13128
13129 * lisp.h (larger_vector): Add prototype.
13130
13131 * fns.c (larger_vector): Make externally visible.
13132
13133 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
13134
13135 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
13136
13137 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
13138 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
13139 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
13140 we are between str1 and str2.
13141 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
13142 (PATFETCH): Use `TRANSLATE'.
13143 (PATFETCH_RAW): Fetch multibyte char if applicable.
13144 (PATUNFETCH): Remove.
13145 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
13146 When writing a char, write it directly into the pattern buffer rather
13147 than going needlessly through a temp char-array.
13148 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
13149 multibyte magic and remove the useless `#ifdef emacs'.
13150 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
13151 buffer.
13152
13153 * regex.h (struct re_pattern_buffer): Make field `multibyte'
13154 conditional on `emacs'.
13155
13156 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
13157
13158 2000-04-01 Ken Raeburn <raeburn@gnu.org>
13159
13160 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
13161 non-union-type versions of XMARK and friends here, because XMARK
13162 and friends won't work on an integer field if NO_UNION_TYPE is not
13163 defined.
13164 (make_number): Define as a function if it's not defined as a macro.
13165
13166 * composite.c (run_composite_function): Use NILP when checking for nil.
13167 (syms_of_composite): Delete local var NARGS, pass an int as first
13168 argument to Fmake_hash_table.
13169
13170 * editfns.c (text_property_stickiness): Use NILP to test
13171 Lisp_Object boolean value.
13172 (Fmessage_or_box): Don't use NILP to test int variable.
13173 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
13174 problems reading from and changing the same lisp value in an
13175 XSETSTRING call.
13176
13177 2000-04-01 Gerd Moellmann <gerd@gnu.org>
13178
13179 * term.c (TN_no_color_video): New variable.
13180 (term_init): Intitialize TN_no_color_video.
13181 (enum no_color_bit): New enumeration.
13182 (MAY_USE_WITH_COLORS_P): New macro.
13183 (turn_on_face): Use it to determine if attributes may be used
13184 combined with colors.
13185
13186 2000-04-01 Ken Raeburn <raeburn@gnu.org>
13187
13188 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
13189 with int lvalues via casts; instead, just yield lisp object lvalues.
13190 (enlarge_window): Variable sizep now points to Lisp_Object. Use
13191 proper accessor macros.
13192 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
13193 (grow_mini_window): Fix typo getting int value of root->height.
13194
13195 * xdisp.c (compute_string_pos): Fix order of arguments to
13196 string_pos_nchars_ahead.
13197 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
13198 count arg to variable-arg routines like Frun_hook_with_args and
13199 Fformat.
13200 (back_to_previous_visible_line_start)
13201 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
13202 fixed-arg routines like Fget_char_property and Fmake_string.
13203 (reconsider_clip_changes): Use XINT when comparing integer lisp
13204 objects, or passing them as int arguments.
13205 (mark_window_display_accurate, insert_left_trunc_glyphs)
13206 (append_space, extend_face_to_end_of_line): Use make_number when
13207 storing or passing integer values as lisp objects.
13208 (set_cursor_from_row, highlight_trailing_whitespace): Use
13209 INTEGERP, not implicit test against zero, for glyph object.
13210 (try_window_id): Don't use make_number when we want an int value.
13211
13212 * xfaces.c (xlfd_symbolic_value): Make last argument a
13213 Lisp_Object, to be consistent with callers.
13214 (Fbitmap_spec_p): Use XINT to get numeric value of height.
13215 (lface_hash): Apply XFASTINT to lisp values before folding in.
13216
13217 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
13218 fill in window width and height. Pass an int, not a lisp object,
13219 as first arg to Finsert.
13220
13221 2000-04-01 Gerd Moellmann <gerd@gnu.org>
13222
13223 * xfaces.c (realize_basic_faces): Block input while realizing
13224 the faces.
13225
13226 * keyboard.c (lispy_mouse_names): Add additional mouse names.
13227
13228 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
13229
13230 2000-03-31 Gerd Moellmann <gerd@gnu.org>
13231
13232 * xterm.c (x_produce_glyphs): When displaying unibyte text
13233 or ASCII, handle case that per-char metric is null.
13234
13235 2000-03-30 Ken Raeburn <raeburn@gnu.org>
13236
13237 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
13238
13239 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
13240 (XSUBR, XBUFFER): Verify correct object type before returning
13241 pointer, using eassert.
13242 * frame.h (XFRAME): Likewise.
13243
13244 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
13245 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
13246 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
13247 * data.c (set_internal): Likewise.
13248 * dispextern.h (WINDOW_WANTS_MODELINE_P)
13249 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
13250 * fileio.c (auto_save_1): Likewise.
13251 * insdel.c (check_markers): Likewise.
13252 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
13253 * undo.c (record_insert): Likewise.
13254 * vmsproc.c (child_sig): Likewise.
13255 * window.c (unshow_buffer, window_loop): Likewise.
13256 * xterm.c (x_erase_phys_cursor): Likewise.
13257
13258 2000-03-30 Gerd Moellmann <gerd@gnu.org>
13259
13260 * xfns.c (free_image_cache): Free the cache structure itself
13261 last, after all its members have been freed.
13262
13263 * lisp.h (xstrdup): Add prototype.
13264
13265 * alloc.c (xstrdup): Moved here from xfaces.c.
13266 (allocating_for_lisp): Variable removed.
13267 (lisp_malloc): Block input around the calls to malloc and mem_insert.
13268
13269 * xfaces.c (realize_tty_face): Use find_symbol_value instead
13270 of Fsymbol_value.
13271 (xstrdup): Moved to alloc.c.
13272
13273 2000-03-29 Ken Raeburn <raeburn@gnu.org>
13274
13275 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
13276
13277 * emacs.c (main): Fix sense of no-loadup test.
13278
13279 * config.in (ENABLE_CHECKING): Undef.
13280
13281 * lisp.h (struct interval): Replace "parent" field with a union of
13282 interval pointer and Lisp_Object; add new bitfield to use as
13283 discriminant. Change other flag fields to bitfields.
13284 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
13285 is defined and the supplied test fails, print a message and abort.
13286 (eassert): New macro. Use CHECK to provide an assert-like facility.
13287
13288 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
13289 pointers; abort if the value looks like a lisp object.
13290 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
13291 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
13292 Modify for new interval parent definition.
13293
13294 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
13295 (UNMARK_BALANCE_INTERVALS): Update references that need an
13296 addressable lisp object in the interval structure.
13297 (die): New function.
13298 (suppress_checking): New variable.
13299
13300 * intervals.c (interval_start_pos): Just return 0 if there's no
13301 parent object.
13302
13303 2000-03-29 Gerd Moellmann <gerd@gnu.org>
13304
13305 * lread.c (read1): Accept `.' (period) as symbol start like in CL
13306 and earlier Emacs versions.
13307
13308 * keyboard.c (Ftop_level): Cancel busy-cursor.
13309
13310 * eval.c (call_debugger): Cancel busy-cursor.
13311
13312 2000-03-29 Kenichi Handa <handa@etl.go.jp>
13313
13314 * search.c (Freplace_match): Adjust multibyteness of the current
13315 buffer and NEWTEXT. Free allocated memory before signaling an error.
13316
13317 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
13318
13319 * regex.c (analyse_first): New function obtained by ripping out most
13320 of re_compile_fastmap and generalizing it a little bit so that it
13321 can also just return whether a given (sub)pattern can match the empty
13322 string or not.
13323 (regex_compile): Use `analyse_first' to decide whether the loop-check
13324 needs to be done or not for *, +, *? and +? (the loop check is costly
13325 for non-greedy repetition).
13326 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
13327
13328 2000-03-28 Dave Love <fx@gnu.org>
13329
13330 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
13331
13332 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
13333
13334 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
13335
13336 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
13337 an expression.
13338 (enum re_opcode_t): Update description of succeed_n.
13339 (PATFETCH): Always define.
13340 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
13341 operators, char classes, shy-groups and intervals).
13342 Optimize special cases of intervals so as to only use succeed_n and
13343 jump_n when really needed.
13344 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
13345 that we don't have to handle the special cases any more.
13346 Simplify on_failure_jump handling as well.
13347
13348 2000-03-28 Jason Rumney <jasonr@gnu.org>
13349
13350 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
13351
13352 2000-03-27 Gerd Moellmann <gerd@gnu.org>
13353
13354 * s/freebsd.h (GC_SETJMP_WORKS): Define.
13355
13356 * s/msdos.h (GC_SETJMP_WORKS): Define.
13357
13358 * alloc.c (mark_maybe_object): New function.
13359 (mark_memory): Use it.
13360 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
13361 (setjmp_tested_p, longjmp_done): New variables.
13362 (test_setjmp): New function.
13363 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
13364 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
13365
13366 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
13367 to DEC_TEXT_POS and INC_TEXT_POS.
13368
13369 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
13370 with parameter MULTIBYTE_P.
13371
13372 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
13373
13374 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
13375 buffers because it looks for multibyte character byte sequences
13376 which don't exist in unibyte text.
13377
13378 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
13379
13380 * xfaces.c (register_color, unregister_color, unregister_colors)
13381 [DEBUG_X_COLORS]: New functions.
13382 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
13383
13384 * xfns.c (x_set_cursor_color): Get color reference counts right.
13385
13386 * xterm.c (x_copy_color): New function.
13387 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
13388
13389 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
13390 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
13391 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
13392 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
13393 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
13394 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
13395 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
13396 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
13397 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
13398 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
13399
13400 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
13401 names for handling per-buffer variables.
13402
13403 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
13404 instead of MAX_BUFFER_LOCAL_VARS.
13405 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
13406
13407 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
13408
13409 * xfns.c (x_specified_cursor_type): New function.
13410 (x_set_cursor_type): Use it.
13411
13412 * buffer.h (struct buffer): Add cursor_type.
13413
13414 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
13415
13416 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
13417 (print_partial_compiled_pattern, re_compile_fastmap):
13418 Handle new opcode.
13419 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
13420 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
13421 executing it as well as when popping it off the stack to find infinite
13422 loops in non-greedy repetition operators.
13423
13424 2000-03-26 Gerd Moellmann <gerd@gnu.org>
13425
13426 * doc.c (Qfunction_documentation): New variable.
13427 (syms_of_doc): Initialize Qfunction_documentation.
13428 (Fdocumentation): If FUNCTION is a symbol with non-nil
13429 `function-documentation' property, return a documentation derived
13430 from that.
13431
13432 * buffer.c (syms_of_buffer): Add default-cursor-type.
13433 (init_buffer_once): Don't let cursor_type have a local value
13434 in every buffer.
13435
13436 * xterm.c (x_display_and_set_cursor): Choose cursor depending
13437 on buffer-local value of cursor_type.
13438 (x_draw_bar_cursor): Add parameter WIDTH.
13439
13440 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
13441 (init_buffer_once): Set default cursor_type value to t.
13442 Mark cursor_type as local everywhere.
13443 (syms_of_buffer): New per-buffer variable cursor-type.
13444
13445 * buffer.h (struct buffer): Remove member local_var_flags,
13446 add local_flags.
13447 (MAX_BUFFER_LOCAL_VARS): New macro.
13448 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
13449 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
13450 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
13451 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
13452
13453 * print.c (print_object): Use new macros for per-buffer variables.
13454
13455 * category.c (Fset_category_table): Use new macros for per-buffer
13456 variables.
13457
13458 * buffer.c (buffer_permanent_local_flags): Make a char array.
13459 (max_buffer_local_idx): New variable.
13460 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
13461 for new handling of per-buffer variables.
13462 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
13463 (init_buffer_once): Initialize per-buffer vars differently.
13464 Set max_buffer_local_idx.
13465
13466 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
13467 variables.
13468
13469 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
13470
13471 * data.c (do_symval_forwarding, store_symval_forwarding)
13472 (find_symbol_value, set_internal, default_value, Fset_default)
13473 (Fkill_local_variable, Flocal_variable_p): Use new macros for
13474 per-buffer variables.
13475
13476 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
13477
13478 2000-03-24 Gerd Moellmann <gerd@gnu.org>
13479
13480 * xterm.c (x_term_init): Unblock input around call1 of
13481 Qvendor_specific_keysyms.
13482
13483 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
13484 (find_defun_start): Consider an open parenthesis in column 0
13485 a defun start only if open_paren_in_column_0_is_defun_start is set.
13486 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
13487
13488 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
13489
13490 * eval.c (Fautoload): Add entry in load-history (if after dump).
13491 * lread.c (load-history): Update docstring.
13492
13493 2000-03-24 Gerd Moellmann <gerd@gnu.org>
13494
13495 * indent.c (Fvertical_motion): Always use the current buffer.
13496 Temporarily change the window's buffer, if necessary.
13497
13498 2000-03-23 Gerd Moellmann <gerd@gnu.org>
13499
13500 * xterm.c (fast_find_position): Make sure not to consider rows
13501 not visible in the window.
13502
13503 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
13504
13505 * regex.c (enum syntaxcode): Provide default for non-Emacs.
13506 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
13507
13508 2000-03-22 Jason Rumney <jasonr@gnu.org>
13509
13510 * w32menu.c (single_submenu): Set help string to NULL if none.
13511 (w32_menu_show): Set help string correctly.
13512 (add-menu-item): Set help string in MIIM_DATA for menu item.
13513 Load SetMenuItemInfoA explicitly.
13514 (w32_menu_display_help): New function.
13515
13516 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
13517 (QCdata): Moved to xdisp.c.
13518
13519 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
13520 (Vw32_charset_to_codepage_alist): Removed.
13521 (Vw32_charset_info_alist): New variable.
13522 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
13523 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
13524 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
13525 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
13526 with TODO comment.
13527 (w32_codepage_for_font): Use Vw32_charset_info_alist.
13528 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
13529 Define Vw32_charset_info_alist and w32_charset symbols.
13530
13531 2000-03-22 Jason Rumney <jasonr@gnu.org>
13532
13533 * makefile.nt (w32bdf.obj): Update dependencies.
13534
13535 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
13536
13537 * w32fns.c: Include fontset.h after dispextern.h.
13538 (Fx_create_frame): Do not create fontset.
13539 (w32_load_system_font): Doc fix.
13540 (Fx_close_connection): Free full_name if it is not shared.
13541
13542 * w32term.c: Include fontset.h after dispextern.h.
13543 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
13544 Callers updated.
13545 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
13546 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
13547 (w32_font_is_double_byte): New function, needs body.
13548 (x_append_glyph): Set glyph->glyph_not_available_p.
13549 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
13550 it->charset. If it->multibyte_p is zero and it->c is a multibyte
13551 character, convert it to a unibyte character.
13552 (struct glyph_string): Delete member `charset'.
13553 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
13554 calculating it is found.
13555 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
13556 the case that per char metric is not available correctly.
13557 (x_fill_glyph_string): Handle the case that the specific glyph is
13558 not available correctly.
13559 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
13560 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
13561 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
13562 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
13563 fontset. Don't call FS_LOAD_FONT.
13564
13565 2000-03-22 Ken Raeburn <raeburn@gnu.org>
13566
13567 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
13568 (INT_LISPLIKE): New macro.
13569 (NULL_INTERVAL_P): Use it.
13570 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
13571 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
13572 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
13573
13574 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
13575 explicit references to "parent" field of struct interval and
13576 associated unclean type conversions.
13577 * intervals.c (create_root_interval, root_interval, rotate_right)
13578 (rotate_left, balance_possible_root_interval, split_interval_right)
13579 (split_interval_left, interval_start_pos, find_interval)
13580 (next_interval, previous_interval, update_interval)
13581 (adjust_intervals_for_insertion, delete_node, delete_interval)
13582 (adjust_intervals_for_deletion, merge_interval_right)
13583 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
13584 (copy_intervals_to_string): Likewise.
13585 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
13586 Likewise.
13587 * syntax.c (update_syntax_table): Likewise.
13588
13589 * intervals.c (reproduce_tree_obj): New function, like
13590 reproduce_tree but takes a Lisp_Object for the parent. Declare
13591 with prototype.
13592 (graft_intervals_into_buffer): Use it when appropriate.
13593 (reproduce_tree): Declare with prototype.
13594 (balance_possible_root_interval): Check that the parent is a lisp
13595 object before trying to examine its type.
13596
13597 2000-03-22 Gerd Moellmann <gerd@gnu.org>
13598
13599 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
13600 as strings only if both are known to be strings.
13601
13602 * s/openbsd.h (LIBS_TERMCAP): Undef.
13603
13604 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
13605
13606 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
13607 definitions for non-Emacs compilation.
13608 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
13609 outside of `#ifdef emacs'.
13610 (print_partial_compiled_pattern): Update.
13611 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
13612 (re_compile_fastmap): Merge handling of charset and charset_not (for
13613 emacs and non-emacs compilation as well).
13614 Similarly for (not)categoryspec and (not)syntaxspec.
13615 Don't use the fastmap when reaching `anychar' since the added
13616 complexity is not justified.
13617 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
13618 and (not)syntaxspec. Merge (not)categoryspec.
13619
13620 2000-03-22 Kenichi Handa <handa@etl.go.jp>
13621
13622 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
13623 (FACE_FOR_CHAR): Define them differently for the configuration of
13624 --without-x.
13625
13626 2000-03-21 Dave Love <fx@gnu.org>
13627
13628 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
13629 doc string.
13630
13631 2000-03-21 Gerd Moellmann <gerd@gnu.org>
13632
13633 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
13634 (lface_fully_specified_p): Don't check contents of
13635 LFACE_FONT_INDEX because that attribute is optional.
13636 (realize_x_face): Remove now unwarranted xassert.
13637
13638 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
13639
13640 The following changes are to make font selection based on
13641 characters, not charset. In addition, they recover fontset
13642 facilities while utilizing the new font selection mechanism.
13643
13644 * Makefile.in (fontset.o): Depend on dispextern.h.
13645
13646 * alloc.c (mark_face_cache): Don't mark face->registry.
13647
13648 * dispextern.h (struct glyph): New member glyph_not_available_p.
13649 Use 22 bits for face_id.
13650 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
13651 (struct face): Delete member registry, new member ascii_face.
13652 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
13653 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
13654 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
13655 (struct it): Delete member charset, new member glyph_not_available_p.
13656
13657 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
13658 (struct fontset_info, struct fontset_data): Structs removed.
13659 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
13660 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
13661 (fs_load_font, fs_query_fontset): Adjusted for new argument.
13662 (fs_free_face_fontset, fontset_font_pattern)
13663 (face_suitable_for_char_p, face_for_char)
13664 (make_fontset_for_ascii_face): Extern them.
13665 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
13666 (FS_LOAD_FACE_FONT): New macro.
13667
13668 * fontset.c: All codes rewritten or adjusted for the change of
13669 fontset implementation. Now fontset is represented by char table.
13670 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
13671 Variables removed.
13672 (my_strcasecmp): Function removed.
13673 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
13674 (AREF, ASIZE): New macros.
13675 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
13676 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
13677 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
13678 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
13679 (fontset_id_valid_p, font_family_registry, fontset_name)
13680 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
13681 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
13682 New functions.
13683 (fs_load_font): New arg FACE. Caller changed.
13684 (fs_query_fontset): Argument changed. Caller changed.
13685 (Fquery_fontset): call fs_query_fontset.
13686 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
13687 Functions removed.
13688 (clear_fontset_elements, check_registry_encoding)
13689 (check_fontset_name): New functions.
13690 (syms_of_fontset): Set char-table-extra-slots property of fontset
13691 to 3. Staticpro and initialize Vfontset_table and
13692 Vdefault_fontset. Defsubr fontset_font and fontset_list.
13693
13694 * frame.h (struct frame): Member `fontset_data' removed.
13695 (FRAME_FONTSET_DATA): Macro removed.
13696
13697 * frame.c (make_frame): Don't allocate f->fontset_data.
13698 (Fdelete_frame): Don't free f->fontset_data.
13699
13700 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
13701
13702 * xdisp.c (charset_at_position): Function removed.
13703 (init_iterator): Don't set member charset of struct `it'.
13704 (handle_face_prop, reseat_to_string, set_iterator_to_next)
13705 (next_element_from_display_vector, insert_left_trunc_glyphs):
13706 Likewise.
13707 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
13708 FACE_FOR_CHARSET.
13709 (get_next_display_element, append_space)
13710 (extend_face_to_end_of_line): Likewise.
13711
13712 * xfaces.c (Qx_charset_registry, Vface_default_registry):
13713 Variables removed.
13714 (clear_font_table, frame_update_line_height, load_face_font):
13715 Adjusted for the change of fontset implementation.
13716 (load_face_fontset_font): Function removed.
13717 (pixel_point_size): New function.
13718 (font_list): Argument type changed. Caller changed.
13719 (LFACE_FONT): New macro.
13720 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
13721 (set_lface_from_font_name): Type of arg FONTNAME is changed to
13722 Lisp_Object. Determine the font name by actually loading a font
13723 by the specified pattern. Set LFACE_FONT (lface) to the specified
13724 pattern. Even if a font is not found, don't try alternatives.
13725 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
13726 (set_font_frame_param): If `font' is specified in lface, use it.
13727 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
13728 (lface_same_font_attributes_p): Likewise.
13729 (make_realized_face): Arguent changed. Caller changed. Set
13730 face->ascii_face to face itself.
13731 (free_realized_face): Free face->fontset if face is for ASCII.
13732 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
13733 (deduce_unibyte_registry, x_charset_registry): Functions removed.
13734 (free_realized_multibyte_face): New function.
13735 (lookup_face, lookup_named_face, lookup_derived_face): Argument
13736 changed. Caller changed.
13737 (try_font_list): Argument type changed.
13738 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
13739 (choose_face_font): Argument changed. Handle fontset properly.
13740 (choose_face_fontset_font): Function removed.
13741 (realize_default_face, realize_named_face): Don't remove the
13742 former face here.
13743 (realize_face): Argument changed. Caller changed. Remove face
13744 with the arg former_face_id in advance. Load font for the new face.
13745 (realize_x_face): Argument changed. Caller changed. For a
13746 multibyte character, share fontset with base_face. For a single
13747 byte character, make a new realized fontset. Don't load a font here.
13748 (realize_tty_face): Argument changed. Caller changed.
13749 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
13750 (face_at_buffer_position): Don't check multibyte_p for returning
13751 DEFAULT_FACE_ID.
13752 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
13753 FACE_SUITABLE_FOR_CHARSET_P.
13754 (syms_of_xfaces): Remove code for Qx_charset_registry and
13755 Vface_default_registry.
13756
13757 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
13758 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
13759 (x_per_char_metric): Don't try FONT->default_char. Even if
13760 pcm->width is zero, glyph bits may exist.
13761 (x_encode_char): Always initialize char2b->byte1.
13762 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
13763 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
13764 (x_append_glyph): Set glyph->glyph_not_available_p.
13765 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
13766 it->charset. Handle the case that per char metric is not
13767 available. If it->multibyte_p is zero and it->c is a multibyte
13768 character, convert it to a unibyte character.
13769 (struct glyph_string): Delete member `charset'.
13770 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
13771 the case that per char metric is not available correctly.
13772 (x_fill_glyph_string): Handle the case that the specific glyph is
13773 not available correctly.
13774 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
13775 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
13776 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
13777 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
13778 fontset. Don't call FS_LOAD_FONT.
13779
13780 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
13781 (x_create_tip_frame): Likewise.
13782 (Fx_close_connection): Free full_name of font_info.
13783
13784 * fns.c (optimize_sub_char_table): New function.
13785 (Foptimize_char_table): New function.
13786 (syms_of_fns): Defsubr Soptimize_char_table.
13787
13788 2000-03-20 Gerd Moellmann <gerd@gnu.org>
13789
13790 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
13791 only if buffer is displayed in some window.
13792
13793 * xdisp.c (handle_single_display_prop): Initialize local `value'.
13794 (try_window_reusing_current_matrix): Don't call scroll run
13795 function if run's current and desired position are the same;
13796 this prevents cursor flickering.
13797
13798 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
13799
13800 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
13801
13802 * regex.c (RE_STRING_CHAR): New macro.
13803 (GET_CHAR_AFER_2): Remove.
13804 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
13805 (enum re_opcode_t): Remove on_failure_jump_exclusive.
13806 (print_partial_compiled_pattern, re_compile_fastmap)
13807 (re_match_2_internal): Remove on_failure_jump_exclusive.
13808 (regex_compile): Turn optimizable P+ loops into PP*, so that the
13809 optimization only need to work for * (ie. can use of_keep_string_jump).
13810 Remove the special case for .*\n since it is now covered by the general
13811 optimization.
13812 (re_search_2): Don't bother with `room'.
13813 (skip_one_char): New function.
13814 (skip_noops): Simplify since `memory' is not needed any more.
13815 (mutually_exclusive_p): Restructure slightly to use `switch' and
13816 add handling for "all" remaining cases.
13817 (re_match_2_internal): Change on_failure_jump_smart to use
13818 on_failure_keep_string_jump (and redirect the end-of-loop jump)
13819 rather than on_failure_jump_exclusive.
13820
13821 2000-03-19 Gerd Moellmann <gerd@gnu.org>
13822
13823 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
13824 number of bits per RGB because it's everywhere used as the depth
13825 of the visual.
13826
13827 * term.c (calculate_costs): Remove code dealing with X frames.
13828
13829 2000-03-19 Richard M. Stallman <rms@gnu.org>
13830
13831 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
13832
13833 2000-03-18 Gerd Moellmann <gerd@gnu.org>
13834
13835 * lread.c (read_integer): Unread the last char not consumed.
13836
13837 2000-03-17 Gerd Moellmann <gerd@gnu.org>
13838
13839 * xterm.c (x_update_window_cursor): Don't update in frames
13840 which are in the process of being deleted.
13841
13842 2000-03-16 Gerd Moellmann <gerd@gnu.org>
13843
13844 * Makefile.in (mostlyclean): Add `*.core'.
13845 (clean): Add `bootstrap-emacs'.
13846
13847 * lread.c (read_integer): New function.
13848 (read1): Support read syntax #o, #x, #b, #r.
13849
13850 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
13851
13852 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
13853 make sure POINTER_TO_OFFSET gives the same value before and after
13854 PREFETCH. Use `dfail' to guarantee "atomic" matching.
13855 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
13856 (debug): Now only active if > 0 rather than if != 0.
13857 (DEBUG_*): Update for the new meaning of `debug'.
13858 (print_partial_compiled_pattern): Add missing `succeed' case. Use
13859 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
13860 in `succeed_n', `jump_n' and `set_number_at'.
13861 (store_op1, store_op2, insert_op1, insert_op2)
13862 (at_begline_loc_p, at_endline_loc_p): Add prototype.
13863 (group_in_compile_stack): Move to after its arg's types are
13864 declared and add a prototype.
13865 (PATFETCH): Define in terms of PATFETCH_RAW.
13866 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
13867 (QUIT): Redefine as a nop except for NTemacs.
13868 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
13869 indentation of the greedy-op and shy-group code.
13870 (at_(beg|end)line_loc_p): Fix argument's types.
13871 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
13872 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
13873 (MATCHING_IN_FIRST_STRING): Remove.
13874 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
13875 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
13876 QUIT unconditionally.
13877
13878 2000-03-15 Gerd Moellmann <gerd@gnu.org>
13879
13880 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
13881 a sole completion.
13882
13883 * process.c (send_process): Add a hint that the function
13884 can call Lisp code to its comment.
13885
13886 * lread.c (load_dangerous_libraries): New variable.
13887 (Vbytecomp_version_regexp): New variable.
13888 (safe_to_load_p): New function.
13889 (Fload): Handle files not compiled with Emacs specially.
13890 (syms_of_lread): New Lisp variable load-dangerous-libraries.
13891
13892 2000-03-14 Gerd Moellmann <gerd@gnu.org>
13893
13894 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
13895
13896 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
13897 support functions only if HAVE_X11R6_XIM is defined.
13898 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
13899
13900 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
13901
13902 * xfns.c (X_I18N_INHIBITED): Don't define.
13903 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
13904 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
13905
13906 * config.in (HAVE_X_I18N): Moved here from xterm.h.
13907 (HAVE_X11R6_XIM): Define.
13908
13909 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
13910
13911 * xterm.c (x_term_init): Add support for X resource `synchronous'.
13912 If set, call XSynchronize.
13913
13914 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
13915
13916 * regex.c: Declare a new type `re_char' used throughout the code
13917 for the string char type. It's `const unsigned char' to match the
13918 rest of Emacs. Consistently make sure all pointers to strings use
13919 it and make sure all pointers into the pattern use `unsigned char'.
13920 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
13921 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
13922 code duplication.
13923
13924 * charset.h (GET_CHAR_AFTER_2): Remove.
13925 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
13926
13927 2000-03-12 Ken Raeburn <raeburn@gnu.org>
13928
13929 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
13930 variable before the invocation of YMF_PASS_LDFLAGS, in case both
13931 of them try to use backquotes.
13932
13933 2000-03-12 Dave Love <fx@gnu.org>
13934
13935 * unexelf.c: Restore changes of 1999-10-19.
13936 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
13937 fix its type and alignment; copy it from current process.
13938
13939 2000-03-12 Gerd Moellmann <gerd@gnu.org>
13940
13941 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
13942 has been found. Fix bug not computing timer's predecessor.
13943
13944 * fileio.c (Fread_file_name): Handle case that DIR contains a
13945 file name.
13946
13947 * window.c (Fsave_window_excursion): Doc fix.
13948
13949 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
13950
13951 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
13952
13953 * msdos.c (vga_installed): New function, code moved from
13954 dos_set_window_size.
13955 (Qbar, Qcursor_type, outside_cursor): New variables.
13956 (syms_of_msdos): Intern and staticpro them.
13957 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
13958 shape used outside Emacs when called for the first time.
13959 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
13960 cursor shape used outside Emacs.
13961 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
13962 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
13963 type has changed.
13964 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
13965 parameters specify the cursor. Make qreverse a global
13966 variable (renamed to Qreverse).
13967
13968 2000-03-09 Gerd Moellmann <gerd@gnu.org>
13969
13970 * fns.c (Fy_or_n_p): Cancel busy-cursor.
13971
13972 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
13973
13974 This is a big redesign of failure-stack and register handling, prompted
13975 by bugs revealed when trying to add shy-groups. Overall, what happened
13976 is that loops are now structured a little differently, groups can be
13977 shy and the code is a little simpler.
13978
13979 * regex.h: Update the copyright.
13980 (RE_SHY_GROUPS): New value.
13981 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
13982 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
13983
13984 * regex.c (enum re_opcode_t): Remove jump_past_alt,
13985 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
13986 on_failure_jump_(exclusive, loop and smart). Also fix the comment
13987 for (start|stop)_memory since they now only take one argument (the
13988 second has becomes unnecessary).
13989 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
13990 (print_compiled_pattern): Use %ld to printf long ints and flush to
13991 make debugging a little easier.
13992 (union fail_stack_elt): Make the integer unsigned.
13993 (struct fail_stack_type): Add a `frame' element.
13994 (INIT_FAIL_STACK): Init `frame' as well.
13995 (POP_PATTERN_OP): New macro for re_compile_fastmap.
13996 (DEBUG_PUSH, DEBUG_POP): Remove.
13997 (NUM_REG_ITEMS): Remove.
13998 (NUM_NONREG_ITEMS): Adjust.
13999 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
14000 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
14001 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
14002 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
14003 New macros.
14004 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
14005 address pushed is not the destination of the jump but the source
14006 of it instead.
14007 (NUM_FAILURE_ITEMS): Remove.
14008 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
14009 registers before the actual failure point). Don't hardcode any
14010 meaning for str==NULL anymore.
14011 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
14012 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
14013 Remove.
14014 (REG_UNSET_VALUE): Use NULL (why not?).
14015 (compile_range): Remove declaration since it doesn't exist.
14016 (struct compile_stack_elt_t): Remove inner_group_offset.
14017 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
14018 (regex_grow_registers): Remove dead code.
14019 (FIXUP_ALT_JUMP): New macro.
14020 (regex_compile): Add shy-groups Change loops to use
14021 on_failure_jump_smart&jump instead of
14022 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
14023 initial (dummy_failure_)jump. Remove c1_base (looks like unused
14024 variable to me). Use `jump' instead of `jump_past_alt' and don't
14025 bother with push_dummy_failure in alternatives since it is now
14026 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
14027 emacs' for (re)allocating the stack.
14028 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
14029 from loop when bufp->can_be_null rather than jumping to `done'.
14030 Avoid jumping backwards so as to ensure termination. Use
14031 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
14032 backreferences. Remove dead code in handling of `anychar'.
14033 (skip_noops, mutually_exclusive_p): New functions taken from the
14034 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
14035 improve mutually_exclusive_p to handle ".+\n".
14036 (lowest_active_reg, highest_active_reg)
14037 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
14038 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
14039 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
14040 variables. Push register (in `start_memory') on the stack rather
14041 than storing it in old_reg(start|end). Remove the cycle detection
14042 from `stop_memory', replaced by the use of on_failure_jump_loop
14043 for greedy loops. Add code for the new on_failure_jump_<foo>.
14044 Remove ad-hoc code in `on_failure_jump' to push more registers in
14045 the case of a loop. Take out code from `maybe_pop_jump' into
14046 separate functions and adapt it to the semantics of
14047 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
14048 and push_dummy_failure. Remove dummy_failure handling and
14049 handling of `failures to jump to on_failure_jump' (this last one
14050 was already dead code, it seems).
14051 (group_match_null_string_p, alt_match_null_string_p)
14052 (common_op_match_null_string_p): Remove.
14053
14054 2000-03-08 Dave Love <fx@gnu.org>
14055
14056 * config.in: Don't depend on __STDC__ for volatile.
14057 Add POINTER_TYPE, PTR, PROTOTYPES.
14058
14059 * hftctl.c, strftime.c: Use PROTOTYPES.
14060 * eval.c (find_handler_clause): Likewise.
14061
14062 * mem-limits.h: Use POINTER_TYPE.
14063
14064 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
14065 (memory_warnings): Declare using POINTER_TYPE.
14066
14067 2000-03-08 Gerd Moellmann <gerd@gnu.org>
14068
14069 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
14070
14071 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
14072
14073 * xfns.c: Remove obsolete code in #if 0.
14074 (Fx_focus_frame): New function.
14075
14076 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
14077
14078 * coding.c (coding_category_name): Add coding-category-utf-8,
14079 coding-category-utf-16-be, coding-category-utf-16-le.
14080 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
14081 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
14082 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
14083 (detect_coding_utf_8): New function.
14084 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
14085 UTF_16_LOW_SURROGATE_P): New macros.
14086 (detect_coding_utf_16): New function
14087 (detect_coding_mask): When priorities are specified, skip any
14088 categories that have `nil' coding-system. Fix bug of returning
14089 wrong mask when PRIORITIES is specified and detect_coding_XXX()
14090 returns a mask not set in PRIORITIES.
14091 (detect_eol_type_in_2_octet_form): New function.
14092 (detect_eol): selects detect_eol_type_XXX to call according to
14093 cooding->category_idx.
14094 (detect_coding_system): Remove `nil' coding-system in the result.
14095 (Fupdate_coding_systems_internal): Update all coding-categories.
14096
14097 * coding.h (CODING_CATEGORY_IDX_UTF_8)
14098 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
14099 New macros.
14100 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
14101 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
14102 (CODING_CATEGORY_IDX_UTF_16_LE)
14103 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
14104 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
14105 (CODING_CATEGORY_MASK_ANY): Include the above macros.
14106 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
14107
14108 2000-03-07 Gerd Moellmann <gerd@gnu.org>
14109
14110 * doc.c (Fdocumentation_property): If value is not a string,
14111 and doesn't refer to etc/DOC, evaluate it to obtain a string.
14112
14113 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
14114 close the display with XtCloseDisplay. This caused a bus error
14115 on OpenWindows.
14116
14117 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
14118 complete but not unique.
14119
14120 2000-03-06 Gerd Moellmann <gerd@gnu.org>
14121
14122 * process.c (send_process): Remove local variable `procname' that
14123 might become invalid when a GC happens. Instead, access the
14124 process name slot directly.
14125
14126 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
14127 orig_height if set.
14128
14129 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
14130 orig_height if set.
14131
14132 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
14133
14134 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
14135 glyph matrices have been freed.
14136
14137 2000-03-05 Gerd Moellmann <gerd@gnu.org>
14138
14139 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
14140 (bootstrap-temacs): Set LC_ALL to C like for temacs.
14141
14142 * xfns.c (QCdata): Moved to xdisp.c.
14143
14144 * xdisp.c (QCdata): Moved here from xfns.c.
14145 (syms_of_xdisp): Initialize QCdata.
14146
14147 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
14148
14149 * window.c (coordinates_in_window): Use
14150 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
14151 FRAME_INTERNAL_BORDER_WIDTH.
14152
14153 * xdisp.c (try_window_id): Recompute unchanged information if
14154 it is obviously invalid.
14155
14156 * xterm.c (x_term_init): Create a colormap if not using the
14157 default visual.
14158
14159 * xterm.h (select_visual): Change prototype.
14160
14161 * xfns.c (select_visual): Rewritten. Recognize user-specified
14162 visual classes.
14163 (visual_classes): New variable.
14164
14165 2000-03-04 Gerd Moellmann <gerd@gnu.org>
14166
14167 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
14168 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
14169 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
14170 (x_decode_color): Don't handle allocation of white and black specially.
14171 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
14172 XtNcolormap resources.
14173 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
14174 (Fx_create_frame): Initialize color members of x_output structure.
14175 (xpm_load): Pass colormap to XPM lib.
14176
14177 * xfaces.c (x_free_colors): Access colormap of frame using
14178 FRAME_X_COLORMAP. Be paranoid about freeing black and white
14179 when default colormap is used.
14180
14181 * xterm.c (x_term_init): Set Colormap member of x_display_info
14182 structure. Copy colormap if resource `privateColormap' is
14183 specified (PseudoColor only).
14184 (x_setup_relief_color): Access colormap of frame using
14185 FRAME_X_COLORMAP.
14186
14187 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
14188 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
14189
14190 2000-03-04 Jason Rumney <jasonr@gnu.org>
14191
14192 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
14193 other non-platform-specific equivalents.
14194 [WINDOWSNT]: Include w32term.h, fontset.h and define X
14195 specific functions and macros as their w32 equivalents where
14196 non-platform-specifics are not available.
14197 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
14198 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
14199 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
14200 (frame_update_line_height): Use macros to access f->output_data.
14201 (defined_color): Remove FIXME comments; fixed.
14202 (x_face_list_fonts, prepare_face_for_display): Put X specifics
14203 into #ifdef blocks. Add WINDOWSNT blocks.
14204 (Fx_list_fonts): Use macros for accessing font data.
14205 (set_lface_from_font_name): Different default fonts for X and
14206 WINDOWSNT.
14207 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
14208 scalable for backward compatibility.
14209 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
14210 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
14211
14212 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
14213 syms_of_w32faces.
14214
14215 * makefile.nt (w32faces.obj): Remove.
14216 (xfaces.obj): Add.
14217
14218 2000-03-03 Jason Rumney <jasonr@gnu.org>
14219
14220 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
14221 correct parameters.
14222
14223 2000-03-03 Ken Raeburn <raeburn@gnu.org>
14224
14225 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
14226 standard ELF definitions here if the system header does not.
14227
14228 2000-03-03 Gerd Moellmann <gerd@gnu.org>
14229
14230 * xterm.c (PER_CHAR_METRIC): Removed.
14231 (x_per_char_metric_1, x_default_char): New functions.
14232 (x_per_char_metric): If font's default char is invalid, return
14233 metrics of a suitably chosen usable default char.
14234 (x_draw_glyph_string_foreground): If font has an invalid default
14235 char, replace occurrences of unprintable chars with a suitably
14236 chosen usable default char.
14237
14238 2000-03-02 Gerd Moellmann <gerd@gnu.org>
14239
14240 * xterm.c (note_mouse_highlight): Return quickly if frame's
14241 glyph matrices have been freed.
14242
14243 * dispnew.c (free_glyphs): Block input while freeing matrices.
14244
14245 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
14246
14247 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
14248 Use x_free_colors.
14249
14250 * dispextern.h (x_free_colors): Add prototype.
14251
14252 * xfaces.c (x_free_colors): New function.
14253 (unload_color, free_face_colors): Use it.
14254
14255 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14256
14257 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
14258
14259 * window.c [MSDOS]: Include msdos.h.
14260
14261 2000-03-02 Dave Love <fx@gnu.org>
14262
14263 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
14264
14265 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
14266 set C_OPTIMIZE_SWITCH for gcc.
14267
14268 2000-03-02 Kenichi Handa <handa@etl.go.jp>
14269
14270 * coding.c (coding_save_composition): Be sure to allocate
14271 composition data area in coding even if there's no composition in
14272 the current run.
14273
14274 2000-03-01 Jason Rumney <jasonr@gnu.org>
14275
14276 * w32term.c: Equivalent changes to those made to xterm.c on
14277 2000-02-25 and 2000-02-24.
14278
14279 * w32fns.c: Equivalent changes to those made to xfns.c on
14280 2000-02-25 and 2000-02-21.
14281
14282 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
14283 correct line-end convention is followed.
14284
14285 * w32menu.c [HAVE_BOXES]: Remove #undef.
14286 (single_keymap_panes): Remove code for simulating checkmarks.
14287 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
14288 Remove code for drawing simulated checkmarks.
14289 (w32_menu_show): make unibyte help string correctly.
14290 (add_menu_item): draw standard Windows checkmarks. Draw radio
14291 buttons as radio buttons if possible.
14292
14293 2000-03-01 Gerd Moellmann <gerd@gnu.org>
14294
14295 * sysdep.c (start_of_text): Don't define this function for NetBSD
14296 with ELF.
14297
14298 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
14299 Don't define.
14300 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
14301 (LINKER): Don't undef if __NetBSD__ is defined.
14302
14303 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
14304
14305 * fileio.c [__NetBSD__]: Define `unix'.
14306
14307 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
14308
14309 2000-02-29 Gerd Moellmann <gerd@gnu.org>
14310
14311 * atimer.c (start_atimer): Don't abort when timers are stopped.
14312 (append_atimer_lists): New function.
14313 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
14314 arbitrary lists of stopped and running atimers.
14315
14316 * atimer.c (cancel_atimer): Handle canceling an atimer when
14317 some timers are stopped.
14318
14319 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
14320 after canceling it.
14321
14322 * fns.c (maybe_resize_hash_table): Handle case of new size
14323 coming out as being the same as old size.
14324
14325 2000-02-27 Jason Rumney <jasonr@gnu.org>
14326
14327 * makefile.nt: Add atimer.h to dependencies.
14328 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
14329 * w32console.c: Only disable window system features for dispextern.h
14330 (initialize_w32_display): Build a display info for the console.
14331 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
14332 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
14333 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
14334 as 2 button mice.
14335 * w32gui.h (struct W32FontStruct): Revert last change after change
14336 to xdisp.c.
14337 * w32menu.c (single_submenu): Set up help string.
14338 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
14339 (w32_dialog_show): Set up help string.
14340 * w32term.c (w32_display_info_for_display): Remove unused function.
14341 (w32_draw_bitmap): Use pre-built bitmaps.
14342 (w32_initialize_display_info): New function to initialize parts of
14343 display info that are common to both GUI and console frames.
14344 (w32_term_init): Use w32_initialize_display_info. Do not set
14345 Vw32_num_mouse_buttons here, as it is not called for console
14346 frames. Build bitmaps for indicating truncated lines etc.
14347 (x_delete_display): Destroy pre-built bitmaps.
14348 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
14349 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
14350
14351 2000-02-27 Dave Love <fx@gnu.org>
14352
14353 * lisp.h: Add a bunch of prototypes.
14354
14355 2000-02-26 Kenichi Handa <handa@etl.go.jp>
14356
14357 * keyboard.c (read_char): Set `usec' correctly.
14358
14359 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
14360
14361 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
14362 `lambda', set reg[RRR] to the map index.
14363 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
14364 reg[RRR] to 0. Otherwise, set it to -1.
14365
14366 2000-02-25 Gerd Moellmann <gerd@gnu.org>
14367
14368 * emacs.c (main): Remove code snippet commented out with `//'.
14369
14370 2000-02-25 Richard M. Stallman <rms@gnu.org>
14371
14372 * fileio.c (Ffile_symlink_p): If result starts with a `/'
14373 and contains a `:', prepend `/:'.
14374
14375 * window.c (select_window_1): If selected_window is nil,
14376 don't "swap out" the buffer's point.
14377 (Fset_window_configuration): Set selected_window to nil
14378 before calling Fselect_window.
14379 (unshow_buffer): Don't set point in buffer from window's point
14380 if another more recently selected window also shows the buffer.
14381
14382 2000-02-25 Gerd Moellmann <gerd@gnu.org>
14383
14384 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
14385
14386 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
14387 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
14388 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
14389 New variables.
14390 (DEFAULT_BUSY_CURSOR_DELAY): New define.
14391 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
14392 (hide_busy_cursor): New functions.
14393 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
14394
14395 * minibuf.c (read_minibuf): Cancel busy-cursor.
14396
14397 * keyboard.c (command_loop_1): Call start_busy_cursor before
14398 Fcommand_execute and cancel_busy_cursor after it.
14399 (timer_check): Remove busy-cursor code.
14400 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
14401 cursor timer.
14402
14403 * process.c (wait_reading_process_input): Remove busy-cursor code.
14404
14405 * eval.c (Fsignal): Call cancel_busy_cursor instead of
14406 Fx_hide_busy_cursor.
14407
14408 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
14409 Remove prototyoes.
14410 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
14411
14412 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
14413
14414 * xterm.c (XTread_socket): Remove busy-cursor code.
14415
14416 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
14417 (build_frame_matrix_from_leaf_window): Put code handling
14418 glyph row's not being a slice of a frame row in #if 0.
14419 (sync_window_with_frame_matrix_rows): New function.
14420 (frame_row_to_window): New function.
14421 (mirror_line_dance): Handle copies between windows.
14422
14423 * lread.c (Fload): Use `xfree' instead of `free'.
14424 (init_obarray): Use `xmalloc' instead of `malloc'.
14425
14426 * window.c (Fset_window_buffer): Set WINDOW to the window
14427 after decoding.
14428 (coordinates_in_window): Take frame's internal border width
14429 into account.
14430
14431 2000-02-24 Gerd Moellmann <gerd@gnu.org>
14432
14433 * xterm.c (x_display_and_set_cursor): Display cursor of
14434 non-selected windows depending on the setting of
14435 cursor_in_non_selected_windows.
14436
14437 * xdisp.c (cursor_in_non_selected_windows): New variable.
14438 (syms_of_xdisp): DEFVAR_BOOL it.
14439
14440 2000-02-23 Gerd Moellmann <gerd@gnu.org>
14441
14442 * data.c (Fstring_to_number): If number is greater than what
14443 fits into an integer, return a float.
14444
14445 * eval.c (specbind): Remove references to
14446 keyword_symbols_constant_flag.
14447
14448 * data.c (keyword_symbols_constant_flag): Removed.
14449 (Fmakunbound, set_internal, syms_of_data): Remove references to
14450 keyword_symbols_constant_flag.
14451
14452 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
14453
14454 2000-02-23 Kenichi Handa <handa@etl.go.jp>
14455
14456 * syntax.c (multibyte_syntax_as_symbol): New variable.
14457 (syms_of_syntax): Declare it as a Lisp variable.
14458 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
14459 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
14460 nonzero, treat all multibyte characters as symbol.
14461 (init_syntax_once): Give syntax `word' to all multibyte characters.
14462
14463 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14464
14465 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
14466 a deleted frame.
14467
14468 2000-02-21 Gerd Moellmann <gerd@gnu.org>
14469
14470 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
14471
14472 * xfns.c (x_window_to_frame, x_any_window_to_frame)
14473 (x_non_menubar_window_to_frame): Check the busy-cursor window.
14474
14475 2000-02-21 Dave Love <fx@gnu.org>
14476
14477 * frame.c (Vmouse_position_function): New variable.
14478 (Fmouse_position): Use it.
14479 (syms_of_frame): Install it.
14480
14481 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
14482
14483 2000-02-20 Gerd Moellmann <gerd@gnu.org>
14484
14485 * fileio.c (Finsert_file_contents): Unbind the binding of
14486 standard-output done by temp_output_buffer_setup.
14487
14488 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
14489 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
14490 (specbind, unbind_to): Handle most common case of non-constant
14491 symbol with trivial value specially.
14492
14493 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
14494
14495 2000-02-20 Richard M. Stallman <rms@gnu.org>
14496
14497 * data.c (Fmake_variable_buffer_local): Doc fix.
14498 Init found_for_buffer to 0.
14499 (Fmake_variable_frame_local): If the variable has already
14500 been buffer-local, set the check_frame field.
14501
14502 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
14503
14504 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
14505 produced for CODING_MODE_LAST_BLOCK requires.
14506
14507 2000-02-18 Dave Love <fx@gnu.org>
14508
14509 * keyboard.c (echo_keystrokes): Remove declaration.
14510 (Vecho_keystrokes) New variable.
14511 (read_char, record_menu_key, read_key_sequence): Use it to allow
14512 use of float value.
14513 (syms_of_keyboard): Change Vecho_keystrokes declaration.
14514
14515 * lread.c: Undef feature selection macros before defining.
14516
14517 2000-02-18 Gerd Moellmann <gerd@gnu.org>
14518
14519 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
14520 for symbols other than the symbol in question.
14521
14522 2000-02-17 Dave Love <fx@gnu.org>
14523
14524 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
14525
14526 2000-02-17 Gerd Moellmann <gerd@gnu.org>
14527
14528 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
14529
14530 * alloc.c (enum mem_type): Compile unconditionally.
14531
14532 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
14533
14534 * xfaces.c (tty_defined_color): Don't return faulire indication
14535 for unspecified-fg and unspecified-bg pseudo-colors.
14536
14537 2000-02-17 Gerd Moellmann <gerd@gnu.org>
14538
14539 * alloc.c (mark_object): Don't mark symbol names in pure space.
14540 (gc_sweep): Don't unmark symbol names in pure space.
14541
14542 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
14543 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
14544 [GC_MARK_STACK]: New defines.
14545 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
14546 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
14547
14548 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
14549
14550 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
14551 allocate_buffer instead of xmalloc.
14552
14553 * alloc.c (toplevel): Include setjmp.h.
14554 (PURE_POINTER_P): New define.
14555 (enum mem_type) [GC_MARK_STACK]: New enumeration.
14556 (Vdead) [GC_MARK_STACK]: New variable.
14557 (lisp_malloc): Add parameter TYPE, call mem_insert if
14558 GC_MARK_STACK is defined.
14559 (allocate_buffer): New function.
14560 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
14561 (free_float) [GC_MARK_STACK]: Set type to Vdead.
14562 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
14563 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
14564 (MEM_NIL) [GC_MARK_STACK]: New define.
14565 (struct mem_node) [GC_MARK_STACK]: New structure.
14566 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
14567 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
14568 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
14569 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
14570 (mark_stack) [GC_MARK_STACK]: New functions.
14571 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
14572 (clear_marks): Removed.
14573 (gc_sweep): Set free conses' car, free floats' type, free
14574 symbols' function to Vdead. Use lisp_free to free buffers.
14575 (init_alloc_once): Initialize Vdead.
14576 (survives_gc_p): Return non-zero for pure objects.
14577
14578 * alloc.c: Add comments throughout the file.
14579
14580 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
14581 that unblocks alarms.
14582
14583 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
14584 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
14585 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
14586
14587 * frame.c (make_frame): Set frame initiallly to `garbaged'.
14588
14589 2000-02-17 Kenichi Handa <handa@etl.go.jp>
14590
14591 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
14592 avoid infinite error signaling. Allocate sufficient memory for
14593 eol_str in the case that eoltype is Lisp_Int.
14594
14595 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
14596
14597 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
14598 depends on the previous behavior.
14599
14600 2000-02-16 Gerd Moellmann <gerd@gnu.org>
14601
14602 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
14603
14604 2000-02-15 Gerd Moellmann <gerd@gnu.org>
14605
14606 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
14607
14608 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
14609 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
14610 write(2).
14611
14612 2000-02-15 Richard M. Stallman <rms@gnu.org>
14613
14614 * data.c (set_internal): Don't make variable buffer-local
14615 if within a let-binding for the same buffer.
14616 (let_shadows_buffer_binding_p): New function.
14617
14618 * eval.c (specbind): For buffer-local value,
14619 record the current buffer also.
14620 (unbind_to): Cope with that change.
14621
14622 2000-02-15 Gerd Moellmann <gerd@gnu.org>
14623
14624 * window.c (Fsave_window_excursion): Doc fix.
14625
14626 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
14627
14628 * syntax.c (back_comment): Make sure we only consider comment-starters
14629 of the relevant style and return -1 in case of a failure to find the
14630 beginning of the comment.
14631 (Fforward_comment): If back_comment fails, go back to the position just
14632 after the comment-end.
14633 (scan_lists): Add comment describing a very minor bug.
14634
14635 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
14636
14637 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
14638 `completion-regexp-list' in the docstring.
14639
14640 2000-02-14 Dave Love <fx@gnu.org>
14641
14642 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
14643
14644 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
14645
14646 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
14647 to Emacs' syntax. Also fix the comment about set/not-set meanings
14648 since Emacs syntax is not the value 0 any more.
14649 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
14650 since it's now part of RE_SYNTAX_EMACS.
14651
14652 2000-02-12 Dave Love <fx@gnu.org>
14653
14654 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
14655
14656 2000-02-12 Gerd Moellmann <gerd@gnu.org>
14657
14658 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
14659
14660 2000-02-12 Dave Love <fx@gnu.org>
14661
14662 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
14663
14664 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
14665 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
14666 * s/hpux.h: Don't define HAVE_VFORK.
14667
14668 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
14669
14670 * s/nextstep.h: Don't define HAVE_ALLOCA.
14671
14672 * config.in: Add vfork bits.
14673
14674 2000-02-12 Gerd Moellmann <gerd@gnu.org>
14675
14676 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
14677 unwind function to undo the effect of stopping atimers.
14678
14679 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
14680
14681 * atimer.c (stopped_atimers): New variable.
14682 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
14683 New functions.
14684
14685 * atimer.h (stop_other_atimers, run_all_atimers)
14686 (unwind_stop_other_atimers): Add function prototypes.
14687
14688 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
14689
14690 2000-02-11 Ken Raeburn <raeburn@gnu.org>
14691
14692 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
14693 library may depend on jpeg.
14694 (atimer.o): Depends on atimer.c.
14695
14696 2000-02-11 Kenichi Handa <handa@etl.go.jp>
14697
14698 * insdel.c (del_range_1): Call update_compositions.
14699 (del_range_both): Call update_compositions just once..
14700
14701 2000-02-10 Dave Love <fx@gnu.org>
14702
14703 * xfns.c (create_frame_xic): Fix initialization of automatic
14704 aggregates for pcc.
14705
14706 2000-02-09 Kenichi Handa <handa@etl.go.jp>
14707
14708 * ccl.c (CCL_MAKE_CHAR): New macro.
14709 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
14710 registers by CCL_MAKE_CHAR before calling translate_char.
14711 <CCL_TranslateCharacterConstTbl> Likewise.
14712
14713 2000-02-08 Dave Love <fx@gnu.org>
14714
14715 * lread.c (__EXTENSIONS__): Define.
14716
14717 2000-02-08 Gerd Moellmann <gerd@gnu.org>
14718
14719 * puresize.h (BASE_PURESIZE): Increase to 650000.
14720
14721 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
14722
14723 * msdos.c (XMenuActivate): Turn off the cursor after displaying
14724 the help message.
14725
14726 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
14727
14728 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
14729 md, mh, mb, mr, and me to the fake termcap entry.
14730
14731 2000-02-06 Ken Raeburn <raeburn@gnu.org>
14732
14733 * sound.c (sound_cleanup): Don't call device close routine if the
14734 function pointer is null.
14735
14736 2000-02-06 Andrew Innes <andrewi@gnu.org>
14737
14738 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
14739 around image definitions and prototypes.
14740 (gamma_correct) [WINDOWSNT]: New prototype.
14741
14742 * w32term.c (x_make_frame_visible): Replace call to
14743 input_poll_signal with poll_for_input.
14744
14745 * window.c [WINDOWSNT]: Include w32term.h.
14746
14747 * xdisp.c [WINDOWSNT]: Include w32term.h.
14748
14749 * makefile.nt: Add dependencies on w32gui.h.
14750 (OBJ1): Include atimer.obj.
14751 ($(BLD)\atimer.obj): New dependency rule.
14752
14753 * w32.c (sigmask): New function (does nothing).
14754 (sigunblock): Ditto.
14755
14756 * frame.c [WINDOWSNT]: Include w32term.h.
14757
14758 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
14759
14760 * lread.c (syms_of_lread): Fix literal newlines.
14761
14762 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
14763 the string constant limit (2048 bytes) in MSVC.
14764 (main): Ditto.
14765
14766 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
14767
14768 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
14769 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
14770 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
14771 dispatch the event.
14772
14773 2000-02-04 Dave Love <fx@gnu.org>
14774
14775 * fileio.c: Remove some unused vars.
14776 (_GNU_SOURCE): Define (for euidaccess).
14777
14778 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
14779
14780 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
14781 gcpro1, gcpro2.
14782 (read_minibuf): Deal with allow_props correctly.
14783
14784 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
14785
14786 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
14787
14788 2000-02-03 Ken Raeburn <raeburn@gnu.org>
14789
14790 * search.c (compile_pattern): If a cache entry has a nil regexp,
14791 fill in that entry instead of clobbering a previously cached
14792 string regexp.
14793
14794 2000-02-02 Ken Raeburn <raeburn@gnu.org>
14795
14796 * puresize.h (BASE_PURESIZE): Increase to 610000.
14797
14798 2000-02-02 Gerd Moellmann <gerd@gnu.org>
14799
14800 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
14801 can GC.
14802
14803 2000-02-02 Kenichi Handa <handa@etl.go.jp>
14804
14805 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
14806 instead of incrementing ic directly.
14807 <CCL_WriteExprConst> Likewise.
14808 <ccl_set_expr>: Set ic to jump_address.
14809
14810 * fileio.c (e_write): Fix the handling of
14811 CODING_FINISH_INSUFFICIENT_SRC.
14812
14813 2000-02-01 Dave Love <fx@gnu.org>
14814
14815 * editfns.c (Fpropertize): Doc fix.
14816
14817 * process.c (Fstart_process): Doc fix.
14818
14819 * eval.c: Fix various doc strings not to duplicate information
14820 from help-manyarg-func-alist.
14821
14822 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
14823
14824 * doc.c (Vhelp_manyarg_func_alist): New variable.
14825 (Fdocumentation): Use it.
14826 (syms_of_doc): Define it.
14827
14828 2000-01-31 Gerd Moellmann <gerd@gnu.org>
14829
14830 * xterm.c (xim_open_dpy): Remove unused local variable.
14831
14832 * emacs.c (USAGE): Use term `display options' instead of `X options'.
14833
14834 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
14835 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
14836
14837 * fns.c (sweep_weak_table): New function.
14838 (sweep_weak_hash_tables): Use it. Keep on marking until there
14839 is no more change.
14840
14841 2000-01-30 Gerd Moellmann <gerd@gnu.org>
14842
14843 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
14844 that XTread_socket does not crash by trying to call XNoOp on a
14845 closed display.
14846
14847 2000-01-30 Jason Rumney <jasonr@gnu.org>
14848
14849 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
14850 Change selected_frame to SELECTED_FRAME ().
14851 (w32_console_mouse_position): Remove #ifndef MULE from around
14852 `insist' parameter.
14853
14854 * makefile.nt: Remove dosfns.obj.
14855
14856 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
14857
14858 * w32fns.c (w32_defined_color): Check for valid frame before
14859 applying gamma correction. Eliminate dependency on frame elsewhere.
14860 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
14861 (w32_to_x_font): Use resx and resy not height_in and width_in.
14862 (x_to_w32_font): Doc fix.
14863 (xlfd_strip_height): New function to strip and return font height.
14864 (w32_font_match): Compare height separately from rest of xlfd
14865 spec, using xlfd_strip_height.
14866
14867 * w32term.c (w32_term_init): Swap resx and height_in, resy and
14868 width_in. Use w32_defined_color in place of defined_color.
14869
14870 * w32faces.c: Merge more of DOS and X specifics in preparation for
14871 merge with xfaces.c.
14872 (defined_color): Remove FIXME comment.
14873 (tty_color_name): Provide w32-specific function.
14874 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
14875
14876 * w32console.c (turn_on_face, turn_off_face): Removed.
14877 (w32_face_attributes): New function.
14878 (Global_variables): Reduce scope where possible.
14879 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
14880 fill attribute.
14881 (hl_mode): Don't modify text attributes.
14882 (write_glyphs): Don't do anything if len <= 0. Use
14883 w32_face_attributes to get attributes for drawing. Write
14884 terminating codes using char_attr_normal.
14885 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
14886 (update_begin, update_end): Likewise.
14887 (vga_stdcolor_name): New function.
14888 (initialize_w32_display): Remove char_attr_reverse and char_attr.
14889 (Fset_screen_color): Remove char_attr_reverse.
14890
14891 2000-01-29 Gerd Moellmann <gerd@gnu.org>
14892
14893 * xfns.c (xic_set_preeditarea): Take window parameter and
14894 window-relative pixel-positions.
14895
14896 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
14897 is its frame's selected window.
14898 (xim_instantiate_callback): Likewise.
14899
14900 * xfns.c (x_create_im): Removed.
14901 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
14902 (supported_xim_styles): Renamed from supported_styles.
14903 (best_xim_style): Renamed from best_style.
14904 (create_frame_xic): Renamed from xic_create_frame.
14905 (free_frame_xic): Renamed from xic_destroy_frame.
14906
14907 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
14908
14909 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
14910 our frames, call XFilterEvent with 2nd parameter `None'.
14911 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
14912 returning XBufferOverflow.
14913 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
14914 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
14915 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
14916 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
14917 (xim_initialize, xim_close)
14918 [HAVE_X_I18N && HAVE_X11R6]: New functions.
14919 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
14920 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
14921 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
14922
14923 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
14924 and `xim_styles'.
14925 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
14926 `xic_style' and `xic_xfs'.
14927 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
14928 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
14929 (FRAME_XIM): Removed.
14930
14931 * xfns.c (supported_styles): New variable.
14932 (DEFAULT_STYLE, DEFAULT_FONT): New macros
14933 (xic_create_xfontset, best_style, xic_create_frame)
14934 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
14935 (xic_set_xfontset): New functions.
14936
14937 2000-01-28 Dave Love <fx@gnu.org>
14938
14939 * s/irix6-5.h: Revert last change after change to irix5-0.h.
14940
14941 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
14942
14943 2000-01-28 Gerd Moellmann <gerd@gnu.org>
14944
14945 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
14946 for *scratch* if it already existed.
14947
14948 * emacs.c (USAGE): New macro.
14949 (main): Use it to display usage information.
14950
14951 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
14952
14953 Support for the menu-help feature:
14954
14955 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
14956
14957 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
14958 part of the line to the termscript file.
14959 (IT_clear_to_end): Clear the entire line, not just its beginning.
14960 (menu_help_message, prev_menu_help_message): New variables.
14961 (IT_menu_make_room): Make room for the help_text member.
14962 (IT_menu_display): New argument disp_help; all callers changed.
14963 If disp_help is non-zero, store the help text of the active menu
14964 item in menu_help_message.
14965 (XMenuAddPane): Initialize the help_text member to NULL.
14966 (XMenuAddSelection): New argument help_text. Store it in the
14967 XMenu structure.
14968 (XMenuActivate): New argument help_callback. If the value of
14969 menu_help_message has changed since the last time, display the
14970 menu help message text while waiting for the mouse to move. Clear
14971 the echo area before exiting.
14972 (XMenuDestroy): Free the help_text member.
14973
14974 2000-01-27 Gerd Moellmann <gerd@gnu.org>
14975
14976 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
14977 XMenuAddSelection. Pass help callback to XMenuActivate.
14978 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
14979
14980 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
14981
14982 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
14983 and EMACS_SET_USECS.
14984
14985 2000-01-26 Dave Love <fx@gnu.org>
14986
14987 * editfns.c (Fchar_after, Fchar_before): Doc fix.
14988
14989 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
14990 an error may be signalled.
14991
14992 2000-01-26 Gerd Moellmann <gerd@gnu.org>
14993
14994 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
14995 LD_SWITCH_SYSTEM inherited from irix5-0.h.
14996
14997 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
14998
14999 2000-01-25 Gerd Moellmann <gerd@gnu.org>
15000
15001 * charset.c (Fstring): If there is a multibyte char among
15002 the args, always return a multibyte string.
15003
15004 2000-01-25 Gerd Moellmann <gerd@gnu.org>
15005
15006 * sysdep.c (sys_select): Turn atimers off and on instead of
15007 recording and restoring old alarm handler
15008
15009 * process.c (toplevel): Include atimer.h.
15010 (create_process_1): Rewritten.
15011 (create_process): Use atimers instead of alarm.
15012 (wait_reading_process_input) [hpux]: Turn atimers off instead
15013 of turning off SIGALRM.
15014 (wait_reading_process_input): Turn off atimers instead off
15015 calling stop_polling.
15016
15017 * emacs.c (main): Call init_atimer.
15018
15019 * keyboard.c (toplevel): Include systime.h and atimer.h.
15020 (polling_for_input): Removed because unused.
15021 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
15022 (poll_timer): New variable.
15023 (poll_for_input, poll_for_input_1): New functions.
15024 (start_polling, stop_polling): Rewritten.
15025
15026 * keyboard.h (polling_for_input): Removed.
15027
15028 * atimer.h, atimer.c: New files.
15029
15030 * Makefile.in (obj): Add atimer.o.
15031 (atimer.o): New target.
15032
15033 * blockinput.h (pending_atimers): Add extern declaration.
15034 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
15035
15036 * lisp.h (popup_activated_flag): Add extern declaration.
15037
15038 * xmenu.c (popup_activated_flag): Make externally visible.
15039 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
15040 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
15041
15042 * xterm.c (toplevel): Include atimer.h.
15043 (toolkit_scroll_bar_interaction): New variable.
15044 (Fxt_process_timeouts): Removed.
15045 (x_process_timeouts): New function.
15046 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
15047 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
15048 (x_make_frame_visible): Call poll_for_input_1 instead of
15049 input_poll_signal. Don't call alarm.
15050 (x_initialize): Install timer calling x_process_timeouts.
15051
15052 2000-01-24 Dave Love <fx@gnu.org>
15053
15054 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
15055 Don't use -cckr -- apparently not now necessary.
15056
15057 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
15058
15059 * msdos.c (IT_menu_display): Truncate long menu lines at the right
15060 screen boundary.
15061
15062 2000-01-23 Jason Rumney <jasonr@gnu.org>
15063
15064 * w32fns.c (w32_defined_color): Apply gamma correction before
15065 trying to map to the palette.
15066 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
15067 to w32_clear_rect.
15068
15069 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
15070 here. Callers changed to always pass real device context.
15071 (w32_draw_bitmap): Likewise.
15072 (w32_get_glyph_overhangs): Likewise.
15073 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
15074 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
15075 pfnSetScrollInfo and SetScrollRange.
15076 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
15077 back into MULE characters after decoding them.
15078 (x_get_glyph_face_and_encoding): Likewise.
15079 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
15080 GetCharABCWidthsW fails, since this is defined on Windows 9x.
15081 (x_produce_glyphs): Calculate per char metrics for a character
15082 that we know exists in default font when font_not_found_p is true.
15083
15084 2000-01-22 Jason Rumney <jasonr@gnu.org>
15085
15086 * makefile.nt (intervals.obj, composite.obj): New modules.
15087 (composite.h): Added as dependency where appropriate.
15088
15089 * w32gui.h (XGCValue): New struct for emulating X GCs.
15090
15091 * w32term.h (XCharStruct): New struct for emulating X.
15092
15093 * w32console.c (turn_on_face, turn_off_face): New functions.
15094 (change_line_highlight): New prototype for new redisplay.
15095 (write_glyphs): Support multibyte text. Support faces.
15096
15097 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
15098
15099 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
15100 throughout. struct frame * in place of FRAME_PTR.
15101 Skeleton support for images, toolbars, tooltips from xfns.c.
15102 (Fx_create_frame): Use system default for default scroll bar width.
15103 (w32_get_arg): Renamed from x_get_arg.
15104 (Fx_file_dialog): New function.
15105 (w32_list_fonts): Check cache before asking system.
15106 (Vw32_enable_synthesized_fonts): New variable.
15107 (Vw32_enable_italics): Obsolete, removed.
15108
15109 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
15110 Use SELECTED_FRAME macro.
15111
15112 * w32menu.c: Add skeleton support for help strings on menus.
15113 (add_menu_item): Native checkbox and radio support added, but not
15114 yet enabled due to bugs.
15115 (push_menu_item): Add parameters type, selection and help.
15116 Callers updated.
15117 Formatting changes to reduce unnecessary diffs with xmenu.c.
15118
15119 * w32select.c (Fw32_set_clipboard_data): Update call to
15120 find_charset_in_str.
15121
15122 * w32term.c: Complete rewrite for new redisplay based on new
15123 xterm.c with necessary sections merged back in from old w32term.c.
15124
15125 2000-01-21 Richard M. Stallman <rms@gnu.org>
15126
15127 * data.c (set_internal): Further fix in same criterion.
15128
15129 2000-01-20 Richard M. Stallman <rms@gnu.org>
15130
15131 * data.c (set_internal): Fix the criteria for whether
15132 to swap out the old cached binding.
15133
15134 2000-01-19 Dave Love <fx@gnu.org>
15135
15136 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
15137
15138 2000-01-18 Kenichi Handa <handa@etl.go.jp>
15139
15140 * regex.c (re_compile_fastmap): While checking a range table for
15141 `charset', skip flag bits for a character class correctly.
15142
15143 2000-01-17 Gerd Moellmann <gerd@gnu.org>
15144
15145 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
15146
15147 * xfns.c (x_window): Call lw_create_widget with new parameter list.
15148
15149 * widget.c (EmacsFrameSetCharSize): Change size of children first
15150 because of problems with main window geometry management under Lesstif.
15151
15152 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
15153 MENU_ITEMS_ITEM_.*.
15154 (MENU_ITEMS_ITEM_HELP): New enumerator.
15155 (push_menu_item): Add parameter HELP. Record help in menu_items.
15156 (single_menu_item, single_submenu, list_of_items): Call
15157 push_menu_item with new parameter.
15158 (single_submenu): Set help string in widget value.
15159 (menu_highlight_callback): New function.
15160 (set_frame_menubar): Call lw_create_widget with new
15161 parameter list.
15162 (xmenu_show, xdialog_show): Ditto.
15163
15164 2000-01-13 Gerd Moellmann <gerd@gnu.org>
15165
15166 * sound.c (Fplay_sound): Improve doc string.
15167
15168 2000-01-11 Richard M. Stallman <rms@gnu.org>
15169
15170 * lisp.h (set_internal): Enter the new arg.
15171
15172 * eval.c (specbind): Record buffer-local variables specially,
15173 indicating which buffer's binding was saved.
15174 (unbind_to): Restore buffer-local variables specially
15175 in the proper buffer.
15176
15177 * data.c (set_internal): New arg BUF.
15178
15179 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
15180 * data.c (Fset): Pass new arg to set_internal.
15181 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
15182
15183 2000-01-11 Gerd Moellmann <gerd@gnu.org>
15184
15185 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
15186
15187 2000-01-11 Richard M. Stallman <rms@gnu.org>
15188
15189 * minibuf.c (Ftry_completion): Doc fix.
15190
15191 2000-01-11 Gerd Moellmann <gerd@gnu.org>
15192
15193 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
15194 vector, too.
15195
15196 2000-01-11 Andreas Schwab <schwab@suse.de>
15197
15198 * coding.c (code_convert_region): Initialize total_skip.
15199
15200 2000-01-08 Dave Love <fx@gnu.org>
15201
15202 * eval.c (Fuser_variable_p): Check customizability too.
15203
15204 2000-01-07 Gerd Moellmann <gerd@gnu.org>
15205
15206 * minibuf.c (Fcompleting_read): Doc fix.
15207
15208 2000-01-05 Gerd Moellmann <gerd@gnu.org>
15209
15210 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
15211 -L /usr/local/lib.
15212
15213 * xfns.c (x_create_im): New function to set IM and IC of a frame.
15214 Check that input style is supported before trying to create an
15215 IC for it.
15216 (x_window): Call x_create_im.
15217
15218 2000-01-04 Gerd Moellmann <gerd@gnu.org>
15219
15220 * xfns.c (current_gif_memory_src): New variable.
15221 (gif_load): Record the address of the current memory source
15222 in current_gif_memory_src.
15223 (gif_read_from_memory): Use current_gif_memory_src.
15224
15225 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
15226 macros statement form.
15227
15228 * sound.c (struct sound): Renamed from struct sound_file.
15229 (struct sound): Add members `data' and `header_size'.
15230 (enum sound_attr): Add SOUND_DATA.
15231 (current_sound, current_sound_device): Variables renamed from
15232 sound_file and sound_device.
15233 (parse_sound): Parse :data.
15234 (parse_sound): Handle sound data in strings.
15235 (find_sound_type): Function renamed from find_sound_file_type.
15236 (wav_init, au_init): Fail if sound's header_size is smaller than
15237 needed header size.
15238 (wav_play, au_play): Play sounds from string data.
15239
15240 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
15241
15242 * lisp.h: Add prototype for allocate_string_data.
15243
15244 * alloc.c (Fgarbage_collect): Return number of live and free strings.
15245
15246 * alloc.c (mark_buffer): Remove code in #if 0.
15247 (gc_sweep): Ditto.
15248 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
15249 (strings_consed): New variable.
15250 (allocate_string): Set it.
15251 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
15252 (Fmemory_use_counts): Return strings_consed. Use Flist.
15253
15254 * alloc.c: General cleanup in comments etc. Remove conditional
15255 compilation for `standalone'.
15256
15257 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
15258
15259 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
15260 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
15261 (DONT_COPY_FLAG): Removed.
15262 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
15263 (struct sdata, struct sblock): New
15264 (struct string_block): Rewritten.
15265 (STRINGS_IN_STRING_BLOCK): New macro.
15266 (oldest_sblock, current_sblock, total_strings, total_free_strings)
15267 (large_sblocks, string_blocks, string_free_list): New variables.
15268 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
15269 (init_strings): Rewritten.
15270 (allocate_string, allocate_string_data, compact_small_strings)
15271 (free_large_strings, sweep_strings): New functions.
15272 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
15273 (struct string_block_head, current_string_block)
15274 (first_string_block, large_string_blocks, STRING_FULLSIZE)
15275 (STRING_PAD): Removed.
15276 (make_uninit_multibyte_string, make_pure_string): Rewritten.
15277 (Fgarbage_collect): Don't set mark bit in large strings.
15278 (mark_object): Mark strings differently. Mark symbol names
15279 differently.
15280 (survives_gc_p): Test marked strings differently.
15281 (gc_sweep): Sweep strings differently, unmark strings in
15282 symbol names.
15283 (compact_strings): Removed.
15284
15285 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
15286
15287 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
15288 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
15289
15290 2000-01-04 Kenichi Handa <handa@etl.go.jp>
15291
15292 * fileio.c (Finsert_file_contents): Signal error if visiting file
15293 in a non-empty buffer.
15294
15295 * term.c (encode_terminal_code): Fix the previous change.
15296
15297 2000-01-03 Gerd Moellmann <gerd@gnu.org>
15298
15299 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
15300 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
15301
15302 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
15303
15304 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15305
15306 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
15307 need to test for MSDOS frames.
15308
15309 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15310
15311 * dosfns.c (unspecified_colors): Remove.
15312 (msdos_stdcolor_idx): Use global variables unspecified_fg and
15313 unspecified_bg.
15314 (msdos_stdcolor_name): Return strings for unspecified fore- and
15315 back-ground colors.
15316
15317 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
15318 (syms_of_xfaces): Remove their staticpro's.
15319 (tty_color_name): Return Lisp strings for unspecified fore- and
15320 back-ground colors.
15321 (Finternal_set_lisp_face_attribute): Remove the special treatment
15322 for Qunspecified_{f,b}g.
15323 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
15324
15325 2000-01-03 Gerd Moellmann <gerd@gnu.org>
15326
15327 * xdisp.c (reseat_at_next_visible_line_start): Position before
15328 newline only if ending up on a newline.
15329 (next_element_from_ellipsis): Return success. Handle case of
15330 displaying no ellipsis. Fix case of ellipsis defined in display table.
15331 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
15332 returns 0.
15333
15334 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15335
15336 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
15337 (Fcolor_supported_p): Renamed from face-color-supported-p.
15338
15339 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15340
15341 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
15342 list of colors renamed to tty-defined-color-alist.
15343 (tty_color_name): Pass the frame to tty-color-by-index.
15344 (realize_tty_face): tty-color-alist is now a function which
15345 accepts the frame as argument.
15346
15347 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
15348
15349 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15350
15351 * term.c (insert_glyphs): Pass glyph, not &glyph, to
15352 encode_terminal_code.
15353
15354 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15355
15356 * dispnew.c (mode_line_string): Support termcap frames as well.
15357
15358 2000-01-01 Gerd Moellmann <gerd@gnu.org>
15359
15360 * syntax.c (Fforward_word): Undo previous change.
15361
15362 * editfns.c (Fconstrain_to_field): Don't constrain if
15363 inhibit-field-text-motion is non-nil.
15364 (Fline_beginning_position): Undo previous change.
15365 (Fline_end_position): Ditto.
15366
15367 * syntax.c (Fforward_word): Notice field boundaries only if
15368 inhibit-field-text-motion is nil.
15369
15370 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
15371
15372 * editfns.c (Vinhibit_field_text_motion): New variable.
15373 (inhibit-field-text-motion): New DEFVAR_LISP.
15374 (Fline_beginning_position, Fline_end_position): Notice field
15375 boundaries only if inhibit-field-text-motion is nil.
15376
15377 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
15378 All calls adjusted.
15379 (x_build_heuristic_mask): Likewise.
15380 (xbm_load_image_from_file): Change error output.
15381 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
15382 (gif_load, gs_load, x_kill_gs_process): Ditto.
15383
15384 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
15385 color indices when accessing raster pixels.
15386 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
15387 one of :file or :data.
15388 (enum pbm_keyword_index): Add PBM_DATA.
15389 (pbm_format): Add :data.
15390 (pbm_image_p): Allow either :file or :data.
15391 (pbm_read_file): New function.
15392 (pbm_scan_number): Rewritten to read from string.
15393 (pbm_load): Support :data.
15394
15395 See ChangeLog.8 for earlier changes.
15396
15397 ;; Local Variables:
15398 ;; coding: iso-2022-7bit
15399 ;; End:
15400
15401 Copyright (C) 2001 Free Software Foundation, Inc.
15402 Copying and distribution of this file, with or without modification,
15403 are permitted provided the copyright notice and this notice are preserved.