2002-01-09 Michael Kifer <kifer@cs.stonybrook.edu>
[bpt/emacs.git] / src / ChangeLog
CommitLineData
a474d59c
RS
12002-01-08 Richard M. Stallman <rms@gnu.org>
2
3 * window.c (delete_window): Rewrite the code for changing the
4 selected window to handle the case where WINDOW is not a leaf.
5
fbb70ad9
EZ
62002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
7
8 * process.c (send_process): Set src_multibyte to 1 after the call
9 top setup_coding_system, not before the call.
10
2d10309f
JR
112002-01-07 Jason Rumney <jasonr@gnu.org>
12
13 * xmenu.c (set_frame_menubar, xmenu_show):
14 (xdialog_show): Initialize wv->help to Qnil.
15
16 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
17 (w32_dialog_show): Initialize wv->help to Qnil.
18
7f2cddf3
JR
192002-01-06 Jason Rumney <jasonr@gnu.org>
20
0b1e6b54
JR
21 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
22
7f2cddf3
JR
23 * w32menu.c (w32_menu_display_help): Revert last change.
24
25 * xmenu.c (menu_highlight_callback): Revert last change.
26
e17144de
AS
272002-01-06 Andreas Schwab <schwab@suse.de>
28
29 * insdel.c (make_gap_larger): Make sure buffer size does not
30 overflow range of int.
31
6637c996
JR
322002-01-05 Jason Rumney <jasonr@gnu.org>
33
44368f8f
JR
34 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
35 OVERLAPS_P.
36
f884b6f4
JR
37 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
38
6637c996
JR
39 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
40 to the left or to the right of the pointer, put it against
41 the left screen edge.
42 (x_frame_parms): Add missing braces around initializer.
43
44 * w32term.c (x_setup_relief_colors): Don't compute an image's
45 background color if it doesn't have a Pixmap.
46 (notice_overwritten_cursor): Don't depend on
47 output_cursor and updated_area. Compare pixel coordinates with
48 window's cursor pixel coordinates.
49 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face): Call
50 notice_overwritten_cursor with new arg list.
51 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
52 unconditionally.
53 (x_draw_image_relief): Use predefined macro instead of
54 constant when the value of `tool_bar_button_relief' is negative.
55
56 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
57
453c5510
RS
582002-01-04 Richard M. Stallman <rms@gnu.org>
59
60 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
61
d1d070e3
RS
622002-01-03 Richard M. Stallman <rms@gnu.org>
63
64 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
65 (Fkey_binding): Try the `keymap' property map first.
66 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
67 minor mode bindings.
68
9ec1bdb6
KS
692002-01-03 Kim F. Storm <storm@cua.dk>
70
71 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
72
308dd672
RS
732002-01-02 Richard M. Stallman <rms@gnu.org>
74
edde72f6
RS
75 * keyboard.c (read_key_sequence): Handle the keymap property
76 before minor mode maps.
77
308dd672
RS
78 * editfns.c (Fformat): Update thissize from field_width
79 based on the actual width, in the string case.
80
3c1e6b46
PJ
812002-01-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
82
03950b5b
PJ
83 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
84 when used as truth value to prevent gcc warnings.
85
3c1e6b46
PJ
86 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
87 * w32proc.c: Include <config.h>.
88
c1e11810
AS
892002-01-01 Andreas Schwab <schwab@suse.de>
90
91 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
92 not EMACS_INT, to make them compatible with DEFVAR_INT.
93 * lisp.h (max_specpdl_size): Adjust declaration.
94
1996baee
RS
952002-01-01 Richard M. Stallman <rms@gnu.org>
96
97 * print.c (print_object): Test print_escape_nonascii only for
98 unibyte strings.
99 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
100 when outputting to a multibyte buffer.
101
0065bb74
RS
1022001-12-29 Richard M. Stallman <rms@gnu.org>
103
104 * print.c (print_object): In multibyte string, use hex escapes.
105 Use octal only for unibyte strings.
106 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
107
108 * lread.c (read_escape): New arg BYTEREP for reporting whether
109 escape forces unibyte or multibyte.
110 (read1): When reading a string, take note of that info.
111
b5cb6072
KR
1122001-12-29 Ken Raeburn <raeburn@gnu.org>
113
114 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
115 comparison to test lisp value returned by Fget.
116
15fff01d
RS
1172001-12-29 Richard M. Stallman <rms@gnu.org>
118
0065bb74
RS
119 * lisp.h (max_specpdl_size): Add declaration.
120
0d8466cc
RS
121 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
122
15fff01d
RS
123 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
124 Handle modifier bits. Correct typo in error message.
125
2fae9111
RS
1262001-12-28 Richard M. Stallman <rms@gnu.org>
127
2d6c1fc0
RS
128 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
129 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
130 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
131 Update calls to Fdefine_abbrev.
132 (write_abbrev): Update for changed data format.
133 Don't list "system" abbrevs.
134 (Fexpand_abbrev): Update use count with new data format.
135 (describe_abbrev): Update for changed data format.
136 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
137
07025a55
RS
138 * config.in (HAVE_MBSINIT): Add #undef.
139
140 * strftime.c (mbsinit): Define as no-op if not available.
141
142 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
143 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
144
ce6eef6e
RS
145 * keymap.c (Flookup_key): Error message if key has wrong data type.
146 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
ade19cac
RS
147 (exclude_key): New variable.
148
539e92ad
GM
1492001-12-28 Gerd Moellmann <gerd@gnu.org>
150
0cb8bb48
GM
151 * xterm.c (x_setup_relief_colors): Don't compute an image's
152 background color if it doesn't have a Pixmap.
153
60626bab
GM
154 * xterm.c (notice_overwritten_cursor): Don't depend on
155 output_cursor and updated_area. Compare pixel coordinates with
156 window's cursor pixel coordinates.
157 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face): Call
158 notice_overwritten_cursor with new arg list.
159 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
160 unconditionally.
0cb8bb48 161
539e92ad
GM
162 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
163 height of the cursor line to the amount to scroll.
164
4e02881b
RS
1652001-12-27 Richard M. Stallman <rms@gnu.org>
166
167 * intervals.c (set_point_both): The position after an invisible,
168 intangible character is not an acceptable stopping point.
169
1ab964d7
KR
1702001-12-27 Ken Raeburn <raeburn@gnu.org>
171
172 * window.c (enlarge_window): In new preserve_before code, convert
173 CURBEG from lisp object to integer before doing arithmetic.
174
749f499f
RS
1752001-12-27 Richard M. Stallman <rms@gnu.org>
176
177 * bytecode.c (Fbyte_code): Undo previous change.
178
b5d9aaba
KS
1792001-12-26 Kim F. Storm <storm@cua.dk>
180
181 * keyboard.c (record_char): Ignore duplicate help-echo events only
182 separated by mouse-movement. When tracking mouse, only record
183 first and last mouse-movement event in same window.
184 Don't record mouse-movement events in keyboard macros.
185
d0fd26dd
RS
1862001-12-25 Richard M. Stallman <rms@gnu.org>
187
b4c45162
RS
188 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
189 (Fenlarge_window): New arg PRESERVE_BEFORE.
190
d0fd26dd
RS
191 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
192 instead of Fstring_as_unibyte.
193
c95eaa61
PJ
1942001-12-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
195
196 The following changes remove mocklisp support:
197
198 * mocklisp.h, mocklisp.c: Files removed.
199
200 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
201 `Qmocklisp' and `Qmocklisp_arguments'.
202 Remove prototype of syms_of_mocklisp.
203
204 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp
205 files.
206
207 * callint.c: Do not include mocklisp.h.
208 (Fcall_interactively): Do not test for mocklisp case.
209
210 * eval.c: Remove variables `Qmocklisp_arguments',
211 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of
212 ml_apply.
213 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda): Do
214 not test for mocklisp case.
215 (Fwhile): Remove unused variable `tem'.
216 (syms_of_eval): Remove variable `moclisp-arguments'.
217
218 * data.c (wrong_type_argument): Remove mocklisp case.
219
220 * doc.c (Fdocumentation): Remove mocklisp case.
221
222 * emacs.c (main): Do not call syms_of_mocklisp.
223
31877e0a
RS
2242001-12-21 Richard M. Stallman <rms@gnu.org>
225
226 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
227 to the left or to the right of the pointer, put it against
228 the left screen edge.
229
e2c3786a
EZ
2302001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
231
232 * Makefile.in (distclean): Remove .gdbinit if we are building
233 outside the source tree.
234
c513fc03
EZ
2352001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
236
bf794306
EZ
237 * w32.c (emacs_root_dir): New function.
238
239 * msdos.c (emacs_root_dir): New function.
240
241 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
242 of the current drive as the fallback for default_directory.
243
62582985
EZ
244 * dired.c (file_name_completion): Run the elements of
245 completion-ignored-extensions through ENCODE_FILE.
246
c513fc03
EZ
247 * lisp.h (scmp): Remove prototype, since it's now a static
248 function private to dired.c.
249
3509a04c
RS
2502001-12-18 Richard M. Stallman <rms@gnu.org>
251
252 * dired.c (scmp): Function moved from minibuf.c.
253 Delete multibyte handling--used only on encoded strings.
254
255 * minibuf.c (scmp): Function moved to dired.c.
256
257 * fns.c (merge): Add QUIT call.
258
1e9a6186
DL
2592001-12-18 Dave Love <fx@gnu.org>
260
261 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
262 language/georgian.el.
263
e4e34e31
EZ
2642001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
265
266 * Makefile.in (lisp, shortlisp): Synchronize with changes to
267 lisp/Makefile.in:DONTCOMPILE.
268
4521d1fc
PJ
2692001-12-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
270
7c75be36
PJ
271 * xdisp.c (window_box_height): Do not return negative values.
272 From Gerd Moellmann <gerd@gnu.org>.
273
4521d1fc
PJ
274 * keyboard.c (head_table): Add missing braces around initializer.
275
276 * term.c (keys): Likewise.
277
278 * xfns.c (x_frame_parms, visual_classes): Likewise.
279
93dec019
SS
2802001-12-17 Sam Steingold <sds@gnu.org>
281
282 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
283 patch (COMPOSING_P, not COMPOSING).
284
905cc05a
RS
2852001-12-17 Richard M. Stallman <rms@gnu.org>
286
2ed06289
RS
287 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
288
0e79d667
RS
289 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
290 before calling decode_coding.
291
292 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
293
294 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
905cc05a
RS
295 instead of only for COMPOSITION_DISABLED.
296
82a7ab23
RS
2972001-12-16 Richard M. Stallman <rms@gnu.org>
298
d75bec6a
RS
299 * alloc.c (pure_alloc): After overflow, allocate just a small block.
300
52dcb476
RS
301 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
302
82a7ab23
RS
303 * buffer.h (struct buffer): New field `display_error_modiff'.
304 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
305
306 * window.c (Frecenter): Clear display_error_modiff field.
307
308 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
309 Call redisplay_window, but not if display_error_modiff field says no.
310 (redisplay_window_error): New function.
311 (displayed_buffer): New variable.
312 (redisplay_internal, redisplay_windows): Call the new functions
313 instead of redisplay_window directly.
314
4d0fa4f3
RS
3152001-12-15 Richard M. Stallman <rms@gnu.org>
316
317 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
318
493faf20
AI
3192001-12-14 Andrew Innes <andrewi@gnu.org>
320
325111e9
AI
321 * makefile.w32-in (EMACSLOADPATH): Define.
322 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
323 (bootstrap-temacs): Remove dependency on bootstrap-clean.
493faf20 324
4971e491
EZ
3252001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
326
397b3b50 327 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
4971e491
EZ
328 parameter have a numeric value all the time.
329
330 * w32fns.c (x_report_frame_params): Likewise.
331
d911a0fa
RS
3322001-12-12 Richard M. Stallman <rms@gnu.org>
333
334 * fileio.c (Fwrite_region): Doc fix.
335
336 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
337 (redisplay_internal): Call clear_image_cache only for window terminals.
338
201c831a
GM
3392001-12-12 Gerd Moellmann <gerd@gnu.org>
340
341 * xdisp.c (move_it_vertically_backward): Change heuristic
342 for the case that we didn't move far enough initially.
343
344 * window.c (Frecenter): Simplify computation in the case of window
345 system frames and ARG < 0; use window_box_height.
346
34e39c95
RS
3472001-12-11 Richard M. Stallman <rms@gnu.org>
348
349 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
350 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
351
d77fbc16
AI
3522001-12-11 Andrew Innes <andrewi@gnu.org>
353
354 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
355 arg is negative.
356
61e3b944
RS
3572001-12-11 Richard M. Stallman <rms@gnu.org>
358
359 * m/hp800.h: Split the __hpux conditional into the parts
360 that are right for GNU/Linux too and the parts that are not.
361 Use the former if GNU_LINUX.
362 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
363
364 * s/gnu-linux.h (GNU_LINUX): Defined.
365
70da46c3
PJ
3662001-12-11 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
367
368 * macros.c, msdos.c, w16select.c: Change doc-string comments to
369 `new style' [w/`doc:' keyword].
370
8af01033
JR
3712001-12-10 Jason Rumney <jasonr@gnu.org>
372
373 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
374 before using.
375
7363986a
PJ
3762001-12-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
377
378 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
379 keyword].
380
d9e6c4b1
EZ
3812001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
382
d20fc48a
EZ
383 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
384
d9e6c4b1
EZ
385 * s/hpux10.h (srand48): Don't undefine.
386
f1a85b89
JR
3872001-12-09 Jason Rumney <jasonr@gnu.org>
388
389 * w32menu.c (_widget_value): Make `help' field a Lisp_Object. Add
390 comment to explain where the struct came from.
391 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
392 (add_menu_item): Process pop-up menus first to avoid memory leak.
393 (add_menu_item, w32_menu_display_help): Use `help' field as
394 Lisp_Object.
395 (w32_free_submenu_strings): Only free owner-drawn strings.
396
3a62677f
PJ
3972001-12-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
398
72244db2
PJ
399 * COPYING: Moved back.
400
3a62677f
PJ
401 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
402 Add parentheses around && within ||.
403
404 * indent.c (compute_motion): Likewise.
405
406 * intervals.c (merge_properties_sticky): Likewise.
407
408 * coding.c (setup_coding_system, shrink_encoding_region)
409 (Fdecode_sjis_char): Likewise.
410
9d113d9d
AS
4112001-12-07 Andreas Schwab <schwab@suse.de>
412
b8523839
AS
413 * xdisp.c (display_mode_element): Don't read past end of string if
414 it ends with '%'.
415
9464dea4
AS
416 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
417 can hold.
418
9d113d9d
AS
419 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Renamed
420 from most_positive_fixnum and most_negative_fixnum, resp., and
421 type changed to Lisp_Object.
422 (syms_of_data): DEFVAR_LISP them.
423
70ec1377
RS
4242001-12-07 Richard M. Stallman <rms@gnu.org>
425
426 * callproc.c (init_callproc): Set Vdata_directory based on the source
427 location whenever Emacs was run uninstalled.
428
92f7dd37
PE
4292001-12-06 Paul Eggert <eggert@twinsun.com>
430
431 * config.in (HAVE_WORKING_VFORK): New #undefs.
432 * process.c (create_process):
433 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
434 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
435 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
436 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
437 * m/intel386.h (HAVE_VFORK): Likewise.
438 * m/mips-siemens.h (HAVE_VFORK): Likewise.
439 * m/mips.h (HAVE_VFORK): Likewise.
440 * s/freebsd.h (vfork): Remove #define.
441 * s/lynxos.h (HAVE_VFORK): Remove #undef.
442 * s/usg5-4-2.h: Fix comment about vfork.
443
c93674bb
RS
4442001-12-06 Richard M. Stallman <rms@gnu.org>
445
446 * s/hpux10.h (random): Add undef.
447 (HAVE_RANDOM): Define it just once.
448
59b59892
SM
4492001-12-06 Stefan Monnier <monnier@cs.yale.edu>
450
451 * eval.c: Undo last change: the standard syntax is not wanted.
452
c6ea2775
EZ
4532001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
454
455 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
456 scroll bars of the frame before deleting the frame itself. If the
457 frame has a widget, delete the frame with XtDestroyWidget, and do
458 not call XDestroyWindow before that.
459
91175673
KS
4602001-12-06 Kim F. Storm <storm@cua.dk>
461
462 * xfns.c (x_report_frame_params): Return actual fringe widths.
463
464 * w32fns.c (x_report_frame_params): Return actual fringe widths.
465
e0fead5d
AI
4662001-12-05 Andrew Innes <andrewi@gnu.org>
467
468 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
469 excessively large.
470
471 * insdel.c (make_gap_larger): New function.
472 (make_gap_smaller): New function.
473 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call
474 make_gap_smaller if arg is negative.
475
c186cdb3
SM
4762001-12-04 Stefan Monnier <monnier@cs.yale.edu>
477
478 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
479 Pass a dummy argument when calling interrupt_signal.
480 (parse_menu_item): Mark disabled items before checking for empty def.
481 (read_char_minibuf_menu_prompt): Make safety more visible.
482 (read_key_sequence): Add a `first_unbound' variable.
483 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
484 unbound prefix as soon as we can detect it.
485
486 * doc.c (Fsnarf_documentation): Add prototype.
487 (get_doc_string): Handle negative arguments.
488 (Fdocumentation): Use AREF and ASIZE.
489 Move the calls to get_doc_string to a single place.
490 Don't confuse an interactive-spec for a docstring reference.
491 (Fdocumentation_property): Take advantage of the fact that
492 get_doc_string now ignores the sign of the docstring position.
493
494 * eval.c: Use standard syntax for usage in docstrings.
495
58cfce98
PJ
4962001-12-03 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
497
c186cdb3 498 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
58cfce98 499
62854fe2
PJ
5002001-12-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
501
502 * xterm.c (x_draw_image_relief): Use predefined macro instead of
503 constant when the value of `tool_bar_button_relief' is negative.
504
656f46bb
RS
5052001-12-02 Richard M. Stallman <rms@gnu.org>
506
507 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
508 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
509
510 * fileio.c (read_non_regular): Delete Fsignal call.
511
036e218d
SM
5122001-12-01 Stefan Monnier <monnier@cs.yale.edu>
513
514 * lisp.h (run_hook_list_with_args): Undo last change.
515
7ddb2c16
GM
5162001-12-01 Gerd Moellmann <gerd@gnu.org>
517
518 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
519
ace9b298
JR
5202001-12-01 Jason Rumney <jasonr@gnu.org>
521
90647b07
JR
522 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
523
524 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
525 [!WM_MOUSELEAVE]: Define.
526
ace9b298
JR
527 * w32menu.c (current_popup_menu, get_menu_item_info):
528 (set_menu_item_info): New vars.
529 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
530 (w32_menu_show): Set current_popup_menu.
531 (add_menu_item): Allocate new strings for owner-drawn menu items
532 and help strings.
533 Use owner-draw for disabled menu items again.
534 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
535 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
536
537 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
538 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
539 <WM_EXITMENULOOP>: Free menu strings.
540 <WM_MOUSELEAVE>: Stop tracking mouse.
541 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
542
543 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
544 and mouse face.
545
a9549909 5462001-12-01 Kim F. Storm <storm@cua.dk>
9fbc32aa
KS
547
548 The following changes add left-fringe and right-fringe
549 frame parameters to adjust fringe widths, or remove one or
550 both fringes.
036e218d 551
9fbc32aa
KS
552 * frame.h (struct frame): Remove trunc_area_pixel_width and
553 trunc_area_cols fields.
554 (Qleft_fringe, Qright_fringe): Declare.
555 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
556
557 * frame.c (Qleft_fringe, Qright_fringe): New vars.
558 (syms_of_frame): Initialize them.
559
560 * window.c (coordinates_in_window): Handle separate left and right
561 fringe widths.
562
563 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
564 and fringe_cols fields.
565 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
566 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
567 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
568 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
569 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
570 (x_compute_fringe_widths): Add prototype.
571
572 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
573 fill fringe evenly with small dashes.
574 (x_draw_fringe_bitmap): Clear background if necessary. Align and
575 clip the new ZV bitmap to avoid jitter between rows.
576 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
577 background. Don't draw fringe bitmaps if fringe width is zero.
578 (x_compute_fringe_widths): New function.
579 (x_new_font, x_set_window_size_1): Use it.
580
581 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
582 (x_set_frame_parameters): Process Process `font' parameter before other
583 parameters as fringe widths depend on it.
584 (x_set_fringe_width): New function.
585 (x_figure_window_size): Use x_compute_fringe_widths.
586 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
587 parameters.
588
589 * widget.c (set_frame_size): Use x_compute_fringe_widths.
590 (EmacsFrameSetCharSize): Ditto.
591
592 * w32term.h: Merged changes from xterm.h.
593 * w32term.c: Merged changes from xterm.c.
594 * w32fns.c: Merged changes from xfns.c.
595
0142178a
PJ
5962001-11-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
597
598 * COPYING: Removed.
599
d4824a5d
DL
6002001-11-29 Dave Love <fx@gnu.org>
601
602 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
603 extra extra slot.
604 (detect_coding_mask): Fix call of detect_coding_iso2022.
605
b1356234
PJ
6062001-11-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
607
608 * fileio.c (file-name-coding-system)
609 (default-file-name-coding-system): Doc fix (links to referenced
610 variables added).
611
3ce081f5
SM
6122001-11-28 Stefan Monnier <monnier@cs.yale.edu>
613
99e380ee
SM
614 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
615 Add dummy uses of gcproN variables.
616
3ce081f5 617 * category.c (describe_category, describe_category_1)
2ad56c09 618 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
3ce081f5
SM
619 (syms_of_category): Don't defsubr Sdescribe_categories.
620
66458f32
RS
6212001-11-28 Richard M. Stallman <rms@gnu.org>
622
623 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
624
625 * Makefile.in (lispdir): New variable, referring to build dir.
626 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
627
59a86c99
AI
6282001-11-28 Andrew Innes <andrewi@gnu.org>
629
630 * w32menu.c (w32_menu_display_help): Actually add the new argument
631 OWNER.
632
eb77a5f4
JR
6332001-11-28 Jason Rumney <jasonr@gnu.org>
634
635 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
636 menu items. From David Ponce <dponce@wanadoo.fr>.
637 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
638 conditionally.
639 (w32_menu_display_help): New argument OWNER. Rewritten to store a
640 help event in the owner frame's keyboard buffer.
641
642 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
643 (Fx_show_tip): Don't subtract last width from row width.
644
645 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
646 (w32_read_socket): Use EQ to compare frames.
647
bb313871
GM
6482001-11-28 Gerd Moellmann <gerd@gnu.org>
649
650 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
651 OVERLAPS_P.
652
55b43a63
PJ
6532001-11-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
654
6052529b
PJ
655 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
656 `gcpro3' and `gcpro4'.
657
3ce081f5
SM
658 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
659
6602001-11-28 Stefan Monnier <monnier@cs.yale.edu>
661
662 * ccl.c: Use AREF and ASIZE.
663
6642001-11-27 Stefan Monnier <monnier@cs.yale.edu>
665
666 * lisp.h (run_hook_list_with_args): Remove.
667 (LIST_END_P): Fix call to wrong_type_argument.
668 (make_fixnum_or_float): Use EMACS_INT rather than int.
55b43a63 669
111ed14e
SM
6702001-11-26 Stefan Monnier <monnier@cs.yale.edu>
671
9fabb2f5
SM
672 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
673 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
674
675 * eval.c: Use AREF and ASIZE.
676 (Ffetch_bytecode): Add the file name to the error message.
677
678 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
679 which match the end of the file-name.
680 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
681 is not a valid env var, but leave it as is instead.
682
111ed14e
SM
683 * keymap.c (access_keymap): Handle t bindings like nil bindings.
684 Make nil bindings in char-tables transparent.
685 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
686
2fa0eedf
RS
6872001-11-26 Richard M. Stallman <rms@gnu.org>
688
d1420435
RS
689 * textprop.c (set_text_properties_1): Allow START, END in either order.
690 Do nothing if range is empty.
691
2fa0eedf
RS
692 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
693
ebcbef4e
RS
694 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
695 (clean): Not here.
696
5c131048
SM
6972001-11-25 Stefan Monnier <monnier@cs.yale.edu>
698
699 * textprop.c (set_text_properties_1): Clearly mark that the
700 interval should not be empty.
701
702 * intervals.c (graft_intervals_into_buffer):
703 Don't call set_text_properties_1 on an empty interval.
704
96d276c3
RS
7052001-11-25 Richard M. Stallman <rms@gnu.org>
706
6108b49c
RS
707 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
708
96d276c3
RS
709 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
710 don't lose the data in it.
711
5eea19a4
RS
7122001-11-25 Juanma Barranquero <lektu@terra.es>
713
714 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
715
716 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
717
718 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
719
438e57dd
SM
7202001-11-25 Stefan Monnier <monnier@cs.yale.edu>
721
722 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
723
c88e5347
EZ
7242001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
725
726 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
727 Niemitalo <kon@iki.fi>.
728
59ce1461
JR
7292001-11-25 Jason Rumney <jasonr@gnu.org>
730
731 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
732
733 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
734 (Fx_show_tip): Block input during frame creation.
735 (Fx_show_tip, Fx_hide_tip): Enable.
736
8727d588
RS
7372001-11-24 Richard M. Stallman <rms@gnu.org>
738
739 * lread.c (Fload): Detect recursive load error for more than 3
740 nestings of the same file.
741 (Vrecursive_load_depth_limit): Variable deleted.
742 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
743
cc63037e
JR
7442001-11-24 Jason Rumney <jasonr@gnu.org>
745
746 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
747 mouse position if either left or top is not specified.
748
749 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
750 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
751 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
752 (my_create_tip_window): Assign tip_window.
753 (x_create_tip_frame): Use same defaults as X.
754 (compute_tip_xy): Remove unused variable. Use full screen width.
755 (Fx_show_tip): Do not double height. Call ShowWindow directly.
756
757 * w32term.c (x_after_update_window_line): Doc fix.
758 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
759 frames.
760 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
761
762 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
763 for all Windowed systems.
764
deece6f5
EZ
7652001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
766
767 * msdos.c (IT_clear_screen): If the frame's faces are not yet
768 realized, use the initial screen colors to clear the screen.
769
1b944d9c
PJ
7702001-11-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
771
28ff4293
PJ
772 * textprop.c (Fset_text_properties): Remove unused variables
773 `unchanged', `prev_changed', `s' and `len'.
774
56167cc5
PJ
775 * search.c (Freplace_match): Remove unused variable `inslen'.
776
1b944d9c
PJ
777 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
778
ca56d953
JR
7792001-11-22 Jason Rumney <jasonr@gnu.org>
780
781 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
782 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
783 (my_create_tip_window): New function.
784 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
93dec019 785 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
ca56d953 786
33399dce
JR
7872001-11-20 Jason Rumney <jasonr@gnu.org>
788
789 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
790 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
791
792 * w32fns.c (Vw32_system_coding_system): Remove.
793 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
794
9b46de40
SM
7952001-11-19 Stefan Monnier <monnier@cs.yale.edu>
796
6710ea06
SM
797 * fileio.c (Fwrite_region): Move choose_write_coding_system to
798 after build_annotations.
799
a395ef6a
SM
800 * syntax.c (describe_syntax): Add dummy arg.
801 (describe_syntax_1): Update call to describe_vector.
802
803 * category.c (describe_category): Add dummy arg.
804 (describe_category_1): Update call to describe_vector.
805
806 * keymap.c (Fdescribe_vector): Add `describer' parameter.
807 (describe_command, describe_translation): Add dummy second param.
808 (describe_map): Call elt_describer with two arguments.
809 (describe_vector_princ): Add `fun' parameter.
810 Call it instead of the hardcoded `princ'.
811 (describe_vector): Add arg `args'.
812 Pass it as a new second argument to elt_describer.
813
814 * keymap.h (describe_vector): Update prototype.
815
9b46de40
SM
816 * frame.c: Don't include keymap.h any more.
817 (keys_of_frame): Remove.
818
819 * lisp.h (keys_of_frame): Remove declaration.
820
821 * emacs.c (main): Don't call `keys_of_frame' any more.
822
aff37336
SS
8232001-11-14 Andreas Schwab <schwab@suse.de>
824
825 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
826 if defined, 0 otherwise.
9b46de40 827 (MAP_FAILED): Define if not defined and use it to test mmap failure.
aff37336
SS
828 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
829
b9937f07
RS
8302001-11-19 Richard M. Stallman <rms@gnu.org>
831
832 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
833
2cd23960
JR
8342001-11-18 Jason Rumney <jasonr@gnu.org>
835
836 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
837 (x_draw_bar_cursor): If the background color of the glyph under
838 the cursor equals the frame's cursor color, use the glyph's
839 foreground color for drawing the bar cursor.
840 (x_after_update_window_line): Clear internal border in different
841 circumstances.
842 (w32_set_vertical_scroll_bar): Check for width and height > 0.
843 (w32_draw_relief_rect): Correct relief by 1 pixel.
9b46de40
SM
844 (x_set_glyph_string_background_width):
845 Set extends_to_end_of_line_p if the row's fill_line_p is set and
2cd23960
JR
846 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
847 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
848 if cursor_in_non_selected_windows is false.
9b46de40 849 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
2cd23960
JR
850 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
851 Notice if cursor gets overwritten.
852 (notice_overwritten_cursor): Renamed from
853 note_overwritten_text_cursor. Rewritten to take glyph widths
854 into account, and to take X positions as parameters.
855 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
856 around call to x_draw_glyphs.
857 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
858 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
859 color to use for image glyph reliefs.
860 (x_draw_image_relief): Accept zero tool_bar_button_relief.
861 (glyph_rect): Remove unused variable `area'.
862
863 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
864 some items.
865 (x_set_internal_border_width): Set frame garbaged when window
866 doesn't exist yet.
867 (Fx_create_frame): Accept zero tool_bar_button_relief.
868 (x_clear_image_1, four_corners_best, image_background)
869 (image_background_transparent): New functions.
870 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
871 (gs_format): Add `:background' entry.
872 (lookup_image): Set IMG's background color if specified.
873 (pbm_load, xbm_load_image, png_load): Set IMG's background field
874 when appropriate.
875 (x_clear_image_1): Reset `background_valid' and
876 `background_transparent_valid' fields.
877 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
878 calculating it here. Set IMG's background_transparent field.
879 (enum xpm_keyword_index): Add XPM_BACKGROUND.
880 (enum png_keyword_index): Add PNG_BACKGROUND.
881 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
882 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
883 (enum gif_keyword_index): Add GIF_BACKGROUND.
884 (enum gs_keyword_index): Add GS_BACKGROUND.
885 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
886 Pre-calculate image background color where necessary.
9b46de40
SM
887 (x_create_x_image_and_pixmap, xbm_load, gs_load):
888 Use display info's n_cbits entry for screen depth.
2cd23960
JR
889 (Fx_show_tip): Remove unused variables `buffer', `top',
890 `left', `max_width' and `max_height'.
891
892 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
893
a4184c1c
GM
8942001-11-18 Gerd Moellmann <gerd@gnu.org>
895
896 * puresize.h (BASE_PURESIZE): Increase to 750000.
897
f6fa0866
PJ
8982001-11-18 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
899
900 * frame.c (Fframe_live_p): Doc fix.
901
f4ca4b00
RS
9022001-11-18 Richard M. Stallman <rms@gnu.org>
903
904 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
905 (message_dolog_marker3): New static variables hold three markers.
906 (syms_of_xdisp): Initialize and staticpro them.
907 (message_dolog): Use message_dolog_marker1..3 instead of
908 allocating markers each time. Unchain them when done.
909
f4e25f94
RS
9102001-11-17 Richard M. Stallman <rms@gnu.org>
911
912 * doc.c (Fsnarf_documentation): Doc fix.
913
91c153e2
AS
9142001-11-17 Andreas Schwab <schwab@suse.de>
915
916 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
917
65b7d3e7
RS
9182001-11-17 Richard M. Stallman <rms@gnu.org>
919
920 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
921
6b5f6311
JR
9222001-11-17 Jason Rumney <jasonr@gnu.org>
923
924 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
925
be676094
GM
9262001-11-17 Gerd Moellmann <gerd@gnu.org>
927
928 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
929 with invalid position.
930
032a857d
RS
9312001-11-16 Richard M. Stallman <rms@gnu.org>
932
933 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
934
935 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
936 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
937 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
938
939 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
940
b6270150
SM
9412001-11-16 Stefan Monnier <monnier@cs.yale.edu>
942
943 * fileio.c (build_annotations): Split off the tail.
944 (build_annotations_2): New fun. Extracted from build_annotations.
945 (Fwrite_region): Split the call to build_annotations into two
946 calls to build_annotations and build_annotations_2.
947
792e5cbd
PJ
9482001-11-16 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
949
98cbb9fa
PJ
950 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
951 clear_waiting_for_input with argument.
952
953 * xterm.h (x_update_cursor): Remove duplicated prototype.
954
b6270150 955 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
98cbb9fa 956
ea904403 957 * xterm.c (waiting_for_input): Remove unnecessary declaration.
98cbb9fa 958
ea904403 959 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
792e5cbd 960
fa336b91
SM
9612001-11-16 Stefan Monnier <monnier@cs.yale.edu>
962
963 * fileio.c (choose_write_coding_system): New fun, extracted
964 from Fwrite_region.
965 (Fwrite_region): Use it.
966
967 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
968 (funcall_lambda, run_hook_with_args): Make static and add prototype.
969 (ml_apply, find_handler_clause): Add prototype.
970
077907d4
EZ
9712001-11-16 Eli Zaretskii <eliz@gnu.org>
972
aa2af83a
EZ
973 * config.in: Add #undef HAVE_COFF_H.
974
077907d4
EZ
975 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
976 Required for ISC 4.1.
977
1756e2fb
EZ
9782001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
979
980 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
981 Andrew Wiseman <a.wiseman@btclick.com>.
982
06e8f738
KS
9832001-11-16 Kim F. Storm <storm@cua.dk>
984
985 The following changes are made to clean up the various internal
986 references to the fringes to actually use the term `fringe' for
987 them. Previously, they were called `flags areas', `bitmap areas',
988 `left/right side of windows', or implicitly as `flags' or
989 `bitmaps':
990
991 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
992 Comments fixed. Use renamed symbols.
fa336b91 993
06e8f738 994 * dispnew.c: Comment fix. Use renamed symbols.
fa336b91 995
06e8f738
KS
996 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
997 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
998 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
fa336b91 999
06e8f738 1000 * msdos.c: Comment fix.
fa336b91 1001
06e8f738 1002 * w32fns.c: Use renamed symbols.
fa336b91 1003
06e8f738
KS
1004 * w32term.c: Comment fixes. Use renamed symbols.
1005 (fringe_bitmap_type): Renamed from bitmap_type.
1006 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
1007 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
1008 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
fa336b91 1009
06e8f738
KS
1010 * w32term.h: Comment fixes. Use renamed symbols.
1011 (fringes_extra): Renamed from flags_areas_extra.
1012 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
1013 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
1014 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
1015 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
1016 (FRAME_X_LEFT_FRINGE_WIDTH):
1017 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
1018 (FRAME_X_RIGHT_FRINGE_WIDTH):
1019 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
1020
06e8f738 1021 * widget.c: Use renamed symbols.
fa336b91 1022
06e8f738
KS
1023 * window.c: Comment fixes. Use renamed symbols.
1024 (coordinates-in-window-p): Doc fix.
fa336b91 1025
06e8f738 1026 * xdisp.c: Comment fixes. Use renamed symbols.
fa336b91 1027
06e8f738 1028 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
fa336b91 1029
06e8f738 1030 * xfns.c: Use renamed symbols.
fa336b91 1031
06e8f738
KS
1032 * xterm.c: Comment fixes. Use renamed symbols.
1033 (fringe_bitmap_type): Renamed from bitmap_type.
1034 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
1035 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
1036 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
1037
1038 * xterm.h: Comment fixes. Use renamed symbols.
1039 (fringes_extra): Renamed from flags_areas_extra.
1040 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
1041 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
1042 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
1043 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
fa336b91
SM
1044 (FRAME_X_LEFT_FRINGE_WIDTH):
1045 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
1046 (FRAME_X_RIGHT_FRINGE_WIDTH):
1047 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
06e8f738 1048
9ce647f4
JR
10492001-11-15 Jason Rumney <jasonr@gnu.org>
1050
1051 * w32menu.c (add-menu-item): Make help_echo and radio buttons
1052 work for most menu items. From David Ponce
1053 <david.ponce@wanadoo.fr>.
1054
9b784ab8
GM
10552001-11-15 Gerd Moellmann <gerd@gnu.org>
1056
9f7e52b4
GM
1057 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
1058 Some x_set_* function expect to be called even if old and new
1059 value are equal.
1060
1061 * xdisp.c (build_desired_tool_bar_string): Accept zero
1062 tool_bar_button_relief.
1063
1064 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
1065
1066 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
fa336b91 1067
34e5d0af
GM
1068 * xterm.c (x_draw_bar_cursor): If the background color of the
1069 glyph under the cursor equals the frame's cursor color, use
1070 the glyph's foreground color for drawing the bar cursor.
1071
9b784ab8
GM
1072 * dispnew.c (direct_output_forward_char): Fix character/byte
1073 position comparison.
1074
89512fcd
MB
10752001-11-15 Miles Bader <miles@gnu.org>
1076
1077 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
1078 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
1079 Update arguments to find_field.
1080 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
1081 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
1082 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
1083 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
1084
7d18891d
RS
10852001-11-14 Richard M. Stallman <rms@gnu.org>
1086
d2936d21
RS
1087 * editfns.c (Fpropertize): Allow call with 1 arg.
1088
7d18891d
RS
1089 * dispextern.h (image_background, image_background_transparent):
1090 Conditionalize on HAVE_X_WINDOWS.
1091
10922001-11-13 Richard M. Stallman <rms@gnu.org>
1093
1094 * print.c (Fprin1_to_string): Doc fix.
1095
1096 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
1097
1098 * floatfns.c (Fceiling, Ffloor): Doc fixes.
1099
1100 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
1101
1102 * fileio.c (Ffile_accessible_directory_p): Doc fix.
1103
1104 * eval.c (syms_of_eval): Doc fix.
1105
1106 * coding.c (syms_of_coding): Doc fix.
1107
1108 * doc.c (Fsnarf_documentation): Doc fix.
1109
1110 * dispnew.c (syms_of_display): Doc fix.
1111
1112 * category.c (Fget_unused_category): Doc fix.
1113
1114 * buffer.c (syms_of_buffer): Doc fixes.
1115
9474c847
EZ
11162001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
1117
1118 * print.c (prin1, print): Doc fix.
1119
e3059a5d
PJ
11202001-11-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1121
2b6f3c2b 1122 * fontset.h: Remove declarations of variables
e3059a5d
PJ
1123 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
1124
1125 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
1126 `Vclip_large_size_font'.
1127
b3700ae7
JR
11282001-11-13 Jason Rumney <jasonr@gnu.org>
1129
1130 * w32fns.c: Doc fix.
1131
eae936e2
PJ
11322001-11-13 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1133
4bb962be
PJ
1134 * xfaces.c (Fface_attributes_as_vector): Doc fix.
1135
0a332240
PJ
1136 * w32fns.c (Fx_synchronize): Reindent.
1137
ddb67bdc
PJ
1138 * fns.c: Doc fix.
1139
3467c402
PJ
1140 * emacs.c: Doc fix.
1141
1142 * coding.c: Doc fix.
1143
6e1b91d7
PJ
1144 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
1145 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
1146 `new style' [w/`doc:' keyword].
1147
f6e34773
PJ
1148 * xmenu.c (x-popup-menu): Reindent.
1149 (x-popup-dialog): Likewise.
1150
fa336b91 1151 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent.
c71f3632 1152
c2552f79
PJ
1153 * xdisp.c (Fdump_tool_bar_row): Reindent.
1154
94c7167b
PJ
1155 * minibuf.c (Fminibuffer_complete_word): Reindent.
1156 (Fminibuffer_complete_and_exit): Likewise.
fa336b91 1157 (Fminibuffer_completion_help): Likewise.
94c7167b
PJ
1158 (Fminibuffer_message): Likewise.
1159
462a5e3a
PJ
1160 * fns.c (Freverse): Reindent.
1161
b8de5714
PJ
1162 * eval.c (Fif): Reindent.
1163 (Fand): Likewise.
1164
deb8e082
PJ
1165 * editfns.c (Fuser_real_login_name): Reindent.
1166 (Finsert_buffer_substring): Likewise.
1167 (Fcompare_buffer_substrings): Likewise.
1168 (Fsubst_char_in_region): Likewise.
1169
bacf09b4
PJ
1170 * dispnew.c (Fsit_for): Reindent.
1171 (Fframe_or_buffer_changed_p): Likewise.
1172 (Finternal_show_cursor_p): Likewise.
1173 (syms_of_display): Likewise.
1174
eae936e2
PJ
1175 * alloc.c (Flist): Reindent.
1176 (Fvector): Likewise.
1177
1c1d3d69
RS
11782001-11-12 Richard M. Stallman <rms@gnu.org>
1179
1180 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
1181 LeaveNotify events. Only FocusIn and FocusOut do that now.
1182 (x_display_and_set_cursor): Do display hollow cursors in active
1183 minibuffer windows when they are not selected.
1184
b6f4c7ba
JR
11852001-11-12 Jason Rumney <jasonr@gnu.org>
1186
1187 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
1188 * w32term.c: Change doc-string comments to `new style'.
1189 [w/`doc:' keyword]. Doc fixes.
1190
1191 * w32fns.c: Don't define max.
1192 (Fx_open_connection): Only execute once.
1193
a89f435d
PJ
11942001-11-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1195
1196 * ccl.c: Change macros to use do-while block instead of if-else.
1197 Use braces to follow GNU Coding Standards.
1198
a4cd0cd7
RS
11992001-11-11 Richard M. Stallman <rms@gnu.org>
1200
eafb659a
RS
1201 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
1202
1203 * lread.c (read_escape): Use end_of_file_error for reporting eof.
1204
a4cd0cd7
RS
1205 * insdel.c (replace_range): Use adjust_markers_for_replace
1206 instead of adjust_markers_for_delete and adjust_markers_for_insert.
1207
1208 * intervals.h: Declare set_text_properties and set_text_properties_1.
1209
1210 * textprop.c (set_text_properties_1): New subroutine
1211 broken out of set_text_properties.
1212 (set_text_properties): Use set_text_properties_1.
1213
1214 * intervals.c (graft_intervals_into_buffer):
1215 Use set_text_properties_1 to clear out properties.
1216
1217 * search.c (Freplace_match): Use replace_range to insert
1218 and delete. Don't request property inheritance from
1219 surrounding text.
1220
91823618
JR
12212001-11-10 Jason Rumney <jasonr@gnu.org>
1222
1223 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
1224 vertical fonts. Allow them if face name is explicitly specified.
fa336b91 1225 Do not give up if we find a font that cannot be converted to an xlfd.
91823618 1226
86928dfb
GM
12272001-11-10 Gerd Moellmann <gerd@gnu.org>
1228
fa336b91 1229 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
86928dfb
GM
1230 instead of malloc/free.
1231
40ef1eda
PJ
12322001-11-09 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1233
ab8469eb
PJ
1234 * xfaces.c (merge_face_vectors): Use braces to follow GNU
1235 Coding Standards.
1236 (Finternal_set_lisp_face_attribute): Likewise.
1237
a78e0303
PJ
1238 * buffer.c (Fbury_buffer): Likewise.
1239
40ef1eda
PJ
1240 * indent.c (current_column_1): Remove unused variable `prev_col'.
1241
fabf4a91
PJ
1242 * coding.c (encode_coding): Use precomputed value of `src'.
1243 (encode_coding): Remove unused variable `src_end'.
1244 (code_convert_region): Remove unused variables `count'.
1245
0c99b139
JR
12462001-11-07 Jason Rumney <jasonr@gnu.org>
1247
1248 * w32term.c (x_display_and_set_cursor): Do not move system caret
1249 if cursor_glyph is NULL.
1250
830ddd77
PJ
12512001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1252
1253 * keymap.c (access_keymap): Fix compilation error.
1254
55c6d645
MB
12552001-11-07 Miles Bader <miles@gnu.org>
1256
1257 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
1258
5de38842
PJ
12592001-11-07 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1260
7a4564a4
PJ
1261 * intervals.c (graft_intervals_into_buffer):
1262 Remove #ifdef'd-out code.
1263 (graft_intervals_into_buffer): Remove unused variable `middle'.
1264
5de38842
PJ
1265 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
1266 code (eval-current-buffer).
1267 Change doc-string comments to `new style' [w/`doc:' keyword].
1268
4fa23df5
RS
12692001-11-06 Richard M. Stallman <rms@gnu.org>
1270
1271 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
1272
7a6a97d7
SM
12732001-11-06 Stefan Monnier <monnier@cs.yale.edu>
1274
c191d13c
SM
1275 * lread.c (read1): Fix behavior with nested backquoting.
1276
7a6a97d7
SM
1277 * keyboard.c (make_lispy_event): Check integerness and fix
1278 Lisp_Object/int mixup.
1279
44dc78e0
PJ
12802001-11-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1281
1282 * fns.c (copy_hash_table): Remove unused variable `v'.
1283
17893c65
PJ
1284 * fontset.c (fontset_font_pattern): Remove unused variable
1285 `family_registry'.
1286
4d994a79
PJ
1287 * indent.c (current_column_1): Remove unused variable `prev_col'.
1288
d5360cc7
RS
12892001-11-05 Richard M. Stallman <rms@gnu.org>
1290
1291 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
1292
1293 * buffer.c (Fkill_buffer): Don't delete auto save file
1294 if buffer is modified.
1295
96238a5a
AI
12962001-11-05 Andrew Innes <andrewi@gnu.org>
1297
1298 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
1299 CHECK_NUMBER_CDR.
1300
d9d54213
RS
13012001-11-05 Richard M. Stallman <rms@gnu.org>
1302
1303 * unexelf.c (unexec): Minor changes; clean up comments.
1304
b116830b
SS
13052001-11-05 Sam Steingold <sds@gnu.org>
1306
1307 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
1308
3297e2a1
AS
13092001-11-05 Andreas Schwab <schwab@suse.de>
1310
1311 * sound.c (sound_perror): Save errno from being clobbered.
1312
9212319f 13132001-11-05 Dale Hagglund <rdh@yottayotta.com>
6fb8339c
EZ
1314
1315 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
1316 the program image directly.
1317
7dd73b78
PJ
13182001-11-05 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1319
1320 * buffer.h (Fbuffer_local_value): Add prototype.
1321
982f6c7e
RS
13222001-11-04 Richard M. Stallman <rms@gnu.org>
1323
d31053f9
RS
1324 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
1325 and CHECK_BUFFER.
1326
1327 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
1328 (record_char): Likewise.
1329
1330 * keyboard.c (make_lispy_event): Don't insist a drag event must
1331 move to a different buffer position. Instead, check for moving at
1332 least double_click_fuzz.
1333
1334 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
1335
1336 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
1337
982f6c7e
RS
1338 * indent.c (current_column_1, Fmove_to_column): Separate the code
1339 for display-table glyphs from the code buffer text, to fix
1340 bugs in the former.
1341
830047fd
RS
13422001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
1343
1344 * buffer.c (Fbuffer_local_value): New function.
c191d13c 1345 (syms_of_buffer): Defsubr it.
b116830b 1346
830047fd
RS
1347 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
1348 value of `cursor-in-non-selected-windows'.
1349
1350 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
1351 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
1352 (syms_of_xdisp): Initialize it.
b116830b 1353
2df5238c
PJ
13542001-11-04 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1355
4e397688
PJ
1356 * xfns.c (Fx_create_frame): Doc fix.
1357
48b0f3ae
PJ
1358 * coding.c: Change doc-string comments to `new style' [w/`doc:'
1359 keyword].
1360
2df5238c
PJ
1361 * eval.c (top_level_value, top_level_set): Remove commented and
1362 #ifdef'd-out code.
1363 (Fdefvar): Fix usage in doc-string.
1364
3ecaf7e5
RS
13652001-11-03 Richard M. Stallman <rms@gnu.org>
1366
1367 * xfns.c: Include unistd.h, if it exists.
1368
1369 * editfns.c: Move the include of ctype.h after unistd.h.
1370
1371 * gmalloc.c: Test BROKEN_PROTOTYPES.
1372
8db2e33b
KR
13732001-11-03 Ken Raeburn <raeburn@gnu.org>
1374
1375 * lisp.h (CHECK_STRING_CAR): New macro.
1376 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
1377 treating XCAR and XCDR as lvalues.
1378 (openp): Use CHECK_STRING_CAR.
1379 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
1380
aed29b97
EZ
13812001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
1382
1383 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
13ccc79a 1384 (SIGMASKTYPE): Define.
aed29b97
EZ
1385
1386 * syssignal.h (sigunblock): Don't define if already defined.
1387
6cb16f95
PJ
13882001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1389
16b45be4
EZ
1390 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
1391 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
1b1acc13
PJ
1392 Fix typos in comments.
1393
020f9b38
PJ
1394 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
1395 and #ifdef'd-out code.
1396 Fix and reindent comments.
1397
c191d13c 1398 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
020f9b38 1399
6cb16f95
PJ
1400 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
1401 argument `i' in macros.
1402
1403 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
1404 `i' in macros.
1405
16b45be4
EZ
1406 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
1407 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
1408 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
1409 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
1410 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
1411 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
1412 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
1413 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
6cb16f95
PJ
1414 in macros.
1415
1416 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
153c2160
PJ
1417 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
1418 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
1419 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
1420 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
1421 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
1422 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
1423 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
1424 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
6cb16f95
PJ
1425 (remove unused second argument).
1426
7e9d3c2f
SM
14272001-11-02 Stefan Monnier <monnier@cs.yale.edu>
1428
1429 * syntax.c (describe_syntax): New wrapper.
1430 (Finternal_describe_syntax_value): Rename from describe_syntax.
1431 Don't insert space at front and \n at the end.
1432 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
1433
1434 * regex.c (re_wctype): Try to fix some warnings.
1435 (regcomp, regexec): Don't forget the __restrict.
1436
e6bff182
RS
14372001-11-02 Richard M. Stallman <rms@gnu.org>
1438
1439 * textprop.c (Fget_char_property): Doc fix.
1440
9ba48103
PJ
14412001-11-02 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1442
1443 * process.c (Fstart_process): Add usage to doc-string.
1444
1445 * data.c (Fsetq_default): Ditto.
1446
1447 * callint.c (Finteractive): Ditto.
1448
c22e59e1
SM
14492001-11-01 Stefan Monnier <monnier@cs.yale.edu>
1450
1451 * macros.c: Don't include keymap.h any more.
1452
9271ed2c
RS
14532001-11-01 Richard M. Stallman <rms@gnu.org>
1454
e6bff182
RS
1455 * data.c (Fmake_local_variable): Doc fix.
1456
1457 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
1458 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
1459
9271ed2c
RS
1460 * keymap.c (Fdescribe_buffer_bindings): Print character property
1461 bindings along with or instead of the buffer local map.
1462 Make the overriding maps override what they should.
1463
8b8bd9c6
PJ
14642001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1465
1466 * window.c (grow_mini_window): Fix typo in comment.
1467
27188d11
GM
14682001-11-01 Gerd Moellmann <gerd@gnu.org>
1469
7b49b9d2
GM
1470 * xterm.c (x_scroll_bar_create): Check for width and height > 0.
1471 (XTset_vertical_scroll_bar): Likewise.
1472
43f7c3ea
GM
1473 * xfns.c (x_build_heuristic_mask): Use four_corners_best
1474 instead of IMAGE_BACKGROUND.
c22e59e1 1475
b350c2e5
GM
1476 * xfns.c (four_corners_best): Reindent.
1477
c22e59e1 1478 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource):
27188d11
GM
1479 Handle :box so that it is possible to specify sexprs.
1480
d576358b
PJ
14812001-11-01 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1482
1483 * xfaces.c (Finternal_merge_in_global_face): Reindent.
1484 (Fface_font): Ditto.
1485 (Finternal_set_alternative_font_registry_alist): Ditto.
1486 (Ftty_suppress_bold_inverse_default_colors): Ditto.
1487
1488 * xfns.c (x-get-resource): Reindent.
1489
bf00d461
EZ
14902001-10-31 Eli Zaretskii <eliz@is.elta.co.il>
1491
1492 * s/hpux11.h: New file.
1493
4e10df59
PJ
14942001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1495
2b209b97
PJ
1496 * emacs.c (USAGE1): Show command line option --no-window-system
1497 instead of --no-windows in usage.
1498 (standard_args): Rename --no-windows to --no-window-system.
1499 (bug_reporting_address): Follow Emacs coding conventions.
1500
9dbc9081
PJ
1501 * eval.c (Fcommandp): Doc fix.
1502 Change doc-string comments to `new style' [w/`doc:' keyword].
1503
4e10df59
PJ
1504 * frame.c (Fframe_live_p): Doc fix.
1505
1506 * buffer.c (selective-display-ellipses): Doc fix.
1507
dd387b25
GM
15082001-10-31 Gerd Moellmann <gerd@gnu.org>
1509
fe957e65
GM
1510 * lread.c (to_multibyte): Fix computation of new read_buffer_size.
1511
dd387b25
GM
1512 * xfaces.c (realize_x_face): If C is not a single-byte character,
1513 set the face's colors_copied_bitwise_p instead of the defaulted_p
1514 members which have a different meaning.
1515 (free_face_colors): Do nothing for a face whose colors have been
1516 copied bitwise.
1517
c22e59e1 1518 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member.
dd387b25 1519
2e1280f8
PJ
15202001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1521
687784e8
PJ
1522 * marker.c, mocklisp.c: Change doc-string comments to `new style'
1523 [w/`doc:' keyword].
2e1280f8 1524
b9d9a9b9
GM
15252001-10-31 Gerd Moellmann <gerd@gnu.org>
1526
1527 * fns.c (require_unwind): Return Lisp_Object.
1528
48400103
PJ
15292001-10-31 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1530
fa1361cb
PJ
1531 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix.
1532 (last-input-char): Revert doc-string to be the same as the
1533 doc-string of `last-input-event'.
1534
48400103
PJ
1535 * xdisp.c: Fix typos in comments.
1536
eafa3196
GM
15372001-10-31 Gerd Moellmann <gerd@gnu.org>
1538
1539 * window.c (grow_mini_window): Handle case that the root
1540 window is already smaller than the nominal mininum height.
1541
747d3f2a
SM
15422001-10-30 Stefan Monnier <monnier@cs.yale.edu>
1543
bf9bb76f
SM
1544 * emacs.c (main): Don't call keys_of_macros any more.
1545
1546 * lisp.h (keys_of_macros): Remove.
1547
1548 * macros.c (keys_of_macros): Remove.
1549
747d3f2a
SM
1550 * xfaces.c (Fface_attribute_relative_p): Declare args.
1551
5e905a57
JR
15522001-10-30 Jason Rumney <jasonr@gnu.org>
1553
1554 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer.
1555 (enum_font_cb2): Ignore fonts with vertical orientation.
1556
3a426197
RS
15572001-10-30 Richard M. Stallman <rms@gnu.org>
1558
1559 * keyboard.c (Finput_pending_p): Doc fix.
1560
a742d646
GM
15612001-10-30 Gerd Moellmann <gerd@gnu.org>
1562
259cf6bc
GM
1563 * xterm.c (x_after_update_window_line): Don't run the code
1564 clearing in borders for rows whose visible height is 0.
1565
3f99f948
GM
1566 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its
1567 resized_p flag is set. If not set, use the much less flickering
1568 method previously used.
1569
1570 * dispnew.c (change_frame_size_1): Set frame's resized_p.
1571
1572 * frame.h (struct frame) <resized_p>: New member.
1573
b4a3be43
GM
1574 * lread.c (to_multibyte): Ensure read_buffer is at least twice
1575 as large as the number of bytes to convert.
747d3f2a 1576
a742d646
GM
1577 * lread.c (to_multibyte): New function.
1578 (read1): Use it.
1579
cacbb9e9
EZ
15802001-10-30 Eli Zaretskii <eliz@is.elta.co.il>
1581
1582 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c).
1583
99cb6b2f
GM
15842001-10-30 Gerd Moellmann <gerd@gnu.org>
1585
327f42ee 1586 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel.
747d3f2a
SM
1587 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p
1588 if the row's fill_line_p is set and drawing the last glyph with
1589 DRAW_IMAGE_{RAISED,SUNKEN}.
327f42ee 1590
99cb6b2f
GM
1591 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame.
1592
8e8223e2
SM
15932001-10-29 Stefan Monnier <monnier@cs.yale.edu>
1594
1595 * xmenu.c: Include coding.h and charset.h.
1596 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT.
1597 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part.
1598 (single_submenu, xmenu_show): Use ENCODE_SYSTEM.
1599 Explicitly set wv->help. Use `TRUE' rather than `True'.
1600 (menu_help_callback): Use empty_string.
1601
1602 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos.
1603 (Fx_popup_dialog): Explicitly init f.
1604 (w32_menu_display_help): Use empty_string.
1605
4d083a8f
RS
16062001-10-29 Richard M. Stallman <rms@gnu.org>
1607
b2304472
RS
1608 * fns.c (Frequire): Detect recursive try to require the same
1609 feature 3 or more levels deep, and get error.
1610 (require_unwind): New subroutine.
1611 (require_nesting_list): New variable.
1612 (syms_of_fns): Init and staticpro it.
1613
4d083a8f
RS
1614 * print.c (print_object): Clarify indication of insertion type.
1615
2fe41216
EZ
16162001-10-29 Eli Zaretskii <eliz@is.elta.co.il>
1617
90480000
EZ
1618 * coding.c (syms_of_coding): Document that locale-coding-system is
1619 used for decoding input on X.
1620
2fe41216
EZ
1621 * window.c (Fscroll_left, Fscroll_right): Doc fix.
1622
74e79967
PJ
16232001-10-29 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1624
1625 * keyboard.c (Finput_pending_p): Fix typo in doc-string.
1626 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it.
1627
60ebcfe8
GM
16282001-10-29 Gerd Moellmann <gerd@gnu.org>
1629
9a7bdceb
GM
1630 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area,
1631 use NO_CURSOR if cursor_in_non_selected_windows is false.
1632
3f08fcd2
GM
1633 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for
1634 the slant attribute if FRAME is t.
1635
0ccfdad2
GM
1636 * xfns.c (x_set_internal_border_width): Set frame garbaged
1637 when X window doesn't exist yet.
1638
ef253080
GM
1639 * xterm.c (x_after_update_window_line): Clear internal border
1640 in different circumstances.
b116830b 1641
60ebcfe8
GM
1642 * xterm.c (XTread_socket) <KeyPress>: Don't use
1643 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa
1644 <handa@etl.go.jp>.
1645
73d25f9c
EZ
16462001-10-28 Eli Zaretskii <eliz@is.elta.co.il>
1647
1648 * m/ibms390.h: New file. From Adam Thornton
1649 <athornton@sinenomine.net>.
1650
cac1daf0
GM
16512001-10-28 Gerd Moellmann <gerd@gnu.org>
1652
053b3256 1653 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color.
b116830b 1654
cac1daf0
GM
1655 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing
1656 a loop counter.
1657
13b1a09c
PJ
16582001-10-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1659
186486eb
PJ
1660 * emacs.c: Use argv[0] instead of emacs when -t was specified.
1661
4707d2d0
PJ
1662 * keyboard.c: Change doc-string comments to `new style' [w/`doc:'
1663 keyword].
1664 Fix typos in comments.
b116830b 1665
d883731c
PJ
1666 * emacs.c (bug_reporting_address): New function.
1667 Use it when displaying usage message.
1668
04012254
PJ
1669 * minibuf.c (read_minibuf): Remove unused external declaration of
1670 variable `Qread_only'.
1671
13b1a09c
PJ
1672 * keymap.c (access_keymap): Remove unused variable `charset'.
1673
5bbf4378
MB
16742001-10-28 Miles Bader <miles@gnu.org>
1675
1676 * xfaces.c (merge_face_heights): Handle TO being relative as well.
1677 Remove #ifdef'd-out code.
1678 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions.
1679 (syms_of_xfaces): Initialize them.
1680
1ce1e4ee
JR
16812001-10-27 Jason Rumney <jasonr@gnu.org>
1682
1683 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret.
1684 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor
1685 position using the system caret.
1686
1687 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width)
1688 (w32_system_caret_height, w32_system_caret_x)
1689 (w32_system_caret_y): New variables for tracking system caret.
1690 (w32_initialize): Initialize them.
c2d53558 1691 (x_display_and_set_cursor): Make system caret follow the active cursor.
1ce1e4ee 1692
c2d53558
SM
1693 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET):
1694 New messages types.
1ce1e4ee
JR
1695
1696 * w32term.c (note_mouse_highlight): Clear old help_echo.
1697
4e30ce42
PJ
16982001-10-27 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1699
bb4600a4
PJ
1700 * xterm.c: Fix typo in a comment.
1701
7db35a48
PJ
1702 * emacs.c: Fix typos in comments.
1703 Remove unnecessary spaces.
1704 Change doc-string comments to `new style' [w/`doc:' keyword].
1705 (USAGE2): Fix typos in usage string.
1706
a7248e4f
PJ
1707 * xterm.c: Fix typo in a comment.
1708
4e30ce42
PJ
1709 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in
1710 emacs.c.
1711
62725a92
GM
17122001-10-27 Gerd Moellmann <gerd@gnu.org>
1713
798dbe1f 1714 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height
c2d53558 1715 instead of 1/2 line_height in the heuristic for skipping
798dbe1f
GM
1716 farther backward when target_y was not reached.
1717
62725a92
GM
1718 * sound.c (sound_perror): Unblock SIGIO, turn on atimers.
1719 Display errno only if non-zero.
1720 (sound_warning): New function.
1721 (vox_configure): Don't treat failing to set sample rate as error.
1722 (various places): Improve error messages.
1723
d4e34d24
EZ
17242001-10-26 Eli Zaretskii <eliz@is.elta.co.il>
1725
944e6f60
EZ
1726 * fileio.c (Faccess_file): Run the argument filename through
1727 Fexpand_file_name, before using it.
1728
d4e34d24
EZ
1729 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to
1730 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no>
1731
38d2af0c
GM
17322001-10-26 Gerd Moellmann <gerd@gnu.org>
1733
da80a8d5
GM
1734 * insdel.c (insert_1_both): Do nothing if NCHARS == 0.
1735
38d2af0c
GM
1736 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1737 Fix clearing in the case of scroll bars on the right.
c2d53558 1738
56f508dd
EZ
17392001-10-26 Juanma Barranquero <lektu@terra.es>
1740
1741 * w32gui.h (XImage): Add a dummy typedef.
1742
fbd5ceb2
GM
17432001-10-26 Gerd Moellmann <gerd@gnu.org>
1744
c2d53558 1745 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison.
fbd5ceb2 1746
b23236fb
EZ
17472001-10-25 Eli Zaretskii <eliz@is.elta.co.il>
1748
1749 * frame.c (Fframe_parameter): Fix last change.
1750
5d991fc4
EZ
1751 * fileio.c: Revert last change (which removed old commented-out
1752 version of expand-file-name). Add a comment that explains why
1753 this old version should not be removed.
1754
879eadc3
GM
17552001-10-25 Gerd Moellmann <gerd@gnu.org>
1756
75700ff2
GM
1757 * frame.c (Fframe_parameter): Fix a bug whereby some
1758 ``artificial'' frame parameters, like `minibuffer' were not
1759 obtained by calling Fframe_parameters.
1760
dfe92a6a
GM
1761 * xterm.c (show_mouse_face): Clean up. Recognize overwritten
1762 cursor differently.
1763
879eadc3
GM
1764 * xdisp.c (move_it_vertically_backward): Compute line height
1765 differently. Add heuristic to try to be more compatible to 20.x.
1766
e1010ebe
SM
17672001-10-25 Stefan Monnier <monnier@cs.yale.edu>
1768
d73a471b
SM
1769 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly.
1770
d6da5a06
GM
1771 * editfns.c (text_property_stickiness): Fix Lisp_Object used as
1772 boolean.
e1010ebe 1773
f66bd220
MB
17742001-10-25 Miles Bader <miles@gnu.org>
1775
1776 * xfns.c (png_load): Make sure SPECIFIED_BG is a string.
1777 BG is a pointer to a structure, not a structure.
1778 (gif_format, png_format): Add missing commas.
1779
d436d538
RS
17802001-10-24 Richard M. Stallman <rms@gnu.org>
1781
1782 * xfaces.c (Fface_attributes_as_vector): New function.
c2d53558 1783 (syms_of_xfaces): Defsubr it.
d436d538 1784
075c507b
PJ
17852001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1786
1787 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused
1788 variable `area'.
1789
d492b584
PJ
17902001-10-25 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1791
c2d53558 1792 * search.c (scan_newline): Remove unused variable `selective_display'.
d492b584 1793
e2a57b34
MB
17942001-10-25 Miles Bader <miles@gnu.org>
1795
1796 * dispextern.h (struct image): Add `background',
1797 `background_valid', and `background_transparent' fields.
1798 (image_background, image_background_transparent): New declarations.
1799 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros.
1800 * xfns.c (image_background, image_background_transparent)
1801 (four_corners_best): New functions.
c2d53558 1802 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
e2a57b34
MB
1803 (gs_format): Add `:background' entry.
1804 (lookup_image): Set IMG's background color if specified.
1805 (pbm_load, xbm_load_image, png_load): Set IMG's background field
1806 when appropriate.
1807 (x_clear_image_1): Reset `background_valid' and
1808 `background_transparent_valid' fields.
1809 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
1810 calculating it here. Set IMG's background_transparent field.
1811 (enum xpm_keyword_index): Add XPM_BACKGROUND.
1812 (enum png_keyword_index): Add PNG_BACKGROUND.
1813 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
1814 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
1815 (enum gif_keyword_index): Add GIF_BACKGROUND.
1816 (enum gs_keyword_index): Add GS_BACKGROUND.
c2d53558 1817 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
e2a57b34
MB
1818 Pre-calculate image background color where necessary.
1819 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
1820 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
1821 color to use for image glyph reliefs.
1822
b547b6e8
GM
18232001-10-24 Gerd Moellmann <gerd@gnu.org>
1824
d9e3b8c6
GM
1825 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting
1826 in full-width rows.
c2d53558 1827
b547b6e8
GM
1828 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1829 Fix clearing of area not covered by scroll bar.
1830
2beb36f9
PJ
18312001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1832
1833 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end'
1834 and `real_start'.
c2d53558 1835 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
2beb36f9
PJ
1836 (glyph_rect): Remove unused variable `area'.
1837
76cb5e06
GM
18382001-10-24 Gerd Moellmann <gerd@gnu.org>
1839
bdbdebff 1840 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if.
c2d53558
SM
1841
1842 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos.
1843 (row_containing_pos): Take additional argument DY.
1844 Treat rows ending in middle of char differently.
62e33982
GM
1845 (display_line): Handle tabs on window systems differently.
1846
1847 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos
1848 with additional argument.
1849
1850 * dispextern.h (row_containing_pos): Adjust prototype.
1851
76cb5e06
GM
1852 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing)
1853 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables.
1854 (try_window_id, try_window_reusing_current_matrix)
1855 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited.
1856 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables.
1857
996fee11
PJ
18582001-10-24 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1859
c9e60620
PJ
1860 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of
1861 gnuemacs).
1862 (HAVE_BOXES): Fix typo in comment.
1863 (push_menu_pane): Fix typo in comment.
1864
3b552d56
PJ
1865 * xdisp.c: (display_prop_string_p): Remove unused local declaration
1866 of `Qwhen'.
1867 (single_display_prop_string_p): Remove unused local declarations
1868 of `Qwhen' and `Qmargin'.
1869 (string_buffer_position): Remove unused variable `around'.
1870 (store_frame_title): Remove unused variable `width'.
1871
15c565ac
PJ
1872 * window.c: Don't define max.
1873 (coordinates_in_window): Remove unused variable `uy'.
1874
a8818eb9
PJ
1875 * widget.c: Don't define max.
1876
996fee11
PJ
1877 * process.c: Don't define max.
1878 (create_process): Remove unused variable `buffer'.
1879
496e1a5b
GM
18802001-10-23 Gerd Moellmann <gerd@gnu.org>
1881
c2d53558 1882 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error.
496e1a5b 1883
5905ae8b
EZ
18842001-10-23 Eli Zaretskii <eliz@is.elta.co.il>
1885
1886 * xfaces.c (Finternal_set_lisp_face_attribute)
1887 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the
1888 frame is on a windowed display.
1889
24db49fb
GM
18902001-10-23 Gerd Moellmann <gerd@gnu.org>
1891
c2d53558
SM
1892 * dispnew.c (sync_window_with_frame_matrix_rows):
1893 Fix handling of windows which aren't full-width, fix handling
c51488cd
GM
1894 of marginal areas.
1895
c2d53558 1896 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50.
24db49fb 1897
f0487f05
EZ
18982001-10-23 Andreas Schwab <schwab@suse.de>
1899
1900 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override
1901 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc".
1902
f0a48a01
GM
19032001-10-23 Gerd Moellmann <gerd@gnu.org>
1904
c2d53558 1905 * xterm.c (x_draw_glyphs): Remove parameters READ_START and
f0a48a01
GM
1906 REAL_END. Notice if cursor gets overwritten.
1907 (notice_overwritten_cursor): Take X positions as parameters.
1908 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
1909 around call to x_draw_glyphs.
1910
a50a10a0
PJ
19112001-10-23 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1912
fc11dff0
PJ
1913 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR
1914 instead of C) and usage.
a50a10a0 1915
fc11dff0
PJ
1916 * editfns.c (char-to-string): Fix argument names (use CHAR instead
1917 of C) and usage.
a50a10a0
PJ
1918
1919 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top',
1920 `left', `max_width' and `max_height'.
1921
8738febd
GM
19222001-10-23 Gerd Moellmann <gerd@gnu.org>
1923
1924 * xdisp.c (display_line): For a tab continued to the next line,
1925 set row's ends_in_middle_of_char_p.
1926
653c329b
GM
19272001-10-22 Gerd Moellmann <gerd@gnu.org>
1928
1929 * xdisp.c (display_line): Fix computation of continuation lines
1930 width for TABs.
1931
f958c5ac
PJ
19322001-10-22 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1933
7ba51063
PJ
1934 * xdisp.c (build_desired_tool_bar_string): Remove unused variable
1935 `Qlaplace'.
1936
f958c5ac
PJ
1937 * fileio.c: Remove unused code.
1938
eb360291
MB
19392001-10-22 Miles Bader <miles@gnu.org>
1940
1941 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL)
1942 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD):
1943 Remove `DOC_STRINGS_IN_COMMENTS' cases.
1944
98515cf0
JR
19452001-10-21 Jason Rumney <jasonr@gnu.org>
1946
1947 * w32term.c (x_erase_phys_cursor): Remove inverse_p again.
1948
93026d88
EZ
19492001-10-21 Eli Zaretskii <eliz@is.elta.co.il>
1950
1951 * mocklisp.c (Fml_if, Fml_provide_prefix_argument)
1952 (Finsert_string): Avoid the multi-line string literals warning.
1953
c9a95b79
MB
19542001-10-22 Miles Bader <miles@gnu.org>
1955
1956 * doc.c (Vhelp_manyarg_func_alist): Variable removed.
1957 (Fdocumentation): Don't use it.
1958 (syms_of_doc): Don't initialize it.
1959
1960 * keyboard.c (Ftrack_mouse): Add usage: string to doc string.
1961 * print.c (Fwith_output_to_temp_buffer): Likewise.
1962 * window.c (Fsave_window_excursion): Likewise.
c2d53558 1963 * editfns.c (Fsave_excursion, Fsave_current_buffer)
c9a95b79 1964 (Fsave_restriction): Likewise.
c2d53558
SM
1965 * eval.c (Frun_hooks, Frun_hook_with_args)
1966 (Frun_hook_with_args_until_failure)
1967 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif)
1968 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun)
1969 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch)
c9a95b79
MB
1970 (Funwind_protect, Fcondition_case): Likewise.
1971 * coding.c (Ffind_operation_coding_system): Likewise.
1972 * keyboard.c (Ftrack_mouse): Likewise.
1973
a3b10252
MB
19742001-10-21 Miles Bader <miles@gnu.org>
1975
c2d53558 1976 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply)
a3b10252
MB
1977 (Fmake_hash_table): Add usage: string to doc string.
1978 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers)
c2d53558 1979 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat)
a3b10252
MB
1980 (Fencode_time, Finsert_and_inherit_before_markers): Likewise.
1981 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument)
1982 (Fml_prefix_argument_loop): Likewise.
1983
c6f73eec
PJ
19842001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1985
c2d53558 1986 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'.
888ebd13 1987
c6f73eec
PJ
1988 * sysdep.c (init_sys_modes): Change doc-string comments to `new
1989 style' [w/`doc:' keyword].
1990
1991 * data.c, fileio.c, indent.c, print.c, search.c, sound.c,
1992 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string
1993 comments to `new style' [w/`doc:' keyword].
1994
3cf3436e
JR
19952001-10-21 Jason Rumney <jasonr@gnu.org>
1996
1997 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName.
1998
c169b8f1
JR
1999 * w32term.c (remember_mouse_glyph): New function.
2000 (w32_mouse_position): Use it.
2001 (note_mouse_movement): If the mouse moved off the glyph, remember
2002 its new position.
c2d53558 2003
4fdd691b
JR
2004 * w32term.h (struct w32_output): Correct spelling of x_compatible.
2005 (w32_display_info): Add mouse_face_overlay.
2006
c169b8f1
JR
2007 * w32term.c (notice_overwritten_cursor): Renamed from
2008 note_overwritten_text_cursor. Rewritten to take glyph widths into
2009 account.
2010 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
2011 (fast_find_string_pos): New function.
2012 (fast_find_position): Return the correct vpos. Add parameter
2013 STOP. In the final row, stop before glyphs having STOP as object.
2014 Don't consider glyphs that are not from a buffer.
2015 (fast_find_position) [0]: Add a presumably more correct version
2016 for after 21.1.
2017 (expose_window_tree, expose_frame): Don't compute intersections here.
2018 (expose_window): Do it here instead.
2019 (expose_window_tree, expose_window, expose_line): Return 1 when
2020 overwriting mouse-face.
2021 (expose_window): If W is the window currently being updated, mark
2022 the frame garbaged.
2023 (expose_frame): If mouse-face was overwritten, redo it.
2024 (x_use_underline_position_properties): New variable.
2025 (syms_of_xterm): DEFVAR_BOOL it.
2026 (x_draw_glyph_string): Add comment to use it in future.
2027 (x_draw_glyph_string): Restore clipping after drawing box.
2028 Fix a computation of the underline position.
2029 (w32_get_glyph_string_clip_rect): Minor cleanup.
2030 (x_fill_stretch_glyph_string): Remove an assertion.
2031 (x_produce_glyphs): Don't convert multibyte characters
2032 to unibyte characters in unibyte buffers.
2033 (cursor_in_mouse_face_p): New function.
2034 (x_draw_stretch_glyph_string): Use it to choose a different GC
2035 when drawing a cursor within highlighted text. Don't draw
2036 background again if it has already been drawn.
2037 (x_draw_glyph_string_box): Don't draw a full-width
2038 box just because the glyph row's full_width_p flag is set.
2039 (x_draw_glyphs): Fix computation of rightmost x for
2040 full-width rows.
2041 (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
2042 (w32_draw_relief_rect): Extend left shadow to the bottom and left;
2043 change bottom shadow accordingly. Some cleanup.
2044 (x_update_window_end): Handle overwritten mouse face
2045 also for tool bar windows.
2046 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
2047 DRAW is DRAW_IMAGE_RAISED.
2048 (clear_mouse_face): Return 1 if text with mouse face was
2049 actually redrawn. Make the function static. Reset
2050 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might
2051 optimize away highlighting if we pass over that same overlay again.
2052 (note_mouse_highlight): Call mouse_face_overlay_overlaps
2053 to detect a case where we have to highlight a different region
2054 despite not having left the currently highlighted region.
2055 Set mouse_face_overlay in the x_display_info. Avoid changing the
2056 mouse pointer shape when show_mouse_face has already done it, or
2057 there is no need. Handle mouse-face and help-echo in strings.
2058 (glyph_rect): New function.
2059 (w32_mouse_position): Use it to raise the threshold for mouse
2060 movement event generation.
2061 (w32_initialize_display_info): Initialize the x_display_info's
2062 mouse_face_overlay.
2063 (w32_set_vertical_scroll_bar): Don't clear a zero height
2064 or width area.
2065 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure
2066 a widget to zero height.
2067
3cf3436e 2068 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]:
4fdd691b 2069 Protect unibyte strings created by replacing their multibyte
3cf3436e
JR
2070 equivalents in menu_items.
2071 (w32_menu_show): Don't overwrite an item's name with its key
2072 description in case the description is a multibyte string.
2073 (single_submenu): Some cleanup.
2074
2075 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed.
2076 (postprocess_image): New function.
2077 (lookup_image): Call it for all image types except PostScript.
2078 (x_kill_gs_process): Call postprocess_image.
2079 (tiff_error_handler, tiff_warning_handler): New functions.
2080 (tiff_load): Install them as handlers.
2081 (x_kill_gs_process): Recognize if someone has cleared the image
2082 cache under us.
2083 (valid_image_p): Protect better against invalid image
2084 specifications. Previous code could signal an error.
2085 (Fx_hide_tip, Fshow_tip): Doc fix.
2086 (Fv_max_tooltip_size): New variable.
2087 (syns_of_xfns): DEFVAR_LISP it.
2088 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root
2089 window buffer to *tip* right after creating the frame. Set frame's
2090 window_width. Use a maximum tooltip size specified by
2091 Vx_max_tooltip_size, if that has valid contents.
2092 (compute_tip_xy): Add parameters WIDTH and HEIGHT.
2093 Make sure the tooltip is completely visible.
2094 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
2095 (Fx_create_frame): Adjust the frame's height for presence
2096 of the tool bar before calling x_figure_window_size.
2097 (x_set_tool_bar_lines): Clear the tool bar window's current matrix
2098 when the window gets smaller.
2099 (x_set_foreground_color): Set frame's cursor_pixel.
2100 (x_set_foreground_color, x_set_background_color): Cleaned up.
2101 (x_set_font): Handle case of x_new_fontset returning the same name
2102 as before, although there was a change in fontsets.
2103
386ca361
MB
21042001-10-21 Miles Bader <miles@gnu.org>
2105
c2d53558 2106 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior)
386ca361
MB
2107 (Flogxor): Add usage: string to doc string.
2108 * charset.c (Fstring): Likewise.
2109 * callproc.c (Fcall_process_region, Fcall_process): Likewise.
2110 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise.
2111
14ff1ee0
PJ
21122001-10-21 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2113
03be2694
PJ
2114 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords.
2115
2116 * alloc.c: Reindent DEFUNs with doc: keywords.
2117
2118 * abbrev.c (Finsert_abbrev_table_description): Reindent.
2119
14ff1ee0
PJ
2120 * frame.c: Change doc-string comments to `new style' [w/`doc:'
2121 keyword].
2122
71431a0e
GM
21232001-10-20 Gerd Moellmann <gerd@gnu.org>
2124
6aa97356 2125 * (Version 21.1 released.)
71431a0e 2126
39f624fa
PJ
21272001-10-20 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2128
c2d53558 2129 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed.
c0a53abb
PJ
2130
2131 * xdisp.c (invisible_text_between_p): Put prototype inside #if
2132 0 because unused.
2133
2134 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c
c2d53558
SM
2135 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c:
2136 Change doc-string comments to `new style' [w/`doc:' keyword].
39f624fa 2137
abcce93a
MB
21382001-10-20 Miles Bader <miles@gnu.org>
2139
2140 The following changes remove the glyph_row `inverse_p' field,
2141 which is never set anymore, due to other changes:
2142
2143 * dispextern.h (struct glyph_row): Remove `inverse_p' field.
2144 (reassert_line_highlight, change_line_highlight): Declarations removed.
2145 * dispnew.c (update_frame_line): Don't call reassert_line_highlight.
c2d53558
SM
2146 (line_hash_code, row_equal_p, fake_current_matrices)
2147 (build_frame_matrix_from_leaf_window, update_frame_line)
abcce93a
MB
2148 (update_frame_line, update_frame_line, update_frame_line):
2149 Don't use `inverse_p' field.
2150 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or
2151 change_line_highlight_hook.
2152 (XTreassert_line_highlight, x_change_line_highlight):
2153 Functions removed.
c2d53558 2154 (x_fix_overlapping_area, x_write_glyphs, expose_area)
abcce93a
MB
2155 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
2156 * xdisp.c (dump_glyph_row, display_mode_line): Don't use
2157 `inverse_p' field.
c2d53558 2158 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area)
abcce93a
MB
2159 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
2160 (w32_reassert_line_highlight, x_change_line_highlight):
2161 Functions removed.
2162 * w32console.c (reassert_line_highlight, change_line_highlight):
2163 Functions removed.
2164 (initialize_w32_display): Don't set reassert_line_highlight_hook
2165 or change_line_highlight_hook.
2166 (hl_mode): Function removed.
c2d53558
SM
2167 (reset_terminal_modes, set_terminal_modes, update_begin)
2168 (update_end, w32_face_attributes, initialize_w32_display):
abcce93a
MB
2169 (clear_frame, ins_del_lines): Don't call it.
2170 * termhooks.h (reassert_line_highlight_hook)
2171 (change_line_highlight_hook): Declarations removed.
2172 * term.c (reassert_line_highlight_hook)
2173 (change_line_highlight_hook): Variables removed.
2174 (reassert_line_highlight, change_line_highlight): Functions removed.
2175 * msdos.c (IT_reassert_line_highlight)
2176 (IT_change_line_highlight): Functions removed.
2177 (internal_terminal_init): Don't set reassert_line_highlight_hook
2178 or change_line_highlight_hook.
2179 (highlight): Variable removed.
c2d53558 2180 (IT_set_face, IT_update_begin, IT_update_end)
abcce93a
MB
2181 (IT_set_terminal_modes): Don't set or use it.
2182
2183 The following changes remove inverse-video support for terminals
2184 that use a `magic cookie' standout mode. Due to changes in the
2185 way mode-lines are displayed, such support no longer works
2186 anyway, and it's probable that almost no one uses such terminals
2187 anymore:
2188
2189 * term.c (standout_requested): Variable removed.
2190 (update_end, highlight_if_desired): Don't use it.
2191 (chars_wasted, copybuf): Variables removed.
2192 (write_standout_marker): Function removed.
c2d53558 2193 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw)
abcce93a
MB
2194 (clear_end_of_line_raw, write_glyphs, ins_del_lines):
2195 Don't use `chars_wasted' or `copybuf'.
2196 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'.
2197 Set `costs_set' to true.
2198 (cursor_to, clear_end_of_line): Test `costs_set' instead of
2199 `chars_wasted'.
2200 (clear_end_of_line): Function removed.
2201 (clear_end_of_line_raw): Renamed to `clear_end_of_line'.
2202 (clear_to_end): Call `clear_end_of_line' instead of
2203 `clear_end_of_line_raw'.
54800acb
MB
2204 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed.
2205 (term_init): Don't set them.
2206 Turn off any standout/underline modes that require magic cookies.
c2d53558 2207 (ins_del_lines, highlight_if_desired, background_highlight)
54800acb
MB
2208 (turn_on_highlight, turn_off_highlight, reset_terminal_modes):
2209 Remove special processing for magic-cookie standout modes.
2210 (turn_off_face, turn_on_face): Remove special processing for
2211 underline magic-cookie glitch.
abcce93a 2212
0b5f679f
RS
22132001-10-19 Richard M. Stallman <rms@gnu.org>
2214
2215 * eval.c (syms_of_eval): Doc fixes.
2216
5a4a5bd4
GM
22172001-10-19 Gerd Moellmann <gerd@gnu.org>
2218
2219 * xdisp.c (redisplay_internal): Don't clear echo area if the
2220 mini-window is selected.
2221
79f1f96c
MB
22222001-10-19 Miles Bader <miles@gnu.org>
2223
b57c2708
MB
2224 * editfns.c (text_property_stickiness): Non-rear-non-stickiness
2225 doesn't take precedence if the affected property's value is nil.
2226
2227 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string.
2228
79f1f96c
MB
2229 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction
2230 with fields and suggest using `forward-line' to avoid them.
2231 * editfns.c (Fline_beginning_position, Fline_end_position):
2232 Clarify documentation.
2233
ef879104
SM
22342001-10-18 Stefan Monnier <monnier@cs.yale.edu>
2235
2236 * keymap.c (current_minor_maps): `override' only shadows its
2237 correspondent in minor-mode-map-alist, not the whole tail.
2238
97f4db8c
AI
22392001-10-18 Andrew Innes <andrewi@gnu.org>
2240
2241 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable
2242 optimization. The fontp->encoding array was not being initialized
2243 correctly when compiled with optimizations by MSVC.
2244
e6b70fd8
GM
22452001-10-18 Gerd Moellmann <gerd@gnu.org>
2246
30903479 2247 * xdisp.c (display_line): Indicate empty lines in active mini-window.
e6b70fd8 2248
0e804d38
AI
22492001-10-17 Andrew Innes <andrewi@gnu.org>
2250
2251 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field.
2252
2253 * w32fns.c (w32_load_system_font): Cache codepage for font, in
2254 font_info.charset field.
2255
2256 * w32term.c (w32_encode_char): Get cached codepage from font_info,
2257 rather than working it out by calling w32_codepage_for_font for
2258 every glyph.
2259
66e5868a
AI
22602001-10-17 Andrew Innes <andrewi@gnu.org>
2261
2262 * w32term.c (w32_read_socket): Determine clipping rectangle for
2263 the entire frame, including areas covered by scrollbars and the
2264 menubar. This avoids internal arguments about whether a frame is
2265 fully obscured or not.
2266
15b00083
GM
22672001-10-17 Gerd Moellmann <gerd@gnu.org>
2268
23e8bd86
GM
2269 * xdisp.c (try_window_id): Undo last change. Give up if
2270 window ends in strings.
30903479 2271
9c6ba6d1 2272 * xdisp.c (try_window_id): Don't display lines after the window
30903479 2273 end if the rest of the window after the window end was already blank.
23e8bd86 2274
30903479 2275 * xdisp.c (try_window_id): Remove code that was only there
9c6ba6d1
GM
2276 for the release of 21.1.
2277
30903479 2278 * xdisp.c (display_line): Don't indicate empty lines in mini-windows.
15b00083 2279
945220bd
MB
22802001-10-17 Miles Bader <miles@gnu.org>
2281
2282 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case.
2283 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c
2284 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c:
2285 Change doc-string comments to `new style' [w/`doc:' keyword].
2286 (DOC_STRINGS_IN_COMMENTS): Macro removed.
2287 * minibuf.c: Remove old commented-out-DEFUN that was used to fake
2288 out make-docfile.
2289
14242528
MB
22902001-10-16 Miles Bader <miles@gnu.org>
2291
2292 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword].
2293
3ddf952f
GM
22942001-10-16 Gerd Moellmann <gerd@gnu.org>
2295
2296 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for
2297 *scratch*.
2298
f3fbd155
KR
22992001-10-16 Ken Raeburn <raeburn@gnu.org>
2300
2301 Avoid the assumption that car and cdr slots of cons cells are
2302 addressable lvalues; this allows for easier experimentation with
2303 other lisp implementations that may not permit such accesses for
2304 various reasons. Not quite complete -- buffer.c still needs some
2305 work, and w32/mac files need rechecking -- so compile-time
2306 enforcement is left disabled for now.
2307
2308 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of
30903479 2309 gcc with a union-based Lisp object rep. Redefine as no-op for now.
f3fbd155
KR
2310 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR.
2311 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions.
2312 (XSETCAR, XSETCDR): New macros.
2313 (XSETCARFASTINT, XSETCDRFASTINT): New macros.
2314 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros.
2315 * keyboard.h (POSN_BUFFER_SET_POSN): New macro.
2316 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and
2317 XSETCDR.
2318 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE.
30903479
SM
2319 * buffer.c (record_buffer, Fbury_buffer)
2320 (swap_out_buffer_local_variables, recenter_overlay_lists)
2321 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr
f3fbd155
KR
2322 fields of a cons cell respectively.
2323 * callint.c (quotify_args, Fcall_interactively): Likewise.
2324 * ccl.c (Fregister_code_conversion_map): Likewise.
2325 * coding.c (detect_coding_system): Likewise.
2326 * composite.c (get_composition_id, make_composition_value_copy):
2327 Likewise.
30903479
SM
2328 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding)
2329 (swap_in_symval_forwarding, set_internal, Fset_default)
2330 (Fmake_variable_buffer_local, Fmake_local_variable)
2331 (Fmake_variable_frame_local): Likewise.
f3fbd155 2332 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise.
30903479 2333 * keymap.c (Fset_keymap_parent, store_in_keymap)
c2d53558 2334 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise.
f3fbd155
KR
2335 * minibuf.c (get_minibuffer): Likewise.
2336 * search.c (Fmatch_data): Likewise.
2337 * textprop.c (extend_property_ranges): Likewise.
c2d53558 2338 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise.
f3fbd155
KR
2339 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts):
2340 Likewise.
2341 * w32term.c (x_delete_display): Likewise.
2342 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute):
2343 Likewise.
c2d53558 2344 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise.
f3fbd155 2345 * doc.c (store_function_docstring): Use XSETCARFASTINT.
30903479 2346 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT.
f3fbd155
KR
2347 (Fread_file_name): Use XSETCAR.
2348 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and
2349 CHECK_NUMBER_CDR.
2350 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR.
2351 * frame.c (Fmake_terminal_frame): Use XSETCDR.
2352 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and
2353 CHECK_NUMBER_CDR.
2354 * keyboard.c (read_char): Alter list traversal to avoid taking the
2355 address of cons cell slots. Use POSN_BUFFER_SET_POSN.
2356 (parse_menu_item): Use XSETCAR and XSETCDR.
2357 (reach_char_x_menu_prompt): Use XSETCAR.
2358 (read_key_sequence): Use POSN_BUFFER_SET_POSN.
2359 (Fcommand_execute): Use XSETCDR.
2360 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT.
2361 (openp): Change list traversal to avoid using XCAR as lvalue.
2362 (read_list): Use XSETCDR.
2363 * process.c (wait_reading_process_input): Change wait_for_cell
2364 handling to avoid taking addresses of cons cell slots.
30903479
SM
2365 * xselect.c (x_own_selection, x_handle_selection_clear)
2366 (x_clear_frame_selections): Use XSETCDR.
2367 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT.
2368 (x_handle_property_notify, x_get_foreign_selection)
2369 (x_handle_selection_notify): Use XSETCAR.
f3fbd155 2370
502150e5
PJ
23712001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2372
018ba359
PJ
2373 * buffer.c: Put doc strings in comments.
2374
30903479 2375 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>.
502150e5 2376
b56ba8de
SS
23772001-10-15 Sam Steingold <sds@gnu.org>
2378
2379 * fns.c (Vafter_load_alist): Declare extern (w32 build problem).
2380
6a0b793a
PJ
23812001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2382
30903479
SM
2383 * process.c (process-inherit-coding-system-flag)
2384 (get-buffer-process): Do not confuse make-docfile with doc strings
e2ba787b
PJ
2385 in comment.
2386
a1f17501 2387 * editfns.c (Fchar_to_string): Make doc string consistent with
30903479 2388 arguments. Put doc strings in comments.
a65da641
PJ
2389
2390 * abbrev.c, minibuf.c: Put doc strings in comments.
6a0b793a 2391
aa601ad0
GM
23922001-10-15 Gerd Moellmann <gerd@gnu.org>
2393
30903479 2394 * window.c (window_loop): Don't check for Fother_buffer returning nil.
b56ba8de 2395
aa601ad0
GM
2396 * window.c (select_window_1): Unfreeze window start. Remove a
2397 doubled test for WINDOW being live.
2398
288148a1
PJ
23992001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2400
dd8d1e71
PJ
2401 * fns.c (Fmapconcat): Fix typo in a doc string.
2402
288148a1
PJ
2403 * dispnew.c (Fsleep_for): Fix typo in a doc string.
2404
9f5eb4a3
GM
24052001-10-15 Gerd Moellmann <gerd@gnu.org>
2406
2407 * xterm.c (x_draw_glyph_string): Restore clipping after
2408 drawing box.
2409
dbae44c8
PJ
24102001-10-15 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2411
30903479 2412 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string.
dbae44c8 2413
0c88c937
SM
24142001-10-14 Stefan Monnier <monnier@cs.yale.edu>
2415
56378db4
GM
2416 * indent.c (skip_invisible): Use new retval of
2417 TEXT_PROP_MEANS_INVISIBLE.
91c067f4 2418
845e4cf4
SM
2419 * keymap.c (access_keymap): Unify handling of `t' and generic-char.
2420 If a parent is reached and noinherit is set, exit immediately.
2421 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP.
2422
0c88c937
SM
2423 * s/ms-w32.h (EXEC_SUFFIXES):
2424 * s/msdos.h (EXEC_SUFFIXES):
2425 * process.h (EXEC_SUFFIXES): Remove.
2426
2427 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil.
2428 (decode_suffixes): Remove.
2429
2430 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS)
91c067f4
SM
2431 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p)
2432 (invisible_ellipsis_p): Remove.
0c88c937
SM
2433
2434 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove.
2435 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used.
2436 (invisible_ellipsis_p, invisible_noellipsis_p): Remove.
91c067f4
SM
2437 (in_ellipses_for_invisible_text_p, handle_invisible_prop):
2438 Use new retval of TEXT_PROP_MEANS_INVISIBLE.
0c88c937 2439
d19be8a9
PJ
24402001-10-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2441
04d7d066
PJ
2442 * lisp.h (Ftop_level): Add prototype.
2443
d624284c
PJ
2444 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
2445 (XTread_socket): Improve style of comments to follow other
2446 comments.
2447
a87414f9
PJ
2448 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
2449 is already prototyped in included lisp.h).
2450
d19be8a9
PJ
2451 * frame.c (Fset_mouse_position): Improve style of comment to
2452 follow other comments.
2453 (Fset_mouse_pixel_position): Improve style of comment to follow
2454 other comments.
2455 (Fmake_frame_visible): Doc fix and typo in comment.
2456 (Fmake_frame_invisible): Doc fix and typo in comment.
2457 (Ficonify_frame): Fix typo in comment.
2458
c061c855
GM
24592001-10-14 Gerd Moellmann <gerd@gnu.org>
2460
37f6b5b6 2461 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
228299fa 2462 * term.c, alloc.c: Put doc strings in comments.
c061c855 2463
e641b454
GM
24642001-10-13 Gerd Moellmann <gerd@gnu.org>
2465
2466 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
2467 Provide definitions for doc strings in comments.
2468
2469 * fns.c: Put doc strings in comments.
2470
51724e26
EZ
24712001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
2472
2473 * dired.c (file_name_completion): Ignore a candidate directory if
2474 it matches an element in completion-ignored-extensions that ends
2475 in a slash.
2476 (syms_of_dired) <completion-ignored-extensions>: Mention the above
2477 feature in the doc string.
2478 (Ffile_name_completion): Ditto.
2479
be5fc59b
SM
24802001-10-12 Stefan Monnier <monnier@cs.yale.edu>
2481
5a1373f3
SM
2482 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
2483
2484 * xfns.c (syms_of_xfns): Update calls to Fprovide.
2485
2486 * lisp.h (Fprovide): Update prototype.
2487 (Ffeaturep, invisible_p): Remove.
2488
bbc4a3d3 2489 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
5a1373f3
SM
2490 (DOLIST, LOOP_PROPVAL): New macros.
2491 (invisible_p, invisible_ellipsis_p): Use them.
2492 (invisible_noellipsis_p): New function.
2493 (syms_of_xdisp): Use empty_string.
2494
2495 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
2496
2497 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
2498 (syms_of_lread) <Vafter_load_alist>: Update docstring.
2499
2500 * print.c (Fwith_output_to_temp_buffer): Align with
2501 internal_with_output_to_temp_buffer.
2502 (print_preprocess): Use traverse_intervals_noorder.
2503 (print_object): Update call to traverse_intervals.
2504
2505 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
2506 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
2507
2508 * intervals.c (traverse_intervals_noorder): New function.
2509 (search_for_interval, count_intervals): Use it.
2510 (traverse_intervals): Use less stack space and drop `depth' arg.
2511
2512 * fns.c (Ffeaturep): Add new `subfeature' arg.
2513 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
2514 (Qsubfeatures): New var.
2515 (syms_of_fns): Initialize it.
2516
026f408d
SM
2517 * keymap.c (Fkey_description): Use empty_string.
2518 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
2519 (syms_of_keymap): Setup inheritance between maps.
2520 Don't export Sdescribe_bindings_internal any more.
2521
be5fc59b
SM
2522 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
2523
3365175e
GM
25242001-10-12 Gerd Moellmann <gerd@gnu.org>
2525
2526 * xterm.c (notice_overwritten_cursor): Renamed from
2527 note_overwritten_text_cursor. Rewritten to take glyph widths into
2528 account.
2529
2ab7765c
EZ
25302001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
2531
2532 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
2533 multi-line strings without a trailing "\n\".
2534
311346bb
PJ
25352001-10-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2536
2537 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
2538 defined.
2539
2168e04d
SM
25402001-10-11 Stefan Monnier <monnier@cs.yale.edu>
2541
026f408d
SM
2542 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
2543
c0ec53ad
SM
2544 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
2545 * w32proc.c (sys_spawnve):
2546 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
2547 * w32.c (check_windows_init_file):
2548 * sound.c (Fplay_sound):
026f408d 2549 * emacs.c (init_cmdargs):
c0ec53ad
SM
2550 * process.c (Fstart_process): Update calls to openp.
2551
2552 * callproc.c (Vexec_suffixes): New var.
2553 (Fcall_process): Update call to openp.
2554 (decode_suffixes): New function.
2555 (syms_of_callproc): Init exec-suffixes.
2556
2557 * lread.c (Vload_suffixes, default_suffixes): New vars.
2558 (openp): Take a lisp list of suffixes.
2559 Check for file-name-handlers even if the file was absolute already.
2560 (syms_of_lread): Declare load-suffixes.
2561 (Fload): Fix up call to openp.
2562 Don't bother checking for file-name-handler at the very beginning.
2563
f6333468
SM
2564 * keymap.h (Fcopy_keymap): Don't export.
2565
2566 * lisp.h (empty_string): Declare.
c0ec53ad
SM
2567 (Vload_suffixes, Vexec_suffixes): Declare.
2568 (openp): Update prototype.
f6333468
SM
2569
2570 * emacs.c (empty_string): New var.
2571 (syms_of_emacs): Initialize it.
2572
2573 * search.c (wordify): Use it.
2574
2575 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
2576 selected window if it's not displayed there. Handle the case
2577 when the window is dedicated.
2578 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
2579
2580 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
2581
2168e04d
SM
2582 * syntax.h (struct gl_state_s): Change the meaning of b_property.
2583 Remove left_ok and right_ok.
2584 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
2585 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
2586 new meaning of b_property.
2587
2588 * syntax.c (update_syntax_table): Simplify.
2589 (Fforward_comment): Don't skip quoted chars when going backward.
2590
13d95cc0
GM
25912001-10-11 Gerd Moellmann <gerd@gnu.org>
2592
beb0990f
GM
2593 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
2594 in case I is of some unsigned type, in which case
2595 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
2596 comparison becomes bogus.
2597
cb938d46
GM
2598 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
2599 (Fuser_full_name): Fix bug treating a float as a fixnum.
2600
2601 * data.c (Fstring_to_number): Use make_fixnum_or_float.
2602
2603 * lisp.h (make_fixnum_or_float): New macro.
2168e04d 2604
13d95cc0
GM
2605 * lisp.h (circular_list_error): Add prototype.
2606
2607 * data.c (Qcircular_list): New variable.
2608 (circular_list_error): New function.
2609 (syms_of_data): Initialize it Qcircular_list.
2610
e35f6ff7
SM
26112001-10-10 Stefan Monnier <monnier@cs.yale.edu>
2612
2613 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c,
2614 casefiddle.c, buffer.c: Include keymap.h.
2615
619632ac
GM
26162001-10-10 Gerd Moellmann <gerd@gnu.org>
2617
2618 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
2619 options. From Dave Love <d.love@dl.ac.uk>.
2620
5e5388f6
GM
26212001-10-09 Gerd Moellmann <gerd@gnu.org>
2622
2623 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
2624 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
2625
14a3dff7
GM
2626 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
2627 unsigned char.
2628 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
e35f6ff7 2629
76ba8daf
AI
26302001-10-08 Andrew Innes <andrewi@gnu.org>
2631
2632 * lisp.h [max]: Undef min and max before redefining them.
2633
2634 * w32gui.h: Do not undef min and max.
2635
2636 * w32heap.h: Do not undef min and max.
2637
2638 * s/ms-w32.h: Do not undef min and max.
2639
166253cb
SM
26402001-10-08 Stefan Monnier <monnier@cs.yale.edu>
2641
2642 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
2643
0c4d9527
SS
26442001-10-08 Sam Steingold <sds@gnu.org>
2645
2646 * keymap.c (current-active-maps): Quote newlines (compilation error).
2647
14bfa771
EZ
26482001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
2649
2650 * Makefile.in (lisp, shortlisp): Replace bindings.el with
2651 bindings.elc, since otherwise doc strings in bindings.el get wrong
2652 offsets in etc/DOC.
2653
bdb7aa47
SM
26542001-10-08 Stefan Monnier <monnier@cs.yale.edu>
2655
9985827f
SM
2656 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
2657
2658 * keyboard.h (map_prompt): Remove.
2659
2660 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
e6b3ceb6 2661 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
9985827f 2662
bdb7aa47
SM
2663 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
2664
2665 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
2666
2667 * keyboard.c (map_prompt): Remove.
2668 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
2669 Use Fkeymap_prompt.
2670
2671 * keymap.h: New file. Extracted from lisp.h.
2672
9985827f
SM
2673 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
2674 (accessible_keymaps_1): New function.
2675 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
2676 (Fwhere_is_internal): Use Fcurrent_active_maps.
2677 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
2678 Insert in current buffer rather than standard-output.
2679 Don't call `help-mode'. Export to elisp.
2680 (describe_buffer_bindings): New wrapper.
2681 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
2682 and Sdescribe_buffer_bindings.
2683
402c9a51
GM
26842001-10-08 Gerd Moellmann <gerd@gnu.org>
2685
9985827f 2686 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
3ecd9cc3
GM
2687 Remove code setting signal handler.
2688
9985827f 2689 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
402c9a51
GM
2690 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
2691
3fe81fdf
PJ
26922001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2693
2694 * keyboard.c: Don't define min/max.
2695
55fa7820
GM
26962001-10-08 Gerd Moellmann <gerd@gnu.org>
2697
9985827f 2698 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
32c82ac0 2699 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
9985827f 2700 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
32c82ac0 2701 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
9985827f 2702 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
32c82ac0
GM
2703 Don't define min/max.
2704
2705 * lisp.h (min, max): New macros.
2706
55fa7820
GM
2707 * puresize.h (BASE_PURESIZE): Increase to 725000.
2708
1aad31e4
PJ
27092001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2710
9180dc8c
PJ
2711 * xfaces.c (free_frame_menubar): Add prototype.
2712
01f67d2c
PJ
2713 * lisp.h (init_window): Add prototype.
2714
2715 * editfns.c: Include ctype.h.
2716
2717 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
9985827f 2718 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
01f67d2c
PJ
2719 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
2720 variable `sb'.
2721
5f351ff1
PJ
2722 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
2723 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
2724 `popup_activated_flag' and `title'.
2725
479dfe87
PJ
2726 * doc.c (Fdocumentation_property): Fix typo in a doc string.
2727
dff49fc8
PJ
2728 * emacs.c (main): Remove extra `;'.
2729
248ac615
PJ
2730 * atimer.h (struct atimer): Fix typos in a comment.
2731
2732 * atimer.c: Fix typo.
2733
af232c7d
PJ
2734 * Makefile.in: Fix typo.
2735
2736 * README: Remove obsolete part mentioning removed VMS file.
1aad31e4 2737
d876f455
MB
27382001-10-07 Miles Bader <miles@gnu.org>
2739
2740 * Makefile.in (lisp, shortlisp): Add `button.elc'.
2741
0037e2f2
KR
27422001-10-07 Ken Raeburn <raeburn@gnu.org>
2743
b056f36d
KR
2744 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
2745 Lisp_Object.
2746
0037e2f2
KR
2747 * lisp.h (Ffield_end): Declare.
2748
1a4372ef
GM
27492001-10-07 Gerd Moellmann <gerd@gnu.org>
2750
a4a74e8c
GM
2751 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
2752
2753 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
2754
2755 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
2756
2757 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
2758
1a4372ef
GM
2759 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
2760 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
2761
2762 * alloc.c (inhibit_garbage_collection): Simplify.
2763 (Fmemory_use_counts): Ditto.
2764
9985827f 2765 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
1a4372ef
GM
2766 (syms_of_data): DEFVAR_INT most-positive-fixnum and
2767 most-negative-fixnum.
2768
9985827f 2769 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
1a4372ef
GM
2770 (FIXNUM_OVERFLOW_P): New macros.
2771
4650e362
MB
27722001-10-06 Miles Bader <miles@gnu.org>
2773
2774 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
2775 scroll_bar_bottom_shadow_pixel fields.
2776 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
2777 for the shadows, and tell the toolkit about them if we succeed.
2778 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
2779 Free scroll-bar shadow colors.
2780 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
2781 Free scroll-bar shadow colors when the background color changes.
2782 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
2783 Initialize scroll-bar shadow-color fields.
2784
ace64e0a
GM
27852001-10-05 Gerd Moellmann <gerd@gnu.org>
2786
2787 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
2788
ec66bdc7
MB
27892001-10-05 Miles Bader <miles@gnu.org>
2790
9985827f
SM
2791 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
2792 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
ec66bdc7 2793 New functions (were in simple.el).
9985827f 2794 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
ec66bdc7
MB
2795 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
2796 (syms_of_minibuf): Initialize them.
2797
a0fb4492
GM
27982001-10-05 Gerd Moellmann <gerd@gnu.org>
2799
2800 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
2801 (tiff_load): Install them as error and warning handler.
2802
0bcf87c1
AI
28032001-10-04 Andrew Innes <andrewi@gnu.org>
2804
2805 * w32fns.c (x_to_w32_color): Fix argument to alloca.
2806 (w32_load_system_font): Don't believe what GetLanguageFontInfo
9985827f 2807 says; query codepage info directly to determine if font is double byte.
0bcf87c1
AI
2808 (x_to_w32_charset): Handle private format for unknown charsets.
2809 Handle wildcards in charset spec, by ignoring them.
2810 (w32_codepage_for_font): Fix argument to alloca. Don't remove
2811 "*-" prefix from charset.
2812 (x_to_w32_font): Enlarge remainder array for safety. Specifically
2813 handle the truncated font spec form constructed by font_list_1, so
2814 that we correctly identify the charset fields. Don't remove "*-"
2815 prefix from charset.
2816 (w32_list_synthesized_fonts): Fix argument to alloca.
2817
c89e4bc5
GM
28182001-10-04 Stefan Monnier <monnier@cs.yale.edu>
2819
2820 * window.h (MINI_WINDOW_P): Use NILP.
2821
2822 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
2823
2824 * termhooks.h (struct input_event): Use proper type for `kind'.
2825
28262001-10-04 Gerd Moellmann <gerd@gnu.org>
2827
2828 This handles unknown keysyms better than before. For example,
2829 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
2830 Emacs formerly completely ignored F5. With the change, it derives
2831 a key symbol from the name of the X keysym, `ccaron' in this case.
2832 Reported by Martin Buchholz.
2833
2834 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
2835 unknown keysyms.
2836
2837 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
2838 that EVENT->code isn't a function key, use the keysym's name.
2839
28402001-10-04 Gerd Moellmann <gerd@gnu.org>
2841
2842 FOREACH is a macro that should make it easier to loop over Lisp
2843 lists with checks for cycles and proper lists.
2844
2845 * lisp.h (LIST_END_P, FOREACH): New macros.
2846
28472001-10-04 Gerd Moellmann <gerd@gnu.org>
2848
2849 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
2850 called for a lost connection. Prevent dumping core in this case.
2851 Instead print the X error, and exit. On user request.
2852
2853 * xterm.c (error_msg): New variable.
2854 (x_fatal_error_signal): New function.
2855 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
2856 as fatal_error_signal_hook around the call to XtCloseDisplay.
2857
2858 * emacs.c (fatal_error_signal_hook): New variable.
2859 (fatal_error_signal): Call that function.
2860
28612001-10-04 Gerd Moellmann <gerd@gnu.org>
2862
2863 With this, Emacs prints how much pure storage it will
2864 approximately need in case pure storage overflows while dumping.
2865
2866 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
2867 New variables.
2868 (init_alloc_once): Initialize new variables.
2869 (PURE_POINTER_P): Use new variables.
2870 (pure_alloc): If pure storage overflows, allocate from the heap.
2871 (check_pure_size): New function.
2872 (Fgarbage_collect): Don't GC if pure storage has overflowed.
2873
2874 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
2875 (check_pure_size): Add prototype.
2876
2877 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
2878
28792001-10-04 Gerd Moellmann <gerd@gnu.org>
2880
2881 This adds a post-gc-hook that's run with GC inhibited.
2882 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
2883
2884 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
2885 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
2886 (Fgarbage_collect): Run post-gc-hook.
2887
28882001-10-04 Gerd Moellmann <gerd@gnu.org>
2889
2890 This adds `defvaralias' and `indirect-variable'. Changes not
2891 directly related to this feature are there to gain the same
2892 performance again as before variable aliases.
2893
2894 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
2895 code to get and set symbol values, to take defvaralias into account.
2896
2897 (Note: the new `constant' bit-flag in symbols would make it
2898 possible to define arbitrary read-only variables, e.g. with
2899 `defconst'.)
2900
2901 Documentation is in lispref/variables.texi. Added to NEWS.
2902
2903 * lisp.h (enum symbol_interned): New enumeration.
2904 (struct Lisp_Symbol): Remove member `obarray', add
2905 `indirect_variable', `constant', and `interned'.
2906 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
2907 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
2908 (indirect_variable): Add prototype.
2909
2910 * print.c (print_preprocess, print_object): Test internedness of
2911 symbols differently.
2912
2913 * lread.c (Fintern, Funintern): Set symbol's interned and constant
2914 bit-fields.
2915 (init_obarray): Likewise for t and nil.
2916
2917 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
2918 (Fdefvaralias): New function.
2919 (specbind): Simplify the test if symbol is a constant.
2920 (syms_of_eval): Defsubr Fdefvaralias.
2921
2922 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
2923 (Qcyclic_variable_indirection): New variable.
2924 (Fkeywordp): Check for internedness differently.
2925 (Fmakunbound): Simplify the test if symbol is a constant.
2926 (indirect_variable, Findirect_variable): New functions.
2927 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
2928 aliased symbol.
2929 (let_shadows_buffer_binding_p): Check for variable aliases.
2930 (set_internal): Simplify the test if SYMBOL is a constant.
2931 If SYMBOL has a buffer-local value and is an alias, use the aliased
2932 symbol instead.
2933 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
2934 Sindirect_variable.
2935
2936 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
2937 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
2938 set directly.
2939
2940 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
2941
2942 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
2943 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
2944 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
2945
ab952a4f
GM
29462001-10-04 Gerd Moellmann <gerd@gnu.org>
2947
2948 * Branch for 21.1.
b56ba8de 2949
ba88ff28
MB
29502001-10-03 Miles Bader <miles@gnu.org>
2951
2952 * callproc.c (syms_of_callproc): Explicitly state in the
2953 documentation for `process-environment' that earlier entries take
2954 precedence over later ones.
2955
ae1a9581
MB
29562001-10-02 Miles Bader <miles@gnu.org>
2957
2958 * textprop.c (Fnext_char_property_change)
2959 (Fprevious_char_property_change): Remove reference to non-existant
2960 argument OBJECT from doc-string.
2961
257e3f57
GM
29622001-10-01 Gerd Moellmann <gerd@gnu.org>
2963
2964 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
2965 (try_window_id): Skip back over lines ending in a newline from a
2966 string.
2967
2968 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
2969 New bit flag
2970
c1f29759
RS
29712001-10-01 Richard M. Stallman <rms@gnu.org>
2972
2973 * search.c (Freplace_match): Doc fix.
2974
c30dce3d
AI
29752001-09-28 Andrew Innes <andrewi@gnu.org>
2976
2977 * w32menu.c (set_frame_menubar): Take into account that
2978 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
2979 <raeburn@gnu.org>.
2980
03be5931
EZ
29812001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
2982
2983 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
2984
75bec752
PJ
29852001-09-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2986
2987 * s/gnu-linux.h: Fix a typo in comment.
2988
83100e0a
AS
29892001-09-28 Andreas Schwab <schwab@suse.de>
2990
2991 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
2992 nocombreloc, in case -z combreloc is the default.
2993
a74b48cf
GM
29942001-09-28 Gerd Moellmann <gerd@gnu.org>
2995
2996 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
2997 really going on here.
2998
09c4719e
SM
29992001-09-27 Stefan Monnier <monnier@cs.yale.edu>
3000
3001 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
3002
f7d5d963
EZ
30032001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
3004
3005 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
3006 utf-8, menu-bar, and latin-N.
3007 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
3008 unconditionally now.
3009 (lisp): Add latin-N, since they are preloaded.
3010
9240e746
GM
30112001-09-27 Gerd Moellmann <gerd@gnu.org>
3012
14531065
GM
3013 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
3014 to the left. Some cleanup.
3015
9240e746
GM
3016 * xdisp.c (display_mode_element): One more case where a string's
3017 multibyteness should be used for display.
3018
edd1e654
GM
30192001-09-26 Gerd Moellmann <gerd@gnu.org>
3020
b02439c8
GM
3021 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
3022 reading at EOF.
3023
032906b1 3024 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
5b397024 3025 of the only temporarily set echoing flag for deciding when
032906b1
GM
3026 the cancel echoing.
3027
3028 * keyboard.c (echo_kboard): Make externally visible.
3029
3030 * lisp.h (echo_kboard): Declare extern.
3031
cb617e7c 3032 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
5b397024 3033 fonts_changed_p if we need larger matrices due to vscrolling.
cb617e7c
GM
3034 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
3035 this round of redisplay if make_cursor_line_fully_visible fails.
3036 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
09c4719e 3037 (try_cursor_movement, try_scrolling): Use them instead of integers.
cb617e7c
GM
3038
3039 * dispextern.h (required_matrix_width, required_matrix_height):
3040 Add prototypes.
3041
09c4719e
SM
3042 * dispnew.c (required_matrix_width, required_matrix_height):
3043 New functions.
cb617e7c 3044 (allocate_matrices_for_window_redisplay)
09c4719e
SM
3045 (allocate_matrices_for_frame_redisplay: Use them.
3046 Remove parameters CH_DIM.
cb617e7c 3047
edd1e654
GM
3048 * xdisp.c (display_mode_lines): Temporarily set selected_frame
3049 and selected_window to the frame of the window whose mode-lines
3050 are displayed, and to the window itself.
3051 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
09c4719e 3052 here.
edd1e654 3053
924b604c
GM
30542001-09-25 Gerd Moellmann <gerd@gnu.org>
3055
daba7643
GM
3056 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
3057 the image cache under us.
3058
b7a22712 3059 * xdisp.c (display_mode_element): If the mode element is a symbol
09c4719e 3060 with a string value, use that string's multibyteness for displaying.
b7a22712 3061
ad648212
GM
3062 * keyboard.c (read_char): Don't clear a message for a switch-frame
3063 event. From Stefan Monnier <monnier@cs.yale.edu>.
3064
9f8531e5
GM
3065 * xterm.c (fast_find_position) [0]: Add a presumably more correct
3066 version for after 21.1.
3067
3068 * xdisp.c (row_containing_pos): Make externally visible.
3069
3070 * dispextern.h (row_containing_pos): Add prototype.
3071
924b604c
GM
3072 * process.c (send_process): Disable composition if from_byte < 0.
3073 From Kenichi Handa <handa@etl.go.jp>.
3074
6f3f0db4
GM
30752001-09-24 Gerd Moellmann <gerd@gnu.org>
3076
c69c0ebc
GM
3077 * xterm.c (refreshicon): Function removed.
3078
d1182bc4
GM
3079 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
3080
3081 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
3082
3083 * xterm.c (toplevel): Remove includes in #if 0.
3084
6f3f0db4
GM
3085 * process.c (sigchld_handler) [LINUX]: Don't return from
3086 the signal handler at the end of the loop.
3087
59957f85
GM
30882001-09-21 Gerd Moellmann <gerd@gnu.org>
3089
09c4719e
SM
3090 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
3091 Terminate only if kill returns -1, and errno is ESRCH.
59957f85 3092
a0528984
EZ
30932001-09-21 Markus Rost <rost@math.ohio-state.edu>
3094
3095 * Makefile.in (shortlisp): Add ../lisp/env.elc.
3096
db92b288
GM
30972001-09-20 Gerd Moellmann <gerd@gnu.org>
3098
3fed8ad5
GM
3099 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
3100 since this function can be called during GC.
3101
db92b288
GM
3102 * callproc.c (Fcall_process): Handle errors from pipe(2).
3103 (child_setup): Delete code in #ifdef vipc.
3104
7121b85a
GM
31052001-09-19 Gerd Moellmann <gerd@gnu.org>
3106
72f62cb5
GM
3107 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
3108 (display_mode_element): Display the string from decode_mode_spec
3109 depending on its multibyteness.
3110
a2697022
GM
3111 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
3112
7121b85a
GM
3113 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
3114
bfc97351
GM
31152001-09-18 Gerd Moellmann <gerd@gnu.org>
3116
c9063433
GM
3117 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
3118 recursive_edit_unwind.
3119 (recursive_edit_unwind): Set kboard state according to
3120 SINGLE-KBOARD.
3121
3fbdba3e
GM
3122 * buffer.c (modify_overlay): Don't do nothing if START == END;
3123 This can still be a modification, for example when an overlay has
3124 a before-string or after-string.
3125 (Fdelete_overlay): Prevent redisplay optimizations when deleting
3126 an overlay with before-string or after-string.
3127
1270031d
GM
3128 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
3129 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
3130
bfc97351
GM
3131 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
3132 first_unchanged_at_end_row is in front of
3133 last_unchanged_at_beg_row. This code should be removed after the
3134 release of 21.1.
3135
d8a973aa
GM
31362001-09-17 Gerd Moellmann <gerd@gnu.org>
3137
e18c8b8d
GM
3138 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
3139 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
3140
d8a973aa
GM
3141 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
3142 versions >= 2.95.
3143
ed7d6ba4
EZ
31442001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
3145
3146 * dired.c (Ffile_attributes): Doc fix.
3147
551629f9
GM
31482001-09-14 Gerd Moellmann <gerd@gnu.org>
3149
3150 * fileio.c (Ffile_symlink_p): Fix last change.
3151
3152 * filelock.c (current_lock_owner): Fix last change.
3153
4c8c7926
GM
31542001-09-13 Gerd Moellmann <gerd@gnu.org>
3155
620c4704
GM
3156 * filelock.c (current_lock_owner): If readlink returns ERANGE,
3157 take that to mean that the buffer is too small.
3158
81c3310d
GM
3159 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
3160 that to mean that the buffer is too small.
3161
06fd3792
GM
3162 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
3163 current buffer's multibyteness when discarding the iterator's
3164 stack.
3165
4c8c7926
GM
3166 * xfns.c (Fx_window_property): Handle case that property gets
3167 deleted between the two calls to XGetWindowProperty.
3168
9a72e4c1
GM
31692001-09-11 Gerd Moellmann <gerd@gnu.org>
3170
bd819d14 3171 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
b56ba8de 3172
a41edd99
GM
3173 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
3174 in addition to read-only.
3175
3176 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
3177 to t in addition to read-only.
3178
3179 * lisp.h (Qinhibit_modification_hooks): Declare.
3180
3181 * insdel.c (Qinhibit_modification_hooks): New variable.
3182 (syms_of_insdel): Initialize and staticpro it.
3183
d4881c6a
GM
3184 * textprop.c (verify_interval_modification): Don't run
3185 modification-hooks if inhibit_modification_hooks.
3186
3187 * dispnew.c (set_window_cursor_after_update): Fix code
3188 finding glyph row containing cursor when cursor_in_echo_area
3189 is >= 0.
3190
9a72e4c1
GM
3191 * xdisp.c (init_from_display_pos): Put some code in #if 0.
3192 (add_to_log): Use bcopy instead of strcpy.
3193 (init_from_display_pos): Use an explicit loop over bytes in
3194 overlay strings instead of calling index.
3195
f4a374a1
GM
31962001-09-10 Gerd Moellmann <gerd@gnu.org>
3197
300e57bd
GM
3198 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
3199
3200 * dispnew.c (direct_output_for_insert): Don't change IT's
3201 stop_charpos to something in front of its current position.
3202
f4a374a1
GM
3203 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
3204 `format'.
3205
7e4cbc91
RS
32062001-09-10 Richard M. Stallman <rms@gnu.org>
3207
3208 * frame.c (Fmouse_position): Doc fix.
3209
6afad91e
GM
32102001-09-07 Gerd Moellmann <gerd@gnu.org>
3211
3212 * xdisp.c (init_from_display_pos): Don't compare the result
3213 of calling index with NULL.
3214
f76e0368
GM
32152001-09-06 Gerd Moellmann <gerd@gnu.org>
3216
3217 * xfns.c (x_set_background_color): Don't change the colors
3218 of the X window of scroll bar widgets.
3219
9ead1b60
AI
32202001-09-05 Andrew Innes <andrewi@gnu.org>
3221
3222 * w32fns.c (w32_createwindow): Undo last change.
3223
c3b497b3
GM
32242001-09-05 Gerd Moellmann <gerd@gnu.org>
3225
08e1d6df
GM
3226 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
3227
c3b497b3
GM
3228 * xdisp.c (string_buffer_position): Use *single_char_property*
3229 functions instead of the *single_property* functions.
b56ba8de 3230
8f860180
AI
32312001-09-04 Andrew Innes <andrewi@gnu.org>
3232
9a72e4c1
GM
3233 * w32term.c (w32_read_socket): Add more information to debugging
3234 output.
8f860180
AI
3235
3236 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
3237 from Emacs frames, so that calls to GetClipBox in w32term.c
3238 correctly report when part of a frame is visible (including
3239 scrollbars, etc). This prevents repeated redrawing of frames when
3240 only a scrollbar is visible.
3241 (w32_wnd_proc): Add more frame information to debugging output.
3242
2ee1aa00
SM
32432001-09-03 Stefan Monnier <monnier@cs.yale.edu>
3244
3245 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
3246
e3b22517
GM
32472001-09-03 Gerd Moellmann <gerd@gnu.org>
3248
7e376260
GM
3249 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
3250 help-echo for a string which doesn't have help-echo itself, use
3251 get-char-property to obtain the help-echo from the string's buffer
3252 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
3253 have mouse-face, look ``under'' the string for mouse-face from an
3254 overlay.
3255 (fast_find_position): Add parameter STOP. In the final row, stop
3256 before glyphs having STOP as object. Don't consider glyphs that
3257 are not from a buffer.
3258
e3b22517
GM
3259 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
3260
9a249bba
EZ
32612001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
3262
3263 * fns.c (Fmd5): Doc fix.
3264
c9979669
GM
32652001-08-31 Gerd Moellmann <gerd@gnu.org>
3266
3267 * composite.c (update_compositions): Do nothing if
3268 inhibit-modification-hooks is set.
3269
9584e63a
GM
32702001-08-30 Gerd Moellmann <gerd@gnu.org>
3271
986ec8f2 3272 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
490468dc 3273 and check_message_stack if terminating abnormally. We want
986ec8f2
GM
3274 glyph matrices etc. in a core dump.
3275
92a25631
GM
3276 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
3277 (syms_of_xdisp): Initialize them.
3278 (handle_single_display_prop): Don't change point, bind `object',
3279 `position', and `buffer-position' instead to the object having the
2ee1aa00 3280 `display' property, position in the object and position in the buffer.
92a25631 3281
9584e63a
GM
3282 * fileio.c (Finsert_file_contents): Don't change the multibyteness
3283 of the buffer if REPLACE is non-nil.
3284
d38633a3
GM
32852001-08-29 Gerd Moellmann <gerd@gnu.org>
3286
3287 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
3288
f4fccc1e
EZ
32892001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
3290
3291 * w32term.c (x_set_glyph_string_background_width)
3292 (show_mouse_face): Track the last changes in xterm.c.
3293
eaaa65b0
GM
32942001-08-28 Gerd Moellmann <gerd@gnu.org>
3295
7b0870b2
GM
3296 * xterm.c (x_set_glyph_string_background_width): Set the glyph
3297 string's background width so that multi-line mouse-face is drawn
3298 to the right edge of the window.
3299 (show_mouse_face): Set the row's mouse_face_p flag after drawing
3300 glyphs.
3301
6b6e2422 3302 * dispnew.c (direct_output_for_insert): Set updated_area
5b52c296 3303 before inserting/writing glyphs.
6b6e2422 3304
eaaa65b0
GM
3305 * xdisp.c (display_mode_element): Use string_byte_to_char to
3306 determine character positions in strings, use chars_in_text
3307 instead of strwidth.
3308 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
3309 a matrix as parameter; this is easier to use from GDB.
3310
9ad62cf8
MB
33112001-08-28 Miles Bader <miles@gnu.org>
3312
2ee1aa00
SM
3313 * textprop.c (Fprevious_single_char_property_change)
3314 (Fnext_single_char_property_change): Doc fixes.
9ad62cf8 3315
32171635
GM
33162001-08-27 Gerd Moellmann <gerd@gnu.org>
3317
47d57b22
GM
3318 * fileio.c (Finsert_file_contents): Allocate, restore, and
3319 free composition data in the case of REPLACE not being nil.
3320
3321 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
3322 there exist overlay strings with newlines at POS.
3323 (text_outside_line_unchanged_p): Return 0 if changes start at
3324 START and overlays exist at START. Likewise for END.
3325 (try_window_id): Give up if init_to_row_end returns 0.
3326
32171635
GM
3327 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
3328 unconditionally.
3329
e1249666
GM
33302001-08-24 Gerd Moellmann <gerd@gnu.org>
3331
33954c45
GM
3332 * keymap.c (access_keymap): Return the cdr of the binding of
3333 a generic character instead of its definition (KEY . BINDING).
3334
e1249666
GM
3335 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
3336 to 0 also in the REPLACE case.
3337
fb4c6c96
AC
33382001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
3339
3340 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
3341 open to determine whether file is readable (as for DOS_NT).
3342
59ecf80b
GM
33432001-08-23 Gerd Moellmann <gerd@gnu.org>
3344
3345 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
3346 coding.type is coding_type_no_conversion or coding_type_raw_text,
3347 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
3348 non-nil instead of just setting enable_multibyte_characters in the
3349 buffer to nil.
3350
40e33037
GM
33512001-08-22 Gerd Moellmann <gerd@gnu.org>
3352
374388c3
GM
3353 * dispextern.h (struct face_cache): Add member
3354 menu_face_changed_p.
3355
3356 * xfaces.c (menu_face_changed_default): New variable.
3357 (menu_face_changed_count): Variable removed.
3358 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
3359 the menu_face_changed_default flag, otherwise set the FRAME's
3360 menu_face_changed_p flag if the `menu' face has been changed.
3361 Prevent calling set_font_frame_param if FRAME is t.
3362 (make_face_cache): Initialize cache's menu_face_changed_p
3363 from menu_face_changed_default.
3364 (realize_basic_faces): Look into the frame's face cache to
3365 determine if the menu appearance needs updating.
3366
40e33037
GM
3367 * keymap.c (access_keymap): Fix last change to not consider
3368 IDX when it has modifiers.
3369
859ea4b8
GM
33702001-08-21 Gerd Moellmann <gerd@gnu.org>
3371
3372 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
3373 . BINDING) exists, where GENERIC-CHAR is the generic character of
3374 the charset of IDX, return BINDING unless there exists a binding
3375 for IDX itself.
3376
e8660d73
GM
33772001-08-16 Gerd Moellmann <gerd@gnu.org>
3378
cca1b1d7
GM
3379 * xrdb.c (SYSV): Don't define on Solaris 2.
3380 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
3381
e8660d73 3382 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
2ee1aa00 3383 of the screen line, not text line, containing IT's current position.
e8660d73 3384
93aba6fc
GM
33852001-08-15 Gerd Moellmann <gerd@gnu.org>
3386
288d4e06
GM
3387 * window.c (window_scroll_pixel_based): Don't recenter if
3388 PT is partially visible in the window.
3389
3452efc2
SM
3390 * xterm.c (expose_window_tree, expose_window, expose_line):
3391 Return 1 when overwriting mouse-face.
82f053ab
GM
3392 (expose_frame): If mouse-face was overwritten, redo it.
3393
93aba6fc
GM
3394 * xfaces.c (x_update_menu_appearance): Don't call
3395 set_frame_menubar, let the next redisplay do it.
3396
858a55c1
AI
33972001-08-14 Andrew Innes <andrewi@gnu.org>
3398
3399 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
3400 drawing glyph string.
3401
3a990b67
EZ
34022001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
3403
3404 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
3405 running HI-UX/MPP.
3406
04386463
GM
34072001-08-14 Gerd Moellmann <gerd@gnu.org>
3408
3409 * xfaces.c (x_update_menu_appearance): Save and restore value of
3410 interrupt_input_blocked.
3411
3e6385a4
GM
34122001-08-13 Gerd Moellmann <gerd@gnu.org>
3413
b0e619b4
GM
3414 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
3415 a line start, move back to the line start.
3452efc2 3416
0de73d5a
GM
3417 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
3418 exactly when a mini-buffer is active.
3419
3e6385a4
GM
3420 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
3421 in units of 1/8 character on non window-system frames.
3422 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
3423
d1b5f629
EZ
34242001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
3425
3426 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
3427 a doc string.
3428
eaa2319f
GM
34292001-08-09 Gerd Moellmann <gerd@gnu.org>
3430
8e3189f0
GM
3431 * keyboard.c (Vpre_help_message): New variable.
3432 (syms_of_keyboard): Initialize and staticpro it.
3433 (show_help_echo): Record current message before displaying a
3434 help-echo, and restore that message when clearing the help.
3435
eaa2319f
GM
3436 * xfns.c (x_create_im): Remove prototype.
3437
3438 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
3439
3440 * dispnew.c (adjust_glyph_matrix): Undo last change.
3452efc2 3441
eaa2319f
GM
34422001-08-08 Gerd Moellmann <gerd@gnu.org>
3443
3444 * dispnew.c (adjust_glyph_matrix): In the optimization for
3452efc2 3445 windows whose height has changed, disable partially visible lines.
eaa2319f 3446
17fdcfc8
GM
34472001-08-07 Gerd Moellmann <gerd@gnu.org>
3448
22d01aed 3449 * window.c (Frecenter): If ARG < 0, and on a window system
3452efc2 3450 frame, count in some empty lines when we can't move -ARG lines down.
22d01aed 3451
17fdcfc8
GM
3452 * xdisp.c (start_display): Don't try to determine the continuation
3453 lines width if lines are truncated. It's superfluous and leads to
3454 incorrect results if POS is not visible in the window after
3455 reseating the iterator at the previous line start.
3456
8e3fe78e
GM
34572001-08-06 Gerd Moellmann <gerd@gnu.org>
3458
3459 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
3460
98a8938c
GM
34612001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
3462
3463 * alloc.c (init_stack): Remove declaration.
3464
18f9986a
GM
34652001-08-03 Gerd Moellmann <gerd@gnu.org>
3466
5e1f85e0
GM
3467 * keyboard.c (read_key_sequence): Check that key is an integer
3468 before comparing it with quit_char.
3469 (add_command_key): Use larger_vector.
3470 (read_char_x_menu_prompt): Instead of converting symbol and
3471 integer events into conses (EVENT . nil), use (EVENT . disabled)
3638868e 3472 which cannot be confused with valid events.
5e1f85e0
GM
3473 (read_char): When reading from Vunread_command_events, check for
3474 events of the form (EVENT . disabled) instead of
3475 (EVENT . nil).
3476
18f9986a
GM
3477 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
3478 a float, determine the max height from the frame's height.
3479
fbc7f2a6
GM
34802001-08-02 Gerd Moellmann <gerd@gnu.org>
3481
3482 * xdisp.c (redisplay_internal): Take message_cleared_p into
3483 account only if minibuf_level == 0.
3484
81b1a79d
GM
34852001-08-01 Gerd Moellmann <gerd@gnu.org>
3486
e5c60873
GM
3487 * xdisp.c (redisplay_internal): Add a check for the last
3488 displayed message.
3452efc2 3489
6e019995
GM
3490 * xdisp.c (message_cleared_p): New variable.
3491 (clear_message): Set message_cleared_p when clearing the current
3492 message.
3493 (redisplay_internal): Look at message_cleared_p to capture
3494 the case that the echo area should be cleared.
3495
308a74d8
GM
3496 * keyboard.c (command_loop_1): Fix spelling of
3497 resize_echo_area_exactly.
3498
3452efc2 3499 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
308a74d8
GM
3500
3501 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
3502
81b1a79d
GM
3503 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
3504 current matrix when the window gets smaller.
3505
ada329e6
EZ
35062001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
3507
3508 * print.c (strout): Cast the character passed to insert_char to
3509 unsigned char, to avoid sign extension when it is promoted to int.
3510
ed86208c
GM
35112001-07-31 Gerd Moellmann <gerd@gnu.org>
3512
3513 * fileio.c (Finsert_file_contents): Don't treat a return value
3514 of 0 from emacs_read as an IO error.
3515
6594ac22
GM
35162001-07-30 Gerd Moellmann <gerd@gnu.org>
3517
cef68af5
GM
3518 * keyboard.c (abs): New macro.
3519 (double_click_fuzz): New variable.
3520 (make_lispy_event): Use it to determine what makes a double-click.
3521 (syms_of_keyboard): DEFVAR_INT it.
3522
6594ac22
GM
3523 * xmenu.c (set_frame_menubar): Take into account that
3524 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
3525 <raeburn@gnu.org>.
3526
75c5350a
GM
35272001-07-27 Gerd Moellmann <gerd@gnu.org>
3528
3529 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
3530
3531 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
3532 of row's visible height.
3533
3534 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
3452efc2
SM
3535 deal with the first overlay string having an image `display' property.
3536 (try_window_reusing_current_matrix, compute_line_metrics):
3537 Fix computation of row's visible height for the case that part of the
75c5350a
GM
3538 row is invisible above and part of the row is at the same time
3539 invisible below the window.
3540
ac49effe
GM
35412001-07-26 Gerd Moellmann <gerd@gnu.org>
3542
3543 * xfns.c (x-show-tip): Doc fix.
3452efc2 3544
ac49effe
GM
3545 * xfns.c (Vx_max_tooltip_size): New variable.
3546 (syms_of_xfns): DEFVAR_LISP it.
3547 (Fx_show_tip): Set frame's window_width to the width of the
3548 window. Use a maximum tooltip size specified by
3549 Vx_max_tooltip_size, if that has valid contents.
3550 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3452efc2 3551
8c3b00cb
AI
35522001-07-26 Andrew Innes <andrewi@gnu.org>
3553
3554 * w32term.c (x_display_list): New variable.
3555 (w32_term_init): Set it.
3556
3557 * w32term.h (x_display_list): New extern.
3558
16098288
GM
35592001-07-26 Gerd Moellmann <gerd@gnu.org>
3560
3561 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
3452efc2
SM
3562 is non-nil, instead of when redisplaying_p is non-zero.
3563 See comment there.
16098288
GM
3564 (mark_window_display_accurate_1): Add an assertion.
3565
64c5be50
GM
35662001-07-25 Gerd Moellmann <gerd@gnu.org>
3567
e743f599
GM
3568 * dispextern.h (struct it): Increase size of ctl_chars to 16.
3569
563b384d
GM
3570 * xfns.c (Fx_file_dialog): Block/unblock input while processing
3571 events so that we get a chance of processing expose events.
3572
64c5be50
GM
3573 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
3574
296808a5
GM
35752001-07-24 Gerd Moellmann <gerd@gnu.org>
3576
3577 * xfns.c (valid_image_p): Protect better against invalid image
3578 specifications. Previous code could signal an error.
3579
5247262a
GM
35802001-07-23 Gerd Moellmann <gerd@gnu.org>
3581
3452efc2 3582 * indent.c (current_column): Fix column computation in the
f1004faf
GM
3583 presence of display table entries.
3584 (current_column_1, Fmove_to_column, compute_motion): Likewise.
3585
dd42b31a
GM
3586 * dispnew.c (adjust_glyph_matrix): In the optimization for
3587 windows whose height has changed, use the new window height
3588 to compute which rows to invalidate.
3589
9e5a7f2a
GM
3590 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
3591 (MAX_10_EXP): New macro.
3592 (Fformat): Use it.
3593
5247262a
GM
3594 * coding.c (code_convert_region): Handle the multibyte case if
3595 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
3596
177ab8ce
GM
35972001-07-20 Gerd Moellmann <gerd@gnu.org>
3598
6e07c0a5
GM
3599 * dispextern.h (struct face): Change type of `stipple' to
3600 int; it's an ID.
3601
177ab8ce
GM
3602 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
3603
b5b80599
GM
36042001-07-19 Gerd Moellmann <gerd@gnu.org>
3605
4e2a256b
GM
3606 * dispnew.c (update_window): Don't set the cursor at the end
3607 of the update if display update has been paused.
3608
3452efc2 3609 * composite.h (syms_of_composite): Renamed from syms_of_composition.
b5b80599 3610
c1fd9232
KR
36112001-07-18 Ken Raeburn <raeburn@gnu.org>
3612
3613 * fns.c (Fset_char_table_default): Check that a charset is defined
3614 before checking its dimension.
3615
928a85c1
KR
36162001-07-17 Ken Raeburn <raeburn@gnu.org>
3617
3618 * coding.c (setup_coding_system): Don't do any designation based
3619 on reg_bits if charset is not yet defined.
3620
fb4c6c96 3621 * lisp.h (XVECTOR): Verify correct object type before returning a
232e274c
KR
3622 pointer, using eassert.
3623
de11c1ea
GM
36242001-07-17 Gerd Moellmann <gerd@gnu.org>
3625
3452efc2
SM
3626 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
3627 Increase to 4096 because of paste problems reported on GNU/Linux.
de11c1ea 3628
467f1209
GM
36292001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
3630
3631 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
3632
c3d6be34
GM
36332001-07-16 Gerd Moellmann <gerd@gnu.org>
3634
c1d61a7d
GM
3635 * fileio.c (unwind_read): Function removed.
3636 (read_non_regular, read_non_regular_quit): New functions.
3637 (Finsert_file_contents): When reading from non-regular files,
3638 arrange to catch a `quit' and terminate the loop. Rearrange
3639 code so that a `quit' when reading from a regular file doesn't
3640 insert text in the buffer.
3641
c3d6be34
GM
3642 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
3643 Clear faces afterwards.
3644 (clear_font_table): Take a x_display_info parameter. Don't free
3645 fonts being the default font of any frame on the given display.
3646
e06aa1f9
GM
36472001-07-13 Gerd Moellmann <gerd@gnu.org>
3648
3649 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
3650 instead of CHAR_STRING which can signal an error.
3651
3652 * charset.c (char_to_string_1): Extracted from char_to_string.
3653 Return -1 instead of signaling an error.
3654 (char_to_string): Use it.
3655
3656 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
3657
176c92e6
SM
36582001-07-12 Stefan Monnier <monnier@cs.yale.edu>
3659
3660 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
3661 is t, don't try to append anything to it.
3662
1c56232f
EZ
36632001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
3664
3665 * dired.c (file_name_completion): Pass dp->d_name to
3666 Fstring_match, not elt, which is always nil here.
3667
1d2b2268
GM
36682001-07-12 Gerd Moellmann <gerd@gnu.org>
3669
3670 * xselect.c (x_decline_selection_request): Handle errors
3671 caused by receivers that have vanished.
3672
3673 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
3674 ignoring events on foreign windows in #if 0. Always dispatch
3675 the event after checking it with x_handle_property_notify.
3676
3677 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
176c92e6
SM
3678 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
3679 TRACE macros to facilitate debugging. Add additional trace statements.
1d2b2268
GM
3680 (toplevel): Add prototypes for file-local functions.
3681 (x_atom_to_symbol): Remove DPYINFO parameter.
3682
fe5a0162
SM
36832001-07-11 Stefan Monnier <monnier@cs.yale.edu>
3684
3685 * w32menu.c (menubar_selection_callback, w32_menu_show):
3686 Initialize `entry' to nil.
3687 (w32_dialog_show): Remove unused `save_wv' variable.
3688 (name_is_separator): Recognize "--:foo" and "--foo-bar".
3689
a777242c
GM
36902001-07-11 Gerd Moellmann <gerd@gnu.org>
3691
8ee5b6a3
GM
3692 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
3693
d0e2444e
GM
3694 * fileio.c (unwind_read): Print a message when discarding inserted
3695 text or switching the buffer to unibyte. Change parameter.
3696 (Finsert_file_contents): Don't pass VISIT to unwind_read.
fe5a0162 3697
a777242c
GM
3698 * fileio.c (unwind_read): New function.
3699 (Finsert_file_contents): Record it as unwind-function for
3700 the case that reading is interrupted by C-g.
3701
ae794295
GM
37022001-07-10 Gerd Moellmann <gerd@gnu.org>
3703
fe5a0162 3704 * dispnew.c (update_window): Don't skip the header-line
58f8612a
GM
3705 update when scrolling_window returns 0.
3706
6b05fae3
GM
3707 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
3708
3709 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
58f8612a 3710 for the case that x_decode_color signals an error.
6b05fae3 3711
ae794295
GM
3712 * xdisp.c (add_to_log): Do nothing if called asynchronously.
3713
bb6e8cee
GM
37142001-07-09 Gerd Moellmann <gerd@gnu.org>
3715
3716 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
3717 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
3718 around ioctls.
3719
36b40a8a
EZ
37202001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
3721
24b97d4b
EZ
3722 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
3723 doc string line for dos-timezone-offset.
3724
36b40a8a
EZ
3725 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
3726 inline assembly, to avoid compiler warnings.
24b97d4b
EZ
3727 (syms_of_msdos): Add \n\ at the end of a line in the doc string
3728 line for dos-unsupported-char-glyph.
36b40a8a
EZ
3729
3730 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
3731
0967b4b0
GM
37322001-07-05 Gerd Moellmann <gerd@gnu.org>
3733
f25cfe53
GM
3734 * sound.c: Include Emacs' header files with #include "...".
3735
0967b4b0
GM
3736 * eval.c (specbind): Additionally record the buffer that was
3737 current when a buffer-local or frame-local variable was bound.
3738
c347a1c3
GM
37392001-07-04 Gerd Moellmann <gerd@gnu.org>
3740
3741 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
3742 to unibyte characters in unibyte buffers.
3743
6332ca8a
GM
37442001-07-03 Gerd Moellmann <gerd@gnu.org>
3745
38472d44
GM
3746 * eval.c (specbind): If SYMBOL has a frame-local binding, record
3747 the frame on the binding stack. Change format of entries for
3748 local bindings on the binding stack to '(SYMBOL . WHERE)'.
3749 (unbind_to): Handle unbinding a frame-local variable.
3750
6332ca8a 3751 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
fe5a0162 3752 glyphs and truncation glyphs at the end of a row from its pixel width.
6332ca8a
GM
3753 (dump_glyph_row): Print row's continuation_lines_width.
3754 (try_window_id): Take the shortcut if ZV is visible in the
3755 window, but there are actually no changes at ZV.
3756
63d1b174
GM
37572001-07-02 Gerd Moellmann <gerd@gnu.org>
3758
4c175203
GM
3759 * xterm.h (x_free_dpy_colors): Add prototype.
3760
3761 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
3762 right number of arguments.
3763
0b54ce28
GM
3764 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
3765 ($(lwlibdir)TAGS): New target.
4c175203 3766 (TAGS): Fix dependency list.
0b54ce28 3767
63d1b174
GM
3768 * xterm.c (x_list_fonts): Make sure XFreeFont is called
3769 with input blocked.
3770
d827466c
GM
37712001-06-30 Gerd Moellmann <gerd@gnu.org>
3772
3773 * emacs.c (main): Remove extern declaration for sys_nerr, which
3774 isn't used and causes a compilation error with GCC 3.0 on
3775 FreeBSD 4.3.
3776
b5cb1ada
GM
37772001-06-27 Gerd Moellmann <gerd@gnu.org>
3778
a5d3ec3f 3779 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
3452efc2 3780 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
a5d3ec3f
GM
3781 (toplevel): Include <signal.h> and syssignal.h.
3782
b5cb1ada
GM
3783 * sound.c (vox_configure, vox_close): Turn off atimers
3784 around ioctls.
3785
d9bad487
GM
37862001-06-26 Gerd Moellmann <gerd@gnu.org>
3787
fdbb67fe
GM
3788 * keyboard.c (read_char) <non_reread>: Record the previous idle
3789 start time before calling timer_stop_idle.
3790 (read_char) <reread_first>: After processing a help-echo event,
3791 restore the previous idle start time.
3792
d9bad487
GM
3793 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
3794 the start of invisible text.
3795 (setup_for_ellipsis): New function.
3796 (next_overlay_string): After all overlay strings have been
3797 processed, display an ellipsis if necessary.
3798 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
3799 (push_it): Initialize display_ellipsis_p on the iterator's stack.
3800
3801 * dispextern.h (struct iterator_stack_entry): Add member
3802 display_ellipsis_p.
3803
2b9c25e0
GM
38042001-06-25 Gerd Moellmann <gerd@gnu.org>
3805
80de57df
GM
3806 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
3807 on the value of the wait-for-wm frame parameter.
3808
3809 * xterm.h (struct x_output): Add member wait_for_wm.
3810
3811 * xfns.c (Qwait_for_wm): New variable.
3812 (x_frame_parms): Add entry for `wait-for-wm".
3813 (x_set_wait_for_wm): New function.
3814 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
3815 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
3816
2b9c25e0
GM
3817 * xdisp.c (try_window_id) <all changes below window end>: Don't
3818 take this shortcut if ZV is visible in the window.
3819 (try_window_id): When checking for window start being in changed
3820 text, don't check that the buffer's size has changed.
3821
f772775c
RS
38222001-06-23 Richard M. Stallman <rms@gnu.org>
3823
3824 * minibuf.c (Fcompleting_read): Doc fix.
3825
fa9090b8
GM
38262001-06-19 Gerd Moellmann <gerd@gnu.org>
3827
3828 * composite.c (Ffind_composition_internal): Accept ZV
3829 and a string's end position as POS.
3830
f6f1beba
GM
38312001-06-18 Gerd Moellmann <gerd@gnu.org>
3832
3833 * composite.c (Ffind_composition_internal): Check POS
3834 for validity.
3835
0ae83348
EZ
38362001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
3837
3838 * editfns.c (Fmessage_box): If the frame is not under a window
3839 system, output the message in the echo area.
3840
e4cdc335
RS
38412001-06-14 Richard M. Stallman <rms@gnu.org>
3842
3843 * xdisp.c (try_window_id): When EOB is visible, don't treat
3844 insertion at EOB as if it were "off the bottom of the screen."
3845
a55a5f3c
AI
38462001-06-11 Andrew Innes <andrewi@gnu.org>
3847
3848 * w32proc.c (create_child): Add new parameter is_gui_app.
3849 (w32_executable_type): Add new parameter is_gui_app.
3850 (sys_spawnve): Use it.
3851 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
3852 SIGQUIT. This matches better how the signals are interpreted by
3853 MSVC compiled programs.
3854 (syms_of_ntproc): Update docstring.
3855
1b85dc1c
SM
38562001-06-02 Stefan Monnier <monnier@cs.yale.edu>
3857
3858 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
3859 well otherwise note_mouse_highlight might optimize away highlighting
3860 if we pass over that same overlay again.
3861
b75f8eab
EZ
38622001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
3863
3864 * lread.c (Fload): Document that the argument is run via
3865 substitute-in-file-name.
3866
94843cc1
GM
38672001-05-31 Gerd Moellmann <gerd@gnu.org>
3868
b14659e6
GM
3869 * Makefile.in (bootstrap-doc): New target.
3870 (bootstrap-emacs): Depend on it.
3871
0894672f
GM
3872 * fileio.c (Fdo_auto_save): Don't try to create the directory of
3873 auto-save-list-file-name when shutting down Emacs, because
3874 creating the directory might signal an error, and leaves
3875 Emacs in a strange state.
3876
94843cc1
GM
3877 * term.c: (tty_cursor_hidden): New variable.
3878 (update_begin): Don't call tty_hide_cursor. Clean up.
3879 (update_end, set_terminal_window, set_scroll_region): Clean up.
3880 (ring_bell, reset_terminal_modes): Clean up.
3881 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
3882 on tty_cursor_hidden.
3883 (write_glyphs): Call tty_hide_cursor.
3884
db3a49a6
SM
38852001-05-30 Stefan Monnier <monnier@cs.yale.edu>
3886
3887 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
3888
8bd189fb
GM
38892001-05-30 Gerd Moellmann <gerd@gnu.org>
3890
6f1be3b9
GM
3891 * xfns.c (enum image_value_type): New enumerator
3892 IMAGE_STRING_OR_NIL_VALUE.
3893 (parse_image_spec): Handle it.
3894 (xbm_format, pbm_format): Use it for :foreground and :background.
3895 (xbm_load, pbm_load): Check for nil color names.
3896
8bd189fb
GM
3897 * xterm.c (note_mouse_highlight): If an overlapping overlay
3898 exists, but we find that we highlight the same overlay as before,
3899 don't do the highlighting again.
3900
7bdba03c
GM
39012001-05-29 Gerd Moellmann <gerd@gnu.org>
3902
4c329aa8
GM
3903 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
3904 Protect unibyte strings created by replacing their multibyte
3905 equivalents in menu_items.
3906
e15e2828
GM
3907 * keymap.c (Fsingle_key_description): NUL-terminate the string
3908 buffer before calling build_string.
3909
7bdba03c
GM
3910 * callproc.c (Fcall_process): Deal with decode_coding returning
3911 CODING_FINISH_INCONSISTENT_EOL.
3912
89c8dc6c
GM
39132001-05-28 Gerd Moellmann <gerd@gnu.org>
3914
db3a49a6 3915 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3d9d7a9b
GM
3916 an item's name with its key description in case the description
3917 is a multibyte string.
3918
3919 * keymap.c (Fsingle_key_description): Create a multibyte string
3920 only if necessary.
3921
eb04d6cd
GM
3922 * macros.c (Fstart_kbd_macro): Doc fix.
3923
8bd6307f
GM
3924 * xterm.c (cursor_in_mouse_face_p): New function.
3925 (x_draw_stretch_glyph_string): Use it to choose a different GC
3926 when drawing a cursor within highlighted text.
3927
e26c4089
GM
3928 * editfns.c (char_property_eq): Put in #if 0.
3929
3930 * indent.c (string_display_width): Put in #if 0.
3931
3932 * lread.c (Fload): Remove unused label.
3933
89c8dc6c
GM
3934 * termcap.c (speeds): Put in #if 0.
3935
9a1211f2
GM
39362001-05-18 Gerd Moellmann <gerd@gnu.org>
3937
29148a3f
GM
3938 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
3939
9a1211f2
GM
3940 * xfaces.c (xlfd_point_size): Don't divide pixel size from
3941 transformation matrix by 10.
3942
09393d07
GM
39432001-05-16 Gerd Moellmann <gerd@gnu.org>
3944
3945 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
3946 only if it's equal to the former foreground pixel color.
db3a49a6 3947 (x_set_foreground_color, x_set_background_color)
09393d07
GM
3948 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
3949
460e6bae
GM
39502001-05-16 Dave Love <fx@gnu.org>
3951
3952 * insdel.c (signal_before_change, signal_after_change): Consider a
3953 local change hook which changes the buffer.
99c78ce8
GM
3954
3955 * process.c (read_process_output): Don't call signal_after_change
3956 and update_compositions after insert_from_string_before_markers.
3957
dbcf3c03
GM
39582001-05-16 Gerd Moellmann <gerd@gnu.org>
3959
a90b3d3c
GM
3960 * xfaces.c (split_font_name): Use the right field when
3961 checking for `[...]' syntax.
3962
1b7818b4
GM
3963 * buffer.c (copy_overlays): New function.
3964 (clone_per_buffer_values): Use it.
3965
3966 * buffer.h (OVERLAY_PLIST): New macro.
3967
9bae8781
GM
3968 * keymap.c (Fsingle_key_description): Replace a build_string with
3969 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
3970
dbcf3c03
GM
3971 * fontset.c (Ffontset_info): Check that face is non-null
3972 before accessing its fields.
3973
8a1ae4dd
GM
39742001-05-15 Gerd Moellmann <gerd@gnu.org>
3975
18a0a39e
GM
3976 * keyboard.c (read_key_sequence): Prevent generating a fake
3977 prefix key twice.
3978
e335b66a
GM
3979 * xfaces.c (split_font_name): Handle `[...]' for the right
3980 font name fields.
3981
8a1ae4dd
GM
3982 * ccl.c (ccl_driver): Don't copy remaining bytes in case
3983 of CCL_STAT_INVALID_CMD.
3984
3cf80731
SM
39852001-05-14 Stefan Monnier <monnier@cs.yale.edu>
3986
33568849
SM
3987 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
3988 in <var> has no default value yet.
3989
3cf80731
SM
3990 * xfaces.c (try_alternative_families): First try the FAMILY.
3991 And if nothing is found in the end, try again with scalable fonts.
3992 (try_font_list): Let try_alternative_families do a bit more of
3993 the work. Only use FAMILY if it is not nil.
3994 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
3995
933b0249
GM
39962001-05-14 Gerd Moellmann <gerd@gnu.org>
3997
58e5af83
GM
3998 * xterm.c (note_mouse_highlight): Avoid changing the mouse
3999 pointer shape when show_mouse_face has already done it.
33568849 4000
58e5af83 4001 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
557f7c34
GM
4002 full-width rows.
4003
7b16a6bf
GM
4004 * xfaces.c (split_font_name): Make sure to leave the loop
4005 with the right value of `i'.
3cf80731 4006
933b0249
GM
4007 * xfaces.c (split_font_name): Handle matrix transformations
4008 in the pixel and point size fields of XLFD font names.
4009 (xlfd_point_size): Likewise.
4010
dddcbf00
EZ
40112001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
4012
3cf80731 4013 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
c7501041
EZ
4014 (x_to_w32_font): Add prototype.
4015
7689ef0b
EZ
4016 * regex.c (malloc, realloc, free) [emacs]: Undefine before
4017 redefining, to avoid compiler warnings.
4018
e7c15bba
EZ
4019 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
4020
dddcbf00
EZ
4021 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
4022 (w32_get_bdf_glyph): Cast between unsigned char and char when
4023 passing arguments to subroutines, to shut up compiler warnings.
4024 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
4025 GET_HEX_VAL.
4026
4027 * xfaces.c: Include keyboard.h before frame.h, not after it.
4028
4029 * widget.c: Include keyboard.h before frame.h.
4030
4031 * w32term.h (struct image, struct face): Forward declaration, to
4032 avoid compiler warnings.
4033
7bd2d083
GM
40342001-05-11 Gerd Moellmann <gerd@gnu.org>
4035
47e72862
GM
4036 * keyboard.c (read_key_sequence): Don't modify events when
4037 generating fake prefix keys (mode-line, scroll-bar, ...) since
4038 this prevents proper processing of such events when pushed back
4039 into unread-command-events.
4040
dd5f324b
GM
4041 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
4042 actually redrawn. Make the function static.
4043 (note_mouse_highlight): Fix a case where the mouse cursor
4044 was changed back to the text cursor.
4045
4046 * xterm.h (clear_mouse_face): Remove prototype.
4047
d88a79d4
GM
4048 * xdisp.c (try_window_id): Fix the fix and set the right
4049 window_end_vpos.
4050
4051 * xdisp.c (try_window_id): Fix computation of window end in the
4052 case that lines were deleted at the end of the window. Add some
4053 more debug_method_adds.
0416532f 4054
7bd2d083
GM
4055 * xfaces.c (try_alternative_families): New function.
4056 (try_font_list): Use it. If ATTRS specifies a family, check
4057 fonts from that family first.
4058 (choose_face_font): Remove code setting the family part of
4059 the pattern to nil.
4060
23fca891
GM
40612001-05-10 Gerd Moellmann <gerd@gnu.org>
4062
ff9aa2ca
GM
4063 * xdisp.c (try_window_id): Fix case of all changes before
4064 the window start.
7b2654b5 4065
23fca891
GM
4066 * xdisp.c (try_window_id): Add some xasserts.
4067
e9726794
GM
40682001-05-09 Gerd Moellmann <gerd@gnu.org>
4069
4070 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
4071
9e53a675
GM
40722001-05-09 Dave Love <fx@gnu.org>
4073
4074 * xdisp.c (GIVE_UP): Fix for K&R C.
4075
0d487c52
GM
40762001-05-09 Gerd Moellmann <gerd@gnu.org>
4077
fe88d421
GM
4078 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
4079
0d487c52
GM
4080 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
4081 back to the text cursor shape without need.
4082
1e9fc92e
GM
40832001-05-07 Gerd Moellmann <gerd@gnu.org>
4084
a2a6232e
GM
4085 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
4086
4087 * dispextern.h (inverse_video): Declare extern.
4088
1e9fc92e
GM
4089 * keyboard.c (delete_kboard): Handle the case that selected_frame
4090 has been deleted in the course of x_connection_closed.
4091
12949a7f
EZ
40922001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
4093
7b2654b5
SM
4094 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
4095 Fix the change from 2001-04-30.
12949a7f 4096
2fa2f461
GM
40972001-05-03 Gerd Moellmann <gerd@gnu.org>
4098
a779d213
GM
4099 * xfns.c (file_dialog_unmap_cb): New function.
4100 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
4101 where a dialog is closed via the window manager.
4102
7b2654b5 4103 * xdisp.c (try_window_id): Cases of changes all in front of
2fa2f461
GM
4104 the window start or all below the window end mostly rewritten.
4105 (redisplay_window): Move the tests if try_window_id is
4106 applicable to try_window_id.
4107 (GIVE_UP): New macro.
4108
3356df63
GM
41092001-05-02 Gerd Moellmann <gerd@gnu.org>
4110
a39202f6 4111 * xterm.c (expose_window): Return int. If W is the window
7b2654b5
SM
4112 currently being updated, mark the frame garbaged.
4113 Fix computation of rows intersecting the exposed rectangle.
a39202f6 4114 (expose_window_tree): Stop when expose_window returns 0.
7b2654b5 4115
3356df63
GM
4116 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
4117 again if it has already been drawn.
4118
a9d2fd1d
SM
41192001-05-01 Stefan Monnier <monnier@cs.yale.edu>
4120
4121 * syntax.c (update_syntax_table): Check that oldi has the same
4122 properties as old_prop before deciding not to invalidate.
4123
c95fc5f1
GM
41242001-04-30 Gerd Moellmann <gerd@gnu.org>
4125
a9793e45
GM
4126 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
4127 read-only text that is so because of text properties.
4128
c95fc5f1 4129 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
a9d2fd1d 4130 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
c95fc5f1
GM
4131 windows that are components of a Lucid menu bar.
4132
5a5d9185
GM
41332001-04-27 Gerd Moellmann <gerd@gnu.org>
4134
4135 * term.c (turn_on_face): Fix reverse video handling on terminals
4136 that don't support colors.
4137
ba973f7a
GM
41382001-04-26 Gerd Moellmann <gerd@gnu.org>
4139
4140 * editfns.c (save_excursion_restore): Don't use XBUFFER on
4141 a non-buffer.
4142
8c56a983
GM
41432001-04-25 Gerd Moellmann <gerd@gnu.org>
4144
a728644c
GM
4145 * term.c (toggle_highlight): New function.
4146 (turn_on_face): Change handling of reverse video.
4147
7b2654b5
SM
4148 * process.c (wait_reading_process_input):
4149 Call record_asynch_buffer_change only if a timer really changed buffers.
c88164fe 4150
bfd8410f
GM
4151 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
4152 of the number of overlays to check.
4153
be2488ca
GM
4154 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
4155
8c56a983
GM
4156 * xdisp.c (try_window_id): Fix a case where window_end_pos
4157 and window_end_bytepos were not adjusted.
4158
522d42f7
GM
41592001-04-23 Gerd Moellmann <gerd@gnu.org>
4160
4161 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
4162 zero instead of -1.
4163
78c1afb6
EZ
41642001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
4165
a9d2fd1d
SM
4166 * process.c (wait_reading_process_input) [!subprocesses]:
4167 Don't reference waiting_for_user_input_p, it's not defined in the
4168 branch without async subprocesses support.
78c1afb6 4169
a2fab450
GM
41702001-04-19 Gerd Moellmann <gerd@gnu.org>
4171
a122a38e
GM
4172 * keyboard.c (delete_kboard): Prevent a dangling reference
4173 from current_kboard to KB, which is freed.
4174
a9d2fd1d
SM
4175 * process.c (wait_reading_process_input):
4176 Call record_asynch_buffer_change after running timers, to make
a2fab450
GM
4177 read_key_sequence aware of buffer changes from under it.
4178
0f8d6dc7
GM
41792001-04-18 Gerd Moellmann <gerd@gnu.org>
4180
eeffb293
GM
4181 * xfaces.c (Qscalable_fonts_allowed): New variable.
4182 (realizing_basic_faces_p): Removed.
2fa2f461
GM
4183 (x_face_list_fonts): Special handling for realizing_basic_faces_p
4184 removed.
eeffb293 4185 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
7b2654b5
SM
4186 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
4187 for scalable-fonts-allowed to t.
eeffb293 4188
0f8d6dc7
GM
4189 * fileio.c (Finsert_file_contents): If the file size returned from
4190 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
a9d2fd1d 4191 read from files on a procfs whose contents are generated dynamically.
0f8d6dc7 4192
eec2d1de
EZ
41932001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
4194
4195 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
4196 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
4197 (__memalign_hook): Make the two prototypes consistent.
4198
f4f480bd
GM
41992001-04-17 Gerd Moellmann <gerd@gnu.org>
4200
4201 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
4202 matrix of mini-windows.
4203
52283633
SM
42042001-04-12 Stefan Monnier <monnier@cs.yale.edu>
4205
4206 * intervals.c (find_interval): Don't rebalance during signal handling.
4207
ec2423c9
GM
42082001-04-11 Gerd Moellmann <gerd@gnu.org>
4209
30cb0001 4210 * fns.c: Include blockinput.h.
52283633 4211
ec2423c9
GM
4212 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
4213
719d83ad
GM
42142001-04-10 Gerd Moellmann <gerd@gnu.org>
4215
60f8d735
GM
4216 * fns.c (Fcompare_strings): Fix return values.
4217
afffeb57
GM
4218 * window.c (window_scroll): Change the meaning of N to mean
4219 N screen-fulls or N lines.
4220 (window_scroll_pixel_based, window_scroll_line_based)
4221 (scroll_command, Fscroll_other_window): Change accordingly.
4222
52283633
SM
4223 * window.c (window_scroll_pixel_based, Frecenter):
4224 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
4225 height of the window.
4226
4227 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
4228 instead of using it.last_visible_y for the height of the window.
52283633 4229
719d83ad 4230 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
8ddf3ee1 4231 From Dan Holmsand <dan@eyebee.com>.
719d83ad
GM
4232
4233 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
8ddf3ee1
GM
4234 able to write to hidden and system files. From Dan Holmsand
4235 <dan@eyebee.com>.
719d83ad 4236
8ddf3ee1
GM
4237 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
4238 Holmsand <dan@eyebee.com>.
719d83ad 4239
522ed7fb
GM
42402001-04-09 Gerd Moellmann <gerd@gnu.org>
4241
9170e5d4
GM
4242 * fns.c (Fplist_get, Fplist_put): Add QUITs.
4243
522ed7fb
GM
4244 * window.c (window_internal_height): Return 1 less if the
4245 window has a header line.
4246
4247 * xdisp.c (try_window_id): When scrolling on a terminal, take
4248 the change of window_internal_height into account.
4249
ceeb3d7d
EZ
42502001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
4251
4252 * gmalloc.c (align): If the argument SIZE would overflow
4253 __malloc_ptrdiff_t, fail right away.
4254
63685b9d
GM
42552001-04-06 Gerd Moellmann <gerd@gnu.org>
4256
4257 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
4258 Make sure the tooltip is completely visible.
4259 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
4260
4261 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
4262
4263 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
4264
3ffb33bb
DL
42652001-04-06 Dave Love <fx@gnu.org>
4266
52283633
SM
4267 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
4268 Fix test of `from'.
3ffb33bb 4269
869fb12c
GM
42702001-04-06 Gerd Moellmann <gerd@gnu.org>
4271
52283633 4272 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 4273
869fb12c
GM
4274 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
4275
441bf856
GM
42762001-04-05 Gerd Moellmann <gerd@gnu.org>
4277
4d664b04
GM
4278 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
4279
52283633 4280 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 4281
30ca89f5
GM
4282 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
4283 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
4284
4285 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
4286 shell widget's position only if it is non-null.
4287
52283633
SM
4288 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
4289 Set f->output_data.x->widget to null after destroying it.
30ca89f5 4290
81a81c0f
GM
4291 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
4292 FILENAME to bring it in synch with the documentation.
4293
441bf856
GM
4294 * xfaces.c (realizing_basic_faces_p): Renamed from
4295 realize_default_face_p.
4296 (realize_basic_faces): Set/clear realizing_basic_faces_p.
4297 (realize_default_face): Don't set the flag.
4298
702a1e8e
GM
42992001-04-04 Gerd Moellmann <gerd@gnu.org>
4300
1013f4e3
GM
4301 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
4302
52283633
SM
4303 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
4304
1013f4e3
GM
4305 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
4306 the buffer that was used for echoing.
4307
702a1e8e
GM
4308 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
4309 (first_font_matching): Removed unused function.
4310 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
4311 (may_use_scalable_font_p): Remove parameter FONT; rename
4312 parameter NAME to FONT.
4313 (x_face_list_fonts): Fix missing bounds check.
4314 (realizing_default_face_p): New variable.
4315 (realize_default_face): Set and clear that flag.
4316 (x_face_list_fonts): When called during the realization of the
4317 default face, and no matching fonts are found when ignoring
4318 scalable fonts and fonts matching a regexp from
4319 face-ignored-fonts, try without ignoring fonts.
4320
f9dbcda4
GM
43212001-04-03 Gerd Moellmann <gerd@gnu.org>
4322
ad18ffb1
GM
4323 * xfns.c (postprocess_image): New function.
4324 (lookup_image): Call it for all image types except PostScript.
4325 (x_kill_gs_process): Call postprocess_image.
4326
f9dbcda4
GM
4327 * xterm.c (x_use_underline_position_properties): New variable.
4328 (x_draw_glyph_string): Use it.
4329 (syms_of_xterm): DEFVAR_BOOL it.
4330
651f03b6
GM
43312001-04-02 Gerd Moellmann <gerd@gnu.org>
4332
4333 * xterm.c (x_alloc_nearest_color_1): New function.
4334 (x_alloc_nearest_color): Use it.
4335 (x_color_cells): Take a Display as argument, instead of a frame.
4336 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
4337 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
4338 (x_initialize): Register cvt_string_to_pixel as resource converter
4339 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
4340
73d75a62
GM
43412001-03-30 Gerd Moellmann <gerd@gnu.org>
4342
b2046df8
GM
4343 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
4344 (set_iterator_to_next): If a string from a display property ends,
4345 consider the case that this might also be the end of an
4346 overlay string having the display property.
4347
52283633 4348 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 4349
87d8eba4
GM
4350 * xdisp.c (reseat_to_string): Undo last change.
4351
73d75a62
GM
4352 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
4353 matrix of a window when the header line changes, when
4354 new rows are allocated, or when the width changes.
4355
911a2406
EZ
43562001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
4357
52283633 4358 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 4359
aea51abe
EZ
43602001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
4361
4362 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
4363 deprecated.
4364
176bc847
GM
43652001-03-29 Gerd Moellmann <gerd@gnu.org>
4366
ed31fabf
GM
4367 * data.c (Fsubr_interactive_form): New function.
4368 (syms_of_data): Defsubr it.
4369
176bc847
GM
4370 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
4371 (live_float_p, live_misc_p): Return 1 only if the offset of the
4372 pointer in its block is >= 0.
4373
e59d0e9d
GM
43742001-03-28 Paul Eggert <eggert@twinsun.com>
4375
4376 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
4377 microseconds calcuation. Avoid double-rounding problem.
4378 In doc string, warn that the result is approximate.
4379
f827b862
GM
43802001-03-28 Gerd Moellmann <gerd@gnu.org>
4381
30a3f61c
GM
4382 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
4383 bind `inhibit-eval-during-redisplay' to t.
4384
4385 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
4386
4387 * xdisp.c (inhibit_eval_during_redisplay)
4388 (Qinhibit_eval_during_redisplay): New variables.
4389 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
4390 don't eval, return nil instead.
4391 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
4392 Initialize Qinhibit_eval_during_redisplay.
4393
e719f5ae
GM
4394 * xdisp.c (reseat_to_string): If STRING is multibyte, set
4395 the iterator's multibyte_p flag.
4396
deb2613a
GM
4397 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
4398 instead of setting it to zero; it's incremented for each frame
4399 where the menu face is changed.
4400
52283633
SM
4401 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
4402 change bottom shadow accordingly.
4403
4404 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
4405 intersections here.
4406 (expose_window): Do it here instead.
52283633 4407 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 4408
f827b862
GM
4409 * bytecode.c (BYTE_CODE_QUIT): New macro.
4410 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
4411
4bde0ebb
GM
44122001-03-27 Gerd Moellmann <gerd@gnu.org>
4413
607ec83c
GM
4414 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
4415 Give up if matrix starts in an ellipsis.
4416 (init_from_display_pos): Do nothing if POS doesn't specify
4417 a dpvec_index but the iterator has such a position.
4418
0245398f
GM
4419 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
4420
aba25348
GM
4421 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
4422 x/y position is (0, 0) after destroying the menu bar, restore
4423 its original position.
4424
4bde0ebb
GM
4425 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
4426 (init_from_display_pos): Use it.
4427 (try_window_reusing_current_matrix): Don't use cursor_row_p.
4428
8cdb267e
GM
44292001-03-26 Gerd Moellmann <gerd@gnu.org>
4430
4431 * xdisp.c (try_window_id): Undo last change.
4432
9948db79
EZ
44332001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
4434
4435 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
4436
4437 * buffer.c (syms_of_buffer): Doc fix.
4438
2eddf899
GM
44392001-03-26 Gerd Moellmann <gerd@gnu.org>
4440
4441 * xfaces.c (x_update_menu_appearance): Use local variable
4442 popup_path for setting font resources.
4443
6c145d35
EZ
44442001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
4445
6a65b1b5
EZ
4446 * frame.c (Fframe_list): Don't reference tip_frame if
4447 HAVE_WINDOW_SYSTEM is not defined.
4448
6c145d35
EZ
4449 * emacs.c (main): Update the copyright year. From Werner LEMBERG
4450 <wl@gnu.org>.
4451
d74c1900
GM
44522001-03-25 Gerd Moellmann <gerd@gnu.org>
4453
20fbd925
GM
4454 * xdisp.c (init_from_display_pos): Test invisible property
4455 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 4456
927c5b3b
GM
4457 * xdisp.c (redisplay_internal) <update one window>: Make sure
4458 last_arrow_position and last_arrow_string are set.
4459
d74c1900
GM
4460 * frame.c (Fframe_list): Don't return a tooltip frame.
4461
091f8878
GM
44622001-03-23 Gerd Moellmann <gerd@gnu.org>
4463
52283633
SM
4464 * xdisp.c (mark_window_display_accurate_1): New function,
4465 extracted from mark_window_display_accurate.
4466 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
4467 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
4468 (mark_window_display_accurate): Use it.
4469 (redisplay_internal): Use it for the selected window.
4470 (redisplay_internal): Avoid duplicate mark_window_display_accurate
4471 for the selected frame.
4472
ac90c44f
GM
4473 * xdisp.c Use make_number, for readability.
4474 (try_window_id): Disable rows below the window end.
4475 (try_window_reusing_current_matrix): Use cursor_row_p.
4476 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
4477 of rows.
4478 (init_from_display_pos): If POS specifies a position in a display
4479 vector, maybe get the iterator set up for that ellipsis.
43c09969 4480
091f8878
GM
4481 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
4482
991786dd
EZ
44832001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
4484
4485 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
4486
6c29b43c
GM
44872001-03-23 Gerd Moellmann <gerd@gnu.org>
4488
4489 * xfaces.c (x_update_menu_appearance): Use a different path
4490 for Lucid popup menus.
4491
d8731202
SM
44922001-03-22 Stefan Monnier <monnier@cs.yale.edu>
4493
4494 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
4495
4496 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
4497 (string_buffer_position): Use `make_number'.
4498
f61a541b
GM
44992001-03-22 Gerd Moellmann <gerd@gnu.org>
4500
3c9e997b
GM
4501 * xfaces.c (x_update_menu_appearance): Renamed from
4502 x_set_menu_face_resources. Use different resources for popups.
4503
4504 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
4505 (GC_CHECK_STRING_BYTES): Don't define.
4506
364cd450
GM
4507 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
4508 Removed, together with subroutines.
4509 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 4510 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 4511
d8731202
SM
4512 * dispextern.h (x_set_menu_resources_from_menu_face):
4513 Remove prototype.
364cd450 4514
d8731202 4515 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
4516 Remove calls to x_set_menu_resources_from_menu_face.
4517
d8731202
SM
4518 * xfaces.c (xm_set_menu_resources_from_menu_face):
4519 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
4520
4521 * xmenu.c: Include widget.h.
4522 (single_submenu): Return int. Some cleanup.
4523 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
4524
140330de
GM
45252001-03-21 Gerd Moellmann <gerd@gnu.org>
4526
4527 * xterm.c (x_update_window_end): Handle overwritten mouse face
4528 also for tool bar windows.
4529 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
4530 DRAW is DRAW_IMAGE_RAISED.
4531
1741905c
GM
45322001-03-20 Gerd Moellmann <gerd@gnu.org>
4533
fa88947e
GM
4534 * print.c (syms_of_print): Doc fixes.
4535
1741905c
GM
4536 * fns.c (Fmd5): Doc fix.
4537
ade0bee1
GM
45382001-03-19 Gerd Moellmann <gerd@gnu.org>
4539
357e7376
GM
4540 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
4541 Clear area of the frame not occupied by the scroll bar.
4542
c2c097cc
GM
4543 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
4544 tip frame's root window buffer to *tip* right after creating
4545 the frame.
4546
ade0bee1
GM
4547 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
4548 is an integer don't have to be for space characters.
4549
88c6e37e
GM
45502001-03-16 Gerd Moellmann <gerd@gnu.org>
4551
52283633
SM
4552 * indent.c (current_column, current_column_1, Fmove_to_column)
4553 (compute_motion): Handle characters from display vectors differently.
88c6e37e 4554
c62eed76
KH
45552001-03-15 Kenichi Handa <handa@etl.go.jp>
4556
4557 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
4558 drawing glyph string.
4559
c899e7e6
GM
45602001-03-15 Gerd Moellmann <gerd@gnu.org>
4561
d0bbfc99
GM
4562 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
4563 (command_loop_1): Undo last change.
4564
03d1a189
GM
4565 * xterm.c (fast_find_position): Return the correct vpos.
4566
c899e7e6 4567 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 4568 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
4569 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
4570 Call store_symval_forwarding with BUF null.
4571 (set_internal): Call store_symval_forwarding with the BUF
4572 parameter passed to set_internal. Formerly, the value was always
4573 set in the current buffer; the buffer recorded in specbind for
4574 this case wasn't used.
4575 (arith_driver): Reindent.
4576
52283633
SM
4577 * buffer.c (swap_out_buffer_local_variables):
4578 Call store_symval_forwarding with BUF null.
c899e7e6
GM
4579
4580 * lisp.h (store_symval_forwarding): Change prototype.
4581
4582 * eval.c (specbind): Call store_symval_forwarding with BUF null.
4583
57ac7c81
GM
45842001-03-14 Gerd Moellmann <gerd@gnu.org>
4585
697617d9
GM
4586 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
4587 FOR_DELETION. Avoid resizing the mini-window of the selected
4588 frame if FOR_DELETION is set.
4589 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
4590 (Fmake_frame_invisible): Change calls to do_switch_frame for new
4591 signature.
4592
4593 * window.c (Fset_window_configuration): Change call to
4594 do_switch_frame to new format.
4595
4596 * keyboard.c (quit_throw_to_read_char): Change call to
4597 do_switch_frame to new format.
4598
4599 * lisp.h (do_switch_frame): Change prototype.
4600
819dce0f
GM
4601 * frame.c (Fframe_parameters): In the `buffer-list' frame
4602 parameter, store the buffer list of FRAME, not the list of the
4603 selected frame.
4604
57ac7c81
GM
4605 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
4606 box just because the glyph row's full_width_p flag is set.
4607
65008712
GM
46082001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
4609
4610 * xdisp.c (highlight_trailing_whitespace): On character terminals,
4611 skip the padding blanks inserted in extend_face_to_end_of_line,
4612 before checking for trailing whitespace.
4613
159cf431
GM
46142001-03-13 Gerd Moellmann <gerd@gnu.org>
4615
52283633 4616 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
4617 Remove special handling for LessTif/Motif.
4618 (toplevel): Don't include Xm/Xm.h.
4619
52283633
SM
4620 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
4621 Remove workaround code for LessTif; it doesn't work anymore.
4622
2564ea1b 4623 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 4624 Xm/ScrollBarP.h.
afcdc0a1 4625
52283633
SM
4626 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
4627 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
4628 contemporary LessTif.
4629
52283633
SM
4630 * xfaces.c (xm_set_menu_resources_from_menu_face):
4631 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 4632
159cf431
GM
4633 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
4634 removing button grabs.
4635
c6f7429a
KH
46362001-03-13 Kenichi Handa <handa@etl.go.jp>
4637
cb82d767
KH
4638 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
4639 and clip-large-size-font as obsolete.
4640
c6f7429a
KH
4641 * lread.c (read_multibyte): Check the validity of multibyte
4642 sequence. If invalid, return the first byte.
4643
760cefb5
GM
46442001-03-12 Gerd Moellmann <gerd@gnu.org>
4645
4646 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
4647 before running the command; timer functions or process
4648 filters may have set it.
4649
5141f9d0
EZ
46502001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
4651
4652 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
4653 Doc fix.
4654
b6a15240
GM
46552001-03-12 Gerd Moellmann <gerd@gnu.org>
4656
4657 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
4658 to sprintf.
4659
95522746
GM
46602001-03-09 Gerd Moellmann <gerd@gnu.org>
4661
db14cfc5
GM
4662 * dispextern.h (string_buffer_position): Add prototype.
4663
52283633 4664 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
4665 (single_display_prop_string_p): New functions.
4666
4667 * xterm.c (note_mouse_highlight): If there's no help-echo on
4668 a string, look at the buffer text ``under'' it.
4669
4670 * keyboard.c (make_lispy_event): Add string info to the event,
4671 analogous to what's done on mode lines.
4672 (read_key_sequence): For a click on a string, consider `local-map'
4673 and `keymap' of that string.
4674
52283633
SM
4675 * keyboard.c (make_lispy_event, make_lispy_movement):
4676 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
4677
4678 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
4679
4680 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
4681 POS; return void.
4682
95522746
GM
4683 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
4684 flags argument to emacs_open; it seems to conflict with O_EXCL.
4685
898a399d
KH
46862001-03-09 Kenichi Handa <handa@etl.go.jp>
4687
28cd4910
KH
4688 * composite.h (struct composition): Change types of members;
4689 glyph_len to unsigned, width to unsigned short.
898a399d 4690
4cdf6a6c
AI
46912001-03-08 Andrew Innes <andrewi@gnu.org>
4692
4693 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
4694 menu titles.
4695
129004d3
GM
46962001-03-08 Gerd Moellmann <gerd@gnu.org>
4697
221dd3e7
GM
4698 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
4699 instead of nil.
4700
52283633 4701 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
4702 help-echo in strings.
4703 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
4704 (fast_find_string_pos): New function.
4705
52283633
SM
4706 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
4707 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
4708
4709 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
4710 Handle `mouse-face'.
4711
4712 * dispextern.h (face_at_string_position): Change prototype.
4713
52283633 4714 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 4715
129004d3
GM
4716 * keyboard.c (make_lispy_event): Avoid generating drag events
4717 if the mouse hasn't actually moved to another buffer position.
52283633 4718
80c8ab8c
DL
47192001-03-08 Dave Love <fx@gnu.org>
4720
129004d3 4721 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 4722
989521fd
GM
47232001-03-08 Gerd Moellmann <gerd@gnu.org>
4724
4725 * process.c (Fset_process_window_size): Fix a typo.
4726
bb5c338d
KH
47272001-03-08 Kenichi Handa <handa@etl.go.jp>
4728
4729 * coding.c (detect_coding_sjis): Do more rigid check.
4730 (detect_coding_big5): Likewise.
4731 (decode_coding_sjis_big5): Likewise.
4732 (Fdetect_coding_region): Call detect_coding_system with tailing
4733 anchor byte `\0' for more rigid detection.
52283633 4734 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
4735 (Fdetect_coding_string): Likewise.
4736
8b8f9197
SM
47372001-03-07 Stefan Monnier <monnier@cs.yale.edu>
4738
4739 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
4740 a string before extracting its data.
4741
3bdf2660
GM
47422001-03-07 Gerd Moellmann <gerd@gnu.org>
4743
4744 * window.c (Frecenter): Rewrite code handling negative values
4745 of ARG on graphical frames.
4746
47472001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
4748
4749 * window.c (displayed_window_lines): If W->start is outside the
4750 accessible portion of the buffer, call start_display with BEGV or
4751 ZV instead of W->start.
4752
471f86b9
GM
47532001-03-07 Gerd Moellmann <gerd@gnu.org>
4754
2ab62c6c
GM
4755 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
4756
471f86b9
GM
4757 * process.c (Fset_process_filter): Don't crash if the input
4758 file descriptor of PROCESS is closed.
4759 (Fset_process_window_size): Likewise.
4760
101922c3
GM
47612001-03-06 Kenichi Handa <handa@etl.go.jp>
4762
4763 * xterm.c (XTflash): Make the timeout of select shorter, and call
4764 select repeatedly until the desired time expires.
4765
45d051a7
GM
47662001-03-06 Gerd Moellmann <gerd@gnu.org>
4767
4768 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
4769
4770 * xfns.c (Fx_create_frame): Clear Vwindow_list.
4771
4772 * lisp.h (Vwindow_list): Declare extern.
4773
8f372c46
EZ
47742001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
4775
4776 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
4777
f16a7aa5
GM
47782001-03-06 Gerd Moellmann <gerd@gnu.org>
4779
157ae273
GM
4780 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
4781 to detect a case where we have to highlight a different region
4782 despite not having left the currently highlighted region.
4783 Set mouse_face_overlay in the x_display_info.
45d051a7 4784 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
4785
4786 * xterm.h (struct x_display_info): Add mouse_face_overlay.
4787
4788 * buffer.c (mouse_face_overlay_overlaps): New function.
4789
4790 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
4791 (Qmouse_face): Declare extern.
4792
f16a7aa5
GM
4793 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
4794 if face_change_count is non-zero.
4795
827afcac
KH
47962001-03-06 Kenichi Handa <handa@etl.go.jp>
4797
4798 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
4799 that the source is unibyte.
4800
14c7242e
DL
48012001-03-05 Dave Love <fx@gnu.org>
4802
827afcac 4803 * xterm.c (XTmouse_position): Fix typo.
14c7242e 4804
c28b847b
GM
48052001-03-05 Gerd Moellmann <gerd@gnu.org>
4806
4807 * minibuf.c (read_minibuf): Clean up the binding stack if
4808 called noninteractively.
4809
b86644f2
KH
48102001-03-05 Kenichi Handa <handa@etl.go.jp>
4811
4812 * coding.c (syms_of_coding): Docstring modified.
4813
203682cc 48142001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
4815
4816 * charset.c (char_to_string): If a single byte char has modifier
4817 bits that can't be reflected to the character code, ignore them
45d051a7 4818 instead of signaling an error.
b86644f2 4819
e30bd7b7
EZ
48202001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
4821
4822 * s/msdos.h: Update copyright notice.
4823
4824 * dosfns.h: Update copyright notice.
4825
4826 * dosfns.c: Update copyright notice.
4827
4828 * msdos.c: Update copyright notice.
4829
b52b65bd
GM
48302001-03-02 Gerd Moellmann <gerd@gnu.org>
4831
4832 * xterm.c (glyph_rect): New function.
4833 (XTmouse_position): Use it to raise the threshold for mouse
4834 movement event generation.
4835
53c4b1e6
EZ
48362001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
4837
4838 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
4839 specifies (reverse . t), reverse the initial screen colors.
4840 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
4841 but we are reversing the colors, set bg_set, not fg_set.
4842 Likewise for setting background-color and reversing: set fg_set.
4843 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
4844 in effect.
4845
4846 * xfaces.c (Finternal_set_lisp_face_attribute)
4847 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
4848 parameters alist.
4849
f964b4d7
GM
48502001-03-02 Gerd Moellmann <gerd@gnu.org>
4851
ef53d75e
GM
4852 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
4853 to a single slash in the middle of file names.
4854
52283633 4855 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
4856 Accept only alphanumeric time zone names.
4857
f964b4d7
GM
4858 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
4859 or width area.
4860 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
4861 a widget to zero height.
52283633 4862
c3c45f65
GM
48632001-03-01 Gerd Moellmann <gerd@gnu.org>
4864
4865 * window.c (Fwindow_end): Call move_it_past_eol only if
4866 ending up on a partially visible line.
4867
028d739a
DL
48682001-03-01 Dave Love <fx@gnu.org>
4869
4870 * ccl.c (Fccl_execute): Doc fix.
4871
57c5889c
GM
48722001-03-01 Gerd Moellmann <gerd@gnu.org>
4873
35f59f6b
GM
4874 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
4875 of the tool bar before calling x_figure_window_size.
4876
f84ff02c
GM
4877 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
4878 NULL after destroying it, otherwise XTread_socket can access a
4879 destroyed widget when input is unblocked.
4880
8b8f9197 4881 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 4882
57c5889c
GM
4883 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
4884 same name as before, although there was a change in fontsets.
4885
224227d1
KR
48862001-02-28 Ken Raeburn <raeburn@gnu.org>
4887
4560730a
KR
4888 * lisp.h (Fframe_parameter): Declare.
4889
224227d1 4890 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 4891 Lisp_Object.
224227d1 4892
ece93c02
GM
48932001-02-28 Gerd Moellmann <gerd@gnu.org>
4894
11ef99b9
GM
4895 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
4896 NULL instead.
4897
4898 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
4899 NULL instead.
4900
ece93c02
GM
4901 * alloc.c (toplevel): Include process.h.
4902 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
4903 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
4904 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
4905 (allocate_vector, allocate_hash_table, allocate_window)
4906 (allocate_frame, allocate_process, allocate_other_vector):
4907 New functions.
ece93c02
GM
4908 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
4909 (mark_maybe_pointer): New function.
52283633 4910 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
4911 remain and not Lisp_Objects.
4912 (min_heap_address, max_heap_address): New variables.
4913 (mem_find): Return MEM_NIL if START is below min_heap_address or
4914 above max_heap_address.
4915 (mem_insert): Compute min_heap_address and max_heap_address.
4916
4917 * process.c (make_process): Use allocate_process.
4918
4919 * frame.c (make_frame): Use allocate_frame.
4920
4921 * window.c (make_window, make_dummy_parent): Use allocate_window.
4922 (Fcurrent_window_configuration): Use allocate_other_vector.
4923
4924 * lisp.h (allocate_vectorlike): Remove prototype.
4925 (allocate_vector, allocate_other_vector, allocate_frame)
4926 (allocate_window, allocate_process, allocate_hash_table):
4927 Add prototypes.
4928
4929 * fns.c (Fdelete, larger_vector): Use allocate_vector.
4930 (make_hash_table, copy_hash_table): Use allocate_hash_table.
4931
063af457
KH
49322001-02-27 Kenichi Handa <handa@etl.go.jp>
4933
4934 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
4935 treat the produced bytes as a valid multibyte sequence.
4936
4937 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
4938 (ccl_driver) <CCL_WriteMultibyteChar2>:
4939 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
4940 <ccl_finish>: Set ccl->eight_bit_control properly.
4941
4942 * ccl.h (struct ccl_program): New member eight_bit_control.
4943
f58c6494
SM
49442001-02-26 Stefan Monnier <monnier@cs.yale.edu>
4945
4946 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
4947 accessible_keymaps_char_table.
4948 (accessible_keymaps_char_table): Obey `is_metized'.
4949 (where_is_internal, Fwhere_is_internal): Don't confuse int and
4950 Lisp_Object.
4951
c596c392
GM
49522001-02-26 Gerd Moellmann <gerd@gnu.org>
4953
4954 * dispnew.c: Check HAVE_TERM_H before including term.h.
4955
425de386
AI
49562001-02-24 Andrew Innes <andrewi@gnu.org>
4957
4958 * makefile.w32-in: Update copyright notice.
4959
2ba11bbd
SM
49602001-02-24 Stefan Monnier <monnier@cs.yale.edu>
4961
4962 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
4963
66c56ed1
KH
49642001-02-24 Kenichi Handa <handa@etl.go.jp>
4965
4c1593ce
KH
4966 * Makefile.in (lisp): Add international/utf-8.elc.
4967
66c56ed1
KH
4968 * fontset.c (Fnew_fontset): Fix handling of the case that an
4969 element of FONTLIST is a cons of family and registry.
4970
796ead7e
JR
49712001-02-23 Jason Rumney <jasonr@gnu.org>
4972
4973 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
4974 to height unconditionally.
4975
4976 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 4977 background face to the end of the drawing area in the text area, only.
796ead7e
JR
4978 (x_insert_glyphs): Call window_box_left to obtain the left
4979 x-coordinate of the area to shift.
4980
4981 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
4982 safe_run_hooks.
4983
f6839838
AI
49842001-02-22 Andrew Innes <andrewi@gnu.org>
4985
52283633 4986 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
4987 ($(BLD)\dispnew.obj):
4988 ($(BLD)\editfns.obj):
4989 ($(BLD)\fileio.obj):
4990 ($(BLD)\filelock.obj):
4991 ($(BLD)\keyboard.obj):
4992 ($(BLD)\w32proc.obj):
4993 ($(BLD)\process.obj):
4994 ($(BLD)\sysdep.obj): Ditto.
4995
4996 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
4997 header files.
52283633
SM
4998 ($(BLD)/dispnew.$(O)):
4999 ($(BLD)/editfns.$(O)):
5000 ($(BLD)/fileio.$(O)):
5001 ($(BLD)/filelock.$(O)):
5002 ($(BLD)/keyboard.$(O)):
5003 ($(BLD)/w32proc.$(O)):
5004 ($(BLD)/process.$(O)):
f6839838
AI
5005 ($(BLD)/sysdep.$(O)): Ditto.
5006
c224f70b
GM
50072001-02-22 Gerd Moellmann <gerd@gnu.org>
5008
51695746
GM
5009 * xdisp.c (forward_to_next_line_start): When taking the shortcut
5010 at the start of the function, check that the \n in it->c is
5011 from the iterator's current position.
52283633 5012
a61b7058
GM
5013 * xdisp.c (handle_single_display_prop): Add parameter
5014 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
5015 properties which replace the display of text with something else.
5016 (handle_display_prop): Call handle_single_display_prop with
5017 additional argument saying if we already replaced text display
5018 with something else. Use AREF.
52283633 5019 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
5020 (decode_mode_spec_coding): Use AREF and ASIZE.
5021
3473f362
GM
5022 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
5023 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
5024 * vmstime.h: Files removed.
52283633 5025
2bb58df3
GM
5026 * unexencap.c, unexfx2800.c: Files removed.
5027
c224f70b
GM
5028 * dispnew.c (direct_output_for_insert): Give up if we are showing
5029 a message or just cleared the message because we might need to
5030 resize the echo area window or display an empty echo area.
5031
ffc9ff0c
GM
50322001-02-21 Gerd Moellmann <gerd@gnu.org>
5033
0528abe1
GM
5034 * xdisp.c (redisplay_internal): Do the
5035 mark_window_display_accurate after all windows have been
5036 redisplayed because this call resets flags in buffers which are
5037 needed for proper redisplay.
5038
52283633
SM
5039 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
5040 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
5041 the old names.
5042
52283633
SM
5043 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
5044 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
5045
5046 * msdos.h (struct x_output): Rename busy_window to
5047 hourglass_window, busy_p to hourglass_p.
5048
52283633
SM
5049 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
5050 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
5051
5052 * xfns.c: Rename everything containing *busy_cursor* and similar
5053 to *hourglass*.
5054 (syms_of_w32fns): Rename x-busy-pointer-shape to
5055 x-hourglass-pointer-shape, display-busy-cursor to
5056 display-hourglass, busy-cursor-delay to hourglass-delay.
5057
5058 * w32fns.c: Rename everything containing *busy_cursor* and similar
5059 to *hourglass*.
5060 (syms_of_w32fns): Rename x-busy-pointer-shape to
5061 x-hourglass-pointer-shape, display-busy-cursor to
5062 display-hourglass, busy-cursor-delay to hourglass-delay.
5063
5064 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
5065 of its busy_p flag.
5066
5067 * dispextern.h (start_hourglass, cancel_hourglass)
5068 (display_hourglass_p): Renamed from *busy_cursor*.
5069
ab2c5f0a
GM
50702001-02-20 Gerd Moellmann <gerd@gnu.org>
5071
d17e49a8
GM
5072 * keyboard.c (read_char): When an event from unread-command-events
5073 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
5074
fa97adf6
GM
5075 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
5076 equal to the current buffer.
5077
ab2c5f0a
GM
5078 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
5079 nil, otherwise we're left with truncate_lines t when a message
5080 is printed with message-truncate-lines bound to t.
5081
aeac019e
GM
50822001-02-19 Gerd Moellmann <gerd@gnu.org>
5083
c8bc6f65
GM
5084 * window.c (Fmove_to_window_line): Undo last change.
5085 (displayed_window_lines): Call line_bottom_y to determine
5086 the line's bottom position.
5087
5088 * dispextern.h (line_bottom_y): Add prototype.
5089
52283633 5090 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
5091 (pos_visible_p): Use it.
5092
980a2d69
GM
5093 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
5094 set redisplaying_p to 0 here instead of in Frecursive_edit.
5095 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
5096 set redisplaying_p.
5097
52283633 5098 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
5099 New variables.
5100 (syms_of_xdisp): Initialize new variables.
5101 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
5102 Specbind `inhibit-menubar-update' when updating the menu bar.
5103
65048e97
GM
5104 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
5105 safe_run_hooks.
5106
5107 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
5108 safe_run_hooks.
5109
a57c4026
GM
5110 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
5111 is null.
5112
aeac019e
GM
5113 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
5114 to the start of the file.
5115
76846b31
GM
51162001-02-16 Gerd Moellmann <gerd@gnu.org>
5117
f3f053f3 5118 * window.c (set_window_buffer): Fix last change.
52283633 5119
f3f053f3
GM
5120 * window.c (set_window_buffer): Set window's vscroll to 0.
5121
dad75588
GM
5122 * window.c (coordinates_in_window): Increase width of area
5123 where the vertical line can be dragged.
5124
c220b753
GM
5125 * xterm.c (x_set_glyph_string_background_width): Extend the
5126 background face to the end of the drawing area in the text
5127 area, only.
5128
c56b1c1b
GM
5129 * xdisp.c (handle_single_display_prop): Set iterator's position
5130 to where the `display' property starts, like for images.
5131 (dump_glyph): New function.
5132 (dump_glyph_row): Use it. Dump info about marginal areas.
5133
5134 * dispnew.c (direct_output_for_insert): Recognize more cases where
5135 glyphs can be written instead of being inserted.
5136
5137 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
5138 the left x-coordinate of the area to shift.
5139
76846b31
GM
5140 * dired.c (directory_files_internal): Set result list to nil
5141 before retrying.
5142
0fc71a77
KH
51432001-02-15 Kenichi Handa <handa@etl.go.jp>
5144
5145 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
5146 invalid multibyte sequence, treat *SRC as a character of
5147 eight-bit-graphic.
5148
25078b54
EZ
51492001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
5150
5151 * textprop.c (Fset_text_properties): Doc fix.
5152
8399f8a0
GM
51532001-02-15 Gerd Moellmann <gerd@gnu.org>
5154
5155 * dispnew.c (update_text_area): Undo change of 2001-01-12.
5156
9a2a6f73
DL
51572001-02-14 Dave Love <fx@gnu.org>
5158
5159 * coding.c: Doc and message fixes.
5160
bf853fee
AI
51612001-02-14 Andrew Innes <andrewi@gnu.org>
5162
5163 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
5164 Emacs frame above the screen size.
5165
78c663d8
GM
51662001-02-14 Gerd Moellmann <gerd@gnu.org>
5167
5168 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
5169
7cc9f69f
GM
51702001-02-13 Gerd Moellmann <gerd@gnu.org>
5171
0a411995
GM
5172 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
5173 case that TO ends up beyond ZV after running before-change-functions.
5174
5ddc1b75
GM
5175 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
5176 the selected window if it is showing the buffer in question.
5177
7cc9f69f
GM
5178 * dired.c (directory_files_internal): Initialize errno.
5179 (toplevel): Include errno.h.
5180
2e6621ca
GM
51812001-02-13 Kenichi Handa <handa@etl.go.jp>
5182
5183 * xfaces.c (best_matching_font): New parameter width_ratio.
5184 Multiply avgwidth by width_ratio.
5185 (choose_face_font): Call best_matching_font with width_ratio
5186 calculated from the column width of C.
5187
60222d69
AI
51882001-02-12 Andrew Innes <andrewi@gnu.org>
5189
5190 The following changes are to draw box lines inside characters area
5191 if line-width is negative.
52283633 5192
60222d69
AI
5193 * w32term.c (x_produce_image_glyph): Pay attention to the case that
5194 face->box_line_width is negative.
5195 (x_produce_stretch_glyph): Likewise.
5196 (x_produce_glyphs): Likewise.
5197 (x_estimate_mode_line_height): Likewise.
5198 (x_draw_glyph_string_background): Likewise.
5199 (x_draw_glyph_string_foreground): Likewise.
5200 (x_draw_composite_glyph_string_foreground): Likewise.
5201 (x_draw_glyph_string_box): Likewise.
5202 (x_draw_image_foreground): Likewise.
5203 (x_draw_image_relief): Likewise.
5204 (x_draw_image_foreground_1): Likewise.
5205 (x_draw_image_glyph_string): Likewise.
5206
9804b846
KH
52072001-02-09 Kenichi Handa <handa@etl.go.jp>
5208
5209 The following changes are to draw box lines inside characters area
5210 if line-width is negative.
52283633 5211
9804b846
KH
5212 * xterm.c (x_produce_image_glyph): Pay attention to the case that
5213 face->box_line_width is negative.
5214 (x_produce_stretch_glyph): Likewise.
5215 (x_produce_glyphs): Likewise.
5216 (x_estimate_mode_line_height): Likewise.
5217 (x_draw_glyph_string_background): Likewise.
5218 (x_draw_glyph_string_foreground): Likewise.
5219 (x_draw_composite_glyph_string_foreground): Likewise.
5220 (x_draw_glyph_string_box): Likewise.
5221 (x_draw_image_foreground): Likewise.
5222 (x_draw_image_relief): Likewise.
5223 (x_draw_image_foreground_1): Likewise.
5224 (x_draw_image_glyph_string): Likewise.
5225
5226 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
5227 and :line-width can be negative.
52283633 5228 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 5229
49be9f70
JR
52302001-02-09 Jason Rumney <jasonr@gnu.org>
5231
5232 * w32term.c (w32_encode_char): Treat eight bit graphic and control
5233 characters the same as ASCII and latin-1.
5234 (x_display_and_set_cursor): Check for the focus frame's selected
5235 window instead of selected_window.
5236 (x_after_update_window_line): Don't clear if frame's internal
5237 border width is zero.
5238 (x_new_font): Don't change a tooltip's size.
5239 (w32_initialize): Set char_ins_del_ok to 1.
5240
5241 * w32fns.c (Fx_show_tip): Fix calls to make_number.
5242 (x_set_font): If font hasn't changed, avoid recomputing
5243 faces and other things.
52283633
SM
5244 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
5245 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
5246 (x_create_tip_frame): Prevent changing the tooltip's
5247 background color by specifying a color for the default font
5248 in .Xdefaults.
5249 (Qcancel_timer): New variable.
5250 (syms_of_w32fns): Initialize and staticpro it.
5251 (Fx_hide_tip, Fx_show_tip): Use it.
5252 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
5253 the timer.
5254 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
5255
5256 * w32.c (init_environment): Duplicate local string before putenv.
5257
555e35d2
SZ
52582001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
5259
5260 * charset.c (Fstring): A typo.
5261
19c92c94
KH
52622001-02-09 Kenichi Handa <handa@etl.go.jp>
5263
e47a1c33
KH
5264 * charset.c (Fstring): If all arguments are less than 256, return
5265 a unibyte string.
5266
5267 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
5268 return a unibyte string.
5269
19c92c94
KH
5270 * coding.c (code_convert_region): After detecting a coding, if
5271 nothing found, set coding->composing to COMPOSITION_NO.
5272 (decode_coding_string): Likewise.
5273
d8e675f5
SM
52742001-02-08 Stefan Monnier <monnier@cs.yale.edu>
5275
5276 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
5277 to avoid overflow.
5278
bd503487
KH
52792001-02-07 Kenichi Handa <handa@etl.go.jp>
5280
5281 * charset.c (parse_str_to_multibyte): New function.
5282
5283 * charset.h (parse_str_to_multibyte): Extern it.
5284
5285 * print.c (print_string): If we are going to print a unibyte
5286 string into a multibyte buffer, convert the string to multibyte by
5287 str_to_multibyte.
5288
a8370d72
AI
52892001-02-06 Andrew Innes <andrewi@gnu.org>
5290
5291 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
5292 been created. It seems we can get sent window messages such as
5293 WM_ERASEBKGND before we properly update a frame.
5294
c363a1d6
GM
52952001-02-06 Gerd Moellmann <gerd@gnu.org>
5296
5297 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
5298 Avoid some unnecessary cursor positioning.
5299
a08332c0
GM
53002001-02-05 Gerd Moellmann <gerd@gnu.org>
5301
52283633 5302 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
5303 (LFACE_AVGWIDTH): New macro.
5304 (LFACEP): Use AREF.
5305 (check_lface_attrs): Check LFACE_AVGWIDTH.
5306 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
5307 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
5308 (merge_face_vectors): Check LFACE_AVGWIDTH.
5309 (Finternal_make_lisp_face): Use AREF.
5310 (xm_set_menu_resources_from_menu_face)
5311 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
5312 (Finternal_lisp_face_empty_p): Use AREF.
5313 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
5314 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
5315 Compare average widths..
5316 (best_matching_font): Arrange for comparing average widths.
5317
52283633
SM
5318 * dispextern.h (enum lface_attribute_index):
5319 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
5320
5cb3c8d4
DL
53212001-02-05 Dave Love <fx@gnu.org>
5322
5323 * puresize.h: Revert last change following loadup.el change.
5324
193fba87
AI
53252001-02-05 Andrew Innes <andrewi@gnu.org>
5326
5327 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
5328 invocation of temacs, to work with Windows 2000.
5329 (bootstrap-emacs): Ditto.
5330
e16f52ce
GM
53312001-02-05 Gerd Moellmann <gerd@gnu.org>
5332
7a58ab59
GM
5333 * xterm.c (x_display_and_set_cursor): Check for the focus
5334 frame's selected window instead of selected_window.
5335
e89aaabd
GM
5336 * xdisp.c (try_scrolling): If point is in the line below the
5337 window, make sure to move the iterator at least a canonical
5338 char height down.
5339
52283633 5340 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 5341
789ce875
KH
53422001-02-05 Kenichi Handa <handa@etl.go.jp>
5343
52283633
SM
5344 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
5345 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
5346 (ccl_driver): If the CCL program is terminated because of
5347 CCL_STAT_INVALID_CMD, copy the remaining source data to the
5348 destination instead of throwing them away.
5349
20b28f82
GM
53502001-02-02 Gerd Moellmann <gerd@gnu.org>
5351
79fb38c0
GM
5352 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
5353 faces and other things.
5354
20b28f82
GM
5355 * xdisp.c (get_next_display_element): Fix case of empty
5356 display table entry.
5357
5a72551e
EZ
53582001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
5359
eb24d0bf
EZ
5360 * editfns.c (Fconstrain_to_field): Doc fix.
5361
6a3f48c7
EZ
5362 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
5363 into `thoroughly', to make it consistent with the doc string.
5364
5a72551e
EZ
5365 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
5366
01acdb05
GM
53672001-02-01 Gerd Moellmann <gerd@gnu.org>
5368
0353b28f
GM
5369 * search.c (search_buffer): Call set_search_regs with a byte
5370 position, not a character position.
5371
01acdb05
GM
5372 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
5373 minibuffer-only,
5374
e86b5133
EZ
53752001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
5376
5377 * frame.c (Fmodify_frame_parameters): Doc fix.
5378
7442878f
GM
53792001-01-31 Gerd Moellmann <gerd@gnu.org>
5380
01acdb05
GM
5381 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
5382 identifier which is not reserved by Standard C.
52283633 5383
7442878f
GM
5384 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
5385
5386 * window.c (enum window_part): New enumeration.
5387 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
5388 Qright_bitmap_area.
5389 (coordinates_in_window): Return an enumerator from enum
5390 window_part. Fix handling of right scroll bar.
5391 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
5392 `right-fringe' instead of `left-bitmap-area' and
5393 `right-bitmap-area'. Use enumerators from enum window_part
5394 instead of hard-coded integers.
52283633
SM
5395 (check_window_containing, window_from_coordinates):
5396 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
5397 (syms_of_window): Replace Qleft_bitmap_area and
5398 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
5399
7c132cba
EZ
54002001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
5401
5402 * editfns.c (Fformat_time_string): Doc fix.
5403
c359dd9e
SM
54042001-01-31 Stefan Monnier <monnier@cs.yale.edu>
5405
5406 * keymap.c (Fwhere_is_internal): Use the first valid binding
5407 if no ascii binding is found (when firstonly is t).
5408
ce070307
GM
54092001-01-31 Gerd Moellmann <gerd@gnu.org>
5410
b4f30ec5
GM
5411 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
5412 instead of Finteractive_p.
5413
5414 * lisp.h (interactive_p): Add prototype.
5415
5416 * eval.c (interactive_p): New function.
5417 (Finteractive_p): Use it.
5418
ce070307
GM
5419 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
5420
f57b6e64
DL
54212001-01-31 Dave Love <fx@gnu.org>
5422
d61c7afe
DL
5423 * .gdbinit (hook-run): Define to run xreload.
5424
f57b6e64
DL
5425 * textprop.c (Fset_text_properties): Fix newline in doc string.
5426
eef93f99
GM
54272001-01-30 Gerd Moellmann <gerd@gnu.org>
5428
52283633
SM
5429 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
5430 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
5431
5432 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 5433 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
5434 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
5435
5436 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
5437 height.
5438
d9c1f6f9
DL
54392001-01-30 Dave Love <fx@gnu.org>
5440
5441 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
5442 AFTER_POTENTIAL_GC.
5443
e8f044a0
GM
54442001-01-29 Gerd Moellmann <gerd@gnu.org>
5445
52283633
SM
5446 * bytecode.c (Fbyte_code) <Bcurrent_column>:
5447 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 5448
8e1db7b3
EZ
54492001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
5450
5451 * textprop.c (Fset_text_properties): Doc fix.
5452
4eefd9d2
GM
54532001-01-29 Gerd Moellmann <gerd@gnu.org>
5454
5455 * xdisp.c (forward_to_next_line_start): Remove xassert.
5456
fccb8288
EZ
54572001-01-29 Jason Rumney <jasonr@gnu.org>
5458
4eefd9d2 5459 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
5460 returning without releasing it.
5461
76581eab
KH
54622001-01-29 Kenichi Handa <handa@etl.go.jp>
5463
5464 * w32fns.c (w32_font_match): Allocate three more bytes to regex
5465 for '^', '$', and '\0'.
5466
83a96b4d
AC
54672001-01-28 Andrew Choi <akochoi@i-cable.com>
5468
5604ec34
AC
5469 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
5470 regex for '^', '$', and '\0'.
5471
83a96b4d
AC
5472 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
5473 only if current_sblock has been initialized.
5474
5475 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
5476 terminal frame even if it is the only visible frame.
5477
c09a6440
KH
54782001-01-28 Kenichi Handa <handa@etl.go.jp>
5479
5480 * fontset.c (font_family_registry): Even if FONTNAME conform to
5481 XLFD, if it specifies other fields than family and registry,
52283633 5482 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 5483 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
5484 a signle byte character. Don't set FAMILY part to nil here.
5485 It is handled by the caller choose_face_font.
c09a6440
KH
5486 (Fnew_fontset): Call font_family_registry with FORCE 0.
5487 (Fset_fontset_font): Likewise.
5488
4dcd74e6
GM
54892001-01-27 Gerd Moellmann <gerd@gnu.org>
5490
5491 * xdisp.c (display_line): Don't treat a newline as fitting
5492 on the line.
5493
d2906bf8
GM
54942001-01-26 Gerd Moellmann <gerd@gnu.org>
5495
0130fe1a
GM
5496 * window.c (size_window): Set the window's orig_top to nil when
5497 changing heights, so that a future shrink_mini_window won't
5498 restore a bogus height.
5499
550f0e6a
GM
5500 * frame.c (do_switch_frame): If selected frame has a mini-window,
5501 resize that to exact size.
5502
b7b20fbd
GM
5503 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
5504
a47b7816
GM
5505 * xdisp.c (display_line): Simplify check for glyphs fitting
5506 entirely in the line.
5507
d2906bf8
GM
5508 * xfns.c (xic_style): New variable.
5509 (create_frame_xic): Move static variable to global scope for
550f0e6a 5510 the case that `static' gets defined away.
d2906bf8 5511
73df2b1e
KH
55122001-01-26 Kenichi Handa <handa@etl.go.jp>
5513
5514 * coding.c (decode_coding): Set a flag for inhibiting
5515 inconsistent eol.
5516 (code_convert_region): Always set saved_coding_symbol.
5517 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 5518 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 5519
6613cfc4
GM
55202001-01-25 Gerd Moellmann <gerd@gnu.org>
5521
c5e6e06b
GM
5522 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
5523 XClearArea.
5524
5525 * xterm.c (x_after_update_window_line): Don't clear if frame's
5526 internal border width is zero.
5527 (x_clear_area): New function.
5528 (x_after_update_window_line, x_clear_end_of_line)
5529 (x_scroll_bar_create, x_scroll_bar_set_handle)
5530 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
5531 instead of XClearArea.
5532
5533 * xterm.h (x_clear_area): Add prototype.
5534
6613cfc4
GM
5535 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
5536 which doesn't seem necessary anymore with Lesstif 0.92.
5537
650cc6cc
DL
55382001-01-25 Dave Love <fx@gnu.org>
5539
34ac3367
DL
5540 * puresize.h (BASE_PURESIZE): Up to 720000.
5541
650cc6cc
DL
5542 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
5543
5e37dc22
GM
55442001-01-25 Gerd Moellmann <gerd@gnu.org>
5545
e1e441f9
GM
5546 * xdisp.c (echo_area_display): Don't call redisplay_internal
5547 when Emacs is shutting down. We can't run hooks etc. that
5548 would be necessary to do a redisplay.
5549
5e37dc22
GM
5550 * lread.c (read_integer): Use type EMACS_INT instead of int.
5551
0fb94c7f
EZ
55522001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
5553
5554 * ccl.c (ccl_driver): Fix last change.
5555
e3778624
KH
55562001-01-25 Kenichi Handa <handa@etl.go.jp>
5557
5558 * ccl.h (sturct ccl_program): New member suppress_error.
5559
bb264518 5560 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
5561 insert error message to the output.
5562 (setup_ccl_program): Initialize ccl->suppress_error to 0.
5563
5564 * coding.h (struct coding_system): New member suppress_error.
5565
5566 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
5567 (Fset_terminal_coding_system_internal): Set the member
5568 suppress_error to 1.
5569 (Fset_safe_terminal_coding_system_internal): Likewise.
5570
245ed2b1
SM
55712001-01-24 Stefan Monnier <monnier@cs.yale.edu>
5572
5573 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
5574 as if it was a `charset'.
5575
f9aaedb6
GM
55762001-01-24 Gerd Moellmann <gerd@gnu.org>
5577
5578 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
5579 value in where_is_cache; the next lookup in the cache returns
5580 something bogus if we do.
5581
c3902c3e
EZ
55822001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
5583
5584 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
5585 if HAVE_WINDOW_SYSTEM isn't defined.
5586
3497f73e
GM
55872001-01-24 Gerd Moellmann <gerd@gnu.org>
5588
e7e41584
GM
5589 * fns.c (sweep_weak_table): Fix code taking items out of
5590 the hash collision chain. Some cleanup.
5591
3497f73e
GM
5592 * xterm.c (x_new_font): Don't change a tooltip's size.
5593
5594 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
5595 background color by specifying a color for the default font
5596 in .Xdefaults.
5597
3d48e687
KH
55982001-01-24 Kenichi Handa <handa@etl.go.jp>
5599
96531b20
KH
5600 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
5601 a workaround for SunOS 4's cc.
5602 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
5603 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
5604 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
5605 statement.
3d48e687 5606
a30629d2
GM
56072001-01-23 Gerd Moellmann <gerd@gnu.org>
5608
5609 * xterm.c (x_set_window_size_1): New function extracted from
5610 x_set_window_size.
5611 (x_set_window_size): Use it.
5612 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
5613 doesn't have a widget, like tooltips.
5614
5a43decf
EZ
56152001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
5616
52283633 5617 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 5618
b0e98867
KH
56192001-01-23 Kenichi Handa <handa@etl.go.jp>
5620
5621 * fns.c (Fset_char_table_default): Fix to make sub char-table
5622 correctly.
5623
50606b4c
GM
56242001-01-22 Gerd Moellmann <gerd@gnu.org>
5625
cb2ddc53 5626 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
5627 a desired tool bar string, even if there are no tool bar items.
5628
57c28064
GM
5629 * xdisp.c (Ftool_bar_lines_needed): New function.
5630 (syms_of_xdisp): Defsubr it.
5631
50606b4c
GM
5632 * editfns.c (Fformat): Don't extend text properties from arguments
5633 to padding chars in the result.
5634
2f169c38
EZ
56352001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
5636
5637 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
5638
0f32f023
AI
56392001-01-20 Andrew Innes <andrewi@gnu.org>
5640
52283633 5641 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
5642 (w32_initialize): Don't set term hooks that aren't actually needed
5643 in windowed mode.
5644
5645 * xfaces.c (realize_default_face):
5646 (realize_face):
5647 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
5648
5649 * xdisp.c (handle_single_display_prop): Remove references to
5650 FRAME_W32_CONSOLE_P.
5651
52283633 5652 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
5653
5654 * frame.h (output_method): Remove output_w32_console method.
5655 (FRAME_W32_CONSOLE_P): Remove macro.
5656
5657 * frame.c (Qw32_console): Remove variable.
5658 (Fframep): Remove references to it.
5659 (syms_of_frame): Ditto.
5660 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
5661
5662 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
5663 redefinition.
5664
7173eada
KH
56652001-01-20 Kenichi Handa <handa@etl.go.jp>
5666
5667 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
5668
755b45ce
AI
56692001-01-19 Andrew Innes <andrewi@gnu.org>
5670
5671 * w32.c (init_environment): Add a version-independent site-lisp
5672 directory to EMACSLOADPATH, after the version dependent one.
5673
0a949811
GM
56742001-01-19 Gerd Moellmann <gerd@gnu.org>
5675
8501998a
GM
5676 * editfns.c (Fbuffer_substring): Doc fix.
5677
52283633
SM
5678 * xdisp.c (message_dolog, message2, message2_nolog):
5679 Rename parameter LEN to NBYTES.
0a949811 5680
e6ebcbbe
KH
56812001-01-19 Kenichi Handa <handa@etl.go.jp>
5682
200ecca2
KH
5683 * charset.c (strwidth): Use c_string_width.
5684 (c_string_width): New function.
5685 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
5686 Caller changed.
5687
5688 * charset.h (c_string_width, lisp_string_width): Extern them.
5689
52283633 5690 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 5691
e6ebcbbe
KH
5692 * indent.c (check_composition): Check validity of composition.
5693
200ecca2
KH
5694 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
5695 characters by calling c_string_width.
5696 (x_consider_frame_title): Get byte length of frame tile string
5697 correctly.
5698 (display_mode_element): Pay attention to width of non-ASCII
5699 characters by calling strwidth.
5700
8692ca92
GM
57012001-01-18 Gerd Moellmann <gerd@gnu.org>
5702
8962e303
GM
5703 * xfns.c (Qcancel_timer): New variable.
5704 (syms_of_xfns): Initialize and staticpro it.
5705 (Fx_hide_tip, Fx_show_tip): Use it.
5706 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
5707 the timer.
5708 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
5709
91523be9
GM
5710 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
5711
5712 * window.h (WINDOW_LIVE_P): New macro.
5713
b0b7ed0e
GM
5714 * window.c (window_size_fixed): New variable.
5715 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
5716 the doc string.
5717
06bccf8e
GM
5718 * eval.c (specbind): If binding a per-buffer variable which
5719 doesn't have a buffer-local value in the current buffer, change
5720 the global value by changing the value of the symbol bound in all
5721 buffers not having their own value, to make it consistent with
5722 what happens with other buffer-local variables.
5723
8692ca92
GM
5724 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
5725
5726 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
5727 when searching for a newline.
5728
bb3a3b50
KH
57292001-01-18 Kenichi Handa <handa@etl.go.jp>
5730
5731 * xdisp.c (display_string): Fix previous change.
5732
c2cc16fa
JR
57332001-01-18 Jason Rumney <jasonr@gnu.org>
5734
5735 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
5736 GLYPH_DEBUG is defined.
5737 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
5738 true for images with `:ascent 100'.
5739 (x_set_mouse_face_gc): If the last used mouse face has gone in the
5740 meantime, use face MOUSE_FACE_ID.
5741 If first glyph isn't a character glyph, use the ASCII NUL
5742 character to determine the face.
5743 (expose_area): Do not treat left margin specially.
5744 (note_mode_line_highlight): If no local_map, check global keymap.
5745 (note_mouse_highlight): Initialize overlay.
52283633 5746 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
5747 (show_scroll_bars): Remove unused function.
5748 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
5749 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
5750 Clip to row.
52283633 5751 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
5752 (x_free_frame_resources): Unload relief colors.
5753
9c11f79e
GM
57542001-01-17 Gerd Moellmann <gerd@gnu.org>
5755
3aec8722 5756 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
5757 get_next_display_element when the newline is already found.
5758 This may change the iterator's position, when its current position is
3aec8722
GM
5759 equal to the iterator's stop_charpos.
5760
f3ffc2c3
GM
5761 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
5762 zero, use this method only at the end of a line.
5763
52283633 5764 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
5765 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
5766 if SCALABLE_FONTS_P is set.
52283633 5767
d26d6fd9
GM
5768 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
5769 so that scalable fonts are included.
5770
9c11f79e
GM
5771 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
5772 In the cache, use a key containing the information if scalable
5773 fonts are included.
5774 (x_load_font): Adapt to change of keys in the font cache.
5775
57762001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 5777
d26d6fd9
GM
5778 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
5779 XListFonts to take advantage of font caching.
5780
9c11f79e
GM
5781 * xterm.c (x_list_fonts): Ensure caching font information when
5782 called for a null frame, which is the case frequently when Emacs
5783 starts.
5784
51446987
GM
57852001-01-17 Gerd Moellmann <gerd@gnu.org>
5786
f864120f
GM
5787 * xfns.c (QCconversion): Replaces QCalgorithm.
5788
5789 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
5790
5791 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
5792 of :algorithm.
52283633 5793
e37d1417
GM
5794 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
5795 not everything could be displayed.
5796
51446987
GM
5797 * line.h, x-list-font.c: Files removed because unused.
5798
9ad4f3e5
AI
57992001-01-17 Andrew Innes <andrewi@gnu.org>
5800
5801 * dired.c (directory_files_internal): Convert result from readdir
5802 to a unibyte string initially, to avoid possible misinterpretation
5803 of some bytes as the internal form of Emacs characters.
5804
2eda09b5
KH
58052001-01-17 Kenichi Handa <handa@etl.go.jp>
5806
5807 * fns.c (concat): Be sure to avoid putting the same `composition'
5808 property on the adjacent regions.
5809
826f3788
GM
58102001-01-16 Gerd Moellmann <gerd@gnu.org>
5811
52283633 5812 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
5813 (Fscroll_right, Fscroll_left): Set it here instead, if called
5814 interactively.
5815
d57b83b3
GM
5816 * buffer.c (Fset_buffer_modified_p): Set buffer's
5817 prevent_redisplay_optimizations_p flag.
5818
826f3788 5819 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
5820 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
5821 with additional arg.
5822
5823 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
5824 Change prototype.
826f3788 5825
826f3788
GM
5826 * xdisp.c (redisplay_preserve_echo_area): Add parameter
5827 FROM_WHERE, for debugging.
5828
261d788b
KH
58292001-01-16 Kenichi Handa <handa@etl.go.jp>
5830
5831 * ccl.c (Fregister_ccl_program): Handle the return value of
5832 resolve_symbol_ccl_program correctly.
52283633 5833 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 5834
bccee4f2
GM
58352001-01-15 Gerd Moellmann <gerd@gnu.org>
5836
e4ded23c
GM
5837 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
5838 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
5839
5840 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
5841 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
5842 the display; we didn't open it.
5843
bccee4f2
GM
5844 * dispnew.c (save_or_restore_current_matrices): Function removed.
5845 (save_current_matrix, restore_current_matrix): New functions.
5846 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
5847 restore the frame's current matrix. Due to the glyph pointer
5848 setup done in adjust_glyph_matrix, there is no easy way to make
5849 saving the current matrix in the desired matrix generally correct,
5850 so don't try it.
5851
ebeccffa
KH
58522001-01-15 Kenichi Handa <handa@etl.go.jp>
5853
5854 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
5855 truncation glyphs.
5856 (display_line): Optimize for wide characters.
e4ded23c 5857 (display_string): Don't try to display a multi-column character
ebeccffa
KH
5858 partially. On ttys, produce more than one truncation glyph for
5859 multi-column characters that don't fit on the line.
5860
64388126
KH
58612001-01-13 Kenichi Handa <handa@etl.go.jp>
5862
52283633
SM
5863 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
5864 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 5865
8edb0a6f
JR
58662001-01-13 Jason Rumney <jasonr@gnu.org>
5867
5868 * w32fns.c (Fimage_size, image_ascent, lookup_image)
5869 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
5870 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
5871 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 5872
52283633
SM
5873 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
5874 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
5875 (x_draw_image_glyph_string): Adapt to change of image margins.
5876
5877 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
5878 variables.
5879
5880 * w32bdf.c (search_file_line, get_cached_font_char)
5881 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
5882
5883 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
5884
5885 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
5886 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
5887 (Fw32_send_sys_command): Remove unused variables.
5888 (w32_msg_pump): Add parentheses.
5889
5890 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
5891 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
5892 Add parentheses.
5893
4956d1ef
GM
58942001-01-12 Gerd Moellmann <gerd@gnu.org>
5895
b30623be
GM
5896 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
5897 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
5898 being a pair of margins.
5899 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
5900 to DEFVAR_LISP. Extend doc.
5901
5902 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
5903 margins.
5904 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
5905 pair of integers `(X . Y)', use X for the horizontal and Y for the
5906 vertical margin.
5907 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
5908 (parse_image_spec): Check it.
52283633
SM
5909 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
5910 (tiff_format, gif_format, gs_format):
5911 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 5912
52283633
SM
5913 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
5914 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
5915 (x_draw_image_glyph_string): Adapt to the change of image margins.
5916
5917 * dispextern.h (struct image): Replace member `margin' with
5918 `hmargin' and `vmargin'.
5919
4554cc79
GM
5920 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
5921 and GLYPHS.
5922
5923 * dispnew.c (update_text_area): Put code which decrements the
5924 stop position when the row's face extends to the end of the
3bffc665 5925 line in #if 0.
4554cc79 5926
3cccce8d
GM
5927 * xfns.c (x_set_mouse_color): Fix color allocation.
5928
4956d1ef
GM
5929 * keyboard.c: Call get_local_map with new argument list.
5930
5931 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
5932
5933 * intervals.h (enum map_property): Removed.
5934 (get_local_map): Change prototype.
5935
5936 * keymap.c: Call get_local_map with new argument list.
5937 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
5938
2c2ff7f2
GM
59392001-01-11 Gerd Moellmann <gerd@gnu.org>
5940
a23887b9
GM
5941 * xdisp.c (build_desired_tool_bar_string): Correct the computation
5942 of the size needed for the tool bar string. For the last image,
5943 use a `display' property that reaches to the end of the string.
5944
a7ee2d2e
GM
5945 * xselect.c (selection_request_dpyinfo): New variable.
5946 (x_handle_selection_request): Set it.
5947 (x_selection_request_lisp_error): Don't call
5948 x_decline_selection_request if selection request's display has
5949 been closed.
5950
52283633
SM
5951 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
5952 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 5953
457b792c
GM
59542001-01-10 Dave Love <fx@gnu.org>
5955
5956 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
5957 ${SOME_MACHINE_LISP}, not ${lisp}.
5958
c1efd260
GM
59592001-01-10 Gerd Moellmann <gerd@gnu.org>
5960
52283633
SM
5961 * xdisp.c (display_line): On ttys, produce more than one truncation
5962 glyph for multi-column characters that don't fit on the line.
a98b5ed9 5963
ac95a621
GM
5964 * xselect.c (x_reply_selection_request): Add a comment.
5965
c1efd260
GM
5966 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
5967 XkbGetNames instead of XkbGetKeyboard.
5968
1bfb1345
DL
59692001-01-10 Dave Love <fx@gnu.org>
5970
5971 * sysdep.c (random): Revert the declaration.
5972
38119822
GM
59732001-01-09 Gerd Moellmann <gerd@gnu.org>
5974
52283633
SM
5975 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
5976 Call function string_bytes.
35f464a7
GM
5977 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
5978
5979 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
5980 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
5981 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
5982 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
5983 the current sblock.
5984 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
5985 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
5986 after sweeping strings, and at the end.
5987 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
5988
38119822
GM
5989 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
5990 ensure that pop_message is called.
5991
5992 * keyboard.c (Fexecute_extended_command): Use a
5993 record_unwind_protect to ensure that pop_message is called.
5994
5995 * lisp.h (push_message_unwind): Add prototype.
5996
5997 * xdisp.c (push_message_unwind): New function.
5998
5999 * fileio.c (do_auto_save_unwind): Do the pop_message here
6000 instead of in Fdo_auto_save.
6001 (Fdo_auto_save): Don't call pop_message.
6002
f47a9ec4
KR
60032001-01-08 Ken Raeburn <raeburn@gnu.org>
6004
6005 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
6006 in inner block.
6007
a758f97d
GM
60082001-01-08 Gerd Moellmann <gerd@gnu.org>
6009
6d0afc03
GM
6010 * window.c (window_scroll_pixel_based): Adjust glyph matrices
6011 when increasing window's vscroll.
6012
a758f97d
GM
6013 * macros.c (Qkbd_macro_termination_hook): New variable.
6014 (syms_of_macros): Initialize and staticpro it.
6015 (pop_kbd_macro): Run kbd-macro-termination-hook.
6016
6017 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
6018
1bfb1345 60192001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
6020
6021 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
6022 arglist, for documentation's sake.
6023
0dac6924
AI
60242001-01-06 Andrew Innes <andrewi@gnu.org>
6025
6026 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
6027 of *.pdb.
6028
8182406a
AI
60292001-01-05 Andrew Innes <andrewi@gnu.org>
6030
6031 * term.c (update_end): Don't check updating_frame; for some reason
6032 this can be 0 sometimes, such as after dismissing a popup menu,
6033 and isn't necessary given the explicit frame argument.
6034
3828218c
GM
60352001-01-05 Gerd Moellmann <gerd@gnu.org>
6036
6037 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
6038 on some systems, and an unsigned long on others, like FreeBSD 4.1.
6039
2f5ded21
GM
60402001-01-04 Gerd Moellmann <gerd@gnu.org>
6041
52283633 6042 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
6043
6044 * xfns.c (x_create_tip_frame): Preserve the value of
6045 face_change_count around the creation of the tip frame.
52283633 6046
2f5ded21
GM
6047 * xfns.c (last_show_tip_args): New variable.
6048 (compute_tip_xy): New function.
6049 (Fx_show_tip): Reuse an existing tip frame, if possible.
6050 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
6051
dfad65fa
DL
60522001-01-04 Dave Love <fx@gnu.org>
6053
64d4ec0f
DL
6054 * editfns.c (Fformat): Doc fix.
6055
dfad65fa
DL
6056 * systime.h (set_file_times): Prototype.
6057
6058 * widget.h (EmacsFrameSetCharSize_): Prototype.
6059
6060 * sysdep.c (random, srandom): Declare explicitly.
6061
6062 * dispextern.h (move_it_vertically_backward): Declare.
6063
85fe3b5e
GM
60642001-01-04 Gerd Moellmann <gerd@gnu.org>
6065
0f2ac578
GM
6066 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
6067 like in Fx_create_frame.
6068
482cca61
GM
6069 * xfaces.c (set_font_frame_param): Don't do anything for
6070 non-graphical frames.
6071
85fe3b5e
GM
6072 * window.c (Fdelete_other_windows): Set window's window_end_valid
6073 to nil when changing the window's start. Don't change the
6074 window's start when its top position hasn't changed. If we do,
6075 this will set the window's optional_new_start, which act's like a
6076 force_start during redisplay with C-x 1 M-> under particular
6077 circumstances (see report from Per Starback to emacs-pretest-bug
6078 from 2000-12-13.).
6079
3e99d3b4
GM
60802001-01-03 Gerd Moellmann <gerd@gnu.org>
6081
a77dc1ec
GM
6082 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
6083 short cut at the start of the function. Add an assertion.
6084 (reseat_at_next_visible_line_start): Add an assertion.
6085
2f3cad6c
GM
6086 * window.c (Frecenter): When changing the window start, set the
6087 window's window_end_valid to nil.
6088 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
6089
6090 * dispextern.h (move_it_past_eol): Add prototype.
6091
6092 * xdisp.c (move_it_past_eol): New function.
6093
3e99d3b4
GM
6094 * window.c (Fwindow_end): Doc fix.
6095
60962001-01-03 Dave Love <fx@gnu.org>
6097
52283633 6098 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 6099
bafb434c
GM
61002001-01-03 Gerd Moellmann <gerd@gnu.org>
6101
6102 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
6103 the enabled_p flag of the glyph row at window_end_vpos to 0.
6104 (handle_single_display_prop): Fix last change.
6105
5297fb00
RS
61062001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
6107
6108 * window.c (Frecenter): Doc fix.
6109
13d6a61c
AI
61102001-01-02 Andrew Innes <andrewi@gnu.org>
6111
6112 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
6113
6114 * frame.h (output_method): Add output_w32_console method.
6115 (FRAME_W32_CONSOLE_P): New macro.
6116
6117 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
6118 use output_w32_console method.
6119 (Qw32_console): New Lisp_Object.
6120 (Fframep): Return it.
6121 (syms_of_frame): Init it.
52283633 6122 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
6123
6124 * xfaces.c (realize_default_face): Set face foreground and
6125 background to unspecified for w32_console frames.
6126 (realize_face): Realize face cache for w32_console frames.
6127 (realize_tty_face): Accept w32_console frames.
6128
52283633 6129 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
6130 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
6131 necessary, even if running interactively.
6132
6133 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
6134 w32_console frames.
6135
52283633
SM
6136 * w32term.c (x_update_begin):
6137 (x_update_end):
6138 (x_clear_frame):
6139 (x_ins_del_lines):
6140 (x_change_line_highlight):
6141 (x_delete_glyphs):
6142 (w32_ring_bell):
6143 (x_update_begin):
6144 (x_update_end):
6145 (w32_reassert_line_highlight):
6146 (w32_frame_rehighlight):
13d6a61c
AI
6147 (w32_frame_raise_lower): Do nothing if not w32 frame.
6148
6149 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
6150
6151 * w32fns.c (Fx_display_color_cells): Determine correct value, when
6152 system doesn't tell us directly.
6153 (Fx_display_visual_class): Implement properly.
6154
d6bb0c0d
GM
61552001-01-02 Gerd Moellmann <gerd@gnu.org>
6156
6157 * window.c (Frecenter): Handle centering in graphical frames
6158 specially. Centering on the basis of line counts doesn't work
6159 reliably with variable-height lines.
52283633 6160
315f5865
EZ
61612001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6162
6163 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
6164 and al[].
6165
52283633 6166 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
6167 (update_compositions): Remove unused variable `hook'.
6168
6169 * intervals.c (get_local_map): Remove unused variable `tem'.
6170
6171 * doprnt.c (doprnt1): Remove unused variable `size'.
6172
6173 * fns.c (Flength): Remove unused variable `tail'.
6174 (Fdelete): Remove unused variable `size'.
6175
6176 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
6177 and `gcpro2'.
6178
52283633 6179 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
6180
6181 * data.c (find_symbol_value): Remove extra 3rd argument in the
6182 call to swap_in_symval_forwarding.
6183
52283633 6184 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
6185
6186 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
6187 (trivial_regexp_p): Remove unused variable `c'.
6188 (boyer_moore): Remove unused variable `k'.
6189
6190 * indent.c (current_column): Remove unused variable `stopchar'.
6191 (Fcompute_motion): Remove unused variable `contin'.
6192
6193 * casefiddle.c (casify_object): Remove unused variable `tolen'.
6194
6195 * dired.c (directory_files_internal): Fix a typo in a comment.
6196 Remove an unused variable `handler'.
52283633 6197 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
6198 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
6199 on BSD4_2.
6200
52283633 6201 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
6202
6203 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
6204 and `buf'.
6205 (Fmarker_insertion_type): Remove unused variable `buf'.
6206
6207 * insdel.c (make_gap): Remove unused variable `result'.
6208
52283633 6209 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
6210 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
6211 (menu_bar_items): Remove unused function-scope variable `tem'.
6212
6213 * fontset.c (fontset_ref): Remove unused variable `i'.
6214 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 6215 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
6216 (make_fontset_for_ascii_face): Remove unused variable `name'.
6217 (fs_load_font): Remove unused variable `font_idx'.
52283633 6218 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
6219 (list_fontsets): Remove unused variable `tail'.
6220 (Fnew_fontset): Remove unused variables `family' and `registry'.
6221 (accumulate_font_info): Remove unused variable `tmp'.
6222 (Ffontset_font): Remove unused variable `id'.
6223 (syms_of_fontset): Remove unused variable `i'.
6224
6225 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
6226 to x_term_init.
6227 (lookup_image): Remove unused variable `file'.
6228 (xbm_load): Remove unused variables `bitmap_data', `height', and
6229 `width'. Remove function-local variable `i', leave the
6230 block-local one.
6231 (gif_load): Remove unused variable `inc'.
6232
52283633 6233 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
6234 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
6235 leave only the one in the inner block.
6236
6237 * xfaces.c (face_fontset, realize_default_face): Remove unused
6238 variable `fontset'.
6239 (face_at_buffer_position): Remove unused variable `multibyte_p'.
6240
6241 * term.c (encode_terminal_code): Remove unused variable `c'.
6242
6243 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
6244 char *' instead of `char *'.
6245
6246 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 6247 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
6248 (Fchar_category_set): Remove unused variables `val', `charset',
6249 `c1' and `c2'.
6250
52283633
SM
6251 * coding.c (detect_coding_iso2022, setup_coding_system):
6252 Remove unused variable `i'.
315f5865
EZ
6253 (detect_coding_mask): Remove unused variable `idx'.
6254 (detect_coding): Remove unused variable `i'.
6255 (ccl_coding_driver): Remove unused variable `result'.
6256 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 6257 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
6258 (encode_coding_string): Remove unused variables `gcpro1' and
6259 `saved_coding_symbol'.
6260 (Ffind_coding_systems_region_internal): Remove function-local
6261 variable args[], leave only the block-local one.
6262 (code_convert_region1): Remove unused variable `len'.
6263
6264 * charset.c (char_printable_p): Remove unused variable `chars'.
6265 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
6266 (str_to_multibyte): Remove unused variable `c'.
6267
6268 * window.c (size_window): Remove block-local variable `min_size'.
6269
6270 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
6271 `header_line_height'.
6272 (append_space, extend_face_to_end_of_line): Declare `saved_what'
6273 enum display_element_type.
6274
1a8a9daf
GM
62752001-01-02 Gerd Moellmann <gerd@gnu.org>
6276
6dde6abc 6277 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
6278 statements that call X. Save away the error message in a local copy.
6279
1883b2c6
GM
6280 * xterm.c (x_connection_closed): Set handling_signal to 0 at
6281 the start.
6282
a13be207
GM
6283 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
6284 in or at the start of invisible text.
6285
1a8a9daf
GM
6286 * dispnew.c (update_window): Don't check_current_matrix_flags.
6287
3608c0f9
JR
62882001-01-01 Jason Rumney <jasonr@gnu.org>
6289
6290 * w32fns.c (x_figure_window_size): Do not allow new_height and
6291 new_width of frame to override specified values.
6292
abb1acc4
KH
62932000-12-30 Kenichi Handa <handa@etl.go.jp>
6294
52283633 6295 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 6296
762a68ec
GM
62972000-12-29 Gerd Moellmann <gerd@gnu.org>
6298
52283633 6299 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
6300 (update_window) [GLYPH_DEBUG]: Call it.
6301 (scrolling_window): Prevent including current rows which are below
6302 what's displayed in the window.
6303
6304 * xdisp.c (try_window_reusing_current_matrix)
6305 <new start <= old start>: Disable rows in the current matrix
6306 which are below the window after scrolling.
52283633 6307
762a68ec
GM
6308 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
6309 is zero. It's not worth the complexity.
6310 (invisible_text_between_p): Put in #if 0 because unused.
6311
2d5912c1
GM
63122000-12-28 Gerd Moellmann <gerd@gnu.org>
6313
46f6a258
GM
6314 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
6315 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
6316
89f93679
GM
6317 * keyboard.c (echo_char): If C is an integer, always call
6318 push_key_description. Former code could signal an invalid
6319 character error.
6320
6321 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
6322 If set, print multibyte text.
6323 (Fsingle_key_description): Call push_key_description with
6324 FORCE_MULTIBYTE set.
6325 (describe_buffer_bindings): Likewise.
6326
6327 * lisp.h (push_key_description): Add prototype.
6328
c06017fb
GM
6329 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
6330 around the call to redisplay_internal.
6331
f1d2ce7f
GM
6332 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
6333
2d5912c1
GM
6334 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
6335
9371f831
KH
63362000-12-28 Kenichi Handa <handa@etl.go.jp>
6337
6338 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
6339 (ccl_driver): New local variable `extra_bytes'.
6340
6341 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
6342
52283633
SM
6343 * coding.c (setup_coding_system):
6344 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
6345 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
6346
0c80628a
KH
63472000-12-28 Kenichi Handa <handa@etl.go.jp>
6348
6349 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
6350 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
6351 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
6352 (decode_composition_emacs_mule): New function.
6353 (decode_coding_emacs_mule): Decode composition sequence by calling
6354 decode_composition_emacs_mule.
6355 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
6356 (encode_coding_emacs_mule): Changed from macro to function.
6357 If a text contains compositions, encode them correctly.
0c80628a
KH
6358 (setup_coding_system): Set coding->commong_flags for emacs-mule so
6359 that decoding and encoding are required.
6360
3e32cc27
GM
63612000-12-27 Gerd Moellmann <gerd@gnu.org>
6362
5e25feee
GM
6363 * xfaces.c (PT_PER_INCH): New macro.
6364 (xlfd_point_size): Compute real point size from font's pixel size.
6365 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
6366 instead of 72.
6367
892d8fcd
GM
6368 * .gdbinit: Comment out the line pointing to the Lesstif source
6369 directory.
6370
12c8b416
GM
6371 * window.c (Frecenter): Use displayed_window_lines instead
6372 of window_internal_height.
6373
6061fbf0
GM
6374 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
6375 instead of x-toolkit-scroll-bars-p.
6376 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
6377
6378 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
6379 instead of x-toolkit-scroll-bars-p.
6380 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 6381
3e32cc27
GM
6382 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
6383 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
6384 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
6385 New variables.
6386 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
6387 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
6388 (build_frame_matrix_from_leaf_window): Remove unused code.
6389 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
6390 redisplay history.
6391 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
6392 (update_window) [GLYPH_DEBUG]: Likewise.
6393 (syms_of_display): Defsubr dump-redisplay-history.
6394
31798cfe
GM
63952000-12-23 Gerd Moellmann <gerd@gnu.org>
6396
f717c2ba
GM
6397 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
6398 the end of the prompt. Set echo_after_prompt to the offset
6399 of echoptr in echobuf.
6400
aeb2b8fc
GM
6401 * xdisp.c (init_from_display_pos): Pop until the iterator's
6402 stack is empty; there may be frames for stretch or images
6403 on the stack.
6404
31798cfe
GM
6405 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
6406 (save_or_restore_current_matrix): New function for the same
6407 purpose, but more efficient.
6408 (adjust_frame_glyphs_for_frame_redisplay): Use it.
6409
f8156156
EZ
64102000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
6411
6412 * xdisp.c (syms_of_xdisp): Fix last change.
6413
bdd6d4e8
GM
64142000-12-23 Gerd Moellmann <gerd@gnu.org>
6415
6416 * xdisp.c (syms_of_xdisp): Doc fix.
6417
6418 * xdisp.c (redisplay_window): Remove label restore_buffers;
6419 use finish_scroll_bars instead to make sure that scroll bars
6420 are redeemed. If we don't do this, flickering can result from
6421 scroll bars being destroyed and recreated.
6422
9436cdf9
JR
64232000-12-22 Jason Rumney <jasonr@gnu.org>
6424
6425 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
6426 in the wrong colors when the foreground is not black.
6427 (expose_window): Don't redraw the window that's currently being
6428 updated.
6429
951f9df5
GM
64302000-12-22 Gerd Moellmann <gerd@gnu.org>
6431
856ff7a7
GM
6432 * window.c (size_window): When setting the window's too_small_ok
6433 flag, compare old size with minimum size depending on WIDTH_P,
6434 don't compare with window_min_width.
52283633 6435
951f9df5
GM
6436 * window.c (delete_window): Simplify somewhat.
6437 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
6438 freeing window matrices. The flag windows_or_buffers_changed is
6439 set, so the next redisplay will consider all windows; this should
6440 suffice.
6441
886bc933
KH
64422000-12-22 Kenichi Handa <handa@etl.go.jp>
6443
6444 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
6445
6446 * ccl.h (struct ccl_program): New member cr_consumed.
6447
6448 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
6449 (CCL_READ_CHAR): Handle EOL conversion here.
6450 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
6451
177f4e88
GM
64522000-12-21 Gerd Moellmann <gerd@gnu.org>
6453
52283633 6454 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
6455
6456 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
6457 otherwise tabs of different size compare equal.
6458
6459 * callint.c (Fcall_interactively): Prevent a compiler warning.
6460
6461 * print.c (print_unwind): Return nil.
6462 (PRINTDECLARE): Initialize all local variables.
6463 (print_preprocess): Add a default case.
6464
8e15274f
GM
6465 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
6466
6467 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
6468
52283633 6469 * window.c (delete_window, Fsplit_window)
177f4e88
GM
6470 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
6471
6472 * dispextern.h (ensure_frame_matrix): Function declaration removed.
6473
6474 * dispnew.c (ensure_frame_matrix): Removed.
6475 (save_frame_matrix, restore_frame_matrix): New functions.
6476 (adjust_frame_glyphs_for_frame_redisplay): Use them.
6477
6478 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
6479 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
6480
99012074
AI
64812000-12-21 Andrew Innes <andrewi@gnu.org>
6482
6483 * w32term.c (x_update_begin): Regenerate the palette here, rather
6484 than for each window.
6485
6486 * w32xfns.c (select_palette): Avoid calling SelectPalette if
6487 palette is NULL, since this corrupts memory! Also get
6488 display_info reference from frame.
6489
29ef7d2d
JR
64902000-12-21 Jason Rumney <jasonr@gnu.org>
6491
6492 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
6493
6494 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
6495 to avoid returning without releasing it.
3e27fa1f 6496
3f9d67a6
KH
64972000-12-21 Kenichi Handa <handa@etl.go.jp>
6498
587fc3f9
KH
6499 * keymap.c (push_key_description): Don't convert eight-bit-control
6500 and eight-bit-graphic to multibyte character.
6501
3f9d67a6
KH
6502 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
6503 generic character and CODE1 is nil, return the smallest character
6504 in CHARSET.
6505
774ba8c9
DL
65062000-12-20 Dave Love <fx@gnu.org>
6507
6508 * s/osf5-0.h (NSIG): Don't redefine.
6509
88416888
SM
65102000-12-20 Stefan Monnier <monnier@cs.yale.edu>
6511
6512 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
6513 excluding menu-bar and tool-bar.
6514 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
6515 (menu_item_p): Remove.
6516 (where_is_internal_1): Don't ignore menu-items.
6517
a6426c6f
GM
65182000-12-20 Gerd Moellmann <gerd@gnu.org>
6519
03ff8aab
GM
6520 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
6521 into account.
6522
6523 * window.c (make_window): Initialize window's min_hscroll.
6524 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
6525 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
6526 to zero.
6527 (struct saved_window): New member min_hscroll.
6528 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
6529 (Fset_window_configuration): Set window's min_hscroll.
6530 (save_window_save): Save window's min_hscroll.
6531 (compare_window_configurations): Compare min_hscroll values.
6532
6533 * window.h (struct window): New member min_hscroll.
6534
6535 * keyboard.c (echo_prompt): Prevent a compiler warning.
6536
8de4aaf8
GM
6537 * xdisp.c (try_cursor_movement): Fix last change. The real
6538 condition is that PT is at the end of the row, and should
6539 be displayed at the start of the next row.
52283633 6540
3f7e3031
GM
6541 * xdisp.c (try_cursor_movement): If we end on a partially
6542 visible line, end we already decided to scroll, return -1.
6543
a6426c6f
GM
6544 * dispextern.h (ensure_frame_matrix): Add prototype.
6545
6546 * window.c (delete_window, Fsplit_window)
6547 (Fset_window_configuration): Call ensure_frame_matrix.
6548
52283633
SM
6549 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
6550 New functions.
a6426c6f
GM
6551 (adjust_frame_glyphs_for_frame_redisplay): If display has been
6552 completed, call fake_current_matrices instead of marking frame
6553 garbaged.
6554
57fa2774
JR
65552000-12-20 Jason Rumney <jasonr@gnu.org>
6556
6557 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
6558
d925df90
EZ
65592000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
6560
6561 * fns.c (Frequire): Doc fix.
6562
7b93a85b
GM
65632000-12-19 Gerd Moellmann <gerd@gnu.org>
6564
52283633 6565 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 6566
c74e645b
GM
6567 * dispnew.c (direct_output_for_insert): Fix check for mini-window
6568 currently displaying a message.
6569
7b93a85b
GM
6570 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
6571 xterm.h.
6572 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
6573
90d97e64
AI
65742000-12-18 Andrew Innes <andrewi@gnu.org>
6575
6576 * w32.c (w32_strerror): New function.
6577
6578 * w32.h (w32_strerror): New extern.
6579
6580 * w32fns.c (Fw32_shell_execute): Use it.
6581
91c9e6ce
GM
65822000-12-18 Gerd Moellmann <gerd@gnu.org>
6583
6584 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
6585
6f4745e2
EZ
65862000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
6587
6588 * msdos.c (IT_set_face): Obey inverse_video.
6589
c9e088ce
KH
65902000-12-18 Kenichi Handa <handa@etl.go.jp>
6591
6592 * dired.c (directory_files_internal): Always return decoded filenames.
6593
c3695f5f
GM
65942000-12-18 Gerd Moellmann <gerd@gnu.org>
6595
52d8e4ff
GM
6596 * xterm.c (x_connection_closed): Prevent being called recursively
6597 because of an error condition in XtCloseDisplay.
52283633 6598
62be9979
GM
6599 * xdisp.c (init_iterator): If noninteractive, and the frame's
6600 face cache is null, make one.
6601
52283633 6602 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 6603
c3695f5f
GM
6604 * process.c (wait_reading_process_input): Check for pending
6605 input when running timers.
6606
78555fbe
EZ
66072000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
6608
52283633 6609 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 6610
b2b36264
KH
66112000-12-18 Kenichi Handa <handa@etl.go.jp>
6612
6613 * process.c (read_process_output): Don't run a filter if the code
6614 decoder produces nothing but carryover.
6615
9c543fbf
AI
66162000-12-17 Andrew Innes <andrewi@gnu.org>
6617
6618 * w32.c (sys_rename): Only check errno against EEXIST, and not
6619 EACCES, when determining whether rename failed because the target
6620 exists. This was resulting in indefinite looping on Windows 9x if
6621 the source file was locked by another process.
6622
6623 * w32fns.c (Ffile_system_info): New function.
6624 (syms_of_w32fns): Defsubr it.
6625
10c2b5a8
GM
66262000-12-17 Gerd Moellmann <gerd@gnu.org>
6627
b0228ace
GM
6628 * window.c (coordinates_in_window): Fix computation for
6629 position on vertical line between mode lines.
6630
10c2b5a8
GM
6631 * xfns.c (unwind_create_frame): Return t if frame was deleted.
6632 Don't alter tip_frame or tip_window.
6633 (unwind_create_tip_frame): Set tip_frame to nil only if frame
6634 was deleted.
6635
c844a81a
GM
6636 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
6637 Don't alter tip_frame or tip_window.
6638 (unwind_create_tip_frame): Set tip_frame to nil only if frame
6639 was deleted.
6640
6c825f8e
EZ
66412000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
6642
6643 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
6644 be consistent with the doc string. Reported by NAKAJIMA Mikio
6645 <minakaji@osaka.email.ne.jp>.
6646
af4bb4c8
KH
66472000-12-16 Kenichi Handa <handa@etl.go.jp>
6648
6649 * xfaces.c (Vface_ignored_fonts): New variable.
6650 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
6651 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
6652
8062e53a
GM
66532000-12-15 Gerd Moellmann <gerd@gnu.org>
6654
e87b8809
GM
6655 * dispnew.c (update_window): Detect pending input every nth line
6656 updated, i.e. do it depending on real work done, and not on the
6657 vpos of the line.
6658
6659 * xterm.c (expose_window): Don't redraw the window that's
6660 currently being updated.
6661
a6768cc5
GM
6662 * window.c (Fset_window_point): Remove test for
6663 cursor_in_non_selected_windows.
6664
4ea7fdca
GM
6665 * lread.c (read1): Recognize end of file after `\\'.
6666
8062e53a
GM
6667 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
6668 not unwind_create_frame.
6669
bb7959c1
GM
66702000-12-15 Dave Love <fx@gnu.org>
6671
6672 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
6673 bcopy & al.
6674
6675 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
6676
ced04c42
KH
66772000-12-15 Kenichi Handa <handa@etl.go.jp>
6678
c5443913
KH
6679 * coding.c (setup_coding_system): Clear all members of the struct
6680 coding_system at first.
bc137305
KH
6681 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
6682 argument.
6683 (code_convert_region): Don't override coding->src_multibyte and
6684 coding->dst_multibyte.
c5443913 6685
ced04c42
KH
6686 * fns.c (Fmd5): Docstring improved.
6687
c2d7f289
MB
66882000-12-15 Miles Bader <miles@gnu.org>
6689
6690 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
6691 are actually marked as mode-lines; otherwise use
6692 estimate_mode_line_height.
6693
9d7d9263
GM
66942000-12-14 Gerd Moellmann <gerd@gnu.org>
6695
6696 * editfns.c (Fformat): Prevent a buffer overrun when the format
6697 specifies a precision.
6698
7cf0153a
EZ
66992000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
6700
6701 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
6702 argument is outside the range [2..3].
6703
1de0f662
AI
67042000-12-14 Andrew Innes <andrewi@gnu.org>
6705
6706 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
6707 nothing to do. Bind inhibit-quit.
6708 (tip_frame): Make it a Lisp_Object.
6709 (x_create_tip_frame): Set tip_frame after it has been added to
6710 Vframe_list.
6711 (Fx_show_tip): Don't set tip_frame here.
52283633 6712 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
6713 (unwind_create_frame, unwind_create_tip_frame): New functions.
6714 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
6715 while a frame is only partially constructed.
6716
6717 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
6718 (x_free_frame_resources): New function.
6719 (x_destroy_window): Use it.
6720
02387dcc
GM
67212000-12-14 Gerd Moellmann <gerd@gnu.org>
6722
6723 * xfns.c (Fx_backspace_delete_keys_p): New function.
6724 (syms_of_xfns): Defsubr it.
6725
6726 * config.in (HAVE_XKBGETKEYBOARD): Add.
6727
0544ef49
KH
67282000-12-14 Kenichi Handa <handa@etl.go.jp>
6729
98d62747
KH
6730 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
6731 Always store string in multibyte representation in echobuf.
6732 (echo_char): Always store string in multibyte representation in
6733 echobuf.
6734 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
6735 (read_key_sequence): Adjusted for the change of echo_prompt.
6736
a20193cd
KH
6737 * fns.c (Fmd5): Docstring improved.
6738
191b83b6
KH
6739 * lisp.h (detect_coding_system): Prototype adjusted.
6740
0544ef49
KH
6741 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
6742 (detect_coding_emacs_mule, detect_coding_iso2022,)
6743 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
6744 (detect_coding_utf_16, detect_coding_ccl): Make them static.
6745 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
6746 (detect_coding_mask, detect_coding_system): New argument
6747 MULTIBYTEP. Callers changed.
1da1bb05
KH
6748 (decode_coding_string): Set coding->src_multibyte and
6749 coding->dst_multibyte before calling detect_coding and detect_eol.
6750 Update them after some coding system is detected.
52283633 6751
d5b3eb1b
SM
67522000-12-13 Stefan Monnier <monnier@cs.yale.edu>
6753
6754 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
6755
6756 * keyboard.c (menu_bar_items, tool_bar_items):
6757 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
6758
f7f8bb69
GM
67592000-12-13 Gerd Moellmann <gerd@gnu.org>
6760
52283633 6761 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
6762 New variables.
6763 (unwind_create_frame, unwind_create_tip_frame): New functions.
6764 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
6765 while a frame is only partially constructed.
6766
6767 * xterm.h (x_free_frame_resources): Declare.
6768
6769 * xterm.c (x_free_frame_resources): New function.
6770 (x_destroy_window): Use it.
6771
e10da507
GM
6772 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
6773 don't interrupt the update for pending input initially, i.e.
6774 update at least some lines.
6775
6776 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 6777
d5b3eb1b 6778 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
6779
6780 * xfns.c (gray_bitmap_bits): Declare `char *'.
6781
90aa2856
GM
67822000-12-12 Gerd Moellmann <gerd@gnu.org>
6783
6784 * xdisp.c (display_tool_bar_line): Make sure that tool bar
6785 lines start with a relief line.
6786
a308c9cd
DL
67872000-12-12 Dave Love <fx@gnu.org>
6788
6789 * window.c (Fdisplay_buffer): Doc fix.
6790 (Fwindow_list): Remove unused var.
6791
6792 * buffer.h (mmap_set_vars): Declare.
6793
6794 * window.h (Fset_window_point): Declare.
6795
d575011f
EZ
67962000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
6797
bf6282d2 6798 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
6799 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
6800 variable `area'. When looking for a row under (X,Y), give up if some
6801 of the previous rows is not enabled.
d575011f 6802
ecf4d726
GM
68032000-12-12 Gerd Moellmann <gerd@gnu.org>
6804
2ebf6139
GM
6805 * window.c (Fset_window_point): If displaying cursors in windows
6806 other than the selected window, make sure redisplay updates
6807 other windows to show the new value of point in the window.
6808
6809 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
6810
bfdb75ee
GM
6811 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
6812 the buffer is the sole visible buffer when in the mini-buffer.
6813
52283633 6814 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
6815 Bind `inhibit-read-only' to t.
6816 (unwind_with_echo_area_buffer): Use AREF.
6817
c0006262
GM
6818 * xfns.c (Fx_hide_tip): Simplified.
6819
52283633
SM
6820 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
6821 instead of `1'.
e9a59cad 6822
ecf4d726
GM
6823 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
6824
e5959a9a
GM
68252000-12-11 Gerd Moellmann <gerd@gnu.org>
6826
a3642e49 6827 * xfns.c (Fx_hide_tip): Fix last change.
52283633 6828
44b5a125
GM
6829 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
6830 nothing to do. Bind inhibit-quit.
6831 (tip_frame): Make it a Lisp_Object.
6832 (x_create_tip_frame): Set tip_frame after it has been added to
6833 Vframe_list.
6834 (Fx_show_tip): Don't set tip_frame here.
6835
6836 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
6837
6838 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
6839 Lisp_Object.
6840
6841 * dispextern.h: Change external declaration of tip_frame.
6842
d990421f
GM
6843 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
6844 return an empty string.
6845
4db87380
GM
6846 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
6847 of the window's update_mode_line flag, since the former is set by
6848 force-mode-line-update, not the latter. This makes
6849 column-number-mode slightly faster.
52283633 6850
e5959a9a
GM
6851 * xdisp.c (try_window_id) <all changes above window start>:
6852 Set the cursor.
6853
169fe44e
GM
68542000-12-11 Paul Eggert <eggert@twinsun.com>
6855
6856 * config.in (HAVE_FTELLO): Remove.
6857 (HAVE_FSEEKO): Add.
6858 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
6859 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
6860 HAVE_FTELLO.
6861 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
6862 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 6863
59ec59ae
MB
68642000-12-11 Miles Bader <miles@gnu.org>
6865
6866 * window.c (displayed_window_lines): Don't round up when
6867 converting empty space at bottom to lines.
ff904dd6
MB
6868 Handle non-newline-terminated final lines properly.
6869 (Fwindow_text_height): New function (used to be in lisp).
6870 (syms_of_window): Initialize it.
59ec59ae 6871
42ebfa31
SM
68722000-12-09 Stefan Monnier <monnier@cs.yale.edu>
6873
6874 * syntax.c (scan_lists): Check that the right quote char has the
6875 right Sstring syntax when jumping over strings.
6876 (init_syntax_once): Use Smax rather than 13.
6877
5cdb3cf3
MB
68782000-12-09 Miles Bader <miles@gnu.org>
6879
6880 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
6881 with PARTIALLY, inverting the sense.
6882 (window_scroll_pixel_based): Scroll partially visible lines into
6883 place if we hit the beginning or end of the buffer.
a12167c5
MB
6884 (displayed_window_lines): Don't include partially visible lines.
6885 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 6886
842b2a94
GM
68872000-12-08 Gerd Moellmann <gerd@gnu.org>
6888
6889 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
6890
6891 * tparam.c (tparam1): Change the way buffers are reallocated to be
6892 portable and less obfuscated.
6893
6894 * termcap.c (tgetent): Change the way buffers are reallocated to
6895 be portable and less obfuscated.
6896
6897 * macros.c (store_kbd_macro_char): Change the way buffers are
6898 reallocated to be portable and less obfuscated.
6899
6900 * lread.c (read1): Change the way buffers are reallocated to be
6901 portable and less obfuscated.
6902
6903 * doc.c (Fsubstitute_command_keys): Change the way buffers
6904 are reallocated so that it is portable.
6905
137cad7c
EZ
69062000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
6907
6908 * dosfns.c (Ffile_system_info): New function.
6909 (syms_of_dosfns): Defsubr it.
6910
5c7f629c
SM
69112000-12-07 Stefan Monnier <monnier@cs.yale.edu>
6912
6913 * alloc.c (gc_sweep): Add comment.
6914
959e647d
GM
69152000-12-07 Gerd Moellmann <gerd@gnu.org>
6916
52283633
SM
6917 * sound.c (vox_configure): Change order of ioctls.
6918 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
6919 Ignore errors when changing volume.
6920 (vox_close): Don't reset the device.
6921
926b7e5e
GM
6922 * process.c (read_process_output): Make sure the process marker's
6923 position is valid when the process buffer is changed in
6924 after-change functions. W3 does that.
52283633 6925
959e647d
GM
6926 * xfns.c (x_free_gcs): New function.
6927
6928 * xterm.h (x_free_gcs): Add prototype.
6929
6930 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
6931 freeing GCs here.
6932
6933 * xterm.c (x_destroy_window): Call x_free_gcs so that
6934 resources of non-toolkit X windows will be freed.
6935
478ea067
AI
69362000-12-07 Andrew Innes <andrewi@gnu.org>
6937
6938 * w32fns.c (xlfd_charset_of_font): Fix last change.
6939
fbee3231
DL
69402000-12-06 Dave Love <fx@gnu.org>
6941
67292061
DL
6942 * md5.h (__P): Don't define -- it comes from config.h.
6943
fbee3231
DL
6944 * strftime.c: Change some #if foo to #ifdef foo.
6945
4ee87dbb
AI
69462000-12-06 Andrew Innes <andrewi@gnu.org>
6947
6948 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
6949
52283633 6950 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 6951 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 6952 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 6953
9765b4a4
GM
69542000-12-06 Gerd Moellmann <gerd@gnu.org>
6955
d285b373
GM
6956 * alloc.c (gc_sweep): Prevent symbols read during loadup
6957 from being freed.
6958
384333ee
GM
6959 * xdisp.c (underlying_face_id): New function.
6960 (handle_face_prop, face_before_or_after_it_pos): Use it
6961 to determine the face ``under'' a string. Let strings inherit
6962 the face of the buffer under them.
6963
6964 * xfaces.c (face_at_string_position): Update function comment.
52283633 6965
d4b72d58
GM
6966 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
6967 matrix if the window's left position has changed; we need to
6968 redraw it in this case.
6969
6970 * dispextern.h (struct glyph_matrix): Add member window_left_x.
6971
e1d05387
GM
6972 * window.c (coordinates_in_window): Check mouse on mode-line or
6973 header-line first.
6974
eb1b0c74
GM
6975 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
6976 advertized by the function documentation.
6977
d94d636f
GM
6978 * window.c (syms_of_window): Doc fix.
6979
3887b449
GM
6980 * sound.c (vox_configure): Set volume for left and right channel.
6981 (sound_cleanup): Return nil.
6982
efc8f57a
GM
6983 * xdisp.c (move_it_by_lines): Fix paren typo.
6984
9765b4a4
GM
6985 * xterm.c (x_load_font): Don't use the font's max_bounds for
6986 computing the height of the font. If max_bounds' ascent or
6987 descent are greater than the font's ascent or descent, this means
6988 glyphs overlap, which should be handled now by redisplay.
6989
6529ed87
GM
6990 * window.c (Veven_window_heights): New variable.
6991 (syms_of_window): DEFVAR_LISP it.
6992 (Fdisplay_buffer): Check Veven_window_heights before evening the
6993 window heights.
52283633 6994
0eb2ecde
MB
69952000-12-06 Miles Bader <miles@gnu.org>
6996
6997 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
6998 update `default-frame-alist' instead of setting no frame parameters.
6999
03d7a167
KH
70002000-12-06 Kenichi Handa <handa@etl.go.jp>
7001
7002 * composite.c (update_compositions): Fix typo (use the correct
7003 variable).
7004
5f8803c2
JR
70052000-12-05 Jason Rumney <jasonr@gnu.org>
7006
7007 * md5.h: Remove underscores from function declarations.
7008 (__attribute__, __alignof__) [!__GNUC__]: Define.
7009
7010 * md5.c: Delay include of md5.h until after namespace cleaning.
7011
c28a075b
JR
7012 * makefile.w32-in (fns.o): Depend on md5.h
7013 (md5.o): New target.
7014 (sunfns.o): Remove.
7015
7016 * makefile.nt: Likewise.
7017
ff3c7056
JR
70182000-12-05 Jason Rumney <jasonr@altavista.net>
7019
7020 * w32term.c (expose_area): Complete last change.
7021
0c21eeeb
KR
70222000-12-05 Ken Raeburn <raeburn@gnu.org>
7023
7024 * minibuf.c: Include intervals.h.
7025
f201d732
JR
70262000-12-05 Jason Rumney <jasonr@gnu.org>
7027
7028 * w32term.c (x_produce_glyphs): If a font for a component of
7029 a composition is not found, use 1 pixel dot ascent and 0 dot
7030 descent value to avoid displaying terribly tall empty boxes.
7031 (expose_area): Pass x-coordinate relative to the exposed
7032 area to x_draw_glyphs instead of a window-relative coordinate.
7033
21999ab9
GM
70342000-12-05 Gerd Moellmann <gerd@gnu.org>
7035
4d2036e4
GM
7036 * xdisp.c (next_element_from_ellipsis): Save face before selective
7037 display in saved_face_id, and set face_before_selective_p.
7038 (reseat_1): Reset face_before_selective_p.
7039 (append_space, extend_face_to_end_of_line): If iterator's
7040 face_before_selective_p is set, use the face from saved_face_id.
7041 (extend_face_to_end_of_line): For tty frames, make sure to
7042 use the right face id when producing spaces at the end of
7043 the line.
7044
7045 * dispextern.h (struct it): Add face_before_selective_p.
7046
52be17cc
GM
7047 * keyboard.c (record_char): Don't record identical help-echo
7048 events in recent_keys.
7049
8a4f36cc
GM
7050 * xterm.c [USE_X_TOOLKIT]: Close the display.
7051 (xim_close_dpy): Handle case that the display has been closed.
7052
57d6e381
GM
7053 * xterm.c (x_destroy_window): Reset the frame's X window after
7054 destroying it.
7055
21999ab9
GM
7056 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
7057 variable window_width.
7058 (line_draw_cost): Fix code skipping over spaces at the end of the
7059 line when must_write_spaces is not set.
7060 (scrolling_window): Fix code inserting runs in list of all runs.
7061
91372bb7
KH
70622000-12-05 Kenichi Handa <handa@etl.go.jp>
7063
7064 * coding.c (setup_coding_system): Be sure to initialize
7065 coding->category_idx.
7066
6c083b4c
GM
70672000-12-04 Gerd Moellmann <gerd@gnu.org>
7068
0c68ce6f 7069 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 7070
6452929e
GM
7071 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
7072 area to x_draw_glyphs instead of a window-relative coordinate.
7073
d7f31e22
GM
7074 * fileio.c (auto_save_error): Add parameter ERROR. Show the
7075 error in the message.
7076
ae18aa3b
GM
7077 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
7078 timer after having read a key. It's not good for code reading
7079 several keys in a loop, like an input method.
7080
caa15ef7
GM
7081 * fileio.c (Finsert_file_contents): When VISIT is t, don't
7082 record undo information for format-decode.
7083
7084 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
7085 current buffer is read-only, not if it isn't.
7086
6c083b4c
GM
7087 * keyboard.c (record_char): Record `help-echo' input events
7088 in recent_keys only if they display some help. Don't record
7089 `help-echo' events as macro char.
7090
caa15ef7
GM
70912000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
7092
7093 * editfns.c (save_excursion_restore): Don't move point
7094 in another window if it is showing the wrong buffer.
7095 Avoid the call to Fwindow_live_p, for speed.
7096
5a13529b
KH
70972000-12-04 Kenichi Handa <handa@etl.go.jp>
7098
e225faa7
KH
7099 * xfaces.c (struct font_name): New member registry_priority.
7100 (split_font_name): Initialize the above member to zero.
7101 (concat_font_list): New function.
7102 (font_list): Include fonts of all alternative registries.
7103 (FONT_POINT_SIZE_QUANTUM): New macro.
7104 (better_font_p): Ignore point size difference less than
7105 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
7106
e89648b4
KH
7107 * xterm.c (x_produce_glyphs): If a font for a component of
7108 a composition is not found, use 1 pixel dot ascent and 0 dot
7109 descent value to avoid displaying terribly tall empty boxes.
7110
5a13529b
KH
7111 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
7112
d7935eb6
KR
71132000-12-03 Ken Raeburn <raeburn@gnu.org>
7114
7115 * coding.h (code_convert_string1): Declare.
7116
7117 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
7118
52283633 7119 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 7120
0dd5e255
JR
71212000-12-02 Jason Rumney <jasonr@gnu.org>
7122
7123 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
7124 correctly for single byte character case.
7125 (w32_per_char_metric): Do not try to make any assumptions about
7126 the metrics of BDF fonts.
250cfece 7127 (x_estimate_mode_line_height): If `mode-line' face
52283633 7128 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
7129 (note_mouse_highlight): Change the cursor shape on the vertical
7130 border between windows [not enabled].
7131
7132 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
7133
7134 * w32fns.c (Fx_create_frame): Reintroduce the call to
7135 face-set-after-frame-defaults.
7136 (Vx_window_horizontal_drag_shape): New variable.
7137 (syms_of_xfns): DEFVAR_LISP it.
7138 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
7139 enabled].
0dd5e255 7140
b5d8d2ca
GM
71412000-12-02 Simon Josefsson <simon@josefsson.org>
7142
7143 * fns.c (Fmd5): Use a different logic to decide the coding system
7144 to use.
7145
7146 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
7147
fbb87147
EZ
71482000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
7149
52283633 7150 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 7151
447e9da0
GM
71522000-12-01 Gerd Moellmann <gerd@gnu.org>
7153
7708ced0
GM
7154 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
7155 height for YNegative.
7156 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
7157 height; also see comment there.
7158
447e9da0
GM
7159 * window.c (coordinates_in_window): Handle computations for
7160 positions on the vertical bar and fringes differently for
7161 window-system frames. Consider some pixels near the vertical bar
7162 as on the bar if the frame doesn't have vertical scroll bars.
7163 Associate positions between mode or header lines with the
7164 right window, the left one.
7165
86d1db20
JR
71662000-12-01 Jason Rumney <jasonr@gnu.org>
7167
7168 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
7169
7170 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
7171 invalid frame.
7172
a1d58e5b
GM
71732000-12-01 Gerd Moellmann <gerd@gnu.org>
7174
52283633 7175 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
7176 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
7177 (save_window_save, Fset_window_configuration): Save/restore
7178 window's orig_top and orig_height.
7179
89c609af
JR
71802000-12-01 Jason Rumney <jasonr@gnu.org>
7181
4d177746 7182 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 7183
89c609af
JR
7184 * w32fns.c (x_set_cursor_color): Fix last change.
7185
eccc05db
GM
71862000-11-30 Gerd Moellmann <gerd@gnu.org>
7187
31b6671b
GM
7188 * xdisp.c (echo_area_display): If cursor is in the echo area, make
7189 sure that the next redisplay displays the minibuffer, so that
7190 the cursor will be replaced with what the minibuffer wants.
7191
eccc05db
GM
7192 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
7193 #ifndef instead of using #if.
7194 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
7195 USE_TOOLKIT_SCROLL_BARS is defined.
7196
162de750
JR
71972000-11-30 Jason Rumney <jasonr@gnu.org>
7198
7199 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
7200 x_display_cursor.
7201
693c4692
GM
72022000-11-30 Gerd Moellmann <gerd@gnu.org>
7203
7204 * fns.c (Fmd5): Doc fix.
7205
b5d8d2ca 72062000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
7207
7208 * fns.c (Fmd5): New function.
7209 (syms_of_fns): Defsubr md5.
7210
7211 * Makefile.in (obj): Add md5.o
7212
b02cd40b
GM
72132000-11-30 Gerd Moellmann <gerd@gnu.org>
7214
edfb795e
GM
7215 * md5.h, md5.c: New files, taken from glibc.
7216
df3aedcf
GM
7217 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
7218
b02cd40b 7219 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 7220 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 7221
8b5176cd
SM
72222000-11-29 Stefan Monnier <monnier@cs.yale.edu>
7223
7224 * eval.c (Frun_hooks): Allow 0 arguments.
7225
346598f1
GM
72262000-11-29 Gerd Moellmann <gerd@gnu.org>
7227
f9396e03
GM
7228 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
7229 is over the menu bar widget, say it's not on the frame.
7230
4a967a9b
GM
7231 * xfns.c (Fx_create_frame): Reintroduce the call to
7232 face-set-after-frame-defaults.
7233
346598f1
GM
7234 * eval.c (Fsignal): Reset handling_signal.
7235
222456a1
JR
72362000-11-28 Jason Rumney <jasonr@gnu.org>
7237
7238 * w32menu.c (add_menu_item): Reset menu item text when changing
7239 type to radio button.
7240
8049ddc0
GM
72412000-11-28 Gerd Moellmann <gerd@gnu.org>
7242
346598f1 7243 * xselect.c: Update copyright.
f4f4ee4d 7244
bebe4a2c
GM
7245 * window.c (coordinates_in_window): If on a mode or header line,
7246 but sufficiently close to its start, return ``on vertical
7247 border''. This gives us a way to drag windows horizontally when
7248 using toolkit scroll bars.
7249
7250 * xterm.c (note_mouse_highlight): Change the cursor shape
7251 on the vertical border between windows.
7252
7253 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
7254
7255 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
7256 (syms_of_xfns): DEFVAR_LISP it.
7257 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
7258
8d2c2642
GM
7259 * textprop.c (text_read_only): New function.
7260 (verify_interval_modification): Use it instead of signaling
7261 `text-read-only'. This makes it easier to catch this error
52283633 7262 with a breakpoint.:
8d2c2642 7263
52283633 7264 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
7265 not end of line, which includes CR.
7266
5a2bae6c
KH
72672000-11-28 Kenichi Handa <handa@etl.go.jp>
7268
7269 * coding.c (Ffind_coding_systems_region_internal): Be sure to
7270 include no-conversion.
7271
ae31f84d
JR
72722000-11-27 Jason Rumney <jasonr@gnu.org>
7273
7274 * w32fns.c (w32_load_system_font): Always mark font as double byte
7275 if codepage is unicode.
7276
67f1cf4c
GM
72772000-11-27 Gerd Moellmann <gerd@gnu.org>
7278
4a74d071 7279 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 7280 just consume it to avoid unintended skipping over invisible text below.
4a74d071 7281
902ae620
GM
7282 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
7283 `vertical-line', `mode-line' and `header-line' events.
7284
7285 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
7286 of a character, a TAB for instance. This is easier than to set
7287 up the iterator exactly, and it's not a frequent case, so the
7288 additional effort wouldn't really pay off.
7289
c1e279c2
AC
72902000-11-26 Andrew Choi <akochoi@i-cable.com>
7291
67f1cf4c 7292 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
7293 init_window_once.
7294
a609568a
JR
72952000-11-25 Jason Rumney <jasonr@gnu.org>
7296
52283633
SM
7297 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
7298 Args to window_from_coordinates should be pixel coordinates.
48b21762 7299
a609568a
JR
7300 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
7301 redisplay handles them properly.
7302
a658d039
MB
73032000-11-25 Miles Bader <miles@gnu.org>
7304
7305 * indent.c (compute_motion): Keep pos_byte in sync with pos.
7306
d3416cca
JR
73072000-11-24 Jason Rumney <jasonr@gnu.org>
7308
7309 * w32.c (init_environment): Set LANG environment variable based on
7310 locale settings, if not set.
7311
7312 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
7313 making tool bar smaller. When clearing the frame, also
7314 clear current matrices. Clear frame when tool bar disappears.
7315 Don't use more lines for the tool-bar than is available.
7316 (x_change_window_heights): New function.
7317
ba193890
GM
73182000-11-24 Gerd Moellmann <gerd@gnu.org>
7319
2be8f184
GM
7320 * xdisp.c (init_from_display_pos): If POS says we're already after
7321 an overlay string ending at POS, make sure to pop the iterator
7322 because it will be in front of that overlay string. When POS is
7323 ZV, we've thereby also ``processed'' overlay strings at ZV.
7324
ba193890
GM
7325 * xfaces.c (lface_from_face_name): Function comment fix.
7326
1862a24e
MB
73272000-11-24 Miles Bader <miles@gnu.org>
7328
7329 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
7330 apply `mode-line-inverse-video' -- zero means force display using
7331 the default face, non-zero means display using the specialized face.
7332 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
7333
f07fa1b8
KH
73342000-11-23 Kenichi Handa <handa@etl.go.jp>
7335
7336 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
7337 hard coded `4'.
7338
2bcdf662
EZ
73392000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
7340
7341 * coding.c (decode_coding_emacs_mule): Fix the case of
7342 CODING_EOL_LF, which used uninitialized value of c.
7343
ba8299ff
SM
73442000-11-23 Stefan Monnier <monnier@cs.yale.edu>
7345
7346 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
7347
f4117c4d
GM
73482000-11-22 Gerd Moellmann <gerd@gnu.org>
7349
03e757c1
GM
7350 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
7351 buffer object.
7352
f4117c4d
GM
7353 * frame.h (struct frame): Replace desired_tool_bar_items,
7354 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 7355 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
7356
7357 * frame.c (make_frame): Change initialization of tool bar
7358 items accordingly.
7359
7360 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 7361 Change references to members deleted from struct frame to use the
f4117c4d
GM
7362 new ones.
7363
7364 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 7365 references to members deleted from struct frame to use the new ones.
f4117c4d 7366
52283633 7367 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
7368
7369 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
7370
7371 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 7372 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
7373 from struct frame to use the new ones.
7374
f8e2f3f2
MB
73752000-11-23 Miles Bader <miles@gnu.org>
7376
7377 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
7378 the face's inverse-video attribute, rather than overriding it.
7379
60e8e0a5
GM
73802000-11-22 Gerd Moellmann <gerd@gnu.org>
7381
7382 * xfns.c (x_set_tool_bar_lines): Clear internal border when
7383 making tool bar smaller.
7384
92dd1b29
DL
73852000-11-22 Dave Love <fx@gnu.org>
7386
7387 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
7388
e672fdce
MB
73892000-11-22 Miles Bader <miles@gnu.org>
7390
3a17d6cc
MB
7391 * keyboard.c (Vminibuffer_message_timeout): New variable.
7392 (command_loop_1): Use it to determine message timeout.
7393 (syms_of_keyboard): Initialize it.
7394
60e8e0a5 7395 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 7396
e9655d81
KH
73972000-11-22 Kenichi Handa <handa@etl.go.jp>
7398
7399 * sysdep.c: Move the code for declaring h_errno after #include
7400 <netdb.h>.
7401
77270fac
GM
74022000-11-21 Gerd Moellmann <gerd@gnu.org>
7403
cd913aae
GM
7404 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
7405 the menu bar when the tooltip is unmapped.
7406
77270fac
GM
7407 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
7408 sole visible buffer when we're currently in the mini-buffer, and
7409 give up if so.
52283633 7410
556635d6
JR
74112000-11-21 Jason Rumney <jasonr@gnu.org>
7412
7413 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
7414 put on the clipboard.
7415 (Fw32_get_clipboard_data): Compare data on clipboard with saved
7416 copy of what Emacs last put there. If they are the same, do not
52283633 7417 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 7418
5b7bde64
MB
74192000-11-22 Miles Bader <miles@gnu.org>
7420
7421 * minibuf.c (Vminibuffer_prompt_properties): New variable.
7422 (syms_of_minibuf): Initialize it.
7423 (read_minibuf): Add properties from Vminibuffer_prompt_properties
7424 to prompt, don't make read-only.
7425
ff23e1dd
GM
74262000-11-21 Gerd Moellmann <gerd@gnu.org>
7427
52283633
SM
7428 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
7429 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 7430
7aaf4388
GM
7431 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
7432
f5f47add 7433 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 7434
ff23e1dd
GM
7435 * term.c, cm.c: Don't try to include termcap.h; see comment there.
7436
37c35586
KH
74372000-11-21 Kenichi Handa <handa@etl.go.jp>
7438
7439 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
7440 ... #endif scope.
7441
ff9ab414
GM
74422000-11-20 Gerd Moellmann <gerd@gnu.org>
7443
52283633 7444 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
7445 screen supports it.
7446
29a01b72
GM
7447 * s/gnu-linux.h: Don't use `#cpu'.
7448
09dfdf85
GM
7449 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
7450 not defined in mman.h.
7451
52283633 7452 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
7453 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
7454 and store an index in the XClientMessageEvent. Storing a
7455 Lisp_Object or pointer can fail on a 64 bit system, since X only
7456 transfers 32 bits.
52283633
SM
7457 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
7458
81459ac9
DL
74592000-11-20 Dave Love <fx@gnu.org>
7460
7461 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
7462
56c13ae6
GM
74632000-11-20 Gerd Moellmann <gerd@gnu.org>
7464
7465 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
7466
495a6df3
KH
74672000-11-20 Kenichi Handa <handa@etl.go.jp>
7468
2bcf3714
KH
7469 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
7470 by WIDTH.
7471
495a6df3
KH
7472 * alloc.c (make_string): Fix previous change. Be sure to make
7473 unibyte string correctly.
7474
6d950f4c
GM
74752000-11-19 Gerd Moellmann <gerd@gnu.org>
7476
39b39373
GM
7477 * window.c (Fwindow_list): Change parameter list to be XEmacs
7478 compatible.
7479 (window_list_1): New function.
7480 (window_loop): Use it instead of Fwindow_list.
7481
b95b34e5
GM
7482 * sysdep.c (emacs_ospeed): New variable.
7483 (toplevel): Don't declare ospeed extern.
7484 (init_baud_rate): Use emacs_ospeed instead of ospeed.
7485
7486 * termcap.c (ospeed): Remove.
7487 (tputs) [!emacs]: Remove unused code.
7488 (tgetent): Avoid a compiler warning.
7489
e83dc917
GM
7490 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
7491 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 7492 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
7493
7494 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
7495 removed.
7496 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
7497 Take the X display as additional argument.
7498 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
7499 `Widget' is a pointer type that's not easily stored in Lisp_Object
7500 form in a portable way.
52283633 7501
6d950f4c
GM
7502 * dispnew.c (update_text_area): Fix last change.
7503
e47306e6
GM
75042000-11-18 Gerd Moellmann <gerd@gnu.org>
7505
fb3cd89b
GM
7506 * xdisp.c: Use BINDING_STACK_SIZE throughout.
7507
7508 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
7509 clear current matrices.
7510
edaa9aed
GM
7511 * buffer.c (mmap_enlarge): Don't print a message on stderr
7512 if mapping new memory at the end of the existing region fails.
7513
e47306e6
GM
7514 * dispnew.c (update_text_area): Don't skip over equal glyphs
7515 when the last current glyph overlaps the glyph to its right.
7516
509633e3
MB
75172000-11-18 Miles Bader <miles@gnu.org>
7518
7519 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
7520 lines that *end* with "..." too (that's the most common case!).
7521
d392e9c5
GM
75222000-11-18 Gerd Moellmann <gerd@gnu.org>
7523
67988445
GM
7524 * xdisp.c (resize_mini_window): Temporarily change to the
7525 mini-window's buffer if necessary.
1bfdbe43 7526
d392e9c5
GM
7527 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
7528 the tooltip obscures less text under it.
7529
75302000-11-17 Gerd Moellmann <gerd@gnu.org>
7531
7532 * puresize.h (BASE_PURESIZE): Increase to 700000.
7533
92bb977f
JR
75342000-11-18 Jason Rumney <jasonr@gnu.org>
7535
7536 * w32term.c (w32_draw_bitmap): Use face to set colors.
7537
26fbf20b
DL
75382000-11-17 Dave Love <fx@gnu.org>
7539
7540 * lread.c (Fload): Fix #ifdef for pcc.
7541
100b593b
GM
75422000-11-17 Gerd Moellmann <gerd@gnu.org>
7543
7544 * xdisp.c (pos_visible_p): Compute the default character height
7545 differently.
7546
a288d0d1
GM
75472000-11-16 Gerd Moellmann <gerd@gnu.org>
7548
cac94de6 7549 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 7550 knowing the line's height; use the default font's height in that case.
cac94de6 7551
a288d0d1
GM
7552 * xfaces.c (weight_table): Add `demi' with the same meaning as
7553 `demibold'.
7554
981fb6f6
KH
75552000-11-16 Kenichi Handa <handa@etl.go.jp>
7556
2cca872d 7557 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
7558 (clear_glyph_row): Delete local static variable null_row.
7559
e5fa381b
JR
75602000-11-15 Jason Rumney <jasonr@gnu.org>
7561
7562 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
7563 (w32_alloc_lighter_color): Use new brightness calculations from
7564 xterm.c. Scale delta to be in the range expected by W32.
7565 (w32_draw_relief_rect): Use frame relief colors.
7566
8e42f043
GM
75672000-11-15 Gerd Moellmann <gerd@gnu.org>
7568
6d133d1f
GM
7569 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
7570 (Qinhibit_default_face_x_resources): New variable.
7571 (syms_of_frame): Initialize it.
7572 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
7573
7574 * xdisp.c (pos_visible_p): Improve function comment.
7575
7576 * lisp.h (BINDING_STACK_SIZE): New macro.
7577
8e42f043
GM
7578 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
7579 reading the directory if readdir returns null and errno is EAGAIN
7580 or EINTR.
7581
e8c87124
SM
75822000-11-14 Stefan Monnier <monnier@cs.yale.edu>
7583
7584 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
7585 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
7586 Set amount_to_scroll to max of dx and scroll_step so that
7587 scroll-conservatively doesn't defeat scroll-step>1.
7588 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
7589 scroll-conservatively for line-at-a-time scrolling.
7590
5f0c971d
GM
75912000-11-14 Gerd Moellmann <gerd@gnu.org>
7592
7593 * window.c (Fpos_visible_in_window_p): Call pos_visible with
7594 extra argument.
7595
7596 * xdisp.c (current_mode_line_height, current_header_line_height):
7597 New variables.
7598 (init_xdisp): Initialize them.
7599 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
7600 and use exact mode line heights if it is set.
7601
7602 * lisp.h (pos_visible_p): Change prototype.
7603
7604 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
7605 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
7606 and current_header_line_height first.
52283633
SM
7607 (current_mode_line_height, current_header_line_height):
7608 Declare extern.
5f0c971d 7609
d7361edf
MB
76102000-11-14 Miles Bader <miles@lsi.nec.co.jp>
7611
7612 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
7613 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
7614 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
7615
ee5e440a
MB
76162000-11-14 Miles Bader <miles@gnu.org>
7617
7618 * xterm.c (x_alloc_lighter_color): Include an additive component
7619 too for dark colors, because FACTOR isn't enough.
7620 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
7621 New macros.
7622
5ca020fc
GM
76232000-11-13 Gerd Moellmann <gerd@gnu.org>
7624
7625 * keyboard.c (show_help_echo): Call message3_nolog with number of
7626 bytes in the help string as 2nd parameter, instead of the number
7627 of characters.
7628
9d348294
MB
76292000-11-13 Miles Bader <miles@gnu.org>
7630
7631 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
7632 (Fload): Use new openp return protocol.
7633 Don't try to use Vload_source_file_function to load .elc files.
7634 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
7635 openp return protocol.
7636 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
7637
1729bb9a
KH
76382000-11-11 Kenichi Handa <handa@etl.go.jp>
7639
4e677396
KH
7640 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
7641
7642 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
7643 Defined these macros.
7644 (NLIST_STRUCT): Avoid re-defining it.
7645
1729bb9a
KH
7646 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
7647 -I/usr/contrib/X11R6/include.
7648 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
7649
a82fe213
JR
76502000-11-10 Jason Rumney <jasonr@gnu.org>
7651
7652 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
7653
7654 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
7655 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
7656
7657 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
7658 (Qw32_charset_vietnamese): New symbol.
7659 (xlfd_charset_of_font): New function.
7660 (w32_load_system_font): Use it.
7661 (x_to_w32_charset): Use Fassoc to find charset info. Special case
7662 when Vw32_charset_info_alist is nil to ensure default face always
7663 has font. Use Fcar and Fcdr for safety.
7664 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
7665 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
7666 pseudo-codepages for special cases.
7667 (w32_to_x_font): New parameter to allow charset portion to be
7668 specified where there is many to one mapping. Callers changed.
7669 (w32_list_fonts): Avoid listing fonts that won't display.
7670
52d89894
GM
76712000-11-10 Gerd Moellmann <gerd@gnu.org>
7672
7673 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
7674 (font_list_1): Renamed from font_list.
7675 (font_list): New function, trying alternative registries from
7676 Vface_alternative_font_registry_alist.
7677 (Finternal_set_alternative_font_registry_alist): New function.
7678 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
7679 Vface_alternative_font_registry_alist.
7680 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 7681
651cd3da
KR
76822000-11-09 Ken Raeburn <raeburn@gnu.org>
7683
7684 * lisp.h (Flooking_at): Declare.
7685
388ac098
GM
76862000-11-09 Gerd Moellmann <gerd@gnu.org>
7687
778fbc46 7688 * dired.c (directory_files_internal): Fix a braino.
52283633 7689
388ac098
GM
7690 * dired.c (directory_files_internal): Add missing GCPRO's.
7691 Some cleanup.
7692
ecaedde1
GM
76932000-11-08 Gerd Moellmann <gerd@gnu.org>
7694
f7eb32aa
GM
7695 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
7696 (resize_mini_window): Return quickly if Vresize_mini_window is
7697 nil. Don't return if Vmax_mini_window_height is nil.
7698
7699 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
7700 (syms_of_xdisp): Initialize them.
7701 (resize_mini_window): Act according to the setting of
7702 Vresize_mini_window.
7703 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
7704
ecaedde1
GM
7705 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
7706 scroll bar widget after configuring it, so that it will appear at
7707 the right position from the start.
7708 (XTredeem_scroll_bar): Cleaned up.
7709
3747ef2c
KH
77102000-11-08 Kenichi Handa <handa@etl.go.jp>
7711
7712 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 7713 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
7714 division by two.
7715
7716 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
7717
03391420
DL
77182000-11-07 Dave Love <fx@gnu.org>
7719
7758f1c1 7720 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
7721
7722 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
7723
b5de343d
GM
77242000-11-07 Gerd Moellmann <gerd@gnu.org>
7725
acad3c0b
GM
7726 * window.c (Fset_window_configuration): Don't try to preserve
7727 point in the current buffer, if that buffer is displayed in more
7728 than one window.
7729
b5de343d
GM
7730 * xfaces.c (lookup_named_face): If default face isn't realized,
7731 try to realize it. Return -1 if not successful.
7732 (Fx_list_fonts): Handle case that face cannot be determined.
7733 (Fface_font): Likewise.
7734
cdb1fe49
GM
77352000-11-06 Gerd Moellmann <gerd@gnu.org>
7736
7737 * window.c (displayed_window_lines): Detect partially
7738 visible lines at the bottom correctly.
7739
d3a67486
SM
77402000-11-06 Stefan Monnier <monnier@cs.yale.edu>
7741
7742 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
7743 when ensuring we don't do visit in indirect buffer.
7744
ff8dd5d5
KH
77452000-11-06 Kenichi Handa <handa@etl.go.jp>
7746
7747 * composite.h (compose_chars_in_text): Add prototype.
7748
7749 * composite.c (Vcomposition_function_table): New variable.
7750 (Qcomposition_function_table): New variable.
7751 (run_composition_function): Call
7752 Vcompose_chars_after_function with three arguments.
7753 (compose_chars_in_text): New function.
7754 (syms_of_composite): Modified the doc-string of
7755 Vcompose_chars_after_function. Declare composition-function-table
7756 as a lisp variable, and initialize it.
7757
7758 * xfns.c (x_encode_text): Suppress producing escape sequences for
7759 composition.
7760
7761 * xselect.c: Include composite.h.
7762 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
7763
d1145f85
AI
77642000-11-05 Andrew Innes <andrewi@gnu.org>
7765
7766 * w32term.c (x_produce_glyphs): Fix typo in enum name.
7767
7768 * sysdep.c (read_input_waiting): Remove extraneous argument to
7769 read_socket_hook.
7770
7771 * w32fns.c (Fx_server_version): Include w32_build_number in the
7772 return list.
7773
7774 * w32heap.c (w32_build_number): New variable.
7775 (cache_system_info): Set it.
7776
7777 * w32heap.h (w32_build_number): Add extern.
7778
7779 * emacs.c (syms_of_emacs): Update docstring for
7780 system-configuration, to reflect the actual usage on MS-Windows.
7781
e85ee976
GM
77822000-10-31 Gerd Moellmann <gerd@gnu.org>
7783
26dcb81b
GM
7784 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
7785 process idle timers while waiting for another event.
7786
52283633 7787 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
7788 the default face are colored.
7789
e85ee976
GM
7790 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
7791 window height hasn't changed.
7792
01b220b6
JR
77932000-10-31 Jason Rumney <jasonr@gnu.org>
7794
7795 * w32term.c (x_produce_glyphs): Handle composite characters.
7796 (x_draw_glyph_string_foreground)
7797 (x_draw_composite_glyph_string_foreground): Restore old font.
7798
4e6b7204
MB
77992000-10-31 Miles Bader <miles@lsi.nec.co.jp>
7800
7801 * minibuf.c (read_minibuf): Reset the undo history just before
7802 starting the recursive-edit.
7803
d4358b37
GM
78042000-10-30 Gerd Moellmann <gerd@gnu.org>
7805
563f68f1
GM
7806 * xfaces.c (menu_face_change_count): New variable.
7807 (Finternal_set_lisp_face_attribute): Increment it for changes
7808 of the `menu' face.
7809 (realize_basic_faces): Reflect changes in the `menu' faces
7810 in menu bars.
7811
82e274d1
GM
7812 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
7813 dy obtained from the iterator's y-position after moving from
7814 scroll_margin_pos to PT; see comment there.
52283633 7815
0dbf9fd2
GM
7816 * xdisp.c (safe_eval_handler): Call add_to_log.
7817
906b3b14
GM
7818 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
7819 is not a symbol or string.
7820
d4358b37
GM
7821 * xdisp.c (echo_area_display): Don't perform a display update from
7822 inside redisplay. The update will happen anyway at the end of
7823 redisplay, and it can confuse redisplay (GC messages while
7824 redisplaying, for instance.)
7825
70c825df
SM
78262000-10-30 Stefan Monnier <monnier@cs.yale.edu>
7827
cf9b4b0b
SM
7828 * xrdb.c (x_load_resources): Use the class name in the defaults.
7829
70c825df
SM
7830 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
7831 (regex_compile): Catch bogus \(\1\).
7832
a1d34b1e
GM
78332000-10-30 Gerd Moellmann <gerd@gnu.org>
7834
cae71efe
GM
7835 * xterm.c (x_alloc_nearest_color): Fix last change to compare
7836 RGB values.
52283633 7837
35efe0a1
GM
7838 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
7839 we have a color cache, check that the cached color equals the
7840 allocated color. If not, clear the color cache.
7841
1d3baf74
GM
7842 * window.c (displayed_window_lines): Change buffers if necessary.
7843 Fix computation of displayed lines.
7844
a1d34b1e
GM
7845 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
7846 update_menu_bindings to DEFVAR_BOOL.
7847
70737ea9
KH
78482000-10-30 Kenichi Handa <handa@etl.go.jp>
7849
70c825df 7850 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 7851
fa0cb51d
KH
7852 * puresize.h (BASE_PURESIZE): Increase to 680000.
7853
70737ea9
KH
7854 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
7855
0e4c08e8
JR
78562000-10-29 Jason Rumney <jasonr@gnu.org>
7857
7858 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
7859
7860 * w32term.c (w32_bdf_per_char_metric): Negate descent.
7861 (w32_cache_char_metrics): Handle possibility that 'x' does not
7862 exist in a BDF font.
7863 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
7864
7865 * w32bdf.h (bdffont): Add nchars.
7866
7867 * w32bdf.c (set_bdf_font_info): Set it.
7868 (w32_BDF_TextOut): Swap byte order of double byte characters.
7869 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
7870
45b84006
EZ
78712000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
7872
7873 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
7874 don't override the colors in frame's param_alist, unless they are
7875 unspecified.
7876
7877 * term.c (reassert_line_highlight): If inverse_video is non-zero,
7878 reverse the effect of the highlight flag.
7879
caf9deee
KR
78802000-10-27 Ken Raeburn <raeburn@gnu.org>
7881
7882 * window.h (Fwindow_live_p): Declare.
7883
ae0b9b46
KR
7884 * undo.c (record_delete): Check that last_undo_buffer is really a
7885 buffer before applying XBUFFER to it.
7886
7887 * keymap.c (where_is_internal): Pass lisp object, not integer, to
7888 Faref.
7889
02067692
SM
78902000-10-27 Stefan Monnier <monnier@cs.yale.edu>
7891
7892 * lisp.h (KEYMAPP): New macro.
7893 (get_keymap): Remove.
7894 (get_keymap_1): Rename get_keymap.
7895
7896 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
7897
7898 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
7899
7900 * xmenu.c (single_submenu): Use KEYMAPP.
7901 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
7902 Use KEYMAPP rather than Fkeymapp.
7903
7904 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
7905
7906 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
7907 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
7908 Use KEYMAPP rather than Fkeymapp.
7909 (single_submenu): Use KEYMAPP.
7910 (w32_menu_show, w32_dialog_show): Use TRUE.
7911
7912 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
7913
7914 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
7915 (Fkeymapp): Use KEYMAPP.
7916 (get_keymap): Rename from get_keymap_1. Remove old def.
7917 Return t when autoload=0 and error=0 and the keymap needs autoloading.
7918 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
7919 (Fminor_mode_key_binding): Don't raise an error if the binding
7920 is not a keymap.
7921 (Fuse_global_map, Fuse_local_map): Allow autoloading.
7922 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
7923
7924 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
7925 Allow Vspecial_event_map to be autoloaded.
7926 (menu_bar_items): Fetch the keymap rather than using keymapp.
7927 (menu_bar_one_keymap): No need to follow func-indirect any more.
7928 (parse_menu_item): get_keymap_1 -> get_keymap.
7929 (tool_bar_items): Fetch the keymap rather than using keymapp.
7930 (read_key_sequence): Use KEYMAPP.
7931
7932 * intervals.c (get_local_map): Use get_keymap rather than following
7933 function-indirections explicitly.
7934
7935 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
7936
f9d80af3
JR
79372000-10-27 Jason Rumney <jasonr@gnu.org>
7938
7939 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
7940 point, as Windows has oversized fonts.
7941
7942 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
7943
a3ba27da
GM
79442000-10-27 Gerd Moellmann <gerd@gnu.org>
7945
7946 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
7947 (freehook, reallochook): Handle null pointer arguments.
7948 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
7949
aa3b80cc
SM
79502000-10-27 Stefan Monnier <monnier@cs.yale.edu>
7951
7952 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
7953 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
7954 Giving in to popular pressure to shut up the compiler with casts.
7955
e24e84cc
GM
79562000-10-27 Gerd Moellmann <gerd@gnu.org>
7957
7958 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
7959 signed value, and use a default value computed from the font's
7960 maximum descent.
7961
05ea7ef2
MB
79622000-10-27 Miles Bader <miles@lsi.nec.co.jp>
7963
7964 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
7965 that specify a negative underline position can still use underlines.
7966
7967 * window.c (Fpos_visible_in_window_p): Make POS default to
7968 WINDOW's point, not the current buffer's point.
7969
0b95284b
DL
79702000-10-26 Dave Love <fx@gnu.org>
7971
7972 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
7973 when it's necessary.
7974
6c5b90af
GM
79752000-10-26 Gerd Moellmann <gerd@gnu.org>
7976
8b6d9dc9
GM
7977 * window.c (size_window): Compute size difference from sum of old
7978 child window sizes instead of from parent's size.
7979
6bc92b2e
GM
7980 * xdisp.c (pos_visible_p): Change current buffer if necessary.
7981 Handle obscured lines at the top of the window.
7982
7983 * frame.c (Fdelete_frame): Doc fix. Move running the hook
7984 down after the last error condition check.
7985
6c5b90af
GM
7986 * frame.c (Fdelete_frame): Run delete-frame-hook.
7987
42f92d4d
KH
79882000-10-26 Kenichi Handa <handa@etl.go.jp>
7989
7990 * coding.c (decode_coding): Fix previous change (check also
7991 CODING_MODE_LAST_BLOCK).
7992
d97151cb
SM
79932000-10-25 Stefan Monnier <monnier@cs.yale.edu>
7994
e7efc503
SM
7995 * regex.c: More `unsigned char' -> `re_char' changes.
7996 Also change several `int' into `re_wchar_t'.
7997 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
7998 (PUSH_FAILURE_POINTER): Don't cast any more.
7999 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
8000 We want GCC to complain, since this piece of code makes
8001 re_match non-reentrant, which *should* be fixed.
8002 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
8003 (EXTEND_BUFFER): Use RETALLOC.
8004 (SET_LIST_BIT): Don't cast.
8005 (re_wchar_t): New type.
8006 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
8007 that those two functions will always properly return.
8008 (IMMEDIATE_QUIT_CHECK): Cast to void.
8009 (analyse_first): Use recursion rather than an explicit stack.
8010 (re_compile_fastmap): Can't fail anymore.
8011 (re_search_2): Don't check re_compile_fastmap for failure.
8012 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
8013 Now also sets the new value (passed in a new argument).
8014 (re_match_2_internal): Use it.
8015 Also, use a new var `reg' of type size_t when looping through regs
8016 rather than reuse the inappropriate `mcnt'.
8017
d97151cb
SM
8018 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
8019 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
8020 (where_is_internal): Renamed from Fwhere_is_internal.
8021 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
8022 (Fwhere_is_internal): New function wrapping where_is_internal.
8023 (where_is_internal_1): Handle the case where we're filling the cache.
8024 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
8025
d5789b65
MB
80262000-10-25 Miles Bader <miles@gnu.org>
8027
8028 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
8029
4ecda532
GM
80302000-10-25 Gerd Moellmann <gerd@gnu.org>
8031
8032 * window.c (pos_fully_visible_p): Removed.
8033 (Fpos_visible_in_window_p): Use pos_visible_p to determine
8034 if position is visible and/or fully visible.
8035
8036 * lisp.h (pos_visible_p): Add prototype.
8037
8038 * xdisp.c (pos_visible_p): New function.
8039
68c3a137
KH
80402000-10-25 Kenichi Handa <handa@etl.go.jp>
8041
8042 * process.c (send_process): If OBJECT is t, it means that the data
8043 is from C string, but we should encode it. Before calling
8044 setup_raw_text_coding_system, be sure to flush out data by the
8045 previous coding system.
8046
7ae1c032
MB
80472000-10-25 Miles Bader <miles@lsi.nec.co.jp>
8048
ff4dcd4b
MB
8049 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
8050 assignment of startpos to prev when startpos == pos.
8051
7ae1c032
MB
8052 * editfns.c (find_field): Set the field stickiness correctly from
8053 overlay fields. Use renamed `text_property_stickiness'.
8054 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 8055 Only check text properties, not overlays.
7ae1c032
MB
8056 * textprop.c (get_char_property_and_overlay): New function.
8057 (Fget_char_property): Use it.
8058 * intervals.h (get_char_property_and_overlay): Add declaration.
8059
49801145
SM
80602000-10-25 Stefan Monnier <monnier@cs.yale.edu>
8061
8062 * keymap.c: Use AREF, ASET and ASIZE macros.
8063 (Fmake_sparse_keymap): Docstring fix.
8064 (synkey): Remove.
8065 (shadow_lookup): Move up.
8066 Handle the case where lookup-key returns an integer.
8067 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
8068 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
8069 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
8070 Simplify/rewrite the keymap-finding code.
8071 Add check for command shadowing, using shadow_lookup.
8072
39e776cd
SM
80732000-10-24 Stefan Monnier <monnier@cs.yale.edu>
8074
8075 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
8076 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
8077 a symbol.
8078
2488aba5
AI
80792000-10-24 Andrew Innes <andrewi@gnu.org>
8080
8081 * dired.c (directory_files_internal_unwind): New function.
8082 (directory_files_internal): Use it to ensure closedir is called
8083 even if expand-file-name or file-attributes throw, eg. because of
8084 a user interrupt. Also enable immediate_quit while calling
8085 re_search, so that matching can be interrupted as well.
8086
b94fdf61
AI
80872000-10-24 Andrew Innes <andrewi@gnu.org>
8088
8089 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
8090 NT-Emacs only.
8091 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
8092 so that re_search functions only quit when callers expect them to.
8093
80942000-10-24 Kenichi Handa <handa@etl.go.jp>
8095
8096 * regex.c (regex_compile): Change the way of handling a range from
8097 a char less than 256 to a char not less than 256.
8098
1946f901
GM
80992000-10-24 Gerd Moellmann <gerd@gnu.org>
8100
7ae2f10f
GM
8101 * window.c (size_window): Prevent setting window's width or
8102 height to a negative value (esp. with XSETFASTINT).
8103
5dcab13e
GM
8104 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
8105 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
8106 (protect_malloc_state) [GC_MALLOC_CHECK &&
8107 GC_PROTECT_MALLOC_STATE]: New function.
8108 (PROTECT_MALLOC_STATE): New macro.
8109 (__malloc_initialize, morecore, _malloc_internal)
8110 (_free_internal) _realloc_internal): Use it to make _heapinfo
8111 read-only outside of gmalloc.
8112
63e1b552
GM
8113 * keymap.c: Update copyright.
8114
1946f901
GM
8115 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
8116 a symbol.
8117
4fa09beb
GM
81182000-10-24 Colin Walters <walters@cis.ohio-state.edu>
8119
8120 * filelock.c (unlock_all_files): Use unlock_file to expand each
8121 buffer's file_truename before trying remove its lock file.
8122
23afac01
EZ
81232000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
8124
8125 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
8126 or CRLF, decode EOLs.
8127
04448b95
KH
81282000-10-24 Kenichi Handa <handa@etl.go.jp>
8129
8130 * window.c (Fdisplay_buffer): Fix doc.
8131
3090a5a5
JR
81322000-10-23 Jason Rumney <jasonr@gnu.org>
8133
8134 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
8135 ASCII font of default fontset on Windows.
8136
8137 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
8138 xterm.c comment below).
8139
8140 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
8141
a83fee2c
GM
81422000-10-23 Gerd Moellmann <gerd@gnu.org>
8143
8144 * xterm.c (x_connection_closed): Reset handling_signal.
8145
52283633 8146 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 8147
6ffdb539
MB
81482000-10-23 Miles Bader <miles@gnu.org>
8149
8150 * window.c (window_scroll_pixel_based, window_scroll_line_based):
8151 Pass nil for FULLY argument to Fpos_visible_in_window_p to
8152 maintain old behavior.
8153 * minibuf.c (Fminibuffer_complete): Likewise.
8154
7f1c969b
MB
81552000-10-23 Miles Bader <miles@lsi.nec.co.jp>
8156
8157 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
8158 that when a font can't be exactly centered, it errs up rather than
8159 down.
8160
23afac01 81612000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 8162
52283633 8163 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 8164
1a578e9b
AC
81652000-10-23 Andrew Choi <akochoi@i-cable.com>
8166
8167 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
8168
8169 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 8170 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
8171
8172 * emacs.c (main) [macintosh]: Call syms_of_textprop,
8173 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
8174 syms_of_search, x_term_init, and init_keyboard before calling
8175 init_window_once. Also, call syms_of_xmenu.
8176
8177 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
8178 default fontset to Monaco.
8179
8180 * frame.c [macintosh]: Include macterm.h. Remove declarations of
8181 NewMacWindow and DisposeMacWindow.
8182 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
8183 instead of calling NewMacWindow and setting fields of
8184 f->output_data.mac directly. Call init_frame_faces.
8185 (Fdelete_frame) [macintosh]: Remove unused code.
8186 (Fmodify_frame_parameters) [macintosh]: Call
8187 x_set_frame_parameters instead of mac_set_frame_parameters.
8188
8189 * frame.h [macintosh]: Define menu_bar_lines field in struct
8190 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
8191
8192 * keyboard.c [macintosh]: Include macterm.h.
8193 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
8194 and menu_bar_activate_event type events as for X and NT.
8195 (make_lispy_event) [macintosh]: Construct lisp events of type
8196 MENU_BAR_EVENT as for X and NT.
8197
8198 * sysdep.c [macintosh]: Remove declaration for sys_signal.
8199 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
8200 (sys_subshell) [macintosh]: Remove definition entirely.
8201 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
8202 Vwindow_system_version here. Remove initialization of
8203 Vx_bitmap_file_path.
8204 (read_input_waiting): Correct the number of parameters passed to
8205 read_socket_hook.
8206 Move all Macintosh functions to mac/mac.c.
8207
8208 * term.c [macintosh]: Include macterm.h.
8209
8210 * window.c [macintosh]: Include macterm.h.
8211
8212 * xdisp.c [macintosh]: Include macterm.h. Declare
8213 set_frame_menubar and pending_menu_activation.
8214 (echo_area_display) [macintosh]: Do not return if terminal frame
8215 is the selected frame.
8216 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
8217 Allow only the selected frame to set menu bar.
8218 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
8219 calling FRAME_EXTERNAL_MENU_BAR (f).
8220 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
8221
8222 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
8223 and check_x. Declare XCreateGC. Define x_create_gc and
8224 x_free_gc. Initialize font_sort_order.
8225 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
8226 but call x_list_fonts instead of w32_list_fonts.
8227 (Finternal_face_x_get_resource) [macintosh]: Do not call
8228 display_x_get_resource.
8229 (prepare_face_for_display) [macintosh]: Set xgcv.font.
8230 (realize_x_face) [macintosh]: Load the font if it is specified in
8231 ATTRS.
52283633 8232 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 8233
1ffbabe3
SM
82342000-10-22 Stefan Monnier <monnier@cs.yale.edu>
8235
8236 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
8237 is nil: since we go to the end of submap anyway, we'd end up
8238 setting nil to nil.
8239 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
8240 doesn't obey autoload.
8241
bed43f1d
EZ
82422000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8243
1ffbabe3 8244 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 8245
ea4233a7
JR
82462000-10-21 Jason Rumney <jasonr@gnu.org>
8247
8248 * w32term.c (w32_cache_char_metrics): Double check that font is
8249 really fixed pitch before trusting tmPitchAndFamily.
8250
f3d3c491
AI
82512000-10-21 Andrew Innes <andrewi@gnu.org>
8252
8253 * w32gui.h (w32_char_font_type): Move enum from w32term.c
8254
8255 * w32term.h: Extern decl for w32_cache_char_metrics.
8256
8257 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
8258
8259 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
8260 (w32_unload_font): Free per_char array if present.
8261
8262 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
8263 cached information in emulated XFontStruct to handle common cases
8264 quickly. Do not allocate XCharStruct for return.
8265 (w32_native_per_char_metric): New function.
8266 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
8267 allocating one.
8268 (x_produce_glyphs): Don't get an HDC. Change calls to
8269 w32_per_char_metric to match arg change above. Remove calls to
8270 free results.
8271 (w32_get_glyph_overhangs): Ditto.
8272 (w32_cache_char_metrics): New function.
8273
8274 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
8275 ($(BLD)/casefiddle.$(O)): Remove compile command.
8276 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
8277 ($(BLD)/dispnew.obj):
8278 ($(BLD)/keyboard.obj):
8279 ($(BLD)/w32inevt.obj):
8280 ($(BLD)/w32bdf.obj):
8281 ($(BLD)/alloc.obj):
8282 ($(BLD)/buffer.obj):
8283 ($(BLD)/editfns.obj):
8284 ($(BLD)/emacs.obj):
8285 ($(BLD)/fileio.obj):
8286 ($(BLD)/fns.obj):
8287 ($(BLD)/indent.obj):
8288 ($(BLD)/insdel.obj):
8289 ($(BLD)/intervals.obj):
8290 ($(BLD)/minibuf.obj):
8291 ($(BLD)/print.obj):
8292 ($(BLD)/scroll.obj):
8293 ($(BLD)/sysdep.obj):
8294 ($(BLD)/textprop.obj):
8295 ($(BLD)/widget.obj):
f3d3c491
AI
8296 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
8297 ($(BLD)/term.obj): Add dependency on dispextern.h.
8298
52283633
SM
8299 * makefile.nt ($(BLD)\dispnew.obj):
8300 ($(BLD)\keyboard.obj):
8301 ($(BLD)\w32inevt.obj):
8302 ($(BLD)\w32bdf.obj):
8303 ($(BLD)\alloc.obj):
8304 ($(BLD)\buffer.obj):
8305 ($(BLD)\editfns.obj):
8306 ($(BLD)\emacs.obj):
8307 ($(BLD)\fileio.obj):
8308 ($(BLD)\fns.obj):
8309 ($(BLD)\indent.obj):
8310 ($(BLD)\insdel.obj):
8311 ($(BLD)\intervals.obj):
8312 ($(BLD)\minibuf.obj):
8313 ($(BLD)\print.obj):
8314 ($(BLD)\scroll.obj):
8315 ($(BLD)\sysdep.obj):
8316 ($(BLD)\textprop.obj):
8317 ($(BLD)\widget.obj):
f3d3c491
AI
8318 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
8319 ($(BLD)\term.obj): Add dependency on dispextern.h
8320
18ad4821
EZ
83212000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
8322
8323 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
8324 with an additional argument of Qt.
8325
de54681a
MB
83262000-10-21 Miles Bader <miles@gnu.org>
8327
8328 * window.c (pos_fully_visible_in_window_p): New function.
8329 (Fpos_visible_in_window_p): Add FULLY argument.
8330 Use pos_fully_visible_in_window_p.
8331 (window_scroll_pixel_based, window_scroll_line_based): Update
8332 calls to Fpos_visible_in_window_p.
8333 * lisp.h (Fpos_visible_in_window_p): Update prototype
8334
13c844fb
GM
83352000-10-20 Gerd Moellmann <gerd@gnu.org>
8336
8337 * alloc.c (toplevel): Conditionalize compilation of mem_*
8338 functions differently.
52283633 8339
d9506268
JR
83402000-10-20 Jason Rumney <jasonr@gnu.org>
8341
8342 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
8343 mem_init where it used to be. mem_z etc not defined otherwise.
8344
8094989b
GM
83452000-10-20 Gerd Moellmann <gerd@gnu.org>
8346
8347 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
8348 GC_MALLOC_CHECK.
8349 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
8350 structure definition and related variabled to the top of the file.
8351 Include this code when GC_MALLOC_CHECK is defined.
8352 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
8353 register/unregister allocated region.
8354 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
8355 which isn't allocated.
8356 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
8357 something which is already in use.
8358 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
8359 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
8360 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
8361 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
8362
8363 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
8364 _malloc_internal instead of malloc.
8365 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
8366 of free.
8367
ea456eb4
AI
83682000-10-20 Andrew Innes <andrewi@gnu.org>
8369
8370 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
8371 Windows.
8372 (my_strftime) <macro>: Don't use macro arg list when redefining as
8373 _strftime_copytm.
8374 (my_strftime) <function>: Supply 0 as ut argument.
8375
e64c3a75
JR
83762000-10-19 Jason Rumney <jasonr@altavista.net>
8377
8378 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
8379 including dispextern.h, as it stops faces from working.
8380
8381 * w32fns.c (Fx_create_frame): Don't bother calling
8382 face-set-after-frame-default since the caller does it for us
8383 anyway. Clean up calls to x_get_arg to be consistent with X.
8384
8385 * w32term.c (x_produce_glyphs): Handle
8386 unibyte_display_via_language_environment correctly.
8387 (w32_draw_box_rect): Fix the calculation of width and height.
8388
8389 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
8390 as it has stopped working.
8391 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
8392 menu-bar.
8393
17401c97
GM
83942000-10-19 Gerd Moellmann <gerd@gnu.org>
8395
8396 * eval.c (skip_debugger): Prevent a compiler warning.
8397 (Fcondition_case): Likewise.
8398 (Fbacktrace_frame): Use a null interactive spec.
8399
773272d8
KH
84002000-10-19 Kenichi Handa <handa@etl.go.jp>
8401
8402 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
8403
a42943e9
GM
84042000-10-18 Gerd Moellmann <gerd@gnu.org>
8405
e50517d9
GM
8406 * strftime.c: Sync with glibc, file version 1.78.
8407 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
8408 should no longer be used according to ISO 8601.
8409
9035a35a
GM
8410 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
8411 no map for meta_prefix_char, don't try to use it as a keymap.
8412 Instead, if T_OK is non-zero, look up a default binding, if any,
8413 otherwise, if T_OK is zero, return nil.
8414
a42943e9
GM
8415 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
8416 (x_to_xcolors, png_load): Use x_query_color.
8417
52283633
SM
8418 * xterm.c (x_color_cells, x_query_colors, x_query_color):
8419 New functions.
a42943e9
GM
8420 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
8421 which can be slow.
8422 (x_copy_color, x_alloc_lighter_color): Likewise.
8423
8424 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
8425 (x_query_color, x_query_colors): Add prototype.
8426
8427 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
8428 check_string_bytes only if not noninteractive, increase count to 50.
8429
00de2987
MB
84302000-10-18 Miles Bader <miles@lsi.nec.co.jp>
8431
8432 * insdel.c (adjust_markers_for_delete): Handle before-insertion
8433 markers correctly.
8434
54918e2b
GM
84352000-10-17 Gerd Moellmann <gerd@gnu.org>
8436
1f0b3fd2
GM
8437 * alloc.c (pure_bytes_used): Renamed from pureptr.
8438 (ALIGN): New macro.
8439 (pure_alloc): New function.
8440 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
8441 Use it.
8442 (Fpurecopy): Use PURE_POINTER_P.
8443
68c5d1db
GM
8444 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
8445 PT has moved backward.
52283633 8446
9a038881
GM
8447 * xdisp.c (cursor_row_p): Take continued lines into account.
8448
361b097f
GM
8449 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
8450 string's size_byte.
8451 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
8452 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
8453 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
8454 string allocated.
8455
54918e2b
GM
8456 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
8457 of selective display off while searching for the next line start.
8458
03ed0806
KH
84592000-10-17 Kenichi Handa <handa@etl.go.jp>
8460
8461 * Makefile.in (term.o): Depend on dispextern.h.
8462
7e05cdaf
SM
84632000-10-16 Stefan Monnier <monnier@cs.yale.edu>
8464
8465 * keymap.c (keymap_memberp): Ensure that nil is not a member.
8466
a6801fd1
GM
84672000-10-16 Gerd Moellmann <gerd@gnu.org>
8468
483de32b
GM
8469 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
8470 the iterator at the beginning, so that they can be set later on,
8471 for instance in reseat_at_next_visible_line_start, without being
8472 overwritten.
8473
a6801fd1
GM
8474 * xfns.c (pbm_format): Add :foreground and :background keywords.
8475 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 8476 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 8477
dbf1fcc1
EZ
84782000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
8479
8480 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
8481
52283633 8482 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
8483
8484 * msdos.c (IT_set_face): Compare highlighted face with the default
8485 face, and invert colors if these faces' colors are identical.
8486 (Fmsdos_remember_default_colors): Don't swap foreground and
8487 background colors in initial_colors[].
8488 (IT_set_frame_parameters): Don't swap frame's foreground and
8489 background pixels. If ALIST includes "(reverse . t)", swap
8490 foreground-color and background-color properties in frame's
8491 param_alist. If the original frame's param_alist doesn't specify
8492 the colors, store unspecified-fg and unspecified-bg, reversed if
8493 required.
8494
8495 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
8496 the colors are unspecified and reversed, reverse fore- and back-
8497 ground in the returned value.
8498 (Fframe_parameter): Ditto.
8499
b41fe2c3 85002000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 8501
3a6b59d9
GM
8502 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
8503 get_last_unchanged_at_beg_row.
8504 (find_first_unchanged_at_end_row): Renamed from
8505 get_first_unchanged_at_end_row.
8506 (find_first_unchanged_at_end_row): Convert assertions to
8507 unconditional tests which abort. When looking for a row in
8508 unchanged text, don't go further back than first_text_row.
8509
b41fe2c3
GM
8510 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
8511 Don't add in the last line's height when deciding if the new
8512 position is below the scroll margin.
9d1af64f 8513
b41fe2c3 85142000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
8515
8516 * editfns.c (Fconstrain_to_field): Check carefully for field
8517 boundaries if either OLD_POS or NEW_POS has a non-nil field
8518 property, even if they're the same.
8519
c412cb7b
KH
85202000-10-16 Kenichi Handa <handa@etl.go.jp>
8521
8522 * xterm.c (x_draw_box_rect): Fix the calculation of width and
8523 height for XFillRectangle.
8524
5586f3eb
SM
85252000-10-15 Stefan Monnier <monnier@cs.yale.edu>
8526
8527 * syntax.c (Fstring_to_syntax): New function extracted from
8528 Fmodify_syntax_entry.
8529 (Fmodify_syntax_entry): Use it and document the ! and | fences.
8530 (skip_chars, Fforward_comment): Remove unused variables.
8531 (syms_of_syntax): Add defsubr for string-to-syntax.
8532 (describe_syntax): Add code for comment and string fences.
8533
db785038
SM
85342000-10-14 Stefan Monnier <monnier@cs.yale.edu>
8535
8536 * keymap.c (access_keymap): Add AUTOLOAD parameter.
8537 Do the meta->esc mapping. Call get_keyelt before returning.
8538 Start scanning from the second element (the first is always `keymap')
8539 to make it easier to detect when we reach a parent map.
8540 Handle the case of inheriting from a symbol whose function is a map.
8541 (Fkeymap_parent): Also handle the `inherit from symbol' case.
8542 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
8543 (get_keyelt, Flookup_key): Update call to access_keymap.
8544 Remove the meta->esc mappings.
8545 (define_as_prefix): Delete old disabled code.
8546 (menu_item_p): New function.
8547 (where_is_internal_1): Skip over the few remaining menu items.
8548 * lisp.h (access_keymap): Update prototype.
8549 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
8550 Update call to access_keymap.
8551 (follow_key, read_key_sequence): Update calls to access_keymap.
8552 Remove the meta->esc mappings.
8553
cafafe0b
GM
85542000-10-13 Gerd Moellmann <gerd@gnu.org>
8555
a2e2a7f6
GM
8556 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
8557 with additional argument.
8558
cafafe0b
GM
8559 * xdisp.c (cursor_row_p): New function.
8560 (try_cursor_movement, display_line): Use it.
52283633 8561
cafafe0b
GM
8562 * xdisp.c (append_space): Also save/restore iterator's current
8563 character and its length.
8564
8565 * xdisp.c (init_from_display_pos): Add an assertion.
8566 (handle_stop): Don't set iterator's add_overlay_start.
8567 (handle_invisible_prop): Likewise.
8568 (load_overlay_strings): If text under an overlay is invisible,
8569 take both before- and after-strings into account when the iterator
8570 is positioned either at the start or at the end of the overlay.
8571 (forward_to_next_line_start): Rewritten.
8572 (reseat_at_next_visible_line_start): Rewritten.
8573 (set_iterator_to_next): Add parameter RESEAT_P.
8574
8575 * dispextern.h (struct it): Remove member add_overlay_start.
8576 (set_iterator_to_next): Change prototype.
8577
c744452b
KH
85782000-10-13 Kenichi Handa <handa@etl.go.jp>
8579
8580 * coding.c (code_convert_region): Be sure to initialize
8581 coding->category_idx.
e4a3f4e1
KH
8582 (decode_coding_string): Set coding->src_multibyte and
8583 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
8584 (encode_coding_string): Set coding->src_multibyte and
8585 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 8586
321fd26f
SM
85872000-10-12 Stefan Monnier <monnier@cs.yale.edu>
8588
8589 * xfns.c (Fx_create_frame): Don't bother calling
8590 face-set-after-frame-default since the caller does it for us anyway.
8591
76832439
EZ
85922000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
8593
8594 * window.c (coordinates_in_window): Fix detection of vertical line
8595 on character terminals.
8596
2483cf58
GM
85972000-10-12 Gerd Moellmann <gerd@gnu.org>
8598
8599 * editfns.c (save_excursion_save): Additionally record the
8600 selected window.
8601 (save_excursion_restore): If buffer was visible in a window, and a
8602 different window was selected, and the old selected window is
8603 still live, restore point in that window.
8604
eb991b25
KH
86052000-10-12 Kenichi Handa <handa@etl.go.jp>
8606
8a0eba09
KH
8607 * xterm.c (x_produce_glyphs): Handle
8608 unibyte_display_via_language_environment correctly.
8609
20401fcc
KH
8610 * regex.c (regex_compile): Change the way of handling a range from
8611 unibyte char to multibyte char.
8612
8613 * syntax.c (skip_chars): Change the way of handling a range from
8614 unibyte char to multibyte char.
8615
eb991b25
KH
8616 * process.c (read_process_output): Cancel previous change.
8617
365dd325
EZ
86182000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
8619
c1b096cb
EZ
8620 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
8621
365dd325
EZ
8622 * charset.c (Ffind_charset_string): Doc fix.
8623 (Ffind_charset_region): Doc fix.
8624
eb483c2b
KH
86252000-10-11 Kenichi Handa <handa@mule.m17n.org>
8626
8627 * process.c (read_process_output): Fix previous change. Adjust
8628 multibyteness of text to insert in a buffer by
52283633 8629 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 8630
b40bfb99
AS
86312000-10-10 Andreas Schwab <schwab@suse.de>
8632
8633 * alloc.c (mark_object): Remove all workarounds installed on
8634 1993-08-08.
8635
caff31d4
KH
86362000-10-10 Kenichi Handa <handa@etl.go.jp>
8637
52283633 8638 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
8639 (base64_encode_1): Make it work for a text of multibyte form.
8640 (Fbase64_decode_region): Allocate sufficient memory for multibyte
8641 case. Don't call str_to_multibyte because base64_decode_1
8642 produces correct multibyte form for eight-bit codes.
52283633 8643 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
8644 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
8645 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
8646 codes.
8647
8648 * charset.h (CHAR_STRING): Optimized for single byte characters.
8649
cba026ef
AS
86502000-10-09 Andreas Schwab <schwab@suse.de>
8651
8652 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
8653 -1 after socket is closed, to fall through to error processing.
8654
1e21fe48
EZ
86552000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
8656
8657 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 8658 variables. If ALIST includes foreground-color or
1e21fe48
EZ
8659 background-color, change also the colors of the default face for
8660 this frame.
8661
a640322e
EZ
86622000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
8663
8664 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
8665 them extern (they are defined on xfaces.c).
8666 (syms_of_msdos): Don't intern and don't staticpro
8667 Qbackground_color and Qforeground_color.
8668
a115794c
EZ
86692000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
8670
8671 * frame.c (Fframe_parameter): For non-windowed frames, if
8672 f->param_alist says foreground or background color is unspecified,
8673 call tty_color_name to return the color name computed from the
8674 frame's current colors.
8675
f5533b63
DL
86762000-10-06 Dave Love <fx@gnu.org>
8677
8678 * terminfo.c (ospeed): Don't declare.
8679
8680 * sysdep.c: Don't include string.h.
8681 (h_errno): Declare conditional also on TRY_AGAIN.
8682
8683 * charset.c (Ffind_charset_string): Doc fix.
8684
52283633 8685 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
8686 (Fbase64_decode_region, Fbase64_decode_string): More explicit
8687 error messages.
8688
2b06561a
DL
86892000-10-05 Dave Love <fx@gnu.org>
8690
8691 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
8692 position like menu-bar.
8693
ca839c85
GM
86942000-10-05 Gerd Moellmann <gerd@gnu.org>
8695
8696 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
8697
8698 * xdisp.c (handle_single_display_prop): Use safe_call1.
8699 (safe_call): Renamed from call_function.
8700 (safe_call1): New function.
8701 (handle_fontified_prop): Use safe_call1 instead of call1.
8702 (safe_eval): Renamed from eval_form.
8703 (safe_eval_handler): Renamed from eval_handler.
8704 (handle_single_display_prop, display_mode_element): Use safe_eval
8705 instead of eval_form.
8706
8707 * xfaces.c (merge_face_heights): Use safe_call instead of
8708 call_function.
8709
8710 * keyboard.c (show_help_echo): Use safe_call instead of
8711 call_function; use safe_eval instead of eval_form.
8712
8713 * lisp.h (safe_call): Renamed from call_function.
8714 (safe_eval): Renamed from eval_form.
8715 (safe_call1): Add prototype.
8716
a3489ece
MB
87172000-10-05 Miles Bader <miles@lsi.nec.co.jp>
8718
8719 * xfns.c (image_ascent): Rearrange ascent calculation for the
8720 has-a-font case.
8721
35810b6f
SM
87222000-10-04 Stefan Monnier <monnier@cs.yale.edu>
8723
8724 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
8725 (where_is_internal_1): Don't bother ignoring menu-items any more.
8726
3dc78168
GM
87272000-10-04 Gerd Moellmann <gerd@gnu.org>
8728
8729 * keyboard.c (update_menu_bindings): New variable.
8730 (parse_menu_item): Use AREF. If update_menu_bindings
8731 is 0, don't update menu bindings.
8732 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
8733
1efc2bb9
EZ
87342000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
8735
8736 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
8737 to `mark_object'.
8738
3f679f55
SM
87392000-10-02 Stefan Monnier <monnier@cs.yale.edu>
8740
8741 * syntax.c (forw_comment): Match nestedness of ender/starter.
8742 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
8743 (prev_char_comstart_first): Remove.
8744 (back_comment): Check two-char comment markers more carefully
8745 to better handle overlapping cases like *//* or /* */* */ ...
8746 Match nestedness of ender/starter.
8747
2021ab61
DL
87482000-10-02 Dave Love <fx@gnu.org>
8749
8750 * config.in (HAVE_GAI_STRERROR): Add undef.
8751
8752 * process.c (Fopen_network_stream): Use it.
8753
8754 * m/alpha.h (NO_REMAP): Don't define.
8755
64e6cc18
GM
87562000-10-02 Gerd Moellmann <gerd@gnu.org>
8757
8758 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
8759 return with a string converted to an integer or vice versa when
8760 Vmocklisp_arguments is t.
8761 (Fsignal): Likewise. The function can return for `quit'.
8762 (struct gcpro): Declare member `var' to point to a volatile
8763 Lisp_Object.
8764
8765 * eval.c (error): Prevent compiler warning.
8766
b1904cd9
SM
87672000-09-30 Stefan Monnier <monnier@cs.yale.edu>
8768
8769 * keymap.c (keymap_memberp): New function.
8770 (Fset_keymap_parent): Use it.
8771 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
8772 Use keymap_memberp to avoid creating cycles.
8773 (access_keymap): Use KEYMAPP.
8774
71c9ec51
GM
87752000-09-30 Gerd Moellmann <gerd@gnu.org>
8776
8777 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
8778 gai_strerror. Make sure xerrno is set if connect fails. Improve
8779 error recovery.
71c9ec51 8780
c70c6b58
JR
87812000-09-29 Jason Rumney <jasonr@gnu.org>
8782
8783 * w32term.c (w32_char_font_type, w32_encode_char)
8784 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
8785 (w32_bdf_per_char_metric): New function.
8786 (w32_per_char_metric): Use it.
8787 (x_draw_glyph_string_background): Always draw background for BDF
8788 glyphs.
8789
8790 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
8791 GDI object which is a scarce resource.
8792
8793 * w32bdf.c (search_file_line): Fix skipping of whitespace.
8794 (get_quoted_string): Fix limit on memchr search.
8795 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
8796 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
8797 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
8798 (get_cached_font_char, cache_char_offset): Use macro
8799 BDF_CODEPOINT_RANGE_COVER_P.
8800 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
8801 (clear_cached_bitmap_slots): New function.
8802 (GET_HEX_VALUE): G-Z, g-z are not hex.
8803 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
8804 (get_bitmap_with_cache): Use new cache implementation.
8805 (create_offscreen_bitmap): New function.
8806 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
8807
8808 * w32term.c (x_produce_glyphs): If the distance from the current
8809 position to the next tab stop is less than a canonical character
8810 width, use the tab stop after that.
8811 (x_draw_glyphs): Handle case START and END are out of bounds more
8812 carefully.
8813 (x_clear_mouse_face): Block/unblock input.
8814 (x_display_and_set_cursor): Don't show a hollow box cursor for
8815 buffers whose cursor_type is nil.
8816
fe01239f
GM
88172000-09-29 Gerd Moellmann <gerd@gnu.org>
8818
52283633 8819 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
8820
8821 * dispextern.h (updating_frame): Declare extern.
8822
e7c52f1f
AS
88232000-09-29 Andreas Schwab <schwab@suse.de>
8824
8825 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
8826
de6e1f7c
GM
88272000-09-29 Gerd Moellmann <gerd@gnu.org>
8828
25126faa
GM
8829 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
8830 use its function definition.
8831 (tool_bar_items): Likewise.
8832
de6e1f7c 8833 * lisp.h (fatal): Declare NO_RETURN.
52283633 8834
454ee39b
KH
88352000-09-29 Kenichi Handa <handa@etl.go.jp>
8836
8837 * keymap.c: Remove the line "#undef NULL".
8838
96301c5f
GM
88392000-09-28 Gerd Moellmann <gerd@gnu.org>
8840
52283633 8841 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 8842
efffeeb4
DL
88432000-09-28 Dave Love <fx@gnu.org>
8844
ecb8b666
DL
8845 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
8846
dc3cd20f
DL
8847 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
8848
8849 * .gdbinit (xreload): Note its need on GNU/Linux.
8850
efffeeb4
DL
8851 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
8852 r_alloc, r_alloc_free.
8853
8610d903
KH
88542000-09-28 Kenichi Handa <handa@etl.go.jp>
8855
8856 * syntax.c (skip_chars): Handle negation correctly.
8857
8901d1ac
GM
88582000-09-27 Gerd Moellmann <gerd@gnu.org>
8859
6f22f1ad
GM
8860 * xfaces.c (realize_default_face): Call set_lface_from_font_name
8861 with non-zero FORCE_P argument.
8862
52283633 8863 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
8864 Add assertions.
8865
8866 * xdisp.c (window_box_height): Add an assertion.
8867
8868 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
8869 tool-bar than is available.
8870 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
8871
36f1966f
DL
88722000-09-27 Dave Love <fx@gnu.org>
8873
efffeeb4 8874 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 8875
31d929e5
GM
88762000-09-26 Gerd Moellmann <gerd@gnu.org>
8877
c98863bf
GM
8878 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
8879 instead of BITS_PER_INT.
8880 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
8881 EMACS_UINT, respectively.
8882 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
8883
8884 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
8885
8886 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
8887
77072ab1
GM
8888 * window.c (freeze_window_starts): Construct last argument for
8889 foreach_window differently.
8890
8891 * xfns.c (x_decode_color): Don't return a Lisp_Object.
8892
8893 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
8894 EMACS_UINT instead of `int' and `unsigned int'.
8895 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
8896
8897 * frame.h (struct frame): Make the `nothing' member of union
8898 output_data an EMACS_INT.
8899
52283633 8900 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
8901 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
8902 size in the sdata structure.
8903 (SDATA_NBYTES, SDATA_DATA): New macros.
8904 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
8905 differently for the different layout of the sdata structure.
8906 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
8907 in sdata.
8908 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
8909 Check that size recorded in the string size and size recorded in
8910 the sdata structure agree.
8911
3e60b029
DL
89122000-09-25 Dave Love <fx@gnu.org>
8913
8914 * buffer.c: Include stdio.h.
8915
8916 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 8917
3e60b029
DL
8918 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
8919
8920 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 8921 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
8922 (__malloc_extra_blocks): Declare as __malloc_size_t.
8923
8ff16b4e
GM
89242000-09-25 Gerd Moellmann <gerd@gnu.org>
8925
755a2ccd
GM
8926 * alloc.c (mark_image): Use GC_NILP instead of NILP.
8927
d8b4516f
GM
8928 * keyboard.c (show_help_echo): Set help_echo_showing_p.
8929 (read_char): If help-echo is showing, preserve the echo area
8930 when redisplaying.
8931
8932 * xdisp.c (help_echo_showing_p): New variable.
8933 (set_message): Reset it to 0.
8934 (init_xdisp): Initialize help_echo_showing_p.
8935
8936 * dispextern.h (help_echo_showing_p): Declare extern.
8937
8938 * config.in: Fix typo in __GNUC_MINOR__.
8939
8940 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
8941
b11af2dd
GM
8942 * s/freebsd.h (POSIX_SIGNALS): Define.
8943
8ff16b4e
GM
8944 * xterm.c (x_clear_mouse_face): Block/unblock input.
8945
844eb643
DL
89462000-09-24 Dave Love <fx@gnu.org>
8947
8948 * fns.c (base64_encode_1): Fix last change.
8949
b30ab1b3
GM
89502000-09-22 Gerd Moellmann <gerd@gnu.org>
8951
8952 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
8953
8954 * xdisp.c (try_window_reusing_current_matrix): More fixes
8955 for the case window has a header-line.
8956
c6cbe5f0
DL
89572000-09-22 Dave Love <fx@gnu.org>
8958
4c7c1f3f
DL
8959 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
8960 a doc string.
8961
8962 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
8963
c6cbe5f0
DL
8964 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
8965
550a625e
GM
89662000-09-21 Gerd Moellmann <gerd@gnu.org>
8967
4c7c1f3f 8968 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
8969 for GCC >= 2.5.
8970
52283633
SM
8971 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
8972 Declare NO_RETURN.
fca99116 8973
80d26f99
GM
8974 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
8975 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
8976 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
8977 warnings.
52283633 8978
80d26f99
GM
8979 * marker.c (byte_char_debug_check): Return void.
8980
623a0aae
GM
8981 * xfns.c (Fx_create_frame): Set default frame parameter value
8982 for tool-bar-lines to 1.
8983
8984 * dispnew.c (scrolling_window): Compare y-positions of rows
8985 equal at the start. Some simplification.
8986
8987 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
8988 reused rows' y-position in the case window has a header-line, and
8989 new window start is greater than old window start.
8990
42ac0ae5
GM
8991 * process.c (process_sent_to): New variable.
8992 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
8993 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
8994 Declare more parameters volatile.
8995
550a625e
GM
8996 * lread.c (Vrecursive_load_depth_limit): New variable.
8997 (Fload): Check recursive loads whose recursion depth exceeds
8998 Vrecursive_load_depth_limit.
8999 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
9000
8320414c
GM
90012000-09-20 Gerd Moellmann <gerd@gnu.org>
9002
f46c275e
GM
9003 * fileio.c (Fread_file_name): Doc fix.
9004
9005 * editfns.c (Fmessage_or_box): Doc fix.
9006
9007 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
9008
b7e11c5b 9009 * xfns.c (xbm_scan): Allow C-style comments.
52283633 9010
8320414c
GM
9011 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
9012 symbols are specified, add color translations to the cache.
52283633 9013 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
9014 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
9015 xpm_cache_color.
9016 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
9017 structures to xpm_init_color_cache.
9018
da1608d9
GM
90192000-09-19 Gerd Moellmann <gerd@gnu.org>
9020
52283633 9021 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 9022
6badfa25
AI
90232000-09-19 Andrew Innes <andrewi@gnu.org>
9024
9025 * makefile.nt (bootstrap-emacs): Don't change directory.
9026
3a5f42bb
KH
90272000-09-19 Kenichi Handa <handa@etl.go.jp>
9028
1b7649bd
KH
9029 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
9030
3a5f42bb
KH
9031 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
9032 If output buffer is too small, signal an appropriated error.
9033
9f83cf0b
DL
90342000-09-18 Dave Love <fx@gnu.org>
9035
52283633 9036 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
9037 (current_active_maps): Remove redundant get_local_map call.
9038
28c7826c
GM
90392000-09-18 Gerd Moellmann <gerd@gnu.org>
9040
5cefa566
GM
9041 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
9042 cursor for buffers whose cursor_type is nil.
52283633 9043
6fed3546
GM
9044 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
9045 a feature to implement that is already implemented.
9046 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
9047 warnings.
9048
9049 * xfns.c (x_clear_image_1): New function.
9050 (x_clear_image): Use it.
52283633 9051 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 9052
05b1f851
GM
9053 * dispnew.c (update_window): Move test for invisible lines
9054 at the top to update_window_line.
9055 (update_window_line): Handle invisible lines here.
9056
f4779de9
GM
9057 * xfns.c (clear_image_cache): Clear current matrices of all
9058 frames sharing an image cache. Block input while freeing
9059 images. Fix timestamp comparison.
9060 (x_clear_image): Also free the mask.
9061
28c7826c
GM
9062 * xfns.c (lookup_image): Block input while loading the image so
9063 that we won't get interrupted in a state where the image isn't yet
9064 set up completely.
9065 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
9066 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
9067 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 9068 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 9069
b7412313
GM
90702000-09-16 Gerd Moellmann <gerd@gnu.org>
9071
9072 * dispnew.c (update_window): Make sure to make desired rows
9073 current even if they are completely invisible at the top
9074 of a window.
9075
47e351a3
GM
90762000-09-15 Gerd Moellmann <gerd@gnu.org>
9077
7f8f1edc
GM
9078 * xfns.c (lookup_image): Build mask before applying an algorithm.
9079 Recognize algorithm `disabled'.
9080 (cross_disabled_images): New variable.
9081 (COLOR_INTENSITY): New macro.
9082 (x_detect_edges): Use COLOR_INTENSITY.
9083 (x_disable_image): New function.
9084 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
9085
9086 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
9087 disabled state, don't apply an image transformation algorithm if
9088 the user specified an image for the disabled state. Use
28c7826c 9089 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
9090 user hasn't specified an image.
9091
ebb8f116
GM
9092 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
9093 allocation functions with the XPM lib.
9094 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
9095 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
9096 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
9097 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 9098 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
9099 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
9100 functions, if possible, because these handle color allocation
9101 failure more gracefully.
9102 (Fimage_mask_p): New function.
9103
47e351a3
GM
9104 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
9105 (Qedge_detection, Qheuristic): New symbols.
9106 (syms_of_xfns): Initialize new symbols.
9107 (lookup_image): Handle `:mask X', `:algorithm emboss', and
9108 `algorithm (edge-detection ...)'.
9109 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
9110 (tiff_format, gif_format, gs_format): Add `:mask'.
9111 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
9112 (GIF_MASK, GS_MASK): New enumerators.
9113 (x_laplace_read_row, x_laplace_write_row): Functions removed.
9114 (emboss_matrix, laplace_matrix): New variables.
9115 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
9116 (x_edge_detection): New functions.
9117 (x_laplace): Rewritten in terms of x_detect_edges.
9118 (x_build_heuristic_mask): If image has a mask, free it.
9119
fe83b953
AI
91202000-09-14 Andrew Innes <andrewi@gnu.org>
9121
9122 * makefile.w32-in: Revert to Unix line endings.
9123
3021e816
AI
91242000-09-14 Andrew Innes <andrewi@gnu.org>
9125
9126 * makefile.w32-in: Standardize indentation somewhat.
9127 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
9128 cater for differences between shells.
9129
9130 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
9131
2a32b5ea
GM
91322000-09-14 Gerd Moellmann <gerd@gnu.org>
9133
9134 * xterm.c (x_produce_glyphs): If the distance from the current
9135 position to the next tab stop is less than a canonical character
9136 width, use the tab stop after that.
9137
b4331e96
DL
91382000-09-14 Dave Love <fx@gnu.org>
9139
9140 * buffer.c (alloc_buffer_text): Fix xmalloc call.
9141
ef9e4345
GM
91422000-09-14 Gerd Moellmann <gerd@gnu.org>
9143
085536c2
GM
9144 * xdisp.c (handle_fontified_prop): While running fontification
9145 functions, bind `fontification-functions' and
9146 `after-change-functions' to nil.
9147
ef9e4345
GM
9148 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
9149 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
9150
9151 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
9152
9153 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
9154 USE_MMAP_FOR_BUFFERS.
9155
9156 * insdel.c (make_gap): Use enlarge_buffer_text.
9157
9158 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
9159 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
9160 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
9161 from former r_alloc_* functions in ralloc.c.
52283633 9162 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
9163 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
9164 (mmap_init) [REL_ALLOC_MMAP]: New function.
9165 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
9166 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
9167 BUFFER_FREE.
9168
9169 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
9170 (enlarge_buffer_text): Add prototype.
9171
9172 * ralloc.c: Remove everything having to do with the use of mmap.
9173
f8608968
GM
91742000-09-13 Gerd Moellmann <gerd@gnu.org>
9175
2a494b2d
GM
9176 * sound.c (Fplay_sound): Doc fix.
9177
8c907a56
GM
9178 * keyboard.c: Avoid some more compiler warnings.
9179 (parse_tool_bar_item): Ignore cached key bindings.
9180
f8608968
GM
9181 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
9182 and allocation of Lisp data.
9183
6ab70e9a
GM
91842000-09-12 Gerd Moellmann <gerd@gnu.org>
9185
d12d0a9b
GM
9186 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
9187 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
9188 defaults first.
9189
6ab70e9a
GM
9190 * lread.c (Fload): Put code checking for recursive loads in #if 0.
9191
63c36c3c
KH
91922000-09-12 Miyashita Hisashi <himi@meadowy.org>
9193
9194 * ccl.c: Comment fixed.
9195 (MAX_MAP_SET_LEVEL): Increased to 30.
9196 (PUSH_MAPPING_STACK): Enclose with do-while block.
9197 (POP_MAPPING_STACK): Likewise.
9198 (stack_idx_of_map_multiple): New variable.
9199 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
9200 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 9201 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
9202 (ccl_driver) <CCL_MapSingle>: Likewise.
9203 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
9204 with the case where looking up process reaches to the end of
9205 map-set, and call CCL programs as the above change.
9206
7ee3bd7b
GM
92072000-09-11 Gerd Moellmann <gerd@gnu.org>
9208
8ec8a5ec
GM
9209 * xfns.c (png_load, jpeg_load): Declare some variables volatile
9210 that might be clobbered by longjmp.
9211 (check_x_display_info, x_decode_color, create_frame_xic)
9212 (Fx_display_backing_store, Fx_display_visual_class)
52283633 9213 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 9214
f74b0705
GM
9215 * lread.c (init_lread): Set Vloads_in_progress to nil.
9216 (Fload): Show list of recursively loaded files, when signaling an
9217 error.
9218
7ee3bd7b
GM
9219 * lread.c (Vloads_in_progress): New variable.
9220 (record_load_unwind): New function.
9221 (Fload): Check for recursive loads.
9222 (syms_of_lread): Initialize Vloads_in_progress.
9223 (read_integer, read1): Avoid some compiler warnings.
9224
9225 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
9226 compiler warnings.
9227
974e1e5b
MB
92282000-09-11 Miles Bader <miles@gnu.org>
9229
9230 * editfns.c (Fbuffer_string): Doc fix.
9231
9824c4e3
GM
92322000-09-10 Gerd Moellmann <gerd@gnu.org>
9233
9234 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
9235
6a72fdd1
KR
92362000-09-09 Ken Raeburn <raeburn@gnu.org>
9237
9238 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
9239 whether to include other header files.
9240
28e6fb66
GM
92412000-09-09 Gerd Moellmann <gerd@gnu.org>
9242
52283633 9243 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 9244 by Fmemq as a boolean.
28e6fb66 9245
7f8b6551
SM
92462000-09-08 Stefan Monnier <monnier@cs.yale.edu>
9247
9248 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
9249
a8710abf
GM
92502000-09-08 Gerd Moellmann <gerd@gnu.org>
9251
d1a02881
GM
9252 * ralloc.c (mmap_fd): Remove initializer which can make it
9253 read-only in a dumped Emacs.
9254 (mmap_fd_1): New variable.
9255 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
9256 restore it from there.
9257 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
9258 unconditionally so that mmap_fd can be initialized there.
9259 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
9260 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
9261 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
9262
c454aac1
GM
9263 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
9264
9265 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 9266 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 9267
fc653ef2
GM
9268 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
9269
3015eec0
GM
9270 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
9271 inheritance.
9272
bfe0ee88
GM
9273 * xdisp.c (try_window_id): When trying to locate cursor in
9274 unchanged rows at the top, handle the case that we can't find it.
9275
a8710abf
GM
9276 * xterm.c (x_draw_glyphs): Handle case START and END are out
9277 of bounds more carefully.
9278
6b7d4ae4
DL
92792000-09-08 Dave Love <fx@gnu.org>
9280
423193c5
DL
9281 * s/sol2.h (REL_ALLOC_MMAP): Define.
9282 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
9283
9284 * ralloc.c: Don't include string.h (redundant).
9285 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
9286 [!MAP_ANON]: Include fcntl.h.
9287 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
9288 (r_alloc, r_re_alloc, r_alloc_free)
9289 (mmap_enlarge, mmap_set_vars): Use it.
9290 (r_alloc_init_fd): New function.
9291 (__morecore) [SYSTEM_MALLOC]: Don't declare.
9292 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
9293 malloc type.
9294
9295 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
9296 Remove vm-limit.o.
9297
6b7d4ae4
DL
9298 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
9299 change to __NetBSD__.
9300
44d31981
KH
93012000-09-08 Kenichi Handa <handa@etl.go.jp>
9302
9303 * search.c (compile_pattern): Check the multibyteness of cached
9304 string and PATTERN.
9305
aad40737
MB
93062000-09-08 Miles Bader <miles@gnu.org>
9307
9308 * xfaces.c (default_face_vector): Function removed.
9309 (Finternal_merge_in_global_face): Restore old global/local
9310 attribute override order. Use inline loop instead of calling
9311 default_face_vector.
9312
91a211b5
GM
93132000-09-07 Gerd Moellmann <gerd@gnu.org>
9314
9315 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
9316 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
9317 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
9318 where necessary, in case POINTER_TYPE is `void'.
9319
03419440
EZ
93202000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
9321
9322 * frame.c (make_terminal_frame): Initialize frame foreground and
9323 background colors to unspecified, for the initial instance of an
9324 MSDOS frame.
9325
f46f845b
GM
93262000-09-07 Gerd Moellmann <gerd@gnu.org>
9327
24f76fbf
GM
9328 * ralloc.c (mmap_find): Fix overlap computation.
9329 (mmap_enlarge): Compute nbytes before trying to find an
9330 overlapping region.
9331
f46f845b
GM
9332 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
9333 instead of `!='.
9334
9335 * lread.c (syms_of_lread): Change value of regexp
9336 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
9337
9338 * xmenu.c (xdialog_show): When looking up the selection in
9339 menu_items, take `quote' boundaries into account; this corresponds
9340 to a nil ITEM in x-popup-dialog.
9341
3c014385
KH
93422000-09-07 Kenichi Handa <handa@etl.go.jp>
9343
fd6f711b
KH
9344 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
9345 not 0x81.
9346 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
9347
3c014385 9348 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
9349 encoding, not decoding. Fix the handling of latin-jisx0201.
9350 Check for the charset katakana-jisx0201 too.
3c014385 9351 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 9352 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 9353
0da3ecef
GM
93542000-09-07 Gerd Moellmann <gerd@gnu.org>
9355
ab0ee409
GM
9356 * xfaces.c (Vparam_value_alist): New variable.
9357 (syms_of_xfaces): Initialize it.
9358 (Finternal_set_lisp_face_attribute): Avoid more consing.
9359
9360 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
9361 specially.
9362 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
9363 (Qbackground_mode): New variable.
9364 (syms_of_frame_1): Initialize Qbackground_mode.
9365
9366 * lisp.h (Qdisplay): Declare extern.
1091dd67 9367
0da3ecef
GM
9368 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
9369 change face on all frames, and change the default for new frames.
9370
b14654b9
DL
93712000-09-07 Dave Love <fx@gnu.org>
9372
9373 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
9374
d24fd56f
KH
93752000-09-07 Kenichi Handa <handa@etl.go.jp>
9376
794f3670
KH
9377 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
9378
0fddd0dc
KH
9379 * charset.c: Include composite.h
9380 (lisp_string_width): New function.
9381 (Fstring_width): Call lisp_string_width instead of strwidth.
9382
9383 * Makefile.in (charset.o): Depends on composite.h.
9384
d24fd56f
KH
9385 * process.c (read_process_output): Before inserting the decoded
9386 text in the buffer, adjust the multibyteness.
9387
fa0b693c
GM
93882000-09-06 Gerd Moellmann <gerd@gnu.org>
9389
52283633 9390 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
9391 buffer's text buffer is null, map new memory.
9392
0a58f946
GM
9393 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
9394 POINTER_TYPE and size_t.
9395 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
9396 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
9397 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
9398 [REL_ALLOC_MMAP]: New macros.
9399 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
9400 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
9401 [REL_ALLOC_MMAP]: New functions.
9402
9403 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
9404 before and after unexec.
9405
9406 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
9407 text buffers if necessary.
9408
9409 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
9410 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
9411 in prototypes.
9412
fa0b693c
GM
9413 * config.in (HAVE_MMAP): Add #undef.
9414
877055f6
GM
94152000-09-05 Gerd Moellmann <gerd@gnu.org>
9416
08ba3862
GM
9417 * frame.c (Qdisplay_type): New variable.
9418 (syms_of_frame_1): Initialize it.
9419 (Fframe_parameter): New function that avoids consing.
9420 (syms_of_frame): Defsubr it.
9421
66ffe51c
GM
9422 * buffer.c (Fother_buffer): Consider buffers as invisible when
9423 they are displayed in a window on an invisible frame.
9424
877055f6
GM
9425 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
9426 get-largest-window always return nil.
9427
bb970e67
GM
94282000-09-04 Gerd Moellmann <gerd@gnu.org>
9429
9430 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
9431 variable; recognize Emacs 19 elc files.
9432
7a3d0e0e
MB
94332000-09-04 Miles Bader <miles@gnu.org>
9434
9435 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
9436 before initially popping up the menu, so the menu doesn't flash
52283633 9437 when the face settings are significantly different from the defaults.
7a3d0e0e 9438
14473664
SM
94392000-09-04 Stefan Monnier <monnier@cs.yale.edu>
9440
9441 * regex.c (WIDE_CHAR_SUPPORT): New macro.
9442 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
9443 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
9444 (BIT_UNIBYTE): Remove.
9445 (re_match_2_internal): Delete corresponding code and streamline the
9446 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
9447 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
9448 (re_wctype_t): New type.
9449 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
9450 (regex_compile): Use them and fix handling of overly long char classes.
9451
c1174479
AI
94522000-09-03 Andrew Innes <andrewi@gnu.org>
9453
f8803e97
AI
9454 * makefile.w32-in: Change to DOS line endings.
9455
c1174479
AI
9456 * s/ms-w32.h (ORDINARY_LINK): New define.
9457
9458 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
9459 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
9460
9461 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
9462 (distclean): Delete them here instead.
9463
44ef7cf6
AI
9464 * w32proc.c (compare_env): Convert to uppercase for comparison,
9465 not lowercase, to match how the native Windows shell works.
9466
49b3bd82
JR
94672000-09-03 Jason Rumney <jasonr@gnu.org>
9468
9469 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
9470 CVS changes the line-ends when checking in/out on DOS/Windows.
9471
9472 * makefile.nt (emacs): Do not change directory to run temacs, as
9473 the load-path is set relative to current directory.
9474
a3d35a39
MB
94752000-09-03 Miles Bader <miles@gnu.org>
9476
9477 * xterm.c (x_alloc_lighter_color_for_widget): New function.
9478
d276b0cf
GM
94792000-09-02 Gerd Moellmann <gerd@gnu.org>
9480
715e84c9
GM
9481 * xdisp.c (redisplay_mode_lines): New function.
9482 (display_mode_lines): Return number of mode lines displayed.
9483 (echo_area_display): Use redisplay_mode_lines to draw garbaged
9484 mode lines. Don't temporarily bind redisplay-dont-pause to t.
9485
8892f40b
GM
9486 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
9487 string.h and strings.h.
9488 (index) [HAVE_INDEX]: Add prototype.
9489
d276b0cf
GM
9490 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
9491 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
9492
9493 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
9494 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
9495
38404229
GM
94962000-09-01 Gerd Moellmann <gerd@gnu.org>
9497
9498 * lread.c (read1): Accept `?' as symbol constituent, for
9499 compatiblity with XEmacs.
9500
c0f9ea08
SM
95012000-08-31 Stefan Monnier <monnier@cs.yale.edu>
9502
9503 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
9504 (struct re_pattern_buffer): Remove newline_anchor.
9505 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
9506 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
9507 (re_max_failures, fail_stack): Use size_t rather than unsigned.
9508 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
9509 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
9510 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
9511 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
9512 Get rid of references to newline_anchor.
9513 (regcomp): Allocate and precompute a fastmap.
9514
8c0f83fe
GM
95152000-08-31 Gerd Moellmann <gerd@gnu.org>
9516
9517 * lread.c (openp): GCPRO local variable `filename'.
9518
4bb91c68
SM
95192000-08-30 Stefan Monnier <monnier@cs.yale.edu>
9520
9521 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
9522
9523 * regex.c: Merge some changes from GNU libc. Add prototypes.
9524 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
9525 Use memcmp and memcpy instead of bcopy and bcmp.
9526 (init_syntax_once): Use ISALNUM.
9527 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
9528 (REG_UNSET_VALUE): Remove. Use NULL instead.
9529 (REG_UNSET, re_match_2_internal): Use NULL.
9530 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
9531 New macros.
9532 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
9533 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
9534 (regex_compile): In handle_interval, return an error rather than try to
9535 unfetch the interval if we can't find the closing brace.
9536 Obey the RE_NO_GNU_OPS syntax bit.
9537 (TOLOWER): New macro.
9538 (regcomp): Use it.
9539 (regexec): Allocate regs.start and regs.end as one block.
9540
5226a931
GM
95412000-08-30 Gerd Moellmann <gerd@gnu.org>
9542
868dd24b
GM
9543 * xdisp.c (echo_area_display): Check display_completed instead
9544 of calling detect_input_pending.
9545
9546 * dispnew.c (update_frame): Only set display_completed here; move
9547 the update_begin and update_end calls here from update_frame_1.
9548 (update_frame_1): Don't set display_completed here, don't call
9549 update_begin/update_end.
9550
5226a931
GM
9551 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
9552 instead of store_frame_param.
9553
2a8bd25f
GM
95542000-08-29 Gerd Moellmann <gerd@gnu.org>
9555
9556 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
9557 desired window matrix hasn't been displayed, use the current row
9558 instead. Make sure that only those frame rows are updated for
9559 which there exists a corresponding enabled desired row.
52283633 9560
ba3478d9
MB
95612000-08-29 Miles Bader <miles@gnu.org>
9562
9563 * xfaces.c (default_face_vector): New function.
9564 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
9565
87d0f685
GM
95662000-08-29 Gerd Moellmann <gerd@gnu.org>
9567
9568 * lread.c (openp): Prevent temporary string passed to
9569 Ffile_readable_p from being garbage collected.
9570
6fa86045
DL
95712000-08-28 Dave Love <fx@gnu.org>
9572
9573 * keymap.c (store_in_keymap): Add `static' to declaration.
9574
bb17930d
GM
95752000-08-28 Gerd Moellmann <gerd@gnu.org>
9576
9577 * emacs.c, callint.c, doc.c, editfns.c
9578 (toplevel) [HAVE_STRING_H]: Include string.h.
9579 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
9580 (index): Remove prototypes which might conflict with non-standard
9581 definitions of index/strchr.
9582
9583 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
9584 (rindex): Define only if !HAVE_RINDEX.
9585
9586 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
9587
9588 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
9589
87188200
MB
95902000-08-28 Miles Bader <miles@gnu.org>
9591
9592 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
9593 made inconsistent by a font-related attribute in FROM.
9594 (merge_face_inheritance): Add function comment.
9595
41a68aef
KH
95962000-08-28 Kenichi Handa <handa@etl.go.jp>
9597
9598 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
9599 the 4th arg (PREV_EVENT) Qt to suppress input method.
9600
f7c436c1
SM
96012000-08-27 Stefan Monnier <monnier@cs.yale.edu>
9602
0b32bf0e
SM
9603 * regex.c: Indent cpp directives and remove parens after `defined'.
9604 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
9605 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
9606 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
9607 (re_compile_pattern): Use size_t for length.
9608 (init_syntax_once): Move to a better place.
9609 * regex.h: Merge changes from GNU libc. Indent cpp directives.
9610 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
9611
f7c436c1
SM
9612 * syntax.c (back_comment): Detect cases where a comment-starter is
9613 actually inside another comment as in: /* a // b */ c // d \n.
9614 Make it clear that `comstart_pos' is unused for nested comments.
9615
9616 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
9617 (KEYMAPP): New macro.
9618 (Fkeymap_parent, Fset_keymap_parent): Use it.
9619 (fix_submap_inheritance): Mark it static.
9620 (define_as_prefix, describe_buffer_bindings, describe_command)
9621 (describe_translation, describe_map): Complete prototypes.
9622
9623 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
9624
9625 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
9626 to better match the key-lookup behavior.
9627
6288c62f
GM
96282000-08-27 Gerd Moellmann <gerd@gnu.org>
9629
9630 * xfaces.c (lface_fully_specified_p): Handle :inherit.
9631 (Finternal_set_lisp_face_attribute): Fix typo in error message.
9632
e931344e
EZ
96332000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
9634
9635 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
9636 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
9637 (xterm.o): Depend on coding.h
9638
d10dfeef
KH
96392000-08-26 Kenichi Handa <handa@etl.go.jp>
9640
9641 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
9642 the corresponding '#endif'.
9643
2d73e8d3
MB
96442000-08-26 Miles Bader <miles@gnu.org>
9645
9646 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
9647 * xfaces.c (QCinherit): New variable.
9648 (syms_of_xfaces): Initialize it.
9649 (LFACE_INHERIT): New macro.
9650 (Finternal_get_lisp_face_attribute)
52283633 9651 (merge_face_vector_with_property)
2d73e8d3
MB
9652 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
9653 (check_lface_attrs): Allow new types of face height. Check
9654 inherit attribute.
9655 (CYCLE_CHECK): New macro.
9656 (merge_face_inheritance): New function.
9657 (merge_face_vectors): Merge inherited faces too. Add F and
9658 CYCLE_CHECK arguments.
9659 (merge_face_vector_with_property, Finternal_merge_in_global_face)
9660 (lookup_named_face, lookup_derived_face, realize_named_face)
9661 (face_at_string_position, face_at_buffer_position): Supply
9662 new F and CYCLE_CHECK arguments to merge_face_vectors.
9663 (merge_face_heights): New function.
52283633 9664 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
9665 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
9666 handle relative face heights.
9667 (lface_same_font_attributes_p): Compare heights using EQ.
9668
6ce974d4
KH
96692000-08-26 Kenichi Handa <handa@etl.go.jp>
9670
9671 * charset.c (char_to_string): Check the character validity.
52283633 9672 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 9673
dc1e502d
SM
96742000-08-25 Stefan Monnier <monnier@cs.yale.edu>
9675
9676 * regex.c (PUSH_FAILURE_COUNT): New macro.
9677 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
9678 Handle popping of a register's or a counter's data.
9679 (POP_FAILURE_POINT): Use the new name.
9680 (re_match_2_internal): Push counter data on the stack for succeed_n,
9681 jump_n and set_number_at and remove misleading dead code in succeed_n.
9682
bd9d0f3f
GM
96832000-08-25 Gerd Moellmann <gerd@gnu.org>
9684
9685 * xdisp.c (redisplay_internal): If considering all windows on all
9686 frames, update the display for each frame as soon as possible,
9687 instead of first building all desired matrices for all frames, and
9688 then updating them all.
9689 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
9690
aa5b8e15
GM
96912000-08-24 Gerd Moellmann <gerd@gnu.org>
9692
17494071
GM
9693 * bytecode.c (mark_byte_stack): Add a comment.
9694
52283633
SM
9695 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
9696 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
9697 a graphical frame.
9698
c543db81
KH
96992000-08-24 Kenichi Handa <handa@etl.go.jp>
9700
d246d5f5
KH
9701 * minibuf.c (do_completion): Always use compare-string, not
9702 string-equal because the latter doesn't pay attention to
9703 multibyteness of strings.
9704
c543db81
KH
9705 * process.c (create_process): Don't setup raw-text coding here.
9706 (Fopen_network_stream): Don't set coding->src_multibyte and
9707 coding->dst_multibyte here.
9708 (read_process_output): For process filter, return unibyte string
9709 if default-enable-multibyte-characters is nil.
9710 (send_process): If OBJECT is multibyte text, be sure to encoded it
9711 by the specified coding system for the process. Otherwise, setup
9712 raw-text coding.
52283633 9713 (init_process): Don't initialize default-process-coding-system here.
c543db81 9714
9b47cfe0
EZ
97152000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
9716
9717 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
9718 <scroll-down-aggressively>: Likewise.
9719
f5a36960
KH
97202000-08-23 Kenichi Handa <handa@etl.go.jp>
9721
9722 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
9723 zero. Set coding->produced_char correctly.
9724
69a7ffa7
AI
97252000-08-22 Andrew Innes <andrewi@gnu.org>
9726
9727 * makefile.w32-in: New file.
9728
9729 * unexw32.c (unexec): Ignore old_name, and use the actual location
9730 of the current executable instead. Base new_name on this.
9731
9732 * w32proc.c (create_child): Remove reference to security
9733 descriptor, which isn't needed and doesn't compile with mingw32.
9734
9735 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9736 up dllimport attributes.
9737 (x_update_window_end): Update prototype.
9738
9739 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
9740 extern, which screws up dllimport attributes.
9741
9742 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9743 up dllimport attributes.
9744
9745 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
9746 screws up dllimport attributes.
9747
9748 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9749 up dllimport attributes.
9750 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
9751 screws up dllimport attributes.
9752
9753 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9754 up dllimport attributes.
9755
9756 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
9757 screws up dllimport attributes.
9758
9759 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
9760 screws up dllimport attributes.
9761
9762 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9763 up dllimport attributes.
9764
9765 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
9766 unnecessary extern, which screws up dllimport attributes.
9767 (main): Ditto.
9768
9769 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9770 up dllimport attributes.
9771
9772 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
9773 unnecessary extern, which screws up dllimport attributes.
9774
9775 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
9776 screws up dllimport attributes.
9777
9778 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
9779 up dllimport attributes.
9780
9781 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
9782
52283633
SM
9783 * w32bdf.c (search_file_line):
9784 (set_bdf_font_info):
9785 (seek_char):
9786 (w32_get_bdf_glyph):
69a7ffa7
AI
9787 (w32_BDF_to_x_font): Fix compile warnings.
9788
52283633 9789 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
9790
9791 * w32select.c: Include keyboard.h before frame.h.
9792
9793 * w32fns.c (max): Define macro.
9794 (JOHAB_CHARSET): Define if not known.
9795 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
9796 (Fx_show_tip): Synch with X version.
9797
9798 * w32xfns.c: Include keyboard.h before frame.h.
9799
9800 * w32fns.c: Include keyboard.h before frame.h.
9801
9802 * w32term.c: Include keyboard.h before frame.h.
9803
9804 * fontset.c: Include keyboard.h before frame.h.
9805
9806 * w32inevt.c: Include keyboard.h before frame.h.
9807 (MOUSE_MOVED): Define if not known.
9808
9809 * minibuf.c: Include keyboard.h before frame.h.
9810
9811 * keyboard.c: Include keyboard.h before frame.h.
9812
9813 * indent.c: Include keyboard.h before frame.h.
9814
9815 * dispnew.c: Include keyboard.h before frame.h.
9816
9817 * buffer.c: Include keyboard.h before frame.h.
9818
9819 * alloc.c: Include keyboard.h before frame.h.
9820
9821 * print.c: Include keyboard.h before frame.h.
9822
9823 * process.c: Include keyboard.h before frame.h.
9824
9825 * scroll.c: Include keyboard.h before frame.h.
9826
9827 * sysdep.c: Include keyboard.h before frame.h.
9828
9829 * term.c: Include keyboard.h before frame.h.
9830
9831 * window.c: Include keyboard.h before frame.h.
9832
9833 * xdisp.c: Include keyboard.h before frame.h.
9834 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
9835
9836 * frame.c: Include keyboard.h before frame.h.
9837
9838 * w32heap.h: Undefine min, max.
9839
9840 * w32gui.h: Undefine min, max.
9841
9842 * unexw32.c: Change PUCHAR to PCHAR.
9843 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
9844 (relocate_offset):
9845 (get_section_info):
69a7ffa7
AI
9846 (copy_executable_and_dump_data): Remove unnecessary static defs.
9847 (copy_executable_and_dump_data): Fix compile warnings.
9848
9849 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
9850
9851 * w32console.c (min): Define macro.
9852 (clear_frame, write_glyphs): Fix compile warning.
9853
52283633 9854 * w32proc.c (compare_env):
69a7ffa7
AI
9855 (find_child_console): Fix compile warning.
9856
9857 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
9858 sys_errlist instead of _sys_errlist.
9859 (get_emacs_configuration_options): New function.
9860
9861 * s/ms-w32.h (sys_nerr): Provide default definition.
9862 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
9863 name with _ prepended.
9864 (NSIG): Define if not known.
9865 (get_emacs_configuration): Provide extern declaration.
9866 (get_emacs_configuration_options): Provide extern declaration.
9867 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
9868
9869 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 9870 (map_w32_filename):
69a7ffa7
AI
9871 (read_unc_volume): Fix compile warning.
9872
9873 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
9874 definitions from being used.
9875
9876 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
9877
52283633 9878 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
9879 (open_unc_volume): Make arg const.
9880
9881 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
9882 (read_input_waiting): Remove excess parameter.
9883
9884 * w32.c (init_environment): Call _access.
9885 (check_windows_init_file): Call _close.
9886 (init_user_info): Call _putenv.
9887 (init_environment): Call _putenv and _strdup.
9888 (init_ntproc): Reset volume info cache on startup.
9889
9890 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
9891 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
9892 cannot override the CRT malloc.
9893
9894 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
9895 (LINK_FLAGS): Append to original value of LINK_FLAGS.
9896
9897 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
9898 unless we are linking with a static CRT.
9899 (RVA_TO_PTR): Cast result to unsigned char*.
9900
9901 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
9902 (add_volume_info): Use xstrdup.
9903
25060080
SM
99042000-08-22 Stefan Monnier <monnier@cs.yale.edu>
9905
9906 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
9907 (do_completion, Fminibuffer_complete_word): Use it.
9908 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
9909 var so it can take non-boolean values.
9910
6917e6bb
GM
99112000-08-21 Gerd Moellmann <gerd@gnu.org>
9912
acb7cc89 9913 * editfns.c (find_field): Formatting changes.
52283633 9914 (toplevel): Some old-style function forward declarations
acb7cc89
GM
9915 changed to prototypes, some new protypes added, some functions
9916 made static.
9917
9918 * lisp.h (set_time_zone_rule): Add prototype.
9919 (use_dialog_box): External declaration.
9920
0bbfdc25
GM
9921 * keyboard.c (gen_help_event): Add parameter SIZE.
9922 (kbd_buffer_events_waiting): Slightly rewritten.
9923 (clear_event): New function.
9924 (kbd_buffer_get_event): Use it, and clear the input_events of
9925 HELP_EVENTs.
9926 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
9927 don't fill the newly created array with nils.
9928 (toplevel): Convert some old-style function forward declarations
9929 to prototypes.
9930
9931 * keyboard.h (gen_help_event): Change prototype.
9932
9933 * xterm.c (XTread_socket): Change calls to gen_help_event.
9934
9935 * w32term.c (w32_read_socket): Change calls to gen_help_event.
9936
6917e6bb
GM
9937 * eval.c (Fmacroexpand): Doc fix.
9938
e5cd3d11
JR
99392000-08-20 Jason Rumney <jasonr@gnu.org>
9940
9941 * w32term.h (x_display_info_for_display): Remove as this function
9942 does not exist on W32.
9943
9944 * w32term.c (help_echo_window): New variable.
9945 (syms_of_w32term): staticpro it.
9946 (note_mode_line_highlight): Set it.
9947 (XTextExtents16): Removed as there is no equivalent on W32.
9948 (x_compute_glyph_string_overhangs): Incomplete body removed, as
9949 the X way of doing this will not work for W32.
9950 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
9951 (x_draw_image_foreground): Avoid drawing outside of the clip area
9952 when image doesn't have a mask.
9953 (note_mouse_highlight): Process overlays in the right order of
9954 priority. Set help_echo_window.
9955 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
9956 because that's more visible for large images.
9957
9958 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
9959 name to single_keymap_panes.
9960 (w32_menu_show): Set wv->title when dealing with titles.
9961 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
9962
6e69ab8c
MB
99632000-08-21 Miles Bader <miles@gnu.org>
9964
9965 * minibuf.c (do_completion): Try again if we rewrite the input
9966 string, but no completion was done, so that any completion message
9967 will be correct.
9968
511bd4eb
GM
99692000-08-20 Gerd Moellmann <gerd@gnu.org>
9970
9971 * xfaces.c (lface_equal_p): Compare strings differently.
9972 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
9973 (realize_tty_face): Use them.
9974 (syms_of_xfaces): Initialize new variables.
9975 (map_tty_color): New function, extracted from realize_tty_face.
9976 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
9977 foreground or background color, store the new color name in the
9978 realized face; previous code trying to do this had no effect.
9979 (realize_tty_face): Use map_tty_color.
9980 (Fclear_face_cache): Set face_change_count and ensure thorough
9981 redisplay.
9982
1433385f
GM
99832000-08-19 Gerd Moellmann <gerd@gnu.org>
9984
511bd4eb
GM
9985 * undo.c (record_first_change, record_marker_adjustment): Don't
9986 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 9987
419ac0a2
KH
99882000-08-18 Kenichi Handa <handa@etl.go.jp>
9989
9990 * coding.c (decode_coding_string): Set members consumed,
9991 consumed_char, produced, produced_char of *coding correctly. If
9992 decode_coding doesn't consume any byte, don't try anymore.
9993 (encode_coding_string): Likewise.
9994
7eb9e30d
GM
99952000-08-18 Gerd Moellmann <gerd@gnu.org>
9996
511bd4eb
GM
9997 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
9998 conditional have void type, for Standard C compilers.
7eb9e30d
GM
9999
10000 * xdisp.c (redisplay_internal): Compare windows for equality with
10001 EQ, instead of applying XWINDOW to something that might not
10002 be a window.
52283633 10003
dd34a735
KH
100042000-08-18 Kenichi Handa <handa@etl.go.jp>
10005
10006 * fontset.c (Finternal_char_font): Search only the selected frame
10007 for a window of the current buffer.
10008
385ff9e3
GM
100092000-08-18 Gerd Moellmann <gerd@gnu.org>
10010
511bd4eb 10011 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
10012 Lisp_Objects.
10013
385ff9e3
GM
10014 * keyboard.c (kbd_buffer_get_event): Handle the case that the
10015 second half of a HELP_EVENT is found at the start of kbd_buffer.
10016
d6abb4c7
MB
100172000-08-18 Miles Bader <miles@gnu.org>
10018
4618074a
MB
10019 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
10020
d6abb4c7
MB
10021 * editfns.c (save_restriction_save): Rewrite to use markers.
10022 (save_restriction_restore): Rewrite to understand new form of data
10023 saved by save_restriction_save.
10024 (Fsave_restriction): Remove cautionary note in doc-string.
10025
a7b28523
GM
100262000-08-17 Gerd Moellmann <gerd@gnu.org>
10027
10028 * fileio.c (build_annotations): Add a comment explaining the
10029 return value of format-annotate-function. Replace a spurious call
10030 to Flength with a CONSP test. Call format-annotate-function with
10031 a fifth arg specifying how many times the function is been called
10032 in a row, to let it choose temporary buffers appropriately.
10033
03c9ed77
DL
100342000-08-17 Dave Love <fx@gnu.org>
10035
10036 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
10037 declare make_temp_name twice.
10038
52283633 10039 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
10040 (unreadpure): Give it an arg.
10041
10042 * unexalpha.c: Prototype fatal_unexec, mark_x,
10043 update_dynamic_symbols. Declare unexec as void.
10044
10045 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
10046 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
10047
10048 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 10049 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
10050
10051 * alloca.c: Use #error.
10052 [POINTER_TYPE]: Use it.
10053
10054 * eval.c (Fdefvar): Doc fix.
10055
10056 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
10057 INITIALIZE_INTERVAL.
10058
10059 * buffer.h: Avoid DECLARE_INTERVALS.
10060
10061 * config.in: Add size_t.
10062
aae41d97
EZ
100632000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
10064
10065 * w16select.c (set_clipboard_data): If there's not enough memory
10066 to put text into clipboard, return 1, as Fw16_set_clipboard_data
10067 expects. In case of other failures, return 3.
10068 (system_error_msg): New error message.
10069 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
10070 system_error_msg.
10071
65aa5e85
GM
100722000-08-16 Gerd Moellmann <gerd@gnu.org>
10073
10074 * term.c (write_glyphs): Also turn off inverse video after turning
10075 off other appearances in case TS_exit_attribute_mode is not equal
10076 to TS_end_standout_mode.
10077 (insert_glyphs): Turn inverse video on/off for each run of glyphs
10078 with the same face.
10079 (turn_off_face): Reset standout_mode only if
10080 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
10081 is equal to TS_end_standout_mode.
10082
ece23901
KH
100832000-08-16 Kenichi Handa <handa@etl.go.jp>
10084
9d7bcb2e
KH
10085 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
10086 sequence at the end of the source block.
10087
ece23901
KH
10088 * ccl.c (Fccl_program_p): Docstring modified.
10089 (Fccl_execute): Likewise.
10090 (Fccl_execute_on_string): Likewise.
10091
5e30eaa2
EZ
100922000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
10093
10094 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
10095
290602fd
KH
100962000-08-16 Kenichi Handa <handa@etl.go.jp>
10097
10098 The following changes are mainly to fix bugs of
10099 encode/decode-coding-string failing if encoding/decoding return
10100 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
10101 variable conversion_buffer.
10102
10103 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
10104 decrement dst_end to avoid buffer overflow in the later call of
10105 string_as_multibyte
10106
10107 * coding.h (conversion_buffer_size, conversion_buffer)
10108 (get_conversion_buffer): Extern deleted.
10109
10110 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
10111 (conversion_buffer, conversion_buffer_size): Variables deleted.
10112 (get_conversion_buffer): Function deleted.
10113 (struct conversion_buffer): New structure.
10114 (MAX_ALLOCA): New macro.
10115 (allocate_conversion_buffer): New macro.
10116 (extend_conversion_buffer, free_conversion_buffer): New functions.
10117 (ccl_coding_driver): Set coding->result.
10118 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
10119 this is the last block of source.
10120 (encode_coding): Likewise. Handle the source block as the last
10121 one only when the whole source text is consumed.
10122 (decode_coding_string): Handle the case that the output buffer is
10123 too small to decode the whole source text. Use
10124 allocate_conversion_buffer, extend_conversion_buffer and
10125 free_conversion_buffer, not get_conversion_buffer.
10126 (encode_coding_string): Likewise.
10127 (init_coding): Function deleted.
52283633 10128 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
10129
10130 * emacs.c (main): Don't call init_coding.
10131
52283633 10132 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
10133
10134 * term.c (write_glyphs): Use a locally declared conversion_buffer.
10135 (insert_glyphs): Likewise.
10136
10137 * w32console.c (write_glyphs): Use a locally declared
10138 conversion_buffer.
10139
b9f80d41
EZ
101402000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
10141
10142 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
10143 member of display_info is NULL.
10144
32dc52f7
GM
101452000-08-15 Gerd Moellmann <gerd@gnu.org>
10146
52283633 10147 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 10148
32dc52f7 10149 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 10150 appearances with capability `me'.
32dc52f7
GM
10151 (write_glyphs): Switch on inverse video before each face change.
10152
4eb22d33
DL
101532000-08-14 Dave Love <fx@gnu.org>
10154
10155 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
10156 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
10157 (lisp_free): Declare and make static.
10158
10159 * window.c: Fix embedded comment.
10160 (syms_of_window): Fix doc string.
10161
90cbf47e
GM
101622000-08-14 Gerd Moellmann <gerd@gnu.org>
10163
52283633 10164 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
10165 make sure to print `C-' before `M-', like in the manual.
10166
440fc135
GM
101672000-08-11 Gerd Moellmann <gerd@gnu.org>
10168
10169 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
10170 since they aren't relocated anymore.
52283633 10171 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
10172
10173 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 10174 partially visible line which is smaller than the window's height.
440fc135 10175
6e264fad
KH
101762000-08-11 Kenichi Handa <handa@etl.go.jp>
10177
10178 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 10179 the multibyte form of eight-bit-control characters.
6e264fad
KH
10180 (Fccl_execute_on_string): Initialize ccl->multibyte.
10181
10182 * ccl.h (struct ccl_program): New member multibyte.
10183
10184 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
10185
c371f69a
KH
101862000-08-11 Kenichi Handa <handa@etl.go.jp>
10187
10188 * regex.c (regex_compile) <normal_char>: Pay attention to
10189 multibyteness.
10190 (analyse_first) <exactn>: Setup fastmap correctly for
10191 eight-bit-control characters.
10192
101932000-08-11 Kenichi Handa <handa@etl.go.jp>
10194
52283633 10195 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
10196
10197 * keyboard.c (make_lispy_event): Handle the new event type
10198 multibyte_char_keystroke.
10199
10200 * xterm.c: Include coding.h.
10201 (XTread_socket): Work around a bug of XmbLookupString. If the
10202 input is from XIM, decode it according to the current locale. In
10203 that case, generate multibyte_char_keystroke events.
10204
b8ddbe71
KH
102052000-08-11 Kenichi Handa <handa@etl.go.jp>
10206
10207 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
10208 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
10209
47589c8c
GM
102102000-08-10 Gerd Moellmann <gerd@gnu.org>
10211
10212 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
10213 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
10214 (move_it_in_display_line_to): Record iterator's ascent and descent
10215 before producing glyphs, and restore them when we know the glyph
10216 doesn't fit on the line.
10217 (move_it_to): Restructured so that it's easier to debug. If
10218 moving to a vpos, and not moving to an x or character position,
10219 stop as soon as the specified vpos is reached; don't move further
10220 into that line because that might change the computed line height.
10221 (try_cursor_movement): New function, extracted from the cursor
10222 movement branch of redisplay_window. If ending on a partially
10223 visible line, don't try to scroll if the cursor line is taller
10224 than the window.
10225 (redisplay_window): Use try_cursor_movement.
10226
10227 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
10228 because that function doesn't cope with variable-height lines.
10229
10230 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
10231 box cursor because that's better visible for large images.
52283633 10232
c51bacd6
MB
102332000-08-10 Miles Bader <miles@gnu.org>
10234
10235 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
10236
bea56df7
GM
102372000-08-10 Gerd Moellmann <gerd@gnu.org>
10238
10239 * xdisp.c (Vmessages_buffer_name): New variable.
10240 (message_dolog): Use it.
10241 (syms_of_xdisp): Initialize it.
10242
99cd7364
EZ
102432000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
10244
52283633 10245 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
10246 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
10247 redundant now that keyboard.h is included.
10248
7d093d56
EZ
102492000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
10250
10251 * keyboard.c (kbd_buffer_events_waiting): New function.
10252
10253 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
10254
10255 * msdos.c: Include keyboard.h.
10256 (XMenuActivate): Empty no_event events from the event buffer. If
10257 no events are left after that, call clear_input_pending.
10258 (mouse_clear_clicks): New function, code moved from mouse_init.
10259 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
10260 mouse driver to ``forget'' any past clicks.
10261
10262 * Makefile.in (msdos.o): Depend on keyboard.h.
10263
41e757a6
GM
102642000-08-09 Gerd Moellmann <gerd@gnu.org>
10265
8e7bd231
GM
10266 * lisp.h (input_pending): External declaration.
10267
10268 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 10269
8e7bd231
GM
10270 * xdisp.c (echo_area_display): Display thoroughly if input is
10271 pending. Bind redisplay-dont-pause to t during the redisplay.
10272 in case input is pending.
10273
10274 * dispnew.c (Qredisplay_dont_pause): New variable.
10275 (syms_of_display): Initialize and staticpro it.
10276 (update_frame_1): Don't interrupt the display for pending input if
10277 redisplay_dont_pause is set.
52283633 10278
43028b7e
GM
10279 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
10280
41e757a6
GM
10281 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
10282
2f2174fa
KH
102832000-08-09 Miles Bader <miles@lsi.nec.co.jp>
10284
10285 * callproc.c (Fcall_process): Terminate the unwind-protect around
10286 the post-read-conversion of coding system.
10287
0a6fd67e
MB
10288 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
10289 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
10290 * buffer.h (overlays_at): Update prototype.
10291 * xdisp.c (next_overlay_change): Update call to overlays_at.
10292 * xfaces.c (face_at_buffer_position): Likewise.
10293 * textprop.c (Fget_char_property): Likewise.
10294 * xterm.c (note_mouse_highlight): Likewise.
10295
0c80756e
MB
10296 * minibuf.c (do_completion): Don't consider a simple change of
10297 case as `completion'.
10298
975f250a
KR
102992000-08-08 Ken Raeburn <raeburn@gnu.org>
10300
52283633 10301 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
10302 * undo.c (record_delete): Make sure last_point_position_buffer is
10303 a buffer before comparing pointers.
10304
10305 * coding.h (decode_coding_string): Declare.
10306
10307 * intervals.h (Fprevious_single_char_property_change): Declare.
10308
10309 * textprop.c (Fprevious_single_char_property_change): Don't do
10310 arithmetic directly on lisp objects.
10311
52283633 10312 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
10313
10314 * keyboard.h (menu_item_eval_property): Declare.
10315
10316 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
10317 reuse as buffer name, instead of recreating (and discarding) every
10318 time a message is logged.
10319 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
10320 (current_message_1, truncate_message_1, set_message_1)
10321 (display_echo_area_1, resize_mini_window_1): Signatures changed.
10322 (current_message, truncate_echo_area, display_echo_area)
10323 (resize_echo_area_axactly): Changed calls.
b347b3fd 10324
975f250a 10325 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 10326 Lisp object.
975f250a 10327 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 10328 must be an integer, not a Lisp object.
975f250a 10329
46dc9912
KH
103302000-08-08 Kenichi Handa <handa@etl.go.jp>
10331
10332 * charset.c (Fchar_width): Doc fix.
10333
9f6d1a6c
GM
103342000-08-08 Gerd Moellmann <gerd@gnu.org>
10335
10336 * charset.c (Fstring_width): Doc fix.
10337
ff3d9573
GM
103382000-08-07 Gerd Moellmann <gerd@gnu.org>
10339
41e757a6 10340 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
10341 line, clear ascent and descent members of the iterator structure;
10342 the height of the continued line does not affect the height of the
10343 continuation line.
10344 (make_cursor_line_fully_visible): Do nothing if cursor is on a
10345 line taller than the window.
10346 (redisplay_window) <forced window start>: Handle case that the
10347 middle of the window is not found in any row.
10348 (dump_glyph_row): Show more information.
10349 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
10350 first text line in a glyph matrix.
10351
10352 * xterm.c (x_draw_image_foreground): Avoid drawing outside
10353 of the clip area when image doesn't have a mask.
10354
70fc58b3
GM
10355 * fns.c (sweep_weak_table): Fix survival conditions for
10356 key-or-value and key-and-value weakness.
10357
10358 * .gdbinit (xhashtable): New command.
10359
ac0e96ee
GM
10360 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
10361 tables out of the list of all weak hash tables.
10362
ff3d9573
GM
10363 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
10364 a new buffer is created, make sure echo_area_buffer[] references
10365 the new buffer.
10366
e0d8827b
EZ
103672000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
10368
10369 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
10370 the doc string.
10371
c6f35378
KH
103722000-08-07 Kenichi Handa <handa@etl.go.jp>
10373
10374 * syntax.c (skip_chars): Fix previous change. Make the handling
10375 of unibyte string consistent with that of regex search.
10376
1fd4c450
GM
103772000-08-05 Gerd Moellmann <gerd@gnu.org>
10378
e49aa397
GM
10379 * xmenu.c (popup_get_selection): Use xfree instead of free.
10380
10381 * fileio.c (Finsert_file_contents): Use xfree instead of free.
10382
10383 * editfns.c (Ftranspose_regions): Use xfree instead of free.
10384
10385 * callproc.c (child_setup): Use xfree instead of free.
10386
10387 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
10388 instead of malloc.
10389 (run_mac_command, closedir): Use `xfree' instead of `free'.
10390
10391 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
10392
10393 * eval.c (error): Use xfree instead of free.
10394
1fd4c450
GM
10395 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
10396
10397 * fns.c: Replace `illegal' with `invalid'.
e49aa397 10398 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 10399
82d497fc
KH
104002000-08-05 Kenichi Handa <handa@etl.go.jp>
10401
10402 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
10403 conversion.
10404
59f953a2
NF
104052000-08-04 Noah Friedman <friedman@splode.com>
10406
10407 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
10408 docstring.
10409
688351f2
GM
104102000-08-04 Gerd Moellmann <gerd@gnu.org>
10411
10412 * syntax.c (skip_chars): Fix typo in error message.
10413
2dad51cc
AS
104142000-08-04 Andreas Schwab <schwab@suse.de>
10415
10416 * m/ia64.h: Moved from s/ia64.h.
10417
99bb2c60
KH
104182000-08-04 Kenichi Handa <handa@etl.go.jp>
10419
082a1df2
KH
10420 * process.c (read_process_output): Big simplification. Handle
10421 composition and post-read-conversion of coding system correctly.
10422 (send_process): Handle composition correctly.
10423
10424 * callproc.c (Fcall_process): Handle post-read-conversion of
10425 coding system if any.
10426
99bb2c60
KH
10427 * coding.c (decode_coding_iso2022): More strict check for handling
10428 single shifting.
082a1df2
KH
10429 (coding_restore_composition): Pay attention to the case that
10430 cmp_data is not set properly (because of invalid code in the
10431 source text).
10432 (run_pre_post_conversion_on_str): Include text properties in the
10433 resulting string.
10434 (decode_coding_string): Set members of coding correctly.
99bb2c60 10435
f4988be7
GM
104362000-08-03 Gerd Moellmann <gerd@gnu.org>
10437
10438 * s/ia64.h: New file.
10439
10440 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
10441 Use NULL instead of 0 at the end of variable argument list of
10442 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
10443 sizeof (int) < sizeof (void *).
10444
10445 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
10446 of variable argument lists of XtVaGetValues and XtVaSetValues.
10447
10448 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
10449 variable argument lists of XtVaGetValues and XtVaSetValues.
10450
ead53494
GM
104512000-08-02 Gerd Moellmann <gerd@gnu.org>
10452
10453 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
10454 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
10455
10456 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
10457 prototype.
10458
10459 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
10460 in call to Fsingle_key_description.
10461
10462 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
10463 Callers changed.
10464
104652000-08-02 Colin Walters <walters@cis.ohio-state.edu>
10466
10467 * window.c (display_buffer_reuse_frames): New variable.
10468 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
10469 frames displaying BUFFER.
52283633 10470 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 10471
10b0f752
MB
104722000-08-01 Miles Bader <miles@gnu.org>
10473
10474 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
10475 when to constrain NEW_POS (they were pretty screwed up before).
10476
16425c4a
EZ
104772000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
10478
10479 * msdos.c (run_msdos_command): Save and restore the master
10480 environment, for the case that child_setup signals an error.
10481 When mirroring slashes in DOS shell commands, don't fail when
10482 argv[2] has embedded blanks.
da288c14
EZ
10483 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
10484 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
10485 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
10486
10487 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
10488 using alloca; free it after run_msdos_command returns.
10489
27f73852
DL
104902000-07-27 Dave Love <fx@gnu.org>
10491
52283633
SM
10492 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
10493 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
10494
10495 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
10496
c0261b5e
EZ
104972000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
10498
10499 * editfns.c (lisp_time_argument): Fix last change.
10500
b548072f
GM
105012000-07-27 Gerd Moellmann <gerd@gnu.org>
10502
3ab82477
GM
10503 * fns.c (Fdelete): Make it work on vectors and strings in addition
10504 to lists.
10505
b548072f
GM
10506 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
10507 (syms_of_fns): Initialize new variables.
52283633 10508 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
10509 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
10510 weakness, with t meaning the same as `key-and-value'.
10511
91ae8751
KH
105122000-07-27 Kenichi Handa <handa@etl.go.jp>
10513
10514 * coding.h (struct coding_system): Member safe_charset deleted.
10515
10516 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
10517 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
10518 New variables.
91ae8751
KH
10519 (coding_safe_chars): New function.
10520 (CODING_SAFE_CHAR_P): New macro.
10521 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 10522 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
10523 (detect_coding_iso2022): New local variable safe_chars.
10524 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
10525 safe_charsets member of the coding system.
10526 (decode_coding_iso2022): New local variable safe_chars.
10527 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
10528 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
10529 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
10530 (ENCODE_UNSAFE_CHARACTER): New macro.
10531 (encode_coding_iso2022): New local variable safe_chars. Check
10532 unsafe chars.
10533 (setup_coding_system): Delete the code to initialize
10534 coding->safe_charses
10535 (intersection, find_safe_codings): New functions.
10536 (Ffind_coding_systems_region_internal): New function.
10537 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
10538 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
10539 variable and initialize it.
10540
10541 * fns.c (char_table_ref_and_index): New function.
10542
10543 * lisp.h (char_table_ref_and_index): Add prototype.
10544
34a7a267
SS
105452000-07-26 Sam Steingold <sds@gnu.org>
10546
10547 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 10548 (Ffloat_time): New built-in Lisp function.
34a7a267 10549
a95cb10a
GM
105502000-07-26 Gerd Moellmann <gerd@gnu.org>
10551
3353ef5a
GM
10552 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
10553 for the character code.
10554
10555 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
10556 GNU/Linux.
10557
a95cb10a
GM
10558 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
10559 if called for a popup menu.
10560 (xmenu_show): Store help string in widget values.
10561
b4a12321
DL
105622000-07-26 Dave Love <fx@gnu.org>
10563
10564 * syswait.h: Move some definitions.
10565 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
10566 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
10567 perspicuous definitions.
10568 (WTERMSIG): Fix bit pattern used.
10569
13f5ad37
KH
105702000-07-26 Kenichi Handa <handa@etl.go.jp>
10571
10572 * print.c (print_object): If vector printing is truncated, print
10573 "..." to indicate it as well as the case of list printing.
10574
070fe99c
GM
105752000-07-25 Gerd Moellmann <gerd@gnu.org>
10576
969065c3
GM
10577 * xdisp.c (next_element_from_display_vector): Improve comments.
10578
10579 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
10580 for the character code, and the rest for the face id as in 20.x.
10581 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
10582
10583 * window.c (window_display_table): Cleaned up.
10584
070fe99c
GM
10585 * syntax.c (Fforward_word): Add last arg nil in call of
10586 Fconstrain_to_field.
10587
bad77ef7
EZ
105882000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
10589
969065c3 10590 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
10591 identical but for the letter-case, don't call
10592 barf_or_query_if_file_exists.
bad77ef7 10593
c28da489
MB
105942000-07-25 Miles Bader <miles@gnu.org>
10595
10596 * editfns.c (find_field): Honor special `boundary' fields.
10597 (Qboundary): New variables.
10598 (syms_of_editfns): Initialize Qboundary.
10599 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
10600 Use scan_buffer instead of find_before_next_newline, because it
10601 allows us to detect the boundary case where there's a newline at
10602 the search limit.
10603 * lisp.h (Fconstrain_to_field): Update external declaration.
10604
e3c31fd5
GM
106052000-07-24 Gerd Moellmann <gerd@gnu.org>
10606
10607 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
10608 if that is nil.
c28da489 10609
c66c29a2
DL
106102000-07-24 Dave Love <fx@gnu.org>
10611
10612 * s/sunos4-0.h, s/sol2.h:
10613 (LIBS_TERMCAP): Move from m/sparc.h.
10614
10615 * m/sparc.h (TERMINFO): Moved to system files (probably only
10616 relevant for sunos4 judging by its vintage).
10617 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
10618 __arch64__.
10619
fbe0a958
EZ
106202000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
10621
10622 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
10623 name to single_keymap_panes.
10624
7d88e5c9
AS
106252000-07-24 Andreas Schwab <schwab@suse.de>
10626
10627 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
10628
e024b101
GM
106292000-07-24 Gerd Moellmann <gerd@gnu.org>
10630
10631 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
10632 parameters instead of using int parameters. Expect FN to accept
10633 EMACS_INT parameters.
10634 (display_echo_area, resize_echo_area_axactly, current_message)
10635 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
10636 with new argument list.
10637 (resize_mini_window_1): New callback function.
10638 (current_message_1, truncate_message_1, set_message_1): Change
52283633 10639 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 10640
25c1a9ce
KH
106412000-07-24 Kenichi Handa <handa@etl.go.jp>
10642
10643 * fontset.c (fontset_ref): Remove INLINE declaration.
10644 (fontset_ref_via_base): Likewise.
10645 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
10646 to downcase.
10647
7f987ac0
EZ
106482000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
10649
10650 * msdos.c (IT_note_mouse_highlight): Process overlays in the
10651 correct order of priority. If help echo was found in an overlay,
10652 use that overlay as the object in which the help echo was found.
10653
e2db3069
MB
106542000-07-22 Miles Bader <miles@gnu.org>
10655
10656 * textprop.c (Fprevious_single_char_property_change): The initial
10657 property value should be from the position preceding POSITION, not
10658 following it.
10659
5e3203e4
EZ
106602000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
10661
10662 * coding.c (syms_of_coding): Doc fix for
10663 inhibit-iso-escape-detection.
10664
62145073
GM
106652000-07-21 Gerd Moellmann <gerd@gnu.org>
10666
c20aeb83
GM
10667 * xterm.c (note_mouse_highlight): Process overlays in the right
10668 order of priority.
34a7a267 10669
743934db
GM
10670 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
10671
10672 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 10673 overlay, use that overlay as the object in which the help was found.
743934db 10674
d1dc7e43 10675 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 10676
62145073
GM
10677 * window.c (foreach_window): Instead of a fake variable argument
10678 list, take one USER_DATA argument.
10679 (foreach_window_1): Likewise, and call callback functions with two
10680 args, the window and USER_DATA.
10681 (struct check_window_data): New struct.
10682 (check_window_containing): Use it.
10683 (window_from_coordinates): Set up a struct check_window_data for
10684 foreach_window.
10685 (add_window_to_list, freeze_window_start): Change parameters
10686 according to new calling convention.
10687
10688 * window.h (foreach_window): Change prototype.
10689
10690 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
10691
106922000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
10693
10694 * xmenu.c (menu_help_callback): Call show_help_echo with
10695 additional arguments OBJECT and POS.
10696
11270583
KH
106972000-07-21 Kenichi Handa <handa@etl.go.jp>
10698
07b14857
KH
10699 * data.c (Faset): Allow storing any multibyte character in a
10700 string. Convert unibyte string to multibyte if necessary.
10701
11270583
KH
10702 * xfns.c (x_encode_text): New function.
10703 (x_set_name): Use x_encode_text.
10704 (x_set_title): Likewise.
10705
10706 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
10707
10708 * xterm.h (x_encode_text): Add prototype.
10709
bc75b4fd
DL
107102000-07-20 Dave Love <fx@gnu.org>
10711
10712 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
10713 xfree, not free.
10714
48c14970
EZ
107152000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
10716
10717 * msdos.c (help_echo_window): New variable.
10718 (syms_of_msdos): Initialize and staticpro it.
10719 (IT_note_mode_line_highlight): Set help_echo_window.
10720 (IT_note_mouse_highlight): Ditto.
10721 (dos_rawgetc): Store help_echo_window in the second event produced
10722 for HELP_EVENTs.
10723
10724 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
10725 Record the object that generated the help echo and the position of
10726 that object in help_echo_object and help_echo_pos. Record that
10727 some glyphs in a row are displayed in mouse-face.
10728 (IT_update_begin): Don't clear mouse highlight unless one of the
10729 enabled glyph rows is marked as being displayed in mouse-face.
10730 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
10731 and position recorded in help_echo_object and help_echo_pos to the
10732 event queue.
10733 (IT_menu_display): Accept a new argument PN: the pane number of
10734 the current menu pane. Record the pane number and the item
10735 number of the item which has associated help string.
10736 (XMenuActivate): Update the prototype for help_callback in
10737 function declaration. Call IT_menu_display with the current menu
10738 pane number as an additional argument. Call help_callback with
10739 two additional arguments: the pane number and the item number of
10740 the menu item associated with the help text.
10741 (help_echo_object, help_echo_pos): New variables.
10742 (syms_of_msdos): Initialize them and staticpro help_echo_object.
10743
10744 * msdos.h (XMenuActivate): Update prototype.
10745
4279296d
GM
107462000-07-19 Gerd Moellmann <gerd@gnu.org>
10747
47db06aa
GM
10748 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
10749 Add some more prototypes.
10750
10751 * xterm.c, xterm.h: Add some more prototypes.
10752
10753 * lisp.h (Fnext_single_char_property_change): Add prototype.
10754
10755 * dispnew.c (direct_output_for_insert): Remove confusing
10756 outer local variable mouse_face_overwritten_p.
10757 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
10758
4279296d
GM
10759 * alloc.c (allocate_string_data): Don't copy old string contents.
10760
670acd62
KH
107612000-07-19 Kenichi Handa <handa@etl.go.jp>
10762
10763 * coding.c (code_convert_region): Delete text properties before
10764 shrinking the conversion region.
10765
7cea38bc
GM
107662000-07-18 Gerd Moellmann <gerd@gnu.org>
10767
dc1cac59
GM
10768 * dispnew.c (update_text_area): Write the whole row if it
10769 has mouse-face in it.
10770
85a8aca9
GM
10771 * xfaces.c (face-alternative-font-family-alist): Remove
10772 DEFVAR_LISP; staticpro instead.
10773
34a7a267 10774 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
10775 new arguments.
10776
10777 * keyboard.c (show_help_echo): Add parameter WINDOW.
10778 (read_char): Call show_help_echo with window extracted from Lisp
10779 help event.
10780 (gen_help_event): Add parameter WINDOW.
10781
10782 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
10783
10784 * xterm.c (help_echo_window): New variable.
52283633 10785 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
10786 (XTread_socket): Pass help_echo_window to gen_help_event.
10787 (syms_of_xterm): Initialize and staticpro help_echo_window.
10788
f8276b77
DL
107892000-07-18 Dave Love <fx@gnu.org>
10790
52283633 10791 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 10792
088831a6
GM
107932000-07-18 Gerd Moellmann <gerd@gnu.org>
10794
3d6cd763
GM
10795 * alloc.c (allocate_string_data): If string had already data
10796 assigned, copy old contents to new string data.
10797
10798 * coding.c (syms_of_coding): Fix typo in spelling of variable
10799 `inhibit-iso-escape-detection'.
10800
088831a6
GM
10801 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
10802
10803 * Makefile.in: Add dependencies on dispextern.h.
10804 (alloca.o): Don't define malloc and define EMACS_FREE instead of
10805 `free'; both can conflict with system header files.
10806
bc8a8d55
KH
108072000-07-18 Kenichi Handa <handa@etl.go.jp>
10808
10809 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
10810 undefined.
10811
069f5950
DL
108122000-07-18 Dave Love <fx@gnu.org>
10813
10814 * window.c (Fwindow_list): Declare arg `window'.
10815
aa96c820
KH
108162000-07-18 Kenichi Handa <handa@etl.go.jp>
10817
10818 * coding.c (setup_coding_system): Don't override the explicitly
10819 specified designations.
10820
06be8d32
MB
108212000-07-15 Miles Bader <miles@gnu.org>
10822
10823 * editfns.c (char_property_eq, char_property_stickiness): Renamed
10824 from `text_property_eq' and `text_property_stickiness', respectively.
10825 (find_field, Fconstrain_to_field, char_property_eq)
10826 (char_property_stickiness): Changed to call char-property functions
10827 instead of text-property-only ones.
10828
10829 * textprop.c (Fnext_single_char_property_change): Made a subr (was
10830 `next_single_char_property_change'). Do more error checking, and
10831 cleanup limit behavior.
10832 (Fprevious_single_char_property_change): New function.
10833 (syms_of_textprop): Initialize new subrs.
10834
10835 * xdisp.c (display_prop_end, invisible_text_between_p):
10836 Call Fnext_single_char_property_change instead of
10837 next_single_char_property_change.
10838
3fddcdc3
JR
108392000-07-15 Jason Rumney <jasonr@gnu.org>
10840
10841 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
10842 after menu is finished with.
10843 (add_menu_item): Only consider wv->title as a menu title.
10844 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
10845
10846 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
10847 null title.
10848 (FONT_REGEXP): Remove unused macro, and its sub-components.
10849 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
10850
10851 * w32term.c (help_echo_object, help_echo_pos): New variables.
10852 (note_mode_line_highlight): Store additional information about the
10853 help-echo in help_echo_object and help_echo_pos. Check both
10854 `local-map' and `keymap' properties for changing the cursor
10855 (note_mouse_highlight): Store additional information about the
10856 help-echo in help_echo_object and help_echo_pos.
10857 (note_tool_bar_highlight): Set help_echo_object to nil and
10858 help_echo_pos to -1.
10859 (w32_read_socket): Use gen_help_event instead of filling
10860 input_events manually.
10861 (syms_of_w32term): Staticpro help_echo_object.
10862 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 10863 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
10864 (x_clear_mouse_face): New function.
10865 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
10866 (x_update_window_begin): No need to turn off the mouse
10867 highlight here.
10868 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 10869 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
10870 (x_fill_stretch_glyph_string): Consume runs of stretch
10871 glyphs instead of a single one.
10872 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
10873 with new argument list.
10874 (x_set_glyph_string_gc): Make sure the face's GC is valid.
10875 (x_append_glyph, x_append_composite_glyph)
10876 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
10877 changes in struct glyph starting 1999-12-27. See comments for
10878 xterm.c on 2000-07-05.
10879
178c5d9c
SS
108802000-07-14 Sam Steingold <sds@gnu.org>
10881
10882 * xfaces.c (realize_x_face): Fix the last patch:
10883 check `default_face' before dereferencing.
10884
6fe533f6
DL
108852000-07-14 Dave Love <fx@gnu.org>
10886
069f5950 10887 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 10888
dd7b81cf
KH
108892000-07-14 Kenichi Handa <handa@etl.go.jp>
10890
0693904a 10891 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 10892 default_face's fontset, not using the default fontset.
0693904a 10893
dd7b81cf
KH
10894 * coding.c (inhibit_iso_escape_detection): New variable.
10895 (syms_of_coding): Make it a Lisp variable.
10896 (detect_coding_iso2022): If inhibit_iso_escape_detection is
10897 nonzero, ignore ISO2022's escape sequence.
10898
d5aa31d8
GM
108992000-07-14 Gerd Moellmann <gerd@gnu.org>
10900
e5acf0ca
GM
10901 * alloca.c (malloc) [emacs]: Define as xmalloc.
10902
bd23a692
GM
10903 * xfns.c (Fx_show_tip): If frame parameters contain a position,
10904 use that instead of the mouse position. Add parameters DX and DY.
10905
10906 * dispextern.h (Fx_show_tip): Adjust number of parameters
10907 in prototype.
10908
9662da0b
GM
10909 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
10910 if HELP is a function, call it with OBJECT and POS as parameters
10911 to get the help to display.
10912 (gen_help_event, kbd_buffer_store_help_event): New functions.
10913 (kbd_buffer_get_event): Construct the Lisp help-event differently.
10914 (read_char): Call show_help_echo with new parameters.
10915
178c5d9c 10916 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
10917 Add prototypes.
10918
10919 * xterm.c (help_echo_object, help_echo_pos): New variables.
10920 (note_mode_line_highlight): Store additional information about the
10921 help-echo in help_echo_object and help_echo_pos. Check both
10922 `local-map' and `keymap' properties for changing the cursor
10923 (note_mouse_highlight): Store additional information about the
10924 help-echo in help_echo_object and help_echo_pos.
10925 (note_tool_bar_highlight): Set help_echo_object to nil and
10926 help_echo_pos to -1.
10927 (XTread_socket): Use gen_help_event instead of filling
10928 input_events manually.
10929 (syms_of_xterm): Staticpro help_echo_object.
10930
10931 * xmenu.c (menu_highlight_callback): Use
10932 kbd_buffer_store_help_event instead of setting up and input_event
10933 structure manually.
10934
10935 * xdisp.c (eval_form): GCPRO argument sexpr.
10936 (call_function): New function.
10937 (handle_single_display_prop): Use call_function and FUNCTIONP
10938 instead of checking whether if font_height is a symbol and
10939 using eval_form.
10940
10941 * eval.c (internal_condition_case_2): New function.
10942
10943 * lisp.h (FUNCTIONP): New macro.
10944 (internal_condition_case_2, call_function): Add prototypes.
10945
d5aa31d8
GM
10946 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
10947 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
10948 Always set `arg' member of input_events.
10949 (construct_menu_click): Unused function removed.
10950
10951 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
10952
10953 * w32term.c (construct_mouse_click, construct_mouse_wheel)
10954 (construct_drag_n_drop, x_scroll_bar_handle_click)
10955 (w32_read_socket): Always set `arg' member of input_events.
10956
10957 * keyboard.c (show_help_echo): Use eval_form. Add comment.
10958
10959 * lisp.h (eval_form): Add prototype.
10960
10961 * xdisp.c (eval_form): Make it externally visible.
10962
0f1a9b23
GM
109632000-07-13 Gerd Moellmann <gerd@gnu.org>
10964
10965 * xterm.c (x_handle_tool_bar_click): Store the frame in the
10966 frame_or_window slot of TOOL_BAR_EVENT input events instead of
10967 consing. For prefix events, store the frame in the `arg' slot of
10968 the event, otherwise store the key there.
10969 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 10970 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
10971
10972 * xmenu.c (menu_highlight_callback): Store help string in the
10973 `arg' member of the input event; don't cons.
10974 (menubar_selection_callback): Use the `arg' slot of input events
10975 to queue additional information, instead of consing.
10976
10977 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
10978
10979 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
10980 TOOL_BAR_EVENTs.
10981 (w32_read_socket): Adapt to changes in HELP_EVENTs.
10982
10983 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
10984 input events to queue additional information, instead of consing.
10985
10986 * keyboard.c (kbd_buffer_gcpro): Renamed from
10987 kbd_buffer_frame_or_window. Now used for all Lisp objects
10988 referenced from the input queue.
10989 (kbd_buffer_store_event): Always use structure assignment for
10990 copying input events. Record all Lisp objects referenced from
10991 events in kbd_buffer_gcpro.
10992 (kbd_buffer_get_event): Construct Lisp `help-echo' events
10993 differently from input events. Test for prefix menu_bar_events
10994 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
10995 event in kbd_buffer_gcpro to nil.
10996 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
10997 frame_or_window is equal to its arg member as prefix events.
10998 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
10999 used by an input event to nil.
11000 (init_keyboard): Use two times the size of the input queue
11001 for kbd_buffer_gcpro.
11002 (syms_of_keyboard): Likewise.
11003
52283633
SM
11004 * emacs.c (handle_USR2_signal, handle_USR1_signal):
11005 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
11006
11007 * termhooks.h (struct input_event): Add member `arg'.
11008 (MENU_BAR_EVENT): Renamed from menu_bar_event.
11009 (USER_SIGNAL_EVENT): Renamed from user_signal.
11010
11011 * xfaces.c (ASET): Remove definition.
11012
11013 * lisp.h (AREF, ASET, ASIZE): New macros.
11014
11015 * fontset.c (AREF, ASIZE): Remove definitions.
11016
11017 * fns.c (AREF): Remove definition.
178c5d9c 11018
0f1a9b23
GM
11019 * composite.c (AREF): Remove definition.
11020
712eaef2
GM
110212000-07-12 Gerd Moellmann <gerd@gnu.org>
11022
d8ee7803
GM
11023 * dispnew.c (redraw_overlapped_rows): Add missing local.
11024 (scrolling_window): Remove debug code.
11025
712eaef2
GM
11026 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
11027 Before scrolling, turn off a mouse-highlight in the window
11028 being scrolled.
11029
11030 * xterm.c (x_update_window_end): Add parameter
11031 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
11032 redisplay in XTframe_up_to_date.
11033 (x_clear_mouse_face): New function.
11034 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
11035
11036 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
11037 current glyph row.
11038 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
11039 it when any row is written to that contains glyphs highlighted in
11040 mouse-face.
11041 (update_window): Call the window update end hook with new
11042 parameter MOUSE_FACE_OVERWRITTEN_P.
11043 (direct_output_for_insert): Give up if row contains mouse-face.
11044
11045 * dispextern.h (struct redisplay_interface): Add parameter
11046 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
11047 (clear_mouse_face): New function pointer member.
11048
02010917
SM
110492000-07-11 Stefan Monnier <monnier@cs.yale.edu>
11050
11051 * syntax.c (back_comment): Use one switch rather than a few `if's.
11052 Obey open_paren_in_column_0_is_defun_start.
11053 When reverting to the `slow' method, try to nicely handle the case
11054 of nested comments by checking that the comment-starter we found
11055 does indeed match the comment-ender.
11056 (scan_sexps_forward, scan_sexps_forward):
11057 Ignore excessive opening parenthesis rather than throwing an error.
11058
d76c03ea
GM
110592000-07-11 Gerd Moellmann <gerd@gnu.org>
11060
11061 * doc.c (Fsubstitute_command_keys): Handle case that a GC
11062 in Fwhere_is_internal or get_keymap_1 relocates string contents.
11063
11064 * dispnew.c (direct_output_forward_char): Give up if currently
11065 displaying a message instead of the minibuffer contents.
11066
11067 * xterm.c (x_update_window_begin): No need to turn off the mouse
11068 highlight here.
11069 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 11070 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
11071
11072 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
11073 compare the mouse_face_p flags of both rows.
11074
11075 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
11076
d55ead18
EZ
110772000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
11078
11079 * keyboard.c (show_help_echo): Accept additional parameter
11080 ok_to_overwrite_keystroke_echo.
11081 (read_char): Call show_help_echo with a zero
11082 ok_to_overwrite_keystroke_echo argument.
52283633 11083 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
11084 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
11085 ok_to_overwrite_keystroke_echo argument.
11086 * w32menu.c (w32_menu_display_help): Call show_help_echo with
11087 non-zero ok_to_overwrite_keystroke_echo argument.
11088
df75b1a3
GM
110892000-07-10 Gerd Moellmann <gerd@gnu.org>
11090
4b92c49a
GM
11091 * xdisp.c (try_window_id): If changes are all below what is
11092 displayed in the window, and point is in the window, we still
11093 might have to find point on the display.
11094
11095 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
11096 glyphs instead of a single one.
11097 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
11098 with new argument list.
11099 (x_set_glyph_string_gc): Make sure the face's GC is valid.
11100
df75b1a3
GM
11101 * keymap.c (get_keymap_1): Add comment that this function can GC.
11102 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
11103 comment that functions can GC.
11104 (Fset_keymap_parent): GCPRO arg KEYMAP.
11105
4314cf3e
EZ
111062000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
11107
11108 * msdos.c (XMenuActivate): After exiting the menu, restore the
11109 echo area message and erase it.
11110
ab49ce15
KH
111112000-07-10 Kenichi Handa <handa@etl.go.jp>
11112
11113 * fontset.c (Ffontset_info): Make the return value more compatible
11114 with that of Emacs 20.
11115
090a072f
GM
111162000-07-07 Gerd Moellmann <gerd@gnu.org>
11117
11118 * eval.c (Fsignal): Handle case that backtrace_list is null.
11119
f92de4a6
KH
111202000-07-07 Kenichi Handa <handa@etl.go.jp>
11121
11122 * ccl.c (Fccl_execute): Typo fixed.
11123
dd8888a1
GM
111242000-07-06 Gerd Moellmann <gerd@gnu.org>
11125
e5c81191 11126 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 11127
dd8888a1
GM
11128 * window.c (Fwindow_list): Reverse list at the end.
11129 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
11130 means allow windows on OWINDOW's frame, only.
11131 (window_loop): Simplified; use Fwindow_list.
11132
11133 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
11134
485266d0
GM
111352000-07-05 Gerd Moellmann <gerd@gnu.org>
11136
11137 * xterm.c (XTread_socket): Increment handling_signal at the start,
11138 decrement it at the end.
11139
11140 * eval.c (handling_signal): New variable.
11141 (Fsignal): Abort if handling_signal is non-zero.
11142
11143 * lisp.h (handling_signal): External declaration.
178c5d9c 11144
485266d0
GM
11145 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
11146
80fcd514
KR
111472000-07-05 Ken Raeburn <raeburn@gnu.org>
11148
11149 Sound support for NetBSD through "Linux emulation" support:
11150 * config.in (HAVE_SOUNDCARD_H): Undef.
11151 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
11152 * Makefile.in (LIBSOUND): New variable.
11153 (LIBES): Include it.
52283633
SM
11154 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
11155 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
11156 (vox_open): Use DEFAULT_SOUND_DEVICE.
11157 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
11158
d5c5cddd
GM
111592000-07-05 Gerd Moellmann <gerd@gnu.org>
11160
11161 * print.c (print_error_message): If Vsignaling_function is set,
11162 show it in *Messages*.
11163
11164 * lisp.h (Vsignaling_function): External declaration.
11165
11166 * eval.c (Vsignaling_function): New variable.
11167 (Fsignal): Compute it.
11168 (syms_of_eval): Staticpro it.
11169
65171e3a
DL
111702000-07-05 Dave Love <fx@gnu.org>
11171
11172 * syswait.h: Use the autoconf recommended approach. Old code
11173 #if'd out in case we need to revert.
11174
178c5d9c 11175 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 11176
e2c46326
AI
111772000-07-05 Andrew Innes <andrewi@gnu.org>
11178
11179 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
11180 when non-NULL instead of __morecore, to take account of buffer
11181 memory. This also solves a problem with spurious memory warnings
11182 on Windows.
11183
11184 * ralloc.c: Make real_morecore non-static.
11185
11186 * eval.c (internal_condition_case): Comment out abort if
11187 interrupt_input_blocked is not zero.
11188
11189 * makefile.nt: Add support for `bootstrap' and related targets.
11190 Include minimal debug info in emacs.exe in release build.
11191 Remove all dependencies on lisp.h, and fixup some others.
11192
11193 * w32.c (init_environment): Install code from 20.7 for providing
11194 default values for environment variables, based on the
11195 executable's own location.
52283633 11196 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
11197 (sys_socket): Install socket inheritance bug fix from 20.7.
11198
11199 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
11200 here via blockinput.h).
11201
a027a91b
SM
112022000-07-05 Stefan Monnier <monnier@cs.yale.edu>
11203
e4b31601
SM
11204 * w32menu.c (w32_menu_display_help):
11205 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
11206
11207 * keyboard.h (show_help_echo): Declare.
11208
11209 * keyboard.c (show_help_echo): New function, extracted from read_char.
11210 Feval its `msg' argument if it's a cons cell.
11211 (read_char): Use it.
4cf8d9d5 11212 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 11213
178c5d9c 11214 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 11215 (note_tool_bar_highlight, XTread_socket):
178c5d9c 11216 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
11217 (dos_rawgetc):
11218 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
11219 (note_tool_bar_highlight, w32_read_socket):
11220 Do not gratuitously ignore non-string `help-echo' properties.
11221
88d75730
GM
112222000-07-05 Gerd Moellmann <gerd@gnu.org>
11223
969f7e79
GM
11224 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
11225
71201b00
GM
11226 * window.c (delete_all_subwindows): Reset Vwindow_list.
11227
88d75730
GM
11228 * xterm.c (x_append_glyph, x_append_composite_glyph)
11229 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
11230 changes in struct glyph starting 1999-12-27. Some bit-fields of
11231 struct glyph were not set, which made glyphs unequal when compared
11232 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
11233 effects were the result. This also depended on the contents of
11234 memory returned by xmalloc. If flickering happens again, activate
11235 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 11236 gone with that, chances are that it is caused by something similar.
88d75730
GM
11237
11238 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 11239
88d75730
GM
11240 * dispextern.h: Add some comments.
11241
11242 * window.c (add_window_to_list): Add parameter LIST.
11243 (window_list): Order list so that, for each frame, windows are
11244 in canonical order, and so that frames appear in the list in
11245 the order given by Vframe_list.
11246 (next_window): Reverse the handling of NEXT_P.
11247
53654733
GM
112482000-07-04 Gerd Moellmann <gerd@gnu.org>
11249
87efd256
GM
11250 * window.c (Vwindow_list): New variable.
11251 (make_window, delete_window): Set Vwindow_list to nil.
11252 (check_window_containing): New function.
11253 (window_from_coordinates): Rewritten.
11254 (add_window_to_list, window_list, candidate_window_p)
11255 (decode_next_window_args, next_window): New functions.
52283633 11256 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
11257 (Fwindow_list): New function.
11258 (Fother_window): Cleaned up.
11259 (foreach_window): Add a longer "variable argument list". Let
11260 callback function return 0 to indicate that cycling over windows
11261 should stop.
11262 (foreach_window_1): Likewise.
11263 (freeze_window_start): Return int.
11264 (init_window): New function.
11265 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
11266
11267 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
11268 input_event with bzero.
11269 (main): Call init_window.
11270
53654733
GM
11271 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
11272 a menu filter.
11273
4a8c194f
KH
112742000-07-04 Kenichi Handa <handa@etl.go.jp>
11275
11276 * composite.h (make_composition_value_copy): Extern it.
11277
11278 * composite.c (make_composition_value_copy): New function.
11279
11280 * editfns.c (Fformat): While copying text properties, make each
11281 composition property value a copy.
11282
11283 * fns.c (concat): While copying text properties, make each
11284 composition property value a copy.
11285
831a6cb0
GM
112862000-07-03 Gerd Moellmann <gerd@gnu.org>
11287
2f516940
GM
11288 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
11289
178c5d9c 11290 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
11291 marked already.
11292
831a6cb0
GM
11293 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
11294 include those frames as candidates which have their focus
11295 redirected to the minibuffer frame.
11296
d9c4f922
SM
112972000-07-03 Stefan Monnier <monnier@cs.yale.edu>
11298
11299 * fns.c (Fputhash): Return `value' rather than nil.
11300
3780bc22
GM
113012000-06-30 Gerd Moellmann <gerd@gnu.org>
11302
97d176db
GM
11303 * frame.c (next_frame): Don't check focus redirection in case
11304 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
11305 unless their focus is redirected, which contradicts the
11306 specification of next-frame, and leads to infinite loops in
11307 certain situations when cycling through windows with next-window.
11308
dca9961d
KH
113092000-06-30 Kenichi Handa <handa@etl.go.jp>
11310
11311 * coding.c (code_convert_region): Even if the length of text is
11312 zero, try to convert it if coding->type is coding_type_ccl.
11313 (decode_coding_string, encode_coding_string): Likewise.
11314
d5483ab1
GM
113152000-06-28 Gerd Moellmann <gerd@gnu.org>
11316
af5c25e1 11317 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 11318 the display if windows_or_buffers_changed.
af5c25e1
GM
11319
11320 * dispnew.c (struct row_entry): New structure.
11321 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
11322 (row_table_size, old_lines, new_lines, old_lines_size)
11323 (new_lines_size, run_pool, runs_size, runs): New variables.
11324 (add_row_entry): New function.
11325 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 11326 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
11327 holding them in local variables. Use a larger hash table whose
11328 size depends on glyph matrix sizes. Don't use bzero to clear the
11329 hash table; instead, clear used slots only.
11330
11331 * fns.c (next_almost_prime): Make it externally visible.
11332
11333 * lisp.h (next_almost_prime): Add prototype.
11334
d5483ab1
GM
11335 * s/isc4-0.h (sigunblock): Define.
11336
11337 * s/sco5.h (sigunblock): Define.
11338
93e40f40
DL
113392000-06-27 Dave Love <fx@gnu.org>
11340
11341 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
11342 (moved to osf5-0.h).
11343 [!NOT_C_CODE]: Protect string.h stuff.
11344
11345 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
11346 (sys_siglist, NSIG): Definitions moved here from osf1.h.
11347
3c4b7685
GM
113482000-06-27 Gerd Moellmann <gerd@gnu.org>
11349
97d176db 11350 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
11351 below the last line from the needed window height.
11352
32cad0aa
SM
113532000-06-26 Stefan Monnier <monnier@cs.yale.edu>
11354
11355 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
11356 (Fwidget_get): Use it.
11357 (syms_of_fns): Defsubr it.
11358
2c69ced2
GM
113592000-06-26 Gerd Moellmann <gerd@gnu.org>
11360
178c5d9c 11361 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
11362 display info for XIM.
11363 (xim_open_dpy): Likewise.
11364 (xim_close_dpy): Don't free the display info's XIM.
11365
11366 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
11367
11368 * config.in (USE_XIM): New define.
11369
3fc720e4
GM
11370 * keymap.c (get_keyelt): For menu-items containing a `:filter
11371 FILTER', apply FILTER to the menu-item's definition to get the
11372 real definition to use.
11373
11374 * lisp.h (QCfilter): External declaration.
11375
2c69ced2
GM
11376 * xfns.c (Fimage_size): New function.
11377 (syms_of_xfns): Defsubr it.
11378
f978b2a2
AS
113792000-06-26 Andreas Schwab <schwab@suse.de>
11380
11381 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
11382 Fstring_as_unibyte.
11383
94cc7892
DL
113842000-06-25 Dave Love <fx@gnu.org>
11385
52283633 11386 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
11387
11388 * Makefile.in (blockinput.h): Depend on atimer.h.
11389 (atimer.h): Depend on systime.h.
11390
52283633 11391 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 11392
52283633 11393 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
11394
11395 * lisp.h (swap_in_global_binding): Declare.
11396
b8c24556
KR
113972000-06-24 Ken Raeburn <raeburn@gnu.org>
11398
11399 * process.c (Fopen_network_stream): Turn off atimers for duration
11400 of call to connect. (Patch from Gerd.)
11401
8cf8560b
DL
114022000-06-23 Dave Love <fx@gnu.org>
11403
511c7541
DL
11404 * ralloc.c: Maybe include unistd.h
11405
8cf8560b
DL
11406 * emacs.c (setgrp): Undefine before defining.
11407 (malloc_warning, set_time_zone_rule, index): Prototype.
11408
11409 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
11410 HAVE_STRUCT_TIMEZONE.
11411
11412 * s/osf1.h: Move string.h hack here from alpha.h and make it
11413 conditional.
11414 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
11415 _XOPEN_SOURCE.
11416 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
11417 (SOCKLEN_TYPE): Don't define.
11418
11419 * m/alpha.h: Remove string.h hack.
11420
11421 * s/osf5-0.h: New file.
11422
11423 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
11424 include time.h, done by systime.h.
11425 [__FreeBSD__]: Remove redundant includes.
11426
3fc720e4 11427 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
11428 (delete_temp_file): Return Qnil to avoid warning.
11429
11430 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
11431
11432 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
11433 HAVE_X_WINDOWS.
11434
11435 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
11436
11437 * composite.h (compose_text): Declare.
11438
11439 * xterm.c: Don't include sys/types.h unconditionally. Don't
11440 protect its inclusion with !USG (following xmenu.c).
11441
ea055732
GM
114422000-06-23 Gerd Moellmann <gerd@gnu.org>
11443
11444 * xfns.c (x_create_tip_frame): Initialize frame's colors like
11445 in x_create_frame.
11446
74b01b80
EZ
114472000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
11448
11449 * coding.c (decode_eol_post_ccl): Special handling for undecided
11450 and inconsistent EOL types.
11451
64f3a166
GM
114522000-06-22 Gerd Moellmann <gerd@gnu.org>
11453
16cf31f7
GM
11454 * xrdb.c (x_load_resources): Add default resource for scroll bar's
11455 trough color and main window's background color.
11456
52283633 11457 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
11458
11459 * xterm.h (Xt_app_con): External declaration.
11460
11461 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 11462
486a103d
GM
11463 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
11464
64f3a166
GM
11465 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
11466 (handle_invisible_prop): Record the start of invisible text in
11467 it->add_overlay_start.
11468 (struct overlay_entry): Add member `overlay'.
11469 (handle_overlay_change): Simplify.
11470 (next_overlay_string): After having processed overlay strings at the
11471 end of the buffer, record that fact in
11472 it->overlay_strings_at_end_processed_p.
11473 (compare_overlay_entries): If before- and after-strings come
11474 from the same overlay, let before-strings come first.
11475 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
11476 (load_overlay_strings): Take it->add_overlay_start into account
11477 when adding overlay strings.
11478
11479 * dispextern.h (struct it): Add member add_overlay_start.
11480
bb746ea6
DL
114812000-06-22 Dave Love <fx@gnu.org>
11482
11483 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
11484
11485 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
11486
a8f573f3
KH
114872000-06-22 Kenichi Handa <handa@etl.go.jp>
11488
11489 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
11490 is greater than 0.
11491
9f2bbc92
DL
114922000-06-21 Dave Love <fx@gnu.org>
11493
178c5d9c 11494 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 11495
3ee5041c
SM
114962000-06-21 Stefan Monnier <monnier@cs.yale.edu>
11497
11498 * syntax.c (back_comment): Simplify string-parity counting (with
11499 the added benefit of handling multiple string-styles as long as
11500 they are not intertwined).
11501 Jump to the slow code as soon as a comment starter is found in
11502 a "string_lossage" position. Fixes the case: " /* " /* " */.
11503
4c343001
DL
115042000-06-21 Dave Love <fx@gnu.org>
11505
11506 * Makefile.in: Use GETLOADAVG_LIBS.
11507
11508 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
11509 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
11510
e6365855
SM
115112000-06-20 Stefan Monnier <monnier@cs.yale.edu>
11512
11513 * syntax.c (describe_syntax): Recognize the `n'estable bit.
11514 (Fforward_comment, scan_lists):
11515 Check the comstyle of single-char comment-starters.
11516 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
11517 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
11518 Check the comstyle of single-char comment-starters.
11519 Clarify control-flow around the Scomment case.
e6365855 11520
5700d2cc
DL
115212000-06-20 Dave Love <fx@gnu.org>
11522
d355bd8a
SM
11523 * fns.c (make_hash_table, maybe_resize_hash_table):
11524 Cast arg of next_almost_prime.
5700d2cc 11525
178c5d9c 11526 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
11527
11528 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
11529 and unistd.h.
11530
4a27bdfb
GM
115312000-06-20 Gerd Moellmann <gerd@gnu.org>
11532
a61d762c 11533 * keyboard.c (adjust_point_for_property): Check if display
52283633 11534 property should be treated as intangible by looking at its value.
a61d762c 11535
178c5d9c 11536 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
11537 (display_prop_intangible_p): New functions.
11538
11539 * dispextern.h (display_prop_intangible_p): Add prototype.
11540
11541 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 11542
4a27bdfb
GM
11543 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
11544 argument to sigprocmask.
11545
11546 * s/sco5.h (sigblock): Redefined to pass a pointer as second
11547 argument to sigprocmask.
11548
11549 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
11550 sigprocmask_set, and pass a pointer to it to sigprocmask.
11551
11552 * sysdep.c (sigprocmask_set): New variable.
11553
11554 * fileio.c (make_temp_name): Don't use `%s' in string passed to
11555 report_file_error.
11556
427ec082
SS
115572000-06-20 Sam Steingold <sds@gnu.org>
11558
11559 * xrdb.c: Don't declare xmalloc, xrealloc.
11560
8972fe79 115612000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
11562
11563 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
11564 (re_comp): Cast gettext return value to avoid complaints when
11565 !HAVE_LIBINTL.
11566
074b6efe
DL
115672000-06-20 Dave Love <fx@gnu.org>
11568
52283633 11569 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 11570
5700d2cc 11571 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 11572
d355bd8a 11573 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
11574
11575 * m/alpha.h: Don't declare xmalloc, xrealloc.
11576
0af4f205
DL
11577 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
11578
11579 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
11580
11581 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
11582
11583 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
11584 HAVE_GETWD.
11585
074b6efe
DL
11586 * keyboard.h (poll_for_input_1): Declare.
11587
11588 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
11589
11590 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
11591
11592 * doprnt.c: Don't declare xmalloc, xrealloc.
11593
11594 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
11595 (getenv, ctime, getwd): Removed.
11596 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
11597
11598 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
11599 x_set_tool_bar_lines.
11600
11601 * config.in: Add HAVE_GETWD. Move some definitions above
11602 machine/system includes.
11603
68a5e97b
KH
116042000-06-20 Kenichi Handa <handa@etl.go.jp>
11605
95417e1e
KH
11606 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
11607
68a5e97b
KH
11608 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
11609 contain information about ENCODING.
11610
11611 * fontset.c (FONTSET_ASCII): Use the first element of char table
11612 for an ASCII font, not defalt slot.
11613 (fontset_ref_via_base): If FONTSET doesn't contain information for
11614 C, try the default fontset.
11615 (make_fontset): Don't copy the default fontset.
11616 (fontset_font_pattern): Likewise.
11617 (accumulate_font_info): If ELT is nil, use the corresponding
11618 element in the default fontset.
11619
3b4fa1b2
DL
116202000-06-19 Dave Love <fx@gnu.org>
11621
943e731c
DL
11622 * syntax.c (Fparse_partial_sexp): Doc fix.
11623
11624 * regex.h: Test PROTOTYPES as well as __STDC__.
11625
3b4fa1b2
DL
11626 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
11627 errno, strerror. Put text after #endif in comment.
11628
52283633 11629 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
11630
11631 * xterm.c (x_frame_of_widget): Likewise.
11632
cdf0357b
GM
116332000-06-19 Gerd Moellmann <gerd@gnu.org>
11634
11635 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
11636 to Vfundamental_mode_abbrev_table.
11637
11638 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
11639 bogus objects are marked. This slows down GC by ~80 percent, but
11640 it might be worth trying when debugging GC-related problems.
11641 This feature requires conservative stack marking to be enabled.
11642
11643 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
11644 returns XLookupChars, reset `modifiers' to zero.
11645
998e9f8c
DL
116462000-06-19 Dave Love <fx@gnu.org>
11647
11648 * mktime.c: Unprotoized.
11649
18e21ce8 116502000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
11651
11652 * data.c (set_internal): If variable is frame-local,
11653 store the new value immediately into the frame parameter alist.
11654
140c4ac6
KR
116552000-06-19 Ken Raeburn <raeburn@gnu.org>
11656
14358466
KR
11657 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
11658 in the custom handler pointer.
11659
140c4ac6
KR
11660 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
11661 value, or checks for CHAR_META can fail when Lisp_Object is a
11662 union type.
11663 * keymap.c (get_keyelt): Likewise.
11664
10d7bf84
KH
116652000-06-19 Kenichi Handa <handa@etl.go.jp>
11666
11667 * ccl.h (struct ccl_program): New member eol_type.
11668 (struct ccl_spec): New member cr_carryover.
11669
11670 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
11671 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
11672
11673 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
11674 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
11675 (decode_eol_post_ccl): New function.
11676 (decode_coding): Don't detect EOL format here for CCL based coding
11677 systems.
11678 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
11679 decode_eol_post_ccl after running the CCL program.
11680 (code_convert_region): Don't detect EOL format here for CCL based
11681 coding systems.
11682 (decode_coding_string): Likewise.
11683
52e386c2
KR
116842000-06-18 Ken Raeburn <raeburn@gnu.org>
11685
11686 * charset.c (update_charset_table): Use XINT on "iso_final_char"
11687 when treating it as an integer.
11688
11689 * coding.h (encode_coding_string): Declare.
11690
11691 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
11692 it as an integer.
11693
11694 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
11695 "xkeymap" to avoid shadowing the "enum map_type" value that needs
11696 to be passed to get_local_map.
11697
11698 * sound.c (Fplay_sound): Don't call make_number on
11699 Frun_hook_with_args count argument.
11700
11701 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
11702 for lisp objects in X event structure data field, when lisp
11703 objects are represented with unions.
11704 (x_scroll_bar_to_input_event): Ditto.
11705
b357b9d4
KR
117062000-06-16 Ken Raeburn <raeburn@gnu.org>
11707
11708 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
11709 termination of string. Fix sense of test whether
11710 Vline_number_display_limit is an integer.
b357b9d4 11711
a871441d
GM
117122000-06-16 Gerd Moellmann <gerd@gnu.org>
11713
a9021acd
GM
11714 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
11715 only if HAVE_X_WINDOWS.
11716
6344985d
GM
11717 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
11718 of titles.
11719
427ec082 11720 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
11721 out of bounds.
11722
228b083e
EZ
117232000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
11724
11725 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
11726 of its headers.
11727
c25b53a2
KH
117282000-06-15 Kenichi Handa <handa@etl.go.jp>
11729
11730 * coding.c (decode_coding_emacs_mule): Always set src_base at the
11731 start of the while loop.
11732
a6981b11
GM
117332000-06-15 Gerd Moellmann <gerd@gnu.org>
11734
e9924e52
GM
11735 * atimer.c (alarm_signal_handler): Add forward declaration.
11736
a6981b11
GM
11737 * data.c (set_internal): Remove debug code.
11738
25fa6deb
GM
117392000-06-14 Gerd Moellmann <gerd@gnu.org>
11740
dce6b995
GM
11741 * Makefile.in (bootstrap-temacs): Add `-I../src'.
11742
9f817ea4
GM
11743 * unexec.c (toplevel) [COFF]: Include coff.h.
11744
11745 * s/lynxos.h: New file.
11746
11747 * keymap.c (Fsingle_key_description): Enclose function key and
11748 event symbol names in angle brackets.
11749
8a4e3c0c
GM
11750 * xdisp.c (setup_echo_area_for_printing): Call
11751 message_log_maybe_newline if message_buf_print is not set.
11752
11753 * print.c (printchar, strout): Don't check message_buf_print
427ec082 11754 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
11755 function does something useful even when message_buf_print is
11756 already set.
11757
52283633
SM
11758 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
11759 New variables.
25fa6deb
GM
11760 (ensure_echo_area_buffers): Initialize echo buffer's
11761 truncate lines setting to nil.
11762 (with_echo_area_buffer): Don't set the echo buffer's truncate
11763 lines setting here.
8a4e3c0c 11764 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
11765 of message_truncate_lines.
11766 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
11767 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
11768 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
11769
11770 * keyboard.c (read_char): Bind message-truncate-lines to t
11771 while displaying a help-echo.
11772
11773 * lisp.h (Qmessage_truncate_lines): External declaration.
11774
163dcff3
GM
117752000-06-13 Gerd Moellmann <gerd@gnu.org>
11776
1681ead6
GM
11777 * xdisp.c (Vline_number_display_limit): Renamed from
11778 line_number_display_limit.
11779 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
11780 Extend documentation string. Initialize
11781 Vline_number_display_limit to nil meaning no limit.
11782 (decode_mode_spec): Use Vline_number_display_limit with its new
11783 meaning.
11784
163dcff3
GM
11785 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
11786
18e21ce8 117872000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
11788
11789 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 11790
163dcff3
GM
11791 * xfns.c (x_set_frame_parameters): Comment fix.
11792
11793 * frame.c (store_frame_param): Call swap_in_global_binding if the
11794 variable's current binding was chosen based on this frame.
11795
11796 * data.c (swap_in_global_binding): New function.
11797
a704139d
EZ
117982000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
11799
11800 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
11801 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
11802
9b6610db
EZ
118032000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
11804
11805 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
11806
c68833d2
JR
118072000-06-12 Jason Rumney <jasonr@gnu.org>
11808
11809 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
11810
11811 * w32.h (EMACS_W32_H): Renamed from _NT_H_
11812
11813 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
11814
11815 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
11816
ed1056b3
GM
118172000-06-12 Gerd Moellmann <gerd@gnu.org>
11818
11819 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
11820 (syms_of_xfaces): Defsubr Sdump_colors.
11821 (x_free_colors): Don't treat b&w specially on default visual.
11822 (x_free_dpy_colors): New function.
11823 (free_face_colors): Don't check visual class; it's done
11824 in x_free_colors.
11825
11826 * xterm.c (x_frame_of_widget): New function.
11827 (x_alloc_nearest_color_for_widget): Use it.
11828 (x_copy_dpy_color): New function.
11829 (x_destroy_window): Free various colors.
11830
5050a2ef
KH
118312000-06-12 Kenichi Handa <handa@etl.go.jp>
11832
11833 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
11834
11835 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
11836
11837 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
11838
11839 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
11840
11841 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
11842
fb1b041d
DL
118432000-06-11 Dave Love <fx@gnu.org>
11844
11845 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
11846
ff96b5f4
EZ
118472000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
11848
11849 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
11850
db8eeecd
GM
118512000-06-11 Gerd Moellmann <gerd@gnu.org>
11852
ed1056b3 11853 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
11854 to `XEvent *'.
11855
49b71c5f
KH
118562000-06-10 Kenichi Handa <handa@etl.go.jp>
11857
c479bd55
KH
11858 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
11859 (regex_compile): Fix the code for handling the case of single byte
11860 char and multibyte char being mixed in a range within [...].
11861
ff6a65c2
KH
11862 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
11863 and dst_multibyte members of coding.
11864
49b71c5f
KH
11865 * charset.c (update_charset_table): Update the table
11866 bytes_by_char_head.
11867 (init_charset_once): Initialize elements of bytes_by_char_head to
11868 1 except for leading codes for private charases.
11869
11870 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 11871 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 11872
9e80b57d
KR
118732000-06-09 Ken Raeburn <raeburn@gnu.org>
11874
11875 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
11876 access the data it doesn't point to.
11877
f83fe4b4
GM
118782000-06-08 Gerd Moellmann <gerd@gnu.org>
11879
11880 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 11881 will be translated to a switch-frame event when reading the
f83fe4b4
GM
11882 event queue. This is necessary because Emacs otherwise won't
11883 perform a switch-frame to a new frame until some other event, for
11884 example a keystroke event, forces it to do so. This has various
11885 effects, one visible being that the cursor of a frame created with
11886 C-x 5 2 or switched to with a window manager key binding like
11887 A-TAB stays hollow because selected_window isn't on the newly
11888 focused frame until the switch-frame is performed.
11889
11890 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
11891 generating a switch-frame event if necessary.
11892
11893 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
11894
11895 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
11896 it's an integer.
11897
0890801b
KH
118982000-06-08 Kenichi Handa <handa@etl.go.jp>
11899
52283633 11900 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 11901
173cbca8
GM
119022000-06-07 Gerd Moellmann <gerd@gnu.org>
11903
3091c2a6
GM
11904 * window.c (displayed_window_lines): Take empty lines at
11905 the bottom of a window into account.
427ec082 11906
f38952fe
GM
11907 * window.c (displayed_window_lines): New function.
11908 (Fmove_to_window_line): Use displayed_window_lines to determine
11909 the number of lines to move, instead of using the window's height.
11910
11911 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
11912 to stop reading, even if the form read sets point to a different
11913 value when evaluated.
11914
427ec082 11915 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
11916 put the cursor.
11917
6ba6c818
KH
119182000-06-07 Kenichi Handa <handa@etl.go.jp>
11919
11920 * fileio.c (e_write): Free composition data if stored in
11921 coding->cmp_data.
11922
5f1aea9a
GM
119232000-06-06 Gerd Moellmann <gerd@gnu.org>
11924
666852af
GM
11925 * xdisp.c (display_line): Set row's and iterator's
11926 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
11927 Set cursor even if row ends in the middle of a character.
11928 (dump_glyph_row): Print values of new flags.
11929 (redisplay_window) <cursor movement in unchanged window>: When
11930 point has been moved forward, and PT is at the end of the cursor
11931 row, don't place the cursor in the next row if the cursor row ends
11932 in the middle of a character or at ZV.
11933
11934 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
11935 (struct glyph_row): Add starts_in_middle_of_char_p and
11936 ends_in_middle_of_char_p.
11937 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
11938 ends_in_middle_of_char_p flag.
11939 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
11940
d13f3e2e
GM
11941 * term.c (append_glyph): Revert change of 2000-06-06.
11942
11943 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
11944 padding glyph not fitting on line as whole character not
11945 fitting on line.
11946
5f1aea9a
GM
11947 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
11948 this isn't true for images with `:ascent 100'.
11949
10cda9b0
KH
119502000-06-06 Kenichi Handa <handa@etl.go.jp>
11951
ed00559d
KH
11952 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
11953 as modified if it is originally unmodified.
11954
10cda9b0
KH
11955 * term.c (encode_terminal_code): Change the way to check if
11956 terminal coding does any conversion.
11957 (append_glyph): Set glyph->pixel_width correctly.
11958
11959 * xdisp.c (display_line): While checking line continuation, pay
11960 attention to a padding glyph.
11961
1969fae2
GM
119622000-06-05 Gerd Moellmann <gerd@gnu.org>
11963
11964 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
11965
162ccef4
DL
119662000-06-05 Dave Love <fx@gnu.org>
11967
f19f32dd
DL
11968 * xdisp.c: Include fontset.h.
11969
11970 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
11971
11972 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
11973
11974 * dispnew.c: Conditionally include term.h.
11975
11976 * coding.h: Declare code_convert_string_norecord.
11977
11978 * frame.h (struct frame): Use volatile unconditionally.
11979
11980 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
11981
11982 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
11983
11984 * systime.h: Protect against multiple inclusion.
11985 (timezone) [USG5_4]: Define as time_t.
11986
11987 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
11988 (Foptimize_char_table, make_temp_name): Declare.
11989
11990 * Makefile.in (xdisp.o): Depend on fontset.h.
11991
11992 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
11993
11994 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
11995 (Foptimize_char_table, make_temp_name): Declare.
11996
427ec082 11997 * s/irix4-0.h:
162ccef4
DL
11998 * s/irix5-0.h:
11999 * s/netbsd.h: Don't define autoconfiscated MATHERR.
12000
2082fe81
DL
120012000-06-02 Dave Love <fx@gnu.org>
12002
12003 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
12004
dcf671d2
GM
120052000-06-02 Gerd Moellmann <gerd@gnu.org>
12006
12007 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 12008 result face, set flags in that face indicating that colors may not
dcf671d2
GM
12009 be freed.
12010
12011 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
12012 glyph, use the ASCII NUL character to determine the face.
12013
d42122a3
DL
120142000-06-02 Dave Love <fx@gnu.org>
12015
12016 * sysdep.c: Conditionally include stdlib.h, unistd.h.
12017 (VFORK_RETURN_TYPE): Remove.
427ec082 12018
d42122a3
DL
12019 * config.in: Add NO_MATHERR.
12020
dd432f16
DL
120212000-06-01 Dave Love <fx@gnu.org>
12022
90aa4ea8
DL
12023 * cmds.c (internal_self_insert): Don't check
12024 Vbefore_change_function, Vafter_change_function.
12025
12026 * insdel.c (signal_before_change, signal_after_change): Likewise.
12027
12028 * buffer.c (Vbefore_change_function, Vafter_change_function):
12029 Variables and their initializations deleted.
12030
2330c9d4
DL
12031 * callint.c (Fcall_interactively): Doc fix.
12032
dd432f16
DL
12033 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
12034
bf9e8804
DL
120352000-05-31 Dave Love <fx@gnu.org>
12036
12037 * textprop.c: Revert last change -- duplicated.
12038
3694b4ab
GM
120392000-05-31 Gerd Moellmann <gerd@gnu.org>
12040
12041 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
12042 in #if 0.
12043
12044 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
12045
f14156cd
JR
120462000-05-31 Jason Rumney <jasonr@gnu.org>
12047
8119aab8
JR
12048 * search.c (Fre_search_forward, Fre_search_backward)
12049 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
12050
f14156cd
JR
12051 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
12052
4aab9be3
JR
120532000-05-30 Jason Rumney <jasonr@gnu.org>
12054
12055 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
12056 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
12057
52283633 12058 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
12059
12060 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
12061 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
12062 expand a nil default_filename.
12063
12064 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
12065 pointer to glyph_to_pixel_coords, not a frame.
12066
12067 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
12068 coding.h to dependencies.
12069
12070 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
12071
12072 * w32console.c (glyph_to_pixel_coords): Change first parameter to
12073 window pointer to be consistent with w32term.c and xterm.c.
12074
12075 * w32fns.c: Format and doc changes to bring closer to xfns.c.
12076 (VIETNAMESE_CHARSET): Define if not defined in system headers.
12077 (Qline_spacing, Qcenter): New variables.
12078 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
12079 (x_set_line_spacing): New function.
52283633 12080 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
12081 (x_specified_cursor_type): New function.
12082 (x_set_cursor_type): Use it.
12083 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
12084 and icon strings.
12085 (validate_x_resource_name, x_get_resource_string): Measure lengths
12086 of external strings in bytes.
12087 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
12088 GetTextExtentPoint32 with NULL title.
12089 (Fx_create_frame): Initialize Qline_spacing.
12090 (w32_load_system_font): Initialize font->double_byte_p.
12091 (x_to_w32_charset): Use Vw32_charset_info_alist.
12092 (Image, busy cursor, tooltip functions): Merged changes from
12093 xfns.c. Not yet functional on Windows.
12094
12095 * w32gui.h (W32FontStruct): Add double_byte_p member.
12096
12097 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
12098 (emacs_button_translation): Use it.
12099 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
12100 in `mask' to be set.
12101
12102 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
12103 menu strings.
12104
12105 * w32term.c: Format and doc changes to bring closer to xterm.c.
12106 (w32_char_font_type): New enum.
12107 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
12108 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
12109 (w32_encode_char): New function.
12110 (x_encode_char): Removed.
12111 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
12112 x_encode_char and w32_font_is_double_byte.
12113 (x_produce_image_glyph): Use image_ascent.
12114 (x_produce_glyphs): Use new version of w32_per_char_metric and
12115 handle NULL return value. Allow extra line spacing.
12116 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
12117 (w32_get_glyph_overhangs): Remove unicode_p param. Use
12118 w32_font_type member of glyph instead.
12119 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
12120 (fast_find_position): Make sure not to consider rows not visible
12121 in the window.
12122 (w32_read_socket) [WM_MENUSELECT]: Cannot call
12123 w32_menu_display_help with input blocked, as it can abort.
12124 (x_display_and_set_cursor): Choose cursor depending
12125 on buffer-local value of cursor_type.
12126 (x_draw_bar_cursor): Add parameter WIDTH.
12127
12128 * w32term.h (CP_DEFAULT): Define.
12129 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
12130
10fc3187
GM
121312000-05-30 Gerd Moellmann <gerd@gnu.org>
12132
12133 * search.c (Fre_search_forward, Fre_search_backward)
12134 (Fposix_search_backward, Fposix_search_forward): Doc fix.
12135
d0555360
KH
121362000-05-30 Kenichi Handa <handa@etl.go.jp>
12137
12138 * coding.c (detect_coding_iso2022): Fix code for checking
12139 CODING_CATEGORY_MASK_ISO_8_2.
12140
f1ad044f
SM
121412000-05-29 Stefan Monnier <monnier@cs.yale.edu>
12142
12143 * regex.c (PREFETCH_NOLIMIT): New function.
12144 (re_match_2_internal): Use it and adjust the end_match_2 logic.
12145
84ec3b4b
GM
121462000-05-29 Gerd Moellmann <gerd@gnu.org>
12147
66254a13
GM
12148 * syntax.c (find_defun_start): Move test for
12149 open_paren_in_column_0_is_defun_start outside of the loop.
12150
49e70dec
GM
12151 * xdisp.c (redisplay_window): Really switch buffers when
12152 displaying mode lines, and temporarily set selected_frame to the
12153 frame of the window that's redisplayed.
12154
84ec3b4b
GM
12155 * xfaces.c (free_realized_faces): Block/unblock input.
12156 (free_realized_multibyte_face): Ditto.
12157
869a3a14
DL
121582000-05-29 Dave Love <fx@gnu.org>
12159
12160 * textprop.c (Qkeymap): New variable.
12161 (syms_of_textprop): Intern it.
12162
12163 * keymap.c: Include intervals.h.
12164 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
12165
12166 * Makefile.in (keymap.o): Depend on intervals.h.
12167
12168 * keyboard.c (menu_bar_items, tool_bar_items)
12169 (Fexecute_extended_command): Deal with `keymap' property.
12170 (read_key_sequence): Track map from `keymap' property as well as
12171 `local_map'.
12172
12173 * intervals.c (get_local_map): Extra arg to allow looking for
12174 `keymap' too.
12175
12176 * intervals.h (map_property): New enum.
12177 (get_local_map): Extra arg using it.
12178 (Qkeymap): Declare.
12179
84ec3b4b 12180 * lisp.h (get_local_map): Don't declare here.
869a3a14 12181
89d0c844
KH
121822000-05-29 Kenichi Handa <handa@etl.go.jp>
12183
12184 * Makefile.in (callproc.o): Depend on composite.h.
12185
12186 * callproc.c: Include composite.h.
12187 (Fcall_process): Handle composition correctly.
12188
12189 * coding.h (coding_allocate_composition_data): Extern it.
12190 (coding_restore_composition): Likewise.
12191
12192 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
12193 yet allocated, finish decoding with result
12194 CODING_FINISH_INSUFFICIENT_CMP.
12195 (coding_allocate_composition_data): Make it non-static.
12196 (coding_restore_composition): Likewise.
12197
797a084a
EZ
121982000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
12199
12200 * charset.c (syms_of_charset): Revert last change.
12201
cf872af5
EZ
122022000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
12203
12204 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
12205 charsets as unibyte, with 1-column screen width. Sent by Kenichi
12206 Handa.
cf872af5 12207
5b1ae051
EZ
122082000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
12209
12210 * charset.c (syms_of_charset): Set width of character sets
12211 eight-bit-control and eight-bit-graphic to 1 column.
12212
34ec9ebe
GM
122132000-05-26 Gerd Moellmann <gerd@gnu.org>
12214
12215 * config.in (HAVE_SPEED_T): New define.
12216
12217 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
12218 `extern speed_t'.
12219
dd854dc2
DL
122202000-05-26 Dave Love <fx@gnu.org>
12221
12222 * coding.c (shrink_decoding_region): Initialize eol_conversion.
12223
12224 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
12225 (Fsubr_arity): New function.
12226 (syms_of_data): Install them.
12227
ba9f8f95
KH
122282000-05-26 Kenichi Handa <handa@etl.go.jp>
12229
0f3e0672
KH
12230 * charset.c (init_charset_once): Set the table bytes_by_char_head
12231 correctly.
12232
cebefb44
KH
12233 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
12234 the default fontset to what Emacs uses by default.
0f3e0672
KH
12235 (check_registry_encoding): This function deleted.
12236 (Fset_fontset_font): Remove the adhoc condition for the default
12237 fontset. Allow cons in FONTNAME.
cebefb44 12238
0f3e0672
KH
12239 * fns.c (map_char_table): Ignore char-table entries for
12240 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 12241
7a18af49
KR
122422000-05-25 Ken Raeburn <raeburn@gnu.org>
12243
12244 * emacs.c (main): Initialize keyboard syms before initializing
12245 window code, so face names are available.
12246
d2af47df
SM
122472000-05-25 Stefan Monnier <monnier@cs.yale.edu>
12248
12249 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
12250 of an anchor at the beginning of a shy-group.
12251
fc6a6a4e
GM
122522000-05-25 Gerd Moellmann <gerd@gnu.org>
12253
12254 * xdisp.c (handle_invisible_prop): Don't try to skip over
12255 invisible text if end of text is already reached.
12256
005f0d35
DL
122572000-05-25 Dave Love <fx@gnu.org>
12258
02513cdd
DL
12259 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
12260
005f0d35
DL
12261 * coding.c (encode_eol): Add null statement after label.
12262
89f6ca4e
EZ
122632000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
12264
12265 * w16select.c (Fw16_set_clipboard_data): Fix the change from
12266 2000-05-20.
12267
a4e1759e
KH
122682000-05-25 Kenichi Handa <handa@etl.go.jp>
12269
12270 * ccl.c (ccl_driver): Fix previous change.
12271
eacfd7fe
KH
122722000-05-25 Kenichi Handa <handa@etl.go.jp>
12273
46ab33a9
KH
12274 * coding.c (run_pre_post_conversion_on_str): Set point to the
12275 beginning of buffer before calling coding->post_read_conversion.
12276 (decode_coding_string): Give correct args to
12277 run_pre_post_conversion_on_str.
12278 (encode_coding_string): Likewise.
12279
eacfd7fe
KH
12280 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
12281 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
12282 eight-bit-graphic correctly.
12283
f8569325
DL
122842000-05-24 Kenichi HANDA <handa@etl.go.jp>
12285
12286 * fileio.c (Finsert_file_contents): Even if a file is not found,
12287 execute codes for setting up coding system. Call
12288 after-insert-file-functions unconditionally.
12289
04545643
GM
122902000-05-24 Gerd Moellmann <gerd@gnu.org>
12291
12292 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
12293 BSD_PGRPS are not defined.
12294
747d90ea
KH
122952000-05-24 Kenichi Handa <handa@etl.go.jp>
12296
12297 * charset.c (update_charset_table): Accept nil in LONG_NAME and
12298 DESCRIPTION.
12299 (syms_of_charset): Avoid building same strings.
12300
716e3b88
GM
123012000-05-23 Gerd Moellmann <gerd@gnu.org>
12302
12303 * lread.c (Fload): Add a comment about the meaning of
12304 Vuser_init_file being t.
12305
12306 * puresize.h (BASE_PURESIZE): Increase to 675000.
12307
12308 * s/gnu-linux.h (setpgrp): Don't define it here because this
12309 prevents compilation on GNU/Linux systems with glib 2.2.
12310
12311 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
12312 as setpgid.
427ec082 12313
9aeb39fa
EZ
123142000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
12315
12316 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
12317 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
12318 version.
12319 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
12320
29ced61b
KH
123212000-05-23 Kenichi Handa <handa@etl.go.jp>
12322
52283633 12323 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 12324
3d80f24d
KH
12325 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
12326
52283633 12327 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 12328
29ced61b
KH
12329 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
12330
d7e00792
KH
123312000-05-22 Kenichi Handa <handa@etl.go.jp>
12332
c9d80d38
KH
12333 * keyboard.c (read_char): Allow character codes 128..255 to be
12334 handled by input-method-function.
12335
d7e00792
KH
12336 * insdel.c (adjust_markers_for_replace): Fix previous change.
12337 (adjust_after_replace): If PREV_TEXT is nil, call
12338 adjust_markers_for_insert, not adjust_markers_for_replace.
12339
087121cc 123402000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 12341
087121cc
GM
12342 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
12343 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
12344 [HAVE_GRANDPT]: Define.
12345 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
12346
12347 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
12348 like SYSV_PTYS.
12349
12350 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
12351
12352 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
12353
c9671f81
KH
123542000-05-20 Kenichi Handa <handa@etl.go.jp>
12355
12356 The following changes are to handle 8-bit characters in a
12357 multibyte buffer/string without facing with byte combining
12358 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
12359 eight-bit-graphic (for 0xA0..0xFF) are introduced.
12360
12361 * Makefile.in (fns.o): Depend on charset.h.
12362
12363 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
12364 convert it to unibyte.
12365 (make_string): Use parse_str_as_multibyte, not chars_in_text.
12366
12367 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
12368 apparent char boundary.
12369 (Fset_buffer_multibyte): Convert 8-bit characters in the range
12370 0x80..0x9F to/from multibyte form.
12371
12372 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
12373 to unibyte.
12374
12375 * callproc.c (Fcall_process): Always encode an argument string if
12376 it is multibyte. Setup src_multibyte and dst_multibyte members of
12377 process_coding properly.
ce75fd23 12378
c9671f81
KH
12379 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
12380 SPLIT_NON_ASCII_CHAR.
12381
12382 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
12383 as is.
12384 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
12385
52283633 12386 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 12387 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 12388 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
12389 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
12390 and eight-bit-graphic.
12391 (char_to_string): Likewise. Signal an error for too large
12392 character code.
12393 (char_printable_p): Return 0 for 8-bit characters.
12394 (update_charset_table): Update iso_charset_table only when a final
12395 character is non-negative.
12396 (find_charset_in_text): Renamed from find_charset_in_str.
12397 Arguments and return value changed. Callers changed.
12398 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
12399 be -1 if CHARSET is used only internally.
12400 (Fmake_char_internal): Handle new charsets; eight-bit-control and
12401 eight-bit-graphic.
12402 (Fcharset_after): Simplified.
12403 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
12404 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
12405 (multibyte_chars_in_text): Simplified by assuming there's no
12406 invalid multibyte sequence.
52283633
SM
12407 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
12408 (str_as_unibyte): New functions.
12409 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
12410 (init_charset_once): Initialization for
12411 LEADING_CODE_8_BIT_CONTROL.
12412 (syms_of_charset): Intern and staticpro Qeight_bit_control and
12413 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
12414 eight-bit-control and eight-bit-graphic.
12415
52283633
SM
12416 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
12417 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
12418 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
12419 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
12420 (CHARSET_REVERSE_CHARSET): Likewise.
12421 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
12422 eight-bit-graphic.
12423 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
12424 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
12425 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
12426 encounter an invalid multibyte sequence.
12427 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
12428 sequence is always valid.
12429 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 12430 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
12431 (CHAR_STRING): For 8-bit characters, call char_to_string.
12432 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
12433 multibyte sequence is always valid.
12434 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
12435 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
12436 (str_as_unibyte): Extern them.
c9671f81 12437 (BCOPY_SHORT): Fix a bug.
52283633 12438 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
12439 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
12440 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
12441 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
12442
bd4bde7f 12443 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 12444 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
12445 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
12446 (EMIT_BYTES): New macros.
12447 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
12448 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
12449 macros deleted.
12450 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
12451 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
12452 check the validity of multibyte sequence.
12453 (decode_coding_emacs_mule): New function.
12454 (encode_coding_emacs_mule): New macro.
12455 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
12456 the source.
12457 (DECODE_ISO_CHARACTER): Just return a character code.
12458 (DECODE_COMPOSITION_START): Set coding->result instead of result.
12459 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
12460 EMIT_CHAR to produced decoded characters. Exit the loop only by
12461 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
12462 block here.
12463 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
12464 only position codes for an invalid character.
12465 (encode_designation_at_bol): Return new destination pointer. 5th
12466 arg DSTP is changed to DST.
12467 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
12468 from the source by ONE_MORE_CHAR. Don't handle the case of last
12469 block here.
12470 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
12471 macros deleted.
52283633
SM
12472 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
12473 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
12474 TWO_MORE_BYTES to fetch a byte from the source.
12475 (encode_eol): Pay attention to coding->src_multibyte.
12476 (detect_coding, detect_eol): Preserve members src_multibyte and
12477 dst_multibyte.
12478 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
12479 (encoding_buffer_size): Set magnification to 3 for all coding
12480 systems that require encoding.
12481 (ccl_coding_driver): For decoding, be sure that the result is
12482 valid multibyte sequence.
12483 (decode_coding): Initialize coding->errors and coding->result.
12484 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
12485 and raw-text, always call decode_eol. Handle the case of last
12486 block here. If not coding->dst_multibyte, convert the resulting
12487 sequence to unibyte.
12488 (encode_coding): Initialize coding->errors and coding->result.
12489 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
12490 and raw-text, always call encode_eol. Handle the case of last
12491 block here.
12492 (shrink_decoding_region, shrink_encoding_region): Detect cases
12493 that we can't skip data more rigidly.
12494 (code_convert_region): Setup src_multibyte and dst_multibyte
12495 members of coding. For decoding, if the buffer is multibyte,
12496 convert the source sequence to unibyte in advance. For encoding,
12497 if the buffer is multibyte, convert the resulting sequence to
12498 multibyte afterward.
12499 (run_pre_post_conversion_on_str): New function.
12500 (code_convert_string): Deleted and divided into the following two.
12501 (decode_coding_string, encode_coding_string): New functions.
12502 (code_convert_string1, code_convert_string_norecord): Call one of
12503 above.
12504 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
12505 MAKE_NON_ASCII_CHAR.
52283633
SM
12506 (Fset_terminal_coding_system_internal)
12507 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
12508 and dst_multibyte members.
12509 (init_coding_once): Initialize iso_code_class with new enum
12510 ISO_control_0 and ISO_control_1.
12511
12512 * coding.h (enum iso_code_class_type): Member ISO_control_code is
12513 devided into ISO_control_0 and ISO_control_1.
12514 (struct coding_system): New members src_multibyte, dst_multibyte,
12515 errors, and result. Delete member fake_multibyte.
12516 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
12517 nonzero.
12518 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
12519 nonzero.
12520
12521 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
12522 (Faset): Likewise.
12523
12524 * editfns.c (Fformat): Be sure to convert 8-bit characters to
12525 multibyte form.
12526 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
12527 combining occurs.
12528 (Ftranspose_region): Delete codes for handling byte combining.
12529
12530 * fileio.c (Finsert_file_contents): Setup src_multibyte and
12531 dst_multibyte members of coding. On handling REPLACE on unibyte
12532 buffer, convert the result of decode_coding to unibyte. On
12533 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 12534 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
12535 multibyteness of the source (buffer or string).
12536
12537 * fns.c (concat): Handle 8-bit characters correctly.
12538 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
12539 unibyte in the result.
12540 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
12541 valid multibyte form in the result.
12542 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
12543 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
12544 return -1, signal an error.
12545 (base64_encode_1): New arg MULTIBYTE. Get each character by
12546 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
12547 character is found, return -1.
12548 (Fbase64_decode_region): Delete codes for handling byte-combining.
12549 Treat each decoded byte as a unibyte character.
12550 (Fbase64_decode_string): Return unibyte string.
12551 (Fcompare_strings, concat, string_byte_to_char): Use
12552 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
12553 FETCH_STRING_CHAR_ADVANCE.
12554 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12555 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
12556
12557 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
12558 SPLIT_NON_ASCII_CHAR.
12559 (fontset_ref_via_base, fontset_set): Likewise
12560
12561 * insdel.c (adjust_markers_for_record_delete): Deleted.
12562 (adjust_markers_for_insert): Argument changed. Caller changed.
12563 (adjust_markers_for_replace): Likewise.
52283633
SM
12564 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
12565 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
12566 (copy_text): Delete unused local varialbe c_save. For converting
12567 to multibyte, be sure to make all 8-bit characters in valid
12568 multibyte form.
12569 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
12570 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
12571 (adjust_after_replace, replace_range, del_range_2)
c9671f81 12572 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
12573 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
12574 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
12575 handling byte combining.
12576 (adjust_before_replace): Deleted.
427ec082 12577
c9671f81
KH
12578 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
12579 SPLIT_NON_ASCII_CHAR.
12580 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 12581 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
12582 (Fkey_description): Likewise.
12583
12584 * lread.c (read1): On reading multibyte string, be sure to make
12585 all 8-bit chararacters in valid multibyte form.
12586 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
12587
12588 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
12589 unconditionally.
12590
12591 * process.c (Fstart_process): GCPRO current_dir before calling
12592 Ffind_operation_coding_system. Encode arguments here.
12593 (create_process): Don't encode arguments here. Setup
12594 src_multibyte and dst_multibyte members of struct coding.
12595 (read_process_output): Setup src_multibyte and dst_multibyte
12596 members of struct coding. If the output is to multibyte buffer,
12597 always decode the output of the process. Adjust the
52283633 12598 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
12599 (send_process): Setup coding->src_multibyte according to the
12600 multibyteness of the source.
12601
52283633 12602 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
12603 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
12604 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
12605
52283633 12606 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
12607
12608 * w16select.c (Fw16_set_clipboard_data): Setup members
12609 src_multibyte and dst_multibyte of coding. Adjusted for the
12610 change for find_charset_in_str.
12611 (Fw16_get_clipboard_data): Likewise.
12612
12613 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
12614 dst_multibyte of coding.
12615 (x_to_w32_font): Likewise.
12616
12617 * w32select.c (Fw32_set_clipboard_data): Setup members
12618 src_multibyte and dst_multibyte of coding. Adjusted for the
12619 change for find_charset_in_str.
12620 (Fw32_get_clipboard_data): Likewise.
12621
12622 * xdisp.c (get_next_display_element): Handle 8-bit characters
12623 correctly.
52283633
SM
12624 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
12625 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
12626
12627 * xselect.c (selection_data_to_lisp_data): Setup members
12628 src_multibyte and dst_multibyte of coding. Adjusted for the
12629 change for find_charset_in_str.
12630 (lisp_data_to_selection_data): Likewise.
12631
5f64c9e0
GM
126322000-05-19 Gerd Moellmann <gerd@gnu.org>
12633
52283633 12634 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 12635
5f64c9e0
GM
12636 * dispextern.h (Vimage_types): Add extern declaration.
12637
12638 * xdisp.c (Vimage_types): Moved here from xfns.c.
12639 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
12640
12641 * xfns.c (Vimages_types): Moved to xdisp.c.
12642 (syms_of_xfns): Move `image-types' to xdisp.c.
12643
12644 * w32fns.c (Vimage_types): Removed.
12645 (syms_of_w32fns): Remove `image-types'.
12646
813086ea
KH
126472000-05-18 Kenichi Handa <handa@etl.go.jp>
12648
12649 * fns.c (map_char_table): Pay attention to character number of
12650 charset. Check the validity of charset at the first level. For
12651 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
12652 the default value.
12653
12654 * fontset.c: Include "buffer.h".
12655 (fs_load_font): If the face has fontset, record the face ID in
12656 that fontset.
12657 (Finternal_char_font): New function.
12658 (accumulate_font_info): New function.
12659 (Ffontset_info): Rewritten for the new fontset implementation.
12660 (syms_of_fontset): Register Vdefault_fontset in the first element
12661 of Vfontset_table. Include Vdefault_fontset in
12662 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
12663 function.
12664
bdaebbf0
DL
126652000-05-16 Dave Love <fx@gnu.org>
12666
12667 * m/iris5d.h: Deleted -- unused.
12668
cb613bb8
GM
126692000-05-16 Gerd Moellmann <gerd@gnu.org>
12670
b15f3b77
GM
12671 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
12672 `invalid' instead of `illegal'.
12673
12674 * indent.c (Fmove_to_column): When ending within a tab, insert
12675 spaces first so that markers at the end of the tab get adjusted.
12676
835c1b36
GM
12677 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
12678 buffer list that wasn't selected in that frame.
12679
cb613bb8
GM
12680 * filelock.c (get_boot_time): To obtain an 8 char file name, which
12681 is needed on mescaline, use a 2 char prefix, and call
12682 make_temp_name with second arg non-zero.
12683
12684 * fileio.c (make_temp_name): New function, extracted from
12685 Fmake_temp_name.
12686 (Fmake_temp_name): Use it.
12687
f685bea9
EZ
126882000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
12689
52283633 12690 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 12691
a1b8d58b
GM
126922000-05-15 Gerd Moellmann <gerd@gnu.org>
12693
12694 * Makefile.in (lisp): Add env.elc.
12695
12696 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
12697
a265079f
GM
126982000-05-12 Gerd Moellmann <gerd@gnu.org>
12699
12700 * search.c (Freplace_match): Handle case of `\N' in the
12701 replacement when there's no group N.
12702
da4496b6
GM
127032000-05-11 Gerd Moellmann <gerd@gnu.org>
12704
0ace421a
GM
12705 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
12706 of the message to message_dolog.
12707
1172eb8d
GM
12708 * keyboard.c (read_char): Don't clear current message for help
12709 events; let the code handling help events handle this. Change
12710 code detecting help events that should be ignored.
12711
da4496b6
GM
12712 * xdisp.c (handle_single_display_prop): Don't try to set PT if
12713 we're interating over a string.
12714
0623e40f
DL
127152000-05-09 Dave Love <fx@gnu.org>
12716
12717 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
12718 that offset before writing. Move gcpro region past call of
12719 Ffile_regular_p.
12720
bae2503b
DL
127212000-05-04 Dave Love <fx@gnu.org>
12722
12723 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
12724
ec82fb2f
GM
127252000-05-04 Gerd Moellmann <gerd@gnu.org>
12726
12727 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
12728 of inserted characters when BUF equals the current buffer, and PT
12729 is in front of or equal to FROM.
12730
cbf18892
GM
127312000-05-03 Gerd Moellmann <gerd@gnu.org>
12732
4ff40dd0
GM
12733 * xdisp.c (handle_single_display_prop): If display property value
12734 is invalid, or something not supported on the frame, restore
12735 iterator's position to what it was initially. Make sure to return
12736 0 for invalid and unsupported property values.
12737
cbf18892
GM
12738 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
12739 that x_per_char_metric returns null.
12740
1b0672c3
GM
127412000-05-02 Gerd Moellmann <gerd@gnu.org>
12742
576da55d
GM
12743 * xterm.h (struct face): Add forward declaration.
12744 (struct image): Ditto.
12745 (image_ascent): Add prototype.
12746
12747 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
12748 (x_draw_image_relief, x_draw_image_foreground_1): Call function
12749 image_ascent instead of using IMAGE_ASCENT.
12750
12751 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
12752 (IMAGE_ASCENT): Removed.
12753
12754 * xfns.c (Qcenter): New variable.
12755 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
12756 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
12757 (image_ascent): New function.
12758 (lookup_image): Recognize `:ascent center'.
12759 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
12760 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
12761 (xbm_load): Don't set image's ascent here.
12762 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
12763 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
12764 check ascent values here.
12765 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
12766 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
12767 (syms_of_xfns): Initialize Qcenter.
12768
1b0672c3
GM
12769 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
12770 to the limits, increase the limits.
12771
0d7811ed
KH
127722000-05-01 Kenichi Handa <handa@etl.go.jp>
12773
12774 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 12775 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 12776
a943a5ca
GM
127772000-04-28 Gerd Moellmann <gerd@gnu.org>
12778
12779 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
12780 taller than the window.
12781
5dba1e29
KH
127822000-04-28 Kenichi Handa <handa@etl.go.jp>
12783
12784 * xfaces.c (realize_x_face): Fix the argument of the second
12785 xassert. BASE_FACE may not be a face for ASCII.
12786
353964e3
GM
127872000-04-27 Gerd Moellmann <gerd@gnu.org>
12788
c76e04a8
GM
12789 * print.c (print_object): Treat print-length < 0 as nil.
12790
12791 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
12792
12793 * s/freebsd.h (TERMCAP_OBJ): Removed.
12794 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
12795
12796 * lread.c (read1): Don't treat period followed by certain
12797 characters as symbol start.
12798
12799 * xfns.c (slurp_file): New function.
12800 (xbm_image_p): Handle case of in-memory XBM files.
12801 (xbm_scan): Rewritten to work on memory buffers instead of files.
12802 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
12803 Work on memory buffers instead of files. If DATA is null test
12804 if buffer looks like an in-memory XBM file.
12805 (xbm_load_image): Renamed from xbm_load_image_file. Work on
12806 memory buffers instead of files.
12807 (xbm_file_p): New function.
12808 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
12809
353964e3
GM
12810 * lread.c (end_of_file_error): New function.
12811 (read1): Call it instead of signaling `end-of-file' directly.
12812
427ec082 12813 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
12814 with Fprinc instead of Fprin1.
12815
24d744ac
KR
128162000-04-26 Ken Raeburn <raeburn@gnu.org>
12817
12818 * window.c (freeze_window_start): Check that minibuffer scroll
12819 window isn't nil before extracting the window structure pointer
12820 from it.
12821
12822 * undo.c (record_delete): If we hit the end of the undo list, stop
12823 picking elements apart.
12824
7464346d
GM
128252000-04-26 Gerd Moellmann <gerd@gnu.org>
12826
12827 * xdisp.c (display_line): If lines are continued, restore
12828 iterator's ascent/descent information to the values before the
12829 first glyph not fitting on the line.
12830
612839b6
GM
128312000-04-25 Gerd Moellmann <gerd@gnu.org>
12832
12833 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 12834 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
12835
12836 * dispnew.c (increment_matrix_positions): Renamed from
12837 increment_glyph_matrix_buffer_positions.
12838 (increment_row_positions): Renamed from
12839 increment_glyph_row_buffer_positions.
12840
12841 * dispextern.h: Change names of renamed functions from dispnew.c
12842 in prototypes.
12843
cc181e95
GM
128442000-04-24 Gerd Moellmann <gerd@gnu.org>
12845
abfcc168
GM
12846 * fileio.c (Fdo_auto_save): Create directories for auto-save
12847 list file if necessary.
12848
cc181e95
GM
12849 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
12850 from buffer or frame.
12851 (automatic_hscrolling_p): New variable.
12852 (hscroll_windows): Scroll windows horizontally only if automatic
12853 hscrolling is allowed.
12854 (syms_of_xdisp): New variable `automatic-hscrolling'.
12855
12856 * frame.h (struct frame): Add member extra_line_spacing.
12857
12858 * xfns.c (x_set_line_spacing): New function.
12859 (Fx_create_frame): Set line spacing from resources.
12860 (Qline_spacing): New variable.
12861 (syms_of_xfns): Initialize Qline_spacing.
427ec082 12862
cc181e95
GM
12863 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
12864
12865 * buffer.c (init_buffer_once): Handle extra_line_spacing.
12866 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 12867 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
12868 extra_line_spacing from default value.
12869 (init_buffer_once): Initialize default value of extra_line_spacing.
12870
12871 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
12872 and extra3.
12873
12874 * xterm.c (x_produce_glyphs): Remove reference to struct it's
12875 prompt_width. Add extra line spacing.
12876
12877 * term.c (produce_glyphs): Remove reference to struct it's
12878 prompt_width.
12879
12880 * dispextern.h (struct it): Remove member prompt_width, add
12881 extra_line_spacing.
12882
58827478
GM
128832000-04-22 Gerd Moellmann <gerd@gnu.org>
12884
12885 * dispnew.c (update_frame_line): When writing a whole line, make
12886 sure cursor is in the right row afterwards, otherwise a use of
12887 capability `ch' in cmgoto might leave the cursor in the row below.
12888
25a87f42
GM
128892000-04-21 Gerd Moellmann <gerd@gnu.org>
12890
12891 * lisp.h (struct Lisp_Buffer_Cons): Remove.
12892
12893 * keyboard.c (timer_check): Fix typo in comment.
12894
54edf5c2
KH
128952000-04-21 Kenichi Handa <handa@etl.go.jp>
12896
12897 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
12898 name change: ch -> character.
12899
3a64eef5
GM
129002000-04-20 Gerd Moellmann <gerd@gnu.org>
12901
12902 * keyboard.c (echo_message_buffer): New variable.
12903 (echo_now): Set echo_message_buffer to the echo area buffer used
12904 to display the echo.
12905 (cancel_echoing): Reset echo_message_buffer to nil.
12906 (read_char): Code rewritten that handles canceling an echo or
12907 echoing a dash, respectively.
12908
12909 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
12910 directory doesn't exist.
12911
6142fdcb
DL
129122000-04-19 Dave Love <fx@gnu.org>
12913
12914 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
12915 (concat): Don't allow numeric args.
12916 (Fconcat): Doc change.
6142fdcb 12917
ac6b5352
SM
129182000-04-19 Stefan Monnier <monnier@cs.yale.edu>
12919
12920 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
12921 instead define end_match(1|2) more carefully.
12922 Use GET_CHAR_BEFORE_2 for `begline'.
12923
cb9215e4
GM
129242000-04-19 Gerd Moellmann <gerd@gnu.org>
12925
5e3dac3f
GM
12926 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
12927 on 64-bit systems where NULL is defined as `0'.
12928
12929 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
12930 the `variable argument list' to make it work on Alpha.
12931
cb9215e4
GM
12932 * m/alpha.h (_LP64) [!_LP64]: Define.
12933 (ORDINARY_LINK): Define for NetBSD.
12934
12935 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 12936
f532dca0
DL
129372000-04-19 Dave Love <fx@gnu.org>
12938
c750667e
DL
12939 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
12940 change.
12941
12942 * Makefile.in (LIBS): Don't use.
12943 (GETLOADAVG_OBJ): Define again.
12944 (otherobj): Add GETLOADAVG_OBJ.
12945
f532dca0
DL
12946 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
12947
1c7e22fd
GM
129482000-04-18 Gerd Moellmann <gerd@gnu.org>
12949
f6d3257b
GM
12950 * lread.c (read_filtered_event): Cancel and start busy cursor.
12951
427ec082 12952 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
12953 that the per-character metrics may be null.
12954
e10f64e7
GM
129552000-04-17 Gerd Moellmann <gerd@gnu.org>
12956
0daee095
GM
12957 * buffer.c (clone_per_buffer_values): New function.
12958 (Fmake_indirect_buffer): Add optional argument CLONE. Call
12959 clone_per_buffer_values if CLONE is not nil.
12960
e10f64e7
GM
12961 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
12962
38687d43
DL
129632000-04-16 Dave Love <fx@gnu.org>
12964
12965 * Makefile.in: Remove obsolete localcpp stuff.
12966 (GETLOADAVG_OBJ): Don't define.
12967 (obj): Move LIBOBJS...
12968 (otherobj): ... to here.
12969 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
12970 whitespace-only lines after the continuation (Irix).
12971
c21c7262
GM
129722000-04-14 Gerd Moellmann <gerd@gnu.org>
12973
12974 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
12975
12976 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
12977
314767c0
DL
129782000-04-14 Dave Love <fx@gnu.org>
12979
12980 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
12981 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
12982 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
12983 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
12984 NLIST_STRUCT.
12985
12986 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
12987 autoconfiscated HAVE_GETLOADAVG.
12988
12989 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
12990 BROKEN_MKTIME.
12991
a2522dca
GM
129922000-04-14 Gerd Moellmann <gerd@gnu.org>
12993
12994 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 12995 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 12996
33744b5d
DL
129972000-04-14 Dave Love <fx@gnu.org>
12998
c21c7262 12999 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
13000 (INTERVAL_SRC): Convert to make variable.
13001 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
13002 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
13003 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
13004 add LIBOBJS.
13005 (SOME_MACHINE_OBJECTS): Remove interval stuff.
13006 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
13007 (shortlisp): Add facemenu, float-sup, frame.
13008 (SOME_MACHINE_LISP): Remove them from here.
13009 (LIBES): Change unused LDLIBS to autoconf LIBS.
13010
13011 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
13012
9d3d5916
KH
130132000-04-14 Kenichi Handa <handa@etl.go.jp>
13014
13015 * composite.c (update_compositions): If FROM and TO are not in a
13016 valid range, do nothing.
13017
198e3c7a
GM
130182000-04-13 Gerd Moellmann <gerd@gnu.org>
13019
52283633 13020 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 13021
52283633 13022 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
13023
13024 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
13025 as TERMCAP_OBJ.
13026
055a28c9
EZ
130272000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
13028
13029 * fileio.c (a_write): Remove redundant semi-colons.
13030 (e_write): Return -1 if failed to write all the data.
13031 This fixes the changes made at 1999-12-15.
13032
f5c75033
DL
130332000-04-12 Dave Love <fx@gnu.org>
13034
13035 * fns.c (mapcar1): Test for null vals to support mapc.
13036 (Fmapc): New function.
13037
0c3cfc51
EZ
130382000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
13039
13040 * msdos.c (NUM_MOUSE_BUTTONS): Define.
13041 (IT_frame_up_to_date): Support the buffer local value of
13042 cursor-type, if defined.
13043
33465a31
DL
130442000-04-10 Dave Love <fx@gnu.org>
13045
13046 * editfns.c (preceding-char, following-char): Doc fix.
13047
6ed56568
KR
130482000-04-10 Ken Raeburn <raeburn@gnu.org>
13049
13050 * Makefile.in (temacs): Revert 2000-03-12 change.
13051
7cf80d4e
JR
130522000-04-10 Jason Rumney <jasonr@gnu.org>
13053
13054 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
13055
34f3f342
GM
130562000-04-10 Gerd Moellmann <gerd@gnu.org>
13057
1a1b1895
GM
13058 * xdisp.c (setup_echo_area_for_printing): Choose an echo
13059 area buffer, if it's not set up yet.
13060
34f3f342
GM
13061 * indent.c (compute_motion): Set immediate_quit.
13062
be0dbdab
GM
130632000-04-09 Gerd Moellmann <gerd@gnu.org>
13064
52283633 13065 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
13066 (realize_tty_face): Suppress boldness if colors are the inverse of
13067 the default colors, and tty_suppress_bold_inverse_default_colors_p
13068 is set.
13069 (Ftty_suppress_bold_inverse_default_colors): New function.
13070 (syms_of_xfaces): Defsubr it.
13071
be0dbdab
GM
13072 * buffer.c (Frestore_buffer_modified_p): New function.
13073 (syms_of_buffer): Defsubr it.
13074
e8413c3b
KR
130752000-04-08 Ken Raeburn <raeburn@gnu.org>
13076
87f67317
KR
13077 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
13078 charset id (int) argument, not a charset (Lisp_Object).
13079
e8413c3b
KR
13080 * coding.h (code_convert_string): Declare.
13081 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
13082 object, as the fourth argument to code_convert_string.
13083
52283633 13084 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
13085 (Fset_fontset_font): Use EQ to compare lisp objects.
13086
7c752c80
KR
130872000-04-05 Ken Raeburn <raeburn@gnu.org>
13088
c0333abc
KR
13089 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
13090 a pointer that looks like a lisp object.
13091 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
13092 zero, instead see whether it's an integer object, since they can't
13093 have intervals.
13094 (GET_INTERVAL_OBJECT): Simply assign to the destination.
13095
52283633
SM
13096 * dispnew.c (allocate_matrices_for_frame_redisplay)
13097 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
13098 to convert between (unsigned) int values and lisp integers.
13099 * keyboard.c (read_key_sequence): Likewise.
13100 * lread.c (substitute_object_recurse): Likewise.
13101 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
13102 * minibuf.c (do_completion, Fminibuffer_complete_word)
13103 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
13104 * term.c (produce_special_glyphs): Likewise.
13105
13106 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
13107 * print.c (print_preprocess, print_object): Likewise.
13108
13109 * search.c (compile_pattern): Use NILP when checking for nil.
13110
74e49b38
KR
13111 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
13112 __OPTIMIZE__]: Provide a GNU C macro version that handles
13113 lisp-object unions.
13114 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
13115 field, to better cope with ENABLE_CHECKING and calls that modify a
13116 Lisp_Object using its old value.
13117
685e5ed2
GM
131182000-04-04 Gerd Moellmann <gerd@gnu.org>
13119
c407c570
GM
13120 * window.c (compare_window_configurations): Signal an error
13121 if parameters C1 or C2 aren't window configurations.
13122
685e5ed2
GM
13123 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
13124 AFTER_POTENTIAL_GC calls around calls to functions that can
13125 signal an error and thus invoke the debugger.
13126
587a49ab
GM
131272000-04-03 Gerd Moellmann <gerd@gnu.org>
13128
62f20204
GM
13129 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
13130 an error if decoding fails.
13131
587a49ab
GM
13132 * keyboard.c (lispy_mouse_names): Variable removed.
13133 (Vlispy_mouse_stem): New variable.
13134 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
13135 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
13136 for any mouse button number. Increase size of mouse_syms and
13137 button_down_location as needed. Call modify_event_symbol with
13138 different arguments.
13139 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
13140 Call modify_event_symbol with different arguments.
13141 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
13142 for any button number. Call modify_event_symbol with different
13143 arguments.
13144 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
13145 Accept a string for NAME_ALIST_OR_STEM.
13146
13147 * lisp.h (larger_vector): Add prototype.
13148
13149 * fns.c (larger_vector): Make externally visible.
13150
13151 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
13152
2d1675e4
SM
131532000-04-02 Stefan Monnier <monnier@cs.yale.edu>
13154
13155 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
13156 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
13157 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
13158 we are between str1 and str2.
13159 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
13160 (PATFETCH): Use `TRANSLATE'.
13161 (PATFETCH_RAW): Fetch multibyte char if applicable.
13162 (PATUNFETCH): Remove.
13163 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
13164 When writing a char, write it directly into the pattern buffer rather
13165 than going needlessly through a temp char-array.
13166 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
13167 multibyte magic and remove the useless `#ifdef emacs'.
13168 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
13169 buffer.
13170
13171 * regex.h (struct re_pattern_buffer): Make field `multibyte'
13172 conditional on `emacs'.
13173
13174 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
13175
cc2d8c6b
KR
131762000-04-01 Ken Raeburn <raeburn@gnu.org>
13177
13178 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
13179 non-union-type versions of XMARK and friends here, because XMARK
13180 and friends won't work on an integer field if NO_UNION_TYPE is not
13181 defined.
52283633 13182 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 13183
52283633 13184 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
13185 (syms_of_composite): Delete local var NARGS, pass an int as first
13186 argument to Fmake_hash_table.
13187
2387b382
KR
13188 * editfns.c (text_property_stickiness): Use NILP to test
13189 Lisp_Object boolean value.
13190 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
13191 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
13192 problems reading from and changing the same lisp value in an
13193 XSETSTRING call.
13194
27660e89
GM
131952000-04-01 Gerd Moellmann <gerd@gnu.org>
13196
13197 * term.c (TN_no_color_video): New variable.
13198 (term_init): Intitialize TN_no_color_video.
13199 (enum no_color_bit): New enumeration.
13200 (MAY_USE_WITH_COLORS_P): New macro.
13201 (turn_on_face): Use it to determine if attributes may be used
13202 combined with colors.
13203
3578db3c
KR
132042000-04-01 Ken Raeburn <raeburn@gnu.org>
13205
13206 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 13207 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
13208 (enlarge_window): Variable sizep now points to Lisp_Object. Use
13209 proper accessor macros.
13210 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
13211 (grow_mini_window): Fix typo getting int value of root->height.
13212
6fc556fd
KR
13213 * xdisp.c (compute_string_pos): Fix order of arguments to
13214 string_pos_nchars_ahead.
13215 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
13216 count arg to variable-arg routines like Frun_hook_with_args and
13217 Fformat.
587a49ab
GM
13218 (back_to_previous_visible_line_start)
13219 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
13220 fixed-arg routines like Fget_char_property and Fmake_string.
13221 (reconsider_clip_changes): Use XINT when comparing integer lisp
13222 objects, or passing them as int arguments.
587a49ab
GM
13223 (mark_window_display_accurate, insert_left_trunc_glyphs)
13224 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
13225 storing or passing integer values as lisp objects.
13226 (set_cursor_from_row, highlight_trailing_whitespace): Use
13227 INTEGERP, not implicit test against zero, for glyph object.
13228 (try_window_id): Don't use make_number when we want an int value.
13229
13230 * xfaces.c (xlfd_symbolic_value): Make last argument a
13231 Lisp_Object, to be consistent with callers.
13232 (Fbitmap_spec_p): Use XINT to get numeric value of height.
13233 (lface_hash): Apply XFASTINT to lisp values before folding in.
13234
13235 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
13236 fill in window width and height. Pass an int, not a lisp object,
13237 as first arg to Finsert.
13238
6e7b2457
GM
132392000-04-01 Gerd Moellmann <gerd@gnu.org>
13240
610d841e
GM
13241 * xfaces.c (realize_basic_faces): Block input while realizing
13242 the faces.
13243
6e7b2457
GM
13244 * keyboard.c (lispy_mouse_names): Add additional mouse names.
13245
13246 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
13247
aa110c0c
GM
132482000-03-31 Gerd Moellmann <gerd@gnu.org>
13249
13250 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 13251 or ASCII, handle case that per-char metric is null.
aa110c0c 13252
8801a864
KR
132532000-03-30 Ken Raeburn <raeburn@gnu.org>
13254
c6129d7e
KR
13255 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
13256
52283633
SM
13257 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
13258 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
13259 pointer, using eassert.
13260 * frame.h (XFRAME): Likewise.
13261
52283633
SM
13262 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
13263 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
13264 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 13265 * data.c (set_internal): Likewise.
52283633
SM
13266 * dispextern.h (WINDOW_WANTS_MODELINE_P)
13267 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
13268 * fileio.c (auto_save_1): Likewise.
13269 * insdel.c (check_markers): Likewise.
13270 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
13271 * undo.c (record_insert): Likewise.
13272 * vmsproc.c (child_sig): Likewise.
13273 * window.c (unshow_buffer, window_loop): Likewise.
13274 * xterm.c (x_erase_phys_cursor): Likewise.
13275
8e7af858
GM
132762000-03-30 Gerd Moellmann <gerd@gnu.org>
13277
13278 * xfns.c (free_image_cache): Free the cache structure itself
13279 last, after all its members have been freed.
13280
13281 * lisp.h (xstrdup): Add prototype.
13282
13283 * alloc.c (xstrdup): Moved here from xfaces.c.
13284 (allocating_for_lisp): Variable removed.
52283633 13285 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
13286
13287 * xfaces.c (realize_tty_face): Use find_symbol_value instead
13288 of Fsymbol_value.
13289 (xstrdup): Moved to alloc.c.
13290
e0b8c689
KR
132912000-03-29 Ken Raeburn <raeburn@gnu.org>
13292
b96f9fb7
KR
13293 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
13294
13295 * emacs.c (main): Fix sense of no-loadup test.
13296
e0b8c689
KR
13297 * config.in (ENABLE_CHECKING): Undef.
13298
13299 * lisp.h (struct interval): Replace "parent" field with a union of
13300 interval pointer and Lisp_Object; add new bitfield to use as
13301 discriminant. Change other flag fields to bitfields.
13302 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
13303 is defined and the supplied test fails, print a message and abort.
13304 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
13305
13306 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
13307 pointers; abort if the value looks like a lisp object.
52283633
SM
13308 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
13309 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
13310 Modify for new interval parent definition.
13311
52283633
SM
13312 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
13313 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
13314 addressable lisp object in the interval structure.
13315 (die): New function.
13316 (suppress_checking): New variable.
13317
13318 * intervals.c (interval_start_pos): Just return 0 if there's no
13319 parent object.
13320
f83c5440
GM
133212000-03-29 Gerd Moellmann <gerd@gnu.org>
13322
13323 * lread.c (read1): Accept `.' (period) as symbol start like in CL
13324 and earlier Emacs versions.
13325
13326 * keyboard.c (Ftop_level): Cancel busy-cursor.
13327
13328 * eval.c (call_debugger): Cancel busy-cursor.
13329
fdce64ff
KH
133302000-03-29 Kenichi Handa <handa@etl.go.jp>
13331
13332 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 13333 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 13334
f6a3f532
SM
133352000-03-28 Stefan Monnier <monnier@cs.yale.edu>
13336
13337 * regex.c (analyse_first): New function obtained by ripping out most
13338 of re_compile_fastmap and generalizing it a little bit so that it
13339 can also just return whether a given (sub)pattern can match the empty
13340 string or not.
13341 (regex_compile): Use `analyse_first' to decide whether the loop-check
13342 needs to be done or not for *, +, *? and +? (the loop check is costly
13343 for non-greedy repetition).
13344 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
13345
e9b309ac
DL
133462000-03-28 Dave Love <fx@gnu.org>
13347
52283633 13348 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 13349
e9b309ac
DL
13350 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
13351
ed0767d8
SM
133522000-03-27 Stefan Monnier <monnier@cs.yale.edu>
13353
13354 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
13355 an expression.
13356 (enum re_opcode_t): Update description of succeed_n.
13357 (PATFETCH): Always define.
13358 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
13359 operators, char classes, shy-groups and intervals).
13360 Optimize special cases of intervals so as to only use succeed_n and
13361 jump_n when really needed.
13362 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
13363 that we don't have to handle the special cases any more.
13364 Simplify on_failure_jump handling as well.
13365
e11e7e46
JR
133662000-03-28 Jason Rumney <jasonr@gnu.org>
13367
13368 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
13369
88faab89
GM
133702000-03-27 Gerd Moellmann <gerd@gnu.org>
13371
182ff242
GM
13372 * s/freebsd.h (GC_SETJMP_WORKS): Define.
13373
13374 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 13375
182ff242
GM
13376 * alloc.c (mark_maybe_object): New function.
13377 (mark_memory): Use it.
13378 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
13379 (setjmp_tested_p, longjmp_done): New variables.
13380 (test_setjmp): New function.
13381 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
13382 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
13383
c1005d06
GM
13384 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
13385 to DEC_TEXT_POS and INC_TEXT_POS.
13386
13387 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
13388 with parameter MULTIBYTE_P.
13389
52283633 13390 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 13391
7439e5b9 13392 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
13393 buffers because it looks for multibyte character byte sequences
13394 which don't exist in unibyte text.
7439e5b9 13395
d9c545da
GM
13396 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
13397
11fd416e 13398 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
13399 [DEBUG_X_COLORS]: New functions.
13400 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
13401
13402 * xfns.c (x_set_cursor_color): Get color reference counts right.
13403
13404 * xterm.c (x_copy_color): New function.
13405 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
13406
13407 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
13408 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
13409 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
13410 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
13411 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
13412 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
13413 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
13414 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
13415 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
13416 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
13417
11fd416e
GM
13418 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
13419 names for handling per-buffer variables.
d9c545da
GM
13420
13421 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
13422 instead of MAX_BUFFER_LOCAL_VARS.
13423 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
13424
13425 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
13426
88faab89
GM
13427 * xfns.c (x_specified_cursor_type): New function.
13428 (x_set_cursor_type): Use it.
13429
13430 * buffer.h (struct buffer): Add cursor_type.
13431
d80f42b7
SM
134322000-03-26 Stefan Monnier <monnier@cs.yale.edu>
13433
13434 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
13435 (print_partial_compiled_pattern, re_compile_fastmap):
13436 Handle new opcode.
d80f42b7
SM
13437 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
13438 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
13439 executing it as well as when popping it off the stack to find infinite
13440 loops in non-greedy repetition operators.
13441
89e80928
GM
134422000-03-26 Gerd Moellmann <gerd@gnu.org>
13443
3d4ff2dd
GM
13444 * doc.c (Qfunction_documentation): New variable.
13445 (syms_of_doc): Initialize Qfunction_documentation.
13446 (Fdocumentation): If FUNCTION is a symbol with non-nil
13447 `function-documentation' property, return a documentation derived
13448 from that.
13449
bd96bd79
GM
13450 * buffer.c (syms_of_buffer): Add default-cursor-type.
13451 (init_buffer_once): Don't let cursor_type have a local value
13452 in every buffer.
13453
19d1bc27
GM
13454 * xterm.c (x_display_and_set_cursor): Choose cursor depending
13455 on buffer-local value of cursor_type.
13456 (x_draw_bar_cursor): Add parameter WIDTH.
13457
13458 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
13459 (init_buffer_once): Set default cursor_type value to t.
13460 Mark cursor_type as local everywhere.
13461 (syms_of_buffer): New per-buffer variable cursor-type.
13462
89e80928
GM
13463 * buffer.h (struct buffer): Remove member local_var_flags,
13464 add local_flags.
13465 (MAX_BUFFER_LOCAL_VARS): New macro.
13466 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
13467 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
13468 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
13469 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
13470
52283633 13471 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
13472
13473 * category.c (Fset_category_table): Use new macros for per-buffer
13474 variables.
13475
13476 * buffer.c (buffer_permanent_local_flags): Make a char array.
13477 (max_buffer_local_idx): New variable.
13478 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
13479 for new handling of per-buffer variables.
13480 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
13481 (init_buffer_once): Initialize per-buffer vars differently.
13482 Set max_buffer_local_idx.
13483
13484 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
13485 variables.
13486
52283633 13487 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
13488
13489 * data.c (do_symval_forwarding, store_symval_forwarding)
13490 (find_symbol_value, set_internal, default_value, Fset_default)
13491 (Fkill_local_variable, Flocal_variable_p): Use new macros for
13492 per-buffer variables.
13493
13494 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
13495
9a0dd3dc
GM
134962000-03-24 Gerd Moellmann <gerd@gnu.org>
13497
b68c375f
GM
13498 * xterm.c (x_term_init): Unblock input around call1 of
13499 Qvendor_specific_keysyms.
13500
9a0dd3dc
GM
13501 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
13502 (find_defun_start): Consider an open parenthesis in column 0
13503 a defun start only if open_paren_in_column_0_is_defun_start is set.
13504 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
13505
7973e637
SM
135062000-03-24 Stefan Monnier <monnier@cs.yale.edu>
13507
13508 * eval.c (Fautoload): Add entry in load-history (if after dump).
13509 * lread.c (load-history): Update docstring.
13510
39210e90
GM
135112000-03-24 Gerd Moellmann <gerd@gnu.org>
13512
13513 * indent.c (Fvertical_motion): Always use the current buffer.
13514 Temporarily change the window's buffer, if necessary.
13515
72db3ab5
GM
135162000-03-23 Gerd Moellmann <gerd@gnu.org>
13517
13518 * xterm.c (fast_find_position): Make sure not to consider rows
13519 not visible in the window.
13520
990b2375
SM
135212000-03-22 Stefan Monnier <monnier@cs.yale.edu>
13522
13523 * regex.c (enum syntaxcode): Provide default for non-Emacs.
13524 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
13525
ff4df011
JR
135262000-03-22 Jason Rumney <jasonr@gnu.org>
13527
13528 * w32menu.c (single_submenu): Set help string to NULL if none.
13529 (w32_menu_show): Set help string correctly.
13530 (add-menu-item): Set help string in MIIM_DATA for menu item.
13531 Load SetMenuItemInfoA explicitly.
13532 (w32_menu_display_help): New function.
427ec082 13533
ff4df011
JR
13534 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
13535 (QCdata): Moved to xdisp.c.
13536
13537 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
13538 (Vw32_charset_to_codepage_alist): Removed.
13539 (Vw32_charset_info_alist): New variable.
52283633
SM
13540 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
13541 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
13542 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
13543 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
13544 with TODO comment.
13545 (w32_codepage_for_font): Use Vw32_charset_info_alist.
13546 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
13547 Define Vw32_charset_info_alist and w32_charset symbols.
13548
135492000-03-22 Jason Rumney <jasonr@gnu.org>
13550
13551 * makefile.nt (w32bdf.obj): Update dependencies.
13552
13553 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
13554
13555 * w32fns.c: Include fontset.h after dispextern.h.
13556 (Fx_create_frame): Do not create fontset.
13557 (w32_load_system_font): Doc fix.
13558 (Fx_close_connection): Free full_name if it is not shared.
13559
13560 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
13561 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
13562 Callers updated.
ff4df011
JR
13563 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
13564 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
13565 (w32_font_is_double_byte): New function, needs body.
13566 (x_append_glyph): Set glyph->glyph_not_available_p.
13567 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
13568 it->charset. If it->multibyte_p is zero and it->c is a multibyte
13569 character, convert it to a unibyte character.
13570 (struct glyph_string): Delete member `charset'.
13571 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
13572 calculating it is found.
13573 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
13574 the case that per char metric is not available correctly.
13575 (x_fill_glyph_string): Handle the case that the specific glyph is
13576 not available correctly.
13577 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
13578 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
13579 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
13580 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
13581 fontset. Don't call FS_LOAD_FONT.
13582
439d5cb4
KR
135832000-03-22 Ken Raeburn <raeburn@gnu.org>
13584
13585 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
13586 (INT_LISPLIKE): New macro.
13587 (NULL_INTERVAL_P): Use it.
52283633
SM
13588 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
13589 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
13590 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
13591
13592 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
13593 explicit references to "parent" field of struct interval and
13594 associated unclean type conversions.
52283633
SM
13595 * intervals.c (create_root_interval, root_interval, rotate_right)
13596 (rotate_left, balance_possible_root_interval, split_interval_right)
13597 (split_interval_left, interval_start_pos, find_interval)
13598 (next_interval, previous_interval, update_interval)
13599 (adjust_intervals_for_insertion, delete_node, delete_interval)
13600 (adjust_intervals_for_deletion, merge_interval_right)
13601 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
13602 (copy_intervals_to_string): Likewise.
439d5cb4
KR
13603 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
13604 Likewise.
13605 * syntax.c (update_syntax_table): Likewise.
13606
13607 * intervals.c (reproduce_tree_obj): New function, like
13608 reproduce_tree but takes a Lisp_Object for the parent. Declare
13609 with prototype.
13610 (graft_intervals_into_buffer): Use it when appropriate.
13611 (reproduce_tree): Declare with prototype.
13612 (balance_possible_root_interval): Check that the parent is a lisp
13613 object before trying to examine its type.
13614
ee1c5b21
GM
136152000-03-22 Gerd Moellmann <gerd@gnu.org>
13616
13617 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
13618 as strings only if both are known to be strings.
13619
13620 * s/openbsd.h (LIBS_TERMCAP): Undef.
13621
1fb352e0
SM
136222000-03-21 Stefan Monnier <monnier@cs.yale.edu>
13623
13624 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
13625 definitions for non-Emacs compilation.
13626 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
13627 outside of `#ifdef emacs'.
13628 (print_partial_compiled_pattern): Update.
13629 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
13630 (re_compile_fastmap): Merge handling of charset and charset_not (for
13631 emacs and non-emacs compilation as well).
13632 Similarly for (not)categoryspec and (not)syntaxspec.
13633 Don't use the fastmap when reaching `anychar' since the added
13634 complexity is not justified.
13635 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
13636 and (not)syntaxspec. Merge (not)categoryspec.
13637
fdaa1f77
KH
136382000-03-22 Kenichi Handa <handa@etl.go.jp>
13639
52283633
SM
13640 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
13641 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 13642 --without-x.
fdaa1f77 13643
d152fb46
DL
136442000-03-21 Dave Love <fx@gnu.org>
13645
13646 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
13647 doc string.
13648
d2cafc8c
GM
136492000-03-21 Gerd Moellmann <gerd@gnu.org>
13650
13651 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
13652 (lface_fully_specified_p): Don't check contents of
13653 LFACE_FONT_INDEX because that attribute is optional.
13654 (realize_x_face): Remove now unwarranted xassert.
13655
9111d4b5
KH
136562000-03-21 Kenichi HANDA <handa@etl.go.jp>
13657
13658 The following changes are to make font selection based on
13659 characters, not charset. In addition, they recover fontset
13660 facilities while utilizing the new font selection mechanism.
13661
6c4bfdc0
KH
13662 * Makefile.in (fontset.o): Depend on dispextern.h.
13663
13664 * alloc.c (mark_face_cache): Don't mark face->registry.
13665
9111d4b5
KH
13666 * dispextern.h (struct glyph): New member glyph_not_available_p.
13667 Use 22 bits for face_id.
13668 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
13669 (struct face): Delete member registry, new member ascii_face.
13670 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
13671 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
13672 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 13673 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
13674
13675 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
13676 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
13677 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
13678 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 13679 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
13680 (fs_free_face_fontset, fontset_font_pattern)
13681 (face_suitable_for_char_p, face_for_char)
13682 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
13683 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
13684 (FS_LOAD_FACE_FONT): New macro.
13685
13686 * fontset.c: All codes rewritten or adjusted for the change of
13687 fontset implementation. Now fontset is represented by char table.
52283633
SM
13688 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
13689 Variables removed.
9111d4b5 13690 (my_strcasecmp): Function removed.
52283633 13691 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 13692 (AREF, ASIZE): New macros.
52283633
SM
13693 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
13694 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
13695 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
13696 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
13697 (fontset_id_valid_p, font_family_registry, fontset_name)
13698 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
13699 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
13700 New functions.
13701 (fs_load_font): New arg FACE. Caller changed.
13702 (fs_query_fontset): Argument changed. Caller changed.
13703 (Fquery_fontset): call fs_query_fontset.
13704 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
13705 Functions removed.
52283633
SM
13706 (clear_fontset_elements, check_registry_encoding)
13707 (check_fontset_name): New functions.
9111d4b5
KH
13708 (syms_of_fontset): Set char-table-extra-slots property of fontset
13709 to 3. Staticpro and initialize Vfontset_table and
13710 Vdefault_fontset. Defsubr fontset_font and fontset_list.
13711
13712 * frame.h (struct frame): Member `fontset_data' removed.
13713 (FRAME_FONTSET_DATA): Macro removed.
13714
13715 * frame.c (make_frame): Don't allocate f->fontset_data.
13716 (Fdelete_frame): Don't free f->fontset_data.
13717
6c4bfdc0
KH
13718 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
13719
9111d4b5
KH
13720 * xdisp.c (charset_at_position): Function removed.
13721 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
13722 (handle_face_prop, reseat_to_string, set_iterator_to_next)
13723 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
13724 Likewise.
13725 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
13726 FACE_FOR_CHARSET.
52283633
SM
13727 (get_next_display_element, append_space)
13728 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
13729
13730 * xfaces.c (Qx_charset_registry, Vface_default_registry):
13731 Variables removed.
13732 (clear_font_table, frame_update_line_height, load_face_font):
13733 Adjusted for the change of fontset implementation.
13734 (load_face_fontset_font): Function removed.
13735 (pixel_point_size): New function.
13736 (font_list): Argument type changed. Caller changed.
13737 (LFACE_FONT): New macro.
13738 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
13739 (set_lface_from_font_name): Type of arg FONTNAME is changed to
13740 Lisp_Object. Determine the font name by actually loading a font
13741 by the specified pattern. Set LFACE_FONT (lface) to the specified
13742 pattern. Even if a font is not found, don't try alternatives.
13743 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
13744 (set_font_frame_param): If `font' is specified in lface, use it.
13745 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
13746 (lface_same_font_attributes_p): Likewise.
13747 (make_realized_face): Arguent changed. Caller changed. Set
13748 face->ascii_face to face itself.
13749 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
13750 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
13751 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
13752 (free_realized_multibyte_face): New function.
13753 (lookup_face, lookup_named_face, lookup_derived_face): Argument
13754 changed. Caller changed.
13755 (try_font_list): Argument type changed.
13756 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
13757 (choose_face_font): Argument changed. Handle fontset properly.
13758 (choose_face_fontset_font): Function removed.
13759 (realize_default_face, realize_named_face): Don't remove the
13760 former face here.
13761 (realize_face): Argument changed. Caller changed. Remove face
52283633 13762 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
13763 (realize_x_face): Argument changed. Caller changed. For a
13764 multibyte character, share fontset with base_face. For a single
52283633 13765 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
13766 (realize_tty_face): Argument changed. Caller changed.
13767 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
13768 (face_at_buffer_position): Don't check multibyte_p for returning
13769 DEFAULT_FACE_ID.
13770 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
13771 FACE_SUITABLE_FOR_CHARSET_P.
13772 (syms_of_xfaces): Remove code for Qx_charset_registry and
13773 Vface_default_registry.
13774
6c4bfdc0
KH
13775 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
13776 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
13777 (x_per_char_metric): Don't try FONT->default_char. Even if
13778 pcm->width is zero, glyph bits may exist.
13779 (x_encode_char): Always initialize char2b->byte1.
13780 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 13781 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
13782 (x_append_glyph): Set glyph->glyph_not_available_p.
13783 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
13784 it->charset. Handle the case that per char metric is not
13785 available. If it->multibyte_p is zero and it->c is a multibyte
13786 character, convert it to a unibyte character.
13787 (struct glyph_string): Delete member `charset'.
13788 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
13789 the case that per char metric is not available correctly.
13790 (x_fill_glyph_string): Handle the case that the specific glyph is
13791 not available correctly.
13792 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
13793 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
13794 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
13795 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
13796 fontset. Don't call FS_LOAD_FONT.
13797
13798 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
13799 (x_create_tip_frame): Likewise.
13800 (Fx_close_connection): Free full_name of font_info.
13801
13802 * fns.c (optimize_sub_char_table): New function.
13803 (Foptimize_char_table): New function.
13804 (syms_of_fns): Defsubr Soptimize_char_table.
13805
b33dd3b0
GM
138062000-03-20 Gerd Moellmann <gerd@gnu.org>
13807
13808 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
13809 only if buffer is displayed in some window.
13810
13811 * xdisp.c (handle_single_display_prop): Initialize local `value'.
13812 (try_window_reusing_current_matrix): Don't call scroll run
13813 function if run's current and desired position are the same;
13814 this prevents cursor flickering.
13815
4e8a9132
SM
138162000-03-19 Stefan Monnier <monnier@cs.yale.edu>
13817
13818 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
13819
13820 * regex.c (RE_STRING_CHAR): New macro.
13821 (GET_CHAR_AFER_2): Remove.
13822 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
13823 (enum re_opcode_t): Remove on_failure_jump_exclusive.
13824 (print_partial_compiled_pattern, re_compile_fastmap)
13825 (re_match_2_internal): Remove on_failure_jump_exclusive.
13826 (regex_compile): Turn optimizable P+ loops into PP*, so that the
13827 optimization only need to work for * (ie. can use of_keep_string_jump).
13828 Remove the special case for .*\n since it is now covered by the general
13829 optimization.
13830 (re_search_2): Don't bother with `room'.
13831 (skip_one_char): New function.
13832 (skip_noops): Simplify since `memory' is not needed any more.
13833 (mutually_exclusive_p): Restructure slightly to use `switch' and
13834 add handling for "all" remaining cases.
13835 (re_match_2_internal): Change on_failure_jump_smart to use
13836 on_failure_keep_string_jump (and redirect the end-of-loop jump)
13837 rather than on_failure_jump_exclusive.
13838
2136fdd4
GM
138392000-03-19 Gerd Moellmann <gerd@gnu.org>
13840
13841 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
13842 number of bits per RGB because it's everywhere used as the depth
13843 of the visual.
13844
13845 * term.c (calculate_costs): Remove code dealing with X frames.
13846
18e21ce8 138472000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
13848
13849 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
13850
d7b511c4
GM
138512000-03-18 Gerd Moellmann <gerd@gnu.org>
13852
13853 * lread.c (read_integer): Unread the last char not consumed.
13854
16b5d424
GM
138552000-03-17 Gerd Moellmann <gerd@gnu.org>
13856
13857 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 13858 which are in the process of being deleted.
16b5d424 13859
1fa28578
GM
138602000-03-16 Gerd Moellmann <gerd@gnu.org>
13861
83488cce
GM
13862 * Makefile.in (mostlyclean): Add `*.core'.
13863 (clean): Add `bootstrap-emacs'.
13864
1fa28578
GM
13865 * lread.c (read_integer): New function.
13866 (read1): Support read syntax #o, #x, #b, #r.
13867
99633e97
SM
138682000-03-15 Stefan Monnier <monnier@cs.yale.edu>
13869
1fa28578
GM
13870 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
13871 make sure POINTER_TO_OFFSET gives the same value before and after
13872 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
13873 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
13874 (debug): Now only active if > 0 rather than if != 0.
13875 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
13876 (print_partial_compiled_pattern): Add missing `succeed' case. Use
13877 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
13878 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
13879 (store_op1, store_op2, insert_op1, insert_op2)
13880 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
13881 (group_in_compile_stack): Move to after its arg's types are
13882 declared and add a prototype.
99633e97 13883 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 13884 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 13885 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
13886 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
13887 indentation of the greedy-op and shy-group code.
99633e97
SM
13888 (at_(beg|end)line_loc_p): Fix argument's types.
13889 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
13890 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
13891 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
13892 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
13893 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
13894 QUIT unconditionally.
99633e97 13895
699238d9
GM
138962000-03-15 Gerd Moellmann <gerd@gnu.org>
13897
13898 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
13899 a sole completion.
13900
13901 * process.c (send_process): Add a hint that the function
13902 can call Lisp code to its comment.
13903
13904 * lread.c (load_dangerous_libraries): New variable.
13905 (Vbytecomp_version_regexp): New variable.
13906 (safe_to_load_p): New function.
13907 (Fload): Handle files not compiled with Emacs specially.
13908 (syms_of_lread): New Lisp variable load-dangerous-libraries.
13909
34e23e5a
GM
139102000-03-14 Gerd Moellmann <gerd@gnu.org>
13911
9c763cca
GM
13912 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
13913
13914 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
13915 support functions only if HAVE_X11R6_XIM is defined.
13916 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
13917
13918 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
13919
13920 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 13921 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
13922 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
13923
13924 * config.in (HAVE_X_I18N): Moved here from xterm.h.
13925 (HAVE_X11R6_XIM): Define.
13926
13927 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
13928
34e23e5a
GM
13929 * xterm.c (x_term_init): Add support for X resource `synchronous'.
13930 If set, call XSynchronize.
13931
66f0296e
SM
139322000-03-13 Stefan Monnier <monnier@cs.yale.edu>
13933
34e23e5a
GM
13934 * regex.c: Declare a new type `re_char' used throughout the code
13935 for the string char type. It's `const unsigned char' to match the
13936 rest of Emacs. Consistently make sure all pointers to strings use
52283633 13937 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 13938 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
13939 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
13940 code duplication.
66f0296e
SM
13941
13942 * charset.h (GET_CHAR_AFTER_2): Remove.
13943 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
13944
854a025c
KR
139452000-03-12 Ken Raeburn <raeburn@gnu.org>
13946
13947 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
13948 variable before the invocation of YMF_PASS_LDFLAGS, in case both
13949 of them try to use backquotes.
13950
b9d2c7e2
DL
139512000-03-12 Dave Love <fx@gnu.org>
13952
13953 * unexelf.c: Restore changes of 1999-10-19.
13954 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
13955 fix its type and alignment; copy it from current process.
13956
5e5dff44
GM
139572000-03-12 Gerd Moellmann <gerd@gnu.org>
13958
9b2f3c38
GM
13959 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
13960 has been found. Fix bug not computing timer's predecessor.
13961
427ec082 13962 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
13963 file name.
13964
e1cff360
GM
13965 * window.c (Fsave_window_excursion): Doc fix.
13966
52283633 13967 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 13968
e411ce4b
EZ
139692000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
13970
13971 * msdos.c (vga_installed): New function, code moved from
13972 dos_set_window_size.
13973 (Qbar, Qcursor_type, outside_cursor): New variables.
13974 (syms_of_msdos): Intern and staticpro them.
13975 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
13976 shape used outside Emacs when called for the first time.
13977 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
13978 cursor shape used outside Emacs.
13979 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
13980 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
13981 type has changed.
13982 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
13983 parameters specify the cursor. Make qreverse a global
13984 variable (renamed to Qreverse).
13985
80460654
GM
139862000-03-09 Gerd Moellmann <gerd@gnu.org>
13987
13988 * fns.c (Fy_or_n_p): Cancel busy-cursor.
13989
95cd4c40
SM
139902000-03-08 Stefan Monnier <monnier@cs.yale.edu>
13991
13992 This is a big redesign of failure-stack and register handling, prompted
13993 by bugs revealed when trying to add shy-groups. Overall, what happened
13994 is that loops are now structured a little differently, groups can be
13995 shy and the code is a little simpler.
13996
13997 * regex.h: Update the copyright.
13998 (RE_SHY_GROUPS): New value.
13999 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
14000 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
14001
80460654
GM
14002 * regex.c (enum re_opcode_t): Remove jump_past_alt,
14003 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
14004 on_failure_jump_(exclusive, loop and smart). Also fix the comment
14005 for (start|stop)_memory since they now only take one argument (the
14006 second has becomes unnecessary).
52283633 14007 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
14008 (print_compiled_pattern): Use %ld to printf long ints and flush to
14009 make debugging a little easier.
95cd4c40
SM
14010 (union fail_stack_elt): Make the integer unsigned.
14011 (struct fail_stack_type): Add a `frame' element.
14012 (INIT_FAIL_STACK): Init `frame' as well.
14013 (POP_PATTERN_OP): New macro for re_compile_fastmap.
14014 (DEBUG_PUSH, DEBUG_POP): Remove.
14015 (NUM_REG_ITEMS): Remove.
14016 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
14017 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
14018 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 14019 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
14020 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
14021 New macros.
80460654
GM
14022 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
14023 address pushed is not the destination of the jump but the source
14024 of it instead.
95cd4c40
SM
14025 (NUM_FAILURE_ITEMS): Remove.
14026 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
14027 registers before the actual failure point). Don't hardcode any
14028 meaning for str==NULL anymore.
95cd4c40 14029 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
14030 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
14031 Remove.
95cd4c40
SM
14032 (REG_UNSET_VALUE): Use NULL (why not?).
14033 (compile_range): Remove declaration since it doesn't exist.
14034 (struct compile_stack_elt_t): Remove inner_group_offset.
14035 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
14036 (regex_grow_registers): Remove dead code.
14037 (FIXUP_ALT_JUMP): New macro.
80460654
GM
14038 (regex_compile): Add shy-groups Change loops to use
14039 on_failure_jump_smart&jump instead of
14040 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
14041 initial (dummy_failure_)jump. Remove c1_base (looks like unused
14042 variable to me). Use `jump' instead of `jump_past_alt' and don't
14043 bother with push_dummy_failure in alternatives since it is now
14044 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
14045 emacs' for (re)allocating the stack.
14046 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
14047 from loop when bufp->can_be_null rather than jumping to `done'.
14048 Avoid jumping backwards so as to ensure termination. Use
14049 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
14050 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 14051 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
14052 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
14053 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
14054 (lowest_active_reg, highest_active_reg)
14055 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
14056 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
14057 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
14058 variables. Push register (in `start_memory') on the stack rather
14059 than storing it in old_reg(start|end). Remove the cycle detection
14060 from `stop_memory', replaced by the use of on_failure_jump_loop
14061 for greedy loops. Add code for the new on_failure_jump_<foo>.
14062 Remove ad-hoc code in `on_failure_jump' to push more registers in
14063 the case of a loop. Take out code from `maybe_pop_jump' into
14064 separate functions and adapt it to the semantics of
14065 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
14066 and push_dummy_failure. Remove dummy_failure handling and
14067 handling of `failures to jump to on_failure_jump' (this last one
14068 was already dead code, it seems).
14069 (group_match_null_string_p, alt_match_null_string_p)
14070 (common_op_match_null_string_p): Remove.
95cd4c40 14071
7397acc4
DL
140722000-03-08 Dave Love <fx@gnu.org>
14073
14074 * config.in: Don't depend on __STDC__ for volatile.
14075 Add POINTER_TYPE, PTR, PROTOTYPES.
14076
14077 * hftctl.c, strftime.c: Use PROTOTYPES.
14078 * eval.c (find_handler_clause): Likewise.
14079
14080 * mem-limits.h: Use POINTER_TYPE.
14081
14082 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
14083 (memory_warnings): Declare using POINTER_TYPE.
14084
5e91ff9e
GM
140852000-03-08 Gerd Moellmann <gerd@gnu.org>
14086
feab4fba
GM
14087 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
14088
52283633 14089 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 14090
5e91ff9e
GM
14091 * xfns.c: Remove obsolete code in #if 0.
14092 (Fx_focus_frame): New function.
14093
a735b7e1
KH
140942000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
14095
14096 * coding.c (coding_category_name): Add coding-category-utf-8,
14097 coding-category-utf-16-be, coding-category-utf-16-le.
14098 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
14099 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
14100 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
14101 (detect_coding_utf_8): New function.
14102 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
14103 UTF_16_LOW_SURROGATE_P): New macros.
14104 (detect_coding_utf_16): New function
14105 (detect_coding_mask): When priorities are specified, skip any
14106 categories that have `nil' coding-system. Fix bug of returning
14107 wrong mask when PRIORITIES is specified and detect_coding_XXX()
14108 returns a mask not set in PRIORITIES.
14109 (detect_eol_type_in_2_octet_form): New function.
14110 (detect_eol): selects detect_eol_type_XXX to call according to
14111 cooding->category_idx.
14112 (detect_coding_system): Remove `nil' coding-system in the result.
14113 (Fupdate_coding_systems_internal): Update all coding-categories.
14114
52283633
SM
14115 * coding.h (CODING_CATEGORY_IDX_UTF_8)
14116 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
14117 New macros.
14118 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
14119 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
14120 (CODING_CATEGORY_IDX_UTF_16_LE)
14121 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
14122 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
14123 (CODING_CATEGORY_MASK_ANY): Include the above macros.
14124 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
14125
9994cc69
GM
141262000-03-07 Gerd Moellmann <gerd@gnu.org>
14127
e9b4e5ff
GM
14128 * doc.c (Fdocumentation_property): If value is not a string,
14129 and doesn't refer to etc/DOC, evaluate it to obtain a string.
14130
f7daf1e1
GM
14131 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
14132 close the display with XtCloseDisplay. This caused a bus error
14133 on OpenWindows.
14134
9994cc69
GM
14135 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
14136 complete but not unique.
14137
4336c705
GM
141382000-03-06 Gerd Moellmann <gerd@gnu.org>
14139
18bb0684
GM
14140 * process.c (send_process): Remove local variable `procname' that
14141 might become invalid when a GC happens. Instead, access the
14142 process name slot directly.
14143
4336c705
GM
14144 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
14145 orig_height if set.
14146
14147 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
14148 orig_height if set.
14149
515d0d0e
EZ
141502000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
14151
14152 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
14153 glyph matrices have been freed.
14154
100b3cbb
GM
141552000-03-05 Gerd Moellmann <gerd@gnu.org>
14156
50df5e5a 14157 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 14158 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
14159
14160 * xfns.c (QCdata): Moved to xdisp.c.
14161
14162 * xdisp.c (QCdata): Moved here from xfns.c.
14163 (syms_of_xdisp): Initialize QCdata.
14164
14165 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
14166
14167 * window.c (coordinates_in_window): Use
14168 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
14169 FRAME_INTERNAL_BORDER_WIDTH.
14170
100b3cbb 14171 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 14172 it is obviously invalid.
100b3cbb
GM
14173
14174 * xterm.c (x_term_init): Create a colormap if not using the
14175 default visual.
14176
14177 * xterm.h (select_visual): Change prototype.
14178
14179 * xfns.c (select_visual): Rewritten. Recognize user-specified
14180 visual classes.
14181 (visual_classes): New variable.
14182
64d739c4
GM
141832000-03-04 Gerd Moellmann <gerd@gnu.org>
14184
14185 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
14186 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
14187 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 14188 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
14189 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
14190 XtNcolormap resources.
14191 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
14192 (Fx_create_frame): Initialize color members of x_output structure.
14193 (xpm_load): Pass colormap to XPM lib.
14194
14195 * xfaces.c (x_free_colors): Access colormap of frame using
14196 FRAME_X_COLORMAP. Be paranoid about freeing black and white
14197 when default colormap is used.
14198
14199 * xterm.c (x_term_init): Set Colormap member of x_display_info
14200 structure. Copy colormap if resource `privateColormap' is
14201 specified (PseudoColor only).
14202 (x_setup_relief_color): Access colormap of frame using
14203 FRAME_X_COLORMAP.
14204
14205 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
14206 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
14207
c3cee013
JR
142082000-03-04 Jason Rumney <jasonr@gnu.org>
14209
14210 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
14211 other non-platform-specific equivalents.
64d739c4 14212 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
14213 specific functions and macros as their w32 equivalents where
14214 non-platform-specifics are not available.
14215 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
14216 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
14217 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
14218 (frame_update_line_height): Use macros to access f->output_data.
14219 (defined_color): Remove FIXME comments; fixed.
14220 (x_face_list_fonts, prepare_face_for_display): Put X specifics
14221 into #ifdef blocks. Add WINDOWSNT blocks.
14222 (Fx_list_fonts): Use macros for accessing font data.
14223 (set_lface_from_font_name): Different default fonts for X and
14224 WINDOWSNT.
14225 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
14226 scalable for backward compatibility.
64d739c4 14227 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
14228 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
14229
64d739c4 14230 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
14231 syms_of_w32faces.
14232
14233 * makefile.nt (w32faces.obj): Remove.
14234 (xfaces.obj): Add.
14235
807cc41c
JR
142362000-03-03 Jason Rumney <jasonr@gnu.org>
14237
14238 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
14239 correct parameters.
14240
0007072a
KR
142412000-03-03 Ken Raeburn <raeburn@gnu.org>
14242
14243 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
14244 standard ELF definitions here if the system header does not.
14245
71a6ba55
GM
142462000-03-03 Gerd Moellmann <gerd@gnu.org>
14247
14248 * xterm.c (PER_CHAR_METRIC): Removed.
14249 (x_per_char_metric_1, x_default_char): New functions.
14250 (x_per_char_metric): If font's default char is invalid, return
14251 metrics of a suitably chosen usable default char.
14252 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
14253 char, replace occurrences of unprintable chars with a suitably
14254 chosen usable default char.
71a6ba55 14255
900fa1f1
GM
142562000-03-02 Gerd Moellmann <gerd@gnu.org>
14257
42f55fe0
GM
14258 * xterm.c (note_mouse_highlight): Return quickly if frame's
14259 glyph matrices have been freed.
14260
14261 * dispnew.c (free_glyphs): Block input while freeing matrices.
14262
900fa1f1
GM
14263 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
14264
52283633
SM
14265 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
14266 Use x_free_colors.
900fa1f1
GM
14267
14268 * dispextern.h (x_free_colors): Add prototype.
14269
14270 * xfaces.c (x_free_colors): New function.
14271 (unload_color, free_face_colors): Use it.
14272
2f950292
EZ
142732000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
14274
14275 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
14276
14277 * window.c [MSDOS]: Include msdos.h.
14278
54d04320
DL
142792000-03-02 Dave Love <fx@gnu.org>
14280
14281 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
14282
14283 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
14284 set C_OPTIMIZE_SWITCH for gcc.
14285
0ba93ac4
KH
142862000-03-02 Kenichi Handa <handa@etl.go.jp>
14287
14288 * coding.c (coding_save_composition): Be sure to allocate
14289 composition data area in coding even if there's no composition in
14290 the current run.
14291
a2bc11d4
JR
142922000-03-01 Jason Rumney <jasonr@gnu.org>
14293
14294 * w32term.c: Equivalent changes to those made to xterm.c on
14295 2000-02-25 and 2000-02-24.
14296
14297 * w32fns.c: Equivalent changes to those made to xfns.c on
14298 2000-02-25 and 2000-02-21.
14299
14300 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
14301 correct line-end convention is followed.
14302
14303 * w32menu.c [HAVE_BOXES]: Remove #undef.
14304 (single_keymap_panes): Remove code for simulating checkmarks.
14305 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
14306 Remove code for drawing simulated checkmarks.
14307 (w32_menu_show): make unibyte help string correctly.
14308 (add_menu_item): draw standard Windows checkmarks. Draw radio
14309 buttons as radio buttons if possible.
14310
72d19d75
GM
143112000-03-01 Gerd Moellmann <gerd@gnu.org>
14312
2df636f4
GM
14313 * sysdep.c (start_of_text): Don't define this function for NetBSD
14314 with ELF.
14315
427ec082 14316 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
14317 Don't define.
14318 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
14319 (LINKER): Don't undef if __NetBSD__ is defined.
14320
14321 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
14322
14323 * fileio.c [__NetBSD__]: Define `unix'.
14324
72d19d75
GM
14325 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
14326
ed4d0512
GM
143272000-02-29 Gerd Moellmann <gerd@gnu.org>
14328
50b1039f
GM
14329 * atimer.c (start_atimer): Don't abort when timers are stopped.
14330 (append_atimer_lists): New function.
14331 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
14332 arbitrary lists of stopped and running atimers.
14333
ed4d0512
GM
14334 * atimer.c (cancel_atimer): Handle canceling an atimer when
14335 some timers are stopped.
14336
14337 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
14338 after canceling it.
14339
14340 * fns.c (maybe_resize_hash_table): Handle case of new size
14341 coming out as being the same as old size.
14342
387023ee
JR
143432000-02-27 Jason Rumney <jasonr@gnu.org>
14344
14345 * makefile.nt: Add atimer.h to dependencies.
14346 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
14347 * w32console.c: Only disable window system features for dispextern.h
14348 (initialize_w32_display): Build a display info for the console.
14349 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
14350 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
14351 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
14352 as 2 button mice.
14353 * w32gui.h (struct W32FontStruct): Revert last change after change
14354 to xdisp.c.
14355 * w32menu.c (single_submenu): Set up help string.
14356 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
14357 (w32_dialog_show): Set up help string.
14358 * w32term.c (w32_display_info_for_display): Remove unused function.
14359 (w32_draw_bitmap): Use pre-built bitmaps.
14360 (w32_initialize_display_info): New function to initialize parts of
14361 display info that are common to both GUI and console frames.
14362 (w32_term_init): Use w32_initialize_display_info. Do not set
14363 Vw32_num_mouse_buttons here, as it is not called for console
14364 frames. Build bitmaps for indicating truncated lines etc.
14365 (x_delete_display): Destroy pre-built bitmaps.
14366 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
14367 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
14368
4516715a
DL
143692000-02-27 Dave Love <fx@gnu.org>
14370
14371 * lisp.h: Add a bunch of prototypes.
14372
171ca836
KH
143732000-02-26 Kenichi Handa <handa@etl.go.jp>
14374
14375 * keyboard.c (read_char): Set `usec' correctly.
14376
4013921d
KH
143772000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
14378
14379 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
14380 `lambda', set reg[RRR] to the map index.
14381 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
14382 reg[RRR] to 0. Otherwise, set it to -1.
14383
9244a058
GM
143842000-02-25 Gerd Moellmann <gerd@gnu.org>
14385
2df636f4 14386 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 14387
18e21ce8 143882000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 14389
f43d79c1
GM
14390 * fileio.c (Ffile_symlink_p): If result starts with a `/'
14391 and contains a `:', prepend `/:'.
14392
14393 * window.c (select_window_1): If selected_window is nil,
14394 don't "swap out" the buffer's point.
14395 (Fset_window_configuration): Set selected_window to nil
14396 before calling Fselect_window.
14397 (unshow_buffer): Don't set point in buffer from window's point
14398 if another more recently selected window also shows the buffer.
14399
bed0c171
GM
144002000-02-25 Gerd Moellmann <gerd@gnu.org>
14401
449c3c52
GM
14402 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
14403
f5b58615
GM
14404 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
14405 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
14406 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
14407 New variables.
f5b58615
GM
14408 (DEFAULT_BUSY_CURSOR_DELAY): New define.
14409 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
14410 (hide_busy_cursor): New functions.
14411 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
14412
14413 * minibuf.c (read_minibuf): Cancel busy-cursor.
14414
14415 * keyboard.c (command_loop_1): Call start_busy_cursor before
14416 Fcommand_execute and cancel_busy_cursor after it.
14417 (timer_check): Remove busy-cursor code.
14418 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
14419 cursor timer.
14420
14421 * process.c (wait_reading_process_input): Remove busy-cursor code.
14422
14423 * eval.c (Fsignal): Call cancel_busy_cursor instead of
14424 Fx_hide_busy_cursor.
14425
14426 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
14427 Remove prototyoes.
14428 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
14429
14430 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
14431
14432 * xterm.c (XTread_socket): Remove busy-cursor code.
14433
4eb8436f
GM
14434 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
14435 (build_frame_matrix_from_leaf_window): Put code handling
14436 glyph row's not being a slice of a frame row in #if 0.
14437 (sync_window_with_frame_matrix_rows): New function.
14438 (frame_row_to_window): New function.
14439 (mirror_line_dance): Handle copies between windows.
14440
3cb65b0e
GM
14441 * lread.c (Fload): Use `xfree' instead of `free'.
14442 (init_obarray): Use `xmalloc' instead of `malloc'.
14443
bed0c171
GM
14444 * window.c (Fset_window_buffer): Set WINDOW to the window
14445 after decoding.
2add4349
GM
14446 (coordinates_in_window): Take frame's internal border width
14447 into account.
bed0c171 14448
42088c12
GM
144492000-02-24 Gerd Moellmann <gerd@gnu.org>
14450
14451 * xterm.c (x_display_and_set_cursor): Display cursor of
14452 non-selected windows depending on the setting of
14453 cursor_in_non_selected_windows.
14454
14455 * xdisp.c (cursor_in_non_selected_windows): New variable.
14456 (syms_of_xdisp): DEFVAR_BOOL it.
14457
d1e103b2
GM
144582000-02-23 Gerd Moellmann <gerd@gnu.org>
14459
723e779c
GM
14460 * data.c (Fstring_to_number): If number is greater than what
14461 fits into an integer, return a float.
14462
d1e103b2
GM
14463 * eval.c (specbind): Remove references to
14464 keyword_symbols_constant_flag.
14465
14466 * data.c (keyword_symbols_constant_flag): Removed.
14467 (Fmakunbound, set_internal, syms_of_data): Remove references to
14468 keyword_symbols_constant_flag.
14469
14470 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
14471
214f877f
KH
144722000-02-23 Kenichi Handa <handa@etl.go.jp>
14473
14474 * syntax.c (multibyte_syntax_as_symbol): New variable.
14475 (syms_of_syntax): Declare it as a Lisp variable.
14476 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
14477 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
14478 nonzero, treat all multibyte characters as symbol.
52283633 14479 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 14480
130adcb7
EZ
144812000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
14482
3cb65b0e 14483 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 14484 a deleted frame.
130adcb7 14485
17cbbf95
GM
144862000-02-21 Gerd Moellmann <gerd@gnu.org>
14487
14488 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
14489
14490 * xfns.c (x_window_to_frame, x_any_window_to_frame)
14491 (x_non_menubar_window_to_frame): Check the busy-cursor window.
14492
beb0bc36
DL
144932000-02-21 Dave Love <fx@gnu.org>
14494
14495 * frame.c (Vmouse_position_function): New variable.
14496 (Fmouse_position): Use it.
14497 (syms_of_frame): Install it.
14498
14499 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
14500
1d92afcd
GM
145012000-02-20 Gerd Moellmann <gerd@gnu.org>
14502
14503 * fileio.c (Finsert_file_contents): Unbind the binding of
14504 standard-output done by temp_output_buffer_setup.
329eed9f
GM
14505
14506 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
14507 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
14508 (specbind, unbind_to): Handle most common case of non-constant
14509 symbol with trivial value specially.
14510
14511 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
14512
18e21ce8 145132000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
14514
14515 * data.c (Fmake_variable_buffer_local): Doc fix.
14516 Init found_for_buffer to 0.
14517 (Fmake_variable_frame_local): If the variable has already
14518 been buffer-local, set the check_frame field.
14519
1d4311c3
EZ
145202000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
14521
14522 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
14523 produced for CODING_MODE_LAST_BLOCK requires.
14524
2dc95ddd
DL
145252000-02-18 Dave Love <fx@gnu.org>
14526
14527 * keyboard.c (echo_keystrokes): Remove declaration.
14528 (Vecho_keystrokes) New variable.
14529 (read_char, record_menu_key, read_key_sequence): Use it to allow
14530 use of float value.
14531 (syms_of_keyboard): Change Vecho_keystrokes declaration.
14532
14533 * lread.c: Undef feature selection macros before defining.
14534
f0930f35
GM
145352000-02-18 Gerd Moellmann <gerd@gnu.org>
14536
14537 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
14538 for symbols other than the symbol in question.
14539
e3d4de90
DL
145402000-02-17 Dave Love <fx@gnu.org>
14541
14542 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
14543
0b378936
GM
145442000-02-17 Gerd Moellmann <gerd@gnu.org>
14545
d621caf7
GM
14546 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
14547
0b378936
GM
14548 * alloc.c (enum mem_type): Compile unconditionally.
14549
3b451f74
EZ
145502000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
14551
14552 * xfaces.c (tty_defined_color): Don't return faulire indication
14553 for unspecified-fg and unspecified-bg pseudo-colors.
14554
10689a01
GM
145552000-02-17 Gerd Moellmann <gerd@gnu.org>
14556
1216f5e4
GM
14557 * alloc.c (mark_object): Don't mark symbol names in pure space.
14558 (gc_sweep): Don't unmark symbol names in pure space.
14559
14560 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
14561 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
14562 [GC_MARK_STACK]: New defines.
427ec082 14563 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
14564 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
14565
14566 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
14567
14568 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
14569 allocate_buffer instead of xmalloc.
14570
14571 * alloc.c (toplevel): Include setjmp.h.
14572 (PURE_POINTER_P): New define.
14573 (enum mem_type) [GC_MARK_STACK]: New enumeration.
14574 (Vdead) [GC_MARK_STACK]: New variable.
14575 (lisp_malloc): Add parameter TYPE, call mem_insert if
14576 GC_MARK_STACK is defined.
14577 (allocate_buffer): New function.
427ec082 14578 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
14579 (free_float) [GC_MARK_STACK]: Set type to Vdead.
14580 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
14581 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
14582 (MEM_NIL) [GC_MARK_STACK]: New define.
14583 (struct mem_node) [GC_MARK_STACK]: New structure.
14584 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
14585 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
14586 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
14587 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
14588 (mark_stack) [GC_MARK_STACK]: New functions.
14589 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
14590 (clear_marks): Removed.
14591 (gc_sweep): Set free conses' car, free floats' type, free
14592 symbols' function to Vdead. Use lisp_free to free buffers.
14593 (init_alloc_once): Initialize Vdead.
14594 (survives_gc_p): Return non-zero for pure objects.
14595
14596 * alloc.c: Add comments throughout the file.
14597
2503c8b1
GM
14598 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
14599 that unblocks alarms.
14600
8389e1e2
GM
14601 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
14602 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
14603 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
14604
10689a01 14605 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 14606
bfc17d18
KH
146072000-02-17 Kenichi Handa <handa@etl.go.jp>
14608
4a09dee0
KH
14609 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
14610 avoid infinite error signaling. Allocate sufficient memory for
14611 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 14612
2b927d02
SM
146132000-02-17 Stefan Monnier <monnier@cs.yale.edu>
14614
14615 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
14616 depends on the previous behavior.
14617
b49cb764
GM
146182000-02-16 Gerd Moellmann <gerd@gnu.org>
14619
14620 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
14621
99e95407
GM
146222000-02-15 Gerd Moellmann <gerd@gnu.org>
14623
14624 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
14625
14626 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 14627 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
14628 write(2).
14629
6ffd3cf7
RS
146302000-02-15 Richard M. Stallman <rms@gnu.org>
14631
14632 * data.c (set_internal): Don't make variable buffer-local
14633 if within a let-binding for the same buffer.
14634 (let_shadows_buffer_binding_p): New function.
14635
14636 * eval.c (specbind): For buffer-local value,
14637 record the current buffer also.
14638 (unbind_to): Cope with that change.
14639
cad53475
GM
146402000-02-15 Gerd Moellmann <gerd@gnu.org>
14641
14642 * window.c (Fsave_window_excursion): Doc fix.
14643
1aa963c8
SM
146442000-02-15 Stefan Monnier <monnier@cs.yale.edu>
14645
14646 * syntax.c (back_comment): Make sure we only consider comment-starters
14647 of the relevant style and return -1 in case of a failure to find the
14648 beginning of the comment.
14649 (Fforward_comment): If back_comment fails, go back to the position just
14650 after the comment-end.
14651 (scan_lists): Add comment describing a very minor bug.
14652
b9b84fd3
SM
146532000-02-14 Stefan Monnier <monnier@cs.yale.edu>
14654
14655 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
14656 `completion-regexp-list' in the docstring.
14657
3a28db80
DL
146582000-02-14 Dave Love <fx@gnu.org>
14659
14660 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
14661
fb4a568d
SM
146622000-02-14 Stefan Monnier <monnier@cs.yale.edu>
14663
14664 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
14665 to Emacs' syntax. Also fix the comment about set/not-set meanings
14666 since Emacs syntax is not the value 0 any more.
14667 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
14668 since it's now part of RE_SYNTAX_EMACS.
14669
1063ebb5
DL
146702000-02-12 Dave Love <fx@gnu.org>
14671
52283633 14672 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 14673
fb07a302
GM
146742000-02-12 Gerd Moellmann <gerd@gnu.org>
14675
14676 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
14677
aaf2320c
DL
146782000-02-12 Dave Love <fx@gnu.org>
14679
14680 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
14681
14682 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
14683 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
14684 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
14685
14686 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
14687
14688 * s/nextstep.h: Don't define HAVE_ALLOCA.
14689
14690 * config.in: Add vfork bits.
14691
eedf8bde
GM
146922000-02-12 Gerd Moellmann <gerd@gnu.org>
14693
14694 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
14695 unwind function to undo the effect of stopping atimers.
14696
52283633 14697 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
14698
14699 * atimer.c (stopped_atimers): New variable.
14700 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
14701 New functions.
14702
14703 * atimer.h (stop_other_atimers, run_all_atimers)
14704 (unwind_stop_other_atimers): Add function prototypes.
427ec082 14705
eedf8bde
GM
14706 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
14707
8476c2f8
KR
147082000-02-11 Ken Raeburn <raeburn@gnu.org>
14709
14710 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
14711 library may depend on jpeg.
14712 (atimer.o): Depends on atimer.c.
14713
0e85e4a3
KH
147142000-02-11 Kenichi Handa <handa@etl.go.jp>
14715
14716 * insdel.c (del_range_1): Call update_compositions.
14717 (del_range_both): Call update_compositions just once..
14718
97fa0cc8
DL
147192000-02-10 Dave Love <fx@gnu.org>
14720
14721 * xfns.c (create_frame_xic): Fix initialization of automatic
14722 aggregates for pcc.
14723
25566a3c
KH
147242000-02-09 Kenichi Handa <handa@etl.go.jp>
14725
14726 * ccl.c (CCL_MAKE_CHAR): New macro.
14727 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
14728 registers by CCL_MAKE_CHAR before calling translate_char.
14729 <CCL_TranslateCharacterConstTbl> Likewise.
14730
69da54ba
DL
147312000-02-08 Dave Love <fx@gnu.org>
14732
14733 * lread.c (__EXTENSIONS__): Define.
14734
f7136ee8
GM
147352000-02-08 Gerd Moellmann <gerd@gnu.org>
14736
14737 * puresize.h (BASE_PURESIZE): Increase to 650000.
14738
7768790b
EZ
147392000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
14740
14741 * msdos.c (XMenuActivate): Turn off the cursor after displaying
14742 the help message.
14743
38fd211b
EZ
147442000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
14745
14746 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
14747 md, mh, mb, mr, and me to the fake termcap entry.
14748
66e4690f
KR
147492000-02-06 Ken Raeburn <raeburn@gnu.org>
14750
14751 * sound.c (sound_cleanup): Don't call device close routine if the
14752 function pointer is null.
14753
a75dfea0
AI
147542000-02-06 Andrew Innes <andrewi@gnu.org>
14755
14756 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
14757 around image definitions and prototypes.
14758 (gamma_correct) [WINDOWSNT]: New prototype.
14759
14760 * w32term.c (x_make_frame_visible): Replace call to
14761 input_poll_signal with poll_for_input.
14762
14763 * window.c [WINDOWSNT]: Include w32term.h.
14764
14765 * xdisp.c [WINDOWSNT]: Include w32term.h.
14766
14767 * makefile.nt: Add dependencies on w32gui.h.
14768 (OBJ1): Include atimer.obj.
14769 ($(BLD)\atimer.obj): New dependency rule.
14770
14771 * w32.c (sigmask): New function (does nothing).
14772 (sigunblock): Ditto.
14773
14774 * frame.c [WINDOWSNT]: Include w32term.h.
14775
14776 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
14777
14778 * lread.c (syms_of_lread): Fix literal newlines.
14779
14780 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
14781 the string constant limit (2048 bytes) in MSVC.
14782 (main): Ditto.
14783
59ddecde
GM
147842000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
14785
52283633 14786 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
14787 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
14788 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
14789 dispatch the event.
14790
07590973
DL
147912000-02-04 Dave Love <fx@gnu.org>
14792
14793 * fileio.c: Remove some unused vars.
14794 (_GNU_SOURCE): Define (for euidaccess).
14795
14796 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
14797
14798 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
14799 gcpro1, gcpro2.
14800 (read_minibuf): Deal with allow_props correctly.
14801
649351f9
EZ
148022000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
14803
14804 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
14805
66e4690f 148062000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
14807
14808 * search.c (compile_pattern): If a cache entry has a nil regexp,
14809 fill in that entry instead of clobbering a previously cached
14810 string regexp.
14811
66e4690f 148122000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
14813
14814 * puresize.h (BASE_PURESIZE): Increase to 610000.
14815
d240a249
GM
148162000-02-02 Gerd Moellmann <gerd@gnu.org>
14817
14818 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
14819 can GC.
14820
ca91fb26
KH
148212000-02-02 Kenichi Handa <handa@etl.go.jp>
14822
25660570
KH
14823 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
14824 instead of incrementing ic directly.
14825 <CCL_WriteExprConst> Likewise.
14826 <ccl_set_expr>: Set ic to jump_address.
14827
ca91fb26
KH
14828 * fileio.c (e_write): Fix the handling of
14829 CODING_FINISH_INSUFFICIENT_SRC.
14830
2ede9689
DL
148312000-02-01 Dave Love <fx@gnu.org>
14832
14833 * editfns.c (Fpropertize): Doc fix.
14834
14835 * process.c (Fstart_process): Doc fix.
14836
14837 * eval.c: Fix various doc strings not to duplicate information
14838 from help-manyarg-func-alist.
14839
52283633 14840 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
14841
14842 * doc.c (Vhelp_manyarg_func_alist): New variable.
14843 (Fdocumentation): Use it.
14844 (syms_of_doc): Define it.
14845
b6680a0e
GM
148462000-01-31 Gerd Moellmann <gerd@gnu.org>
14847
2cb750ba
GM
14848 * xterm.c (xim_open_dpy): Remove unused local variable.
14849
52283633 14850 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
14851
14852 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
14853 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
14854
b6680a0e
GM
14855 * fns.c (sweep_weak_table): New function.
14856 (sweep_weak_hash_tables): Use it. Keep on marking until there
14857 is no more change.
14858
994c5afe
GM
148592000-01-30 Gerd Moellmann <gerd@gnu.org>
14860
14861 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
14862 that XTread_socket does not crash by trying to call XNoOp on a
14863 closed display.
427ec082 14864
f00276e3
JR
148652000-01-30 Jason Rumney <jasonr@gnu.org>
14866
14867 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
14868 Change selected_frame to SELECTED_FRAME ().
14869 (w32_console_mouse_position): Remove #ifndef MULE from around
14870 `insist' parameter.
14871
14872 * makefile.nt: Remove dosfns.obj.
14873
14874 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
14875
14876 * w32fns.c (w32_defined_color): Check for valid frame before
14877 applying gamma correction. Eliminate dependency on frame elsewhere.
14878 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
14879 (w32_to_x_font): Use resx and resy not height_in and width_in.
14880 (x_to_w32_font): Doc fix.
14881 (xlfd_strip_height): New function to strip and return font height.
14882 (w32_font_match): Compare height separately from rest of xlfd
14883 spec, using xlfd_strip_height.
14884
14885 * w32term.c (w32_term_init): Swap resx and height_in, resy and
14886 width_in. Use w32_defined_color in place of defined_color.
14887
14888 * w32faces.c: Merge more of DOS and X specifics in preparation for
14889 merge with xfaces.c.
14890 (defined_color): Remove FIXME comment.
14891 (tty_color_name): Provide w32-specific function.
14892 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
14893
14894 * w32console.c (turn_on_face, turn_off_face): Removed.
14895 (w32_face_attributes): New function.
14896 (Global_variables): Reduce scope where possible.
14897 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
14898 fill attribute.
14899 (hl_mode): Don't modify text attributes.
14900 (write_glyphs): Don't do anything if len <= 0. Use
14901 w32_face_attributes to get attributes for drawing. Write
14902 terminating codes using char_attr_normal.
14903 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
14904 (update_begin, update_end): Likewise.
14905 (vga_stdcolor_name): New function.
14906 (initialize_w32_display): Remove char_attr_reverse and char_attr.
14907 (Fset_screen_color): Remove char_attr_reverse.
14908
b08e8bb2
GM
149092000-01-29 Gerd Moellmann <gerd@gnu.org>
14910
14911 * xfns.c (xic_set_preeditarea): Take window parameter and
14912 window-relative pixel-positions.
14913
14914 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
14915 is its frame's selected window.
14916 (xim_instantiate_callback): Likewise.
14917
14918 * xfns.c (x_create_im): Removed.
14919 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
14920 (supported_xim_styles): Renamed from supported_styles.
14921 (best_xim_style): Renamed from best_style.
14922 (create_frame_xic): Renamed from xic_create_frame.
14923 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 14924
b08e8bb2
GM
149252000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
14926
14927 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
14928 our frames, call XFilterEvent with 2nd parameter `None'.
14929 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
14930 returning XBufferOverflow.
52283633 14931 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
14932 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
14933 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
14934 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
14935 (xim_initialize, xim_close)
14936 [HAVE_X_I18N && HAVE_X11R6]: New functions.
14937 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
14938 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
14939 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
14940
14941 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
14942 and `xim_styles'.
14943 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
14944 `xic_style' and `xic_xfs'.
14945 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
14946 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
14947 (FRAME_XIM): Removed.
14948
14949 * xfns.c (supported_styles): New variable.
14950 (DEFAULT_STYLE, DEFAULT_FONT): New macros
14951 (xic_create_xfontset, best_style, xic_create_frame)
14952 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
14953 (xic_set_xfontset): New functions.
14954
142e109c
DL
149552000-01-28 Dave Love <fx@gnu.org>
14956
14957 * s/irix6-5.h: Revert last change after change to irix5-0.h.
14958
14959 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
14960
b02786f9
GM
149612000-01-28 Gerd Moellmann <gerd@gnu.org>
14962
d060bc9f
GM
14963 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
14964 for *scratch* if it already existed.
14965
b02786f9
GM
14966 * emacs.c (USAGE): New macro.
14967 (main): Use it to display usage information.
14968
2c52d7e4
EZ
149692000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
14970
14971 Support for the menu-help feature:
14972
52283633 14973 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
14974
14975 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
14976 part of the line to the termscript file.
14977 (IT_clear_to_end): Clear the entire line, not just its beginning.
14978 (menu_help_message, prev_menu_help_message): New variables.
14979 (IT_menu_make_room): Make room for the help_text member.
14980 (IT_menu_display): New argument disp_help; all callers changed.
14981 If disp_help is non-zero, store the help text of the active menu
14982 item in menu_help_message.
14983 (XMenuAddPane): Initialize the help_text member to NULL.
14984 (XMenuAddSelection): New argument help_text. Store it in the
14985 XMenu structure.
14986 (XMenuActivate): New argument help_callback. If the value of
14987 menu_help_message has changed since the last time, display the
14988 menu help message text while waiting for the mouse to move. Clear
14989 the echo area before exiting.
14990 (XMenuDestroy): Free the help_text member.
14991
ffe0bcd1
GM
149922000-01-27 Gerd Moellmann <gerd@gnu.org>
14993
14994 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
14995 XMenuAddSelection. Pass help callback to XMenuActivate.
14996 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
14997
50dbd23f
EZ
149982000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
14999
15000 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
15001 and EMACS_SET_USECS.
15002
f5941bf8
GM
150032000-01-26 Dave Love <fx@gnu.org>
15004
6c67ddee
DL
15005 * editfns.c (Fchar_after, Fchar_before): Doc fix.
15006
f5941bf8
GM
15007 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
15008 an error may be signalled.
15009
9e49c990
GM
150102000-01-26 Gerd Moellmann <gerd@gnu.org>
15011
fc3cb460
GM
15012 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
15013 LD_SWITCH_SYSTEM inherited from irix5-0.h.
15014
9e49c990
GM
15015 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
15016
d0c037d8
GM
150172000-01-25 Gerd Moellmann <gerd@gnu.org>
15018
15019 * charset.c (Fstring): If there is a multibyte char among
15020 the args, always return a multibyte string.
15021
e12489f9
GM
150222000-01-25 Gerd Moellmann <gerd@gnu.org>
15023
15024 * sysdep.c (sys_select): Turn atimers off and on instead of
15025 recording and restoring old alarm handler
15026
15027 * process.c (toplevel): Include atimer.h.
15028 (create_process_1): Rewritten.
15029 (create_process): Use atimers instead of alarm.
15030 (wait_reading_process_input) [hpux]: Turn atimers off instead
15031 of turning off SIGALRM.
15032 (wait_reading_process_input): Turn off atimers instead off
15033 calling stop_polling.
15034
15035 * emacs.c (main): Call init_atimer.
15036
15037 * keyboard.c (toplevel): Include systime.h and atimer.h.
15038 (polling_for_input): Removed because unused.
15039 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
15040 (poll_timer): New variable.
15041 (poll_for_input, poll_for_input_1): New functions.
15042 (start_polling, stop_polling): Rewritten.
15043
15044 * keyboard.h (polling_for_input): Removed.
427ec082 15045
e12489f9
GM
15046 * atimer.h, atimer.c: New files.
15047
15048 * Makefile.in (obj): Add atimer.o.
15049 (atimer.o): New target.
15050
15051 * blockinput.h (pending_atimers): Add extern declaration.
15052 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
15053
15054 * lisp.h (popup_activated_flag): Add extern declaration.
15055
15056 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 15057 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
15058 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
15059
15060 * xterm.c (toplevel): Include atimer.h.
15061 (toolkit_scroll_bar_interaction): New variable.
15062 (Fxt_process_timeouts): Removed.
15063 (x_process_timeouts): New function.
15064 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
15065 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
15066 (x_make_frame_visible): Call poll_for_input_1 instead of
15067 input_poll_signal. Don't call alarm.
15068 (x_initialize): Install timer calling x_process_timeouts.
427ec082 15069
1e5279b9
DL
150702000-01-24 Dave Love <fx@gnu.org>
15071
6c67ddee 15072 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
15073 Don't use -cckr -- apparently not now necessary.
15074
edf6aeb8
EZ
150752000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
15076
15077 * msdos.c (IT_menu_display): Truncate long menu lines at the right
15078 screen boundary.
15079
9badad41
JR
150802000-01-23 Jason Rumney <jasonr@gnu.org>
15081
15082 * w32fns.c (w32_defined_color): Apply gamma correction before
15083 trying to map to the palette.
15084 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
15085 to w32_clear_rect.
15086
15087 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
15088 here. Callers changed to always pass real device context.
15089 (w32_draw_bitmap): Likewise.
15090 (w32_get_glyph_overhangs): Likewise.
52283633 15091 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
15092 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
15093 pfnSetScrollInfo and SetScrollRange.
15094 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
15095 back into MULE characters after decoding them.
15096 (x_get_glyph_face_and_encoding): Likewise.
15097 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
15098 GetCharABCWidthsW fails, since this is defined on Windows 9x.
15099 (x_produce_glyphs): Calculate per char metrics for a character
15100 that we know exists in default font when font_not_found_p is true.
15101
63bd786b
JR
151022000-01-22 Jason Rumney <jasonr@gnu.org>
15103
15104 * makefile.nt (intervals.obj, composite.obj): New modules.
15105 (composite.h): Added as dependency where appropriate.
15106
15107 * w32gui.h (XGCValue): New struct for emulating X GCs.
15108
15109 * w32term.h (XCharStruct): New struct for emulating X.
15110
15111 * w32console.c (turn_on_face, turn_off_face): New functions.
15112 (change_line_highlight): New prototype for new redisplay.
15113 (write_glyphs): Support multibyte text. Support faces.
15114
52283633 15115 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
15116
15117 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
15118 throughout. struct frame * in place of FRAME_PTR.
15119 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 15120 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
15121 (w32_get_arg): Renamed from x_get_arg.
15122 (Fx_file_dialog): New function.
15123 (w32_list_fonts): Check cache before asking system.
15124 (Vw32_enable_synthesized_fonts): New variable.
15125 (Vw32_enable_italics): Obsolete, removed.
15126
15127 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
15128 Use SELECTED_FRAME macro.
15129
15130 * w32menu.c: Add skeleton support for help strings on menus.
15131 (add_menu_item): Native checkbox and radio support added, but not
15132 yet enabled due to bugs.
15133 (push_menu_item): Add parameters type, selection and help.
15134 Callers updated.
15135 Formatting changes to reduce unnecessary diffs with xmenu.c.
15136
15137 * w32select.c (Fw32_set_clipboard_data): Update call to
15138 find_charset_in_str.
15139
15140 * w32term.c: Complete rewrite for new redisplay based on new
15141 xterm.c with necessary sections merged back in from old w32term.c.
15142
6ffd3cf7 151432000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
15144
15145 * data.c (set_internal): Further fix in same criterion.
15146
6ffd3cf7 151472000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
15148
15149 * data.c (set_internal): Fix the criteria for whether
15150 to swap out the old cached binding.
15151
60af03f1
DL
151522000-01-19 Dave Love <fx@gnu.org>
15153
15154 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
15155
f9be074f
KH
151562000-01-18 Kenichi Handa <handa@etl.go.jp>
15157
15158 * regex.c (re_compile_fastmap): While checking a range table for
15159 `charset', skip flag bits for a character class correctly.
15160
52b8dbf9
GM
151612000-01-17 Gerd Moellmann <gerd@gnu.org>
15162
d36100c9
GM
15163 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
15164
52283633 15165 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
15166
15167 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 15168 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
15169
15170 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
15171 MENU_ITEMS_ITEM_.*.
15172 (MENU_ITEMS_ITEM_HELP): New enumerator.
15173 (push_menu_item): Add parameter HELP. Record help in menu_items.
15174 (single_menu_item, single_submenu, list_of_items): Call
15175 push_menu_item with new parameter.
15176 (single_submenu): Set help string in widget value.
15177 (menu_highlight_callback): New function.
15178 (set_frame_menubar): Call lw_create_widget with new
15179 parameter list.
15180 (xmenu_show, xdialog_show): Ditto.
15181
3139018f
GM
151822000-01-13 Gerd Moellmann <gerd@gnu.org>
15183
15184 * sound.c (Fplay_sound): Improve doc string.
15185
83c8f461
RS
151862000-01-11 Richard M. Stallman <rms@gnu.org>
15187
15188 * lisp.h (set_internal): Enter the new arg.
15189
15190 * eval.c (specbind): Record buffer-local variables specially,
15191 indicating which buffer's binding was saved.
15192 (unbind_to): Restore buffer-local variables specially
15193 in the proper buffer.
15194
15195 * data.c (set_internal): New arg BUF.
427ec082 15196
83c8f461
RS
15197 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
15198 * data.c (Fset): Pass new arg to set_internal.
15199 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 15200
1fab1775
GM
152012000-01-11 Gerd Moellmann <gerd@gnu.org>
15202
52283633 15203 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 15204
83c8f461 152052000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
15206
15207 * minibuf.c (Ftry_completion): Doc fix.
15208
7a85e4df
GM
152092000-01-11 Gerd Moellmann <gerd@gnu.org>
15210
15211 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
15212 vector, too.
15213
a970dae4
AS
152142000-01-11 Andreas Schwab <schwab@suse.de>
15215
15216 * coding.c (code_convert_region): Initialize total_skip.
15217
c65d14ee
DL
152182000-01-08 Dave Love <fx@gnu.org>
15219
15220 * eval.c (Fuser_variable_p): Check customizability too.
15221
834938d2
GM
152222000-01-07 Gerd Moellmann <gerd@gnu.org>
15223
15224 * minibuf.c (Fcompleting_read): Doc fix.
15225
e0303cd6
GM
152262000-01-05 Gerd Moellmann <gerd@gnu.org>
15227
8a26744b
GM
15228 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
15229 -L /usr/local/lib.
15230
e0303cd6
GM
15231 * xfns.c (x_create_im): New function to set IM and IC of a frame.
15232 Check that input style is supported before trying to create an
15233 IC for it.
15234 (x_window): Call x_create_im.
427ec082 15235
2e471eb5
GM
152362000-01-04 Gerd Moellmann <gerd@gnu.org>
15237
560a7bd2
GM
15238 * xfns.c (current_gif_memory_src): New variable.
15239 (gif_load): Record the address of the current memory source
15240 in current_gif_memory_src.
15241 (gif_read_from_memory): Use current_gif_memory_src.
15242
f9ee84a3
GM
15243 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
15244 macros statement form.
15245
d1299cde
GM
15246 * sound.c (struct sound): Renamed from struct sound_file.
15247 (struct sound): Add members `data' and `header_size'.
15248 (enum sound_attr): Add SOUND_DATA.
15249 (current_sound, current_sound_device): Variables renamed from
15250 sound_file and sound_device.
15251 (parse_sound): Parse :data.
15252 (parse_sound): Handle sound data in strings.
15253 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 15254 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
15255 needed header size.
15256 (wav_play, au_play): Play sounds from string data.
15257
2e471eb5
GM
15258 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
15259
15260 * lisp.h: Add prototype for allocate_string_data.
15261
52283633 15262 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
15263
15264 * alloc.c (mark_buffer): Remove code in #if 0.
15265 (gc_sweep): Ditto.
15266 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
15267 (strings_consed): New variable.
15268 (allocate_string): Set it.
15269 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
15270 (Fmemory_use_counts): Return strings_consed. Use Flist.
15271
15272 * alloc.c: General cleanup in comments etc. Remove conditional
15273 compilation for `standalone'.
15274
15275 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
15276
15277 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
15278 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
15279 (DONT_COPY_FLAG): Removed.
15280 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
15281 (struct sdata, struct sblock): New
15282 (struct string_block): Rewritten.
15283 (STRINGS_IN_STRING_BLOCK): New macro.
15284 (oldest_sblock, current_sblock, total_strings, total_free_strings)
15285 (large_sblocks, string_blocks, string_free_list): New variables.
15286 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
15287 (init_strings): Rewritten.
15288 (allocate_string, allocate_string_data, compact_small_strings)
15289 (free_large_strings, sweep_strings): New functions.
15290 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
15291 (struct string_block_head, current_string_block)
15292 (first_string_block, large_string_blocks, STRING_FULLSIZE)
15293 (STRING_PAD): Removed.
15294 (make_uninit_multibyte_string, make_pure_string): Rewritten.
15295 (Fgarbage_collect): Don't set mark bit in large strings.
15296 (mark_object): Mark strings differently. Mark symbol names
15297 differently.
15298 (survives_gc_p): Test marked strings differently.
427ec082 15299 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
15300 symbol names.
15301 (compact_strings): Removed.
15302
42608ba8
EZ
153032000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
15304
15305 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
15306 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
15307
e0a09e1a
KH
153082000-01-04 Kenichi Handa <handa@etl.go.jp>
15309
dd9f0750 15310 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 15311 in a non-empty buffer.
dd9f0750 15312
3c0f3b15 15313 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 15314
44cd3ae5
GM
153152000-01-03 Gerd Moellmann <gerd@gnu.org>
15316
15317 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
15318 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
15319
15320 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
15321
c182a70f
EZ
153222000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15323
15324 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
15325 need to test for MSDOS frames.
15326
24480d5b
EZ
153272000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15328
15329 * dosfns.c (unspecified_colors): Remove.
15330 (msdos_stdcolor_idx): Use global variables unspecified_fg and
15331 unspecified_bg.
15332 (msdos_stdcolor_name): Return strings for unspecified fore- and
15333 back-ground colors.
15334
15335 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 15336 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
15337 (tty_color_name): Return Lisp strings for unspecified fore- and
15338 back-ground colors.
15339 (Finternal_set_lisp_face_attribute): Remove the special treatment
15340 for Qunspecified_{f,b}g.
52283633 15341 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 15342
047f434a
GM
153432000-01-03 Gerd Moellmann <gerd@gnu.org>
15344
15345 * xdisp.c (reseat_at_next_visible_line_start): Position before
15346 newline only if ending up on a newline.
15347 (next_element_from_ellipsis): Return success. Handle case of
52283633 15348 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
15349 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
15350 returns 0.
15351
d684c676
EZ
153522000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
15353
15354 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
15355 (Fcolor_supported_p): Renamed from face-color-supported-p.
15356
5fe1d139
EZ
153572000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15358
15359 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
15360 list of colors renamed to tty-defined-color-alist.
15361 (tty_color_name): Pass the frame to tty-color-by-index.
15362 (realize_tty_face): tty-color-alist is now a function which
15363 accepts the frame as argument.
15364
52283633 15365 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 15366
816be8b8
EZ
153672000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15368
15369 * term.c (insert_glyphs): Pass glyph, not &glyph, to
15370 encode_terminal_code.
15371
b635321e
EZ
153722000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
15373
15374 * dispnew.c (mode_line_string): Support termcap frames as well.
15375
9b784e96
GM
153762000-01-01 Gerd Moellmann <gerd@gnu.org>
15377
27189709
GM
15378 * syntax.c (Fforward_word): Undo previous change.
15379
15380 * editfns.c (Fconstrain_to_field): Don't constrain if
15381 inhibit-field-text-motion is non-nil.
15382 (Fline_beginning_position): Undo previous change.
15383 (Fline_end_position): Ditto.
15384
15385 * syntax.c (Fforward_word): Notice field boundaries only if
15386 inhibit-field-text-motion is nil.
15387
15388 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
15389
15390 * editfns.c (Vinhibit_field_text_motion): New variable.
15391 (inhibit-field-text-motion): New DEFVAR_LISP.
15392 (Fline_beginning_position, Fline_end_position): Notice field
15393 boundaries only if inhibit-field-text-motion is nil.
15394
45158a91
GM
15395 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
15396 All calls adjusted.
15397 (x_build_heuristic_mask): Likewise.
15398 (xbm_load_image_from_file): Change error output.
15399 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
15400 (gif_load, gs_load, x_kill_gs_process): Ditto.
15401
9b784e96
GM
15402 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
15403 color indices when accessing raster pixels.
63cec32f
GM
15404 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
15405 one of :file or :data.
15406 (enum pbm_keyword_index): Add PBM_DATA.
15407 (pbm_format): Add :data.
15408 (pbm_image_p): Allow either :file or :data.
15409 (pbm_read_file): New function.
15410 (pbm_scan_number): Rewritten to read from string.
15411 (pbm_load): Support :data.
9b784e96 15412
2cb085db 15413See ChangeLog.8 for earlier changes.
6922b018
KH
15414
15415;; Local Variables:
49b3bd82 15416;; coding: iso-2022-7bit
6922b018 15417;; End:
2a34a036
GM
15418
15419 Copyright (C) 2001 Free Software Foundation, Inc.
15420 Copying and distribution of this file, with or without modification,
15421 are permitted provided the copyright notice and this notice are preserved.