(cursor_row_p): Take continued lines into account.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
54918e2b
GM
12000-10-17 Gerd Moellmann <gerd@gnu.org>
2
9a038881
GM
3 * xdisp.c (cursor_row_p): Take continued lines into account.
4
361b097f
GM
5 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
6 string's size_byte.
7 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
8 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
9 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
10 string allocated.
11
54918e2b
GM
12 * xdisp.c (forward_to_next_line_start): Switch iterator's handling
13 of selective display off while searching for the next line start.
14
03ed0806
KH
152000-10-17 Kenichi Handa <handa@etl.go.jp>
16
17 * Makefile.in (term.o): Depend on dispextern.h.
18
7e05cdaf
SM
192000-10-16 Stefan Monnier <monnier@cs.yale.edu>
20
21 * keymap.c (keymap_memberp): Ensure that nil is not a member.
22
a6801fd1
GM
232000-10-16 Gerd Moellmann <gerd@gnu.org>
24
483de32b
GM
25 * xdisp.c (set_iterator_to_next): Reset box start and end flags of
26 the iterator at the beginning, so that they can be set later on,
27 for instance in reseat_at_next_visible_line_start, without being
28 overwritten.
29
a6801fd1
GM
30 * xfns.c (pbm_format): Add :foreground and :background keywords.
31 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
483de32b 32 (xbm_load): Recognize foreground and background color
a6801fd1
GM
33 specifications.
34
dbf1fcc1
EZ
352000-10-16 Eli Zaretskii <eliz@is.elta.co.il>
36
37 * dispextern.h (unspecified_fg, unspecified_bg): Declare.
38
39 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern
40 declaration.
41
42 * msdos.c (IT_set_face): Compare highlighted face with the default
43 face, and invert colors if these faces' colors are identical.
44 (Fmsdos_remember_default_colors): Don't swap foreground and
45 background colors in initial_colors[].
46 (IT_set_frame_parameters): Don't swap frame's foreground and
47 background pixels. If ALIST includes "(reverse . t)", swap
48 foreground-color and background-color properties in frame's
49 param_alist. If the original frame's param_alist doesn't specify
50 the colors, store unspecified-fg and unspecified-bg, reversed if
51 required.
52
53 * frame.c (Fframe_parameters): If a tty's frame's param_alist says
54 the colors are unspecified and reversed, reverse fore- and back-
55 ground in the returned value.
56 (Fframe_parameter): Ditto.
57
b41fe2c3
GM
582000-10-16 Gerd Moellmann <gerd@gnu.org>
59
3a6b59d9
GM
60 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
61 get_last_unchanged_at_beg_row.
62 (find_first_unchanged_at_end_row): Renamed from
63 get_first_unchanged_at_end_row.
64 (find_first_unchanged_at_end_row): Convert assertions to
65 unconditional tests which abort. When looking for a row in
66 unchanged text, don't go further back than first_text_row.
67
b41fe2c3
GM
68 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
69 Don't add in the last line's height when deciding if the new
70 position is below the scroll margin.
9d1af64f 71
b41fe2c3 722000-10-16 Miles Bader <miles@gnu.org>
f657bbf6
MB
73
74 * editfns.c (Fconstrain_to_field): Check carefully for field
75 boundaries if either OLD_POS or NEW_POS has a non-nil field
76 property, even if they're the same.
77
c412cb7b
KH
782000-10-16 Kenichi Handa <handa@etl.go.jp>
79
80 * xterm.c (x_draw_box_rect): Fix the calculation of width and
81 height for XFillRectangle.
82
5586f3eb
SM
832000-10-15 Stefan Monnier <monnier@cs.yale.edu>
84
85 * syntax.c (Fstring_to_syntax): New function extracted from
86 Fmodify_syntax_entry.
87 (Fmodify_syntax_entry): Use it and document the ! and | fences.
88 (skip_chars, Fforward_comment): Remove unused variables.
89 (syms_of_syntax): Add defsubr for string-to-syntax.
90 (describe_syntax): Add code for comment and string fences.
91
db785038
SM
922000-10-14 Stefan Monnier <monnier@cs.yale.edu>
93
94 * keymap.c (access_keymap): Add AUTOLOAD parameter.
95 Do the meta->esc mapping. Call get_keyelt before returning.
96 Start scanning from the second element (the first is always `keymap')
97 to make it easier to detect when we reach a parent map.
98 Handle the case of inheriting from a symbol whose function is a map.
99 (Fkeymap_parent): Also handle the `inherit from symbol' case.
100 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
101 (get_keyelt, Flookup_key): Update call to access_keymap.
102 Remove the meta->esc mappings.
103 (define_as_prefix): Delete old disabled code.
104 (menu_item_p): New function.
105 (where_is_internal_1): Skip over the few remaining menu items.
106 * lisp.h (access_keymap): Update prototype.
107 * keyboard.c (read_char, menu_bar_items, tool_bar_items):
108 Update call to access_keymap.
109 (follow_key, read_key_sequence): Update calls to access_keymap.
110 Remove the meta->esc mappings.
111
cafafe0b
GM
1122000-10-13 Gerd Moellmann <gerd@gnu.org>
113
a2e2a7f6
GM
114 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
115 with additional argument.
116
cafafe0b
GM
117 * xdisp.c (cursor_row_p): New function.
118 (try_cursor_movement, display_line): Use it.
119
120 * xdisp.c (append_space): Also save/restore iterator's current
121 character and its length.
122
123 * xdisp.c (init_from_display_pos): Add an assertion.
124 (handle_stop): Don't set iterator's add_overlay_start.
125 (handle_invisible_prop): Likewise.
126 (load_overlay_strings): If text under an overlay is invisible,
127 take both before- and after-strings into account when the iterator
128 is positioned either at the start or at the end of the overlay.
129 (forward_to_next_line_start): Rewritten.
130 (reseat_at_next_visible_line_start): Rewritten.
131 (set_iterator_to_next): Add parameter RESEAT_P.
132
133 * dispextern.h (struct it): Remove member add_overlay_start.
134 (set_iterator_to_next): Change prototype.
135
c744452b
KH
1362000-10-13 Kenichi Handa <handa@etl.go.jp>
137
138 * coding.c (code_convert_region): Be sure to initialize
139 coding->category_idx.
e4a3f4e1
KH
140 (decode_coding_string): Set coding->src_multibyte and
141 coding->dst_multibyte before using CODING_REQUIRE_DECODING.
142 (encode_coding_string): Set coding->src_multibyte and
143 coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
c744452b 144
321fd26f
SM
1452000-10-12 Stefan Monnier <monnier@cs.yale.edu>
146
147 * xfns.c (Fx_create_frame): Don't bother calling
148 face-set-after-frame-default since the caller does it for us anyway.
149
76832439
EZ
1502000-10-12 Eli Zaretskii <eliz@is.elta.co.il>
151
152 * window.c (coordinates_in_window): Fix detection of vertical line
153 on character terminals.
154
2483cf58
GM
1552000-10-12 Gerd Moellmann <gerd@gnu.org>
156
157 * editfns.c (save_excursion_save): Additionally record the
158 selected window.
159 (save_excursion_restore): If buffer was visible in a window, and a
160 different window was selected, and the old selected window is
161 still live, restore point in that window.
162
eb991b25
KH
1632000-10-12 Kenichi Handa <handa@etl.go.jp>
164
8a0eba09
KH
165 * xterm.c (x_produce_glyphs): Handle
166 unibyte_display_via_language_environment correctly.
167
20401fcc
KH
168 * regex.c (regex_compile): Change the way of handling a range from
169 unibyte char to multibyte char.
170
171 * syntax.c (skip_chars): Change the way of handling a range from
172 unibyte char to multibyte char.
173
eb991b25
KH
174 * process.c (read_process_output): Cancel previous change.
175
365dd325
EZ
1762000-10-11 Eli Zaretskii <eliz@is.elta.co.il>
177
c1b096cb
EZ
178 * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
179
365dd325
EZ
180 * charset.c (Ffind_charset_string): Doc fix.
181 (Ffind_charset_region): Doc fix.
182
eb483c2b
KH
1832000-10-11 Kenichi Handa <handa@mule.m17n.org>
184
185 * process.c (read_process_output): Fix previous change. Adjust
186 multibyteness of text to insert in a buffer by
df3c11b9 187 string_make_unibyte/multibyte instead of
eb483c2b
KH
188 Fstring_as_unibyte/multibyte.
189
b40bfb99
AS
1902000-10-10 Andreas Schwab <schwab@suse.de>
191
192 * alloc.c (mark_object): Remove all workarounds installed on
193 1993-08-08.
194
caff31d4
KH
1952000-10-10 Kenichi Handa <handa@etl.go.jp>
196
197 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before
198 returning.
199 (base64_encode_1): Make it work for a text of multibyte form.
200 (Fbase64_decode_region): Allocate sufficient memory for multibyte
201 case. Don't call str_to_multibyte because base64_decode_1
202 produces correct multibyte form for eight-bit codes.
203 (Fbase64_decode_string): Adjusted for the change of
204 base64_decode_1.
205 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If
206 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
207 codes.
208
209 * charset.h (CHAR_STRING): Optimized for single byte characters.
210
cba026ef
AS
2112000-10-09 Andreas Schwab <schwab@suse.de>
212
213 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
214 -1 after socket is closed, to fall through to error processing.
215
1e21fe48
EZ
2162000-10-09 Eli Zaretskii <eliz@is.elta.co.il>
217
218 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
365dd325 219 variables. If ALIST includes foreground-color or
1e21fe48
EZ
220 background-color, change also the colors of the default face for
221 this frame.
222
a640322e
EZ
2232000-10-08 Eli Zaretskii <eliz@is.elta.co.il>
224
225 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
226 them extern (they are defined on xfaces.c).
227 (syms_of_msdos): Don't intern and don't staticpro
228 Qbackground_color and Qforeground_color.
229
a115794c
EZ
2302000-10-07 Eli Zaretskii <eliz@is.elta.co.il>
231
232 * frame.c (Fframe_parameter): For non-windowed frames, if
233 f->param_alist says foreground or background color is unspecified,
234 call tty_color_name to return the color name computed from the
235 frame's current colors.
236
f5533b63
DL
2372000-10-06 Dave Love <fx@gnu.org>
238
239 * terminfo.c (ospeed): Don't declare.
240
241 * sysdep.c: Don't include string.h.
242 (h_errno): Declare conditional also on TRY_AGAIN.
243
244 * charset.c (Ffind_charset_string): Doc fix.
245
246 * fns.c (Fbase64_encode_region, Fbase64_encode_string)
247 (Fbase64_decode_region, Fbase64_decode_string): More explicit
248 error messages.
249
2b06561a
DL
2502000-10-05 Dave Love <fx@gnu.org>
251
252 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
253 position like menu-bar.
254
ca839c85
GM
2552000-10-05 Gerd Moellmann <gerd@gnu.org>
256
257 * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
258
259 * xdisp.c (handle_single_display_prop): Use safe_call1.
260 (safe_call): Renamed from call_function.
261 (safe_call1): New function.
262 (handle_fontified_prop): Use safe_call1 instead of call1.
263 (safe_eval): Renamed from eval_form.
264 (safe_eval_handler): Renamed from eval_handler.
265 (handle_single_display_prop, display_mode_element): Use safe_eval
266 instead of eval_form.
267
268 * xfaces.c (merge_face_heights): Use safe_call instead of
269 call_function.
270
271 * keyboard.c (show_help_echo): Use safe_call instead of
272 call_function; use safe_eval instead of eval_form.
273
274 * lisp.h (safe_call): Renamed from call_function.
275 (safe_eval): Renamed from eval_form.
276 (safe_call1): Add prototype.
277
a3489ece
MB
2782000-10-05 Miles Bader <miles@lsi.nec.co.jp>
279
280 * xfns.c (image_ascent): Rearrange ascent calculation for the
281 has-a-font case.
282
35810b6f
SM
2832000-10-04 Stefan Monnier <monnier@cs.yale.edu>
284
285 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
286 (where_is_internal_1): Don't bother ignoring menu-items any more.
287
3dc78168
GM
2882000-10-04 Gerd Moellmann <gerd@gnu.org>
289
290 * keyboard.c (update_menu_bindings): New variable.
291 (parse_menu_item): Use AREF. If update_menu_bindings
292 is 0, don't update menu bindings.
293 (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
294
1efc2bb9
EZ
2952000-10-03 Eli Zaretskii <eliz@is.elta.co.il>
296
297 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
298 to `mark_object'.
299
3f679f55
SM
3002000-10-02 Stefan Monnier <monnier@cs.yale.edu>
301
302 * syntax.c (forw_comment): Match nestedness of ender/starter.
303 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
304 (prev_char_comstart_first): Remove.
305 (back_comment): Check two-char comment markers more carefully
306 to better handle overlapping cases like *//* or /* */* */ ...
307 Match nestedness of ender/starter.
308
2021ab61
DL
3092000-10-02 Dave Love <fx@gnu.org>
310
311 * config.in (HAVE_GAI_STRERROR): Add undef.
312
313 * process.c (Fopen_network_stream): Use it.
314
315 * m/alpha.h (NO_REMAP): Don't define.
316
64e6cc18
GM
3172000-10-02 Gerd Moellmann <gerd@gnu.org>
318
319 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
320 return with a string converted to an integer or vice versa when
321 Vmocklisp_arguments is t.
322 (Fsignal): Likewise. The function can return for `quit'.
323 (struct gcpro): Declare member `var' to point to a volatile
324 Lisp_Object.
325
326 * eval.c (error): Prevent compiler warning.
327
b1904cd9
SM
3282000-09-30 Stefan Monnier <monnier@cs.yale.edu>
329
330 * keymap.c (keymap_memberp): New function.
331 (Fset_keymap_parent): Use it.
332 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
333 Use keymap_memberp to avoid creating cycles.
334 (access_keymap): Use KEYMAPP.
335
71c9ec51
GM
3362000-09-30 Gerd Moellmann <gerd@gnu.org>
337
338 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
64e6cc18
GM
339 gai_strerror. Make sure xerrno is set if connect fails. Improve
340 error recovery.
71c9ec51 341
c70c6b58
JR
3422000-09-29 Jason Rumney <jasonr@gnu.org>
343
344 * w32term.c (w32_char_font_type, w32_encode_char)
345 (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
346 (w32_bdf_per_char_metric): New function.
347 (w32_per_char_metric): Use it.
348 (x_draw_glyph_string_background): Always draw background for BDF
349 glyphs.
350
351 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
352 GDI object which is a scarce resource.
353
354 * w32bdf.c (search_file_line): Fix skipping of whitespace.
355 (get_quoted_string): Fix limit on memchr search.
356 (set_bdf_font_info): Use unsigned chars. Negate yoffset.
357 (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
358 (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
359 (get_cached_font_char, cache_char_offset): Use macro
360 BDF_CODEPOINT_RANGE_COVER_P.
361 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
362 (clear_cached_bitmap_slots): New function.
363 (GET_HEX_VALUE): G-Z, g-z are not hex.
364 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
365 (get_bitmap_with_cache): Use new cache implementation.
366 (create_offscreen_bitmap): New function.
367 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
368
369 * w32term.c (x_produce_glyphs): If the distance from the current
370 position to the next tab stop is less than a canonical character
371 width, use the tab stop after that.
372 (x_draw_glyphs): Handle case START and END are out of bounds more
373 carefully.
374 (x_clear_mouse_face): Block/unblock input.
375 (x_display_and_set_cursor): Don't show a hollow box cursor for
376 buffers whose cursor_type is nil.
377
fe01239f
GM
3782000-09-29 Gerd Moellmann <gerd@gnu.org>
379
380 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar
381 disappears.
382
383 * dispextern.h (updating_frame): Declare extern.
384
e7c52f1f
AS
3852000-09-29 Andreas Schwab <schwab@suse.de>
386
387 * m/ia64.h: Remove hack of not prototyping bcopy, etc.
388
de6e1f7c
GM
3892000-09-29 Gerd Moellmann <gerd@gnu.org>
390
25126faa
GM
391 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
392 use its function definition.
393 (tool_bar_items): Likewise.
394
de6e1f7c
GM
395 * lisp.h (fatal): Declare NO_RETURN.
396
454ee39b
KH
3972000-09-29 Kenichi Handa <handa@etl.go.jp>
398
399 * keymap.c: Remove the line "#undef NULL".
400
96301c5f
GM
4012000-09-28 Gerd Moellmann <gerd@gnu.org>
402
403 * xterm.c (x_make_frame_visible): Try harder to make the frame
404 visible.
405
efffeeb4
DL
4062000-09-28 Dave Love <fx@gnu.org>
407
ecb8b666
DL
408 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
409
dc3cd20f
DL
410 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
411
412 * .gdbinit (xreload): Note its need on GNU/Linux.
413
efffeeb4
DL
414 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
415 r_alloc, r_alloc_free.
416
8610d903
KH
4172000-09-28 Kenichi Handa <handa@etl.go.jp>
418
419 * syntax.c (skip_chars): Handle negation correctly.
420
8901d1ac
GM
4212000-09-27 Gerd Moellmann <gerd@gnu.org>
422
6f22f1ad
GM
423 * xfaces.c (realize_default_face): Call set_lface_from_font_name
424 with non-zero FORCE_P argument.
425
8901d1ac
GM
426 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows):
427 Add assertions.
428
429 * xdisp.c (window_box_height): Add an assertion.
430
431 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
432 tool-bar than is available.
433 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
434
36f1966f
DL
4352000-09-27 Dave Love <fx@gnu.org>
436
efffeeb4 437 * s/irix6-5.h: Now works 64-bit. Tidied.
36f1966f 438
31d929e5
GM
4392000-09-26 Gerd Moellmann <gerd@gnu.org>
440
c98863bf
GM
441 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
442 instead of BITS_PER_INT.
443 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
444 EMACS_UINT, respectively.
445 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
446
447 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
448
449 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
450
77072ab1
GM
451 * window.c (freeze_window_starts): Construct last argument for
452 foreach_window differently.
453
454 * xfns.c (x_decode_color): Don't return a Lisp_Object.
455
456 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
457 EMACS_UINT instead of `int' and `unsigned int'.
458 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
459
460 * frame.h (struct frame): Make the `nothing' member of union
461 output_data an EMACS_INT.
462
31d929e5
GM
463 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug
464 hunting.
465 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
466 size in the sdata structure.
467 (SDATA_NBYTES, SDATA_DATA): New macros.
468 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
469 differently for the different layout of the sdata structure.
470 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
471 in sdata.
472 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
473 Check that size recorded in the string size and size recorded in
474 the sdata structure agree.
475
3e60b029
DL
4762000-09-25 Dave Love <fx@gnu.org>
477
478 * buffer.c: Include stdio.h.
479
480 Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
481
482 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
483
484 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
485 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as
486 size_t.
487 (__malloc_extra_blocks): Declare as __malloc_size_t.
488
8ff16b4e
GM
4892000-09-25 Gerd Moellmann <gerd@gnu.org>
490
755a2ccd
GM
491 * alloc.c (mark_image): Use GC_NILP instead of NILP.
492
d8b4516f
GM
493 * keyboard.c (show_help_echo): Set help_echo_showing_p.
494 (read_char): If help-echo is showing, preserve the echo area
495 when redisplaying.
496
497 * xdisp.c (help_echo_showing_p): New variable.
498 (set_message): Reset it to 0.
499 (init_xdisp): Initialize help_echo_showing_p.
500
501 * dispextern.h (help_echo_showing_p): Declare extern.
502
503 * config.in: Fix typo in __GNUC_MINOR__.
504
505 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
506
b11af2dd
GM
507 * s/freebsd.h (POSIX_SIGNALS): Define.
508
8ff16b4e
GM
509 * xterm.c (x_clear_mouse_face): Block/unblock input.
510
844eb643
DL
5112000-09-24 Dave Love <fx@gnu.org>
512
513 * fns.c (base64_encode_1): Fix last change.
514
b30ab1b3
GM
5152000-09-22 Gerd Moellmann <gerd@gnu.org>
516
517 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
518
519 * xdisp.c (try_window_reusing_current_matrix): More fixes
520 for the case window has a header-line.
521
c6cbe5f0
DL
5222000-09-22 Dave Love <fx@gnu.org>
523
4c7c1f3f
DL
524 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
525 a doc string.
526
527 * xterm.c [SOLARIS2]: Remove redundant include of string.h.
528
c6cbe5f0
DL
529 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
530
550a625e
GM
5312000-09-21 Gerd Moellmann <gerd@gnu.org>
532
4c7c1f3f 533 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
fca99116
GM
534 for GCC >= 2.5.
535
536 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error): Declare
537 NO_RETURN.
538
80d26f99
GM
539 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
540 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
541 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
542 warnings.
543
544 * marker.c (byte_char_debug_check): Return void.
545
623a0aae
GM
546 * xfns.c (Fx_create_frame): Set default frame parameter value
547 for tool-bar-lines to 1.
548
549 * dispnew.c (scrolling_window): Compare y-positions of rows
550 equal at the start. Some simplification.
551
552 * xdisp.c (try_window_reusing_current_matrix): Fix computation of
553 reused rows' y-position in the case window has a header-line, and
554 new window start is greater than old window start.
555
42ac0ae5
GM
556 * process.c (process_sent_to): New variable.
557 (send_process): Workaround for a crash on sparc-sun-solaris-2.6
558 with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
559 Declare more parameters volatile.
560
550a625e
GM
561 * lread.c (Vrecursive_load_depth_limit): New variable.
562 (Fload): Check recursive loads whose recursion depth exceeds
563 Vrecursive_load_depth_limit.
564 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
565
8320414c
GM
5662000-09-20 Gerd Moellmann <gerd@gnu.org>
567
f46c275e
GM
568 * fileio.c (Fread_file_name): Doc fix.
569
570 * editfns.c (Fmessage_or_box): Doc fix.
571
572 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
573
b7e11c5b
GM
574 * xfns.c (xbm_scan): Allow C-style comments.
575
8320414c
GM
576 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
577 symbols are specified, add color translations to the cache.
578 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New
579 functions.
580 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
581 xpm_cache_color.
582 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
583 structures to xpm_init_color_cache.
584
da1608d9
GM
5852000-09-19 Gerd Moellmann <gerd@gnu.org>
586
587 * dispnew.c (update_window_line): Make sure to always draw
588 mode-lines.
589
6badfa25
AI
5902000-09-19 Andrew Innes <andrewi@gnu.org>
591
592 * makefile.nt (bootstrap-emacs): Don't change directory.
593
3a5f42bb
KH
5942000-09-19 Kenichi Handa <handa@etl.go.jp>
595
1b7649bd
KH
596 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
597
3a5f42bb
KH
598 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
599 If output buffer is too small, signal an appropriated error.
600
9f83cf0b
DL
6012000-09-18 Dave Love <fx@gnu.org>
602
603 * keyboard.c (menu_bar_items, tool_bar_items)
604 (current_active_maps): Remove redundant get_local_map call.
605
28c7826c
GM
6062000-09-18 Gerd Moellmann <gerd@gnu.org>
607
5cefa566
GM
608 * xterm.c (x_display_and_set_cursor): Don't show a hollow box
609 cursor for buffers whose cursor_type is nil.
610
6fed3546
GM
611 * xterm.c (x_draw_image_glyph_string): Remove a comment describing
612 a feature to implement that is already implemented.
613 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
614 warnings.
615
616 * xfns.c (x_clear_image_1): New function.
617 (x_clear_image): Use it.
618 (x_from_xcolors): Use x_clear_image_1; don't free the image's
619 mask.
620
05b1f851
GM
621 * dispnew.c (update_window): Move test for invisible lines
622 at the top to update_window_line.
623 (update_window_line): Handle invisible lines here.
624
f4779de9
GM
625 * xfns.c (clear_image_cache): Clear current matrices of all
626 frames sharing an image cache. Block input while freeing
627 images. Fix timestamp comparison.
628 (x_clear_image): Also free the mask.
629
28c7826c
GM
630 * xfns.c (lookup_image): Block input while loading the image so
631 that we won't get interrupted in a state where the image isn't yet
632 set up completely.
633 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
634 (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
635 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
636 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock
637 input.
638
b7412313
GM
6392000-09-16 Gerd Moellmann <gerd@gnu.org>
640
641 * dispnew.c (update_window): Make sure to make desired rows
642 current even if they are completely invisible at the top
643 of a window.
644
47e351a3
GM
6452000-09-15 Gerd Moellmann <gerd@gnu.org>
646
7f8f1edc
GM
647 * xfns.c (lookup_image): Build mask before applying an algorithm.
648 Recognize algorithm `disabled'.
649 (cross_disabled_images): New variable.
650 (COLOR_INTENSITY): New macro.
651 (x_detect_edges): Use COLOR_INTENSITY.
652 (x_disable_image): New function.
653 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
654
655 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
656 disabled state, don't apply an image transformation algorithm if
657 the user specified an image for the disabled state. Use
28c7826c 658 `:algorithm disabled' for creating a disabled item's image if the
7f8f1edc
GM
659 user hasn't specified an image.
660
ebb8f116
GM
661 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
662 allocation functions with the XPM lib.
663 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
664 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
665 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
666 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
667 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New
668 functions.
669 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
670 functions, if possible, because these handle color allocation
671 failure more gracefully.
672 (Fimage_mask_p): New function.
673
47e351a3
GM
674 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
675 (Qedge_detection, Qheuristic): New symbols.
676 (syms_of_xfns): Initialize new symbols.
677 (lookup_image): Handle `:mask X', `:algorithm emboss', and
678 `algorithm (edge-detection ...)'.
679 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
680 (tiff_format, gif_format, gs_format): Add `:mask'.
681 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
682 (GIF_MASK, GS_MASK): New enumerators.
683 (x_laplace_read_row, x_laplace_write_row): Functions removed.
684 (emboss_matrix, laplace_matrix): New variables.
685 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
686 (x_edge_detection): New functions.
687 (x_laplace): Rewritten in terms of x_detect_edges.
688 (x_build_heuristic_mask): If image has a mask, free it.
689
fe83b953
AI
6902000-09-14 Andrew Innes <andrewi@gnu.org>
691
692 * makefile.w32-in: Revert to Unix line endings.
693
3021e816
AI
6942000-09-14 Andrew Innes <andrewi@gnu.org>
695
696 * makefile.w32-in: Standardize indentation somewhat.
697 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
698 cater for differences between shells.
699
700 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
701
2a32b5ea
GM
7022000-09-14 Gerd Moellmann <gerd@gnu.org>
703
704 * xterm.c (x_produce_glyphs): If the distance from the current
705 position to the next tab stop is less than a canonical character
706 width, use the tab stop after that.
707
b4331e96
DL
7082000-09-14 Dave Love <fx@gnu.org>
709
710 * buffer.c (alloc_buffer_text): Fix xmalloc call.
711
ef9e4345
GM
7122000-09-14 Gerd Moellmann <gerd@gnu.org>
713
085536c2
GM
714 * xdisp.c (handle_fontified_prop): While running fontification
715 functions, bind `fontification-functions' and
716 `after-change-functions' to nil.
717
ef9e4345
GM
718 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
719 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
720
721 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
722
723 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
724 USE_MMAP_FOR_BUFFERS.
725
726 * insdel.c (make_gap): Use enlarge_buffer_text.
727
728 * buffer.c: Move allocation with mmap here, from ralloc.c. Change
729 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
730 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
731 from former r_alloc_* functions in ralloc.c.
732 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New
733 variables.
734 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
735 (mmap_init) [REL_ALLOC_MMAP]: New function.
736 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
737 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
738 BUFFER_FREE.
739
740 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
741 (enlarge_buffer_text): Add prototype.
742
743 * ralloc.c: Remove everything having to do with the use of mmap.
744
f8608968
GM
7452000-09-13 Gerd Moellmann <gerd@gnu.org>
746
2a494b2d
GM
747 * sound.c (Fplay_sound): Doc fix.
748
8c907a56
GM
749 * keyboard.c: Avoid some more compiler warnings.
750 (parse_tool_bar_item): Ignore cached key bindings.
751
f8608968
GM
752 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
753 and allocation of Lisp data.
754
6ab70e9a
GM
7552000-09-12 Gerd Moellmann <gerd@gnu.org>
756
d12d0a9b
GM
757 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
758 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
759 defaults first.
760
6ab70e9a
GM
761 * lread.c (Fload): Put code checking for recursive loads in #if 0.
762
63c36c3c
KH
7632000-09-12 Miyashita Hisashi <himi@meadowy.org>
764
765 * ccl.c: Comment fixed.
766 (MAX_MAP_SET_LEVEL): Increased to 30.
767 (PUSH_MAPPING_STACK): Enclose with do-while block.
768 (POP_MAPPING_STACK): Likewise.
769 (stack_idx_of_map_multiple): New variable.
770 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
771 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
772 call the corresponding CCL program by
773 CCL_CALL_FOR_MAP_INSTRUCTION.
774 (ccl_driver) <CCL_MapSingle>: Likewise.
775 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
776 with the case where looking up process reaches to the end of
777 map-set, and call CCL programs as the above change.
778
7ee3bd7b
GM
7792000-09-11 Gerd Moellmann <gerd@gnu.org>
780
8ec8a5ec
GM
781 * xfns.c (png_load, jpeg_load): Declare some variables volatile
782 that might be clobbered by longjmp.
783 (check_x_display_info, x_decode_color, create_frame_xic)
784 (Fx_display_backing_store, Fx_display_visual_class)
785 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler
786 warnings.
787
f74b0705
GM
788 * lread.c (init_lread): Set Vloads_in_progress to nil.
789 (Fload): Show list of recursively loaded files, when signaling an
790 error.
791
7ee3bd7b
GM
792 * lread.c (Vloads_in_progress): New variable.
793 (record_load_unwind): New function.
794 (Fload): Check for recursive loads.
795 (syms_of_lread): Initialize Vloads_in_progress.
796 (read_integer, read1): Avoid some compiler warnings.
797
798 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
799 compiler warnings.
800
974e1e5b
MB
8012000-09-11 Miles Bader <miles@gnu.org>
802
803 * editfns.c (Fbuffer_string): Doc fix.
804
9824c4e3
GM
8052000-09-10 Gerd Moellmann <gerd@gnu.org>
806
807 * ralloc.c (mmap_enlarge): Don't return 0 if successful.
808
6a72fdd1
KR
8092000-09-09 Ken Raeburn <raeburn@gnu.org>
810
811 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
812 whether to include other header files.
813
28e6fb66
GM
8142000-09-09 Gerd Moellmann <gerd@gnu.org>
815
816 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned
9824c4e3 817 by Fmemq as a boolean.
28e6fb66 818
7f8b6551
SM
8192000-09-08 Stefan Monnier <monnier@cs.yale.edu>
820
821 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
822
a8710abf
GM
8232000-09-08 Gerd Moellmann <gerd@gnu.org>
824
d1a02881
GM
825 * ralloc.c (mmap_fd): Remove initializer which can make it
826 read-only in a dumped Emacs.
827 (mmap_fd_1): New variable.
828 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1,
829 restore it from there.
830 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
831 unconditionally so that mmap_fd can be initialized there.
832 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
833 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
834 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
835
c454aac1
GM
836 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
837
838 * xdisp.c (dump_glyph_row): Fix printf format string.
839 (display_line, move_it_in_display_line_to): Avoid compiler
840 warnings.
841
fc653ef2
GM
842 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
843
3015eec0
GM
844 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
845 inheritance.
846
bfe0ee88
GM
847 * xdisp.c (try_window_id): When trying to locate cursor in
848 unchanged rows at the top, handle the case that we can't find it.
849
a8710abf
GM
850 * xterm.c (x_draw_glyphs): Handle case START and END are out
851 of bounds more carefully.
852
6b7d4ae4
DL
8532000-09-08 Dave Love <fx@gnu.org>
854
423193c5
DL
855 * s/sol2.h (REL_ALLOC_MMAP): Define.
856 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
857
858 * ralloc.c: Don't include string.h (redundant).
859 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
860 [!MAP_ANON]: Include fcntl.h.
861 (mmap_fd) [REL_ALLOC_MMAP]: New variable.
862 (r_alloc, r_re_alloc, r_alloc_free)
863 (mmap_enlarge, mmap_set_vars): Use it.
864 (r_alloc_init_fd): New function.
865 (__morecore) [SYSTEM_MALLOC]: Don't declare.
866 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on
867 malloc type.
868
869 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
870 Remove vm-limit.o.
871
6b7d4ae4
DL
872 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
873 change to __NetBSD__.
874
44d31981
KH
8752000-09-08 Kenichi Handa <handa@etl.go.jp>
876
877 * search.c (compile_pattern): Check the multibyteness of cached
878 string and PATTERN.
879
aad40737
MB
8802000-09-08 Miles Bader <miles@gnu.org>
881
882 * xfaces.c (default_face_vector): Function removed.
883 (Finternal_merge_in_global_face): Restore old global/local
884 attribute override order. Use inline loop instead of calling
885 default_face_vector.
886
91a211b5
GM
8872000-09-07 Gerd Moellmann <gerd@gnu.org>
888
889 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
890 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
891 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
892 where necessary, in case POINTER_TYPE is `void'.
893
03419440
EZ
8942000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
895
896 * frame.c (make_terminal_frame): Initialize frame foreground and
897 background colors to unspecified, for the initial instance of an
898 MSDOS frame.
899
f46f845b
GM
9002000-09-07 Gerd Moellmann <gerd@gnu.org>
901
24f76fbf
GM
902 * ralloc.c (mmap_find): Fix overlap computation.
903 (mmap_enlarge): Compute nbytes before trying to find an
904 overlapping region.
905
f46f845b
GM
906 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
907 instead of `!='.
908
909 * lread.c (syms_of_lread): Change value of regexp
910 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
911
912 * xmenu.c (xdialog_show): When looking up the selection in
913 menu_items, take `quote' boundaries into account; this corresponds
914 to a nil ITEM in x-popup-dialog.
915
3c014385
KH
9162000-09-07 Kenichi Handa <handa@etl.go.jp>
917
fd6f711b
KH
918 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
919 not 0x81.
920 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
921
3c014385 922 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
923 encoding, not decoding. Fix the handling of latin-jisx0201.
924 Check for the charset katakana-jisx0201 too.
3c014385 925 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 926 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 927
0da3ecef
GM
9282000-09-07 Gerd Moellmann <gerd@gnu.org>
929
ab0ee409
GM
930 * xfaces.c (Vparam_value_alist): New variable.
931 (syms_of_xfaces): Initialize it.
932 (Finternal_set_lisp_face_attribute): Avoid more consing.
933
934 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
935 specially.
936 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
937 (Qbackground_mode): New variable.
938 (syms_of_frame_1): Initialize Qbackground_mode.
939
940 * lisp.h (Qdisplay): Declare extern.
1091dd67 941
0da3ecef
GM
942 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
943 change face on all frames, and change the default for new frames.
944
b14654b9
DL
9452000-09-07 Dave Love <fx@gnu.org>
946
947 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
948
d24fd56f
KH
9492000-09-07 Kenichi Handa <handa@etl.go.jp>
950
794f3670
KH
951 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
952
0fddd0dc
KH
953 * charset.c: Include composite.h
954 (lisp_string_width): New function.
955 (Fstring_width): Call lisp_string_width instead of strwidth.
956
957 * Makefile.in (charset.o): Depends on composite.h.
958
d24fd56f
KH
959 * process.c (read_process_output): Before inserting the decoded
960 text in the buffer, adjust the multibyteness.
961
fa0b693c
GM
9622000-09-06 Gerd Moellmann <gerd@gnu.org>
963
73b77ee5
GM
964 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
965 buffer's text buffer is null, map new memory.
966
0a58f946
GM
967 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
968 POINTER_TYPE and size_t.
969 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
970 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
971 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
972 [REL_ALLOC_MMAP]: New macros.
973 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
974 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
975 [REL_ALLOC_MMAP]: New functions.
976
977 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
978 before and after unexec.
979
980 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
981 text buffers if necessary.
982
983 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
984 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
985 in prototypes.
986
fa0b693c
GM
987 * config.in (HAVE_MMAP): Add #undef.
988
877055f6
GM
9892000-09-05 Gerd Moellmann <gerd@gnu.org>
990
08ba3862
GM
991 * frame.c (Qdisplay_type): New variable.
992 (syms_of_frame_1): Initialize it.
993 (Fframe_parameter): New function that avoids consing.
994 (syms_of_frame): Defsubr it.
995
66ffe51c
GM
996 * buffer.c (Fother_buffer): Consider buffers as invisible when
997 they are displayed in a window on an invisible frame.
998
877055f6
GM
999 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
1000 get-largest-window always return nil.
1001
bb970e67
GM
10022000-09-04 Gerd Moellmann <gerd@gnu.org>
1003
1004 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
1005 variable; recognize Emacs 19 elc files.
1006
7a3d0e0e
MB
10072000-09-04 Miles Bader <miles@gnu.org>
1008
1009 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
1010 before initially popping up the menu, so the menu doesn't flash
1011 when the face settings are significantly different from the
1012 defaults.
1013
14473664
SM
10142000-09-04 Stefan Monnier <monnier@cs.yale.edu>
1015
1016 * regex.c (WIDE_CHAR_SUPPORT): New macro.
1017 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
1018 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
1019 (BIT_UNIBYTE): Remove.
1020 (re_match_2_internal): Delete corresponding code and streamline the
1021 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
1022 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
1023 (re_wctype_t): New type.
1024 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
1025 (regex_compile): Use them and fix handling of overly long char classes.
1026
c1174479
AI
10272000-09-03 Andrew Innes <andrewi@gnu.org>
1028
f8803e97
AI
1029 * makefile.w32-in: Change to DOS line endings.
1030
c1174479
AI
1031 * s/ms-w32.h (ORDINARY_LINK): New define.
1032
1033 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
1034 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
1035
1036 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
1037 (distclean): Delete them here instead.
1038
44ef7cf6
AI
1039 * w32proc.c (compare_env): Convert to uppercase for comparison,
1040 not lowercase, to match how the native Windows shell works.
1041
49b3bd82
JR
10422000-09-03 Jason Rumney <jasonr@gnu.org>
1043
1044 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
1045 CVS changes the line-ends when checking in/out on DOS/Windows.
1046
1047 * makefile.nt (emacs): Do not change directory to run temacs, as
1048 the load-path is set relative to current directory.
1049
a3d35a39
MB
10502000-09-03 Miles Bader <miles@gnu.org>
1051
1052 * xterm.c (x_alloc_lighter_color_for_widget): New function.
1053
d276b0cf
GM
10542000-09-02 Gerd Moellmann <gerd@gnu.org>
1055
715e84c9
GM
1056 * xdisp.c (redisplay_mode_lines): New function.
1057 (display_mode_lines): Return number of mode lines displayed.
1058 (echo_area_display): Use redisplay_mode_lines to draw garbaged
1059 mode lines. Don't temporarily bind redisplay-dont-pause to t.
1060
8892f40b
GM
1061 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
1062 string.h and strings.h.
1063 (index) [HAVE_INDEX]: Add prototype.
1064
d276b0cf
GM
1065 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
1066 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
1067
1068 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
1069 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
1070
38404229
GM
10712000-09-01 Gerd Moellmann <gerd@gnu.org>
1072
1073 * lread.c (read1): Accept `?' as symbol constituent, for
1074 compatiblity with XEmacs.
1075
c0f9ea08
SM
10762000-08-31 Stefan Monnier <monnier@cs.yale.edu>
1077
1078 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
1079 (struct re_pattern_buffer): Remove newline_anchor.
1080 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
1081 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
1082 (re_max_failures, fail_stack): Use size_t rather than unsigned.
1083 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
1084 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
1085 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
1086 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
1087 Get rid of references to newline_anchor.
1088 (regcomp): Allocate and precompute a fastmap.
1089
8c0f83fe
GM
10902000-08-31 Gerd Moellmann <gerd@gnu.org>
1091
1092 * lread.c (openp): GCPRO local variable `filename'.
1093
4bb91c68
SM
10942000-08-30 Stefan Monnier <monnier@cs.yale.edu>
1095
1096 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
1097
1098 * regex.c: Merge some changes from GNU libc. Add prototypes.
1099 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
1100 Use memcmp and memcpy instead of bcopy and bcmp.
1101 (init_syntax_once): Use ISALNUM.
1102 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
1103 (REG_UNSET_VALUE): Remove. Use NULL instead.
1104 (REG_UNSET, re_match_2_internal): Use NULL.
1105 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
1106 New macros.
1107 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
1108 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
1109 (regex_compile): In handle_interval, return an error rather than try to
1110 unfetch the interval if we can't find the closing brace.
1111 Obey the RE_NO_GNU_OPS syntax bit.
1112 (TOLOWER): New macro.
1113 (regcomp): Use it.
1114 (regexec): Allocate regs.start and regs.end as one block.
1115
5226a931
GM
11162000-08-30 Gerd Moellmann <gerd@gnu.org>
1117
868dd24b
GM
1118 * xdisp.c (echo_area_display): Check display_completed instead
1119 of calling detect_input_pending.
1120
1121 * dispnew.c (update_frame): Only set display_completed here; move
1122 the update_begin and update_end calls here from update_frame_1.
1123 (update_frame_1): Don't set display_completed here, don't call
1124 update_begin/update_end.
1125
5226a931
GM
1126 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
1127 instead of store_frame_param.
1128
2a8bd25f
GM
11292000-08-29 Gerd Moellmann <gerd@gnu.org>
1130
1131 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
1132 desired window matrix hasn't been displayed, use the current row
1133 instead. Make sure that only those frame rows are updated for
1134 which there exists a corresponding enabled desired row.
1135
ba3478d9
MB
11362000-08-29 Miles Bader <miles@gnu.org>
1137
1138 * xfaces.c (default_face_vector): New function.
1139 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
1140
87d0f685
GM
11412000-08-29 Gerd Moellmann <gerd@gnu.org>
1142
1143 * lread.c (openp): Prevent temporary string passed to
1144 Ffile_readable_p from being garbage collected.
1145
6fa86045
DL
11462000-08-28 Dave Love <fx@gnu.org>
1147
1148 * keymap.c (store_in_keymap): Add `static' to declaration.
1149
bb17930d
GM
11502000-08-28 Gerd Moellmann <gerd@gnu.org>
1151
1152 * emacs.c, callint.c, doc.c, editfns.c
1153 (toplevel) [HAVE_STRING_H]: Include string.h.
1154 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
1155 (index): Remove prototypes which might conflict with non-standard
1156 definitions of index/strchr.
1157
1158 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
1159 (rindex): Define only if !HAVE_RINDEX.
1160
1161 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
1162
1163 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
1164
87188200
MB
11652000-08-28 Miles Bader <miles@gnu.org>
1166
1167 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
1168 made inconsistent by a font-related attribute in FROM.
1169 (merge_face_inheritance): Add function comment.
1170
41a68aef
KH
11712000-08-28 Kenichi Handa <handa@etl.go.jp>
1172
1173 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
1174 the 4th arg (PREV_EVENT) Qt to suppress input method.
1175
f7c436c1
SM
11762000-08-27 Stefan Monnier <monnier@cs.yale.edu>
1177
0b32bf0e
SM
1178 * regex.c: Indent cpp directives and remove parens after `defined'.
1179 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
1180 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
1181 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
1182 (re_compile_pattern): Use size_t for length.
1183 (init_syntax_once): Move to a better place.
1184 * regex.h: Merge changes from GNU libc. Indent cpp directives.
1185 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
1186
f7c436c1
SM
1187 * syntax.c (back_comment): Detect cases where a comment-starter is
1188 actually inside another comment as in: /* a // b */ c // d \n.
1189 Make it clear that `comstart_pos' is unused for nested comments.
1190
1191 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
1192 (KEYMAPP): New macro.
1193 (Fkeymap_parent, Fset_keymap_parent): Use it.
1194 (fix_submap_inheritance): Mark it static.
1195 (define_as_prefix, describe_buffer_bindings, describe_command)
1196 (describe_translation, describe_map): Complete prototypes.
1197
1198 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
1199
1200 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
1201 to better match the key-lookup behavior.
1202
6288c62f
GM
12032000-08-27 Gerd Moellmann <gerd@gnu.org>
1204
1205 * xfaces.c (lface_fully_specified_p): Handle :inherit.
1206 (Finternal_set_lisp_face_attribute): Fix typo in error message.
1207
e931344e
EZ
12082000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
1209
1210 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
1211 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
1212 (xterm.o): Depend on coding.h
1213
d10dfeef
KH
12142000-08-26 Kenichi Handa <handa@etl.go.jp>
1215
1216 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
1217 the corresponding '#endif'.
1218
2d73e8d3
MB
12192000-08-26 Miles Bader <miles@gnu.org>
1220
1221 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
1222 * xfaces.c (QCinherit): New variable.
1223 (syms_of_xfaces): Initialize it.
1224 (LFACE_INHERIT): New macro.
1225 (Finternal_get_lisp_face_attribute)
1226 (merge_face_vector_with_property)
1227 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
1228 (check_lface_attrs): Allow new types of face height. Check
1229 inherit attribute.
1230 (CYCLE_CHECK): New macro.
1231 (merge_face_inheritance): New function.
1232 (merge_face_vectors): Merge inherited faces too. Add F and
1233 CYCLE_CHECK arguments.
1234 (merge_face_vector_with_property, Finternal_merge_in_global_face)
1235 (lookup_named_face, lookup_derived_face, realize_named_face)
1236 (face_at_string_position, face_at_buffer_position): Supply
1237 new F and CYCLE_CHECK arguments to merge_face_vectors.
1238 (merge_face_heights): New function.
1239 (merge_face_vectors, merge_face_vector_with_property)
1240 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
1241 handle relative face heights.
1242 (lface_same_font_attributes_p): Compare heights using EQ.
1243
6ce974d4
KH
12442000-08-26 Kenichi Handa <handa@etl.go.jp>
1245
1246 * charset.c (char_to_string): Check the character validity.
1247 (char_valid_p): If C is not less than MAX_CHAR, be sure to return
1248 0.
1249
dc1e502d
SM
12502000-08-25 Stefan Monnier <monnier@cs.yale.edu>
1251
1252 * regex.c (PUSH_FAILURE_COUNT): New macro.
1253 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
1254 Handle popping of a register's or a counter's data.
1255 (POP_FAILURE_POINT): Use the new name.
1256 (re_match_2_internal): Push counter data on the stack for succeed_n,
1257 jump_n and set_number_at and remove misleading dead code in succeed_n.
1258
bd9d0f3f
GM
12592000-08-25 Gerd Moellmann <gerd@gnu.org>
1260
1261 * xdisp.c (redisplay_internal): If considering all windows on all
1262 frames, update the display for each frame as soon as possible,
1263 instead of first building all desired matrices for all frames, and
1264 then updating them all.
1265 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
1266
aa5b8e15
GM
12672000-08-24 Gerd Moellmann <gerd@gnu.org>
1268
17494071
GM
1269 * bytecode.c (mark_byte_stack): Add a comment.
1270
aa5b8e15
GM
1271 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
1272 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
1273 a graphical frame.
1274
c543db81
KH
12752000-08-24 Kenichi Handa <handa@etl.go.jp>
1276
d246d5f5
KH
1277 * minibuf.c (do_completion): Always use compare-string, not
1278 string-equal because the latter doesn't pay attention to
1279 multibyteness of strings.
1280
c543db81
KH
1281 * process.c (create_process): Don't setup raw-text coding here.
1282 (Fopen_network_stream): Don't set coding->src_multibyte and
1283 coding->dst_multibyte here.
1284 (read_process_output): For process filter, return unibyte string
1285 if default-enable-multibyte-characters is nil.
1286 (send_process): If OBJECT is multibyte text, be sure to encoded it
1287 by the specified coding system for the process. Otherwise, setup
1288 raw-text coding.
1289 (init_process): Don't initialize default-process-coding-system
1290 here.
1291
9b47cfe0
EZ
12922000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
1293
1294 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
1295 <scroll-down-aggressively>: Likewise.
1296
f5a36960
KH
12972000-08-23 Kenichi Handa <handa@etl.go.jp>
1298
1299 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
1300 zero. Set coding->produced_char correctly.
1301
69a7ffa7
AI
13022000-08-22 Andrew Innes <andrewi@gnu.org>
1303
1304 * makefile.w32-in: New file.
1305
1306 * unexw32.c (unexec): Ignore old_name, and use the actual location
1307 of the current executable instead. Base new_name on this.
1308
1309 * w32proc.c (create_child): Remove reference to security
1310 descriptor, which isn't needed and doesn't compile with mingw32.
1311
1312 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
1313 up dllimport attributes.
1314 (x_update_window_end): Update prototype.
1315
1316 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
1317 extern, which screws up dllimport attributes.
1318
1319 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
1320 up dllimport attributes.
1321
1322 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
1323 screws up dllimport attributes.
1324
1325 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
1326 up dllimport attributes.
1327 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
1328 screws up dllimport attributes.
1329
1330 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
1331 up dllimport attributes.
1332
1333 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
1334 screws up dllimport attributes.
1335
1336 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
1337 screws up dllimport attributes.
1338
1339 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
1340 up dllimport attributes.
1341
1342 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
1343 unnecessary extern, which screws up dllimport attributes.
1344 (main): Ditto.
1345
1346 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
1347 up dllimport attributes.
1348
1349 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
1350 unnecessary extern, which screws up dllimport attributes.
1351
1352 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
1353 screws up dllimport attributes.
1354
1355 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
1356 up dllimport attributes.
1357
1358 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
1359
1360 * w32bdf.c (search_file_line):
1361 (set_bdf_font_info):
1362 (seek_char):
1363 (w32_get_bdf_glyph):
1364 (w32_BDF_to_x_font): Fix compile warnings.
1365
1366 * w32menu.c: Include keyboard.h before frame.h. Fix compile
1367 warnings.
1368
1369 * w32select.c: Include keyboard.h before frame.h.
1370
1371 * w32fns.c (max): Define macro.
1372 (JOHAB_CHARSET): Define if not known.
1373 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
1374 (Fx_show_tip): Synch with X version.
1375
1376 * w32xfns.c: Include keyboard.h before frame.h.
1377
1378 * w32fns.c: Include keyboard.h before frame.h.
1379
1380 * w32term.c: Include keyboard.h before frame.h.
1381
1382 * fontset.c: Include keyboard.h before frame.h.
1383
1384 * w32inevt.c: Include keyboard.h before frame.h.
1385 (MOUSE_MOVED): Define if not known.
1386
1387 * minibuf.c: Include keyboard.h before frame.h.
1388
1389 * keyboard.c: Include keyboard.h before frame.h.
1390
1391 * indent.c: Include keyboard.h before frame.h.
1392
1393 * dispnew.c: Include keyboard.h before frame.h.
1394
1395 * buffer.c: Include keyboard.h before frame.h.
1396
1397 * alloc.c: Include keyboard.h before frame.h.
1398
1399 * print.c: Include keyboard.h before frame.h.
1400
1401 * process.c: Include keyboard.h before frame.h.
1402
1403 * scroll.c: Include keyboard.h before frame.h.
1404
1405 * sysdep.c: Include keyboard.h before frame.h.
1406
1407 * term.c: Include keyboard.h before frame.h.
1408
1409 * window.c: Include keyboard.h before frame.h.
1410
1411 * xdisp.c: Include keyboard.h before frame.h.
1412 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
1413
1414 * frame.c: Include keyboard.h before frame.h.
1415
1416 * w32heap.h: Undefine min, max.
1417
1418 * w32gui.h: Undefine min, max.
1419
1420 * unexw32.c: Change PUCHAR to PCHAR.
1421 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
1422 (relocate_offset):
1423 (get_section_info):
1424 (copy_executable_and_dump_data): Remove unnecessary static defs.
1425 (copy_executable_and_dump_data): Fix compile warnings.
1426
1427 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
1428
1429 * w32console.c (min): Define macro.
1430 (clear_frame, write_glyphs): Fix compile warning.
1431
1432 * w32proc.c (compare_env):
1433 (find_child_console): Fix compile warning.
1434
1435 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
1436 sys_errlist instead of _sys_errlist.
1437 (get_emacs_configuration_options): New function.
1438
1439 * s/ms-w32.h (sys_nerr): Provide default definition.
1440 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
1441 name with _ prepended.
1442 (NSIG): Define if not known.
1443 (get_emacs_configuration): Provide extern declaration.
1444 (get_emacs_configuration_options): Provide extern declaration.
1445 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
1446
1447 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
1448 (map_w32_filename):
1449 (read_unc_volume): Fix compile warning.
1450
1451 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
1452 definitions from being used.
1453
1454 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
1455
1456 * w32.c (unc_volume_file_attributes):
1457 (open_unc_volume): Make arg const.
1458
1459 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
1460 (read_input_waiting): Remove excess parameter.
1461
1462 * w32.c (init_environment): Call _access.
1463 (check_windows_init_file): Call _close.
1464 (init_user_info): Call _putenv.
1465 (init_environment): Call _putenv and _strdup.
1466 (init_ntproc): Reset volume info cache on startup.
1467
1468 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
1469 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
1470 cannot override the CRT malloc.
1471
1472 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
1473 (LINK_FLAGS): Append to original value of LINK_FLAGS.
1474
1475 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
1476 unless we are linking with a static CRT.
1477 (RVA_TO_PTR): Cast result to unsigned char*.
1478
1479 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
1480 (add_volume_info): Use xstrdup.
1481
25060080
SM
14822000-08-22 Stefan Monnier <monnier@cs.yale.edu>
1483
1484 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
1485 (do_completion, Fminibuffer_complete_word): Use it.
1486 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
1487 var so it can take non-boolean values.
1488
6917e6bb
GM
14892000-08-21 Gerd Moellmann <gerd@gnu.org>
1490
acb7cc89
GM
1491 * editfns.c (find_field): Formatting changes.
1492 (toplevel): Some old-style function forward declarations
1493 changed to prototypes, some new protypes added, some functions
1494 made static.
1495
1496 * lisp.h (set_time_zone_rule): Add prototype.
1497 (use_dialog_box): External declaration.
1498
0bbfdc25
GM
1499 * keyboard.c (gen_help_event): Add parameter SIZE.
1500 (kbd_buffer_events_waiting): Slightly rewritten.
1501 (clear_event): New function.
1502 (kbd_buffer_get_event): Use it, and clear the input_events of
1503 HELP_EVENTs.
1504 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
1505 don't fill the newly created array with nils.
1506 (toplevel): Convert some old-style function forward declarations
1507 to prototypes.
1508
1509 * keyboard.h (gen_help_event): Change prototype.
1510
1511 * xterm.c (XTread_socket): Change calls to gen_help_event.
1512
1513 * w32term.c (w32_read_socket): Change calls to gen_help_event.
1514
6917e6bb
GM
1515 * eval.c (Fmacroexpand): Doc fix.
1516
e5cd3d11
JR
15172000-08-20 Jason Rumney <jasonr@gnu.org>
1518
1519 * w32term.h (x_display_info_for_display): Remove as this function
1520 does not exist on W32.
1521
1522 * w32term.c (help_echo_window): New variable.
1523 (syms_of_w32term): staticpro it.
1524 (note_mode_line_highlight): Set it.
1525 (XTextExtents16): Removed as there is no equivalent on W32.
1526 (x_compute_glyph_string_overhangs): Incomplete body removed, as
1527 the X way of doing this will not work for W32.
1528 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
1529 (x_draw_image_foreground): Avoid drawing outside of the clip area
1530 when image doesn't have a mask.
1531 (note_mouse_highlight): Process overlays in the right order of
1532 priority. Set help_echo_window.
1533 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
1534 because that's more visible for large images.
1535
1536 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
1537 name to single_keymap_panes.
1538 (w32_menu_show): Set wv->title when dealing with titles.
1539 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
1540
6e69ab8c
MB
15412000-08-21 Miles Bader <miles@gnu.org>
1542
1543 * minibuf.c (do_completion): Try again if we rewrite the input
1544 string, but no completion was done, so that any completion message
1545 will be correct.
1546
511bd4eb
GM
15472000-08-20 Gerd Moellmann <gerd@gnu.org>
1548
1549 * xfaces.c (lface_equal_p): Compare strings differently.
1550 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
1551 (realize_tty_face): Use them.
1552 (syms_of_xfaces): Initialize new variables.
1553 (map_tty_color): New function, extracted from realize_tty_face.
1554 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
1555 foreground or background color, store the new color name in the
1556 realized face; previous code trying to do this had no effect.
1557 (realize_tty_face): Use map_tty_color.
1558 (Fclear_face_cache): Set face_change_count and ensure thorough
1559 redisplay.
1560
1433385f
GM
15612000-08-19 Gerd Moellmann <gerd@gnu.org>
1562
511bd4eb
GM
1563 * undo.c (record_first_change, record_marker_adjustment): Don't
1564 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 1565
419ac0a2
KH
15662000-08-18 Kenichi Handa <handa@etl.go.jp>
1567
1568 * coding.c (decode_coding_string): Set members consumed,
1569 consumed_char, produced, produced_char of *coding correctly. If
1570 decode_coding doesn't consume any byte, don't try anymore.
1571 (encode_coding_string): Likewise.
1572
7eb9e30d
GM
15732000-08-18 Gerd Moellmann <gerd@gnu.org>
1574
511bd4eb
GM
1575 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
1576 conditional have void type, for Standard C compilers.
7eb9e30d
GM
1577
1578 * xdisp.c (redisplay_internal): Compare windows for equality with
1579 EQ, instead of applying XWINDOW to something that might not
1580 be a window.
1581
dd34a735
KH
15822000-08-18 Kenichi Handa <handa@etl.go.jp>
1583
1584 * fontset.c (Finternal_char_font): Search only the selected frame
1585 for a window of the current buffer.
1586
385ff9e3
GM
15872000-08-18 Gerd Moellmann <gerd@gnu.org>
1588
511bd4eb 1589 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
1590 Lisp_Objects.
1591
385ff9e3
GM
1592 * keyboard.c (kbd_buffer_get_event): Handle the case that the
1593 second half of a HELP_EVENT is found at the start of kbd_buffer.
1594
d6abb4c7
MB
15952000-08-18 Miles Bader <miles@gnu.org>
1596
4618074a
MB
1597 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
1598
d6abb4c7
MB
1599 * editfns.c (save_restriction_save): Rewrite to use markers.
1600 (save_restriction_restore): Rewrite to understand new form of data
1601 saved by save_restriction_save.
1602 (Fsave_restriction): Remove cautionary note in doc-string.
1603
a7b28523
GM
16042000-08-17 Gerd Moellmann <gerd@gnu.org>
1605
1606 * fileio.c (build_annotations): Add a comment explaining the
1607 return value of format-annotate-function. Replace a spurious call
1608 to Flength with a CONSP test. Call format-annotate-function with
1609 a fifth arg specifying how many times the function is been called
1610 in a row, to let it choose temporary buffers appropriately.
1611
03c9ed77
DL
16122000-08-17 Dave Love <fx@gnu.org>
1613
1614 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
1615 declare make_temp_name twice.
1616
1617 * lread.c: Prototype readevalloop, load_unwind,
1618 load_descriptor_unwind.
1619 (unreadpure): Give it an arg.
1620
1621 * unexalpha.c: Prototype fatal_unexec, mark_x,
1622 update_dynamic_symbols. Declare unexec as void.
1623
1624 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
1625 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
1626
1627 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
1628 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on
1629 DOUG_LEA_MALLOC.
1630
1631 * alloca.c: Use #error.
1632 [POINTER_TYPE]: Use it.
1633
1634 * eval.c (Fdefvar): Doc fix.
1635
1636 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
1637 INITIALIZE_INTERVAL.
1638
1639 * buffer.h: Avoid DECLARE_INTERVALS.
1640
1641 * config.in: Add size_t.
1642
aae41d97
EZ
16432000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
1644
1645 * w16select.c (set_clipboard_data): If there's not enough memory
1646 to put text into clipboard, return 1, as Fw16_set_clipboard_data
1647 expects. In case of other failures, return 3.
1648 (system_error_msg): New error message.
1649 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
1650 system_error_msg.
1651
65aa5e85
GM
16522000-08-16 Gerd Moellmann <gerd@gnu.org>
1653
1654 * term.c (write_glyphs): Also turn off inverse video after turning
1655 off other appearances in case TS_exit_attribute_mode is not equal
1656 to TS_end_standout_mode.
1657 (insert_glyphs): Turn inverse video on/off for each run of glyphs
1658 with the same face.
1659 (turn_off_face): Reset standout_mode only if
1660 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
1661 is equal to TS_end_standout_mode.
1662
ece23901
KH
16632000-08-16 Kenichi Handa <handa@etl.go.jp>
1664
9d7bcb2e
KH
1665 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
1666 sequence at the end of the source block.
1667
ece23901
KH
1668 * ccl.c (Fccl_program_p): Docstring modified.
1669 (Fccl_execute): Likewise.
1670 (Fccl_execute_on_string): Likewise.
1671
5e30eaa2
EZ
16722000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
1673
1674 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
1675
290602fd
KH
16762000-08-16 Kenichi Handa <handa@etl.go.jp>
1677
1678 The following changes are mainly to fix bugs of
1679 encode/decode-coding-string failing if encoding/decoding return
1680 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
1681 variable conversion_buffer.
1682
1683 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
1684 decrement dst_end to avoid buffer overflow in the later call of
1685 string_as_multibyte
1686
1687 * coding.h (conversion_buffer_size, conversion_buffer)
1688 (get_conversion_buffer): Extern deleted.
1689
1690 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
1691 (conversion_buffer, conversion_buffer_size): Variables deleted.
1692 (get_conversion_buffer): Function deleted.
1693 (struct conversion_buffer): New structure.
1694 (MAX_ALLOCA): New macro.
1695 (allocate_conversion_buffer): New macro.
1696 (extend_conversion_buffer, free_conversion_buffer): New functions.
1697 (ccl_coding_driver): Set coding->result.
1698 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
1699 this is the last block of source.
1700 (encode_coding): Likewise. Handle the source block as the last
1701 one only when the whole source text is consumed.
1702 (decode_coding_string): Handle the case that the output buffer is
1703 too small to decode the whole source text. Use
1704 allocate_conversion_buffer, extend_conversion_buffer and
1705 free_conversion_buffer, not get_conversion_buffer.
1706 (encode_coding_string): Likewise.
1707 (init_coding): Function deleted.
1708 (init_coding_once): Delete code to initialize
1709 conversion_buffer_size.
1710
1711 * emacs.c (main): Don't call init_coding.
1712
1713 * msdos.c (IT_write_glyphs): Use a locally declared
1714 conversion_buffer.
1715
1716 * term.c (write_glyphs): Use a locally declared conversion_buffer.
1717 (insert_glyphs): Likewise.
1718
1719 * w32console.c (write_glyphs): Use a locally declared
1720 conversion_buffer.
1721
b9f80d41
EZ
17222000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
1723
1724 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
1725 member of display_info is NULL.
1726
32dc52f7
GM
17272000-08-15 Gerd Moellmann <gerd@gnu.org>
1728
58ed0d3b
GM
1729 * alloc.c (compact_small_strings): Use safe_bcopy, add an
1730 assertion.
1731
32dc52f7 1732 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 1733 appearances with capability `me'.
32dc52f7
GM
1734 (write_glyphs): Switch on inverse video before each face change.
1735
4eb22d33
DL
17362000-08-14 Dave Love <fx@gnu.org>
1737
1738 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
1739 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
1740 (lisp_free): Declare and make static.
1741
1742 * window.c: Fix embedded comment.
1743 (syms_of_window): Fix doc string.
1744
90cbf47e
GM
17452000-08-14 Gerd Moellmann <gerd@gnu.org>
1746
1747 * keymap.c (push_key_description): If C without modifiers is < 32,
1748 make sure to print `C-' before `M-', like in the manual.
1749
440fc135
GM
17502000-08-11 Gerd Moellmann <gerd@gnu.org>
1751
1752 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
1753 since they aren't relocated anymore.
1754 (sxhash_string): Make sure returned hash code fits in a Lisp
1755 integer.
1756
1757 * xdisp.c (try_cursor_movement): Fix handling of cursor in
1758 partially visible line which is smaller than the window's
1759 height.
1760
6e264fad
KH
17612000-08-11 Kenichi Handa <handa@etl.go.jp>
1762
1763 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
1764 the multibyte form of eight-bit-control characters.
1765 (Fccl_execute_on_string): Initialize ccl->multibyte.
1766
1767 * ccl.h (struct ccl_program): New member multibyte.
1768
1769 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
1770
c371f69a
KH
17712000-08-11 Kenichi Handa <handa@etl.go.jp>
1772
1773 * regex.c (regex_compile) <normal_char>: Pay attention to
1774 multibyteness.
1775 (analyse_first) <exactn>: Setup fastmap correctly for
1776 eight-bit-control characters.
1777
17782000-08-11 Kenichi Handa <handa@etl.go.jp>
1779
1780 * termhooks.h (enum event_kind): New member
1781 multibyte_char_keystroke.
1782
1783 * keyboard.c (make_lispy_event): Handle the new event type
1784 multibyte_char_keystroke.
1785
1786 * xterm.c: Include coding.h.
1787 (XTread_socket): Work around a bug of XmbLookupString. If the
1788 input is from XIM, decode it according to the current locale. In
1789 that case, generate multibyte_char_keystroke events.
1790
b8ddbe71
KH
17912000-08-11 Kenichi Handa <handa@etl.go.jp>
1792
1793 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
1794 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
1795
47589c8c
GM
17962000-08-10 Gerd Moellmann <gerd@gnu.org>
1797
1798 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
1799 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
1800 (move_it_in_display_line_to): Record iterator's ascent and descent
1801 before producing glyphs, and restore them when we know the glyph
1802 doesn't fit on the line.
1803 (move_it_to): Restructured so that it's easier to debug. If
1804 moving to a vpos, and not moving to an x or character position,
1805 stop as soon as the specified vpos is reached; don't move further
1806 into that line because that might change the computed line height.
1807 (try_cursor_movement): New function, extracted from the cursor
1808 movement branch of redisplay_window. If ending on a partially
1809 visible line, don't try to scroll if the cursor line is taller
1810 than the window.
1811 (redisplay_window): Use try_cursor_movement.
1812
1813 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
1814 because that function doesn't cope with variable-height lines.
1815
1816 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
1817 box cursor because that's better visible for large images.
1818
c51bacd6
MB
18192000-08-10 Miles Bader <miles@gnu.org>
1820
1821 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
1822
bea56df7
GM
18232000-08-10 Gerd Moellmann <gerd@gnu.org>
1824
1825 * xdisp.c (Vmessages_buffer_name): New variable.
1826 (message_dolog): Use it.
1827 (syms_of_xdisp): Initialize it.
1828
99cd7364
EZ
18292000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
1830
1831 * msdos.c (IT_note_mouse_highlight): Update the calls to
1832 overlays_at.
1833 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
1834 redundant now that keyboard.h is included.
1835
7d093d56
EZ
18362000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
1837
1838 * keyboard.c (kbd_buffer_events_waiting): New function.
1839
1840 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
1841
1842 * msdos.c: Include keyboard.h.
1843 (XMenuActivate): Empty no_event events from the event buffer. If
1844 no events are left after that, call clear_input_pending.
1845 (mouse_clear_clicks): New function, code moved from mouse_init.
1846 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
1847 mouse driver to ``forget'' any past clicks.
1848
1849 * Makefile.in (msdos.o): Depend on keyboard.h.
1850
41e757a6
GM
18512000-08-09 Gerd Moellmann <gerd@gnu.org>
1852
8e7bd231
GM
1853 * lisp.h (input_pending): External declaration.
1854
1855 * dispextern.h (Qredisplay_dont_pause): Declare extern.
1856
1857 * xdisp.c (echo_area_display): Display thoroughly if input is
1858 pending. Bind redisplay-dont-pause to t during the redisplay.
1859 in case input is pending.
1860
1861 * dispnew.c (Qredisplay_dont_pause): New variable.
1862 (syms_of_display): Initialize and staticpro it.
1863 (update_frame_1): Don't interrupt the display for pending input if
1864 redisplay_dont_pause is set.
1865
43028b7e
GM
1866 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
1867
41e757a6
GM
1868 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
1869
2f2174fa
KH
18702000-08-09 Miles Bader <miles@lsi.nec.co.jp>
1871
1872 * callproc.c (Fcall_process): Terminate the unwind-protect around
1873 the post-read-conversion of coding system.
1874
0a6fd67e
MB
1875 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
1876 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
1877 * buffer.h (overlays_at): Update prototype.
1878 * xdisp.c (next_overlay_change): Update call to overlays_at.
1879 * xfaces.c (face_at_buffer_position): Likewise.
1880 * textprop.c (Fget_char_property): Likewise.
1881 * xterm.c (note_mouse_highlight): Likewise.
1882
0c80756e
MB
1883 * minibuf.c (do_completion): Don't consider a simple change of
1884 case as `completion'.
1885
975f250a
KR
18862000-08-08 Ken Raeburn <raeburn@gnu.org>
1887
b347b3fd
KR
1888 * keyboard.c (syms_of_keyboard): Initialize
1889 last_point_position_buffer.
1890 * undo.c (record_delete): Make sure last_point_position_buffer is
1891 a buffer before comparing pointers.
1892
1893 * coding.h (decode_coding_string): Declare.
1894
1895 * intervals.h (Fprevious_single_char_property_change): Declare.
1896
1897 * textprop.c (Fprevious_single_char_property_change): Don't do
1898 arithmetic directly on lisp objects.
1899
25ad1371 1900 * editfns.c (find_field): Use EQ, not ==, to compare Lisp
b347b3fd
KR
1901 objects.
1902
1903 * keyboard.h (menu_item_eval_property): Declare.
1904
1905 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
1906 reuse as buffer name, instead of recreating (and discarding) every
1907 time a message is logged.
1908 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
1909 (current_message_1, truncate_message_1, set_message_1)
1910 (display_echo_area_1, resize_mini_window_1): Signatures changed.
1911 (current_message, truncate_echo_area, display_echo_area)
1912 (resize_echo_area_axactly): Changed calls.
b347b3fd 1913
975f250a 1914 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 1915 Lisp object.
975f250a 1916 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 1917 must be an integer, not a Lisp object.
975f250a 1918
46dc9912
KH
19192000-08-08 Kenichi Handa <handa@etl.go.jp>
1920
1921 * charset.c (Fchar_width): Doc fix.
1922
9f6d1a6c
GM
19232000-08-08 Gerd Moellmann <gerd@gnu.org>
1924
1925 * charset.c (Fstring_width): Doc fix.
1926
ff3d9573
GM
19272000-08-07 Gerd Moellmann <gerd@gnu.org>
1928
41e757a6 1929 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
1930 line, clear ascent and descent members of the iterator structure;
1931 the height of the continued line does not affect the height of the
1932 continuation line.
1933 (make_cursor_line_fully_visible): Do nothing if cursor is on a
1934 line taller than the window.
1935 (redisplay_window) <forced window start>: Handle case that the
1936 middle of the window is not found in any row.
1937 (dump_glyph_row): Show more information.
1938 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
1939 first text line in a glyph matrix.
1940
1941 * xterm.c (x_draw_image_foreground): Avoid drawing outside
1942 of the clip area when image doesn't have a mask.
1943
70fc58b3
GM
1944 * fns.c (sweep_weak_table): Fix survival conditions for
1945 key-or-value and key-and-value weakness.
1946
1947 * .gdbinit (xhashtable): New command.
1948
ac0e96ee
GM
1949 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
1950 tables out of the list of all weak hash tables.
1951
ff3d9573
GM
1952 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
1953 a new buffer is created, make sure echo_area_buffer[] references
1954 the new buffer.
1955
e0d8827b
EZ
19562000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
1957
1958 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
1959 the doc string.
1960
c6f35378
KH
19612000-08-07 Kenichi Handa <handa@etl.go.jp>
1962
1963 * syntax.c (skip_chars): Fix previous change. Make the handling
1964 of unibyte string consistent with that of regex search.
1965
1fd4c450
GM
19662000-08-05 Gerd Moellmann <gerd@gnu.org>
1967
e49aa397
GM
1968 * xmenu.c (popup_get_selection): Use xfree instead of free.
1969
1970 * fileio.c (Finsert_file_contents): Use xfree instead of free.
1971
1972 * editfns.c (Ftranspose_regions): Use xfree instead of free.
1973
1974 * callproc.c (child_setup): Use xfree instead of free.
1975
1976 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
1977 instead of malloc.
1978 (run_mac_command, closedir): Use `xfree' instead of `free'.
1979
1980 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
1981
1982 * eval.c (error): Use xfree instead of free.
1983
1fd4c450
GM
1984 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
1985
1986 * fns.c: Replace `illegal' with `invalid'.
e49aa397 1987 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 1988
82d497fc
KH
19892000-08-05 Kenichi Handa <handa@etl.go.jp>
1990
1991 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
1992 conversion.
1993
59f953a2
NF
19942000-08-04 Noah Friedman <friedman@splode.com>
1995
1996 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
1997 docstring.
1998
688351f2
GM
19992000-08-04 Gerd Moellmann <gerd@gnu.org>
2000
2001 * syntax.c (skip_chars): Fix typo in error message.
2002
2dad51cc
AS
20032000-08-04 Andreas Schwab <schwab@suse.de>
2004
2005 * m/ia64.h: Moved from s/ia64.h.
2006
99bb2c60
KH
20072000-08-04 Kenichi Handa <handa@etl.go.jp>
2008
082a1df2
KH
2009 * process.c (read_process_output): Big simplification. Handle
2010 composition and post-read-conversion of coding system correctly.
2011 (send_process): Handle composition correctly.
2012
2013 * callproc.c (Fcall_process): Handle post-read-conversion of
2014 coding system if any.
2015
99bb2c60
KH
2016 * coding.c (decode_coding_iso2022): More strict check for handling
2017 single shifting.
082a1df2
KH
2018 (coding_restore_composition): Pay attention to the case that
2019 cmp_data is not set properly (because of invalid code in the
2020 source text).
2021 (run_pre_post_conversion_on_str): Include text properties in the
2022 resulting string.
2023 (decode_coding_string): Set members of coding correctly.
99bb2c60 2024
f4988be7
GM
20252000-08-03 Gerd Moellmann <gerd@gnu.org>
2026
2027 * s/ia64.h: New file.
2028
2029 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
2030 Use NULL instead of 0 at the end of variable argument list of
2031 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
2032 sizeof (int) < sizeof (void *).
2033
2034 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
2035 of variable argument lists of XtVaGetValues and XtVaSetValues.
2036
2037 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
2038 variable argument lists of XtVaGetValues and XtVaSetValues.
2039
ead53494
GM
20402000-08-02 Gerd Moellmann <gerd@gnu.org>
2041
2042 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
2043 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
2044
2045 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
2046 prototype.
2047
2048 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
2049 in call to Fsingle_key_description.
2050
2051 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
2052 Callers changed.
2053
20542000-08-02 Colin Walters <walters@cis.ohio-state.edu>
2055
2056 * window.c (display_buffer_reuse_frames): New variable.
2057 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
2058 frames displaying BUFFER.
2059 (syms_of_window): Define Lisp variable
2060 display-buffer-reuse-frames.
2061
10b0f752
MB
20622000-08-01 Miles Bader <miles@gnu.org>
2063
2064 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
2065 when to constrain NEW_POS (they were pretty screwed up before).
2066
16425c4a
EZ
20672000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
2068
2069 * msdos.c (run_msdos_command): Save and restore the master
2070 environment, for the case that child_setup signals an error.
2071 When mirroring slashes in DOS shell commands, don't fail when
2072 argv[2] has embedded blanks.
da288c14
EZ
2073 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
2074 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
2075 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
2076
2077 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
2078 using alloca; free it after run_msdos_command returns.
2079
27f73852
DL
20802000-07-27 Dave Love <fx@gnu.org>
2081
2082 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
2083 define.
2084 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
2085 working.
2086
2087 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
2088
c0261b5e
EZ
20892000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
2090
2091 * editfns.c (lisp_time_argument): Fix last change.
2092
b548072f
GM
20932000-07-27 Gerd Moellmann <gerd@gnu.org>
2094
3ab82477
GM
2095 * fns.c (Fdelete): Make it work on vectors and strings in addition
2096 to lists.
2097
b548072f
GM
2098 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
2099 (syms_of_fns): Initialize new variables.
2100 (sweep_weak_table): Handle weakness `key-or-value' and
2101 `key-and-value'.
2102 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
2103 weakness, with t meaning the same as `key-and-value'.
2104
91ae8751
KH
21052000-07-27 Kenichi Handa <handa@etl.go.jp>
2106
2107 * coding.h (struct coding_system): Member safe_charset deleted.
2108
2109 * coding.c (Qsafe_charsets): This variable deleted.
2110 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
2111 variables.
2112 (coding_safe_chars): New function.
2113 (CODING_SAFE_CHAR_P): New macro.
2114 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
2115 checking safe_charsets member of the coding system. Caller
2116 changed.
2117 (detect_coding_iso2022): New local variable safe_chars.
2118 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
2119 safe_charsets member of the coding system.
2120 (decode_coding_iso2022): New local variable safe_chars.
2121 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
2122 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
2123 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
2124 (ENCODE_UNSAFE_CHARACTER): New macro.
2125 (encode_coding_iso2022): New local variable safe_chars. Check
2126 unsafe chars.
2127 (setup_coding_system): Delete the code to initialize
2128 coding->safe_charses
2129 (intersection, find_safe_codings): New functions.
2130 (Ffind_coding_systems_region_internal): New function.
2131 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
2132 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
2133 variable and initialize it.
2134
2135 * fns.c (char_table_ref_and_index): New function.
2136
2137 * lisp.h (char_table_ref_and_index): Add prototype.
2138
34a7a267
SS
21392000-07-26 Sam Steingold <sds@gnu.org>
2140
2141 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 2142 (Ffloat_time): New built-in Lisp function.
34a7a267 2143
a95cb10a
GM
21442000-07-26 Gerd Moellmann <gerd@gnu.org>
2145
3353ef5a
GM
2146 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
2147 for the character code.
2148
2149 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
2150 GNU/Linux.
2151
a95cb10a
GM
2152 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
2153 if called for a popup menu.
2154 (xmenu_show): Store help string in widget values.
2155
b4a12321
DL
21562000-07-26 Dave Love <fx@gnu.org>
2157
2158 * syswait.h: Move some definitions.
2159 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
2160 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
2161 perspicuous definitions.
2162 (WTERMSIG): Fix bit pattern used.
2163
13f5ad37
KH
21642000-07-26 Kenichi Handa <handa@etl.go.jp>
2165
2166 * print.c (print_object): If vector printing is truncated, print
2167 "..." to indicate it as well as the case of list printing.
2168
070fe99c
GM
21692000-07-25 Gerd Moellmann <gerd@gnu.org>
2170
969065c3
GM
2171 * xdisp.c (next_element_from_display_vector): Improve comments.
2172
2173 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
2174 for the character code, and the rest for the face id as in 20.x.
2175 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
2176
2177 * window.c (window_display_table): Cleaned up.
2178
070fe99c
GM
2179 * syntax.c (Fforward_word): Add last arg nil in call of
2180 Fconstrain_to_field.
2181
bad77ef7
EZ
21822000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
2183
969065c3 2184 * fileio.c (Frename_file) [DOS_NT]: If the file names are
bad77ef7
EZ
2185 identical but for the letter-case, don't call
2186 barf_or_query_if_file_exists.
2187
c28da489
MB
21882000-07-25 Miles Bader <miles@gnu.org>
2189
2190 * editfns.c (find_field): Honor special `boundary' fields.
2191 (Qboundary): New variables.
2192 (syms_of_editfns): Initialize Qboundary.
2193 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
2194 Use scan_buffer instead of find_before_next_newline, because it
2195 allows us to detect the boundary case where there's a newline at
2196 the search limit.
2197 * lisp.h (Fconstrain_to_field): Update external declaration.
2198
e3c31fd5
GM
21992000-07-24 Gerd Moellmann <gerd@gnu.org>
2200
2201 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
2202 if that is nil.
c28da489 2203
c66c29a2
DL
22042000-07-24 Dave Love <fx@gnu.org>
2205
2206 * s/sunos4-0.h, s/sol2.h:
2207 (LIBS_TERMCAP): Move from m/sparc.h.
2208
2209 * m/sparc.h (TERMINFO): Moved to system files (probably only
2210 relevant for sunos4 judging by its vintage).
2211 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
2212 __arch64__.
2213
fbe0a958
EZ
22142000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
2215
2216 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
2217 name to single_keymap_panes.
2218
7d88e5c9
AS
22192000-07-24 Andreas Schwab <schwab@suse.de>
2220
2221 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
2222
e024b101
GM
22232000-07-24 Gerd Moellmann <gerd@gnu.org>
2224
2225 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
2226 parameters instead of using int parameters. Expect FN to accept
2227 EMACS_INT parameters.
2228 (display_echo_area, resize_echo_area_axactly, current_message)
2229 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
2230 with new argument list.
2231 (resize_mini_window_1): New callback function.
2232 (current_message_1, truncate_message_1, set_message_1): Change
2233 parameter lists to the new format expected by
2234 with_echo_area_buffer.
2235
25c1a9ce
KH
22362000-07-24 Kenichi Handa <handa@etl.go.jp>
2237
2238 * fontset.c (fontset_ref): Remove INLINE declaration.
2239 (fontset_ref_via_base): Likewise.
2240 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
2241 to downcase.
2242
7f987ac0
EZ
22432000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
2244
2245 * msdos.c (IT_note_mouse_highlight): Process overlays in the
2246 correct order of priority. If help echo was found in an overlay,
2247 use that overlay as the object in which the help echo was found.
2248
e2db3069
MB
22492000-07-22 Miles Bader <miles@gnu.org>
2250
2251 * textprop.c (Fprevious_single_char_property_change): The initial
2252 property value should be from the position preceding POSITION, not
2253 following it.
2254
5e3203e4
EZ
22552000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
2256
2257 * coding.c (syms_of_coding): Doc fix for
2258 inhibit-iso-escape-detection.
2259
62145073
GM
22602000-07-21 Gerd Moellmann <gerd@gnu.org>
2261
c20aeb83
GM
2262 * xterm.c (note_mouse_highlight): Process overlays in the right
2263 order of priority.
34a7a267 2264
743934db
GM
2265 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
2266
2267 * xterm.c (note_mouse_highlight): If help-echo was found in an
2268 overlay, use that overlay as the object in which the help was
2269 found.
2270
d1dc7e43 2271 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 2272
62145073
GM
2273 * window.c (foreach_window): Instead of a fake variable argument
2274 list, take one USER_DATA argument.
2275 (foreach_window_1): Likewise, and call callback functions with two
2276 args, the window and USER_DATA.
2277 (struct check_window_data): New struct.
2278 (check_window_containing): Use it.
2279 (window_from_coordinates): Set up a struct check_window_data for
2280 foreach_window.
2281 (add_window_to_list, freeze_window_start): Change parameters
2282 according to new calling convention.
2283
2284 * window.h (foreach_window): Change prototype.
2285
2286 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
2287
22882000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
2289
2290 * xmenu.c (menu_help_callback): Call show_help_echo with
2291 additional arguments OBJECT and POS.
2292
11270583
KH
22932000-07-21 Kenichi Handa <handa@etl.go.jp>
2294
07b14857
KH
2295 * data.c (Faset): Allow storing any multibyte character in a
2296 string. Convert unibyte string to multibyte if necessary.
2297
11270583
KH
2298 * xfns.c (x_encode_text): New function.
2299 (x_set_name): Use x_encode_text.
2300 (x_set_title): Likewise.
2301
2302 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
2303
2304 * xterm.h (x_encode_text): Add prototype.
2305
bc75b4fd
DL
23062000-07-20 Dave Love <fx@gnu.org>
2307
2308 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
2309 xfree, not free.
2310
48c14970
EZ
23112000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
2312
2313 * msdos.c (help_echo_window): New variable.
2314 (syms_of_msdos): Initialize and staticpro it.
2315 (IT_note_mode_line_highlight): Set help_echo_window.
2316 (IT_note_mouse_highlight): Ditto.
2317 (dos_rawgetc): Store help_echo_window in the second event produced
2318 for HELP_EVENTs.
2319
2320 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
2321 Record the object that generated the help echo and the position of
2322 that object in help_echo_object and help_echo_pos. Record that
2323 some glyphs in a row are displayed in mouse-face.
2324 (IT_update_begin): Don't clear mouse highlight unless one of the
2325 enabled glyph rows is marked as being displayed in mouse-face.
2326 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
2327 and position recorded in help_echo_object and help_echo_pos to the
2328 event queue.
2329 (IT_menu_display): Accept a new argument PN: the pane number of
2330 the current menu pane. Record the pane number and the item
2331 number of the item which has associated help string.
2332 (XMenuActivate): Update the prototype for help_callback in
2333 function declaration. Call IT_menu_display with the current menu
2334 pane number as an additional argument. Call help_callback with
2335 two additional arguments: the pane number and the item number of
2336 the menu item associated with the help text.
2337 (help_echo_object, help_echo_pos): New variables.
2338 (syms_of_msdos): Initialize them and staticpro help_echo_object.
2339
2340 * msdos.h (XMenuActivate): Update prototype.
2341
4279296d
GM
23422000-07-19 Gerd Moellmann <gerd@gnu.org>
2343
47db06aa
GM
2344 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
2345 Add some more prototypes.
2346
2347 * xterm.c, xterm.h: Add some more prototypes.
2348
2349 * lisp.h (Fnext_single_char_property_change): Add prototype.
2350
2351 * dispnew.c (direct_output_for_insert): Remove confusing
2352 outer local variable mouse_face_overwritten_p.
2353 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
2354
4279296d
GM
2355 * alloc.c (allocate_string_data): Don't copy old string contents.
2356
670acd62
KH
23572000-07-19 Kenichi Handa <handa@etl.go.jp>
2358
2359 * coding.c (code_convert_region): Delete text properties before
2360 shrinking the conversion region.
2361
7cea38bc
GM
23622000-07-18 Gerd Moellmann <gerd@gnu.org>
2363
dc1cac59
GM
2364 * dispnew.c (update_text_area): Write the whole row if it
2365 has mouse-face in it.
2366
85a8aca9
GM
2367 * xfaces.c (face-alternative-font-family-alist): Remove
2368 DEFVAR_LISP; staticpro instead.
2369
34a7a267 2370 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
2371 new arguments.
2372
2373 * keyboard.c (show_help_echo): Add parameter WINDOW.
2374 (read_char): Call show_help_echo with window extracted from Lisp
2375 help event.
2376 (gen_help_event): Add parameter WINDOW.
2377
2378 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
2379
2380 * xterm.c (help_echo_window): New variable.
2381 (note_mouse_highlight, note_tool_bar_highlight): Set
2382 help_echo_window.
2383 (XTread_socket): Pass help_echo_window to gen_help_event.
2384 (syms_of_xterm): Initialize and staticpro help_echo_window.
2385
f8276b77
DL
23862000-07-18 Dave Love <fx@gnu.org>
2387
2388 * Makefile.in: Fix dependencies of blockinput.h on atimer.h,
2389 systime.h.
2390
088831a6
GM
23912000-07-18 Gerd Moellmann <gerd@gnu.org>
2392
3d6cd763
GM
2393 * alloc.c (allocate_string_data): If string had already data
2394 assigned, copy old contents to new string data.
2395
2396 * coding.c (syms_of_coding): Fix typo in spelling of variable
2397 `inhibit-iso-escape-detection'.
2398
088831a6
GM
2399 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
2400
2401 * Makefile.in: Add dependencies on dispextern.h.
2402 (alloca.o): Don't define malloc and define EMACS_FREE instead of
2403 `free'; both can conflict with system header files.
2404
bc8a8d55
KH
24052000-07-18 Kenichi Handa <handa@etl.go.jp>
2406
2407 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
2408 undefined.
2409
069f5950
DL
24102000-07-18 Dave Love <fx@gnu.org>
2411
2412 * window.c (Fwindow_list): Declare arg `window'.
2413
aa96c820
KH
24142000-07-18 Kenichi Handa <handa@etl.go.jp>
2415
2416 * coding.c (setup_coding_system): Don't override the explicitly
2417 specified designations.
2418
06be8d32
MB
24192000-07-15 Miles Bader <miles@gnu.org>
2420
2421 * editfns.c (char_property_eq, char_property_stickiness): Renamed
2422 from `text_property_eq' and `text_property_stickiness', respectively.
2423 (find_field, Fconstrain_to_field, char_property_eq)
2424 (char_property_stickiness): Changed to call char-property functions
2425 instead of text-property-only ones.
2426
2427 * textprop.c (Fnext_single_char_property_change): Made a subr (was
2428 `next_single_char_property_change'). Do more error checking, and
2429 cleanup limit behavior.
2430 (Fprevious_single_char_property_change): New function.
2431 (syms_of_textprop): Initialize new subrs.
2432
2433 * xdisp.c (display_prop_end, invisible_text_between_p):
2434 Call Fnext_single_char_property_change instead of
2435 next_single_char_property_change.
2436
3fddcdc3
JR
24372000-07-15 Jason Rumney <jasonr@gnu.org>
2438
2439 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
2440 after menu is finished with.
2441 (add_menu_item): Only consider wv->title as a menu title.
2442 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
2443
2444 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
2445 null title.
2446 (FONT_REGEXP): Remove unused macro, and its sub-components.
2447 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
2448
2449 * w32term.c (help_echo_object, help_echo_pos): New variables.
2450 (note_mode_line_highlight): Store additional information about the
2451 help-echo in help_echo_object and help_echo_pos. Check both
2452 `local-map' and `keymap' properties for changing the cursor
2453 (note_mouse_highlight): Store additional information about the
2454 help-echo in help_echo_object and help_echo_pos.
2455 (note_tool_bar_highlight): Set help_echo_object to nil and
2456 help_echo_pos to -1.
2457 (w32_read_socket): Use gen_help_event instead of filling
2458 input_events manually.
2459 (syms_of_w32term): Staticpro help_echo_object.
2460 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
2461 set, arrange for a mouse-highlight redisplay in
2462 XTframe_up_to_date.
2463 (x_clear_mouse_face): New function.
2464 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
2465 (x_update_window_begin): No need to turn off the mouse
2466 highlight here.
2467 (show_mouse_face): Set the mouse_face_p flag of glyph rows
2468 depending on whether they contain glyphs highlighted in
2469 mouse-face.
2470 (x_fill_stretch_glyph_string): Consume runs of stretch
2471 glyphs instead of a single one.
2472 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
2473 with new argument list.
2474 (x_set_glyph_string_gc): Make sure the face's GC is valid.
2475 (x_append_glyph, x_append_composite_glyph)
2476 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
2477 changes in struct glyph starting 1999-12-27. See comments for
2478 xterm.c on 2000-07-05.
2479
178c5d9c
SS
24802000-07-14 Sam Steingold <sds@gnu.org>
2481
2482 * xfaces.c (realize_x_face): Fix the last patch:
2483 check `default_face' before dereferencing.
2484
6fe533f6
DL
24852000-07-14 Dave Love <fx@gnu.org>
2486
069f5950 2487 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 2488
dd7b81cf
KH
24892000-07-14 Kenichi Handa <handa@etl.go.jp>
2490
0693904a 2491 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 2492 default_face's fontset, not using the default fontset.
0693904a 2493
dd7b81cf
KH
2494 * coding.c (inhibit_iso_escape_detection): New variable.
2495 (syms_of_coding): Make it a Lisp variable.
2496 (detect_coding_iso2022): If inhibit_iso_escape_detection is
2497 nonzero, ignore ISO2022's escape sequence.
2498
d5aa31d8
GM
24992000-07-14 Gerd Moellmann <gerd@gnu.org>
2500
e5acf0ca
GM
2501 * alloca.c (malloc) [emacs]: Define as xmalloc.
2502
bd23a692
GM
2503 * xfns.c (Fx_show_tip): If frame parameters contain a position,
2504 use that instead of the mouse position. Add parameters DX and DY.
2505
2506 * dispextern.h (Fx_show_tip): Adjust number of parameters
2507 in prototype.
2508
9662da0b
GM
2509 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
2510 if HELP is a function, call it with OBJECT and POS as parameters
2511 to get the help to display.
2512 (gen_help_event, kbd_buffer_store_help_event): New functions.
2513 (kbd_buffer_get_event): Construct the Lisp help-event differently.
2514 (read_char): Call show_help_echo with new parameters.
2515
178c5d9c 2516 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
2517 Add prototypes.
2518
2519 * xterm.c (help_echo_object, help_echo_pos): New variables.
2520 (note_mode_line_highlight): Store additional information about the
2521 help-echo in help_echo_object and help_echo_pos. Check both
2522 `local-map' and `keymap' properties for changing the cursor
2523 (note_mouse_highlight): Store additional information about the
2524 help-echo in help_echo_object and help_echo_pos.
2525 (note_tool_bar_highlight): Set help_echo_object to nil and
2526 help_echo_pos to -1.
2527 (XTread_socket): Use gen_help_event instead of filling
2528 input_events manually.
2529 (syms_of_xterm): Staticpro help_echo_object.
2530
2531 * xmenu.c (menu_highlight_callback): Use
2532 kbd_buffer_store_help_event instead of setting up and input_event
2533 structure manually.
2534
2535 * xdisp.c (eval_form): GCPRO argument sexpr.
2536 (call_function): New function.
2537 (handle_single_display_prop): Use call_function and FUNCTIONP
2538 instead of checking whether if font_height is a symbol and
2539 using eval_form.
2540
2541 * eval.c (internal_condition_case_2): New function.
2542
2543 * lisp.h (FUNCTIONP): New macro.
2544 (internal_condition_case_2, call_function): Add prototypes.
2545
d5aa31d8
GM
2546 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
2547 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
2548 Always set `arg' member of input_events.
2549 (construct_menu_click): Unused function removed.
2550
2551 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
2552
2553 * w32term.c (construct_mouse_click, construct_mouse_wheel)
2554 (construct_drag_n_drop, x_scroll_bar_handle_click)
2555 (w32_read_socket): Always set `arg' member of input_events.
2556
2557 * keyboard.c (show_help_echo): Use eval_form. Add comment.
2558
2559 * lisp.h (eval_form): Add prototype.
2560
2561 * xdisp.c (eval_form): Make it externally visible.
2562
0f1a9b23
GM
25632000-07-13 Gerd Moellmann <gerd@gnu.org>
2564
2565 * xterm.c (x_handle_tool_bar_click): Store the frame in the
2566 frame_or_window slot of TOOL_BAR_EVENT input events instead of
2567 consing. For prefix events, store the frame in the `arg' slot of
2568 the event, otherwise store the key there.
2569 (XTread_socket): Instead of consing, use the frame_or_window slot
2570 of HELP_EVENTs for the frame, and the `arg' slot for the help
2571 string.
2572
2573 * xmenu.c (menu_highlight_callback): Store help string in the
2574 `arg' member of the input event; don't cons.
2575 (menubar_selection_callback): Use the `arg' slot of input events
2576 to queue additional information, instead of consing.
2577
2578 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
2579
2580 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
2581 TOOL_BAR_EVENTs.
2582 (w32_read_socket): Adapt to changes in HELP_EVENTs.
2583
2584 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
2585 input events to queue additional information, instead of consing.
2586
2587 * keyboard.c (kbd_buffer_gcpro): Renamed from
2588 kbd_buffer_frame_or_window. Now used for all Lisp objects
2589 referenced from the input queue.
2590 (kbd_buffer_store_event): Always use structure assignment for
2591 copying input events. Record all Lisp objects referenced from
2592 events in kbd_buffer_gcpro.
2593 (kbd_buffer_get_event): Construct Lisp `help-echo' events
2594 differently from input events. Test for prefix menu_bar_events
2595 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
2596 event in kbd_buffer_gcpro to nil.
2597 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
2598 frame_or_window is equal to its arg member as prefix events.
2599 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
2600 used by an input event to nil.
2601 (init_keyboard): Use two times the size of the input queue
2602 for kbd_buffer_gcpro.
2603 (syms_of_keyboard): Likewise.
2604
2605 * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
2606 USER_SIGNAL_EVENT.
2607
2608 * termhooks.h (struct input_event): Add member `arg'.
2609 (MENU_BAR_EVENT): Renamed from menu_bar_event.
2610 (USER_SIGNAL_EVENT): Renamed from user_signal.
2611
2612 * xfaces.c (ASET): Remove definition.
2613
2614 * lisp.h (AREF, ASET, ASIZE): New macros.
2615
2616 * fontset.c (AREF, ASIZE): Remove definitions.
2617
2618 * fns.c (AREF): Remove definition.
178c5d9c 2619
0f1a9b23
GM
2620 * composite.c (AREF): Remove definition.
2621
712eaef2
GM
26222000-07-12 Gerd Moellmann <gerd@gnu.org>
2623
d8ee7803
GM
2624 * dispnew.c (redraw_overlapped_rows): Add missing local.
2625 (scrolling_window): Remove debug code.
2626
712eaef2
GM
2627 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
2628 Before scrolling, turn off a mouse-highlight in the window
2629 being scrolled.
2630
2631 * xterm.c (x_update_window_end): Add parameter
2632 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
2633 redisplay in XTframe_up_to_date.
2634 (x_clear_mouse_face): New function.
2635 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
2636
2637 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
2638 current glyph row.
2639 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
2640 it when any row is written to that contains glyphs highlighted in
2641 mouse-face.
2642 (update_window): Call the window update end hook with new
2643 parameter MOUSE_FACE_OVERWRITTEN_P.
2644 (direct_output_for_insert): Give up if row contains mouse-face.
2645
2646 * dispextern.h (struct redisplay_interface): Add parameter
2647 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
2648 (clear_mouse_face): New function pointer member.
2649
02010917
SM
26502000-07-11 Stefan Monnier <monnier@cs.yale.edu>
2651
2652 * syntax.c (back_comment): Use one switch rather than a few `if's.
2653 Obey open_paren_in_column_0_is_defun_start.
2654 When reverting to the `slow' method, try to nicely handle the case
2655 of nested comments by checking that the comment-starter we found
2656 does indeed match the comment-ender.
2657 (scan_sexps_forward, scan_sexps_forward):
2658 Ignore excessive opening parenthesis rather than throwing an error.
2659
d76c03ea
GM
26602000-07-11 Gerd Moellmann <gerd@gnu.org>
2661
2662 * doc.c (Fsubstitute_command_keys): Handle case that a GC
2663 in Fwhere_is_internal or get_keymap_1 relocates string contents.
2664
2665 * dispnew.c (direct_output_forward_char): Give up if currently
2666 displaying a message instead of the minibuffer contents.
2667
2668 * xterm.c (x_update_window_begin): No need to turn off the mouse
2669 highlight here.
2670 (show_mouse_face): Set the mouse_face_p flag of glyph rows
2671 depending on whether they contain glyphs highlighted in
2672 mouse-face.
2673
2674 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
2675 compare the mouse_face_p flags of both rows.
2676
2677 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
2678
d55ead18
EZ
26792000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
2680
2681 * keyboard.c (show_help_echo): Accept additional parameter
2682 ok_to_overwrite_keystroke_echo.
2683 (read_char): Call show_help_echo with a zero
2684 ok_to_overwrite_keystroke_echo argument.
2685 * keyboard.h (show_help_echo): Update prototype of
2686 show_help_echo.
2687 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
2688 ok_to_overwrite_keystroke_echo argument.
2689 * w32menu.c (w32_menu_display_help): Call show_help_echo with
2690 non-zero ok_to_overwrite_keystroke_echo argument.
2691
df75b1a3
GM
26922000-07-10 Gerd Moellmann <gerd@gnu.org>
2693
4b92c49a
GM
2694 * xdisp.c (try_window_id): If changes are all below what is
2695 displayed in the window, and point is in the window, we still
2696 might have to find point on the display.
2697
2698 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
2699 glyphs instead of a single one.
2700 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
2701 with new argument list.
2702 (x_set_glyph_string_gc): Make sure the face's GC is valid.
2703
df75b1a3
GM
2704 * keymap.c (get_keymap_1): Add comment that this function can GC.
2705 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
2706 comment that functions can GC.
2707 (Fset_keymap_parent): GCPRO arg KEYMAP.
2708
4314cf3e
EZ
27092000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
2710
2711 * msdos.c (XMenuActivate): After exiting the menu, restore the
2712 echo area message and erase it.
2713
ab49ce15
KH
27142000-07-10 Kenichi Handa <handa@etl.go.jp>
2715
2716 * fontset.c (Ffontset_info): Make the return value more compatible
2717 with that of Emacs 20.
2718
090a072f
GM
27192000-07-07 Gerd Moellmann <gerd@gnu.org>
2720
2721 * eval.c (Fsignal): Handle case that backtrace_list is null.
2722
f92de4a6
KH
27232000-07-07 Kenichi Handa <handa@etl.go.jp>
2724
2725 * ccl.c (Fccl_execute): Typo fixed.
2726
dd8888a1
GM
27272000-07-06 Gerd Moellmann <gerd@gnu.org>
2728
e5c81191 2729 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 2730
dd8888a1
GM
2731 * window.c (Fwindow_list): Reverse list at the end.
2732 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
2733 means allow windows on OWINDOW's frame, only.
2734 (window_loop): Simplified; use Fwindow_list.
2735
2736 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
2737
485266d0
GM
27382000-07-05 Gerd Moellmann <gerd@gnu.org>
2739
2740 * xterm.c (XTread_socket): Increment handling_signal at the start,
2741 decrement it at the end.
2742
2743 * eval.c (handling_signal): New variable.
2744 (Fsignal): Abort if handling_signal is non-zero.
2745
2746 * lisp.h (handling_signal): External declaration.
178c5d9c 2747
485266d0
GM
2748 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
2749
80fcd514
KR
27502000-07-05 Ken Raeburn <raeburn@gnu.org>
2751
2752 Sound support for NetBSD through "Linux emulation" support:
2753 * config.in (HAVE_SOUNDCARD_H): Undef.
2754 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
2755 * Makefile.in (LIBSOUND): New variable.
2756 (LIBES): Include it.
2757 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
2758 <soundcard.h>.
2759 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
2760 elsewhere.
2761 (vox_open): Use DEFAULT_SOUND_DEVICE.
2762 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
2763
d5c5cddd
GM
27642000-07-05 Gerd Moellmann <gerd@gnu.org>
2765
2766 * print.c (print_error_message): If Vsignaling_function is set,
2767 show it in *Messages*.
2768
2769 * lisp.h (Vsignaling_function): External declaration.
2770
2771 * eval.c (Vsignaling_function): New variable.
2772 (Fsignal): Compute it.
2773 (syms_of_eval): Staticpro it.
2774
65171e3a
DL
27752000-07-05 Dave Love <fx@gnu.org>
2776
2777 * syswait.h: Use the autoconf recommended approach. Old code
2778 #if'd out in case we need to revert.
2779
178c5d9c 2780 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 2781
e2c46326
AI
27822000-07-05 Andrew Innes <andrewi@gnu.org>
2783
2784 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
2785 when non-NULL instead of __morecore, to take account of buffer
2786 memory. This also solves a problem with spurious memory warnings
2787 on Windows.
2788
2789 * ralloc.c: Make real_morecore non-static.
2790
2791 * eval.c (internal_condition_case): Comment out abort if
2792 interrupt_input_blocked is not zero.
2793
2794 * makefile.nt: Add support for `bootstrap' and related targets.
2795 Include minimal debug info in emacs.exe in release build.
2796 Remove all dependencies on lisp.h, and fixup some others.
2797
2798 * w32.c (init_environment): Install code from 20.7 for providing
2799 default values for environment variables, based on the
2800 executable's own location.
2801 (map_w32_filename): Handle filenames that are longer than
2802 MAX_PATH.
2803 (sys_socket): Install socket inheritance bug fix from 20.7.
2804
2805 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
2806 here via blockinput.h).
2807
a027a91b
SM
28082000-07-05 Stefan Monnier <monnier@cs.yale.edu>
2809
e4b31601
SM
2810 * w32menu.c (w32_menu_display_help):
2811 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
2812
2813 * keyboard.h (show_help_echo): Declare.
2814
2815 * keyboard.c (show_help_echo): New function, extracted from read_char.
2816 Feval its `msg' argument if it's a cons cell.
2817 (read_char): Use it.
4cf8d9d5 2818 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 2819
178c5d9c 2820 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 2821 (note_tool_bar_highlight, XTread_socket):
178c5d9c 2822 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
2823 (dos_rawgetc):
2824 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
2825 (note_tool_bar_highlight, w32_read_socket):
2826 Do not gratuitously ignore non-string `help-echo' properties.
2827
88d75730
GM
28282000-07-05 Gerd Moellmann <gerd@gnu.org>
2829
969f7e79
GM
2830 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
2831
71201b00
GM
2832 * window.c (delete_all_subwindows): Reset Vwindow_list.
2833
88d75730
GM
2834 * xterm.c (x_append_glyph, x_append_composite_glyph)
2835 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
2836 changes in struct glyph starting 1999-12-27. Some bit-fields of
2837 struct glyph were not set, which made glyphs unequal when compared
2838 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
2839 effects were the result. This also depended on the contents of
2840 memory returned by xmalloc. If flickering happens again, activate
2841 the code in clear_glyph_row that's in #if 0. If the flickering is
2842 gone with that, chances are that it is caused by something
2843 similar.
2844
2845 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 2846
88d75730
GM
2847 * dispextern.h: Add some comments.
2848
2849 * window.c (add_window_to_list): Add parameter LIST.
2850 (window_list): Order list so that, for each frame, windows are
2851 in canonical order, and so that frames appear in the list in
2852 the order given by Vframe_list.
2853 (next_window): Reverse the handling of NEXT_P.
2854
53654733
GM
28552000-07-04 Gerd Moellmann <gerd@gnu.org>
2856
87efd256
GM
2857 * window.c (Vwindow_list): New variable.
2858 (make_window, delete_window): Set Vwindow_list to nil.
2859 (check_window_containing): New function.
2860 (window_from_coordinates): Rewritten.
2861 (add_window_to_list, window_list, candidate_window_p)
2862 (decode_next_window_args, next_window): New functions.
2863 (Fnext_window, Fprevious_window): Rewritten in terms of
2864 next_window.
2865 (Fwindow_list): New function.
2866 (Fother_window): Cleaned up.
2867 (foreach_window): Add a longer "variable argument list". Let
2868 callback function return 0 to indicate that cycling over windows
2869 should stop.
2870 (foreach_window_1): Likewise.
2871 (freeze_window_start): Return int.
2872 (init_window): New function.
2873 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
2874
2875 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
2876 input_event with bzero.
2877 (main): Call init_window.
2878
53654733
GM
2879 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
2880 a menu filter.
2881
4a8c194f
KH
28822000-07-04 Kenichi Handa <handa@etl.go.jp>
2883
2884 * composite.h (make_composition_value_copy): Extern it.
2885
2886 * composite.c (make_composition_value_copy): New function.
2887
2888 * editfns.c (Fformat): While copying text properties, make each
2889 composition property value a copy.
2890
2891 * fns.c (concat): While copying text properties, make each
2892 composition property value a copy.
2893
831a6cb0
GM
28942000-07-03 Gerd Moellmann <gerd@gnu.org>
2895
2f516940
GM
2896 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
2897
178c5d9c 2898 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
2899 marked already.
2900
831a6cb0
GM
2901 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
2902 include those frames as candidates which have their focus
2903 redirected to the minibuffer frame.
2904
d9c4f922
SM
29052000-07-03 Stefan Monnier <monnier@cs.yale.edu>
2906
2907 * fns.c (Fputhash): Return `value' rather than nil.
2908
3780bc22
GM
29092000-06-30 Gerd Moellmann <gerd@gnu.org>
2910
97d176db
GM
2911 * frame.c (next_frame): Don't check focus redirection in case
2912 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
2913 unless their focus is redirected, which contradicts the
2914 specification of next-frame, and leads to infinite loops in
2915 certain situations when cycling through windows with next-window.
2916
dca9961d
KH
29172000-06-30 Kenichi Handa <handa@etl.go.jp>
2918
2919 * coding.c (code_convert_region): Even if the length of text is
2920 zero, try to convert it if coding->type is coding_type_ccl.
2921 (decode_coding_string, encode_coding_string): Likewise.
2922
d5483ab1
GM
29232000-06-28 Gerd Moellmann <gerd@gnu.org>
2924
af5c25e1 2925 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 2926 the display if windows_or_buffers_changed.
af5c25e1
GM
2927
2928 * dispnew.c (struct row_entry): New structure.
2929 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
2930 (row_table_size, old_lines, new_lines, old_lines_size)
2931 (new_lines_size, run_pool, runs_size, runs): New variables.
2932 (add_row_entry): New function.
2933 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 2934 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
2935 holding them in local variables. Use a larger hash table whose
2936 size depends on glyph matrix sizes. Don't use bzero to clear the
2937 hash table; instead, clear used slots only.
2938
2939 * fns.c (next_almost_prime): Make it externally visible.
2940
2941 * lisp.h (next_almost_prime): Add prototype.
2942
d5483ab1
GM
2943 * s/isc4-0.h (sigunblock): Define.
2944
2945 * s/sco5.h (sigunblock): Define.
2946
93e40f40
DL
29472000-06-27 Dave Love <fx@gnu.org>
2948
2949 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
2950 (moved to osf5-0.h).
2951 [!NOT_C_CODE]: Protect string.h stuff.
2952
2953 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
2954 (sys_siglist, NSIG): Definitions moved here from osf1.h.
2955
3c4b7685
GM
29562000-06-27 Gerd Moellmann <gerd@gnu.org>
2957
97d176db 2958 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
2959 below the last line from the needed window height.
2960
32cad0aa
SM
29612000-06-26 Stefan Monnier <monnier@cs.yale.edu>
2962
2963 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
2964 (Fwidget_get): Use it.
2965 (syms_of_fns): Defsubr it.
2966
2c69ced2
GM
29672000-06-26 Gerd Moellmann <gerd@gnu.org>
2968
178c5d9c 2969 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
2970 display info for XIM.
2971 (xim_open_dpy): Likewise.
2972 (xim_close_dpy): Don't free the display info's XIM.
2973
2974 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
2975
2976 * config.in (USE_XIM): New define.
2977
3fc720e4
GM
2978 * keymap.c (get_keyelt): For menu-items containing a `:filter
2979 FILTER', apply FILTER to the menu-item's definition to get the
2980 real definition to use.
2981
2982 * lisp.h (QCfilter): External declaration.
2983
2c69ced2
GM
2984 * xfns.c (Fimage_size): New function.
2985 (syms_of_xfns): Defsubr it.
2986
f978b2a2
AS
29872000-06-26 Andreas Schwab <schwab@suse.de>
2988
2989 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
2990 Fstring_as_unibyte.
2991
94cc7892
DL
29922000-06-25 Dave Love <fx@gnu.org>
2993
2994 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
2995 tgetnum.
2996
2997 * Makefile.in (blockinput.h): Depend on atimer.h.
2998 (atimer.h): Depend on systime.h.
2999
3000 * blockinput.h: Protect against multiple inclusion. Include
3001 atimer.h.
3002
3003 * atimer.h: Protect against multiple inclusion. Include
3004 systime.h.
3005
3006 * lisp.h (swap_in_global_binding): Declare.
3007
b8c24556
KR
30082000-06-24 Ken Raeburn <raeburn@gnu.org>
3009
3010 * process.c (Fopen_network_stream): Turn off atimers for duration
3011 of call to connect. (Patch from Gerd.)
3012
8cf8560b
DL
30132000-06-23 Dave Love <fx@gnu.org>
3014
511c7541
DL
3015 * ralloc.c: Maybe include unistd.h
3016
8cf8560b
DL
3017 * emacs.c (setgrp): Undefine before defining.
3018 (malloc_warning, set_time_zone_rule, index): Prototype.
3019
3020 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
3021 HAVE_STRUCT_TIMEZONE.
3022
3023 * s/osf1.h: Move string.h hack here from alpha.h and make it
3024 conditional.
3025 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
3026 _XOPEN_SOURCE.
3027 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
3028 (SOCKLEN_TYPE): Don't define.
3029
3030 * m/alpha.h: Remove string.h hack.
3031
3032 * s/osf5-0.h: New file.
3033
3034 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
3035 include time.h, done by systime.h.
3036 [__FreeBSD__]: Remove redundant includes.
3037
3fc720e4 3038 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
3039 (delete_temp_file): Return Qnil to avoid warning.
3040
3041 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
3042
3043 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
3044 HAVE_X_WINDOWS.
3045
3046 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
3047
3048 * composite.h (compose_text): Declare.
3049
3050 * xterm.c: Don't include sys/types.h unconditionally. Don't
3051 protect its inclusion with !USG (following xmenu.c).
3052
ea055732
GM
30532000-06-23 Gerd Moellmann <gerd@gnu.org>
3054
3055 * xfns.c (x_create_tip_frame): Initialize frame's colors like
3056 in x_create_frame.
3057
74b01b80
EZ
30582000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
3059
3060 * coding.c (decode_eol_post_ccl): Special handling for undecided
3061 and inconsistent EOL types.
3062
64f3a166
GM
30632000-06-22 Gerd Moellmann <gerd@gnu.org>
3064
16cf31f7
GM
3065 * xrdb.c (x_load_resources): Add default resource for scroll bar's
3066 trough color and main window's background color.
3067
178c5d9c 3068 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
16cf31f7
GM
3069 differently.
3070
3071 * xterm.h (Xt_app_con): External declaration.
3072
3073 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 3074
486a103d
GM
3075 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
3076
64f3a166
GM
3077 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
3078 (handle_invisible_prop): Record the start of invisible text in
3079 it->add_overlay_start.
3080 (struct overlay_entry): Add member `overlay'.
3081 (handle_overlay_change): Simplify.
3082 (next_overlay_string): After having processed overlay strings at the
3083 end of the buffer, record that fact in
3084 it->overlay_strings_at_end_processed_p.
3085 (compare_overlay_entries): If before- and after-strings come
3086 from the same overlay, let before-strings come first.
3087 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
3088 (load_overlay_strings): Take it->add_overlay_start into account
3089 when adding overlay strings.
3090
3091 * dispextern.h (struct it): Add member add_overlay_start.
3092
bb746ea6
DL
30932000-06-22 Dave Love <fx@gnu.org>
3094
3095 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
3096
3097 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
3098
a8f573f3
KH
30992000-06-22 Kenichi Handa <handa@etl.go.jp>
3100
3101 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
3102 is greater than 0.
3103
9f2bbc92
DL
31042000-06-21 Dave Love <fx@gnu.org>
3105
178c5d9c 3106 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 3107
3ee5041c
SM
31082000-06-21 Stefan Monnier <monnier@cs.yale.edu>
3109
3110 * syntax.c (back_comment): Simplify string-parity counting (with
3111 the added benefit of handling multiple string-styles as long as
3112 they are not intertwined).
3113 Jump to the slow code as soon as a comment starter is found in
3114 a "string_lossage" position. Fixes the case: " /* " /* " */.
3115
4c343001
DL
31162000-06-21 Dave Love <fx@gnu.org>
3117
3118 * Makefile.in: Use GETLOADAVG_LIBS.
3119
3120 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
3121 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
3122
e6365855
SM
31232000-06-20 Stefan Monnier <monnier@cs.yale.edu>
3124
3125 * syntax.c (describe_syntax): Recognize the `n'estable bit.
3126 (Fforward_comment, scan_lists):
3127 Check the comstyle of single-char comment-starters.
3128 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
3129 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
3130 Check the comstyle of single-char comment-starters.
3131 Clarify control-flow around the Scomment case.
e6365855 3132
5700d2cc
DL
31332000-06-20 Dave Love <fx@gnu.org>
3134
d355bd8a
SM
3135 * fns.c (make_hash_table, maybe_resize_hash_table):
3136 Cast arg of next_almost_prime.
5700d2cc 3137
178c5d9c 3138 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
3139
3140 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
3141 and unistd.h.
3142
4a27bdfb
GM
31432000-06-20 Gerd Moellmann <gerd@gnu.org>
3144
a61d762c
GM
3145 * keyboard.c (adjust_point_for_property): Check if display
3146 property should be treated as intangible by looking at its
3147 value.
3148
178c5d9c 3149 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
3150 (display_prop_intangible_p): New functions.
3151
3152 * dispextern.h (display_prop_intangible_p): Add prototype.
3153
3154 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 3155
4a27bdfb
GM
3156 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
3157 argument to sigprocmask.
3158
3159 * s/sco5.h (sigblock): Redefined to pass a pointer as second
3160 argument to sigprocmask.
3161
3162 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
3163 sigprocmask_set, and pass a pointer to it to sigprocmask.
3164
3165 * sysdep.c (sigprocmask_set): New variable.
3166
3167 * fileio.c (make_temp_name): Don't use `%s' in string passed to
3168 report_file_error.
3169
427ec082
SS
31702000-06-20 Sam Steingold <sds@gnu.org>
3171
3172 * xrdb.c: Don't declare xmalloc, xrealloc.
3173
8972fe79 31742000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
3175
3176 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
3177 (re_comp): Cast gettext return value to avoid complaints when
3178 !HAVE_LIBINTL.
3179
074b6efe
DL
31802000-06-20 Dave Love <fx@gnu.org>
3181
f85c008a
DL
3182 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
3183 HAVE_GETTIMEOFDAY.
3184
5700d2cc 3185 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 3186
d355bd8a 3187 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
3188
3189 * m/alpha.h: Don't declare xmalloc, xrealloc.
3190
0af4f205
DL
3191 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
3192
3193 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
3194
3195 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
3196
3197 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
3198 HAVE_GETWD.
3199
074b6efe
DL
3200 * keyboard.h (poll_for_input_1): Declare.
3201
3202 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
3203
3204 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
3205
3206 * doprnt.c: Don't declare xmalloc, xrealloc.
3207
3208 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
3209 (getenv, ctime, getwd): Removed.
3210 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
3211
3212 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
3213 x_set_tool_bar_lines.
3214
3215 * config.in: Add HAVE_GETWD. Move some definitions above
3216 machine/system includes.
3217
68a5e97b
KH
32182000-06-20 Kenichi Handa <handa@etl.go.jp>
3219
95417e1e
KH
3220 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
3221
68a5e97b
KH
3222 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
3223 contain information about ENCODING.
3224
3225 * fontset.c (FONTSET_ASCII): Use the first element of char table
3226 for an ASCII font, not defalt slot.
3227 (fontset_ref_via_base): If FONTSET doesn't contain information for
3228 C, try the default fontset.
3229 (make_fontset): Don't copy the default fontset.
3230 (fontset_font_pattern): Likewise.
3231 (accumulate_font_info): If ELT is nil, use the corresponding
3232 element in the default fontset.
3233
3b4fa1b2
DL
32342000-06-19 Dave Love <fx@gnu.org>
3235
943e731c
DL
3236 * syntax.c (Fparse_partial_sexp): Doc fix.
3237
3238 * regex.h: Test PROTOTYPES as well as __STDC__.
3239
3b4fa1b2
DL
3240 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
3241 errno, strerror. Put text after #endif in comment.
3242
3243 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
3244 pcc).
3245
3246 * xterm.c (x_frame_of_widget): Likewise.
3247
cdf0357b
GM
32482000-06-19 Gerd Moellmann <gerd@gnu.org>
3249
3250 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
3251 to Vfundamental_mode_abbrev_table.
3252
3253 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
3254 bogus objects are marked. This slows down GC by ~80 percent, but
3255 it might be worth trying when debugging GC-related problems.
3256 This feature requires conservative stack marking to be enabled.
3257
3258 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
3259 returns XLookupChars, reset `modifiers' to zero.
3260
998e9f8c
DL
32612000-06-19 Dave Love <fx@gnu.org>
3262
3263 * mktime.c: Unprotoized.
3264
18e21ce8 32652000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
3266
3267 * data.c (set_internal): If variable is frame-local,
3268 store the new value immediately into the frame parameter alist.
3269
140c4ac6
KR
32702000-06-19 Ken Raeburn <raeburn@gnu.org>
3271
14358466
KR
3272 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
3273 in the custom handler pointer.
3274
140c4ac6
KR
3275 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
3276 value, or checks for CHAR_META can fail when Lisp_Object is a
3277 union type.
3278 * keymap.c (get_keyelt): Likewise.
3279
10d7bf84
KH
32802000-06-19 Kenichi Handa <handa@etl.go.jp>
3281
3282 * ccl.h (struct ccl_program): New member eol_type.
3283 (struct ccl_spec): New member cr_carryover.
3284
3285 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
3286 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
3287
3288 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
3289 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
3290 (decode_eol_post_ccl): New function.
3291 (decode_coding): Don't detect EOL format here for CCL based coding
3292 systems.
3293 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
3294 decode_eol_post_ccl after running the CCL program.
3295 (code_convert_region): Don't detect EOL format here for CCL based
3296 coding systems.
3297 (decode_coding_string): Likewise.
3298
52e386c2
KR
32992000-06-18 Ken Raeburn <raeburn@gnu.org>
3300
3301 * charset.c (update_charset_table): Use XINT on "iso_final_char"
3302 when treating it as an integer.
3303
3304 * coding.h (encode_coding_string): Declare.
3305
3306 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
3307 it as an integer.
3308
3309 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
3310 "xkeymap" to avoid shadowing the "enum map_type" value that needs
3311 to be passed to get_local_map.
3312
3313 * sound.c (Fplay_sound): Don't call make_number on
3314 Frun_hook_with_args count argument.
3315
3316 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
3317 for lisp objects in X event structure data field, when lisp
3318 objects are represented with unions.
3319 (x_scroll_bar_to_input_event): Ditto.
3320
b357b9d4
KR
33212000-06-16 Ken Raeburn <raeburn@gnu.org>
3322
3323 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
3324 termination of string. Fix sense of test whether
3325 Vline_number_display_limit is an integer.
b357b9d4 3326
a871441d
GM
33272000-06-16 Gerd Moellmann <gerd@gnu.org>
3328
a9021acd
GM
3329 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
3330 only if HAVE_X_WINDOWS.
3331
6344985d
GM
3332 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
3333 of titles.
3334
427ec082 3335 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
3336 out of bounds.
3337
228b083e
EZ
33382000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
3339
3340 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
3341 of its headers.
3342
c25b53a2
KH
33432000-06-15 Kenichi Handa <handa@etl.go.jp>
3344
3345 * coding.c (decode_coding_emacs_mule): Always set src_base at the
3346 start of the while loop.
3347
a6981b11
GM
33482000-06-15 Gerd Moellmann <gerd@gnu.org>
3349
e9924e52
GM
3350 * atimer.c (alarm_signal_handler): Add forward declaration.
3351
a6981b11
GM
3352 * data.c (set_internal): Remove debug code.
3353
25fa6deb
GM
33542000-06-14 Gerd Moellmann <gerd@gnu.org>
3355
dce6b995
GM
3356 * Makefile.in (bootstrap-temacs): Add `-I../src'.
3357
9f817ea4
GM
3358 * unexec.c (toplevel) [COFF]: Include coff.h.
3359
3360 * s/lynxos.h: New file.
3361
3362 * keymap.c (Fsingle_key_description): Enclose function key and
3363 event symbol names in angle brackets.
3364
8a4e3c0c
GM
3365 * xdisp.c (setup_echo_area_for_printing): Call
3366 message_log_maybe_newline if message_buf_print is not set.
3367
3368 * print.c (printchar, strout): Don't check message_buf_print
427ec082 3369 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
3370 function does something useful even when message_buf_print is
3371 already set.
3372
25fa6deb
GM
3373 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
3374 variables.
3375 (ensure_echo_area_buffers): Initialize echo buffer's
3376 truncate lines setting to nil.
3377 (with_echo_area_buffer): Don't set the echo buffer's truncate
3378 lines setting here.
8a4e3c0c 3379 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
3380 of message_truncate_lines.
3381 (resize_mini_window): Handle case that lines are truncated.
3382 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
3383 message-truncate-lines.
3384
3385 * keyboard.c (read_char): Bind message-truncate-lines to t
3386 while displaying a help-echo.
3387
3388 * lisp.h (Qmessage_truncate_lines): External declaration.
3389
163dcff3
GM
33902000-06-13 Gerd Moellmann <gerd@gnu.org>
3391
1681ead6
GM
3392 * xdisp.c (Vline_number_display_limit): Renamed from
3393 line_number_display_limit.
3394 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
3395 Extend documentation string. Initialize
3396 Vline_number_display_limit to nil meaning no limit.
3397 (decode_mode_spec): Use Vline_number_display_limit with its new
3398 meaning.
3399
163dcff3
GM
3400 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
3401
18e21ce8 34022000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
3403
3404 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 3405
163dcff3
GM
3406 * xfns.c (x_set_frame_parameters): Comment fix.
3407
3408 * frame.c (store_frame_param): Call swap_in_global_binding if the
3409 variable's current binding was chosen based on this frame.
3410
3411 * data.c (swap_in_global_binding): New function.
3412
a704139d
EZ
34132000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
3414
3415 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
3416 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
3417
9b6610db
EZ
34182000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
3419
3420 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
3421
c68833d2
JR
34222000-06-12 Jason Rumney <jasonr@gnu.org>
3423
3424 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
3425
3426 * w32.h (EMACS_W32_H): Renamed from _NT_H_
3427
3428 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
3429
3430 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
3431
ed1056b3
GM
34322000-06-12 Gerd Moellmann <gerd@gnu.org>
3433
3434 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
3435 (syms_of_xfaces): Defsubr Sdump_colors.
3436 (x_free_colors): Don't treat b&w specially on default visual.
3437 (x_free_dpy_colors): New function.
3438 (free_face_colors): Don't check visual class; it's done
3439 in x_free_colors.
3440
3441 * xterm.c (x_frame_of_widget): New function.
3442 (x_alloc_nearest_color_for_widget): Use it.
3443 (x_copy_dpy_color): New function.
3444 (x_destroy_window): Free various colors.
3445
5050a2ef
KH
34462000-06-12 Kenichi Handa <handa@etl.go.jp>
3447
3448 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
3449
3450 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
3451
3452 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
3453
3454 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
3455
3456 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
3457
fb1b041d
DL
34582000-06-11 Dave Love <fx@gnu.org>
3459
3460 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
3461
ff96b5f4
EZ
34622000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
3463
3464 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
3465
db8eeecd
GM
34662000-06-11 Gerd Moellmann <gerd@gnu.org>
3467
ed1056b3 3468 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
3469 to `XEvent *'.
3470
49b71c5f
KH
34712000-06-10 Kenichi Handa <handa@etl.go.jp>
3472
c479bd55
KH
3473 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
3474 (regex_compile): Fix the code for handling the case of single byte
3475 char and multibyte char being mixed in a range within [...].
3476
ff6a65c2
KH
3477 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
3478 and dst_multibyte members of coding.
3479
49b71c5f
KH
3480 * charset.c (update_charset_table): Update the table
3481 bytes_by_char_head.
3482 (init_charset_once): Initialize elements of bytes_by_char_head to
3483 1 except for leading codes for private charases.
3484
3485 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
3486 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
3487 sequence.
3488
9e80b57d
KR
34892000-06-09 Ken Raeburn <raeburn@gnu.org>
3490
3491 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
3492 access the data it doesn't point to.
3493
f83fe4b4
GM
34942000-06-08 Gerd Moellmann <gerd@gnu.org>
3495
3496 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 3497 will be translated to a switch-frame event when reading the
f83fe4b4
GM
3498 event queue. This is necessary because Emacs otherwise won't
3499 perform a switch-frame to a new frame until some other event, for
3500 example a keystroke event, forces it to do so. This has various
3501 effects, one visible being that the cursor of a frame created with
3502 C-x 5 2 or switched to with a window manager key binding like
3503 A-TAB stays hollow because selected_window isn't on the newly
3504 focused frame until the switch-frame is performed.
3505
3506 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
3507 generating a switch-frame event if necessary.
3508
3509 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
3510
3511 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
3512 it's an integer.
3513
0890801b
KH
35142000-06-08 Kenichi Handa <handa@etl.go.jp>
3515
3516 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
3517 charset.
3518
173cbca8
GM
35192000-06-07 Gerd Moellmann <gerd@gnu.org>
3520
3091c2a6
GM
3521 * window.c (displayed_window_lines): Take empty lines at
3522 the bottom of a window into account.
427ec082 3523
f38952fe
GM
3524 * window.c (displayed_window_lines): New function.
3525 (Fmove_to_window_line): Use displayed_window_lines to determine
3526 the number of lines to move, instead of using the window's height.
3527
3528 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
3529 to stop reading, even if the form read sets point to a different
3530 value when evaluated.
3531
427ec082 3532 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
3533 put the cursor.
3534
6ba6c818
KH
35352000-06-07 Kenichi Handa <handa@etl.go.jp>
3536
3537 * fileio.c (e_write): Free composition data if stored in
3538 coding->cmp_data.
3539
5f1aea9a
GM
35402000-06-06 Gerd Moellmann <gerd@gnu.org>
3541
666852af
GM
3542 * xdisp.c (display_line): Set row's and iterator's
3543 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
3544 Set cursor even if row ends in the middle of a character.
3545 (dump_glyph_row): Print values of new flags.
3546 (redisplay_window) <cursor movement in unchanged window>: When
3547 point has been moved forward, and PT is at the end of the cursor
3548 row, don't place the cursor in the next row if the cursor row ends
3549 in the middle of a character or at ZV.
3550
3551 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
3552 (struct glyph_row): Add starts_in_middle_of_char_p and
3553 ends_in_middle_of_char_p.
3554 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
3555 ends_in_middle_of_char_p flag.
3556 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
3557
d13f3e2e
GM
3558 * term.c (append_glyph): Revert change of 2000-06-06.
3559
3560 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
3561 padding glyph not fitting on line as whole character not
3562 fitting on line.
3563
5f1aea9a
GM
3564 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
3565 this isn't true for images with `:ascent 100'.
3566
10cda9b0
KH
35672000-06-06 Kenichi Handa <handa@etl.go.jp>
3568
ed00559d
KH
3569 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
3570 as modified if it is originally unmodified.
3571
10cda9b0
KH
3572 * term.c (encode_terminal_code): Change the way to check if
3573 terminal coding does any conversion.
3574 (append_glyph): Set glyph->pixel_width correctly.
3575
3576 * xdisp.c (display_line): While checking line continuation, pay
3577 attention to a padding glyph.
3578
1969fae2
GM
35792000-06-05 Gerd Moellmann <gerd@gnu.org>
3580
3581 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
3582
162ccef4
DL
35832000-06-05 Dave Love <fx@gnu.org>
3584
f19f32dd
DL
3585 * xdisp.c: Include fontset.h.
3586
3587 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
3588
3589 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
3590
3591 * dispnew.c: Conditionally include term.h.
3592
3593 * coding.h: Declare code_convert_string_norecord.
3594
3595 * frame.h (struct frame): Use volatile unconditionally.
3596
3597 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
3598
3599 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
3600
3601 * systime.h: Protect against multiple inclusion.
3602 (timezone) [USG5_4]: Define as time_t.
3603
3604 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
3605 (Foptimize_char_table, make_temp_name): Declare.
3606
3607 * Makefile.in (xdisp.o): Depend on fontset.h.
3608
3609 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
3610
3611 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
3612 (Foptimize_char_table, make_temp_name): Declare.
3613
427ec082 3614 * s/irix4-0.h:
162ccef4
DL
3615 * s/irix5-0.h:
3616 * s/netbsd.h: Don't define autoconfiscated MATHERR.
3617
2082fe81
DL
36182000-06-02 Dave Love <fx@gnu.org>
3619
3620 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
3621
dcf671d2
GM
36222000-06-02 Gerd Moellmann <gerd@gnu.org>
3623
3624 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 3625 result face, set flags in that face indicating that colors may not
dcf671d2
GM
3626 be freed.
3627
3628 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
3629 glyph, use the ASCII NUL character to determine the face.
3630
d42122a3
DL
36312000-06-02 Dave Love <fx@gnu.org>
3632
3633 * sysdep.c: Conditionally include stdlib.h, unistd.h.
3634 (VFORK_RETURN_TYPE): Remove.
427ec082 3635
d42122a3
DL
3636 * config.in: Add NO_MATHERR.
3637
dd432f16
DL
36382000-06-01 Dave Love <fx@gnu.org>
3639
90aa4ea8
DL
3640 * cmds.c (internal_self_insert): Don't check
3641 Vbefore_change_function, Vafter_change_function.
3642
3643 * insdel.c (signal_before_change, signal_after_change): Likewise.
3644
3645 * buffer.c (Vbefore_change_function, Vafter_change_function):
3646 Variables and their initializations deleted.
3647
2330c9d4
DL
3648 * callint.c (Fcall_interactively): Doc fix.
3649
dd432f16
DL
3650 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
3651
bf9e8804
DL
36522000-05-31 Dave Love <fx@gnu.org>
3653
3654 * textprop.c: Revert last change -- duplicated.
3655
3694b4ab
GM
36562000-05-31 Gerd Moellmann <gerd@gnu.org>
3657
3658 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
3659 in #if 0.
3660
3661 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
3662
f14156cd
JR
36632000-05-31 Jason Rumney <jasonr@gnu.org>
3664
8119aab8
JR
3665 * search.c (Fre_search_forward, Fre_search_backward)
3666 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
3667
f14156cd
JR
3668 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
3669
4aab9be3
JR
36702000-05-30 Jason Rumney <jasonr@gnu.org>
3671
3672 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
3673 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
3674
3675 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
3676 member.
3677
3678 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
3679 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
3680 expand a nil default_filename.
3681
3682 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
3683 pointer to glyph_to_pixel_coords, not a frame.
3684
3685 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
3686 coding.h to dependencies.
3687
3688 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
3689
3690 * w32console.c (glyph_to_pixel_coords): Change first parameter to
3691 window pointer to be consistent with w32term.c and xterm.c.
3692
3693 * w32fns.c: Format and doc changes to bring closer to xfns.c.
3694 (VIETNAMESE_CHARSET): Define if not defined in system headers.
3695 (Qline_spacing, Qcenter): New variables.
3696 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
3697 (x_set_line_spacing): New function.
3698 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
3699 macros.
3700 (x_specified_cursor_type): New function.
3701 (x_set_cursor_type): Use it.
3702 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
3703 and icon strings.
3704 (validate_x_resource_name, x_get_resource_string): Measure lengths
3705 of external strings in bytes.
3706 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
3707 GetTextExtentPoint32 with NULL title.
3708 (Fx_create_frame): Initialize Qline_spacing.
3709 (w32_load_system_font): Initialize font->double_byte_p.
3710 (x_to_w32_charset): Use Vw32_charset_info_alist.
3711 (Image, busy cursor, tooltip functions): Merged changes from
3712 xfns.c. Not yet functional on Windows.
3713
3714 * w32gui.h (W32FontStruct): Add double_byte_p member.
3715
3716 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
3717 (emacs_button_translation): Use it.
3718 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
3719 in `mask' to be set.
3720
3721 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
3722 menu strings.
3723
3724 * w32term.c: Format and doc changes to bring closer to xterm.c.
3725 (w32_char_font_type): New enum.
3726 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
3727 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
3728 (w32_encode_char): New function.
3729 (x_encode_char): Removed.
3730 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
3731 x_encode_char and w32_font_is_double_byte.
3732 (x_produce_image_glyph): Use image_ascent.
3733 (x_produce_glyphs): Use new version of w32_per_char_metric and
3734 handle NULL return value. Allow extra line spacing.
3735 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
3736 (w32_get_glyph_overhangs): Remove unicode_p param. Use
3737 w32_font_type member of glyph instead.
3738 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
3739 (fast_find_position): Make sure not to consider rows not visible
3740 in the window.
3741 (w32_read_socket) [WM_MENUSELECT]: Cannot call
3742 w32_menu_display_help with input blocked, as it can abort.
3743 (x_display_and_set_cursor): Choose cursor depending
3744 on buffer-local value of cursor_type.
3745 (x_draw_bar_cursor): Add parameter WIDTH.
3746
3747 * w32term.h (CP_DEFAULT): Define.
3748 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
3749
10fc3187
GM
37502000-05-30 Gerd Moellmann <gerd@gnu.org>
3751
3752 * search.c (Fre_search_forward, Fre_search_backward)
3753 (Fposix_search_backward, Fposix_search_forward): Doc fix.
3754
d0555360
KH
37552000-05-30 Kenichi Handa <handa@etl.go.jp>
3756
3757 * coding.c (detect_coding_iso2022): Fix code for checking
3758 CODING_CATEGORY_MASK_ISO_8_2.
3759
f1ad044f
SM
37602000-05-29 Stefan Monnier <monnier@cs.yale.edu>
3761
3762 * regex.c (PREFETCH_NOLIMIT): New function.
3763 (re_match_2_internal): Use it and adjust the end_match_2 logic.
3764
84ec3b4b
GM
37652000-05-29 Gerd Moellmann <gerd@gnu.org>
3766
66254a13
GM
3767 * syntax.c (find_defun_start): Move test for
3768 open_paren_in_column_0_is_defun_start outside of the loop.
3769
49e70dec
GM
3770 * xdisp.c (redisplay_window): Really switch buffers when
3771 displaying mode lines, and temporarily set selected_frame to the
3772 frame of the window that's redisplayed.
3773
84ec3b4b
GM
3774 * xfaces.c (free_realized_faces): Block/unblock input.
3775 (free_realized_multibyte_face): Ditto.
3776
869a3a14
DL
37772000-05-29 Dave Love <fx@gnu.org>
3778
3779 * textprop.c (Qkeymap): New variable.
3780 (syms_of_textprop): Intern it.
3781
3782 * keymap.c: Include intervals.h.
3783 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
3784
3785 * Makefile.in (keymap.o): Depend on intervals.h.
3786
3787 * keyboard.c (menu_bar_items, tool_bar_items)
3788 (Fexecute_extended_command): Deal with `keymap' property.
3789 (read_key_sequence): Track map from `keymap' property as well as
3790 `local_map'.
3791
3792 * intervals.c (get_local_map): Extra arg to allow looking for
3793 `keymap' too.
3794
3795 * intervals.h (map_property): New enum.
3796 (get_local_map): Extra arg using it.
3797 (Qkeymap): Declare.
3798
84ec3b4b 3799 * lisp.h (get_local_map): Don't declare here.
869a3a14 3800
89d0c844
KH
38012000-05-29 Kenichi Handa <handa@etl.go.jp>
3802
3803 * Makefile.in (callproc.o): Depend on composite.h.
3804
3805 * callproc.c: Include composite.h.
3806 (Fcall_process): Handle composition correctly.
3807
3808 * coding.h (coding_allocate_composition_data): Extern it.
3809 (coding_restore_composition): Likewise.
3810
3811 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
3812 yet allocated, finish decoding with result
3813 CODING_FINISH_INSUFFICIENT_CMP.
3814 (coding_allocate_composition_data): Make it non-static.
3815 (coding_restore_composition): Likewise.
3816
797a084a
EZ
38172000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
3818
3819 * charset.c (syms_of_charset): Revert last change.
3820
cf872af5
EZ
38212000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
3822
3823 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
3824 charsets as unibyte, with 1-column screen width. Sent by Kenichi
3825 Handa.
cf872af5 3826
5b1ae051
EZ
38272000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
3828
3829 * charset.c (syms_of_charset): Set width of character sets
3830 eight-bit-control and eight-bit-graphic to 1 column.
3831
34ec9ebe
GM
38322000-05-26 Gerd Moellmann <gerd@gnu.org>
3833
3834 * config.in (HAVE_SPEED_T): New define.
3835
3836 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
3837 `extern speed_t'.
3838
dd854dc2
DL
38392000-05-26 Dave Love <fx@gnu.org>
3840
3841 * coding.c (shrink_decoding_region): Initialize eol_conversion.
3842
3843 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
3844 (Fsubr_arity): New function.
3845 (syms_of_data): Install them.
3846
ba9f8f95
KH
38472000-05-26 Kenichi Handa <handa@etl.go.jp>
3848
0f3e0672
KH
3849 * charset.c (init_charset_once): Set the table bytes_by_char_head
3850 correctly.
3851
cebefb44
KH
3852 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
3853 the default fontset to what Emacs uses by default.
0f3e0672
KH
3854 (check_registry_encoding): This function deleted.
3855 (Fset_fontset_font): Remove the adhoc condition for the default
3856 fontset. Allow cons in FONTNAME.
cebefb44 3857
0f3e0672
KH
3858 * fns.c (map_char_table): Ignore char-table entries for
3859 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 3860
7a18af49
KR
38612000-05-25 Ken Raeburn <raeburn@gnu.org>
3862
3863 * emacs.c (main): Initialize keyboard syms before initializing
3864 window code, so face names are available.
3865
d2af47df
SM
38662000-05-25 Stefan Monnier <monnier@cs.yale.edu>
3867
3868 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
3869 of an anchor at the beginning of a shy-group.
3870
fc6a6a4e
GM
38712000-05-25 Gerd Moellmann <gerd@gnu.org>
3872
3873 * xdisp.c (handle_invisible_prop): Don't try to skip over
3874 invisible text if end of text is already reached.
3875
005f0d35
DL
38762000-05-25 Dave Love <fx@gnu.org>
3877
02513cdd
DL
3878 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
3879
005f0d35
DL
3880 * coding.c (encode_eol): Add null statement after label.
3881
89f6ca4e
EZ
38822000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
3883
3884 * w16select.c (Fw16_set_clipboard_data): Fix the change from
3885 2000-05-20.
3886
a4e1759e
KH
38872000-05-25 Kenichi Handa <handa@etl.go.jp>
3888
3889 * ccl.c (ccl_driver): Fix previous change.
3890
eacfd7fe
KH
38912000-05-25 Kenichi Handa <handa@etl.go.jp>
3892
46ab33a9
KH
3893 * coding.c (run_pre_post_conversion_on_str): Set point to the
3894 beginning of buffer before calling coding->post_read_conversion.
3895 (decode_coding_string): Give correct args to
3896 run_pre_post_conversion_on_str.
3897 (encode_coding_string): Likewise.
3898
eacfd7fe
KH
3899 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
3900 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
3901 eight-bit-graphic correctly.
3902
f8569325
DL
39032000-05-24 Kenichi HANDA <handa@etl.go.jp>
3904
3905 * fileio.c (Finsert_file_contents): Even if a file is not found,
3906 execute codes for setting up coding system. Call
3907 after-insert-file-functions unconditionally.
3908
04545643
GM
39092000-05-24 Gerd Moellmann <gerd@gnu.org>
3910
3911 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
3912 BSD_PGRPS are not defined.
3913
747d90ea
KH
39142000-05-24 Kenichi Handa <handa@etl.go.jp>
3915
3916 * charset.c (update_charset_table): Accept nil in LONG_NAME and
3917 DESCRIPTION.
3918 (syms_of_charset): Avoid building same strings.
3919
716e3b88
GM
39202000-05-23 Gerd Moellmann <gerd@gnu.org>
3921
3922 * lread.c (Fload): Add a comment about the meaning of
3923 Vuser_init_file being t.
3924
3925 * puresize.h (BASE_PURESIZE): Increase to 675000.
3926
3927 * s/gnu-linux.h (setpgrp): Don't define it here because this
3928 prevents compilation on GNU/Linux systems with glib 2.2.
3929
3930 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
3931 as setpgid.
427ec082 3932
9aeb39fa
EZ
39332000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
3934
3935 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
3936 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
3937 version.
3938 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
3939
29ced61b
KH
39402000-05-23 Kenichi Handa <handa@etl.go.jp>
3941
0574a2ed
KH
3942 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
3943 unconditionally.
3944
3d80f24d
KH
3945 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
3946
3947 * term.c (encode_terminal_code): Set coding->src_multibyte
3948 properly.
3949
29ced61b
KH
3950 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
3951
d7e00792
KH
39522000-05-22 Kenichi Handa <handa@etl.go.jp>
3953
c9d80d38
KH
3954 * keyboard.c (read_char): Allow character codes 128..255 to be
3955 handled by input-method-function.
3956
d7e00792
KH
3957 * insdel.c (adjust_markers_for_replace): Fix previous change.
3958 (adjust_after_replace): If PREV_TEXT is nil, call
3959 adjust_markers_for_insert, not adjust_markers_for_replace.
3960
087121cc 39612000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 3962
087121cc
GM
3963 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
3964 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
3965 [HAVE_GRANDPT]: Define.
3966 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
3967
3968 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
3969 like SYSV_PTYS.
3970
3971 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
3972
3973 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
3974
c9671f81
KH
39752000-05-20 Kenichi Handa <handa@etl.go.jp>
3976
3977 The following changes are to handle 8-bit characters in a
3978 multibyte buffer/string without facing with byte combining
3979 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
3980 eight-bit-graphic (for 0xA0..0xFF) are introduced.
3981
3982 * Makefile.in (fns.o): Depend on charset.h.
3983
3984 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
3985 convert it to unibyte.
3986 (make_string): Use parse_str_as_multibyte, not chars_in_text.
3987
3988 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
3989 apparent char boundary.
3990 (Fset_buffer_multibyte): Convert 8-bit characters in the range
3991 0x80..0x9F to/from multibyte form.
3992
3993 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
3994 to unibyte.
3995
3996 * callproc.c (Fcall_process): Always encode an argument string if
3997 it is multibyte. Setup src_multibyte and dst_multibyte members of
3998 process_coding properly.
ce75fd23 3999
c9671f81
KH
4000 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
4001 SPLIT_NON_ASCII_CHAR.
4002
4003 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
4004 as is.
4005 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
4006
4007 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
4008 variables.
4009 (SPLIT_CHARACTER_SEQ): This macro deleted.
4010 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
4011 valid.
4012 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
4013 and eight-bit-graphic.
4014 (char_to_string): Likewise. Signal an error for too large
4015 character code.
4016 (char_printable_p): Return 0 for 8-bit characters.
4017 (update_charset_table): Update iso_charset_table only when a final
4018 character is non-negative.
4019 (find_charset_in_text): Renamed from find_charset_in_str.
4020 Arguments and return value changed. Callers changed.
4021 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
4022 be -1 if CHARSET is used only internally.
4023 (Fmake_char_internal): Handle new charsets; eight-bit-control and
4024 eight-bit-graphic.
4025 (Fcharset_after): Simplified.
4026 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
4027 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
4028 (multibyte_chars_in_text): Simplified by assuming there's no
4029 invalid multibyte sequence.
4030 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
4031 str_as_unibyte): New functions.
4032 (Fstring): Simpified by assuming that byte combining never
4033 happens.
4034 (init_charset_once): Initialization for
4035 LEADING_CODE_8_BIT_CONTROL.
4036 (syms_of_charset): Intern and staticpro Qeight_bit_control and
4037 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
4038 eight-bit-control and eight-bit-graphic.
4039
4040 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
4041 CHARSET_8_BIT_GRAPHIC): New macros.
4042 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
4043 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
4044 (CHARSET_REVERSE_CHARSET): Likewise.
4045 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
4046 eight-bit-graphic.
4047 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
4048 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
4049 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
4050 encounter an invalid multibyte sequence.
4051 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
4052 sequence is always valid.
4053 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
4054 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
4055 macros.
4056 (CHAR_STRING): For 8-bit characters, call char_to_string.
4057 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
4058 multibyte sequence is always valid.
4059 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
4060 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
4061 str_as_unibyte): Extern them.
4062 (BCOPY_SHORT): Fix a bug.
4063 (CHAR_LEN): This macro deleted. Callers changed to use
4064 CHAR_BYTES.
4065 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
4066 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
4067 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
4068
bd4bde7f 4069 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
4070 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
4071 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
4072 EMIT_BYTES): New macros.
4073 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
4074 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
4075 macros deleted.
4076 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
4077 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
4078 check the validity of multibyte sequence.
4079 (decode_coding_emacs_mule): New function.
4080 (encode_coding_emacs_mule): New macro.
4081 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
4082 the source.
4083 (DECODE_ISO_CHARACTER): Just return a character code.
4084 (DECODE_COMPOSITION_START): Set coding->result instead of result.
4085 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
4086 EMIT_CHAR to produced decoded characters. Exit the loop only by
4087 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
4088 block here.
4089 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
4090 only position codes for an invalid character.
4091 (encode_designation_at_bol): Return new destination pointer. 5th
4092 arg DSTP is changed to DST.
4093 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
4094 from the source by ONE_MORE_CHAR. Don't handle the case of last
4095 block here.
4096 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
4097 macros deleted.
4098 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
4099 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
4100 TWO_MORE_BYTES to fetch a byte from the source.
4101 (encode_eol): Pay attention to coding->src_multibyte.
4102 (detect_coding, detect_eol): Preserve members src_multibyte and
4103 dst_multibyte.
4104 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
4105 (encoding_buffer_size): Set magnification to 3 for all coding
4106 systems that require encoding.
4107 (ccl_coding_driver): For decoding, be sure that the result is
4108 valid multibyte sequence.
4109 (decode_coding): Initialize coding->errors and coding->result.
4110 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
4111 and raw-text, always call decode_eol. Handle the case of last
4112 block here. If not coding->dst_multibyte, convert the resulting
4113 sequence to unibyte.
4114 (encode_coding): Initialize coding->errors and coding->result.
4115 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
4116 and raw-text, always call encode_eol. Handle the case of last
4117 block here.
4118 (shrink_decoding_region, shrink_encoding_region): Detect cases
4119 that we can't skip data more rigidly.
4120 (code_convert_region): Setup src_multibyte and dst_multibyte
4121 members of coding. For decoding, if the buffer is multibyte,
4122 convert the source sequence to unibyte in advance. For encoding,
4123 if the buffer is multibyte, convert the resulting sequence to
4124 multibyte afterward.
4125 (run_pre_post_conversion_on_str): New function.
4126 (code_convert_string): Deleted and divided into the following two.
4127 (decode_coding_string, encode_coding_string): New functions.
4128 (code_convert_string1, code_convert_string_norecord): Call one of
4129 above.
4130 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
4131 MAKE_NON_ASCII_CHAR.
4132 (Fset_terminal_coding_system_internal,
4133 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
4134 and dst_multibyte members.
4135 (init_coding_once): Initialize iso_code_class with new enum
4136 ISO_control_0 and ISO_control_1.
4137
4138 * coding.h (enum iso_code_class_type): Member ISO_control_code is
4139 devided into ISO_control_0 and ISO_control_1.
4140 (struct coding_system): New members src_multibyte, dst_multibyte,
4141 errors, and result. Delete member fake_multibyte.
4142 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
4143 nonzero.
4144 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
4145 nonzero.
4146
4147 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
4148 (Faset): Likewise.
4149
4150 * editfns.c (Fformat): Be sure to convert 8-bit characters to
4151 multibyte form.
4152 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
4153 combining occurs.
4154 (Ftranspose_region): Delete codes for handling byte combining.
4155
4156 * fileio.c (Finsert_file_contents): Setup src_multibyte and
4157 dst_multibyte members of coding. On handling REPLACE on unibyte
4158 buffer, convert the result of decode_coding to unibyte. On
4159 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 4160 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
4161 multibyteness of the source (buffer or string).
4162
4163 * fns.c (concat): Handle 8-bit characters correctly.
4164 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
4165 unibyte in the result.
4166 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
4167 valid multibyte form in the result.
4168 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
4169 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
4170 return -1, signal an error.
4171 (base64_encode_1): New arg MULTIBYTE. Get each character by
4172 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
4173 character is found, return -1.
4174 (Fbase64_decode_region): Delete codes for handling byte-combining.
4175 Treat each decoded byte as a unibyte character.
4176 (Fbase64_decode_string): Return unibyte string.
4177 (Fcompare_strings, concat, string_byte_to_char): Use
4178 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
4179 FETCH_STRING_CHAR_ADVANCE.
4180 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
4181 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
4182
4183 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
4184 SPLIT_NON_ASCII_CHAR.
4185 (fontset_ref_via_base, fontset_set): Likewise
4186
4187 * insdel.c (adjust_markers_for_record_delete): Deleted.
4188 (adjust_markers_for_insert): Argument changed. Caller changed.
4189 (adjust_markers_for_replace): Likewise.
4190 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
4191 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
4192 (copy_text): Delete unused local varialbe c_save. For converting
4193 to multibyte, be sure to make all 8-bit characters in valid
4194 multibyte form.
4195 (count_size_as_multibyte): Handle 8-bit characters correctly.
4196 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
4197 adjust_after_replace, replace_range, del_range_2)
4198 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
4199 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
4200 adjust_after_replace, replace_range, del_range_2) Delete codes for
4201 handling byte combining.
4202 (adjust_before_replace): Deleted.
427ec082 4203
c9671f81
KH
4204 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
4205 SPLIT_NON_ASCII_CHAR.
4206 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
4207 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
4208 unconditionally.
4209 (Fkey_description): Likewise.
4210
4211 * lread.c (read1): On reading multibyte string, be sure to make
4212 all 8-bit chararacters in valid multibyte form.
4213 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
4214
4215 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
4216 unconditionally.
4217
4218 * process.c (Fstart_process): GCPRO current_dir before calling
4219 Ffind_operation_coding_system. Encode arguments here.
4220 (create_process): Don't encode arguments here. Setup
4221 src_multibyte and dst_multibyte members of struct coding.
4222 (read_process_output): Setup src_multibyte and dst_multibyte
4223 members of struct coding. If the output is to multibyte buffer,
4224 always decode the output of the process. Adjust the
4225 representation of 8-bit characters to the multibyteness of the
4226 output.
4227 (send_process): Setup coding->src_multibyte according to the
4228 multibyteness of the source.
4229
4230 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
4231 unconditionally.
4232 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
4233 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
4234
4235 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
4236 CHAR_LEN.
4237
4238 * w16select.c (Fw16_set_clipboard_data): Setup members
4239 src_multibyte and dst_multibyte of coding. Adjusted for the
4240 change for find_charset_in_str.
4241 (Fw16_get_clipboard_data): Likewise.
4242
4243 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
4244 dst_multibyte of coding.
4245 (x_to_w32_font): Likewise.
4246
4247 * w32select.c (Fw32_set_clipboard_data): Setup members
4248 src_multibyte and dst_multibyte of coding. Adjusted for the
4249 change for find_charset_in_str.
4250 (Fw32_get_clipboard_data): Likewise.
4251
4252 * xdisp.c (get_next_display_element): Handle 8-bit characters
4253 correctly.
4254 (next_element_from_display_vector): Use CHAR_BYTES instead of
4255 CHAR_LEN.
4256 (disp_char_vector): Use SPLIT_CHAR instead of
4257 SPLIT_NON_ASCII_CHAR.
4258
4259 * xselect.c (selection_data_to_lisp_data): Setup members
4260 src_multibyte and dst_multibyte of coding. Adjusted for the
4261 change for find_charset_in_str.
4262 (lisp_data_to_selection_data): Likewise.
4263
5f64c9e0
GM
42642000-05-19 Gerd Moellmann <gerd@gnu.org>
4265
2b63d473
GM
4266 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
4267 buffer.
4268
5f64c9e0
GM
4269 * dispextern.h (Vimage_types): Add extern declaration.
4270
4271 * xdisp.c (Vimage_types): Moved here from xfns.c.
4272 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
4273
4274 * xfns.c (Vimages_types): Moved to xdisp.c.
4275 (syms_of_xfns): Move `image-types' to xdisp.c.
4276
4277 * w32fns.c (Vimage_types): Removed.
4278 (syms_of_w32fns): Remove `image-types'.
4279
813086ea
KH
42802000-05-18 Kenichi Handa <handa@etl.go.jp>
4281
4282 * fns.c (map_char_table): Pay attention to character number of
4283 charset. Check the validity of charset at the first level. For
4284 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
4285 the default value.
4286
4287 * fontset.c: Include "buffer.h".
4288 (fs_load_font): If the face has fontset, record the face ID in
4289 that fontset.
4290 (Finternal_char_font): New function.
4291 (accumulate_font_info): New function.
4292 (Ffontset_info): Rewritten for the new fontset implementation.
4293 (syms_of_fontset): Register Vdefault_fontset in the first element
4294 of Vfontset_table. Include Vdefault_fontset in
4295 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
4296 function.
4297
bdaebbf0
DL
42982000-05-16 Dave Love <fx@gnu.org>
4299
4300 * m/iris5d.h: Deleted -- unused.
4301
cb613bb8
GM
43022000-05-16 Gerd Moellmann <gerd@gnu.org>
4303
b15f3b77
GM
4304 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
4305 `invalid' instead of `illegal'.
4306
4307 * indent.c (Fmove_to_column): When ending within a tab, insert
4308 spaces first so that markers at the end of the tab get adjusted.
4309
835c1b36
GM
4310 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
4311 buffer list that wasn't selected in that frame.
4312
cb613bb8
GM
4313 * filelock.c (get_boot_time): To obtain an 8 char file name, which
4314 is needed on mescaline, use a 2 char prefix, and call
4315 make_temp_name with second arg non-zero.
4316
4317 * fileio.c (make_temp_name): New function, extracted from
4318 Fmake_temp_name.
4319 (Fmake_temp_name): Use it.
4320
f685bea9
EZ
43212000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
4322
4323 * window.c (coordinates_in_window): Subtract 1 when computing
4324 right_x.
4325
a1b8d58b
GM
43262000-05-15 Gerd Moellmann <gerd@gnu.org>
4327
4328 * Makefile.in (lisp): Add env.elc.
4329
4330 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
4331
a265079f
GM
43322000-05-12 Gerd Moellmann <gerd@gnu.org>
4333
4334 * search.c (Freplace_match): Handle case of `\N' in the
4335 replacement when there's no group N.
4336
da4496b6
GM
43372000-05-11 Gerd Moellmann <gerd@gnu.org>
4338
0ace421a
GM
4339 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
4340 of the message to message_dolog.
4341
1172eb8d
GM
4342 * keyboard.c (read_char): Don't clear current message for help
4343 events; let the code handling help events handle this. Change
4344 code detecting help events that should be ignored.
4345
da4496b6
GM
4346 * xdisp.c (handle_single_display_prop): Don't try to set PT if
4347 we're interating over a string.
4348
0623e40f
DL
43492000-05-09 Dave Love <fx@gnu.org>
4350
4351 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
4352 that offset before writing. Move gcpro region past call of
4353 Ffile_regular_p.
4354
bae2503b
DL
43552000-05-04 Dave Love <fx@gnu.org>
4356
4357 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
4358
ec82fb2f
GM
43592000-05-04 Gerd Moellmann <gerd@gnu.org>
4360
4361 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
4362 of inserted characters when BUF equals the current buffer, and PT
4363 is in front of or equal to FROM.
4364
cbf18892
GM
43652000-05-03 Gerd Moellmann <gerd@gnu.org>
4366
4ff40dd0
GM
4367 * xdisp.c (handle_single_display_prop): If display property value
4368 is invalid, or something not supported on the frame, restore
4369 iterator's position to what it was initially. Make sure to return
4370 0 for invalid and unsupported property values.
4371
cbf18892
GM
4372 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
4373 that x_per_char_metric returns null.
4374
1b0672c3
GM
43752000-05-02 Gerd Moellmann <gerd@gnu.org>
4376
576da55d
GM
4377 * xterm.h (struct face): Add forward declaration.
4378 (struct image): Ditto.
4379 (image_ascent): Add prototype.
4380
4381 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
4382 (x_draw_image_relief, x_draw_image_foreground_1): Call function
4383 image_ascent instead of using IMAGE_ASCENT.
4384
4385 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
4386 (IMAGE_ASCENT): Removed.
4387
4388 * xfns.c (Qcenter): New variable.
4389 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
4390 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
4391 (image_ascent): New function.
4392 (lookup_image): Recognize `:ascent center'.
4393 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
4394 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
4395 (xbm_load): Don't set image's ascent here.
4396 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
4397 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
4398 check ascent values here.
4399 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
4400 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
4401 (syms_of_xfns): Initialize Qcenter.
4402
1b0672c3
GM
4403 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
4404 to the limits, increase the limits.
4405
0d7811ed
KH
44062000-05-01 Kenichi Handa <handa@etl.go.jp>
4407
4408 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
4409 Check Vfont_encoding_alist against the full name of the opened
4410 font.
4411
a943a5ca
GM
44122000-04-28 Gerd Moellmann <gerd@gnu.org>
4413
4414 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
4415 taller than the window.
4416
5dba1e29
KH
44172000-04-28 Kenichi Handa <handa@etl.go.jp>
4418
4419 * xfaces.c (realize_x_face): Fix the argument of the second
4420 xassert. BASE_FACE may not be a face for ASCII.
4421
353964e3
GM
44222000-04-27 Gerd Moellmann <gerd@gnu.org>
4423
c76e04a8
GM
4424 * print.c (print_object): Treat print-length < 0 as nil.
4425
4426 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
4427
4428 * s/freebsd.h (TERMCAP_OBJ): Removed.
4429 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
4430
4431 * lread.c (read1): Don't treat period followed by certain
4432 characters as symbol start.
4433
4434 * xfns.c (slurp_file): New function.
4435 (xbm_image_p): Handle case of in-memory XBM files.
4436 (xbm_scan): Rewritten to work on memory buffers instead of files.
4437 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
4438 Work on memory buffers instead of files. If DATA is null test
4439 if buffer looks like an in-memory XBM file.
4440 (xbm_load_image): Renamed from xbm_load_image_file. Work on
4441 memory buffers instead of files.
4442 (xbm_file_p): New function.
4443 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
4444
353964e3
GM
4445 * lread.c (end_of_file_error): New function.
4446 (read1): Call it instead of signaling `end-of-file' directly.
4447
427ec082 4448 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
4449 with Fprinc instead of Fprin1.
4450
24d744ac
KR
44512000-04-26 Ken Raeburn <raeburn@gnu.org>
4452
4453 * window.c (freeze_window_start): Check that minibuffer scroll
4454 window isn't nil before extracting the window structure pointer
4455 from it.
4456
4457 * undo.c (record_delete): If we hit the end of the undo list, stop
4458 picking elements apart.
4459
7464346d
GM
44602000-04-26 Gerd Moellmann <gerd@gnu.org>
4461
4462 * xdisp.c (display_line): If lines are continued, restore
4463 iterator's ascent/descent information to the values before the
4464 first glyph not fitting on the line.
4465
612839b6
GM
44662000-04-25 Gerd Moellmann <gerd@gnu.org>
4467
4468 * xdisp.c (try_window_id) <all changes above window start>: Adjust
4469 positions in glyph matrix. Don't compute new window end
4470 positions.
4471
4472 * dispnew.c (increment_matrix_positions): Renamed from
4473 increment_glyph_matrix_buffer_positions.
4474 (increment_row_positions): Renamed from
4475 increment_glyph_row_buffer_positions.
4476
4477 * dispextern.h: Change names of renamed functions from dispnew.c
4478 in prototypes.
4479
cc181e95
GM
44802000-04-24 Gerd Moellmann <gerd@gnu.org>
4481
abfcc168
GM
4482 * fileio.c (Fdo_auto_save): Create directories for auto-save
4483 list file if necessary.
4484
cc181e95
GM
4485 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
4486 from buffer or frame.
4487 (automatic_hscrolling_p): New variable.
4488 (hscroll_windows): Scroll windows horizontally only if automatic
4489 hscrolling is allowed.
4490 (syms_of_xdisp): New variable `automatic-hscrolling'.
4491
4492 * frame.h (struct frame): Add member extra_line_spacing.
4493
4494 * xfns.c (x_set_line_spacing): New function.
4495 (Fx_create_frame): Set line spacing from resources.
4496 (Qline_spacing): New variable.
4497 (syms_of_xfns): Initialize Qline_spacing.
427ec082 4498
cc181e95
GM
4499 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
4500
4501 * buffer.c (init_buffer_once): Handle extra_line_spacing.
4502 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 4503 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
4504 extra_line_spacing from default value.
4505 (init_buffer_once): Initialize default value of extra_line_spacing.
4506
4507 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
4508 and extra3.
4509
4510 * xterm.c (x_produce_glyphs): Remove reference to struct it's
4511 prompt_width. Add extra line spacing.
4512
4513 * term.c (produce_glyphs): Remove reference to struct it's
4514 prompt_width.
4515
4516 * dispextern.h (struct it): Remove member prompt_width, add
4517 extra_line_spacing.
4518
58827478
GM
45192000-04-22 Gerd Moellmann <gerd@gnu.org>
4520
4521 * dispnew.c (update_frame_line): When writing a whole line, make
4522 sure cursor is in the right row afterwards, otherwise a use of
4523 capability `ch' in cmgoto might leave the cursor in the row below.
4524
25a87f42
GM
45252000-04-21 Gerd Moellmann <gerd@gnu.org>
4526
4527 * lisp.h (struct Lisp_Buffer_Cons): Remove.
4528
4529 * keyboard.c (timer_check): Fix typo in comment.
4530
54edf5c2
KH
45312000-04-21 Kenichi Handa <handa@etl.go.jp>
4532
4533 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
4534 name change: ch -> character.
4535
3a64eef5
GM
45362000-04-20 Gerd Moellmann <gerd@gnu.org>
4537
4538 * keyboard.c (echo_message_buffer): New variable.
4539 (echo_now): Set echo_message_buffer to the echo area buffer used
4540 to display the echo.
4541 (cancel_echoing): Reset echo_message_buffer to nil.
4542 (read_char): Code rewritten that handles canceling an echo or
4543 echoing a dash, respectively.
4544
4545 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
4546 directory doesn't exist.
4547
6142fdcb
DL
45482000-04-19 Dave Love <fx@gnu.org>
4549
4550 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
4551 (concat): Don't allow numeric args.
4552 (Fconcat): Doc change.
6142fdcb 4553
ac6b5352
SM
45542000-04-19 Stefan Monnier <monnier@cs.yale.edu>
4555
4556 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
4557 instead define end_match(1|2) more carefully.
4558 Use GET_CHAR_BEFORE_2 for `begline'.
4559
cb9215e4
GM
45602000-04-19 Gerd Moellmann <gerd@gnu.org>
4561
5e3dac3f
GM
4562 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
4563 on 64-bit systems where NULL is defined as `0'.
4564
4565 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
4566 the `variable argument list' to make it work on Alpha.
4567
cb9215e4
GM
4568 * m/alpha.h (_LP64) [!_LP64]: Define.
4569 (ORDINARY_LINK): Define for NetBSD.
4570
4571 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 4572
f532dca0
DL
45732000-04-19 Dave Love <fx@gnu.org>
4574
c750667e
DL
4575 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
4576 change.
4577
4578 * Makefile.in (LIBS): Don't use.
4579 (GETLOADAVG_OBJ): Define again.
4580 (otherobj): Add GETLOADAVG_OBJ.
4581
f532dca0
DL
4582 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
4583
1c7e22fd
GM
45842000-04-18 Gerd Moellmann <gerd@gnu.org>
4585
f6d3257b
GM
4586 * lread.c (read_filtered_event): Cancel and start busy cursor.
4587
427ec082 4588 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
4589 that the per-character metrics may be null.
4590
e10f64e7
GM
45912000-04-17 Gerd Moellmann <gerd@gnu.org>
4592
0daee095
GM
4593 * buffer.c (clone_per_buffer_values): New function.
4594 (Fmake_indirect_buffer): Add optional argument CLONE. Call
4595 clone_per_buffer_values if CLONE is not nil.
4596
e10f64e7
GM
4597 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
4598
38687d43
DL
45992000-04-16 Dave Love <fx@gnu.org>
4600
4601 * Makefile.in: Remove obsolete localcpp stuff.
4602 (GETLOADAVG_OBJ): Don't define.
4603 (obj): Move LIBOBJS...
4604 (otherobj): ... to here.
4605 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
4606 whitespace-only lines after the continuation (Irix).
4607
c21c7262
GM
46082000-04-14 Gerd Moellmann <gerd@gnu.org>
4609
4610 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
4611
4612 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
4613
314767c0
DL
46142000-04-14 Dave Love <fx@gnu.org>
4615
4616 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
4617 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
4618 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
4619 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
4620 NLIST_STRUCT.
4621
4622 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
4623 autoconfiscated HAVE_GETLOADAVG.
4624
4625 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
4626 BROKEN_MKTIME.
4627
a2522dca
GM
46282000-04-14 Gerd Moellmann <gerd@gnu.org>
4629
4630 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
4631 (fill_in_lock_file_name): Avoid existing files that aren't
4632 links.
4633
33744b5d
DL
46342000-04-14 Dave Love <fx@gnu.org>
4635
c21c7262 4636 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
4637 (INTERVAL_SRC): Convert to make variable.
4638 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
4639 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
4640 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
4641 add LIBOBJS.
4642 (SOME_MACHINE_OBJECTS): Remove interval stuff.
4643 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
4644 (shortlisp): Add facemenu, float-sup, frame.
4645 (SOME_MACHINE_LISP): Remove them from here.
4646 (LIBES): Change unused LDLIBS to autoconf LIBS.
4647
4648 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
4649
9d3d5916
KH
46502000-04-14 Kenichi Handa <handa@etl.go.jp>
4651
4652 * composite.c (update_compositions): If FROM and TO are not in a
4653 valid range, do nothing.
4654
198e3c7a
GM
46552000-04-13 Gerd Moellmann <gerd@gnu.org>
4656
4657 * tparam.c (tparam1): Abort when encountering an unknown
4658 `%'-specifier.
4659
4660 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
4661 terminfo.o.
4662
4663 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
4664 as TERMCAP_OBJ.
4665
055a28c9
EZ
46662000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
4667
4668 * fileio.c (a_write): Remove redundant semi-colons.
4669 (e_write): Return -1 if failed to write all the data.
4670 This fixes the changes made at 1999-12-15.
4671
f5c75033
DL
46722000-04-12 Dave Love <fx@gnu.org>
4673
4674 * fns.c (mapcar1): Test for null vals to support mapc.
4675 (Fmapc): New function.
4676
0c3cfc51
EZ
46772000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
4678
4679 * msdos.c (NUM_MOUSE_BUTTONS): Define.
4680 (IT_frame_up_to_date): Support the buffer local value of
4681 cursor-type, if defined.
4682
33465a31
DL
46832000-04-10 Dave Love <fx@gnu.org>
4684
4685 * editfns.c (preceding-char, following-char): Doc fix.
4686
6ed56568
KR
46872000-04-10 Ken Raeburn <raeburn@gnu.org>
4688
4689 * Makefile.in (temacs): Revert 2000-03-12 change.
4690
7cf80d4e
JR
46912000-04-10 Jason Rumney <jasonr@gnu.org>
4692
4693 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
4694
34f3f342
GM
46952000-04-10 Gerd Moellmann <gerd@gnu.org>
4696
1a1b1895
GM
4697 * xdisp.c (setup_echo_area_for_printing): Choose an echo
4698 area buffer, if it's not set up yet.
4699
34f3f342
GM
4700 * indent.c (compute_motion): Set immediate_quit.
4701
be0dbdab
GM
47022000-04-09 Gerd Moellmann <gerd@gnu.org>
4703
c45be9ac
GM
4704 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
4705 variable.
4706 (realize_tty_face): Suppress boldness if colors are the inverse of
4707 the default colors, and tty_suppress_bold_inverse_default_colors_p
4708 is set.
4709 (Ftty_suppress_bold_inverse_default_colors): New function.
4710 (syms_of_xfaces): Defsubr it.
4711
be0dbdab
GM
4712 * buffer.c (Frestore_buffer_modified_p): New function.
4713 (syms_of_buffer): Defsubr it.
4714
e8413c3b
KR
47152000-04-08 Ken Raeburn <raeburn@gnu.org>
4716
87f67317
KR
4717 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
4718 charset id (int) argument, not a charset (Lisp_Object).
4719
e8413c3b
KR
4720 * coding.h (code_convert_string): Declare.
4721 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
4722 object, as the fourth argument to code_convert_string.
4723
4724 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
4725 value.
4726 (Fset_fontset_font): Use EQ to compare lisp objects.
4727
7c752c80
KR
47282000-04-05 Ken Raeburn <raeburn@gnu.org>
4729
c0333abc
KR
4730 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
4731 a pointer that looks like a lisp object.
4732 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
4733 zero, instead see whether it's an integer object, since they can't
4734 have intervals.
4735 (GET_INTERVAL_OBJECT): Simply assign to the destination.
4736
7c752c80
KR
4737 * dispnew.c (allocate_matrices_for_frame_redisplay,
4738 direct_output_forward_char): Use X(U)INT and make_number as needed
4739 to convert between (unsigned) int values and lisp integers.
4740 * keyboard.c (read_key_sequence): Likewise.
4741 * lread.c (substitute_object_recurse): Likewise.
4742 * fns.c (concat, hash_lookup, hash_remove): Likewise.
4743 * minibuf.c (do_completion, Fminibuffer_complete_word,
4744 Fminibuffer_completion_help): Likewise.
4745 * term.c (produce_special_glyphs): Likewise.
4746
4747 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
4748 * print.c (print_preprocess, print_object): Likewise.
4749
4750 * search.c (compile_pattern): Use NILP when checking for nil.
4751
74e49b38
KR
4752 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
4753 __OPTIMIZE__]: Provide a GNU C macro version that handles
4754 lisp-object unions.
4755 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
4756 field, to better cope with ENABLE_CHECKING and calls that modify a
4757 Lisp_Object using its old value.
4758
685e5ed2
GM
47592000-04-04 Gerd Moellmann <gerd@gnu.org>
4760
c407c570
GM
4761 * window.c (compare_window_configurations): Signal an error
4762 if parameters C1 or C2 aren't window configurations.
4763
685e5ed2
GM
4764 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
4765 AFTER_POTENTIAL_GC calls around calls to functions that can
4766 signal an error and thus invoke the debugger.
4767
587a49ab
GM
47682000-04-03 Gerd Moellmann <gerd@gnu.org>
4769
62f20204
GM
4770 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
4771 an error if decoding fails.
4772
587a49ab
GM
4773 * keyboard.c (lispy_mouse_names): Variable removed.
4774 (Vlispy_mouse_stem): New variable.
4775 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
4776 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
4777 for any mouse button number. Increase size of mouse_syms and
4778 button_down_location as needed. Call modify_event_symbol with
4779 different arguments.
4780 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
4781 Call modify_event_symbol with different arguments.
4782 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
4783 for any button number. Call modify_event_symbol with different
4784 arguments.
4785 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
4786 Accept a string for NAME_ALIST_OR_STEM.
4787
4788 * lisp.h (larger_vector): Add prototype.
4789
4790 * fns.c (larger_vector): Make externally visible.
4791
4792 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
4793
2d1675e4
SM
47942000-04-02 Stefan Monnier <monnier@cs.yale.edu>
4795
4796 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
4797 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
4798 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
4799 we are between str1 and str2.
4800 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
4801 (PATFETCH): Use `TRANSLATE'.
4802 (PATFETCH_RAW): Fetch multibyte char if applicable.
4803 (PATUNFETCH): Remove.
4804 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
4805 When writing a char, write it directly into the pattern buffer rather
4806 than going needlessly through a temp char-array.
4807 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
4808 multibyte magic and remove the useless `#ifdef emacs'.
4809 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
4810 buffer.
4811
4812 * regex.h (struct re_pattern_buffer): Make field `multibyte'
4813 conditional on `emacs'.
4814
4815 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
4816
cc2d8c6b
KR
48172000-04-01 Ken Raeburn <raeburn@gnu.org>
4818
4819 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
4820 non-union-type versions of XMARK and friends here, because XMARK
4821 and friends won't work on an integer field if NO_UNION_TYPE is not
4822 defined.
4823 (make_number): Define as a function if it's not defined as a
4824 macro.
4825
09654086
KR
4826 * composite.c (run_composite_function): Use NILP when checking for
4827 nil.
4828 (syms_of_composite): Delete local var NARGS, pass an int as first
4829 argument to Fmake_hash_table.
4830
2387b382
KR
4831 * editfns.c (text_property_stickiness): Use NILP to test
4832 Lisp_Object boolean value.
4833 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
4834 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
4835 problems reading from and changing the same lisp value in an
4836 XSETSTRING call.
4837
27660e89
GM
48382000-04-01 Gerd Moellmann <gerd@gnu.org>
4839
4840 * term.c (TN_no_color_video): New variable.
4841 (term_init): Intitialize TN_no_color_video.
4842 (enum no_color_bit): New enumeration.
4843 (MAY_USE_WITH_COLORS_P): New macro.
4844 (turn_on_face): Use it to determine if attributes may be used
4845 combined with colors.
4846
3578db3c
KR
48472000-04-01 Ken Raeburn <raeburn@gnu.org>
4848
4849 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
4850 with int lvalues via casts; instead, just yield lisp object
4851 lvalues.
4852 (enlarge_window): Variable sizep now points to Lisp_Object. Use
4853 proper accessor macros.
4854 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
4855 (grow_mini_window): Fix typo getting int value of root->height.
4856
6fc556fd
KR
4857 * xdisp.c (compute_string_pos): Fix order of arguments to
4858 string_pos_nchars_ahead.
4859 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
4860 count arg to variable-arg routines like Frun_hook_with_args and
4861 Fformat.
587a49ab
GM
4862 (back_to_previous_visible_line_start)
4863 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
4864 fixed-arg routines like Fget_char_property and Fmake_string.
4865 (reconsider_clip_changes): Use XINT when comparing integer lisp
4866 objects, or passing them as int arguments.
587a49ab
GM
4867 (mark_window_display_accurate, insert_left_trunc_glyphs)
4868 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
4869 storing or passing integer values as lisp objects.
4870 (set_cursor_from_row, highlight_trailing_whitespace): Use
4871 INTEGERP, not implicit test against zero, for glyph object.
4872 (try_window_id): Don't use make_number when we want an int value.
4873
4874 * xfaces.c (xlfd_symbolic_value): Make last argument a
4875 Lisp_Object, to be consistent with callers.
4876 (Fbitmap_spec_p): Use XINT to get numeric value of height.
4877 (lface_hash): Apply XFASTINT to lisp values before folding in.
4878
4879 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
4880 fill in window width and height. Pass an int, not a lisp object,
4881 as first arg to Finsert.
4882
6e7b2457
GM
48832000-04-01 Gerd Moellmann <gerd@gnu.org>
4884
610d841e
GM
4885 * xfaces.c (realize_basic_faces): Block input while realizing
4886 the faces.
4887
6e7b2457
GM
4888 * keyboard.c (lispy_mouse_names): Add additional mouse names.
4889
4890 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
4891
aa110c0c
GM
48922000-03-31 Gerd Moellmann <gerd@gnu.org>
4893
4894 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 4895 or ASCII, handle case that per-char metric is null.
aa110c0c 4896
8801a864
KR
48972000-03-30 Ken Raeburn <raeburn@gnu.org>
4898
c6129d7e
KR
4899 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
4900
8801a864
KR
4901 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
4902 XSUBR, XBUFFER): Verify correct object type before returning
4903 pointer, using eassert.
4904 * frame.h (XFRAME): Likewise.
4905
4906 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
4907 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
4908 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
4909 type.
4910 * data.c (set_internal): Likewise.
4911 * dispextern.h (WINDOW_WANTS_MODELINE_P,
4912 WINDOW_WANTS_HEADER_LINE_P): Likewise.
4913 * fileio.c (auto_save_1): Likewise.
4914 * insdel.c (check_markers): Likewise.
4915 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
4916 * undo.c (record_insert): Likewise.
4917 * vmsproc.c (child_sig): Likewise.
4918 * window.c (unshow_buffer, window_loop): Likewise.
4919 * xterm.c (x_erase_phys_cursor): Likewise.
4920
8e7af858
GM
49212000-03-30 Gerd Moellmann <gerd@gnu.org>
4922
4923 * xfns.c (free_image_cache): Free the cache structure itself
4924 last, after all its members have been freed.
4925
4926 * lisp.h (xstrdup): Add prototype.
4927
4928 * alloc.c (xstrdup): Moved here from xfaces.c.
4929 (allocating_for_lisp): Variable removed.
4930 (lisp_malloc): Block input around the calls to malloc and
4931 mem_insert.
4932
4933 * xfaces.c (realize_tty_face): Use find_symbol_value instead
4934 of Fsymbol_value.
4935 (xstrdup): Moved to alloc.c.
4936
e0b8c689
KR
49372000-03-29 Ken Raeburn <raeburn@gnu.org>
4938
b96f9fb7
KR
4939 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
4940
4941 * emacs.c (main): Fix sense of no-loadup test.
4942
e0b8c689
KR
4943 * config.in (ENABLE_CHECKING): Undef.
4944
4945 * lisp.h (struct interval): Replace "parent" field with a union of
4946 interval pointer and Lisp_Object; add new bitfield to use as
4947 discriminant. Change other flag fields to bitfields.
4948 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
4949 is defined and the supplied test fails, print a message and
4950 abort.
4951 (eassert): New macro. Use CHECK to provide an assert-like
4952 facility.
4953
4954 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
4955 pointers; abort if the value looks like a lisp object.
4956 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
4957 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
4958 Modify for new interval parent definition.
4959
4960 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
4961 UNMARK_BALANCE_INTERVALS): Update references that need an
4962 addressable lisp object in the interval structure.
4963 (die): New function.
4964 (suppress_checking): New variable.
4965
4966 * intervals.c (interval_start_pos): Just return 0 if there's no
4967 parent object.
4968
f83c5440
GM
49692000-03-29 Gerd Moellmann <gerd@gnu.org>
4970
4971 * lread.c (read1): Accept `.' (period) as symbol start like in CL
4972 and earlier Emacs versions.
4973
4974 * keyboard.c (Ftop_level): Cancel busy-cursor.
4975
4976 * eval.c (call_debugger): Cancel busy-cursor.
4977
fdce64ff
KH
49782000-03-29 Kenichi Handa <handa@etl.go.jp>
4979
4980 * search.c (Freplace_match): Adjust multibyteness of the current
4981 buffer and NEWTEXT. Free allocated memory before signaling an
4982 error.
4983
f6a3f532
SM
49842000-03-28 Stefan Monnier <monnier@cs.yale.edu>
4985
4986 * regex.c (analyse_first): New function obtained by ripping out most
4987 of re_compile_fastmap and generalizing it a little bit so that it
4988 can also just return whether a given (sub)pattern can match the empty
4989 string or not.
4990 (regex_compile): Use `analyse_first' to decide whether the loop-check
4991 needs to be done or not for *, +, *? and +? (the loop check is costly
4992 for non-greedy repetition).
4993 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
4994
e9b309ac
DL
49952000-03-28 Dave Love <fx@gnu.org>
4996
bb15bd9a
DL
4997 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
4998 alpha.
4999
e9b309ac
DL
5000 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
5001
ed0767d8
SM
50022000-03-27 Stefan Monnier <monnier@cs.yale.edu>
5003
5004 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
5005 an expression.
5006 (enum re_opcode_t): Update description of succeed_n.
5007 (PATFETCH): Always define.
5008 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
5009 operators, char classes, shy-groups and intervals).
5010 Optimize special cases of intervals so as to only use succeed_n and
5011 jump_n when really needed.
5012 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
5013 that we don't have to handle the special cases any more.
5014 Simplify on_failure_jump handling as well.
5015
e11e7e46
JR
50162000-03-28 Jason Rumney <jasonr@gnu.org>
5017
5018 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
5019
88faab89
GM
50202000-03-27 Gerd Moellmann <gerd@gnu.org>
5021
182ff242
GM
5022 * s/freebsd.h (GC_SETJMP_WORKS): Define.
5023
5024 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 5025
182ff242
GM
5026 * alloc.c (mark_maybe_object): New function.
5027 (mark_memory): Use it.
5028 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
5029 (setjmp_tested_p, longjmp_done): New variables.
5030 (test_setjmp): New function.
5031 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
5032 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
5033
c1005d06
GM
5034 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
5035 to DEC_TEXT_POS and INC_TEXT_POS.
5036
5037 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
5038 with parameter MULTIBYTE_P.
5039
427ec082 5040 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
c1005d06
GM
5041 MULTIBYTE_P.
5042
7439e5b9 5043 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
5044 buffers because it looks for multibyte character byte sequences
5045 which don't exist in unibyte text.
7439e5b9 5046
d9c545da
GM
5047 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
5048
11fd416e 5049 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
5050 [DEBUG_X_COLORS]: New functions.
5051 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
5052
5053 * xfns.c (x_set_cursor_color): Get color reference counts right.
5054
5055 * xterm.c (x_copy_color): New function.
5056 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
5057
5058 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
5059 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
5060 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
5061 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
5062 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
5063 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
5064 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
5065 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
5066 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
5067 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
5068
11fd416e
GM
5069 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
5070 names for handling per-buffer variables.
d9c545da
GM
5071
5072 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
5073 instead of MAX_BUFFER_LOCAL_VARS.
5074 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
5075
5076 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
5077
88faab89
GM
5078 * xfns.c (x_specified_cursor_type): New function.
5079 (x_set_cursor_type): Use it.
5080
5081 * buffer.h (struct buffer): Add cursor_type.
5082
d80f42b7
SM
50832000-03-26 Stefan Monnier <monnier@cs.yale.edu>
5084
5085 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
427ec082 5086 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
88faab89 5087 opcode.
d80f42b7
SM
5088 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
5089 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
5090 executing it as well as when popping it off the stack to find infinite
5091 loops in non-greedy repetition operators.
5092
89e80928
GM
50932000-03-26 Gerd Moellmann <gerd@gnu.org>
5094
3d4ff2dd
GM
5095 * doc.c (Qfunction_documentation): New variable.
5096 (syms_of_doc): Initialize Qfunction_documentation.
5097 (Fdocumentation): If FUNCTION is a symbol with non-nil
5098 `function-documentation' property, return a documentation derived
5099 from that.
5100
bd96bd79
GM
5101 * buffer.c (syms_of_buffer): Add default-cursor-type.
5102 (init_buffer_once): Don't let cursor_type have a local value
5103 in every buffer.
5104
19d1bc27
GM
5105 * xterm.c (x_display_and_set_cursor): Choose cursor depending
5106 on buffer-local value of cursor_type.
5107 (x_draw_bar_cursor): Add parameter WIDTH.
5108
5109 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
5110 (init_buffer_once): Set default cursor_type value to t.
5111 Mark cursor_type as local everywhere.
5112 (syms_of_buffer): New per-buffer variable cursor-type.
5113
89e80928
GM
5114 * buffer.h (struct buffer): Remove member local_var_flags,
5115 add local_flags.
5116 (MAX_BUFFER_LOCAL_VARS): New macro.
5117 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
5118 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
5119 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
5120 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
5121
5122 * print.c (print_object): Use new macros for per-buffer
5123 variables.
5124
5125 * category.c (Fset_category_table): Use new macros for per-buffer
5126 variables.
5127
5128 * buffer.c (buffer_permanent_local_flags): Make a char array.
5129 (max_buffer_local_idx): New variable.
5130 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
5131 for new handling of per-buffer variables.
5132 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
5133 (init_buffer_once): Initialize per-buffer vars differently.
5134 Set max_buffer_local_idx.
5135
5136 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
5137 variables.
5138
5139 * lread.c (defvar_per_buffer): Use new macros for per-buffer
5140 variables.
5141
5142 * data.c (do_symval_forwarding, store_symval_forwarding)
5143 (find_symbol_value, set_internal, default_value, Fset_default)
5144 (Fkill_local_variable, Flocal_variable_p): Use new macros for
5145 per-buffer variables.
5146
5147 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
5148
9a0dd3dc
GM
51492000-03-24 Gerd Moellmann <gerd@gnu.org>
5150
b68c375f
GM
5151 * xterm.c (x_term_init): Unblock input around call1 of
5152 Qvendor_specific_keysyms.
5153
9a0dd3dc
GM
5154 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
5155 (find_defun_start): Consider an open parenthesis in column 0
5156 a defun start only if open_paren_in_column_0_is_defun_start is set.
5157 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
5158
7973e637
SM
51592000-03-24 Stefan Monnier <monnier@cs.yale.edu>
5160
5161 * eval.c (Fautoload): Add entry in load-history (if after dump).
5162 * lread.c (load-history): Update docstring.
5163
39210e90
GM
51642000-03-24 Gerd Moellmann <gerd@gnu.org>
5165
5166 * indent.c (Fvertical_motion): Always use the current buffer.
5167 Temporarily change the window's buffer, if necessary.
5168
72db3ab5
GM
51692000-03-23 Gerd Moellmann <gerd@gnu.org>
5170
5171 * xterm.c (fast_find_position): Make sure not to consider rows
5172 not visible in the window.
5173
990b2375
SM
51742000-03-22 Stefan Monnier <monnier@cs.yale.edu>
5175
5176 * regex.c (enum syntaxcode): Provide default for non-Emacs.
5177 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
5178
ff4df011
JR
51792000-03-22 Jason Rumney <jasonr@gnu.org>
5180
5181 * w32menu.c (single_submenu): Set help string to NULL if none.
5182 (w32_menu_show): Set help string correctly.
5183 (add-menu-item): Set help string in MIIM_DATA for menu item.
5184 Load SetMenuItemInfoA explicitly.
5185 (w32_menu_display_help): New function.
427ec082 5186
ff4df011
JR
5187 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
5188 (QCdata): Moved to xdisp.c.
5189
5190 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
5191 (Vw32_charset_to_codepage_alist): Removed.
5192 (Vw32_charset_info_alist): New variable.
5193 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
5194 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
5195 greek, hebrew, thai, johab, mac, unicode]): New symbols.
5196 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
5197 with TODO comment.
5198 (w32_codepage_for_font): Use Vw32_charset_info_alist.
5199 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
5200 Define Vw32_charset_info_alist and w32_charset symbols.
5201
52022000-03-22 Jason Rumney <jasonr@gnu.org>
5203
5204 * makefile.nt (w32bdf.obj): Update dependencies.
5205
5206 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
5207
5208 * w32fns.c: Include fontset.h after dispextern.h.
5209 (Fx_create_frame): Do not create fontset.
5210 (w32_load_system_font): Doc fix.
5211 (Fx_close_connection): Free full_name if it is not shared.
5212
5213 * w32term.c: Include fontset.h after dispextern.h.
5214 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
5215 updated.
5216 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
5217 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
5218 (w32_font_is_double_byte): New function, needs body.
5219 (x_append_glyph): Set glyph->glyph_not_available_p.
5220 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
5221 it->charset. If it->multibyte_p is zero and it->c is a multibyte
5222 character, convert it to a unibyte character.
5223 (struct glyph_string): Delete member `charset'.
5224 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
5225 calculating it is found.
5226 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
5227 the case that per char metric is not available correctly.
5228 (x_fill_glyph_string): Handle the case that the specific glyph is
5229 not available correctly.
5230 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
5231 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
5232 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
5233 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
5234 fontset. Don't call FS_LOAD_FONT.
5235
439d5cb4
KR
52362000-03-22 Ken Raeburn <raeburn@gnu.org>
5237
5238 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
5239 (INT_LISPLIKE): New macro.
5240 (NULL_INTERVAL_P): Use it.
5241 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
5242 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
5243 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
5244
5245 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
5246 explicit references to "parent" field of struct interval and
5247 associated unclean type conversions.
5248 * intervals.c (create_root_interval, root_interval, rotate_right,
5249 rotate_left, balance_possible_root_interval, split_interval_right,
5250 split_interval_left, interval_start_pos, find_interval,
5251 next_interval, previous_interval, update_interval,
5252 adjust_intervals_for_insertion, delete_node, delete_interval,
5253 adjust_intervals_for_deletion, merge_interval_right,
5254 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
5255 copy_intervals_to_string): Likewise.
5256 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
5257 Likewise.
5258 * syntax.c (update_syntax_table): Likewise.
5259
5260 * intervals.c (reproduce_tree_obj): New function, like
5261 reproduce_tree but takes a Lisp_Object for the parent. Declare
5262 with prototype.
5263 (graft_intervals_into_buffer): Use it when appropriate.
5264 (reproduce_tree): Declare with prototype.
5265 (balance_possible_root_interval): Check that the parent is a lisp
5266 object before trying to examine its type.
5267
ee1c5b21
GM
52682000-03-22 Gerd Moellmann <gerd@gnu.org>
5269
5270 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
5271 as strings only if both are known to be strings.
5272
5273 * s/openbsd.h (LIBS_TERMCAP): Undef.
5274
1fb352e0
SM
52752000-03-21 Stefan Monnier <monnier@cs.yale.edu>
5276
5277 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
5278 definitions for non-Emacs compilation.
5279 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
5280 outside of `#ifdef emacs'.
5281 (print_partial_compiled_pattern): Update.
5282 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
5283 (re_compile_fastmap): Merge handling of charset and charset_not (for
5284 emacs and non-emacs compilation as well).
5285 Similarly for (not)categoryspec and (not)syntaxspec.
5286 Don't use the fastmap when reaching `anychar' since the added
5287 complexity is not justified.
5288 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
5289 and (not)syntaxspec. Merge (not)categoryspec.
5290
fdaa1f77
KH
52912000-03-22 Kenichi Handa <handa@etl.go.jp>
5292
ff1a0d8e
KH
5293 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
5294 FACE_FOR_CHAR): Define them differently for the configuration of
5295 --without-x.
fdaa1f77 5296
d152fb46
DL
52972000-03-21 Dave Love <fx@gnu.org>
5298
5299 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
5300 doc string.
5301
d2cafc8c
GM
53022000-03-21 Gerd Moellmann <gerd@gnu.org>
5303
5304 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
5305 (lface_fully_specified_p): Don't check contents of
5306 LFACE_FONT_INDEX because that attribute is optional.
5307 (realize_x_face): Remove now unwarranted xassert.
5308
9111d4b5
KH
53092000-03-21 Kenichi HANDA <handa@etl.go.jp>
5310
5311 The following changes are to make font selection based on
5312 characters, not charset. In addition, they recover fontset
5313 facilities while utilizing the new font selection mechanism.
5314
6c4bfdc0
KH
5315 * Makefile.in (fontset.o): Depend on dispextern.h.
5316
5317 * alloc.c (mark_face_cache): Don't mark face->registry.
5318
9111d4b5
KH
5319 * dispextern.h (struct glyph): New member glyph_not_available_p.
5320 Use 22 bits for face_id.
5321 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
5322 (struct face): Delete member registry, new member ascii_face.
5323 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
5324 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
5325 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
5326 (struct it): Delete member charset, new member
5327 glyph_not_available_p.
5328
5329 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
5330 (struct fontset_info, struct fontset_data): Structs removed.
5331 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
5332 Vglobale_fontset_alist, font_idx_temp): Externs removed.
5333 (fs_load_font, fs_query_fontset): Adjusted for new argument.
5334 (fs_free_face_fontset, fontset_font_pattern,
5335 face_suitable_for_char_p, face_for_char,
5336 make_fontset_for_ascii_face): Extern them.
5337 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
5338 (FS_LOAD_FACE_FONT): New macro.
5339
5340 * fontset.c: All codes rewritten or adjusted for the change of
5341 fontset implementation. Now fontset is represented by char table.
5342 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
5343 removed.
5344 (my_strcasecmp): Function removed.
5345 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
5346 variables.
5347 (AREF, ASIZE): New macros.
5348 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
5349 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
5350 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
5351 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
5352 fontset_id_valid_p, font_family_registry, fontset_name,
5353 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
5354 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
5355 New functions.
5356 (fs_load_font): New arg FACE. Caller changed.
5357 (fs_query_fontset): Argument changed. Caller changed.
5358 (Fquery_fontset): call fs_query_fontset.
5359 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
5360 Functions removed.
5361 (clear_fontset_elements, check_registry_encoding,
5362 check_fontset_name): New functions.
5363 (syms_of_fontset): Set char-table-extra-slots property of fontset
5364 to 3. Staticpro and initialize Vfontset_table and
5365 Vdefault_fontset. Defsubr fontset_font and fontset_list.
5366
5367 * frame.h (struct frame): Member `fontset_data' removed.
5368 (FRAME_FONTSET_DATA): Macro removed.
5369
5370 * frame.c (make_frame): Don't allocate f->fontset_data.
5371 (Fdelete_frame): Don't free f->fontset_data.
5372
6c4bfdc0
KH
5373 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
5374
9111d4b5
KH
5375 * xdisp.c (charset_at_position): Function removed.
5376 (init_iterator): Don't set member charset of struct `it'.
5377 (handle_face_prop, reseat_to_string, set_iterator_to_next,
5378 next_element_from_display_vector, insert_left_trunc_glyphs):
5379 Likewise.
5380 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
5381 FACE_FOR_CHARSET.
5382 (get_next_display_element, append_space,
5383 extend_face_to_end_of_line): Likewise.
5384
5385 * xfaces.c (Qx_charset_registry, Vface_default_registry):
5386 Variables removed.
5387 (clear_font_table, frame_update_line_height, load_face_font):
5388 Adjusted for the change of fontset implementation.
5389 (load_face_fontset_font): Function removed.
5390 (pixel_point_size): New function.
5391 (font_list): Argument type changed. Caller changed.
5392 (LFACE_FONT): New macro.
5393 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
5394 (set_lface_from_font_name): Type of arg FONTNAME is changed to
5395 Lisp_Object. Determine the font name by actually loading a font
5396 by the specified pattern. Set LFACE_FONT (lface) to the specified
5397 pattern. Even if a font is not found, don't try alternatives.
5398 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
5399 (set_font_frame_param): If `font' is specified in lface, use it.
5400 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
5401 (lface_same_font_attributes_p): Likewise.
5402 (make_realized_face): Arguent changed. Caller changed. Set
5403 face->ascii_face to face itself.
5404 (free_realized_face): Free face->fontset if face is for ASCII.
5405 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
5406 deduce_unibyte_registry, x_charset_registry): Functions removed.
5407 (free_realized_multibyte_face): New function.
5408 (lookup_face, lookup_named_face, lookup_derived_face): Argument
5409 changed. Caller changed.
5410 (try_font_list): Argument type changed.
5411 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
5412 (choose_face_font): Argument changed. Handle fontset properly.
5413 (choose_face_fontset_font): Function removed.
5414 (realize_default_face, realize_named_face): Don't remove the
5415 former face here.
5416 (realize_face): Argument changed. Caller changed. Remove face
5417 with the arg former_face_id in advance. Load font for the new
5418 face.
5419 (realize_x_face): Argument changed. Caller changed. For a
5420 multibyte character, share fontset with base_face. For a single
5421 byte character, make a new realized fontset. Don't load a font
5422 here.
5423 (realize_tty_face): Argument changed. Caller changed.
5424 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
5425 (face_at_buffer_position): Don't check multibyte_p for returning
5426 DEFAULT_FACE_ID.
5427 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
5428 FACE_SUITABLE_FOR_CHARSET_P.
5429 (syms_of_xfaces): Remove code for Qx_charset_registry and
5430 Vface_default_registry.
5431
6c4bfdc0
KH
5432 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
5433 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
5434 (x_per_char_metric): Don't try FONT->default_char. Even if
5435 pcm->width is zero, glyph bits may exist.
5436 (x_encode_char): Always initialize char2b->byte1.
5437 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
5438 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
5439 changed.
5440 (x_append_glyph): Set glyph->glyph_not_available_p.
5441 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
5442 it->charset. Handle the case that per char metric is not
5443 available. If it->multibyte_p is zero and it->c is a multibyte
5444 character, convert it to a unibyte character.
5445 (struct glyph_string): Delete member `charset'.
5446 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
5447 the case that per char metric is not available correctly.
5448 (x_fill_glyph_string): Handle the case that the specific glyph is
5449 not available correctly.
5450 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
5451 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
5452 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
5453 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
5454 fontset. Don't call FS_LOAD_FONT.
5455
5456 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
5457 (x_create_tip_frame): Likewise.
5458 (Fx_close_connection): Free full_name of font_info.
5459
5460 * fns.c (optimize_sub_char_table): New function.
5461 (Foptimize_char_table): New function.
5462 (syms_of_fns): Defsubr Soptimize_char_table.
5463
b33dd3b0
GM
54642000-03-20 Gerd Moellmann <gerd@gnu.org>
5465
5466 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
5467 only if buffer is displayed in some window.
5468
5469 * xdisp.c (handle_single_display_prop): Initialize local `value'.
5470 (try_window_reusing_current_matrix): Don't call scroll run
5471 function if run's current and desired position are the same;
5472 this prevents cursor flickering.
5473
4e8a9132
SM
54742000-03-19 Stefan Monnier <monnier@cs.yale.edu>
5475
5476 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
5477
5478 * regex.c (RE_STRING_CHAR): New macro.
5479 (GET_CHAR_AFER_2): Remove.
5480 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
5481 (enum re_opcode_t): Remove on_failure_jump_exclusive.
5482 (print_partial_compiled_pattern, re_compile_fastmap)
5483 (re_match_2_internal): Remove on_failure_jump_exclusive.
5484 (regex_compile): Turn optimizable P+ loops into PP*, so that the
5485 optimization only need to work for * (ie. can use of_keep_string_jump).
5486 Remove the special case for .*\n since it is now covered by the general
5487 optimization.
5488 (re_search_2): Don't bother with `room'.
5489 (skip_one_char): New function.
5490 (skip_noops): Simplify since `memory' is not needed any more.
5491 (mutually_exclusive_p): Restructure slightly to use `switch' and
5492 add handling for "all" remaining cases.
5493 (re_match_2_internal): Change on_failure_jump_smart to use
5494 on_failure_keep_string_jump (and redirect the end-of-loop jump)
5495 rather than on_failure_jump_exclusive.
5496
2136fdd4
GM
54972000-03-19 Gerd Moellmann <gerd@gnu.org>
5498
5499 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
5500 number of bits per RGB because it's everywhere used as the depth
5501 of the visual.
5502
5503 * term.c (calculate_costs): Remove code dealing with X frames.
5504
18e21ce8 55052000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
5506
5507 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
5508
d7b511c4
GM
55092000-03-18 Gerd Moellmann <gerd@gnu.org>
5510
5511 * lread.c (read_integer): Unread the last char not consumed.
5512
16b5d424
GM
55132000-03-17 Gerd Moellmann <gerd@gnu.org>
5514
5515 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 5516 which are in the process of being deleted.
16b5d424 5517
1fa28578
GM
55182000-03-16 Gerd Moellmann <gerd@gnu.org>
5519
83488cce
GM
5520 * Makefile.in (mostlyclean): Add `*.core'.
5521 (clean): Add `bootstrap-emacs'.
5522
1fa28578
GM
5523 * lread.c (read_integer): New function.
5524 (read1): Support read syntax #o, #x, #b, #r.
5525
99633e97
SM
55262000-03-15 Stefan Monnier <monnier@cs.yale.edu>
5527
1fa28578
GM
5528 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
5529 make sure POINTER_TO_OFFSET gives the same value before and after
5530 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
5531 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
5532 (debug): Now only active if > 0 rather than if != 0.
5533 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
5534 (print_partial_compiled_pattern): Add missing `succeed' case. Use
5535 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
5536 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
5537 (store_op1, store_op2, insert_op1, insert_op2)
5538 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
5539 (group_in_compile_stack): Move to after its arg's types are
5540 declared and add a prototype.
99633e97 5541 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
5542 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
5543 wrapper.
99633e97 5544 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
5545 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
5546 indentation of the greedy-op and shy-group code.
99633e97
SM
5547 (at_(beg|end)line_loc_p): Fix argument's types.
5548 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
5549 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
5550 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
5551 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
5552 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
5553 QUIT unconditionally.
99633e97 5554
699238d9
GM
55552000-03-15 Gerd Moellmann <gerd@gnu.org>
5556
5557 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
5558 a sole completion.
5559
5560 * process.c (send_process): Add a hint that the function
5561 can call Lisp code to its comment.
5562
5563 * lread.c (load_dangerous_libraries): New variable.
5564 (Vbytecomp_version_regexp): New variable.
5565 (safe_to_load_p): New function.
5566 (Fload): Handle files not compiled with Emacs specially.
5567 (syms_of_lread): New Lisp variable load-dangerous-libraries.
5568
34e23e5a
GM
55692000-03-14 Gerd Moellmann <gerd@gnu.org>
5570
9c763cca
GM
5571 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
5572
5573 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
5574 support functions only if HAVE_X11R6_XIM is defined.
5575 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
5576
5577 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
5578
5579 * xfns.c (X_I18N_INHIBITED): Don't define.
5580 (create_frame_xic): Remove conditional compilation on
5581 X_I18N_INHIBITED.
5582 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
5583
5584 * config.in (HAVE_X_I18N): Moved here from xterm.h.
5585 (HAVE_X11R6_XIM): Define.
5586
5587 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
5588
34e23e5a
GM
5589 * xterm.c (x_term_init): Add support for X resource `synchronous'.
5590 If set, call XSynchronize.
5591
66f0296e
SM
55922000-03-13 Stefan Monnier <monnier@cs.yale.edu>
5593
34e23e5a
GM
5594 * regex.c: Declare a new type `re_char' used throughout the code
5595 for the string char type. It's `const unsigned char' to match the
5596 rest of Emacs. Consistently make sure all pointers to strings use
5597 it and make sure all pointers into the pattern use `unsigned
5598 char'.
66f0296e 5599 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
5600 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
5601 code duplication.
66f0296e
SM
5602
5603 * charset.h (GET_CHAR_AFTER_2): Remove.
5604 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
5605
854a025c
KR
56062000-03-12 Ken Raeburn <raeburn@gnu.org>
5607
5608 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
5609 variable before the invocation of YMF_PASS_LDFLAGS, in case both
5610 of them try to use backquotes.
5611
b9d2c7e2
DL
56122000-03-12 Dave Love <fx@gnu.org>
5613
5614 * unexelf.c: Restore changes of 1999-10-19.
5615 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
5616 fix its type and alignment; copy it from current process.
5617
5e5dff44
GM
56182000-03-12 Gerd Moellmann <gerd@gnu.org>
5619
9b2f3c38
GM
5620 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
5621 has been found. Fix bug not computing timer's predecessor.
5622
427ec082 5623 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
5624 file name.
5625
e1cff360
GM
5626 * window.c (Fsave_window_excursion): Doc fix.
5627
5e5dff44
GM
5628 * xfns.c (x_defined_color): Rewritten to use
5629 x_allocate_nearest_color.
5630
e411ce4b
EZ
56312000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
5632
5633 * msdos.c (vga_installed): New function, code moved from
5634 dos_set_window_size.
5635 (Qbar, Qcursor_type, outside_cursor): New variables.
5636 (syms_of_msdos): Intern and staticpro them.
5637 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
5638 shape used outside Emacs when called for the first time.
5639 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
5640 cursor shape used outside Emacs.
5641 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
5642 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
5643 type has changed.
5644 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
5645 parameters specify the cursor. Make qreverse a global
5646 variable (renamed to Qreverse).
5647
80460654
GM
56482000-03-09 Gerd Moellmann <gerd@gnu.org>
5649
5650 * fns.c (Fy_or_n_p): Cancel busy-cursor.
5651
95cd4c40
SM
56522000-03-08 Stefan Monnier <monnier@cs.yale.edu>
5653
5654 This is a big redesign of failure-stack and register handling, prompted
5655 by bugs revealed when trying to add shy-groups. Overall, what happened
5656 is that loops are now structured a little differently, groups can be
5657 shy and the code is a little simpler.
5658
5659 * regex.h: Update the copyright.
5660 (RE_SHY_GROUPS): New value.
5661 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
5662 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
5663
80460654
GM
5664 * regex.c (enum re_opcode_t): Remove jump_past_alt,
5665 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
5666 on_failure_jump_(exclusive, loop and smart). Also fix the comment
5667 for (start|stop)_memory since they now only take one argument (the
5668 second has becomes unnecessary).
5669 (print_partial_compiled_pattern): Adjust for changes in
5670 re_opcode_t.
5671 (print_compiled_pattern): Use %ld to printf long ints and flush to
5672 make debugging a little easier.
95cd4c40
SM
5673 (union fail_stack_elt): Make the integer unsigned.
5674 (struct fail_stack_type): Add a `frame' element.
5675 (INIT_FAIL_STACK): Init `frame' as well.
5676 (POP_PATTERN_OP): New macro for re_compile_fastmap.
5677 (DEBUG_PUSH, DEBUG_POP): Remove.
5678 (NUM_REG_ITEMS): Remove.
5679 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
5680 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
5681 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 5682 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
5683 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
5684 macros.
5685 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
5686 address pushed is not the destination of the jump but the source
5687 of it instead.
95cd4c40
SM
5688 (NUM_FAILURE_ITEMS): Remove.
5689 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
5690 registers before the actual failure point). Don't hardcode any
5691 meaning for str==NULL anymore.
95cd4c40 5692 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
5693 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
5694 Remove.
95cd4c40
SM
5695 (REG_UNSET_VALUE): Use NULL (why not?).
5696 (compile_range): Remove declaration since it doesn't exist.
5697 (struct compile_stack_elt_t): Remove inner_group_offset.
5698 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
5699 (regex_grow_registers): Remove dead code.
5700 (FIXUP_ALT_JUMP): New macro.
80460654
GM
5701 (regex_compile): Add shy-groups Change loops to use
5702 on_failure_jump_smart&jump instead of
5703 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
5704 initial (dummy_failure_)jump. Remove c1_base (looks like unused
5705 variable to me). Use `jump' instead of `jump_past_alt' and don't
5706 bother with push_dummy_failure in alternatives since it is now
5707 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
5708 emacs' for (re)allocating the stack.
5709 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
5710 from loop when bufp->can_be_null rather than jumping to `done'.
5711 Avoid jumping backwards so as to ensure termination. Use
5712 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
5713 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 5714 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
5715 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
5716 improve mutually_exclusive_p to handle ".+\n".
5717 (lowest_active_reg, highest_active_reg,
5718 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
5719 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
5720 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
5721 variables. Push register (in `start_memory') on the stack rather
5722 than storing it in old_reg(start|end). Remove the cycle detection
5723 from `stop_memory', replaced by the use of on_failure_jump_loop
5724 for greedy loops. Add code for the new on_failure_jump_<foo>.
5725 Remove ad-hoc code in `on_failure_jump' to push more registers in
5726 the case of a loop. Take out code from `maybe_pop_jump' into
5727 separate functions and adapt it to the semantics of
5728 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
5729 and push_dummy_failure. Remove dummy_failure handling and
5730 handling of `failures to jump to on_failure_jump' (this last one
5731 was already dead code, it seems).
5732 (group_match_null_string_p, alt_match_null_string_p)
5733 (common_op_match_null_string_p): Remove.
95cd4c40 5734
7397acc4
DL
57352000-03-08 Dave Love <fx@gnu.org>
5736
5737 * config.in: Don't depend on __STDC__ for volatile.
5738 Add POINTER_TYPE, PTR, PROTOTYPES.
5739
5740 * hftctl.c, strftime.c: Use PROTOTYPES.
5741 * eval.c (find_handler_clause): Likewise.
5742
5743 * mem-limits.h: Use POINTER_TYPE.
5744
5745 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
5746 (memory_warnings): Declare using POINTER_TYPE.
5747
5e91ff9e
GM
57482000-03-08 Gerd Moellmann <gerd@gnu.org>
5749
feab4fba
GM
5750 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
5751
25edb08f
GM
5752 * xdisp.c (display_echo_area): Temporarily inhibit garbage
5753 collection.
5754
5e91ff9e
GM
5755 * xfns.c: Remove obsolete code in #if 0.
5756 (Fx_focus_frame): New function.
5757
a735b7e1
KH
57582000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
5759
5760 * coding.c (coding_category_name): Add coding-category-utf-8,
5761 coding-category-utf-16-be, coding-category-utf-16-le.
5762 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
5763 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
5764 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
5765 (detect_coding_utf_8): New function.
5766 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
5767 UTF_16_LOW_SURROGATE_P): New macros.
5768 (detect_coding_utf_16): New function
5769 (detect_coding_mask): When priorities are specified, skip any
5770 categories that have `nil' coding-system. Fix bug of returning
5771 wrong mask when PRIORITIES is specified and detect_coding_XXX()
5772 returns a mask not set in PRIORITIES.
5773 (detect_eol_type_in_2_octet_form): New function.
5774 (detect_eol): selects detect_eol_type_XXX to call according to
5775 cooding->category_idx.
5776 (detect_coding_system): Remove `nil' coding-system in the result.
5777 (Fupdate_coding_systems_internal): Update all coding-categories.
5778
5779 * coding.h (CODING_CATEGORY_IDX_UTF_8,
5780 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
5781 macros.
5782 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
5783 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
5784 CODING_CATEGORY_IDX_UTF_16_LE.
5785 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
5786 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
5787 (CODING_CATEGORY_MASK_ANY): Include the above macros.
5788 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
5789
9994cc69
GM
57902000-03-07 Gerd Moellmann <gerd@gnu.org>
5791
e9b4e5ff
GM
5792 * doc.c (Fdocumentation_property): If value is not a string,
5793 and doesn't refer to etc/DOC, evaluate it to obtain a string.
5794
f7daf1e1
GM
5795 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
5796 close the display with XtCloseDisplay. This caused a bus error
5797 on OpenWindows.
5798
9994cc69
GM
5799 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
5800 complete but not unique.
5801
4336c705
GM
58022000-03-06 Gerd Moellmann <gerd@gnu.org>
5803
18bb0684
GM
5804 * process.c (send_process): Remove local variable `procname' that
5805 might become invalid when a GC happens. Instead, access the
5806 process name slot directly.
5807
4336c705
GM
5808 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
5809 orig_height if set.
5810
5811 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
5812 orig_height if set.
5813
515d0d0e
EZ
58142000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
5815
5816 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
5817 glyph matrices have been freed.
5818
100b3cbb
GM
58192000-03-05 Gerd Moellmann <gerd@gnu.org>
5820
50df5e5a 5821 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 5822 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
5823
5824 * xfns.c (QCdata): Moved to xdisp.c.
5825
5826 * xdisp.c (QCdata): Moved here from xfns.c.
5827 (syms_of_xdisp): Initialize QCdata.
5828
5829 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
5830
5831 * window.c (coordinates_in_window): Use
5832 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
5833 FRAME_INTERNAL_BORDER_WIDTH.
5834
100b3cbb 5835 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 5836 it is obviously invalid.
100b3cbb
GM
5837
5838 * xterm.c (x_term_init): Create a colormap if not using the
5839 default visual.
5840
5841 * xterm.h (select_visual): Change prototype.
5842
5843 * xfns.c (select_visual): Rewritten. Recognize user-specified
5844 visual classes.
5845 (visual_classes): New variable.
5846
64d739c4
GM
58472000-03-04 Gerd Moellmann <gerd@gnu.org>
5848
5849 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
5850 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
5851 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
5852 (x_decode_color): Don't handle allocation of white and black
5853 specially.
5854 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
5855 XtNcolormap resources.
5856 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
5857 (Fx_create_frame): Initialize color members of x_output structure.
5858 (xpm_load): Pass colormap to XPM lib.
5859
5860 * xfaces.c (x_free_colors): Access colormap of frame using
5861 FRAME_X_COLORMAP. Be paranoid about freeing black and white
5862 when default colormap is used.
5863
5864 * xterm.c (x_term_init): Set Colormap member of x_display_info
5865 structure. Copy colormap if resource `privateColormap' is
5866 specified (PseudoColor only).
5867 (x_setup_relief_color): Access colormap of frame using
5868 FRAME_X_COLORMAP.
5869
5870 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
5871 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
5872
c3cee013
JR
58732000-03-04 Jason Rumney <jasonr@gnu.org>
5874
5875 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
5876 other non-platform-specific equivalents.
64d739c4 5877 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
5878 specific functions and macros as their w32 equivalents where
5879 non-platform-specifics are not available.
5880 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
5881 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
5882 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
5883 (frame_update_line_height): Use macros to access f->output_data.
5884 (defined_color): Remove FIXME comments; fixed.
5885 (x_face_list_fonts, prepare_face_for_display): Put X specifics
5886 into #ifdef blocks. Add WINDOWSNT blocks.
5887 (Fx_list_fonts): Use macros for accessing font data.
5888 (set_lface_from_font_name): Different default fonts for X and
5889 WINDOWSNT.
5890 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
5891 scalable for backward compatibility.
64d739c4 5892 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
5893 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
5894
64d739c4 5895 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
5896 syms_of_w32faces.
5897
5898 * makefile.nt (w32faces.obj): Remove.
5899 (xfaces.obj): Add.
5900
807cc41c
JR
59012000-03-03 Jason Rumney <jasonr@gnu.org>
5902
5903 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
5904 correct parameters.
5905
0007072a
KR
59062000-03-03 Ken Raeburn <raeburn@gnu.org>
5907
5908 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
5909 standard ELF definitions here if the system header does not.
5910
71a6ba55
GM
59112000-03-03 Gerd Moellmann <gerd@gnu.org>
5912
5913 * xterm.c (PER_CHAR_METRIC): Removed.
5914 (x_per_char_metric_1, x_default_char): New functions.
5915 (x_per_char_metric): If font's default char is invalid, return
5916 metrics of a suitably chosen usable default char.
5917 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
5918 char, replace occurrences of unprintable chars with a suitably
5919 chosen usable default char.
71a6ba55 5920
900fa1f1
GM
59212000-03-02 Gerd Moellmann <gerd@gnu.org>
5922
42f55fe0
GM
5923 * xterm.c (note_mouse_highlight): Return quickly if frame's
5924 glyph matrices have been freed.
5925
5926 * dispnew.c (free_glyphs): Block input while freeing matrices.
5927
900fa1f1
GM
5928 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
5929
5930 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
5931 x_free_colors.
5932
5933 * dispextern.h (x_free_colors): Add prototype.
5934
5935 * xfaces.c (x_free_colors): New function.
5936 (unload_color, free_face_colors): Use it.
5937
2f950292
EZ
59382000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
5939
5940 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
5941
5942 * window.c [MSDOS]: Include msdos.h.
5943
54d04320
DL
59442000-03-02 Dave Love <fx@gnu.org>
5945
5946 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
5947
5948 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
5949 set C_OPTIMIZE_SWITCH for gcc.
5950
0ba93ac4
KH
59512000-03-02 Kenichi Handa <handa@etl.go.jp>
5952
5953 * coding.c (coding_save_composition): Be sure to allocate
5954 composition data area in coding even if there's no composition in
5955 the current run.
5956
a2bc11d4
JR
59572000-03-01 Jason Rumney <jasonr@gnu.org>
5958
5959 * w32term.c: Equivalent changes to those made to xterm.c on
5960 2000-02-25 and 2000-02-24.
5961
5962 * w32fns.c: Equivalent changes to those made to xfns.c on
5963 2000-02-25 and 2000-02-21.
5964
5965 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
5966 correct line-end convention is followed.
5967
5968 * w32menu.c [HAVE_BOXES]: Remove #undef.
5969 (single_keymap_panes): Remove code for simulating checkmarks.
5970 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
5971 Remove code for drawing simulated checkmarks.
5972 (w32_menu_show): make unibyte help string correctly.
5973 (add_menu_item): draw standard Windows checkmarks. Draw radio
5974 buttons as radio buttons if possible.
5975
72d19d75
GM
59762000-03-01 Gerd Moellmann <gerd@gnu.org>
5977
2df636f4
GM
5978 * sysdep.c (start_of_text): Don't define this function for NetBSD
5979 with ELF.
5980
427ec082 5981 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
5982 Don't define.
5983 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
5984 (LINKER): Don't undef if __NetBSD__ is defined.
5985
5986 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
5987
5988 * fileio.c [__NetBSD__]: Define `unix'.
5989
72d19d75
GM
5990 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
5991
ed4d0512
GM
59922000-02-29 Gerd Moellmann <gerd@gnu.org>
5993
50b1039f
GM
5994 * atimer.c (start_atimer): Don't abort when timers are stopped.
5995 (append_atimer_lists): New function.
5996 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
5997 arbitrary lists of stopped and running atimers.
5998
ed4d0512
GM
5999 * atimer.c (cancel_atimer): Handle canceling an atimer when
6000 some timers are stopped.
6001
6002 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
6003 after canceling it.
6004
6005 * fns.c (maybe_resize_hash_table): Handle case of new size
6006 coming out as being the same as old size.
6007
387023ee
JR
60082000-02-27 Jason Rumney <jasonr@gnu.org>
6009
6010 * makefile.nt: Add atimer.h to dependencies.
6011 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
6012 * w32console.c: Only disable window system features for dispextern.h
6013 (initialize_w32_display): Build a display info for the console.
6014 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
6015 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
6016 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
6017 as 2 button mice.
6018 * w32gui.h (struct W32FontStruct): Revert last change after change
6019 to xdisp.c.
6020 * w32menu.c (single_submenu): Set up help string.
6021 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
6022 (w32_dialog_show): Set up help string.
6023 * w32term.c (w32_display_info_for_display): Remove unused function.
6024 (w32_draw_bitmap): Use pre-built bitmaps.
6025 (w32_initialize_display_info): New function to initialize parts of
6026 display info that are common to both GUI and console frames.
6027 (w32_term_init): Use w32_initialize_display_info. Do not set
6028 Vw32_num_mouse_buttons here, as it is not called for console
6029 frames. Build bitmaps for indicating truncated lines etc.
6030 (x_delete_display): Destroy pre-built bitmaps.
6031 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
6032 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
6033
4516715a
DL
60342000-02-27 Dave Love <fx@gnu.org>
6035
6036 * lisp.h: Add a bunch of prototypes.
6037
171ca836
KH
60382000-02-26 Kenichi Handa <handa@etl.go.jp>
6039
6040 * keyboard.c (read_char): Set `usec' correctly.
6041
4013921d
KH
60422000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
6043
6044 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
6045 `lambda', set reg[RRR] to the map index.
6046 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
6047 reg[RRR] to 0. Otherwise, set it to -1.
6048
9244a058
GM
60492000-02-25 Gerd Moellmann <gerd@gnu.org>
6050
2df636f4 6051 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 6052
18e21ce8 60532000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 6054
f43d79c1
GM
6055 * fileio.c (Ffile_symlink_p): If result starts with a `/'
6056 and contains a `:', prepend `/:'.
6057
6058 * window.c (select_window_1): If selected_window is nil,
6059 don't "swap out" the buffer's point.
6060 (Fset_window_configuration): Set selected_window to nil
6061 before calling Fselect_window.
6062 (unshow_buffer): Don't set point in buffer from window's point
6063 if another more recently selected window also shows the buffer.
6064
bed0c171
GM
60652000-02-25 Gerd Moellmann <gerd@gnu.org>
6066
449c3c52
GM
6067 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
6068
f5b58615
GM
6069 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
6070 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
6071 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
6072 variables.
6073 (DEFAULT_BUSY_CURSOR_DELAY): New define.
6074 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
6075 (hide_busy_cursor): New functions.
6076 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
6077
6078 * minibuf.c (read_minibuf): Cancel busy-cursor.
6079
6080 * keyboard.c (command_loop_1): Call start_busy_cursor before
6081 Fcommand_execute and cancel_busy_cursor after it.
6082 (timer_check): Remove busy-cursor code.
6083 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
6084 cursor timer.
6085
6086 * process.c (wait_reading_process_input): Remove busy-cursor code.
6087
6088 * eval.c (Fsignal): Call cancel_busy_cursor instead of
6089 Fx_hide_busy_cursor.
6090
6091 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
6092 Remove prototyoes.
6093 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
6094
6095 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
6096
6097 * xterm.c (XTread_socket): Remove busy-cursor code.
6098
4eb8436f
GM
6099 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
6100 (build_frame_matrix_from_leaf_window): Put code handling
6101 glyph row's not being a slice of a frame row in #if 0.
6102 (sync_window_with_frame_matrix_rows): New function.
6103 (frame_row_to_window): New function.
6104 (mirror_line_dance): Handle copies between windows.
6105
3cb65b0e
GM
6106 * lread.c (Fload): Use `xfree' instead of `free'.
6107 (init_obarray): Use `xmalloc' instead of `malloc'.
6108
bed0c171
GM
6109 * window.c (Fset_window_buffer): Set WINDOW to the window
6110 after decoding.
2add4349
GM
6111 (coordinates_in_window): Take frame's internal border width
6112 into account.
bed0c171 6113
42088c12
GM
61142000-02-24 Gerd Moellmann <gerd@gnu.org>
6115
6116 * xterm.c (x_display_and_set_cursor): Display cursor of
6117 non-selected windows depending on the setting of
6118 cursor_in_non_selected_windows.
6119
6120 * xdisp.c (cursor_in_non_selected_windows): New variable.
6121 (syms_of_xdisp): DEFVAR_BOOL it.
6122
d1e103b2
GM
61232000-02-23 Gerd Moellmann <gerd@gnu.org>
6124
723e779c
GM
6125 * data.c (Fstring_to_number): If number is greater than what
6126 fits into an integer, return a float.
6127
d1e103b2
GM
6128 * eval.c (specbind): Remove references to
6129 keyword_symbols_constant_flag.
6130
6131 * data.c (keyword_symbols_constant_flag): Removed.
6132 (Fmakunbound, set_internal, syms_of_data): Remove references to
6133 keyword_symbols_constant_flag.
6134
6135 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
6136
214f877f
KH
61372000-02-23 Kenichi Handa <handa@etl.go.jp>
6138
6139 * syntax.c (multibyte_syntax_as_symbol): New variable.
6140 (syms_of_syntax): Declare it as a Lisp variable.
6141 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
6142 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
6143 nonzero, treat all multibyte characters as symbol.
42088c12 6144 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
6145 characters.
6146
130adcb7
EZ
61472000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
6148
3cb65b0e 6149 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 6150 a deleted frame.
130adcb7 6151
17cbbf95
GM
61522000-02-21 Gerd Moellmann <gerd@gnu.org>
6153
6154 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
6155
6156 * xfns.c (x_window_to_frame, x_any_window_to_frame)
6157 (x_non_menubar_window_to_frame): Check the busy-cursor window.
6158
beb0bc36
DL
61592000-02-21 Dave Love <fx@gnu.org>
6160
6161 * frame.c (Vmouse_position_function): New variable.
6162 (Fmouse_position): Use it.
6163 (syms_of_frame): Install it.
6164
6165 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
6166
1d92afcd
GM
61672000-02-20 Gerd Moellmann <gerd@gnu.org>
6168
6169 * fileio.c (Finsert_file_contents): Unbind the binding of
6170 standard-output done by temp_output_buffer_setup.
329eed9f
GM
6171
6172 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
6173 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
6174 (specbind, unbind_to): Handle most common case of non-constant
6175 symbol with trivial value specially.
6176
6177 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
6178
18e21ce8 61792000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
6180
6181 * data.c (Fmake_variable_buffer_local): Doc fix.
6182 Init found_for_buffer to 0.
6183 (Fmake_variable_frame_local): If the variable has already
6184 been buffer-local, set the check_frame field.
6185
1d4311c3
EZ
61862000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
6187
6188 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
6189 produced for CODING_MODE_LAST_BLOCK requires.
6190
2dc95ddd
DL
61912000-02-18 Dave Love <fx@gnu.org>
6192
6193 * keyboard.c (echo_keystrokes): Remove declaration.
6194 (Vecho_keystrokes) New variable.
6195 (read_char, record_menu_key, read_key_sequence): Use it to allow
6196 use of float value.
6197 (syms_of_keyboard): Change Vecho_keystrokes declaration.
6198
6199 * lread.c: Undef feature selection macros before defining.
6200
f0930f35
GM
62012000-02-18 Gerd Moellmann <gerd@gnu.org>
6202
6203 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
6204 for symbols other than the symbol in question.
6205
e3d4de90
DL
62062000-02-17 Dave Love <fx@gnu.org>
6207
6208 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
6209
0b378936
GM
62102000-02-17 Gerd Moellmann <gerd@gnu.org>
6211
d621caf7
GM
6212 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
6213
0b378936
GM
6214 * alloc.c (enum mem_type): Compile unconditionally.
6215
3b451f74
EZ
62162000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
6217
6218 * xfaces.c (tty_defined_color): Don't return faulire indication
6219 for unspecified-fg and unspecified-bg pseudo-colors.
6220
10689a01
GM
62212000-02-17 Gerd Moellmann <gerd@gnu.org>
6222
1216f5e4
GM
6223 * alloc.c (mark_object): Don't mark symbol names in pure space.
6224 (gc_sweep): Don't unmark symbol names in pure space.
6225
6226 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
6227 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
6228 [GC_MARK_STACK]: New defines.
427ec082 6229 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
6230 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
6231
6232 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
6233
6234 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
6235 allocate_buffer instead of xmalloc.
6236
6237 * alloc.c (toplevel): Include setjmp.h.
6238 (PURE_POINTER_P): New define.
6239 (enum mem_type) [GC_MARK_STACK]: New enumeration.
6240 (Vdead) [GC_MARK_STACK]: New variable.
6241 (lisp_malloc): Add parameter TYPE, call mem_insert if
6242 GC_MARK_STACK is defined.
6243 (allocate_buffer): New function.
427ec082 6244 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
6245 (free_float) [GC_MARK_STACK]: Set type to Vdead.
6246 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
6247 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
6248 (MEM_NIL) [GC_MARK_STACK]: New define.
6249 (struct mem_node) [GC_MARK_STACK]: New structure.
6250 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
6251 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
6252 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
6253 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
6254 (mark_stack) [GC_MARK_STACK]: New functions.
6255 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
6256 (clear_marks): Removed.
6257 (gc_sweep): Set free conses' car, free floats' type, free
6258 symbols' function to Vdead. Use lisp_free to free buffers.
6259 (init_alloc_once): Initialize Vdead.
6260 (survives_gc_p): Return non-zero for pure objects.
6261
6262 * alloc.c: Add comments throughout the file.
6263
2503c8b1
GM
6264 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
6265 that unblocks alarms.
6266
8389e1e2
GM
6267 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
6268 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
6269 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
6270
10689a01 6271 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 6272
bfc17d18
KH
62732000-02-17 Kenichi Handa <handa@etl.go.jp>
6274
4a09dee0
KH
6275 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
6276 avoid infinite error signaling. Allocate sufficient memory for
6277 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 6278
2b927d02
SM
62792000-02-17 Stefan Monnier <monnier@cs.yale.edu>
6280
6281 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
6282 depends on the previous behavior.
6283
b49cb764
GM
62842000-02-16 Gerd Moellmann <gerd@gnu.org>
6285
6286 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
6287
99e95407
GM
62882000-02-15 Gerd Moellmann <gerd@gnu.org>
6289
6290 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
6291
6292 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 6293 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
6294 write(2).
6295
6ffd3cf7
RS
62962000-02-15 Richard M. Stallman <rms@gnu.org>
6297
6298 * data.c (set_internal): Don't make variable buffer-local
6299 if within a let-binding for the same buffer.
6300 (let_shadows_buffer_binding_p): New function.
6301
6302 * eval.c (specbind): For buffer-local value,
6303 record the current buffer also.
6304 (unbind_to): Cope with that change.
6305
cad53475
GM
63062000-02-15 Gerd Moellmann <gerd@gnu.org>
6307
6308 * window.c (Fsave_window_excursion): Doc fix.
6309
1aa963c8
SM
63102000-02-15 Stefan Monnier <monnier@cs.yale.edu>
6311
6312 * syntax.c (back_comment): Make sure we only consider comment-starters
6313 of the relevant style and return -1 in case of a failure to find the
6314 beginning of the comment.
6315 (Fforward_comment): If back_comment fails, go back to the position just
6316 after the comment-end.
6317 (scan_lists): Add comment describing a very minor bug.
6318
b9b84fd3
SM
63192000-02-14 Stefan Monnier <monnier@cs.yale.edu>
6320
6321 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
6322 `completion-regexp-list' in the docstring.
6323
3a28db80
DL
63242000-02-14 Dave Love <fx@gnu.org>
6325
6326 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
6327
fb4a568d
SM
63282000-02-14 Stefan Monnier <monnier@cs.yale.edu>
6329
6330 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
6331 to Emacs' syntax. Also fix the comment about set/not-set meanings
6332 since Emacs syntax is not the value 0 any more.
6333 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
6334 since it's now part of RE_SYNTAX_EMACS.
6335
1063ebb5
DL
63362000-02-12 Dave Love <fx@gnu.org>
6337
6338 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
6339 Alpha.
6340
fb07a302
GM
63412000-02-12 Gerd Moellmann <gerd@gnu.org>
6342
6343 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
6344
aaf2320c
DL
63452000-02-12 Dave Love <fx@gnu.org>
6346
6347 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
6348
6349 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
6350 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
6351 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
6352
6353 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
6354
6355 * s/nextstep.h: Don't define HAVE_ALLOCA.
6356
6357 * config.in: Add vfork bits.
6358
eedf8bde
GM
63592000-02-12 Gerd Moellmann <gerd@gnu.org>
6360
6361 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
6362 unwind function to undo the effect of stopping atimers.
6363
6364 * keyboard.c (bind_polling_period): Stop all timers except
6365 poll_timer.
6366
6367 * atimer.c (stopped_atimers): New variable.
6368 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
6369 New functions.
6370
6371 * atimer.h (stop_other_atimers, run_all_atimers)
6372 (unwind_stop_other_atimers): Add function prototypes.
427ec082 6373
eedf8bde
GM
6374 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
6375
8476c2f8
KR
63762000-02-11 Ken Raeburn <raeburn@gnu.org>
6377
6378 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
6379 library may depend on jpeg.
6380 (atimer.o): Depends on atimer.c.
6381
0e85e4a3
KH
63822000-02-11 Kenichi Handa <handa@etl.go.jp>
6383
6384 * insdel.c (del_range_1): Call update_compositions.
6385 (del_range_both): Call update_compositions just once..
6386
97fa0cc8
DL
63872000-02-10 Dave Love <fx@gnu.org>
6388
6389 * xfns.c (create_frame_xic): Fix initialization of automatic
6390 aggregates for pcc.
6391
25566a3c
KH
63922000-02-09 Kenichi Handa <handa@etl.go.jp>
6393
6394 * ccl.c (CCL_MAKE_CHAR): New macro.
6395 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
6396 registers by CCL_MAKE_CHAR before calling translate_char.
6397 <CCL_TranslateCharacterConstTbl> Likewise.
6398
69da54ba
DL
63992000-02-08 Dave Love <fx@gnu.org>
6400
6401 * lread.c (__EXTENSIONS__): Define.
6402
f7136ee8
GM
64032000-02-08 Gerd Moellmann <gerd@gnu.org>
6404
6405 * puresize.h (BASE_PURESIZE): Increase to 650000.
6406
7768790b
EZ
64072000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
6408
6409 * msdos.c (XMenuActivate): Turn off the cursor after displaying
6410 the help message.
6411
38fd211b
EZ
64122000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
6413
6414 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
6415 md, mh, mb, mr, and me to the fake termcap entry.
6416
66e4690f
KR
64172000-02-06 Ken Raeburn <raeburn@gnu.org>
6418
6419 * sound.c (sound_cleanup): Don't call device close routine if the
6420 function pointer is null.
6421
a75dfea0
AI
64222000-02-06 Andrew Innes <andrewi@gnu.org>
6423
6424 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
6425 around image definitions and prototypes.
6426 (gamma_correct) [WINDOWSNT]: New prototype.
6427
6428 * w32term.c (x_make_frame_visible): Replace call to
6429 input_poll_signal with poll_for_input.
6430
6431 * window.c [WINDOWSNT]: Include w32term.h.
6432
6433 * xdisp.c [WINDOWSNT]: Include w32term.h.
6434
6435 * makefile.nt: Add dependencies on w32gui.h.
6436 (OBJ1): Include atimer.obj.
6437 ($(BLD)\atimer.obj): New dependency rule.
6438
6439 * w32.c (sigmask): New function (does nothing).
6440 (sigunblock): Ditto.
6441
6442 * frame.c [WINDOWSNT]: Include w32term.h.
6443
6444 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
6445
6446 * lread.c (syms_of_lread): Fix literal newlines.
6447
6448 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
6449 the string constant limit (2048 bytes) in MSVC.
6450 (main): Ditto.
6451
59ddecde
GM
64522000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
6453
6454 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
6455 area.
6456 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
6457 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
6458 dispatch the event.
6459
07590973
DL
64602000-02-04 Dave Love <fx@gnu.org>
6461
6462 * fileio.c: Remove some unused vars.
6463 (_GNU_SOURCE): Define (for euidaccess).
6464
6465 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
6466
6467 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
6468 gcpro1, gcpro2.
6469 (read_minibuf): Deal with allow_props correctly.
6470
649351f9
EZ
64712000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
6472
6473 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
6474
66e4690f 64752000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
6476
6477 * search.c (compile_pattern): If a cache entry has a nil regexp,
6478 fill in that entry instead of clobbering a previously cached
6479 string regexp.
6480
66e4690f 64812000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
6482
6483 * puresize.h (BASE_PURESIZE): Increase to 610000.
6484
d240a249
GM
64852000-02-02 Gerd Moellmann <gerd@gnu.org>
6486
6487 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
6488 can GC.
6489
ca91fb26
KH
64902000-02-02 Kenichi Handa <handa@etl.go.jp>
6491
25660570
KH
6492 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
6493 instead of incrementing ic directly.
6494 <CCL_WriteExprConst> Likewise.
6495 <ccl_set_expr>: Set ic to jump_address.
6496
ca91fb26
KH
6497 * fileio.c (e_write): Fix the handling of
6498 CODING_FINISH_INSUFFICIENT_SRC.
6499
2ede9689
DL
65002000-02-01 Dave Love <fx@gnu.org>
6501
6502 * editfns.c (Fpropertize): Doc fix.
6503
6504 * process.c (Fstart_process): Doc fix.
6505
6506 * eval.c: Fix various doc strings not to duplicate information
6507 from help-manyarg-func-alist.
6508
6509 * window.c (Fset_window_margins): Don't make interactive. Doc
6510 fix.
6511
6512 * doc.c (Vhelp_manyarg_func_alist): New variable.
6513 (Fdocumentation): Use it.
6514 (syms_of_doc): Define it.
6515
b6680a0e
GM
65162000-01-31 Gerd Moellmann <gerd@gnu.org>
6517
2cb750ba
GM
6518 * xterm.c (xim_open_dpy): Remove unused local variable.
6519
74e9213b
GM
6520 * emacs.c (USAGE): Use term `display options' instead of `X
6521 options'.
6522
6523 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
6524 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
6525
b6680a0e
GM
6526 * fns.c (sweep_weak_table): New function.
6527 (sweep_weak_hash_tables): Use it. Keep on marking until there
6528 is no more change.
6529
994c5afe
GM
65302000-01-30 Gerd Moellmann <gerd@gnu.org>
6531
6532 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
6533 that XTread_socket does not crash by trying to call XNoOp on a
6534 closed display.
427ec082 6535
f00276e3
JR
65362000-01-30 Jason Rumney <jasonr@gnu.org>
6537
6538 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
6539 Change selected_frame to SELECTED_FRAME ().
6540 (w32_console_mouse_position): Remove #ifndef MULE from around
6541 `insist' parameter.
6542
6543 * makefile.nt: Remove dosfns.obj.
6544
6545 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
6546
6547 * w32fns.c (w32_defined_color): Check for valid frame before
6548 applying gamma correction. Eliminate dependency on frame elsewhere.
6549 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
6550 (w32_to_x_font): Use resx and resy not height_in and width_in.
6551 (x_to_w32_font): Doc fix.
6552 (xlfd_strip_height): New function to strip and return font height.
6553 (w32_font_match): Compare height separately from rest of xlfd
6554 spec, using xlfd_strip_height.
6555
6556 * w32term.c (w32_term_init): Swap resx and height_in, resy and
6557 width_in. Use w32_defined_color in place of defined_color.
6558
6559 * w32faces.c: Merge more of DOS and X specifics in preparation for
6560 merge with xfaces.c.
6561 (defined_color): Remove FIXME comment.
6562 (tty_color_name): Provide w32-specific function.
6563 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
6564
6565 * w32console.c (turn_on_face, turn_off_face): Removed.
6566 (w32_face_attributes): New function.
6567 (Global_variables): Reduce scope where possible.
6568 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
6569 fill attribute.
6570 (hl_mode): Don't modify text attributes.
6571 (write_glyphs): Don't do anything if len <= 0. Use
6572 w32_face_attributes to get attributes for drawing. Write
6573 terminating codes using char_attr_normal.
6574 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
6575 (update_begin, update_end): Likewise.
6576 (vga_stdcolor_name): New function.
6577 (initialize_w32_display): Remove char_attr_reverse and char_attr.
6578 (Fset_screen_color): Remove char_attr_reverse.
6579
b08e8bb2
GM
65802000-01-29 Gerd Moellmann <gerd@gnu.org>
6581
6582 * xfns.c (xic_set_preeditarea): Take window parameter and
6583 window-relative pixel-positions.
6584
6585 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
6586 is its frame's selected window.
6587 (xim_instantiate_callback): Likewise.
6588
6589 * xfns.c (x_create_im): Removed.
6590 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
6591 (supported_xim_styles): Renamed from supported_styles.
6592 (best_xim_style): Renamed from best_style.
6593 (create_frame_xic): Renamed from xic_create_frame.
6594 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 6595
b08e8bb2
GM
65962000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
6597
6598 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
6599 our frames, call XFilterEvent with 2nd parameter `None'.
6600 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
6601 returning XBufferOverflow.
6602 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
6603 area.
6604 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
6605 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
6606 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
6607 (xim_initialize, xim_close)
6608 [HAVE_X_I18N && HAVE_X11R6]: New functions.
6609 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
6610 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
6611 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
6612
6613 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
6614 and `xim_styles'.
6615 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
6616 `xic_style' and `xic_xfs'.
6617 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
6618 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
6619 (FRAME_XIM): Removed.
6620
6621 * xfns.c (supported_styles): New variable.
6622 (DEFAULT_STYLE, DEFAULT_FONT): New macros
6623 (xic_create_xfontset, best_style, xic_create_frame)
6624 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
6625 (xic_set_xfontset): New functions.
6626
142e109c
DL
66272000-01-28 Dave Love <fx@gnu.org>
6628
6629 * s/irix6-5.h: Revert last change after change to irix5-0.h.
6630
6631 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
6632
b02786f9
GM
66332000-01-28 Gerd Moellmann <gerd@gnu.org>
6634
d060bc9f
GM
6635 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
6636 for *scratch* if it already existed.
6637
b02786f9
GM
6638 * emacs.c (USAGE): New macro.
6639 (main): Use it to display usage information.
6640
2c52d7e4
EZ
66412000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
6642
6643 Support for the menu-help feature:
6644
6645 * msdos.h: Change prototypes of XMenuAddSelection and
6646 XMenuActivate.
6647
6648 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
6649 part of the line to the termscript file.
6650 (IT_clear_to_end): Clear the entire line, not just its beginning.
6651 (menu_help_message, prev_menu_help_message): New variables.
6652 (IT_menu_make_room): Make room for the help_text member.
6653 (IT_menu_display): New argument disp_help; all callers changed.
6654 If disp_help is non-zero, store the help text of the active menu
6655 item in menu_help_message.
6656 (XMenuAddPane): Initialize the help_text member to NULL.
6657 (XMenuAddSelection): New argument help_text. Store it in the
6658 XMenu structure.
6659 (XMenuActivate): New argument help_callback. If the value of
6660 menu_help_message has changed since the last time, display the
6661 menu help message text while waiting for the mouse to move. Clear
6662 the echo area before exiting.
6663 (XMenuDestroy): Free the help_text member.
6664
ffe0bcd1
GM
66652000-01-27 Gerd Moellmann <gerd@gnu.org>
6666
6667 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
6668 XMenuAddSelection. Pass help callback to XMenuActivate.
6669 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
6670
50dbd23f
EZ
66712000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
6672
6673 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
6674 and EMACS_SET_USECS.
6675
f5941bf8
GM
66762000-01-26 Dave Love <fx@gnu.org>
6677
6c67ddee
DL
6678 * editfns.c (Fchar_after, Fchar_before): Doc fix.
6679
f5941bf8
GM
6680 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
6681 an error may be signalled.
6682
9e49c990
GM
66832000-01-26 Gerd Moellmann <gerd@gnu.org>
6684
fc3cb460
GM
6685 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
6686 LD_SWITCH_SYSTEM inherited from irix5-0.h.
6687
9e49c990
GM
6688 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
6689
d0c037d8
GM
66902000-01-25 Gerd Moellmann <gerd@gnu.org>
6691
6692 * charset.c (Fstring): If there is a multibyte char among
6693 the args, always return a multibyte string.
6694
e12489f9
GM
66952000-01-25 Gerd Moellmann <gerd@gnu.org>
6696
6697 * sysdep.c (sys_select): Turn atimers off and on instead of
6698 recording and restoring old alarm handler
6699
6700 * process.c (toplevel): Include atimer.h.
6701 (create_process_1): Rewritten.
6702 (create_process): Use atimers instead of alarm.
6703 (wait_reading_process_input) [hpux]: Turn atimers off instead
6704 of turning off SIGALRM.
6705 (wait_reading_process_input): Turn off atimers instead off
6706 calling stop_polling.
6707
6708 * emacs.c (main): Call init_atimer.
6709
6710 * keyboard.c (toplevel): Include systime.h and atimer.h.
6711 (polling_for_input): Removed because unused.
6712 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
6713 (poll_timer): New variable.
6714 (poll_for_input, poll_for_input_1): New functions.
6715 (start_polling, stop_polling): Rewritten.
6716
6717 * keyboard.h (polling_for_input): Removed.
427ec082 6718
e12489f9
GM
6719 * atimer.h, atimer.c: New files.
6720
6721 * Makefile.in (obj): Add atimer.o.
6722 (atimer.o): New target.
6723
6724 * blockinput.h (pending_atimers): Add extern declaration.
6725 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
6726
6727 * lisp.h (popup_activated_flag): Add extern declaration.
6728
6729 * xmenu.c (popup_activated_flag): Make externally visible.
6730 (popup_activate_callback) [USE_MOTIF]: Increment
6731 popup_activated_flag.
6732 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
6733
6734 * xterm.c (toplevel): Include atimer.h.
6735 (toolkit_scroll_bar_interaction): New variable.
6736 (Fxt_process_timeouts): Removed.
6737 (x_process_timeouts): New function.
6738 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
6739 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
6740 (x_make_frame_visible): Call poll_for_input_1 instead of
6741 input_poll_signal. Don't call alarm.
6742 (x_initialize): Install timer calling x_process_timeouts.
427ec082 6743
1e5279b9
DL
67442000-01-24 Dave Love <fx@gnu.org>
6745
6c67ddee 6746 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
6747 Don't use -cckr -- apparently not now necessary.
6748
edf6aeb8
EZ
67492000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
6750
6751 * msdos.c (IT_menu_display): Truncate long menu lines at the right
6752 screen boundary.
6753
9badad41
JR
67542000-01-23 Jason Rumney <jasonr@gnu.org>
6755
6756 * w32fns.c (w32_defined_color): Apply gamma correction before
6757 trying to map to the palette.
6758 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
6759 to w32_clear_rect.
6760
6761 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
6762 here. Callers changed to always pass real device context.
6763 (w32_draw_bitmap): Likewise.
6764 (w32_get_glyph_overhangs): Likewise.
6765 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
6766 one.
6767 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
6768 pfnSetScrollInfo and SetScrollRange.
6769 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
6770 back into MULE characters after decoding them.
6771 (x_get_glyph_face_and_encoding): Likewise.
6772 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
6773 GetCharABCWidthsW fails, since this is defined on Windows 9x.
6774 (x_produce_glyphs): Calculate per char metrics for a character
6775 that we know exists in default font when font_not_found_p is true.
6776
63bd786b
JR
67772000-01-22 Jason Rumney <jasonr@gnu.org>
6778
6779 * makefile.nt (intervals.obj, composite.obj): New modules.
6780 (composite.h): Added as dependency where appropriate.
6781
6782 * w32gui.h (XGCValue): New struct for emulating X GCs.
6783
6784 * w32term.h (XCharStruct): New struct for emulating X.
6785
6786 * w32console.c (turn_on_face, turn_off_face): New functions.
6787 (change_line_highlight): New prototype for new redisplay.
6788 (write_glyphs): Support multibyte text. Support faces.
6789
6790 * w32faces.c: Complete rewrite for new redisplay based on new
6791 xfaces.c.
6792
6793 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
6794 throughout. struct frame * in place of FRAME_PTR.
6795 Skeleton support for images, toolbars, tooltips from xfns.c.
6796 (Fx_create_frame): Use system default for default scroll bar
6797 width.
6798 (w32_get_arg): Renamed from x_get_arg.
6799 (Fx_file_dialog): New function.
6800 (w32_list_fonts): Check cache before asking system.
6801 (Vw32_enable_synthesized_fonts): New variable.
6802 (Vw32_enable_italics): Obsolete, removed.
6803
6804 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
6805 Use SELECTED_FRAME macro.
6806
6807 * w32menu.c: Add skeleton support for help strings on menus.
6808 (add_menu_item): Native checkbox and radio support added, but not
6809 yet enabled due to bugs.
6810 (push_menu_item): Add parameters type, selection and help.
6811 Callers updated.
6812 Formatting changes to reduce unnecessary diffs with xmenu.c.
6813
6814 * w32select.c (Fw32_set_clipboard_data): Update call to
6815 find_charset_in_str.
6816
6817 * w32term.c: Complete rewrite for new redisplay based on new
6818 xterm.c with necessary sections merged back in from old w32term.c.
6819
6ffd3cf7 68202000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
6821
6822 * data.c (set_internal): Further fix in same criterion.
6823
6ffd3cf7 68242000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
6825
6826 * data.c (set_internal): Fix the criteria for whether
6827 to swap out the old cached binding.
6828
60af03f1
DL
68292000-01-19 Dave Love <fx@gnu.org>
6830
6831 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
6832
f9be074f
KH
68332000-01-18 Kenichi Handa <handa@etl.go.jp>
6834
6835 * regex.c (re_compile_fastmap): While checking a range table for
6836 `charset', skip flag bits for a character class correctly.
6837
52b8dbf9
GM
68382000-01-17 Gerd Moellmann <gerd@gnu.org>
6839
d36100c9
GM
6840 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
6841
52b8dbf9
GM
6842 * xfns.c (x_window): Call lw_create_widget with new parameter
6843 list.
6844
6845 * widget.c (EmacsFrameSetCharSize): Change size of children first
6846 because of problems with main window geometry management under
6847 Lesstif.
6848
6849 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
6850 MENU_ITEMS_ITEM_.*.
6851 (MENU_ITEMS_ITEM_HELP): New enumerator.
6852 (push_menu_item): Add parameter HELP. Record help in menu_items.
6853 (single_menu_item, single_submenu, list_of_items): Call
6854 push_menu_item with new parameter.
6855 (single_submenu): Set help string in widget value.
6856 (menu_highlight_callback): New function.
6857 (set_frame_menubar): Call lw_create_widget with new
6858 parameter list.
6859 (xmenu_show, xdialog_show): Ditto.
6860
3139018f
GM
68612000-01-13 Gerd Moellmann <gerd@gnu.org>
6862
6863 * sound.c (Fplay_sound): Improve doc string.
6864
83c8f461
RS
68652000-01-11 Richard M. Stallman <rms@gnu.org>
6866
6867 * lisp.h (set_internal): Enter the new arg.
6868
6869 * eval.c (specbind): Record buffer-local variables specially,
6870 indicating which buffer's binding was saved.
6871 (unbind_to): Restore buffer-local variables specially
6872 in the proper buffer.
6873
6874 * data.c (set_internal): New arg BUF.
427ec082 6875
83c8f461
RS
6876 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
6877 * data.c (Fset): Pass new arg to set_internal.
6878 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 6879
1fab1775
GM
68802000-01-11 Gerd Moellmann <gerd@gnu.org>
6881
6882 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
6883 xprintsym.
6884
83c8f461 68852000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
6886
6887 * minibuf.c (Ftry_completion): Doc fix.
6888
7a85e4df
GM
68892000-01-11 Gerd Moellmann <gerd@gnu.org>
6890
6891 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
6892 vector, too.
6893
a970dae4
AS
68942000-01-11 Andreas Schwab <schwab@suse.de>
6895
6896 * coding.c (code_convert_region): Initialize total_skip.
6897
c65d14ee
DL
68982000-01-08 Dave Love <fx@gnu.org>
6899
6900 * eval.c (Fuser_variable_p): Check customizability too.
6901
834938d2
GM
69022000-01-07 Gerd Moellmann <gerd@gnu.org>
6903
6904 * minibuf.c (Fcompleting_read): Doc fix.
6905
e0303cd6
GM
69062000-01-05 Gerd Moellmann <gerd@gnu.org>
6907
8a26744b
GM
6908 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
6909 -L /usr/local/lib.
6910
e0303cd6
GM
6911 * xfns.c (x_create_im): New function to set IM and IC of a frame.
6912 Check that input style is supported before trying to create an
6913 IC for it.
6914 (x_window): Call x_create_im.
427ec082 6915
2e471eb5
GM
69162000-01-04 Gerd Moellmann <gerd@gnu.org>
6917
560a7bd2
GM
6918 * xfns.c (current_gif_memory_src): New variable.
6919 (gif_load): Record the address of the current memory source
6920 in current_gif_memory_src.
6921 (gif_read_from_memory): Use current_gif_memory_src.
6922
f9ee84a3
GM
6923 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
6924 macros statement form.
6925
d1299cde
GM
6926 * sound.c (struct sound): Renamed from struct sound_file.
6927 (struct sound): Add members `data' and `header_size'.
6928 (enum sound_attr): Add SOUND_DATA.
6929 (current_sound, current_sound_device): Variables renamed from
6930 sound_file and sound_device.
6931 (parse_sound): Parse :data.
6932 (parse_sound): Handle sound data in strings.
6933 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 6934 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
6935 needed header size.
6936 (wav_play, au_play): Play sounds from string data.
6937
2e471eb5
GM
6938 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
6939
6940 * lisp.h: Add prototype for allocate_string_data.
6941
6942 * alloc.c (Fgarbage_collect): Return number of live and free
6943 strings.
6944
6945 * alloc.c (mark_buffer): Remove code in #if 0.
6946 (gc_sweep): Ditto.
6947 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
6948 (strings_consed): New variable.
6949 (allocate_string): Set it.
6950 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
6951 (Fmemory_use_counts): Return strings_consed. Use Flist.
6952
6953 * alloc.c: General cleanup in comments etc. Remove conditional
6954 compilation for `standalone'.
6955
6956 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
6957
6958 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
6959 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
6960 (DONT_COPY_FLAG): Removed.
6961 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
6962 (struct sdata, struct sblock): New
6963 (struct string_block): Rewritten.
6964 (STRINGS_IN_STRING_BLOCK): New macro.
6965 (oldest_sblock, current_sblock, total_strings, total_free_strings)
6966 (large_sblocks, string_blocks, string_free_list): New variables.
6967 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
6968 (init_strings): Rewritten.
6969 (allocate_string, allocate_string_data, compact_small_strings)
6970 (free_large_strings, sweep_strings): New functions.
6971 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
6972 (struct string_block_head, current_string_block)
6973 (first_string_block, large_string_blocks, STRING_FULLSIZE)
6974 (STRING_PAD): Removed.
6975 (make_uninit_multibyte_string, make_pure_string): Rewritten.
6976 (Fgarbage_collect): Don't set mark bit in large strings.
6977 (mark_object): Mark strings differently. Mark symbol names
6978 differently.
6979 (survives_gc_p): Test marked strings differently.
427ec082 6980 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
6981 symbol names.
6982 (compact_strings): Removed.
6983
42608ba8
EZ
69842000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
6985
6986 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
6987 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
6988
e0a09e1a
KH
69892000-01-04 Kenichi Handa <handa@etl.go.jp>
6990
dd9f0750 6991 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 6992 in a non-empty buffer.
dd9f0750 6993
3c0f3b15 6994 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 6995
44cd3ae5
GM
69962000-01-03 Gerd Moellmann <gerd@gnu.org>
6997
6998 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
6999 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
7000
7001 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
7002
c182a70f
EZ
70032000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
7004
7005 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
7006 need to test for MSDOS frames.
7007
24480d5b
EZ
70082000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
7009
7010 * dosfns.c (unspecified_colors): Remove.
7011 (msdos_stdcolor_idx): Use global variables unspecified_fg and
7012 unspecified_bg.
7013 (msdos_stdcolor_name): Return strings for unspecified fore- and
7014 back-ground colors.
7015
7016 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 7017 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
7018 (tty_color_name): Return Lisp strings for unspecified fore- and
7019 back-ground colors.
7020 (Finternal_set_lisp_face_attribute): Remove the special treatment
7021 for Qunspecified_{f,b}g.
7022 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
7023 string.
7024
047f434a
GM
70252000-01-03 Gerd Moellmann <gerd@gnu.org>
7026
7027 * xdisp.c (reseat_at_next_visible_line_start): Position before
7028 newline only if ending up on a newline.
7029 (next_element_from_ellipsis): Return success. Handle case of
7030 displaying no ellipsis. Fix case of ellipsis defined in display
7031 table.
7032 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
7033 returns 0.
7034
d684c676
EZ
70352000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
7036
7037 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
7038 (Fcolor_supported_p): Renamed from face-color-supported-p.
7039
5fe1d139
EZ
70402000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
7041
7042 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
7043 list of colors renamed to tty-defined-color-alist.
7044 (tty_color_name): Pass the frame to tty-color-by-index.
7045 (realize_tty_face): tty-color-alist is now a function which
7046 accepts the frame as argument.
7047
7048 * term.c (Ftty_display_color_p): Accept an optional argument
7049 FRAME.
7050
816be8b8
EZ
70512000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
7052
7053 * term.c (insert_glyphs): Pass glyph, not &glyph, to
7054 encode_terminal_code.
7055
b635321e
EZ
70562000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
7057
7058 * dispnew.c (mode_line_string): Support termcap frames as well.
7059
9b784e96
GM
70602000-01-01 Gerd Moellmann <gerd@gnu.org>
7061
27189709
GM
7062 * syntax.c (Fforward_word): Undo previous change.
7063
7064 * editfns.c (Fconstrain_to_field): Don't constrain if
7065 inhibit-field-text-motion is non-nil.
7066 (Fline_beginning_position): Undo previous change.
7067 (Fline_end_position): Ditto.
7068
7069 * syntax.c (Fforward_word): Notice field boundaries only if
7070 inhibit-field-text-motion is nil.
7071
7072 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
7073
7074 * editfns.c (Vinhibit_field_text_motion): New variable.
7075 (inhibit-field-text-motion): New DEFVAR_LISP.
7076 (Fline_beginning_position, Fline_end_position): Notice field
7077 boundaries only if inhibit-field-text-motion is nil.
7078
45158a91
GM
7079 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
7080 All calls adjusted.
7081 (x_build_heuristic_mask): Likewise.
7082 (xbm_load_image_from_file): Change error output.
7083 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
7084 (gif_load, gs_load, x_kill_gs_process): Ditto.
7085
9b784e96
GM
7086 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
7087 color indices when accessing raster pixels.
63cec32f
GM
7088 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
7089 one of :file or :data.
7090 (enum pbm_keyword_index): Add PBM_DATA.
7091 (pbm_format): Add :data.
7092 (pbm_image_p): Allow either :file or :data.
7093 (pbm_read_file): New function.
7094 (pbm_scan_number): Rewritten to read from string.
7095 (pbm_load): Support :data.
9b784e96 7096
2cb085db 7097See ChangeLog.8 for earlier changes.
6922b018
KH
7098
7099;; Local Variables:
49b3bd82 7100;; coding: iso-2022-7bit
6922b018 7101;; End: