*** empty log message ***
[bpt/emacs.git] / src / ChangeLog
1 2001-10-13 Eli Zaretskii <eliz@is.elta.co.il>
2
3 * dired.c (file_name_completion): Ignore a candidate directory if
4 it matches an element in completion-ignored-extensions that ends
5 in a slash.
6 (syms_of_dired) <completion-ignored-extensions>: Mention the above
7 feature in the doc string.
8 (Ffile_name_completion): Ditto.
9
10 2001-10-12 Stefan Monnier <monnier@cs.yale.edu>
11
12 * indent.c (skip_invisible): Don't skip "ellipsisized" text.
13
14 * xfns.c (syms_of_xfns): Update calls to Fprovide.
15
16 * lisp.h (Fprovide): Update prototype.
17 (Ffeaturep, invisible_p): Remove.
18
19 * xdisp.c (init_iterator): Be more strict with bytepos and charpos.
20 (DOLIST, LOOP_PROPVAL): New macros.
21 (invisible_p, invisible_ellipsis_p): Use them.
22 (invisible_noellipsis_p): New function.
23 (syms_of_xdisp): Use empty_string.
24
25 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder.
26
27 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder.
28 (syms_of_lread) <Vafter_load_alist>: Update docstring.
29
30 * print.c (Fwith_output_to_temp_buffer): Align with
31 internal_with_output_to_temp_buffer.
32 (print_preprocess): Use traverse_intervals_noorder.
33 (print_object): Update call to traverse_intervals.
34
35 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro.
36 (traverse_intervals_noorder, invisible_noellipsis_p): New funs.
37
38 * intervals.c (traverse_intervals_noorder): New function.
39 (search_for_interval, count_intervals): Use it.
40 (traverse_intervals): Use less stack space and drop `depth' arg.
41
42 * fns.c (Ffeaturep): Add new `subfeature' arg.
43 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'.
44 (Qsubfeatures): New var.
45 (syms_of_fns): Initialize it.
46
47 * keymap.c (Fkey_description): Use empty_string.
48 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove.
49 (syms_of_keymap): Setup inheritance between maps.
50 Don't export Sdescribe_bindings_internal any more.
51
52 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings.
53
54 2001-10-12 Gerd Moellmann <gerd@gnu.org>
55
56 * xterm.c (notice_overwritten_cursor): Renamed from
57 note_overwritten_text_cursor. Rewritten to take glyph widths into
58 account.
59
60 2001-10-12 Eli Zaretskii <eliz@is.elta.co.il>
61
62 * lread.c (syms_of_lread) <load-suffixes>: Fix last change:
63 multi-line strings without a trailing "\n\".
64
65 2001-10-12 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
66
67 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is
68 defined.
69
70 2001-10-11 Stefan Monnier <monnier@cs.yale.edu>
71
72 * callint.c (Fcall_interactively): Remove unused code. Use XCAR.
73
74 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
75 * w32proc.c (sys_spawnve):
76 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
77 * w32.c (check_windows_init_file):
78 * sound.c (Fplay_sound):
79 * emacs.c (init_cmdargs):
80 * process.c (Fstart_process): Update calls to openp.
81
82 * callproc.c (Vexec_suffixes): New var.
83 (Fcall_process): Update call to openp.
84 (decode_suffixes): New function.
85 (syms_of_callproc): Init exec-suffixes.
86
87 * lread.c (Vload_suffixes, default_suffixes): New vars.
88 (openp): Take a lisp list of suffixes.
89 Check for file-name-handlers even if the file was absolute already.
90 (syms_of_lread): Declare load-suffixes.
91 (Fload): Fix up call to openp.
92 Don't bother checking for file-name-handler at the very beginning.
93
94 * keymap.h (Fcopy_keymap): Don't export.
95
96 * lisp.h (empty_string): Declare.
97 (Vload_suffixes, Vexec_suffixes): Declare.
98 (openp): Update prototype.
99
100 * emacs.c (empty_string): New var.
101 (syms_of_emacs): Initialize it.
102
103 * search.c (wordify): Use it.
104
105 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the
106 selected window if it's not displayed there. Handle the case
107 when the window is dedicated.
108 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore.
109
110 * undo.c (Fprimitive_undo): Use XCAR/XCDR.
111
112 * syntax.h (struct gl_state_s): Change the meaning of b_property.
113 Remove left_ok and right_ok.
114 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE)
115 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the
116 new meaning of b_property.
117
118 * syntax.c (update_syntax_table): Simplify.
119 (Fforward_comment): Don't skip quoted chars when going backward.
120
121 2001-10-11 Gerd Moellmann <gerd@gnu.org>
122
123 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons
124 in case I is of some unsigned type, in which case
125 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the
126 comparison becomes bogus.
127
128 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float.
129 (Fuser_full_name): Fix bug treating a float as a fixnum.
130
131 * data.c (Fstring_to_number): Use make_fixnum_or_float.
132
133 * lisp.h (make_fixnum_or_float): New macro.
134
135 * lisp.h (circular_list_error): Add prototype.
136
137 * data.c (Qcircular_list): New variable.
138 (circular_list_error): New function.
139 (syms_of_data): Initialize it Qcircular_list.
140
141 2001-10-10 Stefan Monnier <monnier@cs.yale.edu>
142
143 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c,
144 casefiddle.c, buffer.c: Include keymap.h.
145
146 2001-10-10 Gerd Moellmann <gerd@gnu.org>
147
148 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics'
149 options. From Dave Love <d.love@dl.ac.uk>.
150
151 2001-10-09 Gerd Moellmann <gerd@gnu.org>
152
153 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro.
154 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
155
156 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to
157 unsigned char.
158 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>.
159
160 2001-10-08 Andrew Innes <andrewi@gnu.org>
161
162 * lisp.h [max]: Undef min and max before redefining them.
163
164 * w32gui.h: Do not undef min and max.
165
166 * w32heap.h: Do not undef min and max.
167
168 * s/ms-w32.h: Do not undef min and max.
169
170 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
171
172 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions.
173
174 2001-10-08 Sam Steingold <sds@gnu.org>
175
176 * keymap.c (current-active-maps): Quote newlines (compilation error).
177
178 2001-10-08 Eli Zaretskii <eliz@is.elta.co.il>
179
180 * Makefile.in (lisp, shortlisp): Replace bindings.el with
181 bindings.elc, since otherwise doc strings in bindings.el get wrong
182 offsets in etc/DOC.
183
184 2001-10-08 Stefan Monnier <monnier@cs.yale.edu>
185
186 * lisp.h: Remove the entries for keymap.c (moved to keymap.h).
187
188 * keyboard.h (map_prompt): Remove.
189
190 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c,
191 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h.
192
193 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
194
195 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt.
196
197 * keyboard.c (map_prompt): Remove.
198 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt):
199 Use Fkeymap_prompt.
200
201 * keymap.h: New file. Extracted from lisp.h.
202
203 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs.
204 (accessible_keymaps_1): New function.
205 (Faccessible_keymaps, accessible_keymaps_char_table): Use it.
206 (Fwhere_is_internal): Use Fcurrent_active_maps.
207 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings.
208 Insert in current buffer rather than standard-output.
209 Don't call `help-mode'. Export to elisp.
210 (describe_buffer_bindings): New wrapper.
211 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps
212 and Sdescribe_buffer_bindings.
213
214 2001-10-08 Gerd Moellmann <gerd@gnu.org>
215
216 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]:
217 Remove code setting signal handler.
218
219 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]:
220 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>.
221
222 2001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
223
224 * keyboard.c: Don't define min/max.
225
226 2001-10-08 Gerd Moellmann <gerd@gnu.org>
227
228 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c:
229 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c
230 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c
231 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c
232 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c:
233 Don't define min/max.
234
235 * lisp.h (min, max): New macros.
236
237 * puresize.h (BASE_PURESIZE): Increase to 725000.
238
239 2001-10-08 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
240
241 * xfaces.c (free_frame_menubar): Add prototype.
242
243 * lisp.h (init_window): Add prototype.
244
245 * editfns.c: Include ctype.h.
246
247 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
248 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
249 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused
250 variable `sb'.
251
252 * xfns.c (Fx_hide_tip): Fix typo in a doc string.
253 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables
254 `popup_activated_flag' and `title'.
255
256 * doc.c (Fdocumentation_property): Fix typo in a doc string.
257
258 * emacs.c (main): Remove extra `;'.
259
260 * atimer.h (struct atimer): Fix typos in a comment.
261
262 * atimer.c: Fix typo.
263
264 * Makefile.in: Fix typo.
265
266 * README: Remove obsolete part mentioning removed VMS file.
267
268 2001-10-07 Miles Bader <miles@gnu.org>
269
270 * Makefile.in (lisp, shortlisp): Add `button.elc'.
271
272 2001-10-07 Ken Raeburn <raeburn@gnu.org>
273
274 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
275 Lisp_Object.
276
277 * lisp.h (Ffield_end): Declare.
278
279 2001-10-07 Gerd Moellmann <gerd@gnu.org>
280
281 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
282
283 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
284
285 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
286
287 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
288
289 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
290 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
291
292 * alloc.c (inhibit_garbage_collection): Simplify.
293 (Fmemory_use_counts): Ditto.
294
295 * data.c (most_positive_fixnum, most_negative_fixnum): New variables.
296 (syms_of_data): DEFVAR_INT most-positive-fixnum and
297 most-negative-fixnum.
298
299 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
300 (FIXNUM_OVERFLOW_P): New macros.
301
302 2001-10-06 Miles Bader <miles@gnu.org>
303
304 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
305 scroll_bar_bottom_shadow_pixel fields.
306 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
307 for the shadows, and tell the toolkit about them if we succeed.
308 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
309 Free scroll-bar shadow colors.
310 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
311 Free scroll-bar shadow colors when the background color changes.
312 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
313 Initialize scroll-bar shadow-color fields.
314
315 2001-10-05 Gerd Moellmann <gerd@gnu.org>
316
317 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
318
319 2001-10-05 Miles Bader <miles@gnu.org>
320
321 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
322 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
323 New functions (were in simple.el).
324 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
325 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
326 (syms_of_minibuf): Initialize them.
327
328 2001-10-05 Gerd Moellmann <gerd@gnu.org>
329
330 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
331 (tiff_load): Install them as error and warning handler.
332
333 2001-10-04 Andrew Innes <andrewi@gnu.org>
334
335 * w32fns.c (x_to_w32_color): Fix argument to alloca.
336 (w32_load_system_font): Don't believe what GetLanguageFontInfo
337 says; query codepage info directly to determine if font is double byte.
338 (x_to_w32_charset): Handle private format for unknown charsets.
339 Handle wildcards in charset spec, by ignoring them.
340 (w32_codepage_for_font): Fix argument to alloca. Don't remove
341 "*-" prefix from charset.
342 (x_to_w32_font): Enlarge remainder array for safety. Specifically
343 handle the truncated font spec form constructed by font_list_1, so
344 that we correctly identify the charset fields. Don't remove "*-"
345 prefix from charset.
346 (w32_list_synthesized_fonts): Fix argument to alloca.
347
348 2001-10-04 Stefan Monnier <monnier@cs.yale.edu>
349
350 * window.h (MINI_WINDOW_P): Use NILP.
351
352 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
353
354 * termhooks.h (struct input_event): Use proper type for `kind'.
355
356 2001-10-04 Gerd Moellmann <gerd@gnu.org>
357
358 This handles unknown keysyms better than before. For example,
359 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
360 Emacs formerly completely ignored F5. With the change, it derives
361 a key symbol from the name of the X keysym, `ccaron' in this case.
362 Reported by Martin Buchholz.
363
364 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
365 unknown keysyms.
366
367 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
368 that EVENT->code isn't a function key, use the keysym's name.
369
370 2001-10-04 Gerd Moellmann <gerd@gnu.org>
371
372 FOREACH is a macro that should make it easier to loop over Lisp
373 lists with checks for cycles and proper lists.
374
375 * lisp.h (LIST_END_P, FOREACH): New macros.
376
377 2001-10-04 Gerd Moellmann <gerd@gnu.org>
378
379 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
380 called for a lost connection. Prevent dumping core in this case.
381 Instead print the X error, and exit. On user request.
382
383 * xterm.c (error_msg): New variable.
384 (x_fatal_error_signal): New function.
385 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
386 as fatal_error_signal_hook around the call to XtCloseDisplay.
387
388 * emacs.c (fatal_error_signal_hook): New variable.
389 (fatal_error_signal): Call that function.
390
391 2001-10-04 Gerd Moellmann <gerd@gnu.org>
392
393 With this, Emacs prints how much pure storage it will
394 approximately need in case pure storage overflows while dumping.
395
396 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
397 New variables.
398 (init_alloc_once): Initialize new variables.
399 (PURE_POINTER_P): Use new variables.
400 (pure_alloc): If pure storage overflows, allocate from the heap.
401 (check_pure_size): New function.
402 (Fgarbage_collect): Don't GC if pure storage has overflowed.
403
404 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
405 (check_pure_size): Add prototype.
406
407 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
408
409 2001-10-04 Gerd Moellmann <gerd@gnu.org>
410
411 This adds a post-gc-hook that's run with GC inhibited.
412 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
413
414 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
415 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
416 (Fgarbage_collect): Run post-gc-hook.
417
418 2001-10-04 Gerd Moellmann <gerd@gnu.org>
419
420 This adds `defvaralias' and `indirect-variable'. Changes not
421 directly related to this feature are there to gain the same
422 performance again as before variable aliases.
423
424 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
425 code to get and set symbol values, to take defvaralias into account.
426
427 (Note: the new `constant' bit-flag in symbols would make it
428 possible to define arbitrary read-only variables, e.g. with
429 `defconst'.)
430
431 Documentation is in lispref/variables.texi. Added to NEWS.
432
433 * lisp.h (enum symbol_interned): New enumeration.
434 (struct Lisp_Symbol): Remove member `obarray', add
435 `indirect_variable', `constant', and `interned'.
436 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
437 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
438 (indirect_variable): Add prototype.
439
440 * print.c (print_preprocess, print_object): Test internedness of
441 symbols differently.
442
443 * lread.c (Fintern, Funintern): Set symbol's interned and constant
444 bit-fields.
445 (init_obarray): Likewise for t and nil.
446
447 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
448 (Fdefvaralias): New function.
449 (specbind): Simplify the test if symbol is a constant.
450 (syms_of_eval): Defsubr Fdefvaralias.
451
452 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
453 (Qcyclic_variable_indirection): New variable.
454 (Fkeywordp): Check for internedness differently.
455 (Fmakunbound): Simplify the test if symbol is a constant.
456 (indirect_variable, Findirect_variable): New functions.
457 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
458 aliased symbol.
459 (let_shadows_buffer_binding_p): Check for variable aliases.
460 (set_internal): Simplify the test if SYMBOL is a constant.
461 If SYMBOL has a buffer-local value and is an alias, use the aliased
462 symbol instead.
463 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
464 Sindirect_variable.
465
466 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
467 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
468 set directly.
469
470 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
471
472 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
473 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
474 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
475
476 2001-10-04 Gerd Moellmann <gerd@gnu.org>
477
478 * Branch for 21.1.
479
480 2001-10-03 Miles Bader <miles@gnu.org>
481
482 * callproc.c (syms_of_callproc): Explicitly state in the
483 documentation for `process-environment' that earlier entries take
484 precedence over later ones.
485
486 2001-10-02 Miles Bader <miles@gnu.org>
487
488 * textprop.c (Fnext_char_property_change)
489 (Fprevious_char_property_change): Remove reference to non-existant
490 argument OBJECT from doc-string.
491
492 2001-10-01 Gerd Moellmann <gerd@gnu.org>
493
494 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
495 (try_window_id): Skip back over lines ending in a newline from a
496 string.
497
498 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
499 New bit flag
500
501 2001-10-01 Richard M. Stallman <rms@gnu.org>
502
503 * search.c (Freplace_match): Doc fix.
504
505 2001-09-28 Andrew Innes <andrewi@gnu.org>
506
507 * w32menu.c (set_frame_menubar): Take into account that
508 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
509 <raeburn@gnu.org>.
510
511 2001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
512
513 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
514
515 2001-09-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
516
517 * s/gnu-linux.h: Fix a typo in comment.
518
519 2001-09-28 Andreas Schwab <schwab@suse.de>
520
521 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
522 nocombreloc, in case -z combreloc is the default.
523
524 2001-09-28 Gerd Moellmann <gerd@gnu.org>
525
526 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
527 really going on here.
528
529 2001-09-27 Stefan Monnier <monnier@cs.yale.edu>
530
531 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
532
533 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
534
535 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
536 utf-8, menu-bar, and latin-N.
537 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
538 unconditionally now.
539 (lisp): Add latin-N, since they are preloaded.
540
541 2001-09-27 Gerd Moellmann <gerd@gnu.org>
542
543 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
544 to the left. Some cleanup.
545
546 * xdisp.c (display_mode_element): One more case where a string's
547 multibyteness should be used for display.
548
549 2001-09-26 Gerd Moellmann <gerd@gnu.org>
550
551 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
552 reading at EOF.
553
554 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
555 of the only temporarily set echoing flag for deciding when
556 the cancel echoing.
557
558 * keyboard.c (echo_kboard): Make externally visible.
559
560 * lisp.h (echo_kboard): Declare extern.
561
562 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
563 fonts_changed_p if we need larger matrices due to vscrolling.
564 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
565 this round of redisplay if make_cursor_line_fully_visible fails.
566 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
567 (try_cursor_movement, try_scrolling): Use them instead of integers.
568
569 * dispextern.h (required_matrix_width, required_matrix_height):
570 Add prototypes.
571
572 * dispnew.c (required_matrix_width, required_matrix_height):
573 New functions.
574 (allocate_matrices_for_window_redisplay)
575 (allocate_matrices_for_frame_redisplay: Use them.
576 Remove parameters CH_DIM.
577
578 * xdisp.c (display_mode_lines): Temporarily set selected_frame
579 and selected_window to the frame of the window whose mode-lines
580 are displayed, and to the window itself.
581 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
582 here.
583
584 2001-09-25 Gerd Moellmann <gerd@gnu.org>
585
586 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
587 the image cache under us.
588
589 * xdisp.c (display_mode_element): If the mode element is a symbol
590 with a string value, use that string's multibyteness for displaying.
591
592 * keyboard.c (read_char): Don't clear a message for a switch-frame
593 event. From Stefan Monnier <monnier@cs.yale.edu>.
594
595 * xterm.c (fast_find_position) [0]: Add a presumably more correct
596 version for after 21.1.
597
598 * xdisp.c (row_containing_pos): Make externally visible.
599
600 * dispextern.h (row_containing_pos): Add prototype.
601
602 * process.c (send_process): Disable composition if from_byte < 0.
603 From Kenichi Handa <handa@etl.go.jp>.
604
605 2001-09-24 Gerd Moellmann <gerd@gnu.org>
606
607 * xterm.c (refreshicon): Function removed.
608
609 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
610
611 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
612
613 * xterm.c (toplevel): Remove includes in #if 0.
614
615 * process.c (sigchld_handler) [LINUX]: Don't return from
616 the signal handler at the end of the loop.
617
618 2001-09-21 Gerd Moellmann <gerd@gnu.org>
619
620 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
621 Terminate only if kill returns -1, and errno is ESRCH.
622
623 2001-09-21 Markus Rost <rost@math.ohio-state.edu>
624
625 * Makefile.in (shortlisp): Add ../lisp/env.elc.
626
627 2001-09-20 Gerd Moellmann <gerd@gnu.org>
628
629 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
630 since this function can be called during GC.
631
632 * callproc.c (Fcall_process): Handle errors from pipe(2).
633 (child_setup): Delete code in #ifdef vipc.
634
635 2001-09-19 Gerd Moellmann <gerd@gnu.org>
636
637 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
638 (display_mode_element): Display the string from decode_mode_spec
639 depending on its multibyteness.
640
641 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
642
643 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
644
645 2001-09-18 Gerd Moellmann <gerd@gnu.org>
646
647 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
648 recursive_edit_unwind.
649 (recursive_edit_unwind): Set kboard state according to
650 SINGLE-KBOARD.
651
652 * buffer.c (modify_overlay): Don't do nothing if START == END;
653 This can still be a modification, for example when an overlay has
654 a before-string or after-string.
655 (Fdelete_overlay): Prevent redisplay optimizations when deleting
656 an overlay with before-string or after-string.
657
658 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
659 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
660
661 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
662 first_unchanged_at_end_row is in front of
663 last_unchanged_at_beg_row. This code should be removed after the
664 release of 21.1.
665
666 2001-09-17 Gerd Moellmann <gerd@gnu.org>
667
668 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
669 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
670
671 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
672 versions >= 2.95.
673
674 2001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
675
676 * dired.c (Ffile_attributes): Doc fix.
677
678 2001-09-14 Gerd Moellmann <gerd@gnu.org>
679
680 * fileio.c (Ffile_symlink_p): Fix last change.
681
682 * filelock.c (current_lock_owner): Fix last change.
683
684 2001-09-13 Gerd Moellmann <gerd@gnu.org>
685
686 * filelock.c (current_lock_owner): If readlink returns ERANGE,
687 take that to mean that the buffer is too small.
688
689 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
690 that to mean that the buffer is too small.
691
692 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
693 current buffer's multibyteness when discarding the iterator's
694 stack.
695
696 * xfns.c (Fx_window_property): Handle case that property gets
697 deleted between the two calls to XGetWindowProperty.
698
699 2001-09-11 Gerd Moellmann <gerd@gnu.org>
700
701 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
702
703 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
704 in addition to read-only.
705
706 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
707 to t in addition to read-only.
708
709 * lisp.h (Qinhibit_modification_hooks): Declare.
710
711 * insdel.c (Qinhibit_modification_hooks): New variable.
712 (syms_of_insdel): Initialize and staticpro it.
713
714 * textprop.c (verify_interval_modification): Don't run
715 modification-hooks if inhibit_modification_hooks.
716
717 * dispnew.c (set_window_cursor_after_update): Fix code
718 finding glyph row containing cursor when cursor_in_echo_area
719 is >= 0.
720
721 * xdisp.c (init_from_display_pos): Put some code in #if 0.
722 (add_to_log): Use bcopy instead of strcpy.
723 (init_from_display_pos): Use an explicit loop over bytes in
724 overlay strings instead of calling index.
725
726 2001-09-10 Gerd Moellmann <gerd@gnu.org>
727
728 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
729
730 * dispnew.c (direct_output_for_insert): Don't change IT's
731 stop_charpos to something in front of its current position.
732
733 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
734 `format'.
735
736 2001-09-10 Richard M. Stallman <rms@gnu.org>
737
738 * frame.c (Fmouse_position): Doc fix.
739
740 2001-09-07 Gerd Moellmann <gerd@gnu.org>
741
742 * xdisp.c (init_from_display_pos): Don't compare the result
743 of calling index with NULL.
744
745 2001-09-06 Gerd Moellmann <gerd@gnu.org>
746
747 * xfns.c (x_set_background_color): Don't change the colors
748 of the X window of scroll bar widgets.
749
750 2001-09-05 Andrew Innes <andrewi@gnu.org>
751
752 * w32fns.c (w32_createwindow): Undo last change.
753
754 2001-09-05 Gerd Moellmann <gerd@gnu.org>
755
756 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
757
758 * xdisp.c (string_buffer_position): Use *single_char_property*
759 functions instead of the *single_property* functions.
760
761 2001-09-04 Andrew Innes <andrewi@gnu.org>
762
763 * w32term.c (w32_read_socket): Add more information to debugging
764 output.
765
766 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
767 from Emacs frames, so that calls to GetClipBox in w32term.c
768 correctly report when part of a frame is visible (including
769 scrollbars, etc). This prevents repeated redrawing of frames when
770 only a scrollbar is visible.
771 (w32_wnd_proc): Add more frame information to debugging output.
772
773 2001-09-03 Stefan Monnier <monnier@cs.yale.edu>
774
775 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
776
777 2001-09-03 Gerd Moellmann <gerd@gnu.org>
778
779 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
780 help-echo for a string which doesn't have help-echo itself, use
781 get-char-property to obtain the help-echo from the string's buffer
782 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
783 have mouse-face, look ``under'' the string for mouse-face from an
784 overlay.
785 (fast_find_position): Add parameter STOP. In the final row, stop
786 before glyphs having STOP as object. Don't consider glyphs that
787 are not from a buffer.
788
789 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
790
791 2001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
792
793 * fns.c (Fmd5): Doc fix.
794
795 2001-08-31 Gerd Moellmann <gerd@gnu.org>
796
797 * composite.c (update_compositions): Do nothing if
798 inhibit-modification-hooks is set.
799
800 2001-08-30 Gerd Moellmann <gerd@gnu.org>
801
802 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
803 and check_message_stack if terminating abnormally. We want
804 glyph matrices etc. in a core dump.
805
806 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
807 (syms_of_xdisp): Initialize them.
808 (handle_single_display_prop): Don't change point, bind `object',
809 `position', and `buffer-position' instead to the object having the
810 `display' property, position in the object and position in the buffer.
811
812 * fileio.c (Finsert_file_contents): Don't change the multibyteness
813 of the buffer if REPLACE is non-nil.
814
815 2001-08-29 Gerd Moellmann <gerd@gnu.org>
816
817 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
818
819 2001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
820
821 * w32term.c (x_set_glyph_string_background_width)
822 (show_mouse_face): Track the last changes in xterm.c.
823
824 2001-08-28 Gerd Moellmann <gerd@gnu.org>
825
826 * xterm.c (x_set_glyph_string_background_width): Set the glyph
827 string's background width so that multi-line mouse-face is drawn
828 to the right edge of the window.
829 (show_mouse_face): Set the row's mouse_face_p flag after drawing
830 glyphs.
831
832 * dispnew.c (direct_output_for_insert): Set updated_area
833 before inserting/writing glyphs.
834
835 * xdisp.c (display_mode_element): Use string_byte_to_char to
836 determine character positions in strings, use chars_in_text
837 instead of strwidth.
838 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
839 a matrix as parameter; this is easier to use from GDB.
840
841 2001-08-28 Miles Bader <miles@gnu.org>
842
843 * textprop.c (Fprevious_single_char_property_change)
844 (Fnext_single_char_property_change): Doc fixes.
845
846 2001-08-27 Gerd Moellmann <gerd@gnu.org>
847
848 * fileio.c (Finsert_file_contents): Allocate, restore, and
849 free composition data in the case of REPLACE not being nil.
850
851 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
852 there exist overlay strings with newlines at POS.
853 (text_outside_line_unchanged_p): Return 0 if changes start at
854 START and overlays exist at START. Likewise for END.
855 (try_window_id): Give up if init_to_row_end returns 0.
856
857 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
858 unconditionally.
859
860 2001-08-24 Gerd Moellmann <gerd@gnu.org>
861
862 * keymap.c (access_keymap): Return the cdr of the binding of
863 a generic character instead of its definition (KEY . BINDING).
864
865 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
866 to 0 also in the REPLACE case.
867
868 2001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
869
870 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
871 open to determine whether file is readable (as for DOS_NT).
872
873 2001-08-23 Gerd Moellmann <gerd@gnu.org>
874
875 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
876 coding.type is coding_type_no_conversion or coding_type_raw_text,
877 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
878 non-nil instead of just setting enable_multibyte_characters in the
879 buffer to nil.
880
881 2001-08-22 Gerd Moellmann <gerd@gnu.org>
882
883 * dispextern.h (struct face_cache): Add member
884 menu_face_changed_p.
885
886 * xfaces.c (menu_face_changed_default): New variable.
887 (menu_face_changed_count): Variable removed.
888 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
889 the menu_face_changed_default flag, otherwise set the FRAME's
890 menu_face_changed_p flag if the `menu' face has been changed.
891 Prevent calling set_font_frame_param if FRAME is t.
892 (make_face_cache): Initialize cache's menu_face_changed_p
893 from menu_face_changed_default.
894 (realize_basic_faces): Look into the frame's face cache to
895 determine if the menu appearance needs updating.
896
897 * keymap.c (access_keymap): Fix last change to not consider
898 IDX when it has modifiers.
899
900 2001-08-21 Gerd Moellmann <gerd@gnu.org>
901
902 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
903 . BINDING) exists, where GENERIC-CHAR is the generic character of
904 the charset of IDX, return BINDING unless there exists a binding
905 for IDX itself.
906
907 2001-08-16 Gerd Moellmann <gerd@gnu.org>
908
909 * xrdb.c (SYSV): Don't define on Solaris 2.
910 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
911
912 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
913 of the screen line, not text line, containing IT's current position.
914
915 2001-08-15 Gerd Moellmann <gerd@gnu.org>
916
917 * window.c (window_scroll_pixel_based): Don't recenter if
918 PT is partially visible in the window.
919
920 * xterm.c (expose_window_tree, expose_window, expose_line):
921 Return 1 when overwriting mouse-face.
922 (expose_frame): If mouse-face was overwritten, redo it.
923
924 * xfaces.c (x_update_menu_appearance): Don't call
925 set_frame_menubar, let the next redisplay do it.
926
927 2001-08-14 Andrew Innes <andrewi@gnu.org>
928
929 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
930 drawing glyph string.
931
932 2001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
933
934 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
935 running HI-UX/MPP.
936
937 2001-08-14 Gerd Moellmann <gerd@gnu.org>
938
939 * xfaces.c (x_update_menu_appearance): Save and restore value of
940 interrupt_input_blocked.
941
942 2001-08-13 Gerd Moellmann <gerd@gnu.org>
943
944 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
945 a line start, move back to the line start.
946
947 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
948 exactly when a mini-buffer is active.
949
950 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
951 in units of 1/8 character on non window-system frames.
952 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
953
954 2001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
955
956 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
957 a doc string.
958
959 2001-08-09 Gerd Moellmann <gerd@gnu.org>
960
961 * keyboard.c (Vpre_help_message): New variable.
962 (syms_of_keyboard): Initialize and staticpro it.
963 (show_help_echo): Record current message before displaying a
964 help-echo, and restore that message when clearing the help.
965
966 * xfns.c (x_create_im): Remove prototype.
967
968 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
969
970 * dispnew.c (adjust_glyph_matrix): Undo last change.
971
972 2001-08-08 Gerd Moellmann <gerd@gnu.org>
973
974 * dispnew.c (adjust_glyph_matrix): In the optimization for
975 windows whose height has changed, disable partially visible lines.
976
977 2001-08-07 Gerd Moellmann <gerd@gnu.org>
978
979 * window.c (Frecenter): If ARG < 0, and on a window system
980 frame, count in some empty lines when we can't move -ARG lines down.
981
982 * xdisp.c (start_display): Don't try to determine the continuation
983 lines width if lines are truncated. It's superfluous and leads to
984 incorrect results if POS is not visible in the window after
985 reseating the iterator at the previous line start.
986
987 2001-08-06 Gerd Moellmann <gerd@gnu.org>
988
989 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
990
991 2001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
992
993 * alloc.c (init_stack): Remove declaration.
994
995 2001-08-03 Gerd Moellmann <gerd@gnu.org>
996
997 * keyboard.c (read_key_sequence): Check that key is an integer
998 before comparing it with quit_char.
999 (add_command_key): Use larger_vector.
1000 (read_char_x_menu_prompt): Instead of converting symbol and
1001 integer events into conses (EVENT . nil), use (EVENT . disabled)
1002 which cannot be confused with valid events.
1003 (read_char): When reading from Vunread_command_events, check for
1004 events of the form (EVENT . disabled) instead of
1005 (EVENT . nil).
1006
1007 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
1008 a float, determine the max height from the frame's height.
1009
1010 2001-08-02 Gerd Moellmann <gerd@gnu.org>
1011
1012 * xdisp.c (redisplay_internal): Take message_cleared_p into
1013 account only if minibuf_level == 0.
1014
1015 2001-08-01 Gerd Moellmann <gerd@gnu.org>
1016
1017 * xdisp.c (redisplay_internal): Add a check for the last
1018 displayed message.
1019
1020 * xdisp.c (message_cleared_p): New variable.
1021 (clear_message): Set message_cleared_p when clearing the current
1022 message.
1023 (redisplay_internal): Look at message_cleared_p to capture
1024 the case that the echo area should be cleared.
1025
1026 * keyboard.c (command_loop_1): Fix spelling of
1027 resize_echo_area_exactly.
1028
1029 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
1030
1031 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
1032
1033 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
1034 current matrix when the window gets smaller.
1035
1036 2001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
1037
1038 * print.c (strout): Cast the character passed to insert_char to
1039 unsigned char, to avoid sign extension when it is promoted to int.
1040
1041 2001-07-31 Gerd Moellmann <gerd@gnu.org>
1042
1043 * fileio.c (Finsert_file_contents): Don't treat a return value
1044 of 0 from emacs_read as an IO error.
1045
1046 2001-07-30 Gerd Moellmann <gerd@gnu.org>
1047
1048 * keyboard.c (abs): New macro.
1049 (double_click_fuzz): New variable.
1050 (make_lispy_event): Use it to determine what makes a double-click.
1051 (syms_of_keyboard): DEFVAR_INT it.
1052
1053 * xmenu.c (set_frame_menubar): Take into account that
1054 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
1055 <raeburn@gnu.org>.
1056
1057 2001-07-27 Gerd Moellmann <gerd@gnu.org>
1058
1059 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
1060
1061 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
1062 of row's visible height.
1063
1064 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
1065 deal with the first overlay string having an image `display' property.
1066 (try_window_reusing_current_matrix, compute_line_metrics):
1067 Fix computation of row's visible height for the case that part of the
1068 row is invisible above and part of the row is at the same time
1069 invisible below the window.
1070
1071 2001-07-26 Gerd Moellmann <gerd@gnu.org>
1072
1073 * xfns.c (x-show-tip): Doc fix.
1074
1075 * xfns.c (Vx_max_tooltip_size): New variable.
1076 (syms_of_xfns): DEFVAR_LISP it.
1077 (Fx_show_tip): Set frame's window_width to the width of the
1078 window. Use a maximum tooltip size specified by
1079 Vx_max_tooltip_size, if that has valid contents.
1080 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
1081
1082 2001-07-26 Andrew Innes <andrewi@gnu.org>
1083
1084 * w32term.c (x_display_list): New variable.
1085 (w32_term_init): Set it.
1086
1087 * w32term.h (x_display_list): New extern.
1088
1089 2001-07-26 Gerd Moellmann <gerd@gnu.org>
1090
1091 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
1092 is non-nil, instead of when redisplaying_p is non-zero.
1093 See comment there.
1094 (mark_window_display_accurate_1): Add an assertion.
1095
1096 2001-07-25 Gerd Moellmann <gerd@gnu.org>
1097
1098 * dispextern.h (struct it): Increase size of ctl_chars to 16.
1099
1100 * xfns.c (Fx_file_dialog): Block/unblock input while processing
1101 events so that we get a chance of processing expose events.
1102
1103 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
1104
1105 2001-07-24 Gerd Moellmann <gerd@gnu.org>
1106
1107 * xfns.c (valid_image_p): Protect better against invalid image
1108 specifications. Previous code could signal an error.
1109
1110 2001-07-23 Gerd Moellmann <gerd@gnu.org>
1111
1112 * indent.c (current_column): Fix column computation in the
1113 presence of display table entries.
1114 (current_column_1, Fmove_to_column, compute_motion): Likewise.
1115
1116 * dispnew.c (adjust_glyph_matrix): In the optimization for
1117 windows whose height has changed, use the new window height
1118 to compute which rows to invalidate.
1119
1120 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
1121 (MAX_10_EXP): New macro.
1122 (Fformat): Use it.
1123
1124 * coding.c (code_convert_region): Handle the multibyte case if
1125 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
1126
1127 2001-07-20 Gerd Moellmann <gerd@gnu.org>
1128
1129 * dispextern.h (struct face): Change type of `stipple' to
1130 int; it's an ID.
1131
1132 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
1133
1134 2001-07-19 Gerd Moellmann <gerd@gnu.org>
1135
1136 * dispnew.c (update_window): Don't set the cursor at the end
1137 of the update if display update has been paused.
1138
1139 * composite.h (syms_of_composite): Renamed from syms_of_composition.
1140
1141 2001-07-18 Ken Raeburn <raeburn@gnu.org>
1142
1143 * fns.c (Fset_char_table_default): Check that a charset is defined
1144 before checking its dimension.
1145
1146 2001-07-17 Ken Raeburn <raeburn@gnu.org>
1147
1148 * coding.c (setup_coding_system): Don't do any designation based
1149 on reg_bits if charset is not yet defined.
1150
1151 * lisp.h (XVECTOR): Verify correct object type before returning a
1152 pointer, using eassert.
1153
1154 2001-07-17 Gerd Moellmann <gerd@gnu.org>
1155
1156 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
1157 Increase to 4096 because of paste problems reported on GNU/Linux.
1158
1159 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
1160
1161 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
1162
1163 2001-07-16 Gerd Moellmann <gerd@gnu.org>
1164
1165 * fileio.c (unwind_read): Function removed.
1166 (read_non_regular, read_non_regular_quit): New functions.
1167 (Finsert_file_contents): When reading from non-regular files,
1168 arrange to catch a `quit' and terminate the loop. Rearrange
1169 code so that a `quit' when reading from a regular file doesn't
1170 insert text in the buffer.
1171
1172 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
1173 Clear faces afterwards.
1174 (clear_font_table): Take a x_display_info parameter. Don't free
1175 fonts being the default font of any frame on the given display.
1176
1177 2001-07-13 Gerd Moellmann <gerd@gnu.org>
1178
1179 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
1180 instead of CHAR_STRING which can signal an error.
1181
1182 * charset.c (char_to_string_1): Extracted from char_to_string.
1183 Return -1 instead of signaling an error.
1184 (char_to_string): Use it.
1185
1186 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
1187
1188 2001-07-12 Stefan Monnier <monnier@cs.yale.edu>
1189
1190 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
1191 is t, don't try to append anything to it.
1192
1193 2001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
1194
1195 * dired.c (file_name_completion): Pass dp->d_name to
1196 Fstring_match, not elt, which is always nil here.
1197
1198 2001-07-12 Gerd Moellmann <gerd@gnu.org>
1199
1200 * xselect.c (x_decline_selection_request): Handle errors
1201 caused by receivers that have vanished.
1202
1203 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
1204 ignoring events on foreign windows in #if 0. Always dispatch
1205 the event after checking it with x_handle_property_notify.
1206
1207 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
1208 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
1209 TRACE macros to facilitate debugging. Add additional trace statements.
1210 (toplevel): Add prototypes for file-local functions.
1211 (x_atom_to_symbol): Remove DPYINFO parameter.
1212
1213 2001-07-11 Stefan Monnier <monnier@cs.yale.edu>
1214
1215 * w32menu.c (menubar_selection_callback, w32_menu_show):
1216 Initialize `entry' to nil.
1217 (w32_dialog_show): Remove unused `save_wv' variable.
1218 (name_is_separator): Recognize "--:foo" and "--foo-bar".
1219
1220 2001-07-11 Gerd Moellmann <gerd@gnu.org>
1221
1222 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
1223
1224 * fileio.c (unwind_read): Print a message when discarding inserted
1225 text or switching the buffer to unibyte. Change parameter.
1226 (Finsert_file_contents): Don't pass VISIT to unwind_read.
1227
1228 * fileio.c (unwind_read): New function.
1229 (Finsert_file_contents): Record it as unwind-function for
1230 the case that reading is interrupted by C-g.
1231
1232 2001-07-10 Gerd Moellmann <gerd@gnu.org>
1233
1234 * dispnew.c (update_window): Don't skip the header-line
1235 update when scrolling_window returns 0.
1236
1237 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
1238
1239 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
1240 for the case that x_decode_color signals an error.
1241
1242 * xdisp.c (add_to_log): Do nothing if called asynchronously.
1243
1244 2001-07-09 Gerd Moellmann <gerd@gnu.org>
1245
1246 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
1247 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
1248 around ioctls.
1249
1250 2001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
1251
1252 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
1253 doc string line for dos-timezone-offset.
1254
1255 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
1256 inline assembly, to avoid compiler warnings.
1257 (syms_of_msdos): Add \n\ at the end of a line in the doc string
1258 line for dos-unsupported-char-glyph.
1259
1260 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
1261
1262 2001-07-05 Gerd Moellmann <gerd@gnu.org>
1263
1264 * sound.c: Include Emacs' header files with #include "...".
1265
1266 * eval.c (specbind): Additionally record the buffer that was
1267 current when a buffer-local or frame-local variable was bound.
1268
1269 2001-07-04 Gerd Moellmann <gerd@gnu.org>
1270
1271 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
1272 to unibyte characters in unibyte buffers.
1273
1274 2001-07-03 Gerd Moellmann <gerd@gnu.org>
1275
1276 * eval.c (specbind): If SYMBOL has a frame-local binding, record
1277 the frame on the binding stack. Change format of entries for
1278 local bindings on the binding stack to '(SYMBOL . WHERE)'.
1279 (unbind_to): Handle unbinding a frame-local variable.
1280
1281 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
1282 glyphs and truncation glyphs at the end of a row from its pixel width.
1283 (dump_glyph_row): Print row's continuation_lines_width.
1284 (try_window_id): Take the shortcut if ZV is visible in the
1285 window, but there are actually no changes at ZV.
1286
1287 2001-07-02 Gerd Moellmann <gerd@gnu.org>
1288
1289 * xterm.h (x_free_dpy_colors): Add prototype.
1290
1291 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
1292 right number of arguments.
1293
1294 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
1295 ($(lwlibdir)TAGS): New target.
1296 (TAGS): Fix dependency list.
1297
1298 * xterm.c (x_list_fonts): Make sure XFreeFont is called
1299 with input blocked.
1300
1301 2001-06-30 Gerd Moellmann <gerd@gnu.org>
1302
1303 * emacs.c (main): Remove extern declaration for sys_nerr, which
1304 isn't used and causes a compilation error with GCC 3.0 on
1305 FreeBSD 4.3.
1306
1307 2001-06-27 Gerd Moellmann <gerd@gnu.org>
1308
1309 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
1310 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
1311 (toplevel): Include <signal.h> and syssignal.h.
1312
1313 * sound.c (vox_configure, vox_close): Turn off atimers
1314 around ioctls.
1315
1316 2001-06-26 Gerd Moellmann <gerd@gnu.org>
1317
1318 * keyboard.c (read_char) <non_reread>: Record the previous idle
1319 start time before calling timer_stop_idle.
1320 (read_char) <reread_first>: After processing a help-echo event,
1321 restore the previous idle start time.
1322
1323 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
1324 the start of invisible text.
1325 (setup_for_ellipsis): New function.
1326 (next_overlay_string): After all overlay strings have been
1327 processed, display an ellipsis if necessary.
1328 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
1329 (push_it): Initialize display_ellipsis_p on the iterator's stack.
1330
1331 * dispextern.h (struct iterator_stack_entry): Add member
1332 display_ellipsis_p.
1333
1334 2001-06-25 Gerd Moellmann <gerd@gnu.org>
1335
1336 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
1337 on the value of the wait-for-wm frame parameter.
1338
1339 * xterm.h (struct x_output): Add member wait_for_wm.
1340
1341 * xfns.c (Qwait_for_wm): New variable.
1342 (x_frame_parms): Add entry for `wait-for-wm".
1343 (x_set_wait_for_wm): New function.
1344 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
1345 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
1346
1347 * xdisp.c (try_window_id) <all changes below window end>: Don't
1348 take this shortcut if ZV is visible in the window.
1349 (try_window_id): When checking for window start being in changed
1350 text, don't check that the buffer's size has changed.
1351
1352 2001-06-23 Richard M. Stallman <rms@gnu.org>
1353
1354 * minibuf.c (Fcompleting_read): Doc fix.
1355
1356 2001-06-19 Gerd Moellmann <gerd@gnu.org>
1357
1358 * composite.c (Ffind_composition_internal): Accept ZV
1359 and a string's end position as POS.
1360
1361 2001-06-18 Gerd Moellmann <gerd@gnu.org>
1362
1363 * composite.c (Ffind_composition_internal): Check POS
1364 for validity.
1365
1366 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
1367
1368 * editfns.c (Fmessage_box): If the frame is not under a window
1369 system, output the message in the echo area.
1370
1371 2001-06-14 Richard M. Stallman <rms@gnu.org>
1372
1373 * xdisp.c (try_window_id): When EOB is visible, don't treat
1374 insertion at EOB as if it were "off the bottom of the screen."
1375
1376 2001-06-11 Andrew Innes <andrewi@gnu.org>
1377
1378 * w32proc.c (create_child): Add new parameter is_gui_app.
1379 (w32_executable_type): Add new parameter is_gui_app.
1380 (sys_spawnve): Use it.
1381 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
1382 SIGQUIT. This matches better how the signals are interpreted by
1383 MSVC compiled programs.
1384 (syms_of_ntproc): Update docstring.
1385
1386 2001-06-02 Stefan Monnier <monnier@cs.yale.edu>
1387
1388 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
1389 well otherwise note_mouse_highlight might optimize away highlighting
1390 if we pass over that same overlay again.
1391
1392 2001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
1393
1394 * lread.c (Fload): Document that the argument is run via
1395 substitute-in-file-name.
1396
1397 2001-05-31 Gerd Moellmann <gerd@gnu.org>
1398
1399 * Makefile.in (bootstrap-doc): New target.
1400 (bootstrap-emacs): Depend on it.
1401
1402 * fileio.c (Fdo_auto_save): Don't try to create the directory of
1403 auto-save-list-file-name when shutting down Emacs, because
1404 creating the directory might signal an error, and leaves
1405 Emacs in a strange state.
1406
1407 * term.c: (tty_cursor_hidden): New variable.
1408 (update_begin): Don't call tty_hide_cursor. Clean up.
1409 (update_end, set_terminal_window, set_scroll_region): Clean up.
1410 (ring_bell, reset_terminal_modes): Clean up.
1411 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
1412 on tty_cursor_hidden.
1413 (write_glyphs): Call tty_hide_cursor.
1414
1415 2001-05-30 Stefan Monnier <monnier@cs.yale.edu>
1416
1417 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
1418
1419 2001-05-30 Gerd Moellmann <gerd@gnu.org>
1420
1421 * xfns.c (enum image_value_type): New enumerator
1422 IMAGE_STRING_OR_NIL_VALUE.
1423 (parse_image_spec): Handle it.
1424 (xbm_format, pbm_format): Use it for :foreground and :background.
1425 (xbm_load, pbm_load): Check for nil color names.
1426
1427 * xterm.c (note_mouse_highlight): If an overlapping overlay
1428 exists, but we find that we highlight the same overlay as before,
1429 don't do the highlighting again.
1430
1431 2001-05-29 Gerd Moellmann <gerd@gnu.org>
1432
1433 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
1434 Protect unibyte strings created by replacing their multibyte
1435 equivalents in menu_items.
1436
1437 * keymap.c (Fsingle_key_description): NUL-terminate the string
1438 buffer before calling build_string.
1439
1440 * callproc.c (Fcall_process): Deal with decode_coding returning
1441 CODING_FINISH_INCONSISTENT_EOL.
1442
1443 2001-05-28 Gerd Moellmann <gerd@gnu.org>
1444
1445 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
1446 an item's name with its key description in case the description
1447 is a multibyte string.
1448
1449 * keymap.c (Fsingle_key_description): Create a multibyte string
1450 only if necessary.
1451
1452 * macros.c (Fstart_kbd_macro): Doc fix.
1453
1454 * xterm.c (cursor_in_mouse_face_p): New function.
1455 (x_draw_stretch_glyph_string): Use it to choose a different GC
1456 when drawing a cursor within highlighted text.
1457
1458 * editfns.c (char_property_eq): Put in #if 0.
1459
1460 * indent.c (string_display_width): Put in #if 0.
1461
1462 * lread.c (Fload): Remove unused label.
1463
1464 * termcap.c (speeds): Put in #if 0.
1465
1466 2001-05-18 Gerd Moellmann <gerd@gnu.org>
1467
1468 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
1469
1470 * xfaces.c (xlfd_point_size): Don't divide pixel size from
1471 transformation matrix by 10.
1472
1473 2001-05-16 Gerd Moellmann <gerd@gnu.org>
1474
1475 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
1476 only if it's equal to the former foreground pixel color.
1477 (x_set_foreground_color, x_set_background_color)
1478 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
1479
1480 2001-05-16 Dave Love <fx@gnu.org>
1481
1482 * insdel.c (signal_before_change, signal_after_change): Consider a
1483 local change hook which changes the buffer.
1484
1485 * process.c (read_process_output): Don't call signal_after_change
1486 and update_compositions after insert_from_string_before_markers.
1487
1488 2001-05-16 Gerd Moellmann <gerd@gnu.org>
1489
1490 * xfaces.c (split_font_name): Use the right field when
1491 checking for `[...]' syntax.
1492
1493 * buffer.c (copy_overlays): New function.
1494 (clone_per_buffer_values): Use it.
1495
1496 * buffer.h (OVERLAY_PLIST): New macro.
1497
1498 * keymap.c (Fsingle_key_description): Replace a build_string with
1499 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
1500
1501 * fontset.c (Ffontset_info): Check that face is non-null
1502 before accessing its fields.
1503
1504 2001-05-15 Gerd Moellmann <gerd@gnu.org>
1505
1506 * keyboard.c (read_key_sequence): Prevent generating a fake
1507 prefix key twice.
1508
1509 * xfaces.c (split_font_name): Handle `[...]' for the right
1510 font name fields.
1511
1512 * ccl.c (ccl_driver): Don't copy remaining bytes in case
1513 of CCL_STAT_INVALID_CMD.
1514
1515 2001-05-14 Stefan Monnier <monnier@cs.yale.edu>
1516
1517 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
1518 in <var> has no default value yet.
1519
1520 * xfaces.c (try_alternative_families): First try the FAMILY.
1521 And if nothing is found in the end, try again with scalable fonts.
1522 (try_font_list): Let try_alternative_families do a bit more of
1523 the work. Only use FAMILY if it is not nil.
1524 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
1525
1526 2001-05-14 Gerd Moellmann <gerd@gnu.org>
1527
1528 * xterm.c (note_mouse_highlight): Avoid changing the mouse
1529 pointer shape when show_mouse_face has already done it.
1530
1531 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
1532 full-width rows.
1533
1534 * xfaces.c (split_font_name): Make sure to leave the loop
1535 with the right value of `i'.
1536
1537 * xfaces.c (split_font_name): Handle matrix transformations
1538 in the pixel and point size fields of XLFD font names.
1539 (xlfd_point_size): Likewise.
1540
1541 2001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
1542
1543 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
1544 (x_to_w32_font): Add prototype.
1545
1546 * regex.c (malloc, realloc, free) [emacs]: Undefine before
1547 redefining, to avoid compiler warnings.
1548
1549 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
1550
1551 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
1552 (w32_get_bdf_glyph): Cast between unsigned char and char when
1553 passing arguments to subroutines, to shut up compiler warnings.
1554 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
1555 GET_HEX_VAL.
1556
1557 * xfaces.c: Include keyboard.h before frame.h, not after it.
1558
1559 * widget.c: Include keyboard.h before frame.h.
1560
1561 * w32term.h (struct image, struct face): Forward declaration, to
1562 avoid compiler warnings.
1563
1564 2001-05-11 Gerd Moellmann <gerd@gnu.org>
1565
1566 * keyboard.c (read_key_sequence): Don't modify events when
1567 generating fake prefix keys (mode-line, scroll-bar, ...) since
1568 this prevents proper processing of such events when pushed back
1569 into unread-command-events.
1570
1571 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
1572 actually redrawn. Make the function static.
1573 (note_mouse_highlight): Fix a case where the mouse cursor
1574 was changed back to the text cursor.
1575
1576 * xterm.h (clear_mouse_face): Remove prototype.
1577
1578 * xdisp.c (try_window_id): Fix the fix and set the right
1579 window_end_vpos.
1580
1581 * xdisp.c (try_window_id): Fix computation of window end in the
1582 case that lines were deleted at the end of the window. Add some
1583 more debug_method_adds.
1584
1585 * xfaces.c (try_alternative_families): New function.
1586 (try_font_list): Use it. If ATTRS specifies a family, check
1587 fonts from that family first.
1588 (choose_face_font): Remove code setting the family part of
1589 the pattern to nil.
1590
1591 2001-05-10 Gerd Moellmann <gerd@gnu.org>
1592
1593 * xdisp.c (try_window_id): Fix case of all changes before
1594 the window start.
1595
1596 * xdisp.c (try_window_id): Add some xasserts.
1597
1598 2001-05-09 Gerd Moellmann <gerd@gnu.org>
1599
1600 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
1601
1602 2001-05-09 Dave Love <fx@gnu.org>
1603
1604 * xdisp.c (GIVE_UP): Fix for K&R C.
1605
1606 2001-05-09 Gerd Moellmann <gerd@gnu.org>
1607
1608 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
1609
1610 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
1611 back to the text cursor shape without need.
1612
1613 2001-05-07 Gerd Moellmann <gerd@gnu.org>
1614
1615 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
1616
1617 * dispextern.h (inverse_video): Declare extern.
1618
1619 * keyboard.c (delete_kboard): Handle the case that selected_frame
1620 has been deleted in the course of x_connection_closed.
1621
1622 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
1623
1624 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
1625 Fix the change from 2001-04-30.
1626
1627 2001-05-03 Gerd Moellmann <gerd@gnu.org>
1628
1629 * xfns.c (file_dialog_unmap_cb): New function.
1630 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
1631 where a dialog is closed via the window manager.
1632
1633 * xdisp.c (try_window_id): Cases of changes all in front of
1634 the window start or all below the window end mostly rewritten.
1635 (redisplay_window): Move the tests if try_window_id is
1636 applicable to try_window_id.
1637 (GIVE_UP): New macro.
1638
1639 2001-05-02 Gerd Moellmann <gerd@gnu.org>
1640
1641 * xterm.c (expose_window): Return int. If W is the window
1642 currently being updated, mark the frame garbaged.
1643 Fix computation of rows intersecting the exposed rectangle.
1644 (expose_window_tree): Stop when expose_window returns 0.
1645
1646 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
1647 again if it has already been drawn.
1648
1649 2001-05-01 Stefan Monnier <monnier@cs.yale.edu>
1650
1651 * syntax.c (update_syntax_table): Check that oldi has the same
1652 properties as old_prop before deciding not to invalidate.
1653
1654 2001-04-30 Gerd Moellmann <gerd@gnu.org>
1655
1656 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
1657 read-only text that is so because of text properties.
1658
1659 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
1660 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
1661 windows that are components of a Lucid menu bar.
1662
1663 2001-04-27 Gerd Moellmann <gerd@gnu.org>
1664
1665 * term.c (turn_on_face): Fix reverse video handling on terminals
1666 that don't support colors.
1667
1668 2001-04-26 Gerd Moellmann <gerd@gnu.org>
1669
1670 * editfns.c (save_excursion_restore): Don't use XBUFFER on
1671 a non-buffer.
1672
1673 2001-04-25 Gerd Moellmann <gerd@gnu.org>
1674
1675 * term.c (toggle_highlight): New function.
1676 (turn_on_face): Change handling of reverse video.
1677
1678 * process.c (wait_reading_process_input):
1679 Call record_asynch_buffer_change only if a timer really changed buffers.
1680
1681 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
1682 of the number of overlays to check.
1683
1684 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
1685
1686 * xdisp.c (try_window_id): Fix a case where window_end_pos
1687 and window_end_bytepos were not adjusted.
1688
1689 2001-04-23 Gerd Moellmann <gerd@gnu.org>
1690
1691 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
1692 zero instead of -1.
1693
1694 2001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
1695
1696 * process.c (wait_reading_process_input) [!subprocesses]:
1697 Don't reference waiting_for_user_input_p, it's not defined in the
1698 branch without async subprocesses support.
1699
1700 2001-04-19 Gerd Moellmann <gerd@gnu.org>
1701
1702 * keyboard.c (delete_kboard): Prevent a dangling reference
1703 from current_kboard to KB, which is freed.
1704
1705 * process.c (wait_reading_process_input):
1706 Call record_asynch_buffer_change after running timers, to make
1707 read_key_sequence aware of buffer changes from under it.
1708
1709 2001-04-18 Gerd Moellmann <gerd@gnu.org>
1710
1711 * xfaces.c (Qscalable_fonts_allowed): New variable.
1712 (realizing_basic_faces_p): Removed.
1713 (x_face_list_fonts): Special handling for realizing_basic_faces_p
1714 removed.
1715 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
1716 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
1717 for scalable-fonts-allowed to t.
1718
1719 * fileio.c (Finsert_file_contents): If the file size returned from
1720 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
1721 read from files on a procfs whose contents are generated dynamically.
1722
1723 2001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
1724
1725 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
1726 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
1727 (__memalign_hook): Make the two prototypes consistent.
1728
1729 2001-04-17 Gerd Moellmann <gerd@gnu.org>
1730
1731 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
1732 matrix of mini-windows.
1733
1734 2001-04-12 Stefan Monnier <monnier@cs.yale.edu>
1735
1736 * intervals.c (find_interval): Don't rebalance during signal handling.
1737
1738 2001-04-11 Gerd Moellmann <gerd@gnu.org>
1739
1740 * fns.c: Include blockinput.h.
1741
1742 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
1743
1744 2001-04-10 Gerd Moellmann <gerd@gnu.org>
1745
1746 * fns.c (Fcompare_strings): Fix return values.
1747
1748 * window.c (window_scroll): Change the meaning of N to mean
1749 N screen-fulls or N lines.
1750 (window_scroll_pixel_based, window_scroll_line_based)
1751 (scroll_command, Fscroll_other_window): Change accordingly.
1752
1753 * window.c (window_scroll_pixel_based, Frecenter):
1754 Call window_box_height instead of using it.last_visible_y for the
1755 height of the window.
1756
1757 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
1758 instead of using it.last_visible_y for the height of the window.
1759
1760 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
1761 From Dan Holmsand <dan@eyebee.com>.
1762
1763 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
1764 able to write to hidden and system files. From Dan Holmsand
1765 <dan@eyebee.com>.
1766
1767 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
1768 Holmsand <dan@eyebee.com>.
1769
1770 2001-04-09 Gerd Moellmann <gerd@gnu.org>
1771
1772 * fns.c (Fplist_get, Fplist_put): Add QUITs.
1773
1774 * window.c (window_internal_height): Return 1 less if the
1775 window has a header line.
1776
1777 * xdisp.c (try_window_id): When scrolling on a terminal, take
1778 the change of window_internal_height into account.
1779
1780 2001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
1781
1782 * gmalloc.c (align): If the argument SIZE would overflow
1783 __malloc_ptrdiff_t, fail right away.
1784
1785 2001-04-06 Gerd Moellmann <gerd@gnu.org>
1786
1787 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
1788 Make sure the tooltip is completely visible.
1789 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
1790
1791 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
1792
1793 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
1794
1795 2001-04-06 Dave Love <fx@gnu.org>
1796
1797 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
1798 Fix test of `from'.
1799
1800 2001-04-06 Gerd Moellmann <gerd@gnu.org>
1801
1802 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
1803
1804 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
1805
1806 2001-04-05 Gerd Moellmann <gerd@gnu.org>
1807
1808 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
1809
1810 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
1811
1812 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
1813 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
1814
1815 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
1816 shell widget's position only if it is non-null.
1817
1818 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
1819 Set f->output_data.x->widget to null after destroying it.
1820
1821 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
1822 FILENAME to bring it in synch with the documentation.
1823
1824 * xfaces.c (realizing_basic_faces_p): Renamed from
1825 realize_default_face_p.
1826 (realize_basic_faces): Set/clear realizing_basic_faces_p.
1827 (realize_default_face): Don't set the flag.
1828
1829 2001-04-04 Gerd Moellmann <gerd@gnu.org>
1830
1831 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
1832
1833 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
1834
1835 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
1836 the buffer that was used for echoing.
1837
1838 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
1839 (first_font_matching): Removed unused function.
1840 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
1841 (may_use_scalable_font_p): Remove parameter FONT; rename
1842 parameter NAME to FONT.
1843 (x_face_list_fonts): Fix missing bounds check.
1844 (realizing_default_face_p): New variable.
1845 (realize_default_face): Set and clear that flag.
1846 (x_face_list_fonts): When called during the realization of the
1847 default face, and no matching fonts are found when ignoring
1848 scalable fonts and fonts matching a regexp from
1849 face-ignored-fonts, try without ignoring fonts.
1850
1851 2001-04-03 Gerd Moellmann <gerd@gnu.org>
1852
1853 * xfns.c (postprocess_image): New function.
1854 (lookup_image): Call it for all image types except PostScript.
1855 (x_kill_gs_process): Call postprocess_image.
1856
1857 * xterm.c (x_use_underline_position_properties): New variable.
1858 (x_draw_glyph_string): Use it.
1859 (syms_of_xterm): DEFVAR_BOOL it.
1860
1861 2001-04-02 Gerd Moellmann <gerd@gnu.org>
1862
1863 * xterm.c (x_alloc_nearest_color_1): New function.
1864 (x_alloc_nearest_color): Use it.
1865 (x_color_cells): Take a Display as argument, instead of a frame.
1866 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
1867 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
1868 (x_initialize): Register cvt_string_to_pixel as resource converter
1869 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
1870
1871 2001-03-30 Gerd Moellmann <gerd@gnu.org>
1872
1873 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
1874 (set_iterator_to_next): If a string from a display property ends,
1875 consider the case that this might also be the end of an
1876 overlay string having the display property.
1877
1878 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
1879
1880 * xdisp.c (reseat_to_string): Undo last change.
1881
1882 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
1883 matrix of a window when the header line changes, when
1884 new rows are allocated, or when the width changes.
1885
1886 2001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
1887
1888 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
1889
1890 2001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
1891
1892 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
1893 deprecated.
1894
1895 2001-03-29 Gerd Moellmann <gerd@gnu.org>
1896
1897 * data.c (Fsubr_interactive_form): New function.
1898 (syms_of_data): Defsubr it.
1899
1900 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
1901 (live_float_p, live_misc_p): Return 1 only if the offset of the
1902 pointer in its block is >= 0.
1903
1904 2001-03-28 Paul Eggert <eggert@twinsun.com>
1905
1906 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
1907 microseconds calcuation. Avoid double-rounding problem.
1908 In doc string, warn that the result is approximate.
1909
1910 2001-03-28 Gerd Moellmann <gerd@gnu.org>
1911
1912 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
1913 bind `inhibit-eval-during-redisplay' to t.
1914
1915 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
1916
1917 * xdisp.c (inhibit_eval_during_redisplay)
1918 (Qinhibit_eval_during_redisplay): New variables.
1919 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
1920 don't eval, return nil instead.
1921 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
1922 Initialize Qinhibit_eval_during_redisplay.
1923
1924 * xdisp.c (reseat_to_string): If STRING is multibyte, set
1925 the iterator's multibyte_p flag.
1926
1927 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
1928 instead of setting it to zero; it's incremented for each frame
1929 where the menu face is changed.
1930
1931 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
1932 change bottom shadow accordingly.
1933
1934 * xterm.c (expose_window_tree, expose_frame): Don't compute
1935 intersections here.
1936 (expose_window): Do it here instead.
1937 (x_draw_glyph_string): Fix a computation of the underline position.
1938
1939 * bytecode.c (BYTE_CODE_QUIT): New macro.
1940 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
1941
1942 2001-03-27 Gerd Moellmann <gerd@gnu.org>
1943
1944 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
1945 Give up if matrix starts in an ellipsis.
1946 (init_from_display_pos): Do nothing if POS doesn't specify
1947 a dpvec_index but the iterator has such a position.
1948
1949 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
1950
1951 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
1952 x/y position is (0, 0) after destroying the menu bar, restore
1953 its original position.
1954
1955 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
1956 (init_from_display_pos): Use it.
1957 (try_window_reusing_current_matrix): Don't use cursor_row_p.
1958
1959 2001-03-26 Gerd Moellmann <gerd@gnu.org>
1960
1961 * xdisp.c (try_window_id): Undo last change.
1962
1963 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
1964
1965 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
1966
1967 * buffer.c (syms_of_buffer): Doc fix.
1968
1969 2001-03-26 Gerd Moellmann <gerd@gnu.org>
1970
1971 * xfaces.c (x_update_menu_appearance): Use local variable
1972 popup_path for setting font resources.
1973
1974 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
1975
1976 * frame.c (Fframe_list): Don't reference tip_frame if
1977 HAVE_WINDOW_SYSTEM is not defined.
1978
1979 * emacs.c (main): Update the copyright year. From Werner LEMBERG
1980 <wl@gnu.org>.
1981
1982 2001-03-25 Gerd Moellmann <gerd@gnu.org>
1983
1984 * xdisp.c (init_from_display_pos): Test invisible property
1985 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
1986
1987 * xdisp.c (redisplay_internal) <update one window>: Make sure
1988 last_arrow_position and last_arrow_string are set.
1989
1990 * frame.c (Fframe_list): Don't return a tooltip frame.
1991
1992 2001-03-23 Gerd Moellmann <gerd@gnu.org>
1993
1994 * xdisp.c (mark_window_display_accurate_1): New function,
1995 extracted from mark_window_display_accurate.
1996 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
1997 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
1998 (mark_window_display_accurate): Use it.
1999 (redisplay_internal): Use it for the selected window.
2000 (redisplay_internal): Avoid duplicate mark_window_display_accurate
2001 for the selected frame.
2002
2003 * xdisp.c Use make_number, for readability.
2004 (try_window_id): Disable rows below the window end.
2005 (try_window_reusing_current_matrix): Use cursor_row_p.
2006 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
2007 of rows.
2008 (init_from_display_pos): If POS specifies a position in a display
2009 vector, maybe get the iterator set up for that ellipsis.
2010
2011 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
2012
2013 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
2014
2015 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
2016
2017 2001-03-23 Gerd Moellmann <gerd@gnu.org>
2018
2019 * xfaces.c (x_update_menu_appearance): Use a different path
2020 for Lucid popup menus.
2021
2022 2001-03-22 Stefan Monnier <monnier@cs.yale.edu>
2023
2024 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
2025
2026 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
2027 (string_buffer_position): Use `make_number'.
2028
2029 2001-03-22 Gerd Moellmann <gerd@gnu.org>
2030
2031 * xfaces.c (x_update_menu_appearance): Renamed from
2032 x_set_menu_face_resources. Use different resources for popups.
2033
2034 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
2035 (GC_CHECK_STRING_BYTES): Don't define.
2036
2037 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
2038 Removed, together with subroutines.
2039 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
2040 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
2041
2042 * dispextern.h (x_set_menu_resources_from_menu_face):
2043 Remove prototype.
2044
2045 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
2046 Remove calls to x_set_menu_resources_from_menu_face.
2047
2048 * xfaces.c (xm_set_menu_resources_from_menu_face):
2049 Remove #ifndef LESSTIF_VERSION.
2050
2051 * xmenu.c: Include widget.h.
2052 (single_submenu): Return int. Some cleanup.
2053 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
2054
2055 2001-03-21 Gerd Moellmann <gerd@gnu.org>
2056
2057 * xterm.c (x_update_window_end): Handle overwritten mouse face
2058 also for tool bar windows.
2059 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
2060 DRAW is DRAW_IMAGE_RAISED.
2061
2062 2001-03-20 Gerd Moellmann <gerd@gnu.org>
2063
2064 * print.c (syms_of_print): Doc fixes.
2065
2066 * fns.c (Fmd5): Doc fix.
2067
2068 2001-03-19 Gerd Moellmann <gerd@gnu.org>
2069
2070 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
2071 Clear area of the frame not occupied by the scroll bar.
2072
2073 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
2074 tip frame's root window buffer to *tip* right after creating
2075 the frame.
2076
2077 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
2078 is an integer don't have to be for space characters.
2079
2080 2001-03-16 Gerd Moellmann <gerd@gnu.org>
2081
2082 * indent.c (current_column, current_column_1, Fmove_to_column)
2083 (compute_motion): Handle characters from display vectors differently.
2084
2085 2001-03-15 Kenichi Handa <handa@etl.go.jp>
2086
2087 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
2088 drawing glyph string.
2089
2090 2001-03-15 Gerd Moellmann <gerd@gnu.org>
2091
2092 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
2093 (command_loop_1): Undo last change.
2094
2095 * xterm.c (fast_find_position): Return the correct vpos.
2096
2097 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
2098 non-null, set a per-buffer value in BUF instead of the current buffer.
2099 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
2100 Call store_symval_forwarding with BUF null.
2101 (set_internal): Call store_symval_forwarding with the BUF
2102 parameter passed to set_internal. Formerly, the value was always
2103 set in the current buffer; the buffer recorded in specbind for
2104 this case wasn't used.
2105 (arith_driver): Reindent.
2106
2107 * buffer.c (swap_out_buffer_local_variables):
2108 Call store_symval_forwarding with BUF null.
2109
2110 * lisp.h (store_symval_forwarding): Change prototype.
2111
2112 * eval.c (specbind): Call store_symval_forwarding with BUF null.
2113
2114 2001-03-14 Gerd Moellmann <gerd@gnu.org>
2115
2116 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
2117 FOR_DELETION. Avoid resizing the mini-window of the selected
2118 frame if FOR_DELETION is set.
2119 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
2120 (Fmake_frame_invisible): Change calls to do_switch_frame for new
2121 signature.
2122
2123 * window.c (Fset_window_configuration): Change call to
2124 do_switch_frame to new format.
2125
2126 * keyboard.c (quit_throw_to_read_char): Change call to
2127 do_switch_frame to new format.
2128
2129 * lisp.h (do_switch_frame): Change prototype.
2130
2131 * frame.c (Fframe_parameters): In the `buffer-list' frame
2132 parameter, store the buffer list of FRAME, not the list of the
2133 selected frame.
2134
2135 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
2136 box just because the glyph row's full_width_p flag is set.
2137
2138 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
2139
2140 * xdisp.c (highlight_trailing_whitespace): On character terminals,
2141 skip the padding blanks inserted in extend_face_to_end_of_line,
2142 before checking for trailing whitespace.
2143
2144 2001-03-13 Gerd Moellmann <gerd@gnu.org>
2145
2146 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
2147 Remove special handling for LessTif/Motif.
2148 (toplevel): Don't include Xm/Xm.h.
2149
2150 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
2151 Remove workaround code for LessTif; it doesn't work anymore.
2152
2153 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
2154 Xm/ScrollBarP.h.
2155
2156 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
2157 Don't access private scroll bar data; it's no longer necessary with
2158 contemporary LessTif.
2159
2160 * xfaces.c (xm_set_menu_resources_from_menu_face):
2161 Change #if 0 to #ifndef LESSTIF_VERSION.
2162
2163 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
2164 removing button grabs.
2165
2166 2001-03-13 Kenichi Handa <handa@etl.go.jp>
2167
2168 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
2169 and clip-large-size-font as obsolete.
2170
2171 * lread.c (read_multibyte): Check the validity of multibyte
2172 sequence. If invalid, return the first byte.
2173
2174 2001-03-12 Gerd Moellmann <gerd@gnu.org>
2175
2176 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
2177 before running the command; timer functions or process
2178 filters may have set it.
2179
2180 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
2181
2182 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
2183 Doc fix.
2184
2185 2001-03-12 Gerd Moellmann <gerd@gnu.org>
2186
2187 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
2188 to sprintf.
2189
2190 2001-03-09 Gerd Moellmann <gerd@gnu.org>
2191
2192 * dispextern.h (string_buffer_position): Add prototype.
2193
2194 * xdisp.c (string_buffer_position, display_prop_string_p)
2195 (single_display_prop_string_p): New functions.
2196
2197 * xterm.c (note_mouse_highlight): If there's no help-echo on
2198 a string, look at the buffer text ``under'' it.
2199
2200 * keyboard.c (make_lispy_event): Add string info to the event,
2201 analogous to what's done on mode lines.
2202 (read_key_sequence): For a click on a string, consider `local-map'
2203 and `keymap' of that string.
2204
2205 * keyboard.c (make_lispy_event, make_lispy_movement):
2206 Adjust calls to buffer_posn_from_coords to new format.
2207
2208 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
2209
2210 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
2211 POS; return void.
2212
2213 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
2214 flags argument to emacs_open; it seems to conflict with O_EXCL.
2215
2216 2001-03-09 Kenichi Handa <handa@etl.go.jp>
2217
2218 * composite.h (struct composition): Change types of members;
2219 glyph_len to unsigned, width to unsigned short.
2220
2221 2001-03-08 Andrew Innes <andrewi@gnu.org>
2222
2223 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
2224 menu titles.
2225
2226 2001-03-08 Gerd Moellmann <gerd@gnu.org>
2227
2228 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
2229 instead of nil.
2230
2231 * xterm.c (note_mouse_highlight): Handle mouse-face and
2232 help-echo in strings.
2233 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
2234 (fast_find_string_pos): New function.
2235
2236 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
2237 (display_string): Call face_at_string_position with new parameter.
2238
2239 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
2240 Handle `mouse-face'.
2241
2242 * dispextern.h (face_at_string_position): Change prototype.
2243
2244 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
2245
2246 * keyboard.c (make_lispy_event): Avoid generating drag events
2247 if the mouse hasn't actually moved to another buffer position.
2248
2249 2001-03-08 Dave Love <fx@gnu.org>
2250
2251 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
2252
2253 2001-03-08 Gerd Moellmann <gerd@gnu.org>
2254
2255 * process.c (Fset_process_window_size): Fix a typo.
2256
2257 2001-03-08 Kenichi Handa <handa@etl.go.jp>
2258
2259 * coding.c (detect_coding_sjis): Do more rigid check.
2260 (detect_coding_big5): Likewise.
2261 (decode_coding_sjis_big5): Likewise.
2262 (Fdetect_coding_region): Call detect_coding_system with tailing
2263 anchor byte `\0' for more rigid detection.
2264 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
2265 (Fdetect_coding_string): Likewise.
2266
2267 2001-03-07 Stefan Monnier <monnier@cs.yale.edu>
2268
2269 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
2270 a string before extracting its data.
2271
2272 2001-03-07 Gerd Moellmann <gerd@gnu.org>
2273
2274 * window.c (Frecenter): Rewrite code handling negative values
2275 of ARG on graphical frames.
2276
2277 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
2278
2279 * window.c (displayed_window_lines): If W->start is outside the
2280 accessible portion of the buffer, call start_display with BEGV or
2281 ZV instead of W->start.
2282
2283 2001-03-07 Gerd Moellmann <gerd@gnu.org>
2284
2285 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
2286
2287 * process.c (Fset_process_filter): Don't crash if the input
2288 file descriptor of PROCESS is closed.
2289 (Fset_process_window_size): Likewise.
2290
2291 2001-03-06 Kenichi Handa <handa@etl.go.jp>
2292
2293 * xterm.c (XTflash): Make the timeout of select shorter, and call
2294 select repeatedly until the desired time expires.
2295
2296 2001-03-06 Gerd Moellmann <gerd@gnu.org>
2297
2298 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
2299
2300 * xfns.c (Fx_create_frame): Clear Vwindow_list.
2301
2302 * lisp.h (Vwindow_list): Declare extern.
2303
2304 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
2305
2306 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
2307
2308 2001-03-06 Gerd Moellmann <gerd@gnu.org>
2309
2310 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
2311 to detect a case where we have to highlight a different region
2312 despite not having left the currently highlighted region.
2313 Set mouse_face_overlay in the x_display_info.
2314 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
2315
2316 * xterm.h (struct x_display_info): Add mouse_face_overlay.
2317
2318 * buffer.c (mouse_face_overlay_overlaps): New function.
2319
2320 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
2321 (Qmouse_face): Declare extern.
2322
2323 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
2324 if face_change_count is non-zero.
2325
2326 2001-03-06 Kenichi Handa <handa@etl.go.jp>
2327
2328 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
2329 that the source is unibyte.
2330
2331 2001-03-05 Dave Love <fx@gnu.org>
2332
2333 * xterm.c (XTmouse_position): Fix typo.
2334
2335 2001-03-05 Gerd Moellmann <gerd@gnu.org>
2336
2337 * minibuf.c (read_minibuf): Clean up the binding stack if
2338 called noninteractively.
2339
2340 2001-03-05 Kenichi Handa <handa@etl.go.jp>
2341
2342 * coding.c (syms_of_coding): Docstring modified.
2343
2344 2001-03-05 Kenichi Handa <handa@etl.go.jp>
2345
2346 * charset.c (char_to_string): If a single byte char has modifier
2347 bits that can't be reflected to the character code, ignore them
2348 instead of signaling an error.
2349
2350 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
2351
2352 * s/msdos.h: Update copyright notice.
2353
2354 * dosfns.h: Update copyright notice.
2355
2356 * dosfns.c: Update copyright notice.
2357
2358 * msdos.c: Update copyright notice.
2359
2360 2001-03-02 Gerd Moellmann <gerd@gnu.org>
2361
2362 * xterm.c (glyph_rect): New function.
2363 (XTmouse_position): Use it to raise the threshold for mouse
2364 movement event generation.
2365
2366 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
2367
2368 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
2369 specifies (reverse . t), reverse the initial screen colors.
2370 (IT_set_frame_parameters): If the property is foreground-color,
2371 but we are reversing the colors, set bg_set, not fg_set.
2372 Likewise for setting background-color and reversing: set fg_set.
2373 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
2374 in effect.
2375
2376 * xfaces.c (Finternal_set_lisp_face_attribute)
2377 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
2378 parameters alist.
2379
2380 2001-03-02 Gerd Moellmann <gerd@gnu.org>
2381
2382 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
2383 to a single slash in the middle of file names.
2384
2385 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
2386 Accept only alphanumeric time zone names.
2387
2388 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
2389 or width area.
2390 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
2391 a widget to zero height.
2392
2393 2001-03-01 Gerd Moellmann <gerd@gnu.org>
2394
2395 * window.c (Fwindow_end): Call move_it_past_eol only if
2396 ending up on a partially visible line.
2397
2398 2001-03-01 Dave Love <fx@gnu.org>
2399
2400 * ccl.c (Fccl_execute): Doc fix.
2401
2402 2001-03-01 Gerd Moellmann <gerd@gnu.org>
2403
2404 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
2405 of the tool bar before calling x_figure_window_size.
2406
2407 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
2408 NULL after destroying it, otherwise XTread_socket can access a
2409 destroyed widget when input is unblocked.
2410
2411 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
2412
2413 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
2414 same name as before, although there was a change in fontsets.
2415
2416 2001-02-28 Ken Raeburn <raeburn@gnu.org>
2417
2418 * lisp.h (Fframe_parameter): Declare.
2419
2420 * window.c (set_window_buffer): Field vscroll is an int, not a
2421 Lisp_Object.
2422
2423 2001-02-28 Gerd Moellmann <gerd@gnu.org>
2424
2425 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
2426 NULL instead.
2427
2428 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
2429 NULL instead.
2430
2431 * alloc.c (toplevel): Include process.h.
2432 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
2433 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
2434 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
2435 (allocate_vector, allocate_hash_table, allocate_window)
2436 (allocate_frame, allocate_process, allocate_other_vector):
2437 New functions.
2438 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
2439 (mark_maybe_pointer): New function.
2440 (mark_memory): Also mark Lisp data to which only pointers
2441 remain and not Lisp_Objects.
2442 (min_heap_address, max_heap_address): New variables.
2443 (mem_find): Return MEM_NIL if START is below min_heap_address or
2444 above max_heap_address.
2445 (mem_insert): Compute min_heap_address and max_heap_address.
2446
2447 * process.c (make_process): Use allocate_process.
2448
2449 * frame.c (make_frame): Use allocate_frame.
2450
2451 * window.c (make_window, make_dummy_parent): Use allocate_window.
2452 (Fcurrent_window_configuration): Use allocate_other_vector.
2453
2454 * lisp.h (allocate_vectorlike): Remove prototype.
2455 (allocate_vector, allocate_other_vector, allocate_frame)
2456 (allocate_window, allocate_process, allocate_hash_table):
2457 Add prototypes.
2458
2459 * fns.c (Fdelete, larger_vector): Use allocate_vector.
2460 (make_hash_table, copy_hash_table): Use allocate_hash_table.
2461
2462 2001-02-27 Kenichi Handa <handa@etl.go.jp>
2463
2464 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
2465 treat the produced bytes as a valid multibyte sequence.
2466
2467 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
2468 (ccl_driver) <CCL_WriteMultibyteChar2>:
2469 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
2470 <ccl_finish>: Set ccl->eight_bit_control properly.
2471
2472 * ccl.h (struct ccl_program): New member eight_bit_control.
2473
2474 2001-02-26 Stefan Monnier <monnier@cs.yale.edu>
2475
2476 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
2477 accessible_keymaps_char_table.
2478 (accessible_keymaps_char_table): Obey `is_metized'.
2479 (where_is_internal, Fwhere_is_internal): Don't confuse int and
2480 Lisp_Object.
2481
2482 2001-02-26 Gerd Moellmann <gerd@gnu.org>
2483
2484 * dispnew.c: Check HAVE_TERM_H before including term.h.
2485
2486 2001-02-24 Andrew Innes <andrewi@gnu.org>
2487
2488 * makefile.w32-in: Update copyright notice.
2489
2490 2001-02-24 Stefan Monnier <monnier@cs.yale.edu>
2491
2492 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
2493
2494 2001-02-24 Kenichi Handa <handa@etl.go.jp>
2495
2496 * Makefile.in (lisp): Add international/utf-8.elc.
2497
2498 * fontset.c (Fnew_fontset): Fix handling of the case that an
2499 element of FONTLIST is a cons of family and registry.
2500
2501 2001-02-23 Jason Rumney <jasonr@gnu.org>
2502
2503 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
2504 to height unconditionally.
2505
2506 * w32term.c (x_set_glyph_string_background_width): Extend the
2507 background face to the end of the drawing area in the text area, only.
2508 (x_insert_glyphs): Call window_box_left to obtain the left
2509 x-coordinate of the area to shift.
2510
2511 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
2512 safe_run_hooks.
2513
2514 2001-02-22 Andrew Innes <andrewi@gnu.org>
2515
2516 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
2517 ($(BLD)\dispnew.obj):
2518 ($(BLD)\editfns.obj):
2519 ($(BLD)\fileio.obj):
2520 ($(BLD)\filelock.obj):
2521 ($(BLD)\keyboard.obj):
2522 ($(BLD)\w32proc.obj):
2523 ($(BLD)\process.obj):
2524 ($(BLD)\sysdep.obj): Ditto.
2525
2526 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
2527 header files.
2528 ($(BLD)/dispnew.$(O)):
2529 ($(BLD)/editfns.$(O)):
2530 ($(BLD)/fileio.$(O)):
2531 ($(BLD)/filelock.$(O)):
2532 ($(BLD)/keyboard.$(O)):
2533 ($(BLD)/w32proc.$(O)):
2534 ($(BLD)/process.$(O)):
2535 ($(BLD)/sysdep.$(O)): Ditto.
2536
2537 2001-02-22 Gerd Moellmann <gerd@gnu.org>
2538
2539 * xdisp.c (forward_to_next_line_start): When taking the shortcut
2540 at the start of the function, check that the \n in it->c is
2541 from the iterator's current position.
2542
2543 * xdisp.c (handle_single_display_prop): Add parameter
2544 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
2545 properties which replace the display of text with something else.
2546 (handle_display_prop): Call handle_single_display_prop with
2547 additional argument saying if we already replaced text display
2548 with something else. Use AREF.
2549 (with_echo_area_buffer_unwind_data, display_menu_bar)
2550 (decode_mode_spec_coding): Use AREF and ASIZE.
2551
2552 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
2553 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
2554 * vmstime.h: Files removed.
2555
2556 * unexencap.c, unexfx2800.c: Files removed.
2557
2558 * dispnew.c (direct_output_for_insert): Give up if we are showing
2559 a message or just cleared the message because we might need to
2560 resize the echo area window or display an empty echo area.
2561
2562 2001-02-21 Gerd Moellmann <gerd@gnu.org>
2563
2564 * xdisp.c (redisplay_internal): Do the
2565 mark_window_display_accurate after all windows have been
2566 redisplayed because this call resets flags in buffers which are
2567 needed for proper redisplay.
2568
2569 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
2570 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
2571 the old names.
2572
2573 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
2574 busy_window to hourglass_window, busy_p to hourglass_p.
2575
2576 * msdos.h (struct x_output): Rename busy_window to
2577 hourglass_window, busy_p to hourglass_p.
2578
2579 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
2580 busy_window to hourglass_window, busy_p to hourglass_p.
2581
2582 * xfns.c: Rename everything containing *busy_cursor* and similar
2583 to *hourglass*.
2584 (syms_of_w32fns): Rename x-busy-pointer-shape to
2585 x-hourglass-pointer-shape, display-busy-cursor to
2586 display-hourglass, busy-cursor-delay to hourglass-delay.
2587
2588 * w32fns.c: Rename everything containing *busy_cursor* and similar
2589 to *hourglass*.
2590 (syms_of_w32fns): Rename x-busy-pointer-shape to
2591 x-hourglass-pointer-shape, display-busy-cursor to
2592 display-hourglass, busy-cursor-delay to hourglass-delay.
2593
2594 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
2595 of its busy_p flag.
2596
2597 * dispextern.h (start_hourglass, cancel_hourglass)
2598 (display_hourglass_p): Renamed from *busy_cursor*.
2599
2600 2001-02-20 Gerd Moellmann <gerd@gnu.org>
2601
2602 * keyboard.c (read_char): When an event from unread-command-events
2603 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
2604
2605 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
2606 equal to the current buffer.
2607
2608 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
2609 nil, otherwise we're left with truncate_lines t when a message
2610 is printed with message-truncate-lines bound to t.
2611
2612 2001-02-19 Gerd Moellmann <gerd@gnu.org>
2613
2614 * window.c (Fmove_to_window_line): Undo last change.
2615 (displayed_window_lines): Call line_bottom_y to determine
2616 the line's bottom position.
2617
2618 * dispextern.h (line_bottom_y): Add prototype.
2619
2620 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
2621 (pos_visible_p): Use it.
2622
2623 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
2624 set redisplaying_p to 0 here instead of in Frecursive_edit.
2625 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
2626 set redisplaying_p.
2627
2628 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
2629 New variables.
2630 (syms_of_xdisp): Initialize new variables.
2631 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
2632 Specbind `inhibit-menubar-update' when updating the menu bar.
2633
2634 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
2635 safe_run_hooks.
2636
2637 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
2638 safe_run_hooks.
2639
2640 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
2641 is null.
2642
2643 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
2644 to the start of the file.
2645
2646 2001-02-16 Gerd Moellmann <gerd@gnu.org>
2647
2648 * window.c (set_window_buffer): Fix last change.
2649
2650 * window.c (set_window_buffer): Set window's vscroll to 0.
2651
2652 * window.c (coordinates_in_window): Increase width of area
2653 where the vertical line can be dragged.
2654
2655 * xterm.c (x_set_glyph_string_background_width): Extend the
2656 background face to the end of the drawing area in the text
2657 area, only.
2658
2659 * xdisp.c (handle_single_display_prop): Set iterator's position
2660 to where the `display' property starts, like for images.
2661 (dump_glyph): New function.
2662 (dump_glyph_row): Use it. Dump info about marginal areas.
2663
2664 * dispnew.c (direct_output_for_insert): Recognize more cases where
2665 glyphs can be written instead of being inserted.
2666
2667 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
2668 the left x-coordinate of the area to shift.
2669
2670 * dired.c (directory_files_internal): Set result list to nil
2671 before retrying.
2672
2673 2001-02-15 Kenichi Handa <handa@etl.go.jp>
2674
2675 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
2676 invalid multibyte sequence, treat *SRC as a character of
2677 eight-bit-graphic.
2678
2679 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
2680
2681 * textprop.c (Fset_text_properties): Doc fix.
2682
2683 2001-02-15 Gerd Moellmann <gerd@gnu.org>
2684
2685 * dispnew.c (update_text_area): Undo change of 2001-01-12.
2686
2687 2001-02-14 Dave Love <fx@gnu.org>
2688
2689 * coding.c: Doc and message fixes.
2690
2691 2001-02-14 Andrew Innes <andrewi@gnu.org>
2692
2693 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
2694 Emacs frame above the screen size.
2695
2696 2001-02-14 Gerd Moellmann <gerd@gnu.org>
2697
2698 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
2699
2700 2001-02-13 Gerd Moellmann <gerd@gnu.org>
2701
2702 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
2703 case that TO ends up beyond ZV after running before-change-functions.
2704
2705 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
2706 the selected window if it is showing the buffer in question.
2707
2708 * dired.c (directory_files_internal): Initialize errno.
2709 (toplevel): Include errno.h.
2710
2711 2001-02-13 Kenichi Handa <handa@etl.go.jp>
2712
2713 * xfaces.c (best_matching_font): New parameter width_ratio.
2714 Multiply avgwidth by width_ratio.
2715 (choose_face_font): Call best_matching_font with width_ratio
2716 calculated from the column width of C.
2717
2718 2001-02-12 Andrew Innes <andrewi@gnu.org>
2719
2720 The following changes are to draw box lines inside characters area
2721 if line-width is negative.
2722
2723 * w32term.c (x_produce_image_glyph): Pay attention to the case that
2724 face->box_line_width is negative.
2725 (x_produce_stretch_glyph): Likewise.
2726 (x_produce_glyphs): Likewise.
2727 (x_estimate_mode_line_height): Likewise.
2728 (x_draw_glyph_string_background): Likewise.
2729 (x_draw_glyph_string_foreground): Likewise.
2730 (x_draw_composite_glyph_string_foreground): Likewise.
2731 (x_draw_glyph_string_box): Likewise.
2732 (x_draw_image_foreground): Likewise.
2733 (x_draw_image_relief): Likewise.
2734 (x_draw_image_foreground_1): Likewise.
2735 (x_draw_image_glyph_string): Likewise.
2736
2737 2001-02-09 Kenichi Handa <handa@etl.go.jp>
2738
2739 The following changes are to draw box lines inside characters area
2740 if line-width is negative.
2741
2742 * xterm.c (x_produce_image_glyph): Pay attention to the case that
2743 face->box_line_width is negative.
2744 (x_produce_stretch_glyph): Likewise.
2745 (x_produce_glyphs): Likewise.
2746 (x_estimate_mode_line_height): Likewise.
2747 (x_draw_glyph_string_background): Likewise.
2748 (x_draw_glyph_string_foreground): Likewise.
2749 (x_draw_composite_glyph_string_foreground): Likewise.
2750 (x_draw_glyph_string_box): Likewise.
2751 (x_draw_image_foreground): Likewise.
2752 (x_draw_image_relief): Likewise.
2753 (x_draw_image_foreground_1): Likewise.
2754 (x_draw_image_glyph_string): Likewise.
2755
2756 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
2757 and :line-width can be negative.
2758 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
2759
2760 2001-02-09 Jason Rumney <jasonr@gnu.org>
2761
2762 * w32term.c (w32_encode_char): Treat eight bit graphic and control
2763 characters the same as ASCII and latin-1.
2764 (x_display_and_set_cursor): Check for the focus frame's selected
2765 window instead of selected_window.
2766 (x_after_update_window_line): Don't clear if frame's internal
2767 border width is zero.
2768 (x_new_font): Don't change a tooltip's size.
2769 (w32_initialize): Set char_ins_del_ok to 1.
2770
2771 * w32fns.c (Fx_show_tip): Fix calls to make_number.
2772 (x_set_font): If font hasn't changed, avoid recomputing
2773 faces and other things.
2774 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
2775 (Fx_create_frame): Add the tool bar height to the frame height.
2776 (x_create_tip_frame): Prevent changing the tooltip's
2777 background color by specifying a color for the default font
2778 in .Xdefaults.
2779 (Qcancel_timer): New variable.
2780 (syms_of_w32fns): Initialize and staticpro it.
2781 (Fx_hide_tip, Fx_show_tip): Use it.
2782 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
2783 the timer.
2784 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
2785
2786 * w32.c (init_environment): Duplicate local string before putenv.
2787
2788 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
2789
2790 * charset.c (Fstring): A typo.
2791
2792 2001-02-09 Kenichi Handa <handa@etl.go.jp>
2793
2794 * charset.c (Fstring): If all arguments are less than 256, return
2795 a unibyte string.
2796
2797 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
2798 return a unibyte string.
2799
2800 * coding.c (code_convert_region): After detecting a coding, if
2801 nothing found, set coding->composing to COMPOSITION_NO.
2802 (decode_coding_string): Likewise.
2803
2804 2001-02-08 Stefan Monnier <monnier@cs.yale.edu>
2805
2806 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
2807 to avoid overflow.
2808
2809 2001-02-07 Kenichi Handa <handa@etl.go.jp>
2810
2811 * charset.c (parse_str_to_multibyte): New function.
2812
2813 * charset.h (parse_str_to_multibyte): Extern it.
2814
2815 * print.c (print_string): If we are going to print a unibyte
2816 string into a multibyte buffer, convert the string to multibyte by
2817 str_to_multibyte.
2818
2819 2001-02-06 Andrew Innes <andrewi@gnu.org>
2820
2821 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
2822 been created. It seems we can get sent window messages such as
2823 WM_ERASEBKGND before we properly update a frame.
2824
2825 2001-02-06 Gerd Moellmann <gerd@gnu.org>
2826
2827 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
2828 Avoid some unnecessary cursor positioning.
2829
2830 2001-02-05 Gerd Moellmann <gerd@gnu.org>
2831
2832 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
2833 (LFACE_AVGWIDTH): New macro.
2834 (LFACEP): Use AREF.
2835 (check_lface_attrs): Check LFACE_AVGWIDTH.
2836 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
2837 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
2838 (merge_face_vectors): Check LFACE_AVGWIDTH.
2839 (Finternal_make_lisp_face): Use AREF.
2840 (xm_set_menu_resources_from_menu_face)
2841 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
2842 (Finternal_lisp_face_empty_p): Use AREF.
2843 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
2844 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
2845 Compare average widths..
2846 (best_matching_font): Arrange for comparing average widths.
2847
2848 * dispextern.h (enum lface_attribute_index):
2849 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
2850
2851 2001-02-05 Dave Love <fx@gnu.org>
2852
2853 * puresize.h: Revert last change following loadup.el change.
2854
2855 2001-02-05 Andrew Innes <andrewi@gnu.org>
2856
2857 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
2858 invocation of temacs, to work with Windows 2000.
2859 (bootstrap-emacs): Ditto.
2860
2861 2001-02-05 Gerd Moellmann <gerd@gnu.org>
2862
2863 * xterm.c (x_display_and_set_cursor): Check for the focus
2864 frame's selected window instead of selected_window.
2865
2866 * xdisp.c (try_scrolling): If point is in the line below the
2867 window, make sure to move the iterator at least a canonical
2868 char height down.
2869
2870 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
2871
2872 2001-02-05 Kenichi Handa <handa@etl.go.jp>
2873
2874 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
2875 If invalid, execute CCL_INVALID_CMD.
2876 (ccl_driver): If the CCL program is terminated because of
2877 CCL_STAT_INVALID_CMD, copy the remaining source data to the
2878 destination instead of throwing them away.
2879
2880 2001-02-02 Gerd Moellmann <gerd@gnu.org>
2881
2882 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
2883 faces and other things.
2884
2885 * xdisp.c (get_next_display_element): Fix case of empty
2886 display table entry.
2887
2888 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
2889
2890 * editfns.c (Fconstrain_to_field): Doc fix.
2891
2892 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
2893 into `thoroughly', to make it consistent with the doc string.
2894
2895 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
2896
2897 2001-02-01 Gerd Moellmann <gerd@gnu.org>
2898
2899 * search.c (search_buffer): Call set_search_regs with a byte
2900 position, not a character position.
2901
2902 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
2903 minibuffer-only,
2904
2905 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
2906
2907 * frame.c (Fmodify_frame_parameters): Doc fix.
2908
2909 2001-01-31 Gerd Moellmann <gerd@gnu.org>
2910
2911 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
2912 identifier which is not reserved by Standard C.
2913
2914 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
2915
2916 * window.c (enum window_part): New enumeration.
2917 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
2918 Qright_bitmap_area.
2919 (coordinates_in_window): Return an enumerator from enum
2920 window_part. Fix handling of right scroll bar.
2921 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
2922 `right-fringe' instead of `left-bitmap-area' and
2923 `right-bitmap-area'. Use enumerators from enum window_part
2924 instead of hard-coded integers.
2925 (check_window_containing, window_from_coordinates):
2926 Use enumerators from enum window_part instead of hard-coded integers.
2927 (syms_of_window): Replace Qleft_bitmap_area and
2928 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
2929
2930 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
2931
2932 * editfns.c (Fformat_time_string): Doc fix.
2933
2934 2001-01-31 Stefan Monnier <monnier@cs.yale.edu>
2935
2936 * keymap.c (Fwhere_is_internal): Use the first valid binding
2937 if no ascii binding is found (when firstonly is t).
2938
2939 2001-01-31 Gerd Moellmann <gerd@gnu.org>
2940
2941 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
2942 instead of Finteractive_p.
2943
2944 * lisp.h (interactive_p): Add prototype.
2945
2946 * eval.c (interactive_p): New function.
2947 (Finteractive_p): Use it.
2948
2949 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
2950
2951 2001-01-31 Dave Love <fx@gnu.org>
2952
2953 * .gdbinit (hook-run): Define to run xreload.
2954
2955 * textprop.c (Fset_text_properties): Fix newline in doc string.
2956
2957 2001-01-30 Gerd Moellmann <gerd@gnu.org>
2958
2959 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
2960 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
2961
2962 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
2963 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
2964 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
2965
2966 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
2967 height.
2968
2969 2001-01-30 Dave Love <fx@gnu.org>
2970
2971 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
2972 AFTER_POTENTIAL_GC.
2973
2974 2001-01-29 Gerd Moellmann <gerd@gnu.org>
2975
2976 * bytecode.c (Fbyte_code) <Bcurrent_column>:
2977 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
2978
2979 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
2980
2981 * textprop.c (Fset_text_properties): Doc fix.
2982
2983 2001-01-29 Gerd Moellmann <gerd@gnu.org>
2984
2985 * xdisp.c (forward_to_next_line_start): Remove xassert.
2986
2987 2001-01-29 Jason Rumney <jasonr@gnu.org>
2988
2989 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
2990 returning without releasing it.
2991
2992 2001-01-29 Kenichi Handa <handa@etl.go.jp>
2993
2994 * w32fns.c (w32_font_match): Allocate three more bytes to regex
2995 for '^', '$', and '\0'.
2996
2997 2001-01-28 Andrew Choi <akochoi@i-cable.com>
2998
2999 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
3000 regex for '^', '$', and '\0'.
3001
3002 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
3003 only if current_sblock has been initialized.
3004
3005 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
3006 terminal frame even if it is the only visible frame.
3007
3008 2001-01-28 Kenichi Handa <handa@etl.go.jp>
3009
3010 * fontset.c (font_family_registry): Even if FONTNAME conform to
3011 XLFD, if it specifies other fields than family and registry,
3012 return FONTANME. New argument FORCE if nonzero cancel that feature.
3013 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
3014 a signle byte character. Don't set FAMILY part to nil here.
3015 It is handled by the caller choose_face_font.
3016 (Fnew_fontset): Call font_family_registry with FORCE 0.
3017 (Fset_fontset_font): Likewise.
3018
3019 2001-01-27 Gerd Moellmann <gerd@gnu.org>
3020
3021 * xdisp.c (display_line): Don't treat a newline as fitting
3022 on the line.
3023
3024 2001-01-26 Gerd Moellmann <gerd@gnu.org>
3025
3026 * window.c (size_window): Set the window's orig_top to nil when
3027 changing heights, so that a future shrink_mini_window won't
3028 restore a bogus height.
3029
3030 * frame.c (do_switch_frame): If selected frame has a mini-window,
3031 resize that to exact size.
3032
3033 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
3034
3035 * xdisp.c (display_line): Simplify check for glyphs fitting
3036 entirely in the line.
3037
3038 * xfns.c (xic_style): New variable.
3039 (create_frame_xic): Move static variable to global scope for
3040 the case that `static' gets defined away.
3041
3042 2001-01-26 Kenichi Handa <handa@etl.go.jp>
3043
3044 * coding.c (decode_coding): Set a flag for inhibiting
3045 inconsistent eol.
3046 (code_convert_region): Always set saved_coding_symbol.
3047 (decode_coding_string): Likewise. Update coding->symbol when we
3048 encounter a inconsistent eol by the same way as code_convert_region.
3049
3050 2001-01-25 Gerd Moellmann <gerd@gnu.org>
3051
3052 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
3053 XClearArea.
3054
3055 * xterm.c (x_after_update_window_line): Don't clear if frame's
3056 internal border width is zero.
3057 (x_clear_area): New function.
3058 (x_after_update_window_line, x_clear_end_of_line)
3059 (x_scroll_bar_create, x_scroll_bar_set_handle)
3060 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
3061 instead of XClearArea.
3062
3063 * xterm.h (x_clear_area): Add prototype.
3064
3065 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
3066 which doesn't seem necessary anymore with Lesstif 0.92.
3067
3068 2001-01-25 Dave Love <fx@gnu.org>
3069
3070 * puresize.h (BASE_PURESIZE): Up to 720000.
3071
3072 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
3073
3074 2001-01-25 Gerd Moellmann <gerd@gnu.org>
3075
3076 * xdisp.c (echo_area_display): Don't call redisplay_internal
3077 when Emacs is shutting down. We can't run hooks etc. that
3078 would be necessary to do a redisplay.
3079
3080 * lread.c (read_integer): Use type EMACS_INT instead of int.
3081
3082 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
3083
3084 * ccl.c (ccl_driver): Fix last change.
3085
3086 2001-01-25 Kenichi Handa <handa@etl.go.jp>
3087
3088 * ccl.h (sturct ccl_program): New member suppress_error.
3089
3090 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
3091 insert error message to the output.
3092 (setup_ccl_program): Initialize ccl->suppress_error to 0.
3093
3094 * coding.h (struct coding_system): New member suppress_error.
3095
3096 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
3097 (Fset_terminal_coding_system_internal): Set the member
3098 suppress_error to 1.
3099 (Fset_safe_terminal_coding_system_internal): Likewise.
3100
3101 2001-01-24 Stefan Monnier <monnier@cs.yale.edu>
3102
3103 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
3104 as if it was a `charset'.
3105
3106 2001-01-24 Gerd Moellmann <gerd@gnu.org>
3107
3108 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
3109 value in where_is_cache; the next lookup in the cache returns
3110 something bogus if we do.
3111
3112 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
3113
3114 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
3115 if HAVE_WINDOW_SYSTEM isn't defined.
3116
3117 2001-01-24 Gerd Moellmann <gerd@gnu.org>
3118
3119 * fns.c (sweep_weak_table): Fix code taking items out of
3120 the hash collision chain. Some cleanup.
3121
3122 * xterm.c (x_new_font): Don't change a tooltip's size.
3123
3124 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
3125 background color by specifying a color for the default font
3126 in .Xdefaults.
3127
3128 2001-01-24 Kenichi Handa <handa@etl.go.jp>
3129
3130 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
3131 a workaround for SunOS 4's cc.
3132 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
3133 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
3134 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
3135 statement.
3136
3137 2001-01-23 Gerd Moellmann <gerd@gnu.org>
3138
3139 * xterm.c (x_set_window_size_1): New function extracted from
3140 x_set_window_size.
3141 (x_set_window_size): Use it.
3142 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
3143 doesn't have a widget, like tooltips.
3144
3145 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
3146
3147 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
3148
3149 2001-01-23 Kenichi Handa <handa@etl.go.jp>
3150
3151 * fns.c (Fset_char_table_default): Fix to make sub char-table
3152 correctly.
3153
3154 2001-01-22 Gerd Moellmann <gerd@gnu.org>
3155
3156 * xdisp.c (build_desired_tool_bar_string): Make sure we have
3157 a desired tool bar string, even if there are no tool bar items.
3158
3159 * xdisp.c (Ftool_bar_lines_needed): New function.
3160 (syms_of_xdisp): Defsubr it.
3161
3162 * editfns.c (Fformat): Don't extend text properties from arguments
3163 to padding chars in the result.
3164
3165 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
3166
3167 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
3168
3169 2001-01-20 Andrew Innes <andrewi@gnu.org>
3170
3171 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
3172 (w32_initialize): Don't set term hooks that aren't actually needed
3173 in windowed mode.
3174
3175 * xfaces.c (realize_default_face):
3176 (realize_face):
3177 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
3178
3179 * xdisp.c (handle_single_display_prop): Remove references to
3180 FRAME_W32_CONSOLE_P.
3181
3182 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
3183
3184 * frame.h (output_method): Remove output_w32_console method.
3185 (FRAME_W32_CONSOLE_P): Remove macro.
3186
3187 * frame.c (Qw32_console): Remove variable.
3188 (Fframep): Remove references to it.
3189 (syms_of_frame): Ditto.
3190 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
3191
3192 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
3193 redefinition.
3194
3195 2001-01-20 Kenichi Handa <handa@etl.go.jp>
3196
3197 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
3198
3199 2001-01-19 Andrew Innes <andrewi@gnu.org>
3200
3201 * w32.c (init_environment): Add a version-independent site-lisp
3202 directory to EMACSLOADPATH, after the version dependent one.
3203
3204 2001-01-19 Gerd Moellmann <gerd@gnu.org>
3205
3206 * editfns.c (Fbuffer_substring): Doc fix.
3207
3208 * xdisp.c (message_dolog, message2, message2_nolog):
3209 Rename parameter LEN to NBYTES.
3210
3211 2001-01-19 Kenichi Handa <handa@etl.go.jp>
3212
3213 * charset.c (strwidth): Use c_string_width.
3214 (c_string_width): New function.
3215 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
3216 Caller changed.
3217
3218 * charset.h (c_string_width, lisp_string_width): Extern them.
3219
3220 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
3221
3222 * indent.c (check_composition): Check validity of composition.
3223
3224 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
3225 characters by calling c_string_width.
3226 (x_consider_frame_title): Get byte length of frame tile string
3227 correctly.
3228 (display_mode_element): Pay attention to width of non-ASCII
3229 characters by calling strwidth.
3230
3231 2001-01-18 Gerd Moellmann <gerd@gnu.org>
3232
3233 * xfns.c (Qcancel_timer): New variable.
3234 (syms_of_xfns): Initialize and staticpro it.
3235 (Fx_hide_tip, Fx_show_tip): Use it.
3236 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
3237 the timer.
3238 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
3239
3240 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
3241
3242 * window.h (WINDOW_LIVE_P): New macro.
3243
3244 * window.c (window_size_fixed): New variable.
3245 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
3246 the doc string.
3247
3248 * eval.c (specbind): If binding a per-buffer variable which
3249 doesn't have a buffer-local value in the current buffer, change
3250 the global value by changing the value of the symbol bound in all
3251 buffers not having their own value, to make it consistent with
3252 what happens with other buffer-local variables.
3253
3254 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
3255
3256 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
3257 when searching for a newline.
3258
3259 2001-01-18 Kenichi Handa <handa@etl.go.jp>
3260
3261 * xdisp.c (display_string): Fix previous change.
3262
3263 2001-01-18 Jason Rumney <jasonr@gnu.org>
3264
3265 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
3266 GLYPH_DEBUG is defined.
3267 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
3268 true for images with `:ascent 100'.
3269 (x_set_mouse_face_gc): If the last used mouse face has gone in the
3270 meantime, use face MOUSE_FACE_ID.
3271 If first glyph isn't a character glyph, use the ASCII NUL
3272 character to determine the face.
3273 (expose_area): Do not treat left margin specially.
3274 (note_mode_line_highlight): If no local_map, check global keymap.
3275 (note_mouse_highlight): Initialize overlay.
3276 (clear_mouse_face): Don't return if tip_frame is non-nil.
3277 (show_scroll_bars): Remove unused function.
3278 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
3279 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
3280 Clip to row.
3281 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
3282 (x_free_frame_resources): Unload relief colors.
3283
3284 2001-01-17 Gerd Moellmann <gerd@gnu.org>
3285
3286 * xdisp.c (forward_to_next_line_start): Avoid calling
3287 get_next_display_element when the newline is already found.
3288 This may change the iterator's position, when its current position is
3289 equal to the iterator's stop_charpos.
3290
3291 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
3292 zero, use this method only at the end of a line.
3293
3294 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
3295 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
3296 if SCALABLE_FONTS_P is set.
3297
3298 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
3299 so that scalable fonts are included.
3300
3301 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
3302 In the cache, use a key containing the information if scalable
3303 fonts are included.
3304 (x_load_font): Adapt to change of keys in the font cache.
3305
3306 2001-01-17 Kim F. Storm <storm@filanet.dk>
3307
3308 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
3309 XListFonts to take advantage of font caching.
3310
3311 * xterm.c (x_list_fonts): Ensure caching font information when
3312 called for a null frame, which is the case frequently when Emacs
3313 starts.
3314
3315 2001-01-17 Gerd Moellmann <gerd@gnu.org>
3316
3317 * xfns.c (QCconversion): Replaces QCalgorithm.
3318
3319 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
3320
3321 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
3322 of :algorithm.
3323
3324 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
3325 not everything could be displayed.
3326
3327 * line.h, x-list-font.c: Files removed because unused.
3328
3329 2001-01-17 Andrew Innes <andrewi@gnu.org>
3330
3331 * dired.c (directory_files_internal): Convert result from readdir
3332 to a unibyte string initially, to avoid possible misinterpretation
3333 of some bytes as the internal form of Emacs characters.
3334
3335 2001-01-17 Kenichi Handa <handa@etl.go.jp>
3336
3337 * fns.c (concat): Be sure to avoid putting the same `composition'
3338 property on the adjacent regions.
3339
3340 2001-01-16 Gerd Moellmann <gerd@gnu.org>
3341
3342 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
3343 (Fscroll_right, Fscroll_left): Set it here instead, if called
3344 interactively.
3345
3346 * buffer.c (Fset_buffer_modified_p): Set buffer's
3347 prevent_redisplay_optimizations_p flag.
3348
3349 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
3350 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
3351 with additional arg.
3352
3353 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
3354 Change prototype.
3355
3356 * xdisp.c (redisplay_preserve_echo_area): Add parameter
3357 FROM_WHERE, for debugging.
3358
3359 2001-01-16 Kenichi Handa <handa@etl.go.jp>
3360
3361 * ccl.c (Fregister_ccl_program): Handle the return value of
3362 resolve_symbol_ccl_program correctly.
3363 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
3364
3365 2001-01-15 Gerd Moellmann <gerd@gnu.org>
3366
3367 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
3368 has gone in the meantime, use face MOUSE_FACE_ID.
3369
3370 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
3371 If x_display_info_for_display returns null, don't try to close
3372 the display; we didn't open it.
3373
3374 * dispnew.c (save_or_restore_current_matrices): Function removed.
3375 (save_current_matrix, restore_current_matrix): New functions.
3376 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
3377 restore the frame's current matrix. Due to the glyph pointer
3378 setup done in adjust_glyph_matrix, there is no easy way to make
3379 saving the current matrix in the desired matrix generally correct,
3380 so don't try it.
3381
3382 2001-01-15 Kenichi Handa <handa@etl.go.jp>
3383
3384 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
3385 truncation glyphs.
3386 (display_line): Optimize for wide characters.
3387 (display_string): Don't try to display a multi-column character
3388 partially. On ttys, produce more than one truncation glyph for
3389 multi-column characters that don't fit on the line.
3390
3391 2001-01-13 Kenichi Handa <handa@etl.go.jp>
3392
3393 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
3394 Define it instead of WORDS_BIGENDIAN. Caller changed.
3395
3396 2001-01-13 Jason Rumney <jasonr@gnu.org>
3397
3398 * w32fns.c (Fimage_size, image_ascent, lookup_image)
3399 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
3400 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
3401 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
3402
3403 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
3404 (x_draw_image_relief, x_draw_image_foreground_1)
3405 (x_draw_image_glyph_string): Adapt to change of image margins.
3406
3407 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
3408 variables.
3409
3410 * w32bdf.c (search_file_line, get_cached_font_char)
3411 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
3412
3413 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
3414
3415 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
3416 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
3417 (Fw32_send_sys_command): Remove unused variables.
3418 (w32_msg_pump): Add parentheses.
3419
3420 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
3421 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
3422 Add parentheses.
3423
3424 2001-01-12 Gerd Moellmann <gerd@gnu.org>
3425
3426 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
3427 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
3428 being a pair of margins.
3429 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
3430 to DEFVAR_LISP. Extend doc.
3431
3432 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
3433 margins.
3434 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
3435 pair of integers `(X . Y)', use X for the horizontal and Y for the
3436 vertical margin.
3437 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
3438 (parse_image_spec): Check it.
3439 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
3440 (tiff_format, gif_format, gs_format):
3441 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
3442
3443 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
3444 (x_draw_image_relief, x_draw_image_foreground_1)
3445 (x_draw_image_glyph_string): Adapt to the change of image margins.
3446
3447 * dispextern.h (struct image): Replace member `margin' with
3448 `hmargin' and `vmargin'.
3449
3450 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
3451 and GLYPHS.
3452
3453 * dispnew.c (update_text_area): Put code which decrements the
3454 stop position when the row's face extends to the end of the
3455 line in #if 0.
3456
3457 * xfns.c (x_set_mouse_color): Fix color allocation.
3458
3459 * keyboard.c: Call get_local_map with new argument list.
3460
3461 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
3462
3463 * intervals.h (enum map_property): Removed.
3464 (get_local_map): Change prototype.
3465
3466 * keymap.c: Call get_local_map with new argument list.
3467 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
3468
3469 2001-01-11 Gerd Moellmann <gerd@gnu.org>
3470
3471 * xdisp.c (build_desired_tool_bar_string): Correct the computation
3472 of the size needed for the tool bar string. For the last image,
3473 use a `display' property that reaches to the end of the string.
3474
3475 * xselect.c (selection_request_dpyinfo): New variable.
3476 (x_handle_selection_request): Set it.
3477 (x_selection_request_lisp_error): Don't call
3478 x_decline_selection_request if selection request's display has
3479 been closed.
3480
3481 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
3482 Do the unregister_colors before calling XFreeColors.
3483
3484 2001-01-10 Dave Love <fx@gnu.org>
3485
3486 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
3487 ${SOME_MACHINE_LISP}, not ${lisp}.
3488
3489 2001-01-10 Gerd Moellmann <gerd@gnu.org>
3490
3491 * xdisp.c (display_line): On ttys, produce more than one truncation
3492 glyph for multi-column characters that don't fit on the line.
3493
3494 * xselect.c (x_reply_selection_request): Add a comment.
3495
3496 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
3497 XkbGetNames instead of XkbGetKeyboard.
3498
3499 2001-01-10 Dave Love <fx@gnu.org>
3500
3501 * sysdep.c (random): Revert the declaration.
3502
3503 2001-01-09 Gerd Moellmann <gerd@gnu.org>
3504
3505 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
3506 Call function string_bytes.
3507 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
3508
3509 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
3510 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
3511 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
3512 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
3513 the current sblock.
3514 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
3515 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
3516 after sweeping strings, and at the end.
3517 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
3518
3519 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
3520 ensure that pop_message is called.
3521
3522 * keyboard.c (Fexecute_extended_command): Use a
3523 record_unwind_protect to ensure that pop_message is called.
3524
3525 * lisp.h (push_message_unwind): Add prototype.
3526
3527 * xdisp.c (push_message_unwind): New function.
3528
3529 * fileio.c (do_auto_save_unwind): Do the pop_message here
3530 instead of in Fdo_auto_save.
3531 (Fdo_auto_save): Don't call pop_message.
3532
3533 2001-01-08 Ken Raeburn <raeburn@gnu.org>
3534
3535 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
3536 in inner block.
3537
3538 2001-01-08 Gerd Moellmann <gerd@gnu.org>
3539
3540 * window.c (window_scroll_pixel_based): Adjust glyph matrices
3541 when increasing window's vscroll.
3542
3543 * macros.c (Qkbd_macro_termination_hook): New variable.
3544 (syms_of_macros): Initialize and staticpro it.
3545 (pop_kbd_macro): Run kbd-macro-termination-hook.
3546
3547 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
3548
3549 2001-01-07 Dave Love <fx@gnu.org>
3550
3551 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
3552 arglist, for documentation's sake.
3553
3554 2001-01-06 Andrew Innes <andrewi@gnu.org>
3555
3556 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
3557 of *.pdb.
3558
3559 2001-01-05 Andrew Innes <andrewi@gnu.org>
3560
3561 * term.c (update_end): Don't check updating_frame; for some reason
3562 this can be 0 sometimes, such as after dismissing a popup menu,
3563 and isn't necessary given the explicit frame argument.
3564
3565 2001-01-05 Gerd Moellmann <gerd@gnu.org>
3566
3567 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
3568 on some systems, and an unsigned long on others, like FreeBSD 4.1.
3569
3570 2001-01-04 Gerd Moellmann <gerd@gnu.org>
3571
3572 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
3573
3574 * xfns.c (x_create_tip_frame): Preserve the value of
3575 face_change_count around the creation of the tip frame.
3576
3577 * xfns.c (last_show_tip_args): New variable.
3578 (compute_tip_xy): New function.
3579 (Fx_show_tip): Reuse an existing tip frame, if possible.
3580 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
3581
3582 2001-01-04 Dave Love <fx@gnu.org>
3583
3584 * editfns.c (Fformat): Doc fix.
3585
3586 * systime.h (set_file_times): Prototype.
3587
3588 * widget.h (EmacsFrameSetCharSize_): Prototype.
3589
3590 * sysdep.c (random, srandom): Declare explicitly.
3591
3592 * dispextern.h (move_it_vertically_backward): Declare.
3593
3594 2001-01-04 Gerd Moellmann <gerd@gnu.org>
3595
3596 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
3597 like in Fx_create_frame.
3598
3599 * xfaces.c (set_font_frame_param): Don't do anything for
3600 non-graphical frames.
3601
3602 * window.c (Fdelete_other_windows): Set window's window_end_valid
3603 to nil when changing the window's start. Don't change the
3604 window's start when its top position hasn't changed. If we do,
3605 this will set the window's optional_new_start, which act's like a
3606 force_start during redisplay with C-x 1 M-> under particular
3607 circumstances (see report from Per Starback to emacs-pretest-bug
3608 from 2000-12-13.).
3609
3610 2001-01-03 Gerd Moellmann <gerd@gnu.org>
3611
3612 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
3613 short cut at the start of the function. Add an assertion.
3614 (reseat_at_next_visible_line_start): Add an assertion.
3615
3616 * window.c (Frecenter): When changing the window start, set the
3617 window's window_end_valid to nil.
3618 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
3619
3620 * dispextern.h (move_it_past_eol): Add prototype.
3621
3622 * xdisp.c (move_it_past_eol): New function.
3623
3624 * window.c (Fwindow_end): Doc fix.
3625
3626 2001-01-03 Dave Love <fx@gnu.org>
3627
3628 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3629
3630 2001-01-03 Gerd Moellmann <gerd@gnu.org>
3631
3632 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
3633 the enabled_p flag of the glyph row at window_end_vpos to 0.
3634 (handle_single_display_prop): Fix last change.
3635
3636 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
3637
3638 * window.c (Frecenter): Doc fix.
3639
3640 2001-01-02 Andrew Innes <andrewi@gnu.org>
3641
3642 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
3643
3644 * frame.h (output_method): Add output_w32_console method.
3645 (FRAME_W32_CONSOLE_P): New macro.
3646
3647 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
3648 use output_w32_console method.
3649 (Qw32_console): New Lisp_Object.
3650 (Fframep): Return it.
3651 (syms_of_frame): Init it.
3652 (Fframe_parameters): Report w32console as font for w32_console frames.
3653
3654 * xfaces.c (realize_default_face): Set face foreground and
3655 background to unspecified for w32_console frames.
3656 (realize_face): Realize face cache for w32_console frames.
3657 (realize_tty_face): Accept w32_console frames.
3658
3659 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
3660 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
3661 necessary, even if running interactively.
3662
3663 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
3664 w32_console frames.
3665
3666 * w32term.c (x_update_begin):
3667 (x_update_end):
3668 (x_clear_frame):
3669 (x_ins_del_lines):
3670 (x_change_line_highlight):
3671 (x_delete_glyphs):
3672 (w32_ring_bell):
3673 (x_update_begin):
3674 (x_update_end):
3675 (w32_reassert_line_highlight):
3676 (w32_frame_rehighlight):
3677 (w32_frame_raise_lower): Do nothing if not w32 frame.
3678
3679 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
3680
3681 * w32fns.c (Fx_display_color_cells): Determine correct value, when
3682 system doesn't tell us directly.
3683 (Fx_display_visual_class): Implement properly.
3684
3685 2001-01-02 Gerd Moellmann <gerd@gnu.org>
3686
3687 * window.c (Frecenter): Handle centering in graphical frames
3688 specially. Centering on the basis of line counts doesn't work
3689 reliably with variable-height lines.
3690
3691 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
3692
3693 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
3694 and al[].
3695
3696 * composite.c (run_composition_function): Remove unused var `val'.
3697 (update_compositions): Remove unused variable `hook'.
3698
3699 * intervals.c (get_local_map): Remove unused variable `tem'.
3700
3701 * doprnt.c (doprnt1): Remove unused variable `size'.
3702
3703 * fns.c (Flength): Remove unused variable `tail'.
3704 (Fdelete): Remove unused variable `size'.
3705
3706 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
3707 and `gcpro2'.
3708
3709 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
3710
3711 * data.c (find_symbol_value): Remove extra 3rd argument in the
3712 call to swap_in_symval_forwarding.
3713
3714 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
3715
3716 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
3717 (trivial_regexp_p): Remove unused variable `c'.
3718 (boyer_moore): Remove unused variable `k'.
3719
3720 * indent.c (current_column): Remove unused variable `stopchar'.
3721 (Fcompute_motion): Remove unused variable `contin'.
3722
3723 * casefiddle.c (casify_object): Remove unused variable `tolen'.
3724
3725 * dired.c (directory_files_internal): Fix a typo in a comment.
3726 Remove an unused variable `handler'.
3727 (file_name_completion): Remove unused function-scope variable `dp'.
3728 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
3729 on BSD4_2.
3730
3731 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
3732
3733 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
3734 and `buf'.
3735 (Fmarker_insertion_type): Remove unused variable `buf'.
3736
3737 * insdel.c (make_gap): Remove unused variable `result'.
3738
3739 * keyboard.c (record_char): Remove unused function-scope var `help'.
3740 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
3741 (menu_bar_items): Remove unused function-scope variable `tem'.
3742
3743 * fontset.c (fontset_ref): Remove unused variable `i'.
3744 (fontset_set): Remove unused variables `j' and `tmp'.
3745 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
3746 (make_fontset_for_ascii_face): Remove unused variable `name'.
3747 (fs_load_font): Remove unused variable `font_idx'.
3748 (fs_query_fontset): Remove unused function-local variable `fontset'.
3749 (list_fontsets): Remove unused variable `tail'.
3750 (Fnew_fontset): Remove unused variables `family' and `registry'.
3751 (accumulate_font_info): Remove unused variable `tmp'.
3752 (Ffontset_font): Remove unused variable `id'.
3753 (syms_of_fontset): Remove unused variable `i'.
3754
3755 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
3756 to x_term_init.
3757 (lookup_image): Remove unused variable `file'.
3758 (xbm_load): Remove unused variables `bitmap_data', `height', and
3759 `width'. Remove function-local variable `i', leave the
3760 block-local one.
3761 (gif_load): Remove unused variable `inc'.
3762
3763 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
3764 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
3765 leave only the one in the inner block.
3766
3767 * xfaces.c (face_fontset, realize_default_face): Remove unused
3768 variable `fontset'.
3769 (face_at_buffer_position): Remove unused variable `multibyte_p'.
3770
3771 * term.c (encode_terminal_code): Remove unused variable `c'.
3772
3773 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
3774 char *' instead of `char *'.
3775
3776 * category.c (Fcategory_docstring): Remove unused variable `doc'.
3777 (Fget_unused_category): Remove unused variable `docstring_vector'.
3778 (Fchar_category_set): Remove unused variables `val', `charset',
3779 `c1' and `c2'.
3780
3781 * coding.c (detect_coding_iso2022, setup_coding_system):
3782 Remove unused variable `i'.
3783 (detect_coding_mask): Remove unused variable `idx'.
3784 (detect_coding): Remove unused variable `i'.
3785 (ccl_coding_driver): Remove unused variable `result'.
3786 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
3787 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
3788 (encode_coding_string): Remove unused variables `gcpro1' and
3789 `saved_coding_symbol'.
3790 (Ffind_coding_systems_region_internal): Remove function-local
3791 variable args[], leave only the block-local one.
3792 (code_convert_region1): Remove unused variable `len'.
3793
3794 * charset.c (char_printable_p): Remove unused variable `chars'.
3795 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
3796 (str_to_multibyte): Remove unused variable `c'.
3797
3798 * window.c (size_window): Remove block-local variable `min_size'.
3799
3800 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
3801 `header_line_height'.
3802 (append_space, extend_face_to_end_of_line): Declare `saved_what'
3803 enum display_element_type.
3804
3805 2001-01-02 Gerd Moellmann <gerd@gnu.org>
3806
3807 * xterm.c (x_connection_closed): Catch X errors around all
3808 statements that call X. Save away the error message in a local copy.
3809
3810 * xterm.c (x_connection_closed): Set handling_signal to 0 at
3811 the start.
3812
3813 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
3814 in or at the start of invisible text.
3815
3816 * dispnew.c (update_window): Don't check_current_matrix_flags.
3817
3818 2001-01-01 Jason Rumney <jasonr@gnu.org>
3819
3820 * w32fns.c (x_figure_window_size): Do not allow new_height and
3821 new_width of frame to override specified values.
3822
3823 2000-12-30 Kenichi Handa <handa@etl.go.jp>
3824
3825 * composite.c (find_composition): Fix a code for searching backward.
3826
3827 2000-12-29 Gerd Moellmann <gerd@gnu.org>
3828
3829 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
3830 (update_window) [GLYPH_DEBUG]: Call it.
3831 (scrolling_window): Prevent including current rows which are below
3832 what's displayed in the window.
3833
3834 * xdisp.c (try_window_reusing_current_matrix)
3835 <new start <= old start>: Disable rows in the current matrix
3836 which are below the window after scrolling.
3837
3838 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
3839 is zero. It's not worth the complexity.
3840 (invisible_text_between_p): Put in #if 0 because unused.
3841
3842 2000-12-28 Gerd Moellmann <gerd@gnu.org>
3843
3844 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
3845 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
3846
3847 * keyboard.c (echo_char): If C is an integer, always call
3848 push_key_description. Former code could signal an invalid
3849 character error.
3850
3851 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
3852 If set, print multibyte text.
3853 (Fsingle_key_description): Call push_key_description with
3854 FORCE_MULTIBYTE set.
3855 (describe_buffer_bindings): Likewise.
3856
3857 * lisp.h (push_key_description): Add prototype.
3858
3859 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
3860 around the call to redisplay_internal.
3861
3862 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
3863
3864 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
3865
3866 2000-12-28 Kenichi Handa <handa@etl.go.jp>
3867
3868 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
3869 (ccl_driver): New local variable `extra_bytes'.
3870
3871 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
3872
3873 * coding.c (setup_coding_system):
3874 Initialize coding->spec.ccl.eight_bit_carryover.
3875 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
3876
3877 2000-12-28 Kenichi Handa <handa@etl.go.jp>
3878
3879 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
3880 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
3881 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
3882 (decode_composition_emacs_mule): New function.
3883 (decode_coding_emacs_mule): Decode composition sequence by calling
3884 decode_composition_emacs_mule.
3885 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
3886 (encode_coding_emacs_mule): Changed from macro to function.
3887 If a text contains compositions, encode them correctly.
3888 (setup_coding_system): Set coding->commong_flags for emacs-mule so
3889 that decoding and encoding are required.
3890
3891 2000-12-27 Gerd Moellmann <gerd@gnu.org>
3892
3893 * xfaces.c (PT_PER_INCH): New macro.
3894 (xlfd_point_size): Compute real point size from font's pixel size.
3895 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
3896 instead of 72.
3897
3898 * .gdbinit: Comment out the line pointing to the Lesstif source
3899 directory.
3900
3901 * window.c (Frecenter): Use displayed_window_lines instead
3902 of window_internal_height.
3903
3904 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
3905 instead of x-toolkit-scroll-bars-p.
3906 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
3907
3908 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
3909 instead of x-toolkit-scroll-bars-p.
3910 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
3911
3912 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
3913 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
3914 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
3915 New variables.
3916 (add_window_display_history, add_frame_display_history)
3917 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
3918 (build_frame_matrix_from_leaf_window): Remove unused code.
3919 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
3920 redisplay history.
3921 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
3922 (update_window) [GLYPH_DEBUG]: Likewise.
3923 (syms_of_display): Defsubr dump-redisplay-history.
3924
3925 2000-12-23 Gerd Moellmann <gerd@gnu.org>
3926
3927 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
3928 the end of the prompt. Set echo_after_prompt to the offset
3929 of echoptr in echobuf.
3930
3931 * xdisp.c (init_from_display_pos): Pop until the iterator's
3932 stack is empty; there may be frames for stretch or images
3933 on the stack.
3934
3935 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
3936 (save_or_restore_current_matrix): New function for the same
3937 purpose, but more efficient.
3938 (adjust_frame_glyphs_for_frame_redisplay): Use it.
3939
3940 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
3941
3942 * xdisp.c (syms_of_xdisp): Fix last change.
3943
3944 2000-12-23 Gerd Moellmann <gerd@gnu.org>
3945
3946 * xdisp.c (syms_of_xdisp): Doc fix.
3947
3948 * xdisp.c (redisplay_window): Remove label restore_buffers;
3949 use finish_scroll_bars instead to make sure that scroll bars
3950 are redeemed. If we don't do this, flickering can result from
3951 scroll bars being destroyed and recreated.
3952
3953 2000-12-22 Jason Rumney <jasonr@gnu.org>
3954
3955 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
3956 in the wrong colors when the foreground is not black.
3957 (expose_window): Don't redraw the window that's currently being
3958 updated.
3959
3960 2000-12-22 Gerd Moellmann <gerd@gnu.org>
3961
3962 * window.c (size_window): When setting the window's too_small_ok
3963 flag, compare old size with minimum size depending on WIDTH_P,
3964 don't compare with window_min_width.
3965
3966 * window.c (delete_window): Simplify somewhat.
3967 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
3968 freeing window matrices. The flag windows_or_buffers_changed is
3969 set, so the next redisplay will consider all windows; this should
3970 suffice.
3971
3972 2000-12-22 Kenichi Handa <handa@etl.go.jp>
3973
3974 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
3975
3976 * ccl.h (struct ccl_program): New member cr_consumed.
3977
3978 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
3979 (CCL_READ_CHAR): Handle EOL conversion here.
3980 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
3981
3982 2000-12-21 Gerd Moellmann <gerd@gnu.org>
3983
3984 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
3985
3986 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
3987 otherwise tabs of different size compare equal.
3988
3989 * callint.c (Fcall_interactively): Prevent a compiler warning.
3990
3991 * print.c (print_unwind): Return nil.
3992 (PRINTDECLARE): Initialize all local variables.
3993 (print_preprocess): Add a default case.
3994
3995 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
3996
3997 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
3998
3999 * window.c (delete_window, Fsplit_window)
4000 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
4001
4002 * dispextern.h (ensure_frame_matrix): Function declaration removed.
4003
4004 * dispnew.c (ensure_frame_matrix): Removed.
4005 (save_frame_matrix, restore_frame_matrix): New functions.
4006 (adjust_frame_glyphs_for_frame_redisplay): Use them.
4007
4008 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
4009 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
4010
4011 2000-12-21 Andrew Innes <andrewi@gnu.org>
4012
4013 * w32term.c (x_update_begin): Regenerate the palette here, rather
4014 than for each window.
4015
4016 * w32xfns.c (select_palette): Avoid calling SelectPalette if
4017 palette is NULL, since this corrupts memory! Also get
4018 display_info reference from frame.
4019
4020 2000-12-21 Jason Rumney <jasonr@gnu.org>
4021
4022 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
4023
4024 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
4025 to avoid returning without releasing it.
4026
4027 2000-12-21 Kenichi Handa <handa@etl.go.jp>
4028
4029 * keymap.c (push_key_description): Don't convert eight-bit-control
4030 and eight-bit-graphic to multibyte character.
4031
4032 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
4033 generic character and CODE1 is nil, return the smallest character
4034 in CHARSET.
4035
4036 2000-12-20 Dave Love <fx@gnu.org>
4037
4038 * s/osf5-0.h (NSIG): Don't redefine.
4039
4040 2000-12-20 Stefan Monnier <monnier@cs.yale.edu>
4041
4042 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
4043 excluding menu-bar and tool-bar.
4044 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
4045 (menu_item_p): Remove.
4046 (where_is_internal_1): Don't ignore menu-items.
4047
4048 2000-12-20 Gerd Moellmann <gerd@gnu.org>
4049
4050 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
4051 into account.
4052
4053 * window.c (make_window): Initialize window's min_hscroll.
4054 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
4055 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
4056 to zero.
4057 (struct saved_window): New member min_hscroll.
4058 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
4059 (Fset_window_configuration): Set window's min_hscroll.
4060 (save_window_save): Save window's min_hscroll.
4061 (compare_window_configurations): Compare min_hscroll values.
4062
4063 * window.h (struct window): New member min_hscroll.
4064
4065 * keyboard.c (echo_prompt): Prevent a compiler warning.
4066
4067 * xdisp.c (try_cursor_movement): Fix last change. The real
4068 condition is that PT is at the end of the row, and should
4069 be displayed at the start of the next row.
4070
4071 * xdisp.c (try_cursor_movement): If we end on a partially
4072 visible line, end we already decided to scroll, return -1.
4073
4074 * dispextern.h (ensure_frame_matrix): Add prototype.
4075
4076 * window.c (delete_window, Fsplit_window)
4077 (Fset_window_configuration): Call ensure_frame_matrix.
4078
4079 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
4080 New functions.
4081 (adjust_frame_glyphs_for_frame_redisplay): If display has been
4082 completed, call fake_current_matrices instead of marking frame
4083 garbaged.
4084
4085 2000-12-20 Jason Rumney <jasonr@gnu.org>
4086
4087 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
4088
4089 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
4090
4091 * fns.c (Frequire): Doc fix.
4092
4093 2000-12-19 Gerd Moellmann <gerd@gnu.org>
4094
4095 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
4096
4097 * dispnew.c (direct_output_for_insert): Fix check for mini-window
4098 currently displaying a message.
4099
4100 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
4101 xterm.h.
4102 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
4103
4104 2000-12-18 Andrew Innes <andrewi@gnu.org>
4105
4106 * w32.c (w32_strerror): New function.
4107
4108 * w32.h (w32_strerror): New extern.
4109
4110 * w32fns.c (Fw32_shell_execute): Use it.
4111
4112 2000-12-18 Gerd Moellmann <gerd@gnu.org>
4113
4114 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
4115
4116 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
4117
4118 * msdos.c (IT_set_face): Obey inverse_video.
4119
4120 2000-12-18 Kenichi Handa <handa@etl.go.jp>
4121
4122 * dired.c (directory_files_internal): Always return decoded filenames.
4123
4124 2000-12-18 Gerd Moellmann <gerd@gnu.org>
4125
4126 * xterm.c (x_connection_closed): Prevent being called recursively
4127 because of an error condition in XtCloseDisplay.
4128
4129 * xdisp.c (init_iterator): If noninteractive, and the frame's
4130 face cache is null, make one.
4131
4132 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
4133
4134 * process.c (wait_reading_process_input): Check for pending
4135 input when running timers.
4136
4137 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
4138
4139 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
4140
4141 2000-12-18 Kenichi Handa <handa@etl.go.jp>
4142
4143 * process.c (read_process_output): Don't run a filter if the code
4144 decoder produces nothing but carryover.
4145
4146 2000-12-17 Andrew Innes <andrewi@gnu.org>
4147
4148 * w32.c (sys_rename): Only check errno against EEXIST, and not
4149 EACCES, when determining whether rename failed because the target
4150 exists. This was resulting in indefinite looping on Windows 9x if
4151 the source file was locked by another process.
4152
4153 * w32fns.c (Ffile_system_info): New function.
4154 (syms_of_w32fns): Defsubr it.
4155
4156 2000-12-17 Gerd Moellmann <gerd@gnu.org>
4157
4158 * window.c (coordinates_in_window): Fix computation for
4159 position on vertical line between mode lines.
4160
4161 * xfns.c (unwind_create_frame): Return t if frame was deleted.
4162 Don't alter tip_frame or tip_window.
4163 (unwind_create_tip_frame): Set tip_frame to nil only if frame
4164 was deleted.
4165
4166 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
4167 Don't alter tip_frame or tip_window.
4168 (unwind_create_tip_frame): Set tip_frame to nil only if frame
4169 was deleted.
4170
4171 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
4172
4173 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
4174 be consistent with the doc string. Reported by NAKAJIMA Mikio
4175 <minakaji@osaka.email.ne.jp>.
4176
4177 2000-12-16 Kenichi Handa <handa@etl.go.jp>
4178
4179 * xfaces.c (Vface_ignored_fonts): New variable.
4180 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
4181 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
4182
4183 2000-12-15 Gerd Moellmann <gerd@gnu.org>
4184
4185 * dispnew.c (update_window): Detect pending input every nth line
4186 updated, i.e. do it depending on real work done, and not on the
4187 vpos of the line.
4188
4189 * xterm.c (expose_window): Don't redraw the window that's
4190 currently being updated.
4191
4192 * window.c (Fset_window_point): Remove test for
4193 cursor_in_non_selected_windows.
4194
4195 * lread.c (read1): Recognize end of file after `\\'.
4196
4197 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
4198 not unwind_create_frame.
4199
4200 2000-12-15 Dave Love <fx@gnu.org>
4201
4202 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
4203 bcopy & al.
4204
4205 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
4206
4207 2000-12-15 Kenichi Handa <handa@etl.go.jp>
4208
4209 * coding.c (setup_coding_system): Clear all members of the struct
4210 coding_system at first.
4211 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
4212 argument.
4213 (code_convert_region): Don't override coding->src_multibyte and
4214 coding->dst_multibyte.
4215
4216 * fns.c (Fmd5): Docstring improved.
4217
4218 2000-12-15 Miles Bader <miles@gnu.org>
4219
4220 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
4221 are actually marked as mode-lines; otherwise use
4222 estimate_mode_line_height.
4223
4224 2000-12-14 Gerd Moellmann <gerd@gnu.org>
4225
4226 * editfns.c (Fformat): Prevent a buffer overrun when the format
4227 specifies a precision.
4228
4229 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
4230
4231 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
4232 argument is outside the range [2..3].
4233
4234 2000-12-14 Andrew Innes <andrewi@gnu.org>
4235
4236 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
4237 nothing to do. Bind inhibit-quit.
4238 (tip_frame): Make it a Lisp_Object.
4239 (x_create_tip_frame): Set tip_frame after it has been added to
4240 Vframe_list.
4241 (Fx_show_tip): Don't set tip_frame here.
4242 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
4243 (unwind_create_frame, unwind_create_tip_frame): New functions.
4244 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
4245 while a frame is only partially constructed.
4246
4247 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
4248 (x_free_frame_resources): New function.
4249 (x_destroy_window): Use it.
4250
4251 2000-12-14 Gerd Moellmann <gerd@gnu.org>
4252
4253 * xfns.c (Fx_backspace_delete_keys_p): New function.
4254 (syms_of_xfns): Defsubr it.
4255
4256 * config.in (HAVE_XKBGETKEYBOARD): Add.
4257
4258 2000-12-14 Kenichi Handa <handa@etl.go.jp>
4259
4260 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
4261 Always store string in multibyte representation in echobuf.
4262 (echo_char): Always store string in multibyte representation in
4263 echobuf.
4264 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
4265 (read_key_sequence): Adjusted for the change of echo_prompt.
4266
4267 * fns.c (Fmd5): Docstring improved.
4268
4269 * lisp.h (detect_coding_system): Prototype adjusted.
4270
4271 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
4272 (detect_coding_emacs_mule, detect_coding_iso2022,)
4273 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
4274 (detect_coding_utf_16, detect_coding_ccl): Make them static.
4275 New argument MULTIBYTEP. Callers changed.
4276 (detect_coding_mask, detect_coding_system): New argument
4277 MULTIBYTEP. Callers changed.
4278 (decode_coding_string): Set coding->src_multibyte and
4279 coding->dst_multibyte before calling detect_coding and detect_eol.
4280 Update them after some coding system is detected.
4281
4282 2000-12-13 Stefan Monnier <monnier@cs.yale.edu>
4283
4284 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
4285
4286 * keyboard.c (menu_bar_items, tool_bar_items):
4287 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
4288
4289 2000-12-13 Gerd Moellmann <gerd@gnu.org>
4290
4291 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
4292 New variables.
4293 (unwind_create_frame, unwind_create_tip_frame): New functions.
4294 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
4295 while a frame is only partially constructed.
4296
4297 * xterm.h (x_free_frame_resources): Declare.
4298
4299 * xterm.c (x_free_frame_resources): New function.
4300 (x_destroy_window): Use it.
4301
4302 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
4303 don't interrupt the update for pending input initially, i.e.
4304 update at least some lines.
4305
4306 * keyboard.c (do_mouse_tracking): Make externally visible.
4307
4308 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
4309
4310 * xfns.c (gray_bitmap_bits): Declare `char *'.
4311
4312 2000-12-12 Gerd Moellmann <gerd@gnu.org>
4313
4314 * xdisp.c (display_tool_bar_line): Make sure that tool bar
4315 lines start with a relief line.
4316
4317 2000-12-12 Dave Love <fx@gnu.org>
4318
4319 * window.c (Fdisplay_buffer): Doc fix.
4320 (Fwindow_list): Remove unused var.
4321
4322 * buffer.h (mmap_set_vars): Declare.
4323
4324 * window.h (Fset_window_point): Declare.
4325
4326 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
4327
4328 * msdos.c (fast_find_position): Don't overstep the last window row.
4329 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
4330 variable `area'. When looking for a row under (X,Y), give up if some
4331 of the previous rows is not enabled.
4332
4333 2000-12-12 Gerd Moellmann <gerd@gnu.org>
4334
4335 * window.c (Fset_window_point): If displaying cursors in windows
4336 other than the selected window, make sure redisplay updates
4337 other windows to show the new value of point in the window.
4338
4339 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
4340
4341 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
4342 the buffer is the sole visible buffer when in the mini-buffer.
4343
4344 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4345 Bind `inhibit-read-only' to t.
4346 (unwind_with_echo_area_buffer): Use AREF.
4347
4348 * xfns.c (Fx_hide_tip): Simplified.
4349
4350 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
4351 instead of `1'.
4352
4353 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
4354
4355 2000-12-11 Gerd Moellmann <gerd@gnu.org>
4356
4357 * xfns.c (Fx_hide_tip): Fix last change.
4358
4359 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
4360 nothing to do. Bind inhibit-quit.
4361 (tip_frame): Make it a Lisp_Object.
4362 (x_create_tip_frame): Set tip_frame after it has been added to
4363 Vframe_list.
4364 (Fx_show_tip): Don't set tip_frame here.
4365
4366 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
4367
4368 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
4369 Lisp_Object.
4370
4371 * dispextern.h: Change external declaration of tip_frame.
4372
4373 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
4374 return an empty string.
4375
4376 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
4377 of the window's update_mode_line flag, since the former is set by
4378 force-mode-line-update, not the latter. This makes
4379 column-number-mode slightly faster.
4380
4381 * xdisp.c (try_window_id) <all changes above window start>:
4382 Set the cursor.
4383
4384 2000-12-11 Paul Eggert <eggert@twinsun.com>
4385
4386 * config.in (HAVE_FTELLO): Remove.
4387 (HAVE_FSEEKO): Add.
4388 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
4389 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
4390 HAVE_FTELLO.
4391 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
4392 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
4393
4394 2000-12-11 Miles Bader <miles@gnu.org>
4395
4396 * window.c (displayed_window_lines): Don't round up when
4397 converting empty space at bottom to lines.
4398 Handle non-newline-terminated final lines properly.
4399 (Fwindow_text_height): New function (used to be in lisp).
4400 (syms_of_window): Initialize it.
4401
4402 2000-12-09 Stefan Monnier <monnier@cs.yale.edu>
4403
4404 * syntax.c (scan_lists): Check that the right quote char has the
4405 right Sstring syntax when jumping over strings.
4406 (init_syntax_once): Use Smax rather than 13.
4407
4408 2000-12-09 Miles Bader <miles@gnu.org>
4409
4410 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
4411 with PARTIALLY, inverting the sense.
4412 (window_scroll_pixel_based): Scroll partially visible lines into
4413 place if we hit the beginning or end of the buffer.
4414 (displayed_window_lines): Don't include partially visible lines.
4415 (Fmove_to_window_line): Skip past any partially visible first line.
4416
4417 2000-12-08 Gerd Moellmann <gerd@gnu.org>
4418
4419 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
4420
4421 * tparam.c (tparam1): Change the way buffers are reallocated to be
4422 portable and less obfuscated.
4423
4424 * termcap.c (tgetent): Change the way buffers are reallocated to
4425 be portable and less obfuscated.
4426
4427 * macros.c (store_kbd_macro_char): Change the way buffers are
4428 reallocated to be portable and less obfuscated.
4429
4430 * lread.c (read1): Change the way buffers are reallocated to be
4431 portable and less obfuscated.
4432
4433 * doc.c (Fsubstitute_command_keys): Change the way buffers
4434 are reallocated so that it is portable.
4435
4436 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
4437
4438 * dosfns.c (Ffile_system_info): New function.
4439 (syms_of_dosfns): Defsubr it.
4440
4441 2000-12-07 Stefan Monnier <monnier@cs.yale.edu>
4442
4443 * alloc.c (gc_sweep): Add comment.
4444
4445 2000-12-07 Gerd Moellmann <gerd@gnu.org>
4446
4447 * sound.c (vox_configure): Change order of ioctls.
4448 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
4449 Ignore errors when changing volume.
4450 (vox_close): Don't reset the device.
4451
4452 * process.c (read_process_output): Make sure the process marker's
4453 position is valid when the process buffer is changed in
4454 after-change functions. W3 does that.
4455
4456 * xfns.c (x_free_gcs): New function.
4457
4458 * xterm.h (x_free_gcs): Add prototype.
4459
4460 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
4461 freeing GCs here.
4462
4463 * xterm.c (x_destroy_window): Call x_free_gcs so that
4464 resources of non-toolkit X windows will be freed.
4465
4466 2000-12-07 Andrew Innes <andrewi@gnu.org>
4467
4468 * w32fns.c (xlfd_charset_of_font): Fix last change.
4469
4470 2000-12-06 Dave Love <fx@gnu.org>
4471
4472 * md5.h (__P): Don't define -- it comes from config.h.
4473
4474 * strftime.c: Change some #if foo to #ifdef foo.
4475
4476 2000-12-06 Andrew Innes <andrewi@gnu.org>
4477
4478 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
4479
4480 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4481 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
4482 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4483
4484 2000-12-06 Gerd Moellmann <gerd@gnu.org>
4485
4486 * alloc.c (gc_sweep): Prevent symbols read during loadup
4487 from being freed.
4488
4489 * xdisp.c (underlying_face_id): New function.
4490 (handle_face_prop, face_before_or_after_it_pos): Use it
4491 to determine the face ``under'' a string. Let strings inherit
4492 the face of the buffer under them.
4493
4494 * xfaces.c (face_at_string_position): Update function comment.
4495
4496 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
4497 matrix if the window's left position has changed; we need to
4498 redraw it in this case.
4499
4500 * dispextern.h (struct glyph_matrix): Add member window_left_x.
4501
4502 * window.c (coordinates_in_window): Check mouse on mode-line or
4503 header-line first.
4504
4505 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
4506 advertized by the function documentation.
4507
4508 * window.c (syms_of_window): Doc fix.
4509
4510 * sound.c (vox_configure): Set volume for left and right channel.
4511 (sound_cleanup): Return nil.
4512
4513 * xdisp.c (move_it_by_lines): Fix paren typo.
4514
4515 * xterm.c (x_load_font): Don't use the font's max_bounds for
4516 computing the height of the font. If max_bounds' ascent or
4517 descent are greater than the font's ascent or descent, this means
4518 glyphs overlap, which should be handled now by redisplay.
4519
4520 * window.c (Veven_window_heights): New variable.
4521 (syms_of_window): DEFVAR_LISP it.
4522 (Fdisplay_buffer): Check Veven_window_heights before evening the
4523 window heights.
4524
4525 2000-12-06 Miles Bader <miles@gnu.org>
4526
4527 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
4528 update `default-frame-alist' instead of setting no frame parameters.
4529
4530 2000-12-06 Kenichi Handa <handa@etl.go.jp>
4531
4532 * composite.c (update_compositions): Fix typo (use the correct
4533 variable).
4534
4535 2000-12-05 Jason Rumney <jasonr@gnu.org>
4536
4537 * md5.h: Remove underscores from function declarations.
4538 (__attribute__, __alignof__) [!__GNUC__]: Define.
4539
4540 * md5.c: Delay include of md5.h until after namespace cleaning.
4541
4542 * makefile.w32-in (fns.o): Depend on md5.h
4543 (md5.o): New target.
4544 (sunfns.o): Remove.
4545
4546 * makefile.nt: Likewise.
4547
4548 2000-12-05 Jason Rumney <jasonr@altavista.net>
4549
4550 * w32term.c (expose_area): Complete last change.
4551
4552 2000-12-05 Ken Raeburn <raeburn@gnu.org>
4553
4554 * minibuf.c: Include intervals.h.
4555
4556 2000-12-05 Jason Rumney <jasonr@gnu.org>
4557
4558 * w32term.c (x_produce_glyphs): If a font for a component of
4559 a composition is not found, use 1 pixel dot ascent and 0 dot
4560 descent value to avoid displaying terribly tall empty boxes.
4561 (expose_area): Pass x-coordinate relative to the exposed
4562 area to x_draw_glyphs instead of a window-relative coordinate.
4563
4564 2000-12-05 Gerd Moellmann <gerd@gnu.org>
4565
4566 * xdisp.c (next_element_from_ellipsis): Save face before selective
4567 display in saved_face_id, and set face_before_selective_p.
4568 (reseat_1): Reset face_before_selective_p.
4569 (append_space, extend_face_to_end_of_line): If iterator's
4570 face_before_selective_p is set, use the face from saved_face_id.
4571 (extend_face_to_end_of_line): For tty frames, make sure to
4572 use the right face id when producing spaces at the end of
4573 the line.
4574
4575 * dispextern.h (struct it): Add face_before_selective_p.
4576
4577 * keyboard.c (record_char): Don't record identical help-echo
4578 events in recent_keys.
4579
4580 * xterm.c [USE_X_TOOLKIT]: Close the display.
4581 (xim_close_dpy): Handle case that the display has been closed.
4582
4583 * xterm.c (x_destroy_window): Reset the frame's X window after
4584 destroying it.
4585
4586 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
4587 variable window_width.
4588 (line_draw_cost): Fix code skipping over spaces at the end of the
4589 line when must_write_spaces is not set.
4590 (scrolling_window): Fix code inserting runs in list of all runs.
4591
4592 2000-12-05 Kenichi Handa <handa@etl.go.jp>
4593
4594 * coding.c (setup_coding_system): Be sure to initialize
4595 coding->category_idx.
4596
4597 2000-12-04 Gerd Moellmann <gerd@gnu.org>
4598
4599 * xterm.c (PER_CHAR_METRIC): Removed because not used.
4600
4601 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
4602 area to x_draw_glyphs instead of a window-relative coordinate.
4603
4604 * fileio.c (auto_save_error): Add parameter ERROR. Show the
4605 error in the message.
4606
4607 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
4608 timer after having read a key. It's not good for code reading
4609 several keys in a loop, like an input method.
4610
4611 * fileio.c (Finsert_file_contents): When VISIT is t, don't
4612 record undo information for format-decode.
4613
4614 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
4615 current buffer is read-only, not if it isn't.
4616
4617 * keyboard.c (record_char): Record `help-echo' input events
4618 in recent_keys only if they display some help. Don't record
4619 `help-echo' events as macro char.
4620
4621 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
4622
4623 * editfns.c (save_excursion_restore): Don't move point
4624 in another window if it is showing the wrong buffer.
4625 Avoid the call to Fwindow_live_p, for speed.
4626
4627 2000-12-04 Kenichi Handa <handa@etl.go.jp>
4628
4629 * xfaces.c (struct font_name): New member registry_priority.
4630 (split_font_name): Initialize the above member to zero.
4631 (concat_font_list): New function.
4632 (font_list): Include fonts of all alternative registries.
4633 (FONT_POINT_SIZE_QUANTUM): New macro.
4634 (better_font_p): Ignore point size difference less than
4635 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
4636
4637 * xterm.c (x_produce_glyphs): If a font for a component of
4638 a composition is not found, use 1 pixel dot ascent and 0 dot
4639 descent value to avoid displaying terribly tall empty boxes.
4640
4641 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
4642
4643 2000-12-03 Ken Raeburn <raeburn@gnu.org>
4644
4645 * coding.h (code_convert_string1): Declare.
4646
4647 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
4648
4649 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
4650
4651 2000-12-02 Jason Rumney <jasonr@gnu.org>
4652
4653 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
4654 correctly for single byte character case.
4655 (w32_per_char_metric): Do not try to make any assumptions about
4656 the metrics of BDF fonts.
4657 (x_estimate_mode_line_height): If `mode-line' face
4658 hasn't a font, use that of the frame, as drawing glyphs does.
4659 (note_mouse_highlight): Change the cursor shape on the vertical
4660 border between windows [not enabled].
4661
4662 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
4663
4664 * w32fns.c (Fx_create_frame): Reintroduce the call to
4665 face-set-after-frame-defaults.
4666 (Vx_window_horizontal_drag_shape): New variable.
4667 (syms_of_xfns): DEFVAR_LISP it.
4668 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
4669 enabled].
4670
4671 2000-12-02 Simon Josefsson <simon@josefsson.org>
4672
4673 * fns.c (Fmd5): Use a different logic to decide the coding system
4674 to use.
4675
4676 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
4677
4678 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
4679
4680 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
4681
4682 2000-12-01 Gerd Moellmann <gerd@gnu.org>
4683
4684 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
4685 height for YNegative.
4686 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
4687 height; also see comment there.
4688
4689 * window.c (coordinates_in_window): Handle computations for
4690 positions on the vertical bar and fringes differently for
4691 window-system frames. Consider some pixels near the vertical bar
4692 as on the bar if the frame doesn't have vertical scroll bars.
4693 Associate positions between mode or header lines with the
4694 right window, the left one.
4695
4696 2000-12-01 Jason Rumney <jasonr@gnu.org>
4697
4698 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
4699
4700 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
4701 invalid frame.
4702
4703 2000-12-01 Gerd Moellmann <gerd@gnu.org>
4704
4705 * window.c (struct saved_window): Add members orig_top and orig_height.
4706 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
4707 (save_window_save, Fset_window_configuration): Save/restore
4708 window's orig_top and orig_height.
4709
4710 2000-12-01 Jason Rumney <jasonr@gnu.org>
4711
4712 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
4713
4714 * w32fns.c (x_set_cursor_color): Fix last change.
4715
4716 2000-11-30 Gerd Moellmann <gerd@gnu.org>
4717
4718 * xdisp.c (echo_area_display): If cursor is in the echo area, make
4719 sure that the next redisplay displays the minibuffer, so that
4720 the cursor will be replaced with what the minibuffer wants.
4721
4722 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
4723 #ifndef instead of using #if.
4724 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
4725 USE_TOOLKIT_SCROLL_BARS is defined.
4726
4727 2000-11-30 Jason Rumney <jasonr@gnu.org>
4728
4729 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
4730 x_display_cursor.
4731
4732 2000-11-30 Gerd Moellmann <gerd@gnu.org>
4733
4734 * fns.c (Fmd5): Doc fix.
4735
4736 2000-11-30 Simon Josefsson <simon@josefsson.org>
4737
4738 * fns.c (Fmd5): New function.
4739 (syms_of_fns): Defsubr md5.
4740
4741 * Makefile.in (obj): Add md5.o
4742
4743 2000-11-30 Gerd Moellmann <gerd@gnu.org>
4744
4745 * md5.h, md5.c: New files, taken from glibc.
4746
4747 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
4748
4749 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
4750 hasn't a font, use that of the frame, as drawing glyphs does.
4751
4752 2000-11-29 Stefan Monnier <monnier@cs.yale.edu>
4753
4754 * eval.c (Frun_hooks): Allow 0 arguments.
4755
4756 2000-11-29 Gerd Moellmann <gerd@gnu.org>
4757
4758 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
4759 is over the menu bar widget, say it's not on the frame.
4760
4761 * xfns.c (Fx_create_frame): Reintroduce the call to
4762 face-set-after-frame-defaults.
4763
4764 * eval.c (Fsignal): Reset handling_signal.
4765
4766 2000-11-28 Jason Rumney <jasonr@gnu.org>
4767
4768 * w32menu.c (add_menu_item): Reset menu item text when changing
4769 type to radio button.
4770
4771 2000-11-28 Gerd Moellmann <gerd@gnu.org>
4772
4773 * xselect.c: Update copyright.
4774
4775 * window.c (coordinates_in_window): If on a mode or header line,
4776 but sufficiently close to its start, return ``on vertical
4777 border''. This gives us a way to drag windows horizontally when
4778 using toolkit scroll bars.
4779
4780 * xterm.c (note_mouse_highlight): Change the cursor shape
4781 on the vertical border between windows.
4782
4783 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
4784
4785 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
4786 (syms_of_xfns): DEFVAR_LISP it.
4787 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
4788
4789 * textprop.c (text_read_only): New function.
4790 (verify_interval_modification): Use it instead of signaling
4791 `text-read-only'. This makes it easier to catch this error
4792 with a breakpoint.:
4793
4794 * xdisp.c (forward_to_next_line_start): Check for newlines,
4795 not end of line, which includes CR.
4796
4797 2000-11-28 Kenichi Handa <handa@etl.go.jp>
4798
4799 * coding.c (Ffind_coding_systems_region_internal): Be sure to
4800 include no-conversion.
4801
4802 2000-11-27 Jason Rumney <jasonr@gnu.org>
4803
4804 * w32fns.c (w32_load_system_font): Always mark font as double byte
4805 if codepage is unicode.
4806
4807 2000-11-27 Gerd Moellmann <gerd@gnu.org>
4808
4809 * xdisp.c (forward_to_next_line_start): If already on a newline,
4810 just consume it to avoid unintended skipping over invisible text below.
4811
4812 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
4813 `vertical-line', `mode-line' and `header-line' events.
4814
4815 * xdisp.c (try_window_id): Avoid starting to display in the middle
4816 of a character, a TAB for instance. This is easier than to set
4817 up the iterator exactly, and it's not a frequent case, so the
4818 additional effort wouldn't really pay off.
4819
4820 2000-11-26 Andrew Choi <akochoi@i-cable.com>
4821
4822 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
4823 init_window_once.
4824
4825 2000-11-25 Jason Rumney <jasonr@gnu.org>
4826
4827 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
4828 Args to window_from_coordinates should be pixel coordinates.
4829
4830 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
4831 redisplay handles them properly.
4832
4833 2000-11-25 Miles Bader <miles@gnu.org>
4834
4835 * indent.c (compute_motion): Keep pos_byte in sync with pos.
4836
4837 2000-11-24 Jason Rumney <jasonr@gnu.org>
4838
4839 * w32.c (init_environment): Set LANG environment variable based on
4840 locale settings, if not set.
4841
4842 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
4843 making tool bar smaller. When clearing the frame, also
4844 clear current matrices. Clear frame when tool bar disappears.
4845 Don't use more lines for the tool-bar than is available.
4846 (x_change_window_heights): New function.
4847
4848 2000-11-24 Gerd Moellmann <gerd@gnu.org>
4849
4850 * xdisp.c (init_from_display_pos): If POS says we're already after
4851 an overlay string ending at POS, make sure to pop the iterator
4852 because it will be in front of that overlay string. When POS is
4853 ZV, we've thereby also ``processed'' overlay strings at ZV.
4854
4855 * xfaces.c (lface_from_face_name): Function comment fix.
4856
4857 2000-11-24 Miles Bader <miles@gnu.org>
4858
4859 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
4860 apply `mode-line-inverse-video' -- zero means force display using
4861 the default face, non-zero means display using the specialized face.
4862 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
4863
4864 2000-11-23 Kenichi Handa <handa@etl.go.jp>
4865
4866 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
4867 hard coded `4'.
4868
4869 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
4870
4871 * coding.c (decode_coding_emacs_mule): Fix the case of
4872 CODING_EOL_LF, which used uninitialized value of c.
4873
4874 2000-11-23 Stefan Monnier <monnier@cs.yale.edu>
4875
4876 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
4877
4878 2000-11-22 Gerd Moellmann <gerd@gnu.org>
4879
4880 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
4881 buffer object.
4882
4883 * frame.h (struct frame): Replace desired_tool_bar_items,
4884 current_tool_bar_items, n_desired_tool_bar_items,
4885 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
4886
4887 * frame.c (make_frame): Change initialization of tool bar
4888 items accordingly.
4889
4890 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
4891 Change references to members deleted from struct frame to use the
4892 new ones.
4893
4894 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
4895 references to members deleted from struct frame to use the new ones.
4896
4897 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
4898
4899 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
4900
4901 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
4902 (note_tool_bar_highlight): Change references to members deleted
4903 from struct frame to use the new ones.
4904
4905 2000-11-23 Miles Bader <miles@gnu.org>
4906
4907 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
4908 the face's inverse-video attribute, rather than overriding it.
4909
4910 2000-11-22 Gerd Moellmann <gerd@gnu.org>
4911
4912 * xfns.c (x_set_tool_bar_lines): Clear internal border when
4913 making tool bar smaller.
4914
4915 2000-11-22 Dave Love <fx@gnu.org>
4916
4917 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
4918
4919 2000-11-22 Miles Bader <miles@gnu.org>
4920
4921 * keyboard.c (Vminibuffer_message_timeout): New variable.
4922 (command_loop_1): Use it to determine message timeout.
4923 (syms_of_keyboard): Initialize it.
4924
4925 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
4926
4927 2000-11-22 Kenichi Handa <handa@etl.go.jp>
4928
4929 * sysdep.c: Move the code for declaring h_errno after #include
4930 <netdb.h>.
4931
4932 2000-11-21 Gerd Moellmann <gerd@gnu.org>
4933
4934 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
4935 the menu bar when the tooltip is unmapped.
4936
4937 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
4938 sole visible buffer when we're currently in the mini-buffer, and
4939 give up if so.
4940
4941 2000-11-21 Jason Rumney <jasonr@gnu.org>
4942
4943 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
4944 put on the clipboard.
4945 (Fw32_get_clipboard_data): Compare data on clipboard with saved
4946 copy of what Emacs last put there. If they are the same, do not
4947 use the clipboard copy to avoid losing data due to coding conversions.
4948
4949 2000-11-22 Miles Bader <miles@gnu.org>
4950
4951 * minibuf.c (Vminibuffer_prompt_properties): New variable.
4952 (syms_of_minibuf): Initialize it.
4953 (read_minibuf): Add properties from Vminibuffer_prompt_properties
4954 to prompt, don't make read-only.
4955
4956 2000-11-21 Gerd Moellmann <gerd@gnu.org>
4957
4958 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
4959 Add BEFORE/AFTER_POTENTIAL_GC.
4960
4961 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
4962
4963 * buffer.c (mmap_free_1): Avoid a compiler warning.
4964
4965 * term.c, cm.c: Don't try to include termcap.h; see comment there.
4966
4967 2000-11-21 Kenichi Handa <handa@etl.go.jp>
4968
4969 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
4970 ... #endif scope.
4971
4972 2000-11-20 Gerd Moellmann <gerd@gnu.org>
4973
4974 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
4975 screen supports it.
4976
4977 * s/gnu-linux.h: Don't use `#cpu'.
4978
4979 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
4980 not defined in mman.h.
4981
4982 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
4983 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
4984 and store an index in the XClientMessageEvent. Storing a
4985 Lisp_Object or pointer can fail on a 64 bit system, since X only
4986 transfers 32 bits.
4987 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
4988
4989 2000-11-20 Dave Love <fx@gnu.org>
4990
4991 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
4992
4993 2000-11-20 Gerd Moellmann <gerd@gnu.org>
4994
4995 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
4996
4997 2000-11-20 Kenichi Handa <handa@etl.go.jp>
4998
4999 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
5000 by WIDTH.
5001
5002 * alloc.c (make_string): Fix previous change. Be sure to make
5003 unibyte string correctly.
5004
5005 2000-11-19 Gerd Moellmann <gerd@gnu.org>
5006
5007 * window.c (Fwindow_list): Change parameter list to be XEmacs
5008 compatible.
5009 (window_list_1): New function.
5010 (window_loop): Use it instead of Fwindow_list.
5011
5012 * sysdep.c (emacs_ospeed): New variable.
5013 (toplevel): Don't declare ospeed extern.
5014 (init_baud_rate): Use emacs_ospeed instead of ospeed.
5015
5016 * termcap.c (ospeed): Remove.
5017 (tputs) [!emacs]: Remove unused code.
5018 (tgetent): Avoid a compiler warning.
5019
5020 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
5021 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
5022 SCROLL_BAR_X_WIDGET with additional argument DPY.
5023
5024 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
5025 removed.
5026 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
5027 Take the X display as additional argument.
5028 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
5029 `Widget' is a pointer type that's not easily stored in Lisp_Object
5030 form in a portable way.
5031
5032 * dispnew.c (update_text_area): Fix last change.
5033
5034 2000-11-18 Gerd Moellmann <gerd@gnu.org>
5035
5036 * xdisp.c: Use BINDING_STACK_SIZE throughout.
5037
5038 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
5039 clear current matrices.
5040
5041 * buffer.c (mmap_enlarge): Don't print a message on stderr
5042 if mapping new memory at the end of the existing region fails.
5043
5044 * dispnew.c (update_text_area): Don't skip over equal glyphs
5045 when the last current glyph overlaps the glyph to its right.
5046
5047 2000-11-18 Miles Bader <miles@gnu.org>
5048
5049 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
5050 lines that *end* with "..." too (that's the most common case!).
5051
5052 2000-11-18 Gerd Moellmann <gerd@gnu.org>
5053
5054 * xdisp.c (resize_mini_window): Temporarily change to the
5055 mini-window's buffer if necessary.
5056
5057 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
5058 the tooltip obscures less text under it.
5059
5060 2000-11-17 Gerd Moellmann <gerd@gnu.org>
5061
5062 * puresize.h (BASE_PURESIZE): Increase to 700000.
5063
5064 2000-11-18 Jason Rumney <jasonr@gnu.org>
5065
5066 * w32term.c (w32_draw_bitmap): Use face to set colors.
5067
5068 2000-11-17 Dave Love <fx@gnu.org>
5069
5070 * lread.c (Fload): Fix #ifdef for pcc.
5071
5072 2000-11-17 Gerd Moellmann <gerd@gnu.org>
5073
5074 * xdisp.c (pos_visible_p): Compute the default character height
5075 differently.
5076
5077 2000-11-16 Gerd Moellmann <gerd@gnu.org>
5078
5079 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
5080 knowing the line's height; use the default font's height in that case.
5081
5082 * xfaces.c (weight_table): Add `demi' with the same meaning as
5083 `demibold'.
5084
5085 2000-11-16 Kenichi Handa <handa@etl.go.jp>
5086
5087 * dispnew.c (null_row): New global static variable.
5088 (clear_glyph_row): Delete local static variable null_row.
5089
5090 2000-11-15 Jason Rumney <jasonr@gnu.org>
5091
5092 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
5093 (w32_alloc_lighter_color): Use new brightness calculations from
5094 xterm.c. Scale delta to be in the range expected by W32.
5095 (w32_draw_relief_rect): Use frame relief colors.
5096
5097 2000-11-15 Gerd Moellmann <gerd@gnu.org>
5098
5099 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
5100 (Qinhibit_default_face_x_resources): New variable.
5101 (syms_of_frame): Initialize it.
5102 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
5103
5104 * xdisp.c (pos_visible_p): Improve function comment.
5105
5106 * lisp.h (BINDING_STACK_SIZE): New macro.
5107
5108 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
5109 reading the directory if readdir returns null and errno is EAGAIN
5110 or EINTR.
5111
5112 2000-11-14 Stefan Monnier <monnier@cs.yale.edu>
5113
5114 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
5115 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
5116 Set amount_to_scroll to max of dx and scroll_step so that
5117 scroll-conservatively doesn't defeat scroll-step>1.
5118 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
5119 scroll-conservatively for line-at-a-time scrolling.
5120
5121 2000-11-14 Gerd Moellmann <gerd@gnu.org>
5122
5123 * window.c (Fpos_visible_in_window_p): Call pos_visible with
5124 extra argument.
5125
5126 * xdisp.c (current_mode_line_height, current_header_line_height):
5127 New variables.
5128 (init_xdisp): Initialize them.
5129 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
5130 and use exact mode line heights if it is set.
5131
5132 * lisp.h (pos_visible_p): Change prototype.
5133
5134 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
5135 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
5136 and current_header_line_height first.
5137 (current_mode_line_height, current_header_line_height):
5138 Declare extern.
5139
5140 2000-11-14 Miles Bader <miles@lsi.nec.co.jp>
5141
5142 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
5143 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
5144 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
5145
5146 2000-11-14 Miles Bader <miles@gnu.org>
5147
5148 * xterm.c (x_alloc_lighter_color): Include an additive component
5149 too for dark colors, because FACTOR isn't enough.
5150 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
5151 New macros.
5152
5153 2000-11-13 Gerd Moellmann <gerd@gnu.org>
5154
5155 * keyboard.c (show_help_echo): Call message3_nolog with number of
5156 bytes in the help string as 2nd parameter, instead of the number
5157 of characters.
5158
5159 2000-11-13 Miles Bader <miles@gnu.org>
5160
5161 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
5162 (Fload): Use new openp return protocol.
5163 Don't try to use Vload_source_file_function to load .elc files.
5164 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
5165 openp return protocol.
5166 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
5167
5168 2000-11-11 Kenichi Handa <handa@etl.go.jp>
5169
5170 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
5171
5172 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
5173 Defined these macros.
5174 (NLIST_STRUCT): Avoid re-defining it.
5175
5176 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
5177 -I/usr/contrib/X11R6/include.
5178 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
5179
5180 2000-11-10 Jason Rumney <jasonr@gnu.org>
5181
5182 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
5183
5184 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
5185 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
5186
5187 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
5188 (Qw32_charset_vietnamese): New symbol.
5189 (xlfd_charset_of_font): New function.
5190 (w32_load_system_font): Use it.
5191 (x_to_w32_charset): Use Fassoc to find charset info. Special case
5192 when Vw32_charset_info_alist is nil to ensure default face always
5193 has font. Use Fcar and Fcdr for safety.
5194 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
5195 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
5196 pseudo-codepages for special cases.
5197 (w32_to_x_font): New parameter to allow charset portion to be
5198 specified where there is many to one mapping. Callers changed.
5199 (w32_list_fonts): Avoid listing fonts that won't display.
5200
5201 2000-11-10 Gerd Moellmann <gerd@gnu.org>
5202
5203 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
5204 (font_list_1): Renamed from font_list.
5205 (font_list): New function, trying alternative registries from
5206 Vface_alternative_font_registry_alist.
5207 (Finternal_set_alternative_font_registry_alist): New function.
5208 (syms_of_xfaces): Initialize and Staticpro
5209 Vface_alternative_font_registry_alist.
5210 Defsubr Finternal_set_alternative_font_registry_alist.
5211
5212 2000-11-09 Ken Raeburn <raeburn@gnu.org>
5213
5214 * lisp.h (Flooking_at): Declare.
5215
5216 2000-11-09 Gerd Moellmann <gerd@gnu.org>
5217
5218 * dired.c (directory_files_internal): Fix a braino.
5219
5220 * dired.c (directory_files_internal): Add missing GCPRO's.
5221 Some cleanup.
5222
5223 2000-11-08 Gerd Moellmann <gerd@gnu.org>
5224
5225 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
5226 (resize_mini_window): Return quickly if Vresize_mini_window is
5227 nil. Don't return if Vmax_mini_window_height is nil.
5228
5229 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
5230 (syms_of_xdisp): Initialize them.
5231 (resize_mini_window): Act according to the setting of
5232 Vresize_mini_window.
5233 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
5234
5235 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
5236 scroll bar widget after configuring it, so that it will appear at
5237 the right position from the start.
5238 (XTredeem_scroll_bar): Cleaned up.
5239
5240 2000-11-08 Kenichi Handa <handa@etl.go.jp>
5241
5242 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5243 font is taller than the frame line, we don't have to bias the
5244 division by two.
5245
5246 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
5247
5248 2000-11-07 Dave Love <fx@gnu.org>
5249
5250 * config.in (HAVE_MKSTEMP): Add.
5251
5252 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
5253
5254 2000-11-07 Gerd Moellmann <gerd@gnu.org>
5255
5256 * window.c (Fset_window_configuration): Don't try to preserve
5257 point in the current buffer, if that buffer is displayed in more
5258 than one window.
5259
5260 * xfaces.c (lookup_named_face): If default face isn't realized,
5261 try to realize it. Return -1 if not successful.
5262 (Fx_list_fonts): Handle case that face cannot be determined.
5263 (Fface_font): Likewise.
5264
5265 2000-11-06 Gerd Moellmann <gerd@gnu.org>
5266
5267 * window.c (displayed_window_lines): Detect partially
5268 visible lines at the bottom correctly.
5269
5270 2000-11-06 Stefan Monnier <monnier@cs.yale.edu>
5271
5272 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
5273 when ensuring we don't do visit in indirect buffer.
5274
5275 2000-11-06 Kenichi Handa <handa@etl.go.jp>
5276
5277 * composite.h (compose_chars_in_text): Add prototype.
5278
5279 * composite.c (Vcomposition_function_table): New variable.
5280 (Qcomposition_function_table): New variable.
5281 (run_composition_function): Call
5282 Vcompose_chars_after_function with three arguments.
5283 (compose_chars_in_text): New function.
5284 (syms_of_composite): Modified the doc-string of
5285 Vcompose_chars_after_function. Declare composition-function-table
5286 as a lisp variable, and initialize it.
5287
5288 * xfns.c (x_encode_text): Suppress producing escape sequences for
5289 composition.
5290
5291 * xselect.c: Include composite.h.
5292 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
5293
5294 2000-11-05 Andrew Innes <andrewi@gnu.org>
5295
5296 * w32term.c (x_produce_glyphs): Fix typo in enum name.
5297
5298 * sysdep.c (read_input_waiting): Remove extraneous argument to
5299 read_socket_hook.
5300
5301 * w32fns.c (Fx_server_version): Include w32_build_number in the
5302 return list.
5303
5304 * w32heap.c (w32_build_number): New variable.
5305 (cache_system_info): Set it.
5306
5307 * w32heap.h (w32_build_number): Add extern.
5308
5309 * emacs.c (syms_of_emacs): Update docstring for
5310 system-configuration, to reflect the actual usage on MS-Windows.
5311
5312 2000-10-31 Gerd Moellmann <gerd@gnu.org>
5313
5314 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
5315 process idle timers while waiting for another event.
5316
5317 * dispnew.c (update_frame_line): Handle case where spaces in
5318 the default face are colored.
5319
5320 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
5321 window height hasn't changed.
5322
5323 2000-10-31 Jason Rumney <jasonr@gnu.org>
5324
5325 * w32term.c (x_produce_glyphs): Handle composite characters.
5326 (x_draw_glyph_string_foreground)
5327 (x_draw_composite_glyph_string_foreground): Restore old font.
5328
5329 2000-10-31 Miles Bader <miles@lsi.nec.co.jp>
5330
5331 * minibuf.c (read_minibuf): Reset the undo history just before
5332 starting the recursive-edit.
5333
5334 2000-10-30 Gerd Moellmann <gerd@gnu.org>
5335
5336 * xfaces.c (menu_face_change_count): New variable.
5337 (Finternal_set_lisp_face_attribute): Increment it for changes
5338 of the `menu' face.
5339 (realize_basic_faces): Reflect changes in the `menu' faces
5340 in menu bars.
5341
5342 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
5343 dy obtained from the iterator's y-position after moving from
5344 scroll_margin_pos to PT; see comment there.
5345
5346 * xdisp.c (safe_eval_handler): Call add_to_log.
5347
5348 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
5349 is not a symbol or string.
5350
5351 * xdisp.c (echo_area_display): Don't perform a display update from
5352 inside redisplay. The update will happen anyway at the end of
5353 redisplay, and it can confuse redisplay (GC messages while
5354 redisplaying, for instance.)
5355
5356 2000-10-30 Stefan Monnier <monnier@cs.yale.edu>
5357
5358 * xrdb.c (x_load_resources): Use the class name in the defaults.
5359
5360 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
5361 (regex_compile): Catch bogus \(\1\).
5362
5363 2000-10-30 Gerd Moellmann <gerd@gnu.org>
5364
5365 * xterm.c (x_alloc_nearest_color): Fix last change to compare
5366 RGB values.
5367
5368 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
5369 we have a color cache, check that the cached color equals the
5370 allocated color. If not, clear the color cache.
5371
5372 * window.c (displayed_window_lines): Change buffers if necessary.
5373 Fix computation of displayed lines.
5374
5375 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
5376 update_menu_bindings to DEFVAR_BOOL.
5377
5378 2000-10-30 Kenichi Handa <handa@etl.go.jp>
5379
5380 * search.c (Fset_match_data): Be sure to make search_regs always sane.
5381
5382 * puresize.h (BASE_PURESIZE): Increase to 680000.
5383
5384 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
5385
5386 2000-10-29 Jason Rumney <jasonr@gnu.org>
5387
5388 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
5389
5390 * w32term.c (w32_bdf_per_char_metric): Negate descent.
5391 (w32_cache_char_metrics): Handle possibility that 'x' does not
5392 exist in a BDF font.
5393 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
5394
5395 * w32bdf.h (bdffont): Add nchars.
5396
5397 * w32bdf.c (set_bdf_font_info): Set it.
5398 (w32_BDF_TextOut): Swap byte order of double byte characters.
5399 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
5400
5401 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
5402
5403 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
5404 don't override the colors in frame's param_alist, unless they are
5405 unspecified.
5406
5407 * term.c (reassert_line_highlight): If inverse_video is non-zero,
5408 reverse the effect of the highlight flag.
5409
5410 2000-10-27 Ken Raeburn <raeburn@gnu.org>
5411
5412 * window.h (Fwindow_live_p): Declare.
5413
5414 * undo.c (record_delete): Check that last_undo_buffer is really a
5415 buffer before applying XBUFFER to it.
5416
5417 * keymap.c (where_is_internal): Pass lisp object, not integer, to
5418 Faref.
5419
5420 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
5421
5422 * lisp.h (KEYMAPP): New macro.
5423 (get_keymap): Remove.
5424 (get_keymap_1): Rename get_keymap.
5425
5426 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
5427
5428 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
5429
5430 * xmenu.c (single_submenu): Use KEYMAPP.
5431 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
5432 Use KEYMAPP rather than Fkeymapp.
5433
5434 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
5435
5436 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
5437 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
5438 Use KEYMAPP rather than Fkeymapp.
5439 (single_submenu): Use KEYMAPP.
5440 (w32_menu_show, w32_dialog_show): Use TRUE.
5441
5442 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
5443
5444 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
5445 (Fkeymapp): Use KEYMAPP.
5446 (get_keymap): Rename from get_keymap_1. Remove old def.
5447 Return t when autoload=0 and error=0 and the keymap needs autoloading.
5448 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
5449 (Fminor_mode_key_binding): Don't raise an error if the binding
5450 is not a keymap.
5451 (Fuse_global_map, Fuse_local_map): Allow autoloading.
5452 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
5453
5454 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
5455 Allow Vspecial_event_map to be autoloaded.
5456 (menu_bar_items): Fetch the keymap rather than using keymapp.
5457 (menu_bar_one_keymap): No need to follow func-indirect any more.
5458 (parse_menu_item): get_keymap_1 -> get_keymap.
5459 (tool_bar_items): Fetch the keymap rather than using keymapp.
5460 (read_key_sequence): Use KEYMAPP.
5461
5462 * intervals.c (get_local_map): Use get_keymap rather than following
5463 function-indirections explicitly.
5464
5465 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
5466
5467 2000-10-27 Jason Rumney <jasonr@gnu.org>
5468
5469 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
5470 point, as Windows has oversized fonts.
5471
5472 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
5473
5474 2000-10-27 Gerd Moellmann <gerd@gnu.org>
5475
5476 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
5477 (freehook, reallochook): Handle null pointer arguments.
5478 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
5479
5480 2000-10-27 Stefan Monnier <monnier@cs.yale.edu>
5481
5482 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
5483 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
5484 Giving in to popular pressure to shut up the compiler with casts.
5485
5486 2000-10-27 Gerd Moellmann <gerd@gnu.org>
5487
5488 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
5489 signed value, and use a default value computed from the font's
5490 maximum descent.
5491
5492 2000-10-27 Miles Bader <miles@lsi.nec.co.jp>
5493
5494 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
5495 that specify a negative underline position can still use underlines.
5496
5497 * window.c (Fpos_visible_in_window_p): Make POS default to
5498 WINDOW's point, not the current buffer's point.
5499
5500 2000-10-26 Dave Love <fx@gnu.org>
5501
5502 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
5503 when it's necessary.
5504
5505 2000-10-26 Gerd Moellmann <gerd@gnu.org>
5506
5507 * window.c (size_window): Compute size difference from sum of old
5508 child window sizes instead of from parent's size.
5509
5510 * xdisp.c (pos_visible_p): Change current buffer if necessary.
5511 Handle obscured lines at the top of the window.
5512
5513 * frame.c (Fdelete_frame): Doc fix. Move running the hook
5514 down after the last error condition check.
5515
5516 * frame.c (Fdelete_frame): Run delete-frame-hook.
5517
5518 2000-10-26 Kenichi Handa <handa@etl.go.jp>
5519
5520 * coding.c (decode_coding): Fix previous change (check also
5521 CODING_MODE_LAST_BLOCK).
5522
5523 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
5524
5525 * regex.c: More `unsigned char' -> `re_char' changes.
5526 Also change several `int' into `re_wchar_t'.
5527 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
5528 (PUSH_FAILURE_POINTER): Don't cast any more.
5529 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
5530 We want GCC to complain, since this piece of code makes
5531 re_match non-reentrant, which *should* be fixed.
5532 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
5533 (EXTEND_BUFFER): Use RETALLOC.
5534 (SET_LIST_BIT): Don't cast.
5535 (re_wchar_t): New type.
5536 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
5537 that those two functions will always properly return.
5538 (IMMEDIATE_QUIT_CHECK): Cast to void.
5539 (analyse_first): Use recursion rather than an explicit stack.
5540 (re_compile_fastmap): Can't fail anymore.
5541 (re_search_2): Don't check re_compile_fastmap for failure.
5542 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
5543 Now also sets the new value (passed in a new argument).
5544 (re_match_2_internal): Use it.
5545 Also, use a new var `reg' of type size_t when looping through regs
5546 rather than reuse the inappropriate `mcnt'.
5547
5548 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
5549 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
5550 (where_is_internal): Renamed from Fwhere_is_internal.
5551 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
5552 (Fwhere_is_internal): New function wrapping where_is_internal.
5553 (where_is_internal_1): Handle the case where we're filling the cache.
5554 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
5555
5556 2000-10-25 Miles Bader <miles@gnu.org>
5557
5558 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
5559
5560 2000-10-25 Gerd Moellmann <gerd@gnu.org>
5561
5562 * window.c (pos_fully_visible_p): Removed.
5563 (Fpos_visible_in_window_p): Use pos_visible_p to determine
5564 if position is visible and/or fully visible.
5565
5566 * lisp.h (pos_visible_p): Add prototype.
5567
5568 * xdisp.c (pos_visible_p): New function.
5569
5570 2000-10-25 Kenichi Handa <handa@etl.go.jp>
5571
5572 * process.c (send_process): If OBJECT is t, it means that the data
5573 is from C string, but we should encode it. Before calling
5574 setup_raw_text_coding_system, be sure to flush out data by the
5575 previous coding system.
5576
5577 2000-10-25 Miles Bader <miles@lsi.nec.co.jp>
5578
5579 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
5580 assignment of startpos to prev when startpos == pos.
5581
5582 * editfns.c (find_field): Set the field stickiness correctly from
5583 overlay fields. Use renamed `text_property_stickiness'.
5584 (text_property_stickiness): Renamed from `char_property_stickiness'.
5585 Only check text properties, not overlays.
5586 * textprop.c (get_char_property_and_overlay): New function.
5587 (Fget_char_property): Use it.
5588 * intervals.h (get_char_property_and_overlay): Add declaration.
5589
5590 2000-10-25 Stefan Monnier <monnier@cs.yale.edu>
5591
5592 * keymap.c: Use AREF, ASET and ASIZE macros.
5593 (Fmake_sparse_keymap): Docstring fix.
5594 (synkey): Remove.
5595 (shadow_lookup): Move up.
5596 Handle the case where lookup-key returns an integer.
5597 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
5598 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
5599 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
5600 Simplify/rewrite the keymap-finding code.
5601 Add check for command shadowing, using shadow_lookup.
5602
5603 2000-10-24 Stefan Monnier <monnier@cs.yale.edu>
5604
5605 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
5606 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
5607 a symbol.
5608
5609 2000-10-24 Andrew Innes <andrewi@gnu.org>
5610
5611 * dired.c (directory_files_internal_unwind): New function.
5612 (directory_files_internal): Use it to ensure closedir is called
5613 even if expand-file-name or file-attributes throw, eg. because of
5614 a user interrupt. Also enable immediate_quit while calling
5615 re_search, so that matching can be interrupted as well.
5616
5617 2000-10-24 Andrew Innes <andrewi@gnu.org>
5618
5619 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
5620 NT-Emacs only.
5621 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
5622 so that re_search functions only quit when callers expect them to.
5623
5624 2000-10-24 Kenichi Handa <handa@etl.go.jp>
5625
5626 * regex.c (regex_compile): Change the way of handling a range from
5627 a char less than 256 to a char not less than 256.
5628
5629 2000-10-24 Gerd Moellmann <gerd@gnu.org>
5630
5631 * window.c (size_window): Prevent setting window's width or
5632 height to a negative value (esp. with XSETFASTINT).
5633
5634 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
5635 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
5636 (protect_malloc_state) [GC_MALLOC_CHECK &&
5637 GC_PROTECT_MALLOC_STATE]: New function.
5638 (PROTECT_MALLOC_STATE): New macro.
5639 (__malloc_initialize, morecore, _malloc_internal)
5640 (_free_internal) _realloc_internal): Use it to make _heapinfo
5641 read-only outside of gmalloc.
5642
5643 * keymap.c: Update copyright.
5644
5645 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
5646 a symbol.
5647
5648 2000-10-24 Colin Walters <walters@cis.ohio-state.edu>
5649
5650 * filelock.c (unlock_all_files): Use unlock_file to expand each
5651 buffer's file_truename before trying remove its lock file.
5652
5653 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
5654
5655 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
5656 or CRLF, decode EOLs.
5657
5658 2000-10-24 Kenichi Handa <handa@etl.go.jp>
5659
5660 * window.c (Fdisplay_buffer): Fix doc.
5661
5662 2000-10-23 Jason Rumney <jasonr@gnu.org>
5663
5664 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
5665 ASCII font of default fontset on Windows.
5666
5667 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
5668 xterm.c comment below).
5669
5670 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
5671
5672 2000-10-23 Gerd Moellmann <gerd@gnu.org>
5673
5674 * xterm.c (x_connection_closed): Reset handling_signal.
5675
5676 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
5677
5678 2000-10-23 Miles Bader <miles@gnu.org>
5679
5680 * window.c (window_scroll_pixel_based, window_scroll_line_based):
5681 Pass nil for FULLY argument to Fpos_visible_in_window_p to
5682 maintain old behavior.
5683 * minibuf.c (Fminibuffer_complete): Likewise.
5684
5685 2000-10-23 Miles Bader <miles@lsi.nec.co.jp>
5686
5687 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
5688 that when a font can't be exactly centered, it errs up rather than
5689 down.
5690
5691 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
5692
5693 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
5694
5695 2000-10-23 Andrew Choi <akochoi@i-cable.com>
5696
5697 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
5698
5699 * dispnew.c [macintosh]: Include macterm.h.
5700 (init_display) [macintosh]: Initialization for window system.
5701
5702 * emacs.c (main) [macintosh]: Call syms_of_textprop,
5703 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
5704 syms_of_search, x_term_init, and init_keyboard before calling
5705 init_window_once. Also, call syms_of_xmenu.
5706
5707 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
5708 default fontset to Monaco.
5709
5710 * frame.c [macintosh]: Include macterm.h. Remove declarations of
5711 NewMacWindow and DisposeMacWindow.
5712 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
5713 instead of calling NewMacWindow and setting fields of
5714 f->output_data.mac directly. Call init_frame_faces.
5715 (Fdelete_frame) [macintosh]: Remove unused code.
5716 (Fmodify_frame_parameters) [macintosh]: Call
5717 x_set_frame_parameters instead of mac_set_frame_parameters.
5718
5719 * frame.h [macintosh]: Define menu_bar_lines field in struct
5720 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
5721
5722 * keyboard.c [macintosh]: Include macterm.h.
5723 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
5724 and menu_bar_activate_event type events as for X and NT.
5725 (make_lispy_event) [macintosh]: Construct lisp events of type
5726 MENU_BAR_EVENT as for X and NT.
5727
5728 * sysdep.c [macintosh]: Remove declaration for sys_signal.
5729 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
5730 (sys_subshell) [macintosh]: Remove definition entirely.
5731 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
5732 Vwindow_system_version here. Remove initialization of
5733 Vx_bitmap_file_path.
5734 (read_input_waiting): Correct the number of parameters passed to
5735 read_socket_hook.
5736 Move all Macintosh functions to mac/mac.c.
5737
5738 * term.c [macintosh]: Include macterm.h.
5739
5740 * window.c [macintosh]: Include macterm.h.
5741
5742 * xdisp.c [macintosh]: Include macterm.h. Declare
5743 set_frame_menubar and pending_menu_activation.
5744 (echo_area_display) [macintosh]: Do not return if terminal frame
5745 is the selected frame.
5746 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
5747 Allow only the selected frame to set menu bar.
5748 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
5749 calling FRAME_EXTERNAL_MENU_BAR (f).
5750 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
5751
5752 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
5753 and check_x. Declare XCreateGC. Define x_create_gc and
5754 x_free_gc. Initialize font_sort_order.
5755 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
5756 but call x_list_fonts instead of w32_list_fonts.
5757 (Finternal_face_x_get_resource) [macintosh]: Do not call
5758 display_x_get_resource.
5759 (prepare_face_for_display) [macintosh]: Set xgcv.font.
5760 (realize_x_face) [macintosh]: Load the font if it is specified in
5761 ATTRS.
5762 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
5763
5764 2000-10-22 Stefan Monnier <monnier@cs.yale.edu>
5765
5766 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
5767 is nil: since we go to the end of submap anyway, we'd end up
5768 setting nil to nil.
5769 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
5770 doesn't obey autoload.
5771
5772 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
5773
5774 * msdos.c (dos_set_window_size): Update screen dimension variables.
5775
5776 2000-10-21 Jason Rumney <jasonr@gnu.org>
5777
5778 * w32term.c (w32_cache_char_metrics): Double check that font is
5779 really fixed pitch before trusting tmPitchAndFamily.
5780
5781 2000-10-21 Andrew Innes <andrewi@gnu.org>
5782
5783 * w32gui.h (w32_char_font_type): Move enum from w32term.c
5784
5785 * w32term.h: Extern decl for w32_cache_char_metrics.
5786
5787 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
5788
5789 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
5790 (w32_unload_font): Free per_char array if present.
5791
5792 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
5793 cached information in emulated XFontStruct to handle common cases
5794 quickly. Do not allocate XCharStruct for return.
5795 (w32_native_per_char_metric): New function.
5796 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
5797 allocating one.
5798 (x_produce_glyphs): Don't get an HDC. Change calls to
5799 w32_per_char_metric to match arg change above. Remove calls to
5800 free results.
5801 (w32_get_glyph_overhangs): Ditto.
5802 (w32_cache_char_metrics): New function.
5803
5804 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
5805 ($(BLD)/casefiddle.$(O)): Remove compile command.
5806 ($(BLD)/gmalloc.$(O)): Remove compile command.
5807 ($(BLD)/dispnew.obj):
5808 ($(BLD)/keyboard.obj):
5809 ($(BLD)/w32inevt.obj):
5810 ($(BLD)/w32bdf.obj):
5811 ($(BLD)/alloc.obj):
5812 ($(BLD)/buffer.obj):
5813 ($(BLD)/editfns.obj):
5814 ($(BLD)/emacs.obj):
5815 ($(BLD)/fileio.obj):
5816 ($(BLD)/fns.obj):
5817 ($(BLD)/indent.obj):
5818 ($(BLD)/insdel.obj):
5819 ($(BLD)/intervals.obj):
5820 ($(BLD)/minibuf.obj):
5821 ($(BLD)/print.obj):
5822 ($(BLD)/scroll.obj):
5823 ($(BLD)/sysdep.obj):
5824 ($(BLD)/textprop.obj):
5825 ($(BLD)/widget.obj):
5826 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
5827 ($(BLD)/term.obj): Add dependency on dispextern.h.
5828
5829 * makefile.nt ($(BLD)\dispnew.obj):
5830 ($(BLD)\keyboard.obj):
5831 ($(BLD)\w32inevt.obj):
5832 ($(BLD)\w32bdf.obj):
5833 ($(BLD)\alloc.obj):
5834 ($(BLD)\buffer.obj):
5835 ($(BLD)\editfns.obj):
5836 ($(BLD)\emacs.obj):
5837 ($(BLD)\fileio.obj):
5838 ($(BLD)\fns.obj):
5839 ($(BLD)\indent.obj):
5840 ($(BLD)\insdel.obj):
5841 ($(BLD)\intervals.obj):
5842 ($(BLD)\minibuf.obj):
5843 ($(BLD)\print.obj):
5844 ($(BLD)\scroll.obj):
5845 ($(BLD)\sysdep.obj):
5846 ($(BLD)\textprop.obj):
5847 ($(BLD)\widget.obj):
5848 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
5849 ($(BLD)\term.obj): Add dependency on dispextern.h
5850
5851 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
5852
5853 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
5854 with an additional argument of Qt.
5855
5856 2000-10-21 Miles Bader <miles@gnu.org>
5857
5858 * window.c (pos_fully_visible_in_window_p): New function.
5859 (Fpos_visible_in_window_p): Add FULLY argument.
5860 Use pos_fully_visible_in_window_p.
5861 (window_scroll_pixel_based, window_scroll_line_based): Update
5862 calls to Fpos_visible_in_window_p.
5863 * lisp.h (Fpos_visible_in_window_p): Update prototype
5864
5865 2000-10-20 Gerd Moellmann <gerd@gnu.org>
5866
5867 * alloc.c (toplevel): Conditionalize compilation of mem_*
5868 functions differently.
5869
5870 2000-10-20 Jason Rumney <jasonr@gnu.org>
5871
5872 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
5873 mem_init where it used to be. mem_z etc not defined otherwise.
5874
5875 2000-10-20 Gerd Moellmann <gerd@gnu.org>
5876
5877 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
5878 GC_MALLOC_CHECK.
5879 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
5880 structure definition and related variabled to the top of the file.
5881 Include this code when GC_MALLOC_CHECK is defined.
5882 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
5883 register/unregister allocated region.
5884 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
5885 which isn't allocated.
5886 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
5887 something which is already in use.
5888 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
5889 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
5890 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
5891 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
5892
5893 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
5894 _malloc_internal instead of malloc.
5895 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
5896 of free.
5897
5898 2000-10-20 Andrew Innes <andrewi@gnu.org>
5899
5900 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
5901 Windows.
5902 (my_strftime) <macro>: Don't use macro arg list when redefining as
5903 _strftime_copytm.
5904 (my_strftime) <function>: Supply 0 as ut argument.
5905
5906 2000-10-19 Jason Rumney <jasonr@altavista.net>
5907
5908 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
5909 including dispextern.h, as it stops faces from working.
5910
5911 * w32fns.c (Fx_create_frame): Don't bother calling
5912 face-set-after-frame-default since the caller does it for us
5913 anyway. Clean up calls to x_get_arg to be consistent with X.
5914
5915 * w32term.c (x_produce_glyphs): Handle
5916 unibyte_display_via_language_environment correctly.
5917 (w32_draw_box_rect): Fix the calculation of width and height.
5918
5919 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
5920 as it has stopped working.
5921 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
5922 menu-bar.
5923
5924 2000-10-19 Gerd Moellmann <gerd@gnu.org>
5925
5926 * eval.c (skip_debugger): Prevent a compiler warning.
5927 (Fcondition_case): Likewise.
5928 (Fbacktrace_frame): Use a null interactive spec.
5929
5930 2000-10-19 Kenichi Handa <handa@etl.go.jp>
5931
5932 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
5933
5934 2000-10-18 Gerd Moellmann <gerd@gnu.org>
5935
5936 * strftime.c: Sync with glibc, file version 1.78.
5937 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
5938 should no longer be used according to ISO 8601.
5939
5940 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
5941 no map for meta_prefix_char, don't try to use it as a keymap.
5942 Instead, if T_OK is non-zero, look up a default binding, if any,
5943 otherwise, if T_OK is zero, return nil.
5944
5945 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
5946 (x_to_xcolors, png_load): Use x_query_color.
5947
5948 * xterm.c (x_color_cells, x_query_colors, x_query_color):
5949 New functions.
5950 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
5951 which can be slow.
5952 (x_copy_color, x_alloc_lighter_color): Likewise.
5953
5954 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
5955 (x_query_color, x_query_colors): Add prototype.
5956
5957 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
5958 check_string_bytes only if not noninteractive, increase count to 50.
5959
5960 2000-10-18 Miles Bader <miles@lsi.nec.co.jp>
5961
5962 * insdel.c (adjust_markers_for_delete): Handle before-insertion
5963 markers correctly.
5964
5965 2000-10-17 Gerd Moellmann <gerd@gnu.org>
5966
5967 * alloc.c (pure_bytes_used): Renamed from pureptr.
5968 (ALIGN): New macro.
5969 (pure_alloc): New function.
5970 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
5971 Use it.
5972 (Fpurecopy): Use PURE_POINTER_P.
5973
5974 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
5975 PT has moved backward.
5976
5977 * xdisp.c (cursor_row_p): Take continued lines into account.
5978
5979 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
5980 string's size_byte.
5981 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
5982 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
5983 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
5984 string allocated.
5985
5986 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
5987 of selective display off while searching for the next line start.
5988
5989 2000-10-17 Kenichi Handa <handa@etl.go.jp>
5990
5991 * Makefile.in (term.o): Depend on dispextern.h.
5992
5993 2000-10-16 Stefan Monnier <monnier@cs.yale.edu>
5994
5995 * keymap.c (keymap_memberp): Ensure that nil is not a member.
5996
5997 2000-10-16 Gerd Moellmann <gerd@gnu.org>
5998
5999 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
6000 the iterator at the beginning, so that they can be set later on,
6001 for instance in reseat_at_next_visible_line_start, without being
6002 overwritten.
6003
6004 * xfns.c (pbm_format): Add :foreground and :background keywords.
6005 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
6006 (xbm_load): Recognize foreground and background color specifications.
6007
6008 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
6009
6010 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
6011
6012 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
6013
6014 * msdos.c (IT_set_face): Compare highlighted face with the default
6015 face, and invert colors if these faces' colors are identical.
6016 (Fmsdos_remember_default_colors): Don't swap foreground and
6017 background colors in initial_colors[].
6018 (IT_set_frame_parameters): Don't swap frame's foreground and
6019 background pixels. If ALIST includes "(reverse . t)", swap
6020 foreground-color and background-color properties in frame's
6021 param_alist. If the original frame's param_alist doesn't specify
6022 the colors, store unspecified-fg and unspecified-bg, reversed if
6023 required.
6024
6025 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
6026 the colors are unspecified and reversed, reverse fore- and back-
6027 ground in the returned value.
6028 (Fframe_parameter): Ditto.
6029
6030 2000-10-16 Gerd Moellmann <gerd@gnu.org>
6031
6032 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
6033 get_last_unchanged_at_beg_row.
6034 (find_first_unchanged_at_end_row): Renamed from
6035 get_first_unchanged_at_end_row.
6036 (find_first_unchanged_at_end_row): Convert assertions to
6037 unconditional tests which abort. When looking for a row in
6038 unchanged text, don't go further back than first_text_row.
6039
6040 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
6041 Don't add in the last line's height when deciding if the new
6042 position is below the scroll margin.
6043
6044 2000-10-16 Miles Bader <miles@gnu.org>
6045
6046 * editfns.c (Fconstrain_to_field): Check carefully for field
6047 boundaries if either OLD_POS or NEW_POS has a non-nil field
6048 property, even if they're the same.
6049
6050 2000-10-16 Kenichi Handa <handa@etl.go.jp>
6051
6052 * xterm.c (x_draw_box_rect): Fix the calculation of width and
6053 height for XFillRectangle.
6054
6055 2000-10-15 Stefan Monnier <monnier@cs.yale.edu>
6056
6057 * syntax.c (Fstring_to_syntax): New function extracted from
6058 Fmodify_syntax_entry.
6059 (Fmodify_syntax_entry): Use it and document the ! and | fences.
6060 (skip_chars, Fforward_comment): Remove unused variables.
6061 (syms_of_syntax): Add defsubr for string-to-syntax.
6062 (describe_syntax): Add code for comment and string fences.
6063
6064 2000-10-14 Stefan Monnier <monnier@cs.yale.edu>
6065
6066 * keymap.c (access_keymap): Add AUTOLOAD parameter.
6067 Do the meta->esc mapping. Call get_keyelt before returning.
6068 Start scanning from the second element (the first is always `keymap')
6069 to make it easier to detect when we reach a parent map.
6070 Handle the case of inheriting from a symbol whose function is a map.
6071 (Fkeymap_parent): Also handle the `inherit from symbol' case.
6072 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
6073 (get_keyelt, Flookup_key): Update call to access_keymap.
6074 Remove the meta->esc mappings.
6075 (define_as_prefix): Delete old disabled code.
6076 (menu_item_p): New function.
6077 (where_is_internal_1): Skip over the few remaining menu items.
6078 * lisp.h (access_keymap): Update prototype.
6079 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
6080 Update call to access_keymap.
6081 (follow_key, read_key_sequence): Update calls to access_keymap.
6082 Remove the meta->esc mappings.
6083
6084 2000-10-13 Gerd Moellmann <gerd@gnu.org>
6085
6086 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
6087 with additional argument.
6088
6089 * xdisp.c (cursor_row_p): New function.
6090 (try_cursor_movement, display_line): Use it.
6091
6092 * xdisp.c (append_space): Also save/restore iterator's current
6093 character and its length.
6094
6095 * xdisp.c (init_from_display_pos): Add an assertion.
6096 (handle_stop): Don't set iterator's add_overlay_start.
6097 (handle_invisible_prop): Likewise.
6098 (load_overlay_strings): If text under an overlay is invisible,
6099 take both before- and after-strings into account when the iterator
6100 is positioned either at the start or at the end of the overlay.
6101 (forward_to_next_line_start): Rewritten.
6102 (reseat_at_next_visible_line_start): Rewritten.
6103 (set_iterator_to_next): Add parameter RESEAT_P.
6104
6105 * dispextern.h (struct it): Remove member add_overlay_start.
6106 (set_iterator_to_next): Change prototype.
6107
6108 2000-10-13 Kenichi Handa <handa@etl.go.jp>
6109
6110 * coding.c (code_convert_region): Be sure to initialize
6111 coding->category_idx.
6112 (decode_coding_string): Set coding->src_multibyte and
6113 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
6114 (encode_coding_string): Set coding->src_multibyte and
6115 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
6116
6117 2000-10-12 Stefan Monnier <monnier@cs.yale.edu>
6118
6119 * xfns.c (Fx_create_frame): Don't bother calling
6120 face-set-after-frame-default since the caller does it for us anyway.
6121
6122 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
6123
6124 * window.c (coordinates_in_window): Fix detection of vertical line
6125 on character terminals.
6126
6127 2000-10-12 Gerd Moellmann <gerd@gnu.org>
6128
6129 * editfns.c (save_excursion_save): Additionally record the
6130 selected window.
6131 (save_excursion_restore): If buffer was visible in a window, and a
6132 different window was selected, and the old selected window is
6133 still live, restore point in that window.
6134
6135 2000-10-12 Kenichi Handa <handa@etl.go.jp>
6136
6137 * xterm.c (x_produce_glyphs): Handle
6138 unibyte_display_via_language_environment correctly.
6139
6140 * regex.c (regex_compile): Change the way of handling a range from
6141 unibyte char to multibyte char.
6142
6143 * syntax.c (skip_chars): Change the way of handling a range from
6144 unibyte char to multibyte char.
6145
6146 * process.c (read_process_output): Cancel previous change.
6147
6148 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
6149
6150 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
6151
6152 * charset.c (Ffind_charset_string): Doc fix.
6153 (Ffind_charset_region): Doc fix.
6154
6155 2000-10-11 Kenichi Handa <handa@mule.m17n.org>
6156
6157 * process.c (read_process_output): Fix previous change. Adjust
6158 multibyteness of text to insert in a buffer by
6159 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
6160
6161 2000-10-10 Andreas Schwab <schwab@suse.de>
6162
6163 * alloc.c (mark_object): Remove all workarounds installed on
6164 1993-08-08.
6165
6166 2000-10-10 Kenichi Handa <handa@etl.go.jp>
6167
6168 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
6169 (base64_encode_1): Make it work for a text of multibyte form.
6170 (Fbase64_decode_region): Allocate sufficient memory for multibyte
6171 case. Don't call str_to_multibyte because base64_decode_1
6172 produces correct multibyte form for eight-bit codes.
6173 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
6174 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
6175 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
6176 codes.
6177
6178 * charset.h (CHAR_STRING): Optimized for single byte characters.
6179
6180 2000-10-09 Andreas Schwab <schwab@suse.de>
6181
6182 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
6183 -1 after socket is closed, to fall through to error processing.
6184
6185 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
6186
6187 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
6188 variables. If ALIST includes foreground-color or
6189 background-color, change also the colors of the default face for
6190 this frame.
6191
6192 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
6193
6194 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
6195 them extern (they are defined on xfaces.c).
6196 (syms_of_msdos): Don't intern and don't staticpro
6197 Qbackground_color and Qforeground_color.
6198
6199 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
6200
6201 * frame.c (Fframe_parameter): For non-windowed frames, if
6202 f->param_alist says foreground or background color is unspecified,
6203 call tty_color_name to return the color name computed from the
6204 frame's current colors.
6205
6206 2000-10-06 Dave Love <fx@gnu.org>
6207
6208 * terminfo.c (ospeed): Don't declare.
6209
6210 * sysdep.c: Don't include string.h.
6211 (h_errno): Declare conditional also on TRY_AGAIN.
6212
6213 * charset.c (Ffind_charset_string): Doc fix.
6214
6215 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
6216 (Fbase64_decode_region, Fbase64_decode_string): More explicit
6217 error messages.
6218
6219 2000-10-05 Dave Love <fx@gnu.org>
6220
6221 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
6222 position like menu-bar.
6223
6224 2000-10-05 Gerd Moellmann <gerd@gnu.org>
6225
6226 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
6227
6228 * xdisp.c (handle_single_display_prop): Use safe_call1.
6229 (safe_call): Renamed from call_function.
6230 (safe_call1): New function.
6231 (handle_fontified_prop): Use safe_call1 instead of call1.
6232 (safe_eval): Renamed from eval_form.
6233 (safe_eval_handler): Renamed from eval_handler.
6234 (handle_single_display_prop, display_mode_element): Use safe_eval
6235 instead of eval_form.
6236
6237 * xfaces.c (merge_face_heights): Use safe_call instead of
6238 call_function.
6239
6240 * keyboard.c (show_help_echo): Use safe_call instead of
6241 call_function; use safe_eval instead of eval_form.
6242
6243 * lisp.h (safe_call): Renamed from call_function.
6244 (safe_eval): Renamed from eval_form.
6245 (safe_call1): Add prototype.
6246
6247 2000-10-05 Miles Bader <miles@lsi.nec.co.jp>
6248
6249 * xfns.c (image_ascent): Rearrange ascent calculation for the
6250 has-a-font case.
6251
6252 2000-10-04 Stefan Monnier <monnier@cs.yale.edu>
6253
6254 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
6255 (where_is_internal_1): Don't bother ignoring menu-items any more.
6256
6257 2000-10-04 Gerd Moellmann <gerd@gnu.org>
6258
6259 * keyboard.c (update_menu_bindings): New variable.
6260 (parse_menu_item): Use AREF. If update_menu_bindings
6261 is 0, don't update menu bindings.
6262 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
6263
6264 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
6265
6266 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
6267 to `mark_object'.
6268
6269 2000-10-02 Stefan Monnier <monnier@cs.yale.edu>
6270
6271 * syntax.c (forw_comment): Match nestedness of ender/starter.
6272 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
6273 (prev_char_comstart_first): Remove.
6274 (back_comment): Check two-char comment markers more carefully
6275 to better handle overlapping cases like *//* or /* */* */ ...
6276 Match nestedness of ender/starter.
6277
6278 2000-10-02 Dave Love <fx@gnu.org>
6279
6280 * config.in (HAVE_GAI_STRERROR): Add undef.
6281
6282 * process.c (Fopen_network_stream): Use it.
6283
6284 * m/alpha.h (NO_REMAP): Don't define.
6285
6286 2000-10-02 Gerd Moellmann <gerd@gnu.org>
6287
6288 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
6289 return with a string converted to an integer or vice versa when
6290 Vmocklisp_arguments is t.
6291 (Fsignal): Likewise. The function can return for `quit'.
6292 (struct gcpro): Declare member `var' to point to a volatile
6293 Lisp_Object.
6294
6295 * eval.c (error): Prevent compiler warning.
6296
6297 2000-09-30 Stefan Monnier <monnier@cs.yale.edu>
6298
6299 * keymap.c (keymap_memberp): New function.
6300 (Fset_keymap_parent): Use it.
6301 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
6302 Use keymap_memberp to avoid creating cycles.
6303 (access_keymap): Use KEYMAPP.
6304
6305 2000-09-30 Gerd Moellmann <gerd@gnu.org>
6306
6307 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
6308 gai_strerror. Make sure xerrno is set if connect fails. Improve
6309 error recovery.
6310
6311 2000-09-29 Jason Rumney <jasonr@gnu.org>
6312
6313 * w32term.c (w32_char_font_type, w32_encode_char)
6314 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
6315 (w32_bdf_per_char_metric): New function.
6316 (w32_per_char_metric): Use it.
6317 (x_draw_glyph_string_background): Always draw background for BDF
6318 glyphs.
6319
6320 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
6321 GDI object which is a scarce resource.
6322
6323 * w32bdf.c (search_file_line): Fix skipping of whitespace.
6324 (get_quoted_string): Fix limit on memchr search.
6325 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
6326 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
6327 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
6328 (get_cached_font_char, cache_char_offset): Use macro
6329 BDF_CODEPOINT_RANGE_COVER_P.
6330 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
6331 (clear_cached_bitmap_slots): New function.
6332 (GET_HEX_VALUE): G-Z, g-z are not hex.
6333 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
6334 (get_bitmap_with_cache): Use new cache implementation.
6335 (create_offscreen_bitmap): New function.
6336 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
6337
6338 * w32term.c (x_produce_glyphs): If the distance from the current
6339 position to the next tab stop is less than a canonical character
6340 width, use the tab stop after that.
6341 (x_draw_glyphs): Handle case START and END are out of bounds more
6342 carefully.
6343 (x_clear_mouse_face): Block/unblock input.
6344 (x_display_and_set_cursor): Don't show a hollow box cursor for
6345 buffers whose cursor_type is nil.
6346
6347 2000-09-29 Gerd Moellmann <gerd@gnu.org>
6348
6349 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
6350
6351 * dispextern.h (updating_frame): Declare extern.
6352
6353 2000-09-29 Andreas Schwab <schwab@suse.de>
6354
6355 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
6356
6357 2000-09-29 Gerd Moellmann <gerd@gnu.org>
6358
6359 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
6360 use its function definition.
6361 (tool_bar_items): Likewise.
6362
6363 * lisp.h (fatal): Declare NO_RETURN.
6364
6365 2000-09-29 Kenichi Handa <handa@etl.go.jp>
6366
6367 * keymap.c: Remove the line "#undef NULL".
6368
6369 2000-09-28 Gerd Moellmann <gerd@gnu.org>
6370
6371 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
6372
6373 2000-09-28 Dave Love <fx@gnu.org>
6374
6375 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
6376
6377 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
6378
6379 * .gdbinit (xreload): Note its need on GNU/Linux.
6380
6381 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
6382 r_alloc, r_alloc_free.
6383
6384 2000-09-28 Kenichi Handa <handa@etl.go.jp>
6385
6386 * syntax.c (skip_chars): Handle negation correctly.
6387
6388 2000-09-27 Gerd Moellmann <gerd@gnu.org>
6389
6390 * xfaces.c (realize_default_face): Call set_lface_from_font_name
6391 with non-zero FORCE_P argument.
6392
6393 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
6394 Add assertions.
6395
6396 * xdisp.c (window_box_height): Add an assertion.
6397
6398 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
6399 tool-bar than is available.
6400 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
6401
6402 2000-09-27 Dave Love <fx@gnu.org>
6403
6404 * s/irix6-5.h: Now works 64-bit. Tidied.
6405
6406 2000-09-26 Gerd Moellmann <gerd@gnu.org>
6407
6408 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
6409 instead of BITS_PER_INT.
6410 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
6411 EMACS_UINT, respectively.
6412 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
6413
6414 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
6415
6416 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
6417
6418 * window.c (freeze_window_starts): Construct last argument for
6419 foreach_window differently.
6420
6421 * xfns.c (x_decode_color): Don't return a Lisp_Object.
6422
6423 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
6424 EMACS_UINT instead of `int' and `unsigned int'.
6425 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
6426
6427 * frame.h (struct frame): Make the `nothing' member of union
6428 output_data an EMACS_INT.
6429
6430 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
6431 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
6432 size in the sdata structure.
6433 (SDATA_NBYTES, SDATA_DATA): New macros.
6434 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
6435 differently for the different layout of the sdata structure.
6436 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
6437 in sdata.
6438 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
6439 Check that size recorded in the string size and size recorded in
6440 the sdata structure agree.
6441
6442 2000-09-25 Dave Love <fx@gnu.org>
6443
6444 * buffer.c: Include stdio.h.
6445
6446 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
6447
6448 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
6449
6450 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
6451 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
6452 (__malloc_extra_blocks): Declare as __malloc_size_t.
6453
6454 2000-09-25 Gerd Moellmann <gerd@gnu.org>
6455
6456 * alloc.c (mark_image): Use GC_NILP instead of NILP.
6457
6458 * keyboard.c (show_help_echo): Set help_echo_showing_p.
6459 (read_char): If help-echo is showing, preserve the echo area
6460 when redisplaying.
6461
6462 * xdisp.c (help_echo_showing_p): New variable.
6463 (set_message): Reset it to 0.
6464 (init_xdisp): Initialize help_echo_showing_p.
6465
6466 * dispextern.h (help_echo_showing_p): Declare extern.
6467
6468 * config.in: Fix typo in __GNUC_MINOR__.
6469
6470 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
6471
6472 * s/freebsd.h (POSIX_SIGNALS): Define.
6473
6474 * xterm.c (x_clear_mouse_face): Block/unblock input.
6475
6476 2000-09-24 Dave Love <fx@gnu.org>
6477
6478 * fns.c (base64_encode_1): Fix last change.
6479
6480 2000-09-22 Gerd Moellmann <gerd@gnu.org>
6481
6482 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
6483
6484 * xdisp.c (try_window_reusing_current_matrix): More fixes
6485 for the case window has a header-line.
6486
6487 2000-09-22 Dave Love <fx@gnu.org>
6488
6489 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
6490 a doc string.
6491
6492 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
6493
6494 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
6495
6496 2000-09-21 Gerd Moellmann <gerd@gnu.org>
6497
6498 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
6499 for GCC >= 2.5.
6500
6501 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
6502 Declare NO_RETURN.
6503
6504 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
6505 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
6506 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
6507 warnings.
6508
6509 * marker.c (byte_char_debug_check): Return void.
6510
6511 * xfns.c (Fx_create_frame): Set default frame parameter value
6512 for tool-bar-lines to 1.
6513
6514 * dispnew.c (scrolling_window): Compare y-positions of rows
6515 equal at the start. Some simplification.
6516
6517 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
6518 reused rows' y-position in the case window has a header-line, and
6519 new window start is greater than old window start.
6520
6521 * process.c (process_sent_to): New variable.
6522 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
6523 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
6524 Declare more parameters volatile.
6525
6526 * lread.c (Vrecursive_load_depth_limit): New variable.
6527 (Fload): Check recursive loads whose recursion depth exceeds
6528 Vrecursive_load_depth_limit.
6529 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
6530
6531 2000-09-20 Gerd Moellmann <gerd@gnu.org>
6532
6533 * fileio.c (Fread_file_name): Doc fix.
6534
6535 * editfns.c (Fmessage_or_box): Doc fix.
6536
6537 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
6538
6539 * xfns.c (xbm_scan): Allow C-style comments.
6540
6541 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
6542 symbols are specified, add color translations to the cache.
6543 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
6544 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
6545 xpm_cache_color.
6546 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
6547 structures to xpm_init_color_cache.
6548
6549 2000-09-19 Gerd Moellmann <gerd@gnu.org>
6550
6551 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
6552
6553 2000-09-19 Andrew Innes <andrewi@gnu.org>
6554
6555 * makefile.nt (bootstrap-emacs): Don't change directory.
6556
6557 2000-09-19 Kenichi Handa <handa@etl.go.jp>
6558
6559 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
6560
6561 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
6562 If output buffer is too small, signal an appropriated error.
6563
6564 2000-09-18 Dave Love <fx@gnu.org>
6565
6566 * keyboard.c (menu_bar_items, tool_bar_items)
6567 (current_active_maps): Remove redundant get_local_map call.
6568
6569 2000-09-18 Gerd Moellmann <gerd@gnu.org>
6570
6571 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
6572 cursor for buffers whose cursor_type is nil.
6573
6574 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
6575 a feature to implement that is already implemented.
6576 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
6577 warnings.
6578
6579 * xfns.c (x_clear_image_1): New function.
6580 (x_clear_image): Use it.
6581 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6582
6583 * dispnew.c (update_window): Move test for invisible lines
6584 at the top to update_window_line.
6585 (update_window_line): Handle invisible lines here.
6586
6587 * xfns.c (clear_image_cache): Clear current matrices of all
6588 frames sharing an image cache. Block input while freeing
6589 images. Fix timestamp comparison.
6590 (x_clear_image): Also free the mask.
6591
6592 * xfns.c (lookup_image): Block input while loading the image so
6593 that we won't get interrupted in a state where the image isn't yet
6594 set up completely.
6595 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
6596 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
6597 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
6598 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
6599
6600 2000-09-16 Gerd Moellmann <gerd@gnu.org>
6601
6602 * dispnew.c (update_window): Make sure to make desired rows
6603 current even if they are completely invisible at the top
6604 of a window.
6605
6606 2000-09-15 Gerd Moellmann <gerd@gnu.org>
6607
6608 * xfns.c (lookup_image): Build mask before applying an algorithm.
6609 Recognize algorithm `disabled'.
6610 (cross_disabled_images): New variable.
6611 (COLOR_INTENSITY): New macro.
6612 (x_detect_edges): Use COLOR_INTENSITY.
6613 (x_disable_image): New function.
6614 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
6615
6616 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
6617 disabled state, don't apply an image transformation algorithm if
6618 the user specified an image for the disabled state. Use
6619 `:algorithm disabled' for creating a disabled item's image if the
6620 user hasn't specified an image.
6621
6622 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
6623 allocation functions with the XPM lib.
6624 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
6625 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
6626 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
6627 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
6628 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
6629 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
6630 functions, if possible, because these handle color allocation
6631 failure more gracefully.
6632 (Fimage_mask_p): New function.
6633
6634 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
6635 (Qedge_detection, Qheuristic): New symbols.
6636 (syms_of_xfns): Initialize new symbols.
6637 (lookup_image): Handle `:mask X', `:algorithm emboss', and
6638 `algorithm (edge-detection ...)'.
6639 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
6640 (tiff_format, gif_format, gs_format): Add `:mask'.
6641 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
6642 (GIF_MASK, GS_MASK): New enumerators.
6643 (x_laplace_read_row, x_laplace_write_row): Functions removed.
6644 (emboss_matrix, laplace_matrix): New variables.
6645 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
6646 (x_edge_detection): New functions.
6647 (x_laplace): Rewritten in terms of x_detect_edges.
6648 (x_build_heuristic_mask): If image has a mask, free it.
6649
6650 2000-09-14 Andrew Innes <andrewi@gnu.org>
6651
6652 * makefile.w32-in: Revert to Unix line endings.
6653
6654 2000-09-14 Andrew Innes <andrewi@gnu.org>
6655
6656 * makefile.w32-in: Standardize indentation somewhat.
6657 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
6658 cater for differences between shells.
6659
6660 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
6661
6662 2000-09-14 Gerd Moellmann <gerd@gnu.org>
6663
6664 * xterm.c (x_produce_glyphs): If the distance from the current
6665 position to the next tab stop is less than a canonical character
6666 width, use the tab stop after that.
6667
6668 2000-09-14 Dave Love <fx@gnu.org>
6669
6670 * buffer.c (alloc_buffer_text): Fix xmalloc call.
6671
6672 2000-09-14 Gerd Moellmann <gerd@gnu.org>
6673
6674 * xdisp.c (handle_fontified_prop): While running fontification
6675 functions, bind `fontification-functions' and
6676 `after-change-functions' to nil.
6677
6678 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
6679 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
6680
6681 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
6682
6683 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
6684 USE_MMAP_FOR_BUFFERS.
6685
6686 * insdel.c (make_gap): Use enlarge_buffer_text.
6687
6688 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
6689 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
6690 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
6691 from former r_alloc_* functions in ralloc.c.
6692 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
6693 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
6694 (mmap_init) [REL_ALLOC_MMAP]: New function.
6695 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
6696 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
6697 BUFFER_FREE.
6698
6699 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
6700 (enlarge_buffer_text): Add prototype.
6701
6702 * ralloc.c: Remove everything having to do with the use of mmap.
6703
6704 2000-09-13 Gerd Moellmann <gerd@gnu.org>
6705
6706 * sound.c (Fplay_sound): Doc fix.
6707
6708 * keyboard.c: Avoid some more compiler warnings.
6709 (parse_tool_bar_item): Ignore cached key bindings.
6710
6711 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
6712 and allocation of Lisp data.
6713
6714 2000-09-12 Gerd Moellmann <gerd@gnu.org>
6715
6716 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
6717 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
6718 defaults first.
6719
6720 * lread.c (Fload): Put code checking for recursive loads in #if 0.
6721
6722 2000-09-12 Miyashita Hisashi <himi@meadowy.org>
6723
6724 * ccl.c: Comment fixed.
6725 (MAX_MAP_SET_LEVEL): Increased to 30.
6726 (PUSH_MAPPING_STACK): Enclose with do-while block.
6727 (POP_MAPPING_STACK): Likewise.
6728 (stack_idx_of_map_multiple): New variable.
6729 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
6730 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
6731 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
6732 (ccl_driver) <CCL_MapSingle>: Likewise.
6733 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
6734 with the case where looking up process reaches to the end of
6735 map-set, and call CCL programs as the above change.
6736
6737 2000-09-11 Gerd Moellmann <gerd@gnu.org>
6738
6739 * xfns.c (png_load, jpeg_load): Declare some variables volatile
6740 that might be clobbered by longjmp.
6741 (check_x_display_info, x_decode_color, create_frame_xic)
6742 (Fx_display_backing_store, Fx_display_visual_class)
6743 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
6744
6745 * lread.c (init_lread): Set Vloads_in_progress to nil.
6746 (Fload): Show list of recursively loaded files, when signaling an
6747 error.
6748
6749 * lread.c (Vloads_in_progress): New variable.
6750 (record_load_unwind): New function.
6751 (Fload): Check for recursive loads.
6752 (syms_of_lread): Initialize Vloads_in_progress.
6753 (read_integer, read1): Avoid some compiler warnings.
6754
6755 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
6756 compiler warnings.
6757
6758 2000-09-11 Miles Bader <miles@gnu.org>
6759
6760 * editfns.c (Fbuffer_string): Doc fix.
6761
6762 2000-09-10 Gerd Moellmann <gerd@gnu.org>
6763
6764 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
6765
6766 2000-09-09 Ken Raeburn <raeburn@gnu.org>
6767
6768 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
6769 whether to include other header files.
6770
6771 2000-09-09 Gerd Moellmann <gerd@gnu.org>
6772
6773 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
6774 by Fmemq as a boolean.
6775
6776 2000-09-08 Stefan Monnier <monnier@cs.yale.edu>
6777
6778 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
6779
6780 2000-09-08 Gerd Moellmann <gerd@gnu.org>
6781
6782 * ralloc.c (mmap_fd): Remove initializer which can make it
6783 read-only in a dumped Emacs.
6784 (mmap_fd_1): New variable.
6785 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
6786 restore it from there.
6787 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
6788 unconditionally so that mmap_fd can be initialized there.
6789 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
6790 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
6791 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
6792
6793 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
6794
6795 * xdisp.c (dump_glyph_row): Fix printf format string.
6796 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
6797
6798 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
6799
6800 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
6801 inheritance.
6802
6803 * xdisp.c (try_window_id): When trying to locate cursor in
6804 unchanged rows at the top, handle the case that we can't find it.
6805
6806 * xterm.c (x_draw_glyphs): Handle case START and END are out
6807 of bounds more carefully.
6808
6809 2000-09-08 Dave Love <fx@gnu.org>
6810
6811 * s/sol2.h (REL_ALLOC_MMAP): Define.
6812 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
6813
6814 * ralloc.c: Don't include string.h (redundant).
6815 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
6816 [!MAP_ANON]: Include fcntl.h.
6817 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
6818 (r_alloc, r_re_alloc, r_alloc_free)
6819 (mmap_enlarge, mmap_set_vars): Use it.
6820 (r_alloc_init_fd): New function.
6821 (__morecore) [SYSTEM_MALLOC]: Don't declare.
6822 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
6823 malloc type.
6824
6825 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
6826 Remove vm-limit.o.
6827
6828 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
6829 change to __NetBSD__.
6830
6831 2000-09-08 Kenichi Handa <handa@etl.go.jp>
6832
6833 * search.c (compile_pattern): Check the multibyteness of cached
6834 string and PATTERN.
6835
6836 2000-09-08 Miles Bader <miles@gnu.org>
6837
6838 * xfaces.c (default_face_vector): Function removed.
6839 (Finternal_merge_in_global_face): Restore old global/local
6840 attribute override order. Use inline loop instead of calling
6841 default_face_vector.
6842
6843 2000-09-07 Gerd Moellmann <gerd@gnu.org>
6844
6845 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
6846 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
6847 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
6848 where necessary, in case POINTER_TYPE is `void'.
6849
6850 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
6851
6852 * frame.c (make_terminal_frame): Initialize frame foreground and
6853 background colors to unspecified, for the initial instance of an
6854 MSDOS frame.
6855
6856 2000-09-07 Gerd Moellmann <gerd@gnu.org>
6857
6858 * ralloc.c (mmap_find): Fix overlap computation.
6859 (mmap_enlarge): Compute nbytes before trying to find an
6860 overlapping region.
6861
6862 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
6863 instead of `!='.
6864
6865 * lread.c (syms_of_lread): Change value of regexp
6866 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
6867
6868 * xmenu.c (xdialog_show): When looking up the selection in
6869 menu_items, take `quote' boundaries into account; this corresponds
6870 to a nil ITEM in x-popup-dialog.
6871
6872 2000-09-07 Kenichi Handa <handa@etl.go.jp>
6873
6874 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
6875 not 0x81.
6876 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
6877
6878 * coding.c (encode_coding_sjis_big5): Use translation table for
6879 encoding, not decoding. Fix the handling of latin-jisx0201.
6880 Check for the charset katakana-jisx0201 too.
6881 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
6882 (detect_coding_sjis): Check the byte sequence more rigidly.
6883
6884 2000-09-07 Gerd Moellmann <gerd@gnu.org>
6885
6886 * xfaces.c (Vparam_value_alist): New variable.
6887 (syms_of_xfaces): Initialize it.
6888 (Finternal_set_lisp_face_attribute): Avoid more consing.
6889
6890 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
6891 specially.
6892 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
6893 (Qbackground_mode): New variable.
6894 (syms_of_frame_1): Initialize Qbackground_mode.
6895
6896 * lisp.h (Qdisplay): Declare extern.
6897
6898 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
6899 change face on all frames, and change the default for new frames.
6900
6901 2000-09-07 Dave Love <fx@gnu.org>
6902
6903 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
6904
6905 2000-09-07 Kenichi Handa <handa@etl.go.jp>
6906
6907 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
6908
6909 * charset.c: Include composite.h
6910 (lisp_string_width): New function.
6911 (Fstring_width): Call lisp_string_width instead of strwidth.
6912
6913 * Makefile.in (charset.o): Depends on composite.h.
6914
6915 * process.c (read_process_output): Before inserting the decoded
6916 text in the buffer, adjust the multibyteness.
6917
6918 2000-09-06 Gerd Moellmann <gerd@gnu.org>
6919
6920 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
6921 buffer's text buffer is null, map new memory.
6922
6923 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
6924 POINTER_TYPE and size_t.
6925 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
6926 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
6927 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
6928 [REL_ALLOC_MMAP]: New macros.
6929 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
6930 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
6931 [REL_ALLOC_MMAP]: New functions.
6932
6933 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
6934 before and after unexec.
6935
6936 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
6937 text buffers if necessary.
6938
6939 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
6940 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
6941 in prototypes.
6942
6943 * config.in (HAVE_MMAP): Add #undef.
6944
6945 2000-09-05 Gerd Moellmann <gerd@gnu.org>
6946
6947 * frame.c (Qdisplay_type): New variable.
6948 (syms_of_frame_1): Initialize it.
6949 (Fframe_parameter): New function that avoids consing.
6950 (syms_of_frame): Defsubr it.
6951
6952 * buffer.c (Fother_buffer): Consider buffers as invisible when
6953 they are displayed in a window on an invisible frame.
6954
6955 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
6956 get-largest-window always return nil.
6957
6958 2000-09-04 Gerd Moellmann <gerd@gnu.org>
6959
6960 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
6961 variable; recognize Emacs 19 elc files.
6962
6963 2000-09-04 Miles Bader <miles@gnu.org>
6964
6965 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
6966 before initially popping up the menu, so the menu doesn't flash
6967 when the face settings are significantly different from the defaults.
6968
6969 2000-09-04 Stefan Monnier <monnier@cs.yale.edu>
6970
6971 * regex.c (WIDE_CHAR_SUPPORT): New macro.
6972 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
6973 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
6974 (BIT_UNIBYTE): Remove.
6975 (re_match_2_internal): Delete corresponding code and streamline the
6976 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
6977 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
6978 (re_wctype_t): New type.
6979 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
6980 (regex_compile): Use them and fix handling of overly long char classes.
6981
6982 2000-09-03 Andrew Innes <andrewi@gnu.org>
6983
6984 * makefile.w32-in: Change to DOS line endings.
6985
6986 * s/ms-w32.h (ORDINARY_LINK): New define.
6987
6988 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
6989 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
6990
6991 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
6992 (distclean): Delete them here instead.
6993
6994 * w32proc.c (compare_env): Convert to uppercase for comparison,
6995 not lowercase, to match how the native Windows shell works.
6996
6997 2000-09-03 Jason Rumney <jasonr@gnu.org>
6998
6999 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
7000 CVS changes the line-ends when checking in/out on DOS/Windows.
7001
7002 * makefile.nt (emacs): Do not change directory to run temacs, as
7003 the load-path is set relative to current directory.
7004
7005 2000-09-03 Miles Bader <miles@gnu.org>
7006
7007 * xterm.c (x_alloc_lighter_color_for_widget): New function.
7008
7009 2000-09-02 Gerd Moellmann <gerd@gnu.org>
7010
7011 * xdisp.c (redisplay_mode_lines): New function.
7012 (display_mode_lines): Return number of mode lines displayed.
7013 (echo_area_display): Use redisplay_mode_lines to draw garbaged
7014 mode lines. Don't temporarily bind redisplay-dont-pause to t.
7015
7016 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
7017 string.h and strings.h.
7018 (index) [HAVE_INDEX]: Add prototype.
7019
7020 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
7021 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
7022
7023 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
7024 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
7025
7026 2000-09-01 Gerd Moellmann <gerd@gnu.org>
7027
7028 * lread.c (read1): Accept `?' as symbol constituent, for
7029 compatiblity with XEmacs.
7030
7031 2000-08-31 Stefan Monnier <monnier@cs.yale.edu>
7032
7033 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
7034 (struct re_pattern_buffer): Remove newline_anchor.
7035 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
7036 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
7037 (re_max_failures, fail_stack): Use size_t rather than unsigned.
7038 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
7039 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
7040 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
7041 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
7042 Get rid of references to newline_anchor.
7043 (regcomp): Allocate and precompute a fastmap.
7044
7045 2000-08-31 Gerd Moellmann <gerd@gnu.org>
7046
7047 * lread.c (openp): GCPRO local variable `filename'.
7048
7049 2000-08-30 Stefan Monnier <monnier@cs.yale.edu>
7050
7051 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
7052
7053 * regex.c: Merge some changes from GNU libc. Add prototypes.
7054 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
7055 Use memcmp and memcpy instead of bcopy and bcmp.
7056 (init_syntax_once): Use ISALNUM.
7057 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
7058 (REG_UNSET_VALUE): Remove. Use NULL instead.
7059 (REG_UNSET, re_match_2_internal): Use NULL.
7060 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
7061 New macros.
7062 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
7063 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
7064 (regex_compile): In handle_interval, return an error rather than try to
7065 unfetch the interval if we can't find the closing brace.
7066 Obey the RE_NO_GNU_OPS syntax bit.
7067 (TOLOWER): New macro.
7068 (regcomp): Use it.
7069 (regexec): Allocate regs.start and regs.end as one block.
7070
7071 2000-08-30 Gerd Moellmann <gerd@gnu.org>
7072
7073 * xdisp.c (echo_area_display): Check display_completed instead
7074 of calling detect_input_pending.
7075
7076 * dispnew.c (update_frame): Only set display_completed here; move
7077 the update_begin and update_end calls here from update_frame_1.
7078 (update_frame_1): Don't set display_completed here, don't call
7079 update_begin/update_end.
7080
7081 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
7082 instead of store_frame_param.
7083
7084 2000-08-29 Gerd Moellmann <gerd@gnu.org>
7085
7086 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
7087 desired window matrix hasn't been displayed, use the current row
7088 instead. Make sure that only those frame rows are updated for
7089 which there exists a corresponding enabled desired row.
7090
7091 2000-08-29 Miles Bader <miles@gnu.org>
7092
7093 * xfaces.c (default_face_vector): New function.
7094 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
7095
7096 2000-08-29 Gerd Moellmann <gerd@gnu.org>
7097
7098 * lread.c (openp): Prevent temporary string passed to
7099 Ffile_readable_p from being garbage collected.
7100
7101 2000-08-28 Dave Love <fx@gnu.org>
7102
7103 * keymap.c (store_in_keymap): Add `static' to declaration.
7104
7105 2000-08-28 Gerd Moellmann <gerd@gnu.org>
7106
7107 * emacs.c, callint.c, doc.c, editfns.c
7108 (toplevel) [HAVE_STRING_H]: Include string.h.
7109 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
7110 (index): Remove prototypes which might conflict with non-standard
7111 definitions of index/strchr.
7112
7113 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
7114 (rindex): Define only if !HAVE_RINDEX.
7115
7116 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
7117
7118 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
7119
7120 2000-08-28 Miles Bader <miles@gnu.org>
7121
7122 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
7123 made inconsistent by a font-related attribute in FROM.
7124 (merge_face_inheritance): Add function comment.
7125
7126 2000-08-28 Kenichi Handa <handa@etl.go.jp>
7127
7128 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
7129 the 4th arg (PREV_EVENT) Qt to suppress input method.
7130
7131 2000-08-27 Stefan Monnier <monnier@cs.yale.edu>
7132
7133 * regex.c: Indent cpp directives and remove parens after `defined'.
7134 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
7135 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
7136 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
7137 (re_compile_pattern): Use size_t for length.
7138 (init_syntax_once): Move to a better place.
7139 * regex.h: Merge changes from GNU libc. Indent cpp directives.
7140 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
7141
7142 * syntax.c (back_comment): Detect cases where a comment-starter is
7143 actually inside another comment as in: /* a // b */ c // d \n.
7144 Make it clear that `comstart_pos' is unused for nested comments.
7145
7146 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
7147 (KEYMAPP): New macro.
7148 (Fkeymap_parent, Fset_keymap_parent): Use it.
7149 (fix_submap_inheritance): Mark it static.
7150 (define_as_prefix, describe_buffer_bindings, describe_command)
7151 (describe_translation, describe_map): Complete prototypes.
7152
7153 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
7154
7155 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
7156 to better match the key-lookup behavior.
7157
7158 2000-08-27 Gerd Moellmann <gerd@gnu.org>
7159
7160 * xfaces.c (lface_fully_specified_p): Handle :inherit.
7161 (Finternal_set_lisp_face_attribute): Fix typo in error message.
7162
7163 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
7164
7165 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
7166 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
7167 (xterm.o): Depend on coding.h
7168
7169 2000-08-26 Kenichi Handa <handa@etl.go.jp>
7170
7171 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
7172 the corresponding '#endif'.
7173
7174 2000-08-26 Miles Bader <miles@gnu.org>
7175
7176 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
7177 * xfaces.c (QCinherit): New variable.
7178 (syms_of_xfaces): Initialize it.
7179 (LFACE_INHERIT): New macro.
7180 (Finternal_get_lisp_face_attribute)
7181 (merge_face_vector_with_property)
7182 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
7183 (check_lface_attrs): Allow new types of face height. Check
7184 inherit attribute.
7185 (CYCLE_CHECK): New macro.
7186 (merge_face_inheritance): New function.
7187 (merge_face_vectors): Merge inherited faces too. Add F and
7188 CYCLE_CHECK arguments.
7189 (merge_face_vector_with_property, Finternal_merge_in_global_face)
7190 (lookup_named_face, lookup_derived_face, realize_named_face)
7191 (face_at_string_position, face_at_buffer_position): Supply
7192 new F and CYCLE_CHECK arguments to merge_face_vectors.
7193 (merge_face_heights): New function.
7194 (merge_face_vectors, merge_face_vector_with_property)
7195 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
7196 handle relative face heights.
7197 (lface_same_font_attributes_p): Compare heights using EQ.
7198
7199 2000-08-26 Kenichi Handa <handa@etl.go.jp>
7200
7201 * charset.c (char_to_string): Check the character validity.
7202 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
7203
7204 2000-08-25 Stefan Monnier <monnier@cs.yale.edu>
7205
7206 * regex.c (PUSH_FAILURE_COUNT): New macro.
7207 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
7208 Handle popping of a register's or a counter's data.
7209 (POP_FAILURE_POINT): Use the new name.
7210 (re_match_2_internal): Push counter data on the stack for succeed_n,
7211 jump_n and set_number_at and remove misleading dead code in succeed_n.
7212
7213 2000-08-25 Gerd Moellmann <gerd@gnu.org>
7214
7215 * xdisp.c (redisplay_internal): If considering all windows on all
7216 frames, update the display for each frame as soon as possible,
7217 instead of first building all desired matrices for all frames, and
7218 then updating them all.
7219 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
7220
7221 2000-08-24 Gerd Moellmann <gerd@gnu.org>
7222
7223 * bytecode.c (mark_byte_stack): Add a comment.
7224
7225 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
7226 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
7227 a graphical frame.
7228
7229 2000-08-24 Kenichi Handa <handa@etl.go.jp>
7230
7231 * minibuf.c (do_completion): Always use compare-string, not
7232 string-equal because the latter doesn't pay attention to
7233 multibyteness of strings.
7234
7235 * process.c (create_process): Don't setup raw-text coding here.
7236 (Fopen_network_stream): Don't set coding->src_multibyte and
7237 coding->dst_multibyte here.
7238 (read_process_output): For process filter, return unibyte string
7239 if default-enable-multibyte-characters is nil.
7240 (send_process): If OBJECT is multibyte text, be sure to encoded it
7241 by the specified coding system for the process. Otherwise, setup
7242 raw-text coding.
7243 (init_process): Don't initialize default-process-coding-system here.
7244
7245 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
7246
7247 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
7248 <scroll-down-aggressively>: Likewise.
7249
7250 2000-08-23 Kenichi Handa <handa@etl.go.jp>
7251
7252 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
7253 zero. Set coding->produced_char correctly.
7254
7255 2000-08-22 Andrew Innes <andrewi@gnu.org>
7256
7257 * makefile.w32-in: New file.
7258
7259 * unexw32.c (unexec): Ignore old_name, and use the actual location
7260 of the current executable instead. Base new_name on this.
7261
7262 * w32proc.c (create_child): Remove reference to security
7263 descriptor, which isn't needed and doesn't compile with mingw32.
7264
7265 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7266 up dllimport attributes.
7267 (x_update_window_end): Update prototype.
7268
7269 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
7270 extern, which screws up dllimport attributes.
7271
7272 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7273 up dllimport attributes.
7274
7275 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
7276 screws up dllimport attributes.
7277
7278 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7279 up dllimport attributes.
7280 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
7281 screws up dllimport attributes.
7282
7283 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7284 up dllimport attributes.
7285
7286 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
7287 screws up dllimport attributes.
7288
7289 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
7290 screws up dllimport attributes.
7291
7292 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7293 up dllimport attributes.
7294
7295 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
7296 unnecessary extern, which screws up dllimport attributes.
7297 (main): Ditto.
7298
7299 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7300 up dllimport attributes.
7301
7302 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
7303 unnecessary extern, which screws up dllimport attributes.
7304
7305 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
7306 screws up dllimport attributes.
7307
7308 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7309 up dllimport attributes.
7310
7311 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
7312
7313 * w32bdf.c (search_file_line):
7314 (set_bdf_font_info):
7315 (seek_char):
7316 (w32_get_bdf_glyph):
7317 (w32_BDF_to_x_font): Fix compile warnings.
7318
7319 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
7320
7321 * w32select.c: Include keyboard.h before frame.h.
7322
7323 * w32fns.c (max): Define macro.
7324 (JOHAB_CHARSET): Define if not known.
7325 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
7326 (Fx_show_tip): Synch with X version.
7327
7328 * w32xfns.c: Include keyboard.h before frame.h.
7329
7330 * w32fns.c: Include keyboard.h before frame.h.
7331
7332 * w32term.c: Include keyboard.h before frame.h.
7333
7334 * fontset.c: Include keyboard.h before frame.h.
7335
7336 * w32inevt.c: Include keyboard.h before frame.h.
7337 (MOUSE_MOVED): Define if not known.
7338
7339 * minibuf.c: Include keyboard.h before frame.h.
7340
7341 * keyboard.c: Include keyboard.h before frame.h.
7342
7343 * indent.c: Include keyboard.h before frame.h.
7344
7345 * dispnew.c: Include keyboard.h before frame.h.
7346
7347 * buffer.c: Include keyboard.h before frame.h.
7348
7349 * alloc.c: Include keyboard.h before frame.h.
7350
7351 * print.c: Include keyboard.h before frame.h.
7352
7353 * process.c: Include keyboard.h before frame.h.
7354
7355 * scroll.c: Include keyboard.h before frame.h.
7356
7357 * sysdep.c: Include keyboard.h before frame.h.
7358
7359 * term.c: Include keyboard.h before frame.h.
7360
7361 * window.c: Include keyboard.h before frame.h.
7362
7363 * xdisp.c: Include keyboard.h before frame.h.
7364 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
7365
7366 * frame.c: Include keyboard.h before frame.h.
7367
7368 * w32heap.h: Undefine min, max.
7369
7370 * w32gui.h: Undefine min, max.
7371
7372 * unexw32.c: Change PUCHAR to PCHAR.
7373 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
7374 (relocate_offset):
7375 (get_section_info):
7376 (copy_executable_and_dump_data): Remove unnecessary static defs.
7377 (copy_executable_and_dump_data): Fix compile warnings.
7378
7379 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
7380
7381 * w32console.c (min): Define macro.
7382 (clear_frame, write_glyphs): Fix compile warning.
7383
7384 * w32proc.c (compare_env):
7385 (find_child_console): Fix compile warning.
7386
7387 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
7388 sys_errlist instead of _sys_errlist.
7389 (get_emacs_configuration_options): New function.
7390
7391 * s/ms-w32.h (sys_nerr): Provide default definition.
7392 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
7393 name with _ prepended.
7394 (NSIG): Define if not known.
7395 (get_emacs_configuration): Provide extern declaration.
7396 (get_emacs_configuration_options): Provide extern declaration.
7397 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
7398
7399 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
7400 (map_w32_filename):
7401 (read_unc_volume): Fix compile warning.
7402
7403 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
7404 definitions from being used.
7405
7406 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
7407
7408 * w32.c (unc_volume_file_attributes):
7409 (open_unc_volume): Make arg const.
7410
7411 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
7412 (read_input_waiting): Remove excess parameter.
7413
7414 * w32.c (init_environment): Call _access.
7415 (check_windows_init_file): Call _close.
7416 (init_user_info): Call _putenv.
7417 (init_environment): Call _putenv and _strdup.
7418 (init_ntproc): Reset volume info cache on startup.
7419
7420 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
7421 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
7422 cannot override the CRT malloc.
7423
7424 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
7425 (LINK_FLAGS): Append to original value of LINK_FLAGS.
7426
7427 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
7428 unless we are linking with a static CRT.
7429 (RVA_TO_PTR): Cast result to unsigned char*.
7430
7431 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
7432 (add_volume_info): Use xstrdup.
7433
7434 2000-08-22 Stefan Monnier <monnier@cs.yale.edu>
7435
7436 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
7437 (do_completion, Fminibuffer_complete_word): Use it.
7438 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
7439 var so it can take non-boolean values.
7440
7441 2000-08-21 Gerd Moellmann <gerd@gnu.org>
7442
7443 * editfns.c (find_field): Formatting changes.
7444 (toplevel): Some old-style function forward declarations
7445 changed to prototypes, some new protypes added, some functions
7446 made static.
7447
7448 * lisp.h (set_time_zone_rule): Add prototype.
7449 (use_dialog_box): External declaration.
7450
7451 * keyboard.c (gen_help_event): Add parameter SIZE.
7452 (kbd_buffer_events_waiting): Slightly rewritten.
7453 (clear_event): New function.
7454 (kbd_buffer_get_event): Use it, and clear the input_events of
7455 HELP_EVENTs.
7456 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
7457 don't fill the newly created array with nils.
7458 (toplevel): Convert some old-style function forward declarations
7459 to prototypes.
7460
7461 * keyboard.h (gen_help_event): Change prototype.
7462
7463 * xterm.c (XTread_socket): Change calls to gen_help_event.
7464
7465 * w32term.c (w32_read_socket): Change calls to gen_help_event.
7466
7467 * eval.c (Fmacroexpand): Doc fix.
7468
7469 2000-08-20 Jason Rumney <jasonr@gnu.org>
7470
7471 * w32term.h (x_display_info_for_display): Remove as this function
7472 does not exist on W32.
7473
7474 * w32term.c (help_echo_window): New variable.
7475 (syms_of_w32term): staticpro it.
7476 (note_mode_line_highlight): Set it.
7477 (XTextExtents16): Removed as there is no equivalent on W32.
7478 (x_compute_glyph_string_overhangs): Incomplete body removed, as
7479 the X way of doing this will not work for W32.
7480 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
7481 (x_draw_image_foreground): Avoid drawing outside of the clip area
7482 when image doesn't have a mask.
7483 (note_mouse_highlight): Process overlays in the right order of
7484 priority. Set help_echo_window.
7485 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
7486 because that's more visible for large images.
7487
7488 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
7489 name to single_keymap_panes.
7490 (w32_menu_show): Set wv->title when dealing with titles.
7491 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
7492
7493 2000-08-21 Miles Bader <miles@gnu.org>
7494
7495 * minibuf.c (do_completion): Try again if we rewrite the input
7496 string, but no completion was done, so that any completion message
7497 will be correct.
7498
7499 2000-08-20 Gerd Moellmann <gerd@gnu.org>
7500
7501 * xfaces.c (lface_equal_p): Compare strings differently.
7502 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
7503 (realize_tty_face): Use them.
7504 (syms_of_xfaces): Initialize new variables.
7505 (map_tty_color): New function, extracted from realize_tty_face.
7506 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
7507 foreground or background color, store the new color name in the
7508 realized face; previous code trying to do this had no effect.
7509 (realize_tty_face): Use map_tty_color.
7510 (Fclear_face_cache): Set face_change_count and ensure thorough
7511 redisplay.
7512
7513 2000-08-19 Gerd Moellmann <gerd@gnu.org>
7514
7515 * undo.c (record_first_change, record_marker_adjustment): Don't
7516 use XBUFFER on last_undo_buffer which might not be a buffer.
7517
7518 2000-08-18 Kenichi Handa <handa@etl.go.jp>
7519
7520 * coding.c (decode_coding_string): Set members consumed,
7521 consumed_char, produced, produced_char of *coding correctly. If
7522 decode_coding doesn't consume any byte, don't try anymore.
7523 (encode_coding_string): Likewise.
7524
7525 2000-08-18 Gerd Moellmann <gerd@gnu.org>
7526
7527 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
7528 conditional have void type, for Standard C compilers.
7529
7530 * xdisp.c (redisplay_internal): Compare windows for equality with
7531 EQ, instead of applying XWINDOW to something that might not
7532 be a window.
7533
7534 2000-08-18 Kenichi Handa <handa@etl.go.jp>
7535
7536 * fontset.c (Finternal_char_font): Search only the selected frame
7537 for a window of the current buffer.
7538
7539 2000-08-18 Gerd Moellmann <gerd@gnu.org>
7540
7541 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
7542 Lisp_Objects.
7543
7544 * keyboard.c (kbd_buffer_get_event): Handle the case that the
7545 second half of a HELP_EVENT is found at the start of kbd_buffer.
7546
7547 2000-08-18 Miles Bader <miles@gnu.org>
7548
7549 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
7550
7551 * editfns.c (save_restriction_save): Rewrite to use markers.
7552 (save_restriction_restore): Rewrite to understand new form of data
7553 saved by save_restriction_save.
7554 (Fsave_restriction): Remove cautionary note in doc-string.
7555
7556 2000-08-17 Gerd Moellmann <gerd@gnu.org>
7557
7558 * fileio.c (build_annotations): Add a comment explaining the
7559 return value of format-annotate-function. Replace a spurious call
7560 to Flength with a CONSP test. Call format-annotate-function with
7561 a fifth arg specifying how many times the function is been called
7562 in a row, to let it choose temporary buffers appropriately.
7563
7564 2000-08-17 Dave Love <fx@gnu.org>
7565
7566 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
7567 declare make_temp_name twice.
7568
7569 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
7570 (unreadpure): Give it an arg.
7571
7572 * unexalpha.c: Prototype fatal_unexec, mark_x,
7573 update_dynamic_symbols. Declare unexec as void.
7574
7575 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
7576 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
7577
7578 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
7579 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
7580
7581 * alloca.c: Use #error.
7582 [POINTER_TYPE]: Use it.
7583
7584 * eval.c (Fdefvar): Doc fix.
7585
7586 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
7587 INITIALIZE_INTERVAL.
7588
7589 * buffer.h: Avoid DECLARE_INTERVALS.
7590
7591 * config.in: Add size_t.
7592
7593 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
7594
7595 * w16select.c (set_clipboard_data): If there's not enough memory
7596 to put text into clipboard, return 1, as Fw16_set_clipboard_data
7597 expects. In case of other failures, return 3.
7598 (system_error_msg): New error message.
7599 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
7600 system_error_msg.
7601
7602 2000-08-16 Gerd Moellmann <gerd@gnu.org>
7603
7604 * term.c (write_glyphs): Also turn off inverse video after turning
7605 off other appearances in case TS_exit_attribute_mode is not equal
7606 to TS_end_standout_mode.
7607 (insert_glyphs): Turn inverse video on/off for each run of glyphs
7608 with the same face.
7609 (turn_off_face): Reset standout_mode only if
7610 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
7611 is equal to TS_end_standout_mode.
7612
7613 2000-08-16 Kenichi Handa <handa@etl.go.jp>
7614
7615 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
7616 sequence at the end of the source block.
7617
7618 * ccl.c (Fccl_program_p): Docstring modified.
7619 (Fccl_execute): Likewise.
7620 (Fccl_execute_on_string): Likewise.
7621
7622 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
7623
7624 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
7625
7626 2000-08-16 Kenichi Handa <handa@etl.go.jp>
7627
7628 The following changes are mainly to fix bugs of
7629 encode/decode-coding-string failing if encoding/decoding return
7630 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
7631 variable conversion_buffer.
7632
7633 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
7634 decrement dst_end to avoid buffer overflow in the later call of
7635 string_as_multibyte
7636
7637 * coding.h (conversion_buffer_size, conversion_buffer)
7638 (get_conversion_buffer): Extern deleted.
7639
7640 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
7641 (conversion_buffer, conversion_buffer_size): Variables deleted.
7642 (get_conversion_buffer): Function deleted.
7643 (struct conversion_buffer): New structure.
7644 (MAX_ALLOCA): New macro.
7645 (allocate_conversion_buffer): New macro.
7646 (extend_conversion_buffer, free_conversion_buffer): New functions.
7647 (ccl_coding_driver): Set coding->result.
7648 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
7649 this is the last block of source.
7650 (encode_coding): Likewise. Handle the source block as the last
7651 one only when the whole source text is consumed.
7652 (decode_coding_string): Handle the case that the output buffer is
7653 too small to decode the whole source text. Use
7654 allocate_conversion_buffer, extend_conversion_buffer and
7655 free_conversion_buffer, not get_conversion_buffer.
7656 (encode_coding_string): Likewise.
7657 (init_coding): Function deleted.
7658 (init_coding_once): Delete code to initialize conversion_buffer_size.
7659
7660 * emacs.c (main): Don't call init_coding.
7661
7662 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
7663
7664 * term.c (write_glyphs): Use a locally declared conversion_buffer.
7665 (insert_glyphs): Likewise.
7666
7667 * w32console.c (write_glyphs): Use a locally declared
7668 conversion_buffer.
7669
7670 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
7671
7672 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
7673 member of display_info is NULL.
7674
7675 2000-08-15 Gerd Moellmann <gerd@gnu.org>
7676
7677 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
7678
7679 * term.c (turn_off_face): Reset standout_mode when resetting
7680 appearances with capability `me'.
7681 (write_glyphs): Switch on inverse video before each face change.
7682
7683 2000-08-14 Dave Love <fx@gnu.org>
7684
7685 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
7686 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
7687 (lisp_free): Declare and make static.
7688
7689 * window.c: Fix embedded comment.
7690 (syms_of_window): Fix doc string.
7691
7692 2000-08-14 Gerd Moellmann <gerd@gnu.org>
7693
7694 * keymap.c (push_key_description): If C without modifiers is < 32,
7695 make sure to print `C-' before `M-', like in the manual.
7696
7697 2000-08-11 Gerd Moellmann <gerd@gnu.org>
7698
7699 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
7700 since they aren't relocated anymore.
7701 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
7702
7703 * xdisp.c (try_cursor_movement): Fix handling of cursor in
7704 partially visible line which is smaller than the window's height.
7705
7706 2000-08-11 Kenichi Handa <handa@etl.go.jp>
7707
7708 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
7709 the multibyte form of eight-bit-control characters.
7710 (Fccl_execute_on_string): Initialize ccl->multibyte.
7711
7712 * ccl.h (struct ccl_program): New member multibyte.
7713
7714 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
7715
7716 2000-08-11 Kenichi Handa <handa@etl.go.jp>
7717
7718 * regex.c (regex_compile) <normal_char>: Pay attention to
7719 multibyteness.
7720 (analyse_first) <exactn>: Setup fastmap correctly for
7721 eight-bit-control characters.
7722
7723 2000-08-11 Kenichi Handa <handa@etl.go.jp>
7724
7725 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
7726
7727 * keyboard.c (make_lispy_event): Handle the new event type
7728 multibyte_char_keystroke.
7729
7730 * xterm.c: Include coding.h.
7731 (XTread_socket): Work around a bug of XmbLookupString. If the
7732 input is from XIM, decode it according to the current locale. In
7733 that case, generate multibyte_char_keystroke events.
7734
7735 2000-08-11 Kenichi Handa <handa@etl.go.jp>
7736
7737 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
7738 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
7739
7740 2000-08-10 Gerd Moellmann <gerd@gnu.org>
7741
7742 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
7743 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
7744 (move_it_in_display_line_to): Record iterator's ascent and descent
7745 before producing glyphs, and restore them when we know the glyph
7746 doesn't fit on the line.
7747 (move_it_to): Restructured so that it's easier to debug. If
7748 moving to a vpos, and not moving to an x or character position,
7749 stop as soon as the specified vpos is reached; don't move further
7750 into that line because that might change the computed line height.
7751 (try_cursor_movement): New function, extracted from the cursor
7752 movement branch of redisplay_window. If ending on a partially
7753 visible line, don't try to scroll if the cursor line is taller
7754 than the window.
7755 (redisplay_window): Use try_cursor_movement.
7756
7757 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
7758 because that function doesn't cope with variable-height lines.
7759
7760 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
7761 box cursor because that's better visible for large images.
7762
7763 2000-08-10 Miles Bader <miles@gnu.org>
7764
7765 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
7766
7767 2000-08-10 Gerd Moellmann <gerd@gnu.org>
7768
7769 * xdisp.c (Vmessages_buffer_name): New variable.
7770 (message_dolog): Use it.
7771 (syms_of_xdisp): Initialize it.
7772
7773 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
7774
7775 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
7776 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
7777 redundant now that keyboard.h is included.
7778
7779 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
7780
7781 * keyboard.c (kbd_buffer_events_waiting): New function.
7782
7783 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
7784
7785 * msdos.c: Include keyboard.h.
7786 (XMenuActivate): Empty no_event events from the event buffer. If
7787 no events are left after that, call clear_input_pending.
7788 (mouse_clear_clicks): New function, code moved from mouse_init.
7789 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
7790 mouse driver to ``forget'' any past clicks.
7791
7792 * Makefile.in (msdos.o): Depend on keyboard.h.
7793
7794 2000-08-09 Gerd Moellmann <gerd@gnu.org>
7795
7796 * lisp.h (input_pending): External declaration.
7797
7798 * dispextern.h (Qredisplay_dont_pause): Declare extern.
7799
7800 * xdisp.c (echo_area_display): Display thoroughly if input is
7801 pending. Bind redisplay-dont-pause to t during the redisplay.
7802 in case input is pending.
7803
7804 * dispnew.c (Qredisplay_dont_pause): New variable.
7805 (syms_of_display): Initialize and staticpro it.
7806 (update_frame_1): Don't interrupt the display for pending input if
7807 redisplay_dont_pause is set.
7808
7809 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
7810
7811 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
7812
7813 2000-08-09 Miles Bader <miles@lsi.nec.co.jp>
7814
7815 * callproc.c (Fcall_process): Terminate the unwind-protect around
7816 the post-read-conversion of coding system.
7817
7818 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
7819 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
7820 * buffer.h (overlays_at): Update prototype.
7821 * xdisp.c (next_overlay_change): Update call to overlays_at.
7822 * xfaces.c (face_at_buffer_position): Likewise.
7823 * textprop.c (Fget_char_property): Likewise.
7824 * xterm.c (note_mouse_highlight): Likewise.
7825
7826 * minibuf.c (do_completion): Don't consider a simple change of
7827 case as `completion'.
7828
7829 2000-08-08 Ken Raeburn <raeburn@gnu.org>
7830
7831 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
7832 * undo.c (record_delete): Make sure last_point_position_buffer is
7833 a buffer before comparing pointers.
7834
7835 * coding.h (decode_coding_string): Declare.
7836
7837 * intervals.h (Fprevious_single_char_property_change): Declare.
7838
7839 * textprop.c (Fprevious_single_char_property_change): Don't do
7840 arithmetic directly on lisp objects.
7841
7842 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
7843
7844 * keyboard.h (menu_item_eval_property): Declare.
7845
7846 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
7847 reuse as buffer name, instead of recreating (and discarding) every
7848 time a message is logged.
7849 (with_echo_area_buffer): Make callback arg A2 a lisp object.
7850 (current_message_1, truncate_message_1, set_message_1)
7851 (display_echo_area_1, resize_mini_window_1): Signatures changed.
7852 (current_message, truncate_echo_area, display_echo_area)
7853 (resize_echo_area_axactly): Changed calls.
7854
7855 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
7856 Lisp object.
7857 (Ffind_coding_systems_region_internal): First argument to Fappend
7858 must be an integer, not a Lisp object.
7859
7860 2000-08-08 Kenichi Handa <handa@etl.go.jp>
7861
7862 * charset.c (Fchar_width): Doc fix.
7863
7864 2000-08-08 Gerd Moellmann <gerd@gnu.org>
7865
7866 * charset.c (Fstring_width): Doc fix.
7867
7868 2000-08-07 Gerd Moellmann <gerd@gnu.org>
7869
7870 * xdisp.c (start_display): When starting display on a continuation
7871 line, clear ascent and descent members of the iterator structure;
7872 the height of the continued line does not affect the height of the
7873 continuation line.
7874 (make_cursor_line_fully_visible): Do nothing if cursor is on a
7875 line taller than the window.
7876 (redisplay_window) <forced window start>: Handle case that the
7877 middle of the window is not found in any row.
7878 (dump_glyph_row): Show more information.
7879 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
7880 first text line in a glyph matrix.
7881
7882 * xterm.c (x_draw_image_foreground): Avoid drawing outside
7883 of the clip area when image doesn't have a mask.
7884
7885 * fns.c (sweep_weak_table): Fix survival conditions for
7886 key-or-value and key-and-value weakness.
7887
7888 * .gdbinit (xhashtable): New command.
7889
7890 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
7891 tables out of the list of all weak hash tables.
7892
7893 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
7894 a new buffer is created, make sure echo_area_buffer[] references
7895 the new buffer.
7896
7897 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
7898
7899 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
7900 the doc string.
7901
7902 2000-08-07 Kenichi Handa <handa@etl.go.jp>
7903
7904 * syntax.c (skip_chars): Fix previous change. Make the handling
7905 of unibyte string consistent with that of regex search.
7906
7907 2000-08-05 Gerd Moellmann <gerd@gnu.org>
7908
7909 * xmenu.c (popup_get_selection): Use xfree instead of free.
7910
7911 * fileio.c (Finsert_file_contents): Use xfree instead of free.
7912
7913 * editfns.c (Ftranspose_regions): Use xfree instead of free.
7914
7915 * callproc.c (child_setup): Use xfree instead of free.
7916
7917 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
7918 instead of malloc.
7919 (run_mac_command, closedir): Use `xfree' instead of `free'.
7920
7921 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
7922
7923 * eval.c (error): Use xfree instead of free.
7924
7925 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
7926
7927 * fns.c: Replace `illegal' with `invalid'.
7928 (Fmake_hash_table, make_hash_table): Allow table size of 0.
7929
7930 2000-08-05 Kenichi Handa <handa@etl.go.jp>
7931
7932 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
7933 conversion.
7934
7935 2000-08-04 Noah Friedman <friedman@splode.com>
7936
7937 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
7938 docstring.
7939
7940 2000-08-04 Gerd Moellmann <gerd@gnu.org>
7941
7942 * syntax.c (skip_chars): Fix typo in error message.
7943
7944 2000-08-04 Andreas Schwab <schwab@suse.de>
7945
7946 * m/ia64.h: Moved from s/ia64.h.
7947
7948 2000-08-04 Kenichi Handa <handa@etl.go.jp>
7949
7950 * process.c (read_process_output): Big simplification. Handle
7951 composition and post-read-conversion of coding system correctly.
7952 (send_process): Handle composition correctly.
7953
7954 * callproc.c (Fcall_process): Handle post-read-conversion of
7955 coding system if any.
7956
7957 * coding.c (decode_coding_iso2022): More strict check for handling
7958 single shifting.
7959 (coding_restore_composition): Pay attention to the case that
7960 cmp_data is not set properly (because of invalid code in the
7961 source text).
7962 (run_pre_post_conversion_on_str): Include text properties in the
7963 resulting string.
7964 (decode_coding_string): Set members of coding correctly.
7965
7966 2000-08-03 Gerd Moellmann <gerd@gnu.org>
7967
7968 * s/ia64.h: New file.
7969
7970 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
7971 Use NULL instead of 0 at the end of variable argument list of
7972 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
7973 sizeof (int) < sizeof (void *).
7974
7975 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
7976 of variable argument lists of XtVaGetValues and XtVaSetValues.
7977
7978 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
7979 variable argument lists of XtVaGetValues and XtVaSetValues.
7980
7981 2000-08-02 Gerd Moellmann <gerd@gnu.org>
7982
7983 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
7984 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
7985
7986 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
7987 prototype.
7988
7989 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
7990 in call to Fsingle_key_description.
7991
7992 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
7993 Callers changed.
7994
7995 2000-08-02 Colin Walters <walters@cis.ohio-state.edu>
7996
7997 * window.c (display_buffer_reuse_frames): New variable.
7998 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
7999 frames displaying BUFFER.
8000 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
8001
8002 2000-08-01 Miles Bader <miles@gnu.org>
8003
8004 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
8005 when to constrain NEW_POS (they were pretty screwed up before).
8006
8007 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
8008
8009 * msdos.c (run_msdos_command): Save and restore the master
8010 environment, for the case that child_setup signals an error.
8011 When mirroring slashes in DOS shell commands, don't fail when
8012 argv[2] has embedded blanks.
8013 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
8014 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
8015 (dos_ttraw): Call mouse_setup_buttons.
8016
8017 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
8018 using alloca; free it after run_msdos_command returns.
8019
8020 2000-07-27 Dave Love <fx@gnu.org>
8021
8022 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
8023 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
8024
8025 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
8026
8027 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
8028
8029 * editfns.c (lisp_time_argument): Fix last change.
8030
8031 2000-07-27 Gerd Moellmann <gerd@gnu.org>
8032
8033 * fns.c (Fdelete): Make it work on vectors and strings in addition
8034 to lists.
8035
8036 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
8037 (syms_of_fns): Initialize new variables.
8038 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
8039 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
8040 weakness, with t meaning the same as `key-and-value'.
8041
8042 2000-07-27 Kenichi Handa <handa@etl.go.jp>
8043
8044 * coding.h (struct coding_system): Member safe_charset deleted.
8045
8046 * coding.c (Qsafe_charsets): This variable deleted.
8047 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
8048 New variables.
8049 (coding_safe_chars): New function.
8050 (CODING_SAFE_CHAR_P): New macro.
8051 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
8052 checking safe_charsets member of the coding system. Caller changed.
8053 (detect_coding_iso2022): New local variable safe_chars.
8054 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
8055 safe_charsets member of the coding system.
8056 (decode_coding_iso2022): New local variable safe_chars.
8057 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
8058 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
8059 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
8060 (ENCODE_UNSAFE_CHARACTER): New macro.
8061 (encode_coding_iso2022): New local variable safe_chars. Check
8062 unsafe chars.
8063 (setup_coding_system): Delete the code to initialize
8064 coding->safe_charses
8065 (intersection, find_safe_codings): New functions.
8066 (Ffind_coding_systems_region_internal): New function.
8067 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
8068 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
8069 variable and initialize it.
8070
8071 * fns.c (char_table_ref_and_index): New function.
8072
8073 * lisp.h (char_table_ref_and_index): Add prototype.
8074
8075 2000-07-26 Sam Steingold <sds@gnu.org>
8076
8077 * editfns.c (lisp_time_argument): Added third argument `usec'.
8078 (Ffloat_time): New built-in Lisp function.
8079
8080 2000-07-26 Gerd Moellmann <gerd@gnu.org>
8081
8082 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
8083 for the character code.
8084
8085 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
8086 GNU/Linux.
8087
8088 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
8089 if called for a popup menu.
8090 (xmenu_show): Store help string in widget values.
8091
8092 2000-07-26 Dave Love <fx@gnu.org>
8093
8094 * syswait.h: Move some definitions.
8095 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
8096 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
8097 perspicuous definitions.
8098 (WTERMSIG): Fix bit pattern used.
8099
8100 2000-07-26 Kenichi Handa <handa@etl.go.jp>
8101
8102 * print.c (print_object): If vector printing is truncated, print
8103 "..." to indicate it as well as the case of list printing.
8104
8105 2000-07-25 Gerd Moellmann <gerd@gnu.org>
8106
8107 * xdisp.c (next_element_from_display_vector): Improve comments.
8108
8109 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
8110 for the character code, and the rest for the face id as in 20.x.
8111 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
8112
8113 * window.c (window_display_table): Cleaned up.
8114
8115 * syntax.c (Fforward_word): Add last arg nil in call of
8116 Fconstrain_to_field.
8117
8118 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
8119
8120 * fileio.c (Frename_file) [DOS_NT]: If the file names are
8121 identical but for the letter-case, don't call
8122 barf_or_query_if_file_exists.
8123
8124 2000-07-25 Miles Bader <miles@gnu.org>
8125
8126 * editfns.c (find_field): Honor special `boundary' fields.
8127 (Qboundary): New variables.
8128 (syms_of_editfns): Initialize Qboundary.
8129 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
8130 Use scan_buffer instead of find_before_next_newline, because it
8131 allows us to detect the boundary case where there's a newline at
8132 the search limit.
8133 * lisp.h (Fconstrain_to_field): Update external declaration.
8134
8135 2000-07-24 Gerd Moellmann <gerd@gnu.org>
8136
8137 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
8138 if that is nil.
8139
8140 2000-07-24 Dave Love <fx@gnu.org>
8141
8142 * s/sunos4-0.h, s/sol2.h:
8143 (LIBS_TERMCAP): Move from m/sparc.h.
8144
8145 * m/sparc.h (TERMINFO): Moved to system files (probably only
8146 relevant for sunos4 judging by its vintage).
8147 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
8148 __arch64__.
8149
8150 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
8151
8152 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
8153 name to single_keymap_panes.
8154
8155 2000-07-24 Andreas Schwab <schwab@suse.de>
8156
8157 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
8158
8159 2000-07-24 Gerd Moellmann <gerd@gnu.org>
8160
8161 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
8162 parameters instead of using int parameters. Expect FN to accept
8163 EMACS_INT parameters.
8164 (display_echo_area, resize_echo_area_axactly, current_message)
8165 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
8166 with new argument list.
8167 (resize_mini_window_1): New callback function.
8168 (current_message_1, truncate_message_1, set_message_1): Change
8169 parameter lists to the new format expected by with_echo_area_buffer.
8170
8171 2000-07-24 Kenichi Handa <handa@etl.go.jp>
8172
8173 * fontset.c (fontset_ref): Remove INLINE declaration.
8174 (fontset_ref_via_base): Likewise.
8175 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
8176 to downcase.
8177
8178 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
8179
8180 * msdos.c (IT_note_mouse_highlight): Process overlays in the
8181 correct order of priority. If help echo was found in an overlay,
8182 use that overlay as the object in which the help echo was found.
8183
8184 2000-07-22 Miles Bader <miles@gnu.org>
8185
8186 * textprop.c (Fprevious_single_char_property_change): The initial
8187 property value should be from the position preceding POSITION, not
8188 following it.
8189
8190 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
8191
8192 * coding.c (syms_of_coding): Doc fix for
8193 inhibit-iso-escape-detection.
8194
8195 2000-07-21 Gerd Moellmann <gerd@gnu.org>
8196
8197 * xterm.c (note_mouse_highlight): Process overlays in the right
8198 order of priority.
8199
8200 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
8201
8202 * xterm.c (note_mouse_highlight): If help-echo was found in an
8203 overlay, use that overlay as the object in which the help was found.
8204
8205 * window.c (foreach_window_1): Fix typo reversing an if-condition.
8206
8207 * window.c (foreach_window): Instead of a fake variable argument
8208 list, take one USER_DATA argument.
8209 (foreach_window_1): Likewise, and call callback functions with two
8210 args, the window and USER_DATA.
8211 (struct check_window_data): New struct.
8212 (check_window_containing): Use it.
8213 (window_from_coordinates): Set up a struct check_window_data for
8214 foreach_window.
8215 (add_window_to_list, freeze_window_start): Change parameters
8216 according to new calling convention.
8217
8218 * window.h (foreach_window): Change prototype.
8219
8220 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
8221
8222 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
8223
8224 * xmenu.c (menu_help_callback): Call show_help_echo with
8225 additional arguments OBJECT and POS.
8226
8227 2000-07-21 Kenichi Handa <handa@etl.go.jp>
8228
8229 * data.c (Faset): Allow storing any multibyte character in a
8230 string. Convert unibyte string to multibyte if necessary.
8231
8232 * xfns.c (x_encode_text): New function.
8233 (x_set_name): Use x_encode_text.
8234 (x_set_title): Likewise.
8235
8236 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
8237
8238 * xterm.h (x_encode_text): Add prototype.
8239
8240 2000-07-20 Dave Love <fx@gnu.org>
8241
8242 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
8243 xfree, not free.
8244
8245 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
8246
8247 * msdos.c (help_echo_window): New variable.
8248 (syms_of_msdos): Initialize and staticpro it.
8249 (IT_note_mode_line_highlight): Set help_echo_window.
8250 (IT_note_mouse_highlight): Ditto.
8251 (dos_rawgetc): Store help_echo_window in the second event produced
8252 for HELP_EVENTs.
8253
8254 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
8255 Record the object that generated the help echo and the position of
8256 that object in help_echo_object and help_echo_pos. Record that
8257 some glyphs in a row are displayed in mouse-face.
8258 (IT_update_begin): Don't clear mouse highlight unless one of the
8259 enabled glyph rows is marked as being displayed in mouse-face.
8260 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
8261 and position recorded in help_echo_object and help_echo_pos to the
8262 event queue.
8263 (IT_menu_display): Accept a new argument PN: the pane number of
8264 the current menu pane. Record the pane number and the item
8265 number of the item which has associated help string.
8266 (XMenuActivate): Update the prototype for help_callback in
8267 function declaration. Call IT_menu_display with the current menu
8268 pane number as an additional argument. Call help_callback with
8269 two additional arguments: the pane number and the item number of
8270 the menu item associated with the help text.
8271 (help_echo_object, help_echo_pos): New variables.
8272 (syms_of_msdos): Initialize them and staticpro help_echo_object.
8273
8274 * msdos.h (XMenuActivate): Update prototype.
8275
8276 2000-07-19 Gerd Moellmann <gerd@gnu.org>
8277
8278 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
8279 Add some more prototypes.
8280
8281 * xterm.c, xterm.h: Add some more prototypes.
8282
8283 * lisp.h (Fnext_single_char_property_change): Add prototype.
8284
8285 * dispnew.c (direct_output_for_insert): Remove confusing
8286 outer local variable mouse_face_overwritten_p.
8287 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
8288
8289 * alloc.c (allocate_string_data): Don't copy old string contents.
8290
8291 2000-07-19 Kenichi Handa <handa@etl.go.jp>
8292
8293 * coding.c (code_convert_region): Delete text properties before
8294 shrinking the conversion region.
8295
8296 2000-07-18 Gerd Moellmann <gerd@gnu.org>
8297
8298 * dispnew.c (update_text_area): Write the whole row if it
8299 has mouse-face in it.
8300
8301 * xfaces.c (face-alternative-font-family-alist): Remove
8302 DEFVAR_LISP; staticpro instead.
8303
8304 * xmenu.c (menu_help_callback): Call show_help_echo with
8305 new arguments.
8306
8307 * keyboard.c (show_help_echo): Add parameter WINDOW.
8308 (read_char): Call show_help_echo with window extracted from Lisp
8309 help event.
8310 (gen_help_event): Add parameter WINDOW.
8311
8312 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
8313
8314 * xterm.c (help_echo_window): New variable.
8315 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
8316 (XTread_socket): Pass help_echo_window to gen_help_event.
8317 (syms_of_xterm): Initialize and staticpro help_echo_window.
8318
8319 2000-07-18 Dave Love <fx@gnu.org>
8320
8321 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
8322
8323 2000-07-18 Gerd Moellmann <gerd@gnu.org>
8324
8325 * alloc.c (allocate_string_data): If string had already data
8326 assigned, copy old contents to new string data.
8327
8328 * coding.c (syms_of_coding): Fix typo in spelling of variable
8329 `inhibit-iso-escape-detection'.
8330
8331 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
8332
8333 * Makefile.in: Add dependencies on dispextern.h.
8334 (alloca.o): Don't define malloc and define EMACS_FREE instead of
8335 `free'; both can conflict with system header files.
8336
8337 2000-07-18 Kenichi Handa <handa@etl.go.jp>
8338
8339 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
8340 undefined.
8341
8342 2000-07-18 Dave Love <fx@gnu.org>
8343
8344 * window.c (Fwindow_list): Declare arg `window'.
8345
8346 2000-07-18 Kenichi Handa <handa@etl.go.jp>
8347
8348 * coding.c (setup_coding_system): Don't override the explicitly
8349 specified designations.
8350
8351 2000-07-15 Miles Bader <miles@gnu.org>
8352
8353 * editfns.c (char_property_eq, char_property_stickiness): Renamed
8354 from `text_property_eq' and `text_property_stickiness', respectively.
8355 (find_field, Fconstrain_to_field, char_property_eq)
8356 (char_property_stickiness): Changed to call char-property functions
8357 instead of text-property-only ones.
8358
8359 * textprop.c (Fnext_single_char_property_change): Made a subr (was
8360 `next_single_char_property_change'). Do more error checking, and
8361 cleanup limit behavior.
8362 (Fprevious_single_char_property_change): New function.
8363 (syms_of_textprop): Initialize new subrs.
8364
8365 * xdisp.c (display_prop_end, invisible_text_between_p):
8366 Call Fnext_single_char_property_change instead of
8367 next_single_char_property_change.
8368
8369 2000-07-15 Jason Rumney <jasonr@gnu.org>
8370
8371 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
8372 after menu is finished with.
8373 (add_menu_item): Only consider wv->title as a menu title.
8374 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
8375
8376 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
8377 null title.
8378 (FONT_REGEXP): Remove unused macro, and its sub-components.
8379 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
8380
8381 * w32term.c (help_echo_object, help_echo_pos): New variables.
8382 (note_mode_line_highlight): Store additional information about the
8383 help-echo in help_echo_object and help_echo_pos. Check both
8384 `local-map' and `keymap' properties for changing the cursor
8385 (note_mouse_highlight): Store additional information about the
8386 help-echo in help_echo_object and help_echo_pos.
8387 (note_tool_bar_highlight): Set help_echo_object to nil and
8388 help_echo_pos to -1.
8389 (w32_read_socket): Use gen_help_event instead of filling
8390 input_events manually.
8391 (syms_of_w32term): Staticpro help_echo_object.
8392 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
8393 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
8394 (x_clear_mouse_face): New function.
8395 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
8396 (x_update_window_begin): No need to turn off the mouse
8397 highlight here.
8398 (show_mouse_face): Set the mouse_face_p flag of glyph rows
8399 depending on whether they contain glyphs highlighted in mouse-face.
8400 (x_fill_stretch_glyph_string): Consume runs of stretch
8401 glyphs instead of a single one.
8402 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
8403 with new argument list.
8404 (x_set_glyph_string_gc): Make sure the face's GC is valid.
8405 (x_append_glyph, x_append_composite_glyph)
8406 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
8407 changes in struct glyph starting 1999-12-27. See comments for
8408 xterm.c on 2000-07-05.
8409
8410 2000-07-14 Sam Steingold <sds@gnu.org>
8411
8412 * xfaces.c (realize_x_face): Fix the last patch:
8413 check `default_face' before dereferencing.
8414
8415 2000-07-14 Dave Love <fx@gnu.org>
8416
8417 * syntax.c (back_comment): Add null default in switch (for pcc).
8418
8419 2000-07-14 Kenichi Handa <handa@etl.go.jp>
8420
8421 * xfaces.c (realize_x_face): Make fontset using the base of the
8422 default_face's fontset, not using the default fontset.
8423
8424 * coding.c (inhibit_iso_escape_detection): New variable.
8425 (syms_of_coding): Make it a Lisp variable.
8426 (detect_coding_iso2022): If inhibit_iso_escape_detection is
8427 nonzero, ignore ISO2022's escape sequence.
8428
8429 2000-07-14 Gerd Moellmann <gerd@gnu.org>
8430
8431 * alloca.c (malloc) [emacs]: Define as xmalloc.
8432
8433 * xfns.c (Fx_show_tip): If frame parameters contain a position,
8434 use that instead of the mouse position. Add parameters DX and DY.
8435
8436 * dispextern.h (Fx_show_tip): Adjust number of parameters
8437 in prototype.
8438
8439 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
8440 if HELP is a function, call it with OBJECT and POS as parameters
8441 to get the help to display.
8442 (gen_help_event, kbd_buffer_store_help_event): New functions.
8443 (kbd_buffer_get_event): Construct the Lisp help-event differently.
8444 (read_char): Call show_help_echo with new parameters.
8445
8446 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
8447 Add prototypes.
8448
8449 * xterm.c (help_echo_object, help_echo_pos): New variables.
8450 (note_mode_line_highlight): Store additional information about the
8451 help-echo in help_echo_object and help_echo_pos. Check both
8452 `local-map' and `keymap' properties for changing the cursor
8453 (note_mouse_highlight): Store additional information about the
8454 help-echo in help_echo_object and help_echo_pos.
8455 (note_tool_bar_highlight): Set help_echo_object to nil and
8456 help_echo_pos to -1.
8457 (XTread_socket): Use gen_help_event instead of filling
8458 input_events manually.
8459 (syms_of_xterm): Staticpro help_echo_object.
8460
8461 * xmenu.c (menu_highlight_callback): Use
8462 kbd_buffer_store_help_event instead of setting up and input_event
8463 structure manually.
8464
8465 * xdisp.c (eval_form): GCPRO argument sexpr.
8466 (call_function): New function.
8467 (handle_single_display_prop): Use call_function and FUNCTIONP
8468 instead of checking whether if font_height is a symbol and
8469 using eval_form.
8470
8471 * eval.c (internal_condition_case_2): New function.
8472
8473 * lisp.h (FUNCTIONP): New macro.
8474 (internal_condition_case_2, call_function): Add prototypes.
8475
8476 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
8477 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
8478 Always set `arg' member of input_events.
8479 (construct_menu_click): Unused function removed.
8480
8481 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
8482
8483 * w32term.c (construct_mouse_click, construct_mouse_wheel)
8484 (construct_drag_n_drop, x_scroll_bar_handle_click)
8485 (w32_read_socket): Always set `arg' member of input_events.
8486
8487 * keyboard.c (show_help_echo): Use eval_form. Add comment.
8488
8489 * lisp.h (eval_form): Add prototype.
8490
8491 * xdisp.c (eval_form): Make it externally visible.
8492
8493 2000-07-13 Gerd Moellmann <gerd@gnu.org>
8494
8495 * xterm.c (x_handle_tool_bar_click): Store the frame in the
8496 frame_or_window slot of TOOL_BAR_EVENT input events instead of
8497 consing. For prefix events, store the frame in the `arg' slot of
8498 the event, otherwise store the key there.
8499 (XTread_socket): Instead of consing, use the frame_or_window slot
8500 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
8501
8502 * xmenu.c (menu_highlight_callback): Store help string in the
8503 `arg' member of the input event; don't cons.
8504 (menubar_selection_callback): Use the `arg' slot of input events
8505 to queue additional information, instead of consing.
8506
8507 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
8508
8509 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
8510 TOOL_BAR_EVENTs.
8511 (w32_read_socket): Adapt to changes in HELP_EVENTs.
8512
8513 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
8514 input events to queue additional information, instead of consing.
8515
8516 * keyboard.c (kbd_buffer_gcpro): Renamed from
8517 kbd_buffer_frame_or_window. Now used for all Lisp objects
8518 referenced from the input queue.
8519 (kbd_buffer_store_event): Always use structure assignment for
8520 copying input events. Record all Lisp objects referenced from
8521 events in kbd_buffer_gcpro.
8522 (kbd_buffer_get_event): Construct Lisp `help-echo' events
8523 differently from input events. Test for prefix menu_bar_events
8524 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
8525 event in kbd_buffer_gcpro to nil.
8526 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
8527 frame_or_window is equal to its arg member as prefix events.
8528 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
8529 used by an input event to nil.
8530 (init_keyboard): Use two times the size of the input queue
8531 for kbd_buffer_gcpro.
8532 (syms_of_keyboard): Likewise.
8533
8534 * emacs.c (handle_USR2_signal, handle_USR1_signal):
8535 Use USER_SIGNAL_EVENT.
8536
8537 * termhooks.h (struct input_event): Add member `arg'.
8538 (MENU_BAR_EVENT): Renamed from menu_bar_event.
8539 (USER_SIGNAL_EVENT): Renamed from user_signal.
8540
8541 * xfaces.c (ASET): Remove definition.
8542
8543 * lisp.h (AREF, ASET, ASIZE): New macros.
8544
8545 * fontset.c (AREF, ASIZE): Remove definitions.
8546
8547 * fns.c (AREF): Remove definition.
8548
8549 * composite.c (AREF): Remove definition.
8550
8551 2000-07-12 Gerd Moellmann <gerd@gnu.org>
8552
8553 * dispnew.c (redraw_overlapped_rows): Add missing local.
8554 (scrolling_window): Remove debug code.
8555
8556 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
8557 Before scrolling, turn off a mouse-highlight in the window
8558 being scrolled.
8559
8560 * xterm.c (x_update_window_end): Add parameter
8561 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
8562 redisplay in XTframe_up_to_date.
8563 (x_clear_mouse_face): New function.
8564 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
8565
8566 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
8567 current glyph row.
8568 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
8569 it when any row is written to that contains glyphs highlighted in
8570 mouse-face.
8571 (update_window): Call the window update end hook with new
8572 parameter MOUSE_FACE_OVERWRITTEN_P.
8573 (direct_output_for_insert): Give up if row contains mouse-face.
8574
8575 * dispextern.h (struct redisplay_interface): Add parameter
8576 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
8577 (clear_mouse_face): New function pointer member.
8578
8579 2000-07-11 Stefan Monnier <monnier@cs.yale.edu>
8580
8581 * syntax.c (back_comment): Use one switch rather than a few `if's.
8582 Obey open_paren_in_column_0_is_defun_start.
8583 When reverting to the `slow' method, try to nicely handle the case
8584 of nested comments by checking that the comment-starter we found
8585 does indeed match the comment-ender.
8586 (scan_sexps_forward, scan_sexps_forward):
8587 Ignore excessive opening parenthesis rather than throwing an error.
8588
8589 2000-07-11 Gerd Moellmann <gerd@gnu.org>
8590
8591 * doc.c (Fsubstitute_command_keys): Handle case that a GC
8592 in Fwhere_is_internal or get_keymap_1 relocates string contents.
8593
8594 * dispnew.c (direct_output_forward_char): Give up if currently
8595 displaying a message instead of the minibuffer contents.
8596
8597 * xterm.c (x_update_window_begin): No need to turn off the mouse
8598 highlight here.
8599 (show_mouse_face): Set the mouse_face_p flag of glyph rows
8600 depending on whether they contain glyphs highlighted in mouse-face.
8601
8602 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
8603 compare the mouse_face_p flags of both rows.
8604
8605 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
8606
8607 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
8608
8609 * keyboard.c (show_help_echo): Accept additional parameter
8610 ok_to_overwrite_keystroke_echo.
8611 (read_char): Call show_help_echo with a zero
8612 ok_to_overwrite_keystroke_echo argument.
8613 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
8614 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
8615 ok_to_overwrite_keystroke_echo argument.
8616 * w32menu.c (w32_menu_display_help): Call show_help_echo with
8617 non-zero ok_to_overwrite_keystroke_echo argument.
8618
8619 2000-07-10 Gerd Moellmann <gerd@gnu.org>
8620
8621 * xdisp.c (try_window_id): If changes are all below what is
8622 displayed in the window, and point is in the window, we still
8623 might have to find point on the display.
8624
8625 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
8626 glyphs instead of a single one.
8627 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
8628 with new argument list.
8629 (x_set_glyph_string_gc): Make sure the face's GC is valid.
8630
8631 * keymap.c (get_keymap_1): Add comment that this function can GC.
8632 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
8633 comment that functions can GC.
8634 (Fset_keymap_parent): GCPRO arg KEYMAP.
8635
8636 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
8637
8638 * msdos.c (XMenuActivate): After exiting the menu, restore the
8639 echo area message and erase it.
8640
8641 2000-07-10 Kenichi Handa <handa@etl.go.jp>
8642
8643 * fontset.c (Ffontset_info): Make the return value more compatible
8644 with that of Emacs 20.
8645
8646 2000-07-07 Gerd Moellmann <gerd@gnu.org>
8647
8648 * eval.c (Fsignal): Handle case that backtrace_list is null.
8649
8650 2000-07-07 Kenichi Handa <handa@etl.go.jp>
8651
8652 * ccl.c (Fccl_execute): Typo fixed.
8653
8654 2000-07-06 Gerd Moellmann <gerd@gnu.org>
8655
8656 * window.c (window_loop): Add missing gcpro1 local variable.
8657
8658 * window.c (Fwindow_list): Reverse list at the end.
8659 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
8660 means allow windows on OWINDOW's frame, only.
8661 (window_loop): Simplified; use Fwindow_list.
8662
8663 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
8664
8665 2000-07-05 Gerd Moellmann <gerd@gnu.org>
8666
8667 * xterm.c (XTread_socket): Increment handling_signal at the start,
8668 decrement it at the end.
8669
8670 * eval.c (handling_signal): New variable.
8671 (Fsignal): Abort if handling_signal is non-zero.
8672
8673 * lisp.h (handling_signal): External declaration.
8674
8675 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
8676
8677 2000-07-05 Ken Raeburn <raeburn@gnu.org>
8678
8679 Sound support for NetBSD through "Linux emulation" support:
8680 * config.in (HAVE_SOUNDCARD_H): Undef.
8681 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
8682 * Makefile.in (LIBSOUND): New variable.
8683 (LIBES): Include it.
8684 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
8685 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
8686 (vox_open): Use DEFAULT_SOUND_DEVICE.
8687 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
8688
8689 2000-07-05 Gerd Moellmann <gerd@gnu.org>
8690
8691 * print.c (print_error_message): If Vsignaling_function is set,
8692 show it in *Messages*.
8693
8694 * lisp.h (Vsignaling_function): External declaration.
8695
8696 * eval.c (Vsignaling_function): New variable.
8697 (Fsignal): Compute it.
8698 (syms_of_eval): Staticpro it.
8699
8700 2000-07-05 Dave Love <fx@gnu.org>
8701
8702 * syswait.h: Use the autoconf recommended approach. Old code
8703 #if'd out in case we need to revert.
8704
8705 * config.in (HAVE_SYS_WAIT_H): Added.
8706
8707 2000-07-05 Andrew Innes <andrewi@gnu.org>
8708
8709 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
8710 when non-NULL instead of __morecore, to take account of buffer
8711 memory. This also solves a problem with spurious memory warnings
8712 on Windows.
8713
8714 * ralloc.c: Make real_morecore non-static.
8715
8716 * eval.c (internal_condition_case): Comment out abort if
8717 interrupt_input_blocked is not zero.
8718
8719 * makefile.nt: Add support for `bootstrap' and related targets.
8720 Include minimal debug info in emacs.exe in release build.
8721 Remove all dependencies on lisp.h, and fixup some others.
8722
8723 * w32.c (init_environment): Install code from 20.7 for providing
8724 default values for environment variables, based on the
8725 executable's own location.
8726 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
8727 (sys_socket): Install socket inheritance bug fix from 20.7.
8728
8729 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
8730 here via blockinput.h).
8731
8732 2000-07-05 Stefan Monnier <monnier@cs.yale.edu>
8733
8734 * w32menu.c (w32_menu_display_help):
8735 * xmenu.c (menu_help_callback): Use show_help_echo.
8736
8737 * keyboard.h (show_help_echo): Declare.
8738
8739 * keyboard.c (show_help_echo): New function, extracted from read_char.
8740 Feval its `msg' argument if it's a cons cell.
8741 (read_char): Use it.
8742 (follow_key): Pass `autoload' to get_keyelt.
8743
8744 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
8745 (note_tool_bar_highlight, XTread_socket):
8746 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
8747 (dos_rawgetc):
8748 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
8749 (note_tool_bar_highlight, w32_read_socket):
8750 Do not gratuitously ignore non-string `help-echo' properties.
8751
8752 2000-07-05 Gerd Moellmann <gerd@gnu.org>
8753
8754 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
8755
8756 * window.c (delete_all_subwindows): Reset Vwindow_list.
8757
8758 * xterm.c (x_append_glyph, x_append_composite_glyph)
8759 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
8760 changes in struct glyph starting 1999-12-27. Some bit-fields of
8761 struct glyph were not set, which made glyphs unequal when compared
8762 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
8763 effects were the result. This also depended on the contents of
8764 memory returned by xmalloc. If flickering happens again, activate
8765 the code in clear_glyph_row that's in #if 0. If the flickering is
8766 gone with that, chances are that it is caused by something similar.
8767
8768 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
8769
8770 * dispextern.h: Add some comments.
8771
8772 * window.c (add_window_to_list): Add parameter LIST.
8773 (window_list): Order list so that, for each frame, windows are
8774 in canonical order, and so that frames appear in the list in
8775 the order given by Vframe_list.
8776 (next_window): Reverse the handling of NEXT_P.
8777
8778 2000-07-04 Gerd Moellmann <gerd@gnu.org>
8779
8780 * window.c (Vwindow_list): New variable.
8781 (make_window, delete_window): Set Vwindow_list to nil.
8782 (check_window_containing): New function.
8783 (window_from_coordinates): Rewritten.
8784 (add_window_to_list, window_list, candidate_window_p)
8785 (decode_next_window_args, next_window): New functions.
8786 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
8787 (Fwindow_list): New function.
8788 (Fother_window): Cleaned up.
8789 (foreach_window): Add a longer "variable argument list". Let
8790 callback function return 0 to indicate that cycling over windows
8791 should stop.
8792 (foreach_window_1): Likewise.
8793 (freeze_window_start): Return int.
8794 (init_window): New function.
8795 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
8796
8797 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
8798 input_event with bzero.
8799 (main): Call init_window.
8800
8801 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
8802 a menu filter.
8803
8804 2000-07-04 Kenichi Handa <handa@etl.go.jp>
8805
8806 * composite.h (make_composition_value_copy): Extern it.
8807
8808 * composite.c (make_composition_value_copy): New function.
8809
8810 * editfns.c (Fformat): While copying text properties, make each
8811 composition property value a copy.
8812
8813 * fns.c (concat): While copying text properties, make each
8814 composition property value a copy.
8815
8816 2000-07-03 Gerd Moellmann <gerd@gnu.org>
8817
8818 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
8819
8820 * fns.c (sweep_weak_table): Mark only objects that are not
8821 marked already.
8822
8823 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
8824 include those frames as candidates which have their focus
8825 redirected to the minibuffer frame.
8826
8827 2000-07-03 Stefan Monnier <monnier@cs.yale.edu>
8828
8829 * fns.c (Fputhash): Return `value' rather than nil.
8830
8831 2000-06-30 Gerd Moellmann <gerd@gnu.org>
8832
8833 * frame.c (next_frame): Don't check focus redirection in case
8834 MINIBUF is a window. Doing so excludes frames using MINIBUF
8835 unless their focus is redirected, which contradicts the
8836 specification of next-frame, and leads to infinite loops in
8837 certain situations when cycling through windows with next-window.
8838
8839 2000-06-30 Kenichi Handa <handa@etl.go.jp>
8840
8841 * coding.c (code_convert_region): Even if the length of text is
8842 zero, try to convert it if coding->type is coding_type_ccl.
8843 (decode_coding_string, encode_coding_string): Likewise.
8844
8845 2000-06-28 Gerd Moellmann <gerd@gnu.org>
8846
8847 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
8848 the display if windows_or_buffers_changed.
8849
8850 * dispnew.c (struct row_entry): New structure.
8851 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
8852 (row_table_size, old_lines, new_lines, old_lines_size)
8853 (new_lines_size, run_pool, runs_size, runs): New variables.
8854 (add_row_entry): New function.
8855 (scrolling_window): Use data structures allocated with xmalloc and
8856 held in global variables, instead of allocating them with alloca and
8857 holding them in local variables. Use a larger hash table whose
8858 size depends on glyph matrix sizes. Don't use bzero to clear the
8859 hash table; instead, clear used slots only.
8860
8861 * fns.c (next_almost_prime): Make it externally visible.
8862
8863 * lisp.h (next_almost_prime): Add prototype.
8864
8865 * s/isc4-0.h (sigunblock): Define.
8866
8867 * s/sco5.h (sigunblock): Define.
8868
8869 2000-06-27 Dave Love <fx@gnu.org>
8870
8871 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
8872 (moved to osf5-0.h).
8873 [!NOT_C_CODE]: Protect string.h stuff.
8874
8875 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
8876 (sys_siglist, NSIG): Definitions moved here from osf1.h.
8877
8878 2000-06-27 Gerd Moellmann <gerd@gnu.org>
8879
8880 * xdisp.c (resize_mini_window): Subtract the extra line spacing
8881 below the last line from the needed window height.
8882
8883 2000-06-26 Stefan Monnier <monnier@cs.yale.edu>
8884
8885 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
8886 (Fwidget_get): Use it.
8887 (syms_of_fns): Defsubr it.
8888
8889 2000-06-26 Gerd Moellmann <gerd@gnu.org>
8890
8891 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
8892 display info for XIM.
8893 (xim_open_dpy): Likewise.
8894 (xim_close_dpy): Don't free the display info's XIM.
8895
8896 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
8897
8898 * config.in (USE_XIM): New define.
8899
8900 * keymap.c (get_keyelt): For menu-items containing a `:filter
8901 FILTER', apply FILTER to the menu-item's definition to get the
8902 real definition to use.
8903
8904 * lisp.h (QCfilter): External declaration.
8905
8906 * xfns.c (Fimage_size): New function.
8907 (syms_of_xfns): Defsubr it.
8908
8909 2000-06-26 Andreas Schwab <schwab@suse.de>
8910
8911 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
8912 Fstring_as_unibyte.
8913
8914 2000-06-25 Dave Love <fx@gnu.org>
8915
8916 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
8917
8918 * Makefile.in (blockinput.h): Depend on atimer.h.
8919 (atimer.h): Depend on systime.h.
8920
8921 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
8922
8923 * atimer.h: Protect against multiple inclusion. Include systime.h.
8924
8925 * lisp.h (swap_in_global_binding): Declare.
8926
8927 2000-06-24 Ken Raeburn <raeburn@gnu.org>
8928
8929 * process.c (Fopen_network_stream): Turn off atimers for duration
8930 of call to connect. (Patch from Gerd.)
8931
8932 2000-06-23 Dave Love <fx@gnu.org>
8933
8934 * ralloc.c: Maybe include unistd.h
8935
8936 * emacs.c (setgrp): Undefine before defining.
8937 (malloc_warning, set_time_zone_rule, index): Prototype.
8938
8939 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
8940 HAVE_STRUCT_TIMEZONE.
8941
8942 * s/osf1.h: Move string.h hack here from alpha.h and make it
8943 conditional.
8944 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
8945 _XOPEN_SOURCE.
8946 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
8947 (SOCKLEN_TYPE): Don't define.
8948
8949 * m/alpha.h: Remove string.h hack.
8950
8951 * s/osf5-0.h: New file.
8952
8953 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
8954 include time.h, done by systime.h.
8955 [__FreeBSD__]: Remove redundant includes.
8956
8957 * callproc.c (setpgrp): Undefine before defining.
8958 (delete_temp_file): Return Qnil to avoid warning.
8959
8960 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
8961
8962 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
8963 HAVE_X_WINDOWS.
8964
8965 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
8966
8967 * composite.h (compose_text): Declare.
8968
8969 * xterm.c: Don't include sys/types.h unconditionally. Don't
8970 protect its inclusion with !USG (following xmenu.c).
8971
8972 2000-06-23 Gerd Moellmann <gerd@gnu.org>
8973
8974 * xfns.c (x_create_tip_frame): Initialize frame's colors like
8975 in x_create_frame.
8976
8977 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
8978
8979 * coding.c (decode_eol_post_ccl): Special handling for undecided
8980 and inconsistent EOL types.
8981
8982 2000-06-22 Gerd Moellmann <gerd@gnu.org>
8983
8984 * xrdb.c (x_load_resources): Add default resource for scroll bar's
8985 trough color and main window's background color.
8986
8987 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
8988
8989 * xterm.h (Xt_app_con): External declaration.
8990
8991 * widget.c (EmacsFrameRealize): Fix typo.
8992
8993 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
8994
8995 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
8996 (handle_invisible_prop): Record the start of invisible text in
8997 it->add_overlay_start.
8998 (struct overlay_entry): Add member `overlay'.
8999 (handle_overlay_change): Simplify.
9000 (next_overlay_string): After having processed overlay strings at the
9001 end of the buffer, record that fact in
9002 it->overlay_strings_at_end_processed_p.
9003 (compare_overlay_entries): If before- and after-strings come
9004 from the same overlay, let before-strings come first.
9005 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
9006 (load_overlay_strings): Take it->add_overlay_start into account
9007 when adding overlay strings.
9008
9009 * dispextern.h (struct it): Add member add_overlay_start.
9010
9011 2000-06-22 Dave Love <fx@gnu.org>
9012
9013 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
9014
9015 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
9016
9017 2000-06-22 Kenichi Handa <handa@etl.go.jp>
9018
9019 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
9020 is greater than 0.
9021
9022 2000-06-21 Dave Love <fx@gnu.org>
9023
9024 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9025
9026 2000-06-21 Stefan Monnier <monnier@cs.yale.edu>
9027
9028 * syntax.c (back_comment): Simplify string-parity counting (with
9029 the added benefit of handling multiple string-styles as long as
9030 they are not intertwined).
9031 Jump to the slow code as soon as a comment starter is found in
9032 a "string_lossage" position. Fixes the case: " /* " /* " */.
9033
9034 2000-06-21 Dave Love <fx@gnu.org>
9035
9036 * Makefile.in: Use GETLOADAVG_LIBS.
9037
9038 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
9039 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
9040
9041 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
9042
9043 * syntax.c (describe_syntax): Recognize the `n'estable bit.
9044 (Fforward_comment, scan_lists):
9045 Check the comstyle of single-char comment-starters.
9046 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
9047 we're just at the beginning of the comment (f.ex with (*) ... (*)).
9048 Check the comstyle of single-char comment-starters.
9049 Clarify control-flow around the Scomment case.
9050
9051 2000-06-20 Dave Love <fx@gnu.org>
9052
9053 * fns.c (make_hash_table, maybe_resize_hash_table):
9054 Cast arg of next_almost_prime.
9055
9056 * tparam.c [emacs]: Include lisp.h.
9057
9058 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
9059 and unistd.h.
9060
9061 2000-06-20 Gerd Moellmann <gerd@gnu.org>
9062
9063 * keyboard.c (adjust_point_for_property): Check if display
9064 property should be treated as intangible by looking at its value.
9065
9066 * xdisp.c (single_display_prop_intangible_p)
9067 (display_prop_intangible_p): New functions.
9068
9069 * dispextern.h (display_prop_intangible_p): Add prototype.
9070
9071 * xdisp.c (dump_glyph_row): Show type of glyph->object.
9072
9073 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
9074 argument to sigprocmask.
9075
9076 * s/sco5.h (sigblock): Redefined to pass a pointer as second
9077 argument to sigprocmask.
9078
9079 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
9080 sigprocmask_set, and pass a pointer to it to sigprocmask.
9081
9082 * sysdep.c (sigprocmask_set): New variable.
9083
9084 * fileio.c (make_temp_name): Don't use `%s' in string passed to
9085 report_file_error.
9086
9087 2000-06-20 Sam Steingold <sds@gnu.org>
9088
9089 * xrdb.c: Don't declare xmalloc, xrealloc.
9090
9091 2000-06-20 Stefan Monnier <monnier@cs.yale.edu>
9092
9093 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
9094 (re_comp): Cast gettext return value to avoid complaints when
9095 !HAVE_LIBINTL.
9096
9097 2000-06-20 Dave Love <fx@gnu.org>
9098
9099 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
9100
9101 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
9102
9103 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
9104
9105 * m/alpha.h: Don't declare xmalloc, xrealloc.
9106
9107 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
9108
9109 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
9110
9111 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
9112
9113 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
9114 HAVE_GETWD.
9115
9116 * keyboard.h (poll_for_input_1): Declare.
9117
9118 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
9119
9120 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
9121
9122 * doprnt.c: Don't declare xmalloc, xrealloc.
9123
9124 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
9125 (getenv, ctime, getwd): Removed.
9126 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
9127
9128 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
9129 x_set_tool_bar_lines.
9130
9131 * config.in: Add HAVE_GETWD. Move some definitions above
9132 machine/system includes.
9133
9134 2000-06-20 Kenichi Handa <handa@etl.go.jp>
9135
9136 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
9137
9138 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
9139 contain information about ENCODING.
9140
9141 * fontset.c (FONTSET_ASCII): Use the first element of char table
9142 for an ASCII font, not defalt slot.
9143 (fontset_ref_via_base): If FONTSET doesn't contain information for
9144 C, try the default fontset.
9145 (make_fontset): Don't copy the default fontset.
9146 (fontset_font_pattern): Likewise.
9147 (accumulate_font_info): If ELT is nil, use the corresponding
9148 element in the default fontset.
9149
9150 2000-06-19 Dave Love <fx@gnu.org>
9151
9152 * syntax.c (Fparse_partial_sexp): Doc fix.
9153
9154 * regex.h: Test PROTOTYPES as well as __STDC__.
9155
9156 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
9157 errno, strerror. Put text after #endif in comment.
9158
9159 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
9160
9161 * xterm.c (x_frame_of_widget): Likewise.
9162
9163 2000-06-19 Gerd Moellmann <gerd@gnu.org>
9164
9165 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
9166 to Vfundamental_mode_abbrev_table.
9167
9168 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
9169 bogus objects are marked. This slows down GC by ~80 percent, but
9170 it might be worth trying when debugging GC-related problems.
9171 This feature requires conservative stack marking to be enabled.
9172
9173 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
9174 returns XLookupChars, reset `modifiers' to zero.
9175
9176 2000-06-19 Dave Love <fx@gnu.org>
9177
9178 * mktime.c: Unprotoized.
9179
9180 2000-06-19 Richard Stallman <rms@gnu.org>
9181
9182 * data.c (set_internal): If variable is frame-local,
9183 store the new value immediately into the frame parameter alist.
9184
9185 2000-06-19 Ken Raeburn <raeburn@gnu.org>
9186
9187 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
9188 in the custom handler pointer.
9189
9190 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
9191 value, or checks for CHAR_META can fail when Lisp_Object is a
9192 union type.
9193 * keymap.c (get_keyelt): Likewise.
9194
9195 2000-06-19 Kenichi Handa <handa@etl.go.jp>
9196
9197 * ccl.h (struct ccl_program): New member eol_type.
9198 (struct ccl_spec): New member cr_carryover.
9199
9200 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
9201 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
9202
9203 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
9204 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
9205 (decode_eol_post_ccl): New function.
9206 (decode_coding): Don't detect EOL format here for CCL based coding
9207 systems.
9208 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
9209 decode_eol_post_ccl after running the CCL program.
9210 (code_convert_region): Don't detect EOL format here for CCL based
9211 coding systems.
9212 (decode_coding_string): Likewise.
9213
9214 2000-06-18 Ken Raeburn <raeburn@gnu.org>
9215
9216 * charset.c (update_charset_table): Use XINT on "iso_final_char"
9217 when treating it as an integer.
9218
9219 * coding.h (encode_coding_string): Declare.
9220
9221 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
9222 it as an integer.
9223
9224 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
9225 "xkeymap" to avoid shadowing the "enum map_type" value that needs
9226 to be passed to get_local_map.
9227
9228 * sound.c (Fplay_sound): Don't call make_number on
9229 Frun_hook_with_args count argument.
9230
9231 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
9232 for lisp objects in X event structure data field, when lisp
9233 objects are represented with unions.
9234 (x_scroll_bar_to_input_event): Ditto.
9235
9236 2000-06-16 Ken Raeburn <raeburn@gnu.org>
9237
9238 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
9239 termination of string. Fix sense of test whether
9240 Vline_number_display_limit is an integer.
9241
9242 2000-06-16 Gerd Moellmann <gerd@gnu.org>
9243
9244 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
9245 only if HAVE_X_WINDOWS.
9246
9247 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
9248 of titles.
9249
9250 * dispnew.c (update_frame_1): Handle case that cursor vpos is
9251 out of bounds.
9252
9253 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
9254
9255 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
9256 of its headers.
9257
9258 2000-06-15 Kenichi Handa <handa@etl.go.jp>
9259
9260 * coding.c (decode_coding_emacs_mule): Always set src_base at the
9261 start of the while loop.
9262
9263 2000-06-15 Gerd Moellmann <gerd@gnu.org>
9264
9265 * atimer.c (alarm_signal_handler): Add forward declaration.
9266
9267 * data.c (set_internal): Remove debug code.
9268
9269 2000-06-14 Gerd Moellmann <gerd@gnu.org>
9270
9271 * Makefile.in (bootstrap-temacs): Add `-I../src'.
9272
9273 * unexec.c (toplevel) [COFF]: Include coff.h.
9274
9275 * s/lynxos.h: New file.
9276
9277 * keymap.c (Fsingle_key_description): Enclose function key and
9278 event symbol names in angle brackets.
9279
9280 * xdisp.c (setup_echo_area_for_printing): Call
9281 message_log_maybe_newline if message_buf_print is not set.
9282
9283 * print.c (printchar, strout): Don't check message_buf_print
9284 before calling setup_echo_area_for_printing because that
9285 function does something useful even when message_buf_print is
9286 already set.
9287
9288 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
9289 New variables.
9290 (ensure_echo_area_buffers): Initialize echo buffer's
9291 truncate lines setting to nil.
9292 (with_echo_area_buffer): Don't set the echo buffer's truncate
9293 lines setting here.
9294 (set_message_1): Set it here instead, based on the value
9295 of message_truncate_lines.
9296 (resize_mini_window): Handle case that lines are truncated.
9297 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
9298 DEFVAR_BOOL message-truncate-lines.
9299
9300 * keyboard.c (read_char): Bind message-truncate-lines to t
9301 while displaying a help-echo.
9302
9303 * lisp.h (Qmessage_truncate_lines): External declaration.
9304
9305 2000-06-13 Gerd Moellmann <gerd@gnu.org>
9306
9307 * xdisp.c (Vline_number_display_limit): Renamed from
9308 line_number_display_limit.
9309 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
9310 Extend documentation string. Initialize
9311 Vline_number_display_limit to nil meaning no limit.
9312 (decode_mode_spec): Use Vline_number_display_limit with its new
9313 meaning.
9314
9315 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
9316
9317 2000-06-13 Richard Stallman <rms@gnu.org>
9318
9319 * frame.c (Fmodify_frame_parameters): Doc fix.
9320
9321 * xfns.c (x_set_frame_parameters): Comment fix.
9322
9323 * frame.c (store_frame_param): Call swap_in_global_binding if the
9324 variable's current binding was chosen based on this frame.
9325
9326 * data.c (swap_in_global_binding): New function.
9327
9328 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
9329
9330 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
9331 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
9332
9333 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
9334
9335 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
9336
9337 2000-06-12 Jason Rumney <jasonr@gnu.org>
9338
9339 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
9340
9341 * w32.h (EMACS_W32_H): Renamed from _NT_H_
9342
9343 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
9344
9345 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
9346
9347 2000-06-12 Gerd Moellmann <gerd@gnu.org>
9348
9349 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
9350 (syms_of_xfaces): Defsubr Sdump_colors.
9351 (x_free_colors): Don't treat b&w specially on default visual.
9352 (x_free_dpy_colors): New function.
9353 (free_face_colors): Don't check visual class; it's done
9354 in x_free_colors.
9355
9356 * xterm.c (x_frame_of_widget): New function.
9357 (x_alloc_nearest_color_for_widget): Use it.
9358 (x_copy_dpy_color): New function.
9359 (x_destroy_window): Free various colors.
9360
9361 2000-06-12 Kenichi Handa <handa@etl.go.jp>
9362
9363 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
9364
9365 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
9366
9367 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
9368
9369 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
9370
9371 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
9372
9373 2000-06-11 Dave Love <fx@gnu.org>
9374
9375 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
9376
9377 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
9378
9379 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
9380
9381 2000-06-11 Gerd Moellmann <gerd@gnu.org>
9382
9383 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
9384 to `XEvent *'.
9385
9386 2000-06-10 Kenichi Handa <handa@etl.go.jp>
9387
9388 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
9389 (regex_compile): Fix the code for handling the case of single byte
9390 char and multibyte char being mixed in a range within [...].
9391
9392 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
9393 and dst_multibyte members of coding.
9394
9395 * charset.c (update_charset_table): Update the table
9396 bytes_by_char_head.
9397 (init_charset_once): Initialize elements of bytes_by_char_head to
9398 1 except for leading codes for private charases.
9399
9400 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
9401 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
9402
9403 2000-06-09 Ken Raeburn <raeburn@gnu.org>
9404
9405 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
9406 access the data it doesn't point to.
9407
9408 2000-06-08 Gerd Moellmann <gerd@gnu.org>
9409
9410 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
9411 will be translated to a switch-frame event when reading the
9412 event queue. This is necessary because Emacs otherwise won't
9413 perform a switch-frame to a new frame until some other event, for
9414 example a keystroke event, forces it to do so. This has various
9415 effects, one visible being that the cursor of a frame created with
9416 C-x 5 2 or switched to with a window manager key binding like
9417 A-TAB stays hollow because selected_window isn't on the newly
9418 focused frame until the switch-frame is performed.
9419
9420 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
9421 generating a switch-frame event if necessary.
9422
9423 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
9424
9425 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
9426 it's an integer.
9427
9428 2000-06-08 Kenichi Handa <handa@etl.go.jp>
9429
9430 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
9431
9432 2000-06-07 Gerd Moellmann <gerd@gnu.org>
9433
9434 * window.c (displayed_window_lines): Take empty lines at
9435 the bottom of a window into account.
9436
9437 * window.c (displayed_window_lines): New function.
9438 (Fmove_to_window_line): Use displayed_window_lines to determine
9439 the number of lines to move, instead of using the window's height.
9440
9441 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
9442 to stop reading, even if the form read sets point to a different
9443 value when evaluated.
9444
9445 * xdisp.c (display_line): Fix code deciding in which line to
9446 put the cursor.
9447
9448 2000-06-07 Kenichi Handa <handa@etl.go.jp>
9449
9450 * fileio.c (e_write): Free composition data if stored in
9451 coding->cmp_data.
9452
9453 2000-06-06 Gerd Moellmann <gerd@gnu.org>
9454
9455 * xdisp.c (display_line): Set row's and iterator's
9456 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
9457 Set cursor even if row ends in the middle of a character.
9458 (dump_glyph_row): Print values of new flags.
9459 (redisplay_window) <cursor movement in unchanged window>: When
9460 point has been moved forward, and PT is at the end of the cursor
9461 row, don't place the cursor in the next row if the cursor row ends
9462 in the middle of a character or at ZV.
9463
9464 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
9465 (struct glyph_row): Add starts_in_middle_of_char_p and
9466 ends_in_middle_of_char_p.
9467 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
9468 ends_in_middle_of_char_p flag.
9469 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
9470
9471 * term.c (append_glyph): Revert change of 2000-06-06.
9472
9473 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
9474 padding glyph not fitting on line as whole character not
9475 fitting on line.
9476
9477 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
9478 this isn't true for images with `:ascent 100'.
9479
9480 2000-06-06 Kenichi Handa <handa@etl.go.jp>
9481
9482 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
9483 as modified if it is originally unmodified.
9484
9485 * term.c (encode_terminal_code): Change the way to check if
9486 terminal coding does any conversion.
9487 (append_glyph): Set glyph->pixel_width correctly.
9488
9489 * xdisp.c (display_line): While checking line continuation, pay
9490 attention to a padding glyph.
9491
9492 2000-06-05 Gerd Moellmann <gerd@gnu.org>
9493
9494 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
9495
9496 2000-06-05 Dave Love <fx@gnu.org>
9497
9498 * xdisp.c: Include fontset.h.
9499
9500 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
9501
9502 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
9503
9504 * dispnew.c: Conditionally include term.h.
9505
9506 * coding.h: Declare code_convert_string_norecord.
9507
9508 * frame.h (struct frame): Use volatile unconditionally.
9509
9510 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
9511
9512 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
9513
9514 * systime.h: Protect against multiple inclusion.
9515 (timezone) [USG5_4]: Define as time_t.
9516
9517 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
9518 (Foptimize_char_table, make_temp_name): Declare.
9519
9520 * Makefile.in (xdisp.o): Depend on fontset.h.
9521
9522 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
9523
9524 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
9525 (Foptimize_char_table, make_temp_name): Declare.
9526
9527 * s/irix4-0.h:
9528 * s/irix5-0.h:
9529 * s/netbsd.h: Don't define autoconfiscated MATHERR.
9530
9531 2000-06-02 Dave Love <fx@gnu.org>
9532
9533 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
9534
9535 2000-06-02 Gerd Moellmann <gerd@gnu.org>
9536
9537 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
9538 result face, set flags in that face indicating that colors may not
9539 be freed.
9540
9541 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
9542 glyph, use the ASCII NUL character to determine the face.
9543
9544 2000-06-02 Dave Love <fx@gnu.org>
9545
9546 * sysdep.c: Conditionally include stdlib.h, unistd.h.
9547 (VFORK_RETURN_TYPE): Remove.
9548
9549 * config.in: Add NO_MATHERR.
9550
9551 2000-06-01 Dave Love <fx@gnu.org>
9552
9553 * cmds.c (internal_self_insert): Don't check
9554 Vbefore_change_function, Vafter_change_function.
9555
9556 * insdel.c (signal_before_change, signal_after_change): Likewise.
9557
9558 * buffer.c (Vbefore_change_function, Vafter_change_function):
9559 Variables and their initializations deleted.
9560
9561 * callint.c (Fcall_interactively): Doc fix.
9562
9563 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
9564
9565 2000-05-31 Dave Love <fx@gnu.org>
9566
9567 * textprop.c: Revert last change -- duplicated.
9568
9569 2000-05-31 Gerd Moellmann <gerd@gnu.org>
9570
9571 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
9572 in #if 0.
9573
9574 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
9575
9576 2000-05-31 Jason Rumney <jasonr@gnu.org>
9577
9578 * search.c (Fre_search_forward, Fre_search_backward)
9579 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
9580
9581 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
9582
9583 2000-05-30 Jason Rumney <jasonr@gnu.org>
9584
9585 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
9586 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
9587
9588 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
9589
9590 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
9591 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
9592 expand a nil default_filename.
9593
9594 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
9595 pointer to glyph_to_pixel_coords, not a frame.
9596
9597 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
9598 coding.h to dependencies.
9599
9600 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
9601
9602 * w32console.c (glyph_to_pixel_coords): Change first parameter to
9603 window pointer to be consistent with w32term.c and xterm.c.
9604
9605 * w32fns.c: Format and doc changes to bring closer to xfns.c.
9606 (VIETNAMESE_CHARSET): Define if not defined in system headers.
9607 (Qline_spacing, Qcenter): New variables.
9608 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
9609 (x_set_line_spacing): New function.
9610 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
9611 (x_specified_cursor_type): New function.
9612 (x_set_cursor_type): Use it.
9613 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
9614 and icon strings.
9615 (validate_x_resource_name, x_get_resource_string): Measure lengths
9616 of external strings in bytes.
9617 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
9618 GetTextExtentPoint32 with NULL title.
9619 (Fx_create_frame): Initialize Qline_spacing.
9620 (w32_load_system_font): Initialize font->double_byte_p.
9621 (x_to_w32_charset): Use Vw32_charset_info_alist.
9622 (Image, busy cursor, tooltip functions): Merged changes from
9623 xfns.c. Not yet functional on Windows.
9624
9625 * w32gui.h (W32FontStruct): Add double_byte_p member.
9626
9627 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
9628 (emacs_button_translation): Use it.
9629 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
9630 in `mask' to be set.
9631
9632 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
9633 menu strings.
9634
9635 * w32term.c: Format and doc changes to bring closer to xterm.c.
9636 (w32_char_font_type): New enum.
9637 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
9638 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
9639 (w32_encode_char): New function.
9640 (x_encode_char): Removed.
9641 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
9642 x_encode_char and w32_font_is_double_byte.
9643 (x_produce_image_glyph): Use image_ascent.
9644 (x_produce_glyphs): Use new version of w32_per_char_metric and
9645 handle NULL return value. Allow extra line spacing.
9646 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
9647 (w32_get_glyph_overhangs): Remove unicode_p param. Use
9648 w32_font_type member of glyph instead.
9649 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
9650 (fast_find_position): Make sure not to consider rows not visible
9651 in the window.
9652 (w32_read_socket) [WM_MENUSELECT]: Cannot call
9653 w32_menu_display_help with input blocked, as it can abort.
9654 (x_display_and_set_cursor): Choose cursor depending
9655 on buffer-local value of cursor_type.
9656 (x_draw_bar_cursor): Add parameter WIDTH.
9657
9658 * w32term.h (CP_DEFAULT): Define.
9659 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
9660
9661 2000-05-30 Gerd Moellmann <gerd@gnu.org>
9662
9663 * search.c (Fre_search_forward, Fre_search_backward)
9664 (Fposix_search_backward, Fposix_search_forward): Doc fix.
9665
9666 2000-05-30 Kenichi Handa <handa@etl.go.jp>
9667
9668 * coding.c (detect_coding_iso2022): Fix code for checking
9669 CODING_CATEGORY_MASK_ISO_8_2.
9670
9671 2000-05-29 Stefan Monnier <monnier@cs.yale.edu>
9672
9673 * regex.c (PREFETCH_NOLIMIT): New function.
9674 (re_match_2_internal): Use it and adjust the end_match_2 logic.
9675
9676 2000-05-29 Gerd Moellmann <gerd@gnu.org>
9677
9678 * syntax.c (find_defun_start): Move test for
9679 open_paren_in_column_0_is_defun_start outside of the loop.
9680
9681 * xdisp.c (redisplay_window): Really switch buffers when
9682 displaying mode lines, and temporarily set selected_frame to the
9683 frame of the window that's redisplayed.
9684
9685 * xfaces.c (free_realized_faces): Block/unblock input.
9686 (free_realized_multibyte_face): Ditto.
9687
9688 2000-05-29 Dave Love <fx@gnu.org>
9689
9690 * textprop.c (Qkeymap): New variable.
9691 (syms_of_textprop): Intern it.
9692
9693 * keymap.c: Include intervals.h.
9694 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
9695
9696 * Makefile.in (keymap.o): Depend on intervals.h.
9697
9698 * keyboard.c (menu_bar_items, tool_bar_items)
9699 (Fexecute_extended_command): Deal with `keymap' property.
9700 (read_key_sequence): Track map from `keymap' property as well as
9701 `local_map'.
9702
9703 * intervals.c (get_local_map): Extra arg to allow looking for
9704 `keymap' too.
9705
9706 * intervals.h (map_property): New enum.
9707 (get_local_map): Extra arg using it.
9708 (Qkeymap): Declare.
9709
9710 * lisp.h (get_local_map): Don't declare here.
9711
9712 2000-05-29 Kenichi Handa <handa@etl.go.jp>
9713
9714 * Makefile.in (callproc.o): Depend on composite.h.
9715
9716 * callproc.c: Include composite.h.
9717 (Fcall_process): Handle composition correctly.
9718
9719 * coding.h (coding_allocate_composition_data): Extern it.
9720 (coding_restore_composition): Likewise.
9721
9722 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
9723 yet allocated, finish decoding with result
9724 CODING_FINISH_INSUFFICIENT_CMP.
9725 (coding_allocate_composition_data): Make it non-static.
9726 (coding_restore_composition): Likewise.
9727
9728 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
9729
9730 * charset.c (syms_of_charset): Revert last change.
9731
9732 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
9733
9734 * term.c (produce_glyphs): Treat characters from the eight-bit-*
9735 charsets as unibyte, with 1-column screen width. Sent by Kenichi
9736 Handa.
9737
9738 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
9739
9740 * charset.c (syms_of_charset): Set width of character sets
9741 eight-bit-control and eight-bit-graphic to 1 column.
9742
9743 2000-05-26 Gerd Moellmann <gerd@gnu.org>
9744
9745 * config.in (HAVE_SPEED_T): New define.
9746
9747 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
9748 `extern speed_t'.
9749
9750 2000-05-26 Dave Love <fx@gnu.org>
9751
9752 * coding.c (shrink_decoding_region): Initialize eol_conversion.
9753
9754 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
9755 (Fsubr_arity): New function.
9756 (syms_of_data): Install them.
9757
9758 2000-05-26 Kenichi Handa <handa@etl.go.jp>
9759
9760 * charset.c (init_charset_once): Set the table bytes_by_char_head
9761 correctly.
9762
9763 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
9764 the default fontset to what Emacs uses by default.
9765 (check_registry_encoding): This function deleted.
9766 (Fset_fontset_font): Remove the adhoc condition for the default
9767 fontset. Allow cons in FONTNAME.
9768
9769 * fns.c (map_char_table): Ignore char-table entries for
9770 charsets eight-bit-control and eight-bit-graphic.
9771
9772 2000-05-25 Ken Raeburn <raeburn@gnu.org>
9773
9774 * emacs.c (main): Initialize keyboard syms before initializing
9775 window code, so face names are available.
9776
9777 2000-05-25 Stefan Monnier <monnier@cs.yale.edu>
9778
9779 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
9780 of an anchor at the beginning of a shy-group.
9781
9782 2000-05-25 Gerd Moellmann <gerd@gnu.org>
9783
9784 * xdisp.c (handle_invisible_prop): Don't try to skip over
9785 invisible text if end of text is already reached.
9786
9787 2000-05-25 Dave Love <fx@gnu.org>
9788
9789 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
9790
9791 * coding.c (encode_eol): Add null statement after label.
9792
9793 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
9794
9795 * w16select.c (Fw16_set_clipboard_data): Fix the change from
9796 2000-05-20.
9797
9798 2000-05-25 Kenichi Handa <handa@etl.go.jp>
9799
9800 * ccl.c (ccl_driver): Fix previous change.
9801
9802 2000-05-25 Kenichi Handa <handa@etl.go.jp>
9803
9804 * coding.c (run_pre_post_conversion_on_str): Set point to the
9805 beginning of buffer before calling coding->post_read_conversion.
9806 (decode_coding_string): Give correct args to
9807 run_pre_post_conversion_on_str.
9808 (encode_coding_string): Likewise.
9809
9810 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
9811 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
9812 eight-bit-graphic correctly.
9813
9814 2000-05-24 Kenichi HANDA <handa@etl.go.jp>
9815
9816 * fileio.c (Finsert_file_contents): Even if a file is not found,
9817 execute codes for setting up coding system. Call
9818 after-insert-file-functions unconditionally.
9819
9820 2000-05-24 Gerd Moellmann <gerd@gnu.org>
9821
9822 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
9823 BSD_PGRPS are not defined.
9824
9825 2000-05-24 Kenichi Handa <handa@etl.go.jp>
9826
9827 * charset.c (update_charset_table): Accept nil in LONG_NAME and
9828 DESCRIPTION.
9829 (syms_of_charset): Avoid building same strings.
9830
9831 2000-05-23 Gerd Moellmann <gerd@gnu.org>
9832
9833 * lread.c (Fload): Add a comment about the meaning of
9834 Vuser_init_file being t.
9835
9836 * puresize.h (BASE_PURESIZE): Increase to 675000.
9837
9838 * s/gnu-linux.h (setpgrp): Don't define it here because this
9839 prevents compilation on GNU/Linux systems with glib 2.2.
9840
9841 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
9842 as setpgid.
9843
9844 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
9845
9846 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
9847 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
9848 version.
9849 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
9850
9851 2000-05-23 Kenichi Handa <handa@etl.go.jp>
9852
9853 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9854
9855 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
9856
9857 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
9858
9859 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
9860
9861 2000-05-22 Kenichi Handa <handa@etl.go.jp>
9862
9863 * keyboard.c (read_char): Allow character codes 128..255 to be
9864 handled by input-method-function.
9865
9866 * insdel.c (adjust_markers_for_replace): Fix previous change.
9867 (adjust_after_replace): If PREV_TEXT is nil, call
9868 adjust_markers_for_insert, not adjust_markers_for_replace.
9869
9870 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
9871
9872 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
9873 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
9874 [HAVE_GRANDPT]: Define.
9875 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
9876
9877 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
9878 like SYSV_PTYS.
9879
9880 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
9881
9882 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
9883
9884 2000-05-20 Kenichi Handa <handa@etl.go.jp>
9885
9886 The following changes are to handle 8-bit characters in a
9887 multibyte buffer/string without facing with byte combining
9888 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
9889 eight-bit-graphic (for 0xA0..0xFF) are introduced.
9890
9891 * Makefile.in (fns.o): Depend on charset.h.
9892
9893 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
9894 convert it to unibyte.
9895 (make_string): Use parse_str_as_multibyte, not chars_in_text.
9896
9897 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
9898 apparent char boundary.
9899 (Fset_buffer_multibyte): Convert 8-bit characters in the range
9900 0x80..0x9F to/from multibyte form.
9901
9902 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
9903 to unibyte.
9904
9905 * callproc.c (Fcall_process): Always encode an argument string if
9906 it is multibyte. Setup src_multibyte and dst_multibyte members of
9907 process_coding properly.
9908
9909 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
9910 SPLIT_NON_ASCII_CHAR.
9911
9912 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
9913 as is.
9914 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
9915
9916 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
9917 (SPLIT_CHARACTER_SEQ): This macro deleted.
9918 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
9919 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
9920 and eight-bit-graphic.
9921 (char_to_string): Likewise. Signal an error for too large
9922 character code.
9923 (char_printable_p): Return 0 for 8-bit characters.
9924 (update_charset_table): Update iso_charset_table only when a final
9925 character is non-negative.
9926 (find_charset_in_text): Renamed from find_charset_in_str.
9927 Arguments and return value changed. Callers changed.
9928 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
9929 be -1 if CHARSET is used only internally.
9930 (Fmake_char_internal): Handle new charsets; eight-bit-control and
9931 eight-bit-graphic.
9932 (Fcharset_after): Simplified.
9933 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
9934 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
9935 (multibyte_chars_in_text): Simplified by assuming there's no
9936 invalid multibyte sequence.
9937 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
9938 (str_as_unibyte): New functions.
9939 (Fstring): Simpified by assuming that byte combining never happens.
9940 (init_charset_once): Initialization for
9941 LEADING_CODE_8_BIT_CONTROL.
9942 (syms_of_charset): Intern and staticpro Qeight_bit_control and
9943 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
9944 eight-bit-control and eight-bit-graphic.
9945
9946 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
9947 (CHARSET_8_BIT_GRAPHIC): New macros.
9948 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
9949 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
9950 (CHARSET_REVERSE_CHARSET): Likewise.
9951 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
9952 eight-bit-graphic.
9953 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
9954 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
9955 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
9956 encounter an invalid multibyte sequence.
9957 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
9958 sequence is always valid.
9959 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
9960 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
9961 (CHAR_STRING): For 8-bit characters, call char_to_string.
9962 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
9963 multibyte sequence is always valid.
9964 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
9965 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
9966 (str_as_unibyte): Extern them.
9967 (BCOPY_SHORT): Fix a bug.
9968 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
9969 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
9970 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
9971 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
9972
9973 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
9974 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
9975 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
9976 (EMIT_BYTES): New macros.
9977 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
9978 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
9979 macros deleted.
9980 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
9981 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
9982 check the validity of multibyte sequence.
9983 (decode_coding_emacs_mule): New function.
9984 (encode_coding_emacs_mule): New macro.
9985 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
9986 the source.
9987 (DECODE_ISO_CHARACTER): Just return a character code.
9988 (DECODE_COMPOSITION_START): Set coding->result instead of result.
9989 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
9990 EMIT_CHAR to produced decoded characters. Exit the loop only by
9991 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
9992 block here.
9993 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
9994 only position codes for an invalid character.
9995 (encode_designation_at_bol): Return new destination pointer. 5th
9996 arg DSTP is changed to DST.
9997 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
9998 from the source by ONE_MORE_CHAR. Don't handle the case of last
9999 block here.
10000 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
10001 macros deleted.
10002 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
10003 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
10004 TWO_MORE_BYTES to fetch a byte from the source.
10005 (encode_eol): Pay attention to coding->src_multibyte.
10006 (detect_coding, detect_eol): Preserve members src_multibyte and
10007 dst_multibyte.
10008 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
10009 (encoding_buffer_size): Set magnification to 3 for all coding
10010 systems that require encoding.
10011 (ccl_coding_driver): For decoding, be sure that the result is
10012 valid multibyte sequence.
10013 (decode_coding): Initialize coding->errors and coding->result.
10014 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
10015 and raw-text, always call decode_eol. Handle the case of last
10016 block here. If not coding->dst_multibyte, convert the resulting
10017 sequence to unibyte.
10018 (encode_coding): Initialize coding->errors and coding->result.
10019 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
10020 and raw-text, always call encode_eol. Handle the case of last
10021 block here.
10022 (shrink_decoding_region, shrink_encoding_region): Detect cases
10023 that we can't skip data more rigidly.
10024 (code_convert_region): Setup src_multibyte and dst_multibyte
10025 members of coding. For decoding, if the buffer is multibyte,
10026 convert the source sequence to unibyte in advance. For encoding,
10027 if the buffer is multibyte, convert the resulting sequence to
10028 multibyte afterward.
10029 (run_pre_post_conversion_on_str): New function.
10030 (code_convert_string): Deleted and divided into the following two.
10031 (decode_coding_string, encode_coding_string): New functions.
10032 (code_convert_string1, code_convert_string_norecord): Call one of
10033 above.
10034 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
10035 MAKE_NON_ASCII_CHAR.
10036 (Fset_terminal_coding_system_internal)
10037 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
10038 and dst_multibyte members.
10039 (init_coding_once): Initialize iso_code_class with new enum
10040 ISO_control_0 and ISO_control_1.
10041
10042 * coding.h (enum iso_code_class_type): Member ISO_control_code is
10043 devided into ISO_control_0 and ISO_control_1.
10044 (struct coding_system): New members src_multibyte, dst_multibyte,
10045 errors, and result. Delete member fake_multibyte.
10046 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
10047 nonzero.
10048 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
10049 nonzero.
10050
10051 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
10052 (Faset): Likewise.
10053
10054 * editfns.c (Fformat): Be sure to convert 8-bit characters to
10055 multibyte form.
10056 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
10057 combining occurs.
10058 (Ftranspose_region): Delete codes for handling byte combining.
10059
10060 * fileio.c (Finsert_file_contents): Setup src_multibyte and
10061 dst_multibyte members of coding. On handling REPLACE on unibyte
10062 buffer, convert the result of decode_coding to unibyte. On
10063 inserting into a mutibyte buffer, always call code_convert_region.
10064 (e_write): Setup coding->src_multibyte according to the
10065 multibyteness of the source (buffer or string).
10066
10067 * fns.c (concat): Handle 8-bit characters correctly.
10068 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
10069 unibyte in the result.
10070 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
10071 valid multibyte form in the result.
10072 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
10073 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
10074 return -1, signal an error.
10075 (base64_encode_1): New arg MULTIBYTE. Get each character by
10076 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
10077 character is found, return -1.
10078 (Fbase64_decode_region): Delete codes for handling byte-combining.
10079 Treat each decoded byte as a unibyte character.
10080 (Fbase64_decode_string): Return unibyte string.
10081 (Fcompare_strings, concat, string_byte_to_char): Use
10082 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
10083 FETCH_STRING_CHAR_ADVANCE.
10084 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10085 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
10086
10087 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
10088 SPLIT_NON_ASCII_CHAR.
10089 (fontset_ref_via_base, fontset_set): Likewise
10090
10091 * insdel.c (adjust_markers_for_record_delete): Deleted.
10092 (adjust_markers_for_insert): Argument changed. Caller changed.
10093 (adjust_markers_for_replace): Likewise.
10094 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
10095 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
10096 (copy_text): Delete unused local varialbe c_save. For converting
10097 to multibyte, be sure to make all 8-bit characters in valid
10098 multibyte form.
10099 (count_size_as_multibyte): Handle 8-bit characters correctly.
10100 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
10101 (adjust_after_replace, replace_range, del_range_2)
10102 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
10103 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
10104 (adjust_after_replace, replace_range, del_range_2) Delete codes for
10105 handling byte combining.
10106 (adjust_before_replace): Deleted.
10107
10108 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
10109 SPLIT_NON_ASCII_CHAR.
10110 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
10111 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10112 (Fkey_description): Likewise.
10113
10114 * lread.c (read1): On reading multibyte string, be sure to make
10115 all 8-bit chararacters in valid multibyte form.
10116 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10117
10118 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
10119 unconditionally.
10120
10121 * process.c (Fstart_process): GCPRO current_dir before calling
10122 Ffind_operation_coding_system. Encode arguments here.
10123 (create_process): Don't encode arguments here. Setup
10124 src_multibyte and dst_multibyte members of struct coding.
10125 (read_process_output): Setup src_multibyte and dst_multibyte
10126 members of struct coding. If the output is to multibyte buffer,
10127 always decode the output of the process. Adjust the
10128 representation of 8-bit characters to the multibyteness of the output.
10129 (send_process): Setup coding->src_multibyte according to the
10130 multibyteness of the source.
10131
10132 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
10133 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
10134 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
10135
10136 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
10137
10138 * w16select.c (Fw16_set_clipboard_data): Setup members
10139 src_multibyte and dst_multibyte of coding. Adjusted for the
10140 change for find_charset_in_str.
10141 (Fw16_get_clipboard_data): Likewise.
10142
10143 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
10144 dst_multibyte of coding.
10145 (x_to_w32_font): Likewise.
10146
10147 * w32select.c (Fw32_set_clipboard_data): Setup members
10148 src_multibyte and dst_multibyte of coding. Adjusted for the
10149 change for find_charset_in_str.
10150 (Fw32_get_clipboard_data): Likewise.
10151
10152 * xdisp.c (get_next_display_element): Handle 8-bit characters
10153 correctly.
10154 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
10155 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
10156
10157 * xselect.c (selection_data_to_lisp_data): Setup members
10158 src_multibyte and dst_multibyte of coding. Adjusted for the
10159 change for find_charset_in_str.
10160 (lisp_data_to_selection_data): Likewise.
10161
10162 2000-05-19 Gerd Moellmann <gerd@gnu.org>
10163
10164 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
10165
10166 * dispextern.h (Vimage_types): Add extern declaration.
10167
10168 * xdisp.c (Vimage_types): Moved here from xfns.c.
10169 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
10170
10171 * xfns.c (Vimages_types): Moved to xdisp.c.
10172 (syms_of_xfns): Move `image-types' to xdisp.c.
10173
10174 * w32fns.c (Vimage_types): Removed.
10175 (syms_of_w32fns): Remove `image-types'.
10176
10177 2000-05-18 Kenichi Handa <handa@etl.go.jp>
10178
10179 * fns.c (map_char_table): Pay attention to character number of
10180 charset. Check the validity of charset at the first level. For
10181 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
10182 the default value.
10183
10184 * fontset.c: Include "buffer.h".
10185 (fs_load_font): If the face has fontset, record the face ID in
10186 that fontset.
10187 (Finternal_char_font): New function.
10188 (accumulate_font_info): New function.
10189 (Ffontset_info): Rewritten for the new fontset implementation.
10190 (syms_of_fontset): Register Vdefault_fontset in the first element
10191 of Vfontset_table. Include Vdefault_fontset in
10192 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
10193 function.
10194
10195 2000-05-16 Dave Love <fx@gnu.org>
10196
10197 * m/iris5d.h: Deleted -- unused.
10198
10199 2000-05-16 Gerd Moellmann <gerd@gnu.org>
10200
10201 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
10202 `invalid' instead of `illegal'.
10203
10204 * indent.c (Fmove_to_column): When ending within a tab, insert
10205 spaces first so that markers at the end of the tab get adjusted.
10206
10207 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
10208 buffer list that wasn't selected in that frame.
10209
10210 * filelock.c (get_boot_time): To obtain an 8 char file name, which
10211 is needed on mescaline, use a 2 char prefix, and call
10212 make_temp_name with second arg non-zero.
10213
10214 * fileio.c (make_temp_name): New function, extracted from
10215 Fmake_temp_name.
10216 (Fmake_temp_name): Use it.
10217
10218 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
10219
10220 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
10221
10222 2000-05-15 Gerd Moellmann <gerd@gnu.org>
10223
10224 * Makefile.in (lisp): Add env.elc.
10225
10226 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
10227
10228 2000-05-12 Gerd Moellmann <gerd@gnu.org>
10229
10230 * search.c (Freplace_match): Handle case of `\N' in the
10231 replacement when there's no group N.
10232
10233 2000-05-11 Gerd Moellmann <gerd@gnu.org>
10234
10235 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
10236 of the message to message_dolog.
10237
10238 * keyboard.c (read_char): Don't clear current message for help
10239 events; let the code handling help events handle this. Change
10240 code detecting help events that should be ignored.
10241
10242 * xdisp.c (handle_single_display_prop): Don't try to set PT if
10243 we're interating over a string.
10244
10245 2000-05-09 Dave Love <fx@gnu.org>
10246
10247 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
10248 that offset before writing. Move gcpro region past call of
10249 Ffile_regular_p.
10250
10251 2000-05-04 Dave Love <fx@gnu.org>
10252
10253 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
10254
10255 2000-05-04 Gerd Moellmann <gerd@gnu.org>
10256
10257 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
10258 of inserted characters when BUF equals the current buffer, and PT
10259 is in front of or equal to FROM.
10260
10261 2000-05-03 Gerd Moellmann <gerd@gnu.org>
10262
10263 * xdisp.c (handle_single_display_prop): If display property value
10264 is invalid, or something not supported on the frame, restore
10265 iterator's position to what it was initially. Make sure to return
10266 0 for invalid and unsupported property values.
10267
10268 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
10269 that x_per_char_metric returns null.
10270
10271 2000-05-02 Gerd Moellmann <gerd@gnu.org>
10272
10273 * xterm.h (struct face): Add forward declaration.
10274 (struct image): Ditto.
10275 (image_ascent): Add prototype.
10276
10277 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
10278 (x_draw_image_relief, x_draw_image_foreground_1): Call function
10279 image_ascent instead of using IMAGE_ASCENT.
10280
10281 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
10282 (IMAGE_ASCENT): Removed.
10283
10284 * xfns.c (Qcenter): New variable.
10285 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
10286 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
10287 (image_ascent): New function.
10288 (lookup_image): Recognize `:ascent center'.
10289 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
10290 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
10291 (xbm_load): Don't set image's ascent here.
10292 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
10293 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
10294 check ascent values here.
10295 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
10296 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
10297 (syms_of_xfns): Initialize Qcenter.
10298
10299 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
10300 to the limits, increase the limits.
10301
10302 2000-05-01 Kenichi Handa <handa@etl.go.jp>
10303
10304 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
10305 Check Vfont_encoding_alist against the full name of the opened font.
10306
10307 2000-04-28 Gerd Moellmann <gerd@gnu.org>
10308
10309 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
10310 taller than the window.
10311
10312 2000-04-28 Kenichi Handa <handa@etl.go.jp>
10313
10314 * xfaces.c (realize_x_face): Fix the argument of the second
10315 xassert. BASE_FACE may not be a face for ASCII.
10316
10317 2000-04-27 Gerd Moellmann <gerd@gnu.org>
10318
10319 * print.c (print_object): Treat print-length < 0 as nil.
10320
10321 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
10322
10323 * s/freebsd.h (TERMCAP_OBJ): Removed.
10324 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
10325
10326 * lread.c (read1): Don't treat period followed by certain
10327 characters as symbol start.
10328
10329 * xfns.c (slurp_file): New function.
10330 (xbm_image_p): Handle case of in-memory XBM files.
10331 (xbm_scan): Rewritten to work on memory buffers instead of files.
10332 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
10333 Work on memory buffers instead of files. If DATA is null test
10334 if buffer looks like an in-memory XBM file.
10335 (xbm_load_image): Renamed from xbm_load_image_file. Work on
10336 memory buffers instead of files.
10337 (xbm_file_p): New function.
10338 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
10339
10340 * lread.c (end_of_file_error): New function.
10341 (read1): Call it instead of signaling `end-of-file' directly.
10342
10343 * print.c (print_error_message): Print data of `end-of-file'
10344 with Fprinc instead of Fprin1.
10345
10346 2000-04-26 Ken Raeburn <raeburn@gnu.org>
10347
10348 * window.c (freeze_window_start): Check that minibuffer scroll
10349 window isn't nil before extracting the window structure pointer
10350 from it.
10351
10352 * undo.c (record_delete): If we hit the end of the undo list, stop
10353 picking elements apart.
10354
10355 2000-04-26 Gerd Moellmann <gerd@gnu.org>
10356
10357 * xdisp.c (display_line): If lines are continued, restore
10358 iterator's ascent/descent information to the values before the
10359 first glyph not fitting on the line.
10360
10361 2000-04-25 Gerd Moellmann <gerd@gnu.org>
10362
10363 * xdisp.c (try_window_id) <all changes above window start>: Adjust
10364 positions in glyph matrix. Don't compute new window end positions.
10365
10366 * dispnew.c (increment_matrix_positions): Renamed from
10367 increment_glyph_matrix_buffer_positions.
10368 (increment_row_positions): Renamed from
10369 increment_glyph_row_buffer_positions.
10370
10371 * dispextern.h: Change names of renamed functions from dispnew.c
10372 in prototypes.
10373
10374 2000-04-24 Gerd Moellmann <gerd@gnu.org>
10375
10376 * fileio.c (Fdo_auto_save): Create directories for auto-save
10377 list file if necessary.
10378
10379 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
10380 from buffer or frame.
10381 (automatic_hscrolling_p): New variable.
10382 (hscroll_windows): Scroll windows horizontally only if automatic
10383 hscrolling is allowed.
10384 (syms_of_xdisp): New variable `automatic-hscrolling'.
10385
10386 * frame.h (struct frame): Add member extra_line_spacing.
10387
10388 * xfns.c (x_set_line_spacing): New function.
10389 (Fx_create_frame): Set line spacing from resources.
10390 (Qline_spacing): New variable.
10391 (syms_of_xfns): Initialize Qline_spacing.
10392
10393 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
10394
10395 * buffer.c (init_buffer_once): Handle extra_line_spacing.
10396 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
10397 (reset_buffer): Don't initialize extra2 and extra3. Initialize
10398 extra_line_spacing from default value.
10399 (init_buffer_once): Initialize default value of extra_line_spacing.
10400
10401 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
10402 and extra3.
10403
10404 * xterm.c (x_produce_glyphs): Remove reference to struct it's
10405 prompt_width. Add extra line spacing.
10406
10407 * term.c (produce_glyphs): Remove reference to struct it's
10408 prompt_width.
10409
10410 * dispextern.h (struct it): Remove member prompt_width, add
10411 extra_line_spacing.
10412
10413 2000-04-22 Gerd Moellmann <gerd@gnu.org>
10414
10415 * dispnew.c (update_frame_line): When writing a whole line, make
10416 sure cursor is in the right row afterwards, otherwise a use of
10417 capability `ch' in cmgoto might leave the cursor in the row below.
10418
10419 2000-04-21 Gerd Moellmann <gerd@gnu.org>
10420
10421 * lisp.h (struct Lisp_Buffer_Cons): Remove.
10422
10423 * keyboard.c (timer_check): Fix typo in comment.
10424
10425 2000-04-21 Kenichi Handa <handa@etl.go.jp>
10426
10427 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
10428 name change: ch -> character.
10429
10430 2000-04-20 Gerd Moellmann <gerd@gnu.org>
10431
10432 * keyboard.c (echo_message_buffer): New variable.
10433 (echo_now): Set echo_message_buffer to the echo area buffer used
10434 to display the echo.
10435 (cancel_echoing): Reset echo_message_buffer to nil.
10436 (read_char): Code rewritten that handles canceling an echo or
10437 echoing a dash, respectively.
10438
10439 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
10440 directory doesn't exist.
10441
10442 2000-04-19 Dave Love <fx@gnu.org>
10443
10444 * fns.c (syms_of_fns): Defsubr mapc.
10445 (concat): Don't allow numeric args.
10446 (Fconcat): Doc change.
10447
10448 2000-04-19 Stefan Monnier <monnier@cs.yale.edu>
10449
10450 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
10451 instead define end_match(1|2) more carefully.
10452 Use GET_CHAR_BEFORE_2 for `begline'.
10453
10454 2000-04-19 Gerd Moellmann <gerd@gnu.org>
10455
10456 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
10457 on 64-bit systems where NULL is defined as `0'.
10458
10459 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
10460 the `variable argument list' to make it work on Alpha.
10461
10462 * m/alpha.h (_LP64) [!_LP64]: Define.
10463 (ORDINARY_LINK): Define for NetBSD.
10464
10465 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
10466
10467 2000-04-19 Dave Love <fx@gnu.org>
10468
10469 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
10470 change.
10471
10472 * Makefile.in (LIBS): Don't use.
10473 (GETLOADAVG_OBJ): Define again.
10474 (otherobj): Add GETLOADAVG_OBJ.
10475
10476 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
10477
10478 2000-04-18 Gerd Moellmann <gerd@gnu.org>
10479
10480 * lread.c (read_filtered_event): Cancel and start busy cursor.
10481
10482 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
10483 that the per-character metrics may be null.
10484
10485 2000-04-17 Gerd Moellmann <gerd@gnu.org>
10486
10487 * buffer.c (clone_per_buffer_values): New function.
10488 (Fmake_indirect_buffer): Add optional argument CLONE. Call
10489 clone_per_buffer_values if CLONE is not nil.
10490
10491 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
10492
10493 2000-04-16 Dave Love <fx@gnu.org>
10494
10495 * Makefile.in: Remove obsolete localcpp stuff.
10496 (GETLOADAVG_OBJ): Don't define.
10497 (obj): Move LIBOBJS...
10498 (otherobj): ... to here.
10499 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
10500 whitespace-only lines after the continuation (Irix).
10501
10502 2000-04-14 Gerd Moellmann <gerd@gnu.org>
10503
10504 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
10505
10506 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
10507
10508 2000-04-14 Dave Love <fx@gnu.org>
10509
10510 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
10511 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
10512 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
10513 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
10514 NLIST_STRUCT.
10515
10516 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
10517 autoconfiscated HAVE_GETLOADAVG.
10518
10519 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
10520 BROKEN_MKTIME.
10521
10522 2000-04-14 Gerd Moellmann <gerd@gnu.org>
10523
10524 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
10525 (fill_in_lock_file_name): Avoid existing files that aren't links.
10526
10527 2000-04-14 Dave Love <fx@gnu.org>
10528
10529 * Makefile.in (LIBS, LIBOBJS): New variable.
10530 (INTERVAL_SRC): Convert to make variable.
10531 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
10532 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
10533 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
10534 add LIBOBJS.
10535 (SOME_MACHINE_OBJECTS): Remove interval stuff.
10536 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
10537 (shortlisp): Add facemenu, float-sup, frame.
10538 (SOME_MACHINE_LISP): Remove them from here.
10539 (LIBES): Change unused LDLIBS to autoconf LIBS.
10540
10541 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
10542
10543 2000-04-14 Kenichi Handa <handa@etl.go.jp>
10544
10545 * composite.c (update_compositions): If FROM and TO are not in a
10546 valid range, do nothing.
10547
10548 2000-04-13 Gerd Moellmann <gerd@gnu.org>
10549
10550 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
10551
10552 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
10553
10554 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
10555 as TERMCAP_OBJ.
10556
10557 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
10558
10559 * fileio.c (a_write): Remove redundant semi-colons.
10560 (e_write): Return -1 if failed to write all the data.
10561 This fixes the changes made at 1999-12-15.
10562
10563 2000-04-12 Dave Love <fx@gnu.org>
10564
10565 * fns.c (mapcar1): Test for null vals to support mapc.
10566 (Fmapc): New function.
10567
10568 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
10569
10570 * msdos.c (NUM_MOUSE_BUTTONS): Define.
10571 (IT_frame_up_to_date): Support the buffer local value of
10572 cursor-type, if defined.
10573
10574 2000-04-10 Dave Love <fx@gnu.org>
10575
10576 * editfns.c (preceding-char, following-char): Doc fix.
10577
10578 2000-04-10 Ken Raeburn <raeburn@gnu.org>
10579
10580 * Makefile.in (temacs): Revert 2000-03-12 change.
10581
10582 2000-04-10 Jason Rumney <jasonr@gnu.org>
10583
10584 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
10585
10586 2000-04-10 Gerd Moellmann <gerd@gnu.org>
10587
10588 * xdisp.c (setup_echo_area_for_printing): Choose an echo
10589 area buffer, if it's not set up yet.
10590
10591 * indent.c (compute_motion): Set immediate_quit.
10592
10593 2000-04-09 Gerd Moellmann <gerd@gnu.org>
10594
10595 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
10596 (realize_tty_face): Suppress boldness if colors are the inverse of
10597 the default colors, and tty_suppress_bold_inverse_default_colors_p
10598 is set.
10599 (Ftty_suppress_bold_inverse_default_colors): New function.
10600 (syms_of_xfaces): Defsubr it.
10601
10602 * buffer.c (Frestore_buffer_modified_p): New function.
10603 (syms_of_buffer): Defsubr it.
10604
10605 2000-04-08 Ken Raeburn <raeburn@gnu.org>
10606
10607 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
10608 charset id (int) argument, not a charset (Lisp_Object).
10609
10610 * coding.h (code_convert_string): Declare.
10611 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
10612 object, as the fourth argument to code_convert_string.
10613
10614 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
10615 (Fset_fontset_font): Use EQ to compare lisp objects.
10616
10617 2000-04-05 Ken Raeburn <raeburn@gnu.org>
10618
10619 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
10620 a pointer that looks like a lisp object.
10621 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
10622 zero, instead see whether it's an integer object, since they can't
10623 have intervals.
10624 (GET_INTERVAL_OBJECT): Simply assign to the destination.
10625
10626 * dispnew.c (allocate_matrices_for_frame_redisplay)
10627 (direct_output_forward_char): Use X(U)INT and make_number as needed
10628 to convert between (unsigned) int values and lisp integers.
10629 * keyboard.c (read_key_sequence): Likewise.
10630 * lread.c (substitute_object_recurse): Likewise.
10631 * fns.c (concat, hash_lookup, hash_remove): Likewise.
10632 * minibuf.c (do_completion, Fminibuffer_complete_word)
10633 (Fminibuffer_completion_help): Likewise.
10634 * term.c (produce_special_glyphs): Likewise.
10635
10636 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
10637 * print.c (print_preprocess, print_object): Likewise.
10638
10639 * search.c (compile_pattern): Use NILP when checking for nil.
10640
10641 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
10642 __OPTIMIZE__]: Provide a GNU C macro version that handles
10643 lisp-object unions.
10644 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
10645 field, to better cope with ENABLE_CHECKING and calls that modify a
10646 Lisp_Object using its old value.
10647
10648 2000-04-04 Gerd Moellmann <gerd@gnu.org>
10649
10650 * window.c (compare_window_configurations): Signal an error
10651 if parameters C1 or C2 aren't window configurations.
10652
10653 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
10654 AFTER_POTENTIAL_GC calls around calls to functions that can
10655 signal an error and thus invoke the debugger.
10656
10657 2000-04-03 Gerd Moellmann <gerd@gnu.org>
10658
10659 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
10660 an error if decoding fails.
10661
10662 * keyboard.c (lispy_mouse_names): Variable removed.
10663 (Vlispy_mouse_stem): New variable.
10664 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
10665 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
10666 for any mouse button number. Increase size of mouse_syms and
10667 button_down_location as needed. Call modify_event_symbol with
10668 different arguments.
10669 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
10670 Call modify_event_symbol with different arguments.
10671 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
10672 for any button number. Call modify_event_symbol with different
10673 arguments.
10674 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
10675 Accept a string for NAME_ALIST_OR_STEM.
10676
10677 * lisp.h (larger_vector): Add prototype.
10678
10679 * fns.c (larger_vector): Make externally visible.
10680
10681 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
10682
10683 2000-04-02 Stefan Monnier <monnier@cs.yale.edu>
10684
10685 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
10686 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
10687 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
10688 we are between str1 and str2.
10689 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
10690 (PATFETCH): Use `TRANSLATE'.
10691 (PATFETCH_RAW): Fetch multibyte char if applicable.
10692 (PATUNFETCH): Remove.
10693 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
10694 When writing a char, write it directly into the pattern buffer rather
10695 than going needlessly through a temp char-array.
10696 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
10697 multibyte magic and remove the useless `#ifdef emacs'.
10698 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
10699 buffer.
10700
10701 * regex.h (struct re_pattern_buffer): Make field `multibyte'
10702 conditional on `emacs'.
10703
10704 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
10705
10706 2000-04-01 Ken Raeburn <raeburn@gnu.org>
10707
10708 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
10709 non-union-type versions of XMARK and friends here, because XMARK
10710 and friends won't work on an integer field if NO_UNION_TYPE is not
10711 defined.
10712 (make_number): Define as a function if it's not defined as a macro.
10713
10714 * composite.c (run_composite_function): Use NILP when checking for nil.
10715 (syms_of_composite): Delete local var NARGS, pass an int as first
10716 argument to Fmake_hash_table.
10717
10718 * editfns.c (text_property_stickiness): Use NILP to test
10719 Lisp_Object boolean value.
10720 (Fmessage_or_box): Don't use NILP to test int variable.
10721 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
10722 problems reading from and changing the same lisp value in an
10723 XSETSTRING call.
10724
10725 2000-04-01 Gerd Moellmann <gerd@gnu.org>
10726
10727 * term.c (TN_no_color_video): New variable.
10728 (term_init): Intitialize TN_no_color_video.
10729 (enum no_color_bit): New enumeration.
10730 (MAY_USE_WITH_COLORS_P): New macro.
10731 (turn_on_face): Use it to determine if attributes may be used
10732 combined with colors.
10733
10734 2000-04-01 Ken Raeburn <raeburn@gnu.org>
10735
10736 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
10737 with int lvalues via casts; instead, just yield lisp object lvalues.
10738 (enlarge_window): Variable sizep now points to Lisp_Object. Use
10739 proper accessor macros.
10740 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
10741 (grow_mini_window): Fix typo getting int value of root->height.
10742
10743 * xdisp.c (compute_string_pos): Fix order of arguments to
10744 string_pos_nchars_ahead.
10745 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
10746 count arg to variable-arg routines like Frun_hook_with_args and
10747 Fformat.
10748 (back_to_previous_visible_line_start)
10749 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
10750 fixed-arg routines like Fget_char_property and Fmake_string.
10751 (reconsider_clip_changes): Use XINT when comparing integer lisp
10752 objects, or passing them as int arguments.
10753 (mark_window_display_accurate, insert_left_trunc_glyphs)
10754 (append_space, extend_face_to_end_of_line): Use make_number when
10755 storing or passing integer values as lisp objects.
10756 (set_cursor_from_row, highlight_trailing_whitespace): Use
10757 INTEGERP, not implicit test against zero, for glyph object.
10758 (try_window_id): Don't use make_number when we want an int value.
10759
10760 * xfaces.c (xlfd_symbolic_value): Make last argument a
10761 Lisp_Object, to be consistent with callers.
10762 (Fbitmap_spec_p): Use XINT to get numeric value of height.
10763 (lface_hash): Apply XFASTINT to lisp values before folding in.
10764
10765 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
10766 fill in window width and height. Pass an int, not a lisp object,
10767 as first arg to Finsert.
10768
10769 2000-04-01 Gerd Moellmann <gerd@gnu.org>
10770
10771 * xfaces.c (realize_basic_faces): Block input while realizing
10772 the faces.
10773
10774 * keyboard.c (lispy_mouse_names): Add additional mouse names.
10775
10776 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
10777
10778 2000-03-31 Gerd Moellmann <gerd@gnu.org>
10779
10780 * xterm.c (x_produce_glyphs): When displaying unibyte text
10781 or ASCII, handle case that per-char metric is null.
10782
10783 2000-03-30 Ken Raeburn <raeburn@gnu.org>
10784
10785 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
10786
10787 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
10788 (XSUBR, XBUFFER): Verify correct object type before returning
10789 pointer, using eassert.
10790 * frame.h (XFRAME): Likewise.
10791
10792 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
10793 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
10794 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
10795 * data.c (set_internal): Likewise.
10796 * dispextern.h (WINDOW_WANTS_MODELINE_P)
10797 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
10798 * fileio.c (auto_save_1): Likewise.
10799 * insdel.c (check_markers): Likewise.
10800 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
10801 * undo.c (record_insert): Likewise.
10802 * vmsproc.c (child_sig): Likewise.
10803 * window.c (unshow_buffer, window_loop): Likewise.
10804 * xterm.c (x_erase_phys_cursor): Likewise.
10805
10806 2000-03-30 Gerd Moellmann <gerd@gnu.org>
10807
10808 * xfns.c (free_image_cache): Free the cache structure itself
10809 last, after all its members have been freed.
10810
10811 * lisp.h (xstrdup): Add prototype.
10812
10813 * alloc.c (xstrdup): Moved here from xfaces.c.
10814 (allocating_for_lisp): Variable removed.
10815 (lisp_malloc): Block input around the calls to malloc and mem_insert.
10816
10817 * xfaces.c (realize_tty_face): Use find_symbol_value instead
10818 of Fsymbol_value.
10819 (xstrdup): Moved to alloc.c.
10820
10821 2000-03-29 Ken Raeburn <raeburn@gnu.org>
10822
10823 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
10824
10825 * emacs.c (main): Fix sense of no-loadup test.
10826
10827 * config.in (ENABLE_CHECKING): Undef.
10828
10829 * lisp.h (struct interval): Replace "parent" field with a union of
10830 interval pointer and Lisp_Object; add new bitfield to use as
10831 discriminant. Change other flag fields to bitfields.
10832 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
10833 is defined and the supplied test fails, print a message and abort.
10834 (eassert): New macro. Use CHECK to provide an assert-like facility.
10835
10836 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
10837 pointers; abort if the value looks like a lisp object.
10838 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
10839 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
10840 Modify for new interval parent definition.
10841
10842 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
10843 (UNMARK_BALANCE_INTERVALS): Update references that need an
10844 addressable lisp object in the interval structure.
10845 (die): New function.
10846 (suppress_checking): New variable.
10847
10848 * intervals.c (interval_start_pos): Just return 0 if there's no
10849 parent object.
10850
10851 2000-03-29 Gerd Moellmann <gerd@gnu.org>
10852
10853 * lread.c (read1): Accept `.' (period) as symbol start like in CL
10854 and earlier Emacs versions.
10855
10856 * keyboard.c (Ftop_level): Cancel busy-cursor.
10857
10858 * eval.c (call_debugger): Cancel busy-cursor.
10859
10860 2000-03-29 Kenichi Handa <handa@etl.go.jp>
10861
10862 * search.c (Freplace_match): Adjust multibyteness of the current
10863 buffer and NEWTEXT. Free allocated memory before signaling an error.
10864
10865 2000-03-28 Stefan Monnier <monnier@cs.yale.edu>
10866
10867 * regex.c (analyse_first): New function obtained by ripping out most
10868 of re_compile_fastmap and generalizing it a little bit so that it
10869 can also just return whether a given (sub)pattern can match the empty
10870 string or not.
10871 (regex_compile): Use `analyse_first' to decide whether the loop-check
10872 needs to be done or not for *, +, *? and +? (the loop check is costly
10873 for non-greedy repetition).
10874 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
10875
10876 2000-03-28 Dave Love <fx@gnu.org>
10877
10878 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
10879
10880 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
10881
10882 2000-03-27 Stefan Monnier <monnier@cs.yale.edu>
10883
10884 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
10885 an expression.
10886 (enum re_opcode_t): Update description of succeed_n.
10887 (PATFETCH): Always define.
10888 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
10889 operators, char classes, shy-groups and intervals).
10890 Optimize special cases of intervals so as to only use succeed_n and
10891 jump_n when really needed.
10892 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
10893 that we don't have to handle the special cases any more.
10894 Simplify on_failure_jump handling as well.
10895
10896 2000-03-28 Jason Rumney <jasonr@gnu.org>
10897
10898 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
10899
10900 2000-03-27 Gerd Moellmann <gerd@gnu.org>
10901
10902 * s/freebsd.h (GC_SETJMP_WORKS): Define.
10903
10904 * s/msdos.h (GC_SETJMP_WORKS): Define.
10905
10906 * alloc.c (mark_maybe_object): New function.
10907 (mark_memory): Use it.
10908 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
10909 (setjmp_tested_p, longjmp_done): New variables.
10910 (test_setjmp): New function.
10911 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
10912 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
10913
10914 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
10915 to DEC_TEXT_POS and INC_TEXT_POS.
10916
10917 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
10918 with parameter MULTIBYTE_P.
10919
10920 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
10921
10922 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
10923 buffers because it looks for multibyte character byte sequences
10924 which don't exist in unibyte text.
10925
10926 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
10927
10928 * xfaces.c (register_color, unregister_color, unregister_colors)
10929 [DEBUG_X_COLORS]: New functions.
10930 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
10931
10932 * xfns.c (x_set_cursor_color): Get color reference counts right.
10933
10934 * xterm.c (x_copy_color): New function.
10935 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
10936
10937 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
10938 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
10939 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
10940 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
10941 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
10942 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
10943 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
10944 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
10945 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
10946 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
10947
10948 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
10949 names for handling per-buffer variables.
10950
10951 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
10952 instead of MAX_BUFFER_LOCAL_VARS.
10953 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
10954
10955 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
10956
10957 * xfns.c (x_specified_cursor_type): New function.
10958 (x_set_cursor_type): Use it.
10959
10960 * buffer.h (struct buffer): Add cursor_type.
10961
10962 2000-03-26 Stefan Monnier <monnier@cs.yale.edu>
10963
10964 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
10965 (print_partial_compiled_pattern, re_compile_fastmap):
10966 Handle new opcode.
10967 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
10968 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
10969 executing it as well as when popping it off the stack to find infinite
10970 loops in non-greedy repetition operators.
10971
10972 2000-03-26 Gerd Moellmann <gerd@gnu.org>
10973
10974 * doc.c (Qfunction_documentation): New variable.
10975 (syms_of_doc): Initialize Qfunction_documentation.
10976 (Fdocumentation): If FUNCTION is a symbol with non-nil
10977 `function-documentation' property, return a documentation derived
10978 from that.
10979
10980 * buffer.c (syms_of_buffer): Add default-cursor-type.
10981 (init_buffer_once): Don't let cursor_type have a local value
10982 in every buffer.
10983
10984 * xterm.c (x_display_and_set_cursor): Choose cursor depending
10985 on buffer-local value of cursor_type.
10986 (x_draw_bar_cursor): Add parameter WIDTH.
10987
10988 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
10989 (init_buffer_once): Set default cursor_type value to t.
10990 Mark cursor_type as local everywhere.
10991 (syms_of_buffer): New per-buffer variable cursor-type.
10992
10993 * buffer.h (struct buffer): Remove member local_var_flags,
10994 add local_flags.
10995 (MAX_BUFFER_LOCAL_VARS): New macro.
10996 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
10997 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
10998 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
10999 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
11000
11001 * print.c (print_object): Use new macros for per-buffer variables.
11002
11003 * category.c (Fset_category_table): Use new macros for per-buffer
11004 variables.
11005
11006 * buffer.c (buffer_permanent_local_flags): Make a char array.
11007 (max_buffer_local_idx): New variable.
11008 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
11009 for new handling of per-buffer variables.
11010 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
11011 (init_buffer_once): Initialize per-buffer vars differently.
11012 Set max_buffer_local_idx.
11013
11014 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
11015 variables.
11016
11017 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
11018
11019 * data.c (do_symval_forwarding, store_symval_forwarding)
11020 (find_symbol_value, set_internal, default_value, Fset_default)
11021 (Fkill_local_variable, Flocal_variable_p): Use new macros for
11022 per-buffer variables.
11023
11024 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
11025
11026 2000-03-24 Gerd Moellmann <gerd@gnu.org>
11027
11028 * xterm.c (x_term_init): Unblock input around call1 of
11029 Qvendor_specific_keysyms.
11030
11031 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
11032 (find_defun_start): Consider an open parenthesis in column 0
11033 a defun start only if open_paren_in_column_0_is_defun_start is set.
11034 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
11035
11036 2000-03-24 Stefan Monnier <monnier@cs.yale.edu>
11037
11038 * eval.c (Fautoload): Add entry in load-history (if after dump).
11039 * lread.c (load-history): Update docstring.
11040
11041 2000-03-24 Gerd Moellmann <gerd@gnu.org>
11042
11043 * indent.c (Fvertical_motion): Always use the current buffer.
11044 Temporarily change the window's buffer, if necessary.
11045
11046 2000-03-23 Gerd Moellmann <gerd@gnu.org>
11047
11048 * xterm.c (fast_find_position): Make sure not to consider rows
11049 not visible in the window.
11050
11051 2000-03-22 Stefan Monnier <monnier@cs.yale.edu>
11052
11053 * regex.c (enum syntaxcode): Provide default for non-Emacs.
11054 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
11055
11056 2000-03-22 Jason Rumney <jasonr@gnu.org>
11057
11058 * w32menu.c (single_submenu): Set help string to NULL if none.
11059 (w32_menu_show): Set help string correctly.
11060 (add-menu-item): Set help string in MIIM_DATA for menu item.
11061 Load SetMenuItemInfoA explicitly.
11062 (w32_menu_display_help): New function.
11063
11064 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
11065 (QCdata): Moved to xdisp.c.
11066
11067 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
11068 (Vw32_charset_to_codepage_alist): Removed.
11069 (Vw32_charset_info_alist): New variable.
11070 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
11071 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
11072 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
11073 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
11074 with TODO comment.
11075 (w32_codepage_for_font): Use Vw32_charset_info_alist.
11076 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
11077 Define Vw32_charset_info_alist and w32_charset symbols.
11078
11079 2000-03-22 Jason Rumney <jasonr@gnu.org>
11080
11081 * makefile.nt (w32bdf.obj): Update dependencies.
11082
11083 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
11084
11085 * w32fns.c: Include fontset.h after dispextern.h.
11086 (Fx_create_frame): Do not create fontset.
11087 (w32_load_system_font): Doc fix.
11088 (Fx_close_connection): Free full_name if it is not shared.
11089
11090 * w32term.c: Include fontset.h after dispextern.h.
11091 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
11092 Callers updated.
11093 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
11094 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
11095 (w32_font_is_double_byte): New function, needs body.
11096 (x_append_glyph): Set glyph->glyph_not_available_p.
11097 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
11098 it->charset. If it->multibyte_p is zero and it->c is a multibyte
11099 character, convert it to a unibyte character.
11100 (struct glyph_string): Delete member `charset'.
11101 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
11102 calculating it is found.
11103 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
11104 the case that per char metric is not available correctly.
11105 (x_fill_glyph_string): Handle the case that the specific glyph is
11106 not available correctly.
11107 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
11108 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
11109 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
11110 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
11111 fontset. Don't call FS_LOAD_FONT.
11112
11113 2000-03-22 Ken Raeburn <raeburn@gnu.org>
11114
11115 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
11116 (INT_LISPLIKE): New macro.
11117 (NULL_INTERVAL_P): Use it.
11118 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
11119 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
11120 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
11121
11122 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
11123 explicit references to "parent" field of struct interval and
11124 associated unclean type conversions.
11125 * intervals.c (create_root_interval, root_interval, rotate_right)
11126 (rotate_left, balance_possible_root_interval, split_interval_right)
11127 (split_interval_left, interval_start_pos, find_interval)
11128 (next_interval, previous_interval, update_interval)
11129 (adjust_intervals_for_insertion, delete_node, delete_interval)
11130 (adjust_intervals_for_deletion, merge_interval_right)
11131 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
11132 (copy_intervals_to_string): Likewise.
11133 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
11134 Likewise.
11135 * syntax.c (update_syntax_table): Likewise.
11136
11137 * intervals.c (reproduce_tree_obj): New function, like
11138 reproduce_tree but takes a Lisp_Object for the parent. Declare
11139 with prototype.
11140 (graft_intervals_into_buffer): Use it when appropriate.
11141 (reproduce_tree): Declare with prototype.
11142 (balance_possible_root_interval): Check that the parent is a lisp
11143 object before trying to examine its type.
11144
11145 2000-03-22 Gerd Moellmann <gerd@gnu.org>
11146
11147 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
11148 as strings only if both are known to be strings.
11149
11150 * s/openbsd.h (LIBS_TERMCAP): Undef.
11151
11152 2000-03-21 Stefan Monnier <monnier@cs.yale.edu>
11153
11154 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
11155 definitions for non-Emacs compilation.
11156 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
11157 outside of `#ifdef emacs'.
11158 (print_partial_compiled_pattern): Update.
11159 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
11160 (re_compile_fastmap): Merge handling of charset and charset_not (for
11161 emacs and non-emacs compilation as well).
11162 Similarly for (not)categoryspec and (not)syntaxspec.
11163 Don't use the fastmap when reaching `anychar' since the added
11164 complexity is not justified.
11165 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
11166 and (not)syntaxspec. Merge (not)categoryspec.
11167
11168 2000-03-22 Kenichi Handa <handa@etl.go.jp>
11169
11170 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
11171 (FACE_FOR_CHAR): Define them differently for the configuration of
11172 --without-x.
11173
11174 2000-03-21 Dave Love <fx@gnu.org>
11175
11176 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
11177 doc string.
11178
11179 2000-03-21 Gerd Moellmann <gerd@gnu.org>
11180
11181 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
11182 (lface_fully_specified_p): Don't check contents of
11183 LFACE_FONT_INDEX because that attribute is optional.
11184 (realize_x_face): Remove now unwarranted xassert.
11185
11186 2000-03-21 Kenichi HANDA <handa@etl.go.jp>
11187
11188 The following changes are to make font selection based on
11189 characters, not charset. In addition, they recover fontset
11190 facilities while utilizing the new font selection mechanism.
11191
11192 * Makefile.in (fontset.o): Depend on dispextern.h.
11193
11194 * alloc.c (mark_face_cache): Don't mark face->registry.
11195
11196 * dispextern.h (struct glyph): New member glyph_not_available_p.
11197 Use 22 bits for face_id.
11198 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
11199 (struct face): Delete member registry, new member ascii_face.
11200 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
11201 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
11202 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
11203 (struct it): Delete member charset, new member glyph_not_available_p.
11204
11205 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
11206 (struct fontset_info, struct fontset_data): Structs removed.
11207 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
11208 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
11209 (fs_load_font, fs_query_fontset): Adjusted for new argument.
11210 (fs_free_face_fontset, fontset_font_pattern)
11211 (face_suitable_for_char_p, face_for_char)
11212 (make_fontset_for_ascii_face): Extern them.
11213 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
11214 (FS_LOAD_FACE_FONT): New macro.
11215
11216 * fontset.c: All codes rewritten or adjusted for the change of
11217 fontset implementation. Now fontset is represented by char table.
11218 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
11219 Variables removed.
11220 (my_strcasecmp): Function removed.
11221 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
11222 (AREF, ASIZE): New macros.
11223 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
11224 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
11225 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
11226 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
11227 (fontset_id_valid_p, font_family_registry, fontset_name)
11228 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
11229 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
11230 New functions.
11231 (fs_load_font): New arg FACE. Caller changed.
11232 (fs_query_fontset): Argument changed. Caller changed.
11233 (Fquery_fontset): call fs_query_fontset.
11234 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
11235 Functions removed.
11236 (clear_fontset_elements, check_registry_encoding)
11237 (check_fontset_name): New functions.
11238 (syms_of_fontset): Set char-table-extra-slots property of fontset
11239 to 3. Staticpro and initialize Vfontset_table and
11240 Vdefault_fontset. Defsubr fontset_font and fontset_list.
11241
11242 * frame.h (struct frame): Member `fontset_data' removed.
11243 (FRAME_FONTSET_DATA): Macro removed.
11244
11245 * frame.c (make_frame): Don't allocate f->fontset_data.
11246 (Fdelete_frame): Don't free f->fontset_data.
11247
11248 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
11249
11250 * xdisp.c (charset_at_position): Function removed.
11251 (init_iterator): Don't set member charset of struct `it'.
11252 (handle_face_prop, reseat_to_string, set_iterator_to_next)
11253 (next_element_from_display_vector, insert_left_trunc_glyphs):
11254 Likewise.
11255 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
11256 FACE_FOR_CHARSET.
11257 (get_next_display_element, append_space)
11258 (extend_face_to_end_of_line): Likewise.
11259
11260 * xfaces.c (Qx_charset_registry, Vface_default_registry):
11261 Variables removed.
11262 (clear_font_table, frame_update_line_height, load_face_font):
11263 Adjusted for the change of fontset implementation.
11264 (load_face_fontset_font): Function removed.
11265 (pixel_point_size): New function.
11266 (font_list): Argument type changed. Caller changed.
11267 (LFACE_FONT): New macro.
11268 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
11269 (set_lface_from_font_name): Type of arg FONTNAME is changed to
11270 Lisp_Object. Determine the font name by actually loading a font
11271 by the specified pattern. Set LFACE_FONT (lface) to the specified
11272 pattern. Even if a font is not found, don't try alternatives.
11273 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
11274 (set_font_frame_param): If `font' is specified in lface, use it.
11275 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
11276 (lface_same_font_attributes_p): Likewise.
11277 (make_realized_face): Arguent changed. Caller changed. Set
11278 face->ascii_face to face itself.
11279 (free_realized_face): Free face->fontset if face is for ASCII.
11280 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
11281 (deduce_unibyte_registry, x_charset_registry): Functions removed.
11282 (free_realized_multibyte_face): New function.
11283 (lookup_face, lookup_named_face, lookup_derived_face): Argument
11284 changed. Caller changed.
11285 (try_font_list): Argument type changed.
11286 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
11287 (choose_face_font): Argument changed. Handle fontset properly.
11288 (choose_face_fontset_font): Function removed.
11289 (realize_default_face, realize_named_face): Don't remove the
11290 former face here.
11291 (realize_face): Argument changed. Caller changed. Remove face
11292 with the arg former_face_id in advance. Load font for the new face.
11293 (realize_x_face): Argument changed. Caller changed. For a
11294 multibyte character, share fontset with base_face. For a single
11295 byte character, make a new realized fontset. Don't load a font here.
11296 (realize_tty_face): Argument changed. Caller changed.
11297 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
11298 (face_at_buffer_position): Don't check multibyte_p for returning
11299 DEFAULT_FACE_ID.
11300 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
11301 FACE_SUITABLE_FOR_CHARSET_P.
11302 (syms_of_xfaces): Remove code for Qx_charset_registry and
11303 Vface_default_registry.
11304
11305 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
11306 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
11307 (x_per_char_metric): Don't try FONT->default_char. Even if
11308 pcm->width is zero, glyph bits may exist.
11309 (x_encode_char): Always initialize char2b->byte1.
11310 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
11311 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
11312 (x_append_glyph): Set glyph->glyph_not_available_p.
11313 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
11314 it->charset. Handle the case that per char metric is not
11315 available. If it->multibyte_p is zero and it->c is a multibyte
11316 character, convert it to a unibyte character.
11317 (struct glyph_string): Delete member `charset'.
11318 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
11319 the case that per char metric is not available correctly.
11320 (x_fill_glyph_string): Handle the case that the specific glyph is
11321 not available correctly.
11322 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
11323 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
11324 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
11325 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
11326 fontset. Don't call FS_LOAD_FONT.
11327
11328 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
11329 (x_create_tip_frame): Likewise.
11330 (Fx_close_connection): Free full_name of font_info.
11331
11332 * fns.c (optimize_sub_char_table): New function.
11333 (Foptimize_char_table): New function.
11334 (syms_of_fns): Defsubr Soptimize_char_table.
11335
11336 2000-03-20 Gerd Moellmann <gerd@gnu.org>
11337
11338 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
11339 only if buffer is displayed in some window.
11340
11341 * xdisp.c (handle_single_display_prop): Initialize local `value'.
11342 (try_window_reusing_current_matrix): Don't call scroll run
11343 function if run's current and desired position are the same;
11344 this prevents cursor flickering.
11345
11346 2000-03-19 Stefan Monnier <monnier@cs.yale.edu>
11347
11348 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
11349
11350 * regex.c (RE_STRING_CHAR): New macro.
11351 (GET_CHAR_AFER_2): Remove.
11352 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
11353 (enum re_opcode_t): Remove on_failure_jump_exclusive.
11354 (print_partial_compiled_pattern, re_compile_fastmap)
11355 (re_match_2_internal): Remove on_failure_jump_exclusive.
11356 (regex_compile): Turn optimizable P+ loops into PP*, so that the
11357 optimization only need to work for * (ie. can use of_keep_string_jump).
11358 Remove the special case for .*\n since it is now covered by the general
11359 optimization.
11360 (re_search_2): Don't bother with `room'.
11361 (skip_one_char): New function.
11362 (skip_noops): Simplify since `memory' is not needed any more.
11363 (mutually_exclusive_p): Restructure slightly to use `switch' and
11364 add handling for "all" remaining cases.
11365 (re_match_2_internal): Change on_failure_jump_smart to use
11366 on_failure_keep_string_jump (and redirect the end-of-loop jump)
11367 rather than on_failure_jump_exclusive.
11368
11369 2000-03-19 Gerd Moellmann <gerd@gnu.org>
11370
11371 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
11372 number of bits per RGB because it's everywhere used as the depth
11373 of the visual.
11374
11375 * term.c (calculate_costs): Remove code dealing with X frames.
11376
11377 2000-03-19 Richard M. Stallman <rms@gnu.org>
11378
11379 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
11380
11381 2000-03-18 Gerd Moellmann <gerd@gnu.org>
11382
11383 * lread.c (read_integer): Unread the last char not consumed.
11384
11385 2000-03-17 Gerd Moellmann <gerd@gnu.org>
11386
11387 * xterm.c (x_update_window_cursor): Don't update in frames
11388 which are in the process of being deleted.
11389
11390 2000-03-16 Gerd Moellmann <gerd@gnu.org>
11391
11392 * Makefile.in (mostlyclean): Add `*.core'.
11393 (clean): Add `bootstrap-emacs'.
11394
11395 * lread.c (read_integer): New function.
11396 (read1): Support read syntax #o, #x, #b, #r.
11397
11398 2000-03-15 Stefan Monnier <monnier@cs.yale.edu>
11399
11400 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
11401 make sure POINTER_TO_OFFSET gives the same value before and after
11402 PREFETCH. Use `dfail' to guarantee "atomic" matching.
11403 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
11404 (debug): Now only active if > 0 rather than if != 0.
11405 (DEBUG_*): Update for the new meaning of `debug'.
11406 (print_partial_compiled_pattern): Add missing `succeed' case. Use
11407 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
11408 in `succeed_n', `jump_n' and `set_number_at'.
11409 (store_op1, store_op2, insert_op1, insert_op2)
11410 (at_begline_loc_p, at_endline_loc_p): Add prototype.
11411 (group_in_compile_stack): Move to after its arg's types are
11412 declared and add a prototype.
11413 (PATFETCH): Define in terms of PATFETCH_RAW.
11414 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
11415 (QUIT): Redefine as a nop except for NTemacs.
11416 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
11417 indentation of the greedy-op and shy-group code.
11418 (at_(beg|end)line_loc_p): Fix argument's types.
11419 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
11420 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
11421 (MATCHING_IN_FIRST_STRING): Remove.
11422 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
11423 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
11424 QUIT unconditionally.
11425
11426 2000-03-15 Gerd Moellmann <gerd@gnu.org>
11427
11428 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
11429 a sole completion.
11430
11431 * process.c (send_process): Add a hint that the function
11432 can call Lisp code to its comment.
11433
11434 * lread.c (load_dangerous_libraries): New variable.
11435 (Vbytecomp_version_regexp): New variable.
11436 (safe_to_load_p): New function.
11437 (Fload): Handle files not compiled with Emacs specially.
11438 (syms_of_lread): New Lisp variable load-dangerous-libraries.
11439
11440 2000-03-14 Gerd Moellmann <gerd@gnu.org>
11441
11442 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
11443
11444 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
11445 support functions only if HAVE_X11R6_XIM is defined.
11446 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
11447
11448 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
11449
11450 * xfns.c (X_I18N_INHIBITED): Don't define.
11451 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
11452 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
11453
11454 * config.in (HAVE_X_I18N): Moved here from xterm.h.
11455 (HAVE_X11R6_XIM): Define.
11456
11457 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
11458
11459 * xterm.c (x_term_init): Add support for X resource `synchronous'.
11460 If set, call XSynchronize.
11461
11462 2000-03-13 Stefan Monnier <monnier@cs.yale.edu>
11463
11464 * regex.c: Declare a new type `re_char' used throughout the code
11465 for the string char type. It's `const unsigned char' to match the
11466 rest of Emacs. Consistently make sure all pointers to strings use
11467 it and make sure all pointers into the pattern use `unsigned char'.
11468 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
11469 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
11470 code duplication.
11471
11472 * charset.h (GET_CHAR_AFTER_2): Remove.
11473 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
11474
11475 2000-03-12 Ken Raeburn <raeburn@gnu.org>
11476
11477 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
11478 variable before the invocation of YMF_PASS_LDFLAGS, in case both
11479 of them try to use backquotes.
11480
11481 2000-03-12 Dave Love <fx@gnu.org>
11482
11483 * unexelf.c: Restore changes of 1999-10-19.
11484 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
11485 fix its type and alignment; copy it from current process.
11486
11487 2000-03-12 Gerd Moellmann <gerd@gnu.org>
11488
11489 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
11490 has been found. Fix bug not computing timer's predecessor.
11491
11492 * fileio.c (Fread_file_name): Handle case that DIR contains a
11493 file name.
11494
11495 * window.c (Fsave_window_excursion): Doc fix.
11496
11497 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
11498
11499 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
11500
11501 * msdos.c (vga_installed): New function, code moved from
11502 dos_set_window_size.
11503 (Qbar, Qcursor_type, outside_cursor): New variables.
11504 (syms_of_msdos): Intern and staticpro them.
11505 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
11506 shape used outside Emacs when called for the first time.
11507 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
11508 cursor shape used outside Emacs.
11509 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
11510 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
11511 type has changed.
11512 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
11513 parameters specify the cursor. Make qreverse a global
11514 variable (renamed to Qreverse).
11515
11516 2000-03-09 Gerd Moellmann <gerd@gnu.org>
11517
11518 * fns.c (Fy_or_n_p): Cancel busy-cursor.
11519
11520 2000-03-08 Stefan Monnier <monnier@cs.yale.edu>
11521
11522 This is a big redesign of failure-stack and register handling, prompted
11523 by bugs revealed when trying to add shy-groups. Overall, what happened
11524 is that loops are now structured a little differently, groups can be
11525 shy and the code is a little simpler.
11526
11527 * regex.h: Update the copyright.
11528 (RE_SHY_GROUPS): New value.
11529 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
11530 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
11531
11532 * regex.c (enum re_opcode_t): Remove jump_past_alt,
11533 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
11534 on_failure_jump_(exclusive, loop and smart). Also fix the comment
11535 for (start|stop)_memory since they now only take one argument (the
11536 second has becomes unnecessary).
11537 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
11538 (print_compiled_pattern): Use %ld to printf long ints and flush to
11539 make debugging a little easier.
11540 (union fail_stack_elt): Make the integer unsigned.
11541 (struct fail_stack_type): Add a `frame' element.
11542 (INIT_FAIL_STACK): Init `frame' as well.
11543 (POP_PATTERN_OP): New macro for re_compile_fastmap.
11544 (DEBUG_PUSH, DEBUG_POP): Remove.
11545 (NUM_REG_ITEMS): Remove.
11546 (NUM_NONREG_ITEMS): Adjust.
11547 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
11548 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
11549 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
11550 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
11551 New macros.
11552 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
11553 address pushed is not the destination of the jump but the source
11554 of it instead.
11555 (NUM_FAILURE_ITEMS): Remove.
11556 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
11557 registers before the actual failure point). Don't hardcode any
11558 meaning for str==NULL anymore.
11559 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
11560 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
11561 Remove.
11562 (REG_UNSET_VALUE): Use NULL (why not?).
11563 (compile_range): Remove declaration since it doesn't exist.
11564 (struct compile_stack_elt_t): Remove inner_group_offset.
11565 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
11566 (regex_grow_registers): Remove dead code.
11567 (FIXUP_ALT_JUMP): New macro.
11568 (regex_compile): Add shy-groups Change loops to use
11569 on_failure_jump_smart&jump instead of
11570 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
11571 initial (dummy_failure_)jump. Remove c1_base (looks like unused
11572 variable to me). Use `jump' instead of `jump_past_alt' and don't
11573 bother with push_dummy_failure in alternatives since it is now
11574 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
11575 emacs' for (re)allocating the stack.
11576 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
11577 from loop when bufp->can_be_null rather than jumping to `done'.
11578 Avoid jumping backwards so as to ensure termination. Use
11579 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
11580 backreferences. Remove dead code in handling of `anychar'.
11581 (skip_noops, mutually_exclusive_p): New functions taken from the
11582 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
11583 improve mutually_exclusive_p to handle ".+\n".
11584 (lowest_active_reg, highest_active_reg)
11585 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
11586 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
11587 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
11588 variables. Push register (in `start_memory') on the stack rather
11589 than storing it in old_reg(start|end). Remove the cycle detection
11590 from `stop_memory', replaced by the use of on_failure_jump_loop
11591 for greedy loops. Add code for the new on_failure_jump_<foo>.
11592 Remove ad-hoc code in `on_failure_jump' to push more registers in
11593 the case of a loop. Take out code from `maybe_pop_jump' into
11594 separate functions and adapt it to the semantics of
11595 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
11596 and push_dummy_failure. Remove dummy_failure handling and
11597 handling of `failures to jump to on_failure_jump' (this last one
11598 was already dead code, it seems).
11599 (group_match_null_string_p, alt_match_null_string_p)
11600 (common_op_match_null_string_p): Remove.
11601
11602 2000-03-08 Dave Love <fx@gnu.org>
11603
11604 * config.in: Don't depend on __STDC__ for volatile.
11605 Add POINTER_TYPE, PTR, PROTOTYPES.
11606
11607 * hftctl.c, strftime.c: Use PROTOTYPES.
11608 * eval.c (find_handler_clause): Likewise.
11609
11610 * mem-limits.h: Use POINTER_TYPE.
11611
11612 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
11613 (memory_warnings): Declare using POINTER_TYPE.
11614
11615 2000-03-08 Gerd Moellmann <gerd@gnu.org>
11616
11617 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
11618
11619 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
11620
11621 * xfns.c: Remove obsolete code in #if 0.
11622 (Fx_focus_frame): New function.
11623
11624 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
11625
11626 * coding.c (coding_category_name): Add coding-category-utf-8,
11627 coding-category-utf-16-be, coding-category-utf-16-le.
11628 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
11629 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
11630 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
11631 (detect_coding_utf_8): New function.
11632 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
11633 UTF_16_LOW_SURROGATE_P): New macros.
11634 (detect_coding_utf_16): New function
11635 (detect_coding_mask): When priorities are specified, skip any
11636 categories that have `nil' coding-system. Fix bug of returning
11637 wrong mask when PRIORITIES is specified and detect_coding_XXX()
11638 returns a mask not set in PRIORITIES.
11639 (detect_eol_type_in_2_octet_form): New function.
11640 (detect_eol): selects detect_eol_type_XXX to call according to
11641 cooding->category_idx.
11642 (detect_coding_system): Remove `nil' coding-system in the result.
11643 (Fupdate_coding_systems_internal): Update all coding-categories.
11644
11645 * coding.h (CODING_CATEGORY_IDX_UTF_8)
11646 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
11647 New macros.
11648 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
11649 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
11650 (CODING_CATEGORY_IDX_UTF_16_LE)
11651 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
11652 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
11653 (CODING_CATEGORY_MASK_ANY): Include the above macros.
11654 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
11655
11656 2000-03-07 Gerd Moellmann <gerd@gnu.org>
11657
11658 * doc.c (Fdocumentation_property): If value is not a string,
11659 and doesn't refer to etc/DOC, evaluate it to obtain a string.
11660
11661 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
11662 close the display with XtCloseDisplay. This caused a bus error
11663 on OpenWindows.
11664
11665 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
11666 complete but not unique.
11667
11668 2000-03-06 Gerd Moellmann <gerd@gnu.org>
11669
11670 * process.c (send_process): Remove local variable `procname' that
11671 might become invalid when a GC happens. Instead, access the
11672 process name slot directly.
11673
11674 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
11675 orig_height if set.
11676
11677 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
11678 orig_height if set.
11679
11680 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
11681
11682 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
11683 glyph matrices have been freed.
11684
11685 2000-03-05 Gerd Moellmann <gerd@gnu.org>
11686
11687 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
11688 (bootstrap-temacs): Set LC_ALL to C like for temacs.
11689
11690 * xfns.c (QCdata): Moved to xdisp.c.
11691
11692 * xdisp.c (QCdata): Moved here from xfns.c.
11693 (syms_of_xdisp): Initialize QCdata.
11694
11695 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
11696
11697 * window.c (coordinates_in_window): Use
11698 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
11699 FRAME_INTERNAL_BORDER_WIDTH.
11700
11701 * xdisp.c (try_window_id): Recompute unchanged information if
11702 it is obviously invalid.
11703
11704 * xterm.c (x_term_init): Create a colormap if not using the
11705 default visual.
11706
11707 * xterm.h (select_visual): Change prototype.
11708
11709 * xfns.c (select_visual): Rewritten. Recognize user-specified
11710 visual classes.
11711 (visual_classes): New variable.
11712
11713 2000-03-04 Gerd Moellmann <gerd@gnu.org>
11714
11715 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
11716 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
11717 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
11718 (x_decode_color): Don't handle allocation of white and black specially.
11719 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
11720 XtNcolormap resources.
11721 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
11722 (Fx_create_frame): Initialize color members of x_output structure.
11723 (xpm_load): Pass colormap to XPM lib.
11724
11725 * xfaces.c (x_free_colors): Access colormap of frame using
11726 FRAME_X_COLORMAP. Be paranoid about freeing black and white
11727 when default colormap is used.
11728
11729 * xterm.c (x_term_init): Set Colormap member of x_display_info
11730 structure. Copy colormap if resource `privateColormap' is
11731 specified (PseudoColor only).
11732 (x_setup_relief_color): Access colormap of frame using
11733 FRAME_X_COLORMAP.
11734
11735 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
11736 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
11737
11738 2000-03-04 Jason Rumney <jasonr@gnu.org>
11739
11740 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
11741 other non-platform-specific equivalents.
11742 [WINDOWSNT]: Include w32term.h, fontset.h and define X
11743 specific functions and macros as their w32 equivalents where
11744 non-platform-specifics are not available.
11745 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
11746 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
11747 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
11748 (frame_update_line_height): Use macros to access f->output_data.
11749 (defined_color): Remove FIXME comments; fixed.
11750 (x_face_list_fonts, prepare_face_for_display): Put X specifics
11751 into #ifdef blocks. Add WINDOWSNT blocks.
11752 (Fx_list_fonts): Use macros for accessing font data.
11753 (set_lface_from_font_name): Different default fonts for X and
11754 WINDOWSNT.
11755 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
11756 scalable for backward compatibility.
11757 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
11758 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
11759
11760 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
11761 syms_of_w32faces.
11762
11763 * makefile.nt (w32faces.obj): Remove.
11764 (xfaces.obj): Add.
11765
11766 2000-03-03 Jason Rumney <jasonr@gnu.org>
11767
11768 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
11769 correct parameters.
11770
11771 2000-03-03 Ken Raeburn <raeburn@gnu.org>
11772
11773 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
11774 standard ELF definitions here if the system header does not.
11775
11776 2000-03-03 Gerd Moellmann <gerd@gnu.org>
11777
11778 * xterm.c (PER_CHAR_METRIC): Removed.
11779 (x_per_char_metric_1, x_default_char): New functions.
11780 (x_per_char_metric): If font's default char is invalid, return
11781 metrics of a suitably chosen usable default char.
11782 (x_draw_glyph_string_foreground): If font has an invalid default
11783 char, replace occurrences of unprintable chars with a suitably
11784 chosen usable default char.
11785
11786 2000-03-02 Gerd Moellmann <gerd@gnu.org>
11787
11788 * xterm.c (note_mouse_highlight): Return quickly if frame's
11789 glyph matrices have been freed.
11790
11791 * dispnew.c (free_glyphs): Block input while freeing matrices.
11792
11793 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
11794
11795 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
11796 Use x_free_colors.
11797
11798 * dispextern.h (x_free_colors): Add prototype.
11799
11800 * xfaces.c (x_free_colors): New function.
11801 (unload_color, free_face_colors): Use it.
11802
11803 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
11804
11805 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
11806
11807 * window.c [MSDOS]: Include msdos.h.
11808
11809 2000-03-02 Dave Love <fx@gnu.org>
11810
11811 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
11812
11813 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
11814 set C_OPTIMIZE_SWITCH for gcc.
11815
11816 2000-03-02 Kenichi Handa <handa@etl.go.jp>
11817
11818 * coding.c (coding_save_composition): Be sure to allocate
11819 composition data area in coding even if there's no composition in
11820 the current run.
11821
11822 2000-03-01 Jason Rumney <jasonr@gnu.org>
11823
11824 * w32term.c: Equivalent changes to those made to xterm.c on
11825 2000-02-25 and 2000-02-24.
11826
11827 * w32fns.c: Equivalent changes to those made to xfns.c on
11828 2000-02-25 and 2000-02-21.
11829
11830 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
11831 correct line-end convention is followed.
11832
11833 * w32menu.c [HAVE_BOXES]: Remove #undef.
11834 (single_keymap_panes): Remove code for simulating checkmarks.
11835 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
11836 Remove code for drawing simulated checkmarks.
11837 (w32_menu_show): make unibyte help string correctly.
11838 (add_menu_item): draw standard Windows checkmarks. Draw radio
11839 buttons as radio buttons if possible.
11840
11841 2000-03-01 Gerd Moellmann <gerd@gnu.org>
11842
11843 * sysdep.c (start_of_text): Don't define this function for NetBSD
11844 with ELF.
11845
11846 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
11847 Don't define.
11848 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
11849 (LINKER): Don't undef if __NetBSD__ is defined.
11850
11851 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
11852
11853 * fileio.c [__NetBSD__]: Define `unix'.
11854
11855 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
11856
11857 2000-02-29 Gerd Moellmann <gerd@gnu.org>
11858
11859 * atimer.c (start_atimer): Don't abort when timers are stopped.
11860 (append_atimer_lists): New function.
11861 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
11862 arbitrary lists of stopped and running atimers.
11863
11864 * atimer.c (cancel_atimer): Handle canceling an atimer when
11865 some timers are stopped.
11866
11867 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
11868 after canceling it.
11869
11870 * fns.c (maybe_resize_hash_table): Handle case of new size
11871 coming out as being the same as old size.
11872
11873 2000-02-27 Jason Rumney <jasonr@gnu.org>
11874
11875 * makefile.nt: Add atimer.h to dependencies.
11876 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
11877 * w32console.c: Only disable window system features for dispextern.h
11878 (initialize_w32_display): Build a display info for the console.
11879 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
11880 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
11881 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
11882 as 2 button mice.
11883 * w32gui.h (struct W32FontStruct): Revert last change after change
11884 to xdisp.c.
11885 * w32menu.c (single_submenu): Set up help string.
11886 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
11887 (w32_dialog_show): Set up help string.
11888 * w32term.c (w32_display_info_for_display): Remove unused function.
11889 (w32_draw_bitmap): Use pre-built bitmaps.
11890 (w32_initialize_display_info): New function to initialize parts of
11891 display info that are common to both GUI and console frames.
11892 (w32_term_init): Use w32_initialize_display_info. Do not set
11893 Vw32_num_mouse_buttons here, as it is not called for console
11894 frames. Build bitmaps for indicating truncated lines etc.
11895 (x_delete_display): Destroy pre-built bitmaps.
11896 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
11897 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
11898
11899 2000-02-27 Dave Love <fx@gnu.org>
11900
11901 * lisp.h: Add a bunch of prototypes.
11902
11903 2000-02-26 Kenichi Handa <handa@etl.go.jp>
11904
11905 * keyboard.c (read_char): Set `usec' correctly.
11906
11907 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
11908
11909 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
11910 `lambda', set reg[RRR] to the map index.
11911 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
11912 reg[RRR] to 0. Otherwise, set it to -1.
11913
11914 2000-02-25 Gerd Moellmann <gerd@gnu.org>
11915
11916 * emacs.c (main): Remove code snippet commented out with `//'.
11917
11918 2000-02-25 Richard M. Stallman <rms@gnu.org>
11919
11920 * fileio.c (Ffile_symlink_p): If result starts with a `/'
11921 and contains a `:', prepend `/:'.
11922
11923 * window.c (select_window_1): If selected_window is nil,
11924 don't "swap out" the buffer's point.
11925 (Fset_window_configuration): Set selected_window to nil
11926 before calling Fselect_window.
11927 (unshow_buffer): Don't set point in buffer from window's point
11928 if another more recently selected window also shows the buffer.
11929
11930 2000-02-25 Gerd Moellmann <gerd@gnu.org>
11931
11932 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
11933
11934 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
11935 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
11936 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
11937 New variables.
11938 (DEFAULT_BUSY_CURSOR_DELAY): New define.
11939 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
11940 (hide_busy_cursor): New functions.
11941 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
11942
11943 * minibuf.c (read_minibuf): Cancel busy-cursor.
11944
11945 * keyboard.c (command_loop_1): Call start_busy_cursor before
11946 Fcommand_execute and cancel_busy_cursor after it.
11947 (timer_check): Remove busy-cursor code.
11948 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
11949 cursor timer.
11950
11951 * process.c (wait_reading_process_input): Remove busy-cursor code.
11952
11953 * eval.c (Fsignal): Call cancel_busy_cursor instead of
11954 Fx_hide_busy_cursor.
11955
11956 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
11957 Remove prototyoes.
11958 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
11959
11960 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
11961
11962 * xterm.c (XTread_socket): Remove busy-cursor code.
11963
11964 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
11965 (build_frame_matrix_from_leaf_window): Put code handling
11966 glyph row's not being a slice of a frame row in #if 0.
11967 (sync_window_with_frame_matrix_rows): New function.
11968 (frame_row_to_window): New function.
11969 (mirror_line_dance): Handle copies between windows.
11970
11971 * lread.c (Fload): Use `xfree' instead of `free'.
11972 (init_obarray): Use `xmalloc' instead of `malloc'.
11973
11974 * window.c (Fset_window_buffer): Set WINDOW to the window
11975 after decoding.
11976 (coordinates_in_window): Take frame's internal border width
11977 into account.
11978
11979 2000-02-24 Gerd Moellmann <gerd@gnu.org>
11980
11981 * xterm.c (x_display_and_set_cursor): Display cursor of
11982 non-selected windows depending on the setting of
11983 cursor_in_non_selected_windows.
11984
11985 * xdisp.c (cursor_in_non_selected_windows): New variable.
11986 (syms_of_xdisp): DEFVAR_BOOL it.
11987
11988 2000-02-23 Gerd Moellmann <gerd@gnu.org>
11989
11990 * data.c (Fstring_to_number): If number is greater than what
11991 fits into an integer, return a float.
11992
11993 * eval.c (specbind): Remove references to
11994 keyword_symbols_constant_flag.
11995
11996 * data.c (keyword_symbols_constant_flag): Removed.
11997 (Fmakunbound, set_internal, syms_of_data): Remove references to
11998 keyword_symbols_constant_flag.
11999
12000 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
12001
12002 2000-02-23 Kenichi Handa <handa@etl.go.jp>
12003
12004 * syntax.c (multibyte_syntax_as_symbol): New variable.
12005 (syms_of_syntax): Declare it as a Lisp variable.
12006 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
12007 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
12008 nonzero, treat all multibyte characters as symbol.
12009 (init_syntax_once): Give syntax `word' to all multibyte characters.
12010
12011 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
12012
12013 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
12014 a deleted frame.
12015
12016 2000-02-21 Gerd Moellmann <gerd@gnu.org>
12017
12018 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
12019
12020 * xfns.c (x_window_to_frame, x_any_window_to_frame)
12021 (x_non_menubar_window_to_frame): Check the busy-cursor window.
12022
12023 2000-02-21 Dave Love <fx@gnu.org>
12024
12025 * frame.c (Vmouse_position_function): New variable.
12026 (Fmouse_position): Use it.
12027 (syms_of_frame): Install it.
12028
12029 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
12030
12031 2000-02-20 Gerd Moellmann <gerd@gnu.org>
12032
12033 * fileio.c (Finsert_file_contents): Unbind the binding of
12034 standard-output done by temp_output_buffer_setup.
12035
12036 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
12037 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
12038 (specbind, unbind_to): Handle most common case of non-constant
12039 symbol with trivial value specially.
12040
12041 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
12042
12043 2000-02-20 Richard M. Stallman <rms@gnu.org>
12044
12045 * data.c (Fmake_variable_buffer_local): Doc fix.
12046 Init found_for_buffer to 0.
12047 (Fmake_variable_frame_local): If the variable has already
12048 been buffer-local, set the check_frame field.
12049
12050 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
12051
12052 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
12053 produced for CODING_MODE_LAST_BLOCK requires.
12054
12055 2000-02-18 Dave Love <fx@gnu.org>
12056
12057 * keyboard.c (echo_keystrokes): Remove declaration.
12058 (Vecho_keystrokes) New variable.
12059 (read_char, record_menu_key, read_key_sequence): Use it to allow
12060 use of float value.
12061 (syms_of_keyboard): Change Vecho_keystrokes declaration.
12062
12063 * lread.c: Undef feature selection macros before defining.
12064
12065 2000-02-18 Gerd Moellmann <gerd@gnu.org>
12066
12067 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
12068 for symbols other than the symbol in question.
12069
12070 2000-02-17 Dave Love <fx@gnu.org>
12071
12072 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
12073
12074 2000-02-17 Gerd Moellmann <gerd@gnu.org>
12075
12076 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
12077
12078 * alloc.c (enum mem_type): Compile unconditionally.
12079
12080 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
12081
12082 * xfaces.c (tty_defined_color): Don't return faulire indication
12083 for unspecified-fg and unspecified-bg pseudo-colors.
12084
12085 2000-02-17 Gerd Moellmann <gerd@gnu.org>
12086
12087 * alloc.c (mark_object): Don't mark symbol names in pure space.
12088 (gc_sweep): Don't unmark symbol names in pure space.
12089
12090 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
12091 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
12092 [GC_MARK_STACK]: New defines.
12093 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
12094 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
12095
12096 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
12097
12098 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
12099 allocate_buffer instead of xmalloc.
12100
12101 * alloc.c (toplevel): Include setjmp.h.
12102 (PURE_POINTER_P): New define.
12103 (enum mem_type) [GC_MARK_STACK]: New enumeration.
12104 (Vdead) [GC_MARK_STACK]: New variable.
12105 (lisp_malloc): Add parameter TYPE, call mem_insert if
12106 GC_MARK_STACK is defined.
12107 (allocate_buffer): New function.
12108 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
12109 (free_float) [GC_MARK_STACK]: Set type to Vdead.
12110 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
12111 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
12112 (MEM_NIL) [GC_MARK_STACK]: New define.
12113 (struct mem_node) [GC_MARK_STACK]: New structure.
12114 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
12115 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
12116 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
12117 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
12118 (mark_stack) [GC_MARK_STACK]: New functions.
12119 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
12120 (clear_marks): Removed.
12121 (gc_sweep): Set free conses' car, free floats' type, free
12122 symbols' function to Vdead. Use lisp_free to free buffers.
12123 (init_alloc_once): Initialize Vdead.
12124 (survives_gc_p): Return non-zero for pure objects.
12125
12126 * alloc.c: Add comments throughout the file.
12127
12128 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
12129 that unblocks alarms.
12130
12131 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
12132 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
12133 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
12134
12135 * frame.c (make_frame): Set frame initiallly to `garbaged'.
12136
12137 2000-02-17 Kenichi Handa <handa@etl.go.jp>
12138
12139 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
12140 avoid infinite error signaling. Allocate sufficient memory for
12141 eol_str in the case that eoltype is Lisp_Int.
12142
12143 2000-02-17 Stefan Monnier <monnier@cs.yale.edu>
12144
12145 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
12146 depends on the previous behavior.
12147
12148 2000-02-16 Gerd Moellmann <gerd@gnu.org>
12149
12150 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
12151
12152 2000-02-15 Gerd Moellmann <gerd@gnu.org>
12153
12154 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
12155
12156 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
12157 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
12158 write(2).
12159
12160 2000-02-15 Richard M. Stallman <rms@gnu.org>
12161
12162 * data.c (set_internal): Don't make variable buffer-local
12163 if within a let-binding for the same buffer.
12164 (let_shadows_buffer_binding_p): New function.
12165
12166 * eval.c (specbind): For buffer-local value,
12167 record the current buffer also.
12168 (unbind_to): Cope with that change.
12169
12170 2000-02-15 Gerd Moellmann <gerd@gnu.org>
12171
12172 * window.c (Fsave_window_excursion): Doc fix.
12173
12174 2000-02-15 Stefan Monnier <monnier@cs.yale.edu>
12175
12176 * syntax.c (back_comment): Make sure we only consider comment-starters
12177 of the relevant style and return -1 in case of a failure to find the
12178 beginning of the comment.
12179 (Fforward_comment): If back_comment fails, go back to the position just
12180 after the comment-end.
12181 (scan_lists): Add comment describing a very minor bug.
12182
12183 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
12184
12185 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
12186 `completion-regexp-list' in the docstring.
12187
12188 2000-02-14 Dave Love <fx@gnu.org>
12189
12190 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
12191
12192 2000-02-14 Stefan Monnier <monnier@cs.yale.edu>
12193
12194 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
12195 to Emacs' syntax. Also fix the comment about set/not-set meanings
12196 since Emacs syntax is not the value 0 any more.
12197 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
12198 since it's now part of RE_SYNTAX_EMACS.
12199
12200 2000-02-12 Dave Love <fx@gnu.org>
12201
12202 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
12203
12204 2000-02-12 Gerd Moellmann <gerd@gnu.org>
12205
12206 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
12207
12208 2000-02-12 Dave Love <fx@gnu.org>
12209
12210 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
12211
12212 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
12213 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
12214 * s/hpux.h: Don't define HAVE_VFORK.
12215
12216 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
12217
12218 * s/nextstep.h: Don't define HAVE_ALLOCA.
12219
12220 * config.in: Add vfork bits.
12221
12222 2000-02-12 Gerd Moellmann <gerd@gnu.org>
12223
12224 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
12225 unwind function to undo the effect of stopping atimers.
12226
12227 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
12228
12229 * atimer.c (stopped_atimers): New variable.
12230 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
12231 New functions.
12232
12233 * atimer.h (stop_other_atimers, run_all_atimers)
12234 (unwind_stop_other_atimers): Add function prototypes.
12235
12236 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
12237
12238 2000-02-11 Ken Raeburn <raeburn@gnu.org>
12239
12240 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
12241 library may depend on jpeg.
12242 (atimer.o): Depends on atimer.c.
12243
12244 2000-02-11 Kenichi Handa <handa@etl.go.jp>
12245
12246 * insdel.c (del_range_1): Call update_compositions.
12247 (del_range_both): Call update_compositions just once..
12248
12249 2000-02-10 Dave Love <fx@gnu.org>
12250
12251 * xfns.c (create_frame_xic): Fix initialization of automatic
12252 aggregates for pcc.
12253
12254 2000-02-09 Kenichi Handa <handa@etl.go.jp>
12255
12256 * ccl.c (CCL_MAKE_CHAR): New macro.
12257 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
12258 registers by CCL_MAKE_CHAR before calling translate_char.
12259 <CCL_TranslateCharacterConstTbl> Likewise.
12260
12261 2000-02-08 Dave Love <fx@gnu.org>
12262
12263 * lread.c (__EXTENSIONS__): Define.
12264
12265 2000-02-08 Gerd Moellmann <gerd@gnu.org>
12266
12267 * puresize.h (BASE_PURESIZE): Increase to 650000.
12268
12269 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
12270
12271 * msdos.c (XMenuActivate): Turn off the cursor after displaying
12272 the help message.
12273
12274 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
12275
12276 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
12277 md, mh, mb, mr, and me to the fake termcap entry.
12278
12279 2000-02-06 Ken Raeburn <raeburn@gnu.org>
12280
12281 * sound.c (sound_cleanup): Don't call device close routine if the
12282 function pointer is null.
12283
12284 2000-02-06 Andrew Innes <andrewi@gnu.org>
12285
12286 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
12287 around image definitions and prototypes.
12288 (gamma_correct) [WINDOWSNT]: New prototype.
12289
12290 * w32term.c (x_make_frame_visible): Replace call to
12291 input_poll_signal with poll_for_input.
12292
12293 * window.c [WINDOWSNT]: Include w32term.h.
12294
12295 * xdisp.c [WINDOWSNT]: Include w32term.h.
12296
12297 * makefile.nt: Add dependencies on w32gui.h.
12298 (OBJ1): Include atimer.obj.
12299 ($(BLD)\atimer.obj): New dependency rule.
12300
12301 * w32.c (sigmask): New function (does nothing).
12302 (sigunblock): Ditto.
12303
12304 * frame.c [WINDOWSNT]: Include w32term.h.
12305
12306 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
12307
12308 * lread.c (syms_of_lread): Fix literal newlines.
12309
12310 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
12311 the string constant limit (2048 bytes) in MSVC.
12312 (main): Ditto.
12313
12314 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
12315
12316 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
12317 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
12318 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
12319 dispatch the event.
12320
12321 2000-02-04 Dave Love <fx@gnu.org>
12322
12323 * fileio.c: Remove some unused vars.
12324 (_GNU_SOURCE): Define (for euidaccess).
12325
12326 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
12327
12328 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
12329 gcpro1, gcpro2.
12330 (read_minibuf): Deal with allow_props correctly.
12331
12332 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
12333
12334 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
12335
12336 2000-02-03 Ken Raeburn <raeburn@gnu.org>
12337
12338 * search.c (compile_pattern): If a cache entry has a nil regexp,
12339 fill in that entry instead of clobbering a previously cached
12340 string regexp.
12341
12342 2000-02-02 Ken Raeburn <raeburn@gnu.org>
12343
12344 * puresize.h (BASE_PURESIZE): Increase to 610000.
12345
12346 2000-02-02 Gerd Moellmann <gerd@gnu.org>
12347
12348 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
12349 can GC.
12350
12351 2000-02-02 Kenichi Handa <handa@etl.go.jp>
12352
12353 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
12354 instead of incrementing ic directly.
12355 <CCL_WriteExprConst> Likewise.
12356 <ccl_set_expr>: Set ic to jump_address.
12357
12358 * fileio.c (e_write): Fix the handling of
12359 CODING_FINISH_INSUFFICIENT_SRC.
12360
12361 2000-02-01 Dave Love <fx@gnu.org>
12362
12363 * editfns.c (Fpropertize): Doc fix.
12364
12365 * process.c (Fstart_process): Doc fix.
12366
12367 * eval.c: Fix various doc strings not to duplicate information
12368 from help-manyarg-func-alist.
12369
12370 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
12371
12372 * doc.c (Vhelp_manyarg_func_alist): New variable.
12373 (Fdocumentation): Use it.
12374 (syms_of_doc): Define it.
12375
12376 2000-01-31 Gerd Moellmann <gerd@gnu.org>
12377
12378 * xterm.c (xim_open_dpy): Remove unused local variable.
12379
12380 * emacs.c (USAGE): Use term `display options' instead of `X options'.
12381
12382 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
12383 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
12384
12385 * fns.c (sweep_weak_table): New function.
12386 (sweep_weak_hash_tables): Use it. Keep on marking until there
12387 is no more change.
12388
12389 2000-01-30 Gerd Moellmann <gerd@gnu.org>
12390
12391 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
12392 that XTread_socket does not crash by trying to call XNoOp on a
12393 closed display.
12394
12395 2000-01-30 Jason Rumney <jasonr@gnu.org>
12396
12397 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
12398 Change selected_frame to SELECTED_FRAME ().
12399 (w32_console_mouse_position): Remove #ifndef MULE from around
12400 `insist' parameter.
12401
12402 * makefile.nt: Remove dosfns.obj.
12403
12404 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
12405
12406 * w32fns.c (w32_defined_color): Check for valid frame before
12407 applying gamma correction. Eliminate dependency on frame elsewhere.
12408 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
12409 (w32_to_x_font): Use resx and resy not height_in and width_in.
12410 (x_to_w32_font): Doc fix.
12411 (xlfd_strip_height): New function to strip and return font height.
12412 (w32_font_match): Compare height separately from rest of xlfd
12413 spec, using xlfd_strip_height.
12414
12415 * w32term.c (w32_term_init): Swap resx and height_in, resy and
12416 width_in. Use w32_defined_color in place of defined_color.
12417
12418 * w32faces.c: Merge more of DOS and X specifics in preparation for
12419 merge with xfaces.c.
12420 (defined_color): Remove FIXME comment.
12421 (tty_color_name): Provide w32-specific function.
12422 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
12423
12424 * w32console.c (turn_on_face, turn_off_face): Removed.
12425 (w32_face_attributes): New function.
12426 (Global_variables): Reduce scope where possible.
12427 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
12428 fill attribute.
12429 (hl_mode): Don't modify text attributes.
12430 (write_glyphs): Don't do anything if len <= 0. Use
12431 w32_face_attributes to get attributes for drawing. Write
12432 terminating codes using char_attr_normal.
12433 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
12434 (update_begin, update_end): Likewise.
12435 (vga_stdcolor_name): New function.
12436 (initialize_w32_display): Remove char_attr_reverse and char_attr.
12437 (Fset_screen_color): Remove char_attr_reverse.
12438
12439 2000-01-29 Gerd Moellmann <gerd@gnu.org>
12440
12441 * xfns.c (xic_set_preeditarea): Take window parameter and
12442 window-relative pixel-positions.
12443
12444 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
12445 is its frame's selected window.
12446 (xim_instantiate_callback): Likewise.
12447
12448 * xfns.c (x_create_im): Removed.
12449 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
12450 (supported_xim_styles): Renamed from supported_styles.
12451 (best_xim_style): Renamed from best_style.
12452 (create_frame_xic): Renamed from xic_create_frame.
12453 (free_frame_xic): Renamed from xic_destroy_frame.
12454
12455 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
12456
12457 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
12458 our frames, call XFilterEvent with 2nd parameter `None'.
12459 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
12460 returning XBufferOverflow.
12461 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
12462 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
12463 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
12464 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
12465 (xim_initialize, xim_close)
12466 [HAVE_X_I18N && HAVE_X11R6]: New functions.
12467 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
12468 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
12469 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
12470
12471 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
12472 and `xim_styles'.
12473 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
12474 `xic_style' and `xic_xfs'.
12475 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
12476 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
12477 (FRAME_XIM): Removed.
12478
12479 * xfns.c (supported_styles): New variable.
12480 (DEFAULT_STYLE, DEFAULT_FONT): New macros
12481 (xic_create_xfontset, best_style, xic_create_frame)
12482 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
12483 (xic_set_xfontset): New functions.
12484
12485 2000-01-28 Dave Love <fx@gnu.org>
12486
12487 * s/irix6-5.h: Revert last change after change to irix5-0.h.
12488
12489 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
12490
12491 2000-01-28 Gerd Moellmann <gerd@gnu.org>
12492
12493 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
12494 for *scratch* if it already existed.
12495
12496 * emacs.c (USAGE): New macro.
12497 (main): Use it to display usage information.
12498
12499 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
12500
12501 Support for the menu-help feature:
12502
12503 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
12504
12505 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
12506 part of the line to the termscript file.
12507 (IT_clear_to_end): Clear the entire line, not just its beginning.
12508 (menu_help_message, prev_menu_help_message): New variables.
12509 (IT_menu_make_room): Make room for the help_text member.
12510 (IT_menu_display): New argument disp_help; all callers changed.
12511 If disp_help is non-zero, store the help text of the active menu
12512 item in menu_help_message.
12513 (XMenuAddPane): Initialize the help_text member to NULL.
12514 (XMenuAddSelection): New argument help_text. Store it in the
12515 XMenu structure.
12516 (XMenuActivate): New argument help_callback. If the value of
12517 menu_help_message has changed since the last time, display the
12518 menu help message text while waiting for the mouse to move. Clear
12519 the echo area before exiting.
12520 (XMenuDestroy): Free the help_text member.
12521
12522 2000-01-27 Gerd Moellmann <gerd@gnu.org>
12523
12524 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
12525 XMenuAddSelection. Pass help callback to XMenuActivate.
12526 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
12527
12528 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
12529
12530 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
12531 and EMACS_SET_USECS.
12532
12533 2000-01-26 Dave Love <fx@gnu.org>
12534
12535 * editfns.c (Fchar_after, Fchar_before): Doc fix.
12536
12537 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
12538 an error may be signalled.
12539
12540 2000-01-26 Gerd Moellmann <gerd@gnu.org>
12541
12542 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
12543 LD_SWITCH_SYSTEM inherited from irix5-0.h.
12544
12545 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
12546
12547 2000-01-25 Gerd Moellmann <gerd@gnu.org>
12548
12549 * charset.c (Fstring): If there is a multibyte char among
12550 the args, always return a multibyte string.
12551
12552 2000-01-25 Gerd Moellmann <gerd@gnu.org>
12553
12554 * sysdep.c (sys_select): Turn atimers off and on instead of
12555 recording and restoring old alarm handler
12556
12557 * process.c (toplevel): Include atimer.h.
12558 (create_process_1): Rewritten.
12559 (create_process): Use atimers instead of alarm.
12560 (wait_reading_process_input) [hpux]: Turn atimers off instead
12561 of turning off SIGALRM.
12562 (wait_reading_process_input): Turn off atimers instead off
12563 calling stop_polling.
12564
12565 * emacs.c (main): Call init_atimer.
12566
12567 * keyboard.c (toplevel): Include systime.h and atimer.h.
12568 (polling_for_input): Removed because unused.
12569 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
12570 (poll_timer): New variable.
12571 (poll_for_input, poll_for_input_1): New functions.
12572 (start_polling, stop_polling): Rewritten.
12573
12574 * keyboard.h (polling_for_input): Removed.
12575
12576 * atimer.h, atimer.c: New files.
12577
12578 * Makefile.in (obj): Add atimer.o.
12579 (atimer.o): New target.
12580
12581 * blockinput.h (pending_atimers): Add extern declaration.
12582 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
12583
12584 * lisp.h (popup_activated_flag): Add extern declaration.
12585
12586 * xmenu.c (popup_activated_flag): Make externally visible.
12587 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
12588 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
12589
12590 * xterm.c (toplevel): Include atimer.h.
12591 (toolkit_scroll_bar_interaction): New variable.
12592 (Fxt_process_timeouts): Removed.
12593 (x_process_timeouts): New function.
12594 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
12595 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
12596 (x_make_frame_visible): Call poll_for_input_1 instead of
12597 input_poll_signal. Don't call alarm.
12598 (x_initialize): Install timer calling x_process_timeouts.
12599
12600 2000-01-24 Dave Love <fx@gnu.org>
12601
12602 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
12603 Don't use -cckr -- apparently not now necessary.
12604
12605 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
12606
12607 * msdos.c (IT_menu_display): Truncate long menu lines at the right
12608 screen boundary.
12609
12610 2000-01-23 Jason Rumney <jasonr@gnu.org>
12611
12612 * w32fns.c (w32_defined_color): Apply gamma correction before
12613 trying to map to the palette.
12614 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
12615 to w32_clear_rect.
12616
12617 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
12618 here. Callers changed to always pass real device context.
12619 (w32_draw_bitmap): Likewise.
12620 (w32_get_glyph_overhangs): Likewise.
12621 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
12622 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
12623 pfnSetScrollInfo and SetScrollRange.
12624 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
12625 back into MULE characters after decoding them.
12626 (x_get_glyph_face_and_encoding): Likewise.
12627 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
12628 GetCharABCWidthsW fails, since this is defined on Windows 9x.
12629 (x_produce_glyphs): Calculate per char metrics for a character
12630 that we know exists in default font when font_not_found_p is true.
12631
12632 2000-01-22 Jason Rumney <jasonr@gnu.org>
12633
12634 * makefile.nt (intervals.obj, composite.obj): New modules.
12635 (composite.h): Added as dependency where appropriate.
12636
12637 * w32gui.h (XGCValue): New struct for emulating X GCs.
12638
12639 * w32term.h (XCharStruct): New struct for emulating X.
12640
12641 * w32console.c (turn_on_face, turn_off_face): New functions.
12642 (change_line_highlight): New prototype for new redisplay.
12643 (write_glyphs): Support multibyte text. Support faces.
12644
12645 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
12646
12647 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
12648 throughout. struct frame * in place of FRAME_PTR.
12649 Skeleton support for images, toolbars, tooltips from xfns.c.
12650 (Fx_create_frame): Use system default for default scroll bar width.
12651 (w32_get_arg): Renamed from x_get_arg.
12652 (Fx_file_dialog): New function.
12653 (w32_list_fonts): Check cache before asking system.
12654 (Vw32_enable_synthesized_fonts): New variable.
12655 (Vw32_enable_italics): Obsolete, removed.
12656
12657 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
12658 Use SELECTED_FRAME macro.
12659
12660 * w32menu.c: Add skeleton support for help strings on menus.
12661 (add_menu_item): Native checkbox and radio support added, but not
12662 yet enabled due to bugs.
12663 (push_menu_item): Add parameters type, selection and help.
12664 Callers updated.
12665 Formatting changes to reduce unnecessary diffs with xmenu.c.
12666
12667 * w32select.c (Fw32_set_clipboard_data): Update call to
12668 find_charset_in_str.
12669
12670 * w32term.c: Complete rewrite for new redisplay based on new
12671 xterm.c with necessary sections merged back in from old w32term.c.
12672
12673 2000-01-21 Richard M. Stallman <rms@gnu.org>
12674
12675 * data.c (set_internal): Further fix in same criterion.
12676
12677 2000-01-20 Richard M. Stallman <rms@gnu.org>
12678
12679 * data.c (set_internal): Fix the criteria for whether
12680 to swap out the old cached binding.
12681
12682 2000-01-19 Dave Love <fx@gnu.org>
12683
12684 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
12685
12686 2000-01-18 Kenichi Handa <handa@etl.go.jp>
12687
12688 * regex.c (re_compile_fastmap): While checking a range table for
12689 `charset', skip flag bits for a character class correctly.
12690
12691 2000-01-17 Gerd Moellmann <gerd@gnu.org>
12692
12693 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
12694
12695 * xfns.c (x_window): Call lw_create_widget with new parameter list.
12696
12697 * widget.c (EmacsFrameSetCharSize): Change size of children first
12698 because of problems with main window geometry management under Lesstif.
12699
12700 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
12701 MENU_ITEMS_ITEM_.*.
12702 (MENU_ITEMS_ITEM_HELP): New enumerator.
12703 (push_menu_item): Add parameter HELP. Record help in menu_items.
12704 (single_menu_item, single_submenu, list_of_items): Call
12705 push_menu_item with new parameter.
12706 (single_submenu): Set help string in widget value.
12707 (menu_highlight_callback): New function.
12708 (set_frame_menubar): Call lw_create_widget with new
12709 parameter list.
12710 (xmenu_show, xdialog_show): Ditto.
12711
12712 2000-01-13 Gerd Moellmann <gerd@gnu.org>
12713
12714 * sound.c (Fplay_sound): Improve doc string.
12715
12716 2000-01-11 Richard M. Stallman <rms@gnu.org>
12717
12718 * lisp.h (set_internal): Enter the new arg.
12719
12720 * eval.c (specbind): Record buffer-local variables specially,
12721 indicating which buffer's binding was saved.
12722 (unbind_to): Restore buffer-local variables specially
12723 in the proper buffer.
12724
12725 * data.c (set_internal): New arg BUF.
12726
12727 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
12728 * data.c (Fset): Pass new arg to set_internal.
12729 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
12730
12731 2000-01-11 Gerd Moellmann <gerd@gnu.org>
12732
12733 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
12734
12735 2000-01-11 Richard M. Stallman <rms@gnu.org>
12736
12737 * minibuf.c (Ftry_completion): Doc fix.
12738
12739 2000-01-11 Gerd Moellmann <gerd@gnu.org>
12740
12741 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
12742 vector, too.
12743
12744 2000-01-11 Andreas Schwab <schwab@suse.de>
12745
12746 * coding.c (code_convert_region): Initialize total_skip.
12747
12748 2000-01-08 Dave Love <fx@gnu.org>
12749
12750 * eval.c (Fuser_variable_p): Check customizability too.
12751
12752 2000-01-07 Gerd Moellmann <gerd@gnu.org>
12753
12754 * minibuf.c (Fcompleting_read): Doc fix.
12755
12756 2000-01-05 Gerd Moellmann <gerd@gnu.org>
12757
12758 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
12759 -L /usr/local/lib.
12760
12761 * xfns.c (x_create_im): New function to set IM and IC of a frame.
12762 Check that input style is supported before trying to create an
12763 IC for it.
12764 (x_window): Call x_create_im.
12765
12766 2000-01-04 Gerd Moellmann <gerd@gnu.org>
12767
12768 * xfns.c (current_gif_memory_src): New variable.
12769 (gif_load): Record the address of the current memory source
12770 in current_gif_memory_src.
12771 (gif_read_from_memory): Use current_gif_memory_src.
12772
12773 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
12774 macros statement form.
12775
12776 * sound.c (struct sound): Renamed from struct sound_file.
12777 (struct sound): Add members `data' and `header_size'.
12778 (enum sound_attr): Add SOUND_DATA.
12779 (current_sound, current_sound_device): Variables renamed from
12780 sound_file and sound_device.
12781 (parse_sound): Parse :data.
12782 (parse_sound): Handle sound data in strings.
12783 (find_sound_type): Function renamed from find_sound_file_type.
12784 (wav_init, au_init): Fail if sound's header_size is smaller than
12785 needed header size.
12786 (wav_play, au_play): Play sounds from string data.
12787
12788 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
12789
12790 * lisp.h: Add prototype for allocate_string_data.
12791
12792 * alloc.c (Fgarbage_collect): Return number of live and free strings.
12793
12794 * alloc.c (mark_buffer): Remove code in #if 0.
12795 (gc_sweep): Ditto.
12796 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
12797 (strings_consed): New variable.
12798 (allocate_string): Set it.
12799 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
12800 (Fmemory_use_counts): Return strings_consed. Use Flist.
12801
12802 * alloc.c: General cleanup in comments etc. Remove conditional
12803 compilation for `standalone'.
12804
12805 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
12806
12807 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
12808 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
12809 (DONT_COPY_FLAG): Removed.
12810 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
12811 (struct sdata, struct sblock): New
12812 (struct string_block): Rewritten.
12813 (STRINGS_IN_STRING_BLOCK): New macro.
12814 (oldest_sblock, current_sblock, total_strings, total_free_strings)
12815 (large_sblocks, string_blocks, string_free_list): New variables.
12816 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
12817 (init_strings): Rewritten.
12818 (allocate_string, allocate_string_data, compact_small_strings)
12819 (free_large_strings, sweep_strings): New functions.
12820 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
12821 (struct string_block_head, current_string_block)
12822 (first_string_block, large_string_blocks, STRING_FULLSIZE)
12823 (STRING_PAD): Removed.
12824 (make_uninit_multibyte_string, make_pure_string): Rewritten.
12825 (Fgarbage_collect): Don't set mark bit in large strings.
12826 (mark_object): Mark strings differently. Mark symbol names
12827 differently.
12828 (survives_gc_p): Test marked strings differently.
12829 (gc_sweep): Sweep strings differently, unmark strings in
12830 symbol names.
12831 (compact_strings): Removed.
12832
12833 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
12834
12835 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
12836 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
12837
12838 2000-01-04 Kenichi Handa <handa@etl.go.jp>
12839
12840 * fileio.c (Finsert_file_contents): Signal error if visiting file
12841 in a non-empty buffer.
12842
12843 * term.c (encode_terminal_code): Fix the previous change.
12844
12845 2000-01-03 Gerd Moellmann <gerd@gnu.org>
12846
12847 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
12848 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
12849
12850 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
12851
12852 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
12853
12854 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
12855 need to test for MSDOS frames.
12856
12857 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
12858
12859 * dosfns.c (unspecified_colors): Remove.
12860 (msdos_stdcolor_idx): Use global variables unspecified_fg and
12861 unspecified_bg.
12862 (msdos_stdcolor_name): Return strings for unspecified fore- and
12863 back-ground colors.
12864
12865 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
12866 (syms_of_xfaces): Remove their staticpro's.
12867 (tty_color_name): Return Lisp strings for unspecified fore- and
12868 back-ground colors.
12869 (Finternal_set_lisp_face_attribute): Remove the special treatment
12870 for Qunspecified_{f,b}g.
12871 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
12872
12873 2000-01-03 Gerd Moellmann <gerd@gnu.org>
12874
12875 * xdisp.c (reseat_at_next_visible_line_start): Position before
12876 newline only if ending up on a newline.
12877 (next_element_from_ellipsis): Return success. Handle case of
12878 displaying no ellipsis. Fix case of ellipsis defined in display table.
12879 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
12880 returns 0.
12881
12882 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
12883
12884 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
12885 (Fcolor_supported_p): Renamed from face-color-supported-p.
12886
12887 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
12888
12889 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
12890 list of colors renamed to tty-defined-color-alist.
12891 (tty_color_name): Pass the frame to tty-color-by-index.
12892 (realize_tty_face): tty-color-alist is now a function which
12893 accepts the frame as argument.
12894
12895 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
12896
12897 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
12898
12899 * term.c (insert_glyphs): Pass glyph, not &glyph, to
12900 encode_terminal_code.
12901
12902 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
12903
12904 * dispnew.c (mode_line_string): Support termcap frames as well.
12905
12906 2000-01-01 Gerd Moellmann <gerd@gnu.org>
12907
12908 * syntax.c (Fforward_word): Undo previous change.
12909
12910 * editfns.c (Fconstrain_to_field): Don't constrain if
12911 inhibit-field-text-motion is non-nil.
12912 (Fline_beginning_position): Undo previous change.
12913 (Fline_end_position): Ditto.
12914
12915 * syntax.c (Fforward_word): Notice field boundaries only if
12916 inhibit-field-text-motion is nil.
12917
12918 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
12919
12920 * editfns.c (Vinhibit_field_text_motion): New variable.
12921 (inhibit-field-text-motion): New DEFVAR_LISP.
12922 (Fline_beginning_position, Fline_end_position): Notice field
12923 boundaries only if inhibit-field-text-motion is nil.
12924
12925 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
12926 All calls adjusted.
12927 (x_build_heuristic_mask): Likewise.
12928 (xbm_load_image_from_file): Change error output.
12929 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
12930 (gif_load, gs_load, x_kill_gs_process): Ditto.
12931
12932 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
12933 color indices when accessing raster pixels.
12934 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
12935 one of :file or :data.
12936 (enum pbm_keyword_index): Add PBM_DATA.
12937 (pbm_format): Add :data.
12938 (pbm_image_p): Allow either :file or :data.
12939 (pbm_read_file): New function.
12940 (pbm_scan_number): Rewritten to read from string.
12941 (pbm_load): Support :data.
12942
12943 See ChangeLog.8 for earlier changes.
12944
12945 ;; Local Variables:
12946 ;; coding: iso-2022-7bit
12947 ;; End:
12948
12949 Copyright (C) 2001 Free Software Foundation, Inc.
12950 Copying and distribution of this file, with or without modification,
12951 are permitted provided the copyright notice and this notice are preserved.