Include config.h, not ../src/config.h and systime.h, not ../src/systime.h.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
d876f455
MB
12001-10-07 Miles Bader <miles@gnu.org>
2
3 * Makefile.in (lisp, shortlisp): Add `button.elc'.
4
0037e2f2
KR
52001-10-07 Ken Raeburn <raeburn@gnu.org>
6
b056f36d
KR
7 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a
8 Lisp_Object.
9
0037e2f2
KR
10 * lisp.h (Ffield_end): Declare.
11
1a4372ef
GM
122001-10-07 Gerd Moellmann <gerd@gnu.org>
13
a4a74e8c
GM
14 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK.
15
16 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM.
17
18 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P.
19
20 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P.
21
1a4372ef
GM
22 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix.
23 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM.
24
25 * alloc.c (inhibit_garbage_collection): Simplify.
26 (Fmemory_use_counts): Ditto.
27
28 * data.c (most_positive_fixnum, most_negative_fixnum): New
29 variables.
30 (syms_of_data): DEFVAR_INT most-positive-fixnum and
31 most-negative-fixnum.
32
33 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM)
34 (FIXNUM_OVERFLOW_P): New macros.
35
4650e362
MB
362001-10-06 Miles Bader <miles@gnu.org>
37
38 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and
39 scroll_bar_bottom_shadow_pixel fields.
40 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors
41 for the shadows, and tell the toolkit about them if we succeed.
42 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]:
43 Free scroll-bar shadow colors.
44 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]:
45 Free scroll-bar shadow colors when the background color changes.
46 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]:
47 Initialize scroll-bar shadow-color fields.
48
ace64e0a
GM
492001-10-05 Gerd Moellmann <gerd@gnu.org>
50
51 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there.
52
ec66bdc7
MB
532001-10-05 Miles Bader <miles@gnu.org>
54
55 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents)
56 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents):
57 New functions (were in simple.el).
58 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word)
59 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them.
60 (syms_of_minibuf): Initialize them.
61
a0fb4492
GM
622001-10-05 Gerd Moellmann <gerd@gnu.org>
63
64 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions.
65 (tiff_load): Install them as error and warning handler.
66
0bcf87c1
AI
672001-10-04 Andrew Innes <andrewi@gnu.org>
68
69 * w32fns.c (x_to_w32_color): Fix argument to alloca.
70 (w32_load_system_font): Don't believe what GetLanguageFontInfo
71 says; query codepage info directly to determine if font is double
72 byte.
73 (x_to_w32_charset): Handle private format for unknown charsets.
74 Handle wildcards in charset spec, by ignoring them.
75 (w32_codepage_for_font): Fix argument to alloca. Don't remove
76 "*-" prefix from charset.
77 (x_to_w32_font): Enlarge remainder array for safety. Specifically
78 handle the truncated font spec form constructed by font_list_1, so
79 that we correctly identify the charset fields. Don't remove "*-"
80 prefix from charset.
81 (w32_list_synthesized_fonts): Fix argument to alloca.
82
c89e4bc5
GM
832001-10-04 Stefan Monnier <monnier@cs.yale.edu>
84
85 * window.h (MINI_WINDOW_P): Use NILP.
86
87 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT.
88
89 * termhooks.h (struct input_event): Use proper type for `kind'.
90
912001-10-04 Gerd Moellmann <gerd@gnu.org>
92
93 This handles unknown keysyms better than before. For example,
94 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment,
95 Emacs formerly completely ignored F5. With the change, it derives
96 a key symbol from the name of the X keysym, `ccaron' in this case.
97 Reported by Martin Buchholz.
98
99 * xterm.c (XTread_socket): Return a non_ascii_keystroke for
100 unknown keysyms.
101
102 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know
103 that EVENT->code isn't a function key, use the keysym's name.
104
1052001-10-04 Gerd Moellmann <gerd@gnu.org>
106
107 FOREACH is a macro that should make it easier to loop over Lisp
108 lists with checks for cycles and proper lists.
109
110 * lisp.h (LIST_END_P, FOREACH): New macros.
111
1122001-10-04 Gerd Moellmann <gerd@gnu.org>
113
114 On some systems, XtCloseDisplay seems to cause a SIGSEGV when
115 called for a lost connection. Prevent dumping core in this case.
116 Instead print the X error, and exit. On user request.
117
118 * xterm.c (error_msg): New variable.
119 (x_fatal_error_signal): New function.
120 (x_connection_closed): Set error_msg. Install x_fatal_error_signal
121 as fatal_error_signal_hook around the call to XtCloseDisplay.
122
123 * emacs.c (fatal_error_signal_hook): New variable.
124 (fatal_error_signal): Call that function.
125
1262001-10-04 Gerd Moellmann <gerd@gnu.org>
127
128 With this, Emacs prints how much pure storage it will
129 approximately need in case pure storage overflows while dumping.
130
131 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow):
132 New variables.
133 (init_alloc_once): Initialize new variables.
134 (PURE_POINTER_P): Use new variables.
135 (pure_alloc): If pure storage overflows, allocate from the heap.
136 (check_pure_size): New function.
137 (Fgarbage_collect): Don't GC if pure storage has overflowed.
138
139 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t.
140 (check_pure_size): Add prototype.
141
142 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size.
143
1442001-10-04 Gerd Moellmann <gerd@gnu.org>
145
146 This adds a post-gc-hook that's run with GC inhibited.
147 Requested by Francois Pinard. XEmacs has it. Added to NEWS.
148
149 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables.
150 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook.
151 (Fgarbage_collect): Run post-gc-hook.
152
1532001-10-04 Gerd Moellmann <gerd@gnu.org>
154
155 This adds `defvaralias' and `indirect-variable'. Changes not
156 directly related to this feature are there to gain the same
157 performance again as before variable aliases.
158
159 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C
160 code to get and set symbol values, to take defvaralias into account.
161
162 (Note: the new `constant' bit-flag in symbols would make it
163 possible to define arbitrary read-only variables, e.g. with
164 `defconst'.)
165
166 Documentation is in lispref/variables.texi. Added to NEWS.
167
168 * lisp.h (enum symbol_interned): New enumeration.
169 (struct Lisp_Symbol): Remove member `obarray', add
170 `indirect_variable', `constant', and `interned'.
171 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P)
172 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros.
173 (indirect_variable): Add prototype.
174
175 * print.c (print_preprocess, print_object): Test internedness of
176 symbols differently.
177
178 * lread.c (Fintern, Funintern): Set symbol's interned and constant
179 bit-fields.
180 (init_obarray): Likewise for t and nil.
181
182 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
183 (Fdefvaralias): New function.
184 (specbind): Simplify the test if symbol is a constant.
185 (syms_of_eval): Defsubr Fdefvaralias.
186
187 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE.
188 (Qcyclic_variable_indirection): New variable.
189 (Fkeywordp): Check for internedness differently.
190 (Fmakunbound): Simplify the test if symbol is a constant.
191 (indirect_variable, Findirect_variable): New functions.
192 (swap_in_symval_forwarding): If SYMBOL is an alias, use the
193 aliased symbol.
194 (let_shadows_buffer_binding_p): Check for variable aliases.
195 (set_internal): Simplify the test if SYMBOL is a constant.
196 If SYMBOL has a buffer-local value and is an alias, use the aliased
197 symbol instead.
198 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr
199 Sindirect_variable.
200
201 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE.
202 (Fbyte_code) <varset>: Simplify the test if symbol's value can be
203 set directly.
204
205 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol.
206
207 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c:
208 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/
209 SET_SYMBOL_VALUE macros instead of accessing symbol values directly.
210
ba88ff28
MB
2112001-10-03 Miles Bader <miles@gnu.org>
212
213 * callproc.c (syms_of_callproc): Explicitly state in the
214 documentation for `process-environment' that earlier entries take
215 precedence over later ones.
216
ae1a9581
MB
2172001-10-02 Miles Bader <miles@gnu.org>
218
219 * textprop.c (Fnext_char_property_change)
220 (Fprevious_char_property_change): Remove reference to non-existant
221 argument OBJECT from doc-string.
222
257e3f57
GM
2232001-10-01 Gerd Moellmann <gerd@gnu.org>
224
225 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p.
226 (try_window_id): Skip back over lines ending in a newline from a
227 string.
228
229 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>:
230 New bit flag
231
c1f29759
RS
2322001-10-01 Richard M. Stallman <rms@gnu.org>
233
234 * search.c (Freplace_match): Doc fix.
235
c30dce3d
AI
2362001-09-28 Andrew Innes <andrewi@gnu.org>
237
238 * w32menu.c (set_frame_menubar): Take into account that
239 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
240 <raeburn@gnu.org>.
241
03be5931
EZ
2422001-09-30 Eli Zaretskii <eliz@is.elta.co.il>
243
244 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix.
245
75bec752
PJ
2462001-09-28 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
247
248 * s/gnu-linux.h: Fix a typo in comment.
249
83100e0a
AS
2502001-09-28 Andreas Schwab <schwab@suse.de>
251
252 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z
253 nocombreloc, in case -z combreloc is the default.
254
a74b48cf
GM
2552001-09-28 Gerd Moellmann <gerd@gnu.org>
256
257 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's
258 really going on here.
259
09c4719e
SM
2602001-09-27 Stefan Monnier <monnier@cs.yale.edu>
261
262 * search.c (trivial_regexp_p): Catch \{N,M\} as well.
263
f7d5d963
EZ
2642001-09-27 Eli Zaretskii <eliz@is.elta.co.il>
265
266 * Makefile.in (shortlisp): Resync with loadup.el: add backquote,
267 utf-8, menu-bar, and latin-N.
268 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded
269 unconditionally now.
270 (lisp): Add latin-N, since they are preloaded.
271
9240e746
GM
2722001-09-27 Gerd Moellmann <gerd@gnu.org>
273
14531065
GM
274 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more
275 to the left. Some cleanup.
276
9240e746
GM
277 * xdisp.c (display_mode_element): One more case where a string's
278 multibyteness should be used for display.
279
edd1e654
GM
2802001-09-26 Gerd Moellmann <gerd@gnu.org>
281
b02439c8
GM
282 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop
283 reading at EOF.
284
032906b1 285 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead
5b397024 286 of the only temporarily set echoing flag for deciding when
032906b1
GM
287 the cancel echoing.
288
289 * keyboard.c (echo_kboard): Make externally visible.
290
291 * lisp.h (echo_kboard): Declare extern.
292
cb617e7c 293 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set
5b397024 294 fonts_changed_p if we need larger matrices due to vscrolling.
cb617e7c
GM
295 (try_scrolling, try_cursor_movement, redisplay_window): Give up on
296 this round of redisplay if make_cursor_line_fully_visible fails.
297 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators.
09c4719e 298 (try_cursor_movement, try_scrolling): Use them instead of integers.
cb617e7c
GM
299
300 * dispextern.h (required_matrix_width, required_matrix_height):
301 Add prototypes.
302
09c4719e
SM
303 * dispnew.c (required_matrix_width, required_matrix_height):
304 New functions.
cb617e7c 305 (allocate_matrices_for_window_redisplay)
09c4719e
SM
306 (allocate_matrices_for_frame_redisplay: Use them.
307 Remove parameters CH_DIM.
cb617e7c 308
edd1e654
GM
309 * xdisp.c (display_mode_lines): Temporarily set selected_frame
310 and selected_window to the frame of the window whose mode-lines
311 are displayed, and to the window itself.
312 (redisplay_window, redisplay_mode_lines): Don't set selected_frame
09c4719e 313 here.
edd1e654 314
924b604c
GM
3152001-09-25 Gerd Moellmann <gerd@gnu.org>
316
daba7643
GM
317 * xfns.c (x_kill_gs_process): Recognize if someone has cleared
318 the image cache under us.
319
b7a22712 320 * xdisp.c (display_mode_element): If the mode element is a symbol
09c4719e 321 with a string value, use that string's multibyteness for displaying.
b7a22712 322
ad648212
GM
323 * keyboard.c (read_char): Don't clear a message for a switch-frame
324 event. From Stefan Monnier <monnier@cs.yale.edu>.
325
9f8531e5
GM
326 * xterm.c (fast_find_position) [0]: Add a presumably more correct
327 version for after 21.1.
328
329 * xdisp.c (row_containing_pos): Make externally visible.
330
331 * dispextern.h (row_containing_pos): Add prototype.
332
924b604c
GM
333 * process.c (send_process): Disable composition if from_byte < 0.
334 From Kenichi Handa <handa@etl.go.jp>.
335
6f3f0db4
GM
3362001-09-24 Gerd Moellmann <gerd@gnu.org>
337
c69c0ebc
GM
338 * xterm.c (refreshicon): Function removed.
339
d1182bc4
GM
340 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h.
341
342 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed.
343
344 * xterm.c (toplevel): Remove includes in #if 0.
345
6f3f0db4
GM
346 * process.c (sigchld_handler) [LINUX]: Don't return from
347 the signal handler at the end of the loop.
348
59957f85
GM
3492001-09-21 Gerd Moellmann <gerd@gnu.org>
350
09c4719e
SM
351 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]:
352 Terminate only if kill returns -1, and errno is ESRCH.
59957f85 353
a0528984
EZ
3542001-09-21 Markus Rost <rost@math.ohio-state.edu>
355
356 * Makefile.in (shortlisp): Add ../lisp/env.elc.
357
db92b288
GM
3582001-09-20 Gerd Moellmann <gerd@gnu.org>
359
3fed8ad5
GM
360 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ
361 since this function can be called during GC.
362
db92b288
GM
363 * callproc.c (Fcall_process): Handle errors from pipe(2).
364 (child_setup): Delete code in #ifdef vipc.
365
7121b85a
GM
3662001-09-19 Gerd Moellmann <gerd@gnu.org>
367
72f62cb5
GM
368 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE.
369 (display_mode_element): Display the string from decode_mode_spec
370 depending on its multibyteness.
371
a2697022
GM
372 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg.
373
7121b85a
GM
374 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3.
375
bfc97351
GM
3762001-09-18 Gerd Moellmann <gerd@gnu.org>
377
c9063433
GM
378 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to
379 recursive_edit_unwind.
380 (recursive_edit_unwind): Set kboard state according to
381 SINGLE-KBOARD.
382
3fbdba3e
GM
383 * buffer.c (modify_overlay): Don't do nothing if START == END;
384 This can still be a modification, for example when an overlay has
385 a before-string or after-string.
386 (Fdelete_overlay): Prevent redisplay optimizations when deleting
387 an overlay with before-string or after-string.
388
1270031d
GM
389 * s/netbsd.h (C_SWITCH_SYSTEM): Add.
390 (LD_SWITCH_SYSTEM): Include /usr/local/lib.
391
bfc97351
GM
392 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if
393 first_unchanged_at_end_row is in front of
394 last_unchanged_at_beg_row. This code should be removed after the
395 release of 21.1.
396
d8a973aa
GM
3972001-09-17 Gerd Moellmann <gerd@gnu.org>
398
e18c8b8d
GM
399 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and
400 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF.
401
d8a973aa
GM
402 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC
403 versions >= 2.95.
404
ed7d6ba4
EZ
4052001-09-14 Eli Zaretskii <eliz@is.elta.co.il>
406
407 * dired.c (Ffile_attributes): Doc fix.
408
551629f9
GM
4092001-09-14 Gerd Moellmann <gerd@gnu.org>
410
411 * fileio.c (Ffile_symlink_p): Fix last change.
412
413 * filelock.c (current_lock_owner): Fix last change.
414
4c8c7926
GM
4152001-09-13 Gerd Moellmann <gerd@gnu.org>
416
620c4704
GM
417 * filelock.c (current_lock_owner): If readlink returns ERANGE,
418 take that to mean that the buffer is too small.
419
81c3310d
GM
420 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take
421 that to mean that the buffer is too small.
422
06fd3792
GM
423 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the
424 current buffer's multibyteness when discarding the iterator's
425 stack.
426
4c8c7926
GM
427 * xfns.c (Fx_window_property): Handle case that property gets
428 deleted between the two calls to XGetWindowProperty.
429
9a72e4c1
GM
4302001-09-11 Gerd Moellmann <gerd@gnu.org>
431
bd819d14
GM
432 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks.
433
a41edd99
GM
434 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t,
435 in addition to read-only.
436
437 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks
438 to t in addition to read-only.
439
440 * lisp.h (Qinhibit_modification_hooks): Declare.
441
442 * insdel.c (Qinhibit_modification_hooks): New variable.
443 (syms_of_insdel): Initialize and staticpro it.
444
d4881c6a
GM
445 * textprop.c (verify_interval_modification): Don't run
446 modification-hooks if inhibit_modification_hooks.
447
448 * dispnew.c (set_window_cursor_after_update): Fix code
449 finding glyph row containing cursor when cursor_in_echo_area
450 is >= 0.
451
9a72e4c1
GM
452 * xdisp.c (init_from_display_pos): Put some code in #if 0.
453 (add_to_log): Use bcopy instead of strcpy.
454 (init_from_display_pos): Use an explicit loop over bytes in
455 overlay strings instead of calling index.
456
f4a374a1
GM
4572001-09-10 Gerd Moellmann <gerd@gnu.org>
458
300e57bd
GM
459 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE.
460
461 * dispnew.c (direct_output_for_insert): Don't change IT's
462 stop_charpos to something in front of its current position.
463
f4a374a1
GM
464 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like
465 `format'.
466
7e4cbc91
RS
4672001-09-10 Richard M. Stallman <rms@gnu.org>
468
469 * frame.c (Fmouse_position): Doc fix.
470
6afad91e
GM
4712001-09-07 Gerd Moellmann <gerd@gnu.org>
472
473 * xdisp.c (init_from_display_pos): Don't compare the result
474 of calling index with NULL.
475
f76e0368
GM
4762001-09-06 Gerd Moellmann <gerd@gnu.org>
477
478 * xfns.c (x_set_background_color): Don't change the colors
479 of the X window of scroll bar widgets.
480
9ead1b60
AI
4812001-09-05 Andrew Innes <andrewi@gnu.org>
482
483 * w32fns.c (w32_createwindow): Undo last change.
484
c3b497b3
GM
4852001-09-05 Gerd Moellmann <gerd@gnu.org>
486
08e1d6df
GM
487 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end.
488
c3b497b3
GM
489 * xdisp.c (string_buffer_position): Use *single_char_property*
490 functions instead of the *single_property* functions.
491
8f860180
AI
4922001-09-04 Andrew Innes <andrewi@gnu.org>
493
9a72e4c1
GM
494 * w32term.c (w32_read_socket): Add more information to debugging
495 output.
8f860180
AI
496
497 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style
498 from Emacs frames, so that calls to GetClipBox in w32term.c
499 correctly report when part of a frame is visible (including
500 scrollbars, etc). This prevents repeated redrawing of frames when
501 only a scrollbar is visible.
502 (w32_wnd_proc): Add more frame information to debugging output.
503
2ee1aa00
SM
5042001-09-03 Stefan Monnier <monnier@cs.yale.edu>
505
506 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup.
507
e3b22517
GM
5082001-09-03 Gerd Moellmann <gerd@gnu.org>
509
7e376260
GM
510 * xterm.c (note_mouse_highlight) <help-echo>: When looking for
511 help-echo for a string which doesn't have help-echo itself, use
512 get-char-property to obtain the help-echo from the string's buffer
513 (note_mouse_highlight) <mouse-face>: When on a string that doesn't
514 have mouse-face, look ``under'' the string for mouse-face from an
515 overlay.
516 (fast_find_position): Add parameter STOP. In the final row, stop
517 before glyphs having STOP as object. Don't consider glyphs that
518 are not from a buffer.
519
e3b22517
GM
520 * buffer.c (syms_of_buffer) <default-directory>: Doc fix.
521
9a249bba
EZ
5222001-09-01 Eli Zaretskii <eliz@is.elta.co.il>
523
524 * fns.c (Fmd5): Doc fix.
525
c9979669
GM
5262001-08-31 Gerd Moellmann <gerd@gnu.org>
527
528 * composite.c (update_compositions): Do nothing if
529 inhibit-modification-hooks is set.
530
9584e63a
GM
5312001-08-30 Gerd Moellmann <gerd@gnu.org>
532
986ec8f2 533 * emacs.c (shut_down_emacs): Don't call check_glyph_memory
490468dc 534 and check_message_stack if terminating abnormally. We want
986ec8f2
GM
535 glyph matrices etc. in a core dump.
536
92a25631
GM
537 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables.
538 (syms_of_xdisp): Initialize them.
539 (handle_single_display_prop): Don't change point, bind `object',
540 `position', and `buffer-position' instead to the object having the
2ee1aa00 541 `display' property, position in the object and position in the buffer.
92a25631 542
9584e63a
GM
543 * fileio.c (Finsert_file_contents): Don't change the multibyteness
544 of the buffer if REPLACE is non-nil.
545
d38633a3
GM
5462001-08-29 Gerd Moellmann <gerd@gnu.org>
547
548 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27.
549
f4fccc1e
EZ
5502001-08-28 Eli Zaretskii <eliz@is.elta.co.il>
551
552 * w32term.c (x_set_glyph_string_background_width)
553 (show_mouse_face): Track the last changes in xterm.c.
554
eaaa65b0
GM
5552001-08-28 Gerd Moellmann <gerd@gnu.org>
556
7b0870b2
GM
557 * xterm.c (x_set_glyph_string_background_width): Set the glyph
558 string's background width so that multi-line mouse-face is drawn
559 to the right edge of the window.
560 (show_mouse_face): Set the row's mouse_face_p flag after drawing
561 glyphs.
562
6b6e2422 563 * dispnew.c (direct_output_for_insert): Set updated_area
5b52c296 564 before inserting/writing glyphs.
6b6e2422 565
eaaa65b0
GM
566 * xdisp.c (display_mode_element): Use string_byte_to_char to
567 determine character positions in strings, use chars_in_text
568 instead of strwidth.
569 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of
570 a matrix as parameter; this is easier to use from GDB.
571
9ad62cf8
MB
5722001-08-28 Miles Bader <miles@gnu.org>
573
2ee1aa00
SM
574 * textprop.c (Fprevious_single_char_property_change)
575 (Fnext_single_char_property_change): Doc fixes.
9ad62cf8 576
32171635
GM
5772001-08-27 Gerd Moellmann <gerd@gnu.org>
578
47d57b22
GM
579 * fileio.c (Finsert_file_contents): Allocate, restore, and
580 free composition data in the case of REPLACE not being nil.
581
582 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if
583 there exist overlay strings with newlines at POS.
584 (text_outside_line_unchanged_p): Return 0 if changes start at
585 START and overlays exist at START. Likewise for END.
586 (try_window_id): Give up if init_to_row_end returns 0.
587
32171635
GM
588 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte
589 unconditionally.
590
e1249666
GM
5912001-08-24 Gerd Moellmann <gerd@gnu.org>
592
33954c45
GM
593 * keymap.c (access_keymap): Return the cdr of the binding of
594 a generic character instead of its definition (KEY . BINDING).
595
e1249666
GM
596 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte
597 to 0 also in the REPLACE case.
598
fb4c6c96
AC
5992001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk>
600
601 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of
602 open to determine whether file is readable (as for DOS_NT).
603
59ecf80b
GM
6042001-08-23 Gerd Moellmann <gerd@gnu.org>
605
606 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and
607 coding.type is coding_type_no_conversion or coding_type_raw_text,
608 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is
609 non-nil instead of just setting enable_multibyte_characters in the
610 buffer to nil.
611
40e33037
GM
6122001-08-22 Gerd Moellmann <gerd@gnu.org>
613
374388c3
GM
614 * dispextern.h (struct face_cache): Add member
615 menu_face_changed_p.
616
617 * xfaces.c (menu_face_changed_default): New variable.
618 (menu_face_changed_count): Variable removed.
619 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set
620 the menu_face_changed_default flag, otherwise set the FRAME's
621 menu_face_changed_p flag if the `menu' face has been changed.
622 Prevent calling set_font_frame_param if FRAME is t.
623 (make_face_cache): Initialize cache's menu_face_changed_p
624 from menu_face_changed_default.
625 (realize_basic_faces): Look into the frame's face cache to
626 determine if the menu appearance needs updating.
627
40e33037
GM
628 * keymap.c (access_keymap): Fix last change to not consider
629 IDX when it has modifiers.
630
859ea4b8
GM
6312001-08-21 Gerd Moellmann <gerd@gnu.org>
632
633 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR
634 . BINDING) exists, where GENERIC-CHAR is the generic character of
635 the charset of IDX, return BINDING unless there exists a binding
636 for IDX itself.
637
e8660d73
GM
6382001-08-16 Gerd Moellmann <gerd@gnu.org>
639
cca1b1d7
GM
640 * xrdb.c (SYSV): Don't define on Solaris 2.
641 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>.
642
e8660d73 643 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning
2ee1aa00 644 of the screen line, not text line, containing IT's current position.
e8660d73 645
93aba6fc
GM
6462001-08-15 Gerd Moellmann <gerd@gnu.org>
647
288d4e06
GM
648 * window.c (window_scroll_pixel_based): Don't recenter if
649 PT is partially visible in the window.
650
3452efc2
SM
651 * xterm.c (expose_window_tree, expose_window, expose_line):
652 Return 1 when overwriting mouse-face.
82f053ab
GM
653 (expose_frame): If mouse-face was overwritten, redo it.
654
93aba6fc
GM
655 * xfaces.c (x_update_menu_appearance): Don't call
656 set_frame_menubar, let the next redisplay do it.
657
858a55c1
AI
6582001-08-14 Andrew Innes <andrewi@gnu.org>
659
660 * w32term.c (x_draw_glyph_string): Draw relief (if any) before
661 drawing glyph string.
662
3a990b67
EZ
6632001-08-14 Eli Zaretskii <eliz@is.elta.co.il>
664
665 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series
666 running HI-UX/MPP.
667
04386463
GM
6682001-08-14 Gerd Moellmann <gerd@gnu.org>
669
670 * xfaces.c (x_update_menu_appearance): Save and restore value of
671 interrupt_input_blocked.
672
3e6385a4
GM
6732001-08-13 Gerd Moellmann <gerd@gnu.org>
674
b0e619b4
GM
675 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on
676 a line start, move back to the line start.
3452efc2 677
0de73d5a
GM
678 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window
679 exactly when a mini-buffer is active.
680
3e6385a4
GM
681 * keyboard.c (make_lispy_event): Interpret double_click_fuzz
682 in units of 1/8 character on non window-system frames.
683 (syms_of_keyboard) <double-click-fuzz>: Doc fix.
684
d1b5f629
EZ
6852001-08-10 Eli Zaretskii <eliz@is.elta.co.il>
686
687 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in
688 a doc string.
689
eaa2319f
GM
6902001-08-09 Gerd Moellmann <gerd@gnu.org>
691
8e3189f0
GM
692 * keyboard.c (Vpre_help_message): New variable.
693 (syms_of_keyboard): Initialize and staticpro it.
694 (show_help_echo): Record current message before displaying a
695 help-echo, and restore that message when clearing the help.
696
eaa2319f
GM
697 * xfns.c (x_create_im): Remove prototype.
698
699 * xdisp.c (mark_window_display_accurate_1): Remove an assertion.
700
701 * dispnew.c (adjust_glyph_matrix): Undo last change.
3452efc2 702
eaa2319f
GM
7032001-08-08 Gerd Moellmann <gerd@gnu.org>
704
705 * dispnew.c (adjust_glyph_matrix): In the optimization for
3452efc2 706 windows whose height has changed, disable partially visible lines.
eaa2319f 707
17fdcfc8
GM
7082001-08-07 Gerd Moellmann <gerd@gnu.org>
709
22d01aed 710 * window.c (Frecenter): If ARG < 0, and on a window system
3452efc2 711 frame, count in some empty lines when we can't move -ARG lines down.
22d01aed 712
17fdcfc8
GM
713 * xdisp.c (start_display): Don't try to determine the continuation
714 lines width if lines are truncated. It's superfluous and leads to
715 incorrect results if POS is not visible in the window after
716 reseating the iterator at the previous line start.
717
8e3fe78e
GM
7182001-08-06 Gerd Moellmann <gerd@gnu.org>
719
720 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG.
721
98a8938c
GM
7222001-08-06 Pavel Jan\e,Bm\e(Bk <Pavel@Janik.cz>
723
724 * alloc.c (init_stack): Remove declaration.
725
18f9986a
GM
7262001-08-03 Gerd Moellmann <gerd@gnu.org>
727
5e1f85e0
GM
728 * keyboard.c (read_key_sequence): Check that key is an integer
729 before comparing it with quit_char.
730 (add_command_key): Use larger_vector.
731 (read_char_x_menu_prompt): Instead of converting symbol and
732 integer events into conses (EVENT . nil), use (EVENT . disabled)
3638868e 733 which cannot be confused with valid events.
5e1f85e0
GM
734 (read_char): When reading from Vunread_command_events, check for
735 events of the form (EVENT . disabled) instead of
736 (EVENT . nil).
737
18f9986a
GM
738 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is
739 a float, determine the max height from the frame's height.
740
fbc7f2a6
GM
7412001-08-02 Gerd Moellmann <gerd@gnu.org>
742
743 * xdisp.c (redisplay_internal): Take message_cleared_p into
744 account only if minibuf_level == 0.
745
81b1a79d
GM
7462001-08-01 Gerd Moellmann <gerd@gnu.org>
747
e5c60873
GM
748 * xdisp.c (redisplay_internal): Add a check for the last
749 displayed message.
3452efc2 750
6e019995
GM
751 * xdisp.c (message_cleared_p): New variable.
752 (clear_message): Set message_cleared_p when clearing the current
753 message.
754 (redisplay_internal): Look at message_cleared_p to capture
755 the case that the echo area should be cleared.
756
308a74d8
GM
757 * keyboard.c (command_loop_1): Fix spelling of
758 resize_echo_area_exactly.
759
3452efc2 760 * dispextern.h (resize_echo_area_exactly): Fix typo in function name.
308a74d8
GM
761
762 * xdisp.c (resize_echo_area_exactly): Fix typo in function name.
763
81b1a79d
GM
764 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's
765 current matrix when the window gets smaller.
766
ada329e6
EZ
7672001-08-01 Eli Zaretskii <eliz@is.elta.co.il>
768
769 * print.c (strout): Cast the character passed to insert_char to
770 unsigned char, to avoid sign extension when it is promoted to int.
771
ed86208c
GM
7722001-07-31 Gerd Moellmann <gerd@gnu.org>
773
774 * fileio.c (Finsert_file_contents): Don't treat a return value
775 of 0 from emacs_read as an IO error.
776
6594ac22
GM
7772001-07-30 Gerd Moellmann <gerd@gnu.org>
778
cef68af5
GM
779 * keyboard.c (abs): New macro.
780 (double_click_fuzz): New variable.
781 (make_lispy_event): Use it to determine what makes a double-click.
782 (syms_of_keyboard): DEFVAR_INT it.
783
6594ac22
GM
784 * xmenu.c (set_frame_menubar): Take into account that
785 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn
786 <raeburn@gnu.org>.
787
75c5350a
GM
7882001-07-27 Gerd Moellmann <gerd@gnu.org>
789
790 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup.
791
792 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation
793 of row's visible height.
794
795 * xdisp.c (init_from_display_pos): If POS is in an overlay string,
3452efc2
SM
796 deal with the first overlay string having an image `display' property.
797 (try_window_reusing_current_matrix, compute_line_metrics):
798 Fix computation of row's visible height for the case that part of the
75c5350a
GM
799 row is invisible above and part of the row is at the same time
800 invisible below the window.
801
ac49effe
GM
8022001-07-26 Gerd Moellmann <gerd@gnu.org>
803
804 * xfns.c (x-show-tip): Doc fix.
3452efc2 805
ac49effe
GM
806 * xfns.c (Vx_max_tooltip_size): New variable.
807 (syms_of_xfns): DEFVAR_LISP it.
808 (Fx_show_tip): Set frame's window_width to the width of the
809 window. Use a maximum tooltip size specified by
810 Vx_max_tooltip_size, if that has valid contents.
811 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil.
3452efc2 812
8c3b00cb
AI
8132001-07-26 Andrew Innes <andrewi@gnu.org>
814
815 * w32term.c (x_display_list): New variable.
816 (w32_term_init): Set it.
817
818 * w32term.h (x_display_list): New extern.
819
16098288
GM
8202001-07-26 Gerd Moellmann <gerd@gnu.org>
821
822 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay
3452efc2
SM
823 is non-nil, instead of when redisplaying_p is non-zero.
824 See comment there.
16098288
GM
825 (mark_window_display_accurate_1): Add an assertion.
826
64c5be50
GM
8272001-07-25 Gerd Moellmann <gerd@gnu.org>
828
e743f599
GM
829 * dispextern.h (struct it): Increase size of ctl_chars to 16.
830
563b384d
GM
831 * xfns.c (Fx_file_dialog): Block/unblock input while processing
832 events so that we get a chance of processing expose events.
833
64c5be50
GM
834 * xdisp.c (resize_mini_window): Don't resize while redisplaying.
835
296808a5
GM
8362001-07-24 Gerd Moellmann <gerd@gnu.org>
837
838 * xfns.c (valid_image_p): Protect better against invalid image
839 specifications. Previous code could signal an error.
840
5247262a
GM
8412001-07-23 Gerd Moellmann <gerd@gnu.org>
842
3452efc2 843 * indent.c (current_column): Fix column computation in the
f1004faf
GM
844 presence of display table entries.
845 (current_column_1, Fmove_to_column, compute_motion): Likewise.
846
dd42b31a
GM
847 * dispnew.c (adjust_glyph_matrix): In the optimization for
848 windows whose height has changed, use the new window height
849 to compute which rows to invalidate.
850
9e5a7f2a
GM
851 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h.
852 (MAX_10_EXP): New macro.
853 (Fformat): Use it.
854
5247262a
GM
855 * coding.c (code_convert_region): Handle the multibyte case if
856 decoding ends with CODING_FINISH_INSUFFICIENT_SRC.
857
177ab8ce
GM
8582001-07-20 Gerd Moellmann <gerd@gnu.org>
859
6e07c0a5
GM
860 * dispextern.h (struct face): Change type of `stipple' to
861 int; it's an ID.
862
177ab8ce
GM
863 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion.
864
b5b80599
GM
8652001-07-19 Gerd Moellmann <gerd@gnu.org>
866
4e2a256b
GM
867 * dispnew.c (update_window): Don't set the cursor at the end
868 of the update if display update has been paused.
869
3452efc2 870 * composite.h (syms_of_composite): Renamed from syms_of_composition.
b5b80599 871
c1fd9232
KR
8722001-07-18 Ken Raeburn <raeburn@gnu.org>
873
874 * fns.c (Fset_char_table_default): Check that a charset is defined
875 before checking its dimension.
876
928a85c1
KR
8772001-07-17 Ken Raeburn <raeburn@gnu.org>
878
879 * coding.c (setup_coding_system): Don't do any designation based
880 on reg_bits if charset is not yet defined.
881
fb4c6c96 882 * lisp.h (XVECTOR): Verify correct object type before returning a
232e274c
KR
883 pointer, using eassert.
884
de11c1ea
GM
8852001-07-17 Gerd Moellmann <gerd@gnu.org>
886
3452efc2
SM
887 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]:
888 Increase to 4096 because of paste problems reported on GNU/Linux.
de11c1ea 889
467f1209
GM
8902001-07-17 Jan Nieuwenhuizen <janneke@gnu.org>
891
892 * emacs.c (USAGE1): Add +LINE:COLUMN option help.
893
c3d6be34
GM
8942001-07-16 Gerd Moellmann <gerd@gnu.org>
895
c1d61a7d
GM
896 * fileio.c (unwind_read): Function removed.
897 (read_non_regular, read_non_regular_quit): New functions.
898 (Finsert_file_contents): When reading from non-regular files,
899 arrange to catch a `quit' and terminate the loop. Rearrange
900 code so that a `quit' when reading from a regular file doesn't
901 insert text in the buffer.
902
c3d6be34
GM
903 * xfaces.c (clear_face_cache): Clear fonts on a display basis.
904 Clear faces afterwards.
905 (clear_font_table): Take a x_display_info parameter. Don't free
906 fonts being the default font of any frame on the given display.
907
e06aa1f9
GM
9082001-07-13 Gerd Moellmann <gerd@gnu.org>
909
910 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL
911 instead of CHAR_STRING which can signal an error.
912
913 * charset.c (char_to_string_1): Extracted from char_to_string.
914 Return -1 instead of signaling an error.
915 (char_to_string): Use it.
916
917 * charset.h (CHAR_STRING_NO_SIGNAL): New macro.
918
176c92e6
SM
9192001-07-12 Stefan Monnier <monnier@cs.yale.edu>
920
921 * coding.c (Ffind_coding_systems_region_internal): If safe_codings
922 is t, don't try to append anything to it.
923
1c56232f
EZ
9242001-07-12 Eli Zaretskii <eliz@is.elta.co.il>
925
926 * dired.c (file_name_completion): Pass dp->d_name to
927 Fstring_match, not elt, which is always nil here.
928
1d2b2268
GM
9292001-07-12 Gerd Moellmann <gerd@gnu.org>
930
931 * xselect.c (x_decline_selection_request): Handle errors
932 caused by receivers that have vanished.
933
934 * xterm.c (XTread_socket) <PropertyNotify>: Put the code
935 ignoring events on foreign windows in #if 0. Always dispatch
936 the event after checking it with x_handle_property_notify.
937
938 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined
176c92e6
SM
939 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with
940 TRACE macros to facilitate debugging. Add additional trace statements.
1d2b2268
GM
941 (toplevel): Add prototypes for file-local functions.
942 (x_atom_to_symbol): Remove DPYINFO parameter.
943
fe5a0162
SM
9442001-07-11 Stefan Monnier <monnier@cs.yale.edu>
945
946 * w32menu.c (menubar_selection_callback, w32_menu_show):
947 Initialize `entry' to nil.
948 (w32_dialog_show): Remove unused `save_wv' variable.
949 (name_is_separator): Recognize "--:foo" and "--foo-bar".
950
a777242c
GM
9512001-07-11 Gerd Moellmann <gerd@gnu.org>
952
8ee5b6a3
GM
953 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0.
954
d0e2444e
GM
955 * fileio.c (unwind_read): Print a message when discarding inserted
956 text or switching the buffer to unibyte. Change parameter.
957 (Finsert_file_contents): Don't pass VISIT to unwind_read.
fe5a0162 958
a777242c
GM
959 * fileio.c (unwind_read): New function.
960 (Finsert_file_contents): Record it as unwind-function for
961 the case that reading is interrupted by C-g.
962
ae794295
GM
9632001-07-10 Gerd Moellmann <gerd@gnu.org>
964
fe5a0162 965 * dispnew.c (update_window): Don't skip the header-line
58f8612a
GM
966 update when scrolling_window returns 0.
967
6b05fae3
GM
968 * xfaces.c (unload_color): Do nothing if PIXEL is -1.
969
970 * xfns.c (Fx_create_frame): Initialize frame colors to -1,
58f8612a 971 for the case that x_decode_color signals an error.
6b05fae3 972
ae794295
GM
973 * xdisp.c (add_to_log): Do nothing if called asynchronously.
974
bb6e8cee
GM
9752001-07-09 Gerd Moellmann <gerd@gnu.org>
976
977 * sound.c (toplevel): Include <signal.h> and "syssignal.h".
978 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO
979 around ioctls.
980
36b40a8a
EZ
9812001-07-06 Eli Zaretskii <eliz@is.elta.co.il>
982
24b97d4b
EZ
983 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the
984 doc string line for dos-timezone-offset.
985
36b40a8a
EZ
986 * msdos.c (do_visible_bell): Add \n\ at the end of each line of
987 inline assembly, to avoid compiler warnings.
24b97d4b
EZ
988 (syms_of_msdos): Add \n\ at the end of a line in the doc string
989 line for dos-unsupported-char-glyph.
36b40a8a
EZ
990
991 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0.
992
0967b4b0
GM
9932001-07-05 Gerd Moellmann <gerd@gnu.org>
994
f25cfe53
GM
995 * sound.c: Include Emacs' header files with #include "...".
996
0967b4b0
GM
997 * eval.c (specbind): Additionally record the buffer that was
998 current when a buffer-local or frame-local variable was bound.
999
c347a1c3
GM
10002001-07-04 Gerd Moellmann <gerd@gnu.org>
1001
1002 * xterm.c (x_produce_glyphs): Don't convert multibyte characters
1003 to unibyte characters in unibyte buffers.
1004
6332ca8a
GM
10052001-07-03 Gerd Moellmann <gerd@gnu.org>
1006
38472d44
GM
1007 * eval.c (specbind): If SYMBOL has a frame-local binding, record
1008 the frame on the binding stack. Change format of entries for
1009 local bindings on the binding stack to '(SYMBOL . WHERE)'.
1010 (unbind_to): Handle unbinding a frame-local variable.
1011
6332ca8a 1012 * xdisp.c (compute_line_metrics): On ttys, subtract continuation
fe5a0162 1013 glyphs and truncation glyphs at the end of a row from its pixel width.
6332ca8a
GM
1014 (dump_glyph_row): Print row's continuation_lines_width.
1015 (try_window_id): Take the shortcut if ZV is visible in the
1016 window, but there are actually no changes at ZV.
1017
63d1b174
GM
10182001-07-02 Gerd Moellmann <gerd@gnu.org>
1019
4c175203
GM
1020 * xterm.h (x_free_dpy_colors): Add prototype.
1021
1022 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the
1023 right number of arguments.
1024
0b54ce28
GM
1025 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS.
1026 ($(lwlibdir)TAGS): New target.
4c175203 1027 (TAGS): Fix dependency list.
0b54ce28 1028
63d1b174
GM
1029 * xterm.c (x_list_fonts): Make sure XFreeFont is called
1030 with input blocked.
1031
d827466c
GM
10322001-06-30 Gerd Moellmann <gerd@gnu.org>
1033
1034 * emacs.c (main): Remove extern declaration for sys_nerr, which
1035 isn't used and causes a compilation error with GCC 3.0 on
1036 FreeBSD 4.3.
1037
b5cb1ada
GM
10382001-06-27 Gerd Moellmann <gerd@gnu.org>
1039
a5d3ec3f 1040 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block
3452efc2 1041 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent.
a5d3ec3f
GM
1042 (toplevel): Include <signal.h> and syssignal.h.
1043
b5cb1ada
GM
1044 * sound.c (vox_configure, vox_close): Turn off atimers
1045 around ioctls.
1046
d9bad487
GM
10472001-06-26 Gerd Moellmann <gerd@gnu.org>
1048
fdbb67fe
GM
1049 * keyboard.c (read_char) <non_reread>: Record the previous idle
1050 start time before calling timer_stop_idle.
1051 (read_char) <reread_first>: After processing a help-echo event,
1052 restore the previous idle start time.
1053
d9bad487
GM
1054 * xdisp.c (handle_invisible_prop): Deal with overlay strings at
1055 the start of invisible text.
1056 (setup_for_ellipsis): New function.
1057 (next_overlay_string): After all overlay strings have been
1058 processed, display an ellipsis if necessary.
1059 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS.
1060 (push_it): Initialize display_ellipsis_p on the iterator's stack.
1061
1062 * dispextern.h (struct iterator_stack_entry): Add member
1063 display_ellipsis_p.
1064
2b9c25e0
GM
10652001-06-25 Gerd Moellmann <gerd@gnu.org>
1066
80de57df
GM
1067 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending
1068 on the value of the wait-for-wm frame parameter.
1069
1070 * xterm.h (struct x_output): Add member wait_for_wm.
1071
1072 * xfns.c (Qwait_for_wm): New variable.
1073 (x_frame_parms): Add entry for `wait-for-wm".
1074 (x_set_wait_for_wm): New function.
1075 (Fx_create_frame): Call x_default_parameter for wait-for-wm.
1076 (syms_of_xfns): Initialize and staticpro Qwait_for_wm.
1077
2b9c25e0
GM
1078 * xdisp.c (try_window_id) <all changes below window end>: Don't
1079 take this shortcut if ZV is visible in the window.
1080 (try_window_id): When checking for window start being in changed
1081 text, don't check that the buffer's size has changed.
1082
f772775c
RS
10832001-06-23 Richard M. Stallman <rms@gnu.org>
1084
1085 * minibuf.c (Fcompleting_read): Doc fix.
1086
fa9090b8
GM
10872001-06-19 Gerd Moellmann <gerd@gnu.org>
1088
1089 * composite.c (Ffind_composition_internal): Accept ZV
1090 and a string's end position as POS.
1091
f6f1beba
GM
10922001-06-18 Gerd Moellmann <gerd@gnu.org>
1093
1094 * composite.c (Ffind_composition_internal): Check POS
1095 for validity.
1096
0ae83348
EZ
10972001-06-15 Eli Zaretskii <eliz@is.elta.co.il>
1098
1099 * editfns.c (Fmessage_box): If the frame is not under a window
1100 system, output the message in the echo area.
1101
e4cdc335
RS
11022001-06-14 Richard M. Stallman <rms@gnu.org>
1103
1104 * xdisp.c (try_window_id): When EOB is visible, don't treat
1105 insertion at EOB as if it were "off the bottom of the screen."
1106
a55a5f3c
AI
11072001-06-11 Andrew Innes <andrewi@gnu.org>
1108
1109 * w32proc.c (create_child): Add new parameter is_gui_app.
1110 (w32_executable_type): Add new parameter is_gui_app.
1111 (sys_spawnve): Use it.
1112 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for
1113 SIGQUIT. This matches better how the signals are interpreted by
1114 MSVC compiled programs.
1115 (syms_of_ntproc): Update docstring.
1116
1b85dc1c
SM
11172001-06-02 Stefan Monnier <monnier@cs.yale.edu>
1118
1119 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as
1120 well otherwise note_mouse_highlight might optimize away highlighting
1121 if we pass over that same overlay again.
1122
b75f8eab
EZ
11232001-06-02 Eli Zaretskii <eliz@is.elta.co.il>
1124
1125 * lread.c (Fload): Document that the argument is run via
1126 substitute-in-file-name.
1127
94843cc1
GM
11282001-05-31 Gerd Moellmann <gerd@gnu.org>
1129
b14659e6
GM
1130 * Makefile.in (bootstrap-doc): New target.
1131 (bootstrap-emacs): Depend on it.
1132
0894672f
GM
1133 * fileio.c (Fdo_auto_save): Don't try to create the directory of
1134 auto-save-list-file-name when shutting down Emacs, because
1135 creating the directory might signal an error, and leaves
1136 Emacs in a strange state.
1137
94843cc1
GM
1138 * term.c: (tty_cursor_hidden): New variable.
1139 (update_begin): Don't call tty_hide_cursor. Clean up.
1140 (update_end, set_terminal_window, set_scroll_region): Clean up.
1141 (ring_bell, reset_terminal_modes): Clean up.
1142 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending
1143 on tty_cursor_hidden.
1144 (write_glyphs): Call tty_hide_cursor.
1145
db3a49a6
SM
11462001-05-30 Stefan Monnier <monnier@cs.yale.edu>
1147
1148 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy.
1149
8bd189fb
GM
11502001-05-30 Gerd Moellmann <gerd@gnu.org>
1151
6f1be3b9
GM
1152 * xfns.c (enum image_value_type): New enumerator
1153 IMAGE_STRING_OR_NIL_VALUE.
1154 (parse_image_spec): Handle it.
1155 (xbm_format, pbm_format): Use it for :foreground and :background.
1156 (xbm_load, pbm_load): Check for nil color names.
1157
8bd189fb
GM
1158 * xterm.c (note_mouse_highlight): If an overlapping overlay
1159 exists, but we find that we highlight the same overlay as before,
1160 don't do the highlighting again.
1161
7bdba03c
GM
11622001-05-29 Gerd Moellmann <gerd@gnu.org>
1163
4c329aa8
GM
1164 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]:
1165 Protect unibyte strings created by replacing their multibyte
1166 equivalents in menu_items.
1167
e15e2828
GM
1168 * keymap.c (Fsingle_key_description): NUL-terminate the string
1169 buffer before calling build_string.
1170
7bdba03c
GM
1171 * callproc.c (Fcall_process): Deal with decode_coding returning
1172 CODING_FINISH_INCONSISTENT_EOL.
1173
89c8dc6c
GM
11742001-05-28 Gerd Moellmann <gerd@gnu.org>
1175
db3a49a6 1176 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite
3d9d7a9b
GM
1177 an item's name with its key description in case the description
1178 is a multibyte string.
1179
1180 * keymap.c (Fsingle_key_description): Create a multibyte string
1181 only if necessary.
1182
eb04d6cd
GM
1183 * macros.c (Fstart_kbd_macro): Doc fix.
1184
8bd6307f
GM
1185 * xterm.c (cursor_in_mouse_face_p): New function.
1186 (x_draw_stretch_glyph_string): Use it to choose a different GC
1187 when drawing a cursor within highlighted text.
1188
e26c4089
GM
1189 * editfns.c (char_property_eq): Put in #if 0.
1190
1191 * indent.c (string_display_width): Put in #if 0.
1192
1193 * lread.c (Fload): Remove unused label.
1194
89c8dc6c
GM
1195 * termcap.c (speeds): Put in #if 0.
1196
9a1211f2
GM
11972001-05-18 Gerd Moellmann <gerd@gnu.org>
1198
29148a3f
GM
1199 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay.
1200
9a1211f2
GM
1201 * xfaces.c (xlfd_point_size): Don't divide pixel size from
1202 transformation matrix by 10.
1203
09393d07
GM
12042001-05-16 Gerd Moellmann <gerd@gnu.org>
1205
1206 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel
1207 only if it's equal to the former foreground pixel color.
db3a49a6 1208 (x_set_foreground_color, x_set_background_color)
09393d07
GM
1209 (x_set_mouse_color, x_set_cursor_color): Cleaned up.
1210
460e6bae
GM
12112001-05-16 Dave Love <fx@gnu.org>
1212
1213 * insdel.c (signal_before_change, signal_after_change): Consider a
1214 local change hook which changes the buffer.
99c78ce8
GM
1215
1216 * process.c (read_process_output): Don't call signal_after_change
1217 and update_compositions after insert_from_string_before_markers.
1218
dbcf3c03
GM
12192001-05-16 Gerd Moellmann <gerd@gnu.org>
1220
a90b3d3c
GM
1221 * xfaces.c (split_font_name): Use the right field when
1222 checking for `[...]' syntax.
1223
1b7818b4
GM
1224 * buffer.c (copy_overlays): New function.
1225 (clone_per_buffer_values): Use it.
1226
1227 * buffer.h (OVERLAY_PLIST): New macro.
1228
9bae8781
GM
1229 * keymap.c (Fsingle_key_description): Replace a build_string with
1230 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>.
1231
dbcf3c03
GM
1232 * fontset.c (Ffontset_info): Check that face is non-null
1233 before accessing its fields.
1234
8a1ae4dd
GM
12352001-05-15 Gerd Moellmann <gerd@gnu.org>
1236
18a0a39e
GM
1237 * keyboard.c (read_key_sequence): Prevent generating a fake
1238 prefix key twice.
1239
e335b66a
GM
1240 * xfaces.c (split_font_name): Handle `[...]' for the right
1241 font name fields.
1242
8a1ae4dd
GM
1243 * ccl.c (ccl_driver): Don't copy remaining bytes in case
1244 of CCL_STAT_INVALID_CMD.
1245
3cf80731
SM
12462001-05-14 Stefan Monnier <monnier@cs.yale.edu>
1247
33568849
SM
1248 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history
1249 in <var> has no default value yet.
1250
3cf80731
SM
1251 * xfaces.c (try_alternative_families): First try the FAMILY.
1252 And if nothing is found in the end, try again with scalable fonts.
1253 (try_font_list): Let try_alternative_families do a bit more of
1254 the work. Only use FAMILY if it is not nil.
1255 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring.
1256
933b0249
GM
12572001-05-14 Gerd Moellmann <gerd@gnu.org>
1258
58e5af83
GM
1259 * xterm.c (note_mouse_highlight): Avoid changing the mouse
1260 pointer shape when show_mouse_face has already done it.
33568849 1261
58e5af83 1262 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for
557f7c34
GM
1263 full-width rows.
1264
7b16a6bf
GM
1265 * xfaces.c (split_font_name): Make sure to leave the loop
1266 with the right value of `i'.
3cf80731 1267
933b0249
GM
1268 * xfaces.c (split_font_name): Handle matrix transformations
1269 in the pixel and point size fields of XLFD font names.
1270 (xlfd_point_size): Likewise.
1271
dddcbf00
EZ
12722001-05-12 Eli Zaretskii <eliz@is.elta.co.il>
1273
3cf80731 1274 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration.
c7501041
EZ
1275 (x_to_w32_font): Add prototype.
1276
7689ef0b
EZ
1277 * regex.c (malloc, realloc, free) [emacs]: Undefine before
1278 redefining, to avoid compiler warnings.
1279
e7c15bba
EZ
1280 * w32proc.c: Include syssignal.h, to avoid compiler warnings.
1281
dddcbf00
EZ
1282 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char)
1283 (w32_get_bdf_glyph): Cast between unsigned char and char when
1284 passing arguments to subroutines, to shut up compiler warnings.
1285 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling
1286 GET_HEX_VAL.
1287
1288 * xfaces.c: Include keyboard.h before frame.h, not after it.
1289
1290 * widget.c: Include keyboard.h before frame.h.
1291
1292 * w32term.h (struct image, struct face): Forward declaration, to
1293 avoid compiler warnings.
1294
7bd2d083
GM
12952001-05-11 Gerd Moellmann <gerd@gnu.org>
1296
47e72862
GM
1297 * keyboard.c (read_key_sequence): Don't modify events when
1298 generating fake prefix keys (mode-line, scroll-bar, ...) since
1299 this prevents proper processing of such events when pushed back
1300 into unread-command-events.
1301
dd5f324b
GM
1302 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was
1303 actually redrawn. Make the function static.
1304 (note_mouse_highlight): Fix a case where the mouse cursor
1305 was changed back to the text cursor.
1306
1307 * xterm.h (clear_mouse_face): Remove prototype.
1308
d88a79d4
GM
1309 * xdisp.c (try_window_id): Fix the fix and set the right
1310 window_end_vpos.
1311
1312 * xdisp.c (try_window_id): Fix computation of window end in the
1313 case that lines were deleted at the end of the window. Add some
1314 more debug_method_adds.
0416532f 1315
7bd2d083
GM
1316 * xfaces.c (try_alternative_families): New function.
1317 (try_font_list): Use it. If ATTRS specifies a family, check
1318 fonts from that family first.
1319 (choose_face_font): Remove code setting the family part of
1320 the pattern to nil.
1321
23fca891
GM
13222001-05-10 Gerd Moellmann <gerd@gnu.org>
1323
ff9aa2ca
GM
1324 * xdisp.c (try_window_id): Fix case of all changes before
1325 the window start.
7b2654b5 1326
23fca891
GM
1327 * xdisp.c (try_window_id): Add some xasserts.
1328
e9726794
GM
13292001-05-09 Gerd Moellmann <gerd@gnu.org>
1330
1331 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P.
1332
9e53a675
GM
13332001-05-09 Dave Love <fx@gnu.org>
1334
1335 * xdisp.c (GIVE_UP): Fix for K&R C.
1336
0d487c52
GM
13372001-05-09 Gerd Moellmann <gerd@gnu.org>
1338
fe88d421
GM
1339 * print.c (syms_of_print) <print-length, print-level>: Doc fix.
1340
0d487c52
GM
1341 * xterm.c (note_mouse_highlight): Don't change the mouse cursor
1342 back to the text cursor shape without need.
1343
1e9fc92e
GM
13442001-05-07 Gerd Moellmann <gerd@gnu.org>
1345
a2a6232e
GM
1346 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel.
1347
1348 * dispextern.h (inverse_video): Declare extern.
1349
1e9fc92e
GM
1350 * keyboard.c (delete_kboard): Handle the case that selected_frame
1351 has been deleted in the course of x_connection_closed.
1352
12949a7f
EZ
13532001-05-03 Eli Zaretskii <eliz@is.elta.co.il>
1354
7b2654b5
SM
1355 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]:
1356 Fix the change from 2001-04-30.
12949a7f 1357
2fa2f461
GM
13582001-05-03 Gerd Moellmann <gerd@gnu.org>
1359
a779d213
GM
1360 * xfns.c (file_dialog_unmap_cb): New function.
1361 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case
1362 where a dialog is closed via the window manager.
1363
7b2654b5 1364 * xdisp.c (try_window_id): Cases of changes all in front of
2fa2f461
GM
1365 the window start or all below the window end mostly rewritten.
1366 (redisplay_window): Move the tests if try_window_id is
1367 applicable to try_window_id.
1368 (GIVE_UP): New macro.
1369
3356df63
GM
13702001-05-02 Gerd Moellmann <gerd@gnu.org>
1371
a39202f6 1372 * xterm.c (expose_window): Return int. If W is the window
7b2654b5
SM
1373 currently being updated, mark the frame garbaged.
1374 Fix computation of rows intersecting the exposed rectangle.
a39202f6 1375 (expose_window_tree): Stop when expose_window returns 0.
7b2654b5 1376
3356df63
GM
1377 * xterm.c (x_draw_stretch_glyph_string): Don't draw background
1378 again if it has already been drawn.
1379
a9d2fd1d
SM
13802001-05-01 Stefan Monnier <monnier@cs.yale.edu>
1381
1382 * syntax.c (update_syntax_table): Check that oldi has the same
1383 properties as old_prop before deciding not to invalidate.
1384
c95fc5f1
GM
13852001-04-30 Gerd Moellmann <gerd@gnu.org>
1386
a9793e45
GM
1387 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing
1388 read-only text that is so because of text properties.
1389
c95fc5f1 1390 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function.
a9d2fd1d 1391 (XTread_socket) <Expose> [USE_LUCID]: Handle events for
c95fc5f1
GM
1392 windows that are components of a Lucid menu bar.
1393
5a5d9185
GM
13942001-04-27 Gerd Moellmann <gerd@gnu.org>
1395
1396 * term.c (turn_on_face): Fix reverse video handling on terminals
1397 that don't support colors.
1398
ba973f7a
GM
13992001-04-26 Gerd Moellmann <gerd@gnu.org>
1400
1401 * editfns.c (save_excursion_restore): Don't use XBUFFER on
1402 a non-buffer.
1403
8c56a983
GM
14042001-04-25 Gerd Moellmann <gerd@gnu.org>
1405
a728644c
GM
1406 * term.c (toggle_highlight): New function.
1407 (turn_on_face): Change handling of reverse video.
1408
7b2654b5
SM
1409 * process.c (wait_reading_process_input):
1410 Call record_asynch_buffer_change only if a timer really changed buffers.
c88164fe 1411
bfd8410f
GM
1412 * buffer.c (mouse_face_overlay_overlaps): Fix the computation
1413 of the number of overlays to check.
1414
be2488ca
GM
1415 * keyboard.c (command_loop_1): Redo change of 2001-03-12.
1416
8c56a983
GM
1417 * xdisp.c (try_window_id): Fix a case where window_end_pos
1418 and window_end_bytepos were not adjusted.
1419
522d42f7
GM
14202001-04-23 Gerd Moellmann <gerd@gnu.org>
1421
1422 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to
1423 zero instead of -1.
1424
78c1afb6
EZ
14252001-04-21 Eli Zaretskii <eliz@is.elta.co.il>
1426
a9d2fd1d
SM
1427 * process.c (wait_reading_process_input) [!subprocesses]:
1428 Don't reference waiting_for_user_input_p, it's not defined in the
1429 branch without async subprocesses support.
78c1afb6 1430
a2fab450
GM
14312001-04-19 Gerd Moellmann <gerd@gnu.org>
1432
a122a38e
GM
1433 * keyboard.c (delete_kboard): Prevent a dangling reference
1434 from current_kboard to KB, which is freed.
1435
a9d2fd1d
SM
1436 * process.c (wait_reading_process_input):
1437 Call record_asynch_buffer_change after running timers, to make
a2fab450
GM
1438 read_key_sequence aware of buffer changes from under it.
1439
0f8d6dc7
GM
14402001-04-18 Gerd Moellmann <gerd@gnu.org>
1441
eeffb293
GM
1442 * xfaces.c (Qscalable_fonts_allowed): New variable.
1443 (realizing_basic_faces_p): Removed.
2fa2f461
GM
1444 (x_face_list_fonts): Special handling for realizing_basic_faces_p
1445 removed.
eeffb293 1446 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t.
7b2654b5
SM
1447 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default
1448 for scalable-fonts-allowed to t.
eeffb293 1449
0f8d6dc7
GM
1450 * fileio.c (Finsert_file_contents): If the file size returned from
1451 stat is zero, set END to READ_BUF_SIZE. This makes sure we can
a9d2fd1d 1452 read from files on a procfs whose contents are generated dynamically.
0f8d6dc7 1453
eec2d1de
EZ
14542001-04-18 Eli Zaretskii <eliz@is.elta.co.il>
1455
1456 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not
1457 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t.
1458 (__memalign_hook): Make the two prototypes consistent.
1459
f4f480bd
GM
14602001-04-17 Gerd Moellmann <gerd@gnu.org>
1461
1462 * xdisp.c (redisplay_window): Make sure to clear the desired glyph
1463 matrix of mini-windows.
1464
52283633
SM
14652001-04-12 Stefan Monnier <monnier@cs.yale.edu>
1466
1467 * intervals.c (find_interval): Don't rebalance during signal handling.
1468
ec2423c9
GM
14692001-04-11 Gerd Moellmann <gerd@gnu.org>
1470
30cb0001 1471 * fns.c: Include blockinput.h.
52283633 1472
ec2423c9
GM
1473 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked.
1474
719d83ad
GM
14752001-04-10 Gerd Moellmann <gerd@gnu.org>
1476
60f8d735
GM
1477 * fns.c (Fcompare_strings): Fix return values.
1478
afffeb57
GM
1479 * window.c (window_scroll): Change the meaning of N to mean
1480 N screen-fulls or N lines.
1481 (window_scroll_pixel_based, window_scroll_line_based)
1482 (scroll_command, Fscroll_other_window): Change accordingly.
1483
52283633
SM
1484 * window.c (window_scroll_pixel_based, Frecenter):
1485 Call window_box_height instead of using it.last_visible_y for the
afffeb57
GM
1486 height of the window.
1487
1488 * xdisp.c (redisplay_window) <recenter>: Call window_box_height
1489 instead of using it.last_visible_y for the height of the window.
52283633 1490
719d83ad 1491 * w32proc.c (sys_spawnve): Quote more chars for Cygwin.
8ddf3ee1 1492 From Dan Holmsand <dan@eyebee.com>.
719d83ad
GM
1493
1494 * w32.c (sys_open): Try to open file without _O_CREAT first, to be
8ddf3ee1
GM
1495 able to write to hidden and system files. From Dan Holmsand
1496 <dan@eyebee.com>.
719d83ad 1497
8ddf3ee1
GM
1498 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan
1499 Holmsand <dan@eyebee.com>.
719d83ad 1500
522ed7fb
GM
15012001-04-09 Gerd Moellmann <gerd@gnu.org>
1502
9170e5d4
GM
1503 * fns.c (Fplist_get, Fplist_put): Add QUITs.
1504
522ed7fb
GM
1505 * window.c (window_internal_height): Return 1 less if the
1506 window has a header line.
1507
1508 * xdisp.c (try_window_id): When scrolling on a terminal, take
1509 the change of window_internal_height into account.
1510
ceeb3d7d
EZ
15112001-04-09 Eli Zaretskii <eliz@is.elta.co.il>
1512
1513 * gmalloc.c (align): If the argument SIZE would overflow
1514 __malloc_ptrdiff_t, fail right away.
1515
63685b9d
GM
15162001-04-06 Gerd Moellmann <gerd@gnu.org>
1517
1518 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT.
1519 Make sure the tooltip is completely visible.
1520 (x_make_gc): Use FRAME_X_SCREEN_NUMBER.
1521
1522 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro.
1523
1524 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER.
1525
3ffb33bb
DL
15262001-04-06 Dave Love <fx@gnu.org>
1527
52283633
SM
1528 * composite.c (update_compositions) <check_mask & CHECK_HEAD>:
1529 Fix test of `from'.
3ffb33bb 1530
869fb12c
GM
15312001-04-06 Gerd Moellmann <gerd@gnu.org>
1532
52283633 1533 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP.
afa3935f 1534
869fb12c
GM
1535 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object.
1536
441bf856
GM
15372001-04-05 Gerd Moellmann <gerd@gnu.org>
1538
4d664b04
GM
1539 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning.
1540
52283633 1541 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names.
a55e4e68 1542
30ca89f5
GM
1543 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable.
1544 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING.
1545
1546 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the
1547 shell widget's position only if it is non-null.
1548
52283633
SM
1549 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]:
1550 Set f->output_data.x->widget to null after destroying it.
30ca89f5 1551
81a81c0f
GM
1552 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to
1553 FILENAME to bring it in synch with the documentation.
1554
441bf856
GM
1555 * xfaces.c (realizing_basic_faces_p): Renamed from
1556 realize_default_face_p.
1557 (realize_basic_faces): Set/clear realizing_basic_faces_p.
1558 (realize_default_face): Don't set the flag.
1559
702a1e8e
GM
15602001-04-04 Gerd Moellmann <gerd@gnu.org>
1561
1013f4e3
GM
1562 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare.
1563
52283633
SM
1564 * keyboard.c (echoing, echo_message_buffer): Make externally visible.
1565
1013f4e3
GM
1566 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing
1567 the buffer that was used for echoing.
1568
702a1e8e
GM
1569 * xfaces.c (best_matching_font): Remove unused parameter PATTERN.
1570 (first_font_matching): Removed unused function.
1571 (x_face_list_fonts): Remove unused parameter SCALABLE_P.
1572 (may_use_scalable_font_p): Remove parameter FONT; rename
1573 parameter NAME to FONT.
1574 (x_face_list_fonts): Fix missing bounds check.
1575 (realizing_default_face_p): New variable.
1576 (realize_default_face): Set and clear that flag.
1577 (x_face_list_fonts): When called during the realization of the
1578 default face, and no matching fonts are found when ignoring
1579 scalable fonts and fonts matching a regexp from
1580 face-ignored-fonts, try without ignoring fonts.
1581
f9dbcda4
GM
15822001-04-03 Gerd Moellmann <gerd@gnu.org>
1583
ad18ffb1
GM
1584 * xfns.c (postprocess_image): New function.
1585 (lookup_image): Call it for all image types except PostScript.
1586 (x_kill_gs_process): Call postprocess_image.
1587
f9dbcda4
GM
1588 * xterm.c (x_use_underline_position_properties): New variable.
1589 (x_draw_glyph_string): Use it.
1590 (syms_of_xterm): DEFVAR_BOOL it.
1591
651f03b6
GM
15922001-04-02 Gerd Moellmann <gerd@gnu.org>
1593
1594 * xterm.c (x_alloc_nearest_color_1): New function.
1595 (x_alloc_nearest_color): Use it.
1596 (x_color_cells): Take a Display as argument, instead of a frame.
1597 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables.
1598 (cvt_string_to_pixel, cvt_pixel_dtor): New functions.
1599 (x_initialize): Register cvt_string_to_pixel as resource converter
1600 string -> Pixel and cvt_pixel_dtor as pixel resource destructor.
1601
73d75a62
GM
16022001-03-30 Gerd Moellmann <gerd@gnu.org>
1603
b2046df8
GM
1604 * xdisp.c (get_overlay_strings): Set iterator's end_charpos.
1605 (set_iterator_to_next): If a string from a display property ends,
1606 consider the case that this might also be the end of an
1607 overlay string having the display property.
1608
52283633 1609 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists.
b2046df8 1610
87d8eba4
GM
1611 * xdisp.c (reseat_to_string): Undo last change.
1612
73d75a62
GM
1613 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current
1614 matrix of a window when the header line changes, when
1615 new rows are allocated, or when the width changes.
1616
911a2406
EZ
16172001-03-30 Eli Zaretskii <eliz@is.elta.co.il>
1618
52283633 1619 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change.
911a2406 1620
aea51abe
EZ
16212001-03-29 Eli Zaretskii <eliz@is.elta.co.il>
1622
1623 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is
1624 deprecated.
1625
176bc847
GM
16262001-03-29 Gerd Moellmann <gerd@gnu.org>
1627
ed31fabf
GM
1628 * data.c (Fsubr_interactive_form): New function.
1629 (syms_of_data): Defsubr it.
1630
176bc847
GM
1631 * alloc.c (live_string_p, live_cons_p, live_symbol_p)
1632 (live_float_p, live_misc_p): Return 1 only if the offset of the
1633 pointer in its block is >= 0.
1634
e59d0e9d
GM
16352001-03-28 Paul Eggert <eggert@twinsun.com>
1636
1637 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the
1638 microseconds calcuation. Avoid double-rounding problem.
1639 In doc string, warn that the result is approximate.
1640
f827b862
GM
16412001-03-28 Gerd Moellmann <gerd@gnu.org>
1642
30a3f61c
GM
1643 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and
1644 bind `inhibit-eval-during-redisplay' to t.
1645
1646 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern.
1647
1648 * xdisp.c (inhibit_eval_during_redisplay)
1649 (Qinhibit_eval_during_redisplay): New variables.
1650 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set,
1651 don't eval, return nil instead.
1652 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay.
1653 Initialize Qinhibit_eval_during_redisplay.
1654
e719f5ae
GM
1655 * xdisp.c (reseat_to_string): If STRING is multibyte, set
1656 the iterator's multibyte_p flag.
1657
deb2613a
GM
1658 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count
1659 instead of setting it to zero; it's incremented for each frame
1660 where the menu face is changed.
1661
52283633
SM
1662 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom;
1663 change bottom shadow accordingly.
1664
1665 * xterm.c (expose_window_tree, expose_frame): Don't compute
a02f1be0
GM
1666 intersections here.
1667 (expose_window): Do it here instead.
52283633 1668 (x_draw_glyph_string): Fix a computation of the underline position.
a02f1be0 1669
f827b862
GM
1670 * bytecode.c (BYTE_CODE_QUIT): New macro.
1671 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT.
1672
4bde0ebb
GM
16732001-03-27 Gerd Moellmann <gerd@gnu.org>
1674
607ec83c
GM
1675 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>:
1676 Give up if matrix starts in an ellipsis.
1677 (init_from_display_pos): Do nothing if POS doesn't specify
1678 a dpvec_index but the iterator has such a position.
1679
0245398f
GM
1680 * xdisp.c (init_from_display_pos): Remove unwarranted assertion.
1681
aba25348
GM
1682 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's
1683 x/y position is (0, 0) after destroying the menu bar, restore
1684 its original position.
1685
4bde0ebb
GM
1686 * xdisp.c (in_ellipses_for_invisible_text_p): New function.
1687 (init_from_display_pos): Use it.
1688 (try_window_reusing_current_matrix): Don't use cursor_row_p.
1689
8cdb267e
GM
16902001-03-26 Gerd Moellmann <gerd@gnu.org>
1691
1692 * xdisp.c (try_window_id): Undo last change.
1693
9948db79
EZ
16942001-03-26 Eli Zaretskii <eliz@is.elta.co.il>
1695
1696 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix.
1697
1698 * buffer.c (syms_of_buffer): Doc fix.
1699
2eddf899
GM
17002001-03-26 Gerd Moellmann <gerd@gnu.org>
1701
1702 * xfaces.c (x_update_menu_appearance): Use local variable
1703 popup_path for setting font resources.
1704
6c145d35
EZ
17052001-03-25 Eli Zaretskii <eliz@is.elta.co.il>
1706
6a65b1b5
EZ
1707 * frame.c (Fframe_list): Don't reference tip_frame if
1708 HAVE_WINDOW_SYSTEM is not defined.
1709
6c145d35
EZ
1710 * emacs.c (main): Update the copyright year. From Werner LEMBERG
1711 <wl@gnu.org>.
1712
d74c1900
GM
17132001-03-25 Gerd Moellmann <gerd@gnu.org>
1714
20fbd925
GM
1715 * xdisp.c (init_from_display_pos): Test invisible property
1716 with TEXT_PROP_MEANS_INVISIBLE instead of NILP.
52283633 1717
927c5b3b
GM
1718 * xdisp.c (redisplay_internal) <update one window>: Make sure
1719 last_arrow_position and last_arrow_string are set.
1720
d74c1900
GM
1721 * frame.c (Fframe_list): Don't return a tooltip frame.
1722
091f8878
GM
17232001-03-23 Gerd Moellmann <gerd@gnu.org>
1724
52283633
SM
1725 * xdisp.c (mark_window_display_accurate_1): New function,
1726 extracted from mark_window_display_accurate.
1727 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED,
43c09969
GM
1728 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED.
1729 (mark_window_display_accurate): Use it.
1730 (redisplay_internal): Use it for the selected window.
1731 (redisplay_internal): Avoid duplicate mark_window_display_accurate
1732 for the selected frame.
1733
ac90c44f
GM
1734 * xdisp.c Use make_number, for readability.
1735 (try_window_id): Disable rows below the window end.
1736 (try_window_reusing_current_matrix): Use cursor_row_p.
1737 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling
1738 of rows.
1739 (init_from_display_pos): If POS specifies a position in a display
1740 vector, maybe get the iterator set up for that ellipsis.
43c09969 1741
091f8878
GM
1742 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2.
1743
991786dd
EZ
17442001-03-23 Eli Zaretskii <eliz@is.elta.co.il>
1745
1746 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined.
1747
6c29b43c
GM
17482001-03-23 Gerd Moellmann <gerd@gnu.org>
1749
1750 * xfaces.c (x_update_menu_appearance): Use a different path
1751 for Lucid popup menus.
1752
d8731202
SM
17532001-03-22 Stefan Monnier <monnier@cs.yale.edu>
1754
1755 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object.
1756
1757 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW.
1758 (string_buffer_position): Use `make_number'.
1759
f61a541b
GM
17602001-03-22 Gerd Moellmann <gerd@gnu.org>
1761
3c9e997b
GM
1762 * xfaces.c (x_update_menu_appearance): Renamed from
1763 x_set_menu_face_resources. Use different resources for popups.
1764
1765 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern.
1766 (GC_CHECK_STRING_BYTES): Don't define.
1767
364cd450
GM
1768 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]:
1769 Removed, together with subroutines.
1770 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function.
d8731202 1771 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources.
364cd450 1772
d8731202
SM
1773 * dispextern.h (x_set_menu_resources_from_menu_face):
1774 Remove prototype.
364cd450 1775
d8731202 1776 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show):
364cd450
GM
1777 Remove calls to x_set_menu_resources_from_menu_face.
1778
d8731202
SM
1779 * xfaces.c (xm_set_menu_resources_from_menu_face):
1780 Remove #ifndef LESSTIF_VERSION.
f61a541b
GM
1781
1782 * xmenu.c: Include widget.h.
1783 (single_submenu): Return int. Some cleanup.
1784 (set_frame_menubar): Call x_set_menu_resources_from_menu_face.
1785
140330de
GM
17862001-03-21 Gerd Moellmann <gerd@gnu.org>
1787
1788 * xterm.c (x_update_window_end): Handle overwritten mouse face
1789 also for tool bar windows.
1790 (show_mouse_face): Set the glyph row's mouse_face_p flag also when
1791 DRAW is DRAW_IMAGE_RAISED.
1792
1741905c
GM
17932001-03-20 Gerd Moellmann <gerd@gnu.org>
1794
fa88947e
GM
1795 * print.c (syms_of_print): Doc fixes.
1796
1741905c
GM
1797 * fns.c (Fmd5): Doc fix.
1798
ade0bee1
GM
17992001-03-19 Gerd Moellmann <gerd@gnu.org>
1800
357e7376
GM
1801 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
1802 Clear area of the frame not occupied by the scroll bar.
1803
c2c097cc
GM
1804 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the
1805 tip frame's root window buffer to *tip* right after creating
1806 the frame.
1807
ade0bee1
GM
1808 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object
1809 is an integer don't have to be for space characters.
1810
88c6e37e
GM
18112001-03-16 Gerd Moellmann <gerd@gnu.org>
1812
52283633
SM
1813 * indent.c (current_column, current_column_1, Fmove_to_column)
1814 (compute_motion): Handle characters from display vectors differently.
88c6e37e 1815
c62eed76
KH
18162001-03-15 Kenichi Handa <handa@etl.go.jp>
1817
1818 * xterm.c (x_draw_glyph_string): Draw relief (if any) before
1819 drawing glyph string.
1820
c899e7e6
GM
18212001-03-15 Gerd Moellmann <gerd@gnu.org>
1822
d0bbfc99
GM
1823 * keyboard.c (timer_check): Preserve the value of deactivate-mark.
1824 (command_loop_1): Undo last change.
1825
03d1a189
GM
1826 * xterm.c (fast_find_position): Return the correct vpos.
1827
c899e7e6 1828 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is
52283633 1829 non-null, set a per-buffer value in BUF instead of the current buffer.
c899e7e6
GM
1830 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default):
1831 Call store_symval_forwarding with BUF null.
1832 (set_internal): Call store_symval_forwarding with the BUF
1833 parameter passed to set_internal. Formerly, the value was always
1834 set in the current buffer; the buffer recorded in specbind for
1835 this case wasn't used.
1836 (arith_driver): Reindent.
1837
52283633
SM
1838 * buffer.c (swap_out_buffer_local_variables):
1839 Call store_symval_forwarding with BUF null.
c899e7e6
GM
1840
1841 * lisp.h (store_symval_forwarding): Change prototype.
1842
1843 * eval.c (specbind): Call store_symval_forwarding with BUF null.
1844
57ac7c81
GM
18452001-03-14 Gerd Moellmann <gerd@gnu.org>
1846
697617d9
GM
1847 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add
1848 FOR_DELETION. Avoid resizing the mini-window of the selected
1849 frame if FOR_DELETION is set.
1850 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame)
1851 (Fmake_frame_invisible): Change calls to do_switch_frame for new
1852 signature.
1853
1854 * window.c (Fset_window_configuration): Change call to
1855 do_switch_frame to new format.
1856
1857 * keyboard.c (quit_throw_to_read_char): Change call to
1858 do_switch_frame to new format.
1859
1860 * lisp.h (do_switch_frame): Change prototype.
1861
819dce0f
GM
1862 * frame.c (Fframe_parameters): In the `buffer-list' frame
1863 parameter, store the buffer list of FRAME, not the list of the
1864 selected frame.
1865
57ac7c81
GM
1866 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width
1867 box just because the glyph row's full_width_p flag is set.
1868
65008712
GM
18692001-03-14 Eli Zaretskii <eliz@is.elta.co.il>
1870
1871 * xdisp.c (highlight_trailing_whitespace): On character terminals,
1872 skip the padding blanks inserted in extend_face_to_end_of_line,
1873 before checking for trailing whitespace.
1874
159cf431
GM
18752001-03-13 Gerd Moellmann <gerd@gnu.org>
1876
52283633 1877 * xmenu.c (popup_activate_callback, popup_deactivate_callback):
19b2bb80
GM
1878 Remove special handling for LessTif/Motif.
1879 (toplevel): Don't include Xm/Xm.h.
1880
52283633
SM
1881 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>:
1882 Remove workaround code for LessTif; it doesn't work anymore.
1883
2564ea1b 1884 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include
57ac7c81 1885 Xm/ScrollBarP.h.
afcdc0a1 1886
52283633
SM
1887 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]:
1888 Don't access private scroll bar data; it's no longer necessary with
23442ae4
GM
1889 contemporary LessTif.
1890
52283633
SM
1891 * xfaces.c (xm_set_menu_resources_from_menu_face):
1892 Change #if 0 to #ifndef LESSTIF_VERSION.
9faaaa52 1893
159cf431
GM
1894 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code
1895 removing button grabs.
1896
c6f7429a
KH
18972001-03-13 Kenichi Handa <handa@etl.go.jp>
1898
cb82d767
KH
1899 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font
1900 and clip-large-size-font as obsolete.
1901
c6f7429a
KH
1902 * lread.c (read_multibyte): Check the validity of multibyte
1903 sequence. If invalid, return the first byte.
1904
760cefb5
GM
19052001-03-12 Gerd Moellmann <gerd@gnu.org>
1906
1907 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil
1908 before running the command; timer functions or process
1909 filters may have set it.
1910
5141f9d0
EZ
19112001-03-12 Eli Zaretskii <eliz@is.elta.co.il>
1912
1913 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>:
1914 Doc fix.
1915
b6a15240
GM
19162001-03-12 Gerd Moellmann <gerd@gnu.org>
1917
1918 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg
1919 to sprintf.
1920
95522746
GM
19212001-03-09 Gerd Moellmann <gerd@gnu.org>
1922
db14cfc5
GM
1923 * dispextern.h (string_buffer_position): Add prototype.
1924
52283633 1925 * xdisp.c (string_buffer_position, display_prop_string_p)
db14cfc5
GM
1926 (single_display_prop_string_p): New functions.
1927
1928 * xterm.c (note_mouse_highlight): If there's no help-echo on
1929 a string, look at the buffer text ``under'' it.
1930
1931 * keyboard.c (make_lispy_event): Add string info to the event,
1932 analogous to what's done on mode lines.
1933 (read_key_sequence): For a click on a string, consider `local-map'
1934 and `keymap' of that string.
1935
52283633
SM
1936 * keyboard.c (make_lispy_event, make_lispy_movement):
1937 Adjust calls to buffer_posn_from_coords to new format.
3cfd8357
GM
1938
1939 * dispextern.h (buffer_posn_from_coords): Adjust prototype.
1940
1941 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and
1942 POS; return void.
1943
95522746
GM
1944 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open
1945 flags argument to emacs_open; it seems to conflict with O_EXCL.
1946
898a399d
KH
19472001-03-09 Kenichi Handa <handa@etl.go.jp>
1948
28cd4910
KH
1949 * composite.h (struct composition): Change types of members;
1950 glyph_len to unsigned, width to unsigned short.
898a399d 1951
4cdf6a6c
AI
19522001-03-08 Andrew Innes <andrewi@gnu.org>
1953
1954 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for
1955 menu titles.
1956
129004d3
GM
19572001-03-08 Gerd Moellmann <gerd@gnu.org>
1958
221dd3e7
GM
1959 * xdisp.c (handle_display_prop): Use it->w->buffer as object,
1960 instead of nil.
1961
52283633 1962 * xterm.c (note_mouse_highlight): Handle mouse-face and
5de7c6f2
GM
1963 help-echo in strings.
1964 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P.
1965 (fast_find_string_pos): New function.
1966
52283633
SM
1967 * xdisp.c (handle_face_prop, face_before_or_after_it_pos)
1968 (display_string): Call face_at_string_position with new parameter.
5de7c6f2
GM
1969
1970 * xfaces.c (face_at_string_position): Add parameter MOUSE_P.
1971 Handle `mouse-face'.
1972
1973 * dispextern.h (face_at_string_position): Change prototype.
1974
52283633 1975 * dired.c (directory_files_internal): Handle EAGAIN more efficiently.
e1fbabaf 1976
129004d3
GM
1977 * keyboard.c (make_lispy_event): Avoid generating drag events
1978 if the mouse hasn't actually moved to another buffer position.
52283633 1979
80c8ab8c
DL
19802001-03-08 Dave Love <fx@gnu.org>
1981
129004d3 1982 * eval.c (syms_of_eval) <debug-on-error>: Doc fix.
80c8ab8c 1983
989521fd
GM
19842001-03-08 Gerd Moellmann <gerd@gnu.org>
1985
1986 * process.c (Fset_process_window_size): Fix a typo.
1987
bb5c338d
KH
19882001-03-08 Kenichi Handa <handa@etl.go.jp>
1989
1990 * coding.c (detect_coding_sjis): Do more rigid check.
1991 (detect_coding_big5): Likewise.
1992 (decode_coding_sjis_big5): Likewise.
1993 (Fdetect_coding_region): Call detect_coding_system with tailing
1994 anchor byte `\0' for more rigid detection.
52283633 1995 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP.
bb5c338d
KH
1996 (Fdetect_coding_string): Likewise.
1997
8b8f9197
SM
19982001-03-07 Stefan Monnier <monnier@cs.yale.edu>
1999
2000 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is
2001 a string before extracting its data.
2002
3bdf2660
GM
20032001-03-07 Gerd Moellmann <gerd@gnu.org>
2004
2005 * window.c (Frecenter): Rewrite code handling negative values
2006 of ARG on graphical frames.
2007
20082001-03-07 Eli Zaretskii <a34785@is.elta.co.il>
2009
2010 * window.c (displayed_window_lines): If W->start is outside the
2011 accessible portion of the buffer, call start_display with BEGV or
2012 ZV instead of W->start.
2013
471f86b9
GM
20142001-03-07 Gerd Moellmann <gerd@gnu.org>
2015
2ab62c6c
GM
2016 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix.
2017
471f86b9
GM
2018 * process.c (Fset_process_filter): Don't crash if the input
2019 file descriptor of PROCESS is closed.
2020 (Fset_process_window_size): Likewise.
2021
101922c3
GM
20222001-03-06 Kenichi Handa <handa@etl.go.jp>
2023
2024 * xterm.c (XTflash): Make the timeout of select shorter, and call
2025 select repeatedly until the desired time expires.
2026
45d051a7
GM
20272001-03-06 Gerd Moellmann <gerd@gnu.org>
2028
2029 * w32fns.c (Fx_create_frame): Clear Vwindow_list.
2030
2031 * xfns.c (Fx_create_frame): Clear Vwindow_list.
2032
2033 * lisp.h (Vwindow_list): Declare extern.
2034
8f372c46
EZ
20352001-03-06 Eli Zaretskii <eliz@is.elta.co.il>
2036
2037 * dispnew.c (syms_of_display) <glyph-table>: Doc fix.
2038
f16a7aa5
GM
20392001-03-06 Gerd Moellmann <gerd@gnu.org>
2040
157ae273
GM
2041 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps
2042 to detect a case where we have to highlight a different region
2043 despite not having left the currently highlighted region.
2044 Set mouse_face_overlay in the x_display_info.
45d051a7 2045 (x_term_init): Initialize the x_display_info's mouse_face_overlay.
157ae273
GM
2046
2047 * xterm.h (struct x_display_info): Add mouse_face_overlay.
2048
2049 * buffer.c (mouse_face_overlay_overlaps): New function.
2050
2051 * lisp.h (mouse_face_overlay_overlaps): Add prototype.
2052 (Qmouse_face): Declare extern.
2053
f16a7aa5
GM
2054 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed
2055 if face_change_count is non-zero.
2056
827afcac
KH
20572001-03-06 Kenichi Handa <handa@etl.go.jp>
2058
2059 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case
2060 that the source is unibyte.
2061
14c7242e
DL
20622001-03-05 Dave Love <fx@gnu.org>
2063
827afcac 2064 * xterm.c (XTmouse_position): Fix typo.
14c7242e 2065
c28b847b
GM
20662001-03-05 Gerd Moellmann <gerd@gnu.org>
2067
2068 * minibuf.c (read_minibuf): Clean up the binding stack if
2069 called noninteractively.
2070
b86644f2
KH
20712001-03-05 Kenichi Handa <handa@etl.go.jp>
2072
2073 * coding.c (syms_of_coding): Docstring modified.
2074
203682cc 20752001-03-05 Kenichi Handa <handa@etl.go.jp>
b86644f2
KH
2076
2077 * charset.c (char_to_string): If a single byte char has modifier
2078 bits that can't be reflected to the character code, ignore them
45d051a7 2079 instead of signaling an error.
b86644f2 2080
e30bd7b7
EZ
20812001-03-04 Eli Zaretskii <eliz@is.elta.co.il>
2082
2083 * s/msdos.h: Update copyright notice.
2084
2085 * dosfns.h: Update copyright notice.
2086
2087 * dosfns.c: Update copyright notice.
2088
2089 * msdos.c: Update copyright notice.
2090
b52b65bd
GM
20912001-03-02 Gerd Moellmann <gerd@gnu.org>
2092
2093 * xterm.c (glyph_rect): New function.
2094 (XTmouse_position): Use it to raise the threshold for mouse
2095 movement event generation.
2096
53c4b1e6
EZ
20972001-03-02 Eli Zaretskii <eliz@is.elta.co.il>
2098
2099 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist
2100 specifies (reverse . t), reverse the initial screen colors.
2101 (IT_set_frame_parameters): If the property is foreground-color,
52283633
SM
2102 but we are reversing the colors, set bg_set, not fg_set.
2103 Likewise for setting background-color and reversing: set fg_set.
2104 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is
53c4b1e6
EZ
2105 in effect.
2106
2107 * xfaces.c (Finternal_set_lisp_face_attribute)
2108 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's
2109 parameters alist.
2110
f964b4d7
GM
21112001-03-02 Gerd Moellmann <gerd@gnu.org>
2112
ef53d75e
GM
2113 * fileio.c (Fexpand_file_name): Collapse sequences of slashes
2114 to a single slash in the middle of file names.
2115
52283633 2116 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]:
cda0f4da
GM
2117 Accept only alphanumeric time zone names.
2118
f964b4d7
GM
2119 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height
2120 or width area.
2121 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure
2122 a widget to zero height.
52283633 2123
c3c45f65
GM
21242001-03-01 Gerd Moellmann <gerd@gnu.org>
2125
2126 * window.c (Fwindow_end): Call move_it_past_eol only if
2127 ending up on a partially visible line.
2128
028d739a
DL
21292001-03-01 Dave Love <fx@gnu.org>
2130
2131 * ccl.c (Fccl_execute): Doc fix.
2132
57c5889c
GM
21332001-03-01 Gerd Moellmann <gerd@gnu.org>
2134
35f59f6b
GM
2135 * xfns.c (Fx_create_frame): Adjust the frame's height for presence
2136 of the tool bar before calling x_figure_window_size.
2137
f84ff02c
GM
2138 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to
2139 NULL after destroying it, otherwise XTread_socket can access a
2140 destroyed widget when input is unblocked.
2141
8b8f9197 2142 * xfns.c (x_set_foreground_color): Set the background of the cursor GC.
52283633 2143
57c5889c
GM
2144 * xfns.c (x_set_font): Handle case of x_new_fontset returning the
2145 same name as before, although there was a change in fontsets.
2146
224227d1
KR
21472001-02-28 Ken Raeburn <raeburn@gnu.org>
2148
4560730a
KR
2149 * lisp.h (Fframe_parameter): Declare.
2150
224227d1 2151 * window.c (set_window_buffer): Field vscroll is an int, not a
57c5889c 2152 Lisp_Object.
224227d1 2153
ece93c02
GM
21542001-02-28 Gerd Moellmann <gerd@gnu.org>
2155
11ef99b9
GM
2156 * xterm.c (x_set_window_size): Don't use `None' with widgets; use
2157 NULL instead.
2158
2159 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use
2160 NULL instead.
2161
ece93c02
GM
2162 * alloc.c (toplevel): Include process.h.
2163 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE,
2164 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators.
2165 (allocate_vectorlike): Make it a static function. Add parameter TYPE.
52283633
SM
2166 (allocate_vector, allocate_hash_table, allocate_window)
2167 (allocate_frame, allocate_process, allocate_other_vector):
2168 New functions.
ece93c02
GM
2169 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike.
2170 (mark_maybe_pointer): New function.
52283633 2171 (mark_memory): Also mark Lisp data to which only pointers
ece93c02
GM
2172 remain and not Lisp_Objects.
2173 (min_heap_address, max_heap_address): New variables.
2174 (mem_find): Return MEM_NIL if START is below min_heap_address or
2175 above max_heap_address.
2176 (mem_insert): Compute min_heap_address and max_heap_address.
2177
2178 * process.c (make_process): Use allocate_process.
2179
2180 * frame.c (make_frame): Use allocate_frame.
2181
2182 * window.c (make_window, make_dummy_parent): Use allocate_window.
2183 (Fcurrent_window_configuration): Use allocate_other_vector.
2184
2185 * lisp.h (allocate_vectorlike): Remove prototype.
2186 (allocate_vector, allocate_other_vector, allocate_frame)
2187 (allocate_window, allocate_process, allocate_hash_table):
2188 Add prototypes.
2189
2190 * fns.c (Fdelete, larger_vector): Use allocate_vector.
2191 (make_hash_table, copy_hash_table): Use allocate_hash_table.
2192
063af457
KH
21932001-02-27 Kenichi Handa <handa@etl.go.jp>
2194
2195 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero,
2196 treat the produced bytes as a valid multibyte sequence.
2197
2198 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro.
52283633
SM
2199 (ccl_driver) <CCL_WriteMultibyteChar2>:
2200 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR.
063af457
KH
2201 <ccl_finish>: Set ccl->eight_bit_control properly.
2202
2203 * ccl.h (struct ccl_program): New member eight_bit_control.
2204
f58c6494
SM
22052001-02-26 Stefan Monnier <monnier@cs.yale.edu>
2206
2207 * keymap.c (Faccessible_keymaps): Pass `is_metized' to
2208 accessible_keymaps_char_table.
2209 (accessible_keymaps_char_table): Obey `is_metized'.
2210 (where_is_internal, Fwhere_is_internal): Don't confuse int and
2211 Lisp_Object.
2212
c596c392
GM
22132001-02-26 Gerd Moellmann <gerd@gnu.org>
2214
2215 * dispnew.c: Check HAVE_TERM_H before including term.h.
2216
425de386
AI
22172001-02-24 Andrew Innes <andrewi@gnu.org>
2218
2219 * makefile.w32-in: Update copyright notice.
2220
2ba11bbd
SM
22212001-02-24 Stefan Monnier <monnier@cs.yale.edu>
2222
2223 * keymap.c (where_is_internal): Accept non-ascii integer prefixes.
2224
66c56ed1
KH
22252001-02-24 Kenichi Handa <handa@etl.go.jp>
2226
4c1593ce
KH
2227 * Makefile.in (lisp): Add international/utf-8.elc.
2228
66c56ed1
KH
2229 * fontset.c (Fnew_fontset): Fix handling of the case that an
2230 element of FONTLIST is a cons of family and registry.
2231
796ead7e
JR
22322001-02-23 Jason Rumney <jasonr@gnu.org>
2233
2234 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES
2235 to height unconditionally.
2236
2237 * w32term.c (x_set_glyph_string_background_width): Extend the
52283633 2238 background face to the end of the drawing area in the text area, only.
796ead7e
JR
2239 (x_insert_glyphs): Call window_box_left to obtain the left
2240 x-coordinate of the area to shift.
2241
2242 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with
2243 safe_run_hooks.
2244
f6839838
AI
22452001-02-22 Andrew Innes <andrewi@gnu.org>
2246
52283633 2247 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files.
f6839838
AI
2248 ($(BLD)\dispnew.obj):
2249 ($(BLD)\editfns.obj):
2250 ($(BLD)\fileio.obj):
2251 ($(BLD)\filelock.obj):
2252 ($(BLD)\keyboard.obj):
2253 ($(BLD)\w32proc.obj):
2254 ($(BLD)\process.obj):
2255 ($(BLD)\sysdep.obj): Ditto.
2256
2257 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS
2258 header files.
52283633
SM
2259 ($(BLD)/dispnew.$(O)):
2260 ($(BLD)/editfns.$(O)):
2261 ($(BLD)/fileio.$(O)):
2262 ($(BLD)/filelock.$(O)):
2263 ($(BLD)/keyboard.$(O)):
2264 ($(BLD)/w32proc.$(O)):
2265 ($(BLD)/process.$(O)):
f6839838
AI
2266 ($(BLD)/sysdep.$(O)): Ditto.
2267
c224f70b
GM
22682001-02-22 Gerd Moellmann <gerd@gnu.org>
2269
51695746
GM
2270 * xdisp.c (forward_to_next_line_start): When taking the shortcut
2271 at the start of the function, check that the \n in it->c is
2272 from the iterator's current position.
52283633 2273
a61b7058
GM
2274 * xdisp.c (handle_single_display_prop): Add parameter
2275 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display
2276 properties which replace the display of text with something else.
2277 (handle_display_prop): Call handle_single_display_prop with
2278 additional argument saying if we already replaced text display
2279 with something else. Use AREF.
52283633 2280 (with_echo_area_buffer_unwind_data, display_menu_bar)
a61b7058
GM
2281 (decode_mode_spec_coding): Use AREF and ASIZE.
2282
3473f362
GM
2283 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c,
2284 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c,
2285 * vmstime.h: Files removed.
52283633 2286
2bb58df3
GM
2287 * unexencap.c, unexfx2800.c: Files removed.
2288
c224f70b
GM
2289 * dispnew.c (direct_output_for_insert): Give up if we are showing
2290 a message or just cleared the message because we might need to
2291 resize the echo area window or display an empty echo area.
2292
ffc9ff0c
GM
22932001-02-21 Gerd Moellmann <gerd@gnu.org>
2294
0528abe1
GM
2295 * xdisp.c (redisplay_internal): Do the
2296 mark_window_display_accurate after all windows have been
2297 redisplayed because this call resets flags in buffers which are
2298 needed for proper redisplay.
2299
52283633
SM
2300 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c:
2301 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of
ffc9ff0c
GM
2302 the old names.
2303
52283633
SM
2304 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor,
2305 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
2306
2307 * msdos.h (struct x_output): Rename busy_window to
2308 hourglass_window, busy_p to hourglass_p.
2309
52283633
SM
2310 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor,
2311 busy_window to hourglass_window, busy_p to hourglass_p.
ffc9ff0c
GM
2312
2313 * xfns.c: Rename everything containing *busy_cursor* and similar
2314 to *hourglass*.
2315 (syms_of_w32fns): Rename x-busy-pointer-shape to
2316 x-hourglass-pointer-shape, display-busy-cursor to
2317 display-hourglass, busy-cursor-delay to hourglass-delay.
2318
2319 * w32fns.c: Rename everything containing *busy_cursor* and similar
2320 to *hourglass*.
2321 (syms_of_w32fns): Rename x-busy-pointer-shape to
2322 x-hourglass-pointer-shape, display-busy-cursor to
2323 display-hourglass, busy-cursor-delay to hourglass-delay.
2324
2325 * xterm.c (XTread_socket): Test x_output's hourglass_p instead
2326 of its busy_p flag.
2327
2328 * dispextern.h (start_hourglass, cancel_hourglass)
2329 (display_hourglass_p): Renamed from *busy_cursor*.
2330
ab2c5f0a
GM
23312001-02-20 Gerd Moellmann <gerd@gnu.org>
2332
d17e49a8
GM
2333 * keyboard.c (read_char): When an event from unread-command-events
2334 is from the tool or menu bar, set *USE_MOUSE_MENU to 1.
2335
fa97adf6
GM
2336 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not
2337 equal to the current buffer.
2338
ab2c5f0a
GM
2339 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to
2340 nil, otherwise we're left with truncate_lines t when a message
2341 is printed with message-truncate-lines bound to t.
2342
aeac019e
GM
23432001-02-19 Gerd Moellmann <gerd@gnu.org>
2344
c8bc6f65
GM
2345 * window.c (Fmove_to_window_line): Undo last change.
2346 (displayed_window_lines): Call line_bottom_y to determine
2347 the line's bottom position.
2348
2349 * dispextern.h (line_bottom_y): Add prototype.
2350
52283633 2351 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p.
c8bc6f65
GM
2352 (pos_visible_p): Use it.
2353
980a2d69
GM
2354 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and
2355 set redisplaying_p to 0 here instead of in Frecursive_edit.
2356 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't
2357 set redisplaying_p.
2358
52283633 2359 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update):
184d2372
GM
2360 New variables.
2361 (syms_of_xdisp): Initialize new variables.
2362 (update_menu_bar): Do nothing if inhibit_menubar_update is set.
2363 Specbind `inhibit-menubar-update' when updating the menu bar.
2364
65048e97
GM
2365 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with
2366 safe_run_hooks.
2367
2368 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with
2369 safe_run_hooks.
2370
a57c4026
GM
2371 * emacs.c (malloc_initialize_hook): Handle case thet `environ'
2372 is null.
2373
aeac019e
GM
2374 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration
2375 to the start of the file.
2376
76846b31
GM
23772001-02-16 Gerd Moellmann <gerd@gnu.org>
2378
f3f053f3 2379 * window.c (set_window_buffer): Fix last change.
52283633 2380
f3f053f3
GM
2381 * window.c (set_window_buffer): Set window's vscroll to 0.
2382
dad75588
GM
2383 * window.c (coordinates_in_window): Increase width of area
2384 where the vertical line can be dragged.
2385
c220b753
GM
2386 * xterm.c (x_set_glyph_string_background_width): Extend the
2387 background face to the end of the drawing area in the text
2388 area, only.
2389
c56b1c1b
GM
2390 * xdisp.c (handle_single_display_prop): Set iterator's position
2391 to where the `display' property starts, like for images.
2392 (dump_glyph): New function.
2393 (dump_glyph_row): Use it. Dump info about marginal areas.
2394
2395 * dispnew.c (direct_output_for_insert): Recognize more cases where
2396 glyphs can be written instead of being inserted.
2397
2398 * xterm.c (x_insert_glyphs): Call window_box_left to obtain
2399 the left x-coordinate of the area to shift.
2400
76846b31
GM
2401 * dired.c (directory_files_internal): Set result list to nil
2402 before retrying.
2403
0fc71a77
KH
24042001-02-15 Kenichi Handa <handa@etl.go.jp>
2405
2406 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an
2407 invalid multibyte sequence, treat *SRC as a character of
2408 eight-bit-graphic.
2409
25078b54
EZ
24102001-02-15 Eli Zaretskii <eliz@is.elta.co.il>
2411
2412 * textprop.c (Fset_text_properties): Doc fix.
2413
8399f8a0
GM
24142001-02-15 Gerd Moellmann <gerd@gnu.org>
2415
2416 * dispnew.c (update_text_area): Undo change of 2001-01-12.
2417
9a2a6f73
DL
24182001-02-14 Dave Love <fx@gnu.org>
2419
2420 * coding.c: Doc and message fixes.
2421
bf853fee
AI
24222001-02-14 Andrew Innes <andrewi@gnu.org>
2423
2424 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the
2425 Emacs frame above the screen size.
2426
78c663d8
GM
24272001-02-14 Gerd Moellmann <gerd@gnu.org>
2428
2429 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV.
2430
7cc9f69f
GM
24312001-02-13 Gerd Moellmann <gerd@gnu.org>
2432
0a411995
GM
2433 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle
2434 case that TO ends up beyond ZV after running before-change-functions.
2435
5ddc1b75
GM
2436 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return
2437 the selected window if it is showing the buffer in question.
2438
7cc9f69f
GM
2439 * dired.c (directory_files_internal): Initialize errno.
2440 (toplevel): Include errno.h.
2441
2e6621ca
GM
24422001-02-13 Kenichi Handa <handa@etl.go.jp>
2443
2444 * xfaces.c (best_matching_font): New parameter width_ratio.
2445 Multiply avgwidth by width_ratio.
2446 (choose_face_font): Call best_matching_font with width_ratio
2447 calculated from the column width of C.
2448
60222d69
AI
24492001-02-12 Andrew Innes <andrewi@gnu.org>
2450
2451 The following changes are to draw box lines inside characters area
2452 if line-width is negative.
52283633 2453
60222d69
AI
2454 * w32term.c (x_produce_image_glyph): Pay attention to the case that
2455 face->box_line_width is negative.
2456 (x_produce_stretch_glyph): Likewise.
2457 (x_produce_glyphs): Likewise.
2458 (x_estimate_mode_line_height): Likewise.
2459 (x_draw_glyph_string_background): Likewise.
2460 (x_draw_glyph_string_foreground): Likewise.
2461 (x_draw_composite_glyph_string_foreground): Likewise.
2462 (x_draw_glyph_string_box): Likewise.
2463 (x_draw_image_foreground): Likewise.
2464 (x_draw_image_relief): Likewise.
2465 (x_draw_image_foreground_1): Likewise.
2466 (x_draw_image_glyph_string): Likewise.
2467
9804b846
KH
24682001-02-09 Kenichi Handa <handa@etl.go.jp>
2469
2470 The following changes are to draw box lines inside characters area
2471 if line-width is negative.
52283633 2472
9804b846
KH
2473 * xterm.c (x_produce_image_glyph): Pay attention to the case that
2474 face->box_line_width is negative.
2475 (x_produce_stretch_glyph): Likewise.
2476 (x_produce_glyphs): Likewise.
2477 (x_estimate_mode_line_height): Likewise.
2478 (x_draw_glyph_string_background): Likewise.
2479 (x_draw_glyph_string_foreground): Likewise.
2480 (x_draw_composite_glyph_string_foreground): Likewise.
2481 (x_draw_glyph_string_box): Likewise.
2482 (x_draw_image_foreground): Likewise.
2483 (x_draw_image_relief): Likewise.
2484 (x_draw_image_foreground_1): Likewise.
2485 (x_draw_image_glyph_string): Likewise.
2486
2487 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box
2488 and :line-width can be negative.
52283633 2489 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative.
9804b846 2490
49be9f70
JR
24912001-02-09 Jason Rumney <jasonr@gnu.org>
2492
2493 * w32term.c (w32_encode_char): Treat eight bit graphic and control
2494 characters the same as ASCII and latin-1.
2495 (x_display_and_set_cursor): Check for the focus frame's selected
2496 window instead of selected_window.
2497 (x_after_update_window_line): Don't clear if frame's internal
2498 border width is zero.
2499 (x_new_font): Don't change a tooltip's size.
2500 (w32_initialize): Set char_ins_del_ok to 1.
2501
2502 * w32fns.c (Fx_show_tip): Fix calls to make_number.
2503 (x_set_font): If font hasn't changed, avoid recomputing
2504 faces and other things.
52283633
SM
2505 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only,
2506 (Fx_create_frame): Add the tool bar height to the frame height.
49be9f70
JR
2507 (x_create_tip_frame): Prevent changing the tooltip's
2508 background color by specifying a color for the default font
2509 in .Xdefaults.
2510 (Qcancel_timer): New variable.
2511 (syms_of_w32fns): Initialize and staticpro it.
2512 (Fx_hide_tip, Fx_show_tip): Use it.
2513 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
2514 the timer.
2515 (toplevel): Lisp code for generating parts of syms_of_w32fns removed.
2516
2517 * w32.c (init_environment): Duplicate local string before putenv.
2518
555e35d2
SZ
25192001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu>
2520
2521 * charset.c (Fstring): A typo.
2522
19c92c94
KH
25232001-02-09 Kenichi Handa <handa@etl.go.jp>
2524
e47a1c33
KH
2525 * charset.c (Fstring): If all arguments are less than 256, return
2526 a unibyte string.
2527
2528 * editfns.c (Fchar_to_string): If CHARACTER is less than 256,
2529 return a unibyte string.
2530
19c92c94
KH
2531 * coding.c (code_convert_region): After detecting a coding, if
2532 nothing found, set coding->composing to COMPOSITION_NO.
2533 (decode_coding_string): Likewise.
2534
d8e675f5
SM
25352001-02-08 Stefan Monnier <monnier@cs.yale.edu>
2536
2537 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range'
2538 to avoid overflow.
2539
bd503487
KH
25402001-02-07 Kenichi Handa <handa@etl.go.jp>
2541
2542 * charset.c (parse_str_to_multibyte): New function.
2543
2544 * charset.h (parse_str_to_multibyte): Extern it.
2545
2546 * print.c (print_string): If we are going to print a unibyte
2547 string into a multibyte buffer, convert the string to multibyte by
2548 str_to_multibyte.
2549
a8370d72
AI
25502001-02-06 Andrew Innes <andrewi@gnu.org>
2551
2552 * w32xfns.c (select_palette): Do nothing if palette hasn't yet
2553 been created. It seems we can get sent window messages such as
2554 WM_ERASEBKGND before we properly update a frame.
2555
c363a1d6
GM
25562001-02-06 Gerd Moellmann <gerd@gnu.org>
2557
2558 * dispnew.c (update_frame_line): Rename parameter FRAME to F.
2559 Avoid some unnecessary cursor positioning.
2560
a08332c0
GM
25612001-02-05 Gerd Moellmann <gerd@gnu.org>
2562
52283633 2563 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH.
a08332c0
GM
2564 (LFACE_AVGWIDTH): New macro.
2565 (LFACEP): Use AREF.
2566 (check_lface_attrs): Check LFACE_AVGWIDTH.
2567 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH.
2568 (set_lface_from_font_name): Set LFACE_AVGWIDTH.
2569 (merge_face_vectors): Check LFACE_AVGWIDTH.
2570 (Finternal_make_lisp_face): Use AREF.
2571 (xm_set_menu_resources_from_menu_face)
2572 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH.
2573 (Finternal_lisp_face_empty_p): Use AREF.
2574 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH.
2575 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH.
2576 Compare average widths..
2577 (best_matching_font): Arrange for comparing average widths.
2578
52283633
SM
2579 * dispextern.h (enum lface_attribute_index):
2580 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp).
2581
5cb3c8d4
DL
25822001-02-05 Dave Love <fx@gnu.org>
2583
2584 * puresize.h: Revert last change following loadup.el change.
2585
193fba87
AI
25862001-02-05 Andrew Innes <andrewi@gnu.org>
2587
2588 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in
2589 invocation of temacs, to work with Windows 2000.
2590 (bootstrap-emacs): Ditto.
2591
e16f52ce
GM
25922001-02-05 Gerd Moellmann <gerd@gnu.org>
2593
7a58ab59
GM
2594 * xterm.c (x_display_and_set_cursor): Check for the focus
2595 frame's selected window instead of selected_window.
2596
e89aaabd
GM
2597 * xdisp.c (try_scrolling): If point is in the line below the
2598 window, make sure to move the iterator at least a canonical
2599 char height down.
2600
52283633 2601 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled.
e16f52ce 2602
789ce875
KH
26032001-02-05 Kenichi Handa <handa@etl.go.jp>
2604
52283633
SM
2605 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not.
2606 If invalid, execute CCL_INVALID_CMD.
789ce875
KH
2607 (ccl_driver): If the CCL program is terminated because of
2608 CCL_STAT_INVALID_CMD, copy the remaining source data to the
2609 destination instead of throwing them away.
2610
20b28f82
GM
26112001-02-02 Gerd Moellmann <gerd@gnu.org>
2612
79fb38c0
GM
2613 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing
2614 faces and other things.
2615
20b28f82
GM
2616 * xdisp.c (get_next_display_element): Fix case of empty
2617 display table entry.
2618
5a72551e
EZ
26192001-02-02 Eli Zaretskii <eliz@is.elta.co.il>
2620
eb24d0bf
EZ
2621 * editfns.c (Fconstrain_to_field): Doc fix.
2622
6a3f48c7
EZ
2623 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument
2624 into `thoroughly', to make it consistent with the doc string.
2625
5a72551e
EZ
2626 * window.c (Fenlarge_window, Fshrink_window): Doc fix.
2627
01acdb05
GM
26282001-02-01 Gerd Moellmann <gerd@gnu.org>
2629
0353b28f
GM
2630 * search.c (search_buffer): Call set_search_regs with a byte
2631 position, not a character position.
2632
01acdb05
GM
2633 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is
2634 minibuffer-only,
2635
e86b5133
EZ
26362001-02-01 Eli Zaretskii <eliz@is.elta.co.il>
2637
2638 * frame.c (Fmodify_frame_parameters): Doc fix.
2639
7442878f
GM
26402001-01-31 Gerd Moellmann <gerd@gnu.org>
2641
01acdb05
GM
2642 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker
2643 identifier which is not reserved by Standard C.
52283633 2644
7442878f
GM
2645 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define.
2646
2647 * window.c (enum window_part): New enumeration.
2648 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and
2649 Qright_bitmap_area.
2650 (coordinates_in_window): Return an enumerator from enum
2651 window_part. Fix handling of right scroll bar.
2652 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and
2653 `right-fringe' instead of `left-bitmap-area' and
2654 `right-bitmap-area'. Use enumerators from enum window_part
2655 instead of hard-coded integers.
52283633
SM
2656 (check_window_containing, window_from_coordinates):
2657 Use enumerators from enum window_part instead of hard-coded integers.
7442878f
GM
2658 (syms_of_window): Replace Qleft_bitmap_area and
2659 Qright_bitmap_area.with Qleft_fringe and Qright_fringe.
2660
7c132cba
EZ
26612001-01-31 Eli Zaretskii <eliz@is.elta.co.il>
2662
2663 * editfns.c (Fformat_time_string): Doc fix.
2664
c359dd9e
SM
26652001-01-31 Stefan Monnier <monnier@cs.yale.edu>
2666
2667 * keymap.c (Fwhere_is_internal): Use the first valid binding
2668 if no ascii binding is found (when firstonly is t).
2669
ce070307
GM
26702001-01-31 Gerd Moellmann <gerd@gnu.org>
2671
b4f30ec5
GM
2672 * window.c (Fscroll_right, Fscroll_left): Use interactive_p
2673 instead of Finteractive_p.
2674
2675 * lisp.h (interactive_p): Add prototype.
2676
2677 * eval.c (interactive_p): New function.
2678 (Finteractive_p): Use it.
2679
ce070307
GM
2680 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop.
2681
f57b6e64
DL
26822001-01-31 Dave Love <fx@gnu.org>
2683
d61c7afe
DL
2684 * .gdbinit (hook-run): Define to run xreload.
2685
f57b6e64
DL
2686 * textprop.c (Fset_text_properties): Fix newline in doc string.
2687
eef93f99
GM
26882001-01-30 Gerd Moellmann <gerd@gnu.org>
2689
52283633
SM
2690 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp):
2691 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF.
eef93f99
GM
2692
2693 * dispextern.h (Vtool_bar_button_margin:): Declare extern.
52283633 2694 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF)
eef93f99
GM
2695 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines.
2696
2697 * xfns.c (Fx_create_frame): Add the tool bar height to the frame
2698 height.
2699
d9c1f6f9
DL
27002001-01-30 Dave Love <fx@gnu.org>
2701
2702 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and
2703 AFTER_POTENTIAL_GC.
2704
e8f044a0
GM
27052001-01-29 Gerd Moellmann <gerd@gnu.org>
2706
52283633
SM
2707 * bytecode.c (Fbyte_code) <Bcurrent_column>:
2708 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC.
e8f044a0 2709
8e1db7b3
EZ
27102001-01-29 Eli Zaretskii <eliz@is.elta.co.il>
2711
2712 * textprop.c (Fset_text_properties): Doc fix.
2713
4eefd9d2
GM
27142001-01-29 Gerd Moellmann <gerd@gnu.org>
2715
2716 * xdisp.c (forward_to_next_line_start): Remove xassert.
2717
fccb8288
EZ
27182001-01-29 Jason Rumney <jasonr@gnu.org>
2719
4eefd9d2 2720 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid
fccb8288
EZ
2721 returning without releasing it.
2722
76581eab
KH
27232001-01-29 Kenichi Handa <handa@etl.go.jp>
2724
2725 * w32fns.c (w32_font_match): Allocate three more bytes to regex
2726 for '^', '$', and '\0'.
2727
83a96b4d
AC
27282001-01-28 Andrew Choi <akochoi@i-cable.com>
2729
5604ec34
AC
2730 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to
2731 regex for '^', '$', and '\0'.
2732
83a96b4d
AC
2733 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes
2734 only if current_sblock has been initialized.
2735
2736 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial
2737 terminal frame even if it is the only visible frame.
2738
c09a6440
KH
27392001-01-28 Kenichi Handa <handa@etl.go.jp>
2740
2741 * fontset.c (font_family_registry): Even if FONTNAME conform to
2742 XLFD, if it specifies other fields than family and registry,
52283633 2743 return FONTANME. New argument FORCE if nonzero cancel that feature.
c09a6440 2744 (fontset_font_pattern): Call font_family_registry with FORCE 1 for
52283633
SM
2745 a signle byte character. Don't set FAMILY part to nil here.
2746 It is handled by the caller choose_face_font.
c09a6440
KH
2747 (Fnew_fontset): Call font_family_registry with FORCE 0.
2748 (Fset_fontset_font): Likewise.
2749
4dcd74e6
GM
27502001-01-27 Gerd Moellmann <gerd@gnu.org>
2751
2752 * xdisp.c (display_line): Don't treat a newline as fitting
2753 on the line.
2754
d2906bf8
GM
27552001-01-26 Gerd Moellmann <gerd@gnu.org>
2756
0130fe1a
GM
2757 * window.c (size_window): Set the window's orig_top to nil when
2758 changing heights, so that a future shrink_mini_window won't
2759 restore a bogus height.
2760
550f0e6a
GM
2761 * frame.c (do_switch_frame): If selected frame has a mini-window,
2762 resize that to exact size.
2763
b7b20fbd
GM
2764 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices.
2765
a47b7816
GM
2766 * xdisp.c (display_line): Simplify check for glyphs fitting
2767 entirely in the line.
2768
d2906bf8
GM
2769 * xfns.c (xic_style): New variable.
2770 (create_frame_xic): Move static variable to global scope for
550f0e6a 2771 the case that `static' gets defined away.
d2906bf8 2772
73df2b1e
KH
27732001-01-26 Kenichi Handa <handa@etl.go.jp>
2774
2775 * coding.c (decode_coding): Set a flag for inhibiting
2776 inconsistent eol.
2777 (code_convert_region): Always set saved_coding_symbol.
2778 (decode_coding_string): Likewise. Update coding->symbol when we
52283633 2779 encounter a inconsistent eol by the same way as code_convert_region.
73df2b1e 2780
6613cfc4
GM
27812001-01-25 Gerd Moellmann <gerd@gnu.org>
2782
c5e6e06b
GM
2783 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of
2784 XClearArea.
2785
2786 * xterm.c (x_after_update_window_line): Don't clear if frame's
2787 internal border width is zero.
2788 (x_clear_area): New function.
2789 (x_after_update_window_line, x_clear_end_of_line)
2790 (x_scroll_bar_create, x_scroll_bar_set_handle)
2791 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area
2792 instead of XClearArea.
2793
2794 * xterm.h (x_clear_area): Add prototype.
2795
6613cfc4
GM
2796 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif
2797 which doesn't seem necessary anymore with Lesstif 0.92.
2798
650cc6cc
DL
27992001-01-25 Dave Love <fx@gnu.org>
2800
34ac3367
DL
2801 * puresize.h (BASE_PURESIZE): Up to 720000.
2802
650cc6cc
DL
2803 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4.
2804
5e37dc22
GM
28052001-01-25 Gerd Moellmann <gerd@gnu.org>
2806
e1e441f9
GM
2807 * xdisp.c (echo_area_display): Don't call redisplay_internal
2808 when Emacs is shutting down. We can't run hooks etc. that
2809 would be necessary to do a redisplay.
2810
5e37dc22
GM
2811 * lread.c (read_integer): Use type EMACS_INT instead of int.
2812
0fb94c7f
EZ
28132001-01-25 Eli Zaretskii <eliz@is.elta.co.il>
2814
2815 * ccl.c (ccl_driver): Fix last change.
2816
e3778624
KH
28172001-01-25 Kenichi Handa <handa@etl.go.jp>
2818
2819 * ccl.h (sturct ccl_program): New member suppress_error.
2820
bb264518 2821 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't
e3778624
KH
2822 insert error message to the output.
2823 (setup_ccl_program): Initialize ccl->suppress_error to 0.
2824
2825 * coding.h (struct coding_system): New member suppress_error.
2826
2827 * coding.c (ccl_coding_driver): Setup ccl->suppress_error.
2828 (Fset_terminal_coding_system_internal): Set the member
2829 suppress_error to 1.
2830 (Fset_safe_terminal_coding_system_internal): Likewise.
2831
245ed2b1
SM
28322001-01-24 Stefan Monnier <monnier@cs.yale.edu>
2833
2834 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
2835 as if it was a `charset'.
2836
f9aaedb6
GM
28372001-01-24 Gerd Moellmann <gerd@gnu.org>
2838
2839 * keymap.c (Fwhere_is_internal): Don't nreverse the cached
2840 value in where_is_cache; the next lookup in the cache returns
2841 something bogus if we do.
2842
c3902c3e
EZ
28432001-01-24 Eli Zaretskii <eliz@is.elta.co.il>
2844
2845 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr
2846 if HAVE_WINDOW_SYSTEM isn't defined.
2847
3497f73e
GM
28482001-01-24 Gerd Moellmann <gerd@gnu.org>
2849
e7e41584
GM
2850 * fns.c (sweep_weak_table): Fix code taking items out of
2851 the hash collision chain. Some cleanup.
2852
3497f73e
GM
2853 * xterm.c (x_new_font): Don't change a tooltip's size.
2854
2855 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's
2856 background color by specifying a color for the default font
2857 in .Xdefaults.
2858
3d48e687
KH
28592001-01-24 Kenichi Handa <handa@etl.go.jp>
2860
96531b20
KH
2861 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as
2862 a workaround for SunOS 4's cc.
2863 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...".
2864 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise.
2865 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do"
2866 statement.
3d48e687 2867
a30629d2
GM
28682001-01-23 Gerd Moellmann <gerd@gnu.org>
2869
2870 * xterm.c (x_set_window_size_1): New function extracted from
2871 x_set_window_size.
2872 (x_set_window_size): Use it.
2873 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window
2874 doesn't have a widget, like tooltips.
2875
5a43decf
EZ
28762001-01-23 Eli Zaretskii <eliz@is.elta.co.il>
2877
52283633 2878 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix.
5a43decf 2879
b0e98867
KH
28802001-01-23 Kenichi Handa <handa@etl.go.jp>
2881
2882 * fns.c (Fset_char_table_default): Fix to make sub char-table
2883 correctly.
2884
50606b4c
GM
28852001-01-22 Gerd Moellmann <gerd@gnu.org>
2886
cb2ddc53 2887 * xdisp.c (build_desired_tool_bar_string): Make sure we have
52283633
SM
2888 a desired tool bar string, even if there are no tool bar items.
2889
57c28064
GM
2890 * xdisp.c (Ftool_bar_lines_needed): New function.
2891 (syms_of_xdisp): Defsubr it.
2892
50606b4c
GM
2893 * editfns.c (Fformat): Don't extend text properties from arguments
2894 to padding chars in the result.
2895
2f169c38
EZ
28962001-01-20 Eli Zaretskii <eliz@is.elta.co.il>
2897
2898 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS.
2899
0f32f023
AI
29002001-01-20 Andrew Innes <andrewi@gnu.org>
2901
52283633 2902 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames.
0f32f023
AI
2903 (w32_initialize): Don't set term hooks that aren't actually needed
2904 in windowed mode.
2905
2906 * xfaces.c (realize_default_face):
2907 (realize_face):
2908 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P.
2909
2910 * xdisp.c (handle_single_display_prop): Remove references to
2911 FRAME_W32_CONSOLE_P.
2912
52283633 2913 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P.
0f32f023
AI
2914
2915 * frame.h (output_method): Remove output_w32_console method.
2916 (FRAME_W32_CONSOLE_P): Remove macro.
2917
2918 * frame.c (Qw32_console): Remove variable.
2919 (Fframep): Remove references to it.
2920 (syms_of_frame): Ditto.
2921 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P.
2922
2923 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original
2924 redefinition.
2925
7173eada
KH
29262001-01-20 Kenichi Handa <handa@etl.go.jp>
2927
2928 * editfns.c (Fformat): Use lisp_string_width instead of strwidth.
2929
755b45ce
AI
29302001-01-19 Andrew Innes <andrewi@gnu.org>
2931
2932 * w32.c (init_environment): Add a version-independent site-lisp
2933 directory to EMACSLOADPATH, after the version dependent one.
2934
0a949811
GM
29352001-01-19 Gerd Moellmann <gerd@gnu.org>
2936
8501998a
GM
2937 * editfns.c (Fbuffer_substring): Doc fix.
2938
52283633
SM
2939 * xdisp.c (message_dolog, message2, message2_nolog):
2940 Rename parameter LEN to NBYTES.
0a949811 2941
e6ebcbbe
KH
29422001-01-19 Kenichi Handa <handa@etl.go.jp>
2943
200ecca2
KH
2944 * charset.c (strwidth): Use c_string_width.
2945 (c_string_width): New function.
2946 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES.
2947 Caller changed.
2948
2949 * charset.h (c_string_width, lisp_string_width): Extern them.
2950
52283633 2951 * doprnt.c (doprnt1): Get byte length of Lisp string correctly.
200ecca2 2952
e6ebcbbe
KH
2953 * indent.c (check_composition): Check validity of composition.
2954
200ecca2
KH
2955 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII
2956 characters by calling c_string_width.
2957 (x_consider_frame_title): Get byte length of frame tile string
2958 correctly.
2959 (display_mode_element): Pay attention to width of non-ASCII
2960 characters by calling strwidth.
2961
8692ca92
GM
29622001-01-18 Gerd Moellmann <gerd@gnu.org>
2963
8962e303
GM
2964 * xfns.c (Qcancel_timer): New variable.
2965 (syms_of_xfns): Initialize and staticpro it.
2966 (Fx_hide_tip, Fx_show_tip): Use it.
2967 (Fx_show_tip): Make sure to set tip_timer to nil when canceling
2968 the timer.
2969 (toplevel): Lisp code for generating parts of syms_of_xfns removed.
2970
91523be9
GM
2971 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P.
2972
2973 * window.h (WINDOW_LIVE_P): New macro.
2974
b0b7ed0e
GM
2975 * window.c (window_size_fixed): New variable.
2976 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for
2977 the doc string.
2978
06bccf8e
GM
2979 * eval.c (specbind): If binding a per-buffer variable which
2980 doesn't have a buffer-local value in the current buffer, change
2981 the global value by changing the value of the symbol bound in all
2982 buffers not having their own value, to make it consistent with
2983 what happens with other buffer-local variables.
2984
8692ca92
GM
2985 * xterm.c (x_initialize): Set char_ins_del_ok to 1.
2986
2987 * xdisp.c (forward_to_next_line_start): Stop at end of buffer
2988 when searching for a newline.
2989
bb3a3b50
KH
29902001-01-18 Kenichi Handa <handa@etl.go.jp>
2991
2992 * xdisp.c (display_string): Fix previous change.
2993
c2cc16fa
JR
29942001-01-18 Jason Rumney <jasonr@gnu.org>
2995
2996 * w32term.c (x_produce_stretch_glyph): Only use Qspace when
2997 GLYPH_DEBUG is defined.
2998 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't
2999 true for images with `:ascent 100'.
3000 (x_set_mouse_face_gc): If the last used mouse face has gone in the
3001 meantime, use face MOUSE_FACE_ID.
3002 If first glyph isn't a character glyph, use the ASCII NUL
3003 character to determine the face.
3004 (expose_area): Do not treat left margin specially.
3005 (note_mode_line_highlight): If no local_map, check global keymap.
3006 (note_mouse_highlight): Initialize overlay.
52283633 3007 (clear_mouse_face): Don't return if tip_frame is non-nil.
c2cc16fa
JR
3008 (show_scroll_bars): Remove unused function.
3009 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil.
3010 (x_draw_bar_cursor): Remove extra test for out of bounds cursor.
3011 Clip to row.
52283633 3012 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil.
c2cc16fa
JR
3013 (x_free_frame_resources): Unload relief colors.
3014
9c11f79e
GM
30152001-01-17 Gerd Moellmann <gerd@gnu.org>
3016
3aec8722 3017 * xdisp.c (forward_to_next_line_start): Avoid calling
52283633
SM
3018 get_next_display_element when the newline is already found.
3019 This may change the iterator's position, when its current position is
3aec8722
GM
3020 equal to the iterator's stop_charpos.
3021
f3ffc2c3
GM
3022 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is
3023 zero, use this method only at the end of a line.
3024
52283633 3025 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the
a86110a8
GM
3026 call to x_list_fonts. Call x_list_fonts with SIZE -1 only
3027 if SCALABLE_FONTS_P is set.
52283633 3028
d26d6fd9
GM
3029 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1,
3030 so that scalable fonts are included.
3031
9c11f79e
GM
3032 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0,
3033 In the cache, use a key containing the information if scalable
3034 fonts are included.
3035 (x_load_font): Adapt to change of keys in the font cache.
3036
30372001-01-17 Kim F. Storm <storm@filanet.dk>
52283633 3038
d26d6fd9
GM
3039 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of
3040 XListFonts to take advantage of font caching.
3041
9c11f79e
GM
3042 * xterm.c (x_list_fonts): Ensure caching font information when
3043 called for a null frame, which is the case frequently when Emacs
3044 starts.
3045
51446987
GM
30462001-01-17 Gerd Moellmann <gerd@gnu.org>
3047
f864120f
GM
3048 * xfns.c (QCconversion): Replaces QCalgorithm.
3049
3050 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright.
3051
3052 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead
3053 of :algorithm.
52283633 3054
e37d1417
GM
3055 * xdisp.c (redisplay_tool_bar): Change tool bar's height when
3056 not everything could be displayed.
3057
51446987
GM
3058 * line.h, x-list-font.c: Files removed because unused.
3059
9ad4f3e5
AI
30602001-01-17 Andrew Innes <andrewi@gnu.org>
3061
3062 * dired.c (directory_files_internal): Convert result from readdir
3063 to a unibyte string initially, to avoid possible misinterpretation
3064 of some bytes as the internal form of Emacs characters.
3065
2eda09b5
KH
30662001-01-17 Kenichi Handa <handa@etl.go.jp>
3067
3068 * fns.c (concat): Be sure to avoid putting the same `composition'
3069 property on the adjacent regions.
3070
826f3788
GM
30712001-01-16 Gerd Moellmann <gerd@gnu.org>
3072
52283633 3073 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here.
f251459d
GM
3074 (Fscroll_right, Fscroll_left): Set it here instead, if called
3075 interactively.
3076
d57b83b3
GM
3077 * buffer.c (Fset_buffer_modified_p): Set buffer's
3078 prevent_redisplay_optimizations_p flag.
3079
826f3788 3080 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c,
52283633
SM
3081 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area
3082 with additional arg.
3083
3084 * dispextern.h, lisp.h (redisplay_preserve_echo_area):
3085 Change prototype.
826f3788 3086
826f3788
GM
3087 * xdisp.c (redisplay_preserve_echo_area): Add parameter
3088 FROM_WHERE, for debugging.
3089
261d788b
KH
30902001-01-16 Kenichi Handa <handa@etl.go.jp>
3091
3092 * ccl.c (Fregister_ccl_program): Handle the return value of
3093 resolve_symbol_ccl_program correctly.
52283633 3094 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed.
261d788b 3095
bccee4f2
GM
30962001-01-15 Gerd Moellmann <gerd@gnu.org>
3097
e4ded23c
GM
3098 * xterm.c (x_set_mouse_face_gc): If the last used mouse face
3099 has gone in the meantime, use face MOUSE_FACE_ID.
52283633
SM
3100
3101 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]:
3102 If x_display_info_for_display returns null, don't try to close
ae24cb3b
GM
3103 the display; we didn't open it.
3104
bccee4f2
GM
3105 * dispnew.c (save_or_restore_current_matrices): Function removed.
3106 (save_current_matrix, restore_current_matrix): New functions.
3107 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and
3108 restore the frame's current matrix. Due to the glyph pointer
3109 setup done in adjust_glyph_matrix, there is no easy way to make
3110 saving the current matrix in the desired matrix generally correct,
3111 so don't try it.
3112
ebeccffa
KH
31132001-01-15 Kenichi Handa <handa@etl.go.jp>
3114
3115 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by
3116 truncation glyphs.
3117 (display_line): Optimize for wide characters.
e4ded23c 3118 (display_string): Don't try to display a multi-column character
ebeccffa
KH
3119 partially. On ttys, produce more than one truncation glyph for
3120 multi-column characters that don't fit on the line.
3121
64388126
KH
31222001-01-13 Kenichi Handa <handa@etl.go.jp>
3123
52283633
SM
3124 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]:
3125 Define it instead of WORDS_BIGENDIAN. Caller changed.
64388126 3126
8edb0a6f
JR
31272001-01-13 Jason Rumney <jasonr@gnu.org>
3128
3129 * w32fns.c (Fimage_size, image_ascent, lookup_image)
3130 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec)
52283633
SM
3131 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
3132 (tiff_format, gif_format, gs_format): Adapt to change of image margins.
8edb0a6f 3133
52283633
SM
3134 * w32term.c (x_produce_image_glyph, x_draw_image_foreground)
3135 (x_draw_image_relief, x_draw_image_foreground_1)
8edb0a6f
JR
3136 (x_draw_image_glyph_string): Adapt to change of image margins.
3137
3138 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused
3139 variables.
3140
3141 * w32bdf.c (search_file_line, get_cached_font_char)
3142 (cache_char_offset, create_offscreen_bitmap): Remove unused variables.
3143
3144 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses.
3145
3146 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height)
3147 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog)
3148 (Fw32_send_sys_command): Remove unused variables.
3149 (w32_msg_pump): Add parentheses.
3150
3151 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon)
3152 (x_new_fontset, x_calc_absolute_position, x_iconify_frame):
3153 Add parentheses.
3154
4956d1ef
GM
31552001-01-12 Gerd Moellmann <gerd@gnu.org>
3156
b30623be
GM
3157 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin.
3158 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin
3159 being a pair of margins.
3160 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins
3161 to DEFVAR_LISP. Extend doc.
3162
3163 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image
3164 margins.
3165 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a
3166 pair of integers `(X . Y)', use X for the horizontal and Y for the
3167 vertical margin.
3168 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator.
3169 (parse_image_spec): Check it.
52283633
SM
3170 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
3171 (tiff_format, gif_format, gs_format):
3172 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin.
b30623be 3173
52283633
SM
3174 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
3175 (x_draw_image_relief, x_draw_image_foreground_1)
b30623be
GM
3176 (x_draw_image_glyph_string): Adapt to the change of image margins.
3177
3178 * dispextern.h (struct image): Replace member `margin' with
3179 `hmargin' and `vmargin'.
3180
4554cc79
GM
3181 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW
3182 and GLYPHS.
3183
3184 * dispnew.c (update_text_area): Put code which decrements the
3185 stop position when the row's face extends to the end of the
3bffc665 3186 line in #if 0.
4554cc79 3187
3cccce8d
GM
3188 * xfns.c (x_set_mouse_color): Fix color allocation.
3189
4956d1ef
GM
3190 * keyboard.c: Call get_local_map with new argument list.
3191
3192 * intervals.c (get_local_map): Change TYPE to Lisp_Object.
3193
3194 * intervals.h (enum map_property): Removed.
3195 (get_local_map): Change prototype.
3196
3197 * keymap.c: Call get_local_map with new argument list.
3198 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP.
3199
2c2ff7f2
GM
32002001-01-11 Gerd Moellmann <gerd@gnu.org>
3201
a23887b9
GM
3202 * xdisp.c (build_desired_tool_bar_string): Correct the computation
3203 of the size needed for the tool bar string. For the last image,
3204 use a `display' property that reaches to the end of the string.
3205
a7ee2d2e
GM
3206 * xselect.c (selection_request_dpyinfo): New variable.
3207 (x_handle_selection_request): Set it.
3208 (x_selection_request_lisp_error): Don't call
3209 x_decline_selection_request if selection request's display has
3210 been closed.
3211
52283633
SM
3212 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]:
3213 Do the unregister_colors before calling XFreeColors.
2c2ff7f2 3214
457b792c
GM
32152001-01-10 Dave Love <fx@gnu.org>
3216
3217 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and
3218 ${SOME_MACHINE_LISP}, not ${lisp}.
3219
c1efd260
GM
32202001-01-10 Gerd Moellmann <gerd@gnu.org>
3221
52283633
SM
3222 * xdisp.c (display_line): On ttys, produce more than one truncation
3223 glyph for multi-column characters that don't fit on the line.
a98b5ed9 3224
ac95a621
GM
3225 * xselect.c (x_reply_selection_request): Add a comment.
3226
c1efd260
GM
3227 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and
3228 XkbGetNames instead of XkbGetKeyboard.
3229
1bfb1345
DL
32302001-01-10 Dave Love <fx@gnu.org>
3231
3232 * sysdep.c (random): Revert the declaration.
3233
38119822
GM
32342001-01-09 Gerd Moellmann <gerd@gnu.org>
3235
52283633
SM
3236 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]:
3237 Call function string_bytes.
35f464a7
GM
3238 (GC_CHECK_STRING_BYTES): Moved here from alloc.c.
3239
3240 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro.
3241 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions.
3242 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P.
3243 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in
3244 the current sblock.
3245 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES.
3246 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes
3247 after sweeping strings, and at the end.
3248 (GC_CHECK_STRING_BYTES): Moved to lisp.h.
3249
38119822
GM
3250 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to
3251 ensure that pop_message is called.
3252
3253 * keyboard.c (Fexecute_extended_command): Use a
3254 record_unwind_protect to ensure that pop_message is called.
3255
3256 * lisp.h (push_message_unwind): Add prototype.
3257
3258 * xdisp.c (push_message_unwind): New function.
3259
3260 * fileio.c (do_auto_save_unwind): Do the pop_message here
3261 instead of in Fdo_auto_save.
3262 (Fdo_auto_save): Don't call pop_message.
3263
f47a9ec4
KR
32642001-01-08 Ken Raeburn <raeburn@gnu.org>
3265
3266 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I
3267 in inner block.
3268
a758f97d
GM
32692001-01-08 Gerd Moellmann <gerd@gnu.org>
3270
6d0afc03
GM
3271 * window.c (window_scroll_pixel_based): Adjust glyph matrices
3272 when increasing window's vscroll.
3273
a758f97d
GM
3274 * macros.c (Qkbd_macro_termination_hook): New variable.
3275 (syms_of_macros): Initialize and staticpro it.
3276 (pop_kbd_macro): Run kbd-macro-termination-hook.
3277
3278 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil.
3279
1bfb1345 32802001-01-07 Dave Love <fx@gnu.org>
64d4ec0f
DL
3281
3282 * keyboard.c (Fread_key_sequence_vector): Avoid newline in
3283 arglist, for documentation's sake.
3284
0dac6924
AI
32852001-01-06 Andrew Innes <andrewi@gnu.org>
3286
3287 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead
3288 of *.pdb.
3289
8182406a
AI
32902001-01-05 Andrew Innes <andrewi@gnu.org>
3291
3292 * term.c (update_end): Don't check updating_frame; for some reason
3293 this can be 0 sometimes, such as after dismissing a popup menu,
3294 and isn't necessary given the explicit frame argument.
3295
3828218c
GM
32962001-01-05 Gerd Moellmann <gerd@gnu.org>
3297
3298 * sysdep.c: Don't prototype srandom; it takes an unsigned argument
3299 on some systems, and an unsigned long on others, like FreeBSD 4.1.
3300
2f5ded21
GM
33012001-01-04 Gerd Moellmann <gerd@gnu.org>
3302
52283633 3303 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil.
2f5ded21
GM
3304
3305 * xfns.c (x_create_tip_frame): Preserve the value of
3306 face_change_count around the creation of the tip frame.
52283633 3307
2f5ded21
GM
3308 * xfns.c (last_show_tip_args): New variable.
3309 (compute_tip_xy): New function.
3310 (Fx_show_tip): Reuse an existing tip frame, if possible.
3311 (syms_of_xfns): Initialize and staticpro last_show_tip_args.
3312
dfad65fa
DL
33132001-01-04 Dave Love <fx@gnu.org>
3314
64d4ec0f
DL
3315 * editfns.c (Fformat): Doc fix.
3316
dfad65fa
DL
3317 * systime.h (set_file_times): Prototype.
3318
3319 * widget.h (EmacsFrameSetCharSize_): Prototype.
3320
3321 * sysdep.c (random, srandom): Declare explicitly.
3322
3323 * dispextern.h (move_it_vertically_backward): Declare.
3324
85fe3b5e
GM
33252001-01-04 Gerd Moellmann <gerd@gnu.org>
3326
0f2ac578
GM
3327 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default,
3328 like in Fx_create_frame.
3329
482cca61
GM
3330 * xfaces.c (set_font_frame_param): Don't do anything for
3331 non-graphical frames.
3332
85fe3b5e
GM
3333 * window.c (Fdelete_other_windows): Set window's window_end_valid
3334 to nil when changing the window's start. Don't change the
3335 window's start when its top position hasn't changed. If we do,
3336 this will set the window's optional_new_start, which act's like a
3337 force_start during redisplay with C-x 1 M-> under particular
3338 circumstances (see report from Per Starback to emacs-pretest-bug
3339 from 2000-12-13.).
3340
3e99d3b4
GM
33412001-01-03 Gerd Moellmann <gerd@gnu.org>
3342
a77dc1ec
GM
3343 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
3344 short cut at the start of the function. Add an assertion.
3345 (reseat_at_next_visible_line_start): Add an assertion.
3346
2f3cad6c
GM
3347 * window.c (Frecenter): When changing the window start, set the
3348 window's window_end_valid to nil.
3349 (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
3350
3351 * dispextern.h (move_it_past_eol): Add prototype.
3352
3353 * xdisp.c (move_it_past_eol): New function.
3354
3e99d3b4
GM
3355 * window.c (Fwindow_end): Doc fix.
3356
33572001-01-03 Dave Love <fx@gnu.org>
3358
52283633 3359 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge.
3e99d3b4 3360
bafb434c
GM
33612001-01-03 Gerd Moellmann <gerd@gnu.org>
3362
3363 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
3364 the enabled_p flag of the glyph row at window_end_vpos to 0.
3365 (handle_single_display_prop): Fix last change.
3366
5297fb00
RS
33672001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu>
3368
3369 * window.c (Frecenter): Doc fix.
3370
13d6a61c
AI
33712001-01-02 Andrew Innes <andrewi@gnu.org>
3372
3373 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
3374
3375 * frame.h (output_method): Add output_w32_console method.
3376 (FRAME_W32_CONSOLE_P): New macro.
3377
3378 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
3379 use output_w32_console method.
3380 (Qw32_console): New Lisp_Object.
3381 (Fframep): Return it.
3382 (syms_of_frame): Init it.
52283633 3383 (Fframe_parameters): Report w32console as font for w32_console frames.
13d6a61c
AI
3384
3385 * xfaces.c (realize_default_face): Set face foreground and
3386 background to unspecified for w32_console frames.
3387 (realize_face): Realize face cache for w32_console frames.
3388 (realize_tty_face): Accept w32_console frames.
3389
52283633 3390 * xdisp.c (handle_single_display_prop): Return if frame is w32_console.
13d6a61c
AI
3391 (init_iterator) [WINDOWSNT]: Initialize frame face cache if
3392 necessary, even if running interactively.
3393
3394 * dispnew.c (Fredraw_frame): Call set_terminal_modes for
3395 w32_console frames.
3396
52283633
SM
3397 * w32term.c (x_update_begin):
3398 (x_update_end):
3399 (x_clear_frame):
3400 (x_ins_del_lines):
3401 (x_change_line_highlight):
3402 (x_delete_glyphs):
3403 (w32_ring_bell):
3404 (x_update_begin):
3405 (x_update_end):
3406 (w32_reassert_line_highlight):
3407 (w32_frame_rehighlight):
13d6a61c
AI
3408 (w32_frame_raise_lower): Do nothing if not w32 frame.
3409
3410 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
3411
3412 * w32fns.c (Fx_display_color_cells): Determine correct value, when
3413 system doesn't tell us directly.
3414 (Fx_display_visual_class): Implement properly.
3415
d6bb0c0d
GM
34162001-01-02 Gerd Moellmann <gerd@gnu.org>
3417
3418 * window.c (Frecenter): Handle centering in graphical frames
3419 specially. Centering on the basis of line counts doesn't work
3420 reliably with variable-height lines.
52283633 3421
315f5865
EZ
34222001-01-02 Eli Zaretskii <eliz@is.elta.co.il>
3423
3424 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
3425 and al[].
3426
52283633 3427 * composite.c (run_composition_function): Remove unused var `val'.
315f5865
EZ
3428 (update_compositions): Remove unused variable `hook'.
3429
3430 * intervals.c (get_local_map): Remove unused variable `tem'.
3431
3432 * doprnt.c (doprnt1): Remove unused variable `size'.
3433
3434 * fns.c (Flength): Remove unused variable `tail'.
3435 (Fdelete): Remove unused variable `size'.
3436
3437 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
3438 and `gcpro2'.
3439
52283633 3440 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'.
315f5865
EZ
3441
3442 * data.c (find_symbol_value): Remove extra 3rd argument in the
3443 call to swap_in_symval_forwarding.
3444
52283633 3445 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'.
315f5865
EZ
3446
3447 * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
3448 (trivial_regexp_p): Remove unused variable `c'.
3449 (boyer_moore): Remove unused variable `k'.
3450
3451 * indent.c (current_column): Remove unused variable `stopchar'.
3452 (Fcompute_motion): Remove unused variable `contin'.
3453
3454 * casefiddle.c (casify_object): Remove unused variable `tolen'.
3455
3456 * dired.c (directory_files_internal): Fix a typo in a comment.
3457 Remove an unused variable `handler'.
52283633 3458 (file_name_completion): Remove unused function-scope variable `dp'.
315f5865
EZ
3459 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
3460 on BSD4_2.
3461
52283633 3462 * fileio.c (e_write): Remove unused variable `require_encoding_p'.
315f5865
EZ
3463
3464 * marker.c (Fmarker_position): Remove unused variables `pos', `i',
3465 and `buf'.
3466 (Fmarker_insertion_type): Remove unused variable `buf'.
3467
3468 * insdel.c (make_gap): Remove unused variable `result'.
3469
52283633 3470 * keyboard.c (record_char): Remove unused function-scope var `help'.
315f5865
EZ
3471 (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
3472 (menu_bar_items): Remove unused function-scope variable `tem'.
3473
3474 * fontset.c (fontset_ref): Remove unused variable `i'.
3475 (fontset_set): Remove unused variables `j' and `tmp'.
52283633 3476 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'.
315f5865
EZ
3477 (make_fontset_for_ascii_face): Remove unused variable `name'.
3478 (fs_load_font): Remove unused variable `font_idx'.
52283633 3479 (fs_query_fontset): Remove unused function-local variable `fontset'.
315f5865
EZ
3480 (list_fontsets): Remove unused variable `tail'.
3481 (Fnew_fontset): Remove unused variables `family' and `registry'.
3482 (accumulate_font_info): Remove unused variable `tmp'.
3483 (Ffontset_font): Remove unused variable `id'.
3484 (syms_of_fontset): Remove unused variable `i'.
3485
3486 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
3487 to x_term_init.
3488 (lookup_image): Remove unused variable `file'.
3489 (xbm_load): Remove unused variables `bitmap_data', `height', and
3490 `width'. Remove function-local variable `i', leave the
3491 block-local one.
3492 (gif_load): Remove unused variable `inc'.
3493
52283633 3494 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'.
315f5865
EZ
3495 (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
3496 leave only the one in the inner block.
3497
3498 * xfaces.c (face_fontset, realize_default_face): Remove unused
3499 variable `fontset'.
3500 (face_at_buffer_position): Remove unused variable `multibyte_p'.
3501
3502 * term.c (encode_terminal_code): Remove unused variable `c'.
3503
3504 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
3505 char *' instead of `char *'.
3506
3507 * category.c (Fcategory_docstring): Remove unused variable `doc'.
52283633 3508 (Fget_unused_category): Remove unused variable `docstring_vector'.
315f5865
EZ
3509 (Fchar_category_set): Remove unused variables `val', `charset',
3510 `c1' and `c2'.
3511
52283633
SM
3512 * coding.c (detect_coding_iso2022, setup_coding_system):
3513 Remove unused variable `i'.
315f5865
EZ
3514 (detect_coding_mask): Remove unused variable `idx'.
3515 (detect_coding): Remove unused variable `i'.
3516 (ccl_coding_driver): Remove unused variable `result'.
3517 (run_pre_post_conversion_on_str): Remove unused variable `prev'.
52283633 3518 (decode_coding_string): Remove unused variables `to' and `gcpro1'.
315f5865
EZ
3519 (encode_coding_string): Remove unused variables `gcpro1' and
3520 `saved_coding_symbol'.
3521 (Ffind_coding_systems_region_internal): Remove function-local
3522 variable args[], leave only the block-local one.
3523 (code_convert_region1): Remove unused variable `len'.
3524
3525 * charset.c (char_printable_p): Remove unused variable `chars'.
3526 (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
3527 (str_to_multibyte): Remove unused variable `c'.
3528
3529 * window.c (size_window): Remove block-local variable `min_size'.
3530
3531 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
3532 `header_line_height'.
3533 (append_space, extend_face_to_end_of_line): Declare `saved_what'
3534 enum display_element_type.
3535
1a8a9daf
GM
35362001-01-02 Gerd Moellmann <gerd@gnu.org>
3537
6dde6abc 3538 * xterm.c (x_connection_closed): Catch X errors around all
52283633
SM
3539 statements that call X. Save away the error message in a local copy.
3540
1883b2c6
GM
3541 * xterm.c (x_connection_closed): Set handling_signal to 0 at
3542 the start.
3543
a13be207
GM
3544 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
3545 in or at the start of invisible text.
3546
1a8a9daf
GM
3547 * dispnew.c (update_window): Don't check_current_matrix_flags.
3548
3608c0f9
JR
35492001-01-01 Jason Rumney <jasonr@gnu.org>
3550
3551 * w32fns.c (x_figure_window_size): Do not allow new_height and
3552 new_width of frame to override specified values.
3553
abb1acc4
KH
35542000-12-30 Kenichi Handa <handa@etl.go.jp>
3555
52283633 3556 * composite.c (find_composition): Fix a code for searching backward.
abb1acc4 3557
762a68ec
GM
35582000-12-29 Gerd Moellmann <gerd@gnu.org>
3559
52283633 3560 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function.
9c8b8382
GM
3561 (update_window) [GLYPH_DEBUG]: Call it.
3562 (scrolling_window): Prevent including current rows which are below
3563 what's displayed in the window.
3564
3565 * xdisp.c (try_window_reusing_current_matrix)
3566 <new start <= old start>: Disable rows in the current matrix
3567 which are below the window after scrolling.
52283633 3568
762a68ec
GM
3569 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
3570 is zero. It's not worth the complexity.
3571 (invisible_text_between_p): Put in #if 0 because unused.
3572
2d5912c1
GM
35732000-12-28 Gerd Moellmann <gerd@gnu.org>
3574
46f6a258
GM
3575 * xfns.c (Fx_backspace_delete_keys_p): Check library and server
3576 XKB versions. Call XkbFreeKeyboard with 2nd arg 0.
3577
89f93679
GM
3578 * keyboard.c (echo_char): If C is an integer, always call
3579 push_key_description. Former code could signal an invalid
3580 character error.
3581
3582 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
3583 If set, print multibyte text.
3584 (Fsingle_key_description): Call push_key_description with
3585 FORCE_MULTIBYTE set.
3586 (describe_buffer_bindings): Likewise.
3587
3588 * lisp.h (push_key_description): Add prototype.
3589
c06017fb
GM
3590 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
3591 around the call to redisplay_internal.
3592
f1d2ce7f
GM
3593 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
3594
2d5912c1
GM
3595 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
3596
9371f831
KH
35972000-12-28 Kenichi Handa <handa@etl.go.jp>
3598
3599 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
3600 (ccl_driver): New local variable `extra_bytes'.
3601
3602 * ccl.h (struct ccl_spec): New member eight_bit_carryover.
3603
52283633
SM
3604 * coding.c (setup_coding_system):
3605 Initialize coding->spec.ccl.eight_bit_carryover.
9371f831
KH
3606 (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
3607
0c80628a
KH
36082000-12-28 Kenichi Handa <handa@etl.go.jp>
3609
3610 * coding.c (SAFE_ONE_MORE_BYTE): New macro.
3611 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
3612 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
3613 (decode_composition_emacs_mule): New function.
3614 (decode_coding_emacs_mule): Decode composition sequence by calling
3615 decode_composition_emacs_mule.
3616 (ENCODE_COMPOSITION_EMACS_MULE): New macro.
52283633
SM
3617 (encode_coding_emacs_mule): Changed from macro to function.
3618 If a text contains compositions, encode them correctly.
0c80628a
KH
3619 (setup_coding_system): Set coding->commong_flags for emacs-mule so
3620 that decoding and encoding are required.
3621
3e32cc27
GM
36222000-12-27 Gerd Moellmann <gerd@gnu.org>
3623
5e25feee
GM
3624 * xfaces.c (PT_PER_INCH): New macro.
3625 (xlfd_point_size): Compute real point size from font's pixel size.
3626 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
3627 instead of 72.
3628
892d8fcd
GM
3629 * .gdbinit: Comment out the line pointing to the Lesstif source
3630 directory.
3631
12c8b416
GM
3632 * window.c (Frecenter): Use displayed_window_lines instead
3633 of window_internal_height.
3634
6061fbf0
GM
3635 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
3636 instead of x-toolkit-scroll-bars-p.
3637 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
3638
3639 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
3640 instead of x-toolkit-scroll-bars-p.
3641 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
52283633 3642
3e32cc27
GM
3643 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
3644 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
52283633
SM
3645 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]:
3646 New variables.
3647 (add_window_display_history, add_frame_display_history)
3e32cc27
GM
3648 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
3649 (build_frame_matrix_from_leaf_window): Remove unused code.
3650 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
3651 redisplay history.
3652 (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
3653 (update_window) [GLYPH_DEBUG]: Likewise.
3654 (syms_of_display): Defsubr dump-redisplay-history.
3655
31798cfe
GM
36562000-12-23 Gerd Moellmann <gerd@gnu.org>
3657
f717c2ba
GM
3658 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
3659 the end of the prompt. Set echo_after_prompt to the offset
3660 of echoptr in echobuf.
3661
aeb2b8fc
GM
3662 * xdisp.c (init_from_display_pos): Pop until the iterator's
3663 stack is empty; there may be frames for stretch or images
3664 on the stack.
3665
31798cfe
GM
3666 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
3667 (save_or_restore_current_matrix): New function for the same
3668 purpose, but more efficient.
3669 (adjust_frame_glyphs_for_frame_redisplay): Use it.
3670
f8156156
EZ
36712000-12-23 Eli Zaretskii <eliz@is.elta.co.il>
3672
3673 * xdisp.c (syms_of_xdisp): Fix last change.
3674
bdd6d4e8
GM
36752000-12-23 Gerd Moellmann <gerd@gnu.org>
3676
3677 * xdisp.c (syms_of_xdisp): Doc fix.
3678
3679 * xdisp.c (redisplay_window): Remove label restore_buffers;
3680 use finish_scroll_bars instead to make sure that scroll bars
3681 are redeemed. If we don't do this, flickering can result from
3682 scroll bars being destroyed and recreated.
3683
9436cdf9
JR
36842000-12-22 Jason Rumney <jasonr@gnu.org>
3685
3686 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
3687 in the wrong colors when the foreground is not black.
3688 (expose_window): Don't redraw the window that's currently being
3689 updated.
3690
951f9df5
GM
36912000-12-22 Gerd Moellmann <gerd@gnu.org>
3692
856ff7a7
GM
3693 * window.c (size_window): When setting the window's too_small_ok
3694 flag, compare old size with minimum size depending on WIDTH_P,
3695 don't compare with window_min_width.
52283633 3696
951f9df5
GM
3697 * window.c (delete_window): Simplify somewhat.
3698 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
3699 freeing window matrices. The flag windows_or_buffers_changed is
3700 set, so the next redisplay will consider all windows; this should
3701 suffice.
3702
886bc933
KH
37032000-12-22 Kenichi Handa <handa@etl.go.jp>
3704
3705 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
3706
3707 * ccl.h (struct ccl_program): New member cr_consumed.
3708
3709 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
3710 (CCL_READ_CHAR): Handle EOL conversion here.
3711 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
3712
177f4e88
GM
37132000-12-21 Gerd Moellmann <gerd@gnu.org>
3714
52283633 3715 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS.
6ba384dc
GM
3716
3717 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
3718 otherwise tabs of different size compare equal.
3719
3720 * callint.c (Fcall_interactively): Prevent a compiler warning.
3721
3722 * print.c (print_unwind): Return nil.
3723 (PRINTDECLARE): Initialize all local variables.
3724 (print_preprocess): Add a default case.
3725
8e15274f
GM
3726 * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
3727
3728 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
3729
52283633 3730 * window.c (delete_window, Fsplit_window)
177f4e88
GM
3731 (Fset_window_configuration): Calls to ensure_frame_matrix removed.
3732
3733 * dispextern.h (ensure_frame_matrix): Function declaration removed.
3734
3735 * dispnew.c (ensure_frame_matrix): Removed.
3736 (save_frame_matrix, restore_frame_matrix): New functions.
3737 (adjust_frame_glyphs_for_frame_redisplay): Use them.
3738
3739 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
3740 [GLYPH_DEBUG]: Extended to dump glyphs in short form.
3741
99012074
AI
37422000-12-21 Andrew Innes <andrewi@gnu.org>
3743
3744 * w32term.c (x_update_begin): Regenerate the palette here, rather
3745 than for each window.
3746
3747 * w32xfns.c (select_palette): Avoid calling SelectPalette if
3748 palette is NULL, since this corrupts memory! Also get
3749 display_info reference from frame.
3750
29ef7d2d
JR
37512000-12-21 Jason Rumney <jasonr@gnu.org>
3752
3753 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
3754
3755 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
3756 to avoid returning without releasing it.
3e27fa1f 3757
3f9d67a6
KH
37582000-12-21 Kenichi Handa <handa@etl.go.jp>
3759
587fc3f9
KH
3760 * keymap.c (push_key_description): Don't convert eight-bit-control
3761 and eight-bit-graphic to multibyte character.
3762
3f9d67a6
KH
3763 * charset.c (Fmake_char_internal): If CHARSET doesn't have a
3764 generic character and CODE1 is nil, return the smallest character
3765 in CHARSET.
3766
774ba8c9
DL
37672000-12-20 Dave Love <fx@gnu.org>
3768
3769 * s/osf5-0.h (NSIG): Don't redefine.
3770
88416888
SM
37712000-12-20 Stefan Monnier <monnier@cs.yale.edu>
3772
3773 * keymap.c (where_is_internal): Check ascii_sequence_p rather than
3774 excluding menu-bar and tool-bar.
3775 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
3776 (menu_item_p): Remove.
3777 (where_is_internal_1): Don't ignore menu-items.
3778
a6426c6f
GM
37792000-12-20 Gerd Moellmann <gerd@gnu.org>
3780
03ff8aab
GM
3781 * xdisp.c (hscroll_window_tree): Take window's min_hscroll
3782 into account.
3783
3784 * window.c (make_window): Initialize window's min_hscroll.
3785 (Fset_window_hscroll): Set window's hscroll and min_hscroll.
3786 (set_window_buffer, temp_output_buffer_show): Set min_hscroll
3787 to zero.
3788 (struct saved_window): New member min_hscroll.
3789 (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
3790 (Fset_window_configuration): Set window's min_hscroll.
3791 (save_window_save): Save window's min_hscroll.
3792 (compare_window_configurations): Compare min_hscroll values.
3793
3794 * window.h (struct window): New member min_hscroll.
3795
3796 * keyboard.c (echo_prompt): Prevent a compiler warning.
3797
8de4aaf8
GM
3798 * xdisp.c (try_cursor_movement): Fix last change. The real
3799 condition is that PT is at the end of the row, and should
3800 be displayed at the start of the next row.
52283633 3801
3f7e3031
GM
3802 * xdisp.c (try_cursor_movement): If we end on a partially
3803 visible line, end we already decided to scroll, return -1.
3804
a6426c6f
GM
3805 * dispextern.h (ensure_frame_matrix): Add prototype.
3806
3807 * window.c (delete_window, Fsplit_window)
3808 (Fset_window_configuration): Call ensure_frame_matrix.
3809
52283633
SM
3810 * dispnew.c (fake_current_matrices, ensure_frame_matrix):
3811 New functions.
a6426c6f
GM
3812 (adjust_frame_glyphs_for_frame_redisplay): If display has been
3813 completed, call fake_current_matrices instead of marking frame
3814 garbaged.
3815
57fa2774
JR
38162000-12-20 Jason Rumney <jasonr@gnu.org>
3817
3818 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
3819
d925df90
EZ
38202000-12-19 Eli Zaretskii <eliz@is.elta.co.il>
3821
3822 * fns.c (Frequire): Doc fix.
3823
7b93a85b
GM
38242000-12-19 Gerd Moellmann <gerd@gnu.org>
3825
52283633 3826 * window.c (window_scroll_pixel_based): Don't use move_it_vertically.
71d4497a 3827
c74e645b
GM
3828 * dispnew.c (direct_output_for_insert): Fix check for mini-window
3829 currently displaying a message.
3830
7b93a85b
GM
3831 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
3832 xterm.h.
3833 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
3834
90d97e64
AI
38352000-12-18 Andrew Innes <andrewi@gnu.org>
3836
3837 * w32.c (w32_strerror): New function.
3838
3839 * w32.h (w32_strerror): New extern.
3840
3841 * w32fns.c (Fw32_shell_execute): Use it.
3842
91c9e6ce
GM
38432000-12-18 Gerd Moellmann <gerd@gnu.org>
3844
3845 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
3846
6f4745e2
EZ
38472000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
3848
3849 * msdos.c (IT_set_face): Obey inverse_video.
3850
c9e088ce
KH
38512000-12-18 Kenichi Handa <handa@etl.go.jp>
3852
3853 * dired.c (directory_files_internal): Always return decoded filenames.
3854
c3695f5f
GM
38552000-12-18 Gerd Moellmann <gerd@gnu.org>
3856
52d8e4ff
GM
3857 * xterm.c (x_connection_closed): Prevent being called recursively
3858 because of an error condition in XtCloseDisplay.
52283633 3859
62be9979
GM
3860 * xdisp.c (init_iterator): If noninteractive, and the frame's
3861 face cache is null, make one.
3862
52283633 3863 * xfns.c (show_busy_cursor): Check for live frames more thoroughly.
5f7a1890 3864
c3695f5f
GM
3865 * process.c (wait_reading_process_input): Check for pending
3866 input when running timers.
3867
78555fbe
EZ
38682000-12-18 Eli Zaretskii <eliz@is.elta.co.il>
3869
52283633 3870 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id.
78555fbe 3871
b2b36264
KH
38722000-12-18 Kenichi Handa <handa@etl.go.jp>
3873
3874 * process.c (read_process_output): Don't run a filter if the code
3875 decoder produces nothing but carryover.
3876
9c543fbf
AI
38772000-12-17 Andrew Innes <andrewi@gnu.org>
3878
3879 * w32.c (sys_rename): Only check errno against EEXIST, and not
3880 EACCES, when determining whether rename failed because the target
3881 exists. This was resulting in indefinite looping on Windows 9x if
3882 the source file was locked by another process.
3883
3884 * w32fns.c (Ffile_system_info): New function.
3885 (syms_of_w32fns): Defsubr it.
3886
10c2b5a8
GM
38872000-12-17 Gerd Moellmann <gerd@gnu.org>
3888
b0228ace
GM
3889 * window.c (coordinates_in_window): Fix computation for
3890 position on vertical line between mode lines.
3891
10c2b5a8
GM
3892 * xfns.c (unwind_create_frame): Return t if frame was deleted.
3893 Don't alter tip_frame or tip_window.
3894 (unwind_create_tip_frame): Set tip_frame to nil only if frame
3895 was deleted.
3896
c844a81a
GM
3897 * w32fns.c (unwind_create_frame): Return t if frame was deleted.
3898 Don't alter tip_frame or tip_window.
3899 (unwind_create_tip_frame): Set tip_frame to nil only if frame
3900 was deleted.
3901
6c825f8e
EZ
39022000-12-16 Eli Zaretskii <eliz@is.elta.co.il>
3903
3904 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
3905 be consistent with the doc string. Reported by NAKAJIMA Mikio
3906 <minakaji@osaka.email.ne.jp>.
3907
af4bb4c8
KH
39082000-12-16 Kenichi Handa <handa@etl.go.jp>
3909
3910 * xfaces.c (Vface_ignored_fonts): New variable.
3911 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
3912 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
3913
8062e53a
GM
39142000-12-15 Gerd Moellmann <gerd@gnu.org>
3915
e87b8809
GM
3916 * dispnew.c (update_window): Detect pending input every nth line
3917 updated, i.e. do it depending on real work done, and not on the
3918 vpos of the line.
3919
3920 * xterm.c (expose_window): Don't redraw the window that's
3921 currently being updated.
3922
a6768cc5
GM
3923 * window.c (Fset_window_point): Remove test for
3924 cursor_in_non_selected_windows.
3925
4ea7fdca
GM
3926 * lread.c (read1): Recognize end of file after `\\'.
3927
8062e53a
GM
3928 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
3929 not unwind_create_frame.
3930
bb7959c1
GM
39312000-12-15 Dave Love <fx@gnu.org>
3932
3933 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
3934 bcopy & al.
3935
3936 * s/irix6-5.h: #undef bcopy & al here. Include strings.h.
3937
ced04c42
KH
39382000-12-15 Kenichi Handa <handa@etl.go.jp>
3939
c5443913
KH
3940 * coding.c (setup_coding_system): Clear all members of the struct
3941 coding_system at first.
bc137305
KH
3942 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
3943 argument.
3944 (code_convert_region): Don't override coding->src_multibyte and
3945 coding->dst_multibyte.
c5443913 3946
ced04c42
KH
3947 * fns.c (Fmd5): Docstring improved.
3948
c2d7f289
MB
39492000-12-15 Miles Bader <miles@gnu.org>
3950
3951 * xdisp.c (window_box_height): Only use mode-line glyph-rows that
3952 are actually marked as mode-lines; otherwise use
3953 estimate_mode_line_height.
3954
9d7d9263
GM
39552000-12-14 Gerd Moellmann <gerd@gnu.org>
3956
3957 * editfns.c (Fformat): Prevent a buffer overrun when the format
3958 specifies a precision.
3959
7cf0153a
EZ
39602000-12-14 Eli Zaretskii <eliz@is.elta.co.il>
3961
3962 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
3963 argument is outside the range [2..3].
3964
1de0f662
AI
39652000-12-14 Andrew Innes <andrewi@gnu.org>
3966
3967 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
3968 nothing to do. Bind inhibit-quit.
3969 (tip_frame): Make it a Lisp_Object.
3970 (x_create_tip_frame): Set tip_frame after it has been added to
3971 Vframe_list.
3972 (Fx_show_tip): Don't set tip_frame here.
52283633 3973 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables.
1de0f662
AI
3974 (unwind_create_frame, unwind_create_tip_frame): New functions.
3975 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
3976 while a frame is only partially constructed.
3977
3978 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
3979 (x_free_frame_resources): New function.
3980 (x_destroy_window): Use it.
3981
02387dcc
GM
39822000-12-14 Gerd Moellmann <gerd@gnu.org>
3983
3984 * xfns.c (Fx_backspace_delete_keys_p): New function.
3985 (syms_of_xfns): Defsubr it.
3986
3987 * config.in (HAVE_XKBGETKEYBOARD): Add.
3988
0544ef49
KH
39892000-12-14 Kenichi Handa <handa@etl.go.jp>
3990
98d62747
KH
3991 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
3992 Always store string in multibyte representation in echobuf.
3993 (echo_char): Always store string in multibyte representation in
3994 echobuf.
3995 (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
3996 (read_key_sequence): Adjusted for the change of echo_prompt.
3997
a20193cd
KH
3998 * fns.c (Fmd5): Docstring improved.
3999
191b83b6
KH
4000 * lisp.h (detect_coding_system): Prototype adjusted.
4001
0544ef49
KH
4002 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
4003 (detect_coding_emacs_mule, detect_coding_iso2022,)
4004 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
52283633
SM
4005 (detect_coding_utf_16, detect_coding_ccl): Make them static.
4006 New argument MULTIBYTEP. Callers changed.
0544ef49
KH
4007 (detect_coding_mask, detect_coding_system): New argument
4008 MULTIBYTEP. Callers changed.
1da1bb05
KH
4009 (decode_coding_string): Set coding->src_multibyte and
4010 coding->dst_multibyte before calling detect_coding and detect_eol.
4011 Update them after some coding system is detected.
52283633 4012
d5b3eb1b
SM
40132000-12-13 Stefan Monnier <monnier@cs.yale.edu>
4014
4015 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
4016
4017 * keyboard.c (menu_bar_items, tool_bar_items):
4018 Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
4019
f7f8bb69
GM
40202000-12-13 Gerd Moellmann <gerd@gnu.org>
4021
52283633 4022 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]:
19f71add
GM
4023 New variables.
4024 (unwind_create_frame, unwind_create_tip_frame): New functions.
4025 (Fx_create_frame, x_create_tip_frame): Handle errors signaled
4026 while a frame is only partially constructed.
4027
4028 * xterm.h (x_free_frame_resources): Declare.
4029
4030 * xterm.c (x_free_frame_resources): New function.
4031 (x_destroy_window): Use it.
4032
e10da507
GM
4033 * dispnew.c (update_window): If do_mouse_tracking is non-nil,
4034 don't interrupt the update for pending input initially, i.e.
4035 update at least some lines.
4036
4037 * keyboard.c (do_mouse_tracking): Make externally visible.
52283633 4038
d5b3eb1b 4039 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
f7f8bb69
GM
4040
4041 * xfns.c (gray_bitmap_bits): Declare `char *'.
4042
90aa2856
GM
40432000-12-12 Gerd Moellmann <gerd@gnu.org>
4044
4045 * xdisp.c (display_tool_bar_line): Make sure that tool bar
4046 lines start with a relief line.
4047
a308c9cd
DL
40482000-12-12 Dave Love <fx@gnu.org>
4049
4050 * window.c (Fdisplay_buffer): Doc fix.
4051 (Fwindow_list): Remove unused var.
4052
4053 * buffer.h (mmap_set_vars): Declare.
4054
4055 * window.h (Fset_window_point): Declare.
4056
d575011f
EZ
40572000-12-12 Eli Zaretskii <eliz@is.elta.co.il>
4058
bf6282d2 4059 * msdos.c (fast_find_position): Don't overstep the last window row.
52283633
SM
4060 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused
4061 variable `area'. When looking for a row under (X,Y), give up if some
4062 of the previous rows is not enabled.
d575011f 4063
ecf4d726
GM
40642000-12-12 Gerd Moellmann <gerd@gnu.org>
4065
2ebf6139
GM
4066 * window.c (Fset_window_point): If displaying cursors in windows
4067 other than the selected window, make sure redisplay updates
4068 other windows to show the new value of point in the window.
4069
4070 * dispextern.h (cursor_in_non_selected_windows): Declare extern.
4071
bfdb75ee
GM
4072 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
4073 the buffer is the sole visible buffer when in the mini-buffer.
4074
52283633 4075 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer):
4fdbd809
GM
4076 Bind `inhibit-read-only' to t.
4077 (unwind_with_echo_area_buffer): Use AREF.
4078
c0006262
GM
4079 * xfns.c (Fx_hide_tip): Simplified.
4080
52283633
SM
4081 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS
4082 instead of `1'.
e9a59cad 4083
ecf4d726
GM
4084 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
4085
e5959a9a
GM
40862000-12-11 Gerd Moellmann <gerd@gnu.org>
4087
a3642e49 4088 * xfns.c (Fx_hide_tip): Fix last change.
52283633 4089
44b5a125
GM
4090 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
4091 nothing to do. Bind inhibit-quit.
4092 (tip_frame): Make it a Lisp_Object.
4093 (x_create_tip_frame): Set tip_frame after it has been added to
4094 Vframe_list.
4095 (Fx_show_tip): Don't set tip_frame here.
4096
4097 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
4098
4099 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
4100 Lisp_Object.
4101
4102 * dispextern.h: Change external declaration of tip_frame.
4103
d990421f
GM
4104 * keymap.c (Fkey_description): If KEYS is an empty key sequence,
4105 return an empty string.
4106
4db87380
GM
4107 * xdisp.c (try_cursor_movement): Check update_mode_lines instead
4108 of the window's update_mode_line flag, since the former is set by
4109 force-mode-line-update, not the latter. This makes
4110 column-number-mode slightly faster.
52283633 4111
e5959a9a
GM
4112 * xdisp.c (try_window_id) <all changes above window start>:
4113 Set the cursor.
4114
169fe44e
GM
41152000-12-11 Paul Eggert <eggert@twinsun.com>
4116
4117 * config.in (HAVE_FTELLO): Remove.
4118 (HAVE_FSEEKO): Add.
4119 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
4120 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
4121 HAVE_FTELLO.
4122 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
4123 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
52283633 4124
59ec59ae
MB
41252000-12-11 Miles Bader <miles@gnu.org>
4126
4127 * window.c (displayed_window_lines): Don't round up when
4128 converting empty space at bottom to lines.
ff904dd6
MB
4129 Handle non-newline-terminated final lines properly.
4130 (Fwindow_text_height): New function (used to be in lisp).
4131 (syms_of_window): Initialize it.
59ec59ae 4132
42ebfa31
SM
41332000-12-09 Stefan Monnier <monnier@cs.yale.edu>
4134
4135 * syntax.c (scan_lists): Check that the right quote char has the
4136 right Sstring syntax when jumping over strings.
4137 (init_syntax_once): Use Smax rather than 13.
4138
5cdb3cf3
MB
41392000-12-09 Miles Bader <miles@gnu.org>
4140
4141 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
4142 with PARTIALLY, inverting the sense.
4143 (window_scroll_pixel_based): Scroll partially visible lines into
4144 place if we hit the beginning or end of the buffer.
a12167c5
MB
4145 (displayed_window_lines): Don't include partially visible lines.
4146 (Fmove_to_window_line): Skip past any partially visible first line.
5cdb3cf3 4147
842b2a94
GM
41482000-12-08 Gerd Moellmann <gerd@gnu.org>
4149
4150 * keymap.c (current_minor_maps): Use malloc. Prevent a leak.
4151
4152 * tparam.c (tparam1): Change the way buffers are reallocated to be
4153 portable and less obfuscated.
4154
4155 * termcap.c (tgetent): Change the way buffers are reallocated to
4156 be portable and less obfuscated.
4157
4158 * macros.c (store_kbd_macro_char): Change the way buffers are
4159 reallocated to be portable and less obfuscated.
4160
4161 * lread.c (read1): Change the way buffers are reallocated to be
4162 portable and less obfuscated.
4163
4164 * doc.c (Fsubstitute_command_keys): Change the way buffers
4165 are reallocated so that it is portable.
4166
137cad7c
EZ
41672000-12-07 Eli Zaretskii <eliz@is.elta.co.il>
4168
4169 * dosfns.c (Ffile_system_info): New function.
4170 (syms_of_dosfns): Defsubr it.
4171
5c7f629c
SM
41722000-12-07 Stefan Monnier <monnier@cs.yale.edu>
4173
4174 * alloc.c (gc_sweep): Add comment.
4175
959e647d
GM
41762000-12-07 Gerd Moellmann <gerd@gnu.org>
4177
52283633
SM
4178 * sound.c (vox_configure): Change order of ioctls.
4179 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
28fcb7dc
GM
4180 Ignore errors when changing volume.
4181 (vox_close): Don't reset the device.
4182
926b7e5e
GM
4183 * process.c (read_process_output): Make sure the process marker's
4184 position is valid when the process buffer is changed in
4185 after-change functions. W3 does that.
52283633 4186
959e647d
GM
4187 * xfns.c (x_free_gcs): New function.
4188
4189 * xterm.h (x_free_gcs): Add prototype.
4190
4191 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
4192 freeing GCs here.
4193
4194 * xterm.c (x_destroy_window): Call x_free_gcs so that
4195 resources of non-toolkit X windows will be freed.
4196
478ea067
AI
41972000-12-07 Andrew Innes <andrewi@gnu.org>
4198
4199 * w32fns.c (xlfd_charset_of_font): Fix last change.
4200
fbee3231
DL
42012000-12-06 Dave Love <fx@gnu.org>
4202
67292061
DL
4203 * md5.h (__P): Don't define -- it comes from config.h.
4204
fbee3231
DL
4205 * strftime.c: Change some #if foo to #ifdef foo.
4206
4ee87dbb
AI
42072000-12-06 Andrew Innes <andrewi@gnu.org>
4208
4209 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
4210
52283633 4211 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument.
4ee87dbb 4212 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
52283633 4213 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage.
4ee87dbb 4214
9765b4a4
GM
42152000-12-06 Gerd Moellmann <gerd@gnu.org>
4216
d285b373
GM
4217 * alloc.c (gc_sweep): Prevent symbols read during loadup
4218 from being freed.
4219
384333ee
GM
4220 * xdisp.c (underlying_face_id): New function.
4221 (handle_face_prop, face_before_or_after_it_pos): Use it
4222 to determine the face ``under'' a string. Let strings inherit
4223 the face of the buffer under them.
4224
4225 * xfaces.c (face_at_string_position): Update function comment.
52283633 4226
d4b72d58
GM
4227 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
4228 matrix if the window's left position has changed; we need to
4229 redraw it in this case.
4230
4231 * dispextern.h (struct glyph_matrix): Add member window_left_x.
4232
e1d05387
GM
4233 * window.c (coordinates_in_window): Check mouse on mode-line or
4234 header-line first.
4235
eb1b0c74
GM
4236 * alloc.c (Fgarbage_collect): Dox fix. Return a list as
4237 advertized by the function documentation.
4238
d94d636f
GM
4239 * window.c (syms_of_window): Doc fix.
4240
3887b449
GM
4241 * sound.c (vox_configure): Set volume for left and right channel.
4242 (sound_cleanup): Return nil.
4243
efc8f57a
GM
4244 * xdisp.c (move_it_by_lines): Fix paren typo.
4245
9765b4a4
GM
4246 * xterm.c (x_load_font): Don't use the font's max_bounds for
4247 computing the height of the font. If max_bounds' ascent or
4248 descent are greater than the font's ascent or descent, this means
4249 glyphs overlap, which should be handled now by redisplay.
4250
6529ed87
GM
4251 * window.c (Veven_window_heights): New variable.
4252 (syms_of_window): DEFVAR_LISP it.
4253 (Fdisplay_buffer): Check Veven_window_heights before evening the
4254 window heights.
52283633 4255
0eb2ecde
MB
42562000-12-06 Miles Bader <miles@gnu.org>
4257
4258 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
4259 update `default-frame-alist' instead of setting no frame parameters.
4260
03d7a167
KH
42612000-12-06 Kenichi Handa <handa@etl.go.jp>
4262
4263 * composite.c (update_compositions): Fix typo (use the correct
4264 variable).
4265
5f8803c2
JR
42662000-12-05 Jason Rumney <jasonr@gnu.org>
4267
4268 * md5.h: Remove underscores from function declarations.
4269 (__attribute__, __alignof__) [!__GNUC__]: Define.
4270
4271 * md5.c: Delay include of md5.h until after namespace cleaning.
4272
c28a075b
JR
4273 * makefile.w32-in (fns.o): Depend on md5.h
4274 (md5.o): New target.
4275 (sunfns.o): Remove.
4276
4277 * makefile.nt: Likewise.
4278
ff3c7056
JR
42792000-12-05 Jason Rumney <jasonr@altavista.net>
4280
4281 * w32term.c (expose_area): Complete last change.
4282
0c21eeeb
KR
42832000-12-05 Ken Raeburn <raeburn@gnu.org>
4284
4285 * minibuf.c: Include intervals.h.
4286
f201d732
JR
42872000-12-05 Jason Rumney <jasonr@gnu.org>
4288
4289 * w32term.c (x_produce_glyphs): If a font for a component of
4290 a composition is not found, use 1 pixel dot ascent and 0 dot
4291 descent value to avoid displaying terribly tall empty boxes.
4292 (expose_area): Pass x-coordinate relative to the exposed
4293 area to x_draw_glyphs instead of a window-relative coordinate.
4294
21999ab9
GM
42952000-12-05 Gerd Moellmann <gerd@gnu.org>
4296
4d2036e4
GM
4297 * xdisp.c (next_element_from_ellipsis): Save face before selective
4298 display in saved_face_id, and set face_before_selective_p.
4299 (reseat_1): Reset face_before_selective_p.
4300 (append_space, extend_face_to_end_of_line): If iterator's
4301 face_before_selective_p is set, use the face from saved_face_id.
4302 (extend_face_to_end_of_line): For tty frames, make sure to
4303 use the right face id when producing spaces at the end of
4304 the line.
4305
4306 * dispextern.h (struct it): Add face_before_selective_p.
4307
52be17cc
GM
4308 * keyboard.c (record_char): Don't record identical help-echo
4309 events in recent_keys.
4310
8a4f36cc
GM
4311 * xterm.c [USE_X_TOOLKIT]: Close the display.
4312 (xim_close_dpy): Handle case that the display has been closed.
4313
57d6e381
GM
4314 * xterm.c (x_destroy_window): Reset the frame's X window after
4315 destroying it.
4316
21999ab9
GM
4317 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
4318 variable window_width.
4319 (line_draw_cost): Fix code skipping over spaces at the end of the
4320 line when must_write_spaces is not set.
4321 (scrolling_window): Fix code inserting runs in list of all runs.
4322
91372bb7
KH
43232000-12-05 Kenichi Handa <handa@etl.go.jp>
4324
4325 * coding.c (setup_coding_system): Be sure to initialize
4326 coding->category_idx.
4327
6c083b4c
GM
43282000-12-04 Gerd Moellmann <gerd@gnu.org>
4329
0c68ce6f 4330 * xterm.c (PER_CHAR_METRIC): Removed because not used.
52283633 4331
6452929e
GM
4332 * xterm.c (expose_area): Pass x-coordinate relative to the exposed
4333 area to x_draw_glyphs instead of a window-relative coordinate.
4334
d7f31e22
GM
4335 * fileio.c (auto_save_error): Add parameter ERROR. Show the
4336 error in the message.
4337
ae18aa3b
GM
4338 * keyboard.c (Fread_key_sequence): Don't start the busy cursor
4339 timer after having read a key. It's not good for code reading
4340 several keys in a loop, like an input method.
4341
caa15ef7
GM
4342 * fileio.c (Finsert_file_contents): When VISIT is t, don't
4343 record undo information for format-decode.
4344
4345 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
4346 current buffer is read-only, not if it isn't.
4347
6c083b4c
GM
4348 * keyboard.c (record_char): Record `help-echo' input events
4349 in recent_keys only if they display some help. Don't record
4350 `help-echo' events as macro char.
4351
caa15ef7
GM
43522000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu>
4353
4354 * editfns.c (save_excursion_restore): Don't move point
4355 in another window if it is showing the wrong buffer.
4356 Avoid the call to Fwindow_live_p, for speed.
4357
5a13529b
KH
43582000-12-04 Kenichi Handa <handa@etl.go.jp>
4359
e225faa7
KH
4360 * xfaces.c (struct font_name): New member registry_priority.
4361 (split_font_name): Initialize the above member to zero.
4362 (concat_font_list): New function.
4363 (font_list): Include fonts of all alternative registries.
4364 (FONT_POINT_SIZE_QUANTUM): New macro.
4365 (better_font_p): Ignore point size difference less than
4366 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort.
4367
e89648b4
KH
4368 * xterm.c (x_produce_glyphs): If a font for a component of
4369 a composition is not found, use 1 pixel dot ascent and 0 dot
4370 descent value to avoid displaying terribly tall empty boxes.
4371
5a13529b
KH
4372 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
4373
d7935eb6
KR
43742000-12-03 Ken Raeburn <raeburn@gnu.org>
4375
4376 * coding.h (code_convert_string1): Declare.
4377
4378 * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
4379
52283633 4380 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare.
d7935eb6 4381
0dd5e255
JR
43822000-12-02 Jason Rumney <jasonr@gnu.org>
4383
4384 * w32term.c (w32_bdf_per_char_metric): Dereference pointer
4385 correctly for single byte character case.
4386 (w32_per_char_metric): Do not try to make any assumptions about
4387 the metrics of BDF fonts.
250cfece 4388 (x_estimate_mode_line_height): If `mode-line' face
52283633 4389 hasn't a font, use that of the frame, as drawing glyphs does.
250cfece
JR
4390 (note_mouse_highlight): Change the cursor shape on the vertical
4391 border between windows [not enabled].
4392
4393 * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
4394
4395 * w32fns.c (Fx_create_frame): Reintroduce the call to
4396 face-set-after-frame-defaults.
4397 (Vx_window_horizontal_drag_shape): New variable.
4398 (syms_of_xfns): DEFVAR_LISP it.
4399 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
4400 enabled].
0dd5e255 4401
b5d8d2ca
GM
44022000-12-02 Simon Josefsson <simon@josefsson.org>
4403
4404 * fns.c (Fmd5): Use a different logic to decide the coding system
4405 to use.
4406
4407 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
4408
fbb87147
EZ
44092000-12-02 Eli Zaretskii <eliz@is.elta.co.il>
4410
52283633 4411 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL.
fbb87147 4412
447e9da0
GM
44132000-12-01 Gerd Moellmann <gerd@gnu.org>
4414
7708ced0
GM
4415 * xterm.c (x_calc_absolute_position): Don't subtract menubar's
4416 height for YNegative.
4417 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
4418 height; also see comment there.
4419
447e9da0
GM
4420 * window.c (coordinates_in_window): Handle computations for
4421 positions on the vertical bar and fringes differently for
4422 window-system frames. Consider some pixels near the vertical bar
4423 as on the bar if the frame doesn't have vertical scroll bars.
4424 Associate positions between mode or header lines with the
4425 right window, the left one.
4426
86d1db20
JR
44272000-12-01 Jason Rumney <jasonr@gnu.org>
4428
4429 * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
4430
4431 * w32xfns.c (get_frame_dc): Avoid changing the palette on an
4432 invalid frame.
4433
a1d58e5b
GM
44342000-12-01 Gerd Moellmann <gerd@gnu.org>
4435
52283633 4436 * window.c (struct saved_window): Add members orig_top and orig_height.
a1d58e5b
GM
4437 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
4438 (save_window_save, Fset_window_configuration): Save/restore
4439 window's orig_top and orig_height.
4440
89c609af
JR
44412000-12-01 Jason Rumney <jasonr@gnu.org>
4442
4d177746 4443 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
86d1db20 4444
89c609af
JR
4445 * w32fns.c (x_set_cursor_color): Fix last change.
4446
eccc05db
GM
44472000-11-30 Gerd Moellmann <gerd@gnu.org>
4448
31b6671b
GM
4449 * xdisp.c (echo_area_display): If cursor is in the echo area, make
4450 sure that the next redisplay displays the minibuffer, so that
4451 the cursor will be replaced with what the minibuffer wants.
4452
eccc05db
GM
4453 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
4454 #ifndef instead of using #if.
4455 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
4456 USE_TOOLKIT_SCROLL_BARS is defined.
4457
162de750
JR
44582000-11-30 Jason Rumney <jasonr@gnu.org>
4459
4460 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
4461 x_display_cursor.
4462
693c4692
GM
44632000-11-30 Gerd Moellmann <gerd@gnu.org>
4464
4465 * fns.c (Fmd5): Doc fix.
4466
b5d8d2ca 44672000-11-30 Simon Josefsson <simon@josefsson.org>
edfb795e
GM
4468
4469 * fns.c (Fmd5): New function.
4470 (syms_of_fns): Defsubr md5.
4471
4472 * Makefile.in (obj): Add md5.o
4473
b02cd40b
GM
44742000-11-30 Gerd Moellmann <gerd@gnu.org>
4475
edfb795e
GM
4476 * md5.h, md5.c: New files, taken from glibc.
4477
df3aedcf
GM
4478 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
4479
b02cd40b 4480 * xterm.c (x_estimate_mode_line_height): If `mode-line' face
52283633 4481 hasn't a font, use that of the frame, as drawing glyphs does.
b02cd40b 4482
8b5176cd
SM
44832000-11-29 Stefan Monnier <monnier@cs.yale.edu>
4484
4485 * eval.c (Frun_hooks): Allow 0 arguments.
4486
346598f1
GM
44872000-11-29 Gerd Moellmann <gerd@gnu.org>
4488
f9396e03
GM
4489 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
4490 is over the menu bar widget, say it's not on the frame.
4491
4a967a9b
GM
4492 * xfns.c (Fx_create_frame): Reintroduce the call to
4493 face-set-after-frame-defaults.
4494
346598f1
GM
4495 * eval.c (Fsignal): Reset handling_signal.
4496
222456a1
JR
44972000-11-28 Jason Rumney <jasonr@gnu.org>
4498
4499 * w32menu.c (add_menu_item): Reset menu item text when changing
4500 type to radio button.
4501
8049ddc0
GM
45022000-11-28 Gerd Moellmann <gerd@gnu.org>
4503
346598f1 4504 * xselect.c: Update copyright.
f4f4ee4d 4505
bebe4a2c
GM
4506 * window.c (coordinates_in_window): If on a mode or header line,
4507 but sufficiently close to its start, return ``on vertical
4508 border''. This gives us a way to drag windows horizontally when
4509 using toolkit scroll bars.
4510
4511 * xterm.c (note_mouse_highlight): Change the cursor shape
4512 on the vertical border between windows.
4513
4514 * xterm.h (struct x_output): Add member horizontal_drag_cursor.
4515
4516 * xfns.c (Vx_window_horizontal_drag_shape): New variable.
4517 (syms_of_xfns): DEFVAR_LISP it.
4518 (x_set_mouse_color): Create frame's horizontal_drag_cursor.
4519
8d2c2642
GM
4520 * textprop.c (text_read_only): New function.
4521 (verify_interval_modification): Use it instead of signaling
4522 `text-read-only'. This makes it easier to catch this error
52283633 4523 with a breakpoint.:
8d2c2642 4524
52283633 4525 * xdisp.c (forward_to_next_line_start): Check for newlines,
8049ddc0
GM
4526 not end of line, which includes CR.
4527
5a2bae6c
KH
45282000-11-28 Kenichi Handa <handa@etl.go.jp>
4529
4530 * coding.c (Ffind_coding_systems_region_internal): Be sure to
4531 include no-conversion.
4532
ae31f84d
JR
45332000-11-27 Jason Rumney <jasonr@gnu.org>
4534
4535 * w32fns.c (w32_load_system_font): Always mark font as double byte
4536 if codepage is unicode.
4537
67f1cf4c
GM
45382000-11-27 Gerd Moellmann <gerd@gnu.org>
4539
4a74d071 4540 * xdisp.c (forward_to_next_line_start): If already on a newline,
52283633 4541 just consume it to avoid unintended skipping over invisible text below.
4a74d071 4542
902ae620
GM
4543 * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
4544 `vertical-line', `mode-line' and `header-line' events.
4545
4546 * xdisp.c (try_window_id): Avoid starting to display in the middle
67f1cf4c
GM
4547 of a character, a TAB for instance. This is easier than to set
4548 up the iterator exactly, and it's not a frequent case, so the
4549 additional effort wouldn't really pay off.
4550
c1e279c2
AC
45512000-11-26 Andrew Choi <akochoi@i-cable.com>
4552
67f1cf4c 4553 * emacs.c (main) [macintosh]: Call syms_of_frame before calling
c1e279c2
AC
4554 init_window_once.
4555
a609568a
JR
45562000-11-25 Jason Rumney <jasonr@gnu.org>
4557
52283633
SM
4558 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]:
4559 Args to window_from_coordinates should be pixel coordinates.
48b21762 4560
a609568a
JR
4561 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
4562 redisplay handles them properly.
4563
a658d039
MB
45642000-11-25 Miles Bader <miles@gnu.org>
4565
4566 * indent.c (compute_motion): Keep pos_byte in sync with pos.
4567
d3416cca
JR
45682000-11-24 Jason Rumney <jasonr@gnu.org>
4569
4570 * w32.c (init_environment): Set LANG environment variable based on
4571 locale settings, if not set.
4572
4573 * w32fns.c (x_set_tool_bar_lines): Clear internal border when
4574 making tool bar smaller. When clearing the frame, also
4575 clear current matrices. Clear frame when tool bar disappears.
4576 Don't use more lines for the tool-bar than is available.
4577 (x_change_window_heights): New function.
4578
ba193890
GM
45792000-11-24 Gerd Moellmann <gerd@gnu.org>
4580
2be8f184
GM
4581 * xdisp.c (init_from_display_pos): If POS says we're already after
4582 an overlay string ending at POS, make sure to pop the iterator
4583 because it will be in front of that overlay string. When POS is
4584 ZV, we've thereby also ``processed'' overlay strings at ZV.
4585
ba193890
GM
4586 * xfaces.c (lface_from_face_name): Function comment fix.
4587
1862a24e
MB
45882000-11-24 Miles Bader <miles@gnu.org>
4589
4590 * xdisp.c (display_menu_bar, display_mode_line): Change the way we
4591 apply `mode-line-inverse-video' -- zero means force display using
4592 the default face, non-zero means display using the specialized face.
4593 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
4594
f07fa1b8
KH
45952000-11-23 Kenichi Handa <handa@etl.go.jp>
4596
4597 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
4598 hard coded `4'.
4599
2bcdf662
EZ
46002000-11-23 Eli Zaretskii <eliz@is.elta.co.il>
4601
4602 * coding.c (decode_coding_emacs_mule): Fix the case of
4603 CODING_EOL_LF, which used uninitialized value of c.
4604
ba8299ff
SM
46052000-11-23 Stefan Monnier <monnier@cs.yale.edu>
4606
4607 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
4608
f4117c4d
GM
46092000-11-22 Gerd Moellmann <gerd@gnu.org>
4610
03e757c1
GM
4611 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
4612 buffer object.
4613
f4117c4d
GM
4614 * frame.h (struct frame): Replace desired_tool_bar_items,
4615 current_tool_bar_items, n_desired_tool_bar_items,
cc362d76 4616 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
f4117c4d
GM
4617
4618 * frame.c (make_frame): Change initialization of tool bar
4619 items accordingly.
4620
4621 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
cc362d76 4622 Change references to members deleted from struct frame to use the
f4117c4d
GM
4623 new ones.
4624
4625 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
52283633 4626 references to members deleted from struct frame to use the new ones.
f4117c4d 4627
52283633 4628 * dispnew.c (update_frame): Do nothing with frame's tool bar items.
f4117c4d
GM
4629
4630 * alloc.c (mark_object) <frame>: Mark tool bar items differently.
4631
4632 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
cc362d76 4633 (note_tool_bar_highlight): Change references to members deleted
f4117c4d
GM
4634 from struct frame to use the new ones.
4635
f8e2f3f2
MB
46362000-11-23 Miles Bader <miles@gnu.org>
4637
4638 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
4639 the face's inverse-video attribute, rather than overriding it.
4640
60e8e0a5
GM
46412000-11-22 Gerd Moellmann <gerd@gnu.org>
4642
4643 * xfns.c (x_set_tool_bar_lines): Clear internal border when
4644 making tool bar smaller.
4645
92dd1b29
DL
46462000-11-22 Dave Love <fx@gnu.org>
4647
4648 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
4649
e672fdce
MB
46502000-11-22 Miles Bader <miles@gnu.org>
4651
3a17d6cc
MB
4652 * keyboard.c (Vminibuffer_message_timeout): New variable.
4653 (command_loop_1): Use it to determine message timeout.
4654 (syms_of_keyboard): Initialize it.
4655
60e8e0a5 4656 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
e672fdce 4657
e9655d81
KH
46582000-11-22 Kenichi Handa <handa@etl.go.jp>
4659
4660 * sysdep.c: Move the code for declaring h_errno after #include
4661 <netdb.h>.
4662
77270fac
GM
46632000-11-21 Gerd Moellmann <gerd@gnu.org>
4664
cd913aae
GM
4665 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
4666 the menu bar when the tooltip is unmapped.
4667
77270fac
GM
4668 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
4669 sole visible buffer when we're currently in the mini-buffer, and
4670 give up if so.
52283633 4671
556635d6
JR
46722000-11-21 Jason Rumney <jasonr@gnu.org>
4673
4674 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
4675 put on the clipboard.
4676 (Fw32_get_clipboard_data): Compare data on clipboard with saved
4677 copy of what Emacs last put there. If they are the same, do not
52283633 4678 use the clipboard copy to avoid losing data due to coding conversions.
556635d6 4679
5b7bde64
MB
46802000-11-22 Miles Bader <miles@gnu.org>
4681
4682 * minibuf.c (Vminibuffer_prompt_properties): New variable.
4683 (syms_of_minibuf): Initialize it.
4684 (read_minibuf): Add properties from Vminibuffer_prompt_properties
4685 to prompt, don't make read-only.
4686
ff23e1dd
GM
46872000-11-21 Gerd Moellmann <gerd@gnu.org>
4688
52283633
SM
4689 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>:
4690 Add BEFORE/AFTER_POTENTIAL_GC.
3c64f287 4691
7aaf4388
GM
4692 * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
4693
f5f47add 4694 * buffer.c (mmap_free_1): Avoid a compiler warning.
1a15cca0 4695
ff23e1dd
GM
4696 * term.c, cm.c: Don't try to include termcap.h; see comment there.
4697
37c35586
KH
46982000-11-21 Kenichi Handa <handa@etl.go.jp>
4699
4700 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
4701 ... #endif scope.
4702
ff9ab414
GM
47032000-11-20 Gerd Moellmann <gerd@gnu.org>
4704
52283633 4705 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the
c51d2b5e
GM
4706 screen supports it.
4707
29a01b72
GM
4708 * s/gnu-linux.h: Don't use `#cpu'.
4709
09dfdf85
GM
4710 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
4711 not defined in mman.h.
4712
52283633 4713 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables.
ff9ab414
GM
4714 (x_send_scroll_bar_event): Store the window in scroll_bar_windows
4715 and store an index in the XClientMessageEvent. Storing a
4716 Lisp_Object or pointer can fail on a 64 bit system, since X only
4717 transfers 32 bits.
52283633
SM
4718 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows.
4719
81459ac9
DL
47202000-11-20 Dave Love <fx@gnu.org>
4721
4722 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
4723
56c13ae6
GM
47242000-11-20 Gerd Moellmann <gerd@gnu.org>
4725
4726 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
4727
495a6df3
KH
47282000-11-20 Kenichi Handa <handa@etl.go.jp>
4729
2bcf3714
KH
4730 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
4731 by WIDTH.
4732
495a6df3
KH
4733 * alloc.c (make_string): Fix previous change. Be sure to make
4734 unibyte string correctly.
4735
6d950f4c
GM
47362000-11-19 Gerd Moellmann <gerd@gnu.org>
4737
39b39373
GM
4738 * window.c (Fwindow_list): Change parameter list to be XEmacs
4739 compatible.
4740 (window_list_1): New function.
4741 (window_loop): Use it instead of Fwindow_list.
4742
b95b34e5
GM
4743 * sysdep.c (emacs_ospeed): New variable.
4744 (toplevel): Don't declare ospeed extern.
4745 (init_baud_rate): Use emacs_ospeed instead of ospeed.
4746
4747 * termcap.c (ospeed): Remove.
4748 (tputs) [!emacs]: Remove unused code.
4749 (tgetent): Avoid a compiler warning.
4750
e83dc917
GM
4751 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
4752 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
b95b34e5 4753 SCROLL_BAR_X_WIDGET with additional argument DPY.
e83dc917
GM
4754
4755 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
4756 removed.
4757 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
4758 Take the X display as additional argument.
4759 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
4760 `Widget' is a pointer type that's not easily stored in Lisp_Object
4761 form in a portable way.
52283633 4762
6d950f4c
GM
4763 * dispnew.c (update_text_area): Fix last change.
4764
e47306e6
GM
47652000-11-18 Gerd Moellmann <gerd@gnu.org>
4766
fb3cd89b
GM
4767 * xdisp.c: Use BINDING_STACK_SIZE throughout.
4768
4769 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
4770 clear current matrices.
4771
edaa9aed
GM
4772 * buffer.c (mmap_enlarge): Don't print a message on stderr
4773 if mapping new memory at the end of the existing region fails.
4774
e47306e6
GM
4775 * dispnew.c (update_text_area): Don't skip over equal glyphs
4776 when the last current glyph overlaps the glyph to its right.
4777
509633e3
MB
47782000-11-18 Miles Bader <miles@gnu.org>
4779
4780 * xdisp.c (message_log_check_duplicate): Let "..."-detection match
4781 lines that *end* with "..." too (that's the most common case!).
4782
d392e9c5
GM
47832000-11-18 Gerd Moellmann <gerd@gnu.org>
4784
67988445
GM
4785 * xdisp.c (resize_mini_window): Temporarily change to the
4786 mini-window's buffer if necessary.
1bfdbe43 4787
d392e9c5
GM
4788 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
4789 the tooltip obscures less text under it.
4790
47912000-11-17 Gerd Moellmann <gerd@gnu.org>
4792
4793 * puresize.h (BASE_PURESIZE): Increase to 700000.
4794
92bb977f
JR
47952000-11-18 Jason Rumney <jasonr@gnu.org>
4796
4797 * w32term.c (w32_draw_bitmap): Use face to set colors.
4798
26fbf20b
DL
47992000-11-17 Dave Love <fx@gnu.org>
4800
4801 * lread.c (Fload): Fix #ifdef for pcc.
4802
100b593b
GM
48032000-11-17 Gerd Moellmann <gerd@gnu.org>
4804
4805 * xdisp.c (pos_visible_p): Compute the default character height
4806 differently.
4807
a288d0d1
GM
48082000-11-16 Gerd Moellmann <gerd@gnu.org>
4809
cac94de6 4810 * xdisp.c (pos_visible_p): Handle case that we reach ZV without
52283633 4811 knowing the line's height; use the default font's height in that case.
cac94de6 4812
a288d0d1
GM
4813 * xfaces.c (weight_table): Add `demi' with the same meaning as
4814 `demibold'.
4815
981fb6f6
KH
48162000-11-16 Kenichi Handa <handa@etl.go.jp>
4817
2cca872d 4818 * dispnew.c (null_row): New global static variable.
981fb6f6
KH
4819 (clear_glyph_row): Delete local static variable null_row.
4820
e5fa381b
JR
48212000-11-15 Jason Rumney <jasonr@gnu.org>
4822
4823 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
4824 (w32_alloc_lighter_color): Use new brightness calculations from
4825 xterm.c. Scale delta to be in the range expected by W32.
4826 (w32_draw_relief_rect): Use frame relief colors.
4827
8e42f043
GM
48282000-11-15 Gerd Moellmann <gerd@gnu.org>
4829
6d133d1f
GM
4830 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
4831 (Qinhibit_default_face_x_resources): New variable.
4832 (syms_of_frame): Initialize it.
4833 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
4834
4835 * xdisp.c (pos_visible_p): Improve function comment.
4836
4837 * lisp.h (BINDING_STACK_SIZE): New macro.
4838
8e42f043
GM
4839 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
4840 reading the directory if readdir returns null and errno is EAGAIN
4841 or EINTR.
4842
e8c87124
SM
48432000-11-14 Stefan Monnier <monnier@cs.yale.edu>
4844
4845 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
4846 so setting scroll-step to 1 doesn't defeat scroll-conservatively.
4847 Set amount_to_scroll to max of dx and scroll_step so that
4848 scroll-conservatively doesn't defeat scroll-step>1.
4849 (syms_of_xdisp): Add a hint in scroll-step's docstring to use
4850 scroll-conservatively for line-at-a-time scrolling.
4851
5f0c971d
GM
48522000-11-14 Gerd Moellmann <gerd@gnu.org>
4853
4854 * window.c (Fpos_visible_in_window_p): Call pos_visible with
4855 extra argument.
4856
4857 * xdisp.c (current_mode_line_height, current_header_line_height):
4858 New variables.
4859 (init_xdisp): Initialize them.
4860 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute
4861 and use exact mode line heights if it is set.
4862
4863 * lisp.h (pos_visible_p): Change prototype.
4864
4865 * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
4866 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height
4867 and current_header_line_height first.
52283633
SM
4868 (current_mode_line_height, current_header_line_height):
4869 Declare extern.
5f0c971d 4870
d7361edf
MB
48712000-11-14 Miles Bader <miles@lsi.nec.co.jp>
4872
4873 * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
4874 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
4875 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
4876
ee5e440a
MB
48772000-11-14 Miles Bader <miles@gnu.org>
4878
4879 * xterm.c (x_alloc_lighter_color): Include an additive component
4880 too for dark colors, because FACTOR isn't enough.
4881 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
4882 New macros.
4883
5ca020fc
GM
48842000-11-13 Gerd Moellmann <gerd@gnu.org>
4885
4886 * keyboard.c (show_help_echo): Call message3_nolog with number of
4887 bytes in the help string as 2nd parameter, instead of the number
4888 of characters.
4889
9d348294
MB
48902000-11-13 Miles Bader <miles@gnu.org>
4891
4892 * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
4893 (Fload): Use new openp return protocol.
4894 Don't try to use Vload_source_file_function to load .elc files.
4895 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
4896 openp return protocol.
4897 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
4898
1729bb9a
KH
48992000-11-11 Kenichi Handa <handa@etl.go.jp>
4900
4e677396
KH
4901 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
4902
4903 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
4904 Defined these macros.
4905 (NLIST_STRUCT): Avoid re-defining it.
4906
1729bb9a
KH
4907 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
4908 -I/usr/contrib/X11R6/include.
4909 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
4910
a82fe213
JR
49112000-11-10 Jason Rumney <jasonr@gnu.org>
4912
4913 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
4914
4915 * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
4916 (w32_use_unicode_for_codepage): Use new pseudo-codepages.
4917
4918 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
4919 (Qw32_charset_vietnamese): New symbol.
4920 (xlfd_charset_of_font): New function.
4921 (w32_load_system_font): Use it.
4922 (x_to_w32_charset): Use Fassoc to find charset info. Special case
4923 when Vw32_charset_info_alist is nil to ensure default face always
4924 has font. Use Fcar and Fcdr for safety.
4925 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
4926 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new
4927 pseudo-codepages for special cases.
4928 (w32_to_x_font): New parameter to allow charset portion to be
4929 specified where there is many to one mapping. Callers changed.
4930 (w32_list_fonts): Avoid listing fonts that won't display.
4931
52d89894
GM
49322000-11-10 Gerd Moellmann <gerd@gnu.org>
4933
4934 * xfaces.c (Vface_alternative_font_registry_alist): New variable.
4935 (font_list_1): Renamed from font_list.
4936 (font_list): New function, trying alternative registries from
4937 Vface_alternative_font_registry_alist.
4938 (Finternal_set_alternative_font_registry_alist): New function.
4939 (syms_of_xfaces): Initialize and Staticpro
52283633
SM
4940 Vface_alternative_font_registry_alist.
4941 Defsubr Finternal_set_alternative_font_registry_alist.
52d89894 4942
651cd3da
KR
49432000-11-09 Ken Raeburn <raeburn@gnu.org>
4944
4945 * lisp.h (Flooking_at): Declare.
4946
388ac098
GM
49472000-11-09 Gerd Moellmann <gerd@gnu.org>
4948
778fbc46 4949 * dired.c (directory_files_internal): Fix a braino.
52283633 4950
388ac098
GM
4951 * dired.c (directory_files_internal): Add missing GCPRO's.
4952 Some cleanup.
4953
ecaedde1
GM
49542000-11-08 Gerd Moellmann <gerd@gnu.org>
4955
f7eb32aa
GM
4956 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
4957 (resize_mini_window): Return quickly if Vresize_mini_window is
4958 nil. Don't return if Vmax_mini_window_height is nil.
4959
4960 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
4961 (syms_of_xdisp): Initialize them.
4962 (resize_mini_window): Act according to the setting of
4963 Vresize_mini_window.
4964 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
4965
ecaedde1
GM
4966 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
4967 scroll bar widget after configuring it, so that it will appear at
4968 the right position from the start.
4969 (XTredeem_scroll_bar): Cleaned up.
4970
3747ef2c
KH
49712000-11-08 Kenichi Handa <handa@etl.go.jp>
4972
4973 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the
5d16e624 4974 font is taller than the frame line, we don't have to bias the
3747ef2c
KH
4975 division by two.
4976
4977 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
4978
03391420
DL
49792000-11-07 Dave Love <fx@gnu.org>
4980
7758f1c1 4981 * config.in (HAVE_MKSTEMP): Add.
03391420
DL
4982
4983 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
4984
b5de343d
GM
49852000-11-07 Gerd Moellmann <gerd@gnu.org>
4986
acad3c0b
GM
4987 * window.c (Fset_window_configuration): Don't try to preserve
4988 point in the current buffer, if that buffer is displayed in more
4989 than one window.
4990
b5de343d
GM
4991 * xfaces.c (lookup_named_face): If default face isn't realized,
4992 try to realize it. Return -1 if not successful.
4993 (Fx_list_fonts): Handle case that face cannot be determined.
4994 (Fface_font): Likewise.
4995
cdb1fe49
GM
49962000-11-06 Gerd Moellmann <gerd@gnu.org>
4997
4998 * window.c (displayed_window_lines): Detect partially
4999 visible lines at the bottom correctly.
5000
d3a67486
SM
50012000-11-06 Stefan Monnier <monnier@cs.yale.edu>
5002
5003 * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
5004 when ensuring we don't do visit in indirect buffer.
5005
ff8dd5d5
KH
50062000-11-06 Kenichi Handa <handa@etl.go.jp>
5007
5008 * composite.h (compose_chars_in_text): Add prototype.
5009
5010 * composite.c (Vcomposition_function_table): New variable.
5011 (Qcomposition_function_table): New variable.
5012 (run_composition_function): Call
5013 Vcompose_chars_after_function with three arguments.
5014 (compose_chars_in_text): New function.
5015 (syms_of_composite): Modified the doc-string of
5016 Vcompose_chars_after_function. Declare composition-function-table
5017 as a lisp variable, and initialize it.
5018
5019 * xfns.c (x_encode_text): Suppress producing escape sequences for
5020 composition.
5021
5022 * xselect.c: Include composite.h.
5023 (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
5024
d1145f85
AI
50252000-11-05 Andrew Innes <andrewi@gnu.org>
5026
5027 * w32term.c (x_produce_glyphs): Fix typo in enum name.
5028
5029 * sysdep.c (read_input_waiting): Remove extraneous argument to
5030 read_socket_hook.
5031
5032 * w32fns.c (Fx_server_version): Include w32_build_number in the
5033 return list.
5034
5035 * w32heap.c (w32_build_number): New variable.
5036 (cache_system_info): Set it.
5037
5038 * w32heap.h (w32_build_number): Add extern.
5039
5040 * emacs.c (syms_of_emacs): Update docstring for
5041 system-configuration, to reflect the actual usage on MS-Windows.
5042
e85ee976
GM
50432000-10-31 Gerd Moellmann <gerd@gnu.org>
5044
26dcb81b
GM
5045 * keyboard.c (read_char) <wrong_kboard>: Make sure that we
5046 process idle timers while waiting for another event.
5047
52283633 5048 * dispnew.c (update_frame_line): Handle case where spaces in
0a894bad
GM
5049 the default face are colored.
5050
e85ee976
GM
5051 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
5052 window height hasn't changed.
5053
01b220b6
JR
50542000-10-31 Jason Rumney <jasonr@gnu.org>
5055
5056 * w32term.c (x_produce_glyphs): Handle composite characters.
5057 (x_draw_glyph_string_foreground)
5058 (x_draw_composite_glyph_string_foreground): Restore old font.
5059
4e6b7204
MB
50602000-10-31 Miles Bader <miles@lsi.nec.co.jp>
5061
5062 * minibuf.c (read_minibuf): Reset the undo history just before
5063 starting the recursive-edit.
5064
d4358b37
GM
50652000-10-30 Gerd Moellmann <gerd@gnu.org>
5066
563f68f1
GM
5067 * xfaces.c (menu_face_change_count): New variable.
5068 (Finternal_set_lisp_face_attribute): Increment it for changes
5069 of the `menu' face.
5070 (realize_basic_faces): Reflect changes in the `menu' faces
5071 in menu bars.
5072
82e274d1
GM
5073 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
5074 dy obtained from the iterator's y-position after moving from
5075 scroll_margin_pos to PT; see comment there.
52283633 5076
0dbf9fd2
GM
5077 * xdisp.c (safe_eval_handler): Call add_to_log.
5078
906b3b14
GM
5079 * xfaces.c (resolve_face_name): Handle case that FACE_NAME
5080 is not a symbol or string.
5081
d4358b37
GM
5082 * xdisp.c (echo_area_display): Don't perform a display update from
5083 inside redisplay. The update will happen anyway at the end of
5084 redisplay, and it can confuse redisplay (GC messages while
5085 redisplaying, for instance.)
5086
70c825df
SM
50872000-10-30 Stefan Monnier <monnier@cs.yale.edu>
5088
cf9b4b0b
SM
5089 * xrdb.c (x_load_resources): Use the class name in the defaults.
5090
70c825df
SM
5091 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
5092 (regex_compile): Catch bogus \(\1\).
5093
a1d34b1e
GM
50942000-10-30 Gerd Moellmann <gerd@gnu.org>
5095
cae71efe
GM
5096 * xterm.c (x_alloc_nearest_color): Fix last change to compare
5097 RGB values.
52283633 5098
35efe0a1
GM
5099 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
5100 we have a color cache, check that the cached color equals the
5101 allocated color. If not, clear the color cache.
5102
1d3baf74
GM
5103 * window.c (displayed_window_lines): Change buffers if necessary.
5104 Fix computation of displayed lines.
5105
a1d34b1e
GM
5106 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
5107 update_menu_bindings to DEFVAR_BOOL.
5108
70737ea9
KH
51092000-10-30 Kenichi Handa <handa@etl.go.jp>
5110
70c825df 5111 * search.c (Fset_match_data): Be sure to make search_regs always sane.
80406070 5112
fa0cb51d
KH
5113 * puresize.h (BASE_PURESIZE): Increase to 680000.
5114
70737ea9
KH
5115 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
5116
0e4c08e8
JR
51172000-10-29 Jason Rumney <jasonr@gnu.org>
5118
5119 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
5120
5121 * w32term.c (w32_bdf_per_char_metric): Negate descent.
5122 (w32_cache_char_metrics): Handle possibility that 'x' does not
5123 exist in a BDF font.
5124 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
5125
5126 * w32bdf.h (bdffont): Add nchars.
5127
5128 * w32bdf.c (set_bdf_font_info): Set it.
5129 (w32_BDF_TextOut): Swap byte order of double byte characters.
5130 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
5131
45b84006
EZ
51322000-10-28 Eli Zaretskii <eliz@is.elta.co.il>
5133
5134 * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
5135 don't override the colors in frame's param_alist, unless they are
5136 unspecified.
5137
5138 * term.c (reassert_line_highlight): If inverse_video is non-zero,
5139 reverse the effect of the highlight flag.
5140
caf9deee
KR
51412000-10-27 Ken Raeburn <raeburn@gnu.org>
5142
5143 * window.h (Fwindow_live_p): Declare.
5144
ae0b9b46
KR
5145 * undo.c (record_delete): Check that last_undo_buffer is really a
5146 buffer before applying XBUFFER to it.
5147
5148 * keymap.c (where_is_internal): Pass lisp object, not integer, to
5149 Faref.
5150
02067692
SM
51512000-10-27 Stefan Monnier <monnier@cs.yale.edu>
5152
5153 * lisp.h (KEYMAPP): New macro.
5154 (get_keymap): Remove.
5155 (get_keymap_1): Rename get_keymap.
5156
5157 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
5158
5159 * xterm.c (note_mode_line_highlight): Use KEYMAPP.
5160
5161 * xmenu.c (single_submenu): Use KEYMAPP.
5162 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
5163 Use KEYMAPP rather than Fkeymapp.
5164
5165 * w32term.c (note_mode_line_highlight): Use KEYMAPP.
5166
5167 * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
5168 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
5169 Use KEYMAPP rather than Fkeymapp.
5170 (single_submenu): Use KEYMAPP.
5171 (w32_menu_show, w32_dialog_show): Use TRUE.
5172
5173 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
5174
5175 * keymap.c (KEYMAPP): Remove (moved to lisp.h).
5176 (Fkeymapp): Use KEYMAPP.
5177 (get_keymap): Rename from get_keymap_1. Remove old def.
5178 Return t when autoload=0 and error=0 and the keymap needs autoloading.
5179 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
5180 (Fminor_mode_key_binding): Don't raise an error if the binding
5181 is not a keymap.
5182 (Fuse_global_map, Fuse_local_map): Allow autoloading.
5183 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
5184
5185 * keyboard.c (read_char): get_keymap_1 -> get_keymap.
5186 Allow Vspecial_event_map to be autoloaded.
5187 (menu_bar_items): Fetch the keymap rather than using keymapp.
5188 (menu_bar_one_keymap): No need to follow func-indirect any more.
5189 (parse_menu_item): get_keymap_1 -> get_keymap.
5190 (tool_bar_items): Fetch the keymap rather than using keymapp.
5191 (read_key_sequence): Use KEYMAPP.
5192
5193 * intervals.c (get_local_map): Use get_keymap rather than following
5194 function-indirections explicitly.
5195
5196 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
5197
f9d80af3
JR
51982000-10-27 Jason Rumney <jasonr@gnu.org>
5199
5200 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
5201 point, as Windows has oversized fonts.
5202
5203 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
5204
a3ba27da
GM
52052000-10-27 Gerd Moellmann <gerd@gnu.org>
5206
5207 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
5208 (freehook, reallochook): Handle null pointer arguments.
5209 (__malloc_initialize) [GC_MCHECK]: Call mcheck.
5210
aa3b80cc
SM
52112000-10-27 Stefan Monnier <monnier@cs.yale.edu>
5212
5213 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
5214 (re_match_2_internal, re_match_2_internal, re_match_2_internal):
5215 Giving in to popular pressure to shut up the compiler with casts.
5216
e24e84cc
GM
52172000-10-27 Gerd Moellmann <gerd@gnu.org>
5218
5219 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
5220 signed value, and use a default value computed from the font's
5221 maximum descent.
5222
05ea7ef2
MB
52232000-10-27 Miles Bader <miles@lsi.nec.co.jp>
5224
5225 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
5226 that specify a negative underline position can still use underlines.
5227
5228 * window.c (Fpos_visible_in_window_p): Make POS default to
5229 WINDOW's point, not the current buffer's point.
5230
0b95284b
DL
52312000-10-26 Dave Love <fx@gnu.org>
5232
5233 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
5234 when it's necessary.
5235
6c5b90af
GM
52362000-10-26 Gerd Moellmann <gerd@gnu.org>
5237
8b6d9dc9
GM
5238 * window.c (size_window): Compute size difference from sum of old
5239 child window sizes instead of from parent's size.
5240
6bc92b2e
GM
5241 * xdisp.c (pos_visible_p): Change current buffer if necessary.
5242 Handle obscured lines at the top of the window.
5243
5244 * frame.c (Fdelete_frame): Doc fix. Move running the hook
5245 down after the last error condition check.
5246
6c5b90af
GM
5247 * frame.c (Fdelete_frame): Run delete-frame-hook.
5248
42f92d4d
KH
52492000-10-26 Kenichi Handa <handa@etl.go.jp>
5250
5251 * coding.c (decode_coding): Fix previous change (check also
5252 CODING_MODE_LAST_BLOCK).
5253
d97151cb
SM
52542000-10-25 Stefan Monnier <monnier@cs.yale.edu>
5255
e7efc503
SM
5256 * regex.c: More `unsigned char' -> `re_char' changes.
5257 Also change several `int' into `re_wchar_t'.
5258 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
5259 (PUSH_FAILURE_POINTER): Don't cast any more.
5260 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
5261 We want GCC to complain, since this piece of code makes
5262 re_match non-reentrant, which *should* be fixed.
5263 (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
5264 (EXTEND_BUFFER): Use RETALLOC.
5265 (SET_LIST_BIT): Don't cast.
5266 (re_wchar_t): New type.
5267 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
5268 that those two functions will always properly return.
5269 (IMMEDIATE_QUIT_CHECK): Cast to void.
5270 (analyse_first): Use recursion rather than an explicit stack.
5271 (re_compile_fastmap): Can't fail anymore.
5272 (re_search_2): Don't check re_compile_fastmap for failure.
5273 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
5274 Now also sets the new value (passed in a new argument).
5275 (re_match_2_internal): Use it.
5276 Also, use a new var `reg' of type size_t when looping through regs
5277 rather than reuse the inappropriate `mcnt'.
5278
d97151cb
SM
5279 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
5280 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
5281 (where_is_internal): Renamed from Fwhere_is_internal.
5282 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
5283 (Fwhere_is_internal): New function wrapping where_is_internal.
5284 (where_is_internal_1): Handle the case where we're filling the cache.
5285 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
5286
d5789b65
MB
52872000-10-25 Miles Bader <miles@gnu.org>
5288
5289 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
5290
4ecda532
GM
52912000-10-25 Gerd Moellmann <gerd@gnu.org>
5292
5293 * window.c (pos_fully_visible_p): Removed.
5294 (Fpos_visible_in_window_p): Use pos_visible_p to determine
5295 if position is visible and/or fully visible.
5296
5297 * lisp.h (pos_visible_p): Add prototype.
5298
5299 * xdisp.c (pos_visible_p): New function.
5300
68c3a137
KH
53012000-10-25 Kenichi Handa <handa@etl.go.jp>
5302
5303 * process.c (send_process): If OBJECT is t, it means that the data
5304 is from C string, but we should encode it. Before calling
5305 setup_raw_text_coding_system, be sure to flush out data by the
5306 previous coding system.
5307
7ae1c032
MB
53082000-10-25 Miles Bader <miles@lsi.nec.co.jp>
5309
ff4dcd4b
MB
5310 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
5311 assignment of startpos to prev when startpos == pos.
5312
7ae1c032
MB
5313 * editfns.c (find_field): Set the field stickiness correctly from
5314 overlay fields. Use renamed `text_property_stickiness'.
5315 (text_property_stickiness): Renamed from `char_property_stickiness'.
ebe2a441 5316 Only check text properties, not overlays.
7ae1c032
MB
5317 * textprop.c (get_char_property_and_overlay): New function.
5318 (Fget_char_property): Use it.
5319 * intervals.h (get_char_property_and_overlay): Add declaration.
5320
49801145
SM
53212000-10-25 Stefan Monnier <monnier@cs.yale.edu>
5322
5323 * keymap.c: Use AREF, ASET and ASIZE macros.
5324 (Fmake_sparse_keymap): Docstring fix.
5325 (synkey): Remove.
5326 (shadow_lookup): Move up.
5327 Handle the case where lookup-key returns an integer.
5328 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
5329 (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
5330 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
5331 Simplify/rewrite the keymap-finding code.
5332 Add check for command shadowing, using shadow_lookup.
5333
39e776cd
SM
53342000-10-24 Stefan Monnier <monnier@cs.yale.edu>
5335
5336 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
5337 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
5338 a symbol.
5339
2488aba5
AI
53402000-10-24 Andrew Innes <andrewi@gnu.org>
5341
5342 * dired.c (directory_files_internal_unwind): New function.
5343 (directory_files_internal): Use it to ensure closedir is called
5344 even if expand-file-name or file-attributes throw, eg. because of
5345 a user interrupt. Also enable immediate_quit while calling
5346 re_search, so that matching can be interrupted as well.
5347
b94fdf61
AI
53482000-10-24 Andrew Innes <andrewi@gnu.org>
5349
5350 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
5351 NT-Emacs only.
5352 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
5353 so that re_search functions only quit when callers expect them to.
5354
53552000-10-24 Kenichi Handa <handa@etl.go.jp>
5356
5357 * regex.c (regex_compile): Change the way of handling a range from
5358 a char less than 256 to a char not less than 256.
5359
1946f901
GM
53602000-10-24 Gerd Moellmann <gerd@gnu.org>
5361
7ae2f10f
GM
5362 * window.c (size_window): Prevent setting window's width or
5363 height to a negative value (esp. with XSETFASTINT).
5364
5dcab13e
GM
5365 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
5366 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
5367 (protect_malloc_state) [GC_MALLOC_CHECK &&
5368 GC_PROTECT_MALLOC_STATE]: New function.
5369 (PROTECT_MALLOC_STATE): New macro.
5370 (__malloc_initialize, morecore, _malloc_internal)
5371 (_free_internal) _realloc_internal): Use it to make _heapinfo
5372 read-only outside of gmalloc.
5373
63e1b552
GM
5374 * keymap.c: Update copyright.
5375
1946f901
GM
5376 * .gdbinit (xbacktrace): Handle case that $bt->function isn't
5377 a symbol.
5378
4fa09beb
GM
53792000-10-24 Colin Walters <walters@cis.ohio-state.edu>
5380
5381 * filelock.c (unlock_all_files): Use unlock_file to expand each
5382 buffer's file_truename before trying remove its lock file.
5383
23afac01
EZ
53842000-10-24 Eli Zaretskii <eliz@is.elta.co.il>
5385
5386 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
5387 or CRLF, decode EOLs.
5388
04448b95
KH
53892000-10-24 Kenichi Handa <handa@etl.go.jp>
5390
5391 * window.c (Fdisplay_buffer): Fix doc.
5392
3090a5a5
JR
53932000-10-23 Jason Rumney <jasonr@gnu.org>
5394
5395 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
5396 ASCII font of default fontset on Windows.
5397
5398 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
5399 xterm.c comment below).
5400
5401 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
5402
a83fee2c
GM
54032000-10-23 Gerd Moellmann <gerd@gnu.org>
5404
5405 * xterm.c (x_connection_closed): Reset handling_signal.
5406
52283633 5407 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null.
a83fee2c 5408
6ffdb539
MB
54092000-10-23 Miles Bader <miles@gnu.org>
5410
5411 * window.c (window_scroll_pixel_based, window_scroll_line_based):
5412 Pass nil for FULLY argument to Fpos_visible_in_window_p to
5413 maintain old behavior.
5414 * minibuf.c (Fminibuffer_complete): Likewise.
5415
7f1c969b
MB
54162000-10-23 Miles Bader <miles@lsi.nec.co.jp>
5417
5418 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
5419 that when a font can't be exactly centered, it errs up rather than
5420 down.
5421
23afac01 54222000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu>
8ec118cd 5423
52283633 5424 * fns.c (Fbase64_decode_string): The decoded result should be unibyte.
8ec118cd 5425
1a578e9b
AC
54262000-10-23 Andrew Choi <akochoi@i-cable.com>
5427
5428 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
5429
5430 * dispnew.c [macintosh]: Include macterm.h.
a83fee2c 5431 (init_display) [macintosh]: Initialization for window system.
1a578e9b
AC
5432
5433 * emacs.c (main) [macintosh]: Call syms_of_textprop,
5434 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
5435 syms_of_search, x_term_init, and init_keyboard before calling
5436 init_window_once. Also, call syms_of_xmenu.
5437
5438 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
5439 default fontset to Monaco.
5440
5441 * frame.c [macintosh]: Include macterm.h. Remove declarations of
5442 NewMacWindow and DisposeMacWindow.
5443 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
5444 instead of calling NewMacWindow and setting fields of
5445 f->output_data.mac directly. Call init_frame_faces.
5446 (Fdelete_frame) [macintosh]: Remove unused code.
5447 (Fmodify_frame_parameters) [macintosh]: Call
5448 x_set_frame_parameters instead of mac_set_frame_parameters.
5449
5450 * frame.h [macintosh]: Define menu_bar_lines field in struct
5451 frame. Define FRAME_EXTERNAL_MENU_BAR macro.
5452
5453 * keyboard.c [macintosh]: Include macterm.h.
5454 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
5455 and menu_bar_activate_event type events as for X and NT.
5456 (make_lispy_event) [macintosh]: Construct lisp events of type
5457 MENU_BAR_EVENT as for X and NT.
5458
5459 * sysdep.c [macintosh]: Remove declaration for sys_signal.
5460 Include stdlib.h. Remove definition of Vx_bitmap_file_path.
5461 (sys_subshell) [macintosh]: Remove definition entirely.
5462 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
5463 Vwindow_system_version here. Remove initialization of
5464 Vx_bitmap_file_path.
5465 (read_input_waiting): Correct the number of parameters passed to
5466 read_socket_hook.
5467 Move all Macintosh functions to mac/mac.c.
5468
5469 * term.c [macintosh]: Include macterm.h.
5470
5471 * window.c [macintosh]: Include macterm.h.
5472
5473 * xdisp.c [macintosh]: Include macterm.h. Declare
5474 set_frame_menubar and pending_menu_activation.
5475 (echo_area_display) [macintosh]: Do not return if terminal frame
5476 is the selected frame.
5477 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
5478 Allow only the selected frame to set menu bar.
5479 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
5480 calling FRAME_EXTERNAL_MENU_BAR (f).
5481 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
5482
5483 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info
5484 and check_x. Declare XCreateGC. Define x_create_gc and
5485 x_free_gc. Initialize font_sort_order.
5486 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
5487 but call x_list_fonts instead of w32_list_fonts.
5488 (Finternal_face_x_get_resource) [macintosh]: Do not call
5489 display_x_get_resource.
5490 (prepare_face_for_display) [macintosh]: Set xgcv.font.
5491 (realize_x_face) [macintosh]: Load the font if it is specified in
5492 ATTRS.
52283633 5493 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt.
1a578e9b 5494
1ffbabe3
SM
54952000-10-22 Stefan Monnier <monnier@cs.yale.edu>
5496
5497 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
5498 is nil: since we go to the end of submap anyway, we'd end up
5499 setting nil to nil.
5500 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
5501 doesn't obey autoload.
5502
bed43f1d
EZ
55032000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
5504
1ffbabe3 5505 * msdos.c (dos_set_window_size): Update screen dimension variables.
bed43f1d 5506
ea4233a7
JR
55072000-10-21 Jason Rumney <jasonr@gnu.org>
5508
5509 * w32term.c (w32_cache_char_metrics): Double check that font is
5510 really fixed pitch before trusting tmPitchAndFamily.
5511
f3d3c491
AI
55122000-10-21 Andrew Innes <andrewi@gnu.org>
5513
5514 * w32gui.h (w32_char_font_type): Move enum from w32term.c
5515
5516 * w32term.h: Extern decl for w32_cache_char_metrics.
5517
5518 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
5519
5520 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
5521 (w32_unload_font): Free per_char array if present.
5522
5523 * w32term.c (w32_per_char_metric): Remove HDC argument. Use
5524 cached information in emulated XFontStruct to handle common cases
5525 quickly. Do not allocate XCharStruct for return.
5526 (w32_native_per_char_metric): New function.
5527 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
5528 allocating one.
5529 (x_produce_glyphs): Don't get an HDC. Change calls to
5530 w32_per_char_metric to match arg change above. Remove calls to
5531 free results.
5532 (w32_get_glyph_overhangs): Ditto.
5533 (w32_cache_char_metrics): New function.
5534
5535 * makefile.w32-in: Change .obj to .$(O) in all dependencies.
5536 ($(BLD)/casefiddle.$(O)): Remove compile command.
5537 ($(BLD)/gmalloc.$(O)): Remove compile command.
52283633
SM
5538 ($(BLD)/dispnew.obj):
5539 ($(BLD)/keyboard.obj):
5540 ($(BLD)/w32inevt.obj):
5541 ($(BLD)/w32bdf.obj):
5542 ($(BLD)/alloc.obj):
5543 ($(BLD)/buffer.obj):
5544 ($(BLD)/editfns.obj):
5545 ($(BLD)/emacs.obj):
5546 ($(BLD)/fileio.obj):
5547 ($(BLD)/fns.obj):
5548 ($(BLD)/indent.obj):
5549 ($(BLD)/insdel.obj):
5550 ($(BLD)/intervals.obj):
5551 ($(BLD)/minibuf.obj):
5552 ($(BLD)/print.obj):
5553 ($(BLD)/scroll.obj):
5554 ($(BLD)/sysdep.obj):
5555 ($(BLD)/textprop.obj):
5556 ($(BLD)/widget.obj):
f3d3c491
AI
5557 ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
5558 ($(BLD)/term.obj): Add dependency on dispextern.h.
5559
52283633
SM
5560 * makefile.nt ($(BLD)\dispnew.obj):
5561 ($(BLD)\keyboard.obj):
5562 ($(BLD)\w32inevt.obj):
5563 ($(BLD)\w32bdf.obj):
5564 ($(BLD)\alloc.obj):
5565 ($(BLD)\buffer.obj):
5566 ($(BLD)\editfns.obj):
5567 ($(BLD)\emacs.obj):
5568 ($(BLD)\fileio.obj):
5569 ($(BLD)\fns.obj):
5570 ($(BLD)\indent.obj):
5571 ($(BLD)\insdel.obj):
5572 ($(BLD)\intervals.obj):
5573 ($(BLD)\minibuf.obj):
5574 ($(BLD)\print.obj):
5575 ($(BLD)\scroll.obj):
5576 ($(BLD)\sysdep.obj):
5577 ($(BLD)\textprop.obj):
5578 ($(BLD)\widget.obj):
f3d3c491
AI
5579 ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
5580 ($(BLD)\term.obj): Add dependency on dispextern.h
5581
18ad4821
EZ
55822000-10-21 Eli Zaretskii <eliz@is.elta.co.il>
5583
5584 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
5585 with an additional argument of Qt.
5586
de54681a
MB
55872000-10-21 Miles Bader <miles@gnu.org>
5588
5589 * window.c (pos_fully_visible_in_window_p): New function.
5590 (Fpos_visible_in_window_p): Add FULLY argument.
5591 Use pos_fully_visible_in_window_p.
5592 (window_scroll_pixel_based, window_scroll_line_based): Update
5593 calls to Fpos_visible_in_window_p.
5594 * lisp.h (Fpos_visible_in_window_p): Update prototype
5595
13c844fb
GM
55962000-10-20 Gerd Moellmann <gerd@gnu.org>
5597
5598 * alloc.c (toplevel): Conditionalize compilation of mem_*
5599 functions differently.
52283633 5600
d9506268
JR
56012000-10-20 Jason Rumney <jasonr@gnu.org>
5602
5603 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
5604 mem_init where it used to be. mem_z etc not defined otherwise.
5605
8094989b
GM
56062000-10-20 Gerd Moellmann <gerd@gnu.org>
5607
5608 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
5609 GC_MALLOC_CHECK.
5610 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
5611 structure definition and related variabled to the top of the file.
5612 Include this code when GC_MALLOC_CHECK is defined.
5613 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
5614 register/unregister allocated region.
5615 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
5616 which isn't allocated.
5617 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
5618 something which is already in use.
5619 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
5620 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
5621 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
5622 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
5623
5624 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
5625 _malloc_internal instead of malloc.
5626 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
5627 of free.
5628
ea456eb4
AI
56292000-10-20 Andrew Innes <andrewi@gnu.org>
5630
5631 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
5632 Windows.
5633 (my_strftime) <macro>: Don't use macro arg list when redefining as
5634 _strftime_copytm.
5635 (my_strftime) <function>: Supply 0 as ut argument.
5636
e64c3a75
JR
56372000-10-19 Jason Rumney <jasonr@altavista.net>
5638
5639 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
5640 including dispextern.h, as it stops faces from working.
5641
5642 * w32fns.c (Fx_create_frame): Don't bother calling
5643 face-set-after-frame-default since the caller does it for us
5644 anyway. Clean up calls to x_get_arg to be consistent with X.
5645
5646 * w32term.c (x_produce_glyphs): Handle
5647 unibyte_display_via_language_environment correctly.
5648 (w32_draw_box_rect): Fix the calculation of width and height.
5649
5650 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
5651 as it has stopped working.
5652 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
5653 menu-bar.
5654
17401c97
GM
56552000-10-19 Gerd Moellmann <gerd@gnu.org>
5656
5657 * eval.c (skip_debugger): Prevent a compiler warning.
5658 (Fcondition_case): Likewise.
5659 (Fbacktrace_frame): Use a null interactive spec.
5660
773272d8
KH
56612000-10-19 Kenichi Handa <handa@etl.go.jp>
5662
5663 * xterm.c (x_find_ccl_program): Check also fontp->full_name.
5664
a42943e9
GM
56652000-10-18 Gerd Moellmann <gerd@gnu.org>
5666
e50517d9
GM
5667 * strftime.c: Sync with glibc, file version 1.78.
5668 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
5669 should no longer be used according to ISO 8601.
5670
9035a35a
GM
5671 * keymap.c (access_keymap): If IDX has a meta prefix, and there's
5672 no map for meta_prefix_char, don't try to use it as a keymap.
5673 Instead, if T_OK is non-zero, look up a default binding, if any,
5674 otherwise, if T_OK is zero, return nil.
5675
a42943e9
GM
5676 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
5677 (x_to_xcolors, png_load): Use x_query_color.
5678
52283633
SM
5679 * xterm.c (x_color_cells, x_query_colors, x_query_color):
5680 New functions.
a42943e9
GM
5681 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
5682 which can be slow.
5683 (x_copy_color, x_alloc_lighter_color): Likewise.
5684
5685 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
5686 (x_query_color, x_query_colors): Add prototype.
5687
5688 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
5689 check_string_bytes only if not noninteractive, increase count to 50.
5690
00de2987
MB
56912000-10-18 Miles Bader <miles@lsi.nec.co.jp>
5692
5693 * insdel.c (adjust_markers_for_delete): Handle before-insertion
5694 markers correctly.
5695
54918e2b
GM
56962000-10-17 Gerd Moellmann <gerd@gnu.org>
5697
1f0b3fd2
GM
5698 * alloc.c (pure_bytes_used): Renamed from pureptr.
5699 (ALIGN): New macro.
5700 (pure_alloc): New function.
5701 (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
5702 Use it.
5703 (Fpurecopy): Use PURE_POINTER_P.
5704
68c5d1db
GM
5705 * xdisp.c (try_cursor_movement): Use cursor_row_p also when
5706 PT has moved backward.
52283633 5707
9a038881
GM
5708 * xdisp.c (cursor_row_p): Take continued lines into account.
5709
361b097f
GM
5710 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
5711 string's size_byte.
5712 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
5713 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
5714 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
5715 string allocated.
5716
54918e2b
GM
5717 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
5718 of selective display off while searching for the next line start.
5719
03ed0806
KH
57202000-10-17 Kenichi Handa <handa@etl.go.jp>
5721
5722 * Makefile.in (term.o): Depend on dispextern.h.
5723
7e05cdaf
SM
57242000-10-16 Stefan Monnier <monnier@cs.yale.edu>
5725
5726 * keymap.c (keymap_memberp): Ensure that nil is not a member.
5727
a6801fd1
GM
57282000-10-16 Gerd Moellmann <gerd@gnu.org>
5729
483de32b
GM
5730 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
5731 the iterator at the beginning, so that they can be set later on,
5732 for instance in reseat_at_next_visible_line_start, without being
5733 overwritten.
5734
a6801fd1
GM
5735 * xfns.c (pbm_format): Add :foreground and :background keywords.
5736 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
52283633 5737 (xbm_load): Recognize foreground and background color specifications.
a6801fd1 5738
dbf1fcc1
EZ
57392000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
5740
5741 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
5742
52283633 5743 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration.
dbf1fcc1
EZ
5744
5745 * msdos.c (IT_set_face): Compare highlighted face with the default
5746 face, and invert colors if these faces' colors are identical.
5747 (Fmsdos_remember_default_colors): Don't swap foreground and
5748 background colors in initial_colors[].
5749 (IT_set_frame_parameters): Don't swap frame's foreground and
5750 background pixels. If ALIST includes "(reverse . t)", swap
5751 foreground-color and background-color properties in frame's
5752 param_alist. If the original frame's param_alist doesn't specify
5753 the colors, store unspecified-fg and unspecified-bg, reversed if
5754 required.
5755
5756 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
5757 the colors are unspecified and reversed, reverse fore- and back-
5758 ground in the returned value.
5759 (Fframe_parameter): Ditto.
5760
b41fe2c3 57612000-10-16 Gerd Moellmann <gerd@gnu.org>
52283633 5762
3a6b59d9
GM
5763 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
5764 get_last_unchanged_at_beg_row.
5765 (find_first_unchanged_at_end_row): Renamed from
5766 get_first_unchanged_at_end_row.
5767 (find_first_unchanged_at_end_row): Convert assertions to
5768 unconditional tests which abort. When looking for a row in
5769 unchanged text, don't go further back than first_text_row.
5770
b41fe2c3
GM
5771 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
5772 Don't add in the last line's height when deciding if the new
5773 position is below the scroll margin.
9d1af64f 5774
b41fe2c3 57752000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
5776
5777 * editfns.c (Fconstrain_to_field): Check carefully for field
5778 boundaries if either OLD_POS or NEW_POS has a non-nil field
5779 property, even if they're the same.
5780
c412cb7b
KH
57812000-10-16 Kenichi Handa <handa@etl.go.jp>
5782
5783 * xterm.c (x_draw_box_rect): Fix the calculation of width and
5784 height for XFillRectangle.
5785
5586f3eb
SM
57862000-10-15 Stefan Monnier <monnier@cs.yale.edu>
5787
5788 * syntax.c (Fstring_to_syntax): New function extracted from
5789 Fmodify_syntax_entry.
5790 (Fmodify_syntax_entry): Use it and document the ! and | fences.
5791 (skip_chars, Fforward_comment): Remove unused variables.
5792 (syms_of_syntax): Add defsubr for string-to-syntax.
5793 (describe_syntax): Add code for comment and string fences.
5794
db785038
SM
57952000-10-14 Stefan Monnier <monnier@cs.yale.edu>
5796
5797 * keymap.c (access_keymap): Add AUTOLOAD parameter.
5798 Do the meta->esc mapping. Call get_keyelt before returning.
5799 Start scanning from the second element (the first is always `keymap')
5800 to make it easier to detect when we reach a parent map.
5801 Handle the case of inheriting from a symbol whose function is a map.
5802 (Fkeymap_parent): Also handle the `inherit from symbol' case.
5803 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
5804 (get_keyelt, Flookup_key): Update call to access_keymap.
5805 Remove the meta->esc mappings.
5806 (define_as_prefix): Delete old disabled code.
5807 (menu_item_p): New function.
5808 (where_is_internal_1): Skip over the few remaining menu items.
5809 * lisp.h (access_keymap): Update prototype.
5810 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
5811 Update call to access_keymap.
5812 (follow_key, read_key_sequence): Update calls to access_keymap.
5813 Remove the meta->esc mappings.
5814
cafafe0b
GM
58152000-10-13 Gerd Moellmann <gerd@gnu.org>
5816
a2e2a7f6
GM
5817 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
5818 with additional argument.
5819
cafafe0b
GM
5820 * xdisp.c (cursor_row_p): New function.
5821 (try_cursor_movement, display_line): Use it.
52283633 5822
cafafe0b
GM
5823 * xdisp.c (append_space): Also save/restore iterator's current
5824 character and its length.
5825
5826 * xdisp.c (init_from_display_pos): Add an assertion.
5827 (handle_stop): Don't set iterator's add_overlay_start.
5828 (handle_invisible_prop): Likewise.
5829 (load_overlay_strings): If text under an overlay is invisible,
5830 take both before- and after-strings into account when the iterator
5831 is positioned either at the start or at the end of the overlay.
5832 (forward_to_next_line_start): Rewritten.
5833 (reseat_at_next_visible_line_start): Rewritten.
5834 (set_iterator_to_next): Add parameter RESEAT_P.
5835
5836 * dispextern.h (struct it): Remove member add_overlay_start.
5837 (set_iterator_to_next): Change prototype.
5838
c744452b
KH
58392000-10-13 Kenichi Handa <handa@etl.go.jp>
5840
5841 * coding.c (code_convert_region): Be sure to initialize
5842 coding->category_idx.
e4a3f4e1
KH
5843 (decode_coding_string): Set coding->src_multibyte and
5844 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
5845 (encode_coding_string): Set coding->src_multibyte and
5846 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 5847
321fd26f
SM
58482000-10-12 Stefan Monnier <monnier@cs.yale.edu>
5849
5850 * xfns.c (Fx_create_frame): Don't bother calling
5851 face-set-after-frame-default since the caller does it for us anyway.
5852
76832439
EZ
58532000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
5854
5855 * window.c (coordinates_in_window): Fix detection of vertical line
5856 on character terminals.
5857
2483cf58
GM
58582000-10-12 Gerd Moellmann <gerd@gnu.org>
5859
5860 * editfns.c (save_excursion_save): Additionally record the
5861 selected window.
5862 (save_excursion_restore): If buffer was visible in a window, and a
5863 different window was selected, and the old selected window is
5864 still live, restore point in that window.
5865
eb991b25
KH
58662000-10-12 Kenichi Handa <handa@etl.go.jp>
5867
8a0eba09
KH
5868 * xterm.c (x_produce_glyphs): Handle
5869 unibyte_display_via_language_environment correctly.
5870
20401fcc
KH
5871 * regex.c (regex_compile): Change the way of handling a range from
5872 unibyte char to multibyte char.
5873
5874 * syntax.c (skip_chars): Change the way of handling a range from
5875 unibyte char to multibyte char.
5876
eb991b25
KH
5877 * process.c (read_process_output): Cancel previous change.
5878
365dd325
EZ
58792000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
5880
c1b096cb
EZ
5881 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
5882
365dd325
EZ
5883 * charset.c (Ffind_charset_string): Doc fix.
5884 (Ffind_charset_region): Doc fix.
5885
eb483c2b
KH
58862000-10-11 Kenichi Handa <handa@mule.m17n.org>
5887
5888 * process.c (read_process_output): Fix previous change. Adjust
5889 multibyteness of text to insert in a buffer by
52283633 5890 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte.
eb483c2b 5891
b40bfb99
AS
58922000-10-10 Andreas Schwab <schwab@suse.de>
5893
5894 * alloc.c (mark_object): Remove all workarounds installed on
5895 1993-08-08.
5896
caff31d4
KH
58972000-10-10 Kenichi Handa <handa@etl.go.jp>
5898
52283633 5899 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning.
caff31d4
KH
5900 (base64_encode_1): Make it work for a text of multibyte form.
5901 (Fbase64_decode_region): Allocate sufficient memory for multibyte
5902 case. Don't call str_to_multibyte because base64_decode_1
5903 produces correct multibyte form for eight-bit codes.
52283633 5904 (Fbase64_decode_string): Adjusted for the change of base64_decode_1.
caff31d4
KH
5905 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
5906 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
5907 codes.
5908
5909 * charset.h (CHAR_STRING): Optimized for single byte characters.
5910
cba026ef
AS
59112000-10-09 Andreas Schwab <schwab@suse.de>
5912
5913 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
5914 -1 after socket is closed, to fall through to error processing.
5915
1e21fe48
EZ
59162000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
5917
5918 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 5919 variables. If ALIST includes foreground-color or
1e21fe48
EZ
5920 background-color, change also the colors of the default face for
5921 this frame.
5922
a640322e
EZ
59232000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
5924
5925 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
5926 them extern (they are defined on xfaces.c).
5927 (syms_of_msdos): Don't intern and don't staticpro
5928 Qbackground_color and Qforeground_color.
5929
a115794c
EZ
59302000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
5931
5932 * frame.c (Fframe_parameter): For non-windowed frames, if
5933 f->param_alist says foreground or background color is unspecified,
5934 call tty_color_name to return the color name computed from the
5935 frame's current colors.
5936
f5533b63
DL
59372000-10-06 Dave Love <fx@gnu.org>
5938
5939 * terminfo.c (ospeed): Don't declare.
5940
5941 * sysdep.c: Don't include string.h.
5942 (h_errno): Declare conditional also on TRY_AGAIN.
5943
5944 * charset.c (Ffind_charset_string): Doc fix.
5945
52283633 5946 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
f5533b63
DL
5947 (Fbase64_decode_region, Fbase64_decode_string): More explicit
5948 error messages.
5949
2b06561a
DL
59502000-10-05 Dave Love <fx@gnu.org>
5951
5952 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
5953 position like menu-bar.
5954
ca839c85
GM
59552000-10-05 Gerd Moellmann <gerd@gnu.org>
5956
5957 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
5958
5959 * xdisp.c (handle_single_display_prop): Use safe_call1.
5960 (safe_call): Renamed from call_function.
5961 (safe_call1): New function.
5962 (handle_fontified_prop): Use safe_call1 instead of call1.
5963 (safe_eval): Renamed from eval_form.
5964 (safe_eval_handler): Renamed from eval_handler.
5965 (handle_single_display_prop, display_mode_element): Use safe_eval
5966 instead of eval_form.
5967
5968 * xfaces.c (merge_face_heights): Use safe_call instead of
5969 call_function.
5970
5971 * keyboard.c (show_help_echo): Use safe_call instead of
5972 call_function; use safe_eval instead of eval_form.
5973
5974 * lisp.h (safe_call): Renamed from call_function.
5975 (safe_eval): Renamed from eval_form.
5976 (safe_call1): Add prototype.
5977
a3489ece
MB
59782000-10-05 Miles Bader <miles@lsi.nec.co.jp>
5979
5980 * xfns.c (image_ascent): Rearrange ascent calculation for the
5981 has-a-font case.
5982
35810b6f
SM
59832000-10-04 Stefan Monnier <monnier@cs.yale.edu>
5984
5985 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
5986 (where_is_internal_1): Don't bother ignoring menu-items any more.
5987
3dc78168
GM
59882000-10-04 Gerd Moellmann <gerd@gnu.org>
5989
5990 * keyboard.c (update_menu_bindings): New variable.
5991 (parse_menu_item): Use AREF. If update_menu_bindings
5992 is 0, don't update menu bindings.
5993 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
5994
1efc2bb9
EZ
59952000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
5996
5997 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
5998 to `mark_object'.
5999
3f679f55
SM
60002000-10-02 Stefan Monnier <monnier@cs.yale.edu>
6001
6002 * syntax.c (forw_comment): Match nestedness of ender/starter.
6003 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
6004 (prev_char_comstart_first): Remove.
6005 (back_comment): Check two-char comment markers more carefully
6006 to better handle overlapping cases like *//* or /* */* */ ...
6007 Match nestedness of ender/starter.
6008
2021ab61
DL
60092000-10-02 Dave Love <fx@gnu.org>
6010
6011 * config.in (HAVE_GAI_STRERROR): Add undef.
6012
6013 * process.c (Fopen_network_stream): Use it.
6014
6015 * m/alpha.h (NO_REMAP): Don't define.
6016
64e6cc18
GM
60172000-10-02 Gerd Moellmann <gerd@gnu.org>
6018
6019 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
6020 return with a string converted to an integer or vice versa when
6021 Vmocklisp_arguments is t.
6022 (Fsignal): Likewise. The function can return for `quit'.
6023 (struct gcpro): Declare member `var' to point to a volatile
6024 Lisp_Object.
6025
6026 * eval.c (error): Prevent compiler warning.
6027
b1904cd9
SM
60282000-09-30 Stefan Monnier <monnier@cs.yale.edu>
6029
6030 * keymap.c (keymap_memberp): New function.
6031 (Fset_keymap_parent): Use it.
6032 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
6033 Use keymap_memberp to avoid creating cycles.
6034 (access_keymap): Use KEYMAPP.
6035
71c9ec51
GM
60362000-09-30 Gerd Moellmann <gerd@gnu.org>
6037
6038 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
6039 gai_strerror. Make sure xerrno is set if connect fails. Improve
6040 error recovery.
71c9ec51 6041
c70c6b58
JR
60422000-09-29 Jason Rumney <jasonr@gnu.org>
6043
6044 * w32term.c (w32_char_font_type, w32_encode_char)
6045 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
6046 (w32_bdf_per_char_metric): New function.
6047 (w32_per_char_metric): Use it.
6048 (x_draw_glyph_string_background): Always draw background for BDF
6049 glyphs.
6050
6051 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
6052 GDI object which is a scarce resource.
6053
6054 * w32bdf.c (search_file_line): Fix skipping of whitespace.
6055 (get_quoted_string): Fix limit on memchr search.
6056 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
6057 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
6058 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
6059 (get_cached_font_char, cache_char_offset): Use macro
6060 BDF_CODEPOINT_RANGE_COVER_P.
6061 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
6062 (clear_cached_bitmap_slots): New function.
6063 (GET_HEX_VALUE): G-Z, g-z are not hex.
6064 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
6065 (get_bitmap_with_cache): Use new cache implementation.
6066 (create_offscreen_bitmap): New function.
6067 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
6068
6069 * w32term.c (x_produce_glyphs): If the distance from the current
6070 position to the next tab stop is less than a canonical character
6071 width, use the tab stop after that.
6072 (x_draw_glyphs): Handle case START and END are out of bounds more
6073 carefully.
6074 (x_clear_mouse_face): Block/unblock input.
6075 (x_display_and_set_cursor): Don't show a hollow box cursor for
6076 buffers whose cursor_type is nil.
6077
fe01239f
GM
60782000-09-29 Gerd Moellmann <gerd@gnu.org>
6079
52283633 6080 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears.
fe01239f
GM
6081
6082 * dispextern.h (updating_frame): Declare extern.
6083
e7c52f1f
AS
60842000-09-29 Andreas Schwab <schwab@suse.de>
6085
6086 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
6087
de6e1f7c
GM
60882000-09-29 Gerd Moellmann <gerd@gnu.org>
6089
25126faa
GM
6090 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
6091 use its function definition.
6092 (tool_bar_items): Likewise.
6093
de6e1f7c 6094 * lisp.h (fatal): Declare NO_RETURN.
52283633 6095
454ee39b
KH
60962000-09-29 Kenichi Handa <handa@etl.go.jp>
6097
6098 * keymap.c: Remove the line "#undef NULL".
6099
96301c5f
GM
61002000-09-28 Gerd Moellmann <gerd@gnu.org>
6101
52283633 6102 * xterm.c (x_make_frame_visible): Try harder to make the frame visible.
96301c5f 6103
efffeeb4
DL
61042000-09-28 Dave Love <fx@gnu.org>
6105
ecb8b666
DL
6106 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
6107
dc3cd20f
DL
6108 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
6109
6110 * .gdbinit (xreload): Note its need on GNU/Linux.
6111
efffeeb4
DL
6112 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
6113 r_alloc, r_alloc_free.
6114
8610d903
KH
61152000-09-28 Kenichi Handa <handa@etl.go.jp>
6116
6117 * syntax.c (skip_chars): Handle negation correctly.
6118
8901d1ac
GM
61192000-09-27 Gerd Moellmann <gerd@gnu.org>
6120
6f22f1ad
GM
6121 * xfaces.c (realize_default_face): Call set_lface_from_font_name
6122 with non-zero FORCE_P argument.
6123
52283633 6124 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
8901d1ac
GM
6125 Add assertions.
6126
6127 * xdisp.c (window_box_height): Add an assertion.
6128
6129 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
6130 tool-bar than is available.
6131 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
6132
36f1966f
DL
61332000-09-27 Dave Love <fx@gnu.org>
6134
efffeeb4 6135 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 6136
31d929e5
GM
61372000-09-26 Gerd Moellmann <gerd@gnu.org>
6138
c98863bf
GM
6139 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
6140 instead of BITS_PER_INT.
6141 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
6142 EMACS_UINT, respectively.
6143 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
6144
6145 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
6146
6147 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
6148
77072ab1
GM
6149 * window.c (freeze_window_starts): Construct last argument for
6150 foreach_window differently.
6151
6152 * xfns.c (x_decode_color): Don't return a Lisp_Object.
6153
6154 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
6155 EMACS_UINT instead of `int' and `unsigned int'.
6156 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
6157
6158 * frame.h (struct frame): Make the `nothing' member of union
6159 output_data an EMACS_INT.
6160
52283633 6161 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting.
31d929e5
GM
6162 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
6163 size in the sdata structure.
6164 (SDATA_NBYTES, SDATA_DATA): New macros.
6165 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
6166 differently for the different layout of the sdata structure.
6167 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
6168 in sdata.
6169 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
6170 Check that size recorded in the string size and size recorded in
6171 the sdata structure agree.
6172
3e60b029
DL
61732000-09-25 Dave Love <fx@gnu.org>
6174
6175 * buffer.c: Include stdio.h.
6176
6177 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
52283633 6178
3e60b029
DL
6179 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
6180
6181 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
52283633 6182 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t.
3e60b029
DL
6183 (__malloc_extra_blocks): Declare as __malloc_size_t.
6184
8ff16b4e
GM
61852000-09-25 Gerd Moellmann <gerd@gnu.org>
6186
755a2ccd
GM
6187 * alloc.c (mark_image): Use GC_NILP instead of NILP.
6188
d8b4516f
GM
6189 * keyboard.c (show_help_echo): Set help_echo_showing_p.
6190 (read_char): If help-echo is showing, preserve the echo area
6191 when redisplaying.
6192
6193 * xdisp.c (help_echo_showing_p): New variable.
6194 (set_message): Reset it to 0.
6195 (init_xdisp): Initialize help_echo_showing_p.
6196
6197 * dispextern.h (help_echo_showing_p): Declare extern.
6198
6199 * config.in: Fix typo in __GNUC_MINOR__.
6200
6201 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
6202
b11af2dd
GM
6203 * s/freebsd.h (POSIX_SIGNALS): Define.
6204
8ff16b4e
GM
6205 * xterm.c (x_clear_mouse_face): Block/unblock input.
6206
844eb643
DL
62072000-09-24 Dave Love <fx@gnu.org>
6208
6209 * fns.c (base64_encode_1): Fix last change.
6210
b30ab1b3
GM
62112000-09-22 Gerd Moellmann <gerd@gnu.org>
6212
6213 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
6214
6215 * xdisp.c (try_window_reusing_current_matrix): More fixes
6216 for the case window has a header-line.
6217
c6cbe5f0
DL
62182000-09-22 Dave Love <fx@gnu.org>
6219
4c7c1f3f
DL
6220 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
6221 a doc string.
6222
6223 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
6224
c6cbe5f0
DL
6225 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
6226
550a625e
GM
62272000-09-21 Gerd Moellmann <gerd@gnu.org>
6228
4c7c1f3f 6229 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
6230 for GCC >= 2.5.
6231
52283633
SM
6232 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error):
6233 Declare NO_RETURN.
fca99116 6234
80d26f99
GM
6235 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
6236 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
6237 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
6238 warnings.
52283633 6239
80d26f99
GM
6240 * marker.c (byte_char_debug_check): Return void.
6241
623a0aae
GM
6242 * xfns.c (Fx_create_frame): Set default frame parameter value
6243 for tool-bar-lines to 1.
6244
6245 * dispnew.c (scrolling_window): Compare y-positions of rows
6246 equal at the start. Some simplification.
6247
6248 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
6249 reused rows' y-position in the case window has a header-line, and
6250 new window start is greater than old window start.
6251
42ac0ae5
GM
6252 * process.c (process_sent_to): New variable.
6253 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
6254 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
6255 Declare more parameters volatile.
6256
550a625e
GM
6257 * lread.c (Vrecursive_load_depth_limit): New variable.
6258 (Fload): Check recursive loads whose recursion depth exceeds
6259 Vrecursive_load_depth_limit.
6260 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
6261
8320414c
GM
62622000-09-20 Gerd Moellmann <gerd@gnu.org>
6263
f46c275e
GM
6264 * fileio.c (Fread_file_name): Doc fix.
6265
6266 * editfns.c (Fmessage_or_box): Doc fix.
6267
6268 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
6269
b7e11c5b 6270 * xfns.c (xbm_scan): Allow C-style comments.
52283633 6271
8320414c
GM
6272 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
6273 symbols are specified, add color translations to the cache.
52283633 6274 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions.
8320414c
GM
6275 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
6276 xpm_cache_color.
6277 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
6278 structures to xpm_init_color_cache.
6279
da1608d9
GM
62802000-09-19 Gerd Moellmann <gerd@gnu.org>
6281
52283633 6282 * dispnew.c (update_window_line): Make sure to always draw mode-lines.
da1608d9 6283
6badfa25
AI
62842000-09-19 Andrew Innes <andrewi@gnu.org>
6285
6286 * makefile.nt (bootstrap-emacs): Don't change directory.
6287
3a5f42bb
KH
62882000-09-19 Kenichi Handa <handa@etl.go.jp>
6289
1b7649bd
KH
6290 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
6291
3a5f42bb
KH
6292 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
6293 If output buffer is too small, signal an appropriated error.
6294
9f83cf0b
DL
62952000-09-18 Dave Love <fx@gnu.org>
6296
52283633 6297 * keyboard.c (menu_bar_items, tool_bar_items)
9f83cf0b
DL
6298 (current_active_maps): Remove redundant get_local_map call.
6299
28c7826c
GM
63002000-09-18 Gerd Moellmann <gerd@gnu.org>
6301
5cefa566
GM
6302 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
6303 cursor for buffers whose cursor_type is nil.
52283633 6304
6fed3546
GM
6305 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
6306 a feature to implement that is already implemented.
6307 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
6308 warnings.
6309
6310 * xfns.c (x_clear_image_1): New function.
6311 (x_clear_image): Use it.
52283633 6312 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask.
6fed3546 6313
05b1f851
GM
6314 * dispnew.c (update_window): Move test for invisible lines
6315 at the top to update_window_line.
6316 (update_window_line): Handle invisible lines here.
6317
f4779de9
GM
6318 * xfns.c (clear_image_cache): Clear current matrices of all
6319 frames sharing an image cache. Block input while freeing
6320 images. Fix timestamp comparison.
6321 (x_clear_image): Also free the mask.
6322
28c7826c
GM
6323 * xfns.c (lookup_image): Block input while loading the image so
6324 that we won't get interrupted in a state where the image isn't yet
6325 set up completely.
6326 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
6327 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
6328 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
52283633 6329 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input.
28c7826c 6330
b7412313
GM
63312000-09-16 Gerd Moellmann <gerd@gnu.org>
6332
6333 * dispnew.c (update_window): Make sure to make desired rows
6334 current even if they are completely invisible at the top
6335 of a window.
6336
47e351a3
GM
63372000-09-15 Gerd Moellmann <gerd@gnu.org>
6338
7f8f1edc
GM
6339 * xfns.c (lookup_image): Build mask before applying an algorithm.
6340 Recognize algorithm `disabled'.
6341 (cross_disabled_images): New variable.
6342 (COLOR_INTENSITY): New macro.
6343 (x_detect_edges): Use COLOR_INTENSITY.
6344 (x_disable_image): New function.
6345 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
6346
6347 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
6348 disabled state, don't apply an image transformation algorithm if
6349 the user specified an image for the disabled state. Use
28c7826c 6350 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
6351 user hasn't specified an image.
6352
ebb8f116
GM
6353 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
6354 allocation functions with the XPM lib.
6355 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
6356 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
6357 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
6358 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
52283633 6359 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions.
ebb8f116
GM
6360 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
6361 functions, if possible, because these handle color allocation
6362 failure more gracefully.
6363 (Fimage_mask_p): New function.
6364
47e351a3
GM
6365 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
6366 (Qedge_detection, Qheuristic): New symbols.
6367 (syms_of_xfns): Initialize new symbols.
6368 (lookup_image): Handle `:mask X', `:algorithm emboss', and
6369 `algorithm (edge-detection ...)'.
6370 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
6371 (tiff_format, gif_format, gs_format): Add `:mask'.
6372 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
6373 (GIF_MASK, GS_MASK): New enumerators.
6374 (x_laplace_read_row, x_laplace_write_row): Functions removed.
6375 (emboss_matrix, laplace_matrix): New variables.
6376 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
6377 (x_edge_detection): New functions.
6378 (x_laplace): Rewritten in terms of x_detect_edges.
6379 (x_build_heuristic_mask): If image has a mask, free it.
6380
fe83b953
AI
63812000-09-14 Andrew Innes <andrewi@gnu.org>
6382
6383 * makefile.w32-in: Revert to Unix line endings.
6384
3021e816
AI
63852000-09-14 Andrew Innes <andrewi@gnu.org>
6386
6387 * makefile.w32-in: Standardize indentation somewhat.
6388 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
6389 cater for differences between shells.
6390
6391 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
6392
2a32b5ea
GM
63932000-09-14 Gerd Moellmann <gerd@gnu.org>
6394
6395 * xterm.c (x_produce_glyphs): If the distance from the current
6396 position to the next tab stop is less than a canonical character
6397 width, use the tab stop after that.
6398
b4331e96
DL
63992000-09-14 Dave Love <fx@gnu.org>
6400
6401 * buffer.c (alloc_buffer_text): Fix xmalloc call.
6402
ef9e4345
GM
64032000-09-14 Gerd Moellmann <gerd@gnu.org>
6404
085536c2
GM
6405 * xdisp.c (handle_fontified_prop): While running fontification
6406 functions, bind `fontification-functions' and
6407 `after-change-functions' to nil.
6408
ef9e4345
GM
6409 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
6410 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
6411
6412 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
6413
6414 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
6415 USE_MMAP_FOR_BUFFERS.
6416
6417 * insdel.c (make_gap): Use enlarge_buffer_text.
6418
6419 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
6420 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
6421 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
6422 from former r_alloc_* functions in ralloc.c.
52283633 6423 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables.
ef9e4345
GM
6424 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
6425 (mmap_init) [REL_ALLOC_MMAP]: New function.
6426 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
6427 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
6428 BUFFER_FREE.
6429
6430 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
6431 (enlarge_buffer_text): Add prototype.
6432
6433 * ralloc.c: Remove everything having to do with the use of mmap.
6434
f8608968
GM
64352000-09-13 Gerd Moellmann <gerd@gnu.org>
6436
2a494b2d
GM
6437 * sound.c (Fplay_sound): Doc fix.
6438
8c907a56
GM
6439 * keyboard.c: Avoid some more compiler warnings.
6440 (parse_tool_bar_item): Ignore cached key bindings.
6441
f8608968
GM
6442 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
6443 and allocation of Lisp data.
6444
6ab70e9a
GM
64452000-09-12 Gerd Moellmann <gerd@gnu.org>
6446
d12d0a9b
GM
6447 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
6448 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
6449 defaults first.
6450
6ab70e9a
GM
6451 * lread.c (Fload): Put code checking for recursive loads in #if 0.
6452
63c36c3c
KH
64532000-09-12 Miyashita Hisashi <himi@meadowy.org>
6454
6455 * ccl.c: Comment fixed.
6456 (MAX_MAP_SET_LEVEL): Increased to 30.
6457 (PUSH_MAPPING_STACK): Enclose with do-while block.
6458 (POP_MAPPING_STACK): Likewise.
6459 (stack_idx_of_map_multiple): New variable.
6460 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
6461 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
52283633 6462 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION.
63c36c3c
KH
6463 (ccl_driver) <CCL_MapSingle>: Likewise.
6464 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
6465 with the case where looking up process reaches to the end of
6466 map-set, and call CCL programs as the above change.
6467
7ee3bd7b
GM
64682000-09-11 Gerd Moellmann <gerd@gnu.org>
6469
8ec8a5ec
GM
6470 * xfns.c (png_load, jpeg_load): Declare some variables volatile
6471 that might be clobbered by longjmp.
6472 (check_x_display_info, x_decode_color, create_frame_xic)
6473 (Fx_display_backing_store, Fx_display_visual_class)
52283633 6474 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings.
8ec8a5ec 6475
f74b0705
GM
6476 * lread.c (init_lread): Set Vloads_in_progress to nil.
6477 (Fload): Show list of recursively loaded files, when signaling an
6478 error.
6479
7ee3bd7b
GM
6480 * lread.c (Vloads_in_progress): New variable.
6481 (record_load_unwind): New function.
6482 (Fload): Check for recursive loads.
6483 (syms_of_lread): Initialize Vloads_in_progress.
6484 (read_integer, read1): Avoid some compiler warnings.
6485
6486 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
6487 compiler warnings.
6488
974e1e5b
MB
64892000-09-11 Miles Bader <miles@gnu.org>
6490
6491 * editfns.c (Fbuffer_string): Doc fix.
6492
9824c4e3
GM
64932000-09-10 Gerd Moellmann <gerd@gnu.org>
6494
6495 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
6496
6a72fdd1
KR
64972000-09-09 Ken Raeburn <raeburn@gnu.org>
6498
6499 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
6500 whether to include other header files.
6501
28e6fb66
GM
65022000-09-09 Gerd Moellmann <gerd@gnu.org>
6503
52283633 6504 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 6505 by Fmemq as a boolean.
28e6fb66 6506
7f8b6551
SM
65072000-09-08 Stefan Monnier <monnier@cs.yale.edu>
6508
6509 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
6510
a8710abf
GM
65112000-09-08 Gerd Moellmann <gerd@gnu.org>
6512
d1a02881
GM
6513 * ralloc.c (mmap_fd): Remove initializer which can make it
6514 read-only in a dumped Emacs.
6515 (mmap_fd_1): New variable.
6516 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
6517 restore it from there.
6518 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
6519 unconditionally so that mmap_fd can be initialized there.
6520 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
6521 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
6522 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
6523
c454aac1
GM
6524 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
6525
6526 * xdisp.c (dump_glyph_row): Fix printf format string.
52283633 6527 (display_line, move_it_in_display_line_to): Avoid compiler warnings.
c454aac1 6528
fc653ef2
GM
6529 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
6530
3015eec0
GM
6531 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
6532 inheritance.
6533
bfe0ee88
GM
6534 * xdisp.c (try_window_id): When trying to locate cursor in
6535 unchanged rows at the top, handle the case that we can't find it.
6536
a8710abf
GM
6537 * xterm.c (x_draw_glyphs): Handle case START and END are out
6538 of bounds more carefully.
6539
6b7d4ae4
DL
65402000-09-08 Dave Love <fx@gnu.org>
6541
423193c5
DL
6542 * s/sol2.h (REL_ALLOC_MMAP): Define.
6543 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
6544
6545 * ralloc.c: Don't include string.h (redundant).
6546 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
6547 [!MAP_ANON]: Include fcntl.h.
6548 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
6549 (r_alloc, r_re_alloc, r_alloc_free)
6550 (mmap_enlarge, mmap_set_vars): Use it.
6551 (r_alloc_init_fd): New function.
6552 (__morecore) [SYSTEM_MALLOC]: Don't declare.
6553 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
6554 malloc type.
6555
6556 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
6557 Remove vm-limit.o.
6558
6b7d4ae4
DL
6559 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
6560 change to __NetBSD__.
6561
44d31981
KH
65622000-09-08 Kenichi Handa <handa@etl.go.jp>
6563
6564 * search.c (compile_pattern): Check the multibyteness of cached
6565 string and PATTERN.
6566
aad40737
MB
65672000-09-08 Miles Bader <miles@gnu.org>
6568
6569 * xfaces.c (default_face_vector): Function removed.
6570 (Finternal_merge_in_global_face): Restore old global/local
6571 attribute override order. Use inline loop instead of calling
6572 default_face_vector.
6573
91a211b5
GM
65742000-09-07 Gerd Moellmann <gerd@gnu.org>
6575
6576 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
6577 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
6578 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
6579 where necessary, in case POINTER_TYPE is `void'.
6580
03419440
EZ
65812000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
6582
6583 * frame.c (make_terminal_frame): Initialize frame foreground and
6584 background colors to unspecified, for the initial instance of an
6585 MSDOS frame.
6586
f46f845b
GM
65872000-09-07 Gerd Moellmann <gerd@gnu.org>
6588
24f76fbf
GM
6589 * ralloc.c (mmap_find): Fix overlap computation.
6590 (mmap_enlarge): Compute nbytes before trying to find an
6591 overlapping region.
6592
f46f845b
GM
6593 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
6594 instead of `!='.
6595
6596 * lread.c (syms_of_lread): Change value of regexp
6597 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
6598
6599 * xmenu.c (xdialog_show): When looking up the selection in
6600 menu_items, take `quote' boundaries into account; this corresponds
6601 to a nil ITEM in x-popup-dialog.
6602
3c014385
KH
66032000-09-07 Kenichi Handa <handa@etl.go.jp>
6604
fd6f711b
KH
6605 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
6606 not 0x81.
6607 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
6608
3c014385 6609 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
6610 encoding, not decoding. Fix the handling of latin-jisx0201.
6611 Check for the charset katakana-jisx0201 too.
3c014385 6612 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 6613 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 6614
0da3ecef
GM
66152000-09-07 Gerd Moellmann <gerd@gnu.org>
6616
ab0ee409
GM
6617 * xfaces.c (Vparam_value_alist): New variable.
6618 (syms_of_xfaces): Initialize it.
6619 (Finternal_set_lisp_face_attribute): Avoid more consing.
6620
6621 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
6622 specially.
6623 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
6624 (Qbackground_mode): New variable.
6625 (syms_of_frame_1): Initialize Qbackground_mode.
6626
6627 * lisp.h (Qdisplay): Declare extern.
1091dd67 6628
0da3ecef
GM
6629 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
6630 change face on all frames, and change the default for new frames.
6631
b14654b9
DL
66322000-09-07 Dave Love <fx@gnu.org>
6633
6634 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
6635
d24fd56f
KH
66362000-09-07 Kenichi Handa <handa@etl.go.jp>
6637
794f3670
KH
6638 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
6639
0fddd0dc
KH
6640 * charset.c: Include composite.h
6641 (lisp_string_width): New function.
6642 (Fstring_width): Call lisp_string_width instead of strwidth.
6643
6644 * Makefile.in (charset.o): Depends on composite.h.
6645
d24fd56f
KH
6646 * process.c (read_process_output): Before inserting the decoded
6647 text in the buffer, adjust the multibyteness.
6648
fa0b693c
GM
66492000-09-06 Gerd Moellmann <gerd@gnu.org>
6650
52283633 6651 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
73b77ee5
GM
6652 buffer's text buffer is null, map new memory.
6653
0a58f946
GM
6654 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
6655 POINTER_TYPE and size_t.
6656 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
6657 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
6658 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
6659 [REL_ALLOC_MMAP]: New macros.
6660 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
6661 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
6662 [REL_ALLOC_MMAP]: New functions.
6663
6664 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
6665 before and after unexec.
6666
6667 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
6668 text buffers if necessary.
6669
6670 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
6671 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
6672 in prototypes.
6673
fa0b693c
GM
6674 * config.in (HAVE_MMAP): Add #undef.
6675
877055f6
GM
66762000-09-05 Gerd Moellmann <gerd@gnu.org>
6677
08ba3862
GM
6678 * frame.c (Qdisplay_type): New variable.
6679 (syms_of_frame_1): Initialize it.
6680 (Fframe_parameter): New function that avoids consing.
6681 (syms_of_frame): Defsubr it.
6682
66ffe51c
GM
6683 * buffer.c (Fother_buffer): Consider buffers as invisible when
6684 they are displayed in a window on an invisible frame.
6685
877055f6
GM
6686 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
6687 get-largest-window always return nil.
6688
bb970e67
GM
66892000-09-04 Gerd Moellmann <gerd@gnu.org>
6690
6691 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
6692 variable; recognize Emacs 19 elc files.
6693
7a3d0e0e
MB
66942000-09-04 Miles Bader <miles@gnu.org>
6695
6696 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
6697 before initially popping up the menu, so the menu doesn't flash
52283633 6698 when the face settings are significantly different from the defaults.
7a3d0e0e 6699
14473664
SM
67002000-09-04 Stefan Monnier <monnier@cs.yale.edu>
6701
6702 * regex.c (WIDE_CHAR_SUPPORT): New macro.
6703 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
6704 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
6705 (BIT_UNIBYTE): Remove.
6706 (re_match_2_internal): Delete corresponding code and streamline the
6707 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
6708 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
6709 (re_wctype_t): New type.
6710 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
6711 (regex_compile): Use them and fix handling of overly long char classes.
6712
c1174479
AI
67132000-09-03 Andrew Innes <andrewi@gnu.org>
6714
f8803e97
AI
6715 * makefile.w32-in: Change to DOS line endings.
6716
c1174479
AI
6717 * s/ms-w32.h (ORDINARY_LINK): New define.
6718
6719 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
6720 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
6721
6722 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
6723 (distclean): Delete them here instead.
6724
44ef7cf6
AI
6725 * w32proc.c (compare_env): Convert to uppercase for comparison,
6726 not lowercase, to match how the native Windows shell works.
6727
49b3bd82
JR
67282000-09-03 Jason Rumney <jasonr@gnu.org>
6729
6730 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
6731 CVS changes the line-ends when checking in/out on DOS/Windows.
6732
6733 * makefile.nt (emacs): Do not change directory to run temacs, as
6734 the load-path is set relative to current directory.
6735
a3d35a39
MB
67362000-09-03 Miles Bader <miles@gnu.org>
6737
6738 * xterm.c (x_alloc_lighter_color_for_widget): New function.
6739
d276b0cf
GM
67402000-09-02 Gerd Moellmann <gerd@gnu.org>
6741
715e84c9
GM
6742 * xdisp.c (redisplay_mode_lines): New function.
6743 (display_mode_lines): Return number of mode lines displayed.
6744 (echo_area_display): Use redisplay_mode_lines to draw garbaged
6745 mode lines. Don't temporarily bind redisplay-dont-pause to t.
6746
8892f40b
GM
6747 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
6748 string.h and strings.h.
6749 (index) [HAVE_INDEX]: Add prototype.
6750
d276b0cf
GM
6751 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
6752 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
6753
6754 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
6755 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
6756
38404229
GM
67572000-09-01 Gerd Moellmann <gerd@gnu.org>
6758
6759 * lread.c (read1): Accept `?' as symbol constituent, for
6760 compatiblity with XEmacs.
6761
c0f9ea08
SM
67622000-08-31 Stefan Monnier <monnier@cs.yale.edu>
6763
6764 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
6765 (struct re_pattern_buffer): Remove newline_anchor.
6766 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
6767 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
6768 (re_max_failures, fail_stack): Use size_t rather than unsigned.
6769 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
6770 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
6771 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
6772 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
6773 Get rid of references to newline_anchor.
6774 (regcomp): Allocate and precompute a fastmap.
6775
8c0f83fe
GM
67762000-08-31 Gerd Moellmann <gerd@gnu.org>
6777
6778 * lread.c (openp): GCPRO local variable `filename'.
6779
4bb91c68
SM
67802000-08-30 Stefan Monnier <monnier@cs.yale.edu>
6781
6782 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
6783
6784 * regex.c: Merge some changes from GNU libc. Add prototypes.
6785 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
6786 Use memcmp and memcpy instead of bcopy and bcmp.
6787 (init_syntax_once): Use ISALNUM.
6788 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
6789 (REG_UNSET_VALUE): Remove. Use NULL instead.
6790 (REG_UNSET, re_match_2_internal): Use NULL.
6791 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
6792 New macros.
6793 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
6794 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
6795 (regex_compile): In handle_interval, return an error rather than try to
6796 unfetch the interval if we can't find the closing brace.
6797 Obey the RE_NO_GNU_OPS syntax bit.
6798 (TOLOWER): New macro.
6799 (regcomp): Use it.
6800 (regexec): Allocate regs.start and regs.end as one block.
6801
5226a931
GM
68022000-08-30 Gerd Moellmann <gerd@gnu.org>
6803
868dd24b
GM
6804 * xdisp.c (echo_area_display): Check display_completed instead
6805 of calling detect_input_pending.
6806
6807 * dispnew.c (update_frame): Only set display_completed here; move
6808 the update_begin and update_end calls here from update_frame_1.
6809 (update_frame_1): Don't set display_completed here, don't call
6810 update_begin/update_end.
6811
5226a931
GM
6812 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
6813 instead of store_frame_param.
6814
2a8bd25f
GM
68152000-08-29 Gerd Moellmann <gerd@gnu.org>
6816
6817 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
6818 desired window matrix hasn't been displayed, use the current row
6819 instead. Make sure that only those frame rows are updated for
6820 which there exists a corresponding enabled desired row.
52283633 6821
ba3478d9
MB
68222000-08-29 Miles Bader <miles@gnu.org>
6823
6824 * xfaces.c (default_face_vector): New function.
6825 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
6826
87d0f685
GM
68272000-08-29 Gerd Moellmann <gerd@gnu.org>
6828
6829 * lread.c (openp): Prevent temporary string passed to
6830 Ffile_readable_p from being garbage collected.
6831
6fa86045
DL
68322000-08-28 Dave Love <fx@gnu.org>
6833
6834 * keymap.c (store_in_keymap): Add `static' to declaration.
6835
bb17930d
GM
68362000-08-28 Gerd Moellmann <gerd@gnu.org>
6837
6838 * emacs.c, callint.c, doc.c, editfns.c
6839 (toplevel) [HAVE_STRING_H]: Include string.h.
6840 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
6841 (index): Remove prototypes which might conflict with non-standard
6842 definitions of index/strchr.
6843
6844 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
6845 (rindex): Define only if !HAVE_RINDEX.
6846
6847 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
6848
6849 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
6850
87188200
MB
68512000-08-28 Miles Bader <miles@gnu.org>
6852
6853 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
6854 made inconsistent by a font-related attribute in FROM.
6855 (merge_face_inheritance): Add function comment.
6856
41a68aef
KH
68572000-08-28 Kenichi Handa <handa@etl.go.jp>
6858
6859 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
6860 the 4th arg (PREV_EVENT) Qt to suppress input method.
6861
f7c436c1
SM
68622000-08-27 Stefan Monnier <monnier@cs.yale.edu>
6863
0b32bf0e
SM
6864 * regex.c: Indent cpp directives and remove parens after `defined'.
6865 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
6866 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
6867 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
6868 (re_compile_pattern): Use size_t for length.
6869 (init_syntax_once): Move to a better place.
6870 * regex.h: Merge changes from GNU libc. Indent cpp directives.
6871 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
6872
f7c436c1
SM
6873 * syntax.c (back_comment): Detect cases where a comment-starter is
6874 actually inside another comment as in: /* a // b */ c // d \n.
6875 Make it clear that `comstart_pos' is unused for nested comments.
6876
6877 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
6878 (KEYMAPP): New macro.
6879 (Fkeymap_parent, Fset_keymap_parent): Use it.
6880 (fix_submap_inheritance): Mark it static.
6881 (define_as_prefix, describe_buffer_bindings, describe_command)
6882 (describe_translation, describe_map): Complete prototypes.
6883
6884 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
6885
6886 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
6887 to better match the key-lookup behavior.
6888
6288c62f
GM
68892000-08-27 Gerd Moellmann <gerd@gnu.org>
6890
6891 * xfaces.c (lface_fully_specified_p): Handle :inherit.
6892 (Finternal_set_lisp_face_attribute): Fix typo in error message.
6893
e931344e
EZ
68942000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
6895
6896 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
6897 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
6898 (xterm.o): Depend on coding.h
6899
d10dfeef
KH
69002000-08-26 Kenichi Handa <handa@etl.go.jp>
6901
6902 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
6903 the corresponding '#endif'.
6904
2d73e8d3
MB
69052000-08-26 Miles Bader <miles@gnu.org>
6906
6907 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
6908 * xfaces.c (QCinherit): New variable.
6909 (syms_of_xfaces): Initialize it.
6910 (LFACE_INHERIT): New macro.
6911 (Finternal_get_lisp_face_attribute)
52283633 6912 (merge_face_vector_with_property)
2d73e8d3
MB
6913 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
6914 (check_lface_attrs): Allow new types of face height. Check
6915 inherit attribute.
6916 (CYCLE_CHECK): New macro.
6917 (merge_face_inheritance): New function.
6918 (merge_face_vectors): Merge inherited faces too. Add F and
6919 CYCLE_CHECK arguments.
6920 (merge_face_vector_with_property, Finternal_merge_in_global_face)
6921 (lookup_named_face, lookup_derived_face, realize_named_face)
6922 (face_at_string_position, face_at_buffer_position): Supply
6923 new F and CYCLE_CHECK arguments to merge_face_vectors.
6924 (merge_face_heights): New function.
52283633 6925 (merge_face_vectors, merge_face_vector_with_property)
2d73e8d3
MB
6926 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
6927 handle relative face heights.
6928 (lface_same_font_attributes_p): Compare heights using EQ.
6929
6ce974d4
KH
69302000-08-26 Kenichi Handa <handa@etl.go.jp>
6931
6932 * charset.c (char_to_string): Check the character validity.
52283633 6933 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0.
6ce974d4 6934
dc1e502d
SM
69352000-08-25 Stefan Monnier <monnier@cs.yale.edu>
6936
6937 * regex.c (PUSH_FAILURE_COUNT): New macro.
6938 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
6939 Handle popping of a register's or a counter's data.
6940 (POP_FAILURE_POINT): Use the new name.
6941 (re_match_2_internal): Push counter data on the stack for succeed_n,
6942 jump_n and set_number_at and remove misleading dead code in succeed_n.
6943
bd9d0f3f
GM
69442000-08-25 Gerd Moellmann <gerd@gnu.org>
6945
6946 * xdisp.c (redisplay_internal): If considering all windows on all
6947 frames, update the display for each frame as soon as possible,
6948 instead of first building all desired matrices for all frames, and
6949 then updating them all.
6950 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
6951
aa5b8e15
GM
69522000-08-24 Gerd Moellmann <gerd@gnu.org>
6953
17494071
GM
6954 * bytecode.c (mark_byte_stack): Add a comment.
6955
52283633
SM
6956 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
6957 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
aa5b8e15
GM
6958 a graphical frame.
6959
c543db81
KH
69602000-08-24 Kenichi Handa <handa@etl.go.jp>
6961
d246d5f5
KH
6962 * minibuf.c (do_completion): Always use compare-string, not
6963 string-equal because the latter doesn't pay attention to
6964 multibyteness of strings.
6965
c543db81
KH
6966 * process.c (create_process): Don't setup raw-text coding here.
6967 (Fopen_network_stream): Don't set coding->src_multibyte and
6968 coding->dst_multibyte here.
6969 (read_process_output): For process filter, return unibyte string
6970 if default-enable-multibyte-characters is nil.
6971 (send_process): If OBJECT is multibyte text, be sure to encoded it
6972 by the specified coding system for the process. Otherwise, setup
6973 raw-text coding.
52283633 6974 (init_process): Don't initialize default-process-coding-system here.
c543db81 6975
9b47cfe0
EZ
69762000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
6977
6978 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
6979 <scroll-down-aggressively>: Likewise.
6980
f5a36960
KH
69812000-08-23 Kenichi Handa <handa@etl.go.jp>
6982
6983 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
6984 zero. Set coding->produced_char correctly.
6985
69a7ffa7
AI
69862000-08-22 Andrew Innes <andrewi@gnu.org>
6987
6988 * makefile.w32-in: New file.
6989
6990 * unexw32.c (unexec): Ignore old_name, and use the actual location
6991 of the current executable instead. Base new_name on this.
6992
6993 * w32proc.c (create_child): Remove reference to security
6994 descriptor, which isn't needed and doesn't compile with mingw32.
6995
6996 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
6997 up dllimport attributes.
6998 (x_update_window_end): Update prototype.
6999
7000 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
7001 extern, which screws up dllimport attributes.
7002
7003 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7004 up dllimport attributes.
7005
7006 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
7007 screws up dllimport attributes.
7008
7009 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7010 up dllimport attributes.
7011 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
7012 screws up dllimport attributes.
7013
7014 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7015 up dllimport attributes.
7016
7017 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
7018 screws up dllimport attributes.
7019
7020 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
7021 screws up dllimport attributes.
7022
7023 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7024 up dllimport attributes.
7025
7026 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
7027 unnecessary extern, which screws up dllimport attributes.
7028 (main): Ditto.
7029
7030 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7031 up dllimport attributes.
7032
7033 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
7034 unnecessary extern, which screws up dllimport attributes.
7035
7036 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
7037 screws up dllimport attributes.
7038
7039 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
7040 up dllimport attributes.
7041
7042 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
7043
52283633
SM
7044 * w32bdf.c (search_file_line):
7045 (set_bdf_font_info):
7046 (seek_char):
7047 (w32_get_bdf_glyph):
69a7ffa7
AI
7048 (w32_BDF_to_x_font): Fix compile warnings.
7049
52283633 7050 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings.
69a7ffa7
AI
7051
7052 * w32select.c: Include keyboard.h before frame.h.
7053
7054 * w32fns.c (max): Define macro.
7055 (JOHAB_CHARSET): Define if not known.
7056 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
7057 (Fx_show_tip): Synch with X version.
7058
7059 * w32xfns.c: Include keyboard.h before frame.h.
7060
7061 * w32fns.c: Include keyboard.h before frame.h.
7062
7063 * w32term.c: Include keyboard.h before frame.h.
7064
7065 * fontset.c: Include keyboard.h before frame.h.
7066
7067 * w32inevt.c: Include keyboard.h before frame.h.
7068 (MOUSE_MOVED): Define if not known.
7069
7070 * minibuf.c: Include keyboard.h before frame.h.
7071
7072 * keyboard.c: Include keyboard.h before frame.h.
7073
7074 * indent.c: Include keyboard.h before frame.h.
7075
7076 * dispnew.c: Include keyboard.h before frame.h.
7077
7078 * buffer.c: Include keyboard.h before frame.h.
7079
7080 * alloc.c: Include keyboard.h before frame.h.
7081
7082 * print.c: Include keyboard.h before frame.h.
7083
7084 * process.c: Include keyboard.h before frame.h.
7085
7086 * scroll.c: Include keyboard.h before frame.h.
7087
7088 * sysdep.c: Include keyboard.h before frame.h.
7089
7090 * term.c: Include keyboard.h before frame.h.
7091
7092 * window.c: Include keyboard.h before frame.h.
7093
7094 * xdisp.c: Include keyboard.h before frame.h.
7095 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
7096
7097 * frame.c: Include keyboard.h before frame.h.
7098
7099 * w32heap.h: Undefine min, max.
7100
7101 * w32gui.h: Undefine min, max.
7102
7103 * unexw32.c: Change PUCHAR to PCHAR.
7104 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
52283633
SM
7105 (relocate_offset):
7106 (get_section_info):
69a7ffa7
AI
7107 (copy_executable_and_dump_data): Remove unnecessary static defs.
7108 (copy_executable_and_dump_data): Fix compile warnings.
7109
7110 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
7111
7112 * w32console.c (min): Define macro.
7113 (clear_frame, write_glyphs): Fix compile warning.
7114
52283633 7115 * w32proc.c (compare_env):
69a7ffa7
AI
7116 (find_child_console): Fix compile warning.
7117
7118 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
7119 sys_errlist instead of _sys_errlist.
7120 (get_emacs_configuration_options): New function.
7121
7122 * s/ms-w32.h (sys_nerr): Provide default definition.
7123 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
7124 name with _ prepended.
7125 (NSIG): Define if not known.
7126 (get_emacs_configuration): Provide extern declaration.
7127 (get_emacs_configuration_options): Provide extern declaration.
7128 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
7129
7130 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
52283633 7131 (map_w32_filename):
69a7ffa7
AI
7132 (read_unc_volume): Fix compile warning.
7133
7134 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
7135 definitions from being used.
7136
7137 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
7138
52283633 7139 * w32.c (unc_volume_file_attributes):
69a7ffa7
AI
7140 (open_unc_volume): Make arg const.
7141
7142 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
7143 (read_input_waiting): Remove excess parameter.
7144
7145 * w32.c (init_environment): Call _access.
7146 (check_windows_init_file): Call _close.
7147 (init_user_info): Call _putenv.
7148 (init_environment): Call _putenv and _strdup.
7149 (init_ntproc): Reset volume info cache on startup.
7150
7151 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
7152 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
7153 cannot override the CRT malloc.
7154
7155 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
7156 (LINK_FLAGS): Append to original value of LINK_FLAGS.
7157
7158 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
7159 unless we are linking with a static CRT.
7160 (RVA_TO_PTR): Cast result to unsigned char*.
7161
7162 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
7163 (add_volume_info): Use xstrdup.
7164
25060080
SM
71652000-08-22 Stefan Monnier <monnier@cs.yale.edu>
7166
7167 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
7168 (do_completion, Fminibuffer_complete_word): Use it.
7169 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
7170 var so it can take non-boolean values.
7171
6917e6bb
GM
71722000-08-21 Gerd Moellmann <gerd@gnu.org>
7173
acb7cc89 7174 * editfns.c (find_field): Formatting changes.
52283633 7175 (toplevel): Some old-style function forward declarations
acb7cc89
GM
7176 changed to prototypes, some new protypes added, some functions
7177 made static.
7178
7179 * lisp.h (set_time_zone_rule): Add prototype.
7180 (use_dialog_box): External declaration.
7181
0bbfdc25
GM
7182 * keyboard.c (gen_help_event): Add parameter SIZE.
7183 (kbd_buffer_events_waiting): Slightly rewritten.
7184 (clear_event): New function.
7185 (kbd_buffer_get_event): Use it, and clear the input_events of
7186 HELP_EVENTs.
7187 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
7188 don't fill the newly created array with nils.
7189 (toplevel): Convert some old-style function forward declarations
7190 to prototypes.
7191
7192 * keyboard.h (gen_help_event): Change prototype.
7193
7194 * xterm.c (XTread_socket): Change calls to gen_help_event.
7195
7196 * w32term.c (w32_read_socket): Change calls to gen_help_event.
7197
6917e6bb
GM
7198 * eval.c (Fmacroexpand): Doc fix.
7199
e5cd3d11
JR
72002000-08-20 Jason Rumney <jasonr@gnu.org>
7201
7202 * w32term.h (x_display_info_for_display): Remove as this function
7203 does not exist on W32.
7204
7205 * w32term.c (help_echo_window): New variable.
7206 (syms_of_w32term): staticpro it.
7207 (note_mode_line_highlight): Set it.
7208 (XTextExtents16): Removed as there is no equivalent on W32.
7209 (x_compute_glyph_string_overhangs): Incomplete body removed, as
7210 the X way of doing this will not work for W32.
7211 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
7212 (x_draw_image_foreground): Avoid drawing outside of the clip area
7213 when image doesn't have a mask.
7214 (note_mouse_highlight): Process overlays in the right order of
7215 priority. Set help_echo_window.
7216 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
7217 because that's more visible for large images.
7218
7219 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
7220 name to single_keymap_panes.
7221 (w32_menu_show): Set wv->title when dealing with titles.
7222 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
7223
6e69ab8c
MB
72242000-08-21 Miles Bader <miles@gnu.org>
7225
7226 * minibuf.c (do_completion): Try again if we rewrite the input
7227 string, but no completion was done, so that any completion message
7228 will be correct.
7229
511bd4eb
GM
72302000-08-20 Gerd Moellmann <gerd@gnu.org>
7231
7232 * xfaces.c (lface_equal_p): Compare strings differently.
7233 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
7234 (realize_tty_face): Use them.
7235 (syms_of_xfaces): Initialize new variables.
7236 (map_tty_color): New function, extracted from realize_tty_face.
7237 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
7238 foreground or background color, store the new color name in the
7239 realized face; previous code trying to do this had no effect.
7240 (realize_tty_face): Use map_tty_color.
7241 (Fclear_face_cache): Set face_change_count and ensure thorough
7242 redisplay.
7243
1433385f
GM
72442000-08-19 Gerd Moellmann <gerd@gnu.org>
7245
511bd4eb
GM
7246 * undo.c (record_first_change, record_marker_adjustment): Don't
7247 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 7248
419ac0a2
KH
72492000-08-18 Kenichi Handa <handa@etl.go.jp>
7250
7251 * coding.c (decode_coding_string): Set members consumed,
7252 consumed_char, produced, produced_char of *coding correctly. If
7253 decode_coding doesn't consume any byte, don't try anymore.
7254 (encode_coding_string): Likewise.
7255
7eb9e30d
GM
72562000-08-18 Gerd Moellmann <gerd@gnu.org>
7257
511bd4eb
GM
7258 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
7259 conditional have void type, for Standard C compilers.
7eb9e30d
GM
7260
7261 * xdisp.c (redisplay_internal): Compare windows for equality with
7262 EQ, instead of applying XWINDOW to something that might not
7263 be a window.
52283633 7264
dd34a735
KH
72652000-08-18 Kenichi Handa <handa@etl.go.jp>
7266
7267 * fontset.c (Finternal_char_font): Search only the selected frame
7268 for a window of the current buffer.
7269
385ff9e3
GM
72702000-08-18 Gerd Moellmann <gerd@gnu.org>
7271
511bd4eb 7272 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
7273 Lisp_Objects.
7274
385ff9e3
GM
7275 * keyboard.c (kbd_buffer_get_event): Handle the case that the
7276 second half of a HELP_EVENT is found at the start of kbd_buffer.
7277
d6abb4c7
MB
72782000-08-18 Miles Bader <miles@gnu.org>
7279
4618074a
MB
7280 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
7281
d6abb4c7
MB
7282 * editfns.c (save_restriction_save): Rewrite to use markers.
7283 (save_restriction_restore): Rewrite to understand new form of data
7284 saved by save_restriction_save.
7285 (Fsave_restriction): Remove cautionary note in doc-string.
7286
a7b28523
GM
72872000-08-17 Gerd Moellmann <gerd@gnu.org>
7288
7289 * fileio.c (build_annotations): Add a comment explaining the
7290 return value of format-annotate-function. Replace a spurious call
7291 to Flength with a CONSP test. Call format-annotate-function with
7292 a fifth arg specifying how many times the function is been called
7293 in a row, to let it choose temporary buffers appropriately.
7294
03c9ed77
DL
72952000-08-17 Dave Love <fx@gnu.org>
7296
7297 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
7298 declare make_temp_name twice.
7299
52283633 7300 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind.
03c9ed77
DL
7301 (unreadpure): Give it an arg.
7302
7303 * unexalpha.c: Prototype fatal_unexec, mark_x,
7304 update_dynamic_symbols. Declare unexec as void.
7305
7306 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
7307 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
7308
7309 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
52283633 7310 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC.
03c9ed77
DL
7311
7312 * alloca.c: Use #error.
7313 [POINTER_TYPE]: Use it.
7314
7315 * eval.c (Fdefvar): Doc fix.
7316
7317 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
7318 INITIALIZE_INTERVAL.
7319
7320 * buffer.h: Avoid DECLARE_INTERVALS.
7321
7322 * config.in: Add size_t.
7323
aae41d97
EZ
73242000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
7325
7326 * w16select.c (set_clipboard_data): If there's not enough memory
7327 to put text into clipboard, return 1, as Fw16_set_clipboard_data
7328 expects. In case of other failures, return 3.
7329 (system_error_msg): New error message.
7330 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
7331 system_error_msg.
7332
65aa5e85
GM
73332000-08-16 Gerd Moellmann <gerd@gnu.org>
7334
7335 * term.c (write_glyphs): Also turn off inverse video after turning
7336 off other appearances in case TS_exit_attribute_mode is not equal
7337 to TS_end_standout_mode.
7338 (insert_glyphs): Turn inverse video on/off for each run of glyphs
7339 with the same face.
7340 (turn_off_face): Reset standout_mode only if
7341 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
7342 is equal to TS_end_standout_mode.
7343
ece23901
KH
73442000-08-16 Kenichi Handa <handa@etl.go.jp>
7345
9d7bcb2e
KH
7346 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
7347 sequence at the end of the source block.
7348
ece23901
KH
7349 * ccl.c (Fccl_program_p): Docstring modified.
7350 (Fccl_execute): Likewise.
7351 (Fccl_execute_on_string): Likewise.
7352
5e30eaa2
EZ
73532000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
7354
7355 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
7356
290602fd
KH
73572000-08-16 Kenichi Handa <handa@etl.go.jp>
7358
7359 The following changes are mainly to fix bugs of
7360 encode/decode-coding-string failing if encoding/decoding return
7361 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
7362 variable conversion_buffer.
7363
7364 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
7365 decrement dst_end to avoid buffer overflow in the later call of
7366 string_as_multibyte
7367
7368 * coding.h (conversion_buffer_size, conversion_buffer)
7369 (get_conversion_buffer): Extern deleted.
7370
7371 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
7372 (conversion_buffer, conversion_buffer_size): Variables deleted.
7373 (get_conversion_buffer): Function deleted.
7374 (struct conversion_buffer): New structure.
7375 (MAX_ALLOCA): New macro.
7376 (allocate_conversion_buffer): New macro.
7377 (extend_conversion_buffer, free_conversion_buffer): New functions.
7378 (ccl_coding_driver): Set coding->result.
7379 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
7380 this is the last block of source.
7381 (encode_coding): Likewise. Handle the source block as the last
7382 one only when the whole source text is consumed.
7383 (decode_coding_string): Handle the case that the output buffer is
7384 too small to decode the whole source text. Use
7385 allocate_conversion_buffer, extend_conversion_buffer and
7386 free_conversion_buffer, not get_conversion_buffer.
7387 (encode_coding_string): Likewise.
7388 (init_coding): Function deleted.
52283633 7389 (init_coding_once): Delete code to initialize conversion_buffer_size.
290602fd
KH
7390
7391 * emacs.c (main): Don't call init_coding.
7392
52283633 7393 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer.
290602fd
KH
7394
7395 * term.c (write_glyphs): Use a locally declared conversion_buffer.
7396 (insert_glyphs): Likewise.
7397
7398 * w32console.c (write_glyphs): Use a locally declared
7399 conversion_buffer.
7400
b9f80d41
EZ
74012000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
7402
7403 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
7404 member of display_info is NULL.
7405
32dc52f7
GM
74062000-08-15 Gerd Moellmann <gerd@gnu.org>
7407
52283633 7408 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion.
58ed0d3b 7409
32dc52f7 7410 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 7411 appearances with capability `me'.
32dc52f7
GM
7412 (write_glyphs): Switch on inverse video before each face change.
7413
4eb22d33
DL
74142000-08-14 Dave Love <fx@gnu.org>
7415
7416 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
7417 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
7418 (lisp_free): Declare and make static.
7419
7420 * window.c: Fix embedded comment.
7421 (syms_of_window): Fix doc string.
7422
90cbf47e
GM
74232000-08-14 Gerd Moellmann <gerd@gnu.org>
7424
52283633 7425 * keymap.c (push_key_description): If C without modifiers is < 32,
90cbf47e
GM
7426 make sure to print `C-' before `M-', like in the manual.
7427
440fc135
GM
74282000-08-11 Gerd Moellmann <gerd@gnu.org>
7429
7430 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
7431 since they aren't relocated anymore.
52283633 7432 (sxhash_string): Make sure returned hash code fits in a Lisp integer.
440fc135
GM
7433
7434 * xdisp.c (try_cursor_movement): Fix handling of cursor in
52283633 7435 partially visible line which is smaller than the window's height.
440fc135 7436
6e264fad
KH
74372000-08-11 Kenichi Handa <handa@etl.go.jp>
7438
7439 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
52283633 7440 the multibyte form of eight-bit-control characters.
6e264fad
KH
7441 (Fccl_execute_on_string): Initialize ccl->multibyte.
7442
7443 * ccl.h (struct ccl_program): New member multibyte.
7444
7445 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
7446
c371f69a
KH
74472000-08-11 Kenichi Handa <handa@etl.go.jp>
7448
7449 * regex.c (regex_compile) <normal_char>: Pay attention to
7450 multibyteness.
7451 (analyse_first) <exactn>: Setup fastmap correctly for
7452 eight-bit-control characters.
7453
74542000-08-11 Kenichi Handa <handa@etl.go.jp>
7455
52283633 7456 * termhooks.h (enum event_kind): New member multibyte_char_keystroke.
c371f69a
KH
7457
7458 * keyboard.c (make_lispy_event): Handle the new event type
7459 multibyte_char_keystroke.
7460
7461 * xterm.c: Include coding.h.
7462 (XTread_socket): Work around a bug of XmbLookupString. If the
7463 input is from XIM, decode it according to the current locale. In
7464 that case, generate multibyte_char_keystroke events.
7465
b8ddbe71
KH
74662000-08-11 Kenichi Handa <handa@etl.go.jp>
7467
7468 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
7469 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
7470
47589c8c
GM
74712000-08-10 Gerd Moellmann <gerd@gnu.org>
7472
7473 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
7474 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
7475 (move_it_in_display_line_to): Record iterator's ascent and descent
7476 before producing glyphs, and restore them when we know the glyph
7477 doesn't fit on the line.
7478 (move_it_to): Restructured so that it's easier to debug. If
7479 moving to a vpos, and not moving to an x or character position,
7480 stop as soon as the specified vpos is reached; don't move further
7481 into that line because that might change the computed line height.
7482 (try_cursor_movement): New function, extracted from the cursor
7483 movement branch of redisplay_window. If ending on a partially
7484 visible line, don't try to scroll if the cursor line is taller
7485 than the window.
7486 (redisplay_window): Use try_cursor_movement.
7487
7488 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
7489 because that function doesn't cope with variable-height lines.
7490
7491 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
7492 box cursor because that's better visible for large images.
52283633 7493
c51bacd6
MB
74942000-08-10 Miles Bader <miles@gnu.org>
7495
7496 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
7497
bea56df7
GM
74982000-08-10 Gerd Moellmann <gerd@gnu.org>
7499
7500 * xdisp.c (Vmessages_buffer_name): New variable.
7501 (message_dolog): Use it.
7502 (syms_of_xdisp): Initialize it.
7503
99cd7364
EZ
75042000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
7505
52283633 7506 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at.
99cd7364
EZ
7507 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
7508 redundant now that keyboard.h is included.
7509
7d093d56
EZ
75102000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
7511
7512 * keyboard.c (kbd_buffer_events_waiting): New function.
7513
7514 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
7515
7516 * msdos.c: Include keyboard.h.
7517 (XMenuActivate): Empty no_event events from the event buffer. If
7518 no events are left after that, call clear_input_pending.
7519 (mouse_clear_clicks): New function, code moved from mouse_init.
7520 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
7521 mouse driver to ``forget'' any past clicks.
7522
7523 * Makefile.in (msdos.o): Depend on keyboard.h.
7524
41e757a6
GM
75252000-08-09 Gerd Moellmann <gerd@gnu.org>
7526
8e7bd231
GM
7527 * lisp.h (input_pending): External declaration.
7528
7529 * dispextern.h (Qredisplay_dont_pause): Declare extern.
52283633 7530
8e7bd231
GM
7531 * xdisp.c (echo_area_display): Display thoroughly if input is
7532 pending. Bind redisplay-dont-pause to t during the redisplay.
7533 in case input is pending.
7534
7535 * dispnew.c (Qredisplay_dont_pause): New variable.
7536 (syms_of_display): Initialize and staticpro it.
7537 (update_frame_1): Don't interrupt the display for pending input if
7538 redisplay_dont_pause is set.
52283633 7539
43028b7e
GM
7540 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
7541
41e757a6
GM
7542 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
7543
2f2174fa
KH
75442000-08-09 Miles Bader <miles@lsi.nec.co.jp>
7545
7546 * callproc.c (Fcall_process): Terminate the unwind-protect around
7547 the post-read-conversion of coding system.
7548
0a6fd67e
MB
7549 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
7550 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
7551 * buffer.h (overlays_at): Update prototype.
7552 * xdisp.c (next_overlay_change): Update call to overlays_at.
7553 * xfaces.c (face_at_buffer_position): Likewise.
7554 * textprop.c (Fget_char_property): Likewise.
7555 * xterm.c (note_mouse_highlight): Likewise.
7556
0c80756e
MB
7557 * minibuf.c (do_completion): Don't consider a simple change of
7558 case as `completion'.
7559
975f250a
KR
75602000-08-08 Ken Raeburn <raeburn@gnu.org>
7561
52283633 7562 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer.
b347b3fd
KR
7563 * undo.c (record_delete): Make sure last_point_position_buffer is
7564 a buffer before comparing pointers.
7565
7566 * coding.h (decode_coding_string): Declare.
7567
7568 * intervals.h (Fprevious_single_char_property_change): Declare.
7569
7570 * textprop.c (Fprevious_single_char_property_change): Don't do
7571 arithmetic directly on lisp objects.
7572
52283633 7573 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects.
b347b3fd
KR
7574
7575 * keyboard.h (menu_item_eval_property): Declare.
7576
7577 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
7578 reuse as buffer name, instead of recreating (and discarding) every
7579 time a message is logged.
7580 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
7581 (current_message_1, truncate_message_1, set_message_1)
7582 (display_echo_area_1, resize_mini_window_1): Signatures changed.
7583 (current_message, truncate_echo_area, display_echo_area)
7584 (resize_echo_area_axactly): Changed calls.
b347b3fd 7585
975f250a 7586 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 7587 Lisp object.
975f250a 7588 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 7589 must be an integer, not a Lisp object.
975f250a 7590
46dc9912
KH
75912000-08-08 Kenichi Handa <handa@etl.go.jp>
7592
7593 * charset.c (Fchar_width): Doc fix.
7594
9f6d1a6c
GM
75952000-08-08 Gerd Moellmann <gerd@gnu.org>
7596
7597 * charset.c (Fstring_width): Doc fix.
7598
ff3d9573
GM
75992000-08-07 Gerd Moellmann <gerd@gnu.org>
7600
41e757a6 7601 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
7602 line, clear ascent and descent members of the iterator structure;
7603 the height of the continued line does not affect the height of the
7604 continuation line.
7605 (make_cursor_line_fully_visible): Do nothing if cursor is on a
7606 line taller than the window.
7607 (redisplay_window) <forced window start>: Handle case that the
7608 middle of the window is not found in any row.
7609 (dump_glyph_row): Show more information.
7610 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
7611 first text line in a glyph matrix.
7612
7613 * xterm.c (x_draw_image_foreground): Avoid drawing outside
7614 of the clip area when image doesn't have a mask.
7615
70fc58b3
GM
7616 * fns.c (sweep_weak_table): Fix survival conditions for
7617 key-or-value and key-and-value weakness.
7618
7619 * .gdbinit (xhashtable): New command.
7620
ac0e96ee
GM
7621 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
7622 tables out of the list of all weak hash tables.
7623
ff3d9573
GM
7624 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
7625 a new buffer is created, make sure echo_area_buffer[] references
7626 the new buffer.
7627
e0d8827b
EZ
76282000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
7629
7630 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
7631 the doc string.
7632
c6f35378
KH
76332000-08-07 Kenichi Handa <handa@etl.go.jp>
7634
7635 * syntax.c (skip_chars): Fix previous change. Make the handling
7636 of unibyte string consistent with that of regex search.
7637
1fd4c450
GM
76382000-08-05 Gerd Moellmann <gerd@gnu.org>
7639
e49aa397
GM
7640 * xmenu.c (popup_get_selection): Use xfree instead of free.
7641
7642 * fileio.c (Finsert_file_contents): Use xfree instead of free.
7643
7644 * editfns.c (Ftranspose_regions): Use xfree instead of free.
7645
7646 * callproc.c (child_setup): Use xfree instead of free.
7647
7648 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
7649 instead of malloc.
7650 (run_mac_command, closedir): Use `xfree' instead of `free'.
7651
7652 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
7653
7654 * eval.c (error): Use xfree instead of free.
7655
1fd4c450
GM
7656 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
7657
7658 * fns.c: Replace `illegal' with `invalid'.
e49aa397 7659 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 7660
82d497fc
KH
76612000-08-05 Kenichi Handa <handa@etl.go.jp>
7662
7663 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
7664 conversion.
7665
59f953a2
NF
76662000-08-04 Noah Friedman <friedman@splode.com>
7667
7668 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
7669 docstring.
7670
688351f2
GM
76712000-08-04 Gerd Moellmann <gerd@gnu.org>
7672
7673 * syntax.c (skip_chars): Fix typo in error message.
7674
2dad51cc
AS
76752000-08-04 Andreas Schwab <schwab@suse.de>
7676
7677 * m/ia64.h: Moved from s/ia64.h.
7678
99bb2c60
KH
76792000-08-04 Kenichi Handa <handa@etl.go.jp>
7680
082a1df2
KH
7681 * process.c (read_process_output): Big simplification. Handle
7682 composition and post-read-conversion of coding system correctly.
7683 (send_process): Handle composition correctly.
7684
7685 * callproc.c (Fcall_process): Handle post-read-conversion of
7686 coding system if any.
7687
99bb2c60
KH
7688 * coding.c (decode_coding_iso2022): More strict check for handling
7689 single shifting.
082a1df2
KH
7690 (coding_restore_composition): Pay attention to the case that
7691 cmp_data is not set properly (because of invalid code in the
7692 source text).
7693 (run_pre_post_conversion_on_str): Include text properties in the
7694 resulting string.
7695 (decode_coding_string): Set members of coding correctly.
99bb2c60 7696
f4988be7
GM
76972000-08-03 Gerd Moellmann <gerd@gnu.org>
7698
7699 * s/ia64.h: New file.
7700
7701 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
7702 Use NULL instead of 0 at the end of variable argument list of
7703 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
7704 sizeof (int) < sizeof (void *).
7705
7706 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
7707 of variable argument lists of XtVaGetValues and XtVaSetValues.
7708
7709 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
7710 variable argument lists of XtVaGetValues and XtVaSetValues.
7711
ead53494
GM
77122000-08-02 Gerd Moellmann <gerd@gnu.org>
7713
7714 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
7715 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
7716
7717 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
7718 prototype.
7719
7720 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
7721 in call to Fsingle_key_description.
7722
7723 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
7724 Callers changed.
7725
77262000-08-02 Colin Walters <walters@cis.ohio-state.edu>
7727
7728 * window.c (display_buffer_reuse_frames): New variable.
7729 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
7730 frames displaying BUFFER.
52283633 7731 (syms_of_window): Define Lisp variable display-buffer-reuse-frames.
ead53494 7732
10b0f752
MB
77332000-08-01 Miles Bader <miles@gnu.org>
7734
7735 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
7736 when to constrain NEW_POS (they were pretty screwed up before).
7737
16425c4a
EZ
77382000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
7739
7740 * msdos.c (run_msdos_command): Save and restore the master
7741 environment, for the case that child_setup signals an error.
7742 When mirroring slashes in DOS shell commands, don't fail when
7743 argv[2] has embedded blanks.
da288c14
EZ
7744 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
7745 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
7746 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
7747
7748 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
7749 using alloca; free it after run_msdos_command returns.
7750
27f73852
DL
77512000-07-27 Dave Love <fx@gnu.org>
7752
52283633
SM
7753 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define.
7754 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working.
27f73852
DL
7755
7756 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
7757
c0261b5e
EZ
77582000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
7759
7760 * editfns.c (lisp_time_argument): Fix last change.
7761
b548072f
GM
77622000-07-27 Gerd Moellmann <gerd@gnu.org>
7763
3ab82477
GM
7764 * fns.c (Fdelete): Make it work on vectors and strings in addition
7765 to lists.
7766
b548072f
GM
7767 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
7768 (syms_of_fns): Initialize new variables.
52283633 7769 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'.
b548072f
GM
7770 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
7771 weakness, with t meaning the same as `key-and-value'.
7772
91ae8751
KH
77732000-07-27 Kenichi Handa <handa@etl.go.jp>
7774
7775 * coding.h (struct coding_system): Member safe_charset deleted.
7776
7777 * coding.c (Qsafe_charsets): This variable deleted.
52283633
SM
7778 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system):
7779 New variables.
91ae8751
KH
7780 (coding_safe_chars): New function.
7781 (CODING_SAFE_CHAR_P): New macro.
7782 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
52283633 7783 checking safe_charsets member of the coding system. Caller changed.
91ae8751
KH
7784 (detect_coding_iso2022): New local variable safe_chars.
7785 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
7786 safe_charsets member of the coding system.
7787 (decode_coding_iso2022): New local variable safe_chars.
7788 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
7789 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
7790 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
7791 (ENCODE_UNSAFE_CHARACTER): New macro.
7792 (encode_coding_iso2022): New local variable safe_chars. Check
7793 unsafe chars.
7794 (setup_coding_system): Delete the code to initialize
7795 coding->safe_charses
7796 (intersection, find_safe_codings): New functions.
7797 (Ffind_coding_systems_region_internal): New function.
7798 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
7799 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
7800 variable and initialize it.
7801
7802 * fns.c (char_table_ref_and_index): New function.
7803
7804 * lisp.h (char_table_ref_and_index): Add prototype.
7805
34a7a267
SS
78062000-07-26 Sam Steingold <sds@gnu.org>
7807
7808 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 7809 (Ffloat_time): New built-in Lisp function.
34a7a267 7810
a95cb10a
GM
78112000-07-26 Gerd Moellmann <gerd@gnu.org>
7812
3353ef5a
GM
7813 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
7814 for the character code.
7815
7816 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
7817 GNU/Linux.
7818
a95cb10a
GM
7819 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
7820 if called for a popup menu.
7821 (xmenu_show): Store help string in widget values.
7822
b4a12321
DL
78232000-07-26 Dave Love <fx@gnu.org>
7824
7825 * syswait.h: Move some definitions.
7826 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
7827 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
7828 perspicuous definitions.
7829 (WTERMSIG): Fix bit pattern used.
7830
13f5ad37
KH
78312000-07-26 Kenichi Handa <handa@etl.go.jp>
7832
7833 * print.c (print_object): If vector printing is truncated, print
7834 "..." to indicate it as well as the case of list printing.
7835
070fe99c
GM
78362000-07-25 Gerd Moellmann <gerd@gnu.org>
7837
969065c3
GM
7838 * xdisp.c (next_element_from_display_vector): Improve comments.
7839
7840 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
7841 for the character code, and the rest for the face id as in 20.x.
7842 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
7843
7844 * window.c (window_display_table): Cleaned up.
7845
070fe99c
GM
7846 * syntax.c (Fforward_word): Add last arg nil in call of
7847 Fconstrain_to_field.
7848
bad77ef7
EZ
78492000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
7850
969065c3 7851 * fileio.c (Frename_file) [DOS_NT]: If the file names are
52283633
SM
7852 identical but for the letter-case, don't call
7853 barf_or_query_if_file_exists.
bad77ef7 7854
c28da489
MB
78552000-07-25 Miles Bader <miles@gnu.org>
7856
7857 * editfns.c (find_field): Honor special `boundary' fields.
7858 (Qboundary): New variables.
7859 (syms_of_editfns): Initialize Qboundary.
7860 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
7861 Use scan_buffer instead of find_before_next_newline, because it
7862 allows us to detect the boundary case where there's a newline at
7863 the search limit.
7864 * lisp.h (Fconstrain_to_field): Update external declaration.
7865
e3c31fd5
GM
78662000-07-24 Gerd Moellmann <gerd@gnu.org>
7867
7868 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
7869 if that is nil.
c28da489 7870
c66c29a2
DL
78712000-07-24 Dave Love <fx@gnu.org>
7872
7873 * s/sunos4-0.h, s/sol2.h:
7874 (LIBS_TERMCAP): Move from m/sparc.h.
7875
7876 * m/sparc.h (TERMINFO): Moved to system files (probably only
7877 relevant for sunos4 judging by its vintage).
7878 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
7879 __arch64__.
7880
fbe0a958
EZ
78812000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
7882
7883 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
7884 name to single_keymap_panes.
7885
7d88e5c9
AS
78862000-07-24 Andreas Schwab <schwab@suse.de>
7887
7888 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
7889
e024b101
GM
78902000-07-24 Gerd Moellmann <gerd@gnu.org>
7891
7892 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
7893 parameters instead of using int parameters. Expect FN to accept
7894 EMACS_INT parameters.
7895 (display_echo_area, resize_echo_area_axactly, current_message)
7896 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
7897 with new argument list.
7898 (resize_mini_window_1): New callback function.
7899 (current_message_1, truncate_message_1, set_message_1): Change
52283633 7900 parameter lists to the new format expected by with_echo_area_buffer.
e024b101 7901
25c1a9ce
KH
79022000-07-24 Kenichi Handa <handa@etl.go.jp>
7903
7904 * fontset.c (fontset_ref): Remove INLINE declaration.
7905 (fontset_ref_via_base): Likewise.
7906 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
7907 to downcase.
7908
7f987ac0
EZ
79092000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
7910
7911 * msdos.c (IT_note_mouse_highlight): Process overlays in the
7912 correct order of priority. If help echo was found in an overlay,
7913 use that overlay as the object in which the help echo was found.
7914
e2db3069
MB
79152000-07-22 Miles Bader <miles@gnu.org>
7916
7917 * textprop.c (Fprevious_single_char_property_change): The initial
7918 property value should be from the position preceding POSITION, not
7919 following it.
7920
5e3203e4
EZ
79212000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
7922
7923 * coding.c (syms_of_coding): Doc fix for
7924 inhibit-iso-escape-detection.
7925
62145073
GM
79262000-07-21 Gerd Moellmann <gerd@gnu.org>
7927
c20aeb83
GM
7928 * xterm.c (note_mouse_highlight): Process overlays in the right
7929 order of priority.
34a7a267 7930
743934db
GM
7931 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
7932
7933 * xterm.c (note_mouse_highlight): If help-echo was found in an
52283633 7934 overlay, use that overlay as the object in which the help was found.
743934db 7935
d1dc7e43 7936 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 7937
62145073
GM
7938 * window.c (foreach_window): Instead of a fake variable argument
7939 list, take one USER_DATA argument.
7940 (foreach_window_1): Likewise, and call callback functions with two
7941 args, the window and USER_DATA.
7942 (struct check_window_data): New struct.
7943 (check_window_containing): Use it.
7944 (window_from_coordinates): Set up a struct check_window_data for
7945 foreach_window.
7946 (add_window_to_list, freeze_window_start): Change parameters
7947 according to new calling convention.
7948
7949 * window.h (foreach_window): Change prototype.
7950
7951 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
7952
79532000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
7954
7955 * xmenu.c (menu_help_callback): Call show_help_echo with
7956 additional arguments OBJECT and POS.
7957
11270583
KH
79582000-07-21 Kenichi Handa <handa@etl.go.jp>
7959
07b14857
KH
7960 * data.c (Faset): Allow storing any multibyte character in a
7961 string. Convert unibyte string to multibyte if necessary.
7962
11270583
KH
7963 * xfns.c (x_encode_text): New function.
7964 (x_set_name): Use x_encode_text.
7965 (x_set_title): Likewise.
7966
7967 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
7968
7969 * xterm.h (x_encode_text): Add prototype.
7970
bc75b4fd
DL
79712000-07-20 Dave Love <fx@gnu.org>
7972
7973 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
7974 xfree, not free.
7975
48c14970
EZ
79762000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
7977
7978 * msdos.c (help_echo_window): New variable.
7979 (syms_of_msdos): Initialize and staticpro it.
7980 (IT_note_mode_line_highlight): Set help_echo_window.
7981 (IT_note_mouse_highlight): Ditto.
7982 (dos_rawgetc): Store help_echo_window in the second event produced
7983 for HELP_EVENTs.
7984
7985 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
7986 Record the object that generated the help echo and the position of
7987 that object in help_echo_object and help_echo_pos. Record that
7988 some glyphs in a row are displayed in mouse-face.
7989 (IT_update_begin): Don't clear mouse highlight unless one of the
7990 enabled glyph rows is marked as being displayed in mouse-face.
7991 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
7992 and position recorded in help_echo_object and help_echo_pos to the
7993 event queue.
7994 (IT_menu_display): Accept a new argument PN: the pane number of
7995 the current menu pane. Record the pane number and the item
7996 number of the item which has associated help string.
7997 (XMenuActivate): Update the prototype for help_callback in
7998 function declaration. Call IT_menu_display with the current menu
7999 pane number as an additional argument. Call help_callback with
8000 two additional arguments: the pane number and the item number of
8001 the menu item associated with the help text.
8002 (help_echo_object, help_echo_pos): New variables.
8003 (syms_of_msdos): Initialize them and staticpro help_echo_object.
8004
8005 * msdos.h (XMenuActivate): Update prototype.
8006
4279296d
GM
80072000-07-19 Gerd Moellmann <gerd@gnu.org>
8008
47db06aa
GM
8009 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
8010 Add some more prototypes.
8011
8012 * xterm.c, xterm.h: Add some more prototypes.
8013
8014 * lisp.h (Fnext_single_char_property_change): Add prototype.
8015
8016 * dispnew.c (direct_output_for_insert): Remove confusing
8017 outer local variable mouse_face_overwritten_p.
8018 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
8019
4279296d
GM
8020 * alloc.c (allocate_string_data): Don't copy old string contents.
8021
670acd62
KH
80222000-07-19 Kenichi Handa <handa@etl.go.jp>
8023
8024 * coding.c (code_convert_region): Delete text properties before
8025 shrinking the conversion region.
8026
7cea38bc
GM
80272000-07-18 Gerd Moellmann <gerd@gnu.org>
8028
dc1cac59
GM
8029 * dispnew.c (update_text_area): Write the whole row if it
8030 has mouse-face in it.
8031
85a8aca9
GM
8032 * xfaces.c (face-alternative-font-family-alist): Remove
8033 DEFVAR_LISP; staticpro instead.
8034
34a7a267 8035 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
8036 new arguments.
8037
8038 * keyboard.c (show_help_echo): Add parameter WINDOW.
8039 (read_char): Call show_help_echo with window extracted from Lisp
8040 help event.
8041 (gen_help_event): Add parameter WINDOW.
8042
8043 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
8044
8045 * xterm.c (help_echo_window): New variable.
52283633 8046 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window.
7cea38bc
GM
8047 (XTread_socket): Pass help_echo_window to gen_help_event.
8048 (syms_of_xterm): Initialize and staticpro help_echo_window.
8049
f8276b77
DL
80502000-07-18 Dave Love <fx@gnu.org>
8051
52283633 8052 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h.
f8276b77 8053
088831a6
GM
80542000-07-18 Gerd Moellmann <gerd@gnu.org>
8055
3d6cd763
GM
8056 * alloc.c (allocate_string_data): If string had already data
8057 assigned, copy old contents to new string data.
8058
8059 * coding.c (syms_of_coding): Fix typo in spelling of variable
8060 `inhibit-iso-escape-detection'.
8061
088831a6
GM
8062 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
8063
8064 * Makefile.in: Add dependencies on dispextern.h.
8065 (alloca.o): Don't define malloc and define EMACS_FREE instead of
8066 `free'; both can conflict with system header files.
8067
bc8a8d55
KH
80682000-07-18 Kenichi Handa <handa@etl.go.jp>
8069
8070 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
8071 undefined.
8072
069f5950
DL
80732000-07-18 Dave Love <fx@gnu.org>
8074
8075 * window.c (Fwindow_list): Declare arg `window'.
8076
aa96c820
KH
80772000-07-18 Kenichi Handa <handa@etl.go.jp>
8078
8079 * coding.c (setup_coding_system): Don't override the explicitly
8080 specified designations.
8081
06be8d32
MB
80822000-07-15 Miles Bader <miles@gnu.org>
8083
8084 * editfns.c (char_property_eq, char_property_stickiness): Renamed
8085 from `text_property_eq' and `text_property_stickiness', respectively.
8086 (find_field, Fconstrain_to_field, char_property_eq)
8087 (char_property_stickiness): Changed to call char-property functions
8088 instead of text-property-only ones.
8089
8090 * textprop.c (Fnext_single_char_property_change): Made a subr (was
8091 `next_single_char_property_change'). Do more error checking, and
8092 cleanup limit behavior.
8093 (Fprevious_single_char_property_change): New function.
8094 (syms_of_textprop): Initialize new subrs.
8095
8096 * xdisp.c (display_prop_end, invisible_text_between_p):
8097 Call Fnext_single_char_property_change instead of
8098 next_single_char_property_change.
8099
3fddcdc3
JR
81002000-07-15 Jason Rumney <jasonr@gnu.org>
8101
8102 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
8103 after menu is finished with.
8104 (add_menu_item): Only consider wv->title as a menu title.
8105 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
8106
8107 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
8108 null title.
8109 (FONT_REGEXP): Remove unused macro, and its sub-components.
8110 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
8111
8112 * w32term.c (help_echo_object, help_echo_pos): New variables.
8113 (note_mode_line_highlight): Store additional information about the
8114 help-echo in help_echo_object and help_echo_pos. Check both
8115 `local-map' and `keymap' properties for changing the cursor
8116 (note_mouse_highlight): Store additional information about the
8117 help-echo in help_echo_object and help_echo_pos.
8118 (note_tool_bar_highlight): Set help_echo_object to nil and
8119 help_echo_pos to -1.
8120 (w32_read_socket): Use gen_help_event instead of filling
8121 input_events manually.
8122 (syms_of_w32term): Staticpro help_echo_object.
8123 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
52283633 8124 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date.
3fddcdc3
JR
8125 (x_clear_mouse_face): New function.
8126 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
8127 (x_update_window_begin): No need to turn off the mouse
8128 highlight here.
8129 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 8130 depending on whether they contain glyphs highlighted in mouse-face.
3fddcdc3
JR
8131 (x_fill_stretch_glyph_string): Consume runs of stretch
8132 glyphs instead of a single one.
8133 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
8134 with new argument list.
8135 (x_set_glyph_string_gc): Make sure the face's GC is valid.
8136 (x_append_glyph, x_append_composite_glyph)
8137 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
8138 changes in struct glyph starting 1999-12-27. See comments for
8139 xterm.c on 2000-07-05.
8140
178c5d9c
SS
81412000-07-14 Sam Steingold <sds@gnu.org>
8142
8143 * xfaces.c (realize_x_face): Fix the last patch:
8144 check `default_face' before dereferencing.
8145
6fe533f6
DL
81462000-07-14 Dave Love <fx@gnu.org>
8147
069f5950 8148 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 8149
dd7b81cf
KH
81502000-07-14 Kenichi Handa <handa@etl.go.jp>
8151
0693904a 8152 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 8153 default_face's fontset, not using the default fontset.
0693904a 8154
dd7b81cf
KH
8155 * coding.c (inhibit_iso_escape_detection): New variable.
8156 (syms_of_coding): Make it a Lisp variable.
8157 (detect_coding_iso2022): If inhibit_iso_escape_detection is
8158 nonzero, ignore ISO2022's escape sequence.
8159
d5aa31d8
GM
81602000-07-14 Gerd Moellmann <gerd@gnu.org>
8161
e5acf0ca
GM
8162 * alloca.c (malloc) [emacs]: Define as xmalloc.
8163
bd23a692
GM
8164 * xfns.c (Fx_show_tip): If frame parameters contain a position,
8165 use that instead of the mouse position. Add parameters DX and DY.
8166
8167 * dispextern.h (Fx_show_tip): Adjust number of parameters
8168 in prototype.
8169
9662da0b
GM
8170 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
8171 if HELP is a function, call it with OBJECT and POS as parameters
8172 to get the help to display.
8173 (gen_help_event, kbd_buffer_store_help_event): New functions.
8174 (kbd_buffer_get_event): Construct the Lisp help-event differently.
8175 (read_char): Call show_help_echo with new parameters.
8176
178c5d9c 8177 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
8178 Add prototypes.
8179
8180 * xterm.c (help_echo_object, help_echo_pos): New variables.
8181 (note_mode_line_highlight): Store additional information about the
8182 help-echo in help_echo_object and help_echo_pos. Check both
8183 `local-map' and `keymap' properties for changing the cursor
8184 (note_mouse_highlight): Store additional information about the
8185 help-echo in help_echo_object and help_echo_pos.
8186 (note_tool_bar_highlight): Set help_echo_object to nil and
8187 help_echo_pos to -1.
8188 (XTread_socket): Use gen_help_event instead of filling
8189 input_events manually.
8190 (syms_of_xterm): Staticpro help_echo_object.
8191
8192 * xmenu.c (menu_highlight_callback): Use
8193 kbd_buffer_store_help_event instead of setting up and input_event
8194 structure manually.
8195
8196 * xdisp.c (eval_form): GCPRO argument sexpr.
8197 (call_function): New function.
8198 (handle_single_display_prop): Use call_function and FUNCTIONP
8199 instead of checking whether if font_height is a symbol and
8200 using eval_form.
8201
8202 * eval.c (internal_condition_case_2): New function.
8203
8204 * lisp.h (FUNCTIONP): New macro.
8205 (internal_condition_case_2, call_function): Add prototypes.
8206
d5aa31d8
GM
8207 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
8208 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
8209 Always set `arg' member of input_events.
8210 (construct_menu_click): Unused function removed.
8211
8212 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
8213
8214 * w32term.c (construct_mouse_click, construct_mouse_wheel)
8215 (construct_drag_n_drop, x_scroll_bar_handle_click)
8216 (w32_read_socket): Always set `arg' member of input_events.
8217
8218 * keyboard.c (show_help_echo): Use eval_form. Add comment.
8219
8220 * lisp.h (eval_form): Add prototype.
8221
8222 * xdisp.c (eval_form): Make it externally visible.
8223
0f1a9b23
GM
82242000-07-13 Gerd Moellmann <gerd@gnu.org>
8225
8226 * xterm.c (x_handle_tool_bar_click): Store the frame in the
8227 frame_or_window slot of TOOL_BAR_EVENT input events instead of
8228 consing. For prefix events, store the frame in the `arg' slot of
8229 the event, otherwise store the key there.
8230 (XTread_socket): Instead of consing, use the frame_or_window slot
52283633 8231 of HELP_EVENTs for the frame, and the `arg' slot for the help string.
0f1a9b23
GM
8232
8233 * xmenu.c (menu_highlight_callback): Store help string in the
8234 `arg' member of the input event; don't cons.
8235 (menubar_selection_callback): Use the `arg' slot of input events
8236 to queue additional information, instead of consing.
8237
8238 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
8239
8240 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
8241 TOOL_BAR_EVENTs.
8242 (w32_read_socket): Adapt to changes in HELP_EVENTs.
8243
8244 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
8245 input events to queue additional information, instead of consing.
8246
8247 * keyboard.c (kbd_buffer_gcpro): Renamed from
8248 kbd_buffer_frame_or_window. Now used for all Lisp objects
8249 referenced from the input queue.
8250 (kbd_buffer_store_event): Always use structure assignment for
8251 copying input events. Record all Lisp objects referenced from
8252 events in kbd_buffer_gcpro.
8253 (kbd_buffer_get_event): Construct Lisp `help-echo' events
8254 differently from input events. Test for prefix menu_bar_events
8255 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
8256 event in kbd_buffer_gcpro to nil.
8257 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
8258 frame_or_window is equal to its arg member as prefix events.
8259 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
8260 used by an input event to nil.
8261 (init_keyboard): Use two times the size of the input queue
8262 for kbd_buffer_gcpro.
8263 (syms_of_keyboard): Likewise.
8264
52283633
SM
8265 * emacs.c (handle_USR2_signal, handle_USR1_signal):
8266 Use USER_SIGNAL_EVENT.
0f1a9b23
GM
8267
8268 * termhooks.h (struct input_event): Add member `arg'.
8269 (MENU_BAR_EVENT): Renamed from menu_bar_event.
8270 (USER_SIGNAL_EVENT): Renamed from user_signal.
8271
8272 * xfaces.c (ASET): Remove definition.
8273
8274 * lisp.h (AREF, ASET, ASIZE): New macros.
8275
8276 * fontset.c (AREF, ASIZE): Remove definitions.
8277
8278 * fns.c (AREF): Remove definition.
178c5d9c 8279
0f1a9b23
GM
8280 * composite.c (AREF): Remove definition.
8281
712eaef2
GM
82822000-07-12 Gerd Moellmann <gerd@gnu.org>
8283
d8ee7803
GM
8284 * dispnew.c (redraw_overlapped_rows): Add missing local.
8285 (scrolling_window): Remove debug code.
8286
712eaef2
GM
8287 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
8288 Before scrolling, turn off a mouse-highlight in the window
8289 being scrolled.
8290
8291 * xterm.c (x_update_window_end): Add parameter
8292 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
8293 redisplay in XTframe_up_to_date.
8294 (x_clear_mouse_face): New function.
8295 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
8296
8297 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
8298 current glyph row.
8299 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
8300 it when any row is written to that contains glyphs highlighted in
8301 mouse-face.
8302 (update_window): Call the window update end hook with new
8303 parameter MOUSE_FACE_OVERWRITTEN_P.
8304 (direct_output_for_insert): Give up if row contains mouse-face.
8305
8306 * dispextern.h (struct redisplay_interface): Add parameter
8307 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
8308 (clear_mouse_face): New function pointer member.
8309
02010917
SM
83102000-07-11 Stefan Monnier <monnier@cs.yale.edu>
8311
8312 * syntax.c (back_comment): Use one switch rather than a few `if's.
8313 Obey open_paren_in_column_0_is_defun_start.
8314 When reverting to the `slow' method, try to nicely handle the case
8315 of nested comments by checking that the comment-starter we found
8316 does indeed match the comment-ender.
8317 (scan_sexps_forward, scan_sexps_forward):
8318 Ignore excessive opening parenthesis rather than throwing an error.
8319
d76c03ea
GM
83202000-07-11 Gerd Moellmann <gerd@gnu.org>
8321
8322 * doc.c (Fsubstitute_command_keys): Handle case that a GC
8323 in Fwhere_is_internal or get_keymap_1 relocates string contents.
8324
8325 * dispnew.c (direct_output_forward_char): Give up if currently
8326 displaying a message instead of the minibuffer contents.
8327
8328 * xterm.c (x_update_window_begin): No need to turn off the mouse
8329 highlight here.
8330 (show_mouse_face): Set the mouse_face_p flag of glyph rows
52283633 8331 depending on whether they contain glyphs highlighted in mouse-face.
d76c03ea
GM
8332
8333 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
8334 compare the mouse_face_p flags of both rows.
8335
8336 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
8337
d55ead18
EZ
83382000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
8339
8340 * keyboard.c (show_help_echo): Accept additional parameter
8341 ok_to_overwrite_keystroke_echo.
8342 (read_char): Call show_help_echo with a zero
8343 ok_to_overwrite_keystroke_echo argument.
52283633 8344 * keyboard.h (show_help_echo): Update prototype of show_help_echo.
d55ead18
EZ
8345 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
8346 ok_to_overwrite_keystroke_echo argument.
8347 * w32menu.c (w32_menu_display_help): Call show_help_echo with
8348 non-zero ok_to_overwrite_keystroke_echo argument.
8349
df75b1a3
GM
83502000-07-10 Gerd Moellmann <gerd@gnu.org>
8351
4b92c49a
GM
8352 * xdisp.c (try_window_id): If changes are all below what is
8353 displayed in the window, and point is in the window, we still
8354 might have to find point on the display.
8355
8356 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
8357 glyphs instead of a single one.
8358 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
8359 with new argument list.
8360 (x_set_glyph_string_gc): Make sure the face's GC is valid.
8361
df75b1a3
GM
8362 * keymap.c (get_keymap_1): Add comment that this function can GC.
8363 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
8364 comment that functions can GC.
8365 (Fset_keymap_parent): GCPRO arg KEYMAP.
8366
4314cf3e
EZ
83672000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
8368
8369 * msdos.c (XMenuActivate): After exiting the menu, restore the
8370 echo area message and erase it.
8371
ab49ce15
KH
83722000-07-10 Kenichi Handa <handa@etl.go.jp>
8373
8374 * fontset.c (Ffontset_info): Make the return value more compatible
8375 with that of Emacs 20.
8376
090a072f
GM
83772000-07-07 Gerd Moellmann <gerd@gnu.org>
8378
8379 * eval.c (Fsignal): Handle case that backtrace_list is null.
8380
f92de4a6
KH
83812000-07-07 Kenichi Handa <handa@etl.go.jp>
8382
8383 * ccl.c (Fccl_execute): Typo fixed.
8384
dd8888a1
GM
83852000-07-06 Gerd Moellmann <gerd@gnu.org>
8386
e5c81191 8387 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 8388
dd8888a1
GM
8389 * window.c (Fwindow_list): Reverse list at the end.
8390 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
8391 means allow windows on OWINDOW's frame, only.
8392 (window_loop): Simplified; use Fwindow_list.
8393
8394 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
8395
485266d0
GM
83962000-07-05 Gerd Moellmann <gerd@gnu.org>
8397
8398 * xterm.c (XTread_socket): Increment handling_signal at the start,
8399 decrement it at the end.
8400
8401 * eval.c (handling_signal): New variable.
8402 (Fsignal): Abort if handling_signal is non-zero.
8403
8404 * lisp.h (handling_signal): External declaration.
178c5d9c 8405
485266d0
GM
8406 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
8407
80fcd514
KR
84082000-07-05 Ken Raeburn <raeburn@gnu.org>
8409
8410 Sound support for NetBSD through "Linux emulation" support:
8411 * config.in (HAVE_SOUNDCARD_H): Undef.
8412 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
8413 * Makefile.in (LIBSOUND): New variable.
8414 (LIBES): Include it.
52283633
SM
8415 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>.
8416 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere.
80fcd514
KR
8417 (vox_open): Use DEFAULT_SOUND_DEVICE.
8418 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
8419
d5c5cddd
GM
84202000-07-05 Gerd Moellmann <gerd@gnu.org>
8421
8422 * print.c (print_error_message): If Vsignaling_function is set,
8423 show it in *Messages*.
8424
8425 * lisp.h (Vsignaling_function): External declaration.
8426
8427 * eval.c (Vsignaling_function): New variable.
8428 (Fsignal): Compute it.
8429 (syms_of_eval): Staticpro it.
8430
65171e3a
DL
84312000-07-05 Dave Love <fx@gnu.org>
8432
8433 * syswait.h: Use the autoconf recommended approach. Old code
8434 #if'd out in case we need to revert.
8435
178c5d9c 8436 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 8437
e2c46326
AI
84382000-07-05 Andrew Innes <andrewi@gnu.org>
8439
8440 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
8441 when non-NULL instead of __morecore, to take account of buffer
8442 memory. This also solves a problem with spurious memory warnings
8443 on Windows.
8444
8445 * ralloc.c: Make real_morecore non-static.
8446
8447 * eval.c (internal_condition_case): Comment out abort if
8448 interrupt_input_blocked is not zero.
8449
8450 * makefile.nt: Add support for `bootstrap' and related targets.
8451 Include minimal debug info in emacs.exe in release build.
8452 Remove all dependencies on lisp.h, and fixup some others.
8453
8454 * w32.c (init_environment): Install code from 20.7 for providing
8455 default values for environment variables, based on the
8456 executable's own location.
52283633 8457 (map_w32_filename): Handle filenames that are longer than MAX_PATH.
e2c46326
AI
8458 (sys_socket): Install socket inheritance bug fix from 20.7.
8459
8460 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
8461 here via blockinput.h).
8462
a027a91b
SM
84632000-07-05 Stefan Monnier <monnier@cs.yale.edu>
8464
e4b31601
SM
8465 * w32menu.c (w32_menu_display_help):
8466 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
8467
8468 * keyboard.h (show_help_echo): Declare.
8469
8470 * keyboard.c (show_help_echo): New function, extracted from read_char.
8471 Feval its `msg' argument if it's a cons cell.
8472 (read_char): Use it.
4cf8d9d5 8473 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 8474
178c5d9c 8475 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 8476 (note_tool_bar_highlight, XTread_socket):
178c5d9c 8477 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
8478 (dos_rawgetc):
8479 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
8480 (note_tool_bar_highlight, w32_read_socket):
8481 Do not gratuitously ignore non-string `help-echo' properties.
8482
88d75730
GM
84832000-07-05 Gerd Moellmann <gerd@gnu.org>
8484
969f7e79
GM
8485 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
8486
71201b00
GM
8487 * window.c (delete_all_subwindows): Reset Vwindow_list.
8488
88d75730
GM
8489 * xterm.c (x_append_glyph, x_append_composite_glyph)
8490 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
8491 changes in struct glyph starting 1999-12-27. Some bit-fields of
8492 struct glyph were not set, which made glyphs unequal when compared
8493 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
8494 effects were the result. This also depended on the contents of
8495 memory returned by xmalloc. If flickering happens again, activate
8496 the code in clear_glyph_row that's in #if 0. If the flickering is
52283633 8497 gone with that, chances are that it is caused by something similar.
88d75730
GM
8498
8499 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 8500
88d75730
GM
8501 * dispextern.h: Add some comments.
8502
8503 * window.c (add_window_to_list): Add parameter LIST.
8504 (window_list): Order list so that, for each frame, windows are
8505 in canonical order, and so that frames appear in the list in
8506 the order given by Vframe_list.
8507 (next_window): Reverse the handling of NEXT_P.
8508
53654733
GM
85092000-07-04 Gerd Moellmann <gerd@gnu.org>
8510
87efd256
GM
8511 * window.c (Vwindow_list): New variable.
8512 (make_window, delete_window): Set Vwindow_list to nil.
8513 (check_window_containing): New function.
8514 (window_from_coordinates): Rewritten.
8515 (add_window_to_list, window_list, candidate_window_p)
8516 (decode_next_window_args, next_window): New functions.
52283633 8517 (Fnext_window, Fprevious_window): Rewritten in terms of next_window.
87efd256
GM
8518 (Fwindow_list): New function.
8519 (Fother_window): Cleaned up.
8520 (foreach_window): Add a longer "variable argument list". Let
8521 callback function return 0 to indicate that cycling over windows
8522 should stop.
8523 (foreach_window_1): Likewise.
8524 (freeze_window_start): Return int.
8525 (init_window): New function.
8526 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
8527
8528 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
8529 input_event with bzero.
8530 (main): Call init_window.
8531
53654733
GM
8532 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
8533 a menu filter.
8534
4a8c194f
KH
85352000-07-04 Kenichi Handa <handa@etl.go.jp>
8536
8537 * composite.h (make_composition_value_copy): Extern it.
8538
8539 * composite.c (make_composition_value_copy): New function.
8540
8541 * editfns.c (Fformat): While copying text properties, make each
8542 composition property value a copy.
8543
8544 * fns.c (concat): While copying text properties, make each
8545 composition property value a copy.
8546
831a6cb0
GM
85472000-07-03 Gerd Moellmann <gerd@gnu.org>
8548
2f516940
GM
8549 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
8550
178c5d9c 8551 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
8552 marked already.
8553
831a6cb0
GM
8554 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
8555 include those frames as candidates which have their focus
8556 redirected to the minibuffer frame.
8557
d9c4f922
SM
85582000-07-03 Stefan Monnier <monnier@cs.yale.edu>
8559
8560 * fns.c (Fputhash): Return `value' rather than nil.
8561
3780bc22
GM
85622000-06-30 Gerd Moellmann <gerd@gnu.org>
8563
97d176db
GM
8564 * frame.c (next_frame): Don't check focus redirection in case
8565 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
8566 unless their focus is redirected, which contradicts the
8567 specification of next-frame, and leads to infinite loops in
8568 certain situations when cycling through windows with next-window.
8569
dca9961d
KH
85702000-06-30 Kenichi Handa <handa@etl.go.jp>
8571
8572 * coding.c (code_convert_region): Even if the length of text is
8573 zero, try to convert it if coding->type is coding_type_ccl.
8574 (decode_coding_string, encode_coding_string): Likewise.
8575
d5483ab1
GM
85762000-06-28 Gerd Moellmann <gerd@gnu.org>
8577
af5c25e1 8578 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 8579 the display if windows_or_buffers_changed.
af5c25e1
GM
8580
8581 * dispnew.c (struct row_entry): New structure.
8582 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
8583 (row_table_size, old_lines, new_lines, old_lines_size)
8584 (new_lines_size, run_pool, runs_size, runs): New variables.
8585 (add_row_entry): New function.
8586 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 8587 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
8588 holding them in local variables. Use a larger hash table whose
8589 size depends on glyph matrix sizes. Don't use bzero to clear the
8590 hash table; instead, clear used slots only.
8591
8592 * fns.c (next_almost_prime): Make it externally visible.
8593
8594 * lisp.h (next_almost_prime): Add prototype.
8595
d5483ab1
GM
8596 * s/isc4-0.h (sigunblock): Define.
8597
8598 * s/sco5.h (sigunblock): Define.
8599
93e40f40
DL
86002000-06-27 Dave Love <fx@gnu.org>
8601
8602 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
8603 (moved to osf5-0.h).
8604 [!NOT_C_CODE]: Protect string.h stuff.
8605
8606 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
8607 (sys_siglist, NSIG): Definitions moved here from osf1.h.
8608
3c4b7685
GM
86092000-06-27 Gerd Moellmann <gerd@gnu.org>
8610
97d176db 8611 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
8612 below the last line from the needed window height.
8613
32cad0aa
SM
86142000-06-26 Stefan Monnier <monnier@cs.yale.edu>
8615
8616 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
8617 (Fwidget_get): Use it.
8618 (syms_of_fns): Defsubr it.
8619
2c69ced2
GM
86202000-06-26 Gerd Moellmann <gerd@gnu.org>
8621
178c5d9c 8622 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
8623 display info for XIM.
8624 (xim_open_dpy): Likewise.
8625 (xim_close_dpy): Don't free the display info's XIM.
8626
8627 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
8628
8629 * config.in (USE_XIM): New define.
8630
3fc720e4
GM
8631 * keymap.c (get_keyelt): For menu-items containing a `:filter
8632 FILTER', apply FILTER to the menu-item's definition to get the
8633 real definition to use.
8634
8635 * lisp.h (QCfilter): External declaration.
8636
2c69ced2
GM
8637 * xfns.c (Fimage_size): New function.
8638 (syms_of_xfns): Defsubr it.
8639
f978b2a2
AS
86402000-06-26 Andreas Schwab <schwab@suse.de>
8641
8642 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
8643 Fstring_as_unibyte.
8644
94cc7892
DL
86452000-06-25 Dave Love <fx@gnu.org>
8646
52283633 8647 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum.
94cc7892
DL
8648
8649 * Makefile.in (blockinput.h): Depend on atimer.h.
8650 (atimer.h): Depend on systime.h.
8651
52283633 8652 * blockinput.h: Protect against multiple inclusion. Include atimer.h.
94cc7892 8653
52283633 8654 * atimer.h: Protect against multiple inclusion. Include systime.h.
94cc7892
DL
8655
8656 * lisp.h (swap_in_global_binding): Declare.
8657
b8c24556
KR
86582000-06-24 Ken Raeburn <raeburn@gnu.org>
8659
8660 * process.c (Fopen_network_stream): Turn off atimers for duration
8661 of call to connect. (Patch from Gerd.)
8662
8cf8560b
DL
86632000-06-23 Dave Love <fx@gnu.org>
8664
511c7541
DL
8665 * ralloc.c: Maybe include unistd.h
8666
8cf8560b
DL
8667 * emacs.c (setgrp): Undefine before defining.
8668 (malloc_warning, set_time_zone_rule, index): Prototype.
8669
8670 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
8671 HAVE_STRUCT_TIMEZONE.
8672
8673 * s/osf1.h: Move string.h hack here from alpha.h and make it
8674 conditional.
8675 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
8676 _XOPEN_SOURCE.
8677 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
8678 (SOCKLEN_TYPE): Don't define.
8679
8680 * m/alpha.h: Remove string.h hack.
8681
8682 * s/osf5-0.h: New file.
8683
8684 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
8685 include time.h, done by systime.h.
8686 [__FreeBSD__]: Remove redundant includes.
8687
3fc720e4 8688 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
8689 (delete_temp_file): Return Qnil to avoid warning.
8690
8691 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
8692
8693 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
8694 HAVE_X_WINDOWS.
8695
8696 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
8697
8698 * composite.h (compose_text): Declare.
8699
8700 * xterm.c: Don't include sys/types.h unconditionally. Don't
8701 protect its inclusion with !USG (following xmenu.c).
8702
ea055732
GM
87032000-06-23 Gerd Moellmann <gerd@gnu.org>
8704
8705 * xfns.c (x_create_tip_frame): Initialize frame's colors like
8706 in x_create_frame.
8707
74b01b80
EZ
87082000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
8709
8710 * coding.c (decode_eol_post_ccl): Special handling for undecided
8711 and inconsistent EOL types.
8712
64f3a166
GM
87132000-06-22 Gerd Moellmann <gerd@gnu.org>
8714
16cf31f7
GM
8715 * xrdb.c (x_load_resources): Add default resource for scroll bar's
8716 trough color and main window's background color.
8717
52283633 8718 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently.
16cf31f7
GM
8719
8720 * xterm.h (Xt_app_con): External declaration.
8721
8722 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 8723
486a103d
GM
8724 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
8725
64f3a166
GM
8726 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
8727 (handle_invisible_prop): Record the start of invisible text in
8728 it->add_overlay_start.
8729 (struct overlay_entry): Add member `overlay'.
8730 (handle_overlay_change): Simplify.
8731 (next_overlay_string): After having processed overlay strings at the
8732 end of the buffer, record that fact in
8733 it->overlay_strings_at_end_processed_p.
8734 (compare_overlay_entries): If before- and after-strings come
8735 from the same overlay, let before-strings come first.
8736 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
8737 (load_overlay_strings): Take it->add_overlay_start into account
8738 when adding overlay strings.
8739
8740 * dispextern.h (struct it): Add member add_overlay_start.
8741
bb746ea6
DL
87422000-06-22 Dave Love <fx@gnu.org>
8743
8744 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
8745
8746 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
8747
a8f573f3
KH
87482000-06-22 Kenichi Handa <handa@etl.go.jp>
8749
8750 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
8751 is greater than 0.
8752
9f2bbc92
DL
87532000-06-21 Dave Love <fx@gnu.org>
8754
178c5d9c 8755 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 8756
3ee5041c
SM
87572000-06-21 Stefan Monnier <monnier@cs.yale.edu>
8758
8759 * syntax.c (back_comment): Simplify string-parity counting (with
8760 the added benefit of handling multiple string-styles as long as
8761 they are not intertwined).
8762 Jump to the slow code as soon as a comment starter is found in
8763 a "string_lossage" position. Fixes the case: " /* " /* " */.
8764
4c343001
DL
87652000-06-21 Dave Love <fx@gnu.org>
8766
8767 * Makefile.in: Use GETLOADAVG_LIBS.
8768
8769 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
8770 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
8771
e6365855
SM
87722000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8773
8774 * syntax.c (describe_syntax): Recognize the `n'estable bit.
8775 (Fforward_comment, scan_lists):
8776 Check the comstyle of single-char comment-starters.
8777 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
8778 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
8779 Check the comstyle of single-char comment-starters.
8780 Clarify control-flow around the Scomment case.
e6365855 8781
5700d2cc
DL
87822000-06-20 Dave Love <fx@gnu.org>
8783
d355bd8a
SM
8784 * fns.c (make_hash_table, maybe_resize_hash_table):
8785 Cast arg of next_almost_prime.
5700d2cc 8786
178c5d9c 8787 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
8788
8789 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
8790 and unistd.h.
8791
4a27bdfb
GM
87922000-06-20 Gerd Moellmann <gerd@gnu.org>
8793
a61d762c 8794 * keyboard.c (adjust_point_for_property): Check if display
52283633 8795 property should be treated as intangible by looking at its value.
a61d762c 8796
178c5d9c 8797 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
8798 (display_prop_intangible_p): New functions.
8799
8800 * dispextern.h (display_prop_intangible_p): Add prototype.
8801
8802 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 8803
4a27bdfb
GM
8804 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
8805 argument to sigprocmask.
8806
8807 * s/sco5.h (sigblock): Redefined to pass a pointer as second
8808 argument to sigprocmask.
8809
8810 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
8811 sigprocmask_set, and pass a pointer to it to sigprocmask.
8812
8813 * sysdep.c (sigprocmask_set): New variable.
8814
8815 * fileio.c (make_temp_name): Don't use `%s' in string passed to
8816 report_file_error.
8817
427ec082
SS
88182000-06-20 Sam Steingold <sds@gnu.org>
8819
8820 * xrdb.c: Don't declare xmalloc, xrealloc.
8821
8972fe79 88222000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
8823
8824 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
8825 (re_comp): Cast gettext return value to avoid complaints when
8826 !HAVE_LIBINTL.
8827
074b6efe
DL
88282000-06-20 Dave Love <fx@gnu.org>
8829
52283633 8830 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY.
f85c008a 8831
5700d2cc 8832 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 8833
d355bd8a 8834 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
8835
8836 * m/alpha.h: Don't declare xmalloc, xrealloc.
8837
0af4f205
DL
8838 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
8839
8840 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
8841
8842 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
8843
8844 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
8845 HAVE_GETWD.
8846
074b6efe
DL
8847 * keyboard.h (poll_for_input_1): Declare.
8848
8849 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
8850
8851 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
8852
8853 * doprnt.c: Don't declare xmalloc, xrealloc.
8854
8855 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
8856 (getenv, ctime, getwd): Removed.
8857 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
8858
8859 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
8860 x_set_tool_bar_lines.
8861
8862 * config.in: Add HAVE_GETWD. Move some definitions above
8863 machine/system includes.
8864
68a5e97b
KH
88652000-06-20 Kenichi Handa <handa@etl.go.jp>
8866
95417e1e
KH
8867 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
8868
68a5e97b
KH
8869 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
8870 contain information about ENCODING.
8871
8872 * fontset.c (FONTSET_ASCII): Use the first element of char table
8873 for an ASCII font, not defalt slot.
8874 (fontset_ref_via_base): If FONTSET doesn't contain information for
8875 C, try the default fontset.
8876 (make_fontset): Don't copy the default fontset.
8877 (fontset_font_pattern): Likewise.
8878 (accumulate_font_info): If ELT is nil, use the corresponding
8879 element in the default fontset.
8880
3b4fa1b2
DL
88812000-06-19 Dave Love <fx@gnu.org>
8882
943e731c
DL
8883 * syntax.c (Fparse_partial_sexp): Doc fix.
8884
8885 * regex.h: Test PROTOTYPES as well as __STDC__.
8886
3b4fa1b2
DL
8887 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
8888 errno, strerror. Put text after #endif in comment.
8889
52283633 8890 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc).
3b4fa1b2
DL
8891
8892 * xterm.c (x_frame_of_widget): Likewise.
8893
cdf0357b
GM
88942000-06-19 Gerd Moellmann <gerd@gnu.org>
8895
8896 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
8897 to Vfundamental_mode_abbrev_table.
8898
8899 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
8900 bogus objects are marked. This slows down GC by ~80 percent, but
8901 it might be worth trying when debugging GC-related problems.
8902 This feature requires conservative stack marking to be enabled.
8903
8904 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
8905 returns XLookupChars, reset `modifiers' to zero.
8906
998e9f8c
DL
89072000-06-19 Dave Love <fx@gnu.org>
8908
8909 * mktime.c: Unprotoized.
8910
18e21ce8 89112000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
8912
8913 * data.c (set_internal): If variable is frame-local,
8914 store the new value immediately into the frame parameter alist.
8915
140c4ac6
KR
89162000-06-19 Ken Raeburn <raeburn@gnu.org>
8917
14358466
KR
8918 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
8919 in the custom handler pointer.
8920
140c4ac6
KR
8921 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
8922 value, or checks for CHAR_META can fail when Lisp_Object is a
8923 union type.
8924 * keymap.c (get_keyelt): Likewise.
8925
10d7bf84
KH
89262000-06-19 Kenichi Handa <handa@etl.go.jp>
8927
8928 * ccl.h (struct ccl_program): New member eol_type.
8929 (struct ccl_spec): New member cr_carryover.
8930
8931 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
8932 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
8933
8934 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
8935 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
8936 (decode_eol_post_ccl): New function.
8937 (decode_coding): Don't detect EOL format here for CCL based coding
8938 systems.
8939 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
8940 decode_eol_post_ccl after running the CCL program.
8941 (code_convert_region): Don't detect EOL format here for CCL based
8942 coding systems.
8943 (decode_coding_string): Likewise.
8944
52e386c2
KR
89452000-06-18 Ken Raeburn <raeburn@gnu.org>
8946
8947 * charset.c (update_charset_table): Use XINT on "iso_final_char"
8948 when treating it as an integer.
8949
8950 * coding.h (encode_coding_string): Declare.
8951
8952 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
8953 it as an integer.
8954
8955 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
8956 "xkeymap" to avoid shadowing the "enum map_type" value that needs
8957 to be passed to get_local_map.
8958
8959 * sound.c (Fplay_sound): Don't call make_number on
8960 Frun_hook_with_args count argument.
8961
8962 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
8963 for lisp objects in X event structure data field, when lisp
8964 objects are represented with unions.
8965 (x_scroll_bar_to_input_event): Ditto.
8966
b357b9d4
KR
89672000-06-16 Ken Raeburn <raeburn@gnu.org>
8968
8969 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
8970 termination of string. Fix sense of test whether
8971 Vline_number_display_limit is an integer.
b357b9d4 8972
a871441d
GM
89732000-06-16 Gerd Moellmann <gerd@gnu.org>
8974
a9021acd
GM
8975 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
8976 only if HAVE_X_WINDOWS.
8977
6344985d
GM
8978 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
8979 of titles.
8980
427ec082 8981 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
8982 out of bounds.
8983
228b083e
EZ
89842000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
8985
8986 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
8987 of its headers.
8988
c25b53a2
KH
89892000-06-15 Kenichi Handa <handa@etl.go.jp>
8990
8991 * coding.c (decode_coding_emacs_mule): Always set src_base at the
8992 start of the while loop.
8993
a6981b11
GM
89942000-06-15 Gerd Moellmann <gerd@gnu.org>
8995
e9924e52
GM
8996 * atimer.c (alarm_signal_handler): Add forward declaration.
8997
a6981b11
GM
8998 * data.c (set_internal): Remove debug code.
8999
25fa6deb
GM
90002000-06-14 Gerd Moellmann <gerd@gnu.org>
9001
dce6b995
GM
9002 * Makefile.in (bootstrap-temacs): Add `-I../src'.
9003
9f817ea4
GM
9004 * unexec.c (toplevel) [COFF]: Include coff.h.
9005
9006 * s/lynxos.h: New file.
9007
9008 * keymap.c (Fsingle_key_description): Enclose function key and
9009 event symbol names in angle brackets.
9010
8a4e3c0c
GM
9011 * xdisp.c (setup_echo_area_for_printing): Call
9012 message_log_maybe_newline if message_buf_print is not set.
9013
9014 * print.c (printchar, strout): Don't check message_buf_print
427ec082 9015 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
9016 function does something useful even when message_buf_print is
9017 already set.
9018
52283633
SM
9019 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines):
9020 New variables.
25fa6deb
GM
9021 (ensure_echo_area_buffers): Initialize echo buffer's
9022 truncate lines setting to nil.
9023 (with_echo_area_buffer): Don't set the echo buffer's truncate
9024 lines setting here.
8a4e3c0c 9025 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
9026 of message_truncate_lines.
9027 (resize_mini_window): Handle case that lines are truncated.
52283633
SM
9028 (syms_of_xdisp): Initialize Qmessage_truncate_lines.
9029 DEFVAR_BOOL message-truncate-lines.
25fa6deb
GM
9030
9031 * keyboard.c (read_char): Bind message-truncate-lines to t
9032 while displaying a help-echo.
9033
9034 * lisp.h (Qmessage_truncate_lines): External declaration.
9035
163dcff3
GM
90362000-06-13 Gerd Moellmann <gerd@gnu.org>
9037
1681ead6
GM
9038 * xdisp.c (Vline_number_display_limit): Renamed from
9039 line_number_display_limit.
9040 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
9041 Extend documentation string. Initialize
9042 Vline_number_display_limit to nil meaning no limit.
9043 (decode_mode_spec): Use Vline_number_display_limit with its new
9044 meaning.
9045
163dcff3
GM
9046 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
9047
18e21ce8 90482000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
9049
9050 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 9051
163dcff3
GM
9052 * xfns.c (x_set_frame_parameters): Comment fix.
9053
9054 * frame.c (store_frame_param): Call swap_in_global_binding if the
9055 variable's current binding was chosen based on this frame.
9056
9057 * data.c (swap_in_global_binding): New function.
9058
a704139d
EZ
90592000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
9060
9061 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
9062 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
9063
9b6610db
EZ
90642000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
9065
9066 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
9067
c68833d2
JR
90682000-06-12 Jason Rumney <jasonr@gnu.org>
9069
9070 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
9071
9072 * w32.h (EMACS_W32_H): Renamed from _NT_H_
9073
9074 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
9075
9076 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
9077
ed1056b3
GM
90782000-06-12 Gerd Moellmann <gerd@gnu.org>
9079
9080 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
9081 (syms_of_xfaces): Defsubr Sdump_colors.
9082 (x_free_colors): Don't treat b&w specially on default visual.
9083 (x_free_dpy_colors): New function.
9084 (free_face_colors): Don't check visual class; it's done
9085 in x_free_colors.
9086
9087 * xterm.c (x_frame_of_widget): New function.
9088 (x_alloc_nearest_color_for_widget): Use it.
9089 (x_copy_dpy_color): New function.
9090 (x_destroy_window): Free various colors.
9091
5050a2ef
KH
90922000-06-12 Kenichi Handa <handa@etl.go.jp>
9093
9094 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
9095
9096 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
9097
9098 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
9099
9100 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
9101
9102 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
9103
fb1b041d
DL
91042000-06-11 Dave Love <fx@gnu.org>
9105
9106 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
9107
ff96b5f4
EZ
91082000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
9109
9110 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
9111
db8eeecd
GM
91122000-06-11 Gerd Moellmann <gerd@gnu.org>
9113
ed1056b3 9114 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
9115 to `XEvent *'.
9116
49b71c5f
KH
91172000-06-10 Kenichi Handa <handa@etl.go.jp>
9118
c479bd55
KH
9119 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
9120 (regex_compile): Fix the code for handling the case of single byte
9121 char and multibyte char being mixed in a range within [...].
9122
ff6a65c2
KH
9123 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
9124 and dst_multibyte members of coding.
9125
49b71c5f
KH
9126 * charset.c (update_charset_table): Update the table
9127 bytes_by_char_head.
9128 (init_charset_once): Initialize elements of bytes_by_char_head to
9129 1 except for leading codes for private charases.
9130
9131 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
52283633 9132 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
49b71c5f 9133
9e80b57d
KR
91342000-06-09 Ken Raeburn <raeburn@gnu.org>
9135
9136 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
9137 access the data it doesn't point to.
9138
f83fe4b4
GM
91392000-06-08 Gerd Moellmann <gerd@gnu.org>
9140
9141 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 9142 will be translated to a switch-frame event when reading the
f83fe4b4
GM
9143 event queue. This is necessary because Emacs otherwise won't
9144 perform a switch-frame to a new frame until some other event, for
9145 example a keystroke event, forces it to do so. This has various
9146 effects, one visible being that the cursor of a frame created with
9147 C-x 5 2 or switched to with a window manager key binding like
9148 A-TAB stays hollow because selected_window isn't on the newly
9149 focused frame until the switch-frame is performed.
9150
9151 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
9152 generating a switch-frame event if necessary.
9153
9154 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
9155
9156 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
9157 it's an integer.
9158
0890801b
KH
91592000-06-08 Kenichi Handa <handa@etl.go.jp>
9160
52283633 9161 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset.
0890801b 9162
173cbca8
GM
91632000-06-07 Gerd Moellmann <gerd@gnu.org>
9164
3091c2a6
GM
9165 * window.c (displayed_window_lines): Take empty lines at
9166 the bottom of a window into account.
427ec082 9167
f38952fe
GM
9168 * window.c (displayed_window_lines): New function.
9169 (Fmove_to_window_line): Use displayed_window_lines to determine
9170 the number of lines to move, instead of using the window's height.
9171
9172 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
9173 to stop reading, even if the form read sets point to a different
9174 value when evaluated.
9175
427ec082 9176 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
9177 put the cursor.
9178
6ba6c818
KH
91792000-06-07 Kenichi Handa <handa@etl.go.jp>
9180
9181 * fileio.c (e_write): Free composition data if stored in
9182 coding->cmp_data.
9183
5f1aea9a
GM
91842000-06-06 Gerd Moellmann <gerd@gnu.org>
9185
666852af
GM
9186 * xdisp.c (display_line): Set row's and iterator's
9187 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
9188 Set cursor even if row ends in the middle of a character.
9189 (dump_glyph_row): Print values of new flags.
9190 (redisplay_window) <cursor movement in unchanged window>: When
9191 point has been moved forward, and PT is at the end of the cursor
9192 row, don't place the cursor in the next row if the cursor row ends
9193 in the middle of a character or at ZV.
9194
9195 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
9196 (struct glyph_row): Add starts_in_middle_of_char_p and
9197 ends_in_middle_of_char_p.
9198 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
9199 ends_in_middle_of_char_p flag.
9200 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
9201
d13f3e2e
GM
9202 * term.c (append_glyph): Revert change of 2000-06-06.
9203
9204 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
9205 padding glyph not fitting on line as whole character not
9206 fitting on line.
9207
5f1aea9a
GM
9208 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
9209 this isn't true for images with `:ascent 100'.
9210
10cda9b0
KH
92112000-06-06 Kenichi Handa <handa@etl.go.jp>
9212
ed00559d
KH
9213 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
9214 as modified if it is originally unmodified.
9215
10cda9b0
KH
9216 * term.c (encode_terminal_code): Change the way to check if
9217 terminal coding does any conversion.
9218 (append_glyph): Set glyph->pixel_width correctly.
9219
9220 * xdisp.c (display_line): While checking line continuation, pay
9221 attention to a padding glyph.
9222
1969fae2
GM
92232000-06-05 Gerd Moellmann <gerd@gnu.org>
9224
9225 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
9226
162ccef4
DL
92272000-06-05 Dave Love <fx@gnu.org>
9228
f19f32dd
DL
9229 * xdisp.c: Include fontset.h.
9230
9231 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
9232
9233 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
9234
9235 * dispnew.c: Conditionally include term.h.
9236
9237 * coding.h: Declare code_convert_string_norecord.
9238
9239 * frame.h (struct frame): Use volatile unconditionally.
9240
9241 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
9242
9243 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
9244
9245 * systime.h: Protect against multiple inclusion.
9246 (timezone) [USG5_4]: Define as time_t.
9247
9248 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
9249 (Foptimize_char_table, make_temp_name): Declare.
9250
9251 * Makefile.in (xdisp.o): Depend on fontset.h.
9252
9253 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
9254
9255 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
9256 (Foptimize_char_table, make_temp_name): Declare.
9257
427ec082 9258 * s/irix4-0.h:
162ccef4
DL
9259 * s/irix5-0.h:
9260 * s/netbsd.h: Don't define autoconfiscated MATHERR.
9261
2082fe81
DL
92622000-06-02 Dave Love <fx@gnu.org>
9263
9264 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
9265
dcf671d2
GM
92662000-06-02 Gerd Moellmann <gerd@gnu.org>
9267
9268 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 9269 result face, set flags in that face indicating that colors may not
dcf671d2
GM
9270 be freed.
9271
9272 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
9273 glyph, use the ASCII NUL character to determine the face.
9274
d42122a3
DL
92752000-06-02 Dave Love <fx@gnu.org>
9276
9277 * sysdep.c: Conditionally include stdlib.h, unistd.h.
9278 (VFORK_RETURN_TYPE): Remove.
427ec082 9279
d42122a3
DL
9280 * config.in: Add NO_MATHERR.
9281
dd432f16
DL
92822000-06-01 Dave Love <fx@gnu.org>
9283
90aa4ea8
DL
9284 * cmds.c (internal_self_insert): Don't check
9285 Vbefore_change_function, Vafter_change_function.
9286
9287 * insdel.c (signal_before_change, signal_after_change): Likewise.
9288
9289 * buffer.c (Vbefore_change_function, Vafter_change_function):
9290 Variables and their initializations deleted.
9291
2330c9d4
DL
9292 * callint.c (Fcall_interactively): Doc fix.
9293
dd432f16
DL
9294 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
9295
bf9e8804
DL
92962000-05-31 Dave Love <fx@gnu.org>
9297
9298 * textprop.c: Revert last change -- duplicated.
9299
3694b4ab
GM
93002000-05-31 Gerd Moellmann <gerd@gnu.org>
9301
9302 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
9303 in #if 0.
9304
9305 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
9306
f14156cd
JR
93072000-05-31 Jason Rumney <jasonr@gnu.org>
9308
8119aab8
JR
9309 * search.c (Fre_search_forward, Fre_search_backward)
9310 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
9311
f14156cd
JR
9312 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
9313
4aab9be3
JR
93142000-05-30 Jason Rumney <jasonr@gnu.org>
9315
9316 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
9317 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
9318
52283633 9319 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member.
4aab9be3
JR
9320
9321 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
9322 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
9323 expand a nil default_filename.
9324
9325 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
9326 pointer to glyph_to_pixel_coords, not a frame.
9327
9328 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
9329 coding.h to dependencies.
9330
9331 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
9332
9333 * w32console.c (glyph_to_pixel_coords): Change first parameter to
9334 window pointer to be consistent with w32term.c and xterm.c.
9335
9336 * w32fns.c: Format and doc changes to bring closer to xfns.c.
9337 (VIETNAMESE_CHARSET): Define if not defined in system headers.
9338 (Qline_spacing, Qcenter): New variables.
9339 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
9340 (x_set_line_spacing): New function.
52283633 9341 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros.
4aab9be3
JR
9342 (x_specified_cursor_type): New function.
9343 (x_set_cursor_type): Use it.
9344 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
9345 and icon strings.
9346 (validate_x_resource_name, x_get_resource_string): Measure lengths
9347 of external strings in bytes.
9348 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
9349 GetTextExtentPoint32 with NULL title.
9350 (Fx_create_frame): Initialize Qline_spacing.
9351 (w32_load_system_font): Initialize font->double_byte_p.
9352 (x_to_w32_charset): Use Vw32_charset_info_alist.
9353 (Image, busy cursor, tooltip functions): Merged changes from
9354 xfns.c. Not yet functional on Windows.
9355
9356 * w32gui.h (W32FontStruct): Add double_byte_p member.
9357
9358 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
9359 (emacs_button_translation): Use it.
9360 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
9361 in `mask' to be set.
9362
9363 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
9364 menu strings.
9365
9366 * w32term.c: Format and doc changes to bring closer to xterm.c.
9367 (w32_char_font_type): New enum.
9368 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
9369 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
9370 (w32_encode_char): New function.
9371 (x_encode_char): Removed.
9372 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
9373 x_encode_char and w32_font_is_double_byte.
9374 (x_produce_image_glyph): Use image_ascent.
9375 (x_produce_glyphs): Use new version of w32_per_char_metric and
9376 handle NULL return value. Allow extra line spacing.
9377 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
9378 (w32_get_glyph_overhangs): Remove unicode_p param. Use
9379 w32_font_type member of glyph instead.
9380 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
9381 (fast_find_position): Make sure not to consider rows not visible
9382 in the window.
9383 (w32_read_socket) [WM_MENUSELECT]: Cannot call
9384 w32_menu_display_help with input blocked, as it can abort.
9385 (x_display_and_set_cursor): Choose cursor depending
9386 on buffer-local value of cursor_type.
9387 (x_draw_bar_cursor): Add parameter WIDTH.
9388
9389 * w32term.h (CP_DEFAULT): Define.
9390 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
9391
10fc3187
GM
93922000-05-30 Gerd Moellmann <gerd@gnu.org>
9393
9394 * search.c (Fre_search_forward, Fre_search_backward)
9395 (Fposix_search_backward, Fposix_search_forward): Doc fix.
9396
d0555360
KH
93972000-05-30 Kenichi Handa <handa@etl.go.jp>
9398
9399 * coding.c (detect_coding_iso2022): Fix code for checking
9400 CODING_CATEGORY_MASK_ISO_8_2.
9401
f1ad044f
SM
94022000-05-29 Stefan Monnier <monnier@cs.yale.edu>
9403
9404 * regex.c (PREFETCH_NOLIMIT): New function.
9405 (re_match_2_internal): Use it and adjust the end_match_2 logic.
9406
84ec3b4b
GM
94072000-05-29 Gerd Moellmann <gerd@gnu.org>
9408
66254a13
GM
9409 * syntax.c (find_defun_start): Move test for
9410 open_paren_in_column_0_is_defun_start outside of the loop.
9411
49e70dec
GM
9412 * xdisp.c (redisplay_window): Really switch buffers when
9413 displaying mode lines, and temporarily set selected_frame to the
9414 frame of the window that's redisplayed.
9415
84ec3b4b
GM
9416 * xfaces.c (free_realized_faces): Block/unblock input.
9417 (free_realized_multibyte_face): Ditto.
9418
869a3a14
DL
94192000-05-29 Dave Love <fx@gnu.org>
9420
9421 * textprop.c (Qkeymap): New variable.
9422 (syms_of_textprop): Intern it.
9423
9424 * keymap.c: Include intervals.h.
9425 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
9426
9427 * Makefile.in (keymap.o): Depend on intervals.h.
9428
9429 * keyboard.c (menu_bar_items, tool_bar_items)
9430 (Fexecute_extended_command): Deal with `keymap' property.
9431 (read_key_sequence): Track map from `keymap' property as well as
9432 `local_map'.
9433
9434 * intervals.c (get_local_map): Extra arg to allow looking for
9435 `keymap' too.
9436
9437 * intervals.h (map_property): New enum.
9438 (get_local_map): Extra arg using it.
9439 (Qkeymap): Declare.
9440
84ec3b4b 9441 * lisp.h (get_local_map): Don't declare here.
869a3a14 9442
89d0c844
KH
94432000-05-29 Kenichi Handa <handa@etl.go.jp>
9444
9445 * Makefile.in (callproc.o): Depend on composite.h.
9446
9447 * callproc.c: Include composite.h.
9448 (Fcall_process): Handle composition correctly.
9449
9450 * coding.h (coding_allocate_composition_data): Extern it.
9451 (coding_restore_composition): Likewise.
9452
9453 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
9454 yet allocated, finish decoding with result
9455 CODING_FINISH_INSUFFICIENT_CMP.
9456 (coding_allocate_composition_data): Make it non-static.
9457 (coding_restore_composition): Likewise.
9458
797a084a
EZ
94592000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
9460
9461 * charset.c (syms_of_charset): Revert last change.
9462
cf872af5
EZ
94632000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
9464
9465 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
9466 charsets as unibyte, with 1-column screen width. Sent by Kenichi
9467 Handa.
cf872af5 9468
5b1ae051
EZ
94692000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
9470
9471 * charset.c (syms_of_charset): Set width of character sets
9472 eight-bit-control and eight-bit-graphic to 1 column.
9473
34ec9ebe
GM
94742000-05-26 Gerd Moellmann <gerd@gnu.org>
9475
9476 * config.in (HAVE_SPEED_T): New define.
9477
9478 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
9479 `extern speed_t'.
9480
dd854dc2
DL
94812000-05-26 Dave Love <fx@gnu.org>
9482
9483 * coding.c (shrink_decoding_region): Initialize eol_conversion.
9484
9485 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
9486 (Fsubr_arity): New function.
9487 (syms_of_data): Install them.
9488
ba9f8f95
KH
94892000-05-26 Kenichi Handa <handa@etl.go.jp>
9490
0f3e0672
KH
9491 * charset.c (init_charset_once): Set the table bytes_by_char_head
9492 correctly.
9493
cebefb44
KH
9494 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
9495 the default fontset to what Emacs uses by default.
0f3e0672
KH
9496 (check_registry_encoding): This function deleted.
9497 (Fset_fontset_font): Remove the adhoc condition for the default
9498 fontset. Allow cons in FONTNAME.
cebefb44 9499
0f3e0672
KH
9500 * fns.c (map_char_table): Ignore char-table entries for
9501 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 9502
7a18af49
KR
95032000-05-25 Ken Raeburn <raeburn@gnu.org>
9504
9505 * emacs.c (main): Initialize keyboard syms before initializing
9506 window code, so face names are available.
9507
d2af47df
SM
95082000-05-25 Stefan Monnier <monnier@cs.yale.edu>
9509
9510 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
9511 of an anchor at the beginning of a shy-group.
9512
fc6a6a4e
GM
95132000-05-25 Gerd Moellmann <gerd@gnu.org>
9514
9515 * xdisp.c (handle_invisible_prop): Don't try to skip over
9516 invisible text if end of text is already reached.
9517
005f0d35
DL
95182000-05-25 Dave Love <fx@gnu.org>
9519
02513cdd
DL
9520 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
9521
005f0d35
DL
9522 * coding.c (encode_eol): Add null statement after label.
9523
89f6ca4e
EZ
95242000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
9525
9526 * w16select.c (Fw16_set_clipboard_data): Fix the change from
9527 2000-05-20.
9528
a4e1759e
KH
95292000-05-25 Kenichi Handa <handa@etl.go.jp>
9530
9531 * ccl.c (ccl_driver): Fix previous change.
9532
eacfd7fe
KH
95332000-05-25 Kenichi Handa <handa@etl.go.jp>
9534
46ab33a9
KH
9535 * coding.c (run_pre_post_conversion_on_str): Set point to the
9536 beginning of buffer before calling coding->post_read_conversion.
9537 (decode_coding_string): Give correct args to
9538 run_pre_post_conversion_on_str.
9539 (encode_coding_string): Likewise.
9540
eacfd7fe
KH
9541 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
9542 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
9543 eight-bit-graphic correctly.
9544
f8569325
DL
95452000-05-24 Kenichi HANDA <handa@etl.go.jp>
9546
9547 * fileio.c (Finsert_file_contents): Even if a file is not found,
9548 execute codes for setting up coding system. Call
9549 after-insert-file-functions unconditionally.
9550
04545643
GM
95512000-05-24 Gerd Moellmann <gerd@gnu.org>
9552
9553 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
9554 BSD_PGRPS are not defined.
9555
747d90ea
KH
95562000-05-24 Kenichi Handa <handa@etl.go.jp>
9557
9558 * charset.c (update_charset_table): Accept nil in LONG_NAME and
9559 DESCRIPTION.
9560 (syms_of_charset): Avoid building same strings.
9561
716e3b88
GM
95622000-05-23 Gerd Moellmann <gerd@gnu.org>
9563
9564 * lread.c (Fload): Add a comment about the meaning of
9565 Vuser_init_file being t.
9566
9567 * puresize.h (BASE_PURESIZE): Increase to 675000.
9568
9569 * s/gnu-linux.h (setpgrp): Don't define it here because this
9570 prevents compilation on GNU/Linux systems with glib 2.2.
9571
9572 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
9573 as setpgid.
427ec082 9574
9aeb39fa
EZ
95752000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
9576
9577 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
9578 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
9579 version.
9580 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
9581
29ced61b
KH
95822000-05-23 Kenichi Handa <handa@etl.go.jp>
9583
52283633 9584 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
0574a2ed 9585
3d80f24d
KH
9586 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
9587
52283633 9588 * term.c (encode_terminal_code): Set coding->src_multibyte properly.
3d80f24d 9589
29ced61b
KH
9590 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
9591
d7e00792
KH
95922000-05-22 Kenichi Handa <handa@etl.go.jp>
9593
c9d80d38
KH
9594 * keyboard.c (read_char): Allow character codes 128..255 to be
9595 handled by input-method-function.
9596
d7e00792
KH
9597 * insdel.c (adjust_markers_for_replace): Fix previous change.
9598 (adjust_after_replace): If PREV_TEXT is nil, call
9599 adjust_markers_for_insert, not adjust_markers_for_replace.
9600
087121cc 96012000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 9602
087121cc
GM
9603 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
9604 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
9605 [HAVE_GRANDPT]: Define.
9606 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
9607
9608 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
9609 like SYSV_PTYS.
9610
9611 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
9612
9613 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
9614
c9671f81
KH
96152000-05-20 Kenichi Handa <handa@etl.go.jp>
9616
9617 The following changes are to handle 8-bit characters in a
9618 multibyte buffer/string without facing with byte combining
9619 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
9620 eight-bit-graphic (for 0xA0..0xFF) are introduced.
9621
9622 * Makefile.in (fns.o): Depend on charset.h.
9623
9624 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
9625 convert it to unibyte.
9626 (make_string): Use parse_str_as_multibyte, not chars_in_text.
9627
9628 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
9629 apparent char boundary.
9630 (Fset_buffer_multibyte): Convert 8-bit characters in the range
9631 0x80..0x9F to/from multibyte form.
9632
9633 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
9634 to unibyte.
9635
9636 * callproc.c (Fcall_process): Always encode an argument string if
9637 it is multibyte. Setup src_multibyte and dst_multibyte members of
9638 process_coding properly.
ce75fd23 9639
c9671f81
KH
9640 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
9641 SPLIT_NON_ASCII_CHAR.
9642
9643 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
9644 as is.
9645 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
9646
52283633 9647 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables.
c9671f81 9648 (SPLIT_CHARACTER_SEQ): This macro deleted.
52283633 9649 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid.
c9671f81
KH
9650 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
9651 and eight-bit-graphic.
9652 (char_to_string): Likewise. Signal an error for too large
9653 character code.
9654 (char_printable_p): Return 0 for 8-bit characters.
9655 (update_charset_table): Update iso_charset_table only when a final
9656 character is non-negative.
9657 (find_charset_in_text): Renamed from find_charset_in_str.
9658 Arguments and return value changed. Callers changed.
9659 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
9660 be -1 if CHARSET is used only internally.
9661 (Fmake_char_internal): Handle new charsets; eight-bit-control and
9662 eight-bit-graphic.
9663 (Fcharset_after): Simplified.
9664 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
9665 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
9666 (multibyte_chars_in_text): Simplified by assuming there's no
9667 invalid multibyte sequence.
52283633
SM
9668 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
9669 (str_as_unibyte): New functions.
9670 (Fstring): Simpified by assuming that byte combining never happens.
c9671f81
KH
9671 (init_charset_once): Initialization for
9672 LEADING_CODE_8_BIT_CONTROL.
9673 (syms_of_charset): Intern and staticpro Qeight_bit_control and
9674 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
9675 eight-bit-control and eight-bit-graphic.
9676
52283633
SM
9677 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL)
9678 (CHARSET_8_BIT_GRAPHIC): New macros.
c9671f81
KH
9679 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
9680 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
9681 (CHARSET_REVERSE_CHARSET): Likewise.
9682 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
9683 eight-bit-graphic.
9684 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
9685 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
9686 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
9687 encounter an invalid multibyte sequence.
9688 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
9689 sequence is always valid.
9690 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
52283633 9691 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros.
c9671f81
KH
9692 (CHAR_STRING): For 8-bit characters, call char_to_string.
9693 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
9694 multibyte sequence is always valid.
9695 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
52283633
SM
9696 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte)
9697 (str_as_unibyte): Extern them.
c9671f81 9698 (BCOPY_SHORT): Fix a bug.
52283633 9699 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES.
c9671f81
KH
9700 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
9701 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
9702 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
9703
bd4bde7f 9704 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81 9705 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
52283633
SM
9706 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE)
9707 (EMIT_BYTES): New macros.
9708 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII)
9709 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
c9671f81
KH
9710 macros deleted.
9711 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
9712 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
9713 check the validity of multibyte sequence.
9714 (decode_coding_emacs_mule): New function.
9715 (encode_coding_emacs_mule): New macro.
9716 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
9717 the source.
9718 (DECODE_ISO_CHARACTER): Just return a character code.
9719 (DECODE_COMPOSITION_START): Set coding->result instead of result.
9720 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
9721 EMIT_CHAR to produced decoded characters. Exit the loop only by
9722 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
9723 block here.
9724 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
9725 only position codes for an invalid character.
9726 (encode_designation_at_bol): Return new destination pointer. 5th
9727 arg DSTP is changed to DST.
9728 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
9729 from the source by ONE_MORE_CHAR. Don't handle the case of last
9730 block here.
9731 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
9732 macros deleted.
52283633
SM
9733 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
9734 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
c9671f81
KH
9735 TWO_MORE_BYTES to fetch a byte from the source.
9736 (encode_eol): Pay attention to coding->src_multibyte.
9737 (detect_coding, detect_eol): Preserve members src_multibyte and
9738 dst_multibyte.
9739 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
9740 (encoding_buffer_size): Set magnification to 3 for all coding
9741 systems that require encoding.
9742 (ccl_coding_driver): For decoding, be sure that the result is
9743 valid multibyte sequence.
9744 (decode_coding): Initialize coding->errors and coding->result.
9745 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
9746 and raw-text, always call decode_eol. Handle the case of last
9747 block here. If not coding->dst_multibyte, convert the resulting
9748 sequence to unibyte.
9749 (encode_coding): Initialize coding->errors and coding->result.
9750 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
9751 and raw-text, always call encode_eol. Handle the case of last
9752 block here.
9753 (shrink_decoding_region, shrink_encoding_region): Detect cases
9754 that we can't skip data more rigidly.
9755 (code_convert_region): Setup src_multibyte and dst_multibyte
9756 members of coding. For decoding, if the buffer is multibyte,
9757 convert the source sequence to unibyte in advance. For encoding,
9758 if the buffer is multibyte, convert the resulting sequence to
9759 multibyte afterward.
9760 (run_pre_post_conversion_on_str): New function.
9761 (code_convert_string): Deleted and divided into the following two.
9762 (decode_coding_string, encode_coding_string): New functions.
9763 (code_convert_string1, code_convert_string_norecord): Call one of
9764 above.
9765 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
9766 MAKE_NON_ASCII_CHAR.
52283633
SM
9767 (Fset_terminal_coding_system_internal)
9768 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte
c9671f81
KH
9769 and dst_multibyte members.
9770 (init_coding_once): Initialize iso_code_class with new enum
9771 ISO_control_0 and ISO_control_1.
9772
9773 * coding.h (enum iso_code_class_type): Member ISO_control_code is
9774 devided into ISO_control_0 and ISO_control_1.
9775 (struct coding_system): New members src_multibyte, dst_multibyte,
9776 errors, and result. Delete member fake_multibyte.
9777 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
9778 nonzero.
9779 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
9780 nonzero.
9781
9782 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
9783 (Faset): Likewise.
9784
9785 * editfns.c (Fformat): Be sure to convert 8-bit characters to
9786 multibyte form.
9787 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
9788 combining occurs.
9789 (Ftranspose_region): Delete codes for handling byte combining.
9790
9791 * fileio.c (Finsert_file_contents): Setup src_multibyte and
9792 dst_multibyte members of coding. On handling REPLACE on unibyte
9793 buffer, convert the result of decode_coding to unibyte. On
9794 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 9795 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
9796 multibyteness of the source (buffer or string).
9797
9798 * fns.c (concat): Handle 8-bit characters correctly.
9799 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
9800 unibyte in the result.
9801 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
9802 valid multibyte form in the result.
9803 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
9804 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
9805 return -1, signal an error.
9806 (base64_encode_1): New arg MULTIBYTE. Get each character by
9807 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
9808 character is found, return -1.
9809 (Fbase64_decode_region): Delete codes for handling byte-combining.
9810 Treat each decoded byte as a unibyte character.
9811 (Fbase64_decode_string): Return unibyte string.
9812 (Fcompare_strings, concat, string_byte_to_char): Use
9813 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
9814 FETCH_STRING_CHAR_ADVANCE.
9815 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9816 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
9817
9818 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
9819 SPLIT_NON_ASCII_CHAR.
9820 (fontset_ref_via_base, fontset_set): Likewise
9821
9822 * insdel.c (adjust_markers_for_record_delete): Deleted.
9823 (adjust_markers_for_insert): Argument changed. Caller changed.
9824 (adjust_markers_for_replace): Likewise.
52283633
SM
9825 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error)
9826 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
c9671f81
KH
9827 (copy_text): Delete unused local varialbe c_save. For converting
9828 to multibyte, be sure to make all 8-bit characters in valid
9829 multibyte form.
9830 (count_size_as_multibyte): Handle 8-bit characters correctly.
52283633
SM
9831 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
9832 (adjust_after_replace, replace_range, del_range_2)
c9671f81 9833 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
52283633
SM
9834 (insert_1_both, insert_from_string_1, insert_from_buffer_1)
9835 (adjust_after_replace, replace_range, del_range_2) Delete codes for
c9671f81
KH
9836 handling byte combining.
9837 (adjust_before_replace): Deleted.
427ec082 9838
c9671f81
KH
9839 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
9840 SPLIT_NON_ASCII_CHAR.
9841 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
52283633 9842 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
9843 (Fkey_description): Likewise.
9844
9845 * lread.c (read1): On reading multibyte string, be sure to make
9846 all 8-bit chararacters in valid multibyte form.
9847 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
9848
9849 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
9850 unconditionally.
9851
9852 * process.c (Fstart_process): GCPRO current_dir before calling
9853 Ffind_operation_coding_system. Encode arguments here.
9854 (create_process): Don't encode arguments here. Setup
9855 src_multibyte and dst_multibyte members of struct coding.
9856 (read_process_output): Setup src_multibyte and dst_multibyte
9857 members of struct coding. If the output is to multibyte buffer,
9858 always decode the output of the process. Adjust the
52283633 9859 representation of 8-bit characters to the multibyteness of the output.
c9671f81
KH
9860 (send_process): Setup coding->src_multibyte according to the
9861 multibyteness of the source.
9862
52283633 9863 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
c9671f81
KH
9864 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
9865 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
9866
52283633 9867 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN.
c9671f81
KH
9868
9869 * w16select.c (Fw16_set_clipboard_data): Setup members
9870 src_multibyte and dst_multibyte of coding. Adjusted for the
9871 change for find_charset_in_str.
9872 (Fw16_get_clipboard_data): Likewise.
9873
9874 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
9875 dst_multibyte of coding.
9876 (x_to_w32_font): Likewise.
9877
9878 * w32select.c (Fw32_set_clipboard_data): Setup members
9879 src_multibyte and dst_multibyte of coding. Adjusted for the
9880 change for find_charset_in_str.
9881 (Fw32_get_clipboard_data): Likewise.
9882
9883 * xdisp.c (get_next_display_element): Handle 8-bit characters
9884 correctly.
52283633
SM
9885 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN.
9886 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
c9671f81
KH
9887
9888 * xselect.c (selection_data_to_lisp_data): Setup members
9889 src_multibyte and dst_multibyte of coding. Adjusted for the
9890 change for find_charset_in_str.
9891 (lisp_data_to_selection_data): Likewise.
9892
5f64c9e0
GM
98932000-05-19 Gerd Moellmann <gerd@gnu.org>
9894
52283633 9895 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer.
2b63d473 9896
5f64c9e0
GM
9897 * dispextern.h (Vimage_types): Add extern declaration.
9898
9899 * xdisp.c (Vimage_types): Moved here from xfns.c.
9900 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
9901
9902 * xfns.c (Vimages_types): Moved to xdisp.c.
9903 (syms_of_xfns): Move `image-types' to xdisp.c.
9904
9905 * w32fns.c (Vimage_types): Removed.
9906 (syms_of_w32fns): Remove `image-types'.
9907
813086ea
KH
99082000-05-18 Kenichi Handa <handa@etl.go.jp>
9909
9910 * fns.c (map_char_table): Pay attention to character number of
9911 charset. Check the validity of charset at the first level. For
9912 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
9913 the default value.
9914
9915 * fontset.c: Include "buffer.h".
9916 (fs_load_font): If the face has fontset, record the face ID in
9917 that fontset.
9918 (Finternal_char_font): New function.
9919 (accumulate_font_info): New function.
9920 (Ffontset_info): Rewritten for the new fontset implementation.
9921 (syms_of_fontset): Register Vdefault_fontset in the first element
9922 of Vfontset_table. Include Vdefault_fontset in
9923 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
9924 function.
9925
bdaebbf0
DL
99262000-05-16 Dave Love <fx@gnu.org>
9927
9928 * m/iris5d.h: Deleted -- unused.
9929
cb613bb8
GM
99302000-05-16 Gerd Moellmann <gerd@gnu.org>
9931
b15f3b77
GM
9932 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
9933 `invalid' instead of `illegal'.
9934
9935 * indent.c (Fmove_to_column): When ending within a tab, insert
9936 spaces first so that markers at the end of the tab get adjusted.
9937
835c1b36
GM
9938 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
9939 buffer list that wasn't selected in that frame.
9940
cb613bb8
GM
9941 * filelock.c (get_boot_time): To obtain an 8 char file name, which
9942 is needed on mescaline, use a 2 char prefix, and call
9943 make_temp_name with second arg non-zero.
9944
9945 * fileio.c (make_temp_name): New function, extracted from
9946 Fmake_temp_name.
9947 (Fmake_temp_name): Use it.
9948
f685bea9
EZ
99492000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
9950
52283633 9951 * window.c (coordinates_in_window): Subtract 1 when computing right_x.
f685bea9 9952
a1b8d58b
GM
99532000-05-15 Gerd Moellmann <gerd@gnu.org>
9954
9955 * Makefile.in (lisp): Add env.elc.
9956
9957 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
9958
a265079f
GM
99592000-05-12 Gerd Moellmann <gerd@gnu.org>
9960
9961 * search.c (Freplace_match): Handle case of `\N' in the
9962 replacement when there's no group N.
9963
da4496b6
GM
99642000-05-11 Gerd Moellmann <gerd@gnu.org>
9965
0ace421a
GM
9966 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
9967 of the message to message_dolog.
9968
1172eb8d
GM
9969 * keyboard.c (read_char): Don't clear current message for help
9970 events; let the code handling help events handle this. Change
9971 code detecting help events that should be ignored.
9972
da4496b6
GM
9973 * xdisp.c (handle_single_display_prop): Don't try to set PT if
9974 we're interating over a string.
9975
0623e40f
DL
99762000-05-09 Dave Love <fx@gnu.org>
9977
9978 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
9979 that offset before writing. Move gcpro region past call of
9980 Ffile_regular_p.
9981
bae2503b
DL
99822000-05-04 Dave Love <fx@gnu.org>
9983
9984 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
9985
ec82fb2f
GM
99862000-05-04 Gerd Moellmann <gerd@gnu.org>
9987
9988 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
9989 of inserted characters when BUF equals the current buffer, and PT
9990 is in front of or equal to FROM.
9991
cbf18892
GM
99922000-05-03 Gerd Moellmann <gerd@gnu.org>
9993
4ff40dd0
GM
9994 * xdisp.c (handle_single_display_prop): If display property value
9995 is invalid, or something not supported on the frame, restore
9996 iterator's position to what it was initially. Make sure to return
9997 0 for invalid and unsupported property values.
9998
cbf18892
GM
9999 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
10000 that x_per_char_metric returns null.
10001
1b0672c3
GM
100022000-05-02 Gerd Moellmann <gerd@gnu.org>
10003
576da55d
GM
10004 * xterm.h (struct face): Add forward declaration.
10005 (struct image): Ditto.
10006 (image_ascent): Add prototype.
10007
10008 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
10009 (x_draw_image_relief, x_draw_image_foreground_1): Call function
10010 image_ascent instead of using IMAGE_ASCENT.
10011
10012 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
10013 (IMAGE_ASCENT): Removed.
10014
10015 * xfns.c (Qcenter): New variable.
10016 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
10017 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
10018 (image_ascent): New function.
10019 (lookup_image): Recognize `:ascent center'.
10020 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
10021 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
10022 (xbm_load): Don't set image's ascent here.
10023 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
10024 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
10025 check ascent values here.
10026 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
10027 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
10028 (syms_of_xfns): Initialize Qcenter.
10029
1b0672c3
GM
10030 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
10031 to the limits, increase the limits.
10032
0d7811ed
KH
100332000-05-01 Kenichi Handa <handa@etl.go.jp>
10034
10035 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
52283633 10036 Check Vfont_encoding_alist against the full name of the opened font.
0d7811ed 10037
a943a5ca
GM
100382000-04-28 Gerd Moellmann <gerd@gnu.org>
10039
10040 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
10041 taller than the window.
10042
5dba1e29
KH
100432000-04-28 Kenichi Handa <handa@etl.go.jp>
10044
10045 * xfaces.c (realize_x_face): Fix the argument of the second
10046 xassert. BASE_FACE may not be a face for ASCII.
10047
353964e3
GM
100482000-04-27 Gerd Moellmann <gerd@gnu.org>
10049
c76e04a8
GM
10050 * print.c (print_object): Treat print-length < 0 as nil.
10051
10052 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
10053
10054 * s/freebsd.h (TERMCAP_OBJ): Removed.
10055 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
10056
10057 * lread.c (read1): Don't treat period followed by certain
10058 characters as symbol start.
10059
10060 * xfns.c (slurp_file): New function.
10061 (xbm_image_p): Handle case of in-memory XBM files.
10062 (xbm_scan): Rewritten to work on memory buffers instead of files.
10063 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
10064 Work on memory buffers instead of files. If DATA is null test
10065 if buffer looks like an in-memory XBM file.
10066 (xbm_load_image): Renamed from xbm_load_image_file. Work on
10067 memory buffers instead of files.
10068 (xbm_file_p): New function.
10069 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
10070
353964e3
GM
10071 * lread.c (end_of_file_error): New function.
10072 (read1): Call it instead of signaling `end-of-file' directly.
10073
427ec082 10074 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
10075 with Fprinc instead of Fprin1.
10076
24d744ac
KR
100772000-04-26 Ken Raeburn <raeburn@gnu.org>
10078
10079 * window.c (freeze_window_start): Check that minibuffer scroll
10080 window isn't nil before extracting the window structure pointer
10081 from it.
10082
10083 * undo.c (record_delete): If we hit the end of the undo list, stop
10084 picking elements apart.
10085
7464346d
GM
100862000-04-26 Gerd Moellmann <gerd@gnu.org>
10087
10088 * xdisp.c (display_line): If lines are continued, restore
10089 iterator's ascent/descent information to the values before the
10090 first glyph not fitting on the line.
10091
612839b6
GM
100922000-04-25 Gerd Moellmann <gerd@gnu.org>
10093
10094 * xdisp.c (try_window_id) <all changes above window start>: Adjust
52283633 10095 positions in glyph matrix. Don't compute new window end positions.
612839b6
GM
10096
10097 * dispnew.c (increment_matrix_positions): Renamed from
10098 increment_glyph_matrix_buffer_positions.
10099 (increment_row_positions): Renamed from
10100 increment_glyph_row_buffer_positions.
10101
10102 * dispextern.h: Change names of renamed functions from dispnew.c
10103 in prototypes.
10104
cc181e95
GM
101052000-04-24 Gerd Moellmann <gerd@gnu.org>
10106
abfcc168
GM
10107 * fileio.c (Fdo_auto_save): Create directories for auto-save
10108 list file if necessary.
10109
cc181e95
GM
10110 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
10111 from buffer or frame.
10112 (automatic_hscrolling_p): New variable.
10113 (hscroll_windows): Scroll windows horizontally only if automatic
10114 hscrolling is allowed.
10115 (syms_of_xdisp): New variable `automatic-hscrolling'.
10116
10117 * frame.h (struct frame): Add member extra_line_spacing.
10118
10119 * xfns.c (x_set_line_spacing): New function.
10120 (Fx_create_frame): Set line spacing from resources.
10121 (Qline_spacing): New variable.
10122 (syms_of_xfns): Initialize Qline_spacing.
427ec082 10123
cc181e95
GM
10124 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
10125
10126 * buffer.c (init_buffer_once): Handle extra_line_spacing.
10127 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 10128 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
10129 extra_line_spacing from default value.
10130 (init_buffer_once): Initialize default value of extra_line_spacing.
10131
10132 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
10133 and extra3.
10134
10135 * xterm.c (x_produce_glyphs): Remove reference to struct it's
10136 prompt_width. Add extra line spacing.
10137
10138 * term.c (produce_glyphs): Remove reference to struct it's
10139 prompt_width.
10140
10141 * dispextern.h (struct it): Remove member prompt_width, add
10142 extra_line_spacing.
10143
58827478
GM
101442000-04-22 Gerd Moellmann <gerd@gnu.org>
10145
10146 * dispnew.c (update_frame_line): When writing a whole line, make
10147 sure cursor is in the right row afterwards, otherwise a use of
10148 capability `ch' in cmgoto might leave the cursor in the row below.
10149
25a87f42
GM
101502000-04-21 Gerd Moellmann <gerd@gnu.org>
10151
10152 * lisp.h (struct Lisp_Buffer_Cons): Remove.
10153
10154 * keyboard.c (timer_check): Fix typo in comment.
10155
54edf5c2
KH
101562000-04-21 Kenichi Handa <handa@etl.go.jp>
10157
10158 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
10159 name change: ch -> character.
10160
3a64eef5
GM
101612000-04-20 Gerd Moellmann <gerd@gnu.org>
10162
10163 * keyboard.c (echo_message_buffer): New variable.
10164 (echo_now): Set echo_message_buffer to the echo area buffer used
10165 to display the echo.
10166 (cancel_echoing): Reset echo_message_buffer to nil.
10167 (read_char): Code rewritten that handles canceling an echo or
10168 echoing a dash, respectively.
10169
10170 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
10171 directory doesn't exist.
10172
6142fdcb
DL
101732000-04-19 Dave Love <fx@gnu.org>
10174
10175 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
10176 (concat): Don't allow numeric args.
10177 (Fconcat): Doc change.
6142fdcb 10178
ac6b5352
SM
101792000-04-19 Stefan Monnier <monnier@cs.yale.edu>
10180
10181 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
10182 instead define end_match(1|2) more carefully.
10183 Use GET_CHAR_BEFORE_2 for `begline'.
10184
cb9215e4
GM
101852000-04-19 Gerd Moellmann <gerd@gnu.org>
10186
5e3dac3f
GM
10187 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
10188 on 64-bit systems where NULL is defined as `0'.
10189
10190 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
10191 the `variable argument list' to make it work on Alpha.
10192
cb9215e4
GM
10193 * m/alpha.h (_LP64) [!_LP64]: Define.
10194 (ORDINARY_LINK): Define for NetBSD.
10195
10196 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 10197
f532dca0
DL
101982000-04-19 Dave Love <fx@gnu.org>
10199
c750667e
DL
10200 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
10201 change.
10202
10203 * Makefile.in (LIBS): Don't use.
10204 (GETLOADAVG_OBJ): Define again.
10205 (otherobj): Add GETLOADAVG_OBJ.
10206
f532dca0
DL
10207 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
10208
1c7e22fd
GM
102092000-04-18 Gerd Moellmann <gerd@gnu.org>
10210
f6d3257b
GM
10211 * lread.c (read_filtered_event): Cancel and start busy cursor.
10212
427ec082 10213 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
10214 that the per-character metrics may be null.
10215
e10f64e7
GM
102162000-04-17 Gerd Moellmann <gerd@gnu.org>
10217
0daee095
GM
10218 * buffer.c (clone_per_buffer_values): New function.
10219 (Fmake_indirect_buffer): Add optional argument CLONE. Call
10220 clone_per_buffer_values if CLONE is not nil.
10221
e10f64e7
GM
10222 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
10223
38687d43
DL
102242000-04-16 Dave Love <fx@gnu.org>
10225
10226 * Makefile.in: Remove obsolete localcpp stuff.
10227 (GETLOADAVG_OBJ): Don't define.
10228 (obj): Move LIBOBJS...
10229 (otherobj): ... to here.
10230 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
10231 whitespace-only lines after the continuation (Irix).
10232
c21c7262
GM
102332000-04-14 Gerd Moellmann <gerd@gnu.org>
10234
10235 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
10236
10237 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
10238
314767c0
DL
102392000-04-14 Dave Love <fx@gnu.org>
10240
10241 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
10242 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
10243 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
10244 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
10245 NLIST_STRUCT.
10246
10247 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
10248 autoconfiscated HAVE_GETLOADAVG.
10249
10250 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
10251 BROKEN_MKTIME.
10252
a2522dca
GM
102532000-04-14 Gerd Moellmann <gerd@gnu.org>
10254
10255 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
52283633 10256 (fill_in_lock_file_name): Avoid existing files that aren't links.
a2522dca 10257
33744b5d
DL
102582000-04-14 Dave Love <fx@gnu.org>
10259
c21c7262 10260 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
10261 (INTERVAL_SRC): Convert to make variable.
10262 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
10263 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
10264 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
10265 add LIBOBJS.
10266 (SOME_MACHINE_OBJECTS): Remove interval stuff.
10267 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
10268 (shortlisp): Add facemenu, float-sup, frame.
10269 (SOME_MACHINE_LISP): Remove them from here.
10270 (LIBES): Change unused LDLIBS to autoconf LIBS.
10271
10272 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
10273
9d3d5916
KH
102742000-04-14 Kenichi Handa <handa@etl.go.jp>
10275
10276 * composite.c (update_compositions): If FROM and TO are not in a
10277 valid range, do nothing.
10278
198e3c7a
GM
102792000-04-13 Gerd Moellmann <gerd@gnu.org>
10280
52283633 10281 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier.
198e3c7a 10282
52283633 10283 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o.
198e3c7a
GM
10284
10285 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
10286 as TERMCAP_OBJ.
10287
055a28c9
EZ
102882000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
10289
10290 * fileio.c (a_write): Remove redundant semi-colons.
10291 (e_write): Return -1 if failed to write all the data.
10292 This fixes the changes made at 1999-12-15.
10293
f5c75033
DL
102942000-04-12 Dave Love <fx@gnu.org>
10295
10296 * fns.c (mapcar1): Test for null vals to support mapc.
10297 (Fmapc): New function.
10298
0c3cfc51
EZ
102992000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
10300
10301 * msdos.c (NUM_MOUSE_BUTTONS): Define.
10302 (IT_frame_up_to_date): Support the buffer local value of
10303 cursor-type, if defined.
10304
33465a31
DL
103052000-04-10 Dave Love <fx@gnu.org>
10306
10307 * editfns.c (preceding-char, following-char): Doc fix.
10308
6ed56568
KR
103092000-04-10 Ken Raeburn <raeburn@gnu.org>
10310
10311 * Makefile.in (temacs): Revert 2000-03-12 change.
10312
7cf80d4e
JR
103132000-04-10 Jason Rumney <jasonr@gnu.org>
10314
10315 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
10316
34f3f342
GM
103172000-04-10 Gerd Moellmann <gerd@gnu.org>
10318
1a1b1895
GM
10319 * xdisp.c (setup_echo_area_for_printing): Choose an echo
10320 area buffer, if it's not set up yet.
10321
34f3f342
GM
10322 * indent.c (compute_motion): Set immediate_quit.
10323
be0dbdab
GM
103242000-04-09 Gerd Moellmann <gerd@gnu.org>
10325
52283633 10326 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable.
c45be9ac
GM
10327 (realize_tty_face): Suppress boldness if colors are the inverse of
10328 the default colors, and tty_suppress_bold_inverse_default_colors_p
10329 is set.
10330 (Ftty_suppress_bold_inverse_default_colors): New function.
10331 (syms_of_xfaces): Defsubr it.
10332
be0dbdab
GM
10333 * buffer.c (Frestore_buffer_modified_p): New function.
10334 (syms_of_buffer): Defsubr it.
10335
e8413c3b
KR
103362000-04-08 Ken Raeburn <raeburn@gnu.org>
10337
87f67317
KR
10338 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
10339 charset id (int) argument, not a charset (Lisp_Object).
10340
e8413c3b
KR
10341 * coding.h (code_convert_string): Declare.
10342 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
10343 object, as the fourth argument to code_convert_string.
10344
52283633 10345 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value.
e8413c3b
KR
10346 (Fset_fontset_font): Use EQ to compare lisp objects.
10347
7c752c80
KR
103482000-04-05 Ken Raeburn <raeburn@gnu.org>
10349
c0333abc
KR
10350 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
10351 a pointer that looks like a lisp object.
10352 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
10353 zero, instead see whether it's an integer object, since they can't
10354 have intervals.
10355 (GET_INTERVAL_OBJECT): Simply assign to the destination.
10356
52283633
SM
10357 * dispnew.c (allocate_matrices_for_frame_redisplay)
10358 (direct_output_forward_char): Use X(U)INT and make_number as needed
7c752c80
KR
10359 to convert between (unsigned) int values and lisp integers.
10360 * keyboard.c (read_key_sequence): Likewise.
10361 * lread.c (substitute_object_recurse): Likewise.
10362 * fns.c (concat, hash_lookup, hash_remove): Likewise.
52283633
SM
10363 * minibuf.c (do_completion, Fminibuffer_complete_word)
10364 (Fminibuffer_completion_help): Likewise.
7c752c80
KR
10365 * term.c (produce_special_glyphs): Likewise.
10366
10367 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
10368 * print.c (print_preprocess, print_object): Likewise.
10369
10370 * search.c (compile_pattern): Use NILP when checking for nil.
10371
74e49b38
KR
10372 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
10373 __OPTIMIZE__]: Provide a GNU C macro version that handles
10374 lisp-object unions.
10375 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
10376 field, to better cope with ENABLE_CHECKING and calls that modify a
10377 Lisp_Object using its old value.
10378
685e5ed2
GM
103792000-04-04 Gerd Moellmann <gerd@gnu.org>
10380
c407c570
GM
10381 * window.c (compare_window_configurations): Signal an error
10382 if parameters C1 or C2 aren't window configurations.
10383
685e5ed2
GM
10384 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
10385 AFTER_POTENTIAL_GC calls around calls to functions that can
10386 signal an error and thus invoke the debugger.
10387
587a49ab
GM
103882000-04-03 Gerd Moellmann <gerd@gnu.org>
10389
62f20204
GM
10390 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
10391 an error if decoding fails.
10392
587a49ab
GM
10393 * keyboard.c (lispy_mouse_names): Variable removed.
10394 (Vlispy_mouse_stem): New variable.
10395 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
10396 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
10397 for any mouse button number. Increase size of mouse_syms and
10398 button_down_location as needed. Call modify_event_symbol with
10399 different arguments.
10400 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
10401 Call modify_event_symbol with different arguments.
10402 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
10403 for any button number. Call modify_event_symbol with different
10404 arguments.
10405 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
10406 Accept a string for NAME_ALIST_OR_STEM.
10407
10408 * lisp.h (larger_vector): Add prototype.
10409
10410 * fns.c (larger_vector): Make externally visible.
10411
10412 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
10413
2d1675e4
SM
104142000-04-02 Stefan Monnier <monnier@cs.yale.edu>
10415
10416 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
10417 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
10418 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
10419 we are between str1 and str2.
10420 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
10421 (PATFETCH): Use `TRANSLATE'.
10422 (PATFETCH_RAW): Fetch multibyte char if applicable.
10423 (PATUNFETCH): Remove.
10424 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
10425 When writing a char, write it directly into the pattern buffer rather
10426 than going needlessly through a temp char-array.
10427 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
10428 multibyte magic and remove the useless `#ifdef emacs'.
10429 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
10430 buffer.
10431
10432 * regex.h (struct re_pattern_buffer): Make field `multibyte'
10433 conditional on `emacs'.
10434
10435 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
10436
cc2d8c6b
KR
104372000-04-01 Ken Raeburn <raeburn@gnu.org>
10438
10439 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
10440 non-union-type versions of XMARK and friends here, because XMARK
10441 and friends won't work on an integer field if NO_UNION_TYPE is not
10442 defined.
52283633 10443 (make_number): Define as a function if it's not defined as a macro.
cc2d8c6b 10444
52283633 10445 * composite.c (run_composite_function): Use NILP when checking for nil.
09654086
KR
10446 (syms_of_composite): Delete local var NARGS, pass an int as first
10447 argument to Fmake_hash_table.
10448
2387b382
KR
10449 * editfns.c (text_property_stickiness): Use NILP to test
10450 Lisp_Object boolean value.
10451 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
10452 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
10453 problems reading from and changing the same lisp value in an
10454 XSETSTRING call.
10455
27660e89
GM
104562000-04-01 Gerd Moellmann <gerd@gnu.org>
10457
10458 * term.c (TN_no_color_video): New variable.
10459 (term_init): Intitialize TN_no_color_video.
10460 (enum no_color_bit): New enumeration.
10461 (MAY_USE_WITH_COLORS_P): New macro.
10462 (turn_on_face): Use it to determine if attributes may be used
10463 combined with colors.
10464
3578db3c
KR
104652000-04-01 Ken Raeburn <raeburn@gnu.org>
10466
10467 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
52283633 10468 with int lvalues via casts; instead, just yield lisp object lvalues.
3578db3c
KR
10469 (enlarge_window): Variable sizep now points to Lisp_Object. Use
10470 proper accessor macros.
10471 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
10472 (grow_mini_window): Fix typo getting int value of root->height.
10473
6fc556fd
KR
10474 * xdisp.c (compute_string_pos): Fix order of arguments to
10475 string_pos_nchars_ahead.
10476 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
10477 count arg to variable-arg routines like Frun_hook_with_args and
10478 Fformat.
587a49ab
GM
10479 (back_to_previous_visible_line_start)
10480 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
10481 fixed-arg routines like Fget_char_property and Fmake_string.
10482 (reconsider_clip_changes): Use XINT when comparing integer lisp
10483 objects, or passing them as int arguments.
587a49ab
GM
10484 (mark_window_display_accurate, insert_left_trunc_glyphs)
10485 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
10486 storing or passing integer values as lisp objects.
10487 (set_cursor_from_row, highlight_trailing_whitespace): Use
10488 INTEGERP, not implicit test against zero, for glyph object.
10489 (try_window_id): Don't use make_number when we want an int value.
10490
10491 * xfaces.c (xlfd_symbolic_value): Make last argument a
10492 Lisp_Object, to be consistent with callers.
10493 (Fbitmap_spec_p): Use XINT to get numeric value of height.
10494 (lface_hash): Apply XFASTINT to lisp values before folding in.
10495
10496 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
10497 fill in window width and height. Pass an int, not a lisp object,
10498 as first arg to Finsert.
10499
6e7b2457
GM
105002000-04-01 Gerd Moellmann <gerd@gnu.org>
10501
610d841e
GM
10502 * xfaces.c (realize_basic_faces): Block input while realizing
10503 the faces.
10504
6e7b2457
GM
10505 * keyboard.c (lispy_mouse_names): Add additional mouse names.
10506
10507 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
10508
aa110c0c
GM
105092000-03-31 Gerd Moellmann <gerd@gnu.org>
10510
10511 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 10512 or ASCII, handle case that per-char metric is null.
aa110c0c 10513
8801a864
KR
105142000-03-30 Ken Raeburn <raeburn@gnu.org>
10515
c6129d7e
KR
10516 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
10517
52283633
SM
10518 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW)
10519 (XSUBR, XBUFFER): Verify correct object type before returning
8801a864
KR
10520 pointer, using eassert.
10521 * frame.h (XFRAME): Likewise.
10522
52283633
SM
10523 * buffer.c (Frename_buffer, Fset_buffer_multibyte)
10524 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply
10525 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type.
8801a864 10526 * data.c (set_internal): Likewise.
52283633
SM
10527 * dispextern.h (WINDOW_WANTS_MODELINE_P)
10528 (WINDOW_WANTS_HEADER_LINE_P): Likewise.
8801a864
KR
10529 * fileio.c (auto_save_1): Likewise.
10530 * insdel.c (check_markers): Likewise.
10531 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
10532 * undo.c (record_insert): Likewise.
10533 * vmsproc.c (child_sig): Likewise.
10534 * window.c (unshow_buffer, window_loop): Likewise.
10535 * xterm.c (x_erase_phys_cursor): Likewise.
10536
8e7af858
GM
105372000-03-30 Gerd Moellmann <gerd@gnu.org>
10538
10539 * xfns.c (free_image_cache): Free the cache structure itself
10540 last, after all its members have been freed.
10541
10542 * lisp.h (xstrdup): Add prototype.
10543
10544 * alloc.c (xstrdup): Moved here from xfaces.c.
10545 (allocating_for_lisp): Variable removed.
52283633 10546 (lisp_malloc): Block input around the calls to malloc and mem_insert.
8e7af858
GM
10547
10548 * xfaces.c (realize_tty_face): Use find_symbol_value instead
10549 of Fsymbol_value.
10550 (xstrdup): Moved to alloc.c.
10551
e0b8c689
KR
105522000-03-29 Ken Raeburn <raeburn@gnu.org>
10553
b96f9fb7
KR
10554 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
10555
10556 * emacs.c (main): Fix sense of no-loadup test.
10557
e0b8c689
KR
10558 * config.in (ENABLE_CHECKING): Undef.
10559
10560 * lisp.h (struct interval): Replace "parent" field with a union of
10561 interval pointer and Lisp_Object; add new bitfield to use as
10562 discriminant. Change other flag fields to bitfields.
10563 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
52283633
SM
10564 is defined and the supplied test fails, print a message and abort.
10565 (eassert): New macro. Use CHECK to provide an assert-like facility.
e0b8c689
KR
10566
10567 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
10568 pointers; abort if the value looks like a lisp object.
52283633
SM
10569 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT)
10570 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
e0b8c689
KR
10571 Modify for new interval parent definition.
10572
52283633
SM
10573 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE)
10574 (UNMARK_BALANCE_INTERVALS): Update references that need an
e0b8c689
KR
10575 addressable lisp object in the interval structure.
10576 (die): New function.
10577 (suppress_checking): New variable.
10578
10579 * intervals.c (interval_start_pos): Just return 0 if there's no
10580 parent object.
10581
f83c5440
GM
105822000-03-29 Gerd Moellmann <gerd@gnu.org>
10583
10584 * lread.c (read1): Accept `.' (period) as symbol start like in CL
10585 and earlier Emacs versions.
10586
10587 * keyboard.c (Ftop_level): Cancel busy-cursor.
10588
10589 * eval.c (call_debugger): Cancel busy-cursor.
10590
fdce64ff
KH
105912000-03-29 Kenichi Handa <handa@etl.go.jp>
10592
10593 * search.c (Freplace_match): Adjust multibyteness of the current
52283633 10594 buffer and NEWTEXT. Free allocated memory before signaling an error.
fdce64ff 10595
f6a3f532
SM
105962000-03-28 Stefan Monnier <monnier@cs.yale.edu>
10597
10598 * regex.c (analyse_first): New function obtained by ripping out most
10599 of re_compile_fastmap and generalizing it a little bit so that it
10600 can also just return whether a given (sub)pattern can match the empty
10601 string or not.
10602 (regex_compile): Use `analyse_first' to decide whether the loop-check
10603 needs to be done or not for *, +, *? and +? (the loop check is costly
10604 for non-greedy repetition).
10605 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
10606
e9b309ac
DL
106072000-03-28 Dave Love <fx@gnu.org>
10608
52283633 10609 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha.
bb15bd9a 10610
e9b309ac
DL
10611 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
10612
ed0767d8
SM
106132000-03-27 Stefan Monnier <monnier@cs.yale.edu>
10614
10615 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
10616 an expression.
10617 (enum re_opcode_t): Update description of succeed_n.
10618 (PATFETCH): Always define.
10619 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
10620 operators, char classes, shy-groups and intervals).
10621 Optimize special cases of intervals so as to only use succeed_n and
10622 jump_n when really needed.
10623 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
10624 that we don't have to handle the special cases any more.
10625 Simplify on_failure_jump handling as well.
10626
e11e7e46
JR
106272000-03-28 Jason Rumney <jasonr@gnu.org>
10628
10629 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
10630
88faab89
GM
106312000-03-27 Gerd Moellmann <gerd@gnu.org>
10632
182ff242
GM
10633 * s/freebsd.h (GC_SETJMP_WORKS): Define.
10634
10635 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 10636
182ff242
GM
10637 * alloc.c (mark_maybe_object): New function.
10638 (mark_memory): Use it.
10639 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
10640 (setjmp_tested_p, longjmp_done): New variables.
10641 (test_setjmp): New function.
10642 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
10643 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
10644
c1005d06
GM
10645 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
10646 to DEC_TEXT_POS and INC_TEXT_POS.
10647
10648 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
10649 with parameter MULTIBYTE_P.
10650
52283633 10651 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P.
c1005d06 10652
7439e5b9 10653 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
10654 buffers because it looks for multibyte character byte sequences
10655 which don't exist in unibyte text.
7439e5b9 10656
d9c545da
GM
10657 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
10658
11fd416e 10659 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
10660 [DEBUG_X_COLORS]: New functions.
10661 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
10662
10663 * xfns.c (x_set_cursor_color): Get color reference counts right.
10664
10665 * xterm.c (x_copy_color): New function.
10666 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
10667
10668 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
10669 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
10670 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
10671 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
10672 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
10673 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
10674 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
10675 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
10676 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
10677 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
10678
11fd416e
GM
10679 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
10680 names for handling per-buffer variables.
d9c545da
GM
10681
10682 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
10683 instead of MAX_BUFFER_LOCAL_VARS.
10684 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
10685
10686 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
10687
88faab89
GM
10688 * xfns.c (x_specified_cursor_type): New function.
10689 (x_set_cursor_type): Use it.
10690
10691 * buffer.h (struct buffer): Add cursor_type.
10692
d80f42b7
SM
106932000-03-26 Stefan Monnier <monnier@cs.yale.edu>
10694
10695 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
52283633
SM
10696 (print_partial_compiled_pattern, re_compile_fastmap):
10697 Handle new opcode.
d80f42b7
SM
10698 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
10699 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
10700 executing it as well as when popping it off the stack to find infinite
10701 loops in non-greedy repetition operators.
10702
89e80928
GM
107032000-03-26 Gerd Moellmann <gerd@gnu.org>
10704
3d4ff2dd
GM
10705 * doc.c (Qfunction_documentation): New variable.
10706 (syms_of_doc): Initialize Qfunction_documentation.
10707 (Fdocumentation): If FUNCTION is a symbol with non-nil
10708 `function-documentation' property, return a documentation derived
10709 from that.
10710
bd96bd79
GM
10711 * buffer.c (syms_of_buffer): Add default-cursor-type.
10712 (init_buffer_once): Don't let cursor_type have a local value
10713 in every buffer.
10714
19d1bc27
GM
10715 * xterm.c (x_display_and_set_cursor): Choose cursor depending
10716 on buffer-local value of cursor_type.
10717 (x_draw_bar_cursor): Add parameter WIDTH.
10718
10719 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
10720 (init_buffer_once): Set default cursor_type value to t.
10721 Mark cursor_type as local everywhere.
10722 (syms_of_buffer): New per-buffer variable cursor-type.
10723
89e80928
GM
10724 * buffer.h (struct buffer): Remove member local_var_flags,
10725 add local_flags.
10726 (MAX_BUFFER_LOCAL_VARS): New macro.
10727 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
10728 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
10729 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
10730 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
10731
52283633 10732 * print.c (print_object): Use new macros for per-buffer variables.
89e80928
GM
10733
10734 * category.c (Fset_category_table): Use new macros for per-buffer
10735 variables.
10736
10737 * buffer.c (buffer_permanent_local_flags): Make a char array.
10738 (max_buffer_local_idx): New variable.
10739 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
10740 for new handling of per-buffer variables.
10741 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
10742 (init_buffer_once): Initialize per-buffer vars differently.
10743 Set max_buffer_local_idx.
10744
10745 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
10746 variables.
10747
52283633 10748 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables.
89e80928
GM
10749
10750 * data.c (do_symval_forwarding, store_symval_forwarding)
10751 (find_symbol_value, set_internal, default_value, Fset_default)
10752 (Fkill_local_variable, Flocal_variable_p): Use new macros for
10753 per-buffer variables.
10754
10755 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
10756
9a0dd3dc
GM
107572000-03-24 Gerd Moellmann <gerd@gnu.org>
10758
b68c375f
GM
10759 * xterm.c (x_term_init): Unblock input around call1 of
10760 Qvendor_specific_keysyms.
10761
9a0dd3dc
GM
10762 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
10763 (find_defun_start): Consider an open parenthesis in column 0
10764 a defun start only if open_paren_in_column_0_is_defun_start is set.
10765 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
10766
7973e637
SM
107672000-03-24 Stefan Monnier <monnier@cs.yale.edu>
10768
10769 * eval.c (Fautoload): Add entry in load-history (if after dump).
10770 * lread.c (load-history): Update docstring.
10771
39210e90
GM
107722000-03-24 Gerd Moellmann <gerd@gnu.org>
10773
10774 * indent.c (Fvertical_motion): Always use the current buffer.
10775 Temporarily change the window's buffer, if necessary.
10776
72db3ab5
GM
107772000-03-23 Gerd Moellmann <gerd@gnu.org>
10778
10779 * xterm.c (fast_find_position): Make sure not to consider rows
10780 not visible in the window.
10781
990b2375
SM
107822000-03-22 Stefan Monnier <monnier@cs.yale.edu>
10783
10784 * regex.c (enum syntaxcode): Provide default for non-Emacs.
10785 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
10786
ff4df011
JR
107872000-03-22 Jason Rumney <jasonr@gnu.org>
10788
10789 * w32menu.c (single_submenu): Set help string to NULL if none.
10790 (w32_menu_show): Set help string correctly.
10791 (add-menu-item): Set help string in MIIM_DATA for menu item.
10792 Load SetMenuItemInfoA explicitly.
10793 (w32_menu_display_help): New function.
427ec082 10794
ff4df011
JR
10795 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
10796 (QCdata): Moved to xdisp.c.
10797
10798 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
10799 (Vw32_charset_to_codepage_alist): Removed.
10800 (Vw32_charset_info_alist): New variable.
52283633
SM
10801 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312)
10802 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic)
10803 (greek, hebrew, thai, johab, mac, unicode]): New symbols.
ff4df011
JR
10804 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
10805 with TODO comment.
10806 (w32_codepage_for_font): Use Vw32_charset_info_alist.
10807 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
10808 Define Vw32_charset_info_alist and w32_charset symbols.
10809
108102000-03-22 Jason Rumney <jasonr@gnu.org>
10811
10812 * makefile.nt (w32bdf.obj): Update dependencies.
10813
10814 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
10815
10816 * w32fns.c: Include fontset.h after dispextern.h.
10817 (Fx_create_frame): Do not create fontset.
10818 (w32_load_system_font): Doc fix.
10819 (Fx_close_connection): Free full_name if it is not shared.
10820
10821 * w32term.c: Include fontset.h after dispextern.h.
52283633
SM
10822 (x_get_glyph_face_and_encoding): New parameter two_byte_p.
10823 Callers updated.
ff4df011
JR
10824 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
10825 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
10826 (w32_font_is_double_byte): New function, needs body.
10827 (x_append_glyph): Set glyph->glyph_not_available_p.
10828 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
10829 it->charset. If it->multibyte_p is zero and it->c is a multibyte
10830 character, convert it to a unibyte character.
10831 (struct glyph_string): Delete member `charset'.
10832 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
10833 calculating it is found.
10834 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
10835 the case that per char metric is not available correctly.
10836 (x_fill_glyph_string): Handle the case that the specific glyph is
10837 not available correctly.
10838 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
10839 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
10840 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
10841 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
10842 fontset. Don't call FS_LOAD_FONT.
10843
439d5cb4
KR
108442000-03-22 Ken Raeburn <raeburn@gnu.org>
10845
10846 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
10847 (INT_LISPLIKE): New macro.
10848 (NULL_INTERVAL_P): Use it.
52283633
SM
10849 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT)
10850 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT)
10851 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
439d5cb4
KR
10852
10853 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
10854 explicit references to "parent" field of struct interval and
10855 associated unclean type conversions.
52283633
SM
10856 * intervals.c (create_root_interval, root_interval, rotate_right)
10857 (rotate_left, balance_possible_root_interval, split_interval_right)
10858 (split_interval_left, interval_start_pos, find_interval)
10859 (next_interval, previous_interval, update_interval)
10860 (adjust_intervals_for_insertion, delete_node, delete_interval)
10861 (adjust_intervals_for_deletion, merge_interval_right)
10862 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer)
10863 (copy_intervals_to_string): Likewise.
439d5cb4
KR
10864 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
10865 Likewise.
10866 * syntax.c (update_syntax_table): Likewise.
10867
10868 * intervals.c (reproduce_tree_obj): New function, like
10869 reproduce_tree but takes a Lisp_Object for the parent. Declare
10870 with prototype.
10871 (graft_intervals_into_buffer): Use it when appropriate.
10872 (reproduce_tree): Declare with prototype.
10873 (balance_possible_root_interval): Check that the parent is a lisp
10874 object before trying to examine its type.
10875
ee1c5b21
GM
108762000-03-22 Gerd Moellmann <gerd@gnu.org>
10877
10878 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
10879 as strings only if both are known to be strings.
10880
10881 * s/openbsd.h (LIBS_TERMCAP): Undef.
10882
1fb352e0
SM
108832000-03-21 Stefan Monnier <monnier@cs.yale.edu>
10884
10885 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
10886 definitions for non-Emacs compilation.
10887 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
10888 outside of `#ifdef emacs'.
10889 (print_partial_compiled_pattern): Update.
10890 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
10891 (re_compile_fastmap): Merge handling of charset and charset_not (for
10892 emacs and non-emacs compilation as well).
10893 Similarly for (not)categoryspec and (not)syntaxspec.
10894 Don't use the fastmap when reaching `anychar' since the added
10895 complexity is not justified.
10896 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
10897 and (not)syntaxspec. Merge (not)categoryspec.
10898
fdaa1f77
KH
108992000-03-22 Kenichi Handa <handa@etl.go.jp>
10900
52283633
SM
10901 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P)
10902 (FACE_FOR_CHAR): Define them differently for the configuration of
ff1a0d8e 10903 --without-x.
fdaa1f77 10904
d152fb46
DL
109052000-03-21 Dave Love <fx@gnu.org>
10906
10907 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
10908 doc string.
10909
d2cafc8c
GM
109102000-03-21 Gerd Moellmann <gerd@gnu.org>
10911
10912 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
10913 (lface_fully_specified_p): Don't check contents of
10914 LFACE_FONT_INDEX because that attribute is optional.
10915 (realize_x_face): Remove now unwarranted xassert.
10916
9111d4b5
KH
109172000-03-21 Kenichi HANDA <handa@etl.go.jp>
10918
10919 The following changes are to make font selection based on
10920 characters, not charset. In addition, they recover fontset
10921 facilities while utilizing the new font selection mechanism.
10922
6c4bfdc0
KH
10923 * Makefile.in (fontset.o): Depend on dispextern.h.
10924
10925 * alloc.c (mark_face_cache): Don't mark face->registry.
10926
9111d4b5
KH
10927 * dispextern.h (struct glyph): New member glyph_not_available_p.
10928 Use 22 bits for face_id.
10929 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
10930 (struct face): Delete member registry, new member ascii_face.
10931 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
10932 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
10933 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
52283633 10934 (struct it): Delete member charset, new member glyph_not_available_p.
9111d4b5
KH
10935
10936 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
10937 (struct fontset_info, struct fontset_data): Structs removed.
52283633
SM
10938 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset)
10939 (Vglobale_fontset_alist, font_idx_temp): Externs removed.
9111d4b5 10940 (fs_load_font, fs_query_fontset): Adjusted for new argument.
52283633
SM
10941 (fs_free_face_fontset, fontset_font_pattern)
10942 (face_suitable_for_char_p, face_for_char)
10943 (make_fontset_for_ascii_face): Extern them.
9111d4b5
KH
10944 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
10945 (FS_LOAD_FACE_FONT): New macro.
10946
10947 * fontset.c: All codes rewritten or adjusted for the change of
10948 fontset implementation. Now fontset is represented by char table.
52283633
SM
10949 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl):
10950 Variables removed.
9111d4b5 10951 (my_strcasecmp): Function removed.
52283633 10952 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables.
9111d4b5 10953 (AREF, ASIZE): New macros.
52283633
SM
10954 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME)
10955 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF)
10956 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
10957 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset)
10958 (fontset_id_valid_p, font_family_registry, fontset_name)
10959 (fontset_ascii, free_face_fontset, face_suitable_for_char_p)
10960 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
9111d4b5
KH
10961 New functions.
10962 (fs_load_font): New arg FACE. Caller changed.
10963 (fs_query_fontset): Argument changed. Caller changed.
10964 (Fquery_fontset): call fs_query_fontset.
10965 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
10966 Functions removed.
52283633
SM
10967 (clear_fontset_elements, check_registry_encoding)
10968 (check_fontset_name): New functions.
9111d4b5
KH
10969 (syms_of_fontset): Set char-table-extra-slots property of fontset
10970 to 3. Staticpro and initialize Vfontset_table and
10971 Vdefault_fontset. Defsubr fontset_font and fontset_list.
10972
10973 * frame.h (struct frame): Member `fontset_data' removed.
10974 (FRAME_FONTSET_DATA): Macro removed.
10975
10976 * frame.c (make_frame): Don't allocate f->fontset_data.
10977 (Fdelete_frame): Don't free f->fontset_data.
10978
6c4bfdc0
KH
10979 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
10980
9111d4b5
KH
10981 * xdisp.c (charset_at_position): Function removed.
10982 (init_iterator): Don't set member charset of struct `it'.
52283633
SM
10983 (handle_face_prop, reseat_to_string, set_iterator_to_next)
10984 (next_element_from_display_vector, insert_left_trunc_glyphs):
9111d4b5
KH
10985 Likewise.
10986 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
10987 FACE_FOR_CHARSET.
52283633
SM
10988 (get_next_display_element, append_space)
10989 (extend_face_to_end_of_line): Likewise.
9111d4b5
KH
10990
10991 * xfaces.c (Qx_charset_registry, Vface_default_registry):
10992 Variables removed.
10993 (clear_font_table, frame_update_line_height, load_face_font):
10994 Adjusted for the change of fontset implementation.
10995 (load_face_fontset_font): Function removed.
10996 (pixel_point_size): New function.
10997 (font_list): Argument type changed. Caller changed.
10998 (LFACE_FONT): New macro.
10999 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
11000 (set_lface_from_font_name): Type of arg FONTNAME is changed to
11001 Lisp_Object. Determine the font name by actually loading a font
11002 by the specified pattern. Set LFACE_FONT (lface) to the specified
11003 pattern. Even if a font is not found, don't try alternatives.
11004 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
11005 (set_font_frame_param): If `font' is specified in lface, use it.
11006 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
11007 (lface_same_font_attributes_p): Likewise.
11008 (make_realized_face): Arguent changed. Caller changed. Set
11009 face->ascii_face to face itself.
11010 (free_realized_face): Free face->fontset if face is for ASCII.
52283633
SM
11011 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p)
11012 (deduce_unibyte_registry, x_charset_registry): Functions removed.
9111d4b5
KH
11013 (free_realized_multibyte_face): New function.
11014 (lookup_face, lookup_named_face, lookup_derived_face): Argument
11015 changed. Caller changed.
11016 (try_font_list): Argument type changed.
11017 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
11018 (choose_face_font): Argument changed. Handle fontset properly.
11019 (choose_face_fontset_font): Function removed.
11020 (realize_default_face, realize_named_face): Don't remove the
11021 former face here.
11022 (realize_face): Argument changed. Caller changed. Remove face
52283633 11023 with the arg former_face_id in advance. Load font for the new face.
9111d4b5
KH
11024 (realize_x_face): Argument changed. Caller changed. For a
11025 multibyte character, share fontset with base_face. For a single
52283633 11026 byte character, make a new realized fontset. Don't load a font here.
9111d4b5
KH
11027 (realize_tty_face): Argument changed. Caller changed.
11028 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
11029 (face_at_buffer_position): Don't check multibyte_p for returning
11030 DEFAULT_FACE_ID.
11031 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
11032 FACE_SUITABLE_FOR_CHARSET_P.
11033 (syms_of_xfaces): Remove code for Qx_charset_registry and
11034 Vface_default_registry.
11035
6c4bfdc0
KH
11036 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
11037 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
11038 (x_per_char_metric): Don't try FONT->default_char. Even if
11039 pcm->width is zero, glyph bits may exist.
11040 (x_encode_char): Always initialize char2b->byte1.
11041 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
52283633 11042 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed.
9111d4b5
KH
11043 (x_append_glyph): Set glyph->glyph_not_available_p.
11044 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
11045 it->charset. Handle the case that per char metric is not
11046 available. If it->multibyte_p is zero and it->c is a multibyte
11047 character, convert it to a unibyte character.
11048 (struct glyph_string): Delete member `charset'.
11049 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
11050 the case that per char metric is not available correctly.
11051 (x_fill_glyph_string): Handle the case that the specific glyph is
11052 not available correctly.
11053 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
11054 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
11055 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
11056 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
11057 fontset. Don't call FS_LOAD_FONT.
11058
11059 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
11060 (x_create_tip_frame): Likewise.
11061 (Fx_close_connection): Free full_name of font_info.
11062
11063 * fns.c (optimize_sub_char_table): New function.
11064 (Foptimize_char_table): New function.
11065 (syms_of_fns): Defsubr Soptimize_char_table.
11066
b33dd3b0
GM
110672000-03-20 Gerd Moellmann <gerd@gnu.org>
11068
11069 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
11070 only if buffer is displayed in some window.
11071
11072 * xdisp.c (handle_single_display_prop): Initialize local `value'.
11073 (try_window_reusing_current_matrix): Don't call scroll run
11074 function if run's current and desired position are the same;
11075 this prevents cursor flickering.
11076
4e8a9132
SM
110772000-03-19 Stefan Monnier <monnier@cs.yale.edu>
11078
11079 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
11080
11081 * regex.c (RE_STRING_CHAR): New macro.
11082 (GET_CHAR_AFER_2): Remove.
11083 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
11084 (enum re_opcode_t): Remove on_failure_jump_exclusive.
11085 (print_partial_compiled_pattern, re_compile_fastmap)
11086 (re_match_2_internal): Remove on_failure_jump_exclusive.
11087 (regex_compile): Turn optimizable P+ loops into PP*, so that the
11088 optimization only need to work for * (ie. can use of_keep_string_jump).
11089 Remove the special case for .*\n since it is now covered by the general
11090 optimization.
11091 (re_search_2): Don't bother with `room'.
11092 (skip_one_char): New function.
11093 (skip_noops): Simplify since `memory' is not needed any more.
11094 (mutually_exclusive_p): Restructure slightly to use `switch' and
11095 add handling for "all" remaining cases.
11096 (re_match_2_internal): Change on_failure_jump_smart to use
11097 on_failure_keep_string_jump (and redirect the end-of-loop jump)
11098 rather than on_failure_jump_exclusive.
11099
2136fdd4
GM
111002000-03-19 Gerd Moellmann <gerd@gnu.org>
11101
11102 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
11103 number of bits per RGB because it's everywhere used as the depth
11104 of the visual.
11105
11106 * term.c (calculate_costs): Remove code dealing with X frames.
11107
18e21ce8 111082000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
11109
11110 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
11111
d7b511c4
GM
111122000-03-18 Gerd Moellmann <gerd@gnu.org>
11113
11114 * lread.c (read_integer): Unread the last char not consumed.
11115
16b5d424
GM
111162000-03-17 Gerd Moellmann <gerd@gnu.org>
11117
11118 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 11119 which are in the process of being deleted.
16b5d424 11120
1fa28578
GM
111212000-03-16 Gerd Moellmann <gerd@gnu.org>
11122
83488cce
GM
11123 * Makefile.in (mostlyclean): Add `*.core'.
11124 (clean): Add `bootstrap-emacs'.
11125
1fa28578
GM
11126 * lread.c (read_integer): New function.
11127 (read1): Support read syntax #o, #x, #b, #r.
11128
99633e97
SM
111292000-03-15 Stefan Monnier <monnier@cs.yale.edu>
11130
1fa28578
GM
11131 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
11132 make sure POINTER_TO_OFFSET gives the same value before and after
11133 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
11134 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
11135 (debug): Now only active if > 0 rather than if != 0.
11136 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
11137 (print_partial_compiled_pattern): Add missing `succeed' case. Use
11138 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
11139 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
11140 (store_op1, store_op2, insert_op1, insert_op2)
11141 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
11142 (group_in_compile_stack): Move to after its arg's types are
11143 declared and add a prototype.
99633e97 11144 (PATFETCH): Define in terms of PATFETCH_RAW.
52283633 11145 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper.
99633e97 11146 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
11147 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
11148 indentation of the greedy-op and shy-group code.
99633e97
SM
11149 (at_(beg|end)line_loc_p): Fix argument's types.
11150 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
11151 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
11152 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
11153 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
11154 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
11155 QUIT unconditionally.
99633e97 11156
699238d9
GM
111572000-03-15 Gerd Moellmann <gerd@gnu.org>
11158
11159 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
11160 a sole completion.
11161
11162 * process.c (send_process): Add a hint that the function
11163 can call Lisp code to its comment.
11164
11165 * lread.c (load_dangerous_libraries): New variable.
11166 (Vbytecomp_version_regexp): New variable.
11167 (safe_to_load_p): New function.
11168 (Fload): Handle files not compiled with Emacs specially.
11169 (syms_of_lread): New Lisp variable load-dangerous-libraries.
11170
34e23e5a
GM
111712000-03-14 Gerd Moellmann <gerd@gnu.org>
11172
9c763cca
GM
11173 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
11174
11175 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
11176 support functions only if HAVE_X11R6_XIM is defined.
11177 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
11178
11179 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
11180
11181 * xfns.c (X_I18N_INHIBITED): Don't define.
52283633 11182 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED.
9c763cca
GM
11183 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
11184
11185 * config.in (HAVE_X_I18N): Moved here from xterm.h.
11186 (HAVE_X11R6_XIM): Define.
11187
11188 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
11189
34e23e5a
GM
11190 * xterm.c (x_term_init): Add support for X resource `synchronous'.
11191 If set, call XSynchronize.
11192
66f0296e
SM
111932000-03-13 Stefan Monnier <monnier@cs.yale.edu>
11194
34e23e5a
GM
11195 * regex.c: Declare a new type `re_char' used throughout the code
11196 for the string char type. It's `const unsigned char' to match the
11197 rest of Emacs. Consistently make sure all pointers to strings use
52283633 11198 it and make sure all pointers into the pattern use `unsigned char'.
66f0296e 11199 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
11200 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
11201 code duplication.
66f0296e
SM
11202
11203 * charset.h (GET_CHAR_AFTER_2): Remove.
11204 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
11205
854a025c
KR
112062000-03-12 Ken Raeburn <raeburn@gnu.org>
11207
11208 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
11209 variable before the invocation of YMF_PASS_LDFLAGS, in case both
11210 of them try to use backquotes.
11211
b9d2c7e2
DL
112122000-03-12 Dave Love <fx@gnu.org>
11213
11214 * unexelf.c: Restore changes of 1999-10-19.
11215 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
11216 fix its type and alignment; copy it from current process.
11217
5e5dff44
GM
112182000-03-12 Gerd Moellmann <gerd@gnu.org>
11219
9b2f3c38
GM
11220 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
11221 has been found. Fix bug not computing timer's predecessor.
11222
427ec082 11223 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
11224 file name.
11225
e1cff360
GM
11226 * window.c (Fsave_window_excursion): Doc fix.
11227
52283633 11228 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color.
5e5dff44 11229
e411ce4b
EZ
112302000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
11231
11232 * msdos.c (vga_installed): New function, code moved from
11233 dos_set_window_size.
11234 (Qbar, Qcursor_type, outside_cursor): New variables.
11235 (syms_of_msdos): Intern and staticpro them.
11236 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
11237 shape used outside Emacs when called for the first time.
11238 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
11239 cursor shape used outside Emacs.
11240 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
11241 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
11242 type has changed.
11243 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
11244 parameters specify the cursor. Make qreverse a global
11245 variable (renamed to Qreverse).
11246
80460654
GM
112472000-03-09 Gerd Moellmann <gerd@gnu.org>
11248
11249 * fns.c (Fy_or_n_p): Cancel busy-cursor.
11250
95cd4c40
SM
112512000-03-08 Stefan Monnier <monnier@cs.yale.edu>
11252
11253 This is a big redesign of failure-stack and register handling, prompted
11254 by bugs revealed when trying to add shy-groups. Overall, what happened
11255 is that loops are now structured a little differently, groups can be
11256 shy and the code is a little simpler.
11257
11258 * regex.h: Update the copyright.
11259 (RE_SHY_GROUPS): New value.
11260 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
11261 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
11262
80460654
GM
11263 * regex.c (enum re_opcode_t): Remove jump_past_alt,
11264 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
11265 on_failure_jump_(exclusive, loop and smart). Also fix the comment
11266 for (start|stop)_memory since they now only take one argument (the
11267 second has becomes unnecessary).
52283633 11268 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t.
80460654
GM
11269 (print_compiled_pattern): Use %ld to printf long ints and flush to
11270 make debugging a little easier.
95cd4c40
SM
11271 (union fail_stack_elt): Make the integer unsigned.
11272 (struct fail_stack_type): Add a `frame' element.
11273 (INIT_FAIL_STACK): Init `frame' as well.
11274 (POP_PATTERN_OP): New macro for re_compile_fastmap.
11275 (DEBUG_PUSH, DEBUG_POP): Remove.
11276 (NUM_REG_ITEMS): Remove.
11277 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
11278 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
11279 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 11280 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
52283633
SM
11281 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP):
11282 New macros.
80460654
GM
11283 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
11284 address pushed is not the destination of the jump but the source
11285 of it instead.
95cd4c40
SM
11286 (NUM_FAILURE_ITEMS): Remove.
11287 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
11288 registers before the actual failure point). Don't hardcode any
11289 meaning for str==NULL anymore.
95cd4c40 11290 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
11291 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
11292 Remove.
95cd4c40
SM
11293 (REG_UNSET_VALUE): Use NULL (why not?).
11294 (compile_range): Remove declaration since it doesn't exist.
11295 (struct compile_stack_elt_t): Remove inner_group_offset.
11296 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
11297 (regex_grow_registers): Remove dead code.
11298 (FIXUP_ALT_JUMP): New macro.
80460654
GM
11299 (regex_compile): Add shy-groups Change loops to use
11300 on_failure_jump_smart&jump instead of
11301 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
11302 initial (dummy_failure_)jump. Remove c1_base (looks like unused
11303 variable to me). Use `jump' instead of `jump_past_alt' and don't
11304 bother with push_dummy_failure in alternatives since it is now
11305 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
11306 emacs' for (re)allocating the stack.
11307 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
11308 from loop when bufp->can_be_null rather than jumping to `done'.
11309 Avoid jumping backwards so as to ensure termination. Use
11310 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
11311 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 11312 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
11313 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
11314 improve mutually_exclusive_p to handle ".+\n".
52283633
SM
11315 (lowest_active_reg, highest_active_reg)
11316 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
80460654
GM
11317 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
11318 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
11319 variables. Push register (in `start_memory') on the stack rather
11320 than storing it in old_reg(start|end). Remove the cycle detection
11321 from `stop_memory', replaced by the use of on_failure_jump_loop
11322 for greedy loops. Add code for the new on_failure_jump_<foo>.
11323 Remove ad-hoc code in `on_failure_jump' to push more registers in
11324 the case of a loop. Take out code from `maybe_pop_jump' into
11325 separate functions and adapt it to the semantics of
11326 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
11327 and push_dummy_failure. Remove dummy_failure handling and
11328 handling of `failures to jump to on_failure_jump' (this last one
11329 was already dead code, it seems).
11330 (group_match_null_string_p, alt_match_null_string_p)
11331 (common_op_match_null_string_p): Remove.
95cd4c40 11332
7397acc4
DL
113332000-03-08 Dave Love <fx@gnu.org>
11334
11335 * config.in: Don't depend on __STDC__ for volatile.
11336 Add POINTER_TYPE, PTR, PROTOTYPES.
11337
11338 * hftctl.c, strftime.c: Use PROTOTYPES.
11339 * eval.c (find_handler_clause): Likewise.
11340
11341 * mem-limits.h: Use POINTER_TYPE.
11342
11343 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
11344 (memory_warnings): Declare using POINTER_TYPE.
11345
5e91ff9e
GM
113462000-03-08 Gerd Moellmann <gerd@gnu.org>
11347
feab4fba
GM
11348 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
11349
52283633 11350 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection.
25edb08f 11351
5e91ff9e
GM
11352 * xfns.c: Remove obsolete code in #if 0.
11353 (Fx_focus_frame): New function.
11354
a735b7e1
KH
113552000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
11356
11357 * coding.c (coding_category_name): Add coding-category-utf-8,
11358 coding-category-utf-16-be, coding-category-utf-16-le.
11359 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
11360 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
11361 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
11362 (detect_coding_utf_8): New function.
11363 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
11364 UTF_16_LOW_SURROGATE_P): New macros.
11365 (detect_coding_utf_16): New function
11366 (detect_coding_mask): When priorities are specified, skip any
11367 categories that have `nil' coding-system. Fix bug of returning
11368 wrong mask when PRIORITIES is specified and detect_coding_XXX()
11369 returns a mask not set in PRIORITIES.
11370 (detect_eol_type_in_2_octet_form): New function.
11371 (detect_eol): selects detect_eol_type_XXX to call according to
11372 cooding->category_idx.
11373 (detect_coding_system): Remove `nil' coding-system in the result.
11374 (Fupdate_coding_systems_internal): Update all coding-categories.
11375
52283633
SM
11376 * coding.h (CODING_CATEGORY_IDX_UTF_8)
11377 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE):
11378 New macros.
11379 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY)
11380 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
11381 (CODING_CATEGORY_IDX_UTF_16_LE)
11382 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE)
11383 (CODING_CATEGORY_MASK_UTF_16_LE): New macros.
a735b7e1
KH
11384 (CODING_CATEGORY_MASK_ANY): Include the above macros.
11385 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
11386
9994cc69
GM
113872000-03-07 Gerd Moellmann <gerd@gnu.org>
11388
e9b4e5ff
GM
11389 * doc.c (Fdocumentation_property): If value is not a string,
11390 and doesn't refer to etc/DOC, evaluate it to obtain a string.
11391
f7daf1e1
GM
11392 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
11393 close the display with XtCloseDisplay. This caused a bus error
11394 on OpenWindows.
11395
9994cc69
GM
11396 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
11397 complete but not unique.
11398
4336c705
GM
113992000-03-06 Gerd Moellmann <gerd@gnu.org>
11400
18bb0684
GM
11401 * process.c (send_process): Remove local variable `procname' that
11402 might become invalid when a GC happens. Instead, access the
11403 process name slot directly.
11404
4336c705
GM
11405 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
11406 orig_height if set.
11407
11408 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
11409 orig_height if set.
11410
515d0d0e
EZ
114112000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
11412
11413 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
11414 glyph matrices have been freed.
11415
100b3cbb
GM
114162000-03-05 Gerd Moellmann <gerd@gnu.org>
11417
50df5e5a 11418 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 11419 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
11420
11421 * xfns.c (QCdata): Moved to xdisp.c.
11422
11423 * xdisp.c (QCdata): Moved here from xfns.c.
11424 (syms_of_xdisp): Initialize QCdata.
11425
11426 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
11427
11428 * window.c (coordinates_in_window): Use
11429 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
11430 FRAME_INTERNAL_BORDER_WIDTH.
11431
100b3cbb 11432 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 11433 it is obviously invalid.
100b3cbb
GM
11434
11435 * xterm.c (x_term_init): Create a colormap if not using the
11436 default visual.
11437
11438 * xterm.h (select_visual): Change prototype.
11439
11440 * xfns.c (select_visual): Rewritten. Recognize user-specified
11441 visual classes.
11442 (visual_classes): New variable.
11443
64d739c4
GM
114442000-03-04 Gerd Moellmann <gerd@gnu.org>
11445
11446 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
11447 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
11448 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
52283633 11449 (x_decode_color): Don't handle allocation of white and black specially.
64d739c4
GM
11450 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
11451 XtNcolormap resources.
11452 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
11453 (Fx_create_frame): Initialize color members of x_output structure.
11454 (xpm_load): Pass colormap to XPM lib.
11455
11456 * xfaces.c (x_free_colors): Access colormap of frame using
11457 FRAME_X_COLORMAP. Be paranoid about freeing black and white
11458 when default colormap is used.
11459
11460 * xterm.c (x_term_init): Set Colormap member of x_display_info
11461 structure. Copy colormap if resource `privateColormap' is
11462 specified (PseudoColor only).
11463 (x_setup_relief_color): Access colormap of frame using
11464 FRAME_X_COLORMAP.
11465
11466 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
11467 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
11468
c3cee013
JR
114692000-03-04 Jason Rumney <jasonr@gnu.org>
11470
11471 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
11472 other non-platform-specific equivalents.
64d739c4 11473 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
11474 specific functions and macros as their w32 equivalents where
11475 non-platform-specifics are not available.
11476 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
11477 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
11478 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
11479 (frame_update_line_height): Use macros to access f->output_data.
11480 (defined_color): Remove FIXME comments; fixed.
11481 (x_face_list_fonts, prepare_face_for_display): Put X specifics
11482 into #ifdef blocks. Add WINDOWSNT blocks.
11483 (Fx_list_fonts): Use macros for accessing font data.
11484 (set_lface_from_font_name): Different default fonts for X and
11485 WINDOWSNT.
11486 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
11487 scalable for backward compatibility.
64d739c4 11488 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
11489 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
11490
64d739c4 11491 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
11492 syms_of_w32faces.
11493
11494 * makefile.nt (w32faces.obj): Remove.
11495 (xfaces.obj): Add.
11496
807cc41c
JR
114972000-03-03 Jason Rumney <jasonr@gnu.org>
11498
11499 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
11500 correct parameters.
11501
0007072a
KR
115022000-03-03 Ken Raeburn <raeburn@gnu.org>
11503
11504 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
11505 standard ELF definitions here if the system header does not.
11506
71a6ba55
GM
115072000-03-03 Gerd Moellmann <gerd@gnu.org>
11508
11509 * xterm.c (PER_CHAR_METRIC): Removed.
11510 (x_per_char_metric_1, x_default_char): New functions.
11511 (x_per_char_metric): If font's default char is invalid, return
11512 metrics of a suitably chosen usable default char.
11513 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
11514 char, replace occurrences of unprintable chars with a suitably
11515 chosen usable default char.
71a6ba55 11516
900fa1f1
GM
115172000-03-02 Gerd Moellmann <gerd@gnu.org>
11518
42f55fe0
GM
11519 * xterm.c (note_mouse_highlight): Return quickly if frame's
11520 glyph matrices have been freed.
11521
11522 * dispnew.c (free_glyphs): Block input while freeing matrices.
11523
900fa1f1
GM
11524 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
11525
52283633
SM
11526 * xterm.c (x_alloc_lighter_color, x_setup_relief_color):
11527 Use x_free_colors.
900fa1f1
GM
11528
11529 * dispextern.h (x_free_colors): Add prototype.
11530
11531 * xfaces.c (x_free_colors): New function.
11532 (unload_color, free_face_colors): Use it.
11533
2f950292
EZ
115342000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
11535
11536 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
11537
11538 * window.c [MSDOS]: Include msdos.h.
11539
54d04320
DL
115402000-03-02 Dave Love <fx@gnu.org>
11541
11542 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
11543
11544 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
11545 set C_OPTIMIZE_SWITCH for gcc.
11546
0ba93ac4
KH
115472000-03-02 Kenichi Handa <handa@etl.go.jp>
11548
11549 * coding.c (coding_save_composition): Be sure to allocate
11550 composition data area in coding even if there's no composition in
11551 the current run.
11552
a2bc11d4
JR
115532000-03-01 Jason Rumney <jasonr@gnu.org>
11554
11555 * w32term.c: Equivalent changes to those made to xterm.c on
11556 2000-02-25 and 2000-02-24.
11557
11558 * w32fns.c: Equivalent changes to those made to xfns.c on
11559 2000-02-25 and 2000-02-21.
11560
11561 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
11562 correct line-end convention is followed.
11563
11564 * w32menu.c [HAVE_BOXES]: Remove #undef.
11565 (single_keymap_panes): Remove code for simulating checkmarks.
11566 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
11567 Remove code for drawing simulated checkmarks.
11568 (w32_menu_show): make unibyte help string correctly.
11569 (add_menu_item): draw standard Windows checkmarks. Draw radio
11570 buttons as radio buttons if possible.
11571
72d19d75
GM
115722000-03-01 Gerd Moellmann <gerd@gnu.org>
11573
2df636f4
GM
11574 * sysdep.c (start_of_text): Don't define this function for NetBSD
11575 with ELF.
11576
427ec082 11577 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
11578 Don't define.
11579 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
11580 (LINKER): Don't undef if __NetBSD__ is defined.
11581
11582 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
11583
11584 * fileio.c [__NetBSD__]: Define `unix'.
11585
72d19d75
GM
11586 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
11587
ed4d0512
GM
115882000-02-29 Gerd Moellmann <gerd@gnu.org>
11589
50b1039f
GM
11590 * atimer.c (start_atimer): Don't abort when timers are stopped.
11591 (append_atimer_lists): New function.
11592 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
11593 arbitrary lists of stopped and running atimers.
11594
ed4d0512
GM
11595 * atimer.c (cancel_atimer): Handle canceling an atimer when
11596 some timers are stopped.
11597
11598 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
11599 after canceling it.
11600
11601 * fns.c (maybe_resize_hash_table): Handle case of new size
11602 coming out as being the same as old size.
11603
387023ee
JR
116042000-02-27 Jason Rumney <jasonr@gnu.org>
11605
11606 * makefile.nt: Add atimer.h to dependencies.
11607 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
11608 * w32console.c: Only disable window system features for dispextern.h
11609 (initialize_w32_display): Build a display info for the console.
11610 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
11611 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
11612 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
11613 as 2 button mice.
11614 * w32gui.h (struct W32FontStruct): Revert last change after change
11615 to xdisp.c.
11616 * w32menu.c (single_submenu): Set up help string.
11617 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
11618 (w32_dialog_show): Set up help string.
11619 * w32term.c (w32_display_info_for_display): Remove unused function.
11620 (w32_draw_bitmap): Use pre-built bitmaps.
11621 (w32_initialize_display_info): New function to initialize parts of
11622 display info that are common to both GUI and console frames.
11623 (w32_term_init): Use w32_initialize_display_info. Do not set
11624 Vw32_num_mouse_buttons here, as it is not called for console
11625 frames. Build bitmaps for indicating truncated lines etc.
11626 (x_delete_display): Destroy pre-built bitmaps.
11627 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
11628 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
11629
4516715a
DL
116302000-02-27 Dave Love <fx@gnu.org>
11631
11632 * lisp.h: Add a bunch of prototypes.
11633
171ca836
KH
116342000-02-26 Kenichi Handa <handa@etl.go.jp>
11635
11636 * keyboard.c (read_char): Set `usec' correctly.
11637
4013921d
KH
116382000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
11639
11640 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
11641 `lambda', set reg[RRR] to the map index.
11642 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
11643 reg[RRR] to 0. Otherwise, set it to -1.
11644
9244a058
GM
116452000-02-25 Gerd Moellmann <gerd@gnu.org>
11646
2df636f4 11647 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 11648
18e21ce8 116492000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 11650
f43d79c1
GM
11651 * fileio.c (Ffile_symlink_p): If result starts with a `/'
11652 and contains a `:', prepend `/:'.
11653
11654 * window.c (select_window_1): If selected_window is nil,
11655 don't "swap out" the buffer's point.
11656 (Fset_window_configuration): Set selected_window to nil
11657 before calling Fselect_window.
11658 (unshow_buffer): Don't set point in buffer from window's point
11659 if another more recently selected window also shows the buffer.
11660
bed0c171
GM
116612000-02-25 Gerd Moellmann <gerd@gnu.org>
11662
449c3c52
GM
11663 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
11664
f5b58615
GM
11665 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
11666 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
52283633
SM
11667 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay):
11668 New variables.
f5b58615
GM
11669 (DEFAULT_BUSY_CURSOR_DELAY): New define.
11670 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
11671 (hide_busy_cursor): New functions.
11672 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
11673
11674 * minibuf.c (read_minibuf): Cancel busy-cursor.
11675
11676 * keyboard.c (command_loop_1): Call start_busy_cursor before
11677 Fcommand_execute and cancel_busy_cursor after it.
11678 (timer_check): Remove busy-cursor code.
11679 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
11680 cursor timer.
11681
11682 * process.c (wait_reading_process_input): Remove busy-cursor code.
11683
11684 * eval.c (Fsignal): Call cancel_busy_cursor instead of
11685 Fx_hide_busy_cursor.
11686
11687 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
11688 Remove prototyoes.
11689 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
11690
11691 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
11692
11693 * xterm.c (XTread_socket): Remove busy-cursor code.
11694
4eb8436f
GM
11695 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
11696 (build_frame_matrix_from_leaf_window): Put code handling
11697 glyph row's not being a slice of a frame row in #if 0.
11698 (sync_window_with_frame_matrix_rows): New function.
11699 (frame_row_to_window): New function.
11700 (mirror_line_dance): Handle copies between windows.
11701
3cb65b0e
GM
11702 * lread.c (Fload): Use `xfree' instead of `free'.
11703 (init_obarray): Use `xmalloc' instead of `malloc'.
11704
bed0c171
GM
11705 * window.c (Fset_window_buffer): Set WINDOW to the window
11706 after decoding.
2add4349
GM
11707 (coordinates_in_window): Take frame's internal border width
11708 into account.
bed0c171 11709
42088c12
GM
117102000-02-24 Gerd Moellmann <gerd@gnu.org>
11711
11712 * xterm.c (x_display_and_set_cursor): Display cursor of
11713 non-selected windows depending on the setting of
11714 cursor_in_non_selected_windows.
11715
11716 * xdisp.c (cursor_in_non_selected_windows): New variable.
11717 (syms_of_xdisp): DEFVAR_BOOL it.
11718
d1e103b2
GM
117192000-02-23 Gerd Moellmann <gerd@gnu.org>
11720
723e779c
GM
11721 * data.c (Fstring_to_number): If number is greater than what
11722 fits into an integer, return a float.
11723
d1e103b2
GM
11724 * eval.c (specbind): Remove references to
11725 keyword_symbols_constant_flag.
11726
11727 * data.c (keyword_symbols_constant_flag): Removed.
11728 (Fmakunbound, set_internal, syms_of_data): Remove references to
11729 keyword_symbols_constant_flag.
11730
11731 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
11732
214f877f
KH
117332000-02-23 Kenichi Handa <handa@etl.go.jp>
11734
11735 * syntax.c (multibyte_syntax_as_symbol): New variable.
11736 (syms_of_syntax): Declare it as a Lisp variable.
11737 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
11738 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
11739 nonzero, treat all multibyte characters as symbol.
52283633 11740 (init_syntax_once): Give syntax `word' to all multibyte characters.
214f877f 11741
130adcb7
EZ
117422000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
11743
3cb65b0e 11744 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 11745 a deleted frame.
130adcb7 11746
17cbbf95
GM
117472000-02-21 Gerd Moellmann <gerd@gnu.org>
11748
11749 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
11750
11751 * xfns.c (x_window_to_frame, x_any_window_to_frame)
11752 (x_non_menubar_window_to_frame): Check the busy-cursor window.
11753
beb0bc36
DL
117542000-02-21 Dave Love <fx@gnu.org>
11755
11756 * frame.c (Vmouse_position_function): New variable.
11757 (Fmouse_position): Use it.
11758 (syms_of_frame): Install it.
11759
11760 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
11761
1d92afcd
GM
117622000-02-20 Gerd Moellmann <gerd@gnu.org>
11763
11764 * fileio.c (Finsert_file_contents): Unbind the binding of
11765 standard-output done by temp_output_buffer_setup.
329eed9f
GM
11766
11767 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
11768 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
11769 (specbind, unbind_to): Handle most common case of non-constant
11770 symbol with trivial value specially.
11771
11772 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
11773
18e21ce8 117742000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
11775
11776 * data.c (Fmake_variable_buffer_local): Doc fix.
11777 Init found_for_buffer to 0.
11778 (Fmake_variable_frame_local): If the variable has already
11779 been buffer-local, set the check_frame field.
11780
1d4311c3
EZ
117812000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
11782
11783 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
11784 produced for CODING_MODE_LAST_BLOCK requires.
11785
2dc95ddd
DL
117862000-02-18 Dave Love <fx@gnu.org>
11787
11788 * keyboard.c (echo_keystrokes): Remove declaration.
11789 (Vecho_keystrokes) New variable.
11790 (read_char, record_menu_key, read_key_sequence): Use it to allow
11791 use of float value.
11792 (syms_of_keyboard): Change Vecho_keystrokes declaration.
11793
11794 * lread.c: Undef feature selection macros before defining.
11795
f0930f35
GM
117962000-02-18 Gerd Moellmann <gerd@gnu.org>
11797
11798 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
11799 for symbols other than the symbol in question.
11800
e3d4de90
DL
118012000-02-17 Dave Love <fx@gnu.org>
11802
11803 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
11804
0b378936
GM
118052000-02-17 Gerd Moellmann <gerd@gnu.org>
11806
d621caf7
GM
11807 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
11808
0b378936
GM
11809 * alloc.c (enum mem_type): Compile unconditionally.
11810
3b451f74
EZ
118112000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
11812
11813 * xfaces.c (tty_defined_color): Don't return faulire indication
11814 for unspecified-fg and unspecified-bg pseudo-colors.
11815
10689a01
GM
118162000-02-17 Gerd Moellmann <gerd@gnu.org>
11817
1216f5e4
GM
11818 * alloc.c (mark_object): Don't mark symbol names in pure space.
11819 (gc_sweep): Don't unmark symbol names in pure space.
11820
11821 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
11822 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
11823 [GC_MARK_STACK]: New defines.
427ec082 11824 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
11825 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
11826
11827 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
11828
11829 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
11830 allocate_buffer instead of xmalloc.
11831
11832 * alloc.c (toplevel): Include setjmp.h.
11833 (PURE_POINTER_P): New define.
11834 (enum mem_type) [GC_MARK_STACK]: New enumeration.
11835 (Vdead) [GC_MARK_STACK]: New variable.
11836 (lisp_malloc): Add parameter TYPE, call mem_insert if
11837 GC_MARK_STACK is defined.
11838 (allocate_buffer): New function.
427ec082 11839 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
11840 (free_float) [GC_MARK_STACK]: Set type to Vdead.
11841 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
11842 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
11843 (MEM_NIL) [GC_MARK_STACK]: New define.
11844 (struct mem_node) [GC_MARK_STACK]: New structure.
11845 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
11846 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
11847 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
11848 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
11849 (mark_stack) [GC_MARK_STACK]: New functions.
11850 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
11851 (clear_marks): Removed.
11852 (gc_sweep): Set free conses' car, free floats' type, free
11853 symbols' function to Vdead. Use lisp_free to free buffers.
11854 (init_alloc_once): Initialize Vdead.
11855 (survives_gc_p): Return non-zero for pure objects.
11856
11857 * alloc.c: Add comments throughout the file.
11858
2503c8b1
GM
11859 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
11860 that unblocks alarms.
11861
8389e1e2
GM
11862 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
11863 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
11864 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
11865
10689a01 11866 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 11867
bfc17d18
KH
118682000-02-17 Kenichi Handa <handa@etl.go.jp>
11869
4a09dee0
KH
11870 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
11871 avoid infinite error signaling. Allocate sufficient memory for
11872 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 11873
2b927d02
SM
118742000-02-17 Stefan Monnier <monnier@cs.yale.edu>
11875
11876 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
11877 depends on the previous behavior.
11878
b49cb764
GM
118792000-02-16 Gerd Moellmann <gerd@gnu.org>
11880
11881 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
11882
99e95407
GM
118832000-02-15 Gerd Moellmann <gerd@gnu.org>
11884
11885 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
11886
11887 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 11888 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
11889 write(2).
11890
6ffd3cf7
RS
118912000-02-15 Richard M. Stallman <rms@gnu.org>
11892
11893 * data.c (set_internal): Don't make variable buffer-local
11894 if within a let-binding for the same buffer.
11895 (let_shadows_buffer_binding_p): New function.
11896
11897 * eval.c (specbind): For buffer-local value,
11898 record the current buffer also.
11899 (unbind_to): Cope with that change.
11900
cad53475
GM
119012000-02-15 Gerd Moellmann <gerd@gnu.org>
11902
11903 * window.c (Fsave_window_excursion): Doc fix.
11904
1aa963c8
SM
119052000-02-15 Stefan Monnier <monnier@cs.yale.edu>
11906
11907 * syntax.c (back_comment): Make sure we only consider comment-starters
11908 of the relevant style and return -1 in case of a failure to find the
11909 beginning of the comment.
11910 (Fforward_comment): If back_comment fails, go back to the position just
11911 after the comment-end.
11912 (scan_lists): Add comment describing a very minor bug.
11913
b9b84fd3
SM
119142000-02-14 Stefan Monnier <monnier@cs.yale.edu>
11915
11916 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
11917 `completion-regexp-list' in the docstring.
11918
3a28db80
DL
119192000-02-14 Dave Love <fx@gnu.org>
11920
11921 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
11922
fb4a568d
SM
119232000-02-14 Stefan Monnier <monnier@cs.yale.edu>
11924
11925 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
11926 to Emacs' syntax. Also fix the comment about set/not-set meanings
11927 since Emacs syntax is not the value 0 any more.
11928 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
11929 since it's now part of RE_SYNTAX_EMACS.
11930
1063ebb5
DL
119312000-02-12 Dave Love <fx@gnu.org>
11932
52283633 11933 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha.
1063ebb5 11934
fb07a302
GM
119352000-02-12 Gerd Moellmann <gerd@gnu.org>
11936
11937 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
11938
aaf2320c
DL
119392000-02-12 Dave Love <fx@gnu.org>
11940
11941 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
11942
11943 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
11944 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
11945 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
11946
11947 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
11948
11949 * s/nextstep.h: Don't define HAVE_ALLOCA.
11950
11951 * config.in: Add vfork bits.
11952
eedf8bde
GM
119532000-02-12 Gerd Moellmann <gerd@gnu.org>
11954
11955 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
11956 unwind function to undo the effect of stopping atimers.
11957
52283633 11958 * keyboard.c (bind_polling_period): Stop all timers except poll_timer.
eedf8bde
GM
11959
11960 * atimer.c (stopped_atimers): New variable.
11961 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
11962 New functions.
11963
11964 * atimer.h (stop_other_atimers, run_all_atimers)
11965 (unwind_stop_other_atimers): Add function prototypes.
427ec082 11966
eedf8bde
GM
11967 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
11968
8476c2f8
KR
119692000-02-11 Ken Raeburn <raeburn@gnu.org>
11970
11971 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
11972 library may depend on jpeg.
11973 (atimer.o): Depends on atimer.c.
11974
0e85e4a3
KH
119752000-02-11 Kenichi Handa <handa@etl.go.jp>
11976
11977 * insdel.c (del_range_1): Call update_compositions.
11978 (del_range_both): Call update_compositions just once..
11979
97fa0cc8
DL
119802000-02-10 Dave Love <fx@gnu.org>
11981
11982 * xfns.c (create_frame_xic): Fix initialization of automatic
11983 aggregates for pcc.
11984
25566a3c
KH
119852000-02-09 Kenichi Handa <handa@etl.go.jp>
11986
11987 * ccl.c (CCL_MAKE_CHAR): New macro.
11988 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
11989 registers by CCL_MAKE_CHAR before calling translate_char.
11990 <CCL_TranslateCharacterConstTbl> Likewise.
11991
69da54ba
DL
119922000-02-08 Dave Love <fx@gnu.org>
11993
11994 * lread.c (__EXTENSIONS__): Define.
11995
f7136ee8
GM
119962000-02-08 Gerd Moellmann <gerd@gnu.org>
11997
11998 * puresize.h (BASE_PURESIZE): Increase to 650000.
11999
7768790b
EZ
120002000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
12001
12002 * msdos.c (XMenuActivate): Turn off the cursor after displaying
12003 the help message.
12004
38fd211b
EZ
120052000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
12006
12007 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
12008 md, mh, mb, mr, and me to the fake termcap entry.
12009
66e4690f
KR
120102000-02-06 Ken Raeburn <raeburn@gnu.org>
12011
12012 * sound.c (sound_cleanup): Don't call device close routine if the
12013 function pointer is null.
12014
a75dfea0
AI
120152000-02-06 Andrew Innes <andrewi@gnu.org>
12016
12017 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
12018 around image definitions and prototypes.
12019 (gamma_correct) [WINDOWSNT]: New prototype.
12020
12021 * w32term.c (x_make_frame_visible): Replace call to
12022 input_poll_signal with poll_for_input.
12023
12024 * window.c [WINDOWSNT]: Include w32term.h.
12025
12026 * xdisp.c [WINDOWSNT]: Include w32term.h.
12027
12028 * makefile.nt: Add dependencies on w32gui.h.
12029 (OBJ1): Include atimer.obj.
12030 ($(BLD)\atimer.obj): New dependency rule.
12031
12032 * w32.c (sigmask): New function (does nothing).
12033 (sigunblock): Ditto.
12034
12035 * frame.c [WINDOWSNT]: Include w32term.h.
12036
12037 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
12038
12039 * lread.c (syms_of_lread): Fix literal newlines.
12040
12041 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
12042 the string constant limit (2048 bytes) in MSVC.
12043 (main): Ditto.
12044
59ddecde
GM
120452000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
12046
52283633 12047 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area.
59ddecde
GM
12048 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
12049 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
12050 dispatch the event.
12051
07590973
DL
120522000-02-04 Dave Love <fx@gnu.org>
12053
12054 * fileio.c: Remove some unused vars.
12055 (_GNU_SOURCE): Define (for euidaccess).
12056
12057 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
12058
12059 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
12060 gcpro1, gcpro2.
12061 (read_minibuf): Deal with allow_props correctly.
12062
649351f9
EZ
120632000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
12064
12065 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
12066
66e4690f 120672000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
12068
12069 * search.c (compile_pattern): If a cache entry has a nil regexp,
12070 fill in that entry instead of clobbering a previously cached
12071 string regexp.
12072
66e4690f 120732000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
12074
12075 * puresize.h (BASE_PURESIZE): Increase to 610000.
12076
d240a249
GM
120772000-02-02 Gerd Moellmann <gerd@gnu.org>
12078
12079 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
12080 can GC.
12081
ca91fb26
KH
120822000-02-02 Kenichi Handa <handa@etl.go.jp>
12083
25660570
KH
12084 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
12085 instead of incrementing ic directly.
12086 <CCL_WriteExprConst> Likewise.
12087 <ccl_set_expr>: Set ic to jump_address.
12088
ca91fb26
KH
12089 * fileio.c (e_write): Fix the handling of
12090 CODING_FINISH_INSUFFICIENT_SRC.
12091
2ede9689
DL
120922000-02-01 Dave Love <fx@gnu.org>
12093
12094 * editfns.c (Fpropertize): Doc fix.
12095
12096 * process.c (Fstart_process): Doc fix.
12097
12098 * eval.c: Fix various doc strings not to duplicate information
12099 from help-manyarg-func-alist.
12100
52283633 12101 * window.c (Fset_window_margins): Don't make interactive. Doc fix.
2ede9689
DL
12102
12103 * doc.c (Vhelp_manyarg_func_alist): New variable.
12104 (Fdocumentation): Use it.
12105 (syms_of_doc): Define it.
12106
b6680a0e
GM
121072000-01-31 Gerd Moellmann <gerd@gnu.org>
12108
2cb750ba
GM
12109 * xterm.c (xim_open_dpy): Remove unused local variable.
12110
52283633 12111 * emacs.c (USAGE): Use term `display options' instead of `X options'.
74e9213b
GM
12112
12113 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
12114 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
12115
b6680a0e
GM
12116 * fns.c (sweep_weak_table): New function.
12117 (sweep_weak_hash_tables): Use it. Keep on marking until there
12118 is no more change.
12119
994c5afe
GM
121202000-01-30 Gerd Moellmann <gerd@gnu.org>
12121
12122 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
12123 that XTread_socket does not crash by trying to call XNoOp on a
12124 closed display.
427ec082 12125
f00276e3
JR
121262000-01-30 Jason Rumney <jasonr@gnu.org>
12127
12128 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
12129 Change selected_frame to SELECTED_FRAME ().
12130 (w32_console_mouse_position): Remove #ifndef MULE from around
12131 `insist' parameter.
12132
12133 * makefile.nt: Remove dosfns.obj.
12134
12135 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
12136
12137 * w32fns.c (w32_defined_color): Check for valid frame before
12138 applying gamma correction. Eliminate dependency on frame elsewhere.
12139 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
12140 (w32_to_x_font): Use resx and resy not height_in and width_in.
12141 (x_to_w32_font): Doc fix.
12142 (xlfd_strip_height): New function to strip and return font height.
12143 (w32_font_match): Compare height separately from rest of xlfd
12144 spec, using xlfd_strip_height.
12145
12146 * w32term.c (w32_term_init): Swap resx and height_in, resy and
12147 width_in. Use w32_defined_color in place of defined_color.
12148
12149 * w32faces.c: Merge more of DOS and X specifics in preparation for
12150 merge with xfaces.c.
12151 (defined_color): Remove FIXME comment.
12152 (tty_color_name): Provide w32-specific function.
12153 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
12154
12155 * w32console.c (turn_on_face, turn_off_face): Removed.
12156 (w32_face_attributes): New function.
12157 (Global_variables): Reduce scope where possible.
12158 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
12159 fill attribute.
12160 (hl_mode): Don't modify text attributes.
12161 (write_glyphs): Don't do anything if len <= 0. Use
12162 w32_face_attributes to get attributes for drawing. Write
12163 terminating codes using char_attr_normal.
12164 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
12165 (update_begin, update_end): Likewise.
12166 (vga_stdcolor_name): New function.
12167 (initialize_w32_display): Remove char_attr_reverse and char_attr.
12168 (Fset_screen_color): Remove char_attr_reverse.
12169
b08e8bb2
GM
121702000-01-29 Gerd Moellmann <gerd@gnu.org>
12171
12172 * xfns.c (xic_set_preeditarea): Take window parameter and
12173 window-relative pixel-positions.
12174
12175 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
12176 is its frame's selected window.
12177 (xim_instantiate_callback): Likewise.
12178
12179 * xfns.c (x_create_im): Removed.
12180 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
12181 (supported_xim_styles): Renamed from supported_styles.
12182 (best_xim_style): Renamed from best_style.
12183 (create_frame_xic): Renamed from xic_create_frame.
12184 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 12185
b08e8bb2
GM
121862000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
12187
12188 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
12189 our frames, call XFilterEvent with 2nd parameter `None'.
12190 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
12191 returning XBufferOverflow.
52283633 12192 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area.
b08e8bb2
GM
12193 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
12194 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
12195 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
12196 (xim_initialize, xim_close)
12197 [HAVE_X_I18N && HAVE_X11R6]: New functions.
12198 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
12199 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
12200 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
12201
12202 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
12203 and `xim_styles'.
12204 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
12205 `xic_style' and `xic_xfs'.
12206 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
12207 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
12208 (FRAME_XIM): Removed.
12209
12210 * xfns.c (supported_styles): New variable.
12211 (DEFAULT_STYLE, DEFAULT_FONT): New macros
12212 (xic_create_xfontset, best_style, xic_create_frame)
12213 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
12214 (xic_set_xfontset): New functions.
12215
142e109c
DL
122162000-01-28 Dave Love <fx@gnu.org>
12217
12218 * s/irix6-5.h: Revert last change after change to irix5-0.h.
12219
12220 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
12221
b02786f9
GM
122222000-01-28 Gerd Moellmann <gerd@gnu.org>
12223
d060bc9f
GM
12224 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
12225 for *scratch* if it already existed.
12226
b02786f9
GM
12227 * emacs.c (USAGE): New macro.
12228 (main): Use it to display usage information.
12229
2c52d7e4
EZ
122302000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
12231
12232 Support for the menu-help feature:
12233
52283633 12234 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate.
2c52d7e4
EZ
12235
12236 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
12237 part of the line to the termscript file.
12238 (IT_clear_to_end): Clear the entire line, not just its beginning.
12239 (menu_help_message, prev_menu_help_message): New variables.
12240 (IT_menu_make_room): Make room for the help_text member.
12241 (IT_menu_display): New argument disp_help; all callers changed.
12242 If disp_help is non-zero, store the help text of the active menu
12243 item in menu_help_message.
12244 (XMenuAddPane): Initialize the help_text member to NULL.
12245 (XMenuAddSelection): New argument help_text. Store it in the
12246 XMenu structure.
12247 (XMenuActivate): New argument help_callback. If the value of
12248 menu_help_message has changed since the last time, display the
12249 menu help message text while waiting for the mouse to move. Clear
12250 the echo area before exiting.
12251 (XMenuDestroy): Free the help_text member.
12252
ffe0bcd1
GM
122532000-01-27 Gerd Moellmann <gerd@gnu.org>
12254
12255 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
12256 XMenuAddSelection. Pass help callback to XMenuActivate.
12257 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
12258
50dbd23f
EZ
122592000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
12260
12261 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
12262 and EMACS_SET_USECS.
12263
f5941bf8
GM
122642000-01-26 Dave Love <fx@gnu.org>
12265
6c67ddee
DL
12266 * editfns.c (Fchar_after, Fchar_before): Doc fix.
12267
f5941bf8
GM
12268 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
12269 an error may be signalled.
12270
9e49c990
GM
122712000-01-26 Gerd Moellmann <gerd@gnu.org>
12272
fc3cb460
GM
12273 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
12274 LD_SWITCH_SYSTEM inherited from irix5-0.h.
12275
9e49c990
GM
12276 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
12277
d0c037d8
GM
122782000-01-25 Gerd Moellmann <gerd@gnu.org>
12279
12280 * charset.c (Fstring): If there is a multibyte char among
12281 the args, always return a multibyte string.
12282
e12489f9
GM
122832000-01-25 Gerd Moellmann <gerd@gnu.org>
12284
12285 * sysdep.c (sys_select): Turn atimers off and on instead of
12286 recording and restoring old alarm handler
12287
12288 * process.c (toplevel): Include atimer.h.
12289 (create_process_1): Rewritten.
12290 (create_process): Use atimers instead of alarm.
12291 (wait_reading_process_input) [hpux]: Turn atimers off instead
12292 of turning off SIGALRM.
12293 (wait_reading_process_input): Turn off atimers instead off
12294 calling stop_polling.
12295
12296 * emacs.c (main): Call init_atimer.
12297
12298 * keyboard.c (toplevel): Include systime.h and atimer.h.
12299 (polling_for_input): Removed because unused.
12300 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
12301 (poll_timer): New variable.
12302 (poll_for_input, poll_for_input_1): New functions.
12303 (start_polling, stop_polling): Rewritten.
12304
12305 * keyboard.h (polling_for_input): Removed.
427ec082 12306
e12489f9
GM
12307 * atimer.h, atimer.c: New files.
12308
12309 * Makefile.in (obj): Add atimer.o.
12310 (atimer.o): New target.
12311
12312 * blockinput.h (pending_atimers): Add extern declaration.
12313 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
12314
12315 * lisp.h (popup_activated_flag): Add extern declaration.
12316
12317 * xmenu.c (popup_activated_flag): Make externally visible.
52283633 12318 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag.
e12489f9
GM
12319 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
12320
12321 * xterm.c (toplevel): Include atimer.h.
12322 (toolkit_scroll_bar_interaction): New variable.
12323 (Fxt_process_timeouts): Removed.
12324 (x_process_timeouts): New function.
12325 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
12326 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
12327 (x_make_frame_visible): Call poll_for_input_1 instead of
12328 input_poll_signal. Don't call alarm.
12329 (x_initialize): Install timer calling x_process_timeouts.
427ec082 12330
1e5279b9
DL
123312000-01-24 Dave Love <fx@gnu.org>
12332
6c67ddee 12333 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
12334 Don't use -cckr -- apparently not now necessary.
12335
edf6aeb8
EZ
123362000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
12337
12338 * msdos.c (IT_menu_display): Truncate long menu lines at the right
12339 screen boundary.
12340
9badad41
JR
123412000-01-23 Jason Rumney <jasonr@gnu.org>
12342
12343 * w32fns.c (w32_defined_color): Apply gamma correction before
12344 trying to map to the palette.
12345 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
12346 to w32_clear_rect.
12347
12348 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
12349 here. Callers changed to always pass real device context.
12350 (w32_draw_bitmap): Likewise.
12351 (w32_get_glyph_overhangs): Likewise.
52283633 12352 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one.
9badad41
JR
12353 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
12354 pfnSetScrollInfo and SetScrollRange.
12355 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
12356 back into MULE characters after decoding them.
12357 (x_get_glyph_face_and_encoding): Likewise.
12358 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
12359 GetCharABCWidthsW fails, since this is defined on Windows 9x.
12360 (x_produce_glyphs): Calculate per char metrics for a character
12361 that we know exists in default font when font_not_found_p is true.
12362
63bd786b
JR
123632000-01-22 Jason Rumney <jasonr@gnu.org>
12364
12365 * makefile.nt (intervals.obj, composite.obj): New modules.
12366 (composite.h): Added as dependency where appropriate.
12367
12368 * w32gui.h (XGCValue): New struct for emulating X GCs.
12369
12370 * w32term.h (XCharStruct): New struct for emulating X.
12371
12372 * w32console.c (turn_on_face, turn_off_face): New functions.
12373 (change_line_highlight): New prototype for new redisplay.
12374 (write_glyphs): Support multibyte text. Support faces.
12375
52283633 12376 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c.
63bd786b
JR
12377
12378 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
12379 throughout. struct frame * in place of FRAME_PTR.
12380 Skeleton support for images, toolbars, tooltips from xfns.c.
52283633 12381 (Fx_create_frame): Use system default for default scroll bar width.
63bd786b
JR
12382 (w32_get_arg): Renamed from x_get_arg.
12383 (Fx_file_dialog): New function.
12384 (w32_list_fonts): Check cache before asking system.
12385 (Vw32_enable_synthesized_fonts): New variable.
12386 (Vw32_enable_italics): Obsolete, removed.
12387
12388 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
12389 Use SELECTED_FRAME macro.
12390
12391 * w32menu.c: Add skeleton support for help strings on menus.
12392 (add_menu_item): Native checkbox and radio support added, but not
12393 yet enabled due to bugs.
12394 (push_menu_item): Add parameters type, selection and help.
12395 Callers updated.
12396 Formatting changes to reduce unnecessary diffs with xmenu.c.
12397
12398 * w32select.c (Fw32_set_clipboard_data): Update call to
12399 find_charset_in_str.
12400
12401 * w32term.c: Complete rewrite for new redisplay based on new
12402 xterm.c with necessary sections merged back in from old w32term.c.
12403
6ffd3cf7 124042000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
12405
12406 * data.c (set_internal): Further fix in same criterion.
12407
6ffd3cf7 124082000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
12409
12410 * data.c (set_internal): Fix the criteria for whether
12411 to swap out the old cached binding.
12412
60af03f1
DL
124132000-01-19 Dave Love <fx@gnu.org>
12414
12415 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
12416
f9be074f
KH
124172000-01-18 Kenichi Handa <handa@etl.go.jp>
12418
12419 * regex.c (re_compile_fastmap): While checking a range table for
12420 `charset', skip flag bits for a character class correctly.
12421
52b8dbf9
GM
124222000-01-17 Gerd Moellmann <gerd@gnu.org>
12423
d36100c9
GM
12424 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
12425
52283633 12426 * xfns.c (x_window): Call lw_create_widget with new parameter list.
52b8dbf9
GM
12427
12428 * widget.c (EmacsFrameSetCharSize): Change size of children first
52283633 12429 because of problems with main window geometry management under Lesstif.
52b8dbf9
GM
12430
12431 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
12432 MENU_ITEMS_ITEM_.*.
12433 (MENU_ITEMS_ITEM_HELP): New enumerator.
12434 (push_menu_item): Add parameter HELP. Record help in menu_items.
12435 (single_menu_item, single_submenu, list_of_items): Call
12436 push_menu_item with new parameter.
12437 (single_submenu): Set help string in widget value.
12438 (menu_highlight_callback): New function.
12439 (set_frame_menubar): Call lw_create_widget with new
12440 parameter list.
12441 (xmenu_show, xdialog_show): Ditto.
12442
3139018f
GM
124432000-01-13 Gerd Moellmann <gerd@gnu.org>
12444
12445 * sound.c (Fplay_sound): Improve doc string.
12446
83c8f461
RS
124472000-01-11 Richard M. Stallman <rms@gnu.org>
12448
12449 * lisp.h (set_internal): Enter the new arg.
12450
12451 * eval.c (specbind): Record buffer-local variables specially,
12452 indicating which buffer's binding was saved.
12453 (unbind_to): Restore buffer-local variables specially
12454 in the proper buffer.
12455
12456 * data.c (set_internal): New arg BUF.
427ec082 12457
83c8f461
RS
12458 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
12459 * data.c (Fset): Pass new arg to set_internal.
12460 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 12461
1fab1775
GM
124622000-01-11 Gerd Moellmann <gerd@gnu.org>
12463
52283633 12464 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym.
1fab1775 12465
83c8f461 124662000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
12467
12468 * minibuf.c (Ftry_completion): Doc fix.
12469
7a85e4df
GM
124702000-01-11 Gerd Moellmann <gerd@gnu.org>
12471
12472 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
12473 vector, too.
12474
a970dae4
AS
124752000-01-11 Andreas Schwab <schwab@suse.de>
12476
12477 * coding.c (code_convert_region): Initialize total_skip.
12478
c65d14ee
DL
124792000-01-08 Dave Love <fx@gnu.org>
12480
12481 * eval.c (Fuser_variable_p): Check customizability too.
12482
834938d2
GM
124832000-01-07 Gerd Moellmann <gerd@gnu.org>
12484
12485 * minibuf.c (Fcompleting_read): Doc fix.
12486
e0303cd6
GM
124872000-01-05 Gerd Moellmann <gerd@gnu.org>
12488
8a26744b
GM
12489 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
12490 -L /usr/local/lib.
12491
e0303cd6
GM
12492 * xfns.c (x_create_im): New function to set IM and IC of a frame.
12493 Check that input style is supported before trying to create an
12494 IC for it.
12495 (x_window): Call x_create_im.
427ec082 12496
2e471eb5
GM
124972000-01-04 Gerd Moellmann <gerd@gnu.org>
12498
560a7bd2
GM
12499 * xfns.c (current_gif_memory_src): New variable.
12500 (gif_load): Record the address of the current memory source
12501 in current_gif_memory_src.
12502 (gif_read_from_memory): Use current_gif_memory_src.
12503
f9ee84a3
GM
12504 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
12505 macros statement form.
12506
d1299cde
GM
12507 * sound.c (struct sound): Renamed from struct sound_file.
12508 (struct sound): Add members `data' and `header_size'.
12509 (enum sound_attr): Add SOUND_DATA.
12510 (current_sound, current_sound_device): Variables renamed from
12511 sound_file and sound_device.
12512 (parse_sound): Parse :data.
12513 (parse_sound): Handle sound data in strings.
12514 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 12515 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
12516 needed header size.
12517 (wav_play, au_play): Play sounds from string data.
12518
2e471eb5
GM
12519 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
12520
12521 * lisp.h: Add prototype for allocate_string_data.
12522
52283633 12523 * alloc.c (Fgarbage_collect): Return number of live and free strings.
2e471eb5
GM
12524
12525 * alloc.c (mark_buffer): Remove code in #if 0.
12526 (gc_sweep): Ditto.
12527 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
12528 (strings_consed): New variable.
12529 (allocate_string): Set it.
12530 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
12531 (Fmemory_use_counts): Return strings_consed. Use Flist.
12532
12533 * alloc.c: General cleanup in comments etc. Remove conditional
12534 compilation for `standalone'.
12535
12536 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
12537
12538 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
12539 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
12540 (DONT_COPY_FLAG): Removed.
12541 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
12542 (struct sdata, struct sblock): New
12543 (struct string_block): Rewritten.
12544 (STRINGS_IN_STRING_BLOCK): New macro.
12545 (oldest_sblock, current_sblock, total_strings, total_free_strings)
12546 (large_sblocks, string_blocks, string_free_list): New variables.
12547 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
12548 (init_strings): Rewritten.
12549 (allocate_string, allocate_string_data, compact_small_strings)
12550 (free_large_strings, sweep_strings): New functions.
12551 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
12552 (struct string_block_head, current_string_block)
12553 (first_string_block, large_string_blocks, STRING_FULLSIZE)
12554 (STRING_PAD): Removed.
12555 (make_uninit_multibyte_string, make_pure_string): Rewritten.
12556 (Fgarbage_collect): Don't set mark bit in large strings.
12557 (mark_object): Mark strings differently. Mark symbol names
12558 differently.
12559 (survives_gc_p): Test marked strings differently.
427ec082 12560 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
12561 symbol names.
12562 (compact_strings): Removed.
12563
42608ba8
EZ
125642000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
12565
12566 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
12567 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
12568
e0a09e1a
KH
125692000-01-04 Kenichi Handa <handa@etl.go.jp>
12570
dd9f0750 12571 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 12572 in a non-empty buffer.
dd9f0750 12573
3c0f3b15 12574 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 12575
44cd3ae5
GM
125762000-01-03 Gerd Moellmann <gerd@gnu.org>
12577
12578 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
12579 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
12580
12581 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
12582
c182a70f
EZ
125832000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
12584
12585 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
12586 need to test for MSDOS frames.
12587
24480d5b
EZ
125882000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
12589
12590 * dosfns.c (unspecified_colors): Remove.
12591 (msdos_stdcolor_idx): Use global variables unspecified_fg and
12592 unspecified_bg.
12593 (msdos_stdcolor_name): Return strings for unspecified fore- and
12594 back-ground colors.
12595
12596 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 12597 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
12598 (tty_color_name): Return Lisp strings for unspecified fore- and
12599 back-ground colors.
12600 (Finternal_set_lisp_face_attribute): Remove the special treatment
12601 for Qunspecified_{f,b}g.
52283633 12602 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string.
24480d5b 12603
047f434a
GM
126042000-01-03 Gerd Moellmann <gerd@gnu.org>
12605
12606 * xdisp.c (reseat_at_next_visible_line_start): Position before
12607 newline only if ending up on a newline.
12608 (next_element_from_ellipsis): Return success. Handle case of
52283633 12609 displaying no ellipsis. Fix case of ellipsis defined in display table.
047f434a
GM
12610 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
12611 returns 0.
12612
d684c676
EZ
126132000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
12614
12615 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
12616 (Fcolor_supported_p): Renamed from face-color-supported-p.
12617
5fe1d139
EZ
126182000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
12619
12620 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
12621 list of colors renamed to tty-defined-color-alist.
12622 (tty_color_name): Pass the frame to tty-color-by-index.
12623 (realize_tty_face): tty-color-alist is now a function which
12624 accepts the frame as argument.
12625
52283633 12626 * term.c (Ftty_display_color_p): Accept an optional argument FRAME.
5fe1d139 12627
816be8b8
EZ
126282000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
12629
12630 * term.c (insert_glyphs): Pass glyph, not &glyph, to
12631 encode_terminal_code.
12632
b635321e
EZ
126332000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
12634
12635 * dispnew.c (mode_line_string): Support termcap frames as well.
12636
9b784e96
GM
126372000-01-01 Gerd Moellmann <gerd@gnu.org>
12638
27189709
GM
12639 * syntax.c (Fforward_word): Undo previous change.
12640
12641 * editfns.c (Fconstrain_to_field): Don't constrain if
12642 inhibit-field-text-motion is non-nil.
12643 (Fline_beginning_position): Undo previous change.
12644 (Fline_end_position): Ditto.
12645
12646 * syntax.c (Fforward_word): Notice field boundaries only if
12647 inhibit-field-text-motion is nil.
12648
12649 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
12650
12651 * editfns.c (Vinhibit_field_text_motion): New variable.
12652 (inhibit-field-text-motion): New DEFVAR_LISP.
12653 (Fline_beginning_position, Fline_end_position): Notice field
12654 boundaries only if inhibit-field-text-motion is nil.
12655
45158a91
GM
12656 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
12657 All calls adjusted.
12658 (x_build_heuristic_mask): Likewise.
12659 (xbm_load_image_from_file): Change error output.
12660 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
12661 (gif_load, gs_load, x_kill_gs_process): Ditto.
12662
9b784e96
GM
12663 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
12664 color indices when accessing raster pixels.
63cec32f
GM
12665 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
12666 one of :file or :data.
12667 (enum pbm_keyword_index): Add PBM_DATA.
12668 (pbm_format): Add :data.
12669 (pbm_image_p): Allow either :file or :data.
12670 (pbm_read_file): New function.
12671 (pbm_scan_number): Rewritten to read from string.
12672 (pbm_load): Support :data.
9b784e96 12673
2cb085db 12674See ChangeLog.8 for earlier changes.
6922b018
KH
12675
12676;; Local Variables:
49b3bd82 12677;; coding: iso-2022-7bit
6922b018 12678;; End:
2a34a036
GM
12679
12680 Copyright (C) 2001 Free Software Foundation, Inc.
12681 Copying and distribution of this file, with or without modification,
12682 are permitted provided the copyright notice and this notice are preserved.