(EXEC_SUFFIXES): Remove.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
d19be8a9
PJ
12001-10-14 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
2
04d7d066
PJ
3 * lisp.h (Ftop_level): Add prototype.
4
d624284c
PJ
5 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
6 (XTread_socket): Improve style of comments to follow other
7 comments.
8
a87414f9
PJ
9 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it
10 is already prototyped in included lisp.h).
11
d19be8a9
PJ
12 * frame.c (Fset_mouse_position): Improve style of comment to
13 follow other comments.
14 (Fset_mouse_pixel_position): Improve style of comment to follow
15 other comments.
16 (Fmake_frame_visible): Doc fix and typo in comment.
17 (Fmake_frame_invisible): Doc fix and typo in comment.
18 (Ficonify_frame): Fix typo in comment.
19
c061c855
GM
202001-10-14 Gerd Moellmann <gerd@gnu.org>
21
37f6b5b6 22 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c
228299fa 23 * term.c, alloc.c: Put doc strings in comments.
c061c855 24
e641b454
GM
252001-10-13 Gerd Moellmann <gerd@gnu.org>
26
27 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]:
28 Provide definitions for doc strings in comments.
29
30 * fns.c: Put doc strings in comments.
31
51724e26
EZ
322001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
33
34 * dired.c (file_name_completion): Ignore a candidate directory if
35 it matches an element in completion-ignored-extensions that ends
36 in a slash.
37 (syms_of_dired) <completion-ignored-extensions>: Mention the above
38 feature in the doc string.
39 (Ffile_name_completion): Ditto.
40
be5fc59b
SM
412001-10-12 Stefan Monnier <monnier@cs.yale.edu>
42
5a1373f3
SM
43 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
44
45 * xfns.c (syms_of_xfns): Update calls to Fprovide.
46
47 * lisp.h (Fprovide): Update prototype.
48 (Ffeaturep, invisible_p): Remove.
49
bbc4a3d3 50 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
5a1373f3
SM
51 (DOLIST, LOOP_PROPVAL): New macros.
52 (invisible_p, invisible_ellipsis_p): Use them.
53 (invisible_noellipsis_p): New function.
54 (syms_of_xdisp): Use empty_string.
55
56 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
57
58 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
59 (syms_of_lread) <Vafter_load_alist>: Update docstring.
60
61 * print.c (Fwith_output_to_temp_buffer): Align with
62 internal_with_output_to_temp_buffer.
63 (print_preprocess): Use traverse_intervals_noorder.
64 (print_object): Update call to traverse_intervals.
65
66 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
67 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
68
69 * intervals.c (traverse_intervals_noorder): New function.
70 (search_for_interval, count_intervals): Use it.
71 (traverse_intervals): Use less stack space and drop `depth' arg.
72
73 * fns.c (Ffeaturep): Add new `subfeature' arg.
74 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
75 (Qsubfeatures): New var.
76 (syms_of_fns): Initialize it.
77
026f408d
SM
78 * keymap.c (Fkey_description): Use empty_string.
79 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
80 (syms_of_keymap): Setup inheritance between maps.
81 Don't export Sdescribe_bindings_internal any more.
82
be5fc59b
SM
83 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
84
3365175e
GM
852001-10-12 Gerd Moellmann <gerd@gnu.org>
86
87 * xterm.c (notice_overwritten_cursor): Renamed from
88 note_overwritten_text_cursor. Rewritten to take glyph widths into
89 account.
90
2ab7765c
EZ
912001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
92
93 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
94 multi-line strings without a trailing "\n\".
95
311346bb
PJ
962001-10-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
97
98 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
99 defined.
100
2168e04d
SM
1012001-10-11 Stefan Monnier <monnier@cs.yale.edu>
102
026f408d
SM
103 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
104
c0ec53ad
SM
105 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
106 * w32proc.c (sys_spawnve):
107 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
108 * w32.c (check_windows_init_file):
109 * sound.c (Fplay_sound):
026f408d 110 * emacs.c (init_cmdargs):
c0ec53ad
SM
111 * process.c (Fstart_process): Update calls to openp.
112
113 * callproc.c (Vexec_suffixes): New var.
114 (Fcall_process): Update call to openp.
115 (decode_suffixes): New function.
116 (syms_of_callproc): Init exec-suffixes.
117
118 * lread.c (Vload_suffixes, default_suffixes): New vars.
119 (openp): Take a lisp list of suffixes.
120 Check for file-name-handlers even if the file was absolute already.
121 (syms_of_lread): Declare load-suffixes.
122 (Fload): Fix up call to openp.
123 Don't bother checking for file-name-handler at the very beginning.
124
f6333468
SM
125 * keymap.h (Fcopy_keymap): Don't export.
126
127 * lisp.h (empty_string): Declare.
c0ec53ad
SM
128 (Vload_suffixes, Vexec_suffixes): Declare.
129 (openp): Update prototype.
f6333468
SM
130
131 * emacs.c (empty_string): New var.
132 (syms_of_emacs): Initialize it.
133
134 * search.c (wordify): Use it.
135
136 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
137 selected window if it's not displayed there. Handle the case
138 when the window is dedicated.
139 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
140
141 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
142
2168e04d
SM
143 * syntax.h (struct gl_state_s): Change the meaning of b_property.
144 Remove left_ok and right_ok.
145 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
146 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
147 new meaning of b_property.
148
149 * syntax.c (update_syntax_table): Simplify.
150 (Fforward_comment): Don't skip quoted chars when going backward.
151
13d95cc0
GM
1522001-10-11 Gerd Moellmann <gerd@gnu.org>
153
beb0990f
GM
154 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
155 in case I is of some unsigned type, in which case
156 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
157 comparison becomes bogus.
158
cb938d46
GM
159 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
160 (Fuser_full_name): Fix bug treating a float as a fixnum.
161
162 * data.c (Fstring_to_number): Use make_fixnum_or_float.
163
164 * lisp.h (make_fixnum_or_float): New macro.
2168e04d 165
13d95cc0
GM
166 * lisp.h (circular_list_error): Add prototype.
167
168 * data.c (Qcircular_list): New variable.
169 (circular_list_error): New function.
170 (syms_of_data): Initialize it Qcircular_list.
171
e35f6ff7
SM
1722001-10-10 Stefan Monnier <monnier@cs.yale.edu>
173
174 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c,
175 casefiddle.c, buffer.c: Include keymap.h.
176
619632ac
GM
1772001-10-10 Gerd Moellmann <gerd@gnu.org>
178
179 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
180 options. From Dave Love <d.love@dl.ac.uk>.
181
5e5388f6
GM
1822001-10-09 Gerd Moellmann <gerd@gnu.org>
183
184 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
185 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
186
14a3dff7
GM
187 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
188 unsigned char.
189 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
e35f6ff7 190
76ba8daf
AI
1912001-10-08 Andrew Innes <andrewi@gnu.org>
192
193 * lisp.h [max]: Undef min and max before redefining them.
194
195 * w32gui.h: Do not undef min and max.
196
197 * w32heap.h: Do not undef min and max.
198
199 * s/ms-w32.h: Do not undef min and max.
200
166253cb
SM
2012001-10-08 Stefan Monnier <monnier@cs.yale.edu>
202
203 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
204
0c4d9527
SS
2052001-10-08 Sam Steingold <sds@gnu.org>
206
207 * keymap.c (current-active-maps): Quote newlines (compilation error).
208
14bfa771
EZ
2092001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
210
211 * Makefile.in (lisp, shortlisp): Replace bindings.el with
212 bindings.elc, since otherwise doc strings in bindings.el get wrong
213 offsets in etc/DOC.
214
bdb7aa47
SM
2152001-10-08 Stefan Monnier <monnier@cs.yale.edu>
216
9985827f
SM
217 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
218
219 * keyboard.h (map_prompt): Remove.
220
221 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
e6b3ceb6 222 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
9985827f 223
bdb7aa47
SM
224 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
225
226 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
227
228 * keyboard.c (map_prompt): Remove.
229 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
230 Use Fkeymap_prompt.
231
232 * keymap.h: New file. Extracted from lisp.h.
233
9985827f
SM
234 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
235 (accessible_keymaps_1): New function.
236 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
237 (Fwhere_is_internal): Use Fcurrent_active_maps.
238 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
239 Insert in current buffer rather than standard-output.
240 Don't call `help-mode'. Export to elisp.
241 (describe_buffer_bindings): New wrapper.
242 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
243 and Sdescribe_buffer_bindings.
244
402c9a51
GM
2452001-10-08 Gerd Moellmann <gerd@gnu.org>
246
9985827f 247 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
3ecd9cc3
GM
248 Remove code setting signal handler.
249
9985827f 250 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
402c9a51
GM
251 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
252
3fe81fdf
PJ
2532001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
254
255 * keyboard.c: Don't define min/max.
256
55fa7820
GM
2572001-10-08 Gerd Moellmann <gerd@gnu.org>
258
9985827f 259 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
32c82ac0 260 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
9985827f 261 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
32c82ac0 262 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
9985827f 263 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
32c82ac0
GM
264 Don't define min/max.
265
266 * lisp.h (min, max): New macros.
267
55fa7820
GM
268 * puresize.h (BASE_PURESIZE): Increase to 725000.
269
1aad31e4
PJ
2702001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
271
9180dc8c
PJ
272 * xfaces.c (free_frame_menubar): Add prototype.
273
01f67d2c
PJ
274 * lisp.h (init_window): Add prototype.
275
276 * editfns.c: Include ctype.h.
277
278 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
9985827f 279 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
01f67d2c
PJ
280 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
281 variable `sb'.
282
5f351ff1
PJ
283 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
284 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
285 `popup_activated_flag' and `title'.
286
479dfe87
PJ
287 * doc.c (Fdocumentation_property): Fix typo in a doc string.
288
dff49fc8
PJ
289 * emacs.c (main): Remove extra `;'.
290
248ac615
PJ
291 * atimer.h (struct atimer): Fix typos in a comment.
292
293 * atimer.c: Fix typo.
294
af232c7d
PJ
295 * Makefile.in: Fix typo.
296
297 * README: Remove obsolete part mentioning removed VMS file.
1aad31e4 298
d876f455
MB
2992001-10-07 Miles Bader <miles@gnu.org>
300
301 * Makefile.in (lisp, shortlisp): Add `button.elc'.
302
0037e2f2
KR
3032001-10-07 Ken Raeburn <raeburn@gnu.org>
304
b056f36d
KR
305 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
306 Lisp_Object.
307
0037e2f2
KR
308 * lisp.h (Ffield_end): Declare.
309
1a4372ef
GM
3102001-10-07 Gerd Moellmann <gerd@gnu.org>
311
a4a74e8c
GM
312 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
313
314 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
315
316 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
317
318 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
319
1a4372ef
GM
320 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
321 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
322
323 * alloc.c (inhibit_garbage_collection): Simplify.
324 (Fmemory_use_counts): Ditto.
325
9985827f 326 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
1a4372ef
GM
327 (syms_of_data): DEFVAR_INT most-positive-fixnum and
328 most-negative-fixnum.
329
9985827f 330 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
1a4372ef
GM
331 (FIXNUM_OVERFLOW_P): New macros.
332
4650e362
MB
3332001-10-06 Miles Bader <miles@gnu.org>
334
335 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
336 scroll_bar_bottom_shadow_pixel fields.
337 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
338 for the shadows, and tell the toolkit about them if we succeed.
339 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
340 Free scroll-bar shadow colors.
341 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
342 Free scroll-bar shadow colors when the background color changes.
343 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
344 Initialize scroll-bar shadow-color fields.
345
ace64e0a
GM
3462001-10-05 Gerd Moellmann <gerd@gnu.org>
347
348 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
349
ec66bdc7
MB
3502001-10-05 Miles Bader <miles@gnu.org>
351
9985827f
SM
352 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
353 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
ec66bdc7 354 New functions (were in simple.el).
9985827f 355 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
ec66bdc7
MB
356 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
357 (syms_of_minibuf): Initialize them.
358
a0fb4492
GM
3592001-10-05 Gerd Moellmann <gerd@gnu.org>
360
361 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
362 (tiff_load): Install them as error and warning handler.
363
0bcf87c1
AI
3642001-10-04 Andrew Innes <andrewi@gnu.org>
365
366 * w32fns.c (x_to_w32_color): Fix argument to alloca.
367 (w32_load_system_font): Don't believe what GetLanguageFontInfo
9985827f 368 says; query codepage info directly to determine if font is double byte.
0bcf87c1
AI
369 (x_to_w32_charset): Handle private format for unknown charsets.
370 Handle wildcards in charset spec, by ignoring them.
371 (w32_codepage_for_font): Fix argument to alloca. Don't remove
372 "*-" prefix from charset.
373 (x_to_w32_font): Enlarge remainder array for safety. Specifically
374 handle the truncated font spec form constructed by font_list_1, so
375 that we correctly identify the charset fields. Don't remove "*-"
376 prefix from charset.
377 (w32_list_synthesized_fonts): Fix argument to alloca.
378
c89e4bc5
GM
3792001-10-04 Stefan Monnier <monnier@cs.yale.edu>
380
381 * window.h (MINI_WINDOW_P): Use NILP.
382
383 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
384
385 * termhooks.h (struct input_event): Use proper type for `kind'.
386
3872001-10-04 Gerd Moellmann <gerd@gnu.org>
388
389 This handles unknown keysyms better than before. For example,
390 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
391 Emacs formerly completely ignored F5. With the change, it derives
392 a key symbol from the name of the X keysym, `ccaron' in this case.
393 Reported by Martin Buchholz.
394
395 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
396 unknown keysyms.
397
398 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
399 that EVENT->code isn't a function key, use the keysym's name.
400
4012001-10-04 Gerd Moellmann <gerd@gnu.org>
402
403 FOREACH is a macro that should make it easier to loop over Lisp
404 lists with checks for cycles and proper lists.
405
406 * lisp.h (LIST_END_P, FOREACH): New macros.
407
4082001-10-04 Gerd Moellmann <gerd@gnu.org>
409
410 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
411 called for a lost connection. Prevent dumping core in this case.
412 Instead print the X error, and exit. On user request.
413
414 * xterm.c (error_msg): New variable.
415 (x_fatal_error_signal): New function.
416 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
417 as fatal_error_signal_hook around the call to XtCloseDisplay.
418
419 * emacs.c (fatal_error_signal_hook): New variable.
420 (fatal_error_signal): Call that function.
421
4222001-10-04 Gerd Moellmann <gerd@gnu.org>
423
424 With this, Emacs prints how much pure storage it will
425 approximately need in case pure storage overflows while dumping.
426
427 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
428 New variables.
429 (init_alloc_once): Initialize new variables.
430 (PURE_POINTER_P): Use new variables.
431 (pure_alloc): If pure storage overflows, allocate from the heap.
432 (check_pure_size): New function.
433 (Fgarbage_collect): Don't GC if pure storage has overflowed.
434
435 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
436 (check_pure_size): Add prototype.
437
438 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
439
4402001-10-04 Gerd Moellmann <gerd@gnu.org>
441
442 This adds a post-gc-hook that's run with GC inhibited.
443 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
444
445 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
446 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
447 (Fgarbage_collect): Run post-gc-hook.
448
4492001-10-04 Gerd Moellmann <gerd@gnu.org>
450
451 This adds `defvaralias' and `indirect-variable'. Changes not
452 directly related to this feature are there to gain the same
453 performance again as before variable aliases.
454
455 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
456 code to get and set symbol values, to take defvaralias into account.
457
458 (Note: the new `constant' bit-flag in symbols would make it
459 possible to define arbitrary read-only variables, e.g. with
460 `defconst'.)
461
462 Documentation is in lispref/variables.texi. Added to NEWS.
463
464 * lisp.h (enum symbol_interned): New enumeration.
465 (struct Lisp_Symbol): Remove member `obarray', add
466 `indirect_variable', `constant', and `interned'.
467 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
468 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
469 (indirect_variable): Add prototype.
470
471 * print.c (print_preprocess, print_object): Test internedness of
472 symbols differently.
473
474 * lread.c (Fintern, Funintern): Set symbol's interned and constant
475 bit-fields.
476 (init_obarray): Likewise for t and nil.
477
478 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
479 (Fdefvaralias): New function.
480 (specbind): Simplify the test if symbol is a constant.
481 (syms_of_eval): Defsubr Fdefvaralias.
482
483 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
484 (Qcyclic_variable_indirection): New variable.
485 (Fkeywordp): Check for internedness differently.
486 (Fmakunbound): Simplify the test if symbol is a constant.
487 (indirect_variable, Findirect_variable): New functions.
488 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
489 aliased symbol.
490 (let_shadows_buffer_binding_p): Check for variable aliases.
491 (set_internal): Simplify the test if SYMBOL is a constant.
492 If SYMBOL has a buffer-local value and is an alias, use the aliased
493 symbol instead.
494 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
495 Sindirect_variable.
496
497 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
498 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
499 set directly.
500
501 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
502
503 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
504 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
505 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
506
ab952a4f
GM
5072001-10-04 Gerd Moellmann <gerd@gnu.org>
508
509 * Branch for 21.1.
510
ba88ff28
MB
5112001-10-03 Miles Bader <miles@gnu.org>
512
513 * callproc.c (syms_of_callproc): Explicitly state in the
514 documentation for `process-environment' that earlier entries take
515 precedence over later ones.
516
ae1a9581
MB
5172001-10-02 Miles Bader <miles@gnu.org>
518
519 * textprop.c (Fnext_char_property_change)
520 (Fprevious_char_property_change): Remove reference to non-existant
521 argument OBJECT from doc-string.
522
257e3f57
GM
5232001-10-01 Gerd Moellmann <gerd@gnu.org>
524
525 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
526 (try_window_id): Skip back over lines ending in a newline from a
527 string.
528
529 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
530 New bit flag
531
c1f29759
RS
5322001-10-01 Richard M. Stallman <rms@gnu.org>
533
534 * search.c (Freplace_match): Doc fix.
535
c30dce3d
AI
5362001-09-28 Andrew Innes <andrewi@gnu.org>
537
538 * w32menu.c (set_frame_menubar): Take into account that
539 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
540 <raeburn@gnu.org>.
541
03be5931
EZ
5422001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
543
544 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
545
75bec752
PJ
5462001-09-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
547
548 * s/gnu-linux.h: Fix a typo in comment.
549
83100e0a
AS
5502001-09-28 Andreas Schwab <schwab@suse.de>
551
552 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
553 nocombreloc, in case -z combreloc is the default.
554
a74b48cf
GM
5552001-09-28 Gerd Moellmann <gerd@gnu.org>
556
557 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
558 really going on here.
559
09c4719e
SM
5602001-09-27 Stefan Monnier <monnier@cs.yale.edu>
561
562 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
563
f7d5d963
EZ
5642001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
565
566 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
567 utf-8, menu-bar, and latin-N.
568 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
569 unconditionally now.
570 (lisp): Add latin-N, since they are preloaded.
571
9240e746
GM
5722001-09-27 Gerd Moellmann <gerd@gnu.org>
573
14531065
GM
574 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
575 to the left. Some cleanup.
576
9240e746
GM
577 * xdisp.c (display_mode_element): One more case where a string's
578 multibyteness should be used for display.
579
edd1e654
GM
5802001-09-26 Gerd Moellmann <gerd@gnu.org>
581
b02439c8
GM
582 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
583 reading at EOF.
584
032906b1 585 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
5b397024 586 of the only temporarily set echoing flag for deciding when
032906b1
GM
587 the cancel echoing.
588
589 * keyboard.c (echo_kboard): Make externally visible.
590
591 * lisp.h (echo_kboard): Declare extern.
592
cb617e7c 593 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
5b397024 594 fonts_changed_p if we need larger matrices due to vscrolling.
cb617e7c
GM
595 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
596 this round of redisplay if make_cursor_line_fully_visible fails.
597 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
09c4719e 598 (try_cursor_movement, try_scrolling): Use them instead of integers.
cb617e7c
GM
599
600 * dispextern.h (required_matrix_width, required_matrix_height):
601 Add prototypes.
602
09c4719e
SM
603 * dispnew.c (required_matrix_width, required_matrix_height):
604 New functions.
cb617e7c 605 (allocate_matrices_for_window_redisplay)
09c4719e
SM
606 (allocate_matrices_for_frame_redisplay: Use them.
607 Remove parameters CH_DIM.
cb617e7c 608
edd1e654
GM
609 * xdisp.c (display_mode_lines): Temporarily set selected_frame
610 and selected_window to the frame of the window whose mode-lines
611 are displayed, and to the window itself.
612 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
09c4719e 613 here.
edd1e654 614
924b604c
GM
6152001-09-25 Gerd Moellmann <gerd@gnu.org>
616
daba7643
GM
617 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
618 the image cache under us.
619
b7a22712 620 * xdisp.c (display_mode_element): If the mode element is a symbol
09c4719e 621 with a string value, use that string's multibyteness for displaying.
b7a22712 622
ad648212
GM
623 * keyboard.c (read_char): Don't clear a message for a switch-frame
624 event. From Stefan Monnier <monnier@cs.yale.edu>.
625
9f8531e5
GM
626 * xterm.c (fast_find_position) [0]: Add a presumably more correct
627 version for after 21.1.
628
629 * xdisp.c (row_containing_pos): Make externally visible.
630
631 * dispextern.h (row_containing_pos): Add prototype.
632
924b604c
GM
633 * process.c (send_process): Disable composition if from_byte < 0.
634 From Kenichi Handa <handa@etl.go.jp>.
635
6f3f0db4
GM
6362001-09-24 Gerd Moellmann <gerd@gnu.org>
637
c69c0ebc
GM
638 * xterm.c (refreshicon): Function removed.
639
d1182bc4
GM
640 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
641
642 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
643
644 * xterm.c (toplevel): Remove includes in #if 0.
645
6f3f0db4
GM
646 * process.c (sigchld_handler) [LINUX]: Don't return from
647 the signal handler at the end of the loop.
648
59957f85
GM
6492001-09-21 Gerd Moellmann <gerd@gnu.org>
650
09c4719e
SM
651 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
652 Terminate only if kill returns -1, and errno is ESRCH.
59957f85 653
a0528984
EZ
6542001-09-21 Markus Rost <rost@math.ohio-state.edu>
655
656 * Makefile.in (shortlisp): Add ../lisp/env.elc.
657
db92b288
GM
6582001-09-20 Gerd Moellmann <gerd@gnu.org>
659
3fed8ad5
GM
660 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
661 since this function can be called during GC.
662
db92b288
GM
663 * callproc.c (Fcall_process): Handle errors from pipe(2).
664 (child_setup): Delete code in #ifdef vipc.
665
7121b85a
GM
6662001-09-19 Gerd Moellmann <gerd@gnu.org>
667
72f62cb5
GM
668 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
669 (display_mode_element): Display the string from decode_mode_spec
670 depending on its multibyteness.
671
a2697022
GM
672 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
673
7121b85a
GM
674 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
675
bfc97351
GM
6762001-09-18 Gerd Moellmann <gerd@gnu.org>
677
c9063433
GM
678 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
679 recursive_edit_unwind.
680 (recursive_edit_unwind): Set kboard state according to
681 SINGLE-KBOARD.
682
3fbdba3e
GM
683 * buffer.c (modify_overlay): Don't do nothing if START == END;
684 This can still be a modification, for example when an overlay has
685 a before-string or after-string.
686 (Fdelete_overlay): Prevent redisplay optimizations when deleting
687 an overlay with before-string or after-string.
688
1270031d
GM
689 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
690 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
691
bfc97351
GM
692 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
693 first_unchanged_at_end_row is in front of
694 last_unchanged_at_beg_row. This code should be removed after the
695 release of 21.1.
696
d8a973aa
GM
6972001-09-17 Gerd Moellmann <gerd@gnu.org>
698
e18c8b8d
GM
699 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
700 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
701
d8a973aa
GM
702 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
703 versions >= 2.95.
704
ed7d6ba4
EZ
7052001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
706
707 * dired.c (Ffile_attributes): Doc fix.
708
551629f9
GM
7092001-09-14 Gerd Moellmann <gerd@gnu.org>
710
711 * fileio.c (Ffile_symlink_p): Fix last change.
712
713 * filelock.c (current_lock_owner): Fix last change.
714
4c8c7926
GM
7152001-09-13 Gerd Moellmann <gerd@gnu.org>
716
620c4704
GM
717 * filelock.c (current_lock_owner): If readlink returns ERANGE,
718 take that to mean that the buffer is too small.
719
81c3310d
GM
720 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
721 that to mean that the buffer is too small.
722
06fd3792
GM
723 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
724 current buffer's multibyteness when discarding the iterator's
725 stack.
726
4c8c7926
GM
727 * xfns.c (Fx_window_property): Handle case that property gets
728 deleted between the two calls to XGetWindowProperty.
729
9a72e4c1
GM
7302001-09-11 Gerd Moellmann <gerd@gnu.org>
731
bd819d14
GM
732 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
733
a41edd99
GM
734 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
735 in addition to read-only.
736
737 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
738 to t in addition to read-only.
739
740 * lisp.h (Qinhibit_modification_hooks): Declare.
741
742 * insdel.c (Qinhibit_modification_hooks): New variable.
743 (syms_of_insdel): Initialize and staticpro it.
744
d4881c6a
GM
745 * textprop.c (verify_interval_modification): Don't run
746 modification-hooks if inhibit_modification_hooks.
747
748 * dispnew.c (set_window_cursor_after_update): Fix code
749 finding glyph row containing cursor when cursor_in_echo_area
750 is >= 0.
751
9a72e4c1
GM
752 * xdisp.c (init_from_display_pos): Put some code in #if 0.
753 (add_to_log): Use bcopy instead of strcpy.
754 (init_from_display_pos): Use an explicit loop over bytes in
755 overlay strings instead of calling index.
756
f4a374a1
GM
7572001-09-10 Gerd Moellmann <gerd@gnu.org>
758
300e57bd
GM
759 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
760
761 * dispnew.c (direct_output_for_insert): Don't change IT's
762 stop_charpos to something in front of its current position.
763
f4a374a1
GM
764 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
765 `format'.
766
7e4cbc91
RS
7672001-09-10 Richard M. Stallman <rms@gnu.org>
768
769 * frame.c (Fmouse_position): Doc fix.
770
6afad91e
GM
7712001-09-07 Gerd Moellmann <gerd@gnu.org>
772
773 * xdisp.c (init_from_display_pos): Don't compare the result
774 of calling index with NULL.
775
f76e0368
GM
7762001-09-06 Gerd Moellmann <gerd@gnu.org>
777
778 * xfns.c (x_set_background_color): Don't change the colors
779 of the X window of scroll bar widgets.
780
9ead1b60
AI
7812001-09-05 Andrew Innes <andrewi@gnu.org>
782
783 * w32fns.c (w32_createwindow): Undo last change.
784
c3b497b3
GM
7852001-09-05 Gerd Moellmann <gerd@gnu.org>
786
08e1d6df
GM
787 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
788
c3b497b3
GM
789 * xdisp.c (string_buffer_position): Use *single_char_property*
790 functions instead of the *single_property* functions.
791
8f860180
AI
7922001-09-04 Andrew Innes <andrewi@gnu.org>
793
9a72e4c1
GM
794 * w32term.c (w32_read_socket): Add more information to debugging
795 output.
8f860180
AI
796
797 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
798 from Emacs frames, so that calls to GetClipBox in w32term.c
799 correctly report when part of a frame is visible (including
800 scrollbars, etc). This prevents repeated redrawing of frames when
801 only a scrollbar is visible.
802 (w32_wnd_proc): Add more frame information to debugging output.
803
2ee1aa00
SM
8042001-09-03 Stefan Monnier <monnier@cs.yale.edu>
805
806 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
807
e3b22517
GM
8082001-09-03 Gerd Moellmann <gerd@gnu.org>
809
7e376260
GM
810 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
811 help-echo for a string which doesn't have help-echo itself, use
812 get-char-property to obtain the help-echo from the string's buffer
813 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
814 have mouse-face, look ``under'' the string for mouse-face from an
815 overlay.
816 (fast_find_position): Add parameter STOP. In the final row, stop
817 before glyphs having STOP as object. Don't consider glyphs that
818 are not from a buffer.
819
e3b22517
GM
820 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
821
9a249bba
EZ
8222001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
823
824 * fns.c (Fmd5): Doc fix.
825
c9979669
GM
8262001-08-31 Gerd Moellmann <gerd@gnu.org>
827
828 * composite.c (update_compositions): Do nothing if
829 inhibit-modification-hooks is set.
830
9584e63a
GM
8312001-08-30 Gerd Moellmann <gerd@gnu.org>
832
986ec8f2 833 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
490468dc 834 and check_message_stack if terminating abnormally. We want
986ec8f2
GM
835 glyph matrices etc. in a core dump.
836
92a25631
GM
837 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
838 (syms_of_xdisp): Initialize them.
839 (handle_single_display_prop): Don't change point, bind `object',
840 `position', and `buffer-position' instead to the object having the
2ee1aa00 841 `display' property, position in the object and position in the buffer.
92a25631 842
9584e63a
GM
843 * fileio.c (Finsert_file_contents): Don't change the multibyteness
844 of the buffer if REPLACE is non-nil.
845
d38633a3
GM
8462001-08-29 Gerd Moellmann <gerd@gnu.org>
847
848 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
849
f4fccc1e
EZ
8502001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
851
852 * w32term.c (x_set_glyph_string_background_width)
853 (show_mouse_face): Track the last changes in xterm.c.
854
eaaa65b0
GM
8552001-08-28 Gerd Moellmann <gerd@gnu.org>
856
7b0870b2
GM
857 * xterm.c (x_set_glyph_string_background_width): Set the glyph
858 string's background width so that multi-line mouse-face is drawn
859 to the right edge of the window.
860 (show_mouse_face): Set the row's mouse_face_p flag after drawing
861 glyphs.
862
6b6e2422 863 * dispnew.c (direct_output_for_insert): Set updated_area
5b52c296 864 before inserting/writing glyphs.
6b6e2422 865
eaaa65b0
GM
866 * xdisp.c (display_mode_element): Use string_byte_to_char to
867 determine character positions in strings, use chars_in_text
868 instead of strwidth.
869 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
870 a matrix as parameter; this is easier to use from GDB.
871
9ad62cf8
MB
8722001-08-28 Miles Bader <miles@gnu.org>
873
2ee1aa00
SM
874 * textprop.c (Fprevious_single_char_property_change)
875 (Fnext_single_char_property_change): Doc fixes.
9ad62cf8 876
32171635
GM
8772001-08-27 Gerd Moellmann <gerd@gnu.org>
878
47d57b22
GM
879 * fileio.c (Finsert_file_contents): Allocate, restore, and
880 free composition data in the case of REPLACE not being nil.
881
882 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
883 there exist overlay strings with newlines at POS.
884 (text_outside_line_unchanged_p): Return 0 if changes start at
885 START and overlays exist at START. Likewise for END.
886 (try_window_id): Give up if init_to_row_end returns 0.
887
32171635
GM
888 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
889 unconditionally.
890
e1249666
GM
8912001-08-24 Gerd Moellmann <gerd@gnu.org>
892
33954c45
GM
893 * keymap.c (access_keymap): Return the cdr of the binding of
894 a generic character instead of its definition (KEY . BINDING).
895
e1249666
GM
896 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
897 to 0 also in the REPLACE case.
898
fb4c6c96
AC
8992001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
900
901 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
902 open to determine whether file is readable (as for DOS_NT).
903
59ecf80b
GM
9042001-08-23 Gerd Moellmann <gerd@gnu.org>
905
906 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
907 coding.type is coding_type_no_conversion or coding_type_raw_text,
908 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
909 non-nil instead of just setting enable_multibyte_characters in the
910 buffer to nil.
911
40e33037
GM
9122001-08-22 Gerd Moellmann <gerd@gnu.org>
913
374388c3
GM
914 * dispextern.h (struct face_cache): Add member
915 menu_face_changed_p.
916
917 * xfaces.c (menu_face_changed_default): New variable.
918 (menu_face_changed_count): Variable removed.
919 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
920 the menu_face_changed_default flag, otherwise set the FRAME's
921 menu_face_changed_p flag if the `menu' face has been changed.
922 Prevent calling set_font_frame_param if FRAME is t.
923 (make_face_cache): Initialize cache's menu_face_changed_p
924 from menu_face_changed_default.
925 (realize_basic_faces): Look into the frame's face cache to
926 determine if the menu appearance needs updating.
927
40e33037
GM
928 * keymap.c (access_keymap): Fix last change to not consider
929 IDX when it has modifiers.
930
859ea4b8
GM
9312001-08-21 Gerd Moellmann <gerd@gnu.org>
932
933 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
934 . BINDING) exists, where GENERIC-CHAR is the generic character of
935 the charset of IDX, return BINDING unless there exists a binding
936 for IDX itself.
937
e8660d73
GM
9382001-08-16 Gerd Moellmann <gerd@gnu.org>
939
cca1b1d7
GM
940 * xrdb.c (SYSV): Don't define on Solaris 2.
941 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
942
e8660d73 943 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
2ee1aa00 944 of the screen line, not text line, containing IT's current position.
e8660d73 945
93aba6fc
GM
9462001-08-15 Gerd Moellmann <gerd@gnu.org>
947
288d4e06
GM
948 * window.c (window_scroll_pixel_based): Don't recenter if
949 PT is partially visible in the window.
950
3452efc2
SM
951 * xterm.c (expose_window_tree, expose_window, expose_line):
952 Return 1 when overwriting mouse-face.
82f053ab
GM
953 (expose_frame): If mouse-face was overwritten, redo it.
954
93aba6fc
GM
955 * xfaces.c (x_update_menu_appearance): Don't call
956 set_frame_menubar, let the next redisplay do it.
957
858a55c1
AI
9582001-08-14 Andrew Innes <andrewi@gnu.org>
959
960 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
961 drawing glyph string.
962
3a990b67
EZ
9632001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
964
965 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
966 running HI-UX/MPP.
967
04386463
GM
9682001-08-14 Gerd Moellmann <gerd@gnu.org>
969
970 * xfaces.c (x_update_menu_appearance): Save and restore value of
971 interrupt_input_blocked.
972
3e6385a4
GM
9732001-08-13 Gerd Moellmann <gerd@gnu.org>
974
b0e619b4
GM
975 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
976 a line start, move back to the line start.
3452efc2 977
0de73d5a
GM
978 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
979 exactly when a mini-buffer is active.
980
3e6385a4
GM
981 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
982 in units of 1/8 character on non window-system frames.
983 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
984
d1b5f629
EZ
9852001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
986
987 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
988 a doc string.
989
eaa2319f
GM
9902001-08-09 Gerd Moellmann <gerd@gnu.org>
991
8e3189f0
GM
992 * keyboard.c (Vpre_help_message): New variable.
993 (syms_of_keyboard): Initialize and staticpro it.
994 (show_help_echo): Record current message before displaying a
995 help-echo, and restore that message when clearing the help.
996
eaa2319f
GM
997 * xfns.c (x_create_im): Remove prototype.
998
999 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
1000
1001 * dispnew.c (adjust_glyph_matrix): Undo last change.
3452efc2 1002
eaa2319f
GM
10032001-08-08 Gerd Moellmann <gerd@gnu.org>
1004
1005 * dispnew.c (adjust_glyph_matrix): In the optimization for
3452efc2 1006 windows whose height has changed, disable partially visible lines.
eaa2319f 1007
17fdcfc8
GM
10082001-08-07 Gerd Moellmann <gerd@gnu.org>
1009
22d01aed 1010 * window.c (Frecenter): If ARG < 0, and on a window system
3452efc2 1011 frame, count in some empty lines when we can't move -ARG lines down.
22d01aed 1012
17fdcfc8
GM
1013 * xdisp.c (start_display): Don't try to determine the continuation
1014 lines width if lines are truncated. It's superfluous and leads to
1015 incorrect results if POS is not visible in the window after
1016 reseating the iterator at the previous line start.
1017
8e3fe78e
GM
10182001-08-06 Gerd Moellmann <gerd@gnu.org>
1019
1020 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
1021
98a8938c
GM
10222001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
1023
1024 * alloc.c (init_stack): Remove declaration.
1025
18f9986a
GM
10262001-08-03 Gerd Moellmann <gerd@gnu.org>
1027
5e1f85e0
GM
1028 * keyboard.c (read_key_sequence): Check that key is an integer
1029 before comparing it with quit_char.
1030 (add_command_key): Use larger_vector.
1031 (read_char_x_menu_prompt): Instead of converting symbol and
1032 integer events into conses (EVENT . nil), use (EVENT . disabled)
3638868e 1033 which cannot be confused with valid events.
5e1f85e0
GM
1034 (read_char): When reading from Vunread_command_events, check for
1035 events of the form (EVENT . disabled) instead of
1036 (EVENT . nil).
1037
18f9986a
GM
1038 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
1039 a float, determine the max height from the frame's height.
1040
fbc7f2a6
GM
10412001-08-02 Gerd Moellmann <gerd@gnu.org>
1042
1043 * xdisp.c (redisplay_internal): Take message_cleared_p into
1044 account only if minibuf_level == 0.
1045
81b1a79d
GM
10462001-08-01 Gerd Moellmann <gerd@gnu.org>
1047
e5c60873
GM
1048 * xdisp.c (redisplay_internal): Add a check for the last
1049 displayed message.
3452efc2 1050
6e019995
GM
1051 * xdisp.c (message_cleared_p): New variable.
1052 (clear_message): Set message_cleared_p when clearing the current
1053 message.
1054 (redisplay_internal): Look at message_cleared_p to capture
1055 the case that the echo area should be cleared.
1056
308a74d8
GM
1057 * keyboard.c (command_loop_1): Fix spelling of
1058 resize_echo_area_exactly.
1059
3452efc2 1060 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
308a74d8
GM
1061
1062 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
1063
81b1a79d
GM
1064 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
1065 current matrix when the window gets smaller.
1066
ada329e6
EZ
10672001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
1068
1069 * print.c (strout): Cast the character passed to insert_char to
1070 unsigned char, to avoid sign extension when it is promoted to int.
1071
ed86208c
GM
10722001-07-31 Gerd Moellmann <gerd@gnu.org>
1073
1074 * fileio.c (Finsert_file_contents): Don't treat a return value
1075 of 0 from emacs_read as an IO error.
1076
6594ac22
GM
10772001-07-30 Gerd Moellmann <gerd@gnu.org>
1078
cef68af5
GM
1079 * keyboard.c (abs): New macro.
1080 (double_click_fuzz): New variable.
1081 (make_lispy_event): Use it to determine what makes a double-click.
1082 (syms_of_keyboard): DEFVAR_INT it.
1083
6594ac22
GM
1084 * xmenu.c (set_frame_menubar): Take into account that
1085 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
1086 <raeburn@gnu.org>.
1087
75c5350a
GM
10882001-07-27 Gerd Moellmann <gerd@gnu.org>
1089
1090 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
1091
1092 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
1093 of row's visible height.
1094
1095 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
3452efc2
SM
1096 deal with the first overlay string having an image `display' property.
1097 (try_window_reusing_current_matrix, compute_line_metrics):
1098 Fix computation of row's visible height for the case that part of the
75c5350a
GM
1099 row is invisible above and part of the row is at the same time
1100 invisible below the window.
1101
ac49effe
GM
11022001-07-26 Gerd Moellmann <gerd@gnu.org>
1103
1104 * xfns.c (x-show-tip): Doc fix.
3452efc2 1105
ac49effe
GM
1106 * xfns.c (Vx_max_tooltip_size): New variable.
1107 (syms_of_xfns): DEFVAR_LISP it.
1108 (Fx_show_tip): Set frame's window_width to the width of the
1109 window. Use a maximum tooltip size specified by
1110 Vx_max_tooltip_size, if that has valid contents.
1111 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3452efc2 1112
8c3b00cb
AI
11132001-07-26 Andrew Innes <andrewi@gnu.org>
1114
1115 * w32term.c (x_display_list): New variable.
1116 (w32_term_init): Set it.
1117
1118 * w32term.h (x_display_list): New extern.
1119
16098288
GM
11202001-07-26 Gerd Moellmann <gerd@gnu.org>
1121
1122 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
3452efc2
SM
1123 is non-nil, instead of when redisplaying_p is non-zero.
1124 See comment there.
16098288
GM
1125 (mark_window_display_accurate_1): Add an assertion.
1126
64c5be50
GM
11272001-07-25 Gerd Moellmann <gerd@gnu.org>
1128
e743f599
GM
1129 * dispextern.h (struct it): Increase size of ctl_chars to 16.
1130
563b384d
GM
1131 * xfns.c (Fx_file_dialog): Block/unblock input while processing
1132 events so that we get a chance of processing expose events.
1133
64c5be50
GM
1134 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
1135
296808a5
GM
11362001-07-24 Gerd Moellmann <gerd@gnu.org>
1137
1138 * xfns.c (valid_image_p): Protect better against invalid image
1139 specifications. Previous code could signal an error.
1140
5247262a
GM
11412001-07-23 Gerd Moellmann <gerd@gnu.org>
1142
3452efc2 1143 * indent.c (current_column): Fix column computation in the
f1004faf
GM
1144 presence of display table entries.
1145 (current_column_1, Fmove_to_column, compute_motion): Likewise.
1146
dd42b31a
GM
1147 * dispnew.c (adjust_glyph_matrix): In the optimization for
1148 windows whose height has changed, use the new window height
1149 to compute which rows to invalidate.
1150
9e5a7f2a
GM
1151 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
1152 (MAX_10_EXP): New macro.
1153 (Fformat): Use it.
1154
5247262a
GM
1155 * coding.c (code_convert_region): Handle the multibyte case if
1156 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
1157
177ab8ce
GM
11582001-07-20 Gerd Moellmann <gerd@gnu.org>
1159
6e07c0a5
GM
1160 * dispextern.h (struct face): Change type of `stipple' to
1161 int; it's an ID.
1162
177ab8ce
GM
1163 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
1164
b5b80599
GM
11652001-07-19 Gerd Moellmann <gerd@gnu.org>
1166
4e2a256b
GM
1167 * dispnew.c (update_window): Don't set the cursor at the end
1168 of the update if display update has been paused.
1169
3452efc2 1170 * composite.h (syms_of_composite): Renamed from syms_of_composition.
b5b80599 1171
c1fd9232
KR
11722001-07-18 Ken Raeburn <raeburn@gnu.org>
1173
1174 * fns.c (Fset_char_table_default): Check that a charset is defined
1175 before checking its dimension.
1176
928a85c1
KR
11772001-07-17 Ken Raeburn <raeburn@gnu.org>
1178
1179 * coding.c (setup_coding_system): Don't do any designation based
1180 on reg_bits if charset is not yet defined.
1181
fb4c6c96 1182 * lisp.h (XVECTOR): Verify correct object type before returning a
232e274c
KR
1183 pointer, using eassert.
1184
de11c1ea
GM
11852001-07-17 Gerd Moellmann <gerd@gnu.org>
1186
3452efc2
SM
1187 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
1188 Increase to 4096 because of paste problems reported on GNU/Linux.
de11c1ea 1189
467f1209
GM
11902001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
1191
1192 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
1193
c3d6be34
GM
11942001-07-16 Gerd Moellmann <gerd@gnu.org>
1195
c1d61a7d
GM
1196 * fileio.c (unwind_read): Function removed.
1197 (read_non_regular, read_non_regular_quit): New functions.
1198 (Finsert_file_contents): When reading from non-regular files,
1199 arrange to catch a `quit' and terminate the loop. Rearrange
1200 code so that a `quit' when reading from a regular file doesn't
1201 insert text in the buffer.
1202
c3d6be34
GM
1203 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
1204 Clear faces afterwards.
1205 (clear_font_table): Take a x_display_info parameter. Don't free
1206 fonts being the default font of any frame on the given display.
1207
e06aa1f9
GM
12082001-07-13 Gerd Moellmann <gerd@gnu.org>
1209
1210 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
1211 instead of CHAR_STRING which can signal an error.
1212
1213 * charset.c (char_to_string_1): Extracted from char_to_string.
1214 Return -1 instead of signaling an error.
1215 (char_to_string): Use it.
1216
1217 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
1218
176c92e6
SM
12192001-07-12 Stefan Monnier <monnier@cs.yale.edu>
1220
1221 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
1222 is t, don't try to append anything to it.
1223
1c56232f
EZ
12242001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
1225
1226 * dired.c (file_name_completion): Pass dp->d_name to
1227 Fstring_match, not elt, which is always nil here.
1228
1d2b2268
GM
12292001-07-12 Gerd Moellmann <gerd@gnu.org>
1230
1231 * xselect.c (x_decline_selection_request): Handle errors
1232 caused by receivers that have vanished.
1233
1234 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
1235 ignoring events on foreign windows in #if 0. Always dispatch
1236 the event after checking it with x_handle_property_notify.
1237
1238 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
176c92e6
SM
1239 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
1240 TRACE macros to facilitate debugging. Add additional trace statements.
1d2b2268
GM
1241 (toplevel): Add prototypes for file-local functions.
1242 (x_atom_to_symbol): Remove DPYINFO parameter.
1243
fe5a0162
SM
12442001-07-11 Stefan Monnier <monnier@cs.yale.edu>
1245
1246 * w32menu.c (menubar_selection_callback, w32_menu_show):
1247 Initialize `entry' to nil.
1248 (w32_dialog_show): Remove unused `save_wv' variable.
1249 (name_is_separator): Recognize "--:foo" and "--foo-bar".
1250
a777242c
GM
12512001-07-11 Gerd Moellmann <gerd@gnu.org>
1252
8ee5b6a3
GM
1253 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
1254
d0e2444e
GM
1255 * fileio.c (unwind_read): Print a message when discarding inserted
1256 text or switching the buffer to unibyte. Change parameter.
1257 (Finsert_file_contents): Don't pass VISIT to unwind_read.
fe5a0162 1258
a777242c
GM
1259 * fileio.c (unwind_read): New function.
1260 (Finsert_file_contents): Record it as unwind-function for
1261 the case that reading is interrupted by C-g.
1262
ae794295
GM
12632001-07-10 Gerd Moellmann <gerd@gnu.org>
1264
fe5a0162 1265 * dispnew.c (update_window): Don't skip the header-line
58f8612a
GM
1266 update when scrolling_window returns 0.
1267
6b05fae3
GM
1268 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
1269
1270 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
58f8612a 1271 for the case that x_decode_color signals an error.
6b05fae3 1272
ae794295
GM
1273 * xdisp.c (add_to_log): Do nothing if called asynchronously.
1274
bb6e8cee
GM
12752001-07-09 Gerd Moellmann <gerd@gnu.org>
1276
1277 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
1278 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
1279 around ioctls.
1280
36b40a8a
EZ
12812001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
1282
24b97d4b
EZ
1283 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
1284 doc string line for dos-timezone-offset.
1285
36b40a8a
EZ
1286 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
1287 inline assembly, to avoid compiler warnings.
24b97d4b
EZ
1288 (syms_of_msdos): Add \n\ at the end of a line in the doc string
1289 line for dos-unsupported-char-glyph.
36b40a8a
EZ
1290
1291 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
1292
0967b4b0
GM
12932001-07-05 Gerd Moellmann <gerd@gnu.org>
1294
f25cfe53
GM
1295 * sound.c: Include Emacs' header files with #include "...".
1296
0967b4b0
GM
1297 * eval.c (specbind): Additionally record the buffer that was
1298 current when a buffer-local or frame-local variable was bound.
1299
c347a1c3
GM
13002001-07-04 Gerd Moellmann <gerd@gnu.org>
1301
1302 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
1303 to unibyte characters in unibyte buffers.
1304
6332ca8a
GM
13052001-07-03 Gerd Moellmann <gerd@gnu.org>
1306
38472d44
GM
1307 * eval.c (specbind): If SYMBOL has a frame-local binding, record
1308 the frame on the binding stack. Change format of entries for
1309 local bindings on the binding stack to '(SYMBOL . WHERE)'.
1310 (unbind_to): Handle unbinding a frame-local variable.
1311
6332ca8a 1312 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
fe5a0162 1313 glyphs and truncation glyphs at the end of a row from its pixel width.
6332ca8a
GM
1314 (dump_glyph_row): Print row's continuation_lines_width.
1315 (try_window_id): Take the shortcut if ZV is visible in the
1316 window, but there are actually no changes at ZV.
1317
63d1b174
GM
13182001-07-02 Gerd Moellmann <gerd@gnu.org>
1319
4c175203
GM
1320 * xterm.h (x_free_dpy_colors): Add prototype.
1321
1322 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
1323 right number of arguments.
1324
0b54ce28
GM
1325 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
1326 ($(lwlibdir)TAGS): New target.
4c175203 1327 (TAGS): Fix dependency list.
0b54ce28 1328
63d1b174
GM
1329 * xterm.c (x_list_fonts): Make sure XFreeFont is called
1330 with input blocked.
1331
d827466c
GM
13322001-06-30 Gerd Moellmann <gerd@gnu.org>
1333
1334 * emacs.c (main): Remove extern declaration for sys_nerr, which
1335 isn't used and causes a compilation error with GCC 3.0 on
1336 FreeBSD 4.3.
1337
b5cb1ada
GM
13382001-06-27 Gerd Moellmann <gerd@gnu.org>
1339
a5d3ec3f 1340 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
3452efc2 1341 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
a5d3ec3f
GM
1342 (toplevel): Include <signal.h> and syssignal.h.
1343
b5cb1ada
GM
1344 * sound.c (vox_configure, vox_close): Turn off atimers
1345 around ioctls.
1346
d9bad487
GM
13472001-06-26 Gerd Moellmann <gerd@gnu.org>
1348
fdbb67fe
GM
1349 * keyboard.c (read_char) <non_reread>: Record the previous idle
1350 start time before calling timer_stop_idle.
1351 (read_char) <reread_first>: After processing a help-echo event,
1352 restore the previous idle start time.
1353
d9bad487
GM
1354 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
1355 the start of invisible text.
1356 (setup_for_ellipsis): New function.
1357 (next_overlay_string): After all overlay strings have been
1358 processed, display an ellipsis if necessary.
1359 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
1360 (push_it): Initialize display_ellipsis_p on the iterator's stack.
1361
1362 * dispextern.h (struct iterator_stack_entry): Add member
1363 display_ellipsis_p.
1364
2b9c25e0
GM
13652001-06-25 Gerd Moellmann <gerd@gnu.org>
1366
80de57df
GM
1367 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
1368 on the value of the wait-for-wm frame parameter.
1369
1370 * xterm.h (struct x_output): Add member wait_for_wm.
1371
1372 * xfns.c (Qwait_for_wm): New variable.
1373 (x_frame_parms): Add entry for `wait-for-wm".
1374 (x_set_wait_for_wm): New function.
1375 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
1376 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
1377
2b9c25e0
GM
1378 * xdisp.c (try_window_id) <all changes below window end>: Don't
1379 take this shortcut if ZV is visible in the window.
1380 (try_window_id): When checking for window start being in changed
1381 text, don't check that the buffer's size has changed.
1382
f772775c
RS
13832001-06-23 Richard M. Stallman <rms@gnu.org>
1384
1385 * minibuf.c (Fcompleting_read): Doc fix.
1386
fa9090b8
GM
13872001-06-19 Gerd Moellmann <gerd@gnu.org>
1388
1389 * composite.c (Ffind_composition_internal): Accept ZV
1390 and a string's end position as POS.
1391
f6f1beba
GM
13922001-06-18 Gerd Moellmann <gerd@gnu.org>
1393
1394 * composite.c (Ffind_composition_internal): Check POS
1395 for validity.
1396
0ae83348
EZ
13972001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
1398
1399 * editfns.c (Fmessage_box): If the frame is not under a window
1400 system, output the message in the echo area.
1401
e4cdc335
RS
14022001-06-14 Richard M. Stallman <rms@gnu.org>
1403
1404 * xdisp.c (try_window_id): When EOB is visible, don't treat
1405 insertion at EOB as if it were "off the bottom of the screen."
1406
a55a5f3c
AI
14072001-06-11 Andrew Innes <andrewi@gnu.org>
1408
1409 * w32proc.c (create_child): Add new parameter is_gui_app.
1410 (w32_executable_type): Add new parameter is_gui_app.
1411 (sys_spawnve): Use it.
1412 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
1413 SIGQUIT. This matches better how the signals are interpreted by
1414 MSVC compiled programs.
1415 (syms_of_ntproc): Update docstring.
1416
1b85dc1c
SM
14172001-06-02 Stefan Monnier <monnier@cs.yale.edu>
1418
1419 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
1420 well otherwise note_mouse_highlight might optimize away highlighting
1421 if we pass over that same overlay again.
1422
b75f8eab
EZ
14232001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
1424
1425 * lread.c (Fload): Document that the argument is run via
1426 substitute-in-file-name.
1427
94843cc1
GM
14282001-05-31 Gerd Moellmann <gerd@gnu.org>
1429
b14659e6
GM
1430 * Makefile.in (bootstrap-doc): New target.
1431 (bootstrap-emacs): Depend on it.
1432
0894672f
GM
1433 * fileio.c (Fdo_auto_save): Don't try to create the directory of
1434 auto-save-list-file-name when shutting down Emacs, because
1435 creating the directory might signal an error, and leaves
1436 Emacs in a strange state.
1437
94843cc1
GM
1438 * term.c: (tty_cursor_hidden): New variable.
1439 (update_begin): Don't call tty_hide_cursor. Clean up.
1440 (update_end, set_terminal_window, set_scroll_region): Clean up.
1441 (ring_bell, reset_terminal_modes): Clean up.
1442 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
1443 on tty_cursor_hidden.
1444 (write_glyphs): Call tty_hide_cursor.
1445
db3a49a6
SM
14462001-05-30 Stefan Monnier <monnier@cs.yale.edu>
1447
1448 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
1449
8bd189fb
GM
14502001-05-30 Gerd Moellmann <gerd@gnu.org>
1451
6f1be3b9
GM
1452 * xfns.c (enum image_value_type): New enumerator
1453 IMAGE_STRING_OR_NIL_VALUE.
1454 (parse_image_spec): Handle it.
1455 (xbm_format, pbm_format): Use it for :foreground and :background.
1456 (xbm_load, pbm_load): Check for nil color names.
1457
8bd189fb
GM
1458 * xterm.c (note_mouse_highlight): If an overlapping overlay
1459 exists, but we find that we highlight the same overlay as before,
1460 don't do the highlighting again.
1461
7bdba03c
GM
14622001-05-29 Gerd Moellmann <gerd@gnu.org>
1463
4c329aa8
GM
1464 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
1465 Protect unibyte strings created by replacing their multibyte
1466 equivalents in menu_items.
1467
e15e2828
GM
1468 * keymap.c (Fsingle_key_description): NUL-terminate the string
1469 buffer before calling build_string.
1470
7bdba03c
GM
1471 * callproc.c (Fcall_process): Deal with decode_coding returning
1472 CODING_FINISH_INCONSISTENT_EOL.
1473
89c8dc6c
GM
14742001-05-28 Gerd Moellmann <gerd@gnu.org>
1475
db3a49a6 1476 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3d9d7a9b
GM
1477 an item's name with its key description in case the description
1478 is a multibyte string.
1479
1480 * keymap.c (Fsingle_key_description): Create a multibyte string
1481 only if necessary.
1482
eb04d6cd
GM
1483 * macros.c (Fstart_kbd_macro): Doc fix.
1484
8bd6307f
GM
1485 * xterm.c (cursor_in_mouse_face_p): New function.
1486 (x_draw_stretch_glyph_string): Use it to choose a different GC
1487 when drawing a cursor within highlighted text.
1488
e26c4089
GM
1489 * editfns.c (char_property_eq): Put in #if 0.
1490
1491 * indent.c (string_display_width): Put in #if 0.
1492
1493 * lread.c (Fload): Remove unused label.
1494
89c8dc6c
GM
1495 * termcap.c (speeds): Put in #if 0.
1496
9a1211f2
GM
14972001-05-18 Gerd Moellmann <gerd@gnu.org>
1498
29148a3f
GM
1499 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
1500
9a1211f2
GM
1501 * xfaces.c (xlfd_point_size): Don't divide pixel size from
1502 transformation matrix by 10.
1503
09393d07
GM
15042001-05-16 Gerd Moellmann <gerd@gnu.org>
1505
1506 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
1507 only if it's equal to the former foreground pixel color.
db3a49a6 1508 (x_set_foreground_color, x_set_background_color)
09393d07
GM
1509 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
1510
460e6bae
GM
15112001-05-16 Dave Love <fx@gnu.org>
1512
1513 * insdel.c (signal_before_change, signal_after_change): Consider a
1514 local change hook which changes the buffer.
99c78ce8
GM
1515
1516 * process.c (read_process_output): Don't call signal_after_change
1517 and update_compositions after insert_from_string_before_markers.
1518
dbcf3c03
GM
15192001-05-16 Gerd Moellmann <gerd@gnu.org>
1520
a90b3d3c
GM
1521 * xfaces.c (split_font_name): Use the right field when
1522 checking for `[...]' syntax.
1523
1b7818b4
GM
1524 * buffer.c (copy_overlays): New function.
1525 (clone_per_buffer_values): Use it.
1526
1527 * buffer.h (OVERLAY_PLIST): New macro.
1528
9bae8781
GM
1529 * keymap.c (Fsingle_key_description): Replace a build_string with
1530 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
1531
dbcf3c03
GM
1532 * fontset.c (Ffontset_info): Check that face is non-null
1533 before accessing its fields.
1534
8a1ae4dd
GM
15352001-05-15 Gerd Moellmann <gerd@gnu.org>
1536
18a0a39e
GM
1537 * keyboard.c (read_key_sequence): Prevent generating a fake
1538 prefix key twice.
1539
e335b66a
GM
1540 * xfaces.c (split_font_name): Handle `[...]' for the right
1541 font name fields.
1542
8a1ae4dd
GM
1543 * ccl.c (ccl_driver): Don't copy remaining bytes in case
1544 of CCL_STAT_INVALID_CMD.
1545
3cf80731
SM
15462001-05-14 Stefan Monnier <monnier@cs.yale.edu>
1547
33568849
SM
1548 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
1549 in <var> has no default value yet.
1550
3cf80731
SM
1551 * xfaces.c (try_alternative_families): First try the FAMILY.
1552 And if nothing is found in the end, try again with scalable fonts.
1553 (try_font_list): Let try_alternative_families do a bit more of
1554 the work. Only use FAMILY if it is not nil.
1555 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
1556
933b0249
GM
15572001-05-14 Gerd Moellmann <gerd@gnu.org>
1558
58e5af83
GM
1559 * xterm.c (note_mouse_highlight): Avoid changing the mouse
1560 pointer shape when show_mouse_face has already done it.
33568849 1561
58e5af83 1562 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
557f7c34
GM
1563 full-width rows.
1564
7b16a6bf
GM
1565 * xfaces.c (split_font_name): Make sure to leave the loop
1566 with the right value of `i'.
3cf80731 1567
933b0249
GM
1568 * xfaces.c (split_font_name): Handle matrix transformations
1569 in the pixel and point size fields of XLFD font names.
1570 (xlfd_point_size): Likewise.
1571
dddcbf00
EZ
15722001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
1573
3cf80731 1574 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
c7501041
EZ
1575 (x_to_w32_font): Add prototype.
1576
7689ef0b
EZ
1577 * regex.c (malloc, realloc, free) [emacs]: Undefine before
1578 redefining, to avoid compiler warnings.
1579
e7c15bba
EZ
1580 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
1581
dddcbf00
EZ
1582 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
1583 (w32_get_bdf_glyph): Cast between unsigned char and char when
1584 passing arguments to subroutines, to shut up compiler warnings.
1585 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
1586 GET_HEX_VAL.
1587
1588 * xfaces.c: Include keyboard.h before frame.h, not after it.
1589
1590 * widget.c: Include keyboard.h before frame.h.
1591
1592 * w32term.h (struct image, struct face): Forward declaration, to
1593 avoid compiler warnings.
1594
7bd2d083
GM
15952001-05-11 Gerd Moellmann <gerd@gnu.org>
1596
47e72862
GM
1597 * keyboard.c (read_key_sequence): Don't modify events when
1598 generating fake prefix keys (mode-line, scroll-bar, ...) since
1599 this prevents proper processing of such events when pushed back
1600 into unread-command-events.
1601
dd5f324b
GM
1602 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
1603 actually redrawn. Make the function static.
1604 (note_mouse_highlight): Fix a case where the mouse cursor
1605 was changed back to the text cursor.
1606
1607 * xterm.h (clear_mouse_face): Remove prototype.
1608
d88a79d4
GM
1609 * xdisp.c (try_window_id): Fix the fix and set the right
1610 window_end_vpos.
1611
1612 * xdisp.c (try_window_id): Fix computation of window end in the
1613 case that lines were deleted at the end of the window. Add some
1614 more debug_method_adds.
0416532f 1615
7bd2d083
GM
1616 * xfaces.c (try_alternative_families): New function.
1617 (try_font_list): Use it. If ATTRS specifies a family, check
1618 fonts from that family first.
1619 (choose_face_font): Remove code setting the family part of
1620 the pattern to nil.
1621
23fca891
GM
16222001-05-10 Gerd Moellmann <gerd@gnu.org>
1623
ff9aa2ca
GM
1624 * xdisp.c (try_window_id): Fix case of all changes before
1625 the window start.
7b2654b5 1626
23fca891
GM
1627 * xdisp.c (try_window_id): Add some xasserts.
1628
e9726794
GM
16292001-05-09 Gerd Moellmann <gerd@gnu.org>
1630
1631 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
1632
9e53a675
GM
16332001-05-09 Dave Love <fx@gnu.org>
1634
1635 * xdisp.c (GIVE_UP): Fix for K&R C.
1636
0d487c52
GM
16372001-05-09 Gerd Moellmann <gerd@gnu.org>
1638
fe88d421
GM
1639 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
1640
0d487c52
GM
1641 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
1642 back to the text cursor shape without need.
1643
1e9fc92e
GM
16442001-05-07 Gerd Moellmann <gerd@gnu.org>
1645
a2a6232e
GM
1646 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
1647
1648 * dispextern.h (inverse_video): Declare extern.
1649
1e9fc92e
GM
1650 * keyboard.c (delete_kboard): Handle the case that selected_frame
1651 has been deleted in the course of x_connection_closed.
1652
12949a7f
EZ
16532001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
1654
7b2654b5
SM
1655 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
1656 Fix the change from 2001-04-30.
12949a7f 1657
2fa2f461
GM
16582001-05-03 Gerd Moellmann <gerd@gnu.org>
1659
a779d213
GM
1660 * xfns.c (file_dialog_unmap_cb): New function.
1661 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
1662 where a dialog is closed via the window manager.
1663
7b2654b5 1664 * xdisp.c (try_window_id): Cases of changes all in front of
2fa2f461
GM
1665 the window start or all below the window end mostly rewritten.
1666 (redisplay_window): Move the tests if try_window_id is
1667 applicable to try_window_id.
1668 (GIVE_UP): New macro.
1669
3356df63
GM
16702001-05-02 Gerd Moellmann <gerd@gnu.org>
1671
a39202f6 1672 * xterm.c (expose_window): Return int. If W is the window
7b2654b5
SM
1673 currently being updated, mark the frame garbaged.
1674 Fix computation of rows intersecting the exposed rectangle.
a39202f6 1675 (expose_window_tree): Stop when expose_window returns 0.
7b2654b5 1676
3356df63
GM
1677 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
1678 again if it has already been drawn.
1679
a9d2fd1d
SM
16802001-05-01 Stefan Monnier <monnier@cs.yale.edu>
1681
1682 * syntax.c (update_syntax_table): Check that oldi has the same
1683 properties as old_prop before deciding not to invalidate.
1684
c95fc5f1
GM
16852001-04-30 Gerd Moellmann <gerd@gnu.org>
1686
a9793e45
GM
1687 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
1688 read-only text that is so because of text properties.
1689
c95fc5f1 1690 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
a9d2fd1d 1691 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
c95fc5f1
GM
1692 windows that are components of a Lucid menu bar.
1693
5a5d9185
GM
16942001-04-27 Gerd Moellmann <gerd@gnu.org>
1695
1696 * term.c (turn_on_face): Fix reverse video handling on terminals
1697 that don't support colors.
1698
ba973f7a
GM
16992001-04-26 Gerd Moellmann <gerd@gnu.org>
1700
1701 * editfns.c (save_excursion_restore): Don't use XBUFFER on
1702 a non-buffer.
1703
8c56a983
GM
17042001-04-25 Gerd Moellmann <gerd@gnu.org>
1705
a728644c
GM
1706 * term.c (toggle_highlight): New function.
1707 (turn_on_face): Change handling of reverse video.
1708
7b2654b5
SM
1709 * process.c (wait_reading_process_input):
1710 Call record_asynch_buffer_change only if a timer really changed buffers.
c88164fe 1711
bfd8410f
GM
1712 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
1713 of the number of overlays to check.
1714
be2488ca
GM
1715 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
1716
8c56a983
GM
1717 * xdisp.c (try_window_id): Fix a case where window_end_pos
1718 and window_end_bytepos were not adjusted.
1719
522d42f7
GM
17202001-04-23 Gerd Moellmann <gerd@gnu.org>
1721
1722 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
1723 zero instead of -1.
1724
78c1afb6
EZ
17252001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
1726
a9d2fd1d
SM
1727 * process.c (wait_reading_process_input) [!subprocesses]:
1728 Don't reference waiting_for_user_input_p, it's not defined in the
1729 branch without async subprocesses support.
78c1afb6 1730
a2fab450
GM
17312001-04-19 Gerd Moellmann <gerd@gnu.org>
1732
a122a38e
GM
1733 * keyboard.c (delete_kboard): Prevent a dangling reference
1734 from current_kboard to KB, which is freed.
1735
a9d2fd1d
SM
1736 * process.c (wait_reading_process_input):
1737 Call record_asynch_buffer_change after running timers, to make
a2fab450
GM
1738 read_key_sequence aware of buffer changes from under it.
1739
0f8d6dc7
GM
17402001-04-18 Gerd Moellmann <gerd@gnu.org>
1741
eeffb293
GM
1742 * xfaces.c (Qscalable_fonts_allowed): New variable.
1743 (realizing_basic_faces_p): Removed.
2fa2f461
GM
1744 (x_face_list_fonts): Special handling for realizing_basic_faces_p
1745 removed.
eeffb293 1746 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
7b2654b5
SM
1747 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
1748 for scalable-fonts-allowed to t.
eeffb293 1749
0f8d6dc7
GM
1750 * fileio.c (Finsert_file_contents): If the file size returned from
1751 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
a9d2fd1d 1752 read from files on a procfs whose contents are generated dynamically.
0f8d6dc7 1753
eec2d1de
EZ
17542001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
1755
1756 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
1757 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
1758 (__memalign_hook): Make the two prototypes consistent.
1759
f4f480bd
GM
17602001-04-17 Gerd Moellmann <gerd@gnu.org>
1761
1762 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
1763 matrix of mini-windows.
1764
52283633
SM
17652001-04-12 Stefan Monnier <monnier@cs.yale.edu>
1766
1767 * intervals.c (find_interval): Don't rebalance during signal handling.
1768
ec2423c9
GM
17692001-04-11 Gerd Moellmann <gerd@gnu.org>
1770
30cb0001 1771 * fns.c: Include blockinput.h.
52283633 1772
ec2423c9
GM
1773 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
1774
719d83ad
GM
17752001-04-10 Gerd Moellmann <gerd@gnu.org>
1776
60f8d735
GM
1777 * fns.c (Fcompare_strings): Fix return values.
1778
afffeb57
GM
1779 * window.c (window_scroll): Change the meaning of N to mean
1780 N screen-fulls or N lines.
1781 (window_scroll_pixel_based, window_scroll_line_based)
1782 (scroll_command, Fscroll_other_window): Change accordingly.
1783
52283633
SM
1784 * window.c (window_scroll_pixel_based, Frecenter):
1785 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
1786 height of the window.
1787
1788 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
1789 instead of using it.last_visible_y for the height of the window.
52283633 1790
719d83ad 1791 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
8ddf3ee1 1792 From Dan Holmsand <dan@eyebee.com>.
719d83ad
GM
1793
1794 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
8ddf3ee1
GM
1795 able to write to hidden and system files. From Dan Holmsand
1796 <dan@eyebee.com>.
719d83ad 1797
8ddf3ee1
GM
1798 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
1799 Holmsand <dan@eyebee.com>.
719d83ad 1800
522ed7fb
GM
18012001-04-09 Gerd Moellmann <gerd@gnu.org>
1802
9170e5d4
GM
1803 * fns.c (Fplist_get, Fplist_put): Add QUITs.
1804
522ed7fb
GM
1805 * window.c (window_internal_height): Return 1 less if the
1806 window has a header line.
1807
1808 * xdisp.c (try_window_id): When scrolling on a terminal, take
1809 the change of window_internal_height into account.
1810
ceeb3d7d
EZ
18112001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
1812
1813 * gmalloc.c (align): If the argument SIZE would overflow
1814 __malloc_ptrdiff_t, fail right away.
1815
63685b9d
GM
18162001-04-06 Gerd Moellmann <gerd@gnu.org>
1817
1818 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
1819 Make sure the tooltip is completely visible.
1820 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
1821
1822 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
1823
1824 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
1825
3ffb33bb
DL
18262001-04-06 Dave Love <fx@gnu.org>
1827
52283633
SM
1828 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
1829 Fix test of `from'.
3ffb33bb 1830
869fb12c
GM
18312001-04-06 Gerd Moellmann <gerd@gnu.org>
1832
52283633 1833 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 1834
869fb12c
GM
1835 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
1836
441bf856
GM
18372001-04-05 Gerd Moellmann <gerd@gnu.org>
1838
4d664b04
GM
1839 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
1840
52283633 1841 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 1842
30ca89f5
GM
1843 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
1844 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
1845
1846 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
1847 shell widget's position only if it is non-null.
1848
52283633
SM
1849 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
1850 Set f->output_data.x->widget to null after destroying it.
30ca89f5 1851
81a81c0f
GM
1852 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
1853 FILENAME to bring it in synch with the documentation.
1854
441bf856
GM
1855 * xfaces.c (realizing_basic_faces_p): Renamed from
1856 realize_default_face_p.
1857 (realize_basic_faces): Set/clear realizing_basic_faces_p.
1858 (realize_default_face): Don't set the flag.
1859
702a1e8e
GM
18602001-04-04 Gerd Moellmann <gerd@gnu.org>
1861
1013f4e3
GM
1862 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
1863
52283633
SM
1864 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
1865
1013f4e3
GM
1866 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
1867 the buffer that was used for echoing.
1868
702a1e8e
GM
1869 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
1870 (first_font_matching): Removed unused function.
1871 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
1872 (may_use_scalable_font_p): Remove parameter FONT; rename
1873 parameter NAME to FONT.
1874 (x_face_list_fonts): Fix missing bounds check.
1875 (realizing_default_face_p): New variable.
1876 (realize_default_face): Set and clear that flag.
1877 (x_face_list_fonts): When called during the realization of the
1878 default face, and no matching fonts are found when ignoring
1879 scalable fonts and fonts matching a regexp from
1880 face-ignored-fonts, try without ignoring fonts.
1881
f9dbcda4
GM
18822001-04-03 Gerd Moellmann <gerd@gnu.org>
1883
ad18ffb1
GM
1884 * xfns.c (postprocess_image): New function.
1885 (lookup_image): Call it for all image types except PostScript.
1886 (x_kill_gs_process): Call postprocess_image.
1887
f9dbcda4
GM
1888 * xterm.c (x_use_underline_position_properties): New variable.
1889 (x_draw_glyph_string): Use it.
1890 (syms_of_xterm): DEFVAR_BOOL it.
1891
651f03b6
GM
18922001-04-02 Gerd Moellmann <gerd@gnu.org>
1893
1894 * xterm.c (x_alloc_nearest_color_1): New function.
1895 (x_alloc_nearest_color): Use it.
1896 (x_color_cells): Take a Display as argument, instead of a frame.
1897 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
1898 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
1899 (x_initialize): Register cvt_string_to_pixel as resource converter
1900 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
1901
73d75a62
GM
19022001-03-30 Gerd Moellmann <gerd@gnu.org>
1903
b2046df8
GM
1904 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
1905 (set_iterator_to_next): If a string from a display property ends,
1906 consider the case that this might also be the end of an
1907 overlay string having the display property.
1908
52283633 1909 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 1910
87d8eba4
GM
1911 * xdisp.c (reseat_to_string): Undo last change.
1912
73d75a62
GM
1913 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
1914 matrix of a window when the header line changes, when
1915 new rows are allocated, or when the width changes.
1916
911a2406
EZ
19172001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
1918
52283633 1919 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 1920
aea51abe
EZ
19212001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
1922
1923 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
1924 deprecated.
1925
176bc847
GM
19262001-03-29 Gerd Moellmann <gerd@gnu.org>
1927
ed31fabf
GM
1928 * data.c (Fsubr_interactive_form): New function.
1929 (syms_of_data): Defsubr it.
1930
176bc847
GM
1931 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
1932 (live_float_p, live_misc_p): Return 1 only if the offset of the
1933 pointer in its block is >= 0.
1934
e59d0e9d
GM
19352001-03-28 Paul Eggert <eggert@twinsun.com>
1936
1937 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
1938 microseconds calcuation. Avoid double-rounding problem.
1939 In doc string, warn that the result is approximate.
1940
f827b862
GM
19412001-03-28 Gerd Moellmann <gerd@gnu.org>
1942
30a3f61c
GM
1943 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
1944 bind `inhibit-eval-during-redisplay' to t.
1945
1946 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
1947
1948 * xdisp.c (inhibit_eval_during_redisplay)
1949 (Qinhibit_eval_during_redisplay): New variables.
1950 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
1951 don't eval, return nil instead.
1952 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
1953 Initialize Qinhibit_eval_during_redisplay.
1954
e719f5ae
GM
1955 * xdisp.c (reseat_to_string): If STRING is multibyte, set
1956 the iterator's multibyte_p flag.
1957
deb2613a
GM
1958 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
1959 instead of setting it to zero; it's incremented for each frame
1960 where the menu face is changed.
1961
52283633
SM
1962 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
1963 change bottom shadow accordingly.
1964
1965 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
1966 intersections here.
1967 (expose_window): Do it here instead.
52283633 1968 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 1969
f827b862
GM
1970 * bytecode.c (BYTE_CODE_QUIT): New macro.
1971 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
1972
4bde0ebb
GM
19732001-03-27 Gerd Moellmann <gerd@gnu.org>
1974
607ec83c
GM
1975 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
1976 Give up if matrix starts in an ellipsis.
1977 (init_from_display_pos): Do nothing if POS doesn't specify
1978 a dpvec_index but the iterator has such a position.
1979
0245398f
GM
1980 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
1981
aba25348
GM
1982 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
1983 x/y position is (0, 0) after destroying the menu bar, restore
1984 its original position.
1985
4bde0ebb
GM
1986 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
1987 (init_from_display_pos): Use it.
1988 (try_window_reusing_current_matrix): Don't use cursor_row_p.
1989
8cdb267e
GM
19902001-03-26 Gerd Moellmann <gerd@gnu.org>
1991
1992 * xdisp.c (try_window_id): Undo last change.
1993
9948db79
EZ
19942001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
1995
1996 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
1997
1998 * buffer.c (syms_of_buffer): Doc fix.
1999
2eddf899
GM
20002001-03-26 Gerd Moellmann <gerd@gnu.org>
2001
2002 * xfaces.c (x_update_menu_appearance): Use local variable
2003 popup_path for setting font resources.
2004
6c145d35
EZ
20052001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
2006
6a65b1b5
EZ
2007 * frame.c (Fframe_list): Don't reference tip_frame if
2008 HAVE_WINDOW_SYSTEM is not defined.
2009
6c145d35
EZ
2010 * emacs.c (main): Update the copyright year. From Werner LEMBERG
2011 <wl@gnu.org>.
2012
d74c1900
GM
20132001-03-25 Gerd Moellmann <gerd@gnu.org>
2014
20fbd925
GM
2015 * xdisp.c (init_from_display_pos): Test invisible property
2016 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 2017
927c5b3b
GM
2018 * xdisp.c (redisplay_internal) <update one window>: Make sure
2019 last_arrow_position and last_arrow_string are set.
2020
d74c1900
GM
2021 * frame.c (Fframe_list): Don't return a tooltip frame.
2022
091f8878
GM
20232001-03-23 Gerd Moellmann <gerd@gnu.org>
2024
52283633
SM
2025 * xdisp.c (mark_window_display_accurate_1): New function,
2026 extracted from mark_window_display_accurate.
2027 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
2028 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
2029 (mark_window_display_accurate): Use it.
2030 (redisplay_internal): Use it for the selected window.
2031 (redisplay_internal): Avoid duplicate mark_window_display_accurate
2032 for the selected frame.
2033
ac90c44f
GM
2034 * xdisp.c Use make_number, for readability.
2035 (try_window_id): Disable rows below the window end.
2036 (try_window_reusing_current_matrix): Use cursor_row_p.
2037 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
2038 of rows.
2039 (init_from_display_pos): If POS specifies a position in a display
2040 vector, maybe get the iterator set up for that ellipsis.
43c09969 2041
091f8878
GM
2042 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
2043
991786dd
EZ
20442001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
2045
2046 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
2047
6c29b43c
GM
20482001-03-23 Gerd Moellmann <gerd@gnu.org>
2049
2050 * xfaces.c (x_update_menu_appearance): Use a different path
2051 for Lucid popup menus.
2052
d8731202
SM
20532001-03-22 Stefan Monnier <monnier@cs.yale.edu>
2054
2055 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
2056
2057 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
2058 (string_buffer_position): Use `make_number'.
2059
f61a541b
GM
20602001-03-22 Gerd Moellmann <gerd@gnu.org>
2061
3c9e997b
GM
2062 * xfaces.c (x_update_menu_appearance): Renamed from
2063 x_set_menu_face_resources. Use different resources for popups.
2064
2065 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
2066 (GC_CHECK_STRING_BYTES): Don't define.
2067
364cd450
GM
2068 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
2069 Removed, together with subroutines.
2070 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 2071 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 2072
d8731202
SM
2073 * dispextern.h (x_set_menu_resources_from_menu_face):
2074 Remove prototype.
364cd450 2075
d8731202 2076 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
2077 Remove calls to x_set_menu_resources_from_menu_face.
2078
d8731202
SM
2079 * xfaces.c (xm_set_menu_resources_from_menu_face):
2080 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
2081
2082 * xmenu.c: Include widget.h.
2083 (single_submenu): Return int. Some cleanup.
2084 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
2085
140330de
GM
20862001-03-21 Gerd Moellmann <gerd@gnu.org>
2087
2088 * xterm.c (x_update_window_end): Handle overwritten mouse face
2089 also for tool bar windows.
2090 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
2091 DRAW is DRAW_IMAGE_RAISED.
2092
1741905c
GM
20932001-03-20 Gerd Moellmann <gerd@gnu.org>
2094
fa88947e
GM
2095 * print.c (syms_of_print): Doc fixes.
2096
1741905c
GM
2097 * fns.c (Fmd5): Doc fix.
2098
ade0bee1
GM
20992001-03-19 Gerd Moellmann <gerd@gnu.org>
2100
357e7376
GM
2101 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2102 Clear area of the frame not occupied by the scroll bar.
2103
c2c097cc
GM
2104 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
2105 tip frame's root window buffer to *tip* right after creating
2106 the frame.
2107
ade0bee1
GM
2108 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
2109 is an integer don't have to be for space characters.
2110
88c6e37e
GM
21112001-03-16 Gerd Moellmann <gerd@gnu.org>
2112
52283633
SM
2113 * indent.c (current_column, current_column_1, Fmove_to_column)
2114 (compute_motion): Handle characters from display vectors differently.
88c6e37e 2115
c62eed76
KH
21162001-03-15 Kenichi Handa <handa@etl.go.jp>
2117
2118 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
2119 drawing glyph string.
2120
c899e7e6
GM
21212001-03-15 Gerd Moellmann <gerd@gnu.org>
2122
d0bbfc99
GM
2123 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
2124 (command_loop_1): Undo last change.
2125
03d1a189
GM
2126 * xterm.c (fast_find_position): Return the correct vpos.
2127
c899e7e6 2128 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 2129 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
2130 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
2131 Call store_symval_forwarding with BUF null.
2132 (set_internal): Call store_symval_forwarding with the BUF
2133 parameter passed to set_internal. Formerly, the value was always
2134 set in the current buffer; the buffer recorded in specbind for
2135 this case wasn't used.
2136 (arith_driver): Reindent.
2137
52283633
SM
2138 * buffer.c (swap_out_buffer_local_variables):
2139 Call store_symval_forwarding with BUF null.
c899e7e6
GM
2140
2141 * lisp.h (store_symval_forwarding): Change prototype.
2142
2143 * eval.c (specbind): Call store_symval_forwarding with BUF null.
2144
57ac7c81
GM
21452001-03-14 Gerd Moellmann <gerd@gnu.org>
2146
697617d9
GM
2147 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
2148 FOR_DELETION. Avoid resizing the mini-window of the selected
2149 frame if FOR_DELETION is set.
2150 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
2151 (Fmake_frame_invisible): Change calls to do_switch_frame for new
2152 signature.
2153
2154 * window.c (Fset_window_configuration): Change call to
2155 do_switch_frame to new format.
2156
2157 * keyboard.c (quit_throw_to_read_char): Change call to
2158 do_switch_frame to new format.
2159
2160 * lisp.h (do_switch_frame): Change prototype.
2161
819dce0f
GM
2162 * frame.c (Fframe_parameters): In the `buffer-list' frame
2163 parameter, store the buffer list of FRAME, not the list of the
2164 selected frame.
2165
57ac7c81
GM
2166 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
2167 box just because the glyph row's full_width_p flag is set.
2168
65008712
GM
21692001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
2170
2171 * xdisp.c (highlight_trailing_whitespace): On character terminals,
2172 skip the padding blanks inserted in extend_face_to_end_of_line,
2173 before checking for trailing whitespace.
2174
159cf431
GM
21752001-03-13 Gerd Moellmann <gerd@gnu.org>
2176
52283633 2177 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
2178 Remove special handling for LessTif/Motif.
2179 (toplevel): Don't include Xm/Xm.h.
2180
52283633
SM
2181 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
2182 Remove workaround code for LessTif; it doesn't work anymore.
2183
2564ea1b 2184 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 2185 Xm/ScrollBarP.h.
afcdc0a1 2186
52283633
SM
2187 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
2188 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
2189 contemporary LessTif.
2190
52283633
SM
2191 * xfaces.c (xm_set_menu_resources_from_menu_face):
2192 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 2193
159cf431
GM
2194 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
2195 removing button grabs.
2196
c6f7429a
KH
21972001-03-13 Kenichi Handa <handa@etl.go.jp>
2198
cb82d767
KH
2199 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
2200 and clip-large-size-font as obsolete.
2201
c6f7429a
KH
2202 * lread.c (read_multibyte): Check the validity of multibyte
2203 sequence. If invalid, return the first byte.
2204
760cefb5
GM
22052001-03-12 Gerd Moellmann <gerd@gnu.org>
2206
2207 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
2208 before running the command; timer functions or process
2209 filters may have set it.
2210
5141f9d0
EZ
22112001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
2212
2213 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
2214 Doc fix.
2215
b6a15240
GM
22162001-03-12 Gerd Moellmann <gerd@gnu.org>
2217
2218 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
2219 to sprintf.
2220
95522746
GM
22212001-03-09 Gerd Moellmann <gerd@gnu.org>
2222
db14cfc5
GM
2223 * dispextern.h (string_buffer_position): Add prototype.
2224
52283633 2225 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
2226 (single_display_prop_string_p): New functions.
2227
2228 * xterm.c (note_mouse_highlight): If there's no help-echo on
2229 a string, look at the buffer text ``under'' it.
2230
2231 * keyboard.c (make_lispy_event): Add string info to the event,
2232 analogous to what's done on mode lines.
2233 (read_key_sequence): For a click on a string, consider `local-map'
2234 and `keymap' of that string.
2235
52283633
SM
2236 * keyboard.c (make_lispy_event, make_lispy_movement):
2237 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
2238
2239 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
2240
2241 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
2242 POS; return void.
2243
95522746
GM
2244 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
2245 flags argument to emacs_open; it seems to conflict with O_EXCL.
2246
898a399d
KH
22472001-03-09 Kenichi Handa <handa@etl.go.jp>
2248
28cd4910
KH
2249 * composite.h (struct composition): Change types of members;
2250 glyph_len to unsigned, width to unsigned short.
898a399d 2251
4cdf6a6c
AI
22522001-03-08 Andrew Innes <andrewi@gnu.org>
2253
2254 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
2255 menu titles.
2256
129004d3
GM
22572001-03-08 Gerd Moellmann <gerd@gnu.org>
2258
221dd3e7
GM
2259 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
2260 instead of nil.
2261
52283633 2262 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
2263 help-echo in strings.
2264 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
2265 (fast_find_string_pos): New function.
2266
52283633
SM
2267 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
2268 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
2269
2270 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
2271 Handle `mouse-face'.
2272
2273 * dispextern.h (face_at_string_position): Change prototype.
2274
52283633 2275 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 2276
129004d3
GM
2277 * keyboard.c (make_lispy_event): Avoid generating drag events
2278 if the mouse hasn't actually moved to another buffer position.
52283633 2279
80c8ab8c
DL
22802001-03-08 Dave Love <fx@gnu.org>
2281
129004d3 2282 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 2283
989521fd
GM
22842001-03-08 Gerd Moellmann <gerd@gnu.org>
2285
2286 * process.c (Fset_process_window_size): Fix a typo.
2287
bb5c338d
KH
22882001-03-08 Kenichi Handa <handa@etl.go.jp>
2289
2290 * coding.c (detect_coding_sjis): Do more rigid check.
2291 (detect_coding_big5): Likewise.
2292 (decode_coding_sjis_big5): Likewise.
2293 (Fdetect_coding_region): Call detect_coding_system with tailing
2294 anchor byte `\0' for more rigid detection.
52283633 2295 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
2296 (Fdetect_coding_string): Likewise.
2297
8b8f9197
SM
22982001-03-07 Stefan Monnier <monnier@cs.yale.edu>
2299
2300 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
2301 a string before extracting its data.
2302
3bdf2660
GM
23032001-03-07 Gerd Moellmann <gerd@gnu.org>
2304
2305 * window.c (Frecenter): Rewrite code handling negative values
2306 of ARG on graphical frames.
2307
23082001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
2309
2310 * window.c (displayed_window_lines): If W->start is outside the
2311 accessible portion of the buffer, call start_display with BEGV or
2312 ZV instead of W->start.
2313
471f86b9
GM
23142001-03-07 Gerd Moellmann <gerd@gnu.org>
2315
2ab62c6c
GM
2316 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
2317
471f86b9
GM
2318 * process.c (Fset_process_filter): Don't crash if the input
2319 file descriptor of PROCESS is closed.
2320 (Fset_process_window_size): Likewise.
2321
101922c3
GM
23222001-03-06 Kenichi Handa <handa@etl.go.jp>
2323
2324 * xterm.c (XTflash): Make the timeout of select shorter, and call
2325 select repeatedly until the desired time expires.
2326
45d051a7
GM
23272001-03-06 Gerd Moellmann <gerd@gnu.org>
2328
2329 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
2330
2331 * xfns.c (Fx_create_frame): Clear Vwindow_list.
2332
2333 * lisp.h (Vwindow_list): Declare extern.
2334
8f372c46
EZ
23352001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
2336
2337 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
2338
f16a7aa5
GM
23392001-03-06 Gerd Moellmann <gerd@gnu.org>
2340
157ae273
GM
2341 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
2342 to detect a case where we have to highlight a different region
2343 despite not having left the currently highlighted region.
2344 Set mouse_face_overlay in the x_display_info.
45d051a7 2345 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
2346
2347 * xterm.h (struct x_display_info): Add mouse_face_overlay.
2348
2349 * buffer.c (mouse_face_overlay_overlaps): New function.
2350
2351 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
2352 (Qmouse_face): Declare extern.
2353
f16a7aa5
GM
2354 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
2355 if face_change_count is non-zero.
2356
827afcac
KH
23572001-03-06 Kenichi Handa <handa@etl.go.jp>
2358
2359 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
2360 that the source is unibyte.
2361
14c7242e
DL
23622001-03-05 Dave Love <fx@gnu.org>
2363
827afcac 2364 * xterm.c (XTmouse_position): Fix typo.
14c7242e 2365
c28b847b
GM
23662001-03-05 Gerd Moellmann <gerd@gnu.org>
2367
2368 * minibuf.c (read_minibuf): Clean up the binding stack if
2369 called noninteractively.
2370
b86644f2
KH
23712001-03-05 Kenichi Handa <handa@etl.go.jp>
2372
2373 * coding.c (syms_of_coding): Docstring modified.
2374
203682cc 23752001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
2376
2377 * charset.c (char_to_string): If a single byte char has modifier
2378 bits that can't be reflected to the character code, ignore them
45d051a7 2379 instead of signaling an error.
b86644f2 2380
e30bd7b7
EZ
23812001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
2382
2383 * s/msdos.h: Update copyright notice.
2384
2385 * dosfns.h: Update copyright notice.
2386
2387 * dosfns.c: Update copyright notice.
2388
2389 * msdos.c: Update copyright notice.
2390
b52b65bd
GM
23912001-03-02 Gerd Moellmann <gerd@gnu.org>
2392
2393 * xterm.c (glyph_rect): New function.
2394 (XTmouse_position): Use it to raise the threshold for mouse
2395 movement event generation.
2396
53c4b1e6
EZ
23972001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
2398
2399 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
2400 specifies (reverse . t), reverse the initial screen colors.
2401 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
2402 but we are reversing the colors, set bg_set, not fg_set.
2403 Likewise for setting background-color and reversing: set fg_set.
2404 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
2405 in effect.
2406
2407 * xfaces.c (Finternal_set_lisp_face_attribute)
2408 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
2409 parameters alist.
2410
f964b4d7
GM
24112001-03-02 Gerd Moellmann <gerd@gnu.org>
2412
ef53d75e
GM
2413 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
2414 to a single slash in the middle of file names.
2415
52283633 2416 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
2417 Accept only alphanumeric time zone names.
2418
f964b4d7
GM
2419 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
2420 or width area.
2421 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
2422 a widget to zero height.
52283633 2423
c3c45f65
GM
24242001-03-01 Gerd Moellmann <gerd@gnu.org>
2425
2426 * window.c (Fwindow_end): Call move_it_past_eol only if
2427 ending up on a partially visible line.
2428
028d739a
DL
24292001-03-01 Dave Love <fx@gnu.org>
2430
2431 * ccl.c (Fccl_execute): Doc fix.
2432
57c5889c
GM
24332001-03-01 Gerd Moellmann <gerd@gnu.org>
2434
35f59f6b
GM
2435 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
2436 of the tool bar before calling x_figure_window_size.
2437
f84ff02c
GM
2438 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
2439 NULL after destroying it, otherwise XTread_socket can access a
2440 destroyed widget when input is unblocked.
2441
8b8f9197 2442 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 2443
57c5889c
GM
2444 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
2445 same name as before, although there was a change in fontsets.
2446
224227d1
KR
24472001-02-28 Ken Raeburn <raeburn@gnu.org>
2448
4560730a
KR
2449 * lisp.h (Fframe_parameter): Declare.
2450
224227d1 2451 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 2452 Lisp_Object.
224227d1 2453
ece93c02
GM
24542001-02-28 Gerd Moellmann <gerd@gnu.org>
2455
11ef99b9
GM
2456 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
2457 NULL instead.
2458
2459 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
2460 NULL instead.
2461
ece93c02
GM
2462 * alloc.c (toplevel): Include process.h.
2463 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
2464 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
2465 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
2466 (allocate_vector, allocate_hash_table, allocate_window)
2467 (allocate_frame, allocate_process, allocate_other_vector):
2468 New functions.
ece93c02
GM
2469 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
2470 (mark_maybe_pointer): New function.
52283633 2471 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
2472 remain and not Lisp_Objects.
2473 (min_heap_address, max_heap_address): New variables.
2474 (mem_find): Return MEM_NIL if START is below min_heap_address or
2475 above max_heap_address.
2476 (mem_insert): Compute min_heap_address and max_heap_address.
2477
2478 * process.c (make_process): Use allocate_process.
2479
2480 * frame.c (make_frame): Use allocate_frame.
2481
2482 * window.c (make_window, make_dummy_parent): Use allocate_window.
2483 (Fcurrent_window_configuration): Use allocate_other_vector.
2484
2485 * lisp.h (allocate_vectorlike): Remove prototype.
2486 (allocate_vector, allocate_other_vector, allocate_frame)
2487 (allocate_window, allocate_process, allocate_hash_table):
2488 Add prototypes.
2489
2490 * fns.c (Fdelete, larger_vector): Use allocate_vector.
2491 (make_hash_table, copy_hash_table): Use allocate_hash_table.
2492
063af457
KH
24932001-02-27 Kenichi Handa <handa@etl.go.jp>
2494
2495 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
2496 treat the produced bytes as a valid multibyte sequence.
2497
2498 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
2499 (ccl_driver) <CCL_WriteMultibyteChar2>:
2500 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
2501 <ccl_finish>: Set ccl->eight_bit_control properly.
2502
2503 * ccl.h (struct ccl_program): New member eight_bit_control.
2504
f58c6494
SM
25052001-02-26 Stefan Monnier <monnier@cs.yale.edu>
2506
2507 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
2508 accessible_keymaps_char_table.
2509 (accessible_keymaps_char_table): Obey `is_metized'.
2510 (where_is_internal, Fwhere_is_internal): Don't confuse int and
2511 Lisp_Object.
2512
c596c392
GM
25132001-02-26 Gerd Moellmann <gerd@gnu.org>
2514
2515 * dispnew.c: Check HAVE_TERM_H before including term.h.
2516
425de386
AI
25172001-02-24 Andrew Innes <andrewi@gnu.org>
2518
2519 * makefile.w32-in: Update copyright notice.
2520
2ba11bbd
SM
25212001-02-24 Stefan Monnier <monnier@cs.yale.edu>
2522
2523 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
2524
66c56ed1
KH
25252001-02-24 Kenichi Handa <handa@etl.go.jp>
2526
4c1593ce
KH
2527 * Makefile.in (lisp): Add international/utf-8.elc.
2528
66c56ed1
KH
2529 * fontset.c (Fnew_fontset): Fix handling of the case that an
2530 element of FONTLIST is a cons of family and registry.
2531
796ead7e
JR
25322001-02-23 Jason Rumney <jasonr@gnu.org>
2533
2534 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
2535 to height unconditionally.
2536
2537 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 2538 background face to the end of the drawing area in the text area, only.
796ead7e
JR
2539 (x_insert_glyphs): Call window_box_left to obtain the left
2540 x-coordinate of the area to shift.
2541
2542 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
2543 safe_run_hooks.
2544
f6839838
AI
25452001-02-22 Andrew Innes <andrewi@gnu.org>
2546
52283633 2547 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
2548 ($(BLD)\dispnew.obj):
2549 ($(BLD)\editfns.obj):
2550 ($(BLD)\fileio.obj):
2551 ($(BLD)\filelock.obj):
2552 ($(BLD)\keyboard.obj):
2553 ($(BLD)\w32proc.obj):
2554 ($(BLD)\process.obj):
2555 ($(BLD)\sysdep.obj): Ditto.
2556
2557 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
2558 header files.
52283633
SM
2559 ($(BLD)/dispnew.$(O)):
2560 ($(BLD)/editfns.$(O)):
2561 ($(BLD)/fileio.$(O)):
2562 ($(BLD)/filelock.$(O)):
2563 ($(BLD)/keyboard.$(O)):
2564 ($(BLD)/w32proc.$(O)):
2565 ($(BLD)/process.$(O)):
f6839838
AI
2566 ($(BLD)/sysdep.$(O)): Ditto.
2567
c224f70b
GM
25682001-02-22 Gerd Moellmann <gerd@gnu.org>
2569
51695746
GM
2570 * xdisp.c (forward_to_next_line_start): When taking the shortcut
2571 at the start of the function, check that the \n in it->c is
2572 from the iterator's current position.
52283633 2573
a61b7058
GM
2574 * xdisp.c (handle_single_display_prop): Add parameter
2575 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
2576 properties which replace the display of text with something else.
2577 (handle_display_prop): Call handle_single_display_prop with
2578 additional argument saying if we already replaced text display
2579 with something else. Use AREF.
52283633 2580 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
2581 (decode_mode_spec_coding): Use AREF and ASIZE.
2582
3473f362
GM
2583 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
2584 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
2585 * vmstime.h: Files removed.
52283633 2586
2bb58df3
GM
2587 * unexencap.c, unexfx2800.c: Files removed.
2588
c224f70b
GM
2589 * dispnew.c (direct_output_for_insert): Give up if we are showing
2590 a message or just cleared the message because we might need to
2591 resize the echo area window or display an empty echo area.
2592
ffc9ff0c
GM
25932001-02-21 Gerd Moellmann <gerd@gnu.org>
2594
0528abe1
GM
2595 * xdisp.c (redisplay_internal): Do the
2596 mark_window_display_accurate after all windows have been
2597 redisplayed because this call resets flags in buffers which are
2598 needed for proper redisplay.
2599
52283633
SM
2600 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
2601 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
2602 the old names.
2603
52283633
SM
2604 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
2605 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
2606
2607 * msdos.h (struct x_output): Rename busy_window to
2608 hourglass_window, busy_p to hourglass_p.
2609
52283633
SM
2610 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
2611 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
2612
2613 * xfns.c: Rename everything containing *busy_cursor* and similar
2614 to *hourglass*.
2615 (syms_of_w32fns): Rename x-busy-pointer-shape to
2616 x-hourglass-pointer-shape, display-busy-cursor to
2617 display-hourglass, busy-cursor-delay to hourglass-delay.
2618
2619 * w32fns.c: Rename everything containing *busy_cursor* and similar
2620 to *hourglass*.
2621 (syms_of_w32fns): Rename x-busy-pointer-shape to
2622 x-hourglass-pointer-shape, display-busy-cursor to
2623 display-hourglass, busy-cursor-delay to hourglass-delay.
2624
2625 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
2626 of its busy_p flag.
2627
2628 * dispextern.h (start_hourglass, cancel_hourglass)
2629 (display_hourglass_p): Renamed from *busy_cursor*.
2630
ab2c5f0a
GM
26312001-02-20 Gerd Moellmann <gerd@gnu.org>
2632
d17e49a8
GM
2633 * keyboard.c (read_char): When an event from unread-command-events
2634 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
2635
fa97adf6
GM
2636 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
2637 equal to the current buffer.
2638
ab2c5f0a
GM
2639 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
2640 nil, otherwise we're left with truncate_lines t when a message
2641 is printed with message-truncate-lines bound to t.
2642
aeac019e
GM
26432001-02-19 Gerd Moellmann <gerd@gnu.org>
2644
c8bc6f65
GM
2645 * window.c (Fmove_to_window_line): Undo last change.
2646 (displayed_window_lines): Call line_bottom_y to determine
2647 the line's bottom position.
2648
2649 * dispextern.h (line_bottom_y): Add prototype.
2650
52283633 2651 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
2652 (pos_visible_p): Use it.
2653
980a2d69
GM
2654 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
2655 set redisplaying_p to 0 here instead of in Frecursive_edit.
2656 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
2657 set redisplaying_p.
2658
52283633 2659 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
2660 New variables.
2661 (syms_of_xdisp): Initialize new variables.
2662 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
2663 Specbind `inhibit-menubar-update' when updating the menu bar.
2664
65048e97
GM
2665 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
2666 safe_run_hooks.
2667
2668 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
2669 safe_run_hooks.
2670
a57c4026
GM
2671 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
2672 is null.
2673
aeac019e
GM
2674 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
2675 to the start of the file.
2676
76846b31
GM
26772001-02-16 Gerd Moellmann <gerd@gnu.org>
2678
f3f053f3 2679 * window.c (set_window_buffer): Fix last change.
52283633 2680
f3f053f3
GM
2681 * window.c (set_window_buffer): Set window's vscroll to 0.
2682
dad75588
GM
2683 * window.c (coordinates_in_window): Increase width of area
2684 where the vertical line can be dragged.
2685
c220b753
GM
2686 * xterm.c (x_set_glyph_string_background_width): Extend the
2687 background face to the end of the drawing area in the text
2688 area, only.
2689
c56b1c1b
GM
2690 * xdisp.c (handle_single_display_prop): Set iterator's position
2691 to where the `display' property starts, like for images.
2692 (dump_glyph): New function.
2693 (dump_glyph_row): Use it. Dump info about marginal areas.
2694
2695 * dispnew.c (direct_output_for_insert): Recognize more cases where
2696 glyphs can be written instead of being inserted.
2697
2698 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
2699 the left x-coordinate of the area to shift.
2700
76846b31
GM
2701 * dired.c (directory_files_internal): Set result list to nil
2702 before retrying.
2703
0fc71a77
KH
27042001-02-15 Kenichi Handa <handa@etl.go.jp>
2705
2706 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
2707 invalid multibyte sequence, treat *SRC as a character of
2708 eight-bit-graphic.
2709
25078b54
EZ
27102001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
2711
2712 * textprop.c (Fset_text_properties): Doc fix.
2713
8399f8a0
GM
27142001-02-15 Gerd Moellmann <gerd@gnu.org>
2715
2716 * dispnew.c (update_text_area): Undo change of 2001-01-12.
2717
9a2a6f73
DL
27182001-02-14 Dave Love <fx@gnu.org>
2719
2720 * coding.c: Doc and message fixes.
2721
bf853fee
AI
27222001-02-14 Andrew Innes <andrewi@gnu.org>
2723
2724 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
2725 Emacs frame above the screen size.
2726
78c663d8
GM
27272001-02-14 Gerd Moellmann <gerd@gnu.org>
2728
2729 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
2730
7cc9f69f
GM
27312001-02-13 Gerd Moellmann <gerd@gnu.org>
2732
0a411995
GM
2733 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
2734 case that TO ends up beyond ZV after running before-change-functions.
2735
5ddc1b75
GM
2736 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
2737 the selected window if it is showing the buffer in question.
2738
7cc9f69f
GM
2739 * dired.c (directory_files_internal): Initialize errno.
2740 (toplevel): Include errno.h.
2741
2e6621ca
GM
27422001-02-13 Kenichi Handa <handa@etl.go.jp>
2743
2744 * xfaces.c (best_matching_font): New parameter width_ratio.
2745 Multiply avgwidth by width_ratio.
2746 (choose_face_font): Call best_matching_font with width_ratio
2747 calculated from the column width of C.
2748
60222d69
AI
27492001-02-12 Andrew Innes <andrewi@gnu.org>
2750
2751 The following changes are to draw box lines inside characters area
2752 if line-width is negative.
52283633 2753
60222d69
AI
2754 * w32term.c (x_produce_image_glyph): Pay attention to the case that
2755 face->box_line_width is negative.
2756 (x_produce_stretch_glyph): Likewise.
2757 (x_produce_glyphs): Likewise.
2758 (x_estimate_mode_line_height): Likewise.
2759 (x_draw_glyph_string_background): Likewise.
2760 (x_draw_glyph_string_foreground): Likewise.
2761 (x_draw_composite_glyph_string_foreground): Likewise.
2762 (x_draw_glyph_string_box): Likewise.
2763 (x_draw_image_foreground): Likewise.
2764 (x_draw_image_relief): Likewise.
2765 (x_draw_image_foreground_1): Likewise.
2766 (x_draw_image_glyph_string): Likewise.
2767
9804b846
KH
27682001-02-09 Kenichi Handa <handa@etl.go.jp>
2769
2770 The following changes are to draw box lines inside characters area
2771 if line-width is negative.
52283633 2772
9804b846
KH
2773 * xterm.c (x_produce_image_glyph): Pay attention to the case that
2774 face->box_line_width is negative.
2775 (x_produce_stretch_glyph): Likewise.
2776 (x_produce_glyphs): Likewise.
2777 (x_estimate_mode_line_height): Likewise.
2778 (x_draw_glyph_string_background): Likewise.
2779 (x_draw_glyph_string_foreground): Likewise.
2780 (x_draw_composite_glyph_string_foreground): Likewise.
2781 (x_draw_glyph_string_box): Likewise.
2782 (x_draw_image_foreground): Likewise.
2783 (x_draw_image_relief): Likewise.
2784 (x_draw_image_foreground_1): Likewise.
2785 (x_draw_image_glyph_string): Likewise.
2786
2787 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
2788 and :line-width can be negative.
52283633 2789 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 2790
49be9f70
JR
27912001-02-09 Jason Rumney <jasonr@gnu.org>
2792
2793 * w32term.c (w32_encode_char): Treat eight bit graphic and control
2794 characters the same as ASCII and latin-1.
2795 (x_display_and_set_cursor): Check for the focus frame's selected
2796 window instead of selected_window.
2797 (x_after_update_window_line): Don't clear if frame's internal
2798 border width is zero.
2799 (x_new_font): Don't change a tooltip's size.
2800 (w32_initialize): Set char_ins_del_ok to 1.
2801
2802 * w32fns.c (Fx_show_tip): Fix calls to make_number.
2803 (x_set_font): If font hasn't changed, avoid recomputing
2804 faces and other things.
52283633
SM
2805 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
2806 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
2807 (x_create_tip_frame): Prevent changing the tooltip's
2808 background color by specifying a color for the default font
2809 in .Xdefaults.
2810 (Qcancel_timer): New variable.
2811 (syms_of_w32fns): Initialize and staticpro it.
2812 (Fx_hide_tip, Fx_show_tip): Use it.
2813 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
2814 the timer.
2815 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
2816
2817 * w32.c (init_environment): Duplicate local string before putenv.
2818
555e35d2
SZ
28192001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
2820
2821 * charset.c (Fstring): A typo.
2822
19c92c94
KH
28232001-02-09 Kenichi Handa <handa@etl.go.jp>
2824
e47a1c33
KH
2825 * charset.c (Fstring): If all arguments are less than 256, return
2826 a unibyte string.
2827
2828 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
2829 return a unibyte string.
2830
19c92c94
KH
2831 * coding.c (code_convert_region): After detecting a coding, if
2832 nothing found, set coding->composing to COMPOSITION_NO.
2833 (decode_coding_string): Likewise.
2834
d8e675f5
SM
28352001-02-08 Stefan Monnier <monnier@cs.yale.edu>
2836
2837 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
2838 to avoid overflow.
2839
bd503487
KH
28402001-02-07 Kenichi Handa <handa@etl.go.jp>
2841
2842 * charset.c (parse_str_to_multibyte): New function.
2843
2844 * charset.h (parse_str_to_multibyte): Extern it.
2845
2846 * print.c (print_string): If we are going to print a unibyte
2847 string into a multibyte buffer, convert the string to multibyte by
2848 str_to_multibyte.
2849
a8370d72
AI
28502001-02-06 Andrew Innes <andrewi@gnu.org>
2851
2852 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
2853 been created. It seems we can get sent window messages such as
2854 WM_ERASEBKGND before we properly update a frame.
2855
c363a1d6
GM
28562001-02-06 Gerd Moellmann <gerd@gnu.org>
2857
2858 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
2859 Avoid some unnecessary cursor positioning.
2860
a08332c0
GM
28612001-02-05 Gerd Moellmann <gerd@gnu.org>
2862
52283633 2863 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
2864 (LFACE_AVGWIDTH): New macro.
2865 (LFACEP): Use AREF.
2866 (check_lface_attrs): Check LFACE_AVGWIDTH.
2867 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
2868 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
2869 (merge_face_vectors): Check LFACE_AVGWIDTH.
2870 (Finternal_make_lisp_face): Use AREF.
2871 (xm_set_menu_resources_from_menu_face)
2872 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
2873 (Finternal_lisp_face_empty_p): Use AREF.
2874 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
2875 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
2876 Compare average widths..
2877 (best_matching_font): Arrange for comparing average widths.
2878
52283633
SM
2879 * dispextern.h (enum lface_attribute_index):
2880 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
2881
5cb3c8d4
DL
28822001-02-05 Dave Love <fx@gnu.org>
2883
2884 * puresize.h: Revert last change following loadup.el change.
2885
193fba87
AI
28862001-02-05 Andrew Innes <andrewi@gnu.org>
2887
2888 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
2889 invocation of temacs, to work with Windows 2000.
2890 (bootstrap-emacs): Ditto.
2891
e16f52ce
GM
28922001-02-05 Gerd Moellmann <gerd@gnu.org>
2893
7a58ab59
GM
2894 * xterm.c (x_display_and_set_cursor): Check for the focus
2895 frame's selected window instead of selected_window.
2896
e89aaabd
GM
2897 * xdisp.c (try_scrolling): If point is in the line below the
2898 window, make sure to move the iterator at least a canonical
2899 char height down.
2900
52283633 2901 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 2902
789ce875
KH
29032001-02-05 Kenichi Handa <handa@etl.go.jp>
2904
52283633
SM
2905 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
2906 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
2907 (ccl_driver): If the CCL program is terminated because of
2908 CCL_STAT_INVALID_CMD, copy the remaining source data to the
2909 destination instead of throwing them away.
2910
20b28f82
GM
29112001-02-02 Gerd Moellmann <gerd@gnu.org>
2912
79fb38c0
GM
2913 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
2914 faces and other things.
2915
20b28f82
GM
2916 * xdisp.c (get_next_display_element): Fix case of empty
2917 display table entry.
2918
5a72551e
EZ
29192001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
2920
eb24d0bf
EZ
2921 * editfns.c (Fconstrain_to_field): Doc fix.
2922
6a3f48c7
EZ
2923 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
2924 into `thoroughly', to make it consistent with the doc string.
2925
5a72551e
EZ
2926 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
2927
01acdb05
GM
29282001-02-01 Gerd Moellmann <gerd@gnu.org>
2929
0353b28f
GM
2930 * search.c (search_buffer): Call set_search_regs with a byte
2931 position, not a character position.
2932
01acdb05
GM
2933 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
2934 minibuffer-only,
2935
e86b5133
EZ
29362001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
2937
2938 * frame.c (Fmodify_frame_parameters): Doc fix.
2939
7442878f
GM
29402001-01-31 Gerd Moellmann <gerd@gnu.org>
2941
01acdb05
GM
2942 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
2943 identifier which is not reserved by Standard C.
52283633 2944
7442878f
GM
2945 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
2946
2947 * window.c (enum window_part): New enumeration.
2948 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
2949 Qright_bitmap_area.
2950 (coordinates_in_window): Return an enumerator from enum
2951 window_part. Fix handling of right scroll bar.
2952 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
2953 `right-fringe' instead of `left-bitmap-area' and
2954 `right-bitmap-area'. Use enumerators from enum window_part
2955 instead of hard-coded integers.
52283633
SM
2956 (check_window_containing, window_from_coordinates):
2957 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
2958 (syms_of_window): Replace Qleft_bitmap_area and
2959 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
2960
7c132cba
EZ
29612001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
2962
2963 * editfns.c (Fformat_time_string): Doc fix.
2964
c359dd9e
SM
29652001-01-31 Stefan Monnier <monnier@cs.yale.edu>
2966
2967 * keymap.c (Fwhere_is_internal): Use the first valid binding
2968 if no ascii binding is found (when firstonly is t).
2969
ce070307
GM
29702001-01-31 Gerd Moellmann <gerd@gnu.org>
2971
b4f30ec5
GM
2972 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
2973 instead of Finteractive_p.
2974
2975 * lisp.h (interactive_p): Add prototype.
2976
2977 * eval.c (interactive_p): New function.
2978 (Finteractive_p): Use it.
2979
ce070307
GM
2980 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
2981
f57b6e64
DL
29822001-01-31 Dave Love <fx@gnu.org>
2983
d61c7afe
DL
2984 * .gdbinit (hook-run): Define to run xreload.
2985
f57b6e64
DL
2986 * textprop.c (Fset_text_properties): Fix newline in doc string.
2987
eef93f99
GM
29882001-01-30 Gerd Moellmann <gerd@gnu.org>
2989
52283633
SM
2990 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
2991 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
2992
2993 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 2994 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
2995 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
2996
2997 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
2998 height.
2999
d9c1f6f9
DL
30002001-01-30 Dave Love <fx@gnu.org>
3001
3002 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
3003 AFTER_POTENTIAL_GC.
3004
e8f044a0
GM
30052001-01-29 Gerd Moellmann <gerd@gnu.org>
3006
52283633
SM
3007 * bytecode.c (Fbyte_code) <Bcurrent_column>:
3008 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 3009
8e1db7b3
EZ
30102001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
3011
3012 * textprop.c (Fset_text_properties): Doc fix.
3013
4eefd9d2
GM
30142001-01-29 Gerd Moellmann <gerd@gnu.org>
3015
3016 * xdisp.c (forward_to_next_line_start): Remove xassert.
3017
fccb8288
EZ
30182001-01-29 Jason Rumney <jasonr@gnu.org>
3019
4eefd9d2 3020 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
3021 returning without releasing it.
3022
76581eab
KH
30232001-01-29 Kenichi Handa <handa@etl.go.jp>
3024
3025 * w32fns.c (w32_font_match): Allocate three more bytes to regex
3026 for '^', '$', and '\0'.
3027
83a96b4d
AC
30282001-01-28 Andrew Choi <akochoi@i-cable.com>
3029
5604ec34
AC
3030 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
3031 regex for '^', '$', and '\0'.
3032
83a96b4d
AC
3033 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
3034 only if current_sblock has been initialized.
3035
3036 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
3037 terminal frame even if it is the only visible frame.
3038
c09a6440
KH
30392001-01-28 Kenichi Handa <handa@etl.go.jp>
3040
3041 * fontset.c (font_family_registry): Even if FONTNAME conform to
3042 XLFD, if it specifies other fields than family and registry,
52283633 3043 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 3044 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
3045 a signle byte character. Don't set FAMILY part to nil here.
3046 It is handled by the caller choose_face_font.
c09a6440
KH
3047 (Fnew_fontset): Call font_family_registry with FORCE 0.
3048 (Fset_fontset_font): Likewise.
3049
4dcd74e6
GM
30502001-01-27 Gerd Moellmann <gerd@gnu.org>
3051
3052 * xdisp.c (display_line): Don't treat a newline as fitting
3053 on the line.
3054
d2906bf8
GM
30552001-01-26 Gerd Moellmann <gerd@gnu.org>
3056
0130fe1a
GM
3057 * window.c (size_window): Set the window's orig_top to nil when
3058 changing heights, so that a future shrink_mini_window won't
3059 restore a bogus height.
3060
550f0e6a
GM
3061 * frame.c (do_switch_frame): If selected frame has a mini-window,
3062 resize that to exact size.
3063
b7b20fbd
GM
3064 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
3065
a47b7816
GM
3066 * xdisp.c (display_line): Simplify check for glyphs fitting
3067 entirely in the line.
3068
d2906bf8
GM
3069 * xfns.c (xic_style): New variable.
3070 (create_frame_xic): Move static variable to global scope for
550f0e6a 3071 the case that `static' gets defined away.
d2906bf8 3072
73df2b1e
KH
30732001-01-26 Kenichi Handa <handa@etl.go.jp>
3074
3075 * coding.c (decode_coding): Set a flag for inhibiting
3076 inconsistent eol.
3077 (code_convert_region): Always set saved_coding_symbol.
3078 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 3079 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 3080
6613cfc4
GM
30812001-01-25 Gerd Moellmann <gerd@gnu.org>
3082
c5e6e06b
GM
3083 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
3084 XClearArea.
3085
3086 * xterm.c (x_after_update_window_line): Don't clear if frame's
3087 internal border width is zero.
3088 (x_clear_area): New function.
3089 (x_after_update_window_line, x_clear_end_of_line)
3090 (x_scroll_bar_create, x_scroll_bar_set_handle)
3091 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
3092 instead of XClearArea.
3093
3094 * xterm.h (x_clear_area): Add prototype.
3095
6613cfc4
GM
3096 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
3097 which doesn't seem necessary anymore with Lesstif 0.92.
3098
650cc6cc
DL
30992001-01-25 Dave Love <fx@gnu.org>
3100
34ac3367
DL
3101 * puresize.h (BASE_PURESIZE): Up to 720000.
3102
650cc6cc
DL
3103 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
3104
5e37dc22
GM
31052001-01-25 Gerd Moellmann <gerd@gnu.org>
3106
e1e441f9
GM
3107 * xdisp.c (echo_area_display): Don't call redisplay_internal
3108 when Emacs is shutting down. We can't run hooks etc. that
3109 would be necessary to do a redisplay.
3110
5e37dc22
GM
3111 * lread.c (read_integer): Use type EMACS_INT instead of int.
3112
0fb94c7f
EZ
31132001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
3114
3115 * ccl.c (ccl_driver): Fix last change.
3116
e3778624
KH
31172001-01-25 Kenichi Handa <handa@etl.go.jp>
3118
3119 * ccl.h (sturct ccl_program): New member suppress_error.
3120
bb264518 3121 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
3122 insert error message to the output.
3123 (setup_ccl_program): Initialize ccl->suppress_error to 0.
3124
3125 * coding.h (struct coding_system): New member suppress_error.
3126
3127 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
3128 (Fset_terminal_coding_system_internal): Set the member
3129 suppress_error to 1.
3130 (Fset_safe_terminal_coding_system_internal): Likewise.
3131
245ed2b1
SM
31322001-01-24 Stefan Monnier <monnier@cs.yale.edu>
3133
3134 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
3135 as if it was a `charset'.
3136
f9aaedb6
GM
31372001-01-24 Gerd Moellmann <gerd@gnu.org>
3138
3139 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
3140 value in where_is_cache; the next lookup in the cache returns
3141 something bogus if we do.
3142
c3902c3e
EZ
31432001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
3144
3145 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
3146 if HAVE_WINDOW_SYSTEM isn't defined.
3147
3497f73e
GM
31482001-01-24 Gerd Moellmann <gerd@gnu.org>
3149
e7e41584
GM
3150 * fns.c (sweep_weak_table): Fix code taking items out of
3151 the hash collision chain. Some cleanup.
3152
3497f73e
GM
3153 * xterm.c (x_new_font): Don't change a tooltip's size.
3154
3155 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
3156 background color by specifying a color for the default font
3157 in .Xdefaults.
3158
3d48e687
KH
31592001-01-24 Kenichi Handa <handa@etl.go.jp>
3160
96531b20
KH
3161 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
3162 a workaround for SunOS 4's cc.
3163 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
3164 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
3165 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
3166 statement.
3d48e687 3167
a30629d2
GM
31682001-01-23 Gerd Moellmann <gerd@gnu.org>
3169
3170 * xterm.c (x_set_window_size_1): New function extracted from
3171 x_set_window_size.
3172 (x_set_window_size): Use it.
3173 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
3174 doesn't have a widget, like tooltips.
3175
5a43decf
EZ
31762001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
3177
52283633 3178 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 3179
b0e98867
KH
31802001-01-23 Kenichi Handa <handa@etl.go.jp>
3181
3182 * fns.c (Fset_char_table_default): Fix to make sub char-table
3183 correctly.
3184
50606b4c
GM
31852001-01-22 Gerd Moellmann <gerd@gnu.org>
3186
cb2ddc53 3187 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
3188 a desired tool bar string, even if there are no tool bar items.
3189
57c28064
GM
3190 * xdisp.c (Ftool_bar_lines_needed): New function.
3191 (syms_of_xdisp): Defsubr it.
3192
50606b4c
GM
3193 * editfns.c (Fformat): Don't extend text properties from arguments
3194 to padding chars in the result.
3195
2f169c38
EZ
31962001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
3197
3198 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
3199
0f32f023
AI
32002001-01-20 Andrew Innes <andrewi@gnu.org>
3201
52283633 3202 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
3203 (w32_initialize): Don't set term hooks that aren't actually needed
3204 in windowed mode.
3205
3206 * xfaces.c (realize_default_face):
3207 (realize_face):
3208 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
3209
3210 * xdisp.c (handle_single_display_prop): Remove references to
3211 FRAME_W32_CONSOLE_P.
3212
52283633 3213 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
3214
3215 * frame.h (output_method): Remove output_w32_console method.
3216 (FRAME_W32_CONSOLE_P): Remove macro.
3217
3218 * frame.c (Qw32_console): Remove variable.
3219 (Fframep): Remove references to it.
3220 (syms_of_frame): Ditto.
3221 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
3222
3223 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
3224 redefinition.
3225
7173eada
KH
32262001-01-20 Kenichi Handa <handa@etl.go.jp>
3227
3228 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
3229
755b45ce
AI
32302001-01-19 Andrew Innes <andrewi@gnu.org>
3231
3232 * w32.c (init_environment): Add a version-independent site-lisp
3233 directory to EMACSLOADPATH, after the version dependent one.
3234
0a949811
GM
32352001-01-19 Gerd Moellmann <gerd@gnu.org>
3236
8501998a
GM
3237 * editfns.c (Fbuffer_substring): Doc fix.
3238
52283633
SM
3239 * xdisp.c (message_dolog, message2, message2_nolog):
3240 Rename parameter LEN to NBYTES.
0a949811 3241
e6ebcbbe
KH
32422001-01-19 Kenichi Handa <handa@etl.go.jp>
3243
200ecca2
KH
3244 * charset.c (strwidth): Use c_string_width.
3245 (c_string_width): New function.
3246 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
3247 Caller changed.
3248
3249 * charset.h (c_string_width, lisp_string_width): Extern them.
3250
52283633 3251 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 3252
e6ebcbbe
KH
3253 * indent.c (check_composition): Check validity of composition.
3254
200ecca2
KH
3255 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
3256 characters by calling c_string_width.
3257 (x_consider_frame_title): Get byte length of frame tile string
3258 correctly.
3259 (display_mode_element): Pay attention to width of non-ASCII
3260 characters by calling strwidth.
3261
8692ca92
GM
32622001-01-18 Gerd Moellmann <gerd@gnu.org>
3263
8962e303
GM
3264 * xfns.c (Qcancel_timer): New variable.
3265 (syms_of_xfns): Initialize and staticpro it.
3266 (Fx_hide_tip, Fx_show_tip): Use it.
3267 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
3268 the timer.
3269 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
3270
91523be9
GM
3271 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
3272
3273 * window.h (WINDOW_LIVE_P): New macro.
3274
b0b7ed0e
GM
3275 * window.c (window_size_fixed): New variable.
3276 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
3277 the doc string.
3278
06bccf8e
GM
3279 * eval.c (specbind): If binding a per-buffer variable which
3280 doesn't have a buffer-local value in the current buffer, change
3281 the global value by changing the value of the symbol bound in all
3282 buffers not having their own value, to make it consistent with
3283 what happens with other buffer-local variables.
3284
8692ca92
GM
3285 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
3286
3287 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
3288 when searching for a newline.
3289
bb3a3b50
KH
32902001-01-18 Kenichi Handa <handa@etl.go.jp>
3291
3292 * xdisp.c (display_string): Fix previous change.
3293
c2cc16fa
JR
32942001-01-18 Jason Rumney <jasonr@gnu.org>
3295
3296 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
3297 GLYPH_DEBUG is defined.
3298 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
3299 true for images with `:ascent 100'.
3300 (x_set_mouse_face_gc): If the last used mouse face has gone in the
3301 meantime, use face MOUSE_FACE_ID.
3302 If first glyph isn't a character glyph, use the ASCII NUL
3303 character to determine the face.
3304 (expose_area): Do not treat left margin specially.
3305 (note_mode_line_highlight): If no local_map, check global keymap.
3306 (note_mouse_highlight): Initialize overlay.
52283633 3307 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
3308 (show_scroll_bars): Remove unused function.
3309 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
3310 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
3311 Clip to row.
52283633 3312 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
3313 (x_free_frame_resources): Unload relief colors.
3314
9c11f79e
GM
33152001-01-17 Gerd Moellmann <gerd@gnu.org>
3316
3aec8722 3317 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
3318 get_next_display_element when the newline is already found.
3319 This may change the iterator's position, when its current position is
3aec8722
GM
3320 equal to the iterator's stop_charpos.
3321
f3ffc2c3
GM
3322 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
3323 zero, use this method only at the end of a line.
3324
52283633 3325 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
3326 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
3327 if SCALABLE_FONTS_P is set.
52283633 3328
d26d6fd9
GM
3329 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
3330 so that scalable fonts are included.
3331
9c11f79e
GM
3332 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
3333 In the cache, use a key containing the information if scalable
3334 fonts are included.
3335 (x_load_font): Adapt to change of keys in the font cache.
3336
33372001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 3338
d26d6fd9
GM
3339 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
3340 XListFonts to take advantage of font caching.
3341
9c11f79e
GM
3342 * xterm.c (x_list_fonts): Ensure caching font information when
3343 called for a null frame, which is the case frequently when Emacs
3344 starts.
3345
51446987
GM
33462001-01-17 Gerd Moellmann <gerd@gnu.org>
3347
f864120f
GM
3348 * xfns.c (QCconversion): Replaces QCalgorithm.
3349
3350 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
3351
3352 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
3353 of :algorithm.
52283633 3354
e37d1417
GM
3355 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
3356 not everything could be displayed.
3357
51446987
GM
3358 * line.h, x-list-font.c: Files removed because unused.
3359
9ad4f3e5
AI
33602001-01-17 Andrew Innes <andrewi@gnu.org>
3361
3362 * dired.c (directory_files_internal): Convert result from readdir
3363 to a unibyte string initially, to avoid possible misinterpretation
3364 of some bytes as the internal form of Emacs characters.
3365
2eda09b5
KH
33662001-01-17 Kenichi Handa <handa@etl.go.jp>
3367
3368 * fns.c (concat): Be sure to avoid putting the same `composition'
3369 property on the adjacent regions.
3370
826f3788
GM
33712001-01-16 Gerd Moellmann <gerd@gnu.org>
3372
52283633 3373 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
3374 (Fscroll_right, Fscroll_left): Set it here instead, if called
3375 interactively.
3376
d57b83b3
GM
3377 * buffer.c (Fset_buffer_modified_p): Set buffer's
3378 prevent_redisplay_optimizations_p flag.
3379
826f3788 3380 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
3381 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
3382 with additional arg.
3383
3384 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
3385 Change prototype.
826f3788 3386
826f3788
GM
3387 * xdisp.c (redisplay_preserve_echo_area): Add parameter
3388 FROM_WHERE, for debugging.
3389
261d788b
KH
33902001-01-16 Kenichi Handa <handa@etl.go.jp>
3391
3392 * ccl.c (Fregister_ccl_program): Handle the return value of
3393 resolve_symbol_ccl_program correctly.
52283633 3394 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 3395
bccee4f2
GM
33962001-01-15 Gerd Moellmann <gerd@gnu.org>
3397
e4ded23c
GM
3398 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
3399 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
3400
3401 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
3402 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
3403 the display; we didn't open it.
3404
bccee4f2
GM
3405 * dispnew.c (save_or_restore_current_matrices): Function removed.
3406 (save_current_matrix, restore_current_matrix): New functions.
3407 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
3408 restore the frame's current matrix. Due to the glyph pointer
3409 setup done in adjust_glyph_matrix, there is no easy way to make
3410 saving the current matrix in the desired matrix generally correct,
3411 so don't try it.
3412
ebeccffa
KH
34132001-01-15 Kenichi Handa <handa@etl.go.jp>
3414
3415 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
3416 truncation glyphs.
3417 (display_line): Optimize for wide characters.
e4ded23c 3418 (display_string): Don't try to display a multi-column character
ebeccffa
KH
3419 partially. On ttys, produce more than one truncation glyph for
3420 multi-column characters that don't fit on the line.
3421
64388126
KH
34222001-01-13 Kenichi Handa <handa@etl.go.jp>
3423
52283633
SM
3424 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
3425 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 3426
8edb0a6f
JR
34272001-01-13 Jason Rumney <jasonr@gnu.org>
3428
3429 * w32fns.c (Fimage_size, image_ascent, lookup_image)
3430 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
3431 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
3432 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 3433
52283633
SM
3434 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
3435 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
3436 (x_draw_image_glyph_string): Adapt to change of image margins.
3437
3438 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
3439 variables.
3440
3441 * w32bdf.c (search_file_line, get_cached_font_char)
3442 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
3443
3444 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
3445
3446 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
3447 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
3448 (Fw32_send_sys_command): Remove unused variables.
3449 (w32_msg_pump): Add parentheses.
3450
3451 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
3452 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
3453 Add parentheses.
3454
4956d1ef
GM
34552001-01-12 Gerd Moellmann <gerd@gnu.org>
3456
b30623be
GM
3457 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
3458 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
3459 being a pair of margins.
3460 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
3461 to DEFVAR_LISP. Extend doc.
3462
3463 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
3464 margins.
3465 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
3466 pair of integers `(X . Y)', use X for the horizontal and Y for the
3467 vertical margin.
3468 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
3469 (parse_image_spec): Check it.
52283633
SM
3470 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
3471 (tiff_format, gif_format, gs_format):
3472 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 3473
52283633
SM
3474 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
3475 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
3476 (x_draw_image_glyph_string): Adapt to the change of image margins.
3477
3478 * dispextern.h (struct image): Replace member `margin' with
3479 `hmargin' and `vmargin'.
3480
4554cc79
GM
3481 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
3482 and GLYPHS.
3483
3484 * dispnew.c (update_text_area): Put code which decrements the
3485 stop position when the row's face extends to the end of the
3bffc665 3486 line in #if 0.
4554cc79 3487
3cccce8d
GM
3488 * xfns.c (x_set_mouse_color): Fix color allocation.
3489
4956d1ef
GM
3490 * keyboard.c: Call get_local_map with new argument list.
3491
3492 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
3493
3494 * intervals.h (enum map_property): Removed.
3495 (get_local_map): Change prototype.
3496
3497 * keymap.c: Call get_local_map with new argument list.
3498 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
3499
2c2ff7f2
GM
35002001-01-11 Gerd Moellmann <gerd@gnu.org>
3501
a23887b9
GM
3502 * xdisp.c (build_desired_tool_bar_string): Correct the computation
3503 of the size needed for the tool bar string. For the last image,
3504 use a `display' property that reaches to the end of the string.
3505
a7ee2d2e
GM
3506 * xselect.c (selection_request_dpyinfo): New variable.
3507 (x_handle_selection_request): Set it.
3508 (x_selection_request_lisp_error): Don't call
3509 x_decline_selection_request if selection request's display has
3510 been closed.
3511
52283633
SM
3512 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
3513 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 3514
457b792c
GM
35152001-01-10 Dave Love <fx@gnu.org>
3516
3517 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
3518 ${SOME_MACHINE_LISP}, not ${lisp}.
3519
c1efd260
GM
35202001-01-10 Gerd Moellmann <gerd@gnu.org>
3521
52283633
SM
3522 * xdisp.c (display_line): On ttys, produce more than one truncation
3523 glyph for multi-column characters that don't fit on the line.
a98b5ed9 3524
ac95a621
GM
3525 * xselect.c (x_reply_selection_request): Add a comment.
3526
c1efd260
GM
3527 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
3528 XkbGetNames instead of XkbGetKeyboard.
3529
1bfb1345
DL
35302001-01-10 Dave Love <fx@gnu.org>
3531
3532 * sysdep.c (random): Revert the declaration.
3533
38119822
GM
35342001-01-09 Gerd Moellmann <gerd@gnu.org>
3535
52283633
SM
3536 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
3537 Call function string_bytes.
35f464a7
GM
3538 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
3539
3540 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
3541 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
3542 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
3543 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
3544 the current sblock.
3545 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
3546 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
3547 after sweeping strings, and at the end.
3548 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
3549
38119822
GM
3550 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
3551 ensure that pop_message is called.
3552
3553 * keyboard.c (Fexecute_extended_command): Use a
3554 record_unwind_protect to ensure that pop_message is called.
3555
3556 * lisp.h (push_message_unwind): Add prototype.
3557
3558 * xdisp.c (push_message_unwind): New function.
3559
3560 * fileio.c (do_auto_save_unwind): Do the pop_message here
3561 instead of in Fdo_auto_save.
3562 (Fdo_auto_save): Don't call pop_message.
3563
f47a9ec4
KR
35642001-01-08 Ken Raeburn <raeburn@gnu.org>
3565
3566 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
3567 in inner block.
3568
a758f97d
GM
35692001-01-08 Gerd Moellmann <gerd@gnu.org>
3570
6d0afc03
GM
3571 * window.c (window_scroll_pixel_based): Adjust glyph matrices
3572 when increasing window's vscroll.
3573
a758f97d
GM
3574 * macros.c (Qkbd_macro_termination_hook): New variable.
3575 (syms_of_macros): Initialize and staticpro it.
3576 (pop_kbd_macro): Run kbd-macro-termination-hook.
3577
3578 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
3579
1bfb1345 35802001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
3581
3582 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
3583 arglist, for documentation's sake.
3584
0dac6924
AI
35852001-01-06 Andrew Innes <andrewi@gnu.org>
3586
3587 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
3588 of *.pdb.
3589
8182406a
AI
35902001-01-05 Andrew Innes <andrewi@gnu.org>
3591
3592 * term.c (update_end): Don't check updating_frame; for some reason
3593 this can be 0 sometimes, such as after dismissing a popup menu,
3594 and isn't necessary given the explicit frame argument.
3595
3828218c
GM
35962001-01-05 Gerd Moellmann <gerd@gnu.org>
3597
3598 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
3599 on some systems, and an unsigned long on others, like FreeBSD 4.1.
3600
2f5ded21
GM
36012001-01-04 Gerd Moellmann <gerd@gnu.org>
3602
52283633 3603 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
3604
3605 * xfns.c (x_create_tip_frame): Preserve the value of
3606 face_change_count around the creation of the tip frame.
52283633 3607
2f5ded21
GM
3608 * xfns.c (last_show_tip_args): New variable.
3609 (compute_tip_xy): New function.
3610 (Fx_show_tip): Reuse an existing tip frame, if possible.
3611 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
3612
dfad65fa
DL
36132001-01-04 Dave Love <fx@gnu.org>
3614
64d4ec0f
DL
3615 * editfns.c (Fformat): Doc fix.
3616
dfad65fa
DL
3617 * systime.h (set_file_times): Prototype.
3618
3619 * widget.h (EmacsFrameSetCharSize_): Prototype.
3620
3621 * sysdep.c (random, srandom): Declare explicitly.
3622
3623 * dispextern.h (move_it_vertically_backward): Declare.
3624
85fe3b5e
GM
36252001-01-04 Gerd Moellmann <gerd@gnu.org>
3626
0f2ac578
GM
3627 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
3628 like in Fx_create_frame.
3629
482cca61
GM
3630 * xfaces.c (set_font_frame_param): Don't do anything for
3631 non-graphical frames.
3632
85fe3b5e
GM
3633 * window.c (Fdelete_other_windows): Set window's window_end_valid
3634 to nil when changing the window's start. Don't change the
3635 window's start when its top position hasn't changed. If we do,
3636 this will set the window's optional_new_start, which act's like a
3637 force_start during redisplay with C-x 1 M-> under particular
3638 circumstances (see report from Per Starback to emacs-pretest-bug
3639 from 2000-12-13.).
3640
3e99d3b4
GM
36412001-01-03 Gerd Moellmann <gerd@gnu.org>
3642
a77dc1ec
GM
3643 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
3644 short cut at the start of the function. Add an assertion.
3645 (reseat_at_next_visible_line_start): Add an assertion.
3646
2f3cad6c
GM
3647 * window.c (Frecenter): When changing the window start, set the
3648 window's window_end_valid to nil.
3649 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
3650
3651 * dispextern.h (move_it_past_eol): Add prototype.
3652
3653 * xdisp.c (move_it_past_eol): New function.
3654
3e99d3b4
GM
3655 * window.c (Fwindow_end): Doc fix.
3656
36572001-01-03 Dave Love <fx@gnu.org>
3658
52283633 3659 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 3660
bafb434c
GM
36612001-01-03 Gerd Moellmann <gerd@gnu.org>
3662
3663 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
3664 the enabled_p flag of the glyph row at window_end_vpos to 0.
3665 (handle_single_display_prop): Fix last change.
3666
5297fb00
RS
36672001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
3668
3669 * window.c (Frecenter): Doc fix.
3670
13d6a61c
AI
36712001-01-02 Andrew Innes <andrewi@gnu.org>
3672
3673 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
3674
3675 * frame.h (output_method): Add output_w32_console method.
3676 (FRAME_W32_CONSOLE_P): New macro.
3677
3678 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
3679 use output_w32_console method.
3680 (Qw32_console): New Lisp_Object.
3681 (Fframep): Return it.
3682 (syms_of_frame): Init it.
52283633 3683 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
3684
3685 * xfaces.c (realize_default_face): Set face foreground and
3686 background to unspecified for w32_console frames.
3687 (realize_face): Realize face cache for w32_console frames.
3688 (realize_tty_face): Accept w32_console frames.
3689
52283633 3690 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
3691 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
3692 necessary, even if running interactively.
3693
3694 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
3695 w32_console frames.
3696
52283633
SM
3697 * w32term.c (x_update_begin):
3698 (x_update_end):
3699 (x_clear_frame):
3700 (x_ins_del_lines):
3701 (x_change_line_highlight):
3702 (x_delete_glyphs):
3703 (w32_ring_bell):
3704 (x_update_begin):
3705 (x_update_end):
3706 (w32_reassert_line_highlight):
3707 (w32_frame_rehighlight):
13d6a61c
AI
3708 (w32_frame_raise_lower): Do nothing if not w32 frame.
3709
3710 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
3711
3712 * w32fns.c (Fx_display_color_cells): Determine correct value, when
3713 system doesn't tell us directly.
3714 (Fx_display_visual_class): Implement properly.
3715
d6bb0c0d
GM
37162001-01-02 Gerd Moellmann <gerd@gnu.org>
3717
3718 * window.c (Frecenter): Handle centering in graphical frames
3719 specially. Centering on the basis of line counts doesn't work
3720 reliably with variable-height lines.
52283633 3721
315f5865
EZ
37222001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
3723
3724 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
3725 and al[].
3726
52283633 3727 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
3728 (update_compositions): Remove unused variable `hook'.
3729
3730 * intervals.c (get_local_map): Remove unused variable `tem'.
3731
3732 * doprnt.c (doprnt1): Remove unused variable `size'.
3733
3734 * fns.c (Flength): Remove unused variable `tail'.
3735 (Fdelete): Remove unused variable `size'.
3736
3737 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
3738 and `gcpro2'.
3739
52283633 3740 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
3741
3742 * data.c (find_symbol_value): Remove extra 3rd argument in the
3743 call to swap_in_symval_forwarding.
3744
52283633 3745 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
3746
3747 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
3748 (trivial_regexp_p): Remove unused variable `c'.
3749 (boyer_moore): Remove unused variable `k'.
3750
3751 * indent.c (current_column): Remove unused variable `stopchar'.
3752 (Fcompute_motion): Remove unused variable `contin'.
3753
3754 * casefiddle.c (casify_object): Remove unused variable `tolen'.
3755
3756 * dired.c (directory_files_internal): Fix a typo in a comment.
3757 Remove an unused variable `handler'.
52283633 3758 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
3759 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
3760 on BSD4_2.
3761
52283633 3762 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
3763
3764 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
3765 and `buf'.
3766 (Fmarker_insertion_type): Remove unused variable `buf'.
3767
3768 * insdel.c (make_gap): Remove unused variable `result'.
3769
52283633 3770 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
3771 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
3772 (menu_bar_items): Remove unused function-scope variable `tem'.
3773
3774 * fontset.c (fontset_ref): Remove unused variable `i'.
3775 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 3776 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
3777 (make_fontset_for_ascii_face): Remove unused variable `name'.
3778 (fs_load_font): Remove unused variable `font_idx'.
52283633 3779 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
3780 (list_fontsets): Remove unused variable `tail'.
3781 (Fnew_fontset): Remove unused variables `family' and `registry'.
3782 (accumulate_font_info): Remove unused variable `tmp'.
3783 (Ffontset_font): Remove unused variable `id'.
3784 (syms_of_fontset): Remove unused variable `i'.
3785
3786 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
3787 to x_term_init.
3788 (lookup_image): Remove unused variable `file'.
3789 (xbm_load): Remove unused variables `bitmap_data', `height', and
3790 `width'. Remove function-local variable `i', leave the
3791 block-local one.
3792 (gif_load): Remove unused variable `inc'.
3793
52283633 3794 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
3795 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
3796 leave only the one in the inner block.
3797
3798 * xfaces.c (face_fontset, realize_default_face): Remove unused
3799 variable `fontset'.
3800 (face_at_buffer_position): Remove unused variable `multibyte_p'.
3801
3802 * term.c (encode_terminal_code): Remove unused variable `c'.
3803
3804 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
3805 char *' instead of `char *'.
3806
3807 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 3808 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
3809 (Fchar_category_set): Remove unused variables `val', `charset',
3810 `c1' and `c2'.
3811
52283633
SM
3812 * coding.c (detect_coding_iso2022, setup_coding_system):
3813 Remove unused variable `i'.
315f5865
EZ
3814 (detect_coding_mask): Remove unused variable `idx'.
3815 (detect_coding): Remove unused variable `i'.
3816 (ccl_coding_driver): Remove unused variable `result'.
3817 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 3818 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
3819 (encode_coding_string): Remove unused variables `gcpro1' and
3820 `saved_coding_symbol'.
3821 (Ffind_coding_systems_region_internal): Remove function-local
3822 variable args[], leave only the block-local one.
3823 (code_convert_region1): Remove unused variable `len'.
3824
3825 * charset.c (char_printable_p): Remove unused variable `chars'.
3826 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
3827 (str_to_multibyte): Remove unused variable `c'.
3828
3829 * window.c (size_window): Remove block-local variable `min_size'.
3830
3831 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
3832 `header_line_height'.
3833 (append_space, extend_face_to_end_of_line): Declare `saved_what'
3834 enum display_element_type.
3835
1a8a9daf
GM
38362001-01-02 Gerd Moellmann <gerd@gnu.org>
3837
6dde6abc 3838 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
3839 statements that call X. Save away the error message in a local copy.
3840
1883b2c6
GM
3841 * xterm.c (x_connection_closed): Set handling_signal to 0 at
3842 the start.
3843
a13be207
GM
3844 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
3845 in or at the start of invisible text.
3846
1a8a9daf
GM
3847 * dispnew.c (update_window): Don't check_current_matrix_flags.
3848
3608c0f9
JR
38492001-01-01 Jason Rumney <jasonr@gnu.org>
3850
3851 * w32fns.c (x_figure_window_size): Do not allow new_height and
3852 new_width of frame to override specified values.
3853
abb1acc4
KH
38542000-12-30 Kenichi Handa <handa@etl.go.jp>
3855
52283633 3856 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 3857
762a68ec
GM
38582000-12-29 Gerd Moellmann <gerd@gnu.org>
3859
52283633 3860 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
3861 (update_window) [GLYPH_DEBUG]: Call it.
3862 (scrolling_window): Prevent including current rows which are below
3863 what's displayed in the window.
3864
3865 * xdisp.c (try_window_reusing_current_matrix)
3866 <new start <= old start>: Disable rows in the current matrix
3867 which are below the window after scrolling.
52283633 3868
762a68ec
GM
3869 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
3870 is zero. It's not worth the complexity.
3871 (invisible_text_between_p): Put in #if 0 because unused.
3872
2d5912c1
GM
38732000-12-28 Gerd Moellmann <gerd@gnu.org>
3874
46f6a258
GM
3875 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
3876 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
3877
89f93679
GM
3878 * keyboard.c (echo_char): If C is an integer, always call
3879 push_key_description. Former code could signal an invalid
3880 character error.
3881
3882 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
3883 If set, print multibyte text.
3884 (Fsingle_key_description): Call push_key_description with
3885 FORCE_MULTIBYTE set.
3886 (describe_buffer_bindings): Likewise.
3887
3888 * lisp.h (push_key_description): Add prototype.
3889
c06017fb
GM
3890 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
3891 around the call to redisplay_internal.
3892
f1d2ce7f
GM
3893 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
3894
2d5912c1
GM
3895 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
3896
9371f831
KH
38972000-12-28 Kenichi Handa <handa@etl.go.jp>
3898
3899 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
3900 (ccl_driver): New local variable `extra_bytes'.
3901
3902 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
3903
52283633
SM
3904 * coding.c (setup_coding_system):
3905 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
3906 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
3907
0c80628a
KH
39082000-12-28 Kenichi Handa <handa@etl.go.jp>
3909
3910 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
3911 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
3912 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
3913 (decode_composition_emacs_mule): New function.
3914 (decode_coding_emacs_mule): Decode composition sequence by calling
3915 decode_composition_emacs_mule.
3916 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
3917 (encode_coding_emacs_mule): Changed from macro to function.
3918 If a text contains compositions, encode them correctly.
0c80628a
KH
3919 (setup_coding_system): Set coding->commong_flags for emacs-mule so
3920 that decoding and encoding are required.
3921
3e32cc27
GM
39222000-12-27 Gerd Moellmann <gerd@gnu.org>
3923
5e25feee
GM
3924 * xfaces.c (PT_PER_INCH): New macro.
3925 (xlfd_point_size): Compute real point size from font's pixel size.
3926 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
3927 instead of 72.
3928
892d8fcd
GM
3929 * .gdbinit: Comment out the line pointing to the Lesstif source
3930 directory.
3931
12c8b416
GM
3932 * window.c (Frecenter): Use displayed_window_lines instead
3933 of window_internal_height.
3934
6061fbf0
GM
3935 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
3936 instead of x-toolkit-scroll-bars-p.
3937 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
3938
3939 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
3940 instead of x-toolkit-scroll-bars-p.
3941 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 3942
3e32cc27
GM
3943 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
3944 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
3945 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
3946 New variables.
3947 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
3948 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
3949 (build_frame_matrix_from_leaf_window): Remove unused code.
3950 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
3951 redisplay history.
3952 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
3953 (update_window) [GLYPH_DEBUG]: Likewise.
3954 (syms_of_display): Defsubr dump-redisplay-history.
3955
31798cfe
GM
39562000-12-23 Gerd Moellmann <gerd@gnu.org>
3957
f717c2ba
GM
3958 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
3959 the end of the prompt. Set echo_after_prompt to the offset
3960 of echoptr in echobuf.
3961
aeb2b8fc
GM
3962 * xdisp.c (init_from_display_pos): Pop until the iterator's
3963 stack is empty; there may be frames for stretch or images
3964 on the stack.
3965
31798cfe
GM
3966 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
3967 (save_or_restore_current_matrix): New function for the same
3968 purpose, but more efficient.
3969 (adjust_frame_glyphs_for_frame_redisplay): Use it.
3970
f8156156
EZ
39712000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
3972
3973 * xdisp.c (syms_of_xdisp): Fix last change.
3974
bdd6d4e8
GM
39752000-12-23 Gerd Moellmann <gerd@gnu.org>
3976
3977 * xdisp.c (syms_of_xdisp): Doc fix.
3978
3979 * xdisp.c (redisplay_window): Remove label restore_buffers;
3980 use finish_scroll_bars instead to make sure that scroll bars
3981 are redeemed. If we don't do this, flickering can result from
3982 scroll bars being destroyed and recreated.
3983
9436cdf9
JR
39842000-12-22 Jason Rumney <jasonr@gnu.org>
3985
3986 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
3987 in the wrong colors when the foreground is not black.
3988 (expose_window): Don't redraw the window that's currently being
3989 updated.
3990
951f9df5
GM
39912000-12-22 Gerd Moellmann <gerd@gnu.org>
3992
856ff7a7
GM
3993 * window.c (size_window): When setting the window's too_small_ok
3994 flag, compare old size with minimum size depending on WIDTH_P,
3995 don't compare with window_min_width.
52283633 3996
951f9df5
GM
3997 * window.c (delete_window): Simplify somewhat.
3998 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
3999 freeing window matrices. The flag windows_or_buffers_changed is
4000 set, so the next redisplay will consider all windows; this should
4001 suffice.
4002
886bc933
KH
40032000-12-22 Kenichi Handa <handa@etl.go.jp>
4004
4005 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
4006
4007 * ccl.h (struct ccl_program): New member cr_consumed.
4008
4009 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
4010 (CCL_READ_CHAR): Handle EOL conversion here.
4011 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
4012
177f4e88
GM
40132000-12-21 Gerd Moellmann <gerd@gnu.org>
4014
52283633 4015 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
4016
4017 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
4018 otherwise tabs of different size compare equal.
4019
4020 * callint.c (Fcall_interactively): Prevent a compiler warning.
4021
4022 * print.c (print_unwind): Return nil.
4023 (PRINTDECLARE): Initialize all local variables.
4024 (print_preprocess): Add a default case.
4025
8e15274f
GM
4026 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
4027
4028 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
4029
52283633 4030 * window.c (delete_window, Fsplit_window)
177f4e88
GM
4031 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
4032
4033 * dispextern.h (ensure_frame_matrix): Function declaration removed.
4034
4035 * dispnew.c (ensure_frame_matrix): Removed.
4036 (save_frame_matrix, restore_frame_matrix): New functions.
4037 (adjust_frame_glyphs_for_frame_redisplay): Use them.
4038
4039 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
4040 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
4041
99012074
AI
40422000-12-21 Andrew Innes <andrewi@gnu.org>
4043
4044 * w32term.c (x_update_begin): Regenerate the palette here, rather
4045 than for each window.
4046
4047 * w32xfns.c (select_palette): Avoid calling SelectPalette if
4048 palette is NULL, since this corrupts memory! Also get
4049 display_info reference from frame.
4050
29ef7d2d
JR
40512000-12-21 Jason Rumney <jasonr@gnu.org>
4052
4053 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
4054
4055 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
4056 to avoid returning without releasing it.
3e27fa1f 4057
3f9d67a6
KH
40582000-12-21 Kenichi Handa <handa@etl.go.jp>
4059
587fc3f9
KH
4060 * keymap.c (push_key_description): Don't convert eight-bit-control
4061 and eight-bit-graphic to multibyte character.
4062
3f9d67a6
KH
4063 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
4064 generic character and CODE1 is nil, return the smallest character
4065 in CHARSET.
4066
774ba8c9
DL
40672000-12-20 Dave Love <fx@gnu.org>
4068
4069 * s/osf5-0.h (NSIG): Don't redefine.
4070
88416888
SM
40712000-12-20 Stefan Monnier <monnier@cs.yale.edu>
4072
4073 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
4074 excluding menu-bar and tool-bar.
4075 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
4076 (menu_item_p): Remove.
4077 (where_is_internal_1): Don't ignore menu-items.
4078
a6426c6f
GM
40792000-12-20 Gerd Moellmann <gerd@gnu.org>
4080
03ff8aab
GM
4081 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
4082 into account.
4083
4084 * window.c (make_window): Initialize window's min_hscroll.
4085 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
4086 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
4087 to zero.
4088 (struct saved_window): New member min_hscroll.
4089 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
4090 (Fset_window_configuration): Set window's min_hscroll.
4091 (save_window_save): Save window's min_hscroll.
4092 (compare_window_configurations): Compare min_hscroll values.
4093
4094 * window.h (struct window): New member min_hscroll.
4095
4096 * keyboard.c (echo_prompt): Prevent a compiler warning.
4097
8de4aaf8
GM
4098 * xdisp.c (try_cursor_movement): Fix last change. The real
4099 condition is that PT is at the end of the row, and should
4100 be displayed at the start of the next row.
52283633 4101
3f7e3031
GM
4102 * xdisp.c (try_cursor_movement): If we end on a partially
4103 visible line, end we already decided to scroll, return -1.
4104
a6426c6f
GM
4105 * dispextern.h (ensure_frame_matrix): Add prototype.
4106
4107 * window.c (delete_window, Fsplit_window)
4108 (Fset_window_configuration): Call ensure_frame_matrix.
4109
52283633
SM
4110 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
4111 New functions.
a6426c6f
GM
4112 (adjust_frame_glyphs_for_frame_redisplay): If display has been
4113 completed, call fake_current_matrices instead of marking frame
4114 garbaged.
4115
57fa2774
JR
41162000-12-20 Jason Rumney <jasonr@gnu.org>
4117
4118 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
4119
d925df90
EZ
41202000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
4121
4122 * fns.c (Frequire): Doc fix.
4123
7b93a85b
GM
41242000-12-19 Gerd Moellmann <gerd@gnu.org>
4125
52283633 4126 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 4127
c74e645b
GM
4128 * dispnew.c (direct_output_for_insert): Fix check for mini-window
4129 currently displaying a message.
4130
7b93a85b
GM
4131 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
4132 xterm.h.
4133 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
4134
90d97e64
AI
41352000-12-18 Andrew Innes <andrewi@gnu.org>
4136
4137 * w32.c (w32_strerror): New function.
4138
4139 * w32.h (w32_strerror): New extern.
4140
4141 * w32fns.c (Fw32_shell_execute): Use it.
4142
91c9e6ce
GM
41432000-12-18 Gerd Moellmann <gerd@gnu.org>
4144
4145 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
4146
6f4745e2
EZ
41472000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
4148
4149 * msdos.c (IT_set_face): Obey inverse_video.
4150
c9e088ce
KH
41512000-12-18 Kenichi Handa <handa@etl.go.jp>
4152
4153 * dired.c (directory_files_internal): Always return decoded filenames.
4154
c3695f5f
GM
41552000-12-18 Gerd Moellmann <gerd@gnu.org>
4156
52d8e4ff
GM
4157 * xterm.c (x_connection_closed): Prevent being called recursively
4158 because of an error condition in XtCloseDisplay.
52283633 4159
62be9979
GM
4160 * xdisp.c (init_iterator): If noninteractive, and the frame's
4161 face cache is null, make one.
4162
52283633 4163 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 4164
c3695f5f
GM
4165 * process.c (wait_reading_process_input): Check for pending
4166 input when running timers.
4167
78555fbe
EZ
41682000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
4169
52283633 4170 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 4171
b2b36264
KH
41722000-12-18 Kenichi Handa <handa@etl.go.jp>
4173
4174 * process.c (read_process_output): Don't run a filter if the code
4175 decoder produces nothing but carryover.
4176
9c543fbf
AI
41772000-12-17 Andrew Innes <andrewi@gnu.org>
4178
4179 * w32.c (sys_rename): Only check errno against EEXIST, and not
4180 EACCES, when determining whether rename failed because the target
4181 exists. This was resulting in indefinite looping on Windows 9x if
4182 the source file was locked by another process.
4183
4184 * w32fns.c (Ffile_system_info): New function.
4185 (syms_of_w32fns): Defsubr it.
4186
10c2b5a8
GM
41872000-12-17 Gerd Moellmann <gerd@gnu.org>
4188
b0228ace
GM
4189 * window.c (coordinates_in_window): Fix computation for
4190 position on vertical line between mode lines.
4191
10c2b5a8
GM
4192 * xfns.c (unwind_create_frame): Return t if frame was deleted.
4193 Don't alter tip_frame or tip_window.
4194 (unwind_create_tip_frame): Set tip_frame to nil only if frame
4195 was deleted.
4196
c844a81a
GM
4197 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
4198 Don't alter tip_frame or tip_window.
4199 (unwind_create_tip_frame): Set tip_frame to nil only if frame
4200 was deleted.
4201
6c825f8e
EZ
42022000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
4203
4204 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
4205 be consistent with the doc string. Reported by NAKAJIMA Mikio
4206 <minakaji@osaka.email.ne.jp>.
4207
af4bb4c8
KH
42082000-12-16 Kenichi Handa <handa@etl.go.jp>
4209
4210 * xfaces.c (Vface_ignored_fonts): New variable.
4211 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
4212 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
4213
8062e53a
GM
42142000-12-15 Gerd Moellmann <gerd@gnu.org>
4215
e87b8809
GM
4216 * dispnew.c (update_window): Detect pending input every nth line
4217 updated, i.e. do it depending on real work done, and not on the
4218 vpos of the line.
4219
4220 * xterm.c (expose_window): Don't redraw the window that's
4221 currently being updated.
4222
a6768cc5
GM
4223 * window.c (Fset_window_point): Remove test for
4224 cursor_in_non_selected_windows.
4225
4ea7fdca
GM
4226 * lread.c (read1): Recognize end of file after `\\'.
4227
8062e53a
GM
4228 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
4229 not unwind_create_frame.
4230
bb7959c1
GM
42312000-12-15 Dave Love <fx@gnu.org>
4232
4233 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
4234 bcopy & al.
4235
4236 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
4237
ced04c42
KH
42382000-12-15 Kenichi Handa <handa@etl.go.jp>
4239
c5443913
KH
4240 * coding.c (setup_coding_system): Clear all members of the struct
4241 coding_system at first.
bc137305
KH
4242 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
4243 argument.
4244 (code_convert_region): Don't override coding->src_multibyte and
4245 coding->dst_multibyte.
c5443913 4246
ced04c42
KH
4247 * fns.c (Fmd5): Docstring improved.
4248
c2d7f289
MB
42492000-12-15 Miles Bader <miles@gnu.org>
4250
4251 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
4252 are actually marked as mode-lines; otherwise use
4253 estimate_mode_line_height.
4254
9d7d9263
GM
42552000-12-14 Gerd Moellmann <gerd@gnu.org>
4256
4257 * editfns.c (Fformat): Prevent a buffer overrun when the format
4258 specifies a precision.
4259
7cf0153a
EZ
42602000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
4261
4262 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
4263 argument is outside the range [2..3].
4264
1de0f662
AI
42652000-12-14 Andrew Innes <andrewi@gnu.org>
4266
4267 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
4268 nothing to do. Bind inhibit-quit.
4269 (tip_frame): Make it a Lisp_Object.
4270 (x_create_tip_frame): Set tip_frame after it has been added to
4271 Vframe_list.
4272 (Fx_show_tip): Don't set tip_frame here.
52283633 4273 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
4274 (unwind_create_frame, unwind_create_tip_frame): New functions.
4275 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
4276 while a frame is only partially constructed.
4277
4278 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
4279 (x_free_frame_resources): New function.
4280 (x_destroy_window): Use it.
4281
02387dcc
GM
42822000-12-14 Gerd Moellmann <gerd@gnu.org>
4283
4284 * xfns.c (Fx_backspace_delete_keys_p): New function.
4285 (syms_of_xfns): Defsubr it.
4286
4287 * config.in (HAVE_XKBGETKEYBOARD): Add.
4288
0544ef49
KH
42892000-12-14 Kenichi Handa <handa@etl.go.jp>
4290
98d62747
KH
4291 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
4292 Always store string in multibyte representation in echobuf.
4293 (echo_char): Always store string in multibyte representation in
4294 echobuf.
4295 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
4296 (read_key_sequence): Adjusted for the change of echo_prompt.
4297
a20193cd
KH
4298 * fns.c (Fmd5): Docstring improved.
4299
191b83b6
KH
4300 * lisp.h (detect_coding_system): Prototype adjusted.
4301
0544ef49
KH
4302 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
4303 (detect_coding_emacs_mule, detect_coding_iso2022,)
4304 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
4305 (detect_coding_utf_16, detect_coding_ccl): Make them static.
4306 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
4307 (detect_coding_mask, detect_coding_system): New argument
4308 MULTIBYTEP. Callers changed.
1da1bb05
KH
4309 (decode_coding_string): Set coding->src_multibyte and
4310 coding->dst_multibyte before calling detect_coding and detect_eol.
4311 Update them after some coding system is detected.
52283633 4312
d5b3eb1b
SM
43132000-12-13 Stefan Monnier <monnier@cs.yale.edu>
4314
4315 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
4316
4317 * keyboard.c (menu_bar_items, tool_bar_items):
4318 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
4319
f7f8bb69
GM
43202000-12-13 Gerd Moellmann <gerd@gnu.org>
4321
52283633 4322 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
4323 New variables.
4324 (unwind_create_frame, unwind_create_tip_frame): New functions.
4325 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
4326 while a frame is only partially constructed.
4327
4328 * xterm.h (x_free_frame_resources): Declare.
4329
4330 * xterm.c (x_free_frame_resources): New function.
4331 (x_destroy_window): Use it.
4332
e10da507
GM
4333 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
4334 don't interrupt the update for pending input initially, i.e.
4335 update at least some lines.
4336
4337 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 4338
d5b3eb1b 4339 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
4340
4341 * xfns.c (gray_bitmap_bits): Declare `char *'.
4342
90aa2856
GM
43432000-12-12 Gerd Moellmann <gerd@gnu.org>
4344
4345 * xdisp.c (display_tool_bar_line): Make sure that tool bar
4346 lines start with a relief line.
4347
a308c9cd
DL
43482000-12-12 Dave Love <fx@gnu.org>
4349
4350 * window.c (Fdisplay_buffer): Doc fix.
4351 (Fwindow_list): Remove unused var.
4352
4353 * buffer.h (mmap_set_vars): Declare.
4354
4355 * window.h (Fset_window_point): Declare.
4356
d575011f
EZ
43572000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
4358
bf6282d2 4359 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
4360 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
4361 variable `area'. When looking for a row under (X,Y), give up if some
4362 of the previous rows is not enabled.
d575011f 4363
ecf4d726
GM
43642000-12-12 Gerd Moellmann <gerd@gnu.org>
4365
2ebf6139
GM
4366 * window.c (Fset_window_point): If displaying cursors in windows
4367 other than the selected window, make sure redisplay updates
4368 other windows to show the new value of point in the window.
4369
4370 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
4371
bfdb75ee
GM
4372 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
4373 the buffer is the sole visible buffer when in the mini-buffer.
4374
52283633 4375 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
4376 Bind `inhibit-read-only' to t.
4377 (unwind_with_echo_area_buffer): Use AREF.
4378
c0006262
GM
4379 * xfns.c (Fx_hide_tip): Simplified.
4380
52283633
SM
4381 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
4382 instead of `1'.
e9a59cad 4383
ecf4d726
GM
4384 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
4385
e5959a9a
GM
43862000-12-11 Gerd Moellmann <gerd@gnu.org>
4387
a3642e49 4388 * xfns.c (Fx_hide_tip): Fix last change.
52283633 4389
44b5a125
GM
4390 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
4391 nothing to do. Bind inhibit-quit.
4392 (tip_frame): Make it a Lisp_Object.
4393 (x_create_tip_frame): Set tip_frame after it has been added to
4394 Vframe_list.
4395 (Fx_show_tip): Don't set tip_frame here.
4396
4397 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
4398
4399 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
4400 Lisp_Object.
4401
4402 * dispextern.h: Change external declaration of tip_frame.
4403
d990421f
GM
4404 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
4405 return an empty string.
4406
4db87380
GM
4407 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
4408 of the window's update_mode_line flag, since the former is set by
4409 force-mode-line-update, not the latter. This makes
4410 column-number-mode slightly faster.
52283633 4411
e5959a9a
GM
4412 * xdisp.c (try_window_id) <all changes above window start>:
4413 Set the cursor.
4414
169fe44e
GM
44152000-12-11 Paul Eggert <eggert@twinsun.com>
4416
4417 * config.in (HAVE_FTELLO): Remove.
4418 (HAVE_FSEEKO): Add.
4419 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
4420 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
4421 HAVE_FTELLO.
4422 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
4423 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 4424
59ec59ae
MB
44252000-12-11 Miles Bader <miles@gnu.org>
4426
4427 * window.c (displayed_window_lines): Don't round up when
4428 converting empty space at bottom to lines.
ff904dd6
MB
4429 Handle non-newline-terminated final lines properly.
4430 (Fwindow_text_height): New function (used to be in lisp).
4431 (syms_of_window): Initialize it.
59ec59ae 4432
42ebfa31
SM
44332000-12-09 Stefan Monnier <monnier@cs.yale.edu>
4434
4435 * syntax.c (scan_lists): Check that the right quote char has the
4436 right Sstring syntax when jumping over strings.
4437 (init_syntax_once): Use Smax rather than 13.
4438
5cdb3cf3
MB
44392000-12-09 Miles Bader <miles@gnu.org>
4440
4441 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
4442 with PARTIALLY, inverting the sense.
4443 (window_scroll_pixel_based): Scroll partially visible lines into
4444 place if we hit the beginning or end of the buffer.
a12167c5
MB
4445 (displayed_window_lines): Don't include partially visible lines.
4446 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 4447
842b2a94
GM
44482000-12-08 Gerd Moellmann <gerd@gnu.org>
4449
4450 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
4451
4452 * tparam.c (tparam1): Change the way buffers are reallocated to be
4453 portable and less obfuscated.
4454
4455 * termcap.c (tgetent): Change the way buffers are reallocated to
4456 be portable and less obfuscated.
4457
4458 * macros.c (store_kbd_macro_char): Change the way buffers are
4459 reallocated to be portable and less obfuscated.
4460
4461 * lread.c (read1): Change the way buffers are reallocated to be
4462 portable and less obfuscated.
4463
4464 * doc.c (Fsubstitute_command_keys): Change the way buffers
4465 are reallocated so that it is portable.
4466
137cad7c
EZ
44672000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
4468
4469 * dosfns.c (Ffile_system_info): New function.
4470 (syms_of_dosfns): Defsubr it.
4471
5c7f629c
SM
44722000-12-07 Stefan Monnier <monnier@cs.yale.edu>
4473
4474 * alloc.c (gc_sweep): Add comment.
4475
959e647d
GM
44762000-12-07 Gerd Moellmann <gerd@gnu.org>
4477
52283633
SM
4478 * sound.c (vox_configure): Change order of ioctls.
4479 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
4480 Ignore errors when changing volume.
4481 (vox_close): Don't reset the device.
4482
926b7e5e
GM
4483 * process.c (read_process_output): Make sure the process marker's
4484 position is valid when the process buffer is changed in
4485 after-change functions. W3 does that.
52283633 4486
959e647d
GM
4487 * xfns.c (x_free_gcs): New function.
4488
4489 * xterm.h (x_free_gcs): Add prototype.
4490
4491 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
4492 freeing GCs here.
4493
4494 * xterm.c (x_destroy_window): Call x_free_gcs so that
4495 resources of non-toolkit X windows will be freed.
4496
478ea067
AI
44972000-12-07 Andrew Innes <andrewi@gnu.org>
4498
4499 * w32fns.c (xlfd_charset_of_font): Fix last change.
4500
fbee3231
DL
45012000-12-06 Dave Love <fx@gnu.org>
4502
67292061
DL
4503 * md5.h (__P): Don't define -- it comes from config.h.
4504
fbee3231
DL
4505 * strftime.c: Change some #if foo to #ifdef foo.
4506
4ee87dbb
AI
45072000-12-06 Andrew Innes <andrewi@gnu.org>
4508
4509 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
4510
52283633 4511 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 4512 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 4513 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 4514
9765b4a4
GM
45152000-12-06 Gerd Moellmann <gerd@gnu.org>
4516
d285b373
GM
4517 * alloc.c (gc_sweep): Prevent symbols read during loadup
4518 from being freed.
4519
384333ee
GM
4520 * xdisp.c (underlying_face_id): New function.
4521 (handle_face_prop, face_before_or_after_it_pos): Use it
4522 to determine the face ``under'' a string. Let strings inherit
4523 the face of the buffer under them.
4524
4525 * xfaces.c (face_at_string_position): Update function comment.
52283633 4526
d4b72d58
GM
4527 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
4528 matrix if the window's left position has changed; we need to
4529 redraw it in this case.
4530
4531 * dispextern.h (struct glyph_matrix): Add member window_left_x.
4532
e1d05387
GM
4533 * window.c (coordinates_in_window): Check mouse on mode-line or
4534 header-line first.
4535
eb1b0c74
GM
4536 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
4537 advertized by the function documentation.
4538
d94d636f
GM
4539 * window.c (syms_of_window): Doc fix.
4540
3887b449
GM
4541 * sound.c (vox_configure): Set volume for left and right channel.
4542 (sound_cleanup): Return nil.
4543
efc8f57a
GM
4544 * xdisp.c (move_it_by_lines): Fix paren typo.
4545
9765b4a4
GM
4546 * xterm.c (x_load_font): Don't use the font's max_bounds for
4547 computing the height of the font. If max_bounds' ascent or
4548 descent are greater than the font's ascent or descent, this means
4549 glyphs overlap, which should be handled now by redisplay.
4550
6529ed87
GM
4551 * window.c (Veven_window_heights): New variable.
4552 (syms_of_window): DEFVAR_LISP it.
4553 (Fdisplay_buffer): Check Veven_window_heights before evening the
4554 window heights.
52283633 4555
0eb2ecde
MB
45562000-12-06 Miles Bader <miles@gnu.org>
4557
4558 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
4559 update `default-frame-alist' instead of setting no frame parameters.
4560
03d7a167
KH
45612000-12-06 Kenichi Handa <handa@etl.go.jp>
4562
4563 * composite.c (update_compositions): Fix typo (use the correct
4564 variable).
4565
5f8803c2
JR
45662000-12-05 Jason Rumney <jasonr@gnu.org>
4567
4568 * md5.h: Remove underscores from function declarations.
4569 (__attribute__, __alignof__) [!__GNUC__]: Define.
4570
4571 * md5.c: Delay include of md5.h until after namespace cleaning.
4572
c28a075b
JR
4573 * makefile.w32-in (fns.o): Depend on md5.h
4574 (md5.o): New target.
4575 (sunfns.o): Remove.
4576
4577 * makefile.nt: Likewise.
4578
ff3c7056
JR
45792000-12-05 Jason Rumney <jasonr@altavista.net>
4580
4581 * w32term.c (expose_area): Complete last change.
4582
0c21eeeb
KR
45832000-12-05 Ken Raeburn <raeburn@gnu.org>
4584
4585 * minibuf.c: Include intervals.h.
4586
f201d732
JR
45872000-12-05 Jason Rumney <jasonr@gnu.org>
4588
4589 * w32term.c (x_produce_glyphs): If a font for a component of
4590 a composition is not found, use 1 pixel dot ascent and 0 dot
4591 descent value to avoid displaying terribly tall empty boxes.
4592 (expose_area): Pass x-coordinate relative to the exposed
4593 area to x_draw_glyphs instead of a window-relative coordinate.
4594
21999ab9
GM
45952000-12-05 Gerd Moellmann <gerd@gnu.org>
4596
4d2036e4
GM
4597 * xdisp.c (next_element_from_ellipsis): Save face before selective
4598 display in saved_face_id, and set face_before_selective_p.
4599 (reseat_1): Reset face_before_selective_p.
4600 (append_space, extend_face_to_end_of_line): If iterator's
4601 face_before_selective_p is set, use the face from saved_face_id.
4602 (extend_face_to_end_of_line): For tty frames, make sure to
4603 use the right face id when producing spaces at the end of
4604 the line.
4605
4606 * dispextern.h (struct it): Add face_before_selective_p.
4607
52be17cc
GM
4608 * keyboard.c (record_char): Don't record identical help-echo
4609 events in recent_keys.
4610
8a4f36cc
GM
4611 * xterm.c [USE_X_TOOLKIT]: Close the display.
4612 (xim_close_dpy): Handle case that the display has been closed.
4613
57d6e381
GM
4614 * xterm.c (x_destroy_window): Reset the frame's X window after
4615 destroying it.
4616
21999ab9
GM
4617 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
4618 variable window_width.
4619 (line_draw_cost): Fix code skipping over spaces at the end of the
4620 line when must_write_spaces is not set.
4621 (scrolling_window): Fix code inserting runs in list of all runs.
4622
91372bb7
KH
46232000-12-05 Kenichi Handa <handa@etl.go.jp>
4624
4625 * coding.c (setup_coding_system): Be sure to initialize
4626 coding->category_idx.
4627
6c083b4c
GM
46282000-12-04 Gerd Moellmann <gerd@gnu.org>
4629
0c68ce6f 4630 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 4631
6452929e
GM
4632 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
4633 area to x_draw_glyphs instead of a window-relative coordinate.
4634
d7f31e22
GM
4635 * fileio.c (auto_save_error): Add parameter ERROR. Show the
4636 error in the message.
4637
ae18aa3b
GM
4638 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
4639 timer after having read a key. It's not good for code reading
4640 several keys in a loop, like an input method.
4641
caa15ef7
GM
4642 * fileio.c (Finsert_file_contents): When VISIT is t, don't
4643 record undo information for format-decode.
4644
4645 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
4646 current buffer is read-only, not if it isn't.
4647
6c083b4c
GM
4648 * keyboard.c (record_char): Record `help-echo' input events
4649 in recent_keys only if they display some help. Don't record
4650 `help-echo' events as macro char.
4651
caa15ef7
GM
46522000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
4653
4654 * editfns.c (save_excursion_restore): Don't move point
4655 in another window if it is showing the wrong buffer.
4656 Avoid the call to Fwindow_live_p, for speed.
4657
5a13529b
KH
46582000-12-04 Kenichi Handa <handa@etl.go.jp>
4659
e225faa7
KH
4660 * xfaces.c (struct font_name): New member registry_priority.
4661 (split_font_name): Initialize the above member to zero.
4662 (concat_font_list): New function.
4663 (font_list): Include fonts of all alternative registries.
4664 (FONT_POINT_SIZE_QUANTUM): New macro.
4665 (better_font_p): Ignore point size difference less than
4666 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
4667
e89648b4
KH
4668 * xterm.c (x_produce_glyphs): If a font for a component of
4669 a composition is not found, use 1 pixel dot ascent and 0 dot
4670 descent value to avoid displaying terribly tall empty boxes.
4671
5a13529b
KH
4672 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
4673
d7935eb6
KR
46742000-12-03 Ken Raeburn <raeburn@gnu.org>
4675
4676 * coding.h (code_convert_string1): Declare.
4677
4678 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
4679
52283633 4680 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 4681
0dd5e255
JR
46822000-12-02 Jason Rumney <jasonr@gnu.org>
4683
4684 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
4685 correctly for single byte character case.
4686 (w32_per_char_metric): Do not try to make any assumptions about
4687 the metrics of BDF fonts.
250cfece 4688 (x_estimate_mode_line_height): If `mode-line' face
52283633 4689 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
4690 (note_mouse_highlight): Change the cursor shape on the vertical
4691 border between windows [not enabled].
4692
4693 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
4694
4695 * w32fns.c (Fx_create_frame): Reintroduce the call to
4696 face-set-after-frame-defaults.
4697 (Vx_window_horizontal_drag_shape): New variable.
4698 (syms_of_xfns): DEFVAR_LISP it.
4699 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
4700 enabled].
0dd5e255 4701
b5d8d2ca
GM
47022000-12-02 Simon Josefsson <simon@josefsson.org>
4703
4704 * fns.c (Fmd5): Use a different logic to decide the coding system
4705 to use.
4706
4707 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
4708
fbb87147
EZ
47092000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
4710
52283633 4711 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 4712
447e9da0
GM
47132000-12-01 Gerd Moellmann <gerd@gnu.org>
4714
7708ced0
GM
4715 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
4716 height for YNegative.
4717 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
4718 height; also see comment there.
4719
447e9da0
GM
4720 * window.c (coordinates_in_window): Handle computations for
4721 positions on the vertical bar and fringes differently for
4722 window-system frames. Consider some pixels near the vertical bar
4723 as on the bar if the frame doesn't have vertical scroll bars.
4724 Associate positions between mode or header lines with the
4725 right window, the left one.
4726
86d1db20
JR
47272000-12-01 Jason Rumney <jasonr@gnu.org>
4728
4729 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
4730
4731 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
4732 invalid frame.
4733
a1d58e5b
GM
47342000-12-01 Gerd Moellmann <gerd@gnu.org>
4735
52283633 4736 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
4737 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
4738 (save_window_save, Fset_window_configuration): Save/restore
4739 window's orig_top and orig_height.
4740
89c609af
JR
47412000-12-01 Jason Rumney <jasonr@gnu.org>
4742
4d177746 4743 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 4744
89c609af
JR
4745 * w32fns.c (x_set_cursor_color): Fix last change.
4746
eccc05db
GM
47472000-11-30 Gerd Moellmann <gerd@gnu.org>
4748
31b6671b
GM
4749 * xdisp.c (echo_area_display): If cursor is in the echo area, make
4750 sure that the next redisplay displays the minibuffer, so that
4751 the cursor will be replaced with what the minibuffer wants.
4752
eccc05db
GM
4753 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
4754 #ifndef instead of using #if.
4755 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
4756 USE_TOOLKIT_SCROLL_BARS is defined.
4757
162de750
JR
47582000-11-30 Jason Rumney <jasonr@gnu.org>
4759
4760 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
4761 x_display_cursor.
4762
693c4692
GM
47632000-11-30 Gerd Moellmann <gerd@gnu.org>
4764
4765 * fns.c (Fmd5): Doc fix.
4766
b5d8d2ca 47672000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
4768
4769 * fns.c (Fmd5): New function.
4770 (syms_of_fns): Defsubr md5.
4771
4772 * Makefile.in (obj): Add md5.o
4773
b02cd40b
GM
47742000-11-30 Gerd Moellmann <gerd@gnu.org>
4775
edfb795e
GM
4776 * md5.h, md5.c: New files, taken from glibc.
4777
df3aedcf
GM
4778 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
4779
b02cd40b 4780 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 4781 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 4782
8b5176cd
SM
47832000-11-29 Stefan Monnier <monnier@cs.yale.edu>
4784
4785 * eval.c (Frun_hooks): Allow 0 arguments.
4786
346598f1
GM
47872000-11-29 Gerd Moellmann <gerd@gnu.org>
4788
f9396e03
GM
4789 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
4790 is over the menu bar widget, say it's not on the frame.
4791
4a967a9b
GM
4792 * xfns.c (Fx_create_frame): Reintroduce the call to
4793 face-set-after-frame-defaults.
4794
346598f1
GM
4795 * eval.c (Fsignal): Reset handling_signal.
4796
222456a1
JR
47972000-11-28 Jason Rumney <jasonr@gnu.org>
4798
4799 * w32menu.c (add_menu_item): Reset menu item text when changing
4800 type to radio button.
4801
8049ddc0
GM
48022000-11-28 Gerd Moellmann <gerd@gnu.org>
4803
346598f1 4804 * xselect.c: Update copyright.
f4f4ee4d 4805
bebe4a2c
GM
4806 * window.c (coordinates_in_window): If on a mode or header line,
4807 but sufficiently close to its start, return ``on vertical
4808 border''. This gives us a way to drag windows horizontally when
4809 using toolkit scroll bars.
4810
4811 * xterm.c (note_mouse_highlight): Change the cursor shape
4812 on the vertical border between windows.
4813
4814 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
4815
4816 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
4817 (syms_of_xfns): DEFVAR_LISP it.
4818 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
4819
8d2c2642
GM
4820 * textprop.c (text_read_only): New function.
4821 (verify_interval_modification): Use it instead of signaling
4822 `text-read-only'. This makes it easier to catch this error
52283633 4823 with a breakpoint.:
8d2c2642 4824
52283633 4825 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
4826 not end of line, which includes CR.
4827
5a2bae6c
KH
48282000-11-28 Kenichi Handa <handa@etl.go.jp>
4829
4830 * coding.c (Ffind_coding_systems_region_internal): Be sure to
4831 include no-conversion.
4832
ae31f84d
JR
48332000-11-27 Jason Rumney <jasonr@gnu.org>
4834
4835 * w32fns.c (w32_load_system_font): Always mark font as double byte
4836 if codepage is unicode.
4837
67f1cf4c
GM
48382000-11-27 Gerd Moellmann <gerd@gnu.org>
4839
4a74d071 4840 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 4841 just consume it to avoid unintended skipping over invisible text below.
4a74d071 4842
902ae620
GM
4843 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
4844 `vertical-line', `mode-line' and `header-line' events.
4845
4846 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
4847 of a character, a TAB for instance. This is easier than to set
4848 up the iterator exactly, and it's not a frequent case, so the
4849 additional effort wouldn't really pay off.
4850
c1e279c2
AC
48512000-11-26 Andrew Choi <akochoi@i-cable.com>
4852
67f1cf4c 4853 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
4854 init_window_once.
4855
a609568a
JR
48562000-11-25 Jason Rumney <jasonr@gnu.org>
4857
52283633
SM
4858 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
4859 Args to window_from_coordinates should be pixel coordinates.
48b21762 4860
a609568a
JR
4861 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
4862 redisplay handles them properly.
4863
a658d039
MB
48642000-11-25 Miles Bader <miles@gnu.org>
4865
4866 * indent.c (compute_motion): Keep pos_byte in sync with pos.
4867
d3416cca
JR
48682000-11-24 Jason Rumney <jasonr@gnu.org>
4869
4870 * w32.c (init_environment): Set LANG environment variable based on
4871 locale settings, if not set.
4872
4873 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
4874 making tool bar smaller. When clearing the frame, also
4875 clear current matrices. Clear frame when tool bar disappears.
4876 Don't use more lines for the tool-bar than is available.
4877 (x_change_window_heights): New function.
4878
ba193890
GM
48792000-11-24 Gerd Moellmann <gerd@gnu.org>
4880
2be8f184
GM
4881 * xdisp.c (init_from_display_pos): If POS says we're already after
4882 an overlay string ending at POS, make sure to pop the iterator
4883 because it will be in front of that overlay string. When POS is
4884 ZV, we've thereby also ``processed'' overlay strings at ZV.
4885
ba193890
GM
4886 * xfaces.c (lface_from_face_name): Function comment fix.
4887
1862a24e
MB
48882000-11-24 Miles Bader <miles@gnu.org>
4889
4890 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
4891 apply `mode-line-inverse-video' -- zero means force display using
4892 the default face, non-zero means display using the specialized face.
4893 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
4894
f07fa1b8
KH
48952000-11-23 Kenichi Handa <handa@etl.go.jp>
4896
4897 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
4898 hard coded `4'.
4899
2bcdf662
EZ
49002000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
4901
4902 * coding.c (decode_coding_emacs_mule): Fix the case of
4903 CODING_EOL_LF, which used uninitialized value of c.
4904
ba8299ff
SM
49052000-11-23 Stefan Monnier <monnier@cs.yale.edu>
4906
4907 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
4908
f4117c4d
GM
49092000-11-22 Gerd Moellmann <gerd@gnu.org>
4910
03e757c1
GM
4911 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
4912 buffer object.
4913
f4117c4d
GM
4914 * frame.h (struct frame): Replace desired_tool_bar_items,
4915 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 4916 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
4917
4918 * frame.c (make_frame): Change initialization of tool bar
4919 items accordingly.
4920
4921 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 4922 Change references to members deleted from struct frame to use the
f4117c4d
GM
4923 new ones.
4924
4925 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 4926 references to members deleted from struct frame to use the new ones.
f4117c4d 4927
52283633 4928 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
4929
4930 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
4931
4932 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 4933 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
4934 from struct frame to use the new ones.
4935
f8e2f3f2
MB
49362000-11-23 Miles Bader <miles@gnu.org>
4937
4938 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
4939 the face's inverse-video attribute, rather than overriding it.
4940
60e8e0a5
GM
49412000-11-22 Gerd Moellmann <gerd@gnu.org>
4942
4943 * xfns.c (x_set_tool_bar_lines): Clear internal border when
4944 making tool bar smaller.
4945
92dd1b29
DL
49462000-11-22 Dave Love <fx@gnu.org>
4947
4948 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
4949
e672fdce
MB
49502000-11-22 Miles Bader <miles@gnu.org>
4951
3a17d6cc
MB
4952 * keyboard.c (Vminibuffer_message_timeout): New variable.
4953 (command_loop_1): Use it to determine message timeout.
4954 (syms_of_keyboard): Initialize it.
4955
60e8e0a5 4956 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 4957
e9655d81
KH
49582000-11-22 Kenichi Handa <handa@etl.go.jp>
4959
4960 * sysdep.c: Move the code for declaring h_errno after #include
4961 <netdb.h>.
4962
77270fac
GM
49632000-11-21 Gerd Moellmann <gerd@gnu.org>
4964
cd913aae
GM
4965 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
4966 the menu bar when the tooltip is unmapped.
4967
77270fac
GM
4968 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
4969 sole visible buffer when we're currently in the mini-buffer, and
4970 give up if so.
52283633 4971
556635d6
JR
49722000-11-21 Jason Rumney <jasonr@gnu.org>
4973
4974 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
4975 put on the clipboard.
4976 (Fw32_get_clipboard_data): Compare data on clipboard with saved
4977 copy of what Emacs last put there. If they are the same, do not
52283633 4978 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 4979
5b7bde64
MB
49802000-11-22 Miles Bader <miles@gnu.org>
4981
4982 * minibuf.c (Vminibuffer_prompt_properties): New variable.
4983 (syms_of_minibuf): Initialize it.
4984 (read_minibuf): Add properties from Vminibuffer_prompt_properties
4985 to prompt, don't make read-only.
4986
ff23e1dd
GM
49872000-11-21 Gerd Moellmann <gerd@gnu.org>
4988
52283633
SM
4989 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
4990 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 4991
7aaf4388
GM
4992 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
4993
f5f47add 4994 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 4995
ff23e1dd
GM
4996 * term.c, cm.c: Don't try to include termcap.h; see comment there.
4997
37c35586
KH
49982000-11-21 Kenichi Handa <handa@etl.go.jp>
4999
5000 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
5001 ... #endif scope.
5002
ff9ab414
GM
50032000-11-20 Gerd Moellmann <gerd@gnu.org>
5004
52283633 5005 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
5006 screen supports it.
5007
29a01b72
GM
5008 * s/gnu-linux.h: Don't use `#cpu'.
5009
09dfdf85
GM
5010 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
5011 not defined in mman.h.
5012
52283633 5013 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
5014 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
5015 and store an index in the XClientMessageEvent. Storing a
5016 Lisp_Object or pointer can fail on a 64 bit system, since X only
5017 transfers 32 bits.
52283633
SM
5018 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
5019
81459ac9
DL
50202000-11-20 Dave Love <fx@gnu.org>
5021
5022 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
5023
56c13ae6
GM
50242000-11-20 Gerd Moellmann <gerd@gnu.org>
5025
5026 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
5027
495a6df3
KH
50282000-11-20 Kenichi Handa <handa@etl.go.jp>
5029
2bcf3714
KH
5030 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
5031 by WIDTH.
5032
495a6df3
KH
5033 * alloc.c (make_string): Fix previous change. Be sure to make
5034 unibyte string correctly.
5035
6d950f4c
GM
50362000-11-19 Gerd Moellmann <gerd@gnu.org>
5037
39b39373
GM
5038 * window.c (Fwindow_list): Change parameter list to be XEmacs
5039 compatible.
5040 (window_list_1): New function.
5041 (window_loop): Use it instead of Fwindow_list.
5042
b95b34e5
GM
5043 * sysdep.c (emacs_ospeed): New variable.
5044 (toplevel): Don't declare ospeed extern.
5045 (init_baud_rate): Use emacs_ospeed instead of ospeed.
5046
5047 * termcap.c (ospeed): Remove.
5048 (tputs) [!emacs]: Remove unused code.
5049 (tgetent): Avoid a compiler warning.
5050
e83dc917
GM
5051 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
5052 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 5053 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
5054
5055 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
5056 removed.
5057 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
5058 Take the X display as additional argument.
5059 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
5060 `Widget' is a pointer type that's not easily stored in Lisp_Object
5061 form in a portable way.
52283633 5062
6d950f4c
GM
5063 * dispnew.c (update_text_area): Fix last change.
5064
e47306e6
GM
50652000-11-18 Gerd Moellmann <gerd@gnu.org>
5066
fb3cd89b
GM
5067 * xdisp.c: Use BINDING_STACK_SIZE throughout.
5068
5069 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
5070 clear current matrices.
5071
edaa9aed
GM
5072 * buffer.c (mmap_enlarge): Don't print a message on stderr
5073 if mapping new memory at the end of the existing region fails.
5074
e47306e6
GM
5075 * dispnew.c (update_text_area): Don't skip over equal glyphs
5076 when the last current glyph overlaps the glyph to its right.
5077
509633e3
MB
50782000-11-18 Miles Bader <miles@gnu.org>
5079
5080 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
5081 lines that *end* with "..." too (that's the most common case!).
5082
d392e9c5
GM
50832000-11-18 Gerd Moellmann <gerd@gnu.org>
5084
67988445
GM
5085 * xdisp.c (resize_mini_window): Temporarily change to the
5086 mini-window's buffer if necessary.
1bfdbe43 5087
d392e9c5
GM
5088 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
5089 the tooltip obscures less text under it.
5090
50912000-11-17 Gerd Moellmann <gerd@gnu.org>
5092
5093 * puresize.h (BASE_PURESIZE): Increase to 700000.
5094
92bb977f
JR
50952000-11-18 Jason Rumney <jasonr@gnu.org>
5096
5097 * w32term.c (w32_draw_bitmap): Use face to set colors.
5098
26fbf20b
DL
50992000-11-17 Dave Love <fx@gnu.org>
5100
5101 * lread.c (Fload): Fix #ifdef for pcc.
5102
100b593b
GM
51032000-11-17 Gerd Moellmann <gerd@gnu.org>
5104
5105 * xdisp.c (pos_visible_p): Compute the default character height
5106 differently.
5107
a288d0d1
GM
51082000-11-16 Gerd Moellmann <gerd@gnu.org>
5109
cac94de6 5110 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 5111 knowing the line's height; use the default font's height in that case.
cac94de6 5112
a288d0d1
GM
5113 * xfaces.c (weight_table): Add `demi' with the same meaning as
5114 `demibold'.
5115
981fb6f6
KH
51162000-11-16 Kenichi Handa <handa@etl.go.jp>
5117
2cca872d 5118 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
5119 (clear_glyph_row): Delete local static variable null_row.
5120
e5fa381b
JR
51212000-11-15 Jason Rumney <jasonr@gnu.org>
5122
5123 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
5124 (w32_alloc_lighter_color): Use new brightness calculations from
5125 xterm.c. Scale delta to be in the range expected by W32.
5126 (w32_draw_relief_rect): Use frame relief colors.
5127
8e42f043
GM
51282000-11-15 Gerd Moellmann <gerd@gnu.org>
5129
6d133d1f
GM
5130 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
5131 (Qinhibit_default_face_x_resources): New variable.
5132 (syms_of_frame): Initialize it.
5133 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
5134
5135 * xdisp.c (pos_visible_p): Improve function comment.
5136
5137 * lisp.h (BINDING_STACK_SIZE): New macro.
5138
8e42f043
GM
5139 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
5140 reading the directory if readdir returns null and errno is EAGAIN
5141 or EINTR.
5142
e8c87124
SM
51432000-11-14 Stefan Monnier <monnier@cs.yale.edu>
5144
5145 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
5146 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
5147 Set amount_to_scroll to max of dx and scroll_step so that
5148 scroll-conservatively doesn't defeat scroll-step>1.
5149 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
5150 scroll-conservatively for line-at-a-time scrolling.
5151
5f0c971d
GM
51522000-11-14 Gerd Moellmann <gerd@gnu.org>
5153
5154 * window.c (Fpos_visible_in_window_p): Call pos_visible with
5155 extra argument.
5156
5157 * xdisp.c (current_mode_line_height, current_header_line_height):
5158 New variables.
5159 (init_xdisp): Initialize them.
5160 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
5161 and use exact mode line heights if it is set.
5162
5163 * lisp.h (pos_visible_p): Change prototype.
5164
5165 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
5166 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
5167 and current_header_line_height first.
52283633
SM
5168 (current_mode_line_height, current_header_line_height):
5169 Declare extern.
5f0c971d 5170
d7361edf
MB
51712000-11-14 Miles Bader <miles@lsi.nec.co.jp>
5172
5173 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
5174 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
5175 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
5176
ee5e440a
MB
51772000-11-14 Miles Bader <miles@gnu.org>
5178
5179 * xterm.c (x_alloc_lighter_color): Include an additive component
5180 too for dark colors, because FACTOR isn't enough.
5181 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
5182 New macros.
5183
5ca020fc
GM
51842000-11-13 Gerd Moellmann <gerd@gnu.org>
5185
5186 * keyboard.c (show_help_echo): Call message3_nolog with number of
5187 bytes in the help string as 2nd parameter, instead of the number
5188 of characters.
5189
9d348294
MB
51902000-11-13 Miles Bader <miles@gnu.org>
5191
5192 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
5193 (Fload): Use new openp return protocol.
5194 Don't try to use Vload_source_file_function to load .elc files.
5195 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
5196 openp return protocol.
5197 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
5198
1729bb9a
KH
51992000-11-11 Kenichi Handa <handa@etl.go.jp>
5200
4e677396
KH
5201 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
5202
5203 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
5204 Defined these macros.
5205 (NLIST_STRUCT): Avoid re-defining it.
5206
1729bb9a
KH
5207 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
5208 -I/usr/contrib/X11R6/include.
5209 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
5210
a82fe213
JR
52112000-11-10 Jason Rumney <jasonr@gnu.org>
5212
5213 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
5214
5215 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
5216 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
5217
5218 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
5219 (Qw32_charset_vietnamese): New symbol.
5220 (xlfd_charset_of_font): New function.
5221 (w32_load_system_font): Use it.
5222 (x_to_w32_charset): Use Fassoc to find charset info. Special case
5223 when Vw32_charset_info_alist is nil to ensure default face always
5224 has font. Use Fcar and Fcdr for safety.
5225 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
5226 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
5227 pseudo-codepages for special cases.
5228 (w32_to_x_font): New parameter to allow charset portion to be
5229 specified where there is many to one mapping. Callers changed.
5230 (w32_list_fonts): Avoid listing fonts that won't display.
5231
52d89894
GM
52322000-11-10 Gerd Moellmann <gerd@gnu.org>
5233
5234 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
5235 (font_list_1): Renamed from font_list.
5236 (font_list): New function, trying alternative registries from
5237 Vface_alternative_font_registry_alist.
5238 (Finternal_set_alternative_font_registry_alist): New function.
5239 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
5240 Vface_alternative_font_registry_alist.
5241 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 5242
651cd3da
KR
52432000-11-09 Ken Raeburn <raeburn@gnu.org>
5244
5245 * lisp.h (Flooking_at): Declare.
5246
388ac098
GM
52472000-11-09 Gerd Moellmann <gerd@gnu.org>
5248
778fbc46 5249 * dired.c (directory_files_internal): Fix a braino.
52283633 5250
388ac098
GM
5251 * dired.c (directory_files_internal): Add missing GCPRO's.
5252 Some cleanup.
5253
ecaedde1
GM
52542000-11-08 Gerd Moellmann <gerd@gnu.org>
5255
f7eb32aa
GM
5256 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
5257 (resize_mini_window): Return quickly if Vresize_mini_window is
5258 nil. Don't return if Vmax_mini_window_height is nil.
5259
5260 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
5261 (syms_of_xdisp): Initialize them.
5262 (resize_mini_window): Act according to the setting of
5263 Vresize_mini_window.
5264 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
5265
ecaedde1
GM
5266 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
5267 scroll bar widget after configuring it, so that it will appear at
5268 the right position from the start.
5269 (XTredeem_scroll_bar): Cleaned up.
5270
3747ef2c
KH
52712000-11-08 Kenichi Handa <handa@etl.go.jp>
5272
5273 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 5274 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
5275 division by two.
5276
5277 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
5278
03391420
DL
52792000-11-07 Dave Love <fx@gnu.org>
5280
7758f1c1 5281 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
5282
5283 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
5284
b5de343d
GM
52852000-11-07 Gerd Moellmann <gerd@gnu.org>
5286
acad3c0b
GM
5287 * window.c (Fset_window_configuration): Don't try to preserve
5288 point in the current buffer, if that buffer is displayed in more
5289 than one window.
5290
b5de343d
GM
5291 * xfaces.c (lookup_named_face): If default face isn't realized,
5292 try to realize it. Return -1 if not successful.
5293 (Fx_list_fonts): Handle case that face cannot be determined.
5294 (Fface_font): Likewise.
5295
cdb1fe49
GM
52962000-11-06 Gerd Moellmann <gerd@gnu.org>
5297
5298 * window.c (displayed_window_lines): Detect partially
5299 visible lines at the bottom correctly.
5300
d3a67486
SM
53012000-11-06 Stefan Monnier <monnier@cs.yale.edu>
5302
5303 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
5304 when ensuring we don't do visit in indirect buffer.
5305
ff8dd5d5
KH
53062000-11-06 Kenichi Handa <handa@etl.go.jp>
5307
5308 * composite.h (compose_chars_in_text): Add prototype.
5309
5310 * composite.c (Vcomposition_function_table): New variable.
5311 (Qcomposition_function_table): New variable.
5312 (run_composition_function): Call
5313 Vcompose_chars_after_function with three arguments.
5314 (compose_chars_in_text): New function.
5315 (syms_of_composite): Modified the doc-string of
5316 Vcompose_chars_after_function. Declare composition-function-table
5317 as a lisp variable, and initialize it.
5318
5319 * xfns.c (x_encode_text): Suppress producing escape sequences for
5320 composition.
5321
5322 * xselect.c: Include composite.h.
5323 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
5324
d1145f85
AI
53252000-11-05 Andrew Innes <andrewi@gnu.org>
5326
5327 * w32term.c (x_produce_glyphs): Fix typo in enum name.
5328
5329 * sysdep.c (read_input_waiting): Remove extraneous argument to
5330 read_socket_hook.
5331
5332 * w32fns.c (Fx_server_version): Include w32_build_number in the
5333 return list.
5334
5335 * w32heap.c (w32_build_number): New variable.
5336 (cache_system_info): Set it.
5337
5338 * w32heap.h (w32_build_number): Add extern.
5339
5340 * emacs.c (syms_of_emacs): Update docstring for
5341 system-configuration, to reflect the actual usage on MS-Windows.
5342
e85ee976
GM
53432000-10-31 Gerd Moellmann <gerd@gnu.org>
5344
26dcb81b
GM
5345 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
5346 process idle timers while waiting for another event.
5347
52283633 5348 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
5349 the default face are colored.
5350
e85ee976
GM
5351 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
5352 window height hasn't changed.
5353
01b220b6
JR
53542000-10-31 Jason Rumney <jasonr@gnu.org>
5355
5356 * w32term.c (x_produce_glyphs): Handle composite characters.
5357 (x_draw_glyph_string_foreground)
5358 (x_draw_composite_glyph_string_foreground): Restore old font.
5359
4e6b7204
MB
53602000-10-31 Miles Bader <miles@lsi.nec.co.jp>
5361
5362 * minibuf.c (read_minibuf): Reset the undo history just before
5363 starting the recursive-edit.
5364
d4358b37
GM
53652000-10-30 Gerd Moellmann <gerd@gnu.org>
5366
563f68f1
GM
5367 * xfaces.c (menu_face_change_count): New variable.
5368 (Finternal_set_lisp_face_attribute): Increment it for changes
5369 of the `menu' face.
5370 (realize_basic_faces): Reflect changes in the `menu' faces
5371 in menu bars.
5372
82e274d1
GM
5373 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
5374 dy obtained from the iterator's y-position after moving from
5375 scroll_margin_pos to PT; see comment there.
52283633 5376
0dbf9fd2
GM
5377 * xdisp.c (safe_eval_handler): Call add_to_log.
5378
906b3b14
GM
5379 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
5380 is not a symbol or string.
5381
d4358b37
GM
5382 * xdisp.c (echo_area_display): Don't perform a display update from
5383 inside redisplay. The update will happen anyway at the end of
5384 redisplay, and it can confuse redisplay (GC messages while
5385 redisplaying, for instance.)
5386
70c825df
SM
53872000-10-30 Stefan Monnier <monnier@cs.yale.edu>
5388
cf9b4b0b
SM
5389 * xrdb.c (x_load_resources): Use the class name in the defaults.
5390
70c825df
SM
5391 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
5392 (regex_compile): Catch bogus \(\1\).
5393
a1d34b1e
GM
53942000-10-30 Gerd Moellmann <gerd@gnu.org>
5395
cae71efe
GM
5396 * xterm.c (x_alloc_nearest_color): Fix last change to compare
5397 RGB values.
52283633 5398
35efe0a1
GM
5399 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
5400 we have a color cache, check that the cached color equals the
5401 allocated color. If not, clear the color cache.
5402
1d3baf74
GM
5403 * window.c (displayed_window_lines): Change buffers if necessary.
5404 Fix computation of displayed lines.
5405
a1d34b1e
GM
5406 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
5407 update_menu_bindings to DEFVAR_BOOL.
5408
70737ea9
KH
54092000-10-30 Kenichi Handa <handa@etl.go.jp>
5410
70c825df 5411 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 5412
fa0cb51d
KH
5413 * puresize.h (BASE_PURESIZE): Increase to 680000.
5414
70737ea9
KH
5415 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
5416
0e4c08e8
JR
54172000-10-29 Jason Rumney <jasonr@gnu.org>
5418
5419 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
5420
5421 * w32term.c (w32_bdf_per_char_metric): Negate descent.
5422 (w32_cache_char_metrics): Handle possibility that 'x' does not
5423 exist in a BDF font.
5424 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
5425
5426 * w32bdf.h (bdffont): Add nchars.
5427
5428 * w32bdf.c (set_bdf_font_info): Set it.
5429 (w32_BDF_TextOut): Swap byte order of double byte characters.
5430 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
5431
45b84006
EZ
54322000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
5433
5434 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
5435 don't override the colors in frame's param_alist, unless they are
5436 unspecified.
5437
5438 * term.c (reassert_line_highlight): If inverse_video is non-zero,
5439 reverse the effect of the highlight flag.
5440
caf9deee
KR
54412000-10-27 Ken Raeburn <raeburn@gnu.org>
5442
5443 * window.h (Fwindow_live_p): Declare.
5444
ae0b9b46
KR
5445 * undo.c (record_delete): Check that last_undo_buffer is really a
5446 buffer before applying XBUFFER to it.
5447
5448 * keymap.c (where_is_internal): Pass lisp object, not integer, to
5449 Faref.
5450
02067692
SM
54512000-10-27 Stefan Monnier <monnier@cs.yale.edu>
5452
5453 * lisp.h (KEYMAPP): New macro.
5454 (get_keymap): Remove.
5455 (get_keymap_1): Rename get_keymap.
5456
5457 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
5458
5459 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
5460
5461 * xmenu.c (single_submenu): Use KEYMAPP.
5462 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
5463 Use KEYMAPP rather than Fkeymapp.
5464
5465 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
5466
5467 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
5468 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
5469 Use KEYMAPP rather than Fkeymapp.
5470 (single_submenu): Use KEYMAPP.
5471 (w32_menu_show, w32_dialog_show): Use TRUE.
5472
5473 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
5474
5475 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
5476 (Fkeymapp): Use KEYMAPP.
5477 (get_keymap): Rename from get_keymap_1. Remove old def.
5478 Return t when autoload=0 and error=0 and the keymap needs autoloading.
5479 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
5480 (Fminor_mode_key_binding): Don't raise an error if the binding
5481 is not a keymap.
5482 (Fuse_global_map, Fuse_local_map): Allow autoloading.
5483 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
5484
5485 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
5486 Allow Vspecial_event_map to be autoloaded.
5487 (menu_bar_items): Fetch the keymap rather than using keymapp.
5488 (menu_bar_one_keymap): No need to follow func-indirect any more.
5489 (parse_menu_item): get_keymap_1 -> get_keymap.
5490 (tool_bar_items): Fetch the keymap rather than using keymapp.
5491 (read_key_sequence): Use KEYMAPP.
5492
5493 * intervals.c (get_local_map): Use get_keymap rather than following
5494 function-indirections explicitly.
5495
5496 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
5497
f9d80af3
JR
54982000-10-27 Jason Rumney <jasonr@gnu.org>
5499
5500 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
5501 point, as Windows has oversized fonts.
5502
5503 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
5504
a3ba27da
GM
55052000-10-27 Gerd Moellmann <gerd@gnu.org>
5506
5507 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
5508 (freehook, reallochook): Handle null pointer arguments.
5509 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
5510
aa3b80cc
SM
55112000-10-27 Stefan Monnier <monnier@cs.yale.edu>
5512
5513 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
5514 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
5515 Giving in to popular pressure to shut up the compiler with casts.
5516
e24e84cc
GM
55172000-10-27 Gerd Moellmann <gerd@gnu.org>
5518
5519 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
5520 signed value, and use a default value computed from the font's
5521 maximum descent.
5522
05ea7ef2
MB
55232000-10-27 Miles Bader <miles@lsi.nec.co.jp>
5524
5525 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
5526 that specify a negative underline position can still use underlines.
5527
5528 * window.c (Fpos_visible_in_window_p): Make POS default to
5529 WINDOW's point, not the current buffer's point.
5530
0b95284b
DL
55312000-10-26 Dave Love <fx@gnu.org>
5532
5533 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
5534 when it's necessary.
5535
6c5b90af
GM
55362000-10-26 Gerd Moellmann <gerd@gnu.org>
5537
8b6d9dc9
GM
5538 * window.c (size_window): Compute size difference from sum of old
5539 child window sizes instead of from parent's size.
5540
6bc92b2e
GM
5541 * xdisp.c (pos_visible_p): Change current buffer if necessary.
5542 Handle obscured lines at the top of the window.
5543
5544 * frame.c (Fdelete_frame): Doc fix. Move running the hook
5545 down after the last error condition check.
5546
6c5b90af
GM
5547 * frame.c (Fdelete_frame): Run delete-frame-hook.
5548
42f92d4d
KH
55492000-10-26 Kenichi Handa <handa@etl.go.jp>
5550
5551 * coding.c (decode_coding): Fix previous change (check also
5552 CODING_MODE_LAST_BLOCK).
5553
d97151cb
SM
55542000-10-25 Stefan Monnier <monnier@cs.yale.edu>
5555
e7efc503
SM
5556 * regex.c: More `unsigned char' -> `re_char' changes.
5557 Also change several `int' into `re_wchar_t'.
5558 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
5559 (PUSH_FAILURE_POINTER): Don't cast any more.
5560 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
5561 We want GCC to complain, since this piece of code makes
5562 re_match non-reentrant, which *should* be fixed.
5563 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
5564 (EXTEND_BUFFER): Use RETALLOC.
5565 (SET_LIST_BIT): Don't cast.
5566 (re_wchar_t): New type.
5567 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
5568 that those two functions will always properly return.
5569 (IMMEDIATE_QUIT_CHECK): Cast to void.
5570 (analyse_first): Use recursion rather than an explicit stack.
5571 (re_compile_fastmap): Can't fail anymore.
5572 (re_search_2): Don't check re_compile_fastmap for failure.
5573 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
5574 Now also sets the new value (passed in a new argument).
5575 (re_match_2_internal): Use it.
5576 Also, use a new var `reg' of type size_t when looping through regs
5577 rather than reuse the inappropriate `mcnt'.
5578
d97151cb
SM
5579 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
5580 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
5581 (where_is_internal): Renamed from Fwhere_is_internal.
5582 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
5583 (Fwhere_is_internal): New function wrapping where_is_internal.
5584 (where_is_internal_1): Handle the case where we're filling the cache.
5585 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
5586
d5789b65
MB
55872000-10-25 Miles Bader <miles@gnu.org>
5588
5589 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
5590
4ecda532
GM
55912000-10-25 Gerd Moellmann <gerd@gnu.org>
5592
5593 * window.c (pos_fully_visible_p): Removed.
5594 (Fpos_visible_in_window_p): Use pos_visible_p to determine
5595 if position is visible and/or fully visible.
5596
5597 * lisp.h (pos_visible_p): Add prototype.
5598
5599 * xdisp.c (pos_visible_p): New function.
5600
68c3a137
KH
56012000-10-25 Kenichi Handa <handa@etl.go.jp>
5602
5603 * process.c (send_process): If OBJECT is t, it means that the data
5604 is from C string, but we should encode it. Before calling
5605 setup_raw_text_coding_system, be sure to flush out data by the
5606 previous coding system.
5607
7ae1c032
MB
56082000-10-25 Miles Bader <miles@lsi.nec.co.jp>
5609
ff4dcd4b
MB
5610 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
5611 assignment of startpos to prev when startpos == pos.
5612
7ae1c032
MB
5613 * editfns.c (find_field): Set the field stickiness correctly from
5614 overlay fields. Use renamed `text_property_stickiness'.
5615 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 5616 Only check text properties, not overlays.
7ae1c032
MB
5617 * textprop.c (get_char_property_and_overlay): New function.
5618 (Fget_char_property): Use it.
5619 * intervals.h (get_char_property_and_overlay): Add declaration.
5620
49801145
SM
56212000-10-25 Stefan Monnier <monnier@cs.yale.edu>
5622
5623 * keymap.c: Use AREF, ASET and ASIZE macros.
5624 (Fmake_sparse_keymap): Docstring fix.
5625 (synkey): Remove.
5626 (shadow_lookup): Move up.
5627 Handle the case where lookup-key returns an integer.
5628 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
5629 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
5630 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
5631 Simplify/rewrite the keymap-finding code.
5632 Add check for command shadowing, using shadow_lookup.
5633
39e776cd
SM
56342000-10-24 Stefan Monnier <monnier@cs.yale.edu>
5635
5636 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
5637 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
5638 a symbol.
5639
2488aba5
AI
56402000-10-24 Andrew Innes <andrewi@gnu.org>
5641
5642 * dired.c (directory_files_internal_unwind): New function.
5643 (directory_files_internal): Use it to ensure closedir is called
5644 even if expand-file-name or file-attributes throw, eg. because of
5645 a user interrupt. Also enable immediate_quit while calling
5646 re_search, so that matching can be interrupted as well.
5647
b94fdf61
AI
56482000-10-24 Andrew Innes <andrewi@gnu.org>
5649
5650 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
5651 NT-Emacs only.
5652 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
5653 so that re_search functions only quit when callers expect them to.
5654
56552000-10-24 Kenichi Handa <handa@etl.go.jp>
5656
5657 * regex.c (regex_compile): Change the way of handling a range from
5658 a char less than 256 to a char not less than 256.
5659
1946f901
GM
56602000-10-24 Gerd Moellmann <gerd@gnu.org>
5661
7ae2f10f
GM
5662 * window.c (size_window): Prevent setting window's width or
5663 height to a negative value (esp. with XSETFASTINT).
5664
5dcab13e
GM
5665 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
5666 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
5667 (protect_malloc_state) [GC_MALLOC_CHECK &&
5668 GC_PROTECT_MALLOC_STATE]: New function.
5669 (PROTECT_MALLOC_STATE): New macro.
5670 (__malloc_initialize, morecore, _malloc_internal)
5671 (_free_internal) _realloc_internal): Use it to make _heapinfo
5672 read-only outside of gmalloc.
5673
63e1b552
GM
5674 * keymap.c: Update copyright.
5675
1946f901
GM
5676 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
5677 a symbol.
5678
4fa09beb
GM
56792000-10-24 Colin Walters <walters@cis.ohio-state.edu>
5680
5681 * filelock.c (unlock_all_files): Use unlock_file to expand each
5682 buffer's file_truename before trying remove its lock file.
5683
23afac01
EZ
56842000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
5685
5686 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
5687 or CRLF, decode EOLs.
5688
04448b95
KH
56892000-10-24 Kenichi Handa <handa@etl.go.jp>
5690
5691 * window.c (Fdisplay_buffer): Fix doc.
5692
3090a5a5
JR
56932000-10-23 Jason Rumney <jasonr@gnu.org>
5694
5695 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
5696 ASCII font of default fontset on Windows.
5697
5698 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
5699 xterm.c comment below).
5700
5701 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
5702
a83fee2c
GM
57032000-10-23 Gerd Moellmann <gerd@gnu.org>
5704
5705 * xterm.c (x_connection_closed): Reset handling_signal.
5706
52283633 5707 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 5708
6ffdb539
MB
57092000-10-23 Miles Bader <miles@gnu.org>
5710
5711 * window.c (window_scroll_pixel_based, window_scroll_line_based):
5712 Pass nil for FULLY argument to Fpos_visible_in_window_p to
5713 maintain old behavior.
5714 * minibuf.c (Fminibuffer_complete): Likewise.
5715
7f1c969b
MB
57162000-10-23 Miles Bader <miles@lsi.nec.co.jp>
5717
5718 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
5719 that when a font can't be exactly centered, it errs up rather than
5720 down.
5721
23afac01 57222000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 5723
52283633 5724 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 5725
1a578e9b
AC
57262000-10-23 Andrew Choi <akochoi@i-cable.com>
5727
5728 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
5729
5730 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 5731 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
5732
5733 * emacs.c (main) [macintosh]: Call syms_of_textprop,
5734 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
5735 syms_of_search, x_term_init, and init_keyboard before calling
5736 init_window_once. Also, call syms_of_xmenu.
5737
5738 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
5739 default fontset to Monaco.
5740
5741 * frame.c [macintosh]: Include macterm.h. Remove declarations of
5742 NewMacWindow and DisposeMacWindow.
5743 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
5744 instead of calling NewMacWindow and setting fields of
5745 f->output_data.mac directly. Call init_frame_faces.
5746 (Fdelete_frame) [macintosh]: Remove unused code.
5747 (Fmodify_frame_parameters) [macintosh]: Call
5748 x_set_frame_parameters instead of mac_set_frame_parameters.
5749
5750 * frame.h [macintosh]: Define menu_bar_lines field in struct
5751 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
5752
5753 * keyboard.c [macintosh]: Include macterm.h.
5754 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
5755 and menu_bar_activate_event type events as for X and NT.
5756 (make_lispy_event) [macintosh]: Construct lisp events of type
5757 MENU_BAR_EVENT as for X and NT.
5758
5759 * sysdep.c [macintosh]: Remove declaration for sys_signal.
5760 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
5761 (sys_subshell) [macintosh]: Remove definition entirely.
5762 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
5763 Vwindow_system_version here. Remove initialization of
5764 Vx_bitmap_file_path.
5765 (read_input_waiting): Correct the number of parameters passed to
5766 read_socket_hook.
5767 Move all Macintosh functions to mac/mac.c.
5768
5769 * term.c [macintosh]: Include macterm.h.
5770
5771 * window.c [macintosh]: Include macterm.h.
5772
5773 * xdisp.c [macintosh]: Include macterm.h. Declare
5774 set_frame_menubar and pending_menu_activation.
5775 (echo_area_display) [macintosh]: Do not return if terminal frame
5776 is the selected frame.
5777 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
5778 Allow only the selected frame to set menu bar.
5779 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
5780 calling FRAME_EXTERNAL_MENU_BAR (f).
5781 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
5782
5783 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
5784 and check_x. Declare XCreateGC. Define x_create_gc and
5785 x_free_gc. Initialize font_sort_order.
5786 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
5787 but call x_list_fonts instead of w32_list_fonts.
5788 (Finternal_face_x_get_resource) [macintosh]: Do not call
5789 display_x_get_resource.
5790 (prepare_face_for_display) [macintosh]: Set xgcv.font.
5791 (realize_x_face) [macintosh]: Load the font if it is specified in
5792 ATTRS.
52283633 5793 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 5794
1ffbabe3
SM
57952000-10-22 Stefan Monnier <monnier@cs.yale.edu>
5796
5797 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
5798 is nil: since we go to the end of submap anyway, we'd end up
5799 setting nil to nil.
5800 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
5801 doesn't obey autoload.
5802
bed43f1d
EZ
58032000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
5804
1ffbabe3 5805 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 5806
ea4233a7
JR
58072000-10-21 Jason Rumney <jasonr@gnu.org>
5808
5809 * w32term.c (w32_cache_char_metrics): Double check that font is
5810 really fixed pitch before trusting tmPitchAndFamily.
5811
f3d3c491
AI
58122000-10-21 Andrew Innes <andrewi@gnu.org>
5813
5814 * w32gui.h (w32_char_font_type): Move enum from w32term.c
5815
5816 * w32term.h: Extern decl for w32_cache_char_metrics.
5817
5818 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
5819
5820 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
5821 (w32_unload_font): Free per_char array if present.
5822
5823 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
5824 cached information in emulated XFontStruct to handle common cases
5825 quickly. Do not allocate XCharStruct for return.
5826 (w32_native_per_char_metric): New function.
5827 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
5828 allocating one.
5829 (x_produce_glyphs): Don't get an HDC. Change calls to
5830 w32_per_char_metric to match arg change above. Remove calls to
5831 free results.
5832 (w32_get_glyph_overhangs): Ditto.
5833 (w32_cache_char_metrics): New function.
5834
5835 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
5836 ($(BLD)/casefiddle.$(O)): Remove compile command.
5837 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
5838 ($(BLD)/dispnew.obj):
5839 ($(BLD)/keyboard.obj):
5840 ($(BLD)/w32inevt.obj):
5841 ($(BLD)/w32bdf.obj):
5842 ($(BLD)/alloc.obj):
5843 ($(BLD)/buffer.obj):
5844 ($(BLD)/editfns.obj):
5845 ($(BLD)/emacs.obj):
5846 ($(BLD)/fileio.obj):
5847 ($(BLD)/fns.obj):
5848 ($(BLD)/indent.obj):
5849 ($(BLD)/insdel.obj):
5850 ($(BLD)/intervals.obj):
5851 ($(BLD)/minibuf.obj):
5852 ($(BLD)/print.obj):
5853 ($(BLD)/scroll.obj):
5854 ($(BLD)/sysdep.obj):
5855 ($(BLD)/textprop.obj):
5856 ($(BLD)/widget.obj):
f3d3c491
AI
5857 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
5858 ($(BLD)/term.obj): Add dependency on dispextern.h.
5859
52283633
SM
5860 * makefile.nt ($(BLD)\dispnew.obj):
5861 ($(BLD)\keyboard.obj):
5862 ($(BLD)\w32inevt.obj):
5863 ($(BLD)\w32bdf.obj):
5864 ($(BLD)\alloc.obj):
5865 ($(BLD)\buffer.obj):
5866 ($(BLD)\editfns.obj):
5867 ($(BLD)\emacs.obj):
5868 ($(BLD)\fileio.obj):
5869 ($(BLD)\fns.obj):
5870 ($(BLD)\indent.obj):
5871 ($(BLD)\insdel.obj):
5872 ($(BLD)\intervals.obj):
5873 ($(BLD)\minibuf.obj):
5874 ($(BLD)\print.obj):
5875 ($(BLD)\scroll.obj):
5876 ($(BLD)\sysdep.obj):
5877 ($(BLD)\textprop.obj):
5878 ($(BLD)\widget.obj):
f3d3c491
AI
5879 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
5880 ($(BLD)\term.obj): Add dependency on dispextern.h
5881
18ad4821
EZ
58822000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
5883
5884 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
5885 with an additional argument of Qt.
5886
de54681a
MB
58872000-10-21 Miles Bader <miles@gnu.org>
5888
5889 * window.c (pos_fully_visible_in_window_p): New function.
5890 (Fpos_visible_in_window_p): Add FULLY argument.
5891 Use pos_fully_visible_in_window_p.
5892 (window_scroll_pixel_based, window_scroll_line_based): Update
5893 calls to Fpos_visible_in_window_p.
5894 * lisp.h (Fpos_visible_in_window_p): Update prototype
5895
13c844fb
GM
58962000-10-20 Gerd Moellmann <gerd@gnu.org>
5897
5898 * alloc.c (toplevel): Conditionalize compilation of mem_*
5899 functions differently.
52283633 5900
d9506268
JR
59012000-10-20 Jason Rumney <jasonr@gnu.org>
5902
5903 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
5904 mem_init where it used to be. mem_z etc not defined otherwise.
5905
8094989b
GM
59062000-10-20 Gerd Moellmann <gerd@gnu.org>
5907
5908 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
5909 GC_MALLOC_CHECK.
5910 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
5911 structure definition and related variabled to the top of the file.
5912 Include this code when GC_MALLOC_CHECK is defined.
5913 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
5914 register/unregister allocated region.
5915 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
5916 which isn't allocated.
5917 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
5918 something which is already in use.
5919 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
5920 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
5921 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
5922 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
5923
5924 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
5925 _malloc_internal instead of malloc.
5926 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
5927 of free.
5928
ea456eb4
AI
59292000-10-20 Andrew Innes <andrewi@gnu.org>
5930
5931 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
5932 Windows.
5933 (my_strftime) <macro>: Don't use macro arg list when redefining as
5934 _strftime_copytm.
5935 (my_strftime) <function>: Supply 0 as ut argument.
5936
e64c3a75
JR
59372000-10-19 Jason Rumney <jasonr@altavista.net>
5938
5939 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
5940 including dispextern.h, as it stops faces from working.
5941
5942 * w32fns.c (Fx_create_frame): Don't bother calling
5943 face-set-after-frame-default since the caller does it for us
5944 anyway. Clean up calls to x_get_arg to be consistent with X.
5945
5946 * w32term.c (x_produce_glyphs): Handle
5947 unibyte_display_via_language_environment correctly.
5948 (w32_draw_box_rect): Fix the calculation of width and height.
5949
5950 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
5951 as it has stopped working.
5952 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
5953 menu-bar.
5954
17401c97
GM
59552000-10-19 Gerd Moellmann <gerd@gnu.org>
5956
5957 * eval.c (skip_debugger): Prevent a compiler warning.
5958 (Fcondition_case): Likewise.
5959 (Fbacktrace_frame): Use a null interactive spec.
5960
773272d8
KH
59612000-10-19 Kenichi Handa <handa@etl.go.jp>
5962
5963 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
5964
a42943e9
GM
59652000-10-18 Gerd Moellmann <gerd@gnu.org>
5966
e50517d9
GM
5967 * strftime.c: Sync with glibc, file version 1.78.
5968 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
5969 should no longer be used according to ISO 8601.
5970
9035a35a
GM
5971 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
5972 no map for meta_prefix_char, don't try to use it as a keymap.
5973 Instead, if T_OK is non-zero, look up a default binding, if any,
5974 otherwise, if T_OK is zero, return nil.
5975
a42943e9
GM
5976 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
5977 (x_to_xcolors, png_load): Use x_query_color.
5978
52283633
SM
5979 * xterm.c (x_color_cells, x_query_colors, x_query_color):
5980 New functions.
a42943e9
GM
5981 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
5982 which can be slow.
5983 (x_copy_color, x_alloc_lighter_color): Likewise.
5984
5985 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
5986 (x_query_color, x_query_colors): Add prototype.
5987
5988 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
5989 check_string_bytes only if not noninteractive, increase count to 50.
5990
00de2987
MB
59912000-10-18 Miles Bader <miles@lsi.nec.co.jp>
5992
5993 * insdel.c (adjust_markers_for_delete): Handle before-insertion
5994 markers correctly.
5995
54918e2b
GM
59962000-10-17 Gerd Moellmann <gerd@gnu.org>
5997
1f0b3fd2
GM
5998 * alloc.c (pure_bytes_used): Renamed from pureptr.
5999 (ALIGN): New macro.
6000 (pure_alloc): New function.
6001 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
6002 Use it.
6003 (Fpurecopy): Use PURE_POINTER_P.
6004
68c5d1db
GM
6005 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
6006 PT has moved backward.
52283633 6007
9a038881
GM
6008 * xdisp.c (cursor_row_p): Take continued lines into account.
6009
361b097f
GM
6010 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
6011 string's size_byte.
6012 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
6013 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
6014 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
6015 string allocated.
6016
54918e2b
GM
6017 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
6018 of selective display off while searching for the next line start.
6019
03ed0806
KH
60202000-10-17 Kenichi Handa <handa@etl.go.jp>
6021
6022 * Makefile.in (term.o): Depend on dispextern.h.
6023
7e05cdaf
SM
60242000-10-16 Stefan Monnier <monnier@cs.yale.edu>
6025
6026 * keymap.c (keymap_memberp): Ensure that nil is not a member.
6027
a6801fd1
GM
60282000-10-16 Gerd Moellmann <gerd@gnu.org>
6029
483de32b
GM
6030 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
6031 the iterator at the beginning, so that they can be set later on,
6032 for instance in reseat_at_next_visible_line_start, without being
6033 overwritten.
6034
a6801fd1
GM
6035 * xfns.c (pbm_format): Add :foreground and :background keywords.
6036 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 6037 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 6038
dbf1fcc1
EZ
60392000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
6040
6041 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
6042
52283633 6043 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
6044
6045 * msdos.c (IT_set_face): Compare highlighted face with the default
6046 face, and invert colors if these faces' colors are identical.
6047 (Fmsdos_remember_default_colors): Don't swap foreground and
6048 background colors in initial_colors[].
6049 (IT_set_frame_parameters): Don't swap frame's foreground and
6050 background pixels. If ALIST includes "(reverse . t)", swap
6051 foreground-color and background-color properties in frame's
6052 param_alist. If the original frame's param_alist doesn't specify
6053 the colors, store unspecified-fg and unspecified-bg, reversed if
6054 required.
6055
6056 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
6057 the colors are unspecified and reversed, reverse fore- and back-
6058 ground in the returned value.
6059 (Fframe_parameter): Ditto.
6060
b41fe2c3 60612000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 6062
3a6b59d9
GM
6063 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
6064 get_last_unchanged_at_beg_row.
6065 (find_first_unchanged_at_end_row): Renamed from
6066 get_first_unchanged_at_end_row.
6067 (find_first_unchanged_at_end_row): Convert assertions to
6068 unconditional tests which abort. When looking for a row in
6069 unchanged text, don't go further back than first_text_row.
6070
b41fe2c3
GM
6071 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
6072 Don't add in the last line's height when deciding if the new
6073 position is below the scroll margin.
9d1af64f 6074
b41fe2c3 60752000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
6076
6077 * editfns.c (Fconstrain_to_field): Check carefully for field
6078 boundaries if either OLD_POS or NEW_POS has a non-nil field
6079 property, even if they're the same.
6080
c412cb7b
KH
60812000-10-16 Kenichi Handa <handa@etl.go.jp>
6082
6083 * xterm.c (x_draw_box_rect): Fix the calculation of width and
6084 height for XFillRectangle.
6085
5586f3eb
SM
60862000-10-15 Stefan Monnier <monnier@cs.yale.edu>
6087
6088 * syntax.c (Fstring_to_syntax): New function extracted from
6089 Fmodify_syntax_entry.
6090 (Fmodify_syntax_entry): Use it and document the ! and | fences.
6091 (skip_chars, Fforward_comment): Remove unused variables.
6092 (syms_of_syntax): Add defsubr for string-to-syntax.
6093 (describe_syntax): Add code for comment and string fences.
6094
db785038
SM
60952000-10-14 Stefan Monnier <monnier@cs.yale.edu>
6096
6097 * keymap.c (access_keymap): Add AUTOLOAD parameter.
6098 Do the meta->esc mapping. Call get_keyelt before returning.
6099 Start scanning from the second element (the first is always `keymap')
6100 to make it easier to detect when we reach a parent map.
6101 Handle the case of inheriting from a symbol whose function is a map.
6102 (Fkeymap_parent): Also handle the `inherit from symbol' case.
6103 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
6104 (get_keyelt, Flookup_key): Update call to access_keymap.
6105 Remove the meta->esc mappings.
6106 (define_as_prefix): Delete old disabled code.
6107 (menu_item_p): New function.
6108 (where_is_internal_1): Skip over the few remaining menu items.
6109 * lisp.h (access_keymap): Update prototype.
6110 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
6111 Update call to access_keymap.
6112 (follow_key, read_key_sequence): Update calls to access_keymap.
6113 Remove the meta->esc mappings.
6114
cafafe0b
GM
61152000-10-13 Gerd Moellmann <gerd@gnu.org>
6116
a2e2a7f6
GM
6117 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
6118 with additional argument.
6119
cafafe0b
GM
6120 * xdisp.c (cursor_row_p): New function.
6121 (try_cursor_movement, display_line): Use it.
52283633 6122
cafafe0b
GM
6123 * xdisp.c (append_space): Also save/restore iterator's current
6124 character and its length.
6125
6126 * xdisp.c (init_from_display_pos): Add an assertion.
6127 (handle_stop): Don't set iterator's add_overlay_start.
6128 (handle_invisible_prop): Likewise.
6129 (load_overlay_strings): If text under an overlay is invisible,
6130 take both before- and after-strings into account when the iterator
6131 is positioned either at the start or at the end of the overlay.
6132 (forward_to_next_line_start): Rewritten.
6133 (reseat_at_next_visible_line_start): Rewritten.
6134 (set_iterator_to_next): Add parameter RESEAT_P.
6135
6136 * dispextern.h (struct it): Remove member add_overlay_start.
6137 (set_iterator_to_next): Change prototype.
6138
c744452b
KH
61392000-10-13 Kenichi Handa <handa@etl.go.jp>
6140
6141 * coding.c (code_convert_region): Be sure to initialize
6142 coding->category_idx.
e4a3f4e1
KH
6143 (decode_coding_string): Set coding->src_multibyte and
6144 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
6145 (encode_coding_string): Set coding->src_multibyte and
6146 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 6147
321fd26f
SM
61482000-10-12 Stefan Monnier <monnier@cs.yale.edu>
6149
6150 * xfns.c (Fx_create_frame): Don't bother calling
6151 face-set-after-frame-default since the caller does it for us anyway.
6152
76832439
EZ
61532000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
6154
6155 * window.c (coordinates_in_window): Fix detection of vertical line
6156 on character terminals.
6157
2483cf58
GM
61582000-10-12 Gerd Moellmann <gerd@gnu.org>
6159
6160 * editfns.c (save_excursion_save): Additionally record the
6161 selected window.
6162 (save_excursion_restore): If buffer was visible in a window, and a
6163 different window was selected, and the old selected window is
6164 still live, restore point in that window.
6165
eb991b25
KH
61662000-10-12 Kenichi Handa <handa@etl.go.jp>
6167
8a0eba09
KH
6168 * xterm.c (x_produce_glyphs): Handle
6169 unibyte_display_via_language_environment correctly.
6170
20401fcc
KH
6171 * regex.c (regex_compile): Change the way of handling a range from
6172 unibyte char to multibyte char.
6173
6174 * syntax.c (skip_chars): Change the way of handling a range from
6175 unibyte char to multibyte char.
6176
eb991b25
KH
6177 * process.c (read_process_output): Cancel previous change.
6178
365dd325
EZ
61792000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
6180
c1b096cb
EZ
6181 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
6182
365dd325
EZ
6183 * charset.c (Ffind_charset_string): Doc fix.
6184 (Ffind_charset_region): Doc fix.
6185
eb483c2b
KH
61862000-10-11 Kenichi Handa <handa@mule.m17n.org>
6187
6188 * process.c (read_process_output): Fix previous change. Adjust
6189 multibyteness of text to insert in a buffer by
52283633 6190 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 6191
b40bfb99
AS
61922000-10-10 Andreas Schwab <schwab@suse.de>
6193
6194 * alloc.c (mark_object): Remove all workarounds installed on
6195 1993-08-08.
6196
caff31d4
KH
61972000-10-10 Kenichi Handa <handa@etl.go.jp>
6198
52283633 6199 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
6200 (base64_encode_1): Make it work for a text of multibyte form.
6201 (Fbase64_decode_region): Allocate sufficient memory for multibyte
6202 case. Don't call str_to_multibyte because base64_decode_1
6203 produces correct multibyte form for eight-bit codes.
52283633 6204 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
6205 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
6206 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
6207 codes.
6208
6209 * charset.h (CHAR_STRING): Optimized for single byte characters.
6210
cba026ef
AS
62112000-10-09 Andreas Schwab <schwab@suse.de>
6212
6213 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
6214 -1 after socket is closed, to fall through to error processing.
6215
1e21fe48
EZ
62162000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
6217
6218 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 6219 variables. If ALIST includes foreground-color or
1e21fe48
EZ
6220 background-color, change also the colors of the default face for
6221 this frame.
6222
a640322e
EZ
62232000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
6224
6225 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
6226 them extern (they are defined on xfaces.c).
6227 (syms_of_msdos): Don't intern and don't staticpro
6228 Qbackground_color and Qforeground_color.
6229
a115794c
EZ
62302000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
6231
6232 * frame.c (Fframe_parameter): For non-windowed frames, if
6233 f->param_alist says foreground or background color is unspecified,
6234 call tty_color_name to return the color name computed from the
6235 frame's current colors.
6236
f5533b63
DL
62372000-10-06 Dave Love <fx@gnu.org>
6238
6239 * terminfo.c (ospeed): Don't declare.
6240
6241 * sysdep.c: Don't include string.h.
6242 (h_errno): Declare conditional also on TRY_AGAIN.
6243
6244 * charset.c (Ffind_charset_string): Doc fix.
6245
52283633 6246 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
6247 (Fbase64_decode_region, Fbase64_decode_string): More explicit
6248 error messages.
6249
2b06561a
DL
62502000-10-05 Dave Love <fx@gnu.org>
6251
6252 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
6253 position like menu-bar.
6254
ca839c85
GM
62552000-10-05 Gerd Moellmann <gerd@gnu.org>
6256
6257 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
6258
6259 * xdisp.c (handle_single_display_prop): Use safe_call1.
6260 (safe_call): Renamed from call_function.
6261 (safe_call1): New function.
6262 (handle_fontified_prop): Use safe_call1 instead of call1.
6263 (safe_eval): Renamed from eval_form.
6264 (safe_eval_handler): Renamed from eval_handler.
6265 (handle_single_display_prop, display_mode_element): Use safe_eval
6266 instead of eval_form.
6267
6268 * xfaces.c (merge_face_heights): Use safe_call instead of
6269 call_function.
6270
6271 * keyboard.c (show_help_echo): Use safe_call instead of
6272 call_function; use safe_eval instead of eval_form.
6273
6274 * lisp.h (safe_call): Renamed from call_function.
6275 (safe_eval): Renamed from eval_form.
6276 (safe_call1): Add prototype.
6277
a3489ece
MB
62782000-10-05 Miles Bader <miles@lsi.nec.co.jp>
6279
6280 * xfns.c (image_ascent): Rearrange ascent calculation for the
6281 has-a-font case.
6282
35810b6f
SM
62832000-10-04 Stefan Monnier <monnier@cs.yale.edu>
6284
6285 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
6286 (where_is_internal_1): Don't bother ignoring menu-items any more.
6287
3dc78168
GM
62882000-10-04 Gerd Moellmann <gerd@gnu.org>
6289
6290 * keyboard.c (update_menu_bindings): New variable.
6291 (parse_menu_item): Use AREF. If update_menu_bindings
6292 is 0, don't update menu bindings.
6293 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
6294
1efc2bb9
EZ
62952000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
6296
6297 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
6298 to `mark_object'.
6299
3f679f55
SM
63002000-10-02 Stefan Monnier <monnier@cs.yale.edu>
6301
6302 * syntax.c (forw_comment): Match nestedness of ender/starter.
6303 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
6304 (prev_char_comstart_first): Remove.
6305 (back_comment): Check two-char comment markers more carefully
6306 to better handle overlapping cases like *//* or /* */* */ ...
6307 Match nestedness of ender/starter.
6308
2021ab61
DL
63092000-10-02 Dave Love <fx@gnu.org>
6310
6311 * config.in (HAVE_GAI_STRERROR): Add undef.
6312
6313 * process.c (Fopen_network_stream): Use it.
6314
6315 * m/alpha.h (NO_REMAP): Don't define.
6316
64e6cc18
GM
63172000-10-02 Gerd Moellmann <gerd@gnu.org>
6318
6319 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
6320 return with a string converted to an integer or vice versa when
6321 Vmocklisp_arguments is t.
6322 (Fsignal): Likewise. The function can return for `quit'.
6323 (struct gcpro): Declare member `var' to point to a volatile
6324 Lisp_Object.
6325
6326 * eval.c (error): Prevent compiler warning.
6327
b1904cd9
SM
63282000-09-30 Stefan Monnier <monnier@cs.yale.edu>
6329
6330 * keymap.c (keymap_memberp): New function.
6331 (Fset_keymap_parent): Use it.
6332 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
6333 Use keymap_memberp to avoid creating cycles.
6334 (access_keymap): Use KEYMAPP.
6335
71c9ec51
GM
63362000-09-30 Gerd Moellmann <gerd@gnu.org>
6337
6338 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
6339 gai_strerror. Make sure xerrno is set if connect fails. Improve
6340 error recovery.
71c9ec51 6341
c70c6b58
JR
63422000-09-29 Jason Rumney <jasonr@gnu.org>
6343
6344 * w32term.c (w32_char_font_type, w32_encode_char)
6345 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
6346 (w32_bdf_per_char_metric): New function.
6347 (w32_per_char_metric): Use it.
6348 (x_draw_glyph_string_background): Always draw background for BDF
6349 glyphs.
6350
6351 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
6352 GDI object which is a scarce resource.
6353
6354 * w32bdf.c (search_file_line): Fix skipping of whitespace.
6355 (get_quoted_string): Fix limit on memchr search.
6356 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
6357 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
6358 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
6359 (get_cached_font_char, cache_char_offset): Use macro
6360 BDF_CODEPOINT_RANGE_COVER_P.
6361 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
6362 (clear_cached_bitmap_slots): New function.
6363 (GET_HEX_VALUE): G-Z, g-z are not hex.
6364 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
6365 (get_bitmap_with_cache): Use new cache implementation.
6366 (create_offscreen_bitmap): New function.
6367 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
6368
6369 * w32term.c (x_produce_glyphs): If the distance from the current
6370 position to the next tab stop is less than a canonical character
6371 width, use the tab stop after that.
6372 (x_draw_glyphs): Handle case START and END are out of bounds more
6373 carefully.
6374 (x_clear_mouse_face): Block/unblock input.
6375 (x_display_and_set_cursor): Don't show a hollow box cursor for
6376 buffers whose cursor_type is nil.
6377
fe01239f
GM
63782000-09-29 Gerd Moellmann <gerd@gnu.org>
6379
52283633 6380 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
6381
6382 * dispextern.h (updating_frame): Declare extern.
6383
e7c52f1f
AS
63842000-09-29 Andreas Schwab <schwab@suse.de>
6385
6386 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
6387
de6e1f7c
GM
63882000-09-29 Gerd Moellmann <gerd@gnu.org>
6389
25126faa
GM
6390 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
6391 use its function definition.
6392 (tool_bar_items): Likewise.
6393
de6e1f7c 6394 * lisp.h (fatal): Declare NO_RETURN.
52283633 6395
454ee39b
KH
63962000-09-29 Kenichi Handa <handa@etl.go.jp>
6397
6398 * keymap.c: Remove the line "#undef NULL".
6399
96301c5f
GM
64002000-09-28 Gerd Moellmann <gerd@gnu.org>
6401
52283633 6402 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 6403
efffeeb4
DL
64042000-09-28 Dave Love <fx@gnu.org>
6405
ecb8b666
DL
6406 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
6407
dc3cd20f
DL
6408 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
6409
6410 * .gdbinit (xreload): Note its need on GNU/Linux.
6411
efffeeb4
DL
6412 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
6413 r_alloc, r_alloc_free.
6414
8610d903
KH
64152000-09-28 Kenichi Handa <handa@etl.go.jp>
6416
6417 * syntax.c (skip_chars): Handle negation correctly.
6418
8901d1ac
GM
64192000-09-27 Gerd Moellmann <gerd@gnu.org>
6420
6f22f1ad
GM
6421 * xfaces.c (realize_default_face): Call set_lface_from_font_name
6422 with non-zero FORCE_P argument.
6423
52283633 6424 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
6425 Add assertions.
6426
6427 * xdisp.c (window_box_height): Add an assertion.
6428
6429 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
6430 tool-bar than is available.
6431 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
6432
36f1966f
DL
64332000-09-27 Dave Love <fx@gnu.org>
6434
efffeeb4 6435 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 6436
31d929e5
GM
64372000-09-26 Gerd Moellmann <gerd@gnu.org>
6438
c98863bf
GM
6439 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
6440 instead of BITS_PER_INT.
6441 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
6442 EMACS_UINT, respectively.
6443 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
6444
6445 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
6446
6447 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
6448
77072ab1
GM
6449 * window.c (freeze_window_starts): Construct last argument for
6450 foreach_window differently.
6451
6452 * xfns.c (x_decode_color): Don't return a Lisp_Object.
6453
6454 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
6455 EMACS_UINT instead of `int' and `unsigned int'.
6456 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
6457
6458 * frame.h (struct frame): Make the `nothing' member of union
6459 output_data an EMACS_INT.
6460
52283633 6461 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
6462 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
6463 size in the sdata structure.
6464 (SDATA_NBYTES, SDATA_DATA): New macros.
6465 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
6466 differently for the different layout of the sdata structure.
6467 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
6468 in sdata.
6469 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
6470 Check that size recorded in the string size and size recorded in
6471 the sdata structure agree.
6472
3e60b029
DL
64732000-09-25 Dave Love <fx@gnu.org>
6474
6475 * buffer.c: Include stdio.h.
6476
6477 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 6478
3e60b029
DL
6479 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
6480
6481 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 6482 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
6483 (__malloc_extra_blocks): Declare as __malloc_size_t.
6484
8ff16b4e
GM
64852000-09-25 Gerd Moellmann <gerd@gnu.org>
6486
755a2ccd
GM
6487 * alloc.c (mark_image): Use GC_NILP instead of NILP.
6488
d8b4516f
GM
6489 * keyboard.c (show_help_echo): Set help_echo_showing_p.
6490 (read_char): If help-echo is showing, preserve the echo area
6491 when redisplaying.
6492
6493 * xdisp.c (help_echo_showing_p): New variable.
6494 (set_message): Reset it to 0.
6495 (init_xdisp): Initialize help_echo_showing_p.
6496
6497 * dispextern.h (help_echo_showing_p): Declare extern.
6498
6499 * config.in: Fix typo in __GNUC_MINOR__.
6500
6501 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
6502
b11af2dd
GM
6503 * s/freebsd.h (POSIX_SIGNALS): Define.
6504
8ff16b4e
GM
6505 * xterm.c (x_clear_mouse_face): Block/unblock input.
6506
844eb643
DL
65072000-09-24 Dave Love <fx@gnu.org>
6508
6509 * fns.c (base64_encode_1): Fix last change.
6510
b30ab1b3
GM
65112000-09-22 Gerd Moellmann <gerd@gnu.org>
6512
6513 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
6514
6515 * xdisp.c (try_window_reusing_current_matrix): More fixes
6516 for the case window has a header-line.
6517
c6cbe5f0
DL
65182000-09-22 Dave Love <fx@gnu.org>
6519
4c7c1f3f
DL
6520 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
6521 a doc string.
6522
6523 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
6524
c6cbe5f0
DL
6525 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
6526
550a625e
GM
65272000-09-21 Gerd Moellmann <gerd@gnu.org>
6528
4c7c1f3f 6529 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
6530 for GCC >= 2.5.
6531
52283633
SM
6532 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
6533 Declare NO_RETURN.
fca99116 6534
80d26f99
GM
6535 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
6536 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
6537 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
6538 warnings.
52283633 6539
80d26f99
GM
6540 * marker.c (byte_char_debug_check): Return void.
6541
623a0aae
GM
6542 * xfns.c (Fx_create_frame): Set default frame parameter value
6543 for tool-bar-lines to 1.
6544
6545 * dispnew.c (scrolling_window): Compare y-positions of rows
6546 equal at the start. Some simplification.
6547
6548 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
6549 reused rows' y-position in the case window has a header-line, and
6550 new window start is greater than old window start.
6551
42ac0ae5
GM
6552 * process.c (process_sent_to): New variable.
6553 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
6554 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
6555 Declare more parameters volatile.
6556
550a625e
GM
6557 * lread.c (Vrecursive_load_depth_limit): New variable.
6558 (Fload): Check recursive loads whose recursion depth exceeds
6559 Vrecursive_load_depth_limit.
6560 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
6561
8320414c
GM
65622000-09-20 Gerd Moellmann <gerd@gnu.org>
6563
f46c275e
GM
6564 * fileio.c (Fread_file_name): Doc fix.
6565
6566 * editfns.c (Fmessage_or_box): Doc fix.
6567
6568 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
6569
b7e11c5b 6570 * xfns.c (xbm_scan): Allow C-style comments.
52283633 6571
8320414c
GM
6572 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
6573 symbols are specified, add color translations to the cache.
52283633 6574 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
6575 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
6576 xpm_cache_color.
6577 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
6578 structures to xpm_init_color_cache.
6579
da1608d9
GM
65802000-09-19 Gerd Moellmann <gerd@gnu.org>
6581
52283633 6582 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 6583
6badfa25
AI
65842000-09-19 Andrew Innes <andrewi@gnu.org>
6585
6586 * makefile.nt (bootstrap-emacs): Don't change directory.
6587
3a5f42bb
KH
65882000-09-19 Kenichi Handa <handa@etl.go.jp>
6589
1b7649bd
KH
6590 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
6591
3a5f42bb
KH
6592 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
6593 If output buffer is too small, signal an appropriated error.
6594
9f83cf0b
DL
65952000-09-18 Dave Love <fx@gnu.org>
6596
52283633 6597 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
6598 (current_active_maps): Remove redundant get_local_map call.
6599
28c7826c
GM
66002000-09-18 Gerd Moellmann <gerd@gnu.org>
6601
5cefa566
GM
6602 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
6603 cursor for buffers whose cursor_type is nil.
52283633 6604
6fed3546
GM
6605 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
6606 a feature to implement that is already implemented.
6607 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
6608 warnings.
6609
6610 * xfns.c (x_clear_image_1): New function.
6611 (x_clear_image): Use it.
52283633 6612 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 6613
05b1f851
GM
6614 * dispnew.c (update_window): Move test for invisible lines
6615 at the top to update_window_line.
6616 (update_window_line): Handle invisible lines here.
6617
f4779de9
GM
6618 * xfns.c (clear_image_cache): Clear current matrices of all
6619 frames sharing an image cache. Block input while freeing
6620 images. Fix timestamp comparison.
6621 (x_clear_image): Also free the mask.
6622
28c7826c
GM
6623 * xfns.c (lookup_image): Block input while loading the image so
6624 that we won't get interrupted in a state where the image isn't yet
6625 set up completely.
6626 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
6627 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
6628 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 6629 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 6630
b7412313
GM
66312000-09-16 Gerd Moellmann <gerd@gnu.org>
6632
6633 * dispnew.c (update_window): Make sure to make desired rows
6634 current even if they are completely invisible at the top
6635 of a window.
6636
47e351a3
GM
66372000-09-15 Gerd Moellmann <gerd@gnu.org>
6638
7f8f1edc
GM
6639 * xfns.c (lookup_image): Build mask before applying an algorithm.
6640 Recognize algorithm `disabled'.
6641 (cross_disabled_images): New variable.
6642 (COLOR_INTENSITY): New macro.
6643 (x_detect_edges): Use COLOR_INTENSITY.
6644 (x_disable_image): New function.
6645 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
6646
6647 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
6648 disabled state, don't apply an image transformation algorithm if
6649 the user specified an image for the disabled state. Use
28c7826c 6650 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
6651 user hasn't specified an image.
6652
ebb8f116
GM
6653 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
6654 allocation functions with the XPM lib.
6655 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
6656 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
6657 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
6658 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 6659 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
6660 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
6661 functions, if possible, because these handle color allocation
6662 failure more gracefully.
6663 (Fimage_mask_p): New function.
6664
47e351a3
GM
6665 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
6666 (Qedge_detection, Qheuristic): New symbols.
6667 (syms_of_xfns): Initialize new symbols.
6668 (lookup_image): Handle `:mask X', `:algorithm emboss', and
6669 `algorithm (edge-detection ...)'.
6670 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
6671 (tiff_format, gif_format, gs_format): Add `:mask'.
6672 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
6673 (GIF_MASK, GS_MASK): New enumerators.
6674 (x_laplace_read_row, x_laplace_write_row): Functions removed.
6675 (emboss_matrix, laplace_matrix): New variables.
6676 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
6677 (x_edge_detection): New functions.
6678 (x_laplace): Rewritten in terms of x_detect_edges.
6679 (x_build_heuristic_mask): If image has a mask, free it.
6680
fe83b953
AI
66812000-09-14 Andrew Innes <andrewi@gnu.org>
6682
6683 * makefile.w32-in: Revert to Unix line endings.
6684
3021e816
AI
66852000-09-14 Andrew Innes <andrewi@gnu.org>
6686
6687 * makefile.w32-in: Standardize indentation somewhat.
6688 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
6689 cater for differences between shells.
6690
6691 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
6692
2a32b5ea
GM
66932000-09-14 Gerd Moellmann <gerd@gnu.org>
6694
6695 * xterm.c (x_produce_glyphs): If the distance from the current
6696 position to the next tab stop is less than a canonical character
6697 width, use the tab stop after that.
6698
b4331e96
DL
66992000-09-14 Dave Love <fx@gnu.org>
6700
6701 * buffer.c (alloc_buffer_text): Fix xmalloc call.
6702
ef9e4345
GM
67032000-09-14 Gerd Moellmann <gerd@gnu.org>
6704
085536c2
GM
6705 * xdisp.c (handle_fontified_prop): While running fontification
6706 functions, bind `fontification-functions' and
6707 `after-change-functions' to nil.
6708
ef9e4345
GM
6709 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
6710 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
6711
6712 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
6713
6714 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
6715 USE_MMAP_FOR_BUFFERS.
6716
6717 * insdel.c (make_gap): Use enlarge_buffer_text.
6718
6719 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
6720 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
6721 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
6722 from former r_alloc_* functions in ralloc.c.
52283633 6723 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
6724 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
6725 (mmap_init) [REL_ALLOC_MMAP]: New function.
6726 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
6727 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
6728 BUFFER_FREE.
6729
6730 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
6731 (enlarge_buffer_text): Add prototype.
6732
6733 * ralloc.c: Remove everything having to do with the use of mmap.
6734
f8608968
GM
67352000-09-13 Gerd Moellmann <gerd@gnu.org>
6736
2a494b2d
GM
6737 * sound.c (Fplay_sound): Doc fix.
6738
8c907a56
GM
6739 * keyboard.c: Avoid some more compiler warnings.
6740 (parse_tool_bar_item): Ignore cached key bindings.
6741
f8608968
GM
6742 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
6743 and allocation of Lisp data.
6744
6ab70e9a
GM
67452000-09-12 Gerd Moellmann <gerd@gnu.org>
6746
d12d0a9b
GM
6747 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
6748 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
6749 defaults first.
6750
6ab70e9a
GM
6751 * lread.c (Fload): Put code checking for recursive loads in #if 0.
6752
63c36c3c
KH
67532000-09-12 Miyashita Hisashi <himi@meadowy.org>
6754
6755 * ccl.c: Comment fixed.
6756 (MAX_MAP_SET_LEVEL): Increased to 30.
6757 (PUSH_MAPPING_STACK): Enclose with do-while block.
6758 (POP_MAPPING_STACK): Likewise.
6759 (stack_idx_of_map_multiple): New variable.
6760 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
6761 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 6762 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
6763 (ccl_driver) <CCL_MapSingle>: Likewise.
6764 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
6765 with the case where looking up process reaches to the end of
6766 map-set, and call CCL programs as the above change.
6767
7ee3bd7b
GM
67682000-09-11 Gerd Moellmann <gerd@gnu.org>
6769
8ec8a5ec
GM
6770 * xfns.c (png_load, jpeg_load): Declare some variables volatile
6771 that might be clobbered by longjmp.
6772 (check_x_display_info, x_decode_color, create_frame_xic)
6773 (Fx_display_backing_store, Fx_display_visual_class)
52283633 6774 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 6775
f74b0705
GM
6776 * lread.c (init_lread): Set Vloads_in_progress to nil.
6777 (Fload): Show list of recursively loaded files, when signaling an
6778 error.
6779
7ee3bd7b
GM
6780 * lread.c (Vloads_in_progress): New variable.
6781 (record_load_unwind): New function.
6782 (Fload): Check for recursive loads.
6783 (syms_of_lread): Initialize Vloads_in_progress.
6784 (read_integer, read1): Avoid some compiler warnings.
6785
6786 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
6787 compiler warnings.
6788
974e1e5b
MB
67892000-09-11 Miles Bader <miles@gnu.org>
6790
6791 * editfns.c (Fbuffer_string): Doc fix.
6792
9824c4e3
GM
67932000-09-10 Gerd Moellmann <gerd@gnu.org>
6794
6795 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
6796
6a72fdd1
KR
67972000-09-09 Ken Raeburn <raeburn@gnu.org>
6798
6799 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
6800 whether to include other header files.
6801
28e6fb66
GM
68022000-09-09 Gerd Moellmann <gerd@gnu.org>
6803
52283633 6804 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 6805 by Fmemq as a boolean.
28e6fb66 6806
7f8b6551
SM
68072000-09-08 Stefan Monnier <monnier@cs.yale.edu>
6808
6809 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
6810
a8710abf
GM
68112000-09-08 Gerd Moellmann <gerd@gnu.org>
6812
d1a02881
GM
6813 * ralloc.c (mmap_fd): Remove initializer which can make it
6814 read-only in a dumped Emacs.
6815 (mmap_fd_1): New variable.
6816 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
6817 restore it from there.
6818 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
6819 unconditionally so that mmap_fd can be initialized there.
6820 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
6821 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
6822 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
6823
c454aac1
GM
6824 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
6825
6826 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 6827 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 6828
fc653ef2
GM
6829 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
6830
3015eec0
GM
6831 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
6832 inheritance.
6833
bfe0ee88
GM
6834 * xdisp.c (try_window_id): When trying to locate cursor in
6835 unchanged rows at the top, handle the case that we can't find it.
6836
a8710abf
GM
6837 * xterm.c (x_draw_glyphs): Handle case START and END are out
6838 of bounds more carefully.
6839
6b7d4ae4
DL
68402000-09-08 Dave Love <fx@gnu.org>
6841
423193c5
DL
6842 * s/sol2.h (REL_ALLOC_MMAP): Define.
6843 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
6844
6845 * ralloc.c: Don't include string.h (redundant).
6846 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
6847 [!MAP_ANON]: Include fcntl.h.
6848 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
6849 (r_alloc, r_re_alloc, r_alloc_free)
6850 (mmap_enlarge, mmap_set_vars): Use it.
6851 (r_alloc_init_fd): New function.
6852 (__morecore) [SYSTEM_MALLOC]: Don't declare.
6853 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
6854 malloc type.
6855
6856 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
6857 Remove vm-limit.o.
6858
6b7d4ae4
DL
6859 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
6860 change to __NetBSD__.
6861
44d31981
KH
68622000-09-08 Kenichi Handa <handa@etl.go.jp>
6863
6864 * search.c (compile_pattern): Check the multibyteness of cached
6865 string and PATTERN.
6866
aad40737
MB
68672000-09-08 Miles Bader <miles@gnu.org>
6868
6869 * xfaces.c (default_face_vector): Function removed.
6870 (Finternal_merge_in_global_face): Restore old global/local
6871 attribute override order. Use inline loop instead of calling
6872 default_face_vector.
6873
91a211b5
GM
68742000-09-07 Gerd Moellmann <gerd@gnu.org>
6875
6876 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
6877 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
6878 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
6879 where necessary, in case POINTER_TYPE is `void'.
6880
03419440
EZ
68812000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
6882
6883 * frame.c (make_terminal_frame): Initialize frame foreground and
6884 background colors to unspecified, for the initial instance of an
6885 MSDOS frame.
6886
f46f845b
GM
68872000-09-07 Gerd Moellmann <gerd@gnu.org>
6888
24f76fbf
GM
6889 * ralloc.c (mmap_find): Fix overlap computation.
6890 (mmap_enlarge): Compute nbytes before trying to find an
6891 overlapping region.
6892
f46f845b
GM
6893 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
6894 instead of `!='.
6895
6896 * lread.c (syms_of_lread): Change value of regexp
6897 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
6898
6899 * xmenu.c (xdialog_show): When looking up the selection in
6900 menu_items, take `quote' boundaries into account; this corresponds
6901 to a nil ITEM in x-popup-dialog.
6902
3c014385
KH
69032000-09-07 Kenichi Handa <handa@etl.go.jp>
6904
fd6f711b
KH
6905 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
6906 not 0x81.
6907 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
6908
3c014385 6909 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
6910 encoding, not decoding. Fix the handling of latin-jisx0201.
6911 Check for the charset katakana-jisx0201 too.
3c014385 6912 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 6913 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 6914
0da3ecef
GM
69152000-09-07 Gerd Moellmann <gerd@gnu.org>
6916
ab0ee409
GM
6917 * xfaces.c (Vparam_value_alist): New variable.
6918 (syms_of_xfaces): Initialize it.
6919 (Finternal_set_lisp_face_attribute): Avoid more consing.
6920
6921 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
6922 specially.
6923 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
6924 (Qbackground_mode): New variable.
6925 (syms_of_frame_1): Initialize Qbackground_mode.
6926
6927 * lisp.h (Qdisplay): Declare extern.
1091dd67 6928
0da3ecef
GM
6929 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
6930 change face on all frames, and change the default for new frames.
6931
b14654b9
DL
69322000-09-07 Dave Love <fx@gnu.org>
6933
6934 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
6935
d24fd56f
KH
69362000-09-07 Kenichi Handa <handa@etl.go.jp>
6937
794f3670
KH
6938 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
6939
0fddd0dc
KH
6940 * charset.c: Include composite.h
6941 (lisp_string_width): New function.
6942 (Fstring_width): Call lisp_string_width instead of strwidth.
6943
6944 * Makefile.in (charset.o): Depends on composite.h.
6945
d24fd56f
KH
6946 * process.c (read_process_output): Before inserting the decoded
6947 text in the buffer, adjust the multibyteness.
6948
fa0b693c
GM
69492000-09-06 Gerd Moellmann <gerd@gnu.org>
6950
52283633 6951 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
6952 buffer's text buffer is null, map new memory.
6953
0a58f946
GM
6954 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
6955 POINTER_TYPE and size_t.
6956 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
6957 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
6958 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
6959 [REL_ALLOC_MMAP]: New macros.
6960 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
6961 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
6962 [REL_ALLOC_MMAP]: New functions.
6963
6964 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
6965 before and after unexec.
6966
6967 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
6968 text buffers if necessary.
6969
6970 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
6971 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
6972 in prototypes.
6973
fa0b693c
GM
6974 * config.in (HAVE_MMAP): Add #undef.
6975
877055f6
GM
69762000-09-05 Gerd Moellmann <gerd@gnu.org>
6977
08ba3862
GM
6978 * frame.c (Qdisplay_type): New variable.
6979 (syms_of_frame_1): Initialize it.
6980 (Fframe_parameter): New function that avoids consing.
6981 (syms_of_frame): Defsubr it.
6982
66ffe51c
GM
6983 * buffer.c (Fother_buffer): Consider buffers as invisible when
6984 they are displayed in a window on an invisible frame.
6985
877055f6
GM
6986 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
6987 get-largest-window always return nil.
6988
bb970e67
GM
69892000-09-04 Gerd Moellmann <gerd@gnu.org>
6990
6991 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
6992 variable; recognize Emacs 19 elc files.
6993
7a3d0e0e
MB
69942000-09-04 Miles Bader <miles@gnu.org>
6995
6996 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
6997 before initially popping up the menu, so the menu doesn't flash
52283633 6998 when the face settings are significantly different from the defaults.
7a3d0e0e 6999
14473664
SM
70002000-09-04 Stefan Monnier <monnier@cs.yale.edu>
7001
7002 * regex.c (WIDE_CHAR_SUPPORT): New macro.
7003 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
7004 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
7005 (BIT_UNIBYTE): Remove.
7006 (re_match_2_internal): Delete corresponding code and streamline the
7007 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
7008 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
7009 (re_wctype_t): New type.
7010 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
7011 (regex_compile): Use them and fix handling of overly long char classes.
7012
c1174479
AI
70132000-09-03 Andrew Innes <andrewi@gnu.org>
7014
f8803e97
AI
7015 * makefile.w32-in: Change to DOS line endings.
7016
c1174479
AI
7017 * s/ms-w32.h (ORDINARY_LINK): New define.
7018
7019 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
7020 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
7021
7022 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
7023 (distclean): Delete them here instead.
7024
44ef7cf6
AI
7025 * w32proc.c (compare_env): Convert to uppercase for comparison,
7026 not lowercase, to match how the native Windows shell works.
7027
49b3bd82
JR
70282000-09-03 Jason Rumney <jasonr@gnu.org>
7029
7030 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
7031 CVS changes the line-ends when checking in/out on DOS/Windows.
7032
7033 * makefile.nt (emacs): Do not change directory to run temacs, as
7034 the load-path is set relative to current directory.
7035
a3d35a39
MB
70362000-09-03 Miles Bader <miles@gnu.org>
7037
7038 * xterm.c (x_alloc_lighter_color_for_widget): New function.
7039
d276b0cf
GM
70402000-09-02 Gerd Moellmann <gerd@gnu.org>
7041
715e84c9
GM
7042 * xdisp.c (redisplay_mode_lines): New function.
7043 (display_mode_lines): Return number of mode lines displayed.
7044 (echo_area_display): Use redisplay_mode_lines to draw garbaged
7045 mode lines. Don't temporarily bind redisplay-dont-pause to t.
7046
8892f40b
GM
7047 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
7048 string.h and strings.h.
7049 (index) [HAVE_INDEX]: Add prototype.
7050
d276b0cf
GM
7051 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
7052 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
7053
7054 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
7055 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7056
38404229
GM
70572000-09-01 Gerd Moellmann <gerd@gnu.org>
7058
7059 * lread.c (read1): Accept `?' as symbol constituent, for
7060 compatiblity with XEmacs.
7061
c0f9ea08
SM
70622000-08-31 Stefan Monnier <monnier@cs.yale.edu>
7063
7064 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
7065 (struct re_pattern_buffer): Remove newline_anchor.
7066 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
7067 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
7068 (re_max_failures, fail_stack): Use size_t rather than unsigned.
7069 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
7070 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
7071 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
7072 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
7073 Get rid of references to newline_anchor.
7074 (regcomp): Allocate and precompute a fastmap.
7075
8c0f83fe
GM
70762000-08-31 Gerd Moellmann <gerd@gnu.org>
7077
7078 * lread.c (openp): GCPRO local variable `filename'.
7079
4bb91c68
SM
70802000-08-30 Stefan Monnier <monnier@cs.yale.edu>
7081
7082 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
7083
7084 * regex.c: Merge some changes from GNU libc. Add prototypes.
7085 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
7086 Use memcmp and memcpy instead of bcopy and bcmp.
7087 (init_syntax_once): Use ISALNUM.
7088 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
7089 (REG_UNSET_VALUE): Remove. Use NULL instead.
7090 (REG_UNSET, re_match_2_internal): Use NULL.
7091 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
7092 New macros.
7093 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
7094 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
7095 (regex_compile): In handle_interval, return an error rather than try to
7096 unfetch the interval if we can't find the closing brace.
7097 Obey the RE_NO_GNU_OPS syntax bit.
7098 (TOLOWER): New macro.
7099 (regcomp): Use it.
7100 (regexec): Allocate regs.start and regs.end as one block.
7101
5226a931
GM
71022000-08-30 Gerd Moellmann <gerd@gnu.org>
7103
868dd24b
GM
7104 * xdisp.c (echo_area_display): Check display_completed instead
7105 of calling detect_input_pending.
7106
7107 * dispnew.c (update_frame): Only set display_completed here; move
7108 the update_begin and update_end calls here from update_frame_1.
7109 (update_frame_1): Don't set display_completed here, don't call
7110 update_begin/update_end.
7111
5226a931
GM
7112 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
7113 instead of store_frame_param.
7114
2a8bd25f
GM
71152000-08-29 Gerd Moellmann <gerd@gnu.org>
7116
7117 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
7118 desired window matrix hasn't been displayed, use the current row
7119 instead. Make sure that only those frame rows are updated for
7120 which there exists a corresponding enabled desired row.
52283633 7121
ba3478d9
MB
71222000-08-29 Miles Bader <miles@gnu.org>
7123
7124 * xfaces.c (default_face_vector): New function.
7125 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
7126
87d0f685
GM
71272000-08-29 Gerd Moellmann <gerd@gnu.org>
7128
7129 * lread.c (openp): Prevent temporary string passed to
7130 Ffile_readable_p from being garbage collected.
7131
6fa86045
DL
71322000-08-28 Dave Love <fx@gnu.org>
7133
7134 * keymap.c (store_in_keymap): Add `static' to declaration.
7135
bb17930d
GM
71362000-08-28 Gerd Moellmann <gerd@gnu.org>
7137
7138 * emacs.c, callint.c, doc.c, editfns.c
7139 (toplevel) [HAVE_STRING_H]: Include string.h.
7140 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
7141 (index): Remove prototypes which might conflict with non-standard
7142 definitions of index/strchr.
7143
7144 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
7145 (rindex): Define only if !HAVE_RINDEX.
7146
7147 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
7148
7149 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
7150
87188200
MB
71512000-08-28 Miles Bader <miles@gnu.org>
7152
7153 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
7154 made inconsistent by a font-related attribute in FROM.
7155 (merge_face_inheritance): Add function comment.
7156
41a68aef
KH
71572000-08-28 Kenichi Handa <handa@etl.go.jp>
7158
7159 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
7160 the 4th arg (PREV_EVENT) Qt to suppress input method.
7161
f7c436c1
SM
71622000-08-27 Stefan Monnier <monnier@cs.yale.edu>
7163
0b32bf0e
SM
7164 * regex.c: Indent cpp directives and remove parens after `defined'.
7165 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
7166 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
7167 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
7168 (re_compile_pattern): Use size_t for length.
7169 (init_syntax_once): Move to a better place.
7170 * regex.h: Merge changes from GNU libc. Indent cpp directives.
7171 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
7172
f7c436c1
SM
7173 * syntax.c (back_comment): Detect cases where a comment-starter is
7174 actually inside another comment as in: /* a // b */ c // d \n.
7175 Make it clear that `comstart_pos' is unused for nested comments.
7176
7177 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
7178 (KEYMAPP): New macro.
7179 (Fkeymap_parent, Fset_keymap_parent): Use it.
7180 (fix_submap_inheritance): Mark it static.
7181 (define_as_prefix, describe_buffer_bindings, describe_command)
7182 (describe_translation, describe_map): Complete prototypes.
7183
7184 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
7185
7186 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
7187 to better match the key-lookup behavior.
7188
6288c62f
GM
71892000-08-27 Gerd Moellmann <gerd@gnu.org>
7190
7191 * xfaces.c (lface_fully_specified_p): Handle :inherit.
7192 (Finternal_set_lisp_face_attribute): Fix typo in error message.
7193
e931344e
EZ
71942000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
7195
7196 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
7197 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
7198 (xterm.o): Depend on coding.h
7199
d10dfeef
KH
72002000-08-26 Kenichi Handa <handa@etl.go.jp>
7201
7202 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
7203 the corresponding '#endif'.
7204
2d73e8d3
MB
72052000-08-26 Miles Bader <miles@gnu.org>
7206
7207 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
7208 * xfaces.c (QCinherit): New variable.
7209 (syms_of_xfaces): Initialize it.
7210 (LFACE_INHERIT): New macro.
7211 (Finternal_get_lisp_face_attribute)
52283633 7212 (merge_face_vector_with_property)
2d73e8d3
MB
7213 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
7214 (check_lface_attrs): Allow new types of face height. Check
7215 inherit attribute.
7216 (CYCLE_CHECK): New macro.
7217 (merge_face_inheritance): New function.
7218 (merge_face_vectors): Merge inherited faces too. Add F and
7219 CYCLE_CHECK arguments.
7220 (merge_face_vector_with_property, Finternal_merge_in_global_face)
7221 (lookup_named_face, lookup_derived_face, realize_named_face)
7222 (face_at_string_position, face_at_buffer_position): Supply
7223 new F and CYCLE_CHECK arguments to merge_face_vectors.
7224 (merge_face_heights): New function.
52283633 7225 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
7226 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
7227 handle relative face heights.
7228 (lface_same_font_attributes_p): Compare heights using EQ.
7229
6ce974d4
KH
72302000-08-26 Kenichi Handa <handa@etl.go.jp>
7231
7232 * charset.c (char_to_string): Check the character validity.
52283633 7233 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 7234
dc1e502d
SM
72352000-08-25 Stefan Monnier <monnier@cs.yale.edu>
7236
7237 * regex.c (PUSH_FAILURE_COUNT): New macro.
7238 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
7239 Handle popping of a register's or a counter's data.
7240 (POP_FAILURE_POINT): Use the new name.
7241 (re_match_2_internal): Push counter data on the stack for succeed_n,
7242 jump_n and set_number_at and remove misleading dead code in succeed_n.
7243
bd9d0f3f
GM
72442000-08-25 Gerd Moellmann <gerd@gnu.org>
7245
7246 * xdisp.c (redisplay_internal): If considering all windows on all
7247 frames, update the display for each frame as soon as possible,
7248 instead of first building all desired matrices for all frames, and
7249 then updating them all.
7250 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
7251
aa5b8e15
GM
72522000-08-24 Gerd Moellmann <gerd@gnu.org>
7253
17494071
GM
7254 * bytecode.c (mark_byte_stack): Add a comment.
7255
52283633
SM
7256 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
7257 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
7258 a graphical frame.
7259
c543db81
KH
72602000-08-24 Kenichi Handa <handa@etl.go.jp>
7261
d246d5f5
KH
7262 * minibuf.c (do_completion): Always use compare-string, not
7263 string-equal because the latter doesn't pay attention to
7264 multibyteness of strings.
7265
c543db81
KH
7266 * process.c (create_process): Don't setup raw-text coding here.
7267 (Fopen_network_stream): Don't set coding->src_multibyte and
7268 coding->dst_multibyte here.
7269 (read_process_output): For process filter, return unibyte string
7270 if default-enable-multibyte-characters is nil.
7271 (send_process): If OBJECT is multibyte text, be sure to encoded it
7272 by the specified coding system for the process. Otherwise, setup
7273 raw-text coding.
52283633 7274 (init_process): Don't initialize default-process-coding-system here.
c543db81 7275
9b47cfe0
EZ
72762000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
7277
7278 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
7279 <scroll-down-aggressively>: Likewise.
7280
f5a36960
KH
72812000-08-23 Kenichi Handa <handa@etl.go.jp>
7282
7283 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
7284 zero. Set coding->produced_char correctly.
7285
69a7ffa7
AI
72862000-08-22 Andrew Innes <andrewi@gnu.org>
7287
7288 * makefile.w32-in: New file.
7289
7290 * unexw32.c (unexec): Ignore old_name, and use the actual location
7291 of the current executable instead. Base new_name on this.
7292
7293 * w32proc.c (create_child): Remove reference to security
7294 descriptor, which isn't needed and doesn't compile with mingw32.
7295
7296 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7297 up dllimport attributes.
7298 (x_update_window_end): Update prototype.
7299
7300 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
7301 extern, which screws up dllimport attributes.
7302
7303 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7304 up dllimport attributes.
7305
7306 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
7307 screws up dllimport attributes.
7308
7309 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7310 up dllimport attributes.
7311 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
7312 screws up dllimport attributes.
7313
7314 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7315 up dllimport attributes.
7316
7317 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
7318 screws up dllimport attributes.
7319
7320 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
7321 screws up dllimport attributes.
7322
7323 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7324 up dllimport attributes.
7325
7326 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
7327 unnecessary extern, which screws up dllimport attributes.
7328 (main): Ditto.
7329
7330 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7331 up dllimport attributes.
7332
7333 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
7334 unnecessary extern, which screws up dllimport attributes.
7335
7336 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
7337 screws up dllimport attributes.
7338
7339 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7340 up dllimport attributes.
7341
7342 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
7343
52283633
SM
7344 * w32bdf.c (search_file_line):
7345 (set_bdf_font_info):
7346 (seek_char):
7347 (w32_get_bdf_glyph):
69a7ffa7
AI
7348 (w32_BDF_to_x_font): Fix compile warnings.
7349
52283633 7350 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
7351
7352 * w32select.c: Include keyboard.h before frame.h.
7353
7354 * w32fns.c (max): Define macro.
7355 (JOHAB_CHARSET): Define if not known.
7356 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
7357 (Fx_show_tip): Synch with X version.
7358
7359 * w32xfns.c: Include keyboard.h before frame.h.
7360
7361 * w32fns.c: Include keyboard.h before frame.h.
7362
7363 * w32term.c: Include keyboard.h before frame.h.
7364
7365 * fontset.c: Include keyboard.h before frame.h.
7366
7367 * w32inevt.c: Include keyboard.h before frame.h.
7368 (MOUSE_MOVED): Define if not known.
7369
7370 * minibuf.c: Include keyboard.h before frame.h.
7371
7372 * keyboard.c: Include keyboard.h before frame.h.
7373
7374 * indent.c: Include keyboard.h before frame.h.
7375
7376 * dispnew.c: Include keyboard.h before frame.h.
7377
7378 * buffer.c: Include keyboard.h before frame.h.
7379
7380 * alloc.c: Include keyboard.h before frame.h.
7381
7382 * print.c: Include keyboard.h before frame.h.
7383
7384 * process.c: Include keyboard.h before frame.h.
7385
7386 * scroll.c: Include keyboard.h before frame.h.
7387
7388 * sysdep.c: Include keyboard.h before frame.h.
7389
7390 * term.c: Include keyboard.h before frame.h.
7391
7392 * window.c: Include keyboard.h before frame.h.
7393
7394 * xdisp.c: Include keyboard.h before frame.h.
7395 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
7396
7397 * frame.c: Include keyboard.h before frame.h.
7398
7399 * w32heap.h: Undefine min, max.
7400
7401 * w32gui.h: Undefine min, max.
7402
7403 * unexw32.c: Change PUCHAR to PCHAR.
7404 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
7405 (relocate_offset):
7406 (get_section_info):
69a7ffa7
AI
7407 (copy_executable_and_dump_data): Remove unnecessary static defs.
7408 (copy_executable_and_dump_data): Fix compile warnings.
7409
7410 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
7411
7412 * w32console.c (min): Define macro.
7413 (clear_frame, write_glyphs): Fix compile warning.
7414
52283633 7415 * w32proc.c (compare_env):
69a7ffa7
AI
7416 (find_child_console): Fix compile warning.
7417
7418 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
7419 sys_errlist instead of _sys_errlist.
7420 (get_emacs_configuration_options): New function.
7421
7422 * s/ms-w32.h (sys_nerr): Provide default definition.
7423 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
7424 name with _ prepended.
7425 (NSIG): Define if not known.
7426 (get_emacs_configuration): Provide extern declaration.
7427 (get_emacs_configuration_options): Provide extern declaration.
7428 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
7429
7430 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 7431 (map_w32_filename):
69a7ffa7
AI
7432 (read_unc_volume): Fix compile warning.
7433
7434 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
7435 definitions from being used.
7436
7437 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
7438
52283633 7439 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
7440 (open_unc_volume): Make arg const.
7441
7442 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
7443 (read_input_waiting): Remove excess parameter.
7444
7445 * w32.c (init_environment): Call _access.
7446 (check_windows_init_file): Call _close.
7447 (init_user_info): Call _putenv.
7448 (init_environment): Call _putenv and _strdup.
7449 (init_ntproc): Reset volume info cache on startup.
7450
7451 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
7452 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
7453 cannot override the CRT malloc.
7454
7455 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
7456 (LINK_FLAGS): Append to original value of LINK_FLAGS.
7457
7458 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
7459 unless we are linking with a static CRT.
7460 (RVA_TO_PTR): Cast result to unsigned char*.
7461
7462 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
7463 (add_volume_info): Use xstrdup.
7464
25060080
SM
74652000-08-22 Stefan Monnier <monnier@cs.yale.edu>
7466
7467 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
7468 (do_completion, Fminibuffer_complete_word): Use it.
7469 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
7470 var so it can take non-boolean values.
7471
6917e6bb
GM
74722000-08-21 Gerd Moellmann <gerd@gnu.org>
7473
acb7cc89 7474 * editfns.c (find_field): Formatting changes.
52283633 7475 (toplevel): Some old-style function forward declarations
acb7cc89
GM
7476 changed to prototypes, some new protypes added, some functions
7477 made static.
7478
7479 * lisp.h (set_time_zone_rule): Add prototype.
7480 (use_dialog_box): External declaration.
7481
0bbfdc25
GM
7482 * keyboard.c (gen_help_event): Add parameter SIZE.
7483 (kbd_buffer_events_waiting): Slightly rewritten.
7484 (clear_event): New function.
7485 (kbd_buffer_get_event): Use it, and clear the input_events of
7486 HELP_EVENTs.
7487 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
7488 don't fill the newly created array with nils.
7489 (toplevel): Convert some old-style function forward declarations
7490 to prototypes.
7491
7492 * keyboard.h (gen_help_event): Change prototype.
7493
7494 * xterm.c (XTread_socket): Change calls to gen_help_event.
7495
7496 * w32term.c (w32_read_socket): Change calls to gen_help_event.
7497
6917e6bb
GM
7498 * eval.c (Fmacroexpand): Doc fix.
7499
e5cd3d11
JR
75002000-08-20 Jason Rumney <jasonr@gnu.org>
7501
7502 * w32term.h (x_display_info_for_display): Remove as this function
7503 does not exist on W32.
7504
7505 * w32term.c (help_echo_window): New variable.
7506 (syms_of_w32term): staticpro it.
7507 (note_mode_line_highlight): Set it.
7508 (XTextExtents16): Removed as there is no equivalent on W32.
7509 (x_compute_glyph_string_overhangs): Incomplete body removed, as
7510 the X way of doing this will not work for W32.
7511 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
7512 (x_draw_image_foreground): Avoid drawing outside of the clip area
7513 when image doesn't have a mask.
7514 (note_mouse_highlight): Process overlays in the right order of
7515 priority. Set help_echo_window.
7516 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
7517 because that's more visible for large images.
7518
7519 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
7520 name to single_keymap_panes.
7521 (w32_menu_show): Set wv->title when dealing with titles.
7522 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
7523
6e69ab8c
MB
75242000-08-21 Miles Bader <miles@gnu.org>
7525
7526 * minibuf.c (do_completion): Try again if we rewrite the input
7527 string, but no completion was done, so that any completion message
7528 will be correct.
7529
511bd4eb
GM
75302000-08-20 Gerd Moellmann <gerd@gnu.org>
7531
7532 * xfaces.c (lface_equal_p): Compare strings differently.
7533 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
7534 (realize_tty_face): Use them.
7535 (syms_of_xfaces): Initialize new variables.
7536 (map_tty_color): New function, extracted from realize_tty_face.
7537 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
7538 foreground or background color, store the new color name in the
7539 realized face; previous code trying to do this had no effect.
7540 (realize_tty_face): Use map_tty_color.
7541 (Fclear_face_cache): Set face_change_count and ensure thorough
7542 redisplay.
7543
1433385f
GM
75442000-08-19 Gerd Moellmann <gerd@gnu.org>
7545
511bd4eb
GM
7546 * undo.c (record_first_change, record_marker_adjustment): Don't
7547 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 7548
419ac0a2
KH
75492000-08-18 Kenichi Handa <handa@etl.go.jp>
7550
7551 * coding.c (decode_coding_string): Set members consumed,
7552 consumed_char, produced, produced_char of *coding correctly. If
7553 decode_coding doesn't consume any byte, don't try anymore.
7554 (encode_coding_string): Likewise.
7555
7eb9e30d
GM
75562000-08-18 Gerd Moellmann <gerd@gnu.org>
7557
511bd4eb
GM
7558 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
7559 conditional have void type, for Standard C compilers.
7eb9e30d
GM
7560
7561 * xdisp.c (redisplay_internal): Compare windows for equality with
7562 EQ, instead of applying XWINDOW to something that might not
7563 be a window.
52283633 7564
dd34a735
KH
75652000-08-18 Kenichi Handa <handa@etl.go.jp>
7566
7567 * fontset.c (Finternal_char_font): Search only the selected frame
7568 for a window of the current buffer.
7569
385ff9e3
GM
75702000-08-18 Gerd Moellmann <gerd@gnu.org>
7571
511bd4eb 7572 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
7573 Lisp_Objects.
7574
385ff9e3
GM
7575 * keyboard.c (kbd_buffer_get_event): Handle the case that the
7576 second half of a HELP_EVENT is found at the start of kbd_buffer.
7577
d6abb4c7
MB
75782000-08-18 Miles Bader <miles@gnu.org>
7579
4618074a
MB
7580 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
7581
d6abb4c7
MB
7582 * editfns.c (save_restriction_save): Rewrite to use markers.
7583 (save_restriction_restore): Rewrite to understand new form of data
7584 saved by save_restriction_save.
7585 (Fsave_restriction): Remove cautionary note in doc-string.
7586
a7b28523
GM
75872000-08-17 Gerd Moellmann <gerd@gnu.org>
7588
7589 * fileio.c (build_annotations): Add a comment explaining the
7590 return value of format-annotate-function. Replace a spurious call
7591 to Flength with a CONSP test. Call format-annotate-function with
7592 a fifth arg specifying how many times the function is been called
7593 in a row, to let it choose temporary buffers appropriately.
7594
03c9ed77
DL
75952000-08-17 Dave Love <fx@gnu.org>
7596
7597 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
7598 declare make_temp_name twice.
7599
52283633 7600 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
7601 (unreadpure): Give it an arg.
7602
7603 * unexalpha.c: Prototype fatal_unexec, mark_x,
7604 update_dynamic_symbols. Declare unexec as void.
7605
7606 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
7607 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
7608
7609 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 7610 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
7611
7612 * alloca.c: Use #error.
7613 [POINTER_TYPE]: Use it.
7614
7615 * eval.c (Fdefvar): Doc fix.
7616
7617 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
7618 INITIALIZE_INTERVAL.
7619
7620 * buffer.h: Avoid DECLARE_INTERVALS.
7621
7622 * config.in: Add size_t.
7623
aae41d97
EZ
76242000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
7625
7626 * w16select.c (set_clipboard_data): If there's not enough memory
7627 to put text into clipboard, return 1, as Fw16_set_clipboard_data
7628 expects. In case of other failures, return 3.
7629 (system_error_msg): New error message.
7630 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
7631 system_error_msg.
7632
65aa5e85
GM
76332000-08-16 Gerd Moellmann <gerd@gnu.org>
7634
7635 * term.c (write_glyphs): Also turn off inverse video after turning
7636 off other appearances in case TS_exit_attribute_mode is not equal
7637 to TS_end_standout_mode.
7638 (insert_glyphs): Turn inverse video on/off for each run of glyphs
7639 with the same face.
7640 (turn_off_face): Reset standout_mode only if
7641 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
7642 is equal to TS_end_standout_mode.
7643
ece23901
KH
76442000-08-16 Kenichi Handa <handa@etl.go.jp>
7645
9d7bcb2e
KH
7646 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
7647 sequence at the end of the source block.
7648
ece23901
KH
7649 * ccl.c (Fccl_program_p): Docstring modified.
7650 (Fccl_execute): Likewise.
7651 (Fccl_execute_on_string): Likewise.
7652
5e30eaa2
EZ
76532000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
7654
7655 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
7656
290602fd
KH
76572000-08-16 Kenichi Handa <handa@etl.go.jp>
7658
7659 The following changes are mainly to fix bugs of
7660 encode/decode-coding-string failing if encoding/decoding return
7661 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
7662 variable conversion_buffer.
7663
7664 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
7665 decrement dst_end to avoid buffer overflow in the later call of
7666 string_as_multibyte
7667
7668 * coding.h (conversion_buffer_size, conversion_buffer)
7669 (get_conversion_buffer): Extern deleted.
7670
7671 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
7672 (conversion_buffer, conversion_buffer_size): Variables deleted.
7673 (get_conversion_buffer): Function deleted.
7674 (struct conversion_buffer): New structure.
7675 (MAX_ALLOCA): New macro.
7676 (allocate_conversion_buffer): New macro.
7677 (extend_conversion_buffer, free_conversion_buffer): New functions.
7678 (ccl_coding_driver): Set coding->result.
7679 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
7680 this is the last block of source.
7681 (encode_coding): Likewise. Handle the source block as the last
7682 one only when the whole source text is consumed.
7683 (decode_coding_string): Handle the case that the output buffer is
7684 too small to decode the whole source text. Use
7685 allocate_conversion_buffer, extend_conversion_buffer and
7686 free_conversion_buffer, not get_conversion_buffer.
7687 (encode_coding_string): Likewise.
7688 (init_coding): Function deleted.
52283633 7689 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
7690
7691 * emacs.c (main): Don't call init_coding.
7692
52283633 7693 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
7694
7695 * term.c (write_glyphs): Use a locally declared conversion_buffer.
7696 (insert_glyphs): Likewise.
7697
7698 * w32console.c (write_glyphs): Use a locally declared
7699 conversion_buffer.
7700
b9f80d41
EZ
77012000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
7702
7703 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
7704 member of display_info is NULL.
7705
32dc52f7
GM
77062000-08-15 Gerd Moellmann <gerd@gnu.org>
7707
52283633 7708 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 7709
32dc52f7 7710 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 7711 appearances with capability `me'.
32dc52f7
GM
7712 (write_glyphs): Switch on inverse video before each face change.
7713
4eb22d33
DL
77142000-08-14 Dave Love <fx@gnu.org>
7715
7716 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
7717 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
7718 (lisp_free): Declare and make static.
7719
7720 * window.c: Fix embedded comment.
7721 (syms_of_window): Fix doc string.
7722
90cbf47e
GM
77232000-08-14 Gerd Moellmann <gerd@gnu.org>
7724
52283633 7725 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
7726 make sure to print `C-' before `M-', like in the manual.
7727
440fc135
GM
77282000-08-11 Gerd Moellmann <gerd@gnu.org>
7729
7730 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
7731 since they aren't relocated anymore.
52283633 7732 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
7733
7734 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 7735 partially visible line which is smaller than the window's height.
440fc135 7736
6e264fad
KH
77372000-08-11 Kenichi Handa <handa@etl.go.jp>
7738
7739 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 7740 the multibyte form of eight-bit-control characters.
6e264fad
KH
7741 (Fccl_execute_on_string): Initialize ccl->multibyte.
7742
7743 * ccl.h (struct ccl_program): New member multibyte.
7744
7745 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
7746
c371f69a
KH
77472000-08-11 Kenichi Handa <handa@etl.go.jp>
7748
7749 * regex.c (regex_compile) <normal_char>: Pay attention to
7750 multibyteness.
7751 (analyse_first) <exactn>: Setup fastmap correctly for
7752 eight-bit-control characters.
7753
77542000-08-11 Kenichi Handa <handa@etl.go.jp>
7755
52283633 7756 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
7757
7758 * keyboard.c (make_lispy_event): Handle the new event type
7759 multibyte_char_keystroke.
7760
7761 * xterm.c: Include coding.h.
7762 (XTread_socket): Work around a bug of XmbLookupString. If the
7763 input is from XIM, decode it according to the current locale. In
7764 that case, generate multibyte_char_keystroke events.
7765
b8ddbe71
KH
77662000-08-11 Kenichi Handa <handa@etl.go.jp>
7767
7768 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
7769 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
7770
47589c8c
GM
77712000-08-10 Gerd Moellmann <gerd@gnu.org>
7772
7773 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
7774 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
7775 (move_it_in_display_line_to): Record iterator's ascent and descent
7776 before producing glyphs, and restore them when we know the glyph
7777 doesn't fit on the line.
7778 (move_it_to): Restructured so that it's easier to debug. If
7779 moving to a vpos, and not moving to an x or character position,
7780 stop as soon as the specified vpos is reached; don't move further
7781 into that line because that might change the computed line height.
7782 (try_cursor_movement): New function, extracted from the cursor
7783 movement branch of redisplay_window. If ending on a partially
7784 visible line, don't try to scroll if the cursor line is taller
7785 than the window.
7786 (redisplay_window): Use try_cursor_movement.
7787
7788 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
7789 because that function doesn't cope with variable-height lines.
7790
7791 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
7792 box cursor because that's better visible for large images.
52283633 7793
c51bacd6
MB
77942000-08-10 Miles Bader <miles@gnu.org>
7795
7796 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
7797
bea56df7
GM
77982000-08-10 Gerd Moellmann <gerd@gnu.org>
7799
7800 * xdisp.c (Vmessages_buffer_name): New variable.
7801 (message_dolog): Use it.
7802 (syms_of_xdisp): Initialize it.
7803
99cd7364
EZ
78042000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
7805
52283633 7806 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
7807 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
7808 redundant now that keyboard.h is included.
7809
7d093d56
EZ
78102000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
7811
7812 * keyboard.c (kbd_buffer_events_waiting): New function.
7813
7814 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
7815
7816 * msdos.c: Include keyboard.h.
7817 (XMenuActivate): Empty no_event events from the event buffer. If
7818 no events are left after that, call clear_input_pending.
7819 (mouse_clear_clicks): New function, code moved from mouse_init.
7820 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
7821 mouse driver to ``forget'' any past clicks.
7822
7823 * Makefile.in (msdos.o): Depend on keyboard.h.
7824
41e757a6
GM
78252000-08-09 Gerd Moellmann <gerd@gnu.org>
7826
8e7bd231
GM
7827 * lisp.h (input_pending): External declaration.
7828
7829 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 7830
8e7bd231
GM
7831 * xdisp.c (echo_area_display): Display thoroughly if input is
7832 pending. Bind redisplay-dont-pause to t during the redisplay.
7833 in case input is pending.
7834
7835 * dispnew.c (Qredisplay_dont_pause): New variable.
7836 (syms_of_display): Initialize and staticpro it.
7837 (update_frame_1): Don't interrupt the display for pending input if
7838 redisplay_dont_pause is set.
52283633 7839
43028b7e
GM
7840 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
7841
41e757a6
GM
7842 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
7843
2f2174fa
KH
78442000-08-09 Miles Bader <miles@lsi.nec.co.jp>
7845
7846 * callproc.c (Fcall_process): Terminate the unwind-protect around
7847 the post-read-conversion of coding system.
7848
0a6fd67e
MB
7849 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
7850 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
7851 * buffer.h (overlays_at): Update prototype.
7852 * xdisp.c (next_overlay_change): Update call to overlays_at.
7853 * xfaces.c (face_at_buffer_position): Likewise.
7854 * textprop.c (Fget_char_property): Likewise.
7855 * xterm.c (note_mouse_highlight): Likewise.
7856
0c80756e
MB
7857 * minibuf.c (do_completion): Don't consider a simple change of
7858 case as `completion'.
7859
975f250a
KR
78602000-08-08 Ken Raeburn <raeburn@gnu.org>
7861
52283633 7862 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
7863 * undo.c (record_delete): Make sure last_point_position_buffer is
7864 a buffer before comparing pointers.
7865
7866 * coding.h (decode_coding_string): Declare.
7867
7868 * intervals.h (Fprevious_single_char_property_change): Declare.
7869
7870 * textprop.c (Fprevious_single_char_property_change): Don't do
7871 arithmetic directly on lisp objects.
7872
52283633 7873 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
7874
7875 * keyboard.h (menu_item_eval_property): Declare.
7876
7877 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
7878 reuse as buffer name, instead of recreating (and discarding) every
7879 time a message is logged.
7880 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
7881 (current_message_1, truncate_message_1, set_message_1)
7882 (display_echo_area_1, resize_mini_window_1): Signatures changed.
7883 (current_message, truncate_echo_area, display_echo_area)
7884 (resize_echo_area_axactly): Changed calls.
b347b3fd 7885
975f250a 7886 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 7887 Lisp object.
975f250a 7888 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 7889 must be an integer, not a Lisp object.
975f250a 7890
46dc9912
KH
78912000-08-08 Kenichi Handa <handa@etl.go.jp>
7892
7893 * charset.c (Fchar_width): Doc fix.
7894
9f6d1a6c
GM
78952000-08-08 Gerd Moellmann <gerd@gnu.org>
7896
7897 * charset.c (Fstring_width): Doc fix.
7898
ff3d9573
GM
78992000-08-07 Gerd Moellmann <gerd@gnu.org>
7900
41e757a6 7901 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
7902 line, clear ascent and descent members of the iterator structure;
7903 the height of the continued line does not affect the height of the
7904 continuation line.
7905 (make_cursor_line_fully_visible): Do nothing if cursor is on a
7906 line taller than the window.
7907 (redisplay_window) <forced window start>: Handle case that the
7908 middle of the window is not found in any row.
7909 (dump_glyph_row): Show more information.
7910 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
7911 first text line in a glyph matrix.
7912
7913 * xterm.c (x_draw_image_foreground): Avoid drawing outside
7914 of the clip area when image doesn't have a mask.
7915
70fc58b3
GM
7916 * fns.c (sweep_weak_table): Fix survival conditions for
7917 key-or-value and key-and-value weakness.
7918
7919 * .gdbinit (xhashtable): New command.
7920
ac0e96ee
GM
7921 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
7922 tables out of the list of all weak hash tables.
7923
ff3d9573
GM
7924 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
7925 a new buffer is created, make sure echo_area_buffer[] references
7926 the new buffer.
7927
e0d8827b
EZ
79282000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
7929
7930 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
7931 the doc string.
7932
c6f35378
KH
79332000-08-07 Kenichi Handa <handa@etl.go.jp>
7934
7935 * syntax.c (skip_chars): Fix previous change. Make the handling
7936 of unibyte string consistent with that of regex search.
7937
1fd4c450
GM
79382000-08-05 Gerd Moellmann <gerd@gnu.org>
7939
e49aa397
GM
7940 * xmenu.c (popup_get_selection): Use xfree instead of free.
7941
7942 * fileio.c (Finsert_file_contents): Use xfree instead of free.
7943
7944 * editfns.c (Ftranspose_regions): Use xfree instead of free.
7945
7946 * callproc.c (child_setup): Use xfree instead of free.
7947
7948 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
7949 instead of malloc.
7950 (run_mac_command, closedir): Use `xfree' instead of `free'.
7951
7952 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
7953
7954 * eval.c (error): Use xfree instead of free.
7955
1fd4c450
GM
7956 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
7957
7958 * fns.c: Replace `illegal' with `invalid'.
e49aa397 7959 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 7960
82d497fc
KH
79612000-08-05 Kenichi Handa <handa@etl.go.jp>
7962
7963 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
7964 conversion.
7965
59f953a2
NF
79662000-08-04 Noah Friedman <friedman@splode.com>
7967
7968 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
7969 docstring.
7970
688351f2
GM
79712000-08-04 Gerd Moellmann <gerd@gnu.org>
7972
7973 * syntax.c (skip_chars): Fix typo in error message.
7974
2dad51cc
AS
79752000-08-04 Andreas Schwab <schwab@suse.de>
7976
7977 * m/ia64.h: Moved from s/ia64.h.
7978
99bb2c60
KH
79792000-08-04 Kenichi Handa <handa@etl.go.jp>
7980
082a1df2
KH
7981 * process.c (read_process_output): Big simplification. Handle
7982 composition and post-read-conversion of coding system correctly.
7983 (send_process): Handle composition correctly.
7984
7985 * callproc.c (Fcall_process): Handle post-read-conversion of
7986 coding system if any.
7987
99bb2c60
KH
7988 * coding.c (decode_coding_iso2022): More strict check for handling
7989 single shifting.
082a1df2
KH
7990 (coding_restore_composition): Pay attention to the case that
7991 cmp_data is not set properly (because of invalid code in the
7992 source text).
7993 (run_pre_post_conversion_on_str): Include text properties in the
7994 resulting string.
7995 (decode_coding_string): Set members of coding correctly.
99bb2c60 7996
f4988be7
GM
79972000-08-03 Gerd Moellmann <gerd@gnu.org>
7998
7999 * s/ia64.h: New file.
8000
8001 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
8002 Use NULL instead of 0 at the end of variable argument list of
8003 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
8004 sizeof (int) < sizeof (void *).
8005
8006 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
8007 of variable argument lists of XtVaGetValues and XtVaSetValues.
8008
8009 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
8010 variable argument lists of XtVaGetValues and XtVaSetValues.
8011
ead53494
GM
80122000-08-02 Gerd Moellmann <gerd@gnu.org>
8013
8014 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
8015 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
8016
8017 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
8018 prototype.
8019
8020 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
8021 in call to Fsingle_key_description.
8022
8023 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
8024 Callers changed.
8025
80262000-08-02 Colin Walters <walters@cis.ohio-state.edu>
8027
8028 * window.c (display_buffer_reuse_frames): New variable.
8029 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
8030 frames displaying BUFFER.
52283633 8031 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 8032
10b0f752
MB
80332000-08-01 Miles Bader <miles@gnu.org>
8034
8035 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
8036 when to constrain NEW_POS (they were pretty screwed up before).
8037
16425c4a
EZ
80382000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
8039
8040 * msdos.c (run_msdos_command): Save and restore the master
8041 environment, for the case that child_setup signals an error.
8042 When mirroring slashes in DOS shell commands, don't fail when
8043 argv[2] has embedded blanks.
da288c14
EZ
8044 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
8045 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
8046 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
8047
8048 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
8049 using alloca; free it after run_msdos_command returns.
8050
27f73852
DL
80512000-07-27 Dave Love <fx@gnu.org>
8052
52283633
SM
8053 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
8054 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
8055
8056 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
8057
c0261b5e
EZ
80582000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
8059
8060 * editfns.c (lisp_time_argument): Fix last change.
8061
b548072f
GM
80622000-07-27 Gerd Moellmann <gerd@gnu.org>
8063
3ab82477
GM
8064 * fns.c (Fdelete): Make it work on vectors and strings in addition
8065 to lists.
8066
b548072f
GM
8067 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
8068 (syms_of_fns): Initialize new variables.
52283633 8069 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
8070 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
8071 weakness, with t meaning the same as `key-and-value'.
8072
91ae8751
KH
80732000-07-27 Kenichi Handa <handa@etl.go.jp>
8074
8075 * coding.h (struct coding_system): Member safe_charset deleted.
8076
8077 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
8078 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
8079 New variables.
91ae8751
KH
8080 (coding_safe_chars): New function.
8081 (CODING_SAFE_CHAR_P): New macro.
8082 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 8083 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
8084 (detect_coding_iso2022): New local variable safe_chars.
8085 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
8086 safe_charsets member of the coding system.
8087 (decode_coding_iso2022): New local variable safe_chars.
8088 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
8089 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
8090 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
8091 (ENCODE_UNSAFE_CHARACTER): New macro.
8092 (encode_coding_iso2022): New local variable safe_chars. Check
8093 unsafe chars.
8094 (setup_coding_system): Delete the code to initialize
8095 coding->safe_charses
8096 (intersection, find_safe_codings): New functions.
8097 (Ffind_coding_systems_region_internal): New function.
8098 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
8099 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
8100 variable and initialize it.
8101
8102 * fns.c (char_table_ref_and_index): New function.
8103
8104 * lisp.h (char_table_ref_and_index): Add prototype.
8105
34a7a267
SS
81062000-07-26 Sam Steingold <sds@gnu.org>
8107
8108 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 8109 (Ffloat_time): New built-in Lisp function.
34a7a267 8110
a95cb10a
GM
81112000-07-26 Gerd Moellmann <gerd@gnu.org>
8112
3353ef5a
GM
8113 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
8114 for the character code.
8115
8116 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
8117 GNU/Linux.
8118
a95cb10a
GM
8119 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
8120 if called for a popup menu.
8121 (xmenu_show): Store help string in widget values.
8122
b4a12321
DL
81232000-07-26 Dave Love <fx@gnu.org>
8124
8125 * syswait.h: Move some definitions.
8126 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
8127 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
8128 perspicuous definitions.
8129 (WTERMSIG): Fix bit pattern used.
8130
13f5ad37
KH
81312000-07-26 Kenichi Handa <handa@etl.go.jp>
8132
8133 * print.c (print_object): If vector printing is truncated, print
8134 "..." to indicate it as well as the case of list printing.
8135
070fe99c
GM
81362000-07-25 Gerd Moellmann <gerd@gnu.org>
8137
969065c3
GM
8138 * xdisp.c (next_element_from_display_vector): Improve comments.
8139
8140 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
8141 for the character code, and the rest for the face id as in 20.x.
8142 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
8143
8144 * window.c (window_display_table): Cleaned up.
8145
070fe99c
GM
8146 * syntax.c (Fforward_word): Add last arg nil in call of
8147 Fconstrain_to_field.
8148
bad77ef7
EZ
81492000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
8150
969065c3 8151 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
8152 identical but for the letter-case, don't call
8153 barf_or_query_if_file_exists.
bad77ef7 8154
c28da489
MB
81552000-07-25 Miles Bader <miles@gnu.org>
8156
8157 * editfns.c (find_field): Honor special `boundary' fields.
8158 (Qboundary): New variables.
8159 (syms_of_editfns): Initialize Qboundary.
8160 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
8161 Use scan_buffer instead of find_before_next_newline, because it
8162 allows us to detect the boundary case where there's a newline at
8163 the search limit.
8164 * lisp.h (Fconstrain_to_field): Update external declaration.
8165
e3c31fd5
GM
81662000-07-24 Gerd Moellmann <gerd@gnu.org>
8167
8168 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
8169 if that is nil.
c28da489 8170
c66c29a2
DL
81712000-07-24 Dave Love <fx@gnu.org>
8172
8173 * s/sunos4-0.h, s/sol2.h:
8174 (LIBS_TERMCAP): Move from m/sparc.h.
8175
8176 * m/sparc.h (TERMINFO): Moved to system files (probably only
8177 relevant for sunos4 judging by its vintage).
8178 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
8179 __arch64__.
8180
fbe0a958
EZ
81812000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
8182
8183 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
8184 name to single_keymap_panes.
8185
7d88e5c9
AS
81862000-07-24 Andreas Schwab <schwab@suse.de>
8187
8188 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
8189
e024b101
GM
81902000-07-24 Gerd Moellmann <gerd@gnu.org>
8191
8192 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
8193 parameters instead of using int parameters. Expect FN to accept
8194 EMACS_INT parameters.
8195 (display_echo_area, resize_echo_area_axactly, current_message)
8196 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
8197 with new argument list.
8198 (resize_mini_window_1): New callback function.
8199 (current_message_1, truncate_message_1, set_message_1): Change
52283633 8200 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 8201
25c1a9ce
KH
82022000-07-24 Kenichi Handa <handa@etl.go.jp>
8203
8204 * fontset.c (fontset_ref): Remove INLINE declaration.
8205 (fontset_ref_via_base): Likewise.
8206 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
8207 to downcase.
8208
7f987ac0
EZ
82092000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
8210
8211 * msdos.c (IT_note_mouse_highlight): Process overlays in the
8212 correct order of priority. If help echo was found in an overlay,
8213 use that overlay as the object in which the help echo was found.
8214
e2db3069
MB
82152000-07-22 Miles Bader <miles@gnu.org>
8216
8217 * textprop.c (Fprevious_single_char_property_change): The initial
8218 property value should be from the position preceding POSITION, not
8219 following it.
8220
5e3203e4
EZ
82212000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
8222
8223 * coding.c (syms_of_coding): Doc fix for
8224 inhibit-iso-escape-detection.
8225
62145073
GM
82262000-07-21 Gerd Moellmann <gerd@gnu.org>
8227
c20aeb83
GM
8228 * xterm.c (note_mouse_highlight): Process overlays in the right
8229 order of priority.
34a7a267 8230
743934db
GM
8231 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
8232
8233 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 8234 overlay, use that overlay as the object in which the help was found.
743934db 8235
d1dc7e43 8236 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 8237
62145073
GM
8238 * window.c (foreach_window): Instead of a fake variable argument
8239 list, take one USER_DATA argument.
8240 (foreach_window_1): Likewise, and call callback functions with two
8241 args, the window and USER_DATA.
8242 (struct check_window_data): New struct.
8243 (check_window_containing): Use it.
8244 (window_from_coordinates): Set up a struct check_window_data for
8245 foreach_window.
8246 (add_window_to_list, freeze_window_start): Change parameters
8247 according to new calling convention.
8248
8249 * window.h (foreach_window): Change prototype.
8250
8251 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
8252
82532000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
8254
8255 * xmenu.c (menu_help_callback): Call show_help_echo with
8256 additional arguments OBJECT and POS.
8257
11270583
KH
82582000-07-21 Kenichi Handa <handa@etl.go.jp>
8259
07b14857
KH
8260 * data.c (Faset): Allow storing any multibyte character in a
8261 string. Convert unibyte string to multibyte if necessary.
8262
11270583
KH
8263 * xfns.c (x_encode_text): New function.
8264 (x_set_name): Use x_encode_text.
8265 (x_set_title): Likewise.
8266
8267 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
8268
8269 * xterm.h (x_encode_text): Add prototype.
8270
bc75b4fd
DL
82712000-07-20 Dave Love <fx@gnu.org>
8272
8273 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
8274 xfree, not free.
8275
48c14970
EZ
82762000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
8277
8278 * msdos.c (help_echo_window): New variable.
8279 (syms_of_msdos): Initialize and staticpro it.
8280 (IT_note_mode_line_highlight): Set help_echo_window.
8281 (IT_note_mouse_highlight): Ditto.
8282 (dos_rawgetc): Store help_echo_window in the second event produced
8283 for HELP_EVENTs.
8284
8285 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
8286 Record the object that generated the help echo and the position of
8287 that object in help_echo_object and help_echo_pos. Record that
8288 some glyphs in a row are displayed in mouse-face.
8289 (IT_update_begin): Don't clear mouse highlight unless one of the
8290 enabled glyph rows is marked as being displayed in mouse-face.
8291 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
8292 and position recorded in help_echo_object and help_echo_pos to the
8293 event queue.
8294 (IT_menu_display): Accept a new argument PN: the pane number of
8295 the current menu pane. Record the pane number and the item
8296 number of the item which has associated help string.
8297 (XMenuActivate): Update the prototype for help_callback in
8298 function declaration. Call IT_menu_display with the current menu
8299 pane number as an additional argument. Call help_callback with
8300 two additional arguments: the pane number and the item number of
8301 the menu item associated with the help text.
8302 (help_echo_object, help_echo_pos): New variables.
8303 (syms_of_msdos): Initialize them and staticpro help_echo_object.
8304
8305 * msdos.h (XMenuActivate): Update prototype.
8306
4279296d
GM
83072000-07-19 Gerd Moellmann <gerd@gnu.org>
8308
47db06aa
GM
8309 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
8310 Add some more prototypes.
8311
8312 * xterm.c, xterm.h: Add some more prototypes.
8313
8314 * lisp.h (Fnext_single_char_property_change): Add prototype.
8315
8316 * dispnew.c (direct_output_for_insert): Remove confusing
8317 outer local variable mouse_face_overwritten_p.
8318 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
8319
4279296d
GM
8320 * alloc.c (allocate_string_data): Don't copy old string contents.
8321
670acd62
KH
83222000-07-19 Kenichi Handa <handa@etl.go.jp>
8323
8324 * coding.c (code_convert_region): Delete text properties before
8325 shrinking the conversion region.
8326
7cea38bc
GM
83272000-07-18 Gerd Moellmann <gerd@gnu.org>
8328
dc1cac59
GM
8329 * dispnew.c (update_text_area): Write the whole row if it
8330 has mouse-face in it.
8331
85a8aca9
GM
8332 * xfaces.c (face-alternative-font-family-alist): Remove
8333 DEFVAR_LISP; staticpro instead.
8334
34a7a267 8335 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
8336 new arguments.
8337
8338 * keyboard.c (show_help_echo): Add parameter WINDOW.
8339 (read_char): Call show_help_echo with window extracted from Lisp
8340 help event.
8341 (gen_help_event): Add parameter WINDOW.
8342
8343 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
8344
8345 * xterm.c (help_echo_window): New variable.
52283633 8346 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
8347 (XTread_socket): Pass help_echo_window to gen_help_event.
8348 (syms_of_xterm): Initialize and staticpro help_echo_window.
8349
f8276b77
DL
83502000-07-18 Dave Love <fx@gnu.org>
8351
52283633 8352 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 8353
088831a6
GM
83542000-07-18 Gerd Moellmann <gerd@gnu.org>
8355
3d6cd763
GM
8356 * alloc.c (allocate_string_data): If string had already data
8357 assigned, copy old contents to new string data.
8358
8359 * coding.c (syms_of_coding): Fix typo in spelling of variable
8360 `inhibit-iso-escape-detection'.
8361
088831a6
GM
8362 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
8363
8364 * Makefile.in: Add dependencies on dispextern.h.
8365 (alloca.o): Don't define malloc and define EMACS_FREE instead of
8366 `free'; both can conflict with system header files.
8367
bc8a8d55
KH
83682000-07-18 Kenichi Handa <handa@etl.go.jp>
8369
8370 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
8371 undefined.
8372
069f5950
DL
83732000-07-18 Dave Love <fx@gnu.org>
8374
8375 * window.c (Fwindow_list): Declare arg `window'.
8376
aa96c820
KH
83772000-07-18 Kenichi Handa <handa@etl.go.jp>
8378
8379 * coding.c (setup_coding_system): Don't override the explicitly
8380 specified designations.
8381
06be8d32
MB
83822000-07-15 Miles Bader <miles@gnu.org>
8383
8384 * editfns.c (char_property_eq, char_property_stickiness): Renamed
8385 from `text_property_eq' and `text_property_stickiness', respectively.
8386 (find_field, Fconstrain_to_field, char_property_eq)
8387 (char_property_stickiness): Changed to call char-property functions
8388 instead of text-property-only ones.
8389
8390 * textprop.c (Fnext_single_char_property_change): Made a subr (was
8391 `next_single_char_property_change'). Do more error checking, and
8392 cleanup limit behavior.
8393 (Fprevious_single_char_property_change): New function.
8394 (syms_of_textprop): Initialize new subrs.
8395
8396 * xdisp.c (display_prop_end, invisible_text_between_p):
8397 Call Fnext_single_char_property_change instead of
8398 next_single_char_property_change.
8399
3fddcdc3
JR
84002000-07-15 Jason Rumney <jasonr@gnu.org>
8401
8402 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
8403 after menu is finished with.
8404 (add_menu_item): Only consider wv->title as a menu title.
8405 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
8406
8407 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
8408 null title.
8409 (FONT_REGEXP): Remove unused macro, and its sub-components.
8410 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
8411
8412 * w32term.c (help_echo_object, help_echo_pos): New variables.
8413 (note_mode_line_highlight): Store additional information about the
8414 help-echo in help_echo_object and help_echo_pos. Check both
8415 `local-map' and `keymap' properties for changing the cursor
8416 (note_mouse_highlight): Store additional information about the
8417 help-echo in help_echo_object and help_echo_pos.
8418 (note_tool_bar_highlight): Set help_echo_object to nil and
8419 help_echo_pos to -1.
8420 (w32_read_socket): Use gen_help_event instead of filling
8421 input_events manually.
8422 (syms_of_w32term): Staticpro help_echo_object.
8423 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 8424 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
8425 (x_clear_mouse_face): New function.
8426 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
8427 (x_update_window_begin): No need to turn off the mouse
8428 highlight here.
8429 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 8430 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
8431 (x_fill_stretch_glyph_string): Consume runs of stretch
8432 glyphs instead of a single one.
8433 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
8434 with new argument list.
8435 (x_set_glyph_string_gc): Make sure the face's GC is valid.
8436 (x_append_glyph, x_append_composite_glyph)
8437 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
8438 changes in struct glyph starting 1999-12-27. See comments for
8439 xterm.c on 2000-07-05.
8440
178c5d9c
SS
84412000-07-14 Sam Steingold <sds@gnu.org>
8442
8443 * xfaces.c (realize_x_face): Fix the last patch:
8444 check `default_face' before dereferencing.
8445
6fe533f6
DL
84462000-07-14 Dave Love <fx@gnu.org>
8447
069f5950 8448 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 8449
dd7b81cf
KH
84502000-07-14 Kenichi Handa <handa@etl.go.jp>
8451
0693904a 8452 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 8453 default_face's fontset, not using the default fontset.
0693904a 8454
dd7b81cf
KH
8455 * coding.c (inhibit_iso_escape_detection): New variable.
8456 (syms_of_coding): Make it a Lisp variable.
8457 (detect_coding_iso2022): If inhibit_iso_escape_detection is
8458 nonzero, ignore ISO2022's escape sequence.
8459
d5aa31d8
GM
84602000-07-14 Gerd Moellmann <gerd@gnu.org>
8461
e5acf0ca
GM
8462 * alloca.c (malloc) [emacs]: Define as xmalloc.
8463
bd23a692
GM
8464 * xfns.c (Fx_show_tip): If frame parameters contain a position,
8465 use that instead of the mouse position. Add parameters DX and DY.
8466
8467 * dispextern.h (Fx_show_tip): Adjust number of parameters
8468 in prototype.
8469
9662da0b
GM
8470 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
8471 if HELP is a function, call it with OBJECT and POS as parameters
8472 to get the help to display.
8473 (gen_help_event, kbd_buffer_store_help_event): New functions.
8474 (kbd_buffer_get_event): Construct the Lisp help-event differently.
8475 (read_char): Call show_help_echo with new parameters.
8476
178c5d9c 8477 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
8478 Add prototypes.
8479
8480 * xterm.c (help_echo_object, help_echo_pos): New variables.
8481 (note_mode_line_highlight): Store additional information about the
8482 help-echo in help_echo_object and help_echo_pos. Check both
8483 `local-map' and `keymap' properties for changing the cursor
8484 (note_mouse_highlight): Store additional information about the
8485 help-echo in help_echo_object and help_echo_pos.
8486 (note_tool_bar_highlight): Set help_echo_object to nil and
8487 help_echo_pos to -1.
8488 (XTread_socket): Use gen_help_event instead of filling
8489 input_events manually.
8490 (syms_of_xterm): Staticpro help_echo_object.
8491
8492 * xmenu.c (menu_highlight_callback): Use
8493 kbd_buffer_store_help_event instead of setting up and input_event
8494 structure manually.
8495
8496 * xdisp.c (eval_form): GCPRO argument sexpr.
8497 (call_function): New function.
8498 (handle_single_display_prop): Use call_function and FUNCTIONP
8499 instead of checking whether if font_height is a symbol and
8500 using eval_form.
8501
8502 * eval.c (internal_condition_case_2): New function.
8503
8504 * lisp.h (FUNCTIONP): New macro.
8505 (internal_condition_case_2, call_function): Add prototypes.
8506
d5aa31d8
GM
8507 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
8508 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
8509 Always set `arg' member of input_events.
8510 (construct_menu_click): Unused function removed.
8511
8512 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
8513
8514 * w32term.c (construct_mouse_click, construct_mouse_wheel)
8515 (construct_drag_n_drop, x_scroll_bar_handle_click)
8516 (w32_read_socket): Always set `arg' member of input_events.
8517
8518 * keyboard.c (show_help_echo): Use eval_form. Add comment.
8519
8520 * lisp.h (eval_form): Add prototype.
8521
8522 * xdisp.c (eval_form): Make it externally visible.
8523
0f1a9b23
GM
85242000-07-13 Gerd Moellmann <gerd@gnu.org>
8525
8526 * xterm.c (x_handle_tool_bar_click): Store the frame in the
8527 frame_or_window slot of TOOL_BAR_EVENT input events instead of
8528 consing. For prefix events, store the frame in the `arg' slot of
8529 the event, otherwise store the key there.
8530 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 8531 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
8532
8533 * xmenu.c (menu_highlight_callback): Store help string in the
8534 `arg' member of the input event; don't cons.
8535 (menubar_selection_callback): Use the `arg' slot of input events
8536 to queue additional information, instead of consing.
8537
8538 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
8539
8540 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
8541 TOOL_BAR_EVENTs.
8542 (w32_read_socket): Adapt to changes in HELP_EVENTs.
8543
8544 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
8545 input events to queue additional information, instead of consing.
8546
8547 * keyboard.c (kbd_buffer_gcpro): Renamed from
8548 kbd_buffer_frame_or_window. Now used for all Lisp objects
8549 referenced from the input queue.
8550 (kbd_buffer_store_event): Always use structure assignment for
8551 copying input events. Record all Lisp objects referenced from
8552 events in kbd_buffer_gcpro.
8553 (kbd_buffer_get_event): Construct Lisp `help-echo' events
8554 differently from input events. Test for prefix menu_bar_events
8555 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
8556 event in kbd_buffer_gcpro to nil.
8557 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
8558 frame_or_window is equal to its arg member as prefix events.
8559 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
8560 used by an input event to nil.
8561 (init_keyboard): Use two times the size of the input queue
8562 for kbd_buffer_gcpro.
8563 (syms_of_keyboard): Likewise.
8564
52283633
SM
8565 * emacs.c (handle_USR2_signal, handle_USR1_signal):
8566 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
8567
8568 * termhooks.h (struct input_event): Add member `arg'.
8569 (MENU_BAR_EVENT): Renamed from menu_bar_event.
8570 (USER_SIGNAL_EVENT): Renamed from user_signal.
8571
8572 * xfaces.c (ASET): Remove definition.
8573
8574 * lisp.h (AREF, ASET, ASIZE): New macros.
8575
8576 * fontset.c (AREF, ASIZE): Remove definitions.
8577
8578 * fns.c (AREF): Remove definition.
178c5d9c 8579
0f1a9b23
GM
8580 * composite.c (AREF): Remove definition.
8581
712eaef2
GM
85822000-07-12 Gerd Moellmann <gerd@gnu.org>
8583
d8ee7803
GM
8584 * dispnew.c (redraw_overlapped_rows): Add missing local.
8585 (scrolling_window): Remove debug code.
8586
712eaef2
GM
8587 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
8588 Before scrolling, turn off a mouse-highlight in the window
8589 being scrolled.
8590
8591 * xterm.c (x_update_window_end): Add parameter
8592 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
8593 redisplay in XTframe_up_to_date.
8594 (x_clear_mouse_face): New function.
8595 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
8596
8597 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
8598 current glyph row.
8599 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
8600 it when any row is written to that contains glyphs highlighted in
8601 mouse-face.
8602 (update_window): Call the window update end hook with new
8603 parameter MOUSE_FACE_OVERWRITTEN_P.
8604 (direct_output_for_insert): Give up if row contains mouse-face.
8605
8606 * dispextern.h (struct redisplay_interface): Add parameter
8607 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
8608 (clear_mouse_face): New function pointer member.
8609
02010917
SM
86102000-07-11 Stefan Monnier <monnier@cs.yale.edu>
8611
8612 * syntax.c (back_comment): Use one switch rather than a few `if's.
8613 Obey open_paren_in_column_0_is_defun_start.
8614 When reverting to the `slow' method, try to nicely handle the case
8615 of nested comments by checking that the comment-starter we found
8616 does indeed match the comment-ender.
8617 (scan_sexps_forward, scan_sexps_forward):
8618 Ignore excessive opening parenthesis rather than throwing an error.
8619
d76c03ea
GM
86202000-07-11 Gerd Moellmann <gerd@gnu.org>
8621
8622 * doc.c (Fsubstitute_command_keys): Handle case that a GC
8623 in Fwhere_is_internal or get_keymap_1 relocates string contents.
8624
8625 * dispnew.c (direct_output_forward_char): Give up if currently
8626 displaying a message instead of the minibuffer contents.
8627
8628 * xterm.c (x_update_window_begin): No need to turn off the mouse
8629 highlight here.
8630 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 8631 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
8632
8633 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
8634 compare the mouse_face_p flags of both rows.
8635
8636 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
8637
d55ead18
EZ
86382000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
8639
8640 * keyboard.c (show_help_echo): Accept additional parameter
8641 ok_to_overwrite_keystroke_echo.
8642 (read_char): Call show_help_echo with a zero
8643 ok_to_overwrite_keystroke_echo argument.
52283633 8644 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
8645 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
8646 ok_to_overwrite_keystroke_echo argument.
8647 * w32menu.c (w32_menu_display_help): Call show_help_echo with
8648 non-zero ok_to_overwrite_keystroke_echo argument.
8649
df75b1a3
GM
86502000-07-10 Gerd Moellmann <gerd@gnu.org>
8651
4b92c49a
GM
8652 * xdisp.c (try_window_id): If changes are all below what is
8653 displayed in the window, and point is in the window, we still
8654 might have to find point on the display.
8655
8656 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
8657 glyphs instead of a single one.
8658 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
8659 with new argument list.
8660 (x_set_glyph_string_gc): Make sure the face's GC is valid.
8661
df75b1a3
GM
8662 * keymap.c (get_keymap_1): Add comment that this function can GC.
8663 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
8664 comment that functions can GC.
8665 (Fset_keymap_parent): GCPRO arg KEYMAP.
8666
4314cf3e
EZ
86672000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
8668
8669 * msdos.c (XMenuActivate): After exiting the menu, restore the
8670 echo area message and erase it.
8671
ab49ce15
KH
86722000-07-10 Kenichi Handa <handa@etl.go.jp>
8673
8674 * fontset.c (Ffontset_info): Make the return value more compatible
8675 with that of Emacs 20.
8676
090a072f
GM
86772000-07-07 Gerd Moellmann <gerd@gnu.org>
8678
8679 * eval.c (Fsignal): Handle case that backtrace_list is null.
8680
f92de4a6
KH
86812000-07-07 Kenichi Handa <handa@etl.go.jp>
8682
8683 * ccl.c (Fccl_execute): Typo fixed.
8684
dd8888a1
GM
86852000-07-06 Gerd Moellmann <gerd@gnu.org>
8686
e5c81191 8687 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 8688
dd8888a1
GM
8689 * window.c (Fwindow_list): Reverse list at the end.
8690 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
8691 means allow windows on OWINDOW's frame, only.
8692 (window_loop): Simplified; use Fwindow_list.
8693
8694 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
8695
485266d0
GM
86962000-07-05 Gerd Moellmann <gerd@gnu.org>
8697
8698 * xterm.c (XTread_socket): Increment handling_signal at the start,
8699 decrement it at the end.
8700
8701 * eval.c (handling_signal): New variable.
8702 (Fsignal): Abort if handling_signal is non-zero.
8703
8704 * lisp.h (handling_signal): External declaration.
178c5d9c 8705
485266d0
GM
8706 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
8707
80fcd514
KR
87082000-07-05 Ken Raeburn <raeburn@gnu.org>
8709
8710 Sound support for NetBSD through "Linux emulation" support:
8711 * config.in (HAVE_SOUNDCARD_H): Undef.
8712 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
8713 * Makefile.in (LIBSOUND): New variable.
8714 (LIBES): Include it.
52283633
SM
8715 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
8716 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
8717 (vox_open): Use DEFAULT_SOUND_DEVICE.
8718 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
8719
d5c5cddd
GM
87202000-07-05 Gerd Moellmann <gerd@gnu.org>
8721
8722 * print.c (print_error_message): If Vsignaling_function is set,
8723 show it in *Messages*.
8724
8725 * lisp.h (Vsignaling_function): External declaration.
8726
8727 * eval.c (Vsignaling_function): New variable.
8728 (Fsignal): Compute it.
8729 (syms_of_eval): Staticpro it.
8730
65171e3a
DL
87312000-07-05 Dave Love <fx@gnu.org>
8732
8733 * syswait.h: Use the autoconf recommended approach. Old code
8734 #if'd out in case we need to revert.
8735
178c5d9c 8736 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 8737
e2c46326
AI
87382000-07-05 Andrew Innes <andrewi@gnu.org>
8739
8740 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
8741 when non-NULL instead of __morecore, to take account of buffer
8742 memory. This also solves a problem with spurious memory warnings
8743 on Windows.
8744
8745 * ralloc.c: Make real_morecore non-static.
8746
8747 * eval.c (internal_condition_case): Comment out abort if
8748 interrupt_input_blocked is not zero.
8749
8750 * makefile.nt: Add support for `bootstrap' and related targets.
8751 Include minimal debug info in emacs.exe in release build.
8752 Remove all dependencies on lisp.h, and fixup some others.
8753
8754 * w32.c (init_environment): Install code from 20.7 for providing
8755 default values for environment variables, based on the
8756 executable's own location.
52283633 8757 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
8758 (sys_socket): Install socket inheritance bug fix from 20.7.
8759
8760 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
8761 here via blockinput.h).
8762
a027a91b
SM
87632000-07-05 Stefan Monnier <monnier@cs.yale.edu>
8764
e4b31601
SM
8765 * w32menu.c (w32_menu_display_help):
8766 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
8767
8768 * keyboard.h (show_help_echo): Declare.
8769
8770 * keyboard.c (show_help_echo): New function, extracted from read_char.
8771 Feval its `msg' argument if it's a cons cell.
8772 (read_char): Use it.
4cf8d9d5 8773 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 8774
178c5d9c 8775 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 8776 (note_tool_bar_highlight, XTread_socket):
178c5d9c 8777 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
8778 (dos_rawgetc):
8779 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
8780 (note_tool_bar_highlight, w32_read_socket):
8781 Do not gratuitously ignore non-string `help-echo' properties.
8782
88d75730
GM
87832000-07-05 Gerd Moellmann <gerd@gnu.org>
8784
969f7e79
GM
8785 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
8786
71201b00
GM
8787 * window.c (delete_all_subwindows): Reset Vwindow_list.
8788
88d75730
GM
8789 * xterm.c (x_append_glyph, x_append_composite_glyph)
8790 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
8791 changes in struct glyph starting 1999-12-27. Some bit-fields of
8792 struct glyph were not set, which made glyphs unequal when compared
8793 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
8794 effects were the result. This also depended on the contents of
8795 memory returned by xmalloc. If flickering happens again, activate
8796 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 8797 gone with that, chances are that it is caused by something similar.
88d75730
GM
8798
8799 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 8800
88d75730
GM
8801 * dispextern.h: Add some comments.
8802
8803 * window.c (add_window_to_list): Add parameter LIST.
8804 (window_list): Order list so that, for each frame, windows are
8805 in canonical order, and so that frames appear in the list in
8806 the order given by Vframe_list.
8807 (next_window): Reverse the handling of NEXT_P.
8808
53654733
GM
88092000-07-04 Gerd Moellmann <gerd@gnu.org>
8810
87efd256
GM
8811 * window.c (Vwindow_list): New variable.
8812 (make_window, delete_window): Set Vwindow_list to nil.
8813 (check_window_containing): New function.
8814 (window_from_coordinates): Rewritten.
8815 (add_window_to_list, window_list, candidate_window_p)
8816 (decode_next_window_args, next_window): New functions.
52283633 8817 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
8818 (Fwindow_list): New function.
8819 (Fother_window): Cleaned up.
8820 (foreach_window): Add a longer "variable argument list". Let
8821 callback function return 0 to indicate that cycling over windows
8822 should stop.
8823 (foreach_window_1): Likewise.
8824 (freeze_window_start): Return int.
8825 (init_window): New function.
8826 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
8827
8828 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
8829 input_event with bzero.
8830 (main): Call init_window.
8831
53654733
GM
8832 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
8833 a menu filter.
8834
4a8c194f
KH
88352000-07-04 Kenichi Handa <handa@etl.go.jp>
8836
8837 * composite.h (make_composition_value_copy): Extern it.
8838
8839 * composite.c (make_composition_value_copy): New function.
8840
8841 * editfns.c (Fformat): While copying text properties, make each
8842 composition property value a copy.
8843
8844 * fns.c (concat): While copying text properties, make each
8845 composition property value a copy.
8846
831a6cb0
GM
88472000-07-03 Gerd Moellmann <gerd@gnu.org>
8848
2f516940
GM
8849 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
8850
178c5d9c 8851 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
8852 marked already.
8853
831a6cb0
GM
8854 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
8855 include those frames as candidates which have their focus
8856 redirected to the minibuffer frame.
8857
d9c4f922
SM
88582000-07-03 Stefan Monnier <monnier@cs.yale.edu>
8859
8860 * fns.c (Fputhash): Return `value' rather than nil.
8861
3780bc22
GM
88622000-06-30 Gerd Moellmann <gerd@gnu.org>
8863
97d176db
GM
8864 * frame.c (next_frame): Don't check focus redirection in case
8865 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
8866 unless their focus is redirected, which contradicts the
8867 specification of next-frame, and leads to infinite loops in
8868 certain situations when cycling through windows with next-window.
8869
dca9961d
KH
88702000-06-30 Kenichi Handa <handa@etl.go.jp>
8871
8872 * coding.c (code_convert_region): Even if the length of text is
8873 zero, try to convert it if coding->type is coding_type_ccl.
8874 (decode_coding_string, encode_coding_string): Likewise.
8875
d5483ab1
GM
88762000-06-28 Gerd Moellmann <gerd@gnu.org>
8877
af5c25e1 8878 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 8879 the display if windows_or_buffers_changed.
af5c25e1
GM
8880
8881 * dispnew.c (struct row_entry): New structure.
8882 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
8883 (row_table_size, old_lines, new_lines, old_lines_size)
8884 (new_lines_size, run_pool, runs_size, runs): New variables.
8885 (add_row_entry): New function.
8886 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 8887 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
8888 holding them in local variables. Use a larger hash table whose
8889 size depends on glyph matrix sizes. Don't use bzero to clear the
8890 hash table; instead, clear used slots only.
8891
8892 * fns.c (next_almost_prime): Make it externally visible.
8893
8894 * lisp.h (next_almost_prime): Add prototype.
8895
d5483ab1
GM
8896 * s/isc4-0.h (sigunblock): Define.
8897
8898 * s/sco5.h (sigunblock): Define.
8899
93e40f40
DL
89002000-06-27 Dave Love <fx@gnu.org>
8901
8902 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
8903 (moved to osf5-0.h).
8904 [!NOT_C_CODE]: Protect string.h stuff.
8905
8906 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
8907 (sys_siglist, NSIG): Definitions moved here from osf1.h.
8908
3c4b7685
GM
89092000-06-27 Gerd Moellmann <gerd@gnu.org>
8910
97d176db 8911 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
8912 below the last line from the needed window height.
8913
32cad0aa
SM
89142000-06-26 Stefan Monnier <monnier@cs.yale.edu>
8915
8916 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
8917 (Fwidget_get): Use it.
8918 (syms_of_fns): Defsubr it.
8919
2c69ced2
GM
89202000-06-26 Gerd Moellmann <gerd@gnu.org>
8921
178c5d9c 8922 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
8923 display info for XIM.
8924 (xim_open_dpy): Likewise.
8925 (xim_close_dpy): Don't free the display info's XIM.
8926
8927 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
8928
8929 * config.in (USE_XIM): New define.
8930
3fc720e4
GM
8931 * keymap.c (get_keyelt): For menu-items containing a `:filter
8932 FILTER', apply FILTER to the menu-item's definition to get the
8933 real definition to use.
8934
8935 * lisp.h (QCfilter): External declaration.
8936
2c69ced2
GM
8937 * xfns.c (Fimage_size): New function.
8938 (syms_of_xfns): Defsubr it.
8939
f978b2a2
AS
89402000-06-26 Andreas Schwab <schwab@suse.de>
8941
8942 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
8943 Fstring_as_unibyte.
8944
94cc7892
DL
89452000-06-25 Dave Love <fx@gnu.org>
8946
52283633 8947 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
8948
8949 * Makefile.in (blockinput.h): Depend on atimer.h.
8950 (atimer.h): Depend on systime.h.
8951
52283633 8952 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 8953
52283633 8954 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
8955
8956 * lisp.h (swap_in_global_binding): Declare.
8957
b8c24556
KR
89582000-06-24 Ken Raeburn <raeburn@gnu.org>
8959
8960 * process.c (Fopen_network_stream): Turn off atimers for duration
8961 of call to connect. (Patch from Gerd.)
8962
8cf8560b
DL
89632000-06-23 Dave Love <fx@gnu.org>
8964
511c7541
DL
8965 * ralloc.c: Maybe include unistd.h
8966
8cf8560b
DL
8967 * emacs.c (setgrp): Undefine before defining.
8968 (malloc_warning, set_time_zone_rule, index): Prototype.
8969
8970 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
8971 HAVE_STRUCT_TIMEZONE.
8972
8973 * s/osf1.h: Move string.h hack here from alpha.h and make it
8974 conditional.
8975 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
8976 _XOPEN_SOURCE.
8977 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
8978 (SOCKLEN_TYPE): Don't define.
8979
8980 * m/alpha.h: Remove string.h hack.
8981
8982 * s/osf5-0.h: New file.
8983
8984 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
8985 include time.h, done by systime.h.
8986 [__FreeBSD__]: Remove redundant includes.
8987
3fc720e4 8988 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
8989 (delete_temp_file): Return Qnil to avoid warning.
8990
8991 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
8992
8993 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
8994 HAVE_X_WINDOWS.
8995
8996 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
8997
8998 * composite.h (compose_text): Declare.
8999
9000 * xterm.c: Don't include sys/types.h unconditionally. Don't
9001 protect its inclusion with !USG (following xmenu.c).
9002
ea055732
GM
90032000-06-23 Gerd Moellmann <gerd@gnu.org>
9004
9005 * xfns.c (x_create_tip_frame): Initialize frame's colors like
9006 in x_create_frame.
9007
74b01b80
EZ
90082000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
9009
9010 * coding.c (decode_eol_post_ccl): Special handling for undecided
9011 and inconsistent EOL types.
9012
64f3a166
GM
90132000-06-22 Gerd Moellmann <gerd@gnu.org>
9014
16cf31f7
GM
9015 * xrdb.c (x_load_resources): Add default resource for scroll bar's
9016 trough color and main window's background color.
9017
52283633 9018 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
9019
9020 * xterm.h (Xt_app_con): External declaration.
9021
9022 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 9023
486a103d
GM
9024 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
9025
64f3a166
GM
9026 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
9027 (handle_invisible_prop): Record the start of invisible text in
9028 it->add_overlay_start.
9029 (struct overlay_entry): Add member `overlay'.
9030 (handle_overlay_change): Simplify.
9031 (next_overlay_string): After having processed overlay strings at the
9032 end of the buffer, record that fact in
9033 it->overlay_strings_at_end_processed_p.
9034 (compare_overlay_entries): If before- and after-strings come
9035 from the same overlay, let before-strings come first.
9036 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
9037 (load_overlay_strings): Take it->add_overlay_start into account
9038 when adding overlay strings.
9039
9040 * dispextern.h (struct it): Add member add_overlay_start.
9041
bb746ea6
DL
90422000-06-22 Dave Love <fx@gnu.org>
9043
9044 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
9045
9046 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
9047
a8f573f3
KH
90482000-06-22 Kenichi Handa <handa@etl.go.jp>
9049
9050 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
9051 is greater than 0.
9052
9f2bbc92
DL
90532000-06-21 Dave Love <fx@gnu.org>
9054
178c5d9c 9055 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 9056
3ee5041c
SM
90572000-06-21 Stefan Monnier <monnier@cs.yale.edu>
9058
9059 * syntax.c (back_comment): Simplify string-parity counting (with
9060 the added benefit of handling multiple string-styles as long as
9061 they are not intertwined).
9062 Jump to the slow code as soon as a comment starter is found in
9063 a "string_lossage" position. Fixes the case: " /* " /* " */.
9064
4c343001
DL
90652000-06-21 Dave Love <fx@gnu.org>
9066
9067 * Makefile.in: Use GETLOADAVG_LIBS.
9068
9069 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
9070 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
9071
e6365855
SM
90722000-06-20 Stefan Monnier <monnier@cs.yale.edu>
9073
9074 * syntax.c (describe_syntax): Recognize the `n'estable bit.
9075 (Fforward_comment, scan_lists):
9076 Check the comstyle of single-char comment-starters.
9077 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
9078 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
9079 Check the comstyle of single-char comment-starters.
9080 Clarify control-flow around the Scomment case.
e6365855 9081
5700d2cc
DL
90822000-06-20 Dave Love <fx@gnu.org>
9083
d355bd8a
SM
9084 * fns.c (make_hash_table, maybe_resize_hash_table):
9085 Cast arg of next_almost_prime.
5700d2cc 9086
178c5d9c 9087 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
9088
9089 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
9090 and unistd.h.
9091
4a27bdfb
GM
90922000-06-20 Gerd Moellmann <gerd@gnu.org>
9093
a61d762c 9094 * keyboard.c (adjust_point_for_property): Check if display
52283633 9095 property should be treated as intangible by looking at its value.
a61d762c 9096
178c5d9c 9097 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
9098 (display_prop_intangible_p): New functions.
9099
9100 * dispextern.h (display_prop_intangible_p): Add prototype.
9101
9102 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 9103
4a27bdfb
GM
9104 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
9105 argument to sigprocmask.
9106
9107 * s/sco5.h (sigblock): Redefined to pass a pointer as second
9108 argument to sigprocmask.
9109
9110 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
9111 sigprocmask_set, and pass a pointer to it to sigprocmask.
9112
9113 * sysdep.c (sigprocmask_set): New variable.
9114
9115 * fileio.c (make_temp_name): Don't use `%s' in string passed to
9116 report_file_error.
9117
427ec082
SS
91182000-06-20 Sam Steingold <sds@gnu.org>
9119
9120 * xrdb.c: Don't declare xmalloc, xrealloc.
9121
8972fe79 91222000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
9123
9124 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
9125 (re_comp): Cast gettext return value to avoid complaints when
9126 !HAVE_LIBINTL.
9127
074b6efe
DL
91282000-06-20 Dave Love <fx@gnu.org>
9129
52283633 9130 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 9131
5700d2cc 9132 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 9133
d355bd8a 9134 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
9135
9136 * m/alpha.h: Don't declare xmalloc, xrealloc.
9137
0af4f205
DL
9138 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
9139
9140 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
9141
9142 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
9143
9144 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
9145 HAVE_GETWD.
9146
074b6efe
DL
9147 * keyboard.h (poll_for_input_1): Declare.
9148
9149 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
9150
9151 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
9152
9153 * doprnt.c: Don't declare xmalloc, xrealloc.
9154
9155 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
9156 (getenv, ctime, getwd): Removed.
9157 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
9158
9159 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
9160 x_set_tool_bar_lines.
9161
9162 * config.in: Add HAVE_GETWD. Move some definitions above
9163 machine/system includes.
9164
68a5e97b
KH
91652000-06-20 Kenichi Handa <handa@etl.go.jp>
9166
95417e1e
KH
9167 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
9168
68a5e97b
KH
9169 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
9170 contain information about ENCODING.
9171
9172 * fontset.c (FONTSET_ASCII): Use the first element of char table
9173 for an ASCII font, not defalt slot.
9174 (fontset_ref_via_base): If FONTSET doesn't contain information for
9175 C, try the default fontset.
9176 (make_fontset): Don't copy the default fontset.
9177 (fontset_font_pattern): Likewise.
9178 (accumulate_font_info): If ELT is nil, use the corresponding
9179 element in the default fontset.
9180
3b4fa1b2
DL
91812000-06-19 Dave Love <fx@gnu.org>
9182
943e731c
DL
9183 * syntax.c (Fparse_partial_sexp): Doc fix.
9184
9185 * regex.h: Test PROTOTYPES as well as __STDC__.
9186
3b4fa1b2
DL
9187 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
9188 errno, strerror. Put text after #endif in comment.
9189
52283633 9190 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
9191
9192 * xterm.c (x_frame_of_widget): Likewise.
9193
cdf0357b
GM
91942000-06-19 Gerd Moellmann <gerd@gnu.org>
9195
9196 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
9197 to Vfundamental_mode_abbrev_table.
9198
9199 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
9200 bogus objects are marked. This slows down GC by ~80 percent, but
9201 it might be worth trying when debugging GC-related problems.
9202 This feature requires conservative stack marking to be enabled.
9203
9204 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
9205 returns XLookupChars, reset `modifiers' to zero.
9206
998e9f8c
DL
92072000-06-19 Dave Love <fx@gnu.org>
9208
9209 * mktime.c: Unprotoized.
9210
18e21ce8 92112000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
9212
9213 * data.c (set_internal): If variable is frame-local,
9214 store the new value immediately into the frame parameter alist.
9215
140c4ac6
KR
92162000-06-19 Ken Raeburn <raeburn@gnu.org>
9217
14358466
KR
9218 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
9219 in the custom handler pointer.
9220
140c4ac6
KR
9221 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
9222 value, or checks for CHAR_META can fail when Lisp_Object is a
9223 union type.
9224 * keymap.c (get_keyelt): Likewise.
9225
10d7bf84
KH
92262000-06-19 Kenichi Handa <handa@etl.go.jp>
9227
9228 * ccl.h (struct ccl_program): New member eol_type.
9229 (struct ccl_spec): New member cr_carryover.
9230
9231 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
9232 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
9233
9234 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
9235 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
9236 (decode_eol_post_ccl): New function.
9237 (decode_coding): Don't detect EOL format here for CCL based coding
9238 systems.
9239 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
9240 decode_eol_post_ccl after running the CCL program.
9241 (code_convert_region): Don't detect EOL format here for CCL based
9242 coding systems.
9243 (decode_coding_string): Likewise.
9244
52e386c2
KR
92452000-06-18 Ken Raeburn <raeburn@gnu.org>
9246
9247 * charset.c (update_charset_table): Use XINT on "iso_final_char"
9248 when treating it as an integer.
9249
9250 * coding.h (encode_coding_string): Declare.
9251
9252 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
9253 it as an integer.
9254
9255 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
9256 "xkeymap" to avoid shadowing the "enum map_type" value that needs
9257 to be passed to get_local_map.
9258
9259 * sound.c (Fplay_sound): Don't call make_number on
9260 Frun_hook_with_args count argument.
9261
9262 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
9263 for lisp objects in X event structure data field, when lisp
9264 objects are represented with unions.
9265 (x_scroll_bar_to_input_event): Ditto.
9266
b357b9d4
KR
92672000-06-16 Ken Raeburn <raeburn@gnu.org>
9268
9269 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
9270 termination of string. Fix sense of test whether
9271 Vline_number_display_limit is an integer.
b357b9d4 9272
a871441d
GM
92732000-06-16 Gerd Moellmann <gerd@gnu.org>
9274
a9021acd
GM
9275 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
9276 only if HAVE_X_WINDOWS.
9277
6344985d
GM
9278 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
9279 of titles.
9280
427ec082 9281 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
9282 out of bounds.
9283
228b083e
EZ
92842000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
9285
9286 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
9287 of its headers.
9288
c25b53a2
KH
92892000-06-15 Kenichi Handa <handa@etl.go.jp>
9290
9291 * coding.c (decode_coding_emacs_mule): Always set src_base at the
9292 start of the while loop.
9293
a6981b11
GM
92942000-06-15 Gerd Moellmann <gerd@gnu.org>
9295
e9924e52
GM
9296 * atimer.c (alarm_signal_handler): Add forward declaration.
9297
a6981b11
GM
9298 * data.c (set_internal): Remove debug code.
9299
25fa6deb
GM
93002000-06-14 Gerd Moellmann <gerd@gnu.org>
9301
dce6b995
GM
9302 * Makefile.in (bootstrap-temacs): Add `-I../src'.
9303
9f817ea4
GM
9304 * unexec.c (toplevel) [COFF]: Include coff.h.
9305
9306 * s/lynxos.h: New file.
9307
9308 * keymap.c (Fsingle_key_description): Enclose function key and
9309 event symbol names in angle brackets.
9310
8a4e3c0c
GM
9311 * xdisp.c (setup_echo_area_for_printing): Call
9312 message_log_maybe_newline if message_buf_print is not set.
9313
9314 * print.c (printchar, strout): Don't check message_buf_print
427ec082 9315 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
9316 function does something useful even when message_buf_print is
9317 already set.
9318
52283633
SM
9319 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
9320 New variables.
25fa6deb
GM
9321 (ensure_echo_area_buffers): Initialize echo buffer's
9322 truncate lines setting to nil.
9323 (with_echo_area_buffer): Don't set the echo buffer's truncate
9324 lines setting here.
8a4e3c0c 9325 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
9326 of message_truncate_lines.
9327 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
9328 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
9329 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
9330
9331 * keyboard.c (read_char): Bind message-truncate-lines to t
9332 while displaying a help-echo.
9333
9334 * lisp.h (Qmessage_truncate_lines): External declaration.
9335
163dcff3
GM
93362000-06-13 Gerd Moellmann <gerd@gnu.org>
9337
1681ead6
GM
9338 * xdisp.c (Vline_number_display_limit): Renamed from
9339 line_number_display_limit.
9340 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
9341 Extend documentation string. Initialize
9342 Vline_number_display_limit to nil meaning no limit.
9343 (decode_mode_spec): Use Vline_number_display_limit with its new
9344 meaning.
9345
163dcff3
GM
9346 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
9347
18e21ce8 93482000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
9349
9350 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 9351
163dcff3
GM
9352 * xfns.c (x_set_frame_parameters): Comment fix.
9353
9354 * frame.c (store_frame_param): Call swap_in_global_binding if the
9355 variable's current binding was chosen based on this frame.
9356
9357 * data.c (swap_in_global_binding): New function.
9358
a704139d
EZ
93592000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
9360
9361 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
9362 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
9363
9b6610db
EZ
93642000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
9365
9366 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
9367
c68833d2
JR
93682000-06-12 Jason Rumney <jasonr@gnu.org>
9369
9370 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
9371
9372 * w32.h (EMACS_W32_H): Renamed from _NT_H_
9373
9374 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
9375
9376 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
9377
ed1056b3
GM
93782000-06-12 Gerd Moellmann <gerd@gnu.org>
9379
9380 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
9381 (syms_of_xfaces): Defsubr Sdump_colors.
9382 (x_free_colors): Don't treat b&w specially on default visual.
9383 (x_free_dpy_colors): New function.
9384 (free_face_colors): Don't check visual class; it's done
9385 in x_free_colors.
9386
9387 * xterm.c (x_frame_of_widget): New function.
9388 (x_alloc_nearest_color_for_widget): Use it.
9389 (x_copy_dpy_color): New function.
9390 (x_destroy_window): Free various colors.
9391
5050a2ef
KH
93922000-06-12 Kenichi Handa <handa@etl.go.jp>
9393
9394 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
9395
9396 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
9397
9398 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
9399
9400 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
9401
9402 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
9403
fb1b041d
DL
94042000-06-11 Dave Love <fx@gnu.org>
9405
9406 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
9407
ff96b5f4
EZ
94082000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
9409
9410 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
9411
db8eeecd
GM
94122000-06-11 Gerd Moellmann <gerd@gnu.org>
9413
ed1056b3 9414 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
9415 to `XEvent *'.
9416
49b71c5f
KH
94172000-06-10 Kenichi Handa <handa@etl.go.jp>
9418
c479bd55
KH
9419 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
9420 (regex_compile): Fix the code for handling the case of single byte
9421 char and multibyte char being mixed in a range within [...].
9422
ff6a65c2
KH
9423 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
9424 and dst_multibyte members of coding.
9425
49b71c5f
KH
9426 * charset.c (update_charset_table): Update the table
9427 bytes_by_char_head.
9428 (init_charset_once): Initialize elements of bytes_by_char_head to
9429 1 except for leading codes for private charases.
9430
9431 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 9432 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 9433
9e80b57d
KR
94342000-06-09 Ken Raeburn <raeburn@gnu.org>
9435
9436 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
9437 access the data it doesn't point to.
9438
f83fe4b4
GM
94392000-06-08 Gerd Moellmann <gerd@gnu.org>
9440
9441 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 9442 will be translated to a switch-frame event when reading the
f83fe4b4
GM
9443 event queue. This is necessary because Emacs otherwise won't
9444 perform a switch-frame to a new frame until some other event, for
9445 example a keystroke event, forces it to do so. This has various
9446 effects, one visible being that the cursor of a frame created with
9447 C-x 5 2 or switched to with a window manager key binding like
9448 A-TAB stays hollow because selected_window isn't on the newly
9449 focused frame until the switch-frame is performed.
9450
9451 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
9452 generating a switch-frame event if necessary.
9453
9454 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
9455
9456 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
9457 it's an integer.
9458
0890801b
KH
94592000-06-08 Kenichi Handa <handa@etl.go.jp>
9460
52283633 9461 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 9462
173cbca8
GM
94632000-06-07 Gerd Moellmann <gerd@gnu.org>
9464
3091c2a6
GM
9465 * window.c (displayed_window_lines): Take empty lines at
9466 the bottom of a window into account.
427ec082 9467
f38952fe
GM
9468 * window.c (displayed_window_lines): New function.
9469 (Fmove_to_window_line): Use displayed_window_lines to determine
9470 the number of lines to move, instead of using the window's height.
9471
9472 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
9473 to stop reading, even if the form read sets point to a different
9474 value when evaluated.
9475
427ec082 9476 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
9477 put the cursor.
9478
6ba6c818
KH
94792000-06-07 Kenichi Handa <handa@etl.go.jp>
9480
9481 * fileio.c (e_write): Free composition data if stored in
9482 coding->cmp_data.
9483
5f1aea9a
GM
94842000-06-06 Gerd Moellmann <gerd@gnu.org>
9485
666852af
GM
9486 * xdisp.c (display_line): Set row's and iterator's
9487 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
9488 Set cursor even if row ends in the middle of a character.
9489 (dump_glyph_row): Print values of new flags.
9490 (redisplay_window) <cursor movement in unchanged window>: When
9491 point has been moved forward, and PT is at the end of the cursor
9492 row, don't place the cursor in the next row if the cursor row ends
9493 in the middle of a character or at ZV.
9494
9495 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
9496 (struct glyph_row): Add starts_in_middle_of_char_p and
9497 ends_in_middle_of_char_p.
9498 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
9499 ends_in_middle_of_char_p flag.
9500 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
9501
d13f3e2e
GM
9502 * term.c (append_glyph): Revert change of 2000-06-06.
9503
9504 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
9505 padding glyph not fitting on line as whole character not
9506 fitting on line.
9507
5f1aea9a
GM
9508 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
9509 this isn't true for images with `:ascent 100'.
9510
10cda9b0
KH
95112000-06-06 Kenichi Handa <handa@etl.go.jp>
9512
ed00559d
KH
9513 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
9514 as modified if it is originally unmodified.
9515
10cda9b0
KH
9516 * term.c (encode_terminal_code): Change the way to check if
9517 terminal coding does any conversion.
9518 (append_glyph): Set glyph->pixel_width correctly.
9519
9520 * xdisp.c (display_line): While checking line continuation, pay
9521 attention to a padding glyph.
9522
1969fae2
GM
95232000-06-05 Gerd Moellmann <gerd@gnu.org>
9524
9525 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
9526
162ccef4
DL
95272000-06-05 Dave Love <fx@gnu.org>
9528
f19f32dd
DL
9529 * xdisp.c: Include fontset.h.
9530
9531 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
9532
9533 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
9534
9535 * dispnew.c: Conditionally include term.h.
9536
9537 * coding.h: Declare code_convert_string_norecord.
9538
9539 * frame.h (struct frame): Use volatile unconditionally.
9540
9541 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
9542
9543 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
9544
9545 * systime.h: Protect against multiple inclusion.
9546 (timezone) [USG5_4]: Define as time_t.
9547
9548 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
9549 (Foptimize_char_table, make_temp_name): Declare.
9550
9551 * Makefile.in (xdisp.o): Depend on fontset.h.
9552
9553 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
9554
9555 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
9556 (Foptimize_char_table, make_temp_name): Declare.
9557
427ec082 9558 * s/irix4-0.h:
162ccef4
DL
9559 * s/irix5-0.h:
9560 * s/netbsd.h: Don't define autoconfiscated MATHERR.
9561
2082fe81
DL
95622000-06-02 Dave Love <fx@gnu.org>
9563
9564 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
9565
dcf671d2
GM
95662000-06-02 Gerd Moellmann <gerd@gnu.org>
9567
9568 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 9569 result face, set flags in that face indicating that colors may not
dcf671d2
GM
9570 be freed.
9571
9572 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
9573 glyph, use the ASCII NUL character to determine the face.
9574
d42122a3
DL
95752000-06-02 Dave Love <fx@gnu.org>
9576
9577 * sysdep.c: Conditionally include stdlib.h, unistd.h.
9578 (VFORK_RETURN_TYPE): Remove.
427ec082 9579
d42122a3
DL
9580 * config.in: Add NO_MATHERR.
9581
dd432f16
DL
95822000-06-01 Dave Love <fx@gnu.org>
9583
90aa4ea8
DL
9584 * cmds.c (internal_self_insert): Don't check
9585 Vbefore_change_function, Vafter_change_function.
9586
9587 * insdel.c (signal_before_change, signal_after_change): Likewise.
9588
9589 * buffer.c (Vbefore_change_function, Vafter_change_function):
9590 Variables and their initializations deleted.
9591
2330c9d4
DL
9592 * callint.c (Fcall_interactively): Doc fix.
9593
dd432f16
DL
9594 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
9595
bf9e8804
DL
95962000-05-31 Dave Love <fx@gnu.org>
9597
9598 * textprop.c: Revert last change -- duplicated.
9599
3694b4ab
GM
96002000-05-31 Gerd Moellmann <gerd@gnu.org>
9601
9602 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
9603 in #if 0.
9604
9605 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
9606
f14156cd
JR
96072000-05-31 Jason Rumney <jasonr@gnu.org>
9608
8119aab8
JR
9609 * search.c (Fre_search_forward, Fre_search_backward)
9610 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
9611
f14156cd
JR
9612 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
9613
4aab9be3
JR
96142000-05-30 Jason Rumney <jasonr@gnu.org>
9615
9616 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
9617 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
9618
52283633 9619 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
9620
9621 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
9622 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
9623 expand a nil default_filename.
9624
9625 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
9626 pointer to glyph_to_pixel_coords, not a frame.
9627
9628 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
9629 coding.h to dependencies.
9630
9631 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
9632
9633 * w32console.c (glyph_to_pixel_coords): Change first parameter to
9634 window pointer to be consistent with w32term.c and xterm.c.
9635
9636 * w32fns.c: Format and doc changes to bring closer to xfns.c.
9637 (VIETNAMESE_CHARSET): Define if not defined in system headers.
9638 (Qline_spacing, Qcenter): New variables.
9639 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
9640 (x_set_line_spacing): New function.
52283633 9641 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
9642 (x_specified_cursor_type): New function.
9643 (x_set_cursor_type): Use it.
9644 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
9645 and icon strings.
9646 (validate_x_resource_name, x_get_resource_string): Measure lengths
9647 of external strings in bytes.
9648 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
9649 GetTextExtentPoint32 with NULL title.
9650 (Fx_create_frame): Initialize Qline_spacing.
9651 (w32_load_system_font): Initialize font->double_byte_p.
9652 (x_to_w32_charset): Use Vw32_charset_info_alist.
9653 (Image, busy cursor, tooltip functions): Merged changes from
9654 xfns.c. Not yet functional on Windows.
9655
9656 * w32gui.h (W32FontStruct): Add double_byte_p member.
9657
9658 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
9659 (emacs_button_translation): Use it.
9660 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
9661 in `mask' to be set.
9662
9663 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
9664 menu strings.
9665
9666 * w32term.c: Format and doc changes to bring closer to xterm.c.
9667 (w32_char_font_type): New enum.
9668 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
9669 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
9670 (w32_encode_char): New function.
9671 (x_encode_char): Removed.
9672 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
9673 x_encode_char and w32_font_is_double_byte.
9674 (x_produce_image_glyph): Use image_ascent.
9675 (x_produce_glyphs): Use new version of w32_per_char_metric and
9676 handle NULL return value. Allow extra line spacing.
9677 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
9678 (w32_get_glyph_overhangs): Remove unicode_p param. Use
9679 w32_font_type member of glyph instead.
9680 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
9681 (fast_find_position): Make sure not to consider rows not visible
9682 in the window.
9683 (w32_read_socket) [WM_MENUSELECT]: Cannot call
9684 w32_menu_display_help with input blocked, as it can abort.
9685 (x_display_and_set_cursor): Choose cursor depending
9686 on buffer-local value of cursor_type.
9687 (x_draw_bar_cursor): Add parameter WIDTH.
9688
9689 * w32term.h (CP_DEFAULT): Define.
9690 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
9691
10fc3187
GM
96922000-05-30 Gerd Moellmann <gerd@gnu.org>
9693
9694 * search.c (Fre_search_forward, Fre_search_backward)
9695 (Fposix_search_backward, Fposix_search_forward): Doc fix.
9696
d0555360
KH
96972000-05-30 Kenichi Handa <handa@etl.go.jp>
9698
9699 * coding.c (detect_coding_iso2022): Fix code for checking
9700 CODING_CATEGORY_MASK_ISO_8_2.
9701
f1ad044f
SM
97022000-05-29 Stefan Monnier <monnier@cs.yale.edu>
9703
9704 * regex.c (PREFETCH_NOLIMIT): New function.
9705 (re_match_2_internal): Use it and adjust the end_match_2 logic.
9706
84ec3b4b
GM
97072000-05-29 Gerd Moellmann <gerd@gnu.org>
9708
66254a13
GM
9709 * syntax.c (find_defun_start): Move test for
9710 open_paren_in_column_0_is_defun_start outside of the loop.
9711
49e70dec
GM
9712 * xdisp.c (redisplay_window): Really switch buffers when
9713 displaying mode lines, and temporarily set selected_frame to the
9714 frame of the window that's redisplayed.
9715
84ec3b4b
GM
9716 * xfaces.c (free_realized_faces): Block/unblock input.
9717 (free_realized_multibyte_face): Ditto.
9718
869a3a14
DL
97192000-05-29 Dave Love <fx@gnu.org>
9720
9721 * textprop.c (Qkeymap): New variable.
9722 (syms_of_textprop): Intern it.
9723
9724 * keymap.c: Include intervals.h.
9725 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
9726
9727 * Makefile.in (keymap.o): Depend on intervals.h.
9728
9729 * keyboard.c (menu_bar_items, tool_bar_items)
9730 (Fexecute_extended_command): Deal with `keymap' property.
9731 (read_key_sequence): Track map from `keymap' property as well as
9732 `local_map'.
9733
9734 * intervals.c (get_local_map): Extra arg to allow looking for
9735 `keymap' too.
9736
9737 * intervals.h (map_property): New enum.
9738 (get_local_map): Extra arg using it.
9739 (Qkeymap): Declare.
9740
84ec3b4b 9741 * lisp.h (get_local_map): Don't declare here.
869a3a14 9742
89d0c844
KH
97432000-05-29 Kenichi Handa <handa@etl.go.jp>
9744
9745 * Makefile.in (callproc.o): Depend on composite.h.
9746
9747 * callproc.c: Include composite.h.
9748 (Fcall_process): Handle composition correctly.
9749
9750 * coding.h (coding_allocate_composition_data): Extern it.
9751 (coding_restore_composition): Likewise.
9752
9753 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
9754 yet allocated, finish decoding with result
9755 CODING_FINISH_INSUFFICIENT_CMP.
9756 (coding_allocate_composition_data): Make it non-static.
9757 (coding_restore_composition): Likewise.
9758
797a084a
EZ
97592000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
9760
9761 * charset.c (syms_of_charset): Revert last change.
9762
cf872af5
EZ
97632000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
9764
9765 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
9766 charsets as unibyte, with 1-column screen width. Sent by Kenichi
9767 Handa.
cf872af5 9768
5b1ae051
EZ
97692000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
9770
9771 * charset.c (syms_of_charset): Set width of character sets
9772 eight-bit-control and eight-bit-graphic to 1 column.
9773
34ec9ebe
GM
97742000-05-26 Gerd Moellmann <gerd@gnu.org>
9775
9776 * config.in (HAVE_SPEED_T): New define.
9777
9778 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
9779 `extern speed_t'.
9780
dd854dc2
DL
97812000-05-26 Dave Love <fx@gnu.org>
9782
9783 * coding.c (shrink_decoding_region): Initialize eol_conversion.
9784
9785 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
9786 (Fsubr_arity): New function.
9787 (syms_of_data): Install them.
9788
ba9f8f95
KH
97892000-05-26 Kenichi Handa <handa@etl.go.jp>
9790
0f3e0672
KH
9791 * charset.c (init_charset_once): Set the table bytes_by_char_head
9792 correctly.
9793
cebefb44
KH
9794 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
9795 the default fontset to what Emacs uses by default.
0f3e0672
KH
9796 (check_registry_encoding): This function deleted.
9797 (Fset_fontset_font): Remove the adhoc condition for the default
9798 fontset. Allow cons in FONTNAME.
cebefb44 9799
0f3e0672
KH
9800 * fns.c (map_char_table): Ignore char-table entries for
9801 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 9802
7a18af49
KR
98032000-05-25 Ken Raeburn <raeburn@gnu.org>
9804
9805 * emacs.c (main): Initialize keyboard syms before initializing
9806 window code, so face names are available.
9807
d2af47df
SM
98082000-05-25 Stefan Monnier <monnier@cs.yale.edu>
9809
9810 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
9811 of an anchor at the beginning of a shy-group.
9812
fc6a6a4e
GM
98132000-05-25 Gerd Moellmann <gerd@gnu.org>
9814
9815 * xdisp.c (handle_invisible_prop): Don't try to skip over
9816 invisible text if end of text is already reached.
9817
005f0d35
DL
98182000-05-25 Dave Love <fx@gnu.org>
9819
02513cdd
DL
9820 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
9821
005f0d35
DL
9822 * coding.c (encode_eol): Add null statement after label.
9823
89f6ca4e
EZ
98242000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
9825
9826 * w16select.c (Fw16_set_clipboard_data): Fix the change from
9827 2000-05-20.
9828
a4e1759e
KH
98292000-05-25 Kenichi Handa <handa@etl.go.jp>
9830
9831 * ccl.c (ccl_driver): Fix previous change.
9832
eacfd7fe
KH
98332000-05-25 Kenichi Handa <handa@etl.go.jp>
9834
46ab33a9
KH
9835 * coding.c (run_pre_post_conversion_on_str): Set point to the
9836 beginning of buffer before calling coding->post_read_conversion.
9837 (decode_coding_string): Give correct args to
9838 run_pre_post_conversion_on_str.
9839 (encode_coding_string): Likewise.
9840
eacfd7fe
KH
9841 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
9842 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
9843 eight-bit-graphic correctly.
9844
f8569325
DL
98452000-05-24 Kenichi HANDA <handa@etl.go.jp>
9846
9847 * fileio.c (Finsert_file_contents): Even if a file is not found,
9848 execute codes for setting up coding system. Call
9849 after-insert-file-functions unconditionally.
9850
04545643
GM
98512000-05-24 Gerd Moellmann <gerd@gnu.org>
9852
9853 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
9854 BSD_PGRPS are not defined.
9855
747d90ea
KH
98562000-05-24 Kenichi Handa <handa@etl.go.jp>
9857
9858 * charset.c (update_charset_table): Accept nil in LONG_NAME and
9859 DESCRIPTION.
9860 (syms_of_charset): Avoid building same strings.
9861
716e3b88
GM
98622000-05-23 Gerd Moellmann <gerd@gnu.org>
9863
9864 * lread.c (Fload): Add a comment about the meaning of
9865 Vuser_init_file being t.
9866
9867 * puresize.h (BASE_PURESIZE): Increase to 675000.
9868
9869 * s/gnu-linux.h (setpgrp): Don't define it here because this
9870 prevents compilation on GNU/Linux systems with glib 2.2.
9871
9872 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
9873 as setpgid.
427ec082 9874
9aeb39fa
EZ
98752000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
9876
9877 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
9878 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
9879 version.
9880 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
9881
29ced61b
KH
98822000-05-23 Kenichi Handa <handa@etl.go.jp>
9883
52283633 9884 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 9885
3d80f24d
KH
9886 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
9887
52283633 9888 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 9889
29ced61b
KH
9890 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
9891
d7e00792
KH
98922000-05-22 Kenichi Handa <handa@etl.go.jp>
9893
c9d80d38
KH
9894 * keyboard.c (read_char): Allow character codes 128..255 to be
9895 handled by input-method-function.
9896
d7e00792
KH
9897 * insdel.c (adjust_markers_for_replace): Fix previous change.
9898 (adjust_after_replace): If PREV_TEXT is nil, call
9899 adjust_markers_for_insert, not adjust_markers_for_replace.
9900
087121cc 99012000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 9902
087121cc
GM
9903 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
9904 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
9905 [HAVE_GRANDPT]: Define.
9906 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
9907
9908 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
9909 like SYSV_PTYS.
9910
9911 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
9912
9913 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
9914
c9671f81
KH
99152000-05-20 Kenichi Handa <handa@etl.go.jp>
9916
9917 The following changes are to handle 8-bit characters in a
9918 multibyte buffer/string without facing with byte combining
9919 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
9920 eight-bit-graphic (for 0xA0..0xFF) are introduced.
9921
9922 * Makefile.in (fns.o): Depend on charset.h.
9923
9924 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
9925 convert it to unibyte.
9926 (make_string): Use parse_str_as_multibyte, not chars_in_text.
9927
9928 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
9929 apparent char boundary.
9930 (Fset_buffer_multibyte): Convert 8-bit characters in the range
9931 0x80..0x9F to/from multibyte form.
9932
9933 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
9934 to unibyte.
9935
9936 * callproc.c (Fcall_process): Always encode an argument string if
9937 it is multibyte. Setup src_multibyte and dst_multibyte members of
9938 process_coding properly.
ce75fd23 9939
c9671f81
KH
9940 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
9941 SPLIT_NON_ASCII_CHAR.
9942
9943 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
9944 as is.
9945 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
9946
52283633 9947 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 9948 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 9949 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
9950 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
9951 and eight-bit-graphic.
9952 (char_to_string): Likewise. Signal an error for too large
9953 character code.
9954 (char_printable_p): Return 0 for 8-bit characters.
9955 (update_charset_table): Update iso_charset_table only when a final
9956 character is non-negative.
9957 (find_charset_in_text): Renamed from find_charset_in_str.
9958 Arguments and return value changed. Callers changed.
9959 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
9960 be -1 if CHARSET is used only internally.
9961 (Fmake_char_internal): Handle new charsets; eight-bit-control and
9962 eight-bit-graphic.
9963 (Fcharset_after): Simplified.
9964 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
9965 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
9966 (multibyte_chars_in_text): Simplified by assuming there's no
9967 invalid multibyte sequence.
52283633
SM
9968 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
9969 (str_as_unibyte): New functions.
9970 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
9971 (init_charset_once): Initialization for
9972 LEADING_CODE_8_BIT_CONTROL.
9973 (syms_of_charset): Intern and staticpro Qeight_bit_control and
9974 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
9975 eight-bit-control and eight-bit-graphic.
9976
52283633
SM
9977 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
9978 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
9979 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
9980 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
9981 (CHARSET_REVERSE_CHARSET): Likewise.
9982 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
9983 eight-bit-graphic.
9984 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
9985 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
9986 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
9987 encounter an invalid multibyte sequence.
9988 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
9989 sequence is always valid.
9990 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 9991 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
9992 (CHAR_STRING): For 8-bit characters, call char_to_string.
9993 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
9994 multibyte sequence is always valid.
9995 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
9996 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
9997 (str_as_unibyte): Extern them.
c9671f81 9998 (BCOPY_SHORT): Fix a bug.
52283633 9999 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
10000 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
10001 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
10002 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
10003
bd4bde7f 10004 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 10005 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
10006 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
10007 (EMIT_BYTES): New macros.
10008 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
10009 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
10010 macros deleted.
10011 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
10012 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
10013 check the validity of multibyte sequence.
10014 (decode_coding_emacs_mule): New function.
10015 (encode_coding_emacs_mule): New macro.
10016 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
10017 the source.
10018 (DECODE_ISO_CHARACTER): Just return a character code.
10019 (DECODE_COMPOSITION_START): Set coding->result instead of result.
10020 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
10021 EMIT_CHAR to produced decoded characters. Exit the loop only by
10022 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
10023 block here.
10024 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
10025 only position codes for an invalid character.
10026 (encode_designation_at_bol): Return new destination pointer. 5th
10027 arg DSTP is changed to DST.
10028 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
10029 from the source by ONE_MORE_CHAR. Don't handle the case of last
10030 block here.
10031 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
10032 macros deleted.
52283633
SM
10033 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
10034 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
10035 TWO_MORE_BYTES to fetch a byte from the source.
10036 (encode_eol): Pay attention to coding->src_multibyte.
10037 (detect_coding, detect_eol): Preserve members src_multibyte and
10038 dst_multibyte.
10039 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
10040 (encoding_buffer_size): Set magnification to 3 for all coding
10041 systems that require encoding.
10042 (ccl_coding_driver): For decoding, be sure that the result is
10043 valid multibyte sequence.
10044 (decode_coding): Initialize coding->errors and coding->result.
10045 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
10046 and raw-text, always call decode_eol. Handle the case of last
10047 block here. If not coding->dst_multibyte, convert the resulting
10048 sequence to unibyte.
10049 (encode_coding): Initialize coding->errors and coding->result.
10050 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
10051 and raw-text, always call encode_eol. Handle the case of last
10052 block here.
10053 (shrink_decoding_region, shrink_encoding_region): Detect cases
10054 that we can't skip data more rigidly.
10055 (code_convert_region): Setup src_multibyte and dst_multibyte
10056 members of coding. For decoding, if the buffer is multibyte,
10057 convert the source sequence to unibyte in advance. For encoding,
10058 if the buffer is multibyte, convert the resulting sequence to
10059 multibyte afterward.
10060 (run_pre_post_conversion_on_str): New function.
10061 (code_convert_string): Deleted and divided into the following two.
10062 (decode_coding_string, encode_coding_string): New functions.
10063 (code_convert_string1, code_convert_string_norecord): Call one of
10064 above.
10065 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
10066 MAKE_NON_ASCII_CHAR.
52283633
SM
10067 (Fset_terminal_coding_system_internal)
10068 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
10069 and dst_multibyte members.
10070 (init_coding_once): Initialize iso_code_class with new enum
10071 ISO_control_0 and ISO_control_1.
10072
10073 * coding.h (enum iso_code_class_type): Member ISO_control_code is
10074 devided into ISO_control_0 and ISO_control_1.
10075 (struct coding_system): New members src_multibyte, dst_multibyte,
10076 errors, and result. Delete member fake_multibyte.
10077 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
10078 nonzero.
10079 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
10080 nonzero.
10081
10082 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
10083 (Faset): Likewise.
10084
10085 * editfns.c (Fformat): Be sure to convert 8-bit characters to
10086 multibyte form.
10087 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
10088 combining occurs.
10089 (Ftranspose_region): Delete codes for handling byte combining.
10090
10091 * fileio.c (Finsert_file_contents): Setup src_multibyte and
10092 dst_multibyte members of coding. On handling REPLACE on unibyte
10093 buffer, convert the result of decode_coding to unibyte. On
10094 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 10095 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
10096 multibyteness of the source (buffer or string).
10097
10098 * fns.c (concat): Handle 8-bit characters correctly.
10099 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
10100 unibyte in the result.
10101 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
10102 valid multibyte form in the result.
10103 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
10104 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
10105 return -1, signal an error.
10106 (base64_encode_1): New arg MULTIBYTE. Get each character by
10107 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
10108 character is found, return -1.
10109 (Fbase64_decode_region): Delete codes for handling byte-combining.
10110 Treat each decoded byte as a unibyte character.
10111 (Fbase64_decode_string): Return unibyte string.
10112 (Fcompare_strings, concat, string_byte_to_char): Use
10113 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
10114 FETCH_STRING_CHAR_ADVANCE.
10115 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10116 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
10117
10118 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
10119 SPLIT_NON_ASCII_CHAR.
10120 (fontset_ref_via_base, fontset_set): Likewise
10121
10122 * insdel.c (adjust_markers_for_record_delete): Deleted.
10123 (adjust_markers_for_insert): Argument changed. Caller changed.
10124 (adjust_markers_for_replace): Likewise.
52283633
SM
10125 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
10126 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
10127 (copy_text): Delete unused local varialbe c_save. For converting
10128 to multibyte, be sure to make all 8-bit characters in valid
10129 multibyte form.
10130 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
10131 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
10132 (adjust_after_replace, replace_range, del_range_2)
c9671f81 10133 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
10134 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
10135 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
10136 handling byte combining.
10137 (adjust_before_replace): Deleted.
427ec082 10138
c9671f81
KH
10139 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
10140 SPLIT_NON_ASCII_CHAR.
10141 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 10142 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
10143 (Fkey_description): Likewise.
10144
10145 * lread.c (read1): On reading multibyte string, be sure to make
10146 all 8-bit chararacters in valid multibyte form.
10147 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10148
10149 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
10150 unconditionally.
10151
10152 * process.c (Fstart_process): GCPRO current_dir before calling
10153 Ffind_operation_coding_system. Encode arguments here.
10154 (create_process): Don't encode arguments here. Setup
10155 src_multibyte and dst_multibyte members of struct coding.
10156 (read_process_output): Setup src_multibyte and dst_multibyte
10157 members of struct coding. If the output is to multibyte buffer,
10158 always decode the output of the process. Adjust the
52283633 10159 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
10160 (send_process): Setup coding->src_multibyte according to the
10161 multibyteness of the source.
10162
52283633 10163 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
10164 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
10165 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
10166
52283633 10167 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
10168
10169 * w16select.c (Fw16_set_clipboard_data): Setup members
10170 src_multibyte and dst_multibyte of coding. Adjusted for the
10171 change for find_charset_in_str.
10172 (Fw16_get_clipboard_data): Likewise.
10173
10174 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
10175 dst_multibyte of coding.
10176 (x_to_w32_font): Likewise.
10177
10178 * w32select.c (Fw32_set_clipboard_data): Setup members
10179 src_multibyte and dst_multibyte of coding. Adjusted for the
10180 change for find_charset_in_str.
10181 (Fw32_get_clipboard_data): Likewise.
10182
10183 * xdisp.c (get_next_display_element): Handle 8-bit characters
10184 correctly.
52283633
SM
10185 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
10186 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
10187
10188 * xselect.c (selection_data_to_lisp_data): Setup members
10189 src_multibyte and dst_multibyte of coding. Adjusted for the
10190 change for find_charset_in_str.
10191 (lisp_data_to_selection_data): Likewise.
10192
5f64c9e0
GM
101932000-05-19 Gerd Moellmann <gerd@gnu.org>
10194
52283633 10195 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 10196
5f64c9e0
GM
10197 * dispextern.h (Vimage_types): Add extern declaration.
10198
10199 * xdisp.c (Vimage_types): Moved here from xfns.c.
10200 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
10201
10202 * xfns.c (Vimages_types): Moved to xdisp.c.
10203 (syms_of_xfns): Move `image-types' to xdisp.c.
10204
10205 * w32fns.c (Vimage_types): Removed.
10206 (syms_of_w32fns): Remove `image-types'.
10207
813086ea
KH
102082000-05-18 Kenichi Handa <handa@etl.go.jp>
10209
10210 * fns.c (map_char_table): Pay attention to character number of
10211 charset. Check the validity of charset at the first level. For
10212 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
10213 the default value.
10214
10215 * fontset.c: Include "buffer.h".
10216 (fs_load_font): If the face has fontset, record the face ID in
10217 that fontset.
10218 (Finternal_char_font): New function.
10219 (accumulate_font_info): New function.
10220 (Ffontset_info): Rewritten for the new fontset implementation.
10221 (syms_of_fontset): Register Vdefault_fontset in the first element
10222 of Vfontset_table. Include Vdefault_fontset in
10223 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
10224 function.
10225
bdaebbf0
DL
102262000-05-16 Dave Love <fx@gnu.org>
10227
10228 * m/iris5d.h: Deleted -- unused.
10229
cb613bb8
GM
102302000-05-16 Gerd Moellmann <gerd@gnu.org>
10231
b15f3b77
GM
10232 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
10233 `invalid' instead of `illegal'.
10234
10235 * indent.c (Fmove_to_column): When ending within a tab, insert
10236 spaces first so that markers at the end of the tab get adjusted.
10237
835c1b36
GM
10238 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
10239 buffer list that wasn't selected in that frame.
10240
cb613bb8
GM
10241 * filelock.c (get_boot_time): To obtain an 8 char file name, which
10242 is needed on mescaline, use a 2 char prefix, and call
10243 make_temp_name with second arg non-zero.
10244
10245 * fileio.c (make_temp_name): New function, extracted from
10246 Fmake_temp_name.
10247 (Fmake_temp_name): Use it.
10248
f685bea9
EZ
102492000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
10250
52283633 10251 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 10252
a1b8d58b
GM
102532000-05-15 Gerd Moellmann <gerd@gnu.org>
10254
10255 * Makefile.in (lisp): Add env.elc.
10256
10257 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
10258
a265079f
GM
102592000-05-12 Gerd Moellmann <gerd@gnu.org>
10260
10261 * search.c (Freplace_match): Handle case of `\N' in the
10262 replacement when there's no group N.
10263
da4496b6
GM
102642000-05-11 Gerd Moellmann <gerd@gnu.org>
10265
0ace421a
GM
10266 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
10267 of the message to message_dolog.
10268
1172eb8d
GM
10269 * keyboard.c (read_char): Don't clear current message for help
10270 events; let the code handling help events handle this. Change
10271 code detecting help events that should be ignored.
10272
da4496b6
GM
10273 * xdisp.c (handle_single_display_prop): Don't try to set PT if
10274 we're interating over a string.
10275
0623e40f
DL
102762000-05-09 Dave Love <fx@gnu.org>
10277
10278 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
10279 that offset before writing. Move gcpro region past call of
10280 Ffile_regular_p.
10281
bae2503b
DL
102822000-05-04 Dave Love <fx@gnu.org>
10283
10284 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
10285
ec82fb2f
GM
102862000-05-04 Gerd Moellmann <gerd@gnu.org>
10287
10288 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
10289 of inserted characters when BUF equals the current buffer, and PT
10290 is in front of or equal to FROM.
10291
cbf18892
GM
102922000-05-03 Gerd Moellmann <gerd@gnu.org>
10293
4ff40dd0
GM
10294 * xdisp.c (handle_single_display_prop): If display property value
10295 is invalid, or something not supported on the frame, restore
10296 iterator's position to what it was initially. Make sure to return
10297 0 for invalid and unsupported property values.
10298
cbf18892
GM
10299 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
10300 that x_per_char_metric returns null.
10301
1b0672c3
GM
103022000-05-02 Gerd Moellmann <gerd@gnu.org>
10303
576da55d
GM
10304 * xterm.h (struct face): Add forward declaration.
10305 (struct image): Ditto.
10306 (image_ascent): Add prototype.
10307
10308 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
10309 (x_draw_image_relief, x_draw_image_foreground_1): Call function
10310 image_ascent instead of using IMAGE_ASCENT.
10311
10312 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
10313 (IMAGE_ASCENT): Removed.
10314
10315 * xfns.c (Qcenter): New variable.
10316 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
10317 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
10318 (image_ascent): New function.
10319 (lookup_image): Recognize `:ascent center'.
10320 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
10321 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
10322 (xbm_load): Don't set image's ascent here.
10323 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
10324 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
10325 check ascent values here.
10326 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
10327 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
10328 (syms_of_xfns): Initialize Qcenter.
10329
1b0672c3
GM
10330 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
10331 to the limits, increase the limits.
10332
0d7811ed
KH
103332000-05-01 Kenichi Handa <handa@etl.go.jp>
10334
10335 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 10336 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 10337
a943a5ca
GM
103382000-04-28 Gerd Moellmann <gerd@gnu.org>
10339
10340 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
10341 taller than the window.
10342
5dba1e29
KH
103432000-04-28 Kenichi Handa <handa@etl.go.jp>
10344
10345 * xfaces.c (realize_x_face): Fix the argument of the second
10346 xassert. BASE_FACE may not be a face for ASCII.
10347
353964e3
GM
103482000-04-27 Gerd Moellmann <gerd@gnu.org>
10349
c76e04a8
GM
10350 * print.c (print_object): Treat print-length < 0 as nil.
10351
10352 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
10353
10354 * s/freebsd.h (TERMCAP_OBJ): Removed.
10355 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
10356
10357 * lread.c (read1): Don't treat period followed by certain
10358 characters as symbol start.
10359
10360 * xfns.c (slurp_file): New function.
10361 (xbm_image_p): Handle case of in-memory XBM files.
10362 (xbm_scan): Rewritten to work on memory buffers instead of files.
10363 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
10364 Work on memory buffers instead of files. If DATA is null test
10365 if buffer looks like an in-memory XBM file.
10366 (xbm_load_image): Renamed from xbm_load_image_file. Work on
10367 memory buffers instead of files.
10368 (xbm_file_p): New function.
10369 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
10370
353964e3
GM
10371 * lread.c (end_of_file_error): New function.
10372 (read1): Call it instead of signaling `end-of-file' directly.
10373
427ec082 10374 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
10375 with Fprinc instead of Fprin1.
10376
24d744ac
KR
103772000-04-26 Ken Raeburn <raeburn@gnu.org>
10378
10379 * window.c (freeze_window_start): Check that minibuffer scroll
10380 window isn't nil before extracting the window structure pointer
10381 from it.
10382
10383 * undo.c (record_delete): If we hit the end of the undo list, stop
10384 picking elements apart.
10385
7464346d
GM
103862000-04-26 Gerd Moellmann <gerd@gnu.org>
10387
10388 * xdisp.c (display_line): If lines are continued, restore
10389 iterator's ascent/descent information to the values before the
10390 first glyph not fitting on the line.
10391
612839b6
GM
103922000-04-25 Gerd Moellmann <gerd@gnu.org>
10393
10394 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 10395 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
10396
10397 * dispnew.c (increment_matrix_positions): Renamed from
10398 increment_glyph_matrix_buffer_positions.
10399 (increment_row_positions): Renamed from
10400 increment_glyph_row_buffer_positions.
10401
10402 * dispextern.h: Change names of renamed functions from dispnew.c
10403 in prototypes.
10404
cc181e95
GM
104052000-04-24 Gerd Moellmann <gerd@gnu.org>
10406
abfcc168
GM
10407 * fileio.c (Fdo_auto_save): Create directories for auto-save
10408 list file if necessary.
10409
cc181e95
GM
10410 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
10411 from buffer or frame.
10412 (automatic_hscrolling_p): New variable.
10413 (hscroll_windows): Scroll windows horizontally only if automatic
10414 hscrolling is allowed.
10415 (syms_of_xdisp): New variable `automatic-hscrolling'.
10416
10417 * frame.h (struct frame): Add member extra_line_spacing.
10418
10419 * xfns.c (x_set_line_spacing): New function.
10420 (Fx_create_frame): Set line spacing from resources.
10421 (Qline_spacing): New variable.
10422 (syms_of_xfns): Initialize Qline_spacing.
427ec082 10423
cc181e95
GM
10424 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
10425
10426 * buffer.c (init_buffer_once): Handle extra_line_spacing.
10427 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 10428 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
10429 extra_line_spacing from default value.
10430 (init_buffer_once): Initialize default value of extra_line_spacing.
10431
10432 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
10433 and extra3.
10434
10435 * xterm.c (x_produce_glyphs): Remove reference to struct it's
10436 prompt_width. Add extra line spacing.
10437
10438 * term.c (produce_glyphs): Remove reference to struct it's
10439 prompt_width.
10440
10441 * dispextern.h (struct it): Remove member prompt_width, add
10442 extra_line_spacing.
10443
58827478
GM
104442000-04-22 Gerd Moellmann <gerd@gnu.org>
10445
10446 * dispnew.c (update_frame_line): When writing a whole line, make
10447 sure cursor is in the right row afterwards, otherwise a use of
10448 capability `ch' in cmgoto might leave the cursor in the row below.
10449
25a87f42
GM
104502000-04-21 Gerd Moellmann <gerd@gnu.org>
10451
10452 * lisp.h (struct Lisp_Buffer_Cons): Remove.
10453
10454 * keyboard.c (timer_check): Fix typo in comment.
10455
54edf5c2
KH
104562000-04-21 Kenichi Handa <handa@etl.go.jp>
10457
10458 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
10459 name change: ch -> character.
10460
3a64eef5
GM
104612000-04-20 Gerd Moellmann <gerd@gnu.org>
10462
10463 * keyboard.c (echo_message_buffer): New variable.
10464 (echo_now): Set echo_message_buffer to the echo area buffer used
10465 to display the echo.
10466 (cancel_echoing): Reset echo_message_buffer to nil.
10467 (read_char): Code rewritten that handles canceling an echo or
10468 echoing a dash, respectively.
10469
10470 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
10471 directory doesn't exist.
10472
6142fdcb
DL
104732000-04-19 Dave Love <fx@gnu.org>
10474
10475 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
10476 (concat): Don't allow numeric args.
10477 (Fconcat): Doc change.
6142fdcb 10478
ac6b5352
SM
104792000-04-19 Stefan Monnier <monnier@cs.yale.edu>
10480
10481 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
10482 instead define end_match(1|2) more carefully.
10483 Use GET_CHAR_BEFORE_2 for `begline'.
10484
cb9215e4
GM
104852000-04-19 Gerd Moellmann <gerd@gnu.org>
10486
5e3dac3f
GM
10487 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
10488 on 64-bit systems where NULL is defined as `0'.
10489
10490 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
10491 the `variable argument list' to make it work on Alpha.
10492
cb9215e4
GM
10493 * m/alpha.h (_LP64) [!_LP64]: Define.
10494 (ORDINARY_LINK): Define for NetBSD.
10495
10496 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 10497
f532dca0
DL
104982000-04-19 Dave Love <fx@gnu.org>
10499
c750667e
DL
10500 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
10501 change.
10502
10503 * Makefile.in (LIBS): Don't use.
10504 (GETLOADAVG_OBJ): Define again.
10505 (otherobj): Add GETLOADAVG_OBJ.
10506
f532dca0
DL
10507 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
10508
1c7e22fd
GM
105092000-04-18 Gerd Moellmann <gerd@gnu.org>
10510
f6d3257b
GM
10511 * lread.c (read_filtered_event): Cancel and start busy cursor.
10512
427ec082 10513 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
10514 that the per-character metrics may be null.
10515
e10f64e7
GM
105162000-04-17 Gerd Moellmann <gerd@gnu.org>
10517
0daee095
GM
10518 * buffer.c (clone_per_buffer_values): New function.
10519 (Fmake_indirect_buffer): Add optional argument CLONE. Call
10520 clone_per_buffer_values if CLONE is not nil.
10521
e10f64e7
GM
10522 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
10523
38687d43
DL
105242000-04-16 Dave Love <fx@gnu.org>
10525
10526 * Makefile.in: Remove obsolete localcpp stuff.
10527 (GETLOADAVG_OBJ): Don't define.
10528 (obj): Move LIBOBJS...
10529 (otherobj): ... to here.
10530 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
10531 whitespace-only lines after the continuation (Irix).
10532
c21c7262
GM
105332000-04-14 Gerd Moellmann <gerd@gnu.org>
10534
10535 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
10536
10537 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
10538
314767c0
DL
105392000-04-14 Dave Love <fx@gnu.org>
10540
10541 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
10542 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
10543 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
10544 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
10545 NLIST_STRUCT.
10546
10547 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
10548 autoconfiscated HAVE_GETLOADAVG.
10549
10550 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
10551 BROKEN_MKTIME.
10552
a2522dca
GM
105532000-04-14 Gerd Moellmann <gerd@gnu.org>
10554
10555 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 10556 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 10557
33744b5d
DL
105582000-04-14 Dave Love <fx@gnu.org>
10559
c21c7262 10560 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
10561 (INTERVAL_SRC): Convert to make variable.
10562 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
10563 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
10564 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
10565 add LIBOBJS.
10566 (SOME_MACHINE_OBJECTS): Remove interval stuff.
10567 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
10568 (shortlisp): Add facemenu, float-sup, frame.
10569 (SOME_MACHINE_LISP): Remove them from here.
10570 (LIBES): Change unused LDLIBS to autoconf LIBS.
10571
10572 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
10573
9d3d5916
KH
105742000-04-14 Kenichi Handa <handa@etl.go.jp>
10575
10576 * composite.c (update_compositions): If FROM and TO are not in a
10577 valid range, do nothing.
10578
198e3c7a
GM
105792000-04-13 Gerd Moellmann <gerd@gnu.org>
10580
52283633 10581 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 10582
52283633 10583 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
10584
10585 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
10586 as TERMCAP_OBJ.
10587
055a28c9
EZ
105882000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
10589
10590 * fileio.c (a_write): Remove redundant semi-colons.
10591 (e_write): Return -1 if failed to write all the data.
10592 This fixes the changes made at 1999-12-15.
10593
f5c75033
DL
105942000-04-12 Dave Love <fx@gnu.org>
10595
10596 * fns.c (mapcar1): Test for null vals to support mapc.
10597 (Fmapc): New function.
10598
0c3cfc51
EZ
105992000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
10600
10601 * msdos.c (NUM_MOUSE_BUTTONS): Define.
10602 (IT_frame_up_to_date): Support the buffer local value of
10603 cursor-type, if defined.
10604
33465a31
DL
106052000-04-10 Dave Love <fx@gnu.org>
10606
10607 * editfns.c (preceding-char, following-char): Doc fix.
10608
6ed56568
KR
106092000-04-10 Ken Raeburn <raeburn@gnu.org>
10610
10611 * Makefile.in (temacs): Revert 2000-03-12 change.
10612
7cf80d4e
JR
106132000-04-10 Jason Rumney <jasonr@gnu.org>
10614
10615 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
10616
34f3f342
GM
106172000-04-10 Gerd Moellmann <gerd@gnu.org>
10618
1a1b1895
GM
10619 * xdisp.c (setup_echo_area_for_printing): Choose an echo
10620 area buffer, if it's not set up yet.
10621
34f3f342
GM
10622 * indent.c (compute_motion): Set immediate_quit.
10623
be0dbdab
GM
106242000-04-09 Gerd Moellmann <gerd@gnu.org>
10625
52283633 10626 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
10627 (realize_tty_face): Suppress boldness if colors are the inverse of
10628 the default colors, and tty_suppress_bold_inverse_default_colors_p
10629 is set.
10630 (Ftty_suppress_bold_inverse_default_colors): New function.
10631 (syms_of_xfaces): Defsubr it.
10632
be0dbdab
GM
10633 * buffer.c (Frestore_buffer_modified_p): New function.
10634 (syms_of_buffer): Defsubr it.
10635
e8413c3b
KR
106362000-04-08 Ken Raeburn <raeburn@gnu.org>
10637
87f67317
KR
10638 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
10639 charset id (int) argument, not a charset (Lisp_Object).
10640
e8413c3b
KR
10641 * coding.h (code_convert_string): Declare.
10642 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
10643 object, as the fourth argument to code_convert_string.
10644
52283633 10645 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
10646 (Fset_fontset_font): Use EQ to compare lisp objects.
10647
7c752c80
KR
106482000-04-05 Ken Raeburn <raeburn@gnu.org>
10649
c0333abc
KR
10650 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
10651 a pointer that looks like a lisp object.
10652 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
10653 zero, instead see whether it's an integer object, since they can't
10654 have intervals.
10655 (GET_INTERVAL_OBJECT): Simply assign to the destination.
10656
52283633
SM
10657 * dispnew.c (allocate_matrices_for_frame_redisplay)
10658 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
10659 to convert between (unsigned) int values and lisp integers.
10660 * keyboard.c (read_key_sequence): Likewise.
10661 * lread.c (substitute_object_recurse): Likewise.
10662 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
10663 * minibuf.c (do_completion, Fminibuffer_complete_word)
10664 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
10665 * term.c (produce_special_glyphs): Likewise.
10666
10667 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
10668 * print.c (print_preprocess, print_object): Likewise.
10669
10670 * search.c (compile_pattern): Use NILP when checking for nil.
10671
74e49b38
KR
10672 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
10673 __OPTIMIZE__]: Provide a GNU C macro version that handles
10674 lisp-object unions.
10675 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
10676 field, to better cope with ENABLE_CHECKING and calls that modify a
10677 Lisp_Object using its old value.
10678
685e5ed2
GM
106792000-04-04 Gerd Moellmann <gerd@gnu.org>
10680
c407c570
GM
10681 * window.c (compare_window_configurations): Signal an error
10682 if parameters C1 or C2 aren't window configurations.
10683
685e5ed2
GM
10684 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
10685 AFTER_POTENTIAL_GC calls around calls to functions that can
10686 signal an error and thus invoke the debugger.
10687
587a49ab
GM
106882000-04-03 Gerd Moellmann <gerd@gnu.org>
10689
62f20204
GM
10690 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
10691 an error if decoding fails.
10692
587a49ab
GM
10693 * keyboard.c (lispy_mouse_names): Variable removed.
10694 (Vlispy_mouse_stem): New variable.
10695 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
10696 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
10697 for any mouse button number. Increase size of mouse_syms and
10698 button_down_location as needed. Call modify_event_symbol with
10699 different arguments.
10700 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
10701 Call modify_event_symbol with different arguments.
10702 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
10703 for any button number. Call modify_event_symbol with different
10704 arguments.
10705 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
10706 Accept a string for NAME_ALIST_OR_STEM.
10707
10708 * lisp.h (larger_vector): Add prototype.
10709
10710 * fns.c (larger_vector): Make externally visible.
10711
10712 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
10713
2d1675e4
SM
107142000-04-02 Stefan Monnier <monnier@cs.yale.edu>
10715
10716 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
10717 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
10718 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
10719 we are between str1 and str2.
10720 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
10721 (PATFETCH): Use `TRANSLATE'.
10722 (PATFETCH_RAW): Fetch multibyte char if applicable.
10723 (PATUNFETCH): Remove.
10724 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
10725 When writing a char, write it directly into the pattern buffer rather
10726 than going needlessly through a temp char-array.
10727 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
10728 multibyte magic and remove the useless `#ifdef emacs'.
10729 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
10730 buffer.
10731
10732 * regex.h (struct re_pattern_buffer): Make field `multibyte'
10733 conditional on `emacs'.
10734
10735 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
10736
cc2d8c6b
KR
107372000-04-01 Ken Raeburn <raeburn@gnu.org>
10738
10739 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
10740 non-union-type versions of XMARK and friends here, because XMARK
10741 and friends won't work on an integer field if NO_UNION_TYPE is not
10742 defined.
52283633 10743 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 10744
52283633 10745 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
10746 (syms_of_composite): Delete local var NARGS, pass an int as first
10747 argument to Fmake_hash_table.
10748
2387b382
KR
10749 * editfns.c (text_property_stickiness): Use NILP to test
10750 Lisp_Object boolean value.
10751 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
10752 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
10753 problems reading from and changing the same lisp value in an
10754 XSETSTRING call.
10755
27660e89
GM
107562000-04-01 Gerd Moellmann <gerd@gnu.org>
10757
10758 * term.c (TN_no_color_video): New variable.
10759 (term_init): Intitialize TN_no_color_video.
10760 (enum no_color_bit): New enumeration.
10761 (MAY_USE_WITH_COLORS_P): New macro.
10762 (turn_on_face): Use it to determine if attributes may be used
10763 combined with colors.
10764
3578db3c
KR
107652000-04-01 Ken Raeburn <raeburn@gnu.org>
10766
10767 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 10768 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
10769 (enlarge_window): Variable sizep now points to Lisp_Object. Use
10770 proper accessor macros.
10771 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
10772 (grow_mini_window): Fix typo getting int value of root->height.
10773
6fc556fd
KR
10774 * xdisp.c (compute_string_pos): Fix order of arguments to
10775 string_pos_nchars_ahead.
10776 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
10777 count arg to variable-arg routines like Frun_hook_with_args and
10778 Fformat.
587a49ab
GM
10779 (back_to_previous_visible_line_start)
10780 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
10781 fixed-arg routines like Fget_char_property and Fmake_string.
10782 (reconsider_clip_changes): Use XINT when comparing integer lisp
10783 objects, or passing them as int arguments.
587a49ab
GM
10784 (mark_window_display_accurate, insert_left_trunc_glyphs)
10785 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
10786 storing or passing integer values as lisp objects.
10787 (set_cursor_from_row, highlight_trailing_whitespace): Use
10788 INTEGERP, not implicit test against zero, for glyph object.
10789 (try_window_id): Don't use make_number when we want an int value.
10790
10791 * xfaces.c (xlfd_symbolic_value): Make last argument a
10792 Lisp_Object, to be consistent with callers.
10793 (Fbitmap_spec_p): Use XINT to get numeric value of height.
10794 (lface_hash): Apply XFASTINT to lisp values before folding in.
10795
10796 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
10797 fill in window width and height. Pass an int, not a lisp object,
10798 as first arg to Finsert.
10799
6e7b2457
GM
108002000-04-01 Gerd Moellmann <gerd@gnu.org>
10801
610d841e
GM
10802 * xfaces.c (realize_basic_faces): Block input while realizing
10803 the faces.
10804
6e7b2457
GM
10805 * keyboard.c (lispy_mouse_names): Add additional mouse names.
10806
10807 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
10808
aa110c0c
GM
108092000-03-31 Gerd Moellmann <gerd@gnu.org>
10810
10811 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 10812 or ASCII, handle case that per-char metric is null.
aa110c0c 10813
8801a864
KR
108142000-03-30 Ken Raeburn <raeburn@gnu.org>
10815
c6129d7e
KR
10816 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
10817
52283633
SM
10818 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
10819 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
10820 pointer, using eassert.
10821 * frame.h (XFRAME): Likewise.
10822
52283633
SM
10823 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
10824 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
10825 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 10826 * data.c (set_internal): Likewise.
52283633
SM
10827 * dispextern.h (WINDOW_WANTS_MODELINE_P)
10828 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
10829 * fileio.c (auto_save_1): Likewise.
10830 * insdel.c (check_markers): Likewise.
10831 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
10832 * undo.c (record_insert): Likewise.
10833 * vmsproc.c (child_sig): Likewise.
10834 * window.c (unshow_buffer, window_loop): Likewise.
10835 * xterm.c (x_erase_phys_cursor): Likewise.
10836
8e7af858
GM
108372000-03-30 Gerd Moellmann <gerd@gnu.org>
10838
10839 * xfns.c (free_image_cache): Free the cache structure itself
10840 last, after all its members have been freed.
10841
10842 * lisp.h (xstrdup): Add prototype.
10843
10844 * alloc.c (xstrdup): Moved here from xfaces.c.
10845 (allocating_for_lisp): Variable removed.
52283633 10846 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
10847
10848 * xfaces.c (realize_tty_face): Use find_symbol_value instead
10849 of Fsymbol_value.
10850 (xstrdup): Moved to alloc.c.
10851
e0b8c689
KR
108522000-03-29 Ken Raeburn <raeburn@gnu.org>
10853
b96f9fb7
KR
10854 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
10855
10856 * emacs.c (main): Fix sense of no-loadup test.
10857
e0b8c689
KR
10858 * config.in (ENABLE_CHECKING): Undef.
10859
10860 * lisp.h (struct interval): Replace "parent" field with a union of
10861 interval pointer and Lisp_Object; add new bitfield to use as
10862 discriminant. Change other flag fields to bitfields.
10863 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
10864 is defined and the supplied test fails, print a message and abort.
10865 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
10866
10867 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
10868 pointers; abort if the value looks like a lisp object.
52283633
SM
10869 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
10870 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
10871 Modify for new interval parent definition.
10872
52283633
SM
10873 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
10874 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
10875 addressable lisp object in the interval structure.
10876 (die): New function.
10877 (suppress_checking): New variable.
10878
10879 * intervals.c (interval_start_pos): Just return 0 if there's no
10880 parent object.
10881
f83c5440
GM
108822000-03-29 Gerd Moellmann <gerd@gnu.org>
10883
10884 * lread.c (read1): Accept `.' (period) as symbol start like in CL
10885 and earlier Emacs versions.
10886
10887 * keyboard.c (Ftop_level): Cancel busy-cursor.
10888
10889 * eval.c (call_debugger): Cancel busy-cursor.
10890
fdce64ff
KH
108912000-03-29 Kenichi Handa <handa@etl.go.jp>
10892
10893 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 10894 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 10895
f6a3f532
SM
108962000-03-28 Stefan Monnier <monnier@cs.yale.edu>
10897
10898 * regex.c (analyse_first): New function obtained by ripping out most
10899 of re_compile_fastmap and generalizing it a little bit so that it
10900 can also just return whether a given (sub)pattern can match the empty
10901 string or not.
10902 (regex_compile): Use `analyse_first' to decide whether the loop-check
10903 needs to be done or not for *, +, *? and +? (the loop check is costly
10904 for non-greedy repetition).
10905 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
10906
e9b309ac
DL
109072000-03-28 Dave Love <fx@gnu.org>
10908
52283633 10909 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 10910
e9b309ac
DL
10911 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
10912
ed0767d8
SM
109132000-03-27 Stefan Monnier <monnier@cs.yale.edu>
10914
10915 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
10916 an expression.
10917 (enum re_opcode_t): Update description of succeed_n.
10918 (PATFETCH): Always define.
10919 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
10920 operators, char classes, shy-groups and intervals).
10921 Optimize special cases of intervals so as to only use succeed_n and
10922 jump_n when really needed.
10923 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
10924 that we don't have to handle the special cases any more.
10925 Simplify on_failure_jump handling as well.
10926
e11e7e46
JR
109272000-03-28 Jason Rumney <jasonr@gnu.org>
10928
10929 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
10930
88faab89
GM
109312000-03-27 Gerd Moellmann <gerd@gnu.org>
10932
182ff242
GM
10933 * s/freebsd.h (GC_SETJMP_WORKS): Define.
10934
10935 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 10936
182ff242
GM
10937 * alloc.c (mark_maybe_object): New function.
10938 (mark_memory): Use it.
10939 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
10940 (setjmp_tested_p, longjmp_done): New variables.
10941 (test_setjmp): New function.
10942 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
10943 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
10944
c1005d06
GM
10945 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
10946 to DEC_TEXT_POS and INC_TEXT_POS.
10947
10948 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
10949 with parameter MULTIBYTE_P.
10950
52283633 10951 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 10952
7439e5b9 10953 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
10954 buffers because it looks for multibyte character byte sequences
10955 which don't exist in unibyte text.
7439e5b9 10956
d9c545da
GM
10957 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
10958
11fd416e 10959 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
10960 [DEBUG_X_COLORS]: New functions.
10961 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
10962
10963 * xfns.c (x_set_cursor_color): Get color reference counts right.
10964
10965 * xterm.c (x_copy_color): New function.
10966 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
10967
10968 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
10969 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
10970 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
10971 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
10972 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
10973 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
10974 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
10975 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
10976 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
10977 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
10978
11fd416e
GM
10979 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
10980 names for handling per-buffer variables.
d9c545da
GM
10981
10982 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
10983 instead of MAX_BUFFER_LOCAL_VARS.
10984 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
10985
10986 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
10987
88faab89
GM
10988 * xfns.c (x_specified_cursor_type): New function.
10989 (x_set_cursor_type): Use it.
10990
10991 * buffer.h (struct buffer): Add cursor_type.
10992
d80f42b7
SM
109932000-03-26 Stefan Monnier <monnier@cs.yale.edu>
10994
10995 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
10996 (print_partial_compiled_pattern, re_compile_fastmap):
10997 Handle new opcode.
d80f42b7
SM
10998 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
10999 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
11000 executing it as well as when popping it off the stack to find infinite
11001 loops in non-greedy repetition operators.
11002
89e80928
GM
110032000-03-26 Gerd Moellmann <gerd@gnu.org>
11004
3d4ff2dd
GM
11005 * doc.c (Qfunction_documentation): New variable.
11006 (syms_of_doc): Initialize Qfunction_documentation.
11007 (Fdocumentation): If FUNCTION is a symbol with non-nil
11008 `function-documentation' property, return a documentation derived
11009 from that.
11010
bd96bd79
GM
11011 * buffer.c (syms_of_buffer): Add default-cursor-type.
11012 (init_buffer_once): Don't let cursor_type have a local value
11013 in every buffer.
11014
19d1bc27
GM
11015 * xterm.c (x_display_and_set_cursor): Choose cursor depending
11016 on buffer-local value of cursor_type.
11017 (x_draw_bar_cursor): Add parameter WIDTH.
11018
11019 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
11020 (init_buffer_once): Set default cursor_type value to t.
11021 Mark cursor_type as local everywhere.
11022 (syms_of_buffer): New per-buffer variable cursor-type.
11023
89e80928
GM
11024 * buffer.h (struct buffer): Remove member local_var_flags,
11025 add local_flags.
11026 (MAX_BUFFER_LOCAL_VARS): New macro.
11027 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
11028 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
11029 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
11030 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
11031
52283633 11032 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
11033
11034 * category.c (Fset_category_table): Use new macros for per-buffer
11035 variables.
11036
11037 * buffer.c (buffer_permanent_local_flags): Make a char array.
11038 (max_buffer_local_idx): New variable.
11039 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
11040 for new handling of per-buffer variables.
11041 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
11042 (init_buffer_once): Initialize per-buffer vars differently.
11043 Set max_buffer_local_idx.
11044
11045 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
11046 variables.
11047
52283633 11048 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
11049
11050 * data.c (do_symval_forwarding, store_symval_forwarding)
11051 (find_symbol_value, set_internal, default_value, Fset_default)
11052 (Fkill_local_variable, Flocal_variable_p): Use new macros for
11053 per-buffer variables.
11054
11055 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
11056
9a0dd3dc
GM
110572000-03-24 Gerd Moellmann <gerd@gnu.org>
11058
b68c375f
GM
11059 * xterm.c (x_term_init): Unblock input around call1 of
11060 Qvendor_specific_keysyms.
11061
9a0dd3dc
GM
11062 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
11063 (find_defun_start): Consider an open parenthesis in column 0
11064 a defun start only if open_paren_in_column_0_is_defun_start is set.
11065 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
11066
7973e637
SM
110672000-03-24 Stefan Monnier <monnier@cs.yale.edu>
11068
11069 * eval.c (Fautoload): Add entry in load-history (if after dump).
11070 * lread.c (load-history): Update docstring.
11071
39210e90
GM
110722000-03-24 Gerd Moellmann <gerd@gnu.org>
11073
11074 * indent.c (Fvertical_motion): Always use the current buffer.
11075 Temporarily change the window's buffer, if necessary.
11076
72db3ab5
GM
110772000-03-23 Gerd Moellmann <gerd@gnu.org>
11078
11079 * xterm.c (fast_find_position): Make sure not to consider rows
11080 not visible in the window.
11081
990b2375
SM
110822000-03-22 Stefan Monnier <monnier@cs.yale.edu>
11083
11084 * regex.c (enum syntaxcode): Provide default for non-Emacs.
11085 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
11086
ff4df011
JR
110872000-03-22 Jason Rumney <jasonr@gnu.org>
11088
11089 * w32menu.c (single_submenu): Set help string to NULL if none.
11090 (w32_menu_show): Set help string correctly.
11091 (add-menu-item): Set help string in MIIM_DATA for menu item.
11092 Load SetMenuItemInfoA explicitly.
11093 (w32_menu_display_help): New function.
427ec082 11094
ff4df011
JR
11095 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
11096 (QCdata): Moved to xdisp.c.
11097
11098 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
11099 (Vw32_charset_to_codepage_alist): Removed.
11100 (Vw32_charset_info_alist): New variable.
52283633
SM
11101 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
11102 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
11103 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
11104 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
11105 with TODO comment.
11106 (w32_codepage_for_font): Use Vw32_charset_info_alist.
11107 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
11108 Define Vw32_charset_info_alist and w32_charset symbols.
11109
111102000-03-22 Jason Rumney <jasonr@gnu.org>
11111
11112 * makefile.nt (w32bdf.obj): Update dependencies.
11113
11114 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
11115
11116 * w32fns.c: Include fontset.h after dispextern.h.
11117 (Fx_create_frame): Do not create fontset.
11118 (w32_load_system_font): Doc fix.
11119 (Fx_close_connection): Free full_name if it is not shared.
11120
11121 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
11122 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
11123 Callers updated.
ff4df011
JR
11124 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
11125 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
11126 (w32_font_is_double_byte): New function, needs body.
11127 (x_append_glyph): Set glyph->glyph_not_available_p.
11128 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
11129 it->charset. If it->multibyte_p is zero and it->c is a multibyte
11130 character, convert it to a unibyte character.
11131 (struct glyph_string): Delete member `charset'.
11132 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
11133 calculating it is found.
11134 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
11135 the case that per char metric is not available correctly.
11136 (x_fill_glyph_string): Handle the case that the specific glyph is
11137 not available correctly.
11138 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
11139 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
11140 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
11141 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
11142 fontset. Don't call FS_LOAD_FONT.
11143
439d5cb4
KR
111442000-03-22 Ken Raeburn <raeburn@gnu.org>
11145
11146 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
11147 (INT_LISPLIKE): New macro.
11148 (NULL_INTERVAL_P): Use it.
52283633
SM
11149 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
11150 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
11151 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
11152
11153 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
11154 explicit references to "parent" field of struct interval and
11155 associated unclean type conversions.
52283633
SM
11156 * intervals.c (create_root_interval, root_interval, rotate_right)
11157 (rotate_left, balance_possible_root_interval, split_interval_right)
11158 (split_interval_left, interval_start_pos, find_interval)
11159 (next_interval, previous_interval, update_interval)
11160 (adjust_intervals_for_insertion, delete_node, delete_interval)
11161 (adjust_intervals_for_deletion, merge_interval_right)
11162 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
11163 (copy_intervals_to_string): Likewise.
439d5cb4
KR
11164 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
11165 Likewise.
11166 * syntax.c (update_syntax_table): Likewise.
11167
11168 * intervals.c (reproduce_tree_obj): New function, like
11169 reproduce_tree but takes a Lisp_Object for the parent. Declare
11170 with prototype.
11171 (graft_intervals_into_buffer): Use it when appropriate.
11172 (reproduce_tree): Declare with prototype.
11173 (balance_possible_root_interval): Check that the parent is a lisp
11174 object before trying to examine its type.
11175
ee1c5b21
GM
111762000-03-22 Gerd Moellmann <gerd@gnu.org>
11177
11178 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
11179 as strings only if both are known to be strings.
11180
11181 * s/openbsd.h (LIBS_TERMCAP): Undef.
11182
1fb352e0
SM
111832000-03-21 Stefan Monnier <monnier@cs.yale.edu>
11184
11185 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
11186 definitions for non-Emacs compilation.
11187 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
11188 outside of `#ifdef emacs'.
11189 (print_partial_compiled_pattern): Update.
11190 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
11191 (re_compile_fastmap): Merge handling of charset and charset_not (for
11192 emacs and non-emacs compilation as well).
11193 Similarly for (not)categoryspec and (not)syntaxspec.
11194 Don't use the fastmap when reaching `anychar' since the added
11195 complexity is not justified.
11196 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
11197 and (not)syntaxspec. Merge (not)categoryspec.
11198
fdaa1f77
KH
111992000-03-22 Kenichi Handa <handa@etl.go.jp>
11200
52283633
SM
11201 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
11202 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 11203 --without-x.
fdaa1f77 11204
d152fb46
DL
112052000-03-21 Dave Love <fx@gnu.org>
11206
11207 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
11208 doc string.
11209
d2cafc8c
GM
112102000-03-21 Gerd Moellmann <gerd@gnu.org>
11211
11212 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
11213 (lface_fully_specified_p): Don't check contents of
11214 LFACE_FONT_INDEX because that attribute is optional.
11215 (realize_x_face): Remove now unwarranted xassert.
11216
9111d4b5
KH
112172000-03-21 Kenichi HANDA <handa@etl.go.jp>
11218
11219 The following changes are to make font selection based on
11220 characters, not charset. In addition, they recover fontset
11221 facilities while utilizing the new font selection mechanism.
11222
6c4bfdc0
KH
11223 * Makefile.in (fontset.o): Depend on dispextern.h.
11224
11225 * alloc.c (mark_face_cache): Don't mark face->registry.
11226
9111d4b5
KH
11227 * dispextern.h (struct glyph): New member glyph_not_available_p.
11228 Use 22 bits for face_id.
11229 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
11230 (struct face): Delete member registry, new member ascii_face.
11231 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
11232 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
11233 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 11234 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
11235
11236 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
11237 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
11238 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
11239 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 11240 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
11241 (fs_free_face_fontset, fontset_font_pattern)
11242 (face_suitable_for_char_p, face_for_char)
11243 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
11244 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
11245 (FS_LOAD_FACE_FONT): New macro.
11246
11247 * fontset.c: All codes rewritten or adjusted for the change of
11248 fontset implementation. Now fontset is represented by char table.
52283633
SM
11249 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
11250 Variables removed.
9111d4b5 11251 (my_strcasecmp): Function removed.
52283633 11252 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 11253 (AREF, ASIZE): New macros.
52283633
SM
11254 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
11255 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
11256 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
11257 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
11258 (fontset_id_valid_p, font_family_registry, fontset_name)
11259 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
11260 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
11261 New functions.
11262 (fs_load_font): New arg FACE. Caller changed.
11263 (fs_query_fontset): Argument changed. Caller changed.
11264 (Fquery_fontset): call fs_query_fontset.
11265 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
11266 Functions removed.
52283633
SM
11267 (clear_fontset_elements, check_registry_encoding)
11268 (check_fontset_name): New functions.
9111d4b5
KH
11269 (syms_of_fontset): Set char-table-extra-slots property of fontset
11270 to 3. Staticpro and initialize Vfontset_table and
11271 Vdefault_fontset. Defsubr fontset_font and fontset_list.
11272
11273 * frame.h (struct frame): Member `fontset_data' removed.
11274 (FRAME_FONTSET_DATA): Macro removed.
11275
11276 * frame.c (make_frame): Don't allocate f->fontset_data.
11277 (Fdelete_frame): Don't free f->fontset_data.
11278
6c4bfdc0
KH
11279 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
11280
9111d4b5
KH
11281 * xdisp.c (charset_at_position): Function removed.
11282 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
11283 (handle_face_prop, reseat_to_string, set_iterator_to_next)
11284 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
11285 Likewise.
11286 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
11287 FACE_FOR_CHARSET.
52283633
SM
11288 (get_next_display_element, append_space)
11289 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
11290
11291 * xfaces.c (Qx_charset_registry, Vface_default_registry):
11292 Variables removed.
11293 (clear_font_table, frame_update_line_height, load_face_font):
11294 Adjusted for the change of fontset implementation.
11295 (load_face_fontset_font): Function removed.
11296 (pixel_point_size): New function.
11297 (font_list): Argument type changed. Caller changed.
11298 (LFACE_FONT): New macro.
11299 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
11300 (set_lface_from_font_name): Type of arg FONTNAME is changed to
11301 Lisp_Object. Determine the font name by actually loading a font
11302 by the specified pattern. Set LFACE_FONT (lface) to the specified
11303 pattern. Even if a font is not found, don't try alternatives.
11304 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
11305 (set_font_frame_param): If `font' is specified in lface, use it.
11306 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
11307 (lface_same_font_attributes_p): Likewise.
11308 (make_realized_face): Arguent changed. Caller changed. Set
11309 face->ascii_face to face itself.
11310 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
11311 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
11312 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
11313 (free_realized_multibyte_face): New function.
11314 (lookup_face, lookup_named_face, lookup_derived_face): Argument
11315 changed. Caller changed.
11316 (try_font_list): Argument type changed.
11317 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
11318 (choose_face_font): Argument changed. Handle fontset properly.
11319 (choose_face_fontset_font): Function removed.
11320 (realize_default_face, realize_named_face): Don't remove the
11321 former face here.
11322 (realize_face): Argument changed. Caller changed. Remove face
52283633 11323 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
11324 (realize_x_face): Argument changed. Caller changed. For a
11325 multibyte character, share fontset with base_face. For a single
52283633 11326 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
11327 (realize_tty_face): Argument changed. Caller changed.
11328 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
11329 (face_at_buffer_position): Don't check multibyte_p for returning
11330 DEFAULT_FACE_ID.
11331 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
11332 FACE_SUITABLE_FOR_CHARSET_P.
11333 (syms_of_xfaces): Remove code for Qx_charset_registry and
11334 Vface_default_registry.
11335
6c4bfdc0
KH
11336 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
11337 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
11338 (x_per_char_metric): Don't try FONT->default_char. Even if
11339 pcm->width is zero, glyph bits may exist.
11340 (x_encode_char): Always initialize char2b->byte1.
11341 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 11342 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
11343 (x_append_glyph): Set glyph->glyph_not_available_p.
11344 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
11345 it->charset. Handle the case that per char metric is not
11346 available. If it->multibyte_p is zero and it->c is a multibyte
11347 character, convert it to a unibyte character.
11348 (struct glyph_string): Delete member `charset'.
11349 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
11350 the case that per char metric is not available correctly.
11351 (x_fill_glyph_string): Handle the case that the specific glyph is
11352 not available correctly.
11353 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
11354 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
11355 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
11356 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
11357 fontset. Don't call FS_LOAD_FONT.
11358
11359 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
11360 (x_create_tip_frame): Likewise.
11361 (Fx_close_connection): Free full_name of font_info.
11362
11363 * fns.c (optimize_sub_char_table): New function.
11364 (Foptimize_char_table): New function.
11365 (syms_of_fns): Defsubr Soptimize_char_table.
11366
b33dd3b0
GM
113672000-03-20 Gerd Moellmann <gerd@gnu.org>
11368
11369 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
11370 only if buffer is displayed in some window.
11371
11372 * xdisp.c (handle_single_display_prop): Initialize local `value'.
11373 (try_window_reusing_current_matrix): Don't call scroll run
11374 function if run's current and desired position are the same;
11375 this prevents cursor flickering.
11376
4e8a9132
SM
113772000-03-19 Stefan Monnier <monnier@cs.yale.edu>
11378
11379 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
11380
11381 * regex.c (RE_STRING_CHAR): New macro.
11382 (GET_CHAR_AFER_2): Remove.
11383 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
11384 (enum re_opcode_t): Remove on_failure_jump_exclusive.
11385 (print_partial_compiled_pattern, re_compile_fastmap)
11386 (re_match_2_internal): Remove on_failure_jump_exclusive.
11387 (regex_compile): Turn optimizable P+ loops into PP*, so that the
11388 optimization only need to work for * (ie. can use of_keep_string_jump).
11389 Remove the special case for .*\n since it is now covered by the general
11390 optimization.
11391 (re_search_2): Don't bother with `room'.
11392 (skip_one_char): New function.
11393 (skip_noops): Simplify since `memory' is not needed any more.
11394 (mutually_exclusive_p): Restructure slightly to use `switch' and
11395 add handling for "all" remaining cases.
11396 (re_match_2_internal): Change on_failure_jump_smart to use
11397 on_failure_keep_string_jump (and redirect the end-of-loop jump)
11398 rather than on_failure_jump_exclusive.
11399
2136fdd4
GM
114002000-03-19 Gerd Moellmann <gerd@gnu.org>
11401
11402 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
11403 number of bits per RGB because it's everywhere used as the depth
11404 of the visual.
11405
11406 * term.c (calculate_costs): Remove code dealing with X frames.
11407
18e21ce8 114082000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
11409
11410 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
11411
d7b511c4
GM
114122000-03-18 Gerd Moellmann <gerd@gnu.org>
11413
11414 * lread.c (read_integer): Unread the last char not consumed.
11415
16b5d424
GM
114162000-03-17 Gerd Moellmann <gerd@gnu.org>
11417
11418 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 11419 which are in the process of being deleted.
16b5d424 11420
1fa28578
GM
114212000-03-16 Gerd Moellmann <gerd@gnu.org>
11422
83488cce
GM
11423 * Makefile.in (mostlyclean): Add `*.core'.
11424 (clean): Add `bootstrap-emacs'.
11425
1fa28578
GM
11426 * lread.c (read_integer): New function.
11427 (read1): Support read syntax #o, #x, #b, #r.
11428
99633e97
SM
114292000-03-15 Stefan Monnier <monnier@cs.yale.edu>
11430
1fa28578
GM
11431 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
11432 make sure POINTER_TO_OFFSET gives the same value before and after
11433 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
11434 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
11435 (debug): Now only active if > 0 rather than if != 0.
11436 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
11437 (print_partial_compiled_pattern): Add missing `succeed' case. Use
11438 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
11439 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
11440 (store_op1, store_op2, insert_op1, insert_op2)
11441 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
11442 (group_in_compile_stack): Move to after its arg's types are
11443 declared and add a prototype.
99633e97 11444 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 11445 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 11446 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
11447 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
11448 indentation of the greedy-op and shy-group code.
99633e97
SM
11449 (at_(beg|end)line_loc_p): Fix argument's types.
11450 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
11451 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
11452 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
11453 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
11454 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
11455 QUIT unconditionally.
99633e97 11456
699238d9
GM
114572000-03-15 Gerd Moellmann <gerd@gnu.org>
11458
11459 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
11460 a sole completion.
11461
11462 * process.c (send_process): Add a hint that the function
11463 can call Lisp code to its comment.
11464
11465 * lread.c (load_dangerous_libraries): New variable.
11466 (Vbytecomp_version_regexp): New variable.
11467 (safe_to_load_p): New function.
11468 (Fload): Handle files not compiled with Emacs specially.
11469 (syms_of_lread): New Lisp variable load-dangerous-libraries.
11470
34e23e5a
GM
114712000-03-14 Gerd Moellmann <gerd@gnu.org>
11472
9c763cca
GM
11473 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
11474
11475 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
11476 support functions only if HAVE_X11R6_XIM is defined.
11477 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
11478
11479 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
11480
11481 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 11482 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
11483 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
11484
11485 * config.in (HAVE_X_I18N): Moved here from xterm.h.
11486 (HAVE_X11R6_XIM): Define.
11487
11488 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
11489
34e23e5a
GM
11490 * xterm.c (x_term_init): Add support for X resource `synchronous'.
11491 If set, call XSynchronize.
11492
66f0296e
SM
114932000-03-13 Stefan Monnier <monnier@cs.yale.edu>
11494
34e23e5a
GM
11495 * regex.c: Declare a new type `re_char' used throughout the code
11496 for the string char type. It's `const unsigned char' to match the
11497 rest of Emacs. Consistently make sure all pointers to strings use
52283633 11498 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 11499 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
11500 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
11501 code duplication.
66f0296e
SM
11502
11503 * charset.h (GET_CHAR_AFTER_2): Remove.
11504 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
11505
854a025c
KR
115062000-03-12 Ken Raeburn <raeburn@gnu.org>
11507
11508 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
11509 variable before the invocation of YMF_PASS_LDFLAGS, in case both
11510 of them try to use backquotes.
11511
b9d2c7e2
DL
115122000-03-12 Dave Love <fx@gnu.org>
11513
11514 * unexelf.c: Restore changes of 1999-10-19.
11515 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
11516 fix its type and alignment; copy it from current process.
11517
5e5dff44
GM
115182000-03-12 Gerd Moellmann <gerd@gnu.org>
11519
9b2f3c38
GM
11520 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
11521 has been found. Fix bug not computing timer's predecessor.
11522
427ec082 11523 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
11524 file name.
11525
e1cff360
GM
11526 * window.c (Fsave_window_excursion): Doc fix.
11527
52283633 11528 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 11529
e411ce4b
EZ
115302000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
11531
11532 * msdos.c (vga_installed): New function, code moved from
11533 dos_set_window_size.
11534 (Qbar, Qcursor_type, outside_cursor): New variables.
11535 (syms_of_msdos): Intern and staticpro them.
11536 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
11537 shape used outside Emacs when called for the first time.
11538 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
11539 cursor shape used outside Emacs.
11540 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
11541 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
11542 type has changed.
11543 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
11544 parameters specify the cursor. Make qreverse a global
11545 variable (renamed to Qreverse).
11546
80460654
GM
115472000-03-09 Gerd Moellmann <gerd@gnu.org>
11548
11549 * fns.c (Fy_or_n_p): Cancel busy-cursor.
11550
95cd4c40
SM
115512000-03-08 Stefan Monnier <monnier@cs.yale.edu>
11552
11553 This is a big redesign of failure-stack and register handling, prompted
11554 by bugs revealed when trying to add shy-groups. Overall, what happened
11555 is that loops are now structured a little differently, groups can be
11556 shy and the code is a little simpler.
11557
11558 * regex.h: Update the copyright.
11559 (RE_SHY_GROUPS): New value.
11560 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
11561 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
11562
80460654
GM
11563 * regex.c (enum re_opcode_t): Remove jump_past_alt,
11564 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
11565 on_failure_jump_(exclusive, loop and smart). Also fix the comment
11566 for (start|stop)_memory since they now only take one argument (the
11567 second has becomes unnecessary).
52283633 11568 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
11569 (print_compiled_pattern): Use %ld to printf long ints and flush to
11570 make debugging a little easier.
95cd4c40
SM
11571 (union fail_stack_elt): Make the integer unsigned.
11572 (struct fail_stack_type): Add a `frame' element.
11573 (INIT_FAIL_STACK): Init `frame' as well.
11574 (POP_PATTERN_OP): New macro for re_compile_fastmap.
11575 (DEBUG_PUSH, DEBUG_POP): Remove.
11576 (NUM_REG_ITEMS): Remove.
11577 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
11578 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
11579 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 11580 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
11581 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
11582 New macros.
80460654
GM
11583 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
11584 address pushed is not the destination of the jump but the source
11585 of it instead.
95cd4c40
SM
11586 (NUM_FAILURE_ITEMS): Remove.
11587 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
11588 registers before the actual failure point). Don't hardcode any
11589 meaning for str==NULL anymore.
95cd4c40 11590 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
11591 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
11592 Remove.
95cd4c40
SM
11593 (REG_UNSET_VALUE): Use NULL (why not?).
11594 (compile_range): Remove declaration since it doesn't exist.
11595 (struct compile_stack_elt_t): Remove inner_group_offset.
11596 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
11597 (regex_grow_registers): Remove dead code.
11598 (FIXUP_ALT_JUMP): New macro.
80460654
GM
11599 (regex_compile): Add shy-groups Change loops to use
11600 on_failure_jump_smart&jump instead of
11601 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
11602 initial (dummy_failure_)jump. Remove c1_base (looks like unused
11603 variable to me). Use `jump' instead of `jump_past_alt' and don't
11604 bother with push_dummy_failure in alternatives since it is now
11605 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
11606 emacs' for (re)allocating the stack.
11607 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
11608 from loop when bufp->can_be_null rather than jumping to `done'.
11609 Avoid jumping backwards so as to ensure termination. Use
11610 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
11611 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 11612 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
11613 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
11614 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
11615 (lowest_active_reg, highest_active_reg)
11616 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
11617 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
11618 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
11619 variables. Push register (in `start_memory') on the stack rather
11620 than storing it in old_reg(start|end). Remove the cycle detection
11621 from `stop_memory', replaced by the use of on_failure_jump_loop
11622 for greedy loops. Add code for the new on_failure_jump_<foo>.
11623 Remove ad-hoc code in `on_failure_jump' to push more registers in
11624 the case of a loop. Take out code from `maybe_pop_jump' into
11625 separate functions and adapt it to the semantics of
11626 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
11627 and push_dummy_failure. Remove dummy_failure handling and
11628 handling of `failures to jump to on_failure_jump' (this last one
11629 was already dead code, it seems).
11630 (group_match_null_string_p, alt_match_null_string_p)
11631 (common_op_match_null_string_p): Remove.
95cd4c40 11632
7397acc4
DL
116332000-03-08 Dave Love <fx@gnu.org>
11634
11635 * config.in: Don't depend on __STDC__ for volatile.
11636 Add POINTER_TYPE, PTR, PROTOTYPES.
11637
11638 * hftctl.c, strftime.c: Use PROTOTYPES.
11639 * eval.c (find_handler_clause): Likewise.
11640
11641 * mem-limits.h: Use POINTER_TYPE.
11642
11643 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
11644 (memory_warnings): Declare using POINTER_TYPE.
11645
5e91ff9e
GM
116462000-03-08 Gerd Moellmann <gerd@gnu.org>
11647
feab4fba
GM
11648 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
11649
52283633 11650 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 11651
5e91ff9e
GM
11652 * xfns.c: Remove obsolete code in #if 0.
11653 (Fx_focus_frame): New function.
11654
a735b7e1
KH
116552000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
11656
11657 * coding.c (coding_category_name): Add coding-category-utf-8,
11658 coding-category-utf-16-be, coding-category-utf-16-le.
11659 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
11660 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
11661 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
11662 (detect_coding_utf_8): New function.
11663 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
11664 UTF_16_LOW_SURROGATE_P): New macros.
11665 (detect_coding_utf_16): New function
11666 (detect_coding_mask): When priorities are specified, skip any
11667 categories that have `nil' coding-system. Fix bug of returning
11668 wrong mask when PRIORITIES is specified and detect_coding_XXX()
11669 returns a mask not set in PRIORITIES.
11670 (detect_eol_type_in_2_octet_form): New function.
11671 (detect_eol): selects detect_eol_type_XXX to call according to
11672 cooding->category_idx.
11673 (detect_coding_system): Remove `nil' coding-system in the result.
11674 (Fupdate_coding_systems_internal): Update all coding-categories.
11675
52283633
SM
11676 * coding.h (CODING_CATEGORY_IDX_UTF_8)
11677 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
11678 New macros.
11679 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
11680 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
11681 (CODING_CATEGORY_IDX_UTF_16_LE)
11682 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
11683 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
11684 (CODING_CATEGORY_MASK_ANY): Include the above macros.
11685 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
11686
9994cc69
GM
116872000-03-07 Gerd Moellmann <gerd@gnu.org>
11688
e9b4e5ff
GM
11689 * doc.c (Fdocumentation_property): If value is not a string,
11690 and doesn't refer to etc/DOC, evaluate it to obtain a string.
11691
f7daf1e1
GM
11692 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
11693 close the display with XtCloseDisplay. This caused a bus error
11694 on OpenWindows.
11695
9994cc69
GM
11696 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
11697 complete but not unique.
11698
4336c705
GM
116992000-03-06 Gerd Moellmann <gerd@gnu.org>
11700
18bb0684
GM
11701 * process.c (send_process): Remove local variable `procname' that
11702 might become invalid when a GC happens. Instead, access the
11703 process name slot directly.
11704
4336c705
GM
11705 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
11706 orig_height if set.
11707
11708 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
11709 orig_height if set.
11710
515d0d0e
EZ
117112000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
11712
11713 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
11714 glyph matrices have been freed.
11715
100b3cbb
GM
117162000-03-05 Gerd Moellmann <gerd@gnu.org>
11717
50df5e5a 11718 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 11719 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
11720
11721 * xfns.c (QCdata): Moved to xdisp.c.
11722
11723 * xdisp.c (QCdata): Moved here from xfns.c.
11724 (syms_of_xdisp): Initialize QCdata.
11725
11726 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
11727
11728 * window.c (coordinates_in_window): Use
11729 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
11730 FRAME_INTERNAL_BORDER_WIDTH.
11731
100b3cbb 11732 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 11733 it is obviously invalid.
100b3cbb
GM
11734
11735 * xterm.c (x_term_init): Create a colormap if not using the
11736 default visual.
11737
11738 * xterm.h (select_visual): Change prototype.
11739
11740 * xfns.c (select_visual): Rewritten. Recognize user-specified
11741 visual classes.
11742 (visual_classes): New variable.
11743
64d739c4
GM
117442000-03-04 Gerd Moellmann <gerd@gnu.org>
11745
11746 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
11747 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
11748 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 11749 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
11750 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
11751 XtNcolormap resources.
11752 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
11753 (Fx_create_frame): Initialize color members of x_output structure.
11754 (xpm_load): Pass colormap to XPM lib.
11755
11756 * xfaces.c (x_free_colors): Access colormap of frame using
11757 FRAME_X_COLORMAP. Be paranoid about freeing black and white
11758 when default colormap is used.
11759
11760 * xterm.c (x_term_init): Set Colormap member of x_display_info
11761 structure. Copy colormap if resource `privateColormap' is
11762 specified (PseudoColor only).
11763 (x_setup_relief_color): Access colormap of frame using
11764 FRAME_X_COLORMAP.
11765
11766 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
11767 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
11768
c3cee013
JR
117692000-03-04 Jason Rumney <jasonr@gnu.org>
11770
11771 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
11772 other non-platform-specific equivalents.
64d739c4 11773 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
11774 specific functions and macros as their w32 equivalents where
11775 non-platform-specifics are not available.
11776 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
11777 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
11778 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
11779 (frame_update_line_height): Use macros to access f->output_data.
11780 (defined_color): Remove FIXME comments; fixed.
11781 (x_face_list_fonts, prepare_face_for_display): Put X specifics
11782 into #ifdef blocks. Add WINDOWSNT blocks.
11783 (Fx_list_fonts): Use macros for accessing font data.
11784 (set_lface_from_font_name): Different default fonts for X and
11785 WINDOWSNT.
11786 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
11787 scalable for backward compatibility.
64d739c4 11788 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
11789 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
11790
64d739c4 11791 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
11792 syms_of_w32faces.
11793
11794 * makefile.nt (w32faces.obj): Remove.
11795 (xfaces.obj): Add.
11796
807cc41c
JR
117972000-03-03 Jason Rumney <jasonr@gnu.org>
11798
11799 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
11800 correct parameters.
11801
0007072a
KR
118022000-03-03 Ken Raeburn <raeburn@gnu.org>
11803
11804 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
11805 standard ELF definitions here if the system header does not.
11806
71a6ba55
GM
118072000-03-03 Gerd Moellmann <gerd@gnu.org>
11808
11809 * xterm.c (PER_CHAR_METRIC): Removed.
11810 (x_per_char_metric_1, x_default_char): New functions.
11811 (x_per_char_metric): If font's default char is invalid, return
11812 metrics of a suitably chosen usable default char.
11813 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
11814 char, replace occurrences of unprintable chars with a suitably
11815 chosen usable default char.
71a6ba55 11816
900fa1f1
GM
118172000-03-02 Gerd Moellmann <gerd@gnu.org>
11818
42f55fe0
GM
11819 * xterm.c (note_mouse_highlight): Return quickly if frame's
11820 glyph matrices have been freed.
11821
11822 * dispnew.c (free_glyphs): Block input while freeing matrices.
11823
900fa1f1
GM
11824 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
11825
52283633
SM
11826 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
11827 Use x_free_colors.
900fa1f1
GM
11828
11829 * dispextern.h (x_free_colors): Add prototype.
11830
11831 * xfaces.c (x_free_colors): New function.
11832 (unload_color, free_face_colors): Use it.
11833
2f950292
EZ
118342000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
11835
11836 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
11837
11838 * window.c [MSDOS]: Include msdos.h.
11839
54d04320
DL
118402000-03-02 Dave Love <fx@gnu.org>
11841
11842 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
11843
11844 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
11845 set C_OPTIMIZE_SWITCH for gcc.
11846
0ba93ac4
KH
118472000-03-02 Kenichi Handa <handa@etl.go.jp>
11848
11849 * coding.c (coding_save_composition): Be sure to allocate
11850 composition data area in coding even if there's no composition in
11851 the current run.
11852
a2bc11d4
JR
118532000-03-01 Jason Rumney <jasonr@gnu.org>
11854
11855 * w32term.c: Equivalent changes to those made to xterm.c on
11856 2000-02-25 and 2000-02-24.
11857
11858 * w32fns.c: Equivalent changes to those made to xfns.c on
11859 2000-02-25 and 2000-02-21.
11860
11861 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
11862 correct line-end convention is followed.
11863
11864 * w32menu.c [HAVE_BOXES]: Remove #undef.
11865 (single_keymap_panes): Remove code for simulating checkmarks.
11866 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
11867 Remove code for drawing simulated checkmarks.
11868 (w32_menu_show): make unibyte help string correctly.
11869 (add_menu_item): draw standard Windows checkmarks. Draw radio
11870 buttons as radio buttons if possible.
11871
72d19d75
GM
118722000-03-01 Gerd Moellmann <gerd@gnu.org>
11873
2df636f4
GM
11874 * sysdep.c (start_of_text): Don't define this function for NetBSD
11875 with ELF.
11876
427ec082 11877 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
11878 Don't define.
11879 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
11880 (LINKER): Don't undef if __NetBSD__ is defined.
11881
11882 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
11883
11884 * fileio.c [__NetBSD__]: Define `unix'.
11885
72d19d75
GM
11886 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
11887
ed4d0512
GM
118882000-02-29 Gerd Moellmann <gerd@gnu.org>
11889
50b1039f
GM
11890 * atimer.c (start_atimer): Don't abort when timers are stopped.
11891 (append_atimer_lists): New function.
11892 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
11893 arbitrary lists of stopped and running atimers.
11894
ed4d0512
GM
11895 * atimer.c (cancel_atimer): Handle canceling an atimer when
11896 some timers are stopped.
11897
11898 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
11899 after canceling it.
11900
11901 * fns.c (maybe_resize_hash_table): Handle case of new size
11902 coming out as being the same as old size.
11903
387023ee
JR
119042000-02-27 Jason Rumney <jasonr@gnu.org>
11905
11906 * makefile.nt: Add atimer.h to dependencies.
11907 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
11908 * w32console.c: Only disable window system features for dispextern.h
11909 (initialize_w32_display): Build a display info for the console.
11910 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
11911 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
11912 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
11913 as 2 button mice.
11914 * w32gui.h (struct W32FontStruct): Revert last change after change
11915 to xdisp.c.
11916 * w32menu.c (single_submenu): Set up help string.
11917 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
11918 (w32_dialog_show): Set up help string.
11919 * w32term.c (w32_display_info_for_display): Remove unused function.
11920 (w32_draw_bitmap): Use pre-built bitmaps.
11921 (w32_initialize_display_info): New function to initialize parts of
11922 display info that are common to both GUI and console frames.
11923 (w32_term_init): Use w32_initialize_display_info. Do not set
11924 Vw32_num_mouse_buttons here, as it is not called for console
11925 frames. Build bitmaps for indicating truncated lines etc.
11926 (x_delete_display): Destroy pre-built bitmaps.
11927 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
11928 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
11929
4516715a
DL
119302000-02-27 Dave Love <fx@gnu.org>
11931
11932 * lisp.h: Add a bunch of prototypes.
11933
171ca836
KH
119342000-02-26 Kenichi Handa <handa@etl.go.jp>
11935
11936 * keyboard.c (read_char): Set `usec' correctly.
11937
4013921d
KH
119382000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
11939
11940 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
11941 `lambda', set reg[RRR] to the map index.
11942 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
11943 reg[RRR] to 0. Otherwise, set it to -1.
11944
9244a058
GM
119452000-02-25 Gerd Moellmann <gerd@gnu.org>
11946
2df636f4 11947 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 11948
18e21ce8 119492000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 11950
f43d79c1
GM
11951 * fileio.c (Ffile_symlink_p): If result starts with a `/'
11952 and contains a `:', prepend `/:'.
11953
11954 * window.c (select_window_1): If selected_window is nil,
11955 don't "swap out" the buffer's point.
11956 (Fset_window_configuration): Set selected_window to nil
11957 before calling Fselect_window.
11958 (unshow_buffer): Don't set point in buffer from window's point
11959 if another more recently selected window also shows the buffer.
11960
bed0c171
GM
119612000-02-25 Gerd Moellmann <gerd@gnu.org>
11962
449c3c52
GM
11963 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
11964
f5b58615
GM
11965 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
11966 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
11967 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
11968 New variables.
f5b58615
GM
11969 (DEFAULT_BUSY_CURSOR_DELAY): New define.
11970 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
11971 (hide_busy_cursor): New functions.
11972 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
11973
11974 * minibuf.c (read_minibuf): Cancel busy-cursor.
11975
11976 * keyboard.c (command_loop_1): Call start_busy_cursor before
11977 Fcommand_execute and cancel_busy_cursor after it.
11978 (timer_check): Remove busy-cursor code.
11979 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
11980 cursor timer.
11981
11982 * process.c (wait_reading_process_input): Remove busy-cursor code.
11983
11984 * eval.c (Fsignal): Call cancel_busy_cursor instead of
11985 Fx_hide_busy_cursor.
11986
11987 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
11988 Remove prototyoes.
11989 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
11990
11991 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
11992
11993 * xterm.c (XTread_socket): Remove busy-cursor code.
11994
4eb8436f
GM
11995 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
11996 (build_frame_matrix_from_leaf_window): Put code handling
11997 glyph row's not being a slice of a frame row in #if 0.
11998 (sync_window_with_frame_matrix_rows): New function.
11999 (frame_row_to_window): New function.
12000 (mirror_line_dance): Handle copies between windows.
12001
3cb65b0e
GM
12002 * lread.c (Fload): Use `xfree' instead of `free'.
12003 (init_obarray): Use `xmalloc' instead of `malloc'.
12004
bed0c171
GM
12005 * window.c (Fset_window_buffer): Set WINDOW to the window
12006 after decoding.
2add4349
GM
12007 (coordinates_in_window): Take frame's internal border width
12008 into account.
bed0c171 12009
42088c12
GM
120102000-02-24 Gerd Moellmann <gerd@gnu.org>
12011
12012 * xterm.c (x_display_and_set_cursor): Display cursor of
12013 non-selected windows depending on the setting of
12014 cursor_in_non_selected_windows.
12015
12016 * xdisp.c (cursor_in_non_selected_windows): New variable.
12017 (syms_of_xdisp): DEFVAR_BOOL it.
12018
d1e103b2
GM
120192000-02-23 Gerd Moellmann <gerd@gnu.org>
12020
723e779c
GM
12021 * data.c (Fstring_to_number): If number is greater than what
12022 fits into an integer, return a float.
12023
d1e103b2
GM
12024 * eval.c (specbind): Remove references to
12025 keyword_symbols_constant_flag.
12026
12027 * data.c (keyword_symbols_constant_flag): Removed.
12028 (Fmakunbound, set_internal, syms_of_data): Remove references to
12029 keyword_symbols_constant_flag.
12030
12031 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
12032
214f877f
KH
120332000-02-23 Kenichi Handa <handa@etl.go.jp>
12034
12035 * syntax.c (multibyte_syntax_as_symbol): New variable.
12036 (syms_of_syntax): Declare it as a Lisp variable.
12037 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
12038 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
12039 nonzero, treat all multibyte characters as symbol.
52283633 12040 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 12041
130adcb7
EZ
120422000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12043
3cb65b0e 12044 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 12045 a deleted frame.
130adcb7 12046
17cbbf95
GM
120472000-02-21 Gerd Moellmann <gerd@gnu.org>
12048
12049 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
12050
12051 * xfns.c (x_window_to_frame, x_any_window_to_frame)
12052 (x_non_menubar_window_to_frame): Check the busy-cursor window.
12053
beb0bc36
DL
120542000-02-21 Dave Love <fx@gnu.org>
12055
12056 * frame.c (Vmouse_position_function): New variable.
12057 (Fmouse_position): Use it.
12058 (syms_of_frame): Install it.
12059
12060 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
12061
1d92afcd
GM
120622000-02-20 Gerd Moellmann <gerd@gnu.org>
12063
12064 * fileio.c (Finsert_file_contents): Unbind the binding of
12065 standard-output done by temp_output_buffer_setup.
329eed9f
GM
12066
12067 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
12068 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
12069 (specbind, unbind_to): Handle most common case of non-constant
12070 symbol with trivial value specially.
12071
12072 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
12073
18e21ce8 120742000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
12075
12076 * data.c (Fmake_variable_buffer_local): Doc fix.
12077 Init found_for_buffer to 0.
12078 (Fmake_variable_frame_local): If the variable has already
12079 been buffer-local, set the check_frame field.
12080
1d4311c3
EZ
120812000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
12082
12083 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
12084 produced for CODING_MODE_LAST_BLOCK requires.
12085
2dc95ddd
DL
120862000-02-18 Dave Love <fx@gnu.org>
12087
12088 * keyboard.c (echo_keystrokes): Remove declaration.
12089 (Vecho_keystrokes) New variable.
12090 (read_char, record_menu_key, read_key_sequence): Use it to allow
12091 use of float value.
12092 (syms_of_keyboard): Change Vecho_keystrokes declaration.
12093
12094 * lread.c: Undef feature selection macros before defining.
12095
f0930f35
GM
120962000-02-18 Gerd Moellmann <gerd@gnu.org>
12097
12098 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
12099 for symbols other than the symbol in question.
12100
e3d4de90
DL
121012000-02-17 Dave Love <fx@gnu.org>
12102
12103 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
12104
0b378936
GM
121052000-02-17 Gerd Moellmann <gerd@gnu.org>
12106
d621caf7
GM
12107 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
12108
0b378936
GM
12109 * alloc.c (enum mem_type): Compile unconditionally.
12110
3b451f74
EZ
121112000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
12112
12113 * xfaces.c (tty_defined_color): Don't return faulire indication
12114 for unspecified-fg and unspecified-bg pseudo-colors.
12115
10689a01
GM
121162000-02-17 Gerd Moellmann <gerd@gnu.org>
12117
1216f5e4
GM
12118 * alloc.c (mark_object): Don't mark symbol names in pure space.
12119 (gc_sweep): Don't unmark symbol names in pure space.
12120
12121 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
12122 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
12123 [GC_MARK_STACK]: New defines.
427ec082 12124 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
12125 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
12126
12127 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
12128
12129 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
12130 allocate_buffer instead of xmalloc.
12131
12132 * alloc.c (toplevel): Include setjmp.h.
12133 (PURE_POINTER_P): New define.
12134 (enum mem_type) [GC_MARK_STACK]: New enumeration.
12135 (Vdead) [GC_MARK_STACK]: New variable.
12136 (lisp_malloc): Add parameter TYPE, call mem_insert if
12137 GC_MARK_STACK is defined.
12138 (allocate_buffer): New function.
427ec082 12139 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
12140 (free_float) [GC_MARK_STACK]: Set type to Vdead.
12141 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
12142 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
12143 (MEM_NIL) [GC_MARK_STACK]: New define.
12144 (struct mem_node) [GC_MARK_STACK]: New structure.
12145 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
12146 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
12147 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
12148 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
12149 (mark_stack) [GC_MARK_STACK]: New functions.
12150 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
12151 (clear_marks): Removed.
12152 (gc_sweep): Set free conses' car, free floats' type, free
12153 symbols' function to Vdead. Use lisp_free to free buffers.
12154 (init_alloc_once): Initialize Vdead.
12155 (survives_gc_p): Return non-zero for pure objects.
12156
12157 * alloc.c: Add comments throughout the file.
12158
2503c8b1
GM
12159 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
12160 that unblocks alarms.
12161
8389e1e2
GM
12162 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
12163 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
12164 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
12165
10689a01 12166 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 12167
bfc17d18
KH
121682000-02-17 Kenichi Handa <handa@etl.go.jp>
12169
4a09dee0
KH
12170 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
12171 avoid infinite error signaling. Allocate sufficient memory for
12172 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 12173
2b927d02
SM
121742000-02-17 Stefan Monnier <monnier@cs.yale.edu>
12175
12176 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
12177 depends on the previous behavior.
12178
b49cb764
GM
121792000-02-16 Gerd Moellmann <gerd@gnu.org>
12180
12181 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
12182
99e95407
GM
121832000-02-15 Gerd Moellmann <gerd@gnu.org>
12184
12185 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
12186
12187 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 12188 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
12189 write(2).
12190
6ffd3cf7
RS
121912000-02-15 Richard M. Stallman <rms@gnu.org>
12192
12193 * data.c (set_internal): Don't make variable buffer-local
12194 if within a let-binding for the same buffer.
12195 (let_shadows_buffer_binding_p): New function.
12196
12197 * eval.c (specbind): For buffer-local value,
12198 record the current buffer also.
12199 (unbind_to): Cope with that change.
12200
cad53475
GM
122012000-02-15 Gerd Moellmann <gerd@gnu.org>
12202
12203 * window.c (Fsave_window_excursion): Doc fix.
12204
1aa963c8
SM
122052000-02-15 Stefan Monnier <monnier@cs.yale.edu>
12206
12207 * syntax.c (back_comment): Make sure we only consider comment-starters
12208 of the relevant style and return -1 in case of a failure to find the
12209 beginning of the comment.
12210 (Fforward_comment): If back_comment fails, go back to the position just
12211 after the comment-end.
12212 (scan_lists): Add comment describing a very minor bug.
12213
b9b84fd3
SM
122142000-02-14 Stefan Monnier <monnier@cs.yale.edu>
12215
12216 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
12217 `completion-regexp-list' in the docstring.
12218
3a28db80
DL
122192000-02-14 Dave Love <fx@gnu.org>
12220
12221 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
12222
fb4a568d
SM
122232000-02-14 Stefan Monnier <monnier@cs.yale.edu>
12224
12225 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
12226 to Emacs' syntax. Also fix the comment about set/not-set meanings
12227 since Emacs syntax is not the value 0 any more.
12228 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
12229 since it's now part of RE_SYNTAX_EMACS.
12230
1063ebb5
DL
122312000-02-12 Dave Love <fx@gnu.org>
12232
52283633 12233 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 12234
fb07a302
GM
122352000-02-12 Gerd Moellmann <gerd@gnu.org>
12236
12237 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
12238
aaf2320c
DL
122392000-02-12 Dave Love <fx@gnu.org>
12240
12241 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
12242
12243 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
12244 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
12245 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
12246
12247 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
12248
12249 * s/nextstep.h: Don't define HAVE_ALLOCA.
12250
12251 * config.in: Add vfork bits.
12252
eedf8bde
GM
122532000-02-12 Gerd Moellmann <gerd@gnu.org>
12254
12255 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
12256 unwind function to undo the effect of stopping atimers.
12257
52283633 12258 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
12259
12260 * atimer.c (stopped_atimers): New variable.
12261 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
12262 New functions.
12263
12264 * atimer.h (stop_other_atimers, run_all_atimers)
12265 (unwind_stop_other_atimers): Add function prototypes.
427ec082 12266
eedf8bde
GM
12267 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
12268
8476c2f8
KR
122692000-02-11 Ken Raeburn <raeburn@gnu.org>
12270
12271 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
12272 library may depend on jpeg.
12273 (atimer.o): Depends on atimer.c.
12274
0e85e4a3
KH
122752000-02-11 Kenichi Handa <handa@etl.go.jp>
12276
12277 * insdel.c (del_range_1): Call update_compositions.
12278 (del_range_both): Call update_compositions just once..
12279
97fa0cc8
DL
122802000-02-10 Dave Love <fx@gnu.org>
12281
12282 * xfns.c (create_frame_xic): Fix initialization of automatic
12283 aggregates for pcc.
12284
25566a3c
KH
122852000-02-09 Kenichi Handa <handa@etl.go.jp>
12286
12287 * ccl.c (CCL_MAKE_CHAR): New macro.
12288 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
12289 registers by CCL_MAKE_CHAR before calling translate_char.
12290 <CCL_TranslateCharacterConstTbl> Likewise.
12291
69da54ba
DL
122922000-02-08 Dave Love <fx@gnu.org>
12293
12294 * lread.c (__EXTENSIONS__): Define.
12295
f7136ee8
GM
122962000-02-08 Gerd Moellmann <gerd@gnu.org>
12297
12298 * puresize.h (BASE_PURESIZE): Increase to 650000.
12299
7768790b
EZ
123002000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
12301
12302 * msdos.c (XMenuActivate): Turn off the cursor after displaying
12303 the help message.
12304
38fd211b
EZ
123052000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
12306
12307 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
12308 md, mh, mb, mr, and me to the fake termcap entry.
12309
66e4690f
KR
123102000-02-06 Ken Raeburn <raeburn@gnu.org>
12311
12312 * sound.c (sound_cleanup): Don't call device close routine if the
12313 function pointer is null.
12314
a75dfea0
AI
123152000-02-06 Andrew Innes <andrewi@gnu.org>
12316
12317 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
12318 around image definitions and prototypes.
12319 (gamma_correct) [WINDOWSNT]: New prototype.
12320
12321 * w32term.c (x_make_frame_visible): Replace call to
12322 input_poll_signal with poll_for_input.
12323
12324 * window.c [WINDOWSNT]: Include w32term.h.
12325
12326 * xdisp.c [WINDOWSNT]: Include w32term.h.
12327
12328 * makefile.nt: Add dependencies on w32gui.h.
12329 (OBJ1): Include atimer.obj.
12330 ($(BLD)\atimer.obj): New dependency rule.
12331
12332 * w32.c (sigmask): New function (does nothing).
12333 (sigunblock): Ditto.
12334
12335 * frame.c [WINDOWSNT]: Include w32term.h.
12336
12337 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
12338
12339 * lread.c (syms_of_lread): Fix literal newlines.
12340
12341 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
12342 the string constant limit (2048 bytes) in MSVC.
12343 (main): Ditto.
12344
59ddecde
GM
123452000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
12346
52283633 12347 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
12348 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
12349 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
12350 dispatch the event.
12351
07590973
DL
123522000-02-04 Dave Love <fx@gnu.org>
12353
12354 * fileio.c: Remove some unused vars.
12355 (_GNU_SOURCE): Define (for euidaccess).
12356
12357 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
12358
12359 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
12360 gcpro1, gcpro2.
12361 (read_minibuf): Deal with allow_props correctly.
12362
649351f9
EZ
123632000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
12364
12365 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
12366
66e4690f 123672000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
12368
12369 * search.c (compile_pattern): If a cache entry has a nil regexp,
12370 fill in that entry instead of clobbering a previously cached
12371 string regexp.
12372
66e4690f 123732000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
12374
12375 * puresize.h (BASE_PURESIZE): Increase to 610000.
12376
d240a249
GM
123772000-02-02 Gerd Moellmann <gerd@gnu.org>
12378
12379 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
12380 can GC.
12381
ca91fb26
KH
123822000-02-02 Kenichi Handa <handa@etl.go.jp>
12383
25660570
KH
12384 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
12385 instead of incrementing ic directly.
12386 <CCL_WriteExprConst> Likewise.
12387 <ccl_set_expr>: Set ic to jump_address.
12388
ca91fb26
KH
12389 * fileio.c (e_write): Fix the handling of
12390 CODING_FINISH_INSUFFICIENT_SRC.
12391
2ede9689
DL
123922000-02-01 Dave Love <fx@gnu.org>
12393
12394 * editfns.c (Fpropertize): Doc fix.
12395
12396 * process.c (Fstart_process): Doc fix.
12397
12398 * eval.c: Fix various doc strings not to duplicate information
12399 from help-manyarg-func-alist.
12400
52283633 12401 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
12402
12403 * doc.c (Vhelp_manyarg_func_alist): New variable.
12404 (Fdocumentation): Use it.
12405 (syms_of_doc): Define it.
12406
b6680a0e
GM
124072000-01-31 Gerd Moellmann <gerd@gnu.org>
12408
2cb750ba
GM
12409 * xterm.c (xim_open_dpy): Remove unused local variable.
12410
52283633 12411 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
12412
12413 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
12414 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
12415
b6680a0e
GM
12416 * fns.c (sweep_weak_table): New function.
12417 (sweep_weak_hash_tables): Use it. Keep on marking until there
12418 is no more change.
12419
994c5afe
GM
124202000-01-30 Gerd Moellmann <gerd@gnu.org>
12421
12422 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
12423 that XTread_socket does not crash by trying to call XNoOp on a
12424 closed display.
427ec082 12425
f00276e3
JR
124262000-01-30 Jason Rumney <jasonr@gnu.org>
12427
12428 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
12429 Change selected_frame to SELECTED_FRAME ().
12430 (w32_console_mouse_position): Remove #ifndef MULE from around
12431 `insist' parameter.
12432
12433 * makefile.nt: Remove dosfns.obj.
12434
12435 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
12436
12437 * w32fns.c (w32_defined_color): Check for valid frame before
12438 applying gamma correction. Eliminate dependency on frame elsewhere.
12439 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
12440 (w32_to_x_font): Use resx and resy not height_in and width_in.
12441 (x_to_w32_font): Doc fix.
12442 (xlfd_strip_height): New function to strip and return font height.
12443 (w32_font_match): Compare height separately from rest of xlfd
12444 spec, using xlfd_strip_height.
12445
12446 * w32term.c (w32_term_init): Swap resx and height_in, resy and
12447 width_in. Use w32_defined_color in place of defined_color.
12448
12449 * w32faces.c: Merge more of DOS and X specifics in preparation for
12450 merge with xfaces.c.
12451 (defined_color): Remove FIXME comment.
12452 (tty_color_name): Provide w32-specific function.
12453 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
12454
12455 * w32console.c (turn_on_face, turn_off_face): Removed.
12456 (w32_face_attributes): New function.
12457 (Global_variables): Reduce scope where possible.
12458 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
12459 fill attribute.
12460 (hl_mode): Don't modify text attributes.
12461 (write_glyphs): Don't do anything if len <= 0. Use
12462 w32_face_attributes to get attributes for drawing. Write
12463 terminating codes using char_attr_normal.
12464 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
12465 (update_begin, update_end): Likewise.
12466 (vga_stdcolor_name): New function.
12467 (initialize_w32_display): Remove char_attr_reverse and char_attr.
12468 (Fset_screen_color): Remove char_attr_reverse.
12469
b08e8bb2
GM
124702000-01-29 Gerd Moellmann <gerd@gnu.org>
12471
12472 * xfns.c (xic_set_preeditarea): Take window parameter and
12473 window-relative pixel-positions.
12474
12475 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
12476 is its frame's selected window.
12477 (xim_instantiate_callback): Likewise.
12478
12479 * xfns.c (x_create_im): Removed.
12480 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
12481 (supported_xim_styles): Renamed from supported_styles.
12482 (best_xim_style): Renamed from best_style.
12483 (create_frame_xic): Renamed from xic_create_frame.
12484 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 12485
b08e8bb2
GM
124862000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
12487
12488 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
12489 our frames, call XFilterEvent with 2nd parameter `None'.
12490 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
12491 returning XBufferOverflow.
52283633 12492 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
12493 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
12494 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
12495 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
12496 (xim_initialize, xim_close)
12497 [HAVE_X_I18N && HAVE_X11R6]: New functions.
12498 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
12499 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
12500 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
12501
12502 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
12503 and `xim_styles'.
12504 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
12505 `xic_style' and `xic_xfs'.
12506 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
12507 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
12508 (FRAME_XIM): Removed.
12509
12510 * xfns.c (supported_styles): New variable.
12511 (DEFAULT_STYLE, DEFAULT_FONT): New macros
12512 (xic_create_xfontset, best_style, xic_create_frame)
12513 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
12514 (xic_set_xfontset): New functions.
12515
142e109c
DL
125162000-01-28 Dave Love <fx@gnu.org>
12517
12518 * s/irix6-5.h: Revert last change after change to irix5-0.h.
12519
12520 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
12521
b02786f9
GM
125222000-01-28 Gerd Moellmann <gerd@gnu.org>
12523
d060bc9f
GM
12524 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
12525 for *scratch* if it already existed.
12526
b02786f9
GM
12527 * emacs.c (USAGE): New macro.
12528 (main): Use it to display usage information.
12529
2c52d7e4
EZ
125302000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
12531
12532 Support for the menu-help feature:
12533
52283633 12534 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
12535
12536 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
12537 part of the line to the termscript file.
12538 (IT_clear_to_end): Clear the entire line, not just its beginning.
12539 (menu_help_message, prev_menu_help_message): New variables.
12540 (IT_menu_make_room): Make room for the help_text member.
12541 (IT_menu_display): New argument disp_help; all callers changed.
12542 If disp_help is non-zero, store the help text of the active menu
12543 item in menu_help_message.
12544 (XMenuAddPane): Initialize the help_text member to NULL.
12545 (XMenuAddSelection): New argument help_text. Store it in the
12546 XMenu structure.
12547 (XMenuActivate): New argument help_callback. If the value of
12548 menu_help_message has changed since the last time, display the
12549 menu help message text while waiting for the mouse to move. Clear
12550 the echo area before exiting.
12551 (XMenuDestroy): Free the help_text member.
12552
ffe0bcd1
GM
125532000-01-27 Gerd Moellmann <gerd@gnu.org>
12554
12555 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
12556 XMenuAddSelection. Pass help callback to XMenuActivate.
12557 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
12558
50dbd23f
EZ
125592000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
12560
12561 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
12562 and EMACS_SET_USECS.
12563
f5941bf8
GM
125642000-01-26 Dave Love <fx@gnu.org>
12565
6c67ddee
DL
12566 * editfns.c (Fchar_after, Fchar_before): Doc fix.
12567
f5941bf8
GM
12568 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
12569 an error may be signalled.
12570
9e49c990
GM
125712000-01-26 Gerd Moellmann <gerd@gnu.org>
12572
fc3cb460
GM
12573 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
12574 LD_SWITCH_SYSTEM inherited from irix5-0.h.
12575
9e49c990
GM
12576 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
12577
d0c037d8
GM
125782000-01-25 Gerd Moellmann <gerd@gnu.org>
12579
12580 * charset.c (Fstring): If there is a multibyte char among
12581 the args, always return a multibyte string.
12582
e12489f9
GM
125832000-01-25 Gerd Moellmann <gerd@gnu.org>
12584
12585 * sysdep.c (sys_select): Turn atimers off and on instead of
12586 recording and restoring old alarm handler
12587
12588 * process.c (toplevel): Include atimer.h.
12589 (create_process_1): Rewritten.
12590 (create_process): Use atimers instead of alarm.
12591 (wait_reading_process_input) [hpux]: Turn atimers off instead
12592 of turning off SIGALRM.
12593 (wait_reading_process_input): Turn off atimers instead off
12594 calling stop_polling.
12595
12596 * emacs.c (main): Call init_atimer.
12597
12598 * keyboard.c (toplevel): Include systime.h and atimer.h.
12599 (polling_for_input): Removed because unused.
12600 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
12601 (poll_timer): New variable.
12602 (poll_for_input, poll_for_input_1): New functions.
12603 (start_polling, stop_polling): Rewritten.
12604
12605 * keyboard.h (polling_for_input): Removed.
427ec082 12606
e12489f9
GM
12607 * atimer.h, atimer.c: New files.
12608
12609 * Makefile.in (obj): Add atimer.o.
12610 (atimer.o): New target.
12611
12612 * blockinput.h (pending_atimers): Add extern declaration.
12613 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
12614
12615 * lisp.h (popup_activated_flag): Add extern declaration.
12616
12617 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 12618 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
12619 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
12620
12621 * xterm.c (toplevel): Include atimer.h.
12622 (toolkit_scroll_bar_interaction): New variable.
12623 (Fxt_process_timeouts): Removed.
12624 (x_process_timeouts): New function.
12625 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
12626 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
12627 (x_make_frame_visible): Call poll_for_input_1 instead of
12628 input_poll_signal. Don't call alarm.
12629 (x_initialize): Install timer calling x_process_timeouts.
427ec082 12630
1e5279b9
DL
126312000-01-24 Dave Love <fx@gnu.org>
12632
6c67ddee 12633 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
12634 Don't use -cckr -- apparently not now necessary.
12635
edf6aeb8
EZ
126362000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
12637
12638 * msdos.c (IT_menu_display): Truncate long menu lines at the right
12639 screen boundary.
12640
9badad41
JR
126412000-01-23 Jason Rumney <jasonr@gnu.org>
12642
12643 * w32fns.c (w32_defined_color): Apply gamma correction before
12644 trying to map to the palette.
12645 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
12646 to w32_clear_rect.
12647
12648 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
12649 here. Callers changed to always pass real device context.
12650 (w32_draw_bitmap): Likewise.
12651 (w32_get_glyph_overhangs): Likewise.
52283633 12652 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
12653 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
12654 pfnSetScrollInfo and SetScrollRange.
12655 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
12656 back into MULE characters after decoding them.
12657 (x_get_glyph_face_and_encoding): Likewise.
12658 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
12659 GetCharABCWidthsW fails, since this is defined on Windows 9x.
12660 (x_produce_glyphs): Calculate per char metrics for a character
12661 that we know exists in default font when font_not_found_p is true.
12662
63bd786b
JR
126632000-01-22 Jason Rumney <jasonr@gnu.org>
12664
12665 * makefile.nt (intervals.obj, composite.obj): New modules.
12666 (composite.h): Added as dependency where appropriate.
12667
12668 * w32gui.h (XGCValue): New struct for emulating X GCs.
12669
12670 * w32term.h (XCharStruct): New struct for emulating X.
12671
12672 * w32console.c (turn_on_face, turn_off_face): New functions.
12673 (change_line_highlight): New prototype for new redisplay.
12674 (write_glyphs): Support multibyte text. Support faces.
12675
52283633 12676 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
12677
12678 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
12679 throughout. struct frame * in place of FRAME_PTR.
12680 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 12681 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
12682 (w32_get_arg): Renamed from x_get_arg.
12683 (Fx_file_dialog): New function.
12684 (w32_list_fonts): Check cache before asking system.
12685 (Vw32_enable_synthesized_fonts): New variable.
12686 (Vw32_enable_italics): Obsolete, removed.
12687
12688 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
12689 Use SELECTED_FRAME macro.
12690
12691 * w32menu.c: Add skeleton support for help strings on menus.
12692 (add_menu_item): Native checkbox and radio support added, but not
12693 yet enabled due to bugs.
12694 (push_menu_item): Add parameters type, selection and help.
12695 Callers updated.
12696 Formatting changes to reduce unnecessary diffs with xmenu.c.
12697
12698 * w32select.c (Fw32_set_clipboard_data): Update call to
12699 find_charset_in_str.
12700
12701 * w32term.c: Complete rewrite for new redisplay based on new
12702 xterm.c with necessary sections merged back in from old w32term.c.
12703
6ffd3cf7 127042000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
12705
12706 * data.c (set_internal): Further fix in same criterion.
12707
6ffd3cf7 127082000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
12709
12710 * data.c (set_internal): Fix the criteria for whether
12711 to swap out the old cached binding.
12712
60af03f1
DL
127132000-01-19 Dave Love <fx@gnu.org>
12714
12715 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
12716
f9be074f
KH
127172000-01-18 Kenichi Handa <handa@etl.go.jp>
12718
12719 * regex.c (re_compile_fastmap): While checking a range table for
12720 `charset', skip flag bits for a character class correctly.
12721
52b8dbf9
GM
127222000-01-17 Gerd Moellmann <gerd@gnu.org>
12723
d36100c9
GM
12724 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
12725
52283633 12726 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
12727
12728 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 12729 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
12730
12731 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
12732 MENU_ITEMS_ITEM_.*.
12733 (MENU_ITEMS_ITEM_HELP): New enumerator.
12734 (push_menu_item): Add parameter HELP. Record help in menu_items.
12735 (single_menu_item, single_submenu, list_of_items): Call
12736 push_menu_item with new parameter.
12737 (single_submenu): Set help string in widget value.
12738 (menu_highlight_callback): New function.
12739 (set_frame_menubar): Call lw_create_widget with new
12740 parameter list.
12741 (xmenu_show, xdialog_show): Ditto.
12742
3139018f
GM
127432000-01-13 Gerd Moellmann <gerd@gnu.org>
12744
12745 * sound.c (Fplay_sound): Improve doc string.
12746
83c8f461
RS
127472000-01-11 Richard M. Stallman <rms@gnu.org>
12748
12749 * lisp.h (set_internal): Enter the new arg.
12750
12751 * eval.c (specbind): Record buffer-local variables specially,
12752 indicating which buffer's binding was saved.
12753 (unbind_to): Restore buffer-local variables specially
12754 in the proper buffer.
12755
12756 * data.c (set_internal): New arg BUF.
427ec082 12757
83c8f461
RS
12758 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
12759 * data.c (Fset): Pass new arg to set_internal.
12760 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 12761
1fab1775
GM
127622000-01-11 Gerd Moellmann <gerd@gnu.org>
12763
52283633 12764 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 12765
83c8f461 127662000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
12767
12768 * minibuf.c (Ftry_completion): Doc fix.
12769
7a85e4df
GM
127702000-01-11 Gerd Moellmann <gerd@gnu.org>
12771
12772 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
12773 vector, too.
12774
a970dae4
AS
127752000-01-11 Andreas Schwab <schwab@suse.de>
12776
12777 * coding.c (code_convert_region): Initialize total_skip.
12778
c65d14ee
DL
127792000-01-08 Dave Love <fx@gnu.org>
12780
12781 * eval.c (Fuser_variable_p): Check customizability too.
12782
834938d2
GM
127832000-01-07 Gerd Moellmann <gerd@gnu.org>
12784
12785 * minibuf.c (Fcompleting_read): Doc fix.
12786
e0303cd6
GM
127872000-01-05 Gerd Moellmann <gerd@gnu.org>
12788
8a26744b
GM
12789 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
12790 -L /usr/local/lib.
12791
e0303cd6
GM
12792 * xfns.c (x_create_im): New function to set IM and IC of a frame.
12793 Check that input style is supported before trying to create an
12794 IC for it.
12795 (x_window): Call x_create_im.
427ec082 12796
2e471eb5
GM
127972000-01-04 Gerd Moellmann <gerd@gnu.org>
12798
560a7bd2
GM
12799 * xfns.c (current_gif_memory_src): New variable.
12800 (gif_load): Record the address of the current memory source
12801 in current_gif_memory_src.
12802 (gif_read_from_memory): Use current_gif_memory_src.
12803
f9ee84a3
GM
12804 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
12805 macros statement form.
12806
d1299cde
GM
12807 * sound.c (struct sound): Renamed from struct sound_file.
12808 (struct sound): Add members `data' and `header_size'.
12809 (enum sound_attr): Add SOUND_DATA.
12810 (current_sound, current_sound_device): Variables renamed from
12811 sound_file and sound_device.
12812 (parse_sound): Parse :data.
12813 (parse_sound): Handle sound data in strings.
12814 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 12815 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
12816 needed header size.
12817 (wav_play, au_play): Play sounds from string data.
12818
2e471eb5
GM
12819 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
12820
12821 * lisp.h: Add prototype for allocate_string_data.
12822
52283633 12823 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
12824
12825 * alloc.c (mark_buffer): Remove code in #if 0.
12826 (gc_sweep): Ditto.
12827 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
12828 (strings_consed): New variable.
12829 (allocate_string): Set it.
12830 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
12831 (Fmemory_use_counts): Return strings_consed. Use Flist.
12832
12833 * alloc.c: General cleanup in comments etc. Remove conditional
12834 compilation for `standalone'.
12835
12836 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
12837
12838 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
12839 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
12840 (DONT_COPY_FLAG): Removed.
12841 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
12842 (struct sdata, struct sblock): New
12843 (struct string_block): Rewritten.
12844 (STRINGS_IN_STRING_BLOCK): New macro.
12845 (oldest_sblock, current_sblock, total_strings, total_free_strings)
12846 (large_sblocks, string_blocks, string_free_list): New variables.
12847 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
12848 (init_strings): Rewritten.
12849 (allocate_string, allocate_string_data, compact_small_strings)
12850 (free_large_strings, sweep_strings): New functions.
12851 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
12852 (struct string_block_head, current_string_block)
12853 (first_string_block, large_string_blocks, STRING_FULLSIZE)
12854 (STRING_PAD): Removed.
12855 (make_uninit_multibyte_string, make_pure_string): Rewritten.
12856 (Fgarbage_collect): Don't set mark bit in large strings.
12857 (mark_object): Mark strings differently. Mark symbol names
12858 differently.
12859 (survives_gc_p): Test marked strings differently.
427ec082 12860 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
12861 symbol names.
12862 (compact_strings): Removed.
12863
42608ba8
EZ
128642000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
12865
12866 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
12867 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
12868
e0a09e1a
KH
128692000-01-04 Kenichi Handa <handa@etl.go.jp>
12870
dd9f0750 12871 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 12872 in a non-empty buffer.
dd9f0750 12873
3c0f3b15 12874 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 12875
44cd3ae5
GM
128762000-01-03 Gerd Moellmann <gerd@gnu.org>
12877
12878 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
12879 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
12880
12881 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
12882
c182a70f
EZ
128832000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
12884
12885 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
12886 need to test for MSDOS frames.
12887
24480d5b
EZ
128882000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
12889
12890 * dosfns.c (unspecified_colors): Remove.
12891 (msdos_stdcolor_idx): Use global variables unspecified_fg and
12892 unspecified_bg.
12893 (msdos_stdcolor_name): Return strings for unspecified fore- and
12894 back-ground colors.
12895
12896 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 12897 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
12898 (tty_color_name): Return Lisp strings for unspecified fore- and
12899 back-ground colors.
12900 (Finternal_set_lisp_face_attribute): Remove the special treatment
12901 for Qunspecified_{f,b}g.
52283633 12902 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 12903
047f434a
GM
129042000-01-03 Gerd Moellmann <gerd@gnu.org>
12905
12906 * xdisp.c (reseat_at_next_visible_line_start): Position before
12907 newline only if ending up on a newline.
12908 (next_element_from_ellipsis): Return success. Handle case of
52283633 12909 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
12910 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
12911 returns 0.
12912
d684c676
EZ
129132000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
12914
12915 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
12916 (Fcolor_supported_p): Renamed from face-color-supported-p.
12917
5fe1d139
EZ
129182000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
12919
12920 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
12921 list of colors renamed to tty-defined-color-alist.
12922 (tty_color_name): Pass the frame to tty-color-by-index.
12923 (realize_tty_face): tty-color-alist is now a function which
12924 accepts the frame as argument.
12925
52283633 12926 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 12927
816be8b8
EZ
129282000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
12929
12930 * term.c (insert_glyphs): Pass glyph, not &glyph, to
12931 encode_terminal_code.
12932
b635321e
EZ
129332000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
12934
12935 * dispnew.c (mode_line_string): Support termcap frames as well.
12936
9b784e96
GM
129372000-01-01 Gerd Moellmann <gerd@gnu.org>
12938
27189709
GM
12939 * syntax.c (Fforward_word): Undo previous change.
12940
12941 * editfns.c (Fconstrain_to_field): Don't constrain if
12942 inhibit-field-text-motion is non-nil.
12943 (Fline_beginning_position): Undo previous change.
12944 (Fline_end_position): Ditto.
12945
12946 * syntax.c (Fforward_word): Notice field boundaries only if
12947 inhibit-field-text-motion is nil.
12948
12949 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
12950
12951 * editfns.c (Vinhibit_field_text_motion): New variable.
12952 (inhibit-field-text-motion): New DEFVAR_LISP.
12953 (Fline_beginning_position, Fline_end_position): Notice field
12954 boundaries only if inhibit-field-text-motion is nil.
12955
45158a91
GM
12956 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
12957 All calls adjusted.
12958 (x_build_heuristic_mask): Likewise.
12959 (xbm_load_image_from_file): Change error output.
12960 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
12961 (gif_load, gs_load, x_kill_gs_process): Ditto.
12962
9b784e96
GM
12963 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
12964 color indices when accessing raster pixels.
63cec32f
GM
12965 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
12966 one of :file or :data.
12967 (enum pbm_keyword_index): Add PBM_DATA.
12968 (pbm_format): Add :data.
12969 (pbm_image_p): Allow either :file or :data.
12970 (pbm_read_file): New function.
12971 (pbm_scan_number): Rewritten to read from string.
12972 (pbm_load): Support :data.
9b784e96 12973
2cb085db 12974See ChangeLog.8 for earlier changes.
6922b018
KH
12975
12976;; Local Variables:
49b3bd82 12977;; coding: iso-2022-7bit
6922b018 12978;; End:
2a34a036
GM
12979
12980 Copyright (C) 2001 Free Software Foundation, Inc.
12981 Copying and distribution of this file, with or without modification,
12982 are permitted provided the copyright notice and this notice are preserved.