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