(REL_ALLOC_MMAP): Define.
[bpt/emacs.git] / src / ChangeLog
CommitLineData
a8710abf
GM
12000-09-08 Gerd Moellmann <gerd@gnu.org>
2
fc653ef2
GM
3 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
4
3015eec0
GM
5 * keymap.c (Fset_keymap_parent): Check for cycles in keymap
6 inheritance.
7
bfe0ee88
GM
8 * xdisp.c (try_window_id): When trying to locate cursor in
9 unchanged rows at the top, handle the case that we can't find it.
10
a8710abf
GM
11 * xterm.c (x_draw_glyphs): Handle case START and END are out
12 of bounds more carefully.
13
6b7d4ae4
DL
142000-09-08 Dave Love <fx@gnu.org>
15
16 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
17 change to __NetBSD__.
18
44d31981
KH
192000-09-08 Kenichi Handa <handa@etl.go.jp>
20
21 * search.c (compile_pattern): Check the multibyteness of cached
22 string and PATTERN.
23
aad40737
MB
242000-09-08 Miles Bader <miles@gnu.org>
25
26 * xfaces.c (default_face_vector): Function removed.
27 (Finternal_merge_in_global_face): Restore old global/local
28 attribute override order. Use inline loop instead of calling
29 default_face_vector.
30
91a211b5
GM
312000-09-07 Gerd Moellmann <gerd@gnu.org>
32
33 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
34 (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
35 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
36 where necessary, in case POINTER_TYPE is `void'.
37
03419440
EZ
382000-09-07 Eli Zaretskii <eliz@is.elta.co.il>
39
40 * frame.c (make_terminal_frame): Initialize frame foreground and
41 background colors to unspecified, for the initial instance of an
42 MSDOS frame.
43
f46f845b
GM
442000-09-07 Gerd Moellmann <gerd@gnu.org>
45
24f76fbf
GM
46 * ralloc.c (mmap_find): Fix overlap computation.
47 (mmap_enlarge): Compute nbytes before trying to find an
48 overlapping region.
49
f46f845b
GM
50 * xfaces.c (smaller_face): Compare font heights with `<' and `>'
51 instead of `!='.
52
53 * lread.c (syms_of_lread): Change value of regexp
54 Vbytecomp_version_regexp to not match some XEmacs-compiled files.
55
56 * xmenu.c (xdialog_show): When looking up the selection in
57 menu_items, take `quote' boundaries into account; this corresponds
58 to a nil ITEM in x-popup-dialog.
59
3c014385
KH
602000-09-07 Kenichi Handa <handa@etl.go.jp>
61
fd6f711b
KH
62 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
63 not 0x81.
64 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
65
3c014385 66 * coding.c (encode_coding_sjis_big5): Use translation table for
ed254191
KH
67 encoding, not decoding. Fix the handling of latin-jisx0201.
68 Check for the charset katakana-jisx0201 too.
3c014385 69 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
f46f845b 70 (detect_coding_sjis): Check the byte sequence more rigidly.
3c014385 71
0da3ecef
GM
722000-09-07 Gerd Moellmann <gerd@gnu.org>
73
ab0ee409
GM
74 * xfaces.c (Vparam_value_alist): New variable.
75 (syms_of_xfaces): Initialize it.
76 (Finternal_set_lisp_face_attribute): Avoid more consing.
77
78 * frame.c (Fframe_parameter): Handle `name' and `background-mode'
79 specially.
80 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
81 (Qbackground_mode): New variable.
82 (syms_of_frame_1): Initialize Qbackground_mode.
83
84 * lisp.h (Qdisplay): Declare extern.
1091dd67 85
0da3ecef
GM
86 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
87 change face on all frames, and change the default for new frames.
88
b14654b9
DL
892000-09-07 Dave Love <fx@gnu.org>
90
91 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
92
d24fd56f
KH
932000-09-07 Kenichi Handa <handa@etl.go.jp>
94
794f3670
KH
95 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
96
0fddd0dc
KH
97 * charset.c: Include composite.h
98 (lisp_string_width): New function.
99 (Fstring_width): Call lisp_string_width instead of strwidth.
100
101 * Makefile.in (charset.o): Depends on composite.h.
102
d24fd56f
KH
103 * process.c (read_process_output): Before inserting the decoded
104 text in the buffer, adjust the multibyteness.
105
fa0b693c
GM
1062000-09-06 Gerd Moellmann <gerd@gnu.org>
107
73b77ee5
GM
108 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If
109 buffer's text buffer is null, map new memory.
110
0a58f946
GM
111 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
112 POINTER_TYPE and size_t.
113 (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
114 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
115 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
116 [REL_ALLOC_MMAP]: New macros.
117 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
118 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
119 [REL_ALLOC_MMAP]: New functions.
120
121 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
122 before and after unexec.
123
124 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
125 text buffers if necessary.
126
127 * buffer.h (R_ALLOC_DECLARE): Removed because unused.
128 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
129 in prototypes.
130
fa0b693c
GM
131 * config.in (HAVE_MMAP): Add #undef.
132
877055f6
GM
1332000-09-05 Gerd Moellmann <gerd@gnu.org>
134
08ba3862
GM
135 * frame.c (Qdisplay_type): New variable.
136 (syms_of_frame_1): Initialize it.
137 (Fframe_parameter): New function that avoids consing.
138 (syms_of_frame): Defsubr it.
139
66ffe51c
GM
140 * buffer.c (Fother_buffer): Consider buffers as invisible when
141 they are displayed in a window on an invisible frame.
142
877055f6
GM
143 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
144 get-largest-window always return nil.
145
bb970e67
GM
1462000-09-04 Gerd Moellmann <gerd@gnu.org>
147
148 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
149 variable; recognize Emacs 19 elc files.
150
7a3d0e0e
MB
1512000-09-04 Miles Bader <miles@gnu.org>
152
153 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
154 before initially popping up the menu, so the menu doesn't flash
155 when the face settings are significantly different from the
156 defaults.
157
14473664
SM
1582000-09-04 Stefan Monnier <monnier@cs.yale.edu>
159
160 * regex.c (WIDE_CHAR_SUPPORT): New macro.
161 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
162 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
163 (BIT_UNIBYTE): Remove.
164 (re_match_2_internal): Delete corresponding code and streamline the
165 BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
166 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
167 (re_wctype_t): New type.
168 (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
169 (regex_compile): Use them and fix handling of overly long char classes.
170
c1174479
AI
1712000-09-03 Andrew Innes <andrewi@gnu.org>
172
f8803e97
AI
173 * makefile.w32-in: Change to DOS line endings.
174
c1174479
AI
175 * s/ms-w32.h (ORDINARY_LINK): New define.
176
177 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
178 (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
179
180 * makefile.w32-in (clean): Don't delete config.h and epaths.h.
181 (distclean): Delete them here instead.
182
44ef7cf6
AI
183 * w32proc.c (compare_env): Convert to uppercase for comparison,
184 not lowercase, to match how the native Windows shell works.
185
49b3bd82
JR
1862000-09-03 Jason Rumney <jasonr@gnu.org>
187
188 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
189 CVS changes the line-ends when checking in/out on DOS/Windows.
190
191 * makefile.nt (emacs): Do not change directory to run temacs, as
192 the load-path is set relative to current directory.
193
a3d35a39
MB
1942000-09-03 Miles Bader <miles@gnu.org>
195
196 * xterm.c (x_alloc_lighter_color_for_widget): New function.
197
d276b0cf
GM
1982000-09-02 Gerd Moellmann <gerd@gnu.org>
199
715e84c9
GM
200 * xdisp.c (redisplay_mode_lines): New function.
201 (display_mode_lines): Return number of mode lines displayed.
202 (echo_area_display): Use redisplay_mode_lines to draw garbaged
203 mode lines. Don't temporarily bind redisplay-dont-pause to t.
204
8892f40b
GM
205 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
206 string.h and strings.h.
207 (index) [HAVE_INDEX]: Add prototype.
208
d276b0cf
GM
209 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
210 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
211
212 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
213 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
214
38404229
GM
2152000-09-01 Gerd Moellmann <gerd@gnu.org>
216
217 * lread.c (read1): Accept `?' as symbol constituent, for
218 compatiblity with XEmacs.
219
c0f9ea08
SM
2202000-08-31 Stefan Monnier <monnier@cs.yale.edu>
221
222 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
223 (struct re_pattern_buffer): Remove newline_anchor.
224 * regex.c: Keep namespace clean for GNU libc by renaming <fun>
225 to __<fun> and using `weak_alias (__<fun>, <fun>)'.
226 (re_max_failures, fail_stack): Use size_t rather than unsigned.
227 (regex_compile): For ^ and $, choose between buffer and line (beg|end)
228 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
229 (print_compiled_pattern, re_search_2, mutually_exclusive_p)
230 (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
231 Get rid of references to newline_anchor.
232 (regcomp): Allocate and precompute a fastmap.
233
8c0f83fe
GM
2342000-08-31 Gerd Moellmann <gerd@gnu.org>
235
236 * lread.c (openp): GCPRO local variable `filename'.
237
4bb91c68
SM
2382000-08-30 Stefan Monnier <monnier@cs.yale.edu>
239
240 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
241
242 * regex.c: Merge some changes from GNU libc. Add prototypes.
243 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
244 Use memcmp and memcpy instead of bcopy and bcmp.
245 (init_syntax_once): Use ISALNUM.
246 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
247 (REG_UNSET_VALUE): Remove. Use NULL instead.
248 (REG_UNSET, re_match_2_internal): Use NULL.
249 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
250 New macros.
251 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
252 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
253 (regex_compile): In handle_interval, return an error rather than try to
254 unfetch the interval if we can't find the closing brace.
255 Obey the RE_NO_GNU_OPS syntax bit.
256 (TOLOWER): New macro.
257 (regcomp): Use it.
258 (regexec): Allocate regs.start and regs.end as one block.
259
5226a931
GM
2602000-08-30 Gerd Moellmann <gerd@gnu.org>
261
868dd24b
GM
262 * xdisp.c (echo_area_display): Check display_completed instead
263 of calling detect_input_pending.
264
265 * dispnew.c (update_frame): Only set display_completed here; move
266 the update_begin and update_end calls here from update_frame_1.
267 (update_frame_1): Don't set display_completed here, don't call
268 update_begin/update_end.
269
5226a931
GM
270 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
271 instead of store_frame_param.
272
2a8bd25f
GM
2732000-08-29 Gerd Moellmann <gerd@gnu.org>
274
275 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
276 desired window matrix hasn't been displayed, use the current row
277 instead. Make sure that only those frame rows are updated for
278 which there exists a corresponding enabled desired row.
279
ba3478d9
MB
2802000-08-29 Miles Bader <miles@gnu.org>
281
282 * xfaces.c (default_face_vector): New function.
283 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
284
87d0f685
GM
2852000-08-29 Gerd Moellmann <gerd@gnu.org>
286
287 * lread.c (openp): Prevent temporary string passed to
288 Ffile_readable_p from being garbage collected.
289
6fa86045
DL
2902000-08-28 Dave Love <fx@gnu.org>
291
292 * keymap.c (store_in_keymap): Add `static' to declaration.
293
bb17930d
GM
2942000-08-28 Gerd Moellmann <gerd@gnu.org>
295
296 * emacs.c, callint.c, doc.c, editfns.c
297 (toplevel) [HAVE_STRING_H]: Include string.h.
298 (toplevel) [HAVE_STRINGS_H]: Include strings.h.
299 (index): Remove prototypes which might conflict with non-standard
300 definitions of index/strchr.
301
302 * s/usg5-3.h (index): Define only if not HAVE_INDEX.
303 (rindex): Define only if !HAVE_RINDEX.
304
305 * s/sco5.h (bcopy, bzero, bcmp): Don't define.
306
307 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
308
87188200
MB
3092000-08-28 Miles Bader <miles@gnu.org>
310
311 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
312 made inconsistent by a font-related attribute in FROM.
313 (merge_face_inheritance): Add function comment.
314
41a68aef
KH
3152000-08-28 Kenichi Handa <handa@etl.go.jp>
316
317 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
318 the 4th arg (PREV_EVENT) Qt to suppress input method.
319
f7c436c1
SM
3202000-08-27 Stefan Monnier <monnier@cs.yale.edu>
321
0b32bf0e
SM
322 * regex.c: Indent cpp directives and remove parens after `defined'.
323 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
324 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
325 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
326 (re_compile_pattern): Use size_t for length.
327 (init_syntax_once): Move to a better place.
328 * regex.h: Merge changes from GNU libc. Indent cpp directives.
329 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
330
f7c436c1
SM
331 * syntax.c (back_comment): Detect cases where a comment-starter is
332 actually inside another comment as in: /* a // b */ c // d \n.
333 Make it clear that `comstart_pos' is unused for nested comments.
334
335 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
336 (KEYMAPP): New macro.
337 (Fkeymap_parent, Fset_keymap_parent): Use it.
338 (fix_submap_inheritance): Mark it static.
339 (define_as_prefix, describe_buffer_bindings, describe_command)
340 (describe_translation, describe_map): Complete prototypes.
341
342 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
343
344 * keyboard.c (menu_bar_item): Detect duplicate entries for all items
345 to better match the key-lookup behavior.
346
6288c62f
GM
3472000-08-27 Gerd Moellmann <gerd@gnu.org>
348
349 * xfaces.c (lface_fully_specified_p): Handle :inherit.
350 (Finternal_set_lisp_face_attribute): Fix typo in error message.
351
e931344e
EZ
3522000-08-27 Eli Zaretskii <eliz@is.elta.co.il>
353
354 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
355 (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
356 (xterm.o): Depend on coding.h
357
d10dfeef
KH
3582000-08-26 Kenichi Handa <handa@etl.go.jp>
359
360 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
361 the corresponding '#endif'.
362
2d73e8d3
MB
3632000-08-26 Miles Bader <miles@gnu.org>
364
365 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
366 * xfaces.c (QCinherit): New variable.
367 (syms_of_xfaces): Initialize it.
368 (LFACE_INHERIT): New macro.
369 (Finternal_get_lisp_face_attribute)
370 (merge_face_vector_with_property)
371 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
372 (check_lface_attrs): Allow new types of face height. Check
373 inherit attribute.
374 (CYCLE_CHECK): New macro.
375 (merge_face_inheritance): New function.
376 (merge_face_vectors): Merge inherited faces too. Add F and
377 CYCLE_CHECK arguments.
378 (merge_face_vector_with_property, Finternal_merge_in_global_face)
379 (lookup_named_face, lookup_derived_face, realize_named_face)
380 (face_at_string_position, face_at_buffer_position): Supply
381 new F and CYCLE_CHECK arguments to merge_face_vectors.
382 (merge_face_heights): New function.
383 (merge_face_vectors, merge_face_vector_with_property)
384 (Finternal_set_lisp_face_attribute): Call merge_face_heights to
385 handle relative face heights.
386 (lface_same_font_attributes_p): Compare heights using EQ.
387
6ce974d4
KH
3882000-08-26 Kenichi Handa <handa@etl.go.jp>
389
390 * charset.c (char_to_string): Check the character validity.
391 (char_valid_p): If C is not less than MAX_CHAR, be sure to return
392 0.
393
dc1e502d
SM
3942000-08-25 Stefan Monnier <monnier@cs.yale.edu>
395
396 * regex.c (PUSH_FAILURE_COUNT): New macro.
397 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
398 Handle popping of a register's or a counter's data.
399 (POP_FAILURE_POINT): Use the new name.
400 (re_match_2_internal): Push counter data on the stack for succeed_n,
401 jump_n and set_number_at and remove misleading dead code in succeed_n.
402
bd9d0f3f
GM
4032000-08-25 Gerd Moellmann <gerd@gnu.org>
404
405 * xdisp.c (redisplay_internal): If considering all windows on all
406 frames, update the display for each frame as soon as possible,
407 instead of first building all desired matrices for all frames, and
408 then updating them all.
409 (try_cursor_movement): Handle case that last_cursor.vpos is -1.
410
aa5b8e15
GM
4112000-08-24 Gerd Moellmann <gerd@gnu.org>
412
17494071
GM
413 * bytecode.c (mark_byte_stack): Add a comment.
414
aa5b8e15
GM
415 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH)
416 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is
417 a graphical frame.
418
c543db81
KH
4192000-08-24 Kenichi Handa <handa@etl.go.jp>
420
d246d5f5
KH
421 * minibuf.c (do_completion): Always use compare-string, not
422 string-equal because the latter doesn't pay attention to
423 multibyteness of strings.
424
c543db81
KH
425 * process.c (create_process): Don't setup raw-text coding here.
426 (Fopen_network_stream): Don't set coding->src_multibyte and
427 coding->dst_multibyte here.
428 (read_process_output): For process filter, return unibyte string
429 if default-enable-multibyte-characters is nil.
430 (send_process): If OBJECT is multibyte text, be sure to encoded it
431 by the specified coding system for the process. Otherwise, setup
432 raw-text coding.
433 (init_process): Don't initialize default-process-coding-system
434 here.
435
9b47cfe0
EZ
4362000-08-23 Eli Zaretskii <eliz@is.elta.co.il>
437
438 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
439 <scroll-down-aggressively>: Likewise.
440
f5a36960
KH
4412000-08-23 Kenichi Handa <handa@etl.go.jp>
442
443 * coding.c (encode_eol): Fix bug for the case of dst_bytes being
444 zero. Set coding->produced_char correctly.
445
69a7ffa7
AI
4462000-08-22 Andrew Innes <andrewi@gnu.org>
447
448 * makefile.w32-in: New file.
449
450 * unexw32.c (unexec): Ignore old_name, and use the actual location
451 of the current executable instead. Base new_name on this.
452
453 * w32proc.c (create_child): Remove reference to security
454 descriptor, which isn't needed and doesn't compile with mingw32.
455
456 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
457 up dllimport attributes.
458 (x_update_window_end): Update prototype.
459
460 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
461 extern, which screws up dllimport attributes.
462
463 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
464 up dllimport attributes.
465
466 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
467 screws up dllimport attributes.
468
469 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
470 up dllimport attributes.
471 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
472 screws up dllimport attributes.
473
474 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
475 up dllimport attributes.
476
477 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
478 screws up dllimport attributes.
479
480 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
481 screws up dllimport attributes.
482
483 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
484 up dllimport attributes.
485
486 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
487 unnecessary extern, which screws up dllimport attributes.
488 (main): Ditto.
489
490 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
491 up dllimport attributes.
492
493 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
494 unnecessary extern, which screws up dllimport attributes.
495
496 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
497 screws up dllimport attributes.
498
499 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
500 up dllimport attributes.
501
502 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
503
504 * w32bdf.c (search_file_line):
505 (set_bdf_font_info):
506 (seek_char):
507 (w32_get_bdf_glyph):
508 (w32_BDF_to_x_font): Fix compile warnings.
509
510 * w32menu.c: Include keyboard.h before frame.h. Fix compile
511 warnings.
512
513 * w32select.c: Include keyboard.h before frame.h.
514
515 * w32fns.c (max): Define macro.
516 (JOHAB_CHARSET): Define if not known.
517 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
518 (Fx_show_tip): Synch with X version.
519
520 * w32xfns.c: Include keyboard.h before frame.h.
521
522 * w32fns.c: Include keyboard.h before frame.h.
523
524 * w32term.c: Include keyboard.h before frame.h.
525
526 * fontset.c: Include keyboard.h before frame.h.
527
528 * w32inevt.c: Include keyboard.h before frame.h.
529 (MOUSE_MOVED): Define if not known.
530
531 * minibuf.c: Include keyboard.h before frame.h.
532
533 * keyboard.c: Include keyboard.h before frame.h.
534
535 * indent.c: Include keyboard.h before frame.h.
536
537 * dispnew.c: Include keyboard.h before frame.h.
538
539 * buffer.c: Include keyboard.h before frame.h.
540
541 * alloc.c: Include keyboard.h before frame.h.
542
543 * print.c: Include keyboard.h before frame.h.
544
545 * process.c: Include keyboard.h before frame.h.
546
547 * scroll.c: Include keyboard.h before frame.h.
548
549 * sysdep.c: Include keyboard.h before frame.h.
550
551 * term.c: Include keyboard.h before frame.h.
552
553 * window.c: Include keyboard.h before frame.h.
554
555 * xdisp.c: Include keyboard.h before frame.h.
556 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
557
558 * frame.c: Include keyboard.h before frame.h.
559
560 * w32heap.h: Undefine min, max.
561
562 * w32gui.h: Undefine min, max.
563
564 * unexw32.c: Change PUCHAR to PCHAR.
565 (PTR_TO_OFFSET): Cast ptr to unsigned char *.
566 (relocate_offset):
567 (get_section_info):
568 (copy_executable_and_dump_data): Remove unnecessary static defs.
569 (copy_executable_and_dump_data): Fix compile warnings.
570
571 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
572
573 * w32console.c (min): Define macro.
574 (clear_frame, write_glyphs): Fix compile warning.
575
576 * w32proc.c (compare_env):
577 (find_child_console): Fix compile warning.
578
579 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use
580 sys_errlist instead of _sys_errlist.
581 (get_emacs_configuration_options): New function.
582
583 * s/ms-w32.h (sys_nerr): Provide default definition.
584 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
585 name with _ prepended.
586 (NSIG): Define if not known.
587 (get_emacs_configuration): Provide extern declaration.
588 (get_emacs_configuration_options): Provide extern declaration.
589 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
590
591 * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
592 (map_w32_filename):
593 (read_unc_volume): Fix compile warning.
594
595 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
596 definitions from being used.
597
598 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
599
600 * w32.c (unc_volume_file_attributes):
601 (open_unc_volume): Make arg const.
602
603 * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
604 (read_input_waiting): Remove excess parameter.
605
606 * w32.c (init_environment): Call _access.
607 (check_windows_init_file): Call _close.
608 (init_user_info): Call _putenv.
609 (init_environment): Call _putenv and _strdup.
610 (init_ntproc): Reset volume info cache on startup.
611
612 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
613 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
614 cannot override the CRT malloc.
615
616 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
617 (LINK_FLAGS): Append to original value of LINK_FLAGS.
618
619 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
620 unless we are linking with a static CRT.
621 (RVA_TO_PTR): Cast result to unsigned char*.
622
623 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
624 (add_volume_info): Use xstrdup.
625
25060080
SM
6262000-08-22 Stefan Monnier <monnier@cs.yale.edu>
627
628 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
629 (do_completion, Fminibuffer_complete_word): Use it.
630 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
631 var so it can take non-boolean values.
632
6917e6bb
GM
6332000-08-21 Gerd Moellmann <gerd@gnu.org>
634
acb7cc89
GM
635 * editfns.c (find_field): Formatting changes.
636 (toplevel): Some old-style function forward declarations
637 changed to prototypes, some new protypes added, some functions
638 made static.
639
640 * lisp.h (set_time_zone_rule): Add prototype.
641 (use_dialog_box): External declaration.
642
0bbfdc25
GM
643 * keyboard.c (gen_help_event): Add parameter SIZE.
644 (kbd_buffer_events_waiting): Slightly rewritten.
645 (clear_event): New function.
646 (kbd_buffer_get_event): Use it, and clear the input_events of
647 HELP_EVENTs.
648 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
649 don't fill the newly created array with nils.
650 (toplevel): Convert some old-style function forward declarations
651 to prototypes.
652
653 * keyboard.h (gen_help_event): Change prototype.
654
655 * xterm.c (XTread_socket): Change calls to gen_help_event.
656
657 * w32term.c (w32_read_socket): Change calls to gen_help_event.
658
6917e6bb
GM
659 * eval.c (Fmacroexpand): Doc fix.
660
e5cd3d11
JR
6612000-08-20 Jason Rumney <jasonr@gnu.org>
662
663 * w32term.h (x_display_info_for_display): Remove as this function
664 does not exist on W32.
665
666 * w32term.c (help_echo_window): New variable.
667 (syms_of_w32term): staticpro it.
668 (note_mode_line_highlight): Set it.
669 (XTextExtents16): Removed as there is no equivalent on W32.
670 (x_compute_glyph_string_overhangs): Incomplete body removed, as
671 the X way of doing this will not work for W32.
672 (w32_intersect_rectangles): Removed. Use IntersectRect API call.
673 (x_draw_image_foreground): Avoid drawing outside of the clip area
674 when image doesn't have a mask.
675 (note_mouse_highlight): Process overlays in the right order of
676 priority. Set help_echo_window.
677 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
678 because that's more visible for large images.
679
680 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
681 name to single_keymap_panes.
682 (w32_menu_show): Set wv->title when dealing with titles.
683 (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
684
6e69ab8c
MB
6852000-08-21 Miles Bader <miles@gnu.org>
686
687 * minibuf.c (do_completion): Try again if we rewrite the input
688 string, but no completion was done, so that any completion message
689 will be correct.
690
511bd4eb
GM
6912000-08-20 Gerd Moellmann <gerd@gnu.org>
692
693 * xfaces.c (lface_equal_p): Compare strings differently.
694 (Qtty_color_alist, Vtty_defined_color_alist): New variables.
695 (realize_tty_face): Use them.
696 (syms_of_xfaces): Initialize new variables.
697 (map_tty_color): New function, extracted from realize_tty_face.
698 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
699 foreground or background color, store the new color name in the
700 realized face; previous code trying to do this had no effect.
701 (realize_tty_face): Use map_tty_color.
702 (Fclear_face_cache): Set face_change_count and ensure thorough
703 redisplay.
704
1433385f
GM
7052000-08-19 Gerd Moellmann <gerd@gnu.org>
706
511bd4eb
GM
707 * undo.c (record_first_change, record_marker_adjustment): Don't
708 use XBUFFER on last_undo_buffer which might not be a buffer.
1433385f 709
419ac0a2
KH
7102000-08-18 Kenichi Handa <handa@etl.go.jp>
711
712 * coding.c (decode_coding_string): Set members consumed,
713 consumed_char, produced, produced_char of *coding correctly. If
714 decode_coding doesn't consume any byte, don't try anymore.
715 (encode_coding_string): Likewise.
716
7eb9e30d
GM
7172000-08-18 Gerd Moellmann <gerd@gnu.org>
718
511bd4eb
GM
719 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
720 conditional have void type, for Standard C compilers.
7eb9e30d
GM
721
722 * xdisp.c (redisplay_internal): Compare windows for equality with
723 EQ, instead of applying XWINDOW to something that might not
724 be a window.
725
dd34a735
KH
7262000-08-18 Kenichi Handa <handa@etl.go.jp>
727
728 * fontset.c (Finternal_char_font): Search only the selected frame
729 for a window of the current buffer.
730
385ff9e3
GM
7312000-08-18 Gerd Moellmann <gerd@gnu.org>
732
511bd4eb 733 * minibuf.c (do_completion): Use EQ instead of `!=' to compare
01cce3e7
GM
734 Lisp_Objects.
735
385ff9e3
GM
736 * keyboard.c (kbd_buffer_get_event): Handle the case that the
737 second half of a HELP_EVENT is found at the start of kbd_buffer.
738
d6abb4c7
MB
7392000-08-18 Miles Bader <miles@gnu.org>
740
4618074a
MB
741 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
742
d6abb4c7
MB
743 * editfns.c (save_restriction_save): Rewrite to use markers.
744 (save_restriction_restore): Rewrite to understand new form of data
745 saved by save_restriction_save.
746 (Fsave_restriction): Remove cautionary note in doc-string.
747
a7b28523
GM
7482000-08-17 Gerd Moellmann <gerd@gnu.org>
749
750 * fileio.c (build_annotations): Add a comment explaining the
751 return value of format-annotate-function. Replace a spurious call
752 to Flength with a CONSP test. Call format-annotate-function with
753 a fifth arg specifying how many times the function is been called
754 in a row, to let it choose temporary buffers appropriately.
755
03c9ed77
DL
7562000-08-17 Dave Love <fx@gnu.org>
757
758 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't
759 declare make_temp_name twice.
760
761 * lread.c: Prototype readevalloop, load_unwind,
762 load_descriptor_unwind.
763 (unreadpure): Give it an arg.
764
765 * unexalpha.c: Prototype fatal_unexec, mark_x,
766 update_dynamic_symbols. Declare unexec as void.
767
768 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
769 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
770
771 * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
772 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on
773 DOUG_LEA_MALLOC.
774
775 * alloca.c: Use #error.
776 [POINTER_TYPE]: Use it.
777
778 * eval.c (Fdefvar): Doc fix.
779
780 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
781 INITIALIZE_INTERVAL.
782
783 * buffer.h: Avoid DECLARE_INTERVALS.
784
785 * config.in: Add size_t.
786
aae41d97
EZ
7872000-08-17 Eli Zaretskii <eliz@is.elta.co.il>
788
789 * w16select.c (set_clipboard_data): If there's not enough memory
790 to put text into clipboard, return 1, as Fw16_set_clipboard_data
791 expects. In case of other failures, return 3.
792 (system_error_msg): New error message.
793 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
794 system_error_msg.
795
65aa5e85
GM
7962000-08-16 Gerd Moellmann <gerd@gnu.org>
797
798 * term.c (write_glyphs): Also turn off inverse video after turning
799 off other appearances in case TS_exit_attribute_mode is not equal
800 to TS_end_standout_mode.
801 (insert_glyphs): Turn inverse video on/off for each run of glyphs
802 with the same face.
803 (turn_off_face): Reset standout_mode only if
804 TS_exit_attribute_mode has been output and TS_exit_attribute_mode
805 is equal to TS_end_standout_mode.
806
ece23901
KH
8072000-08-16 Kenichi Handa <handa@etl.go.jp>
808
9d7bcb2e
KH
809 * coding.c (encode_coding): Fix the bug of not flushing ISO escape
810 sequence at the end of the source block.
811
ece23901
KH
812 * ccl.c (Fccl_program_p): Docstring modified.
813 (Fccl_execute): Likewise.
814 (Fccl_execute_on_string): Likewise.
815
5e30eaa2
EZ
8162000-08-16 Eli Zaretskii <eliz@is.elta.co.il>
817
818 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
819
290602fd
KH
8202000-08-16 Kenichi Handa <handa@etl.go.jp>
821
822 The following changes are mainly to fix bugs of
823 encode/decode-coding-string failing if encoding/decoding return
824 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global
825 variable conversion_buffer.
826
827 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
828 decrement dst_end to avoid buffer overflow in the later call of
829 string_as_multibyte
830
831 * coding.h (conversion_buffer_size, conversion_buffer)
832 (get_conversion_buffer): Extern deleted.
833
834 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
835 (conversion_buffer, conversion_buffer_size): Variables deleted.
836 (get_conversion_buffer): Function deleted.
837 (struct conversion_buffer): New structure.
838 (MAX_ALLOCA): New macro.
839 (allocate_conversion_buffer): New macro.
840 (extend_conversion_buffer, free_conversion_buffer): New functions.
841 (ccl_coding_driver): Set coding->result.
842 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
843 this is the last block of source.
844 (encode_coding): Likewise. Handle the source block as the last
845 one only when the whole source text is consumed.
846 (decode_coding_string): Handle the case that the output buffer is
847 too small to decode the whole source text. Use
848 allocate_conversion_buffer, extend_conversion_buffer and
849 free_conversion_buffer, not get_conversion_buffer.
850 (encode_coding_string): Likewise.
851 (init_coding): Function deleted.
852 (init_coding_once): Delete code to initialize
853 conversion_buffer_size.
854
855 * emacs.c (main): Don't call init_coding.
856
857 * msdos.c (IT_write_glyphs): Use a locally declared
858 conversion_buffer.
859
860 * term.c (write_glyphs): Use a locally declared conversion_buffer.
861 (insert_glyphs): Likewise.
862
863 * w32console.c (write_glyphs): Use a locally declared
864 conversion_buffer.
865
b9f80d41
EZ
8662000-08-15 Eli Zaretskii <eliz@is.elta.co.il>
867
868 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
869 member of display_info is NULL.
870
32dc52f7
GM
8712000-08-15 Gerd Moellmann <gerd@gnu.org>
872
58ed0d3b
GM
873 * alloc.c (compact_small_strings): Use safe_bcopy, add an
874 assertion.
875
32dc52f7 876 * term.c (turn_off_face): Reset standout_mode when resetting
58ed0d3b 877 appearances with capability `me'.
32dc52f7
GM
878 (write_glyphs): Switch on inverse video before each face change.
879
4eb22d33
DL
8802000-08-14 Dave Love <fx@gnu.org>
881
882 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
883 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
884 (lisp_free): Declare and make static.
885
886 * window.c: Fix embedded comment.
887 (syms_of_window): Fix doc string.
888
90cbf47e
GM
8892000-08-14 Gerd Moellmann <gerd@gnu.org>
890
891 * keymap.c (push_key_description): If C without modifiers is < 32,
892 make sure to print `C-' before `M-', like in the manual.
893
440fc135
GM
8942000-08-11 Gerd Moellmann <gerd@gnu.org>
895
896 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
897 since they aren't relocated anymore.
898 (sxhash_string): Make sure returned hash code fits in a Lisp
899 integer.
900
901 * xdisp.c (try_cursor_movement): Fix handling of cursor in
902 partially visible line which is smaller than the window's
903 height.
904
6e264fad
KH
9052000-08-11 Kenichi Handa <handa@etl.go.jp>
906
907 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
908 the multibyte form of eight-bit-control characters.
909 (Fccl_execute_on_string): Initialize ccl->multibyte.
910
911 * ccl.h (struct ccl_program): New member multibyte.
912
913 * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
914
c371f69a
KH
9152000-08-11 Kenichi Handa <handa@etl.go.jp>
916
917 * regex.c (regex_compile) <normal_char>: Pay attention to
918 multibyteness.
919 (analyse_first) <exactn>: Setup fastmap correctly for
920 eight-bit-control characters.
921
9222000-08-11 Kenichi Handa <handa@etl.go.jp>
923
924 * termhooks.h (enum event_kind): New member
925 multibyte_char_keystroke.
926
927 * keyboard.c (make_lispy_event): Handle the new event type
928 multibyte_char_keystroke.
929
930 * xterm.c: Include coding.h.
931 (XTread_socket): Work around a bug of XmbLookupString. If the
932 input is from XIM, decode it according to the current locale. In
933 that case, generate multibyte_char_keystroke events.
934
b8ddbe71
KH
9352000-08-11 Kenichi Handa <handa@etl.go.jp>
936
937 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
938 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
939
47589c8c
GM
9402000-08-10 Gerd Moellmann <gerd@gnu.org>
941
942 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
943 (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
944 (move_it_in_display_line_to): Record iterator's ascent and descent
945 before producing glyphs, and restore them when we know the glyph
946 doesn't fit on the line.
947 (move_it_to): Restructured so that it's easier to debug. If
948 moving to a vpos, and not moving to an x or character position,
949 stop as soon as the specified vpos is reached; don't move further
950 into that line because that might change the computed line height.
951 (try_cursor_movement): New function, extracted from the cursor
952 movement branch of redisplay_window. If ending on a partially
953 visible line, don't try to scroll if the cursor line is taller
954 than the window.
955 (redisplay_window): Use try_cursor_movement.
956
957 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
958 because that function doesn't cope with variable-height lines.
959
960 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
961 box cursor because that's better visible for large images.
962
c51bacd6
MB
9632000-08-10 Miles Bader <miles@gnu.org>
964
965 * w32term.c (note_mouse_highlight): Update calls to overlays_at.
966
bea56df7
GM
9672000-08-10 Gerd Moellmann <gerd@gnu.org>
968
969 * xdisp.c (Vmessages_buffer_name): New variable.
970 (message_dolog): Use it.
971 (syms_of_xdisp): Initialize it.
972
99cd7364
EZ
9732000-08-10 Eli Zaretskii <eliz@is.elta.co.il>
974
975 * msdos.c (IT_note_mouse_highlight): Update the calls to
976 overlays_at.
977 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
978 redundant now that keyboard.h is included.
979
7d093d56
EZ
9802000-08-09 Eli Zaretskii <eliz@is.elta.co.il>
981
982 * keyboard.c (kbd_buffer_events_waiting): New function.
983
984 * keyboard.h (kbd_buffer_events_waiting): Add prototype.
985
986 * msdos.c: Include keyboard.h.
987 (XMenuActivate): Empty no_event events from the event buffer. If
988 no events are left after that, call clear_input_pending.
989 (mouse_clear_clicks): New function, code moved from mouse_init.
990 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
991 mouse driver to ``forget'' any past clicks.
992
993 * Makefile.in (msdos.o): Depend on keyboard.h.
994
41e757a6
GM
9952000-08-09 Gerd Moellmann <gerd@gnu.org>
996
8e7bd231
GM
997 * lisp.h (input_pending): External declaration.
998
999 * dispextern.h (Qredisplay_dont_pause): Declare extern.
1000
1001 * xdisp.c (echo_area_display): Display thoroughly if input is
1002 pending. Bind redisplay-dont-pause to t during the redisplay.
1003 in case input is pending.
1004
1005 * dispnew.c (Qredisplay_dont_pause): New variable.
1006 (syms_of_display): Initialize and staticpro it.
1007 (update_frame_1): Don't interrupt the display for pending input if
1008 redisplay_dont_pause is set.
1009
43028b7e
GM
1010 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
1011
41e757a6
GM
1012 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
1013
2f2174fa
KH
10142000-08-09 Miles Bader <miles@lsi.nec.co.jp>
1015
1016 * callproc.c (Fcall_process): Terminate the unwind-protect around
1017 the post-read-conversion of coding system.
1018
0a6fd67e
MB
1019 * buffer.c (overlays_at): Add CHANGE_REQ parameter.
1020 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
1021 * buffer.h (overlays_at): Update prototype.
1022 * xdisp.c (next_overlay_change): Update call to overlays_at.
1023 * xfaces.c (face_at_buffer_position): Likewise.
1024 * textprop.c (Fget_char_property): Likewise.
1025 * xterm.c (note_mouse_highlight): Likewise.
1026
0c80756e
MB
1027 * minibuf.c (do_completion): Don't consider a simple change of
1028 case as `completion'.
1029
975f250a
KR
10302000-08-08 Ken Raeburn <raeburn@gnu.org>
1031
b347b3fd
KR
1032 * keyboard.c (syms_of_keyboard): Initialize
1033 last_point_position_buffer.
1034 * undo.c (record_delete): Make sure last_point_position_buffer is
1035 a buffer before comparing pointers.
1036
1037 * coding.h (decode_coding_string): Declare.
1038
1039 * intervals.h (Fprevious_single_char_property_change): Declare.
1040
1041 * textprop.c (Fprevious_single_char_property_change): Don't do
1042 arithmetic directly on lisp objects.
1043
25ad1371 1044 * editfns.c (find_field): Use EQ, not ==, to compare Lisp
b347b3fd
KR
1045 objects.
1046
1047 * keyboard.h (menu_item_eval_property): Declare.
1048
1049 * xdisp.c (message_dolog): Save and protect string "*Messages*" to
1050 reuse as buffer name, instead of recreating (and discarding) every
1051 time a message is logged.
1052 (with_echo_area_buffer): Make callback arg A2 a lisp object.
25ad1371
GM
1053 (current_message_1, truncate_message_1, set_message_1)
1054 (display_echo_area_1, resize_mini_window_1): Signatures changed.
1055 (current_message, truncate_echo_area, display_echo_area)
1056 (resize_echo_area_axactly): Changed calls.
b347b3fd 1057
975f250a 1058 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
25ad1371 1059 Lisp object.
975f250a 1060 (Ffind_coding_systems_region_internal): First argument to Fappend
25ad1371 1061 must be an integer, not a Lisp object.
975f250a 1062
46dc9912
KH
10632000-08-08 Kenichi Handa <handa@etl.go.jp>
1064
1065 * charset.c (Fchar_width): Doc fix.
1066
9f6d1a6c
GM
10672000-08-08 Gerd Moellmann <gerd@gnu.org>
1068
1069 * charset.c (Fstring_width): Doc fix.
1070
ff3d9573
GM
10712000-08-07 Gerd Moellmann <gerd@gnu.org>
1072
41e757a6 1073 * xdisp.c (start_display): When starting display on a continuation
49ad1d99
GM
1074 line, clear ascent and descent members of the iterator structure;
1075 the height of the continued line does not affect the height of the
1076 continuation line.
1077 (make_cursor_line_fully_visible): Do nothing if cursor is on a
1078 line taller than the window.
1079 (redisplay_window) <forced window start>: Handle case that the
1080 middle of the window is not found in any row.
1081 (dump_glyph_row): Show more information.
1082 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
1083 first text line in a glyph matrix.
1084
1085 * xterm.c (x_draw_image_foreground): Avoid drawing outside
1086 of the clip area when image doesn't have a mask.
1087
70fc58b3
GM
1088 * fns.c (sweep_weak_table): Fix survival conditions for
1089 key-or-value and key-and-value weakness.
1090
1091 * .gdbinit (xhashtable): New command.
1092
ac0e96ee
GM
1093 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
1094 tables out of the list of all weak hash tables.
1095
ff3d9573
GM
1096 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
1097 a new buffer is created, make sure echo_area_buffer[] references
1098 the new buffer.
1099
e0d8827b
EZ
11002000-08-07 Eli Zaretskii <eliz@is.elta.co.il>
1101
1102 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
1103 the doc string.
1104
c6f35378
KH
11052000-08-07 Kenichi Handa <handa@etl.go.jp>
1106
1107 * syntax.c (skip_chars): Fix previous change. Make the handling
1108 of unibyte string consistent with that of regex search.
1109
1fd4c450
GM
11102000-08-05 Gerd Moellmann <gerd@gnu.org>
1111
e49aa397
GM
1112 * xmenu.c (popup_get_selection): Use xfree instead of free.
1113
1114 * fileio.c (Finsert_file_contents): Use xfree instead of free.
1115
1116 * editfns.c (Ftranspose_regions): Use xfree instead of free.
1117
1118 * callproc.c (child_setup): Use xfree instead of free.
1119
1120 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
1121 instead of malloc.
1122 (run_mac_command, closedir): Use `xfree' instead of `free'.
1123
1124 * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
1125
1126 * eval.c (error): Use xfree instead of free.
1127
1fd4c450
GM
1128 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
1129
1130 * fns.c: Replace `illegal' with `invalid'.
e49aa397 1131 (Fmake_hash_table, make_hash_table): Allow table size of 0.
1fd4c450 1132
82d497fc
KH
11332000-08-05 Kenichi Handa <handa@etl.go.jp>
1134
1135 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
1136 conversion.
1137
59f953a2
NF
11382000-08-04 Noah Friedman <friedman@splode.com>
1139
1140 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
1141 docstring.
1142
688351f2
GM
11432000-08-04 Gerd Moellmann <gerd@gnu.org>
1144
1145 * syntax.c (skip_chars): Fix typo in error message.
1146
2dad51cc
AS
11472000-08-04 Andreas Schwab <schwab@suse.de>
1148
1149 * m/ia64.h: Moved from s/ia64.h.
1150
99bb2c60
KH
11512000-08-04 Kenichi Handa <handa@etl.go.jp>
1152
082a1df2
KH
1153 * process.c (read_process_output): Big simplification. Handle
1154 composition and post-read-conversion of coding system correctly.
1155 (send_process): Handle composition correctly.
1156
1157 * callproc.c (Fcall_process): Handle post-read-conversion of
1158 coding system if any.
1159
99bb2c60
KH
1160 * coding.c (decode_coding_iso2022): More strict check for handling
1161 single shifting.
082a1df2
KH
1162 (coding_restore_composition): Pay attention to the case that
1163 cmp_data is not set properly (because of invalid code in the
1164 source text).
1165 (run_pre_post_conversion_on_str): Include text properties in the
1166 resulting string.
1167 (decode_coding_string): Set members of coding correctly.
99bb2c60 1168
f4988be7
GM
11692000-08-03 Gerd Moellmann <gerd@gnu.org>
1170
1171 * s/ia64.h: New file.
1172
1173 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
1174 Use NULL instead of 0 at the end of variable argument list of
1175 XtVaGetValues and XtVaSetValues, because 0 fails on systems where
1176 sizeof (int) < sizeof (void *).
1177
1178 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
1179 of variable argument lists of XtVaGetValues and XtVaSetValues.
1180
1181 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
1182 variable argument lists of XtVaGetValues and XtVaSetValues.
1183
ead53494
GM
11842000-08-02 Gerd Moellmann <gerd@gnu.org>
1185
1186 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
1187 (xrealloc, xmalloc): Use size_t. Some callers adjusted.
1188
1189 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
1190 prototype.
1191
1192 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
1193 in call to Fsingle_key_description.
1194
1195 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
1196 Callers changed.
1197
11982000-08-02 Colin Walters <walters@cis.ohio-state.edu>
1199
1200 * window.c (display_buffer_reuse_frames): New variable.
1201 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
1202 frames displaying BUFFER.
1203 (syms_of_window): Define Lisp variable
1204 display-buffer-reuse-frames.
1205
10b0f752
MB
12062000-08-01 Miles Bader <miles@gnu.org>
1207
1208 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
1209 when to constrain NEW_POS (they were pretty screwed up before).
1210
16425c4a
EZ
12112000-07-31 Eli Zaretskii <eliz@is.elta.co.il>
1212
1213 * msdos.c (run_msdos_command): Save and restore the master
1214 environment, for the case that child_setup signals an error.
1215 When mirroring slashes in DOS shell commands, don't fail when
1216 argv[2] has embedded blanks.
da288c14
EZ
1217 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
1218 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
1219 (dos_ttraw): Call mouse_setup_buttons.
16425c4a
EZ
1220
1221 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
1222 using alloca; free it after run_msdos_command returns.
1223
27f73852
DL
12242000-07-27 Dave Love <fx@gnu.org>
1225
1226 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
1227 define.
1228 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
1229 working.
1230
1231 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
1232
c0261b5e
EZ
12332000-07-27 Eli Zaretskii <eliz@is.elta.co.il>
1234
1235 * editfns.c (lisp_time_argument): Fix last change.
1236
b548072f
GM
12372000-07-27 Gerd Moellmann <gerd@gnu.org>
1238
3ab82477
GM
1239 * fns.c (Fdelete): Make it work on vectors and strings in addition
1240 to lists.
1241
b548072f
GM
1242 * fns.c (Qkey_or_value, Qkey_and_value): New variables.
1243 (syms_of_fns): Initialize new variables.
1244 (sweep_weak_table): Handle weakness `key-or-value' and
1245 `key-and-value'.
1246 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
1247 weakness, with t meaning the same as `key-and-value'.
1248
91ae8751
KH
12492000-07-27 Kenichi Handa <handa@etl.go.jp>
1250
1251 * coding.h (struct coding_system): Member safe_charset deleted.
1252
1253 * coding.c (Qsafe_charsets): This variable deleted.
1254 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
1255 variables.
1256 (coding_safe_chars): New function.
1257 (CODING_SAFE_CHAR_P): New macro.
1258 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of
1259 checking safe_charsets member of the coding system. Caller
1260 changed.
1261 (detect_coding_iso2022): New local variable safe_chars.
1262 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
1263 safe_charsets member of the coding system.
1264 (decode_coding_iso2022): New local variable safe_chars.
1265 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
1266 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
1267 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed.
1268 (ENCODE_UNSAFE_CHARACTER): New macro.
1269 (encode_coding_iso2022): New local variable safe_chars. Check
1270 unsafe chars.
1271 (setup_coding_system): Delete the code to initialize
1272 coding->safe_charses
1273 (intersection, find_safe_codings): New functions.
1274 (Ffind_coding_systems_region_internal): New function.
1275 (syms_of_coding): Defsubr it. Initialize Qsafe_chars,
1276 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp
1277 variable and initialize it.
1278
1279 * fns.c (char_table_ref_and_index): New function.
1280
1281 * lisp.h (char_table_ref_and_index): Add prototype.
1282
34a7a267
SS
12832000-07-26 Sam Steingold <sds@gnu.org>
1284
1285 * editfns.c (lisp_time_argument): Added third argument `usec'.
3ab82477 1286 (Ffloat_time): New built-in Lisp function.
34a7a267 1287
a95cb10a
GM
12882000-07-26 Gerd Moellmann <gerd@gnu.org>
1289
3353ef5a
GM
1290 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
1291 for the character code.
1292
1293 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
1294 GNU/Linux.
1295
a95cb10a
GM
1296 * xmenu.c (menu_highlight_callback): Call show_help_echo directly
1297 if called for a popup menu.
1298 (xmenu_show): Store help string in widget values.
1299
b4a12321
DL
13002000-07-26 Dave Love <fx@gnu.org>
1301
1302 * syswait.h: Move some definitions.
1303 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
1304 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More
1305 perspicuous definitions.
1306 (WTERMSIG): Fix bit pattern used.
1307
13f5ad37
KH
13082000-07-26 Kenichi Handa <handa@etl.go.jp>
1309
1310 * print.c (print_object): If vector printing is truncated, print
1311 "..." to indicate it as well as the case of list printing.
1312
070fe99c
GM
13132000-07-25 Gerd Moellmann <gerd@gnu.org>
1314
969065c3
GM
1315 * xdisp.c (next_element_from_display_vector): Improve comments.
1316
1317 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
1318 for the character code, and the rest for the face id as in 20.x.
1319 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
1320
1321 * window.c (window_display_table): Cleaned up.
1322
070fe99c
GM
1323 * syntax.c (Fforward_word): Add last arg nil in call of
1324 Fconstrain_to_field.
1325
bad77ef7
EZ
13262000-07-25 Eli Zaretskii <eliz@is.elta.co.il>
1327
969065c3 1328 * fileio.c (Frename_file) [DOS_NT]: If the file names are
bad77ef7
EZ
1329 identical but for the letter-case, don't call
1330 barf_or_query_if_file_exists.
1331
c28da489
MB
13322000-07-25 Miles Bader <miles@gnu.org>
1333
1334 * editfns.c (find_field): Honor special `boundary' fields.
1335 (Qboundary): New variables.
1336 (syms_of_editfns): Initialize Qboundary.
1337 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
1338 Use scan_buffer instead of find_before_next_newline, because it
1339 allows us to detect the boundary case where there's a newline at
1340 the search limit.
1341 * lisp.h (Fconstrain_to_field): Update external declaration.
1342
e3c31fd5
GM
13432000-07-24 Gerd Moellmann <gerd@gnu.org>
1344
1345 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
1346 if that is nil.
c28da489 1347
c66c29a2
DL
13482000-07-24 Dave Love <fx@gnu.org>
1349
1350 * s/sunos4-0.h, s/sol2.h:
1351 (LIBS_TERMCAP): Move from m/sparc.h.
1352
1353 * m/sparc.h (TERMINFO): Moved to system files (probably only
1354 relevant for sunos4 judging by its vintage).
1355 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
1356 __arch64__.
1357
fbe0a958
EZ
13582000-07-24 Eli Zaretskii <eliz@is.elta.co.il>
1359
1360 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
1361 name to single_keymap_panes.
1362
7d88e5c9
AS
13632000-07-24 Andreas Schwab <schwab@suse.de>
1364
1365 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
1366
e024b101
GM
13672000-07-24 Gerd Moellmann <gerd@gnu.org>
1368
1369 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
1370 parameters instead of using int parameters. Expect FN to accept
1371 EMACS_INT parameters.
1372 (display_echo_area, resize_echo_area_axactly, current_message)
1373 (truncate_echo_area, set_message_1): Call with_echo_area_buffer
1374 with new argument list.
1375 (resize_mini_window_1): New callback function.
1376 (current_message_1, truncate_message_1, set_message_1): Change
1377 parameter lists to the new format expected by
1378 with_echo_area_buffer.
1379
25c1a9ce
KH
13802000-07-24 Kenichi Handa <handa@etl.go.jp>
1381
1382 * fontset.c (fontset_ref): Remove INLINE declaration.
1383 (fontset_ref_via_base): Likewise.
1384 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
1385 to downcase.
1386
7f987ac0
EZ
13872000-07-23 Eli Zaretskii <eliz@is.elta.co.il>
1388
1389 * msdos.c (IT_note_mouse_highlight): Process overlays in the
1390 correct order of priority. If help echo was found in an overlay,
1391 use that overlay as the object in which the help echo was found.
1392
e2db3069
MB
13932000-07-22 Miles Bader <miles@gnu.org>
1394
1395 * textprop.c (Fprevious_single_char_property_change): The initial
1396 property value should be from the position preceding POSITION, not
1397 following it.
1398
5e3203e4
EZ
13992000-07-22 Eli Zaretskii <eliz@is.elta.co.il>
1400
1401 * coding.c (syms_of_coding): Doc fix for
1402 inhibit-iso-escape-detection.
1403
62145073
GM
14042000-07-21 Gerd Moellmann <gerd@gnu.org>
1405
c20aeb83
GM
1406 * xterm.c (note_mouse_highlight): Process overlays in the right
1407 order of priority.
34a7a267 1408
743934db
GM
1409 * keyboard.c (show_help_echo, gen_help_event): Extend comments.
1410
1411 * xterm.c (note_mouse_highlight): If help-echo was found in an
1412 overlay, use that overlay as the object in which the help was
1413 found.
1414
d1dc7e43 1415 * window.c (foreach_window_1): Fix typo reversing an if-condition.
34a7a267 1416
62145073
GM
1417 * window.c (foreach_window): Instead of a fake variable argument
1418 list, take one USER_DATA argument.
1419 (foreach_window_1): Likewise, and call callback functions with two
1420 args, the window and USER_DATA.
1421 (struct check_window_data): New struct.
1422 (check_window_containing): Use it.
1423 (window_from_coordinates): Set up a struct check_window_data for
1424 foreach_window.
1425 (add_window_to_list, freeze_window_start): Change parameters
1426 according to new calling convention.
1427
1428 * window.h (foreach_window): Change prototype.
1429
1430 * buffer.c (Fprevious_overlay_change): Avoid memory leak.
1431
14322000-07-21 Eli Zaretskii <eliz@is.elta.co.il>
1433
1434 * xmenu.c (menu_help_callback): Call show_help_echo with
1435 additional arguments OBJECT and POS.
1436
11270583
KH
14372000-07-21 Kenichi Handa <handa@etl.go.jp>
1438
07b14857
KH
1439 * data.c (Faset): Allow storing any multibyte character in a
1440 string. Convert unibyte string to multibyte if necessary.
1441
11270583
KH
1442 * xfns.c (x_encode_text): New function.
1443 (x_set_name): Use x_encode_text.
1444 (x_set_title): Likewise.
1445
1446 * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
1447
1448 * xterm.h (x_encode_text): Add prototype.
1449
bc75b4fd
DL
14502000-07-20 Dave Love <fx@gnu.org>
1451
1452 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use
1453 xfree, not free.
1454
48c14970
EZ
14552000-07-20 Eli Zaretskii <eliz@is.elta.co.il>
1456
1457 * msdos.c (help_echo_window): New variable.
1458 (syms_of_msdos): Initialize and staticpro it.
1459 (IT_note_mode_line_highlight): Set help_echo_window.
1460 (IT_note_mouse_highlight): Ditto.
1461 (dos_rawgetc): Store help_echo_window in the second event produced
1462 for HELP_EVENTs.
1463
1464 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
1465 Record the object that generated the help echo and the position of
1466 that object in help_echo_object and help_echo_pos. Record that
1467 some glyphs in a row are displayed in mouse-face.
1468 (IT_update_begin): Don't clear mouse highlight unless one of the
1469 enabled glyph rows is marked as being displayed in mouse-face.
1470 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object
1471 and position recorded in help_echo_object and help_echo_pos to the
1472 event queue.
1473 (IT_menu_display): Accept a new argument PN: the pane number of
1474 the current menu pane. Record the pane number and the item
1475 number of the item which has associated help string.
1476 (XMenuActivate): Update the prototype for help_callback in
1477 function declaration. Call IT_menu_display with the current menu
1478 pane number as an additional argument. Call help_callback with
1479 two additional arguments: the pane number and the item number of
1480 the menu item associated with the help text.
1481 (help_echo_object, help_echo_pos): New variables.
1482 (syms_of_msdos): Initialize them and staticpro help_echo_object.
1483
1484 * msdos.h (XMenuActivate): Update prototype.
1485
4279296d
GM
14862000-07-19 Gerd Moellmann <gerd@gnu.org>
1487
47db06aa
GM
1488 * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
1489 Add some more prototypes.
1490
1491 * xterm.c, xterm.h: Add some more prototypes.
1492
1493 * lisp.h (Fnext_single_char_property_change): Add prototype.
1494
1495 * dispnew.c (direct_output_for_insert): Remove confusing
1496 outer local variable mouse_face_overwritten_p.
1497 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
1498
4279296d
GM
1499 * alloc.c (allocate_string_data): Don't copy old string contents.
1500
670acd62
KH
15012000-07-19 Kenichi Handa <handa@etl.go.jp>
1502
1503 * coding.c (code_convert_region): Delete text properties before
1504 shrinking the conversion region.
1505
7cea38bc
GM
15062000-07-18 Gerd Moellmann <gerd@gnu.org>
1507
dc1cac59
GM
1508 * dispnew.c (update_text_area): Write the whole row if it
1509 has mouse-face in it.
1510
85a8aca9
GM
1511 * xfaces.c (face-alternative-font-family-alist): Remove
1512 DEFVAR_LISP; staticpro instead.
1513
34a7a267 1514 * xmenu.c (menu_help_callback): Call show_help_echo with
7cea38bc
GM
1515 new arguments.
1516
1517 * keyboard.c (show_help_echo): Add parameter WINDOW.
1518 (read_char): Call show_help_echo with window extracted from Lisp
1519 help event.
1520 (gen_help_event): Add parameter WINDOW.
1521
1522 * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
1523
1524 * xterm.c (help_echo_window): New variable.
1525 (note_mouse_highlight, note_tool_bar_highlight): Set
1526 help_echo_window.
1527 (XTread_socket): Pass help_echo_window to gen_help_event.
1528 (syms_of_xterm): Initialize and staticpro help_echo_window.
1529
f8276b77
DL
15302000-07-18 Dave Love <fx@gnu.org>
1531
1532 * Makefile.in: Fix dependencies of blockinput.h on atimer.h,
1533 systime.h.
1534
088831a6
GM
15352000-07-18 Gerd Moellmann <gerd@gnu.org>
1536
3d6cd763
GM
1537 * alloc.c (allocate_string_data): If string had already data
1538 assigned, copy old contents to new string data.
1539
1540 * coding.c (syms_of_coding): Fix typo in spelling of variable
1541 `inhibit-iso-escape-detection'.
1542
088831a6
GM
1543 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
1544
1545 * Makefile.in: Add dependencies on dispextern.h.
1546 (alloca.o): Don't define malloc and define EMACS_FREE instead of
1547 `free'; both can conflict with system header files.
1548
bc8a8d55
KH
15492000-07-18 Kenichi Handa <handa@etl.go.jp>
1550
1551 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
1552 undefined.
1553
069f5950
DL
15542000-07-18 Dave Love <fx@gnu.org>
1555
1556 * window.c (Fwindow_list): Declare arg `window'.
1557
aa96c820
KH
15582000-07-18 Kenichi Handa <handa@etl.go.jp>
1559
1560 * coding.c (setup_coding_system): Don't override the explicitly
1561 specified designations.
1562
06be8d32
MB
15632000-07-15 Miles Bader <miles@gnu.org>
1564
1565 * editfns.c (char_property_eq, char_property_stickiness): Renamed
1566 from `text_property_eq' and `text_property_stickiness', respectively.
1567 (find_field, Fconstrain_to_field, char_property_eq)
1568 (char_property_stickiness): Changed to call char-property functions
1569 instead of text-property-only ones.
1570
1571 * textprop.c (Fnext_single_char_property_change): Made a subr (was
1572 `next_single_char_property_change'). Do more error checking, and
1573 cleanup limit behavior.
1574 (Fprevious_single_char_property_change): New function.
1575 (syms_of_textprop): Initialize new subrs.
1576
1577 * xdisp.c (display_prop_end, invisible_text_between_p):
1578 Call Fnext_single_char_property_change instead of
1579 next_single_char_property_change.
1580
3fddcdc3
JR
15812000-07-15 Jason Rumney <jasonr@gnu.org>
1582
1583 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
1584 after menu is finished with.
1585 (add_menu_item): Only consider wv->title as a menu title.
1586 (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
1587
1588 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
1589 null title.
1590 (FONT_REGEXP): Remove unused macro, and its sub-components.
1591 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
1592
1593 * w32term.c (help_echo_object, help_echo_pos): New variables.
1594 (note_mode_line_highlight): Store additional information about the
1595 help-echo in help_echo_object and help_echo_pos. Check both
1596 `local-map' and `keymap' properties for changing the cursor
1597 (note_mouse_highlight): Store additional information about the
1598 help-echo in help_echo_object and help_echo_pos.
1599 (note_tool_bar_highlight): Set help_echo_object to nil and
1600 help_echo_pos to -1.
1601 (w32_read_socket): Use gen_help_event instead of filling
1602 input_events manually.
1603 (syms_of_w32term): Staticpro help_echo_object.
1604 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
1605 set, arrange for a mouse-highlight redisplay in
1606 XTframe_up_to_date.
1607 (x_clear_mouse_face): New function.
1608 (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
1609 (x_update_window_begin): No need to turn off the mouse
1610 highlight here.
1611 (show_mouse_face): Set the mouse_face_p flag of glyph rows
1612 depending on whether they contain glyphs highlighted in
1613 mouse-face.
1614 (x_fill_stretch_glyph_string): Consume runs of stretch
1615 glyphs instead of a single one.
1616 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
1617 with new argument list.
1618 (x_set_glyph_string_gc): Make sure the face's GC is valid.
1619 (x_append_glyph, x_append_composite_glyph)
1620 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
1621 changes in struct glyph starting 1999-12-27. See comments for
1622 xterm.c on 2000-07-05.
1623
178c5d9c
SS
16242000-07-14 Sam Steingold <sds@gnu.org>
1625
1626 * xfaces.c (realize_x_face): Fix the last patch:
1627 check `default_face' before dereferencing.
1628
6fe533f6
DL
16292000-07-14 Dave Love <fx@gnu.org>
1630
069f5950 1631 * syntax.c (back_comment): Add null default in switch (for pcc).
6fe533f6 1632
dd7b81cf
KH
16332000-07-14 Kenichi Handa <handa@etl.go.jp>
1634
0693904a 1635 * xfaces.c (realize_x_face): Make fontset using the base of the
178c5d9c 1636 default_face's fontset, not using the default fontset.
0693904a 1637
dd7b81cf
KH
1638 * coding.c (inhibit_iso_escape_detection): New variable.
1639 (syms_of_coding): Make it a Lisp variable.
1640 (detect_coding_iso2022): If inhibit_iso_escape_detection is
1641 nonzero, ignore ISO2022's escape sequence.
1642
d5aa31d8
GM
16432000-07-14 Gerd Moellmann <gerd@gnu.org>
1644
e5acf0ca
GM
1645 * alloca.c (malloc) [emacs]: Define as xmalloc.
1646
bd23a692
GM
1647 * xfns.c (Fx_show_tip): If frame parameters contain a position,
1648 use that instead of the mouse position. Add parameters DX and DY.
1649
1650 * dispextern.h (Fx_show_tip): Adjust number of parameters
1651 in prototype.
1652
9662da0b
GM
1653 * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
1654 if HELP is a function, call it with OBJECT and POS as parameters
1655 to get the help to display.
1656 (gen_help_event, kbd_buffer_store_help_event): New functions.
1657 (kbd_buffer_get_event): Construct the Lisp help-event differently.
1658 (read_char): Call show_help_echo with new parameters.
1659
178c5d9c 1660 * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
9662da0b
GM
1661 Add prototypes.
1662
1663 * xterm.c (help_echo_object, help_echo_pos): New variables.
1664 (note_mode_line_highlight): Store additional information about the
1665 help-echo in help_echo_object and help_echo_pos. Check both
1666 `local-map' and `keymap' properties for changing the cursor
1667 (note_mouse_highlight): Store additional information about the
1668 help-echo in help_echo_object and help_echo_pos.
1669 (note_tool_bar_highlight): Set help_echo_object to nil and
1670 help_echo_pos to -1.
1671 (XTread_socket): Use gen_help_event instead of filling
1672 input_events manually.
1673 (syms_of_xterm): Staticpro help_echo_object.
1674
1675 * xmenu.c (menu_highlight_callback): Use
1676 kbd_buffer_store_help_event instead of setting up and input_event
1677 structure manually.
1678
1679 * xdisp.c (eval_form): GCPRO argument sexpr.
1680 (call_function): New function.
1681 (handle_single_display_prop): Use call_function and FUNCTIONP
1682 instead of checking whether if font_height is a symbol and
1683 using eval_form.
1684
1685 * eval.c (internal_condition_case_2): New function.
1686
1687 * lisp.h (FUNCTIONP): New macro.
1688 (internal_condition_case_2, call_function): Add prototypes.
1689
d5aa31d8
GM
1690 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
1691 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
1692 Always set `arg' member of input_events.
1693 (construct_menu_click): Unused function removed.
1694
1695 * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
1696
1697 * w32term.c (construct_mouse_click, construct_mouse_wheel)
1698 (construct_drag_n_drop, x_scroll_bar_handle_click)
1699 (w32_read_socket): Always set `arg' member of input_events.
1700
1701 * keyboard.c (show_help_echo): Use eval_form. Add comment.
1702
1703 * lisp.h (eval_form): Add prototype.
1704
1705 * xdisp.c (eval_form): Make it externally visible.
1706
0f1a9b23
GM
17072000-07-13 Gerd Moellmann <gerd@gnu.org>
1708
1709 * xterm.c (x_handle_tool_bar_click): Store the frame in the
1710 frame_or_window slot of TOOL_BAR_EVENT input events instead of
1711 consing. For prefix events, store the frame in the `arg' slot of
1712 the event, otherwise store the key there.
1713 (XTread_socket): Instead of consing, use the frame_or_window slot
1714 of HELP_EVENTs for the frame, and the `arg' slot for the help
1715 string.
1716
1717 * xmenu.c (menu_highlight_callback): Store help string in the
1718 `arg' member of the input event; don't cons.
1719 (menubar_selection_callback): Use the `arg' slot of input events
1720 to queue additional information, instead of consing.
1721
1722 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
1723
1724 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
1725 TOOL_BAR_EVENTs.
1726 (w32_read_socket): Adapt to changes in HELP_EVENTs.
1727
1728 * w32menu.c (menubar_selection_callback): Use the `arg' slot of
1729 input events to queue additional information, instead of consing.
1730
1731 * keyboard.c (kbd_buffer_gcpro): Renamed from
1732 kbd_buffer_frame_or_window. Now used for all Lisp objects
1733 referenced from the input queue.
1734 (kbd_buffer_store_event): Always use structure assignment for
1735 copying input events. Record all Lisp objects referenced from
1736 events in kbd_buffer_gcpro.
1737 (kbd_buffer_get_event): Construct Lisp `help-echo' events
1738 differently from input events. Test for prefix menu_bar_events
1739 and TOOL_BAR_EVENTs differently. Reset all slots used by an input
1740 event in kbd_buffer_gcpro to nil.
1741 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
1742 frame_or_window is equal to its arg member as prefix events.
1743 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
1744 used by an input event to nil.
1745 (init_keyboard): Use two times the size of the input queue
1746 for kbd_buffer_gcpro.
1747 (syms_of_keyboard): Likewise.
1748
1749 * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
1750 USER_SIGNAL_EVENT.
1751
1752 * termhooks.h (struct input_event): Add member `arg'.
1753 (MENU_BAR_EVENT): Renamed from menu_bar_event.
1754 (USER_SIGNAL_EVENT): Renamed from user_signal.
1755
1756 * xfaces.c (ASET): Remove definition.
1757
1758 * lisp.h (AREF, ASET, ASIZE): New macros.
1759
1760 * fontset.c (AREF, ASIZE): Remove definitions.
1761
1762 * fns.c (AREF): Remove definition.
178c5d9c 1763
0f1a9b23
GM
1764 * composite.c (AREF): Remove definition.
1765
712eaef2
GM
17662000-07-12 Gerd Moellmann <gerd@gnu.org>
1767
d8ee7803
GM
1768 * dispnew.c (redraw_overlapped_rows): Add missing local.
1769 (scrolling_window): Remove debug code.
1770
712eaef2
GM
1771 * xdisp.c (try_window_reusing_current_matrix, try_window_id):
1772 Before scrolling, turn off a mouse-highlight in the window
1773 being scrolled.
1774
1775 * xterm.c (x_update_window_end): Add parameter
1776 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight
1777 redisplay in XTframe_up_to_date.
1778 (x_clear_mouse_face): New function.
1779 (x_redisplay_interface): Add pointer to x_clear_mouse_face.
1780
1781 * dispnew.c (make_current): Preserve the mouse_face_p flag of the
1782 current glyph row.
1783 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set
1784 it when any row is written to that contains glyphs highlighted in
1785 mouse-face.
1786 (update_window): Call the window update end hook with new
1787 parameter MOUSE_FACE_OVERWRITTEN_P.
1788 (direct_output_for_insert): Give up if row contains mouse-face.
1789
1790 * dispextern.h (struct redisplay_interface): Add parameter
1791 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
1792 (clear_mouse_face): New function pointer member.
1793
02010917
SM
17942000-07-11 Stefan Monnier <monnier@cs.yale.edu>
1795
1796 * syntax.c (back_comment): Use one switch rather than a few `if's.
1797 Obey open_paren_in_column_0_is_defun_start.
1798 When reverting to the `slow' method, try to nicely handle the case
1799 of nested comments by checking that the comment-starter we found
1800 does indeed match the comment-ender.
1801 (scan_sexps_forward, scan_sexps_forward):
1802 Ignore excessive opening parenthesis rather than throwing an error.
1803
d76c03ea
GM
18042000-07-11 Gerd Moellmann <gerd@gnu.org>
1805
1806 * doc.c (Fsubstitute_command_keys): Handle case that a GC
1807 in Fwhere_is_internal or get_keymap_1 relocates string contents.
1808
1809 * dispnew.c (direct_output_forward_char): Give up if currently
1810 displaying a message instead of the minibuffer contents.
1811
1812 * xterm.c (x_update_window_begin): No need to turn off the mouse
1813 highlight here.
1814 (show_mouse_face): Set the mouse_face_p flag of glyph rows
1815 depending on whether they contain glyphs highlighted in
1816 mouse-face.
1817
1818 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set,
1819 compare the mouse_face_p flags of both rows.
1820
1821 * dispextern.h (struct glyph_row): Add flag mouse_face_p.
1822
d55ead18
EZ
18232000-07-11 Eli Zaretskii <eliz@is.elta.co.il>
1824
1825 * keyboard.c (show_help_echo): Accept additional parameter
1826 ok_to_overwrite_keystroke_echo.
1827 (read_char): Call show_help_echo with a zero
1828 ok_to_overwrite_keystroke_echo argument.
1829 * keyboard.h (show_help_echo): Update prototype of
1830 show_help_echo.
1831 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
1832 ok_to_overwrite_keystroke_echo argument.
1833 * w32menu.c (w32_menu_display_help): Call show_help_echo with
1834 non-zero ok_to_overwrite_keystroke_echo argument.
1835
df75b1a3
GM
18362000-07-10 Gerd Moellmann <gerd@gnu.org>
1837
4b92c49a
GM
1838 * xdisp.c (try_window_id): If changes are all below what is
1839 displayed in the window, and point is in the window, we still
1840 might have to find point on the display.
1841
1842 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
1843 glyphs instead of a single one.
1844 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
1845 with new argument list.
1846 (x_set_glyph_string_gc): Make sure the face's GC is valid.
1847
df75b1a3
GM
1848 * keymap.c (get_keymap_1): Add comment that this function can GC.
1849 (where_is_internal_2, where_is_internal_1): Add GCPROs, add
1850 comment that functions can GC.
1851 (Fset_keymap_parent): GCPRO arg KEYMAP.
1852
4314cf3e
EZ
18532000-07-10 Eli Zaretskii <eliz@is.elta.co.il>
1854
1855 * msdos.c (XMenuActivate): After exiting the menu, restore the
1856 echo area message and erase it.
1857
ab49ce15
KH
18582000-07-10 Kenichi Handa <handa@etl.go.jp>
1859
1860 * fontset.c (Ffontset_info): Make the return value more compatible
1861 with that of Emacs 20.
1862
090a072f
GM
18632000-07-07 Gerd Moellmann <gerd@gnu.org>
1864
1865 * eval.c (Fsignal): Handle case that backtrace_list is null.
1866
f92de4a6
KH
18672000-07-07 Kenichi Handa <handa@etl.go.jp>
1868
1869 * ccl.c (Fccl_execute): Typo fixed.
1870
dd8888a1
GM
18712000-07-06 Gerd Moellmann <gerd@gnu.org>
1872
e5c81191 1873 * window.c (window_loop): Add missing gcpro1 local variable.
178c5d9c 1874
dd8888a1
GM
1875 * window.c (Fwindow_list): Reverse list at the end.
1876 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil
1877 means allow windows on OWINDOW's frame, only.
1878 (window_loop): Simplified; use Fwindow_list.
1879
1880 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
1881
485266d0
GM
18822000-07-05 Gerd Moellmann <gerd@gnu.org>
1883
1884 * xterm.c (XTread_socket): Increment handling_signal at the start,
1885 decrement it at the end.
1886
1887 * eval.c (handling_signal): New variable.
1888 (Fsignal): Abort if handling_signal is non-zero.
1889
1890 * lisp.h (handling_signal): External declaration.
178c5d9c 1891
485266d0
GM
1892 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
1893
80fcd514
KR
18942000-07-05 Ken Raeburn <raeburn@gnu.org>
1895
1896 Sound support for NetBSD through "Linux emulation" support:
1897 * config.in (HAVE_SOUNDCARD_H): Undef.
1898 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
1899 * Makefile.in (LIBSOUND): New variable.
1900 (LIBES): Include it.
1901 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
1902 <soundcard.h>.
1903 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
1904 elsewhere.
1905 (vox_open): Use DEFAULT_SOUND_DEVICE.
1906 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
1907
d5c5cddd
GM
19082000-07-05 Gerd Moellmann <gerd@gnu.org>
1909
1910 * print.c (print_error_message): If Vsignaling_function is set,
1911 show it in *Messages*.
1912
1913 * lisp.h (Vsignaling_function): External declaration.
1914
1915 * eval.c (Vsignaling_function): New variable.
1916 (Fsignal): Compute it.
1917 (syms_of_eval): Staticpro it.
1918
65171e3a
DL
19192000-07-05 Dave Love <fx@gnu.org>
1920
1921 * syswait.h: Use the autoconf recommended approach. Old code
1922 #if'd out in case we need to revert.
1923
178c5d9c 1924 * config.in (HAVE_SYS_WAIT_H): Added.
65171e3a 1925
e2c46326
AI
19262000-07-05 Andrew Innes <andrewi@gnu.org>
1927
1928 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
1929 when non-NULL instead of __morecore, to take account of buffer
1930 memory. This also solves a problem with spurious memory warnings
1931 on Windows.
1932
1933 * ralloc.c: Make real_morecore non-static.
1934
1935 * eval.c (internal_condition_case): Comment out abort if
1936 interrupt_input_blocked is not zero.
1937
1938 * makefile.nt: Add support for `bootstrap' and related targets.
1939 Include minimal debug info in emacs.exe in release build.
1940 Remove all dependencies on lisp.h, and fixup some others.
1941
1942 * w32.c (init_environment): Install code from 20.7 for providing
1943 default values for environment variables, based on the
1944 executable's own location.
1945 (map_w32_filename): Handle filenames that are longer than
1946 MAX_PATH.
1947 (sys_socket): Install socket inheritance bug fix from 20.7.
1948
1949 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
1950 here via blockinput.h).
1951
a027a91b
SM
19522000-07-05 Stefan Monnier <monnier@cs.yale.edu>
1953
e4b31601
SM
1954 * w32menu.c (w32_menu_display_help):
1955 * xmenu.c (menu_help_callback): Use show_help_echo.
a027a91b
SM
1956
1957 * keyboard.h (show_help_echo): Declare.
1958
1959 * keyboard.c (show_help_echo): New function, extracted from read_char.
1960 Feval its `msg' argument if it's a cons cell.
1961 (read_char): Use it.
4cf8d9d5 1962 (follow_key): Pass `autoload' to get_keyelt.
a027a91b 1963
178c5d9c 1964 * xterm.c (note_mode_line_highlight, note_mouse_highlight)
a027a91b 1965 (note_tool_bar_highlight, XTread_socket):
178c5d9c 1966 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
a027a91b
SM
1967 (dos_rawgetc):
1968 * w32term.c (note_mode_line_highlight, note_mouse_highlight)
1969 (note_tool_bar_highlight, w32_read_socket):
1970 Do not gratuitously ignore non-string `help-echo' properties.
1971
88d75730
GM
19722000-07-05 Gerd Moellmann <gerd@gnu.org>
1973
969f7e79
GM
1974 * eval.c (Feval): Put check for interrupt_input_block in #if 0.
1975
71201b00
GM
1976 * window.c (delete_all_subwindows): Reset Vwindow_list.
1977
88d75730
GM
1978 * xterm.c (x_append_glyph, x_append_composite_glyph)
1979 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
1980 changes in struct glyph starting 1999-12-27. Some bit-fields of
1981 struct glyph were not set, which made glyphs unequal when compared
1982 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering
1983 effects were the result. This also depended on the contents of
1984 memory returned by xmalloc. If flickering happens again, activate
1985 the code in clear_glyph_row that's in #if 0. If the flickering is
1986 gone with that, chances are that it is caused by something
1987 similar.
1988
1989 * dispnew.c (clear_glyph_row): Add debug code in #if 0.
178c5d9c 1990
88d75730
GM
1991 * dispextern.h: Add some comments.
1992
1993 * window.c (add_window_to_list): Add parameter LIST.
1994 (window_list): Order list so that, for each frame, windows are
1995 in canonical order, and so that frames appear in the list in
1996 the order given by Vframe_list.
1997 (next_window): Reverse the handling of NEXT_P.
1998
53654733
GM
19992000-07-04 Gerd Moellmann <gerd@gnu.org>
2000
87efd256
GM
2001 * window.c (Vwindow_list): New variable.
2002 (make_window, delete_window): Set Vwindow_list to nil.
2003 (check_window_containing): New function.
2004 (window_from_coordinates): Rewritten.
2005 (add_window_to_list, window_list, candidate_window_p)
2006 (decode_next_window_args, next_window): New functions.
2007 (Fnext_window, Fprevious_window): Rewritten in terms of
2008 next_window.
2009 (Fwindow_list): New function.
2010 (Fother_window): Cleaned up.
2011 (foreach_window): Add a longer "variable argument list". Let
2012 callback function return 0 to indicate that cycling over windows
2013 should stop.
2014 (foreach_window_1): Likewise.
2015 (freeze_window_start): Return int.
2016 (init_window): New function.
2017 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
2018
2019 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
2020 input_event with bzero.
2021 (main): Call init_window.
2022
53654733
GM
2023 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
2024 a menu filter.
2025
4a8c194f
KH
20262000-07-04 Kenichi Handa <handa@etl.go.jp>
2027
2028 * composite.h (make_composition_value_copy): Extern it.
2029
2030 * composite.c (make_composition_value_copy): New function.
2031
2032 * editfns.c (Fformat): While copying text properties, make each
2033 composition property value a copy.
2034
2035 * fns.c (concat): While copying text properties, make each
2036 composition property value a copy.
2037
831a6cb0
GM
20382000-07-03 Gerd Moellmann <gerd@gnu.org>
2039
2f516940
GM
2040 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
2041
178c5d9c 2042 * fns.c (sweep_weak_table): Mark only objects that are not
aee625fa
GM
2043 marked already.
2044
831a6cb0
GM
2045 * frame.c (next_frame, prev_frame): If MINIBUF is a window,
2046 include those frames as candidates which have their focus
2047 redirected to the minibuffer frame.
2048
d9c4f922
SM
20492000-07-03 Stefan Monnier <monnier@cs.yale.edu>
2050
2051 * fns.c (Fputhash): Return `value' rather than nil.
2052
3780bc22
GM
20532000-06-30 Gerd Moellmann <gerd@gnu.org>
2054
97d176db
GM
2055 * frame.c (next_frame): Don't check focus redirection in case
2056 MINIBUF is a window. Doing so excludes frames using MINIBUF
3780bc22
GM
2057 unless their focus is redirected, which contradicts the
2058 specification of next-frame, and leads to infinite loops in
2059 certain situations when cycling through windows with next-window.
2060
dca9961d
KH
20612000-06-30 Kenichi Handa <handa@etl.go.jp>
2062
2063 * coding.c (code_convert_region): Even if the length of text is
2064 zero, try to convert it if coding->type is coding_type_ccl.
2065 (decode_coding_string, encode_coding_string): Likewise.
2066
d5483ab1
GM
20672000-06-28 Gerd Moellmann <gerd@gnu.org>
2068
af5c25e1 2069 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
97d176db 2070 the display if windows_or_buffers_changed.
af5c25e1
GM
2071
2072 * dispnew.c (struct row_entry): New structure.
2073 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
2074 (row_table_size, old_lines, new_lines, old_lines_size)
2075 (new_lines_size, run_pool, runs_size, runs): New variables.
2076 (add_row_entry): New function.
2077 (scrolling_window): Use data structures allocated with xmalloc and
97d176db 2078 held in global variables, instead of allocating them with alloca and
af5c25e1
GM
2079 holding them in local variables. Use a larger hash table whose
2080 size depends on glyph matrix sizes. Don't use bzero to clear the
2081 hash table; instead, clear used slots only.
2082
2083 * fns.c (next_almost_prime): Make it externally visible.
2084
2085 * lisp.h (next_almost_prime): Add prototype.
2086
d5483ab1
GM
2087 * s/isc4-0.h (sigunblock): Define.
2088
2089 * s/sco5.h (sigunblock): Define.
2090
93e40f40
DL
20912000-06-27 Dave Love <fx@gnu.org>
2092
2093 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
2094 (moved to osf5-0.h).
2095 [!NOT_C_CODE]: Protect string.h stuff.
2096
2097 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
2098 (sys_siglist, NSIG): Definitions moved here from osf1.h.
2099
3c4b7685
GM
21002000-06-27 Gerd Moellmann <gerd@gnu.org>
2101
97d176db 2102 * xdisp.c (resize_mini_window): Subtract the extra line spacing
3c4b7685
GM
2103 below the last line from the needed window height.
2104
32cad0aa
SM
21052000-06-26 Stefan Monnier <monnier@cs.yale.edu>
2106
2107 * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
2108 (Fwidget_get): Use it.
2109 (syms_of_fns): Defsubr it.
2110
2c69ced2
GM
21112000-06-26 Gerd Moellmann <gerd@gnu.org>
2112
178c5d9c 2113 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
1d36487c
GM
2114 display info for XIM.
2115 (xim_open_dpy): Likewise.
2116 (xim_close_dpy): Don't free the display info's XIM.
2117
2118 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
2119
2120 * config.in (USE_XIM): New define.
2121
3fc720e4
GM
2122 * keymap.c (get_keyelt): For menu-items containing a `:filter
2123 FILTER', apply FILTER to the menu-item's definition to get the
2124 real definition to use.
2125
2126 * lisp.h (QCfilter): External declaration.
2127
2c69ced2
GM
2128 * xfns.c (Fimage_size): New function.
2129 (syms_of_xfns): Defsubr it.
2130
f978b2a2
AS
21312000-06-26 Andreas Schwab <schwab@suse.de>
2132
2133 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
2134 Fstring_as_unibyte.
2135
94cc7892
DL
21362000-06-25 Dave Love <fx@gnu.org>
2137
2138 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
2139 tgetnum.
2140
2141 * Makefile.in (blockinput.h): Depend on atimer.h.
2142 (atimer.h): Depend on systime.h.
2143
2144 * blockinput.h: Protect against multiple inclusion. Include
2145 atimer.h.
2146
2147 * atimer.h: Protect against multiple inclusion. Include
2148 systime.h.
2149
2150 * lisp.h (swap_in_global_binding): Declare.
2151
b8c24556
KR
21522000-06-24 Ken Raeburn <raeburn@gnu.org>
2153
2154 * process.c (Fopen_network_stream): Turn off atimers for duration
2155 of call to connect. (Patch from Gerd.)
2156
8cf8560b
DL
21572000-06-23 Dave Love <fx@gnu.org>
2158
511c7541
DL
2159 * ralloc.c: Maybe include unistd.h
2160
8cf8560b
DL
2161 * emacs.c (setgrp): Undefine before defining.
2162 (malloc_warning, set_time_zone_rule, index): Prototype.
2163
2164 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
2165 HAVE_STRUCT_TIMEZONE.
2166
2167 * s/osf1.h: Move string.h hack here from alpha.h and make it
2168 conditional.
2169 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
2170 _XOPEN_SOURCE.
2171 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
2172 (SOCKLEN_TYPE): Don't define.
2173
2174 * m/alpha.h: Remove string.h hack.
2175
2176 * s/osf5-0.h: New file.
2177
2178 * filelock.c: Use feature tests for fcntl.h, string.h. Don't
2179 include time.h, done by systime.h.
2180 [__FreeBSD__]: Remove redundant includes.
2181
3fc720e4 2182 * callproc.c (setpgrp): Undefine before defining.
8cf8560b
DL
2183 (delete_temp_file): Return Qnil to avoid warning.
2184
2185 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
2186
2187 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
2188 HAVE_X_WINDOWS.
2189
2190 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
2191
2192 * composite.h (compose_text): Declare.
2193
2194 * xterm.c: Don't include sys/types.h unconditionally. Don't
2195 protect its inclusion with !USG (following xmenu.c).
2196
ea055732
GM
21972000-06-23 Gerd Moellmann <gerd@gnu.org>
2198
2199 * xfns.c (x_create_tip_frame): Initialize frame's colors like
2200 in x_create_frame.
2201
74b01b80
EZ
22022000-06-23 Eli Zaretskii <eliz@is.elta.co.il>
2203
2204 * coding.c (decode_eol_post_ccl): Special handling for undecided
2205 and inconsistent EOL types.
2206
64f3a166
GM
22072000-06-22 Gerd Moellmann <gerd@gnu.org>
2208
16cf31f7
GM
2209 * xrdb.c (x_load_resources): Add default resource for scroll bar's
2210 trough color and main window's background color.
2211
178c5d9c 2212 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
16cf31f7
GM
2213 differently.
2214
2215 * xterm.h (Xt_app_con): External declaration.
2216
2217 * widget.c (EmacsFrameRealize): Fix typo.
178c5d9c 2218
486a103d
GM
2219 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
2220
64f3a166
GM
2221 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
2222 (handle_invisible_prop): Record the start of invisible text in
2223 it->add_overlay_start.
2224 (struct overlay_entry): Add member `overlay'.
2225 (handle_overlay_change): Simplify.
2226 (next_overlay_string): After having processed overlay strings at the
2227 end of the buffer, record that fact in
2228 it->overlay_strings_at_end_processed_p.
2229 (compare_overlay_entries): If before- and after-strings come
2230 from the same overlay, let before-strings come first.
2231 (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
2232 (load_overlay_strings): Take it->add_overlay_start into account
2233 when adding overlay strings.
2234
2235 * dispextern.h (struct it): Add member add_overlay_start.
2236
bb746ea6
DL
22372000-06-22 Dave Love <fx@gnu.org>
2238
2239 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
2240
2241 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
2242
a8f573f3
KH
22432000-06-22 Kenichi Handa <handa@etl.go.jp>
2244
2245 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
2246 is greater than 0.
2247
9f2bbc92
DL
22482000-06-21 Dave Love <fx@gnu.org>
2249
178c5d9c 2250 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
9f2bbc92 2251
3ee5041c
SM
22522000-06-21 Stefan Monnier <monnier@cs.yale.edu>
2253
2254 * syntax.c (back_comment): Simplify string-parity counting (with
2255 the added benefit of handling multiple string-styles as long as
2256 they are not intertwined).
2257 Jump to the slow code as soon as a comment starter is found in
2258 a "string_lossage" position. Fixes the case: " /* " /* " */.
2259
4c343001
DL
22602000-06-21 Dave Love <fx@gnu.org>
2261
2262 * Makefile.in: Use GETLOADAVG_LIBS.
2263
2264 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
2265 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
2266
e6365855
SM
22672000-06-20 Stefan Monnier <monnier@cs.yale.edu>
2268
2269 * syntax.c (describe_syntax): Recognize the `n'estable bit.
2270 (Fforward_comment, scan_lists):
2271 Check the comstyle of single-char comment-starters.
2272 (scan_sexps_forward): Don't try to recognize `half comment-enders' if
2273 we're just at the beginning of the comment (f.ex with (*) ... (*)).
d355bd8a
SM
2274 Check the comstyle of single-char comment-starters.
2275 Clarify control-flow around the Scomment case.
e6365855 2276
5700d2cc
DL
22772000-06-20 Dave Love <fx@gnu.org>
2278
d355bd8a
SM
2279 * fns.c (make_hash_table, maybe_resize_hash_table):
2280 Cast arg of next_almost_prime.
5700d2cc 2281
178c5d9c 2282 * tparam.c [emacs]: Include lisp.h.
5700d2cc
DL
2283
2284 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h
2285 and unistd.h.
2286
4a27bdfb
GM
22872000-06-20 Gerd Moellmann <gerd@gnu.org>
2288
a61d762c
GM
2289 * keyboard.c (adjust_point_for_property): Check if display
2290 property should be treated as intangible by looking at its
2291 value.
2292
178c5d9c 2293 * xdisp.c (single_display_prop_intangible_p)
a61d762c
GM
2294 (display_prop_intangible_p): New functions.
2295
2296 * dispextern.h (display_prop_intangible_p): Add prototype.
2297
2298 * xdisp.c (dump_glyph_row): Show type of glyph->object.
178c5d9c 2299
4a27bdfb
GM
2300 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
2301 argument to sigprocmask.
2302
2303 * s/sco5.h (sigblock): Redefined to pass a pointer as second
2304 argument to sigprocmask.
2305
2306 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
2307 sigprocmask_set, and pass a pointer to it to sigprocmask.
2308
2309 * sysdep.c (sigprocmask_set): New variable.
2310
2311 * fileio.c (make_temp_name): Don't use `%s' in string passed to
2312 report_file_error.
2313
427ec082
SS
23142000-06-20 Sam Steingold <sds@gnu.org>
2315
2316 * xrdb.c: Don't declare xmalloc, xrealloc.
2317
8972fe79 23182000-06-20 Stefan Monnier <monnier@cs.yale.edu>
8972fe79
SM
2319
2320 * regex.c (re_match, re_match_2): Protect calls to alloca (0).
2321 (re_comp): Cast gettext return value to avoid complaints when
2322 !HAVE_LIBINTL.
2323
074b6efe
DL
23242000-06-20 Dave Love <fx@gnu.org>
2325
f85c008a
DL
2326 * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
2327 HAVE_GETTIMEOFDAY.
2328
5700d2cc 2329 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
f85c008a 2330
d355bd8a 2331 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
f85c008a
DL
2332
2333 * m/alpha.h: Don't declare xmalloc, xrealloc.
2334
0af4f205
DL
2335 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
2336
2337 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
2338
2339 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
2340
2341 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
2342 HAVE_GETWD.
2343
074b6efe
DL
2344 * keyboard.h (poll_for_input_1): Declare.
2345
2346 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
2347
2348 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
2349
2350 * doprnt.c: Don't declare xmalloc, xrealloc.
2351
2352 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
2353 (getenv, ctime, getwd): Removed.
2354 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
2355
2356 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic,
2357 x_set_tool_bar_lines.
2358
2359 * config.in: Add HAVE_GETWD. Move some definitions above
2360 machine/system includes.
2361
68a5e97b
KH
23622000-06-20 Kenichi Handa <handa@etl.go.jp>
2363
95417e1e
KH
2364 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
2365
68a5e97b
KH
2366 * xfaces.c (font_list): Handle the case that REGISTRY doesn't
2367 contain information about ENCODING.
2368
2369 * fontset.c (FONTSET_ASCII): Use the first element of char table
2370 for an ASCII font, not defalt slot.
2371 (fontset_ref_via_base): If FONTSET doesn't contain information for
2372 C, try the default fontset.
2373 (make_fontset): Don't copy the default fontset.
2374 (fontset_font_pattern): Likewise.
2375 (accumulate_font_info): If ELT is nil, use the corresponding
2376 element in the default fontset.
2377
3b4fa1b2
DL
23782000-06-19 Dave Love <fx@gnu.org>
2379
943e731c
DL
2380 * syntax.c (Fparse_partial_sexp): Doc fix.
2381
2382 * regex.h: Test PROTOTYPES as well as __STDC__.
2383
3b4fa1b2
DL
2384 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare
2385 errno, strerror. Put text after #endif in comment.
2386
2387 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
2388 pcc).
2389
2390 * xterm.c (x_frame_of_widget): Likewise.
2391
cdf0357b
GM
23922000-06-19 Gerd Moellmann <gerd@gnu.org>
2393
2394 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
2395 to Vfundamental_mode_abbrev_table.
2396
2397 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
2398 bogus objects are marked. This slows down GC by ~80 percent, but
2399 it might be worth trying when debugging GC-related problems.
2400 This feature requires conservative stack marking to be enabled.
2401
2402 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
2403 returns XLookupChars, reset `modifiers' to zero.
2404
998e9f8c
DL
24052000-06-19 Dave Love <fx@gnu.org>
2406
2407 * mktime.c: Unprotoized.
2408
18e21ce8 24092000-06-19 Richard Stallman <rms@gnu.org>
d1504184
GM
2410
2411 * data.c (set_internal): If variable is frame-local,
2412 store the new value immediately into the frame parameter alist.
2413
140c4ac6
KR
24142000-06-19 Ken Raeburn <raeburn@gnu.org>
2415
14358466
KR
2416 * xfns.c (jpeg_load): Fetch error-handling data first, then fill
2417 in the custom handler pointer.
2418
140c4ac6
KR
2419 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
2420 value, or checks for CHAR_META can fail when Lisp_Object is a
2421 union type.
2422 * keymap.c (get_keyelt): Likewise.
2423
10d7bf84
KH
24242000-06-19 Kenichi Handa <handa@etl.go.jp>
2425
2426 * ccl.h (struct ccl_program): New member eol_type.
2427 (struct ccl_spec): New member cr_carryover.
2428
2429 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
2430 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
2431
2432 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
2433 (ccl_coding_driver): On encoding, initialize ccl->eol_type.
2434 (decode_eol_post_ccl): New function.
2435 (decode_coding): Don't detect EOL format here for CCL based coding
2436 systems.
2437 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call
2438 decode_eol_post_ccl after running the CCL program.
2439 (code_convert_region): Don't detect EOL format here for CCL based
2440 coding systems.
2441 (decode_coding_string): Likewise.
2442
52e386c2
KR
24432000-06-18 Ken Raeburn <raeburn@gnu.org>
2444
2445 * charset.c (update_charset_table): Use XINT on "iso_final_char"
2446 when treating it as an integer.
2447
2448 * coding.h (encode_coding_string): Declare.
2449
2450 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
2451 it as an integer.
2452
2453 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
2454 "xkeymap" to avoid shadowing the "enum map_type" value that needs
2455 to be passed to get_local_map.
2456
2457 * sound.c (Fplay_sound): Don't call make_number on
2458 Frun_hook_with_args count argument.
2459
2460 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
2461 for lisp objects in X event structure data field, when lisp
2462 objects are represented with unions.
2463 (x_scroll_bar_to_input_event): Ditto.
2464
b357b9d4
KR
24652000-06-16 Ken Raeburn <raeburn@gnu.org>
2466
2467 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
37d034d3
KR
2468 termination of string. Fix sense of test whether
2469 Vline_number_display_limit is an integer.
b357b9d4 2470
a871441d
GM
24712000-06-16 Gerd Moellmann <gerd@gnu.org>
2472
a9021acd
GM
2473 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
2474 only if HAVE_X_WINDOWS.
2475
6344985d
GM
2476 * keymap.c (describe_buffer_bindings): Add `\f\n' in front
2477 of titles.
2478
427ec082 2479 * dispnew.c (update_frame_1): Handle case that cursor vpos is
a871441d
GM
2480 out of bounds.
2481
228b083e
EZ
24822000-06-15 Eli Zaretskii <eliz@is.elta.co.il>
2483
2484 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
2485 of its headers.
2486
c25b53a2
KH
24872000-06-15 Kenichi Handa <handa@etl.go.jp>
2488
2489 * coding.c (decode_coding_emacs_mule): Always set src_base at the
2490 start of the while loop.
2491
a6981b11
GM
24922000-06-15 Gerd Moellmann <gerd@gnu.org>
2493
e9924e52
GM
2494 * atimer.c (alarm_signal_handler): Add forward declaration.
2495
a6981b11
GM
2496 * data.c (set_internal): Remove debug code.
2497
25fa6deb
GM
24982000-06-14 Gerd Moellmann <gerd@gnu.org>
2499
dce6b995
GM
2500 * Makefile.in (bootstrap-temacs): Add `-I../src'.
2501
9f817ea4
GM
2502 * unexec.c (toplevel) [COFF]: Include coff.h.
2503
2504 * s/lynxos.h: New file.
2505
2506 * keymap.c (Fsingle_key_description): Enclose function key and
2507 event symbol names in angle brackets.
2508
8a4e3c0c
GM
2509 * xdisp.c (setup_echo_area_for_printing): Call
2510 message_log_maybe_newline if message_buf_print is not set.
2511
2512 * print.c (printchar, strout): Don't check message_buf_print
427ec082 2513 before calling setup_echo_area_for_printing because that
8a4e3c0c
GM
2514 function does something useful even when message_buf_print is
2515 already set.
2516
25fa6deb
GM
2517 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
2518 variables.
2519 (ensure_echo_area_buffers): Initialize echo buffer's
2520 truncate lines setting to nil.
2521 (with_echo_area_buffer): Don't set the echo buffer's truncate
2522 lines setting here.
8a4e3c0c 2523 (set_message_1): Set it here instead, based on the value
25fa6deb
GM
2524 of message_truncate_lines.
2525 (resize_mini_window): Handle case that lines are truncated.
2526 (syms_of_xdisp): Initialize Qmessage_truncate_lines. DEFVAR_BOOL
2527 message-truncate-lines.
2528
2529 * keyboard.c (read_char): Bind message-truncate-lines to t
2530 while displaying a help-echo.
2531
2532 * lisp.h (Qmessage_truncate_lines): External declaration.
2533
163dcff3
GM
25342000-06-13 Gerd Moellmann <gerd@gnu.org>
2535
1681ead6
GM
2536 * xdisp.c (Vline_number_display_limit): Renamed from
2537 line_number_display_limit.
2538 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
2539 Extend documentation string. Initialize
2540 Vline_number_display_limit to nil meaning no limit.
2541 (decode_mode_spec): Use Vline_number_display_limit with its new
2542 meaning.
2543
163dcff3
GM
2544 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
2545
18e21ce8 25462000-06-13 Richard Stallman <rms@gnu.org>
163dcff3
GM
2547
2548 * frame.c (Fmodify_frame_parameters): Doc fix.
427ec082 2549
163dcff3
GM
2550 * xfns.c (x_set_frame_parameters): Comment fix.
2551
2552 * frame.c (store_frame_param): Call swap_in_global_binding if the
2553 variable's current binding was chosen based on this frame.
2554
2555 * data.c (swap_in_global_binding): New function.
2556
a704139d
EZ
25572000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
2558
2559 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
2560 macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
2561
9b6610db
EZ
25622000-06-13 Eli Zaretskii <eliz@is.elta.co.il>
2563
2564 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
2565
c68833d2
JR
25662000-06-12 Jason Rumney <jasonr@gnu.org>
2567
2568 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
2569
2570 * w32.h (EMACS_W32_H): Renamed from _NT_H_
2571
2572 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
2573
2574 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
2575
ed1056b3
GM
25762000-06-12 Gerd Moellmann <gerd@gnu.org>
2577
2578 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
2579 (syms_of_xfaces): Defsubr Sdump_colors.
2580 (x_free_colors): Don't treat b&w specially on default visual.
2581 (x_free_dpy_colors): New function.
2582 (free_face_colors): Don't check visual class; it's done
2583 in x_free_colors.
2584
2585 * xterm.c (x_frame_of_widget): New function.
2586 (x_alloc_nearest_color_for_widget): Use it.
2587 (x_copy_dpy_color): New function.
2588 (x_destroy_window): Free various colors.
2589
5050a2ef
KH
25902000-06-12 Kenichi Handa <handa@etl.go.jp>
2591
2592 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
2593
2594 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
2595
2596 * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
2597
2598 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
2599
2600 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
2601
fb1b041d
DL
26022000-06-11 Dave Love <fx@gnu.org>
2603
2604 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
2605
ff96b5f4
EZ
26062000-06-11 Eli Zaretskii <eliz@is.elta.co.il>
2607
2608 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
2609
db8eeecd
GM
26102000-06-11 Gerd Moellmann <gerd@gnu.org>
2611
ed1056b3 2612 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
db8eeecd
GM
2613 to `XEvent *'.
2614
49b71c5f
KH
26152000-06-10 Kenichi Handa <handa@etl.go.jp>
2616
c479bd55
KH
2617 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
2618 (regex_compile): Fix the code for handling the case of single byte
2619 char and multibyte char being mixed in a range within [...].
2620
ff6a65c2
KH
2621 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
2622 and dst_multibyte members of coding.
2623
49b71c5f
KH
2624 * charset.c (update_charset_table): Update the table
2625 bytes_by_char_head.
2626 (init_charset_once): Initialize elements of bytes_by_char_head to
2627 1 except for leading codes for private charases.
2628
2629 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
2630 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
2631 sequence.
2632
9e80b57d
KR
26332000-06-09 Ken Raeburn <raeburn@gnu.org>
2634
2635 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
2636 access the data it doesn't point to.
2637
f83fe4b4
GM
26382000-06-08 Gerd Moellmann <gerd@gnu.org>
2639
2640 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
db8eeecd 2641 will be translated to a switch-frame event when reading the
f83fe4b4
GM
2642 event queue. This is necessary because Emacs otherwise won't
2643 perform a switch-frame to a new frame until some other event, for
2644 example a keystroke event, forces it to do so. This has various
2645 effects, one visible being that the cursor of a frame created with
2646 C-x 5 2 or switched to with a window manager key binding like
2647 A-TAB stays hollow because selected_window isn't on the newly
2648 focused frame until the switch-frame is performed.
2649
2650 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
2651 generating a switch-frame event if necessary.
2652
2653 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
2654
2655 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
2656 it's an integer.
2657
0890801b
KH
26582000-06-08 Kenichi Handa <handa@etl.go.jp>
2659
2660 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
2661 charset.
2662
173cbca8
GM
26632000-06-07 Gerd Moellmann <gerd@gnu.org>
2664
3091c2a6
GM
2665 * window.c (displayed_window_lines): Take empty lines at
2666 the bottom of a window into account.
427ec082 2667
f38952fe
GM
2668 * window.c (displayed_window_lines): New function.
2669 (Fmove_to_window_line): Use displayed_window_lines to determine
2670 the number of lines to move, instead of using the window's height.
2671
2672 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
2673 to stop reading, even if the form read sets point to a different
2674 value when evaluated.
2675
427ec082 2676 * xdisp.c (display_line): Fix code deciding in which line to
173cbca8
GM
2677 put the cursor.
2678
6ba6c818
KH
26792000-06-07 Kenichi Handa <handa@etl.go.jp>
2680
2681 * fileio.c (e_write): Free composition data if stored in
2682 coding->cmp_data.
2683
5f1aea9a
GM
26842000-06-06 Gerd Moellmann <gerd@gnu.org>
2685
666852af
GM
2686 * xdisp.c (display_line): Set row's and iterator's
2687 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
2688 Set cursor even if row ends in the middle of a character.
2689 (dump_glyph_row): Print values of new flags.
2690 (redisplay_window) <cursor movement in unchanged window>: When
2691 point has been moved forward, and PT is at the end of the cursor
2692 row, don't place the cursor in the next row if the cursor row ends
2693 in the middle of a character or at ZV.
2694
2695 * dispextern.h (struct it): Add starts_in_middle_of_char_p.
2696 (struct glyph_row): Add starts_in_middle_of_char_p and
2697 ends_in_middle_of_char_p.
2698 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
2699 ends_in_middle_of_char_p flag.
2700 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
2701
d13f3e2e
GM
2702 * term.c (append_glyph): Revert change of 2000-06-06.
2703
2704 * xdisp.c (display_line): Revert change of 2000-06-06. Treat
2705 padding glyph not fitting on line as whole character not
2706 fitting on line.
2707
5f1aea9a
GM
2708 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
2709 this isn't true for images with `:ascent 100'.
2710
10cda9b0
KH
27112000-06-06 Kenichi Handa <handa@etl.go.jp>
2712
ed00559d
KH
2713 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
2714 as modified if it is originally unmodified.
2715
10cda9b0
KH
2716 * term.c (encode_terminal_code): Change the way to check if
2717 terminal coding does any conversion.
2718 (append_glyph): Set glyph->pixel_width correctly.
2719
2720 * xdisp.c (display_line): While checking line continuation, pay
2721 attention to a padding glyph.
2722
1969fae2
GM
27232000-06-05 Gerd Moellmann <gerd@gnu.org>
2724
2725 * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
2726
162ccef4
DL
27272000-06-05 Dave Love <fx@gnu.org>
2728
f19f32dd
DL
2729 * xdisp.c: Include fontset.h.
2730
2731 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
2732
2733 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
2734
2735 * dispnew.c: Conditionally include term.h.
2736
2737 * coding.h: Declare code_convert_string_norecord.
2738
2739 * frame.h (struct frame): Use volatile unconditionally.
2740
2741 * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
2742
2743 * xmenu.c (menu_item_selection): Declare volatile unconditionally.
2744
2745 * systime.h: Protect against multiple inclusion.
2746 (timezone) [USG5_4]: Define as time_t.
2747
2748 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
2749 (Foptimize_char_table, make_temp_name): Declare.
2750
2751 * Makefile.in (xdisp.o): Depend on fontset.h.
2752
2753 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
2754
2755 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
2756 (Foptimize_char_table, make_temp_name): Declare.
2757
427ec082 2758 * s/irix4-0.h:
162ccef4
DL
2759 * s/irix5-0.h:
2760 * s/netbsd.h: Don't define autoconfiscated MATHERR.
2761
2082fe81
DL
27622000-06-02 Dave Love <fx@gnu.org>
2763
2764 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
2765
dcf671d2
GM
27662000-06-02 Gerd Moellmann <gerd@gnu.org>
2767
2768 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
1969fae2 2769 result face, set flags in that face indicating that colors may not
dcf671d2
GM
2770 be freed.
2771
2772 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
2773 glyph, use the ASCII NUL character to determine the face.
2774
d42122a3
DL
27752000-06-02 Dave Love <fx@gnu.org>
2776
2777 * sysdep.c: Conditionally include stdlib.h, unistd.h.
2778 (VFORK_RETURN_TYPE): Remove.
427ec082 2779
d42122a3
DL
2780 * config.in: Add NO_MATHERR.
2781
dd432f16
DL
27822000-06-01 Dave Love <fx@gnu.org>
2783
90aa4ea8
DL
2784 * cmds.c (internal_self_insert): Don't check
2785 Vbefore_change_function, Vafter_change_function.
2786
2787 * insdel.c (signal_before_change, signal_after_change): Likewise.
2788
2789 * buffer.c (Vbefore_change_function, Vafter_change_function):
2790 Variables and their initializations deleted.
2791
2330c9d4
DL
2792 * callint.c (Fcall_interactively): Doc fix.
2793
dd432f16
DL
2794 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
2795
bf9e8804
DL
27962000-05-31 Dave Love <fx@gnu.org>
2797
2798 * textprop.c: Revert last change -- duplicated.
2799
3694b4ab
GM
28002000-05-31 Gerd Moellmann <gerd@gnu.org>
2801
2802 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
2803 in #if 0.
2804
2805 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
2806
f14156cd
JR
28072000-05-31 Jason Rumney <jasonr@gnu.org>
2808
8119aab8
JR
2809 * search.c (Fre_search_forward, Fre_search_backward)
2810 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
2811
f14156cd
JR
2812 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
2813
4aab9be3
JR
28142000-05-30 Jason Rumney <jasonr@gnu.org>
2815
2816 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
2817 [WINDOWSNT]: Add extern for Vw32_system_coding_system.
2818
2819 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
2820 member.
2821
2822 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
2823 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
2824 expand a nil default_filename.
2825
2826 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
2827 pointer to glyph_to_pixel_coords, not a frame.
2828
2829 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
2830 coding.h to dependencies.
2831
2832 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
2833
2834 * w32console.c (glyph_to_pixel_coords): Change first parameter to
2835 window pointer to be consistent with w32term.c and xterm.c.
2836
2837 * w32fns.c: Format and doc changes to bring closer to xfns.c.
2838 (VIETNAMESE_CHARSET): Define if not defined in system headers.
2839 (Qline_spacing, Qcenter): New variables.
2840 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
2841 (x_set_line_spacing): New function.
2842 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
2843 macros.
2844 (x_specified_cursor_type): New function.
2845 (x_set_cursor_type): Use it.
2846 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
2847 and icon strings.
2848 (validate_x_resource_name, x_get_resource_string): Measure lengths
2849 of external strings in bytes.
2850 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
2851 GetTextExtentPoint32 with NULL title.
2852 (Fx_create_frame): Initialize Qline_spacing.
2853 (w32_load_system_font): Initialize font->double_byte_p.
2854 (x_to_w32_charset): Use Vw32_charset_info_alist.
2855 (Image, busy cursor, tooltip functions): Merged changes from
2856 xfns.c. Not yet functional on Windows.
2857
2858 * w32gui.h (W32FontStruct): Add double_byte_p member.
2859
2860 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
2861 (emacs_button_translation): Use it.
2862 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
2863 in `mask' to be set.
2864
2865 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
2866 menu strings.
2867
2868 * w32term.c: Format and doc changes to bring closer to xterm.c.
2869 (w32_char_font_type): New enum.
2870 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
2871 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
2872 (w32_encode_char): New function.
2873 (x_encode_char): Removed.
2874 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
2875 x_encode_char and w32_font_is_double_byte.
2876 (x_produce_image_glyph): Use image_ascent.
2877 (x_produce_glyphs): Use new version of w32_per_char_metric and
2878 handle NULL return value. Allow extra line spacing.
2879 (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
2880 (w32_get_glyph_overhangs): Remove unicode_p param. Use
2881 w32_font_type member of glyph instead.
2882 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
2883 (fast_find_position): Make sure not to consider rows not visible
2884 in the window.
2885 (w32_read_socket) [WM_MENUSELECT]: Cannot call
2886 w32_menu_display_help with input blocked, as it can abort.
2887 (x_display_and_set_cursor): Choose cursor depending
2888 on buffer-local value of cursor_type.
2889 (x_draw_bar_cursor): Add parameter WIDTH.
2890
2891 * w32term.h (CP_DEFAULT): Define.
2892 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
2893
10fc3187
GM
28942000-05-30 Gerd Moellmann <gerd@gnu.org>
2895
2896 * search.c (Fre_search_forward, Fre_search_backward)
2897 (Fposix_search_backward, Fposix_search_forward): Doc fix.
2898
d0555360
KH
28992000-05-30 Kenichi Handa <handa@etl.go.jp>
2900
2901 * coding.c (detect_coding_iso2022): Fix code for checking
2902 CODING_CATEGORY_MASK_ISO_8_2.
2903
f1ad044f
SM
29042000-05-29 Stefan Monnier <monnier@cs.yale.edu>
2905
2906 * regex.c (PREFETCH_NOLIMIT): New function.
2907 (re_match_2_internal): Use it and adjust the end_match_2 logic.
2908
84ec3b4b
GM
29092000-05-29 Gerd Moellmann <gerd@gnu.org>
2910
66254a13
GM
2911 * syntax.c (find_defun_start): Move test for
2912 open_paren_in_column_0_is_defun_start outside of the loop.
2913
49e70dec
GM
2914 * xdisp.c (redisplay_window): Really switch buffers when
2915 displaying mode lines, and temporarily set selected_frame to the
2916 frame of the window that's redisplayed.
2917
84ec3b4b
GM
2918 * xfaces.c (free_realized_faces): Block/unblock input.
2919 (free_realized_multibyte_face): Ditto.
2920
869a3a14
DL
29212000-05-29 Dave Love <fx@gnu.org>
2922
2923 * textprop.c (Qkeymap): New variable.
2924 (syms_of_textprop): Intern it.
2925
2926 * keymap.c: Include intervals.h.
2927 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
2928
2929 * Makefile.in (keymap.o): Depend on intervals.h.
2930
2931 * keyboard.c (menu_bar_items, tool_bar_items)
2932 (Fexecute_extended_command): Deal with `keymap' property.
2933 (read_key_sequence): Track map from `keymap' property as well as
2934 `local_map'.
2935
2936 * intervals.c (get_local_map): Extra arg to allow looking for
2937 `keymap' too.
2938
2939 * intervals.h (map_property): New enum.
2940 (get_local_map): Extra arg using it.
2941 (Qkeymap): Declare.
2942
84ec3b4b 2943 * lisp.h (get_local_map): Don't declare here.
869a3a14 2944
89d0c844
KH
29452000-05-29 Kenichi Handa <handa@etl.go.jp>
2946
2947 * Makefile.in (callproc.o): Depend on composite.h.
2948
2949 * callproc.c: Include composite.h.
2950 (Fcall_process): Handle composition correctly.
2951
2952 * coding.h (coding_allocate_composition_data): Extern it.
2953 (coding_restore_composition): Likewise.
2954
2955 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
2956 yet allocated, finish decoding with result
2957 CODING_FINISH_INSUFFICIENT_CMP.
2958 (coding_allocate_composition_data): Make it non-static.
2959 (coding_restore_composition): Likewise.
2960
797a084a
EZ
29612000-05-29 Eli Zaretskii <eliz@is.elta.co.il>
2962
2963 * charset.c (syms_of_charset): Revert last change.
2964
cf872af5
EZ
29652000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
2966
2967 * term.c (produce_glyphs): Treat characters from the eight-bit-*
d7d0dac0
SM
2968 charsets as unibyte, with 1-column screen width. Sent by Kenichi
2969 Handa.
cf872af5 2970
5b1ae051
EZ
29712000-05-28 Eli Zaretskii <eliz@is.elta.co.il>
2972
2973 * charset.c (syms_of_charset): Set width of character sets
2974 eight-bit-control and eight-bit-graphic to 1 column.
2975
34ec9ebe
GM
29762000-05-26 Gerd Moellmann <gerd@gnu.org>
2977
2978 * config.in (HAVE_SPEED_T): New define.
2979
2980 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
2981 `extern speed_t'.
2982
dd854dc2
DL
29832000-05-26 Dave Love <fx@gnu.org>
2984
2985 * coding.c (shrink_decoding_region): Initialize eol_conversion.
2986
2987 * data.c (Qsubrp, Qmany, Qunevalled): New variables.
2988 (Fsubr_arity): New function.
2989 (syms_of_data): Install them.
2990
ba9f8f95
KH
29912000-05-26 Kenichi Handa <handa@etl.go.jp>
2992
0f3e0672
KH
2993 * charset.c (init_charset_once): Set the table bytes_by_char_head
2994 correctly.
2995
cebefb44
KH
2996 * fontset.c (syms_of_fontset): Adjust the font name for ascii of
2997 the default fontset to what Emacs uses by default.
0f3e0672
KH
2998 (check_registry_encoding): This function deleted.
2999 (Fset_fontset_font): Remove the adhoc condition for the default
3000 fontset. Allow cons in FONTNAME.
cebefb44 3001
0f3e0672
KH
3002 * fns.c (map_char_table): Ignore char-table entries for
3003 charsets eight-bit-control and eight-bit-graphic.
ba9f8f95 3004
7a18af49
KR
30052000-05-25 Ken Raeburn <raeburn@gnu.org>
3006
3007 * emacs.c (main): Initialize keyboard syms before initializing
3008 window code, so face names are available.
3009
d2af47df
SM
30102000-05-25 Stefan Monnier <monnier@cs.yale.edu>
3011
3012 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
3013 of an anchor at the beginning of a shy-group.
3014
fc6a6a4e
GM
30152000-05-25 Gerd Moellmann <gerd@gnu.org>
3016
3017 * xdisp.c (handle_invisible_prop): Don't try to skip over
3018 invisible text if end of text is already reached.
3019
005f0d35
DL
30202000-05-25 Dave Love <fx@gnu.org>
3021
02513cdd
DL
3022 * xdisp.c (Fdump_glyph_matrix): Declare the arg.
3023
005f0d35
DL
3024 * coding.c (encode_eol): Add null statement after label.
3025
89f6ca4e
EZ
30262000-05-25 Eli Zaretskii <eliz@is.elta.co.il>
3027
3028 * w16select.c (Fw16_set_clipboard_data): Fix the change from
3029 2000-05-20.
3030
a4e1759e
KH
30312000-05-25 Kenichi Handa <handa@etl.go.jp>
3032
3033 * ccl.c (ccl_driver): Fix previous change.
3034
eacfd7fe
KH
30352000-05-25 Kenichi Handa <handa@etl.go.jp>
3036
46ab33a9
KH
3037 * coding.c (run_pre_post_conversion_on_str): Set point to the
3038 beginning of buffer before calling coding->post_read_conversion.
3039 (decode_coding_string): Give correct args to
3040 run_pre_post_conversion_on_str.
3041 (encode_coding_string): Likewise.
3042
eacfd7fe
KH
3043 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
3044 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and
3045 eight-bit-graphic correctly.
3046
f8569325
DL
30472000-05-24 Kenichi HANDA <handa@etl.go.jp>
3048
3049 * fileio.c (Finsert_file_contents): Even if a file is not found,
3050 execute codes for setting up coding system. Call
3051 after-insert-file-functions unconditionally.
3052
04545643
GM
30532000-05-24 Gerd Moellmann <gerd@gnu.org>
3054
3055 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
3056 BSD_PGRPS are not defined.
3057
747d90ea
KH
30582000-05-24 Kenichi Handa <handa@etl.go.jp>
3059
3060 * charset.c (update_charset_table): Accept nil in LONG_NAME and
3061 DESCRIPTION.
3062 (syms_of_charset): Avoid building same strings.
3063
716e3b88
GM
30642000-05-23 Gerd Moellmann <gerd@gnu.org>
3065
3066 * lread.c (Fload): Add a comment about the meaning of
3067 Vuser_init_file being t.
3068
3069 * puresize.h (BASE_PURESIZE): Increase to 675000.
3070
3071 * s/gnu-linux.h (setpgrp): Don't define it here because this
3072 prevents compilation on GNU/Linux systems with glib 2.2.
3073
3074 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
3075 as setpgid.
427ec082 3076
9aeb39fa
EZ
30772000-05-23 Eli Zaretskii <eliz@is.elta.co.il>
3078
3079 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
3080 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
3081 version.
3082 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
3083
29ced61b
KH
30842000-05-23 Kenichi Handa <handa@etl.go.jp>
3085
0574a2ed
KH
3086 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
3087 unconditionally.
3088
3d80f24d
KH
3089 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
3090
3091 * term.c (encode_terminal_code): Set coding->src_multibyte
3092 properly.
3093
29ced61b
KH
3094 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
3095
d7e00792
KH
30962000-05-22 Kenichi Handa <handa@etl.go.jp>
3097
c9d80d38
KH
3098 * keyboard.c (read_char): Allow character codes 128..255 to be
3099 handled by input-method-function.
3100
d7e00792
KH
3101 * insdel.c (adjust_markers_for_replace): Fix previous change.
3102 (adjust_after_replace): If PREV_TEXT is nil, call
3103 adjust_markers_for_insert, not adjust_markers_for_replace.
3104
087121cc 31052000-05-20 NIIBE Yutaka <gniibe@mri.co.jp>
427ec082 3106
087121cc
GM
3107 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
3108 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
3109 [HAVE_GRANDPT]: Define.
3110 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
3111
3112 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
3113 like SYSV_PTYS.
3114
3115 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
3116
3117 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
3118
c9671f81
KH
31192000-05-20 Kenichi Handa <handa@etl.go.jp>
3120
3121 The following changes are to handle 8-bit characters in a
3122 multibyte buffer/string without facing with byte combining
3123 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and
3124 eight-bit-graphic (for 0xA0..0xFF) are introduced.
3125
3126 * Makefile.in (fns.o): Depend on charset.h.
3127
3128 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
3129 convert it to unibyte.
3130 (make_string): Use parse_str_as_multibyte, not chars_in_text.
3131
3132 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
3133 apparent char boundary.
3134 (Fset_buffer_multibyte): Convert 8-bit characters in the range
3135 0x80..0x9F to/from multibyte form.
3136
3137 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
3138 to unibyte.
3139
3140 * callproc.c (Fcall_process): Always encode an argument string if
3141 it is multibyte. Setup src_multibyte and dst_multibyte members of
3142 process_coding properly.
ce75fd23 3143
c9671f81
KH
3144 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
3145 SPLIT_NON_ASCII_CHAR.
3146
3147 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
3148 as is.
3149 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
3150
3151 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
3152 variables.
3153 (SPLIT_CHARACTER_SEQ): This macro deleted.
3154 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
3155 valid.
3156 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
3157 and eight-bit-graphic.
3158 (char_to_string): Likewise. Signal an error for too large
3159 character code.
3160 (char_printable_p): Return 0 for 8-bit characters.
3161 (update_charset_table): Update iso_charset_table only when a final
3162 character is non-negative.
3163 (find_charset_in_text): Renamed from find_charset_in_str.
3164 Arguments and return value changed. Callers changed.
3165 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
3166 be -1 if CHARSET is used only internally.
3167 (Fmake_char_internal): Handle new charsets; eight-bit-control and
3168 eight-bit-graphic.
3169 (Fcharset_after): Simplified.
3170 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
3171 (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
3172 (multibyte_chars_in_text): Simplified by assuming there's no
3173 invalid multibyte sequence.
3174 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
3175 str_as_unibyte): New functions.
3176 (Fstring): Simpified by assuming that byte combining never
3177 happens.
3178 (init_charset_once): Initialization for
3179 LEADING_CODE_8_BIT_CONTROL.
3180 (syms_of_charset): Intern and staticpro Qeight_bit_control and
3181 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets
3182 eight-bit-control and eight-bit-graphic.
3183
3184 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
3185 CHARSET_8_BIT_GRAPHIC): New macros.
3186 (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
3187 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
3188 (CHARSET_REVERSE_CHARSET): Likewise.
3189 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
3190 eight-bit-graphic.
3191 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
3192 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
3193 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
3194 encounter an invalid multibyte sequence.
3195 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
3196 sequence is always valid.
3197 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
3198 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
3199 macros.
3200 (CHAR_STRING): For 8-bit characters, call char_to_string.
3201 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume
3202 multibyte sequence is always valid.
3203 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
3204 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
3205 str_as_unibyte): Extern them.
3206 (BCOPY_SHORT): Fix a bug.
3207 (CHAR_LEN): This macro deleted. Callers changed to use
3208 CHAR_BYTES.
3209 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
3210 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
3211 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
3212
bd4bde7f 3213 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
c9671f81
KH
3214 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
3215 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
3216 EMIT_BYTES): New macros.
3217 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
3218 DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
3219 macros deleted.
3220 (CHECK_CODE_RANGE_A0_FF): This macro deleted.
3221 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
3222 check the validity of multibyte sequence.
3223 (decode_coding_emacs_mule): New function.
3224 (encode_coding_emacs_mule): New macro.
3225 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
3226 the source.
3227 (DECODE_ISO_CHARACTER): Just return a character code.
3228 (DECODE_COMPOSITION_START): Set coding->result instead of result.
3229 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
3230 EMIT_CHAR to produced decoded characters. Exit the loop only by
3231 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last
3232 block here.
3233 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce
3234 only position codes for an invalid character.
3235 (encode_designation_at_bol): Return new destination pointer. 5th
3236 arg DSTP is changed to DST.
3237 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
3238 from the source by ONE_MORE_CHAR. Don't handle the case of last
3239 block here.
3240 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
3241 macros deleted.
3242 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
3243 detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
3244 TWO_MORE_BYTES to fetch a byte from the source.
3245 (encode_eol): Pay attention to coding->src_multibyte.
3246 (detect_coding, detect_eol): Preserve members src_multibyte and
3247 dst_multibyte.
3248 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
3249 (encoding_buffer_size): Set magnification to 3 for all coding
3250 systems that require encoding.
3251 (ccl_coding_driver): For decoding, be sure that the result is
3252 valid multibyte sequence.
3253 (decode_coding): Initialize coding->errors and coding->result.
3254 For emacs-mule, call decode_coding_emacs_mule. For no-conversion
3255 and raw-text, always call decode_eol. Handle the case of last
3256 block here. If not coding->dst_multibyte, convert the resulting
3257 sequence to unibyte.
3258 (encode_coding): Initialize coding->errors and coding->result.
3259 For emacs-mule, call encode_coding_emacs_mule. For no-conversion
3260 and raw-text, always call encode_eol. Handle the case of last
3261 block here.
3262 (shrink_decoding_region, shrink_encoding_region): Detect cases
3263 that we can't skip data more rigidly.
3264 (code_convert_region): Setup src_multibyte and dst_multibyte
3265 members of coding. For decoding, if the buffer is multibyte,
3266 convert the source sequence to unibyte in advance. For encoding,
3267 if the buffer is multibyte, convert the resulting sequence to
3268 multibyte afterward.
3269 (run_pre_post_conversion_on_str): New function.
3270 (code_convert_string): Deleted and divided into the following two.
3271 (decode_coding_string, encode_coding_string): New functions.
3272 (code_convert_string1, code_convert_string_norecord): Call one of
3273 above.
3274 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
3275 MAKE_NON_ASCII_CHAR.
3276 (Fset_terminal_coding_system_internal,
3277 Fset_safe_terminal_coding_system_internal): Setup src_multibyte
3278 and dst_multibyte members.
3279 (init_coding_once): Initialize iso_code_class with new enum
3280 ISO_control_0 and ISO_control_1.
3281
3282 * coding.h (enum iso_code_class_type): Member ISO_control_code is
3283 devided into ISO_control_0 and ISO_control_1.
3284 (struct coding_system): New members src_multibyte, dst_multibyte,
3285 errors, and result. Delete member fake_multibyte.
3286 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
3287 nonzero.
3288 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
3289 nonzero.
3290
3291 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
3292 (Faset): Likewise.
3293
3294 * editfns.c (Fformat): Be sure to convert 8-bit characters to
3295 multibyte form.
3296 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
3297 combining occurs.
3298 (Ftranspose_region): Delete codes for handling byte combining.
3299
3300 * fileio.c (Finsert_file_contents): Setup src_multibyte and
3301 dst_multibyte members of coding. On handling REPLACE on unibyte
3302 buffer, convert the result of decode_coding to unibyte. On
3303 inserting into a mutibyte buffer, always call code_convert_region.
bd4bde7f 3304 (e_write): Setup coding->src_multibyte according to the
c9671f81
KH
3305 multibyteness of the source (buffer or string).
3306
3307 * fns.c (concat): Handle 8-bit characters correctly.
3308 (Fstring_as_unibyte): Be sure to make all 8-bit characters in
3309 unibyte in the result.
3310 (Fstring_as_multibyte): Be sure to make all 8-bit characters in
3311 valid multibyte form in the result.
3312 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
3313 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
3314 return -1, signal an error.
3315 (base64_encode_1): New arg MULTIBYTE. Get each character by
3316 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte
3317 character is found, return -1.
3318 (Fbase64_decode_region): Delete codes for handling byte-combining.
3319 Treat each decoded byte as a unibyte character.
3320 (Fbase64_decode_string): Return unibyte string.
3321 (Fcompare_strings, concat, string_byte_to_char): Use
3322 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
3323 FETCH_STRING_CHAR_ADVANCE.
3324 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
3325 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
3326
3327 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
3328 SPLIT_NON_ASCII_CHAR.
3329 (fontset_ref_via_base, fontset_set): Likewise
3330
3331 * insdel.c (adjust_markers_for_record_delete): Deleted.
3332 (adjust_markers_for_insert): Argument changed. Caller changed.
3333 (adjust_markers_for_replace): Likewise.
3334 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
3335 CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
3336 (copy_text): Delete unused local varialbe c_save. For converting
3337 to multibyte, be sure to make all 8-bit characters in valid
3338 multibyte form.
3339 (count_size_as_multibyte): Handle 8-bit characters correctly.
3340 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
3341 adjust_after_replace, replace_range, del_range_2)
3342 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
3343 (insert_1_both, insert_from_string_1, insert_from_buffer_1,
3344 adjust_after_replace, replace_range, del_range_2) Delete codes for
3345 handling byte combining.
3346 (adjust_before_replace): Deleted.
427ec082 3347
c9671f81
KH
3348 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
3349 SPLIT_NON_ASCII_CHAR.
3350 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
3351 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
3352 unconditionally.
3353 (Fkey_description): Likewise.
3354
3355 * lread.c (read1): On reading multibyte string, be sure to make
3356 all 8-bit chararacters in valid multibyte form.
3357 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
3358
3359 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
3360 unconditionally.
3361
3362 * process.c (Fstart_process): GCPRO current_dir before calling
3363 Ffind_operation_coding_system. Encode arguments here.
3364 (create_process): Don't encode arguments here. Setup
3365 src_multibyte and dst_multibyte members of struct coding.
3366 (read_process_output): Setup src_multibyte and dst_multibyte
3367 members of struct coding. If the output is to multibyte buffer,
3368 always decode the output of the process. Adjust the
3369 representation of 8-bit characters to the multibyteness of the
3370 output.
3371 (send_process): Setup coding->src_multibyte according to the
3372 multibyteness of the source.
3373
3374 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
3375 unconditionally.
3376 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
3377 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
3378
3379 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
3380 CHAR_LEN.
3381
3382 * w16select.c (Fw16_set_clipboard_data): Setup members
3383 src_multibyte and dst_multibyte of coding. Adjusted for the
3384 change for find_charset_in_str.
3385 (Fw16_get_clipboard_data): Likewise.
3386
3387 * w32fns.c (w32_to_x_font): Setup members src_multibyte and
3388 dst_multibyte of coding.
3389 (x_to_w32_font): Likewise.
3390
3391 * w32select.c (Fw32_set_clipboard_data): Setup members
3392 src_multibyte and dst_multibyte of coding. Adjusted for the
3393 change for find_charset_in_str.
3394 (Fw32_get_clipboard_data): Likewise.
3395
3396 * xdisp.c (get_next_display_element): Handle 8-bit characters
3397 correctly.
3398 (next_element_from_display_vector): Use CHAR_BYTES instead of
3399 CHAR_LEN.
3400 (disp_char_vector): Use SPLIT_CHAR instead of
3401 SPLIT_NON_ASCII_CHAR.
3402
3403 * xselect.c (selection_data_to_lisp_data): Setup members
3404 src_multibyte and dst_multibyte of coding. Adjusted for the
3405 change for find_charset_in_str.
3406 (lisp_data_to_selection_data): Likewise.
3407
5f64c9e0
GM
34082000-05-19 Gerd Moellmann <gerd@gnu.org>
3409
2b63d473
GM
3410 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
3411 buffer.
3412
5f64c9e0
GM
3413 * dispextern.h (Vimage_types): Add extern declaration.
3414
3415 * xdisp.c (Vimage_types): Moved here from xfns.c.
3416 (syms_of_xdisp): Move `image-types' variable here from xfns.c.
3417
3418 * xfns.c (Vimages_types): Moved to xdisp.c.
3419 (syms_of_xfns): Move `image-types' to xdisp.c.
3420
3421 * w32fns.c (Vimage_types): Removed.
3422 (syms_of_w32fns): Remove `image-types'.
3423
813086ea
KH
34242000-05-18 Kenichi Handa <handa@etl.go.jp>
3425
3426 * fns.c (map_char_table): Pay attention to character number of
3427 charset. Check the validity of charset at the first level. For
3428 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
3429 the default value.
3430
3431 * fontset.c: Include "buffer.h".
3432 (fs_load_font): If the face has fontset, record the face ID in
3433 that fontset.
3434 (Finternal_char_font): New function.
3435 (accumulate_font_info): New function.
3436 (Ffontset_info): Rewritten for the new fontset implementation.
3437 (syms_of_fontset): Register Vdefault_fontset in the first element
3438 of Vfontset_table. Include Vdefault_fontset in
3439 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp
3440 function.
3441
bdaebbf0
DL
34422000-05-16 Dave Love <fx@gnu.org>
3443
3444 * m/iris5d.h: Deleted -- unused.
3445
cb613bb8
GM
34462000-05-16 Gerd Moellmann <gerd@gnu.org>
3447
b15f3b77
GM
3448 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
3449 `invalid' instead of `illegal'.
3450
3451 * indent.c (Fmove_to_column): When ending within a tab, insert
3452 spaces first so that markers at the end of the tab get adjusted.
3453
835c1b36
GM
3454 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
3455 buffer list that wasn't selected in that frame.
3456
cb613bb8
GM
3457 * filelock.c (get_boot_time): To obtain an 8 char file name, which
3458 is needed on mescaline, use a 2 char prefix, and call
3459 make_temp_name with second arg non-zero.
3460
3461 * fileio.c (make_temp_name): New function, extracted from
3462 Fmake_temp_name.
3463 (Fmake_temp_name): Use it.
3464
f685bea9
EZ
34652000-05-15 Eli Zaretskii <eliz@is.elta.co.il>
3466
3467 * window.c (coordinates_in_window): Subtract 1 when computing
3468 right_x.
3469
a1b8d58b
GM
34702000-05-15 Gerd Moellmann <gerd@gnu.org>
3471
3472 * Makefile.in (lisp): Add env.elc.
3473
3474 * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
3475
a265079f
GM
34762000-05-12 Gerd Moellmann <gerd@gnu.org>
3477
3478 * search.c (Freplace_match): Handle case of `\N' in the
3479 replacement when there's no group N.
3480
da4496b6
GM
34812000-05-11 Gerd Moellmann <gerd@gnu.org>
3482
0ace421a
GM
3483 * xdisp.c (add_to_log): Don't pass the terminating NUL byte
3484 of the message to message_dolog.
3485
1172eb8d
GM
3486 * keyboard.c (read_char): Don't clear current message for help
3487 events; let the code handling help events handle this. Change
3488 code detecting help events that should be ignored.
3489
da4496b6
GM
3490 * xdisp.c (handle_single_display_prop): Don't try to set PT if
3491 we're interating over a string.
3492
0623e40f
DL
34932000-05-09 Dave Love <fx@gnu.org>
3494
3495 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
3496 that offset before writing. Move gcpro region past call of
3497 Ffile_regular_p.
3498
bae2503b
DL
34992000-05-04 Dave Love <fx@gnu.org>
3500
3501 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
3502
ec82fb2f
GM
35032000-05-04 Gerd Moellmann <gerd@gnu.org>
3504
3505 * insdel.c (insert_from_buffer_1): Adjust FROM position by number
3506 of inserted characters when BUF equals the current buffer, and PT
3507 is in front of or equal to FROM.
3508
cbf18892
GM
35092000-05-03 Gerd Moellmann <gerd@gnu.org>
3510
4ff40dd0
GM
3511 * xdisp.c (handle_single_display_prop): If display property value
3512 is invalid, or something not supported on the frame, restore
3513 iterator's position to what it was initially. Make sure to return
3514 0 for invalid and unsupported property values.
3515
cbf18892
GM
3516 * xterm.c (x_produce_glyphs) <composite chars>: Handle case
3517 that x_per_char_metric returns null.
3518
1b0672c3
GM
35192000-05-02 Gerd Moellmann <gerd@gnu.org>
3520
576da55d
GM
3521 * xterm.h (struct face): Add forward declaration.
3522 (struct image): Ditto.
3523 (image_ascent): Add prototype.
3524
3525 * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
3526 (x_draw_image_relief, x_draw_image_foreground_1): Call function
3527 image_ascent instead of using IMAGE_ASCENT.
3528
3529 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
3530 (IMAGE_ASCENT): Removed.
3531
3532 * xfns.c (Qcenter): New variable.
3533 (enum image_value_type): Add IMAGE_ASCENT_VALUE.
3534 (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
3535 (image_ascent): New function.
3536 (lookup_image): Recognize `:ascent center'.
3537 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
3538 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
3539 (xbm_load): Don't set image's ascent here.
3540 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
3541 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
3542 check ascent values here.
3543 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
3544 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
3545 (syms_of_xfns): Initialize Qcenter.
3546
1b0672c3
GM
3547 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
3548 to the limits, increase the limits.
3549
0d7811ed
KH
35502000-05-01 Kenichi Handa <handa@etl.go.jp>
3551
3552 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
3553 Check Vfont_encoding_alist against the full name of the opened
3554 font.
3555
a943a5ca
GM
35562000-04-28 Gerd Moellmann <gerd@gnu.org>
3557
3558 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
3559 taller than the window.
3560
5dba1e29
KH
35612000-04-28 Kenichi Handa <handa@etl.go.jp>
3562
3563 * xfaces.c (realize_x_face): Fix the argument of the second
3564 xassert. BASE_FACE may not be a face for ASCII.
3565
353964e3
GM
35662000-04-27 Gerd Moellmann <gerd@gnu.org>
3567
c76e04a8
GM
3568 * print.c (print_object): Treat print-length < 0 as nil.
3569
3570 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
3571
3572 * s/freebsd.h (TERMCAP_OBJ): Removed.
3573 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
3574
3575 * lread.c (read1): Don't treat period followed by certain
3576 characters as symbol start.
3577
3578 * xfns.c (slurp_file): New function.
3579 (xbm_image_p): Handle case of in-memory XBM files.
3580 (xbm_scan): Rewritten to work on memory buffers instead of files.
3581 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
3582 Work on memory buffers instead of files. If DATA is null test
3583 if buffer looks like an in-memory XBM file.
3584 (xbm_load_image): Renamed from xbm_load_image_file. Work on
3585 memory buffers instead of files.
3586 (xbm_file_p): New function.
3587 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
3588
353964e3
GM
3589 * lread.c (end_of_file_error): New function.
3590 (read1): Call it instead of signaling `end-of-file' directly.
3591
427ec082 3592 * print.c (print_error_message): Print data of `end-of-file'
353964e3
GM
3593 with Fprinc instead of Fprin1.
3594
24d744ac
KR
35952000-04-26 Ken Raeburn <raeburn@gnu.org>
3596
3597 * window.c (freeze_window_start): Check that minibuffer scroll
3598 window isn't nil before extracting the window structure pointer
3599 from it.
3600
3601 * undo.c (record_delete): If we hit the end of the undo list, stop
3602 picking elements apart.
3603
7464346d
GM
36042000-04-26 Gerd Moellmann <gerd@gnu.org>
3605
3606 * xdisp.c (display_line): If lines are continued, restore
3607 iterator's ascent/descent information to the values before the
3608 first glyph not fitting on the line.
3609
612839b6
GM
36102000-04-25 Gerd Moellmann <gerd@gnu.org>
3611
3612 * xdisp.c (try_window_id) <all changes above window start>: Adjust
3613 positions in glyph matrix. Don't compute new window end
3614 positions.
3615
3616 * dispnew.c (increment_matrix_positions): Renamed from
3617 increment_glyph_matrix_buffer_positions.
3618 (increment_row_positions): Renamed from
3619 increment_glyph_row_buffer_positions.
3620
3621 * dispextern.h: Change names of renamed functions from dispnew.c
3622 in prototypes.
3623
cc181e95
GM
36242000-04-24 Gerd Moellmann <gerd@gnu.org>
3625
abfcc168
GM
3626 * fileio.c (Fdo_auto_save): Create directories for auto-save
3627 list file if necessary.
3628
cc181e95
GM
3629 * xdisp.c (init_iterator): Set iterator's extra_line_spacing
3630 from buffer or frame.
3631 (automatic_hscrolling_p): New variable.
3632 (hscroll_windows): Scroll windows horizontally only if automatic
3633 hscrolling is allowed.
3634 (syms_of_xdisp): New variable `automatic-hscrolling'.
3635
3636 * frame.h (struct frame): Add member extra_line_spacing.
3637
3638 * xfns.c (x_set_line_spacing): New function.
3639 (Fx_create_frame): Set line spacing from resources.
3640 (Qline_spacing): New variable.
3641 (syms_of_xfns): Initialize Qline_spacing.
427ec082 3642
cc181e95
GM
3643 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
3644
3645 * buffer.c (init_buffer_once): Handle extra_line_spacing.
3646 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
abfcc168 3647 (reset_buffer): Don't initialize extra2 and extra3. Initialize
cc181e95
GM
3648 extra_line_spacing from default value.
3649 (init_buffer_once): Initialize default value of extra_line_spacing.
3650
3651 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
3652 and extra3.
3653
3654 * xterm.c (x_produce_glyphs): Remove reference to struct it's
3655 prompt_width. Add extra line spacing.
3656
3657 * term.c (produce_glyphs): Remove reference to struct it's
3658 prompt_width.
3659
3660 * dispextern.h (struct it): Remove member prompt_width, add
3661 extra_line_spacing.
3662
58827478
GM
36632000-04-22 Gerd Moellmann <gerd@gnu.org>
3664
3665 * dispnew.c (update_frame_line): When writing a whole line, make
3666 sure cursor is in the right row afterwards, otherwise a use of
3667 capability `ch' in cmgoto might leave the cursor in the row below.
3668
25a87f42
GM
36692000-04-21 Gerd Moellmann <gerd@gnu.org>
3670
3671 * lisp.h (struct Lisp_Buffer_Cons): Remove.
3672
3673 * keyboard.c (timer_check): Fix typo in comment.
3674
54edf5c2
KH
36752000-04-21 Kenichi Handa <handa@etl.go.jp>
3676
3677 * fontset.c (Fset_fontset_font): Fix docstring. Local variable
3678 name change: ch -> character.
3679
3a64eef5
GM
36802000-04-20 Gerd Moellmann <gerd@gnu.org>
3681
3682 * keyboard.c (echo_message_buffer): New variable.
3683 (echo_now): Set echo_message_buffer to the echo area buffer used
3684 to display the echo.
3685 (cancel_echoing): Reset echo_message_buffer to nil.
3686 (read_char): Code rewritten that handles canceling an echo or
3687 echoing a dash, respectively.
3688
3689 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
3690 directory doesn't exist.
3691
6142fdcb
DL
36922000-04-19 Dave Love <fx@gnu.org>
3693
3694 * fns.c (syms_of_fns): Defsubr mapc.
a9cacab7
DL
3695 (concat): Don't allow numeric args.
3696 (Fconcat): Doc change.
6142fdcb 3697
ac6b5352
SM
36982000-04-19 Stefan Monnier <monnier@cs.yale.edu>
3699
3700 * regex.c (re_match_2_internal): Don't shorten the strings anymore,
3701 instead define end_match(1|2) more carefully.
3702 Use GET_CHAR_BEFORE_2 for `begline'.
3703
cb9215e4
GM
37042000-04-19 Gerd Moellmann <gerd@gnu.org>
3705
5e3dac3f
GM
3706 * frame.h (SELECTED_FRAME): Change definition to compile cleanly
3707 on 64-bit systems where NULL is defined as `0'.
3708
3709 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
3710 the `variable argument list' to make it work on Alpha.
3711
cb9215e4
GM
3712 * m/alpha.h (_LP64) [!_LP64]: Define.
3713 (ORDINARY_LINK): Define for NetBSD.
3714
3715 * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
427ec082 3716
f532dca0
DL
37172000-04-19 Dave Love <fx@gnu.org>
3718
c750667e
DL
3719 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
3720 change.
3721
3722 * Makefile.in (LIBS): Don't use.
3723 (GETLOADAVG_OBJ): Define again.
3724 (otherobj): Add GETLOADAVG_OBJ.
3725
f532dca0
DL
3726 * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
3727
1c7e22fd
GM
37282000-04-18 Gerd Moellmann <gerd@gnu.org>
3729
f6d3257b
GM
3730 * lread.c (read_filtered_event): Cancel and start busy cursor.
3731
427ec082 3732 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
1c7e22fd
GM
3733 that the per-character metrics may be null.
3734
e10f64e7
GM
37352000-04-17 Gerd Moellmann <gerd@gnu.org>
3736
0daee095
GM
3737 * buffer.c (clone_per_buffer_values): New function.
3738 (Fmake_indirect_buffer): Add optional argument CLONE. Call
3739 clone_per_buffer_values if CLONE is not nil.
3740
e10f64e7
GM
3741 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
3742
38687d43
DL
37432000-04-16 Dave Love <fx@gnu.org>
3744
3745 * Makefile.in: Remove obsolete localcpp stuff.
3746 (GETLOADAVG_OBJ): Don't define.
3747 (obj): Move LIBOBJS...
3748 (otherobj): ... to here.
3749 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
3750 whitespace-only lines after the continuation (Irix).
3751
c21c7262
GM
37522000-04-14 Gerd Moellmann <gerd@gnu.org>
3753
3754 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
3755
3756 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
3757
314767c0
DL
37582000-04-14 Dave Love <fx@gnu.org>
3759
3760 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
3761 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
3762 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
3763 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
3764 NLIST_STRUCT.
3765
3766 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
3767 autoconfiscated HAVE_GETLOADAVG.
3768
3769 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
3770 BROKEN_MKTIME.
3771
a2522dca
GM
37722000-04-14 Gerd Moellmann <gerd@gnu.org>
3773
3774 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
3775 (fill_in_lock_file_name): Avoid existing files that aren't
3776 links.
3777
33744b5d
DL
37782000-04-14 Dave Love <fx@gnu.org>
3779
c21c7262 3780 * Makefile.in (LIBS, LIBOBJS): New variable.
33744b5d
DL
3781 (INTERVAL_SRC): Convert to make variable.
3782 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
3783 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
3784 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
3785 add LIBOBJS.
3786 (SOME_MACHINE_OBJECTS): Remove interval stuff.
3787 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
3788 (shortlisp): Add facemenu, float-sup, frame.
3789 (SOME_MACHINE_LISP): Remove them from here.
3790 (LIBES): Change unused LDLIBS to autoconf LIBS.
3791
3792 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
3793
9d3d5916
KH
37942000-04-14 Kenichi Handa <handa@etl.go.jp>
3795
3796 * composite.c (update_compositions): If FROM and TO are not in a
3797 valid range, do nothing.
3798
198e3c7a
GM
37992000-04-13 Gerd Moellmann <gerd@gnu.org>
3800
3801 * tparam.c (tparam1): Abort when encountering an unknown
3802 `%'-specifier.
3803
3804 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
3805 terminfo.o.
3806
3807 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
3808 as TERMCAP_OBJ.
3809
055a28c9
EZ
38102000-04-13 Eli Zaretskii <eliz@is.elta.co.il>
3811
3812 * fileio.c (a_write): Remove redundant semi-colons.
3813 (e_write): Return -1 if failed to write all the data.
3814 This fixes the changes made at 1999-12-15.
3815
f5c75033
DL
38162000-04-12 Dave Love <fx@gnu.org>
3817
3818 * fns.c (mapcar1): Test for null vals to support mapc.
3819 (Fmapc): New function.
3820
0c3cfc51
EZ
38212000-04-12 Eli Zaretskii <eliz@is.elta.co.il>
3822
3823 * msdos.c (NUM_MOUSE_BUTTONS): Define.
3824 (IT_frame_up_to_date): Support the buffer local value of
3825 cursor-type, if defined.
3826
33465a31
DL
38272000-04-10 Dave Love <fx@gnu.org>
3828
3829 * editfns.c (preceding-char, following-char): Doc fix.
3830
6ed56568
KR
38312000-04-10 Ken Raeburn <raeburn@gnu.org>
3832
3833 * Makefile.in (temacs): Revert 2000-03-12 change.
3834
7cf80d4e
JR
38352000-04-10 Jason Rumney <jasonr@gnu.org>
3836
3837 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
3838
34f3f342
GM
38392000-04-10 Gerd Moellmann <gerd@gnu.org>
3840
1a1b1895
GM
3841 * xdisp.c (setup_echo_area_for_printing): Choose an echo
3842 area buffer, if it's not set up yet.
3843
34f3f342
GM
3844 * indent.c (compute_motion): Set immediate_quit.
3845
be0dbdab
GM
38462000-04-09 Gerd Moellmann <gerd@gnu.org>
3847
c45be9ac
GM
3848 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
3849 variable.
3850 (realize_tty_face): Suppress boldness if colors are the inverse of
3851 the default colors, and tty_suppress_bold_inverse_default_colors_p
3852 is set.
3853 (Ftty_suppress_bold_inverse_default_colors): New function.
3854 (syms_of_xfaces): Defsubr it.
3855
be0dbdab
GM
3856 * buffer.c (Frestore_buffer_modified_p): New function.
3857 (syms_of_buffer): Defsubr it.
3858
e8413c3b
KR
38592000-04-08 Ken Raeburn <raeburn@gnu.org>
3860
87f67317
KR
3861 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
3862 charset id (int) argument, not a charset (Lisp_Object).
3863
e8413c3b
KR
3864 * coding.h (code_convert_string): Declare.
3865 * coding.c (code_convert_string_norecord): Pass an int, not a lisp
3866 object, as the fourth argument to code_convert_string.
3867
3868 * fontset.c (make_fontset_for_ascii_face): Use XINT on return
3869 value.
3870 (Fset_fontset_font): Use EQ to compare lisp objects.
3871
7c752c80
KR
38722000-04-05 Ken Raeburn <raeburn@gnu.org>
3873
c0333abc
KR
3874 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
3875 a pointer that looks like a lisp object.
3876 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
3877 zero, instead see whether it's an integer object, since they can't
3878 have intervals.
3879 (GET_INTERVAL_OBJECT): Simply assign to the destination.
3880
7c752c80
KR
3881 * dispnew.c (allocate_matrices_for_frame_redisplay,
3882 direct_output_forward_char): Use X(U)INT and make_number as needed
3883 to convert between (unsigned) int values and lisp integers.
3884 * keyboard.c (read_key_sequence): Likewise.
3885 * lread.c (substitute_object_recurse): Likewise.
3886 * fns.c (concat, hash_lookup, hash_remove): Likewise.
3887 * minibuf.c (do_completion, Fminibuffer_complete_word,
3888 Fminibuffer_completion_help): Likewise.
3889 * term.c (produce_special_glyphs): Likewise.
3890
3891 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
3892 * print.c (print_preprocess, print_object): Likewise.
3893
3894 * search.c (compile_pattern): Use NILP when checking for nil.
3895
74e49b38
KR
3896 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
3897 __OPTIMIZE__]: Provide a GNU C macro version that handles
3898 lisp-object unions.
3899 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
3900 field, to better cope with ENABLE_CHECKING and calls that modify a
3901 Lisp_Object using its old value.
3902
685e5ed2
GM
39032000-04-04 Gerd Moellmann <gerd@gnu.org>
3904
c407c570
GM
3905 * window.c (compare_window_configurations): Signal an error
3906 if parameters C1 or C2 aren't window configurations.
3907
685e5ed2
GM
3908 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
3909 AFTER_POTENTIAL_GC calls around calls to functions that can
3910 signal an error and thus invoke the debugger.
3911
587a49ab
GM
39122000-04-03 Gerd Moellmann <gerd@gnu.org>
3913
62f20204
GM
3914 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
3915 an error if decoding fails.
3916
587a49ab
GM
3917 * keyboard.c (lispy_mouse_names): Variable removed.
3918 (Vlispy_mouse_stem): New variable.
3919 (syms_of_keyboard): Initialize Vlispy_mouse_stem.
3920 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
3921 for any mouse button number. Increase size of mouse_syms and
3922 button_down_location as needed. Call modify_event_symbol with
3923 different arguments.
3924 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
3925 Call modify_event_symbol with different arguments.
3926 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
3927 for any button number. Call modify_event_symbol with different
3928 arguments.
3929 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
3930 Accept a string for NAME_ALIST_OR_STEM.
3931
3932 * lisp.h (larger_vector): Add prototype.
3933
3934 * fns.c (larger_vector): Make externally visible.
3935
3936 * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
3937
2d1675e4
SM
39382000-04-02 Stefan Monnier <monnier@cs.yale.edu>
3939
3940 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
3941 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
3942 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
3943 we are between str1 and str2.
3944 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
3945 (PATFETCH): Use `TRANSLATE'.
3946 (PATFETCH_RAW): Fetch multibyte char if applicable.
3947 (PATUNFETCH): Remove.
3948 (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
3949 When writing a char, write it directly into the pattern buffer rather
3950 than going needlessly through a temp char-array.
3951 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
3952 multibyte magic and remove the useless `#ifdef emacs'.
3953 (bcmp_translate): Don't compare as multibyte chars when in a unibyte
3954 buffer.
3955
3956 * regex.h (struct re_pattern_buffer): Make field `multibyte'
3957 conditional on `emacs'.
3958
3959 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
3960
cc2d8c6b
KR
39612000-04-01 Ken Raeburn <raeburn@gnu.org>
3962
3963 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
3964 non-union-type versions of XMARK and friends here, because XMARK
3965 and friends won't work on an integer field if NO_UNION_TYPE is not
3966 defined.
3967 (make_number): Define as a function if it's not defined as a
3968 macro.
3969
09654086
KR
3970 * composite.c (run_composite_function): Use NILP when checking for
3971 nil.
3972 (syms_of_composite): Delete local var NARGS, pass an int as first
3973 argument to Fmake_hash_table.
3974
2387b382
KR
3975 * editfns.c (text_property_stickiness): Use NILP to test
3976 Lisp_Object boolean value.
3977 (Fmessage_or_box): Don't use NILP to test int variable.
c01fbf95
KR
3978 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
3979 problems reading from and changing the same lisp value in an
3980 XSETSTRING call.
3981
27660e89
GM
39822000-04-01 Gerd Moellmann <gerd@gnu.org>
3983
3984 * term.c (TN_no_color_video): New variable.
3985 (term_init): Intitialize TN_no_color_video.
3986 (enum no_color_bit): New enumeration.
3987 (MAY_USE_WITH_COLORS_P): New macro.
3988 (turn_on_face): Use it to determine if attributes may be used
3989 combined with colors.
3990
3578db3c
KR
39912000-04-01 Ken Raeburn <raeburn@gnu.org>
3992
3993 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
3994 with int lvalues via casts; instead, just yield lisp object
3995 lvalues.
3996 (enlarge_window): Variable sizep now points to Lisp_Object. Use
3997 proper accessor macros.
3998 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
3999 (grow_mini_window): Fix typo getting int value of root->height.
4000
6fc556fd
KR
4001 * xdisp.c (compute_string_pos): Fix order of arguments to
4002 string_pos_nchars_ahead.
4003 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
4004 count arg to variable-arg routines like Frun_hook_with_args and
4005 Fformat.
587a49ab
GM
4006 (back_to_previous_visible_line_start)
4007 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
6fc556fd
KR
4008 fixed-arg routines like Fget_char_property and Fmake_string.
4009 (reconsider_clip_changes): Use XINT when comparing integer lisp
4010 objects, or passing them as int arguments.
587a49ab
GM
4011 (mark_window_display_accurate, insert_left_trunc_glyphs)
4012 (append_space, extend_face_to_end_of_line): Use make_number when
6fc556fd
KR
4013 storing or passing integer values as lisp objects.
4014 (set_cursor_from_row, highlight_trailing_whitespace): Use
4015 INTEGERP, not implicit test against zero, for glyph object.
4016 (try_window_id): Don't use make_number when we want an int value.
4017
4018 * xfaces.c (xlfd_symbolic_value): Make last argument a
4019 Lisp_Object, to be consistent with callers.
4020 (Fbitmap_spec_p): Use XINT to get numeric value of height.
4021 (lface_hash): Apply XFASTINT to lisp values before folding in.
4022
4023 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
4024 fill in window width and height. Pass an int, not a lisp object,
4025 as first arg to Finsert.
4026
6e7b2457
GM
40272000-04-01 Gerd Moellmann <gerd@gnu.org>
4028
610d841e
GM
4029 * xfaces.c (realize_basic_faces): Block input while realizing
4030 the faces.
4031
6e7b2457
GM
4032 * keyboard.c (lispy_mouse_names): Add additional mouse names.
4033
4034 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
4035
aa110c0c
GM
40362000-03-31 Gerd Moellmann <gerd@gnu.org>
4037
4038 * xterm.c (x_produce_glyphs): When displaying unibyte text
610d841e 4039 or ASCII, handle case that per-char metric is null.
aa110c0c 4040
8801a864
KR
40412000-03-30 Ken Raeburn <raeburn@gnu.org>
4042
c6129d7e
KR
4043 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
4044
8801a864
KR
4045 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
4046 XSUBR, XBUFFER): Verify correct object type before returning
4047 pointer, using eassert.
4048 * frame.h (XFRAME): Likewise.
4049
4050 * buffer.c (Frename_buffer, Fset_buffer_multibyte,
4051 swap_out_buffer_local_variables, Fmove_overlay): Don't apply
4052 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
4053 type.
4054 * data.c (set_internal): Likewise.
4055 * dispextern.h (WINDOW_WANTS_MODELINE_P,
4056 WINDOW_WANTS_HEADER_LINE_P): Likewise.
4057 * fileio.c (auto_save_1): Likewise.
4058 * insdel.c (check_markers): Likewise.
4059 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
4060 * undo.c (record_insert): Likewise.
4061 * vmsproc.c (child_sig): Likewise.
4062 * window.c (unshow_buffer, window_loop): Likewise.
4063 * xterm.c (x_erase_phys_cursor): Likewise.
4064
8e7af858
GM
40652000-03-30 Gerd Moellmann <gerd@gnu.org>
4066
4067 * xfns.c (free_image_cache): Free the cache structure itself
4068 last, after all its members have been freed.
4069
4070 * lisp.h (xstrdup): Add prototype.
4071
4072 * alloc.c (xstrdup): Moved here from xfaces.c.
4073 (allocating_for_lisp): Variable removed.
4074 (lisp_malloc): Block input around the calls to malloc and
4075 mem_insert.
4076
4077 * xfaces.c (realize_tty_face): Use find_symbol_value instead
4078 of Fsymbol_value.
4079 (xstrdup): Moved to alloc.c.
4080
e0b8c689
KR
40812000-03-29 Ken Raeburn <raeburn@gnu.org>
4082
b96f9fb7
KR
4083 * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
4084
4085 * emacs.c (main): Fix sense of no-loadup test.
4086
e0b8c689
KR
4087 * config.in (ENABLE_CHECKING): Undef.
4088
4089 * lisp.h (struct interval): Replace "parent" field with a union of
4090 interval pointer and Lisp_Object; add new bitfield to use as
4091 discriminant. Change other flag fields to bitfields.
4092 (CHECK): New macro for consistency checking. If ENABLE_CHECKING
4093 is defined and the supplied test fails, print a message and
4094 abort.
4095 (eassert): New macro. Use CHECK to provide an assert-like
4096 facility.
4097
4098 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
4099 pointers; abort if the value looks like a lisp object.
4100 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
4101 SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
4102 Modify for new interval parent definition.
4103
4104 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
4105 UNMARK_BALANCE_INTERVALS): Update references that need an
4106 addressable lisp object in the interval structure.
4107 (die): New function.
4108 (suppress_checking): New variable.
4109
4110 * intervals.c (interval_start_pos): Just return 0 if there's no
4111 parent object.
4112
f83c5440
GM
41132000-03-29 Gerd Moellmann <gerd@gnu.org>
4114
4115 * lread.c (read1): Accept `.' (period) as symbol start like in CL
4116 and earlier Emacs versions.
4117
4118 * keyboard.c (Ftop_level): Cancel busy-cursor.
4119
4120 * eval.c (call_debugger): Cancel busy-cursor.
4121
fdce64ff
KH
41222000-03-29 Kenichi Handa <handa@etl.go.jp>
4123
4124 * search.c (Freplace_match): Adjust multibyteness of the current
4125 buffer and NEWTEXT. Free allocated memory before signaling an
4126 error.
4127
f6a3f532
SM
41282000-03-28 Stefan Monnier <monnier@cs.yale.edu>
4129
4130 * regex.c (analyse_first): New function obtained by ripping out most
4131 of re_compile_fastmap and generalizing it a little bit so that it
4132 can also just return whether a given (sub)pattern can match the empty
4133 string or not.
4134 (regex_compile): Use `analyse_first' to decide whether the loop-check
4135 needs to be done or not for *, +, *? and +? (the loop check is costly
4136 for non-greedy repetition).
4137 (re_compile_fastmap): Delegate the actual work to `analyse_first'.
4138
e9b309ac
DL
41392000-03-28 Dave Love <fx@gnu.org>
4140
bb15bd9a
DL
4141 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
4142 alpha.
4143
e9b309ac
DL
4144 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__.
4145
ed0767d8
SM
41462000-03-27 Stefan Monnier <monnier@cs.yale.edu>
4147
4148 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
4149 an expression.
4150 (enum re_opcode_t): Update description of succeed_n.
4151 (PATFETCH): Always define.
4152 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
4153 operators, char classes, shy-groups and intervals).
4154 Optimize special cases of intervals so as to only use succeed_n and
4155 jump_n when really needed.
4156 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
4157 that we don't have to handle the special cases any more.
4158 Simplify on_failure_jump handling as well.
4159
e11e7e46
JR
41602000-03-28 Jason Rumney <jasonr@gnu.org>
4161
4162 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
4163
88faab89
GM
41642000-03-27 Gerd Moellmann <gerd@gnu.org>
4165
182ff242
GM
4166 * s/freebsd.h (GC_SETJMP_WORKS): Define.
4167
4168 * s/msdos.h (GC_SETJMP_WORKS): Define.
427ec082 4169
182ff242
GM
4170 * alloc.c (mark_maybe_object): New function.
4171 (mark_memory): Use it.
4172 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
4173 (setjmp_tested_p, longjmp_done): New variables.
4174 (test_setjmp): New function.
4175 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
4176 (init_alloc): Initialize setjmp_tested_p and longjmp_done.
4177
c1005d06
GM
4178 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
4179 to DEC_TEXT_POS and INC_TEXT_POS.
4180
4181 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
4182 with parameter MULTIBYTE_P.
4183
427ec082 4184 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
c1005d06
GM
4185 MULTIBYTE_P.
4186
7439e5b9 4187 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
182ff242
GM
4188 buffers because it looks for multibyte character byte sequences
4189 which don't exist in unibyte text.
7439e5b9 4190
d9c545da
GM
4191 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
4192
11fd416e 4193 * xfaces.c (register_color, unregister_color, unregister_colors)
d9c545da
GM
4194 [DEBUG_X_COLORS]: New functions.
4195 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
4196
4197 * xfns.c (x_set_cursor_color): Get color reference counts right.
4198
4199 * xterm.c (x_copy_color): New function.
4200 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
4201
4202 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
4203 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
4204 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
4205 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
4206 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
4207 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
4208 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
4209 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
4210 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
4211 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
4212
11fd416e
GM
4213 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
4214 names for handling per-buffer variables.
d9c545da
GM
4215
4216 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
4217 instead of MAX_BUFFER_LOCAL_VARS.
4218 (last_per_buffer_idx): Renamed from max_buffer_local_idx.
4219
4220 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
4221
88faab89
GM
4222 * xfns.c (x_specified_cursor_type): New function.
4223 (x_set_cursor_type): Use it.
4224
4225 * buffer.h (struct buffer): Add cursor_type.
4226
d80f42b7
SM
42272000-03-26 Stefan Monnier <monnier@cs.yale.edu>
4228
4229 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
427ec082 4230 (print_partial_compiled_pattern, re_compile_fastmap): Handle new
88faab89 4231 opcode.
d80f42b7
SM
4232 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
4233 (re_match_2_internal): Add code for on_failure_jump_nastyloop when
4234 executing it as well as when popping it off the stack to find infinite
4235 loops in non-greedy repetition operators.
4236
89e80928
GM
42372000-03-26 Gerd Moellmann <gerd@gnu.org>
4238
3d4ff2dd
GM
4239 * doc.c (Qfunction_documentation): New variable.
4240 (syms_of_doc): Initialize Qfunction_documentation.
4241 (Fdocumentation): If FUNCTION is a symbol with non-nil
4242 `function-documentation' property, return a documentation derived
4243 from that.
4244
bd96bd79
GM
4245 * buffer.c (syms_of_buffer): Add default-cursor-type.
4246 (init_buffer_once): Don't let cursor_type have a local value
4247 in every buffer.
4248
19d1bc27
GM
4249 * xterm.c (x_display_and_set_cursor): Choose cursor depending
4250 on buffer-local value of cursor_type.
4251 (x_draw_bar_cursor): Add parameter WIDTH.
4252
4253 * buffer.c (reset_buffer): Initialize buffer's cursor_type.
4254 (init_buffer_once): Set default cursor_type value to t.
4255 Mark cursor_type as local everywhere.
4256 (syms_of_buffer): New per-buffer variable cursor-type.
4257
89e80928
GM
4258 * buffer.h (struct buffer): Remove member local_var_flags,
4259 add local_flags.
4260 (MAX_BUFFER_LOCAL_VARS): New macro.
4261 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
4262 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
4263 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
4264 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
4265
4266 * print.c (print_object): Use new macros for per-buffer
4267 variables.
4268
4269 * category.c (Fset_category_table): Use new macros for per-buffer
4270 variables.
4271
4272 * buffer.c (buffer_permanent_local_flags): Make a char array.
4273 (max_buffer_local_idx): New variable.
4274 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
4275 for new handling of per-buffer variables.
4276 (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
4277 (init_buffer_once): Initialize per-buffer vars differently.
4278 Set max_buffer_local_idx.
4279
4280 * syntax.c (Fset_syntax_table): Use new macros for per-buffer
4281 variables.
4282
4283 * lread.c (defvar_per_buffer): Use new macros for per-buffer
4284 variables.
4285
4286 * data.c (do_symval_forwarding, store_symval_forwarding)
4287 (find_symbol_value, set_internal, default_value, Fset_default)
4288 (Fkill_local_variable, Flocal_variable_p): Use new macros for
4289 per-buffer variables.
4290
4291 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
4292
9a0dd3dc
GM
42932000-03-24 Gerd Moellmann <gerd@gnu.org>
4294
b68c375f
GM
4295 * xterm.c (x_term_init): Unblock input around call1 of
4296 Qvendor_specific_keysyms.
4297
9a0dd3dc
GM
4298 * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
4299 (find_defun_start): Consider an open parenthesis in column 0
4300 a defun start only if open_paren_in_column_0_is_defun_start is set.
4301 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
4302
7973e637
SM
43032000-03-24 Stefan Monnier <monnier@cs.yale.edu>
4304
4305 * eval.c (Fautoload): Add entry in load-history (if after dump).
4306 * lread.c (load-history): Update docstring.
4307
39210e90
GM
43082000-03-24 Gerd Moellmann <gerd@gnu.org>
4309
4310 * indent.c (Fvertical_motion): Always use the current buffer.
4311 Temporarily change the window's buffer, if necessary.
4312
72db3ab5
GM
43132000-03-23 Gerd Moellmann <gerd@gnu.org>
4314
4315 * xterm.c (fast_find_position): Make sure not to consider rows
4316 not visible in the window.
4317
990b2375
SM
43182000-03-22 Stefan Monnier <monnier@cs.yale.edu>
4319
4320 * regex.c (enum syntaxcode): Provide default for non-Emacs.
4321 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
4322
ff4df011
JR
43232000-03-22 Jason Rumney <jasonr@gnu.org>
4324
4325 * w32menu.c (single_submenu): Set help string to NULL if none.
4326 (w32_menu_show): Set help string correctly.
4327 (add-menu-item): Set help string in MIIM_DATA for menu item.
4328 Load SetMenuItemInfoA explicitly.
4329 (w32_menu_display_help): New function.
427ec082 4330
ff4df011
JR
4331 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
4332 (QCdata): Moved to xdisp.c.
4333
4334 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
4335 (Vw32_charset_to_codepage_alist): Removed.
4336 (Vw32_charset_info_alist): New variable.
4337 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
4338 chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
4339 greek, hebrew, thai, johab, mac, unicode]): New symbols.
4340 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
4341 with TODO comment.
4342 (w32_codepage_for_font): Use Vw32_charset_info_alist.
4343 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
4344 Define Vw32_charset_info_alist and w32_charset symbols.
4345
43462000-03-22 Jason Rumney <jasonr@gnu.org>
4347
4348 * makefile.nt (w32bdf.obj): Update dependencies.
4349
4350 * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
4351
4352 * w32fns.c: Include fontset.h after dispextern.h.
4353 (Fx_create_frame): Do not create fontset.
4354 (w32_load_system_font): Doc fix.
4355 (Fx_close_connection): Free full_name if it is not shared.
4356
4357 * w32term.c: Include fontset.h after dispextern.h.
4358 (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
4359 updated.
4360 (w32_per_char_metric): If PCM is invalid, delete and return NULL.
4361 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
4362 (w32_font_is_double_byte): New function, needs body.
4363 (x_append_glyph): Set glyph->glyph_not_available_p.
4364 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
4365 it->charset. If it->multibyte_p is zero and it->c is a multibyte
4366 character, convert it to a unibyte character.
4367 (struct glyph_string): Delete member `charset'.
4368 (W32_TEXTOUT): Temporarily remove charset_dim until another way of
4369 calculating it is found.
4370 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
4371 the case that per char metric is not available correctly.
4372 (x_fill_glyph_string): Handle the case that the specific glyph is
4373 not available correctly.
4374 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
4375 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
4376 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
4377 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
4378 fontset. Don't call FS_LOAD_FONT.
4379
439d5cb4
KR
43802000-03-22 Ken Raeburn <raeburn@gnu.org>
4381
4382 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
4383 (INT_LISPLIKE): New macro.
4384 (NULL_INTERVAL_P): Use it.
4385 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
4386 SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
4387 GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
4388
4389 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
4390 explicit references to "parent" field of struct interval and
4391 associated unclean type conversions.
4392 * intervals.c (create_root_interval, root_interval, rotate_right,
4393 rotate_left, balance_possible_root_interval, split_interval_right,
4394 split_interval_left, interval_start_pos, find_interval,
4395 next_interval, previous_interval, update_interval,
4396 adjust_intervals_for_insertion, delete_node, delete_interval,
4397 adjust_intervals_for_deletion, merge_interval_right,
4398 merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
4399 copy_intervals_to_string): Likewise.
4400 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
4401 Likewise.
4402 * syntax.c (update_syntax_table): Likewise.
4403
4404 * intervals.c (reproduce_tree_obj): New function, like
4405 reproduce_tree but takes a Lisp_Object for the parent. Declare
4406 with prototype.
4407 (graft_intervals_into_buffer): Use it when appropriate.
4408 (reproduce_tree): Declare with prototype.
4409 (balance_possible_root_interval): Check that the parent is a lisp
4410 object before trying to examine its type.
4411
ee1c5b21
GM
44122000-03-22 Gerd Moellmann <gerd@gnu.org>
4413
4414 * xfaces.c (lface_same_font_attributes_p): Compare font attributes
4415 as strings only if both are known to be strings.
4416
4417 * s/openbsd.h (LIBS_TERMCAP): Undef.
4418
1fb352e0
SM
44192000-03-21 Stefan Monnier <monnier@cs.yale.edu>
4420
4421 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
4422 definitions for non-Emacs compilation.
4423 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
4424 outside of `#ifdef emacs'.
4425 (print_partial_compiled_pattern): Update.
4426 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
4427 (re_compile_fastmap): Merge handling of charset and charset_not (for
4428 emacs and non-emacs compilation as well).
4429 Similarly for (not)categoryspec and (not)syntaxspec.
4430 Don't use the fastmap when reaching `anychar' since the added
4431 complexity is not justified.
4432 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
4433 and (not)syntaxspec. Merge (not)categoryspec.
4434
fdaa1f77
KH
44352000-03-22 Kenichi Handa <handa@etl.go.jp>
4436
ff1a0d8e
KH
4437 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
4438 FACE_FOR_CHAR): Define them differently for the configuration of
4439 --without-x.
fdaa1f77 4440
d152fb46
DL
44412000-03-21 Dave Love <fx@gnu.org>
4442
4443 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
4444 doc string.
4445
d2cafc8c
GM
44462000-03-21 Gerd Moellmann <gerd@gnu.org>
4447
4448 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
4449 (lface_fully_specified_p): Don't check contents of
4450 LFACE_FONT_INDEX because that attribute is optional.
4451 (realize_x_face): Remove now unwarranted xassert.
4452
9111d4b5
KH
44532000-03-21 Kenichi HANDA <handa@etl.go.jp>
4454
4455 The following changes are to make font selection based on
4456 characters, not charset. In addition, they recover fontset
4457 facilities while utilizing the new font selection mechanism.
4458
6c4bfdc0
KH
4459 * Makefile.in (fontset.o): Depend on dispextern.h.
4460
4461 * alloc.c (mark_face_cache): Don't mark face->registry.
4462
9111d4b5
KH
4463 * dispextern.h (struct glyph): New member glyph_not_available_p.
4464 Use 22 bits for face_id.
4465 (enum lface_attribute_index): Add LFACE_FONT_INDEX.
4466 (struct face): Delete member registry, new member ascii_face.
4467 (FACE_SUITABLE_FOR_CHAR_P): Renamed from
4468 FACE_SUITABLE_FOR_CHARSET_P. Caller changed.
4469 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed.
4470 (struct it): Delete member charset, new member
4471 glyph_not_available_p.
4472
4473 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
4474 (struct fontset_info, struct fontset_data): Structs removed.
4475 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
4476 Vglobale_fontset_alist, font_idx_temp): Externs removed.
4477 (fs_load_font, fs_query_fontset): Adjusted for new argument.
4478 (fs_free_face_fontset, fontset_font_pattern,
4479 face_suitable_for_char_p, face_for_char,
4480 make_fontset_for_ascii_face): Extern them.
4481 (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
4482 (FS_LOAD_FACE_FONT): New macro.
4483
4484 * fontset.c: All codes rewritten or adjusted for the change of
4485 fontset implementation. Now fontset is represented by char table.
4486 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
4487 removed.
4488 (my_strcasecmp): Function removed.
4489 (Vfontset_table, next_fontset_id, Vdefault_fontset): New
4490 variables.
4491 (AREF, ASIZE): New macros.
4492 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
4493 FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
4494 FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
4495 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
4496 fontset_id_valid_p, font_family_registry, fontset_name,
4497 fontset_ascii, free_face_fontset, face_suitable_for_char_p,
4498 face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
4499 New functions.
4500 (fs_load_font): New arg FACE. Caller changed.
4501 (fs_query_fontset): Argument changed. Caller changed.
4502 (Fquery_fontset): call fs_query_fontset.
4503 (fs_register_fontset, alloc_fontset_data, free_fontset_data):
4504 Functions removed.
4505 (clear_fontset_elements, check_registry_encoding,
4506 check_fontset_name): New functions.
4507 (syms_of_fontset): Set char-table-extra-slots property of fontset
4508 to 3. Staticpro and initialize Vfontset_table and
4509 Vdefault_fontset. Defsubr fontset_font and fontset_list.
4510
4511 * frame.h (struct frame): Member `fontset_data' removed.
4512 (FRAME_FONTSET_DATA): Macro removed.
4513
4514 * frame.c (make_frame): Don't allocate f->fontset_data.
4515 (Fdelete_frame): Don't free f->fontset_data.
4516
6c4bfdc0
KH
4517 * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
4518
9111d4b5
KH
4519 * xdisp.c (charset_at_position): Function removed.
4520 (init_iterator): Don't set member charset of struct `it'.
4521 (handle_face_prop, reseat_to_string, set_iterator_to_next,
4522 next_element_from_display_vector, insert_left_trunc_glyphs):
4523 Likewise.
4524 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
4525 FACE_FOR_CHARSET.
4526 (get_next_display_element, append_space,
4527 extend_face_to_end_of_line): Likewise.
4528
4529 * xfaces.c (Qx_charset_registry, Vface_default_registry):
4530 Variables removed.
4531 (clear_font_table, frame_update_line_height, load_face_font):
4532 Adjusted for the change of fontset implementation.
4533 (load_face_fontset_font): Function removed.
4534 (pixel_point_size): New function.
4535 (font_list): Argument type changed. Caller changed.
4536 (LFACE_FONT): New macro.
4537 (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
4538 (set_lface_from_font_name): Type of arg FONTNAME is changed to
4539 Lisp_Object. Determine the font name by actually loading a font
4540 by the specified pattern. Set LFACE_FONT (lface) to the specified
4541 pattern. Even if a font is not found, don't try alternatives.
4542 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
4543 (set_font_frame_param): If `font' is specified in lface, use it.
4544 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
4545 (lface_same_font_attributes_p): Likewise.
4546 (make_realized_face): Arguent changed. Caller changed. Set
4547 face->ascii_face to face itself.
4548 (free_realized_face): Free face->fontset if face is for ASCII.
4549 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
4550 deduce_unibyte_registry, x_charset_registry): Functions removed.
4551 (free_realized_multibyte_face): New function.
4552 (lookup_face, lookup_named_face, lookup_derived_face): Argument
4553 changed. Caller changed.
4554 (try_font_list): Argument type changed.
4555 (face_fontset): Check `font' slot of ATTRS, not `family' slot.
4556 (choose_face_font): Argument changed. Handle fontset properly.
4557 (choose_face_fontset_font): Function removed.
4558 (realize_default_face, realize_named_face): Don't remove the
4559 former face here.
4560 (realize_face): Argument changed. Caller changed. Remove face
4561 with the arg former_face_id in advance. Load font for the new
4562 face.
4563 (realize_x_face): Argument changed. Caller changed. For a
4564 multibyte character, share fontset with base_face. For a single
4565 byte character, make a new realized fontset. Don't load a font
4566 here.
4567 (realize_tty_face): Argument changed. Caller changed.
4568 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
4569 (face_at_buffer_position): Don't check multibyte_p for returning
4570 DEFAULT_FACE_ID.
4571 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
4572 FACE_SUITABLE_FOR_CHARSET_P.
4573 (syms_of_xfaces): Remove code for Qx_charset_registry and
4574 Vface_default_registry.
4575
6c4bfdc0
KH
4576 * xterm.c: Include fontset.h after dispextern.h. Undo the changes
4577 related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
9111d4b5
KH
4578 (x_per_char_metric): Don't try FONT->default_char. Even if
4579 pcm->width is zero, glyph bits may exist.
4580 (x_encode_char): Always initialize char2b->byte1.
4581 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
4582 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller
4583 changed.
4584 (x_append_glyph): Set glyph->glyph_not_available_p.
4585 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set
4586 it->charset. Handle the case that per char metric is not
4587 available. If it->multibyte_p is zero and it->c is a multibyte
4588 character, convert it to a unibyte character.
4589 (struct glyph_string): Delete member `charset'.
4590 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle
4591 the case that per char metric is not available correctly.
4592 (x_fill_glyph_string): Handle the case that the specific glyph is
4593 not available correctly.
4594 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
4595 (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
4596 (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
4597 (x_new_fontset): Call fontset_ascii to get ASCII font name of the
4598 fontset. Don't call FS_LOAD_FONT.
4599
4600 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
4601 (x_create_tip_frame): Likewise.
4602 (Fx_close_connection): Free full_name of font_info.
4603
4604 * fns.c (optimize_sub_char_table): New function.
4605 (Foptimize_char_table): New function.
4606 (syms_of_fns): Defsubr Soptimize_char_table.
4607
b33dd3b0
GM
46082000-03-20 Gerd Moellmann <gerd@gnu.org>
4609
4610 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
4611 only if buffer is displayed in some window.
4612
4613 * xdisp.c (handle_single_display_prop): Initialize local `value'.
4614 (try_window_reusing_current_matrix): Don't call scroll run
4615 function if run's current and desired position are the same;
4616 this prevents cursor flickering.
4617
4e8a9132
SM
46182000-03-19 Stefan Monnier <monnier@cs.yale.edu>
4619
4620 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
4621
4622 * regex.c (RE_STRING_CHAR): New macro.
4623 (GET_CHAR_AFER_2): Remove.
4624 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
4625 (enum re_opcode_t): Remove on_failure_jump_exclusive.
4626 (print_partial_compiled_pattern, re_compile_fastmap)
4627 (re_match_2_internal): Remove on_failure_jump_exclusive.
4628 (regex_compile): Turn optimizable P+ loops into PP*, so that the
4629 optimization only need to work for * (ie. can use of_keep_string_jump).
4630 Remove the special case for .*\n since it is now covered by the general
4631 optimization.
4632 (re_search_2): Don't bother with `room'.
4633 (skip_one_char): New function.
4634 (skip_noops): Simplify since `memory' is not needed any more.
4635 (mutually_exclusive_p): Restructure slightly to use `switch' and
4636 add handling for "all" remaining cases.
4637 (re_match_2_internal): Change on_failure_jump_smart to use
4638 on_failure_keep_string_jump (and redirect the end-of-loop jump)
4639 rather than on_failure_jump_exclusive.
4640
2136fdd4
GM
46412000-03-19 Gerd Moellmann <gerd@gnu.org>
4642
4643 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
4644 number of bits per RGB because it's everywhere used as the depth
4645 of the visual.
4646
4647 * term.c (calculate_costs): Remove code dealing with X frames.
4648
18e21ce8 46492000-03-19 Richard M. Stallman <rms@gnu.org>
e53ae11c
RS
4650
4651 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
4652
d7b511c4
GM
46532000-03-18 Gerd Moellmann <gerd@gnu.org>
4654
4655 * lread.c (read_integer): Unread the last char not consumed.
4656
16b5d424
GM
46572000-03-17 Gerd Moellmann <gerd@gnu.org>
4658
4659 * xterm.c (x_update_window_cursor): Don't update in frames
d7b511c4 4660 which are in the process of being deleted.
16b5d424 4661
1fa28578
GM
46622000-03-16 Gerd Moellmann <gerd@gnu.org>
4663
83488cce
GM
4664 * Makefile.in (mostlyclean): Add `*.core'.
4665 (clean): Add `bootstrap-emacs'.
4666
1fa28578
GM
4667 * lread.c (read_integer): New function.
4668 (read1): Support read syntax #o, #x, #b, #r.
4669
99633e97
SM
46702000-03-15 Stefan Monnier <monnier@cs.yale.edu>
4671
1fa28578
GM
4672 * regex.c (re_match_2): Fix string shortening (to fit `stop') to
4673 make sure POINTER_TO_OFFSET gives the same value before and after
4674 PREFETCH. Use `dfail' to guarantee "atomic" matching.
99633e97
SM
4675 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
4676 (debug): Now only active if > 0 rather than if != 0.
4677 (DEBUG_*): Update for the new meaning of `debug'.
1fa28578
GM
4678 (print_partial_compiled_pattern): Add missing `succeed' case. Use
4679 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs
4680 in `succeed_n', `jump_n' and `set_number_at'.
99633e97
SM
4681 (store_op1, store_op2, insert_op1, insert_op2)
4682 (at_begline_loc_p, at_endline_loc_p): Add prototype.
1fa28578
GM
4683 (group_in_compile_stack): Move to after its arg's types are
4684 declared and add a prototype.
99633e97 4685 (PATFETCH): Define in terms of PATFETCH_RAW.
1fa28578
GM
4686 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
4687 wrapper.
99633e97 4688 (QUIT): Redefine as a nop except for NTemacs.
1fa28578
GM
4689 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix
4690 indentation of the greedy-op and shy-group code.
99633e97
SM
4691 (at_(beg|end)line_loc_p): Fix argument's types.
4692 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
4693 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation.
4694 (MATCHING_IN_FIRST_STRING): Remove.
1fa28578
GM
4695 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr
4696 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use
4697 QUIT unconditionally.
99633e97 4698
699238d9
GM
46992000-03-15 Gerd Moellmann <gerd@gnu.org>
4700
4701 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
4702 a sole completion.
4703
4704 * process.c (send_process): Add a hint that the function
4705 can call Lisp code to its comment.
4706
4707 * lread.c (load_dangerous_libraries): New variable.
4708 (Vbytecomp_version_regexp): New variable.
4709 (safe_to_load_p): New function.
4710 (Fload): Handle files not compiled with Emacs specially.
4711 (syms_of_lread): New Lisp variable load-dangerous-libraries.
4712
34e23e5a
GM
47132000-03-14 Gerd Moellmann <gerd@gnu.org>
4714
9c763cca
GM
4715 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
4716
4717 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
4718 support functions only if HAVE_X11R6_XIM is defined.
4719 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
4720
4721 * s/sol2.h (INHIBIT_X11R6_XIM): Define.
4722
4723 * xfns.c (X_I18N_INHIBITED): Don't define.
4724 (create_frame_xic): Remove conditional compilation on
4725 X_I18N_INHIBITED.
4726 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
4727
4728 * config.in (HAVE_X_I18N): Moved here from xterm.h.
4729 (HAVE_X11R6_XIM): Define.
4730
4731 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
4732
34e23e5a
GM
4733 * xterm.c (x_term_init): Add support for X resource `synchronous'.
4734 If set, call XSynchronize.
4735
66f0296e
SM
47362000-03-13 Stefan Monnier <monnier@cs.yale.edu>
4737
34e23e5a
GM
4738 * regex.c: Declare a new type `re_char' used throughout the code
4739 for the string char type. It's `const unsigned char' to match the
4740 rest of Emacs. Consistently make sure all pointers to strings use
4741 it and make sure all pointers into the pattern use `unsigned
4742 char'.
66f0296e 4743 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
34e23e5a
GM
4744 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce
4745 code duplication.
66f0296e
SM
4746
4747 * charset.h (GET_CHAR_AFTER_2): Remove.
4748 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
4749
854a025c
KR
47502000-03-12 Ken Raeburn <raeburn@gnu.org>
4751
4752 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
4753 variable before the invocation of YMF_PASS_LDFLAGS, in case both
4754 of them try to use backquotes.
4755
b9d2c7e2
DL
47562000-03-12 Dave Love <fx@gnu.org>
4757
4758 * unexelf.c: Restore changes of 1999-10-19.
4759 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
4760 fix its type and alignment; copy it from current process.
4761
5e5dff44
GM
47622000-03-12 Gerd Moellmann <gerd@gnu.org>
4763
9b2f3c38
GM
4764 * atimer.c (cancel_atimer): Break out of the loop as soon as timer
4765 has been found. Fix bug not computing timer's predecessor.
4766
427ec082 4767 * fileio.c (Fread_file_name): Handle case that DIR contains a
9172b88d
GM
4768 file name.
4769
e1cff360
GM
4770 * window.c (Fsave_window_excursion): Doc fix.
4771
5e5dff44
GM
4772 * xfns.c (x_defined_color): Rewritten to use
4773 x_allocate_nearest_color.
4774
e411ce4b
EZ
47752000-03-12 Eli Zaretskii <eliz@is.elta.co.il>
4776
4777 * msdos.c (vga_installed): New function, code moved from
4778 dos_set_window_size.
4779 (Qbar, Qcursor_type, outside_cursor): New variables.
4780 (syms_of_msdos): Intern and staticpro them.
4781 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
4782 shape used outside Emacs when called for the first time.
4783 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
4784 cursor shape used outside Emacs.
4785 (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
4786 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
4787 type has changed.
4788 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
4789 parameters specify the cursor. Make qreverse a global
4790 variable (renamed to Qreverse).
4791
80460654
GM
47922000-03-09 Gerd Moellmann <gerd@gnu.org>
4793
4794 * fns.c (Fy_or_n_p): Cancel busy-cursor.
4795
95cd4c40
SM
47962000-03-08 Stefan Monnier <monnier@cs.yale.edu>
4797
4798 This is a big redesign of failure-stack and register handling, prompted
4799 by bugs revealed when trying to add shy-groups. Overall, what happened
4800 is that loops are now structured a little differently, groups can be
4801 shy and the code is a little simpler.
4802
4803 * regex.h: Update the copyright.
4804 (RE_SHY_GROUPS): New value.
4805 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
4806 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
4807
80460654
GM
4808 * regex.c (enum re_opcode_t): Remove jump_past_alt,
4809 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add
4810 on_failure_jump_(exclusive, loop and smart). Also fix the comment
4811 for (start|stop)_memory since they now only take one argument (the
4812 second has becomes unnecessary).
4813 (print_partial_compiled_pattern): Adjust for changes in
4814 re_opcode_t.
4815 (print_compiled_pattern): Use %ld to printf long ints and flush to
4816 make debugging a little easier.
95cd4c40
SM
4817 (union fail_stack_elt): Make the integer unsigned.
4818 (struct fail_stack_type): Add a `frame' element.
4819 (INIT_FAIL_STACK): Init `frame' as well.
4820 (POP_PATTERN_OP): New macro for re_compile_fastmap.
4821 (DEBUG_PUSH, DEBUG_POP): Remove.
4822 (NUM_REG_ITEMS): Remove.
4823 (NUM_NONREG_ITEMS): Adjust.
80460654
GM
4824 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
4825 (TOP_FAILURE_HANDLE): New macros for the cycle detection.
95cd4c40 4826 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
80460654
GM
4827 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
4828 macros.
4829 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern
4830 address pushed is not the destination of the jump but the source
4831 of it instead.
95cd4c40
SM
4832 (NUM_FAILURE_ITEMS): Remove.
4833 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
80460654
GM
4834 registers before the actual failure point). Don't hardcode any
4835 meaning for str==NULL anymore.
95cd4c40 4836 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
80460654
GM
4837 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
4838 Remove.
95cd4c40
SM
4839 (REG_UNSET_VALUE): Use NULL (why not?).
4840 (compile_range): Remove declaration since it doesn't exist.
4841 (struct compile_stack_elt_t): Remove inner_group_offset.
4842 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
4843 (regex_grow_registers): Remove dead code.
4844 (FIXUP_ALT_JUMP): New macro.
80460654
GM
4845 (regex_compile): Add shy-groups Change loops to use
4846 on_failure_jump_smart&jump instead of
4847 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the
4848 initial (dummy_failure_)jump. Remove c1_base (looks like unused
4849 variable to me). Use `jump' instead of `jump_past_alt' and don't
4850 bother with push_dummy_failure in alternatives since it is now
4851 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef
4852 emacs' for (re)allocating the stack.
4853 (re_compile_fastmap): Remove dead variables i and num_regs. Exit
4854 from loop when bufp->can_be_null rather than jumping to `done'.
4855 Avoid jumping backwards so as to ensure termination. Use
4856 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of
4857 backreferences. Remove dead code in handling of `anychar'.
95cd4c40 4858 (skip_noops, mutually_exclusive_p): New functions taken from the
80460654
GM
4859 handling of `maybe_pop_jump' in re_match_2_internal. Slightly
4860 improve mutually_exclusive_p to handle ".+\n".
4861 (lowest_active_reg, highest_active_reg,
4862 NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
4863 (re_match_2_internal): Use %p instead of 0x%x when printf'ing
4864 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead
4865 variables. Push register (in `start_memory') on the stack rather
4866 than storing it in old_reg(start|end). Remove the cycle detection
4867 from `stop_memory', replaced by the use of on_failure_jump_loop
4868 for greedy loops. Add code for the new on_failure_jump_<foo>.
4869 Remove ad-hoc code in `on_failure_jump' to push more registers in
4870 the case of a loop. Take out code from `maybe_pop_jump' into
4871 separate functions and adapt it to the semantics of
4872 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump
4873 and push_dummy_failure. Remove dummy_failure handling and
4874 handling of `failures to jump to on_failure_jump' (this last one
4875 was already dead code, it seems).
4876 (group_match_null_string_p, alt_match_null_string_p)
4877 (common_op_match_null_string_p): Remove.
95cd4c40 4878
7397acc4
DL
48792000-03-08 Dave Love <fx@gnu.org>
4880
4881 * config.in: Don't depend on __STDC__ for volatile.
4882 Add POINTER_TYPE, PTR, PROTOTYPES.
4883
4884 * hftctl.c, strftime.c: Use PROTOTYPES.
4885 * eval.c (find_handler_clause): Likewise.
4886
4887 * mem-limits.h: Use POINTER_TYPE.
4888
4889 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
4890 (memory_warnings): Declare using POINTER_TYPE.
4891
5e91ff9e
GM
48922000-03-08 Gerd Moellmann <gerd@gnu.org>
4893
feab4fba
GM
4894 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
4895
25edb08f
GM
4896 * xdisp.c (display_echo_area): Temporarily inhibit garbage
4897 collection.
4898
5e91ff9e
GM
4899 * xfns.c: Remove obsolete code in #if 0.
4900 (Fx_focus_frame): New function.
4901
a735b7e1
KH
49022000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
4903
4904 * coding.c (coding_category_name): Add coding-category-utf-8,
4905 coding-category-utf-16-be, coding-category-utf-16-le.
4906 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
4907 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
4908 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
4909 (detect_coding_utf_8): New function.
4910 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
4911 UTF_16_LOW_SURROGATE_P): New macros.
4912 (detect_coding_utf_16): New function
4913 (detect_coding_mask): When priorities are specified, skip any
4914 categories that have `nil' coding-system. Fix bug of returning
4915 wrong mask when PRIORITIES is specified and detect_coding_XXX()
4916 returns a mask not set in PRIORITIES.
4917 (detect_eol_type_in_2_octet_form): New function.
4918 (detect_eol): selects detect_eol_type_XXX to call according to
4919 cooding->category_idx.
4920 (detect_coding_system): Remove `nil' coding-system in the result.
4921 (Fupdate_coding_systems_internal): Update all coding-categories.
4922
4923 * coding.h (CODING_CATEGORY_IDX_UTF_8,
4924 CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
4925 macros.
4926 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
4927 CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
4928 CODING_CATEGORY_IDX_UTF_16_LE.
4929 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
4930 CODING_CATEGORY_MASK_UTF_16_LE): New macros.
4931 (CODING_CATEGORY_MASK_ANY): Include the above macros.
4932 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
4933
9994cc69
GM
49342000-03-07 Gerd Moellmann <gerd@gnu.org>
4935
e9b4e5ff
GM
4936 * doc.c (Fdocumentation_property): If value is not a string,
4937 and doesn't refer to etc/DOC, evaluate it to obtain a string.
4938
f7daf1e1
GM
4939 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
4940 close the display with XtCloseDisplay. This caused a bus error
4941 on OpenWindows.
4942
9994cc69
GM
4943 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
4944 complete but not unique.
4945
4336c705
GM
49462000-03-06 Gerd Moellmann <gerd@gnu.org>
4947
18bb0684
GM
4948 * process.c (send_process): Remove local variable `procname' that
4949 might become invalid when a GC happens. Instead, access the
4950 process name slot directly.
4951
4336c705
GM
4952 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
4953 orig_height if set.
4954
4955 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
4956 orig_height if set.
4957
515d0d0e
EZ
49582000-03-06 Eli Zaretskii <eliz@is.elta.co.il>
4959
4960 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
4961 glyph matrices have been freed.
4962
100b3cbb
GM
49632000-03-05 Gerd Moellmann <gerd@gnu.org>
4964
50df5e5a 4965 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
6178bc23 4966 (bootstrap-temacs): Set LC_ALL to C like for temacs.
50df5e5a
GM
4967
4968 * xfns.c (QCdata): Moved to xdisp.c.
4969
4970 * xdisp.c (QCdata): Moved here from xfns.c.
4971 (syms_of_xdisp): Initialize QCdata.
4972
4973 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
4974
4975 * window.c (coordinates_in_window): Use
4976 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
4977 FRAME_INTERNAL_BORDER_WIDTH.
4978
100b3cbb 4979 * xdisp.c (try_window_id): Recompute unchanged information if
4336c705 4980 it is obviously invalid.
100b3cbb
GM
4981
4982 * xterm.c (x_term_init): Create a colormap if not using the
4983 default visual.
4984
4985 * xterm.h (select_visual): Change prototype.
4986
4987 * xfns.c (select_visual): Rewritten. Recognize user-specified
4988 visual classes.
4989 (visual_classes): New variable.
4990
64d739c4
GM
49912000-03-04 Gerd Moellmann <gerd@gnu.org>
4992
4993 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
4994 (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
4995 (png_load): Access colormap of frame using FRAME_X_COLORMAP.
4996 (x_decode_color): Don't handle allocation of white and black
4997 specially.
4998 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
4999 XtNcolormap resources.
5000 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
5001 (Fx_create_frame): Initialize color members of x_output structure.
5002 (xpm_load): Pass colormap to XPM lib.
5003
5004 * xfaces.c (x_free_colors): Access colormap of frame using
5005 FRAME_X_COLORMAP. Be paranoid about freeing black and white
5006 when default colormap is used.
5007
5008 * xterm.c (x_term_init): Set Colormap member of x_display_info
5009 structure. Copy colormap if resource `privateColormap' is
5010 specified (PseudoColor only).
5011 (x_setup_relief_color): Access colormap of frame using
5012 FRAME_X_COLORMAP.
5013
5014 * xterm.h (struct x_display_info): Add Colormap member `cmap'.
5015 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
5016
c3cee013
JR
50172000-03-04 Jason Rumney <jasonr@gnu.org>
5018
5019 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
5020 other non-platform-specific equivalents.
64d739c4 5021 [WINDOWSNT]: Include w32term.h, fontset.h and define X
c3cee013
JR
5022 specific functions and macros as their w32 equivalents where
5023 non-platform-specifics are not available.
5024 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
5025 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
5026 (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
5027 (frame_update_line_height): Use macros to access f->output_data.
5028 (defined_color): Remove FIXME comments; fixed.
5029 (x_face_list_fonts, prepare_face_for_display): Put X specifics
5030 into #ifdef blocks. Add WINDOWSNT blocks.
5031 (Fx_list_fonts): Use macros for accessing font data.
5032 (set_lface_from_font_name): Different default fonts for X and
5033 WINDOWSNT.
5034 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
5035 scalable for backward compatibility.
64d739c4 5036 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
c3cee013
JR
5037 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
5038
64d739c4 5039 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
c3cee013
JR
5040 syms_of_w32faces.
5041
5042 * makefile.nt (w32faces.obj): Remove.
5043 (xfaces.obj): Add.
5044
807cc41c
JR
50452000-03-03 Jason Rumney <jasonr@gnu.org>
5046
5047 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
5048 correct parameters.
5049
0007072a
KR
50502000-03-03 Ken Raeburn <raeburn@gnu.org>
5051
5052 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
5053 standard ELF definitions here if the system header does not.
5054
71a6ba55
GM
50552000-03-03 Gerd Moellmann <gerd@gnu.org>
5056
5057 * xterm.c (PER_CHAR_METRIC): Removed.
5058 (x_per_char_metric_1, x_default_char): New functions.
5059 (x_per_char_metric): If font's default char is invalid, return
5060 metrics of a suitably chosen usable default char.
5061 (x_draw_glyph_string_foreground): If font has an invalid default
64d739c4
GM
5062 char, replace occurrences of unprintable chars with a suitably
5063 chosen usable default char.
71a6ba55 5064
900fa1f1
GM
50652000-03-02 Gerd Moellmann <gerd@gnu.org>
5066
42f55fe0
GM
5067 * xterm.c (note_mouse_highlight): Return quickly if frame's
5068 glyph matrices have been freed.
5069
5070 * dispnew.c (free_glyphs): Block input while freeing matrices.
5071
900fa1f1
GM
5072 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
5073
5074 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
5075 x_free_colors.
5076
5077 * dispextern.h (x_free_colors): Add prototype.
5078
5079 * xfaces.c (x_free_colors): New function.
5080 (unload_color, free_face_colors): Use it.
5081
2f950292
EZ
50822000-03-02 Eli Zaretskii <eliz@is.elta.co.il>
5083
5084 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
5085
5086 * window.c [MSDOS]: Include msdos.h.
5087
54d04320
DL
50882000-03-02 Dave Love <fx@gnu.org>
5089
5090 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
5091
5092 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
5093 set C_OPTIMIZE_SWITCH for gcc.
5094
0ba93ac4
KH
50952000-03-02 Kenichi Handa <handa@etl.go.jp>
5096
5097 * coding.c (coding_save_composition): Be sure to allocate
5098 composition data area in coding even if there's no composition in
5099 the current run.
5100
a2bc11d4
JR
51012000-03-01 Jason Rumney <jasonr@gnu.org>
5102
5103 * w32term.c: Equivalent changes to those made to xterm.c on
5104 2000-02-25 and 2000-02-24.
5105
5106 * w32fns.c: Equivalent changes to those made to xfns.c on
5107 2000-02-25 and 2000-02-21.
5108
5109 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
5110 correct line-end convention is followed.
5111
5112 * w32menu.c [HAVE_BOXES]: Remove #undef.
5113 (single_keymap_panes): Remove code for simulating checkmarks.
5114 (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
5115 Remove code for drawing simulated checkmarks.
5116 (w32_menu_show): make unibyte help string correctly.
5117 (add_menu_item): draw standard Windows checkmarks. Draw radio
5118 buttons as radio buttons if possible.
5119
72d19d75
GM
51202000-03-01 Gerd Moellmann <gerd@gnu.org>
5121
2df636f4
GM
5122 * sysdep.c (start_of_text): Don't define this function for NetBSD
5123 with ELF.
5124
427ec082 5125 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
2df636f4
GM
5126 Don't define.
5127 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
5128 (LINKER): Don't undef if __NetBSD__ is defined.
5129
5130 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
5131
5132 * fileio.c [__NetBSD__]: Define `unix'.
5133
72d19d75
GM
5134 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
5135
ed4d0512
GM
51362000-02-29 Gerd Moellmann <gerd@gnu.org>
5137
50b1039f
GM
5138 * atimer.c (start_atimer): Don't abort when timers are stopped.
5139 (append_atimer_lists): New function.
5140 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
5141 arbitrary lists of stopped and running atimers.
5142
ed4d0512
GM
5143 * atimer.c (cancel_atimer): Handle canceling an atimer when
5144 some timers are stopped.
5145
5146 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
5147 after canceling it.
5148
5149 * fns.c (maybe_resize_hash_table): Handle case of new size
5150 coming out as being the same as old size.
5151
387023ee
JR
51522000-02-27 Jason Rumney <jasonr@gnu.org>
5153
5154 * makefile.nt: Add atimer.h to dependencies.
5155 * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
5156 * w32console.c: Only disable window system features for dispextern.h
5157 (initialize_w32_display): Build a display info for the console.
5158 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
5159 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
5160 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
5161 as 2 button mice.
5162 * w32gui.h (struct W32FontStruct): Revert last change after change
5163 to xdisp.c.
5164 * w32menu.c (single_submenu): Set up help string.
5165 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
5166 (w32_dialog_show): Set up help string.
5167 * w32term.c (w32_display_info_for_display): Remove unused function.
5168 (w32_draw_bitmap): Use pre-built bitmaps.
5169 (w32_initialize_display_info): New function to initialize parts of
5170 display info that are common to both GUI and console frames.
5171 (w32_term_init): Use w32_initialize_display_info. Do not set
5172 Vw32_num_mouse_buttons here, as it is not called for console
5173 frames. Build bitmaps for indicating truncated lines etc.
5174 (x_delete_display): Destroy pre-built bitmaps.
5175 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
5176 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
5177
4516715a
DL
51782000-02-27 Dave Love <fx@gnu.org>
5179
5180 * lisp.h: Add a bunch of prototypes.
5181
171ca836
KH
51822000-02-26 Kenichi Handa <handa@etl.go.jp>
5183
5184 * keyboard.c (read_char): Set `usec' correctly.
5185
4013921d
KH
51862000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp>
5187
5188 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
5189 `lambda', set reg[RRR] to the map index.
5190 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
5191 reg[RRR] to 0. Otherwise, set it to -1.
5192
9244a058
GM
51932000-02-25 Gerd Moellmann <gerd@gnu.org>
5194
2df636f4 5195 * emacs.c (main): Remove code snippet commented out with `//'.
9244a058 5196
18e21ce8 51972000-02-25 Richard M. Stallman <rms@gnu.org>
427ec082 5198
f43d79c1
GM
5199 * fileio.c (Ffile_symlink_p): If result starts with a `/'
5200 and contains a `:', prepend `/:'.
5201
5202 * window.c (select_window_1): If selected_window is nil,
5203 don't "swap out" the buffer's point.
5204 (Fset_window_configuration): Set selected_window to nil
5205 before calling Fselect_window.
5206 (unshow_buffer): Don't set point in buffer from window's point
5207 if another more recently selected window also shows the buffer.
5208
bed0c171
GM
52092000-02-25 Gerd Moellmann <gerd@gnu.org>
5210
449c3c52
GM
5211 * keyboard.c (recursive_edit_1): Cancel busy-cursor.
5212
f5b58615
GM
5213 * xfns.c (inhibit_busy_cursor, busy_count): Removed.
5214 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
5215 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
5216 variables.
5217 (DEFAULT_BUSY_CURSOR_DELAY): New define.
5218 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
5219 (hide_busy_cursor): New functions.
5220 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
5221
5222 * minibuf.c (read_minibuf): Cancel busy-cursor.
5223
5224 * keyboard.c (command_loop_1): Call start_busy_cursor before
5225 Fcommand_execute and cancel_busy_cursor after it.
5226 (timer_check): Remove busy-cursor code.
5227 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
5228 cursor timer.
5229
5230 * process.c (wait_reading_process_input): Remove busy-cursor code.
5231
5232 * eval.c (Fsignal): Call cancel_busy_cursor instead of
5233 Fx_hide_busy_cursor.
5234
5235 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
5236 Remove prototyoes.
5237 (start_busy_cursor, cancel_busy_cursor): Add prototypes.
5238
5239 * lisp.h (Fx_hide_busy_cursor): Remove prototype.
5240
5241 * xterm.c (XTread_socket): Remove busy-cursor code.
5242
4eb8436f
GM
5243 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
5244 (build_frame_matrix_from_leaf_window): Put code handling
5245 glyph row's not being a slice of a frame row in #if 0.
5246 (sync_window_with_frame_matrix_rows): New function.
5247 (frame_row_to_window): New function.
5248 (mirror_line_dance): Handle copies between windows.
5249
3cb65b0e
GM
5250 * lread.c (Fload): Use `xfree' instead of `free'.
5251 (init_obarray): Use `xmalloc' instead of `malloc'.
5252
bed0c171
GM
5253 * window.c (Fset_window_buffer): Set WINDOW to the window
5254 after decoding.
2add4349
GM
5255 (coordinates_in_window): Take frame's internal border width
5256 into account.
bed0c171 5257
42088c12
GM
52582000-02-24 Gerd Moellmann <gerd@gnu.org>
5259
5260 * xterm.c (x_display_and_set_cursor): Display cursor of
5261 non-selected windows depending on the setting of
5262 cursor_in_non_selected_windows.
5263
5264 * xdisp.c (cursor_in_non_selected_windows): New variable.
5265 (syms_of_xdisp): DEFVAR_BOOL it.
5266
d1e103b2
GM
52672000-02-23 Gerd Moellmann <gerd@gnu.org>
5268
723e779c
GM
5269 * data.c (Fstring_to_number): If number is greater than what
5270 fits into an integer, return a float.
5271
d1e103b2
GM
5272 * eval.c (specbind): Remove references to
5273 keyword_symbols_constant_flag.
5274
5275 * data.c (keyword_symbols_constant_flag): Removed.
5276 (Fmakunbound, set_internal, syms_of_data): Remove references to
5277 keyword_symbols_constant_flag.
5278
5279 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
5280
214f877f
KH
52812000-02-23 Kenichi Handa <handa@etl.go.jp>
5282
5283 * syntax.c (multibyte_syntax_as_symbol): New variable.
5284 (syms_of_syntax): Declare it as a Lisp variable.
5285 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
5286 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
5287 nonzero, treat all multibyte characters as symbol.
42088c12 5288 (init_syntax_once): Give syntax `word' to all multibyte
214f877f
KH
5289 characters.
5290
130adcb7
EZ
52912000-02-22 Eli Zaretskii <eliz@is.elta.co.il>
5292
3cb65b0e 5293 * frame.c (Fdelete_frame): Don't let echo_area_window remain on
d7d0dac0 5294 a deleted frame.
130adcb7 5295
17cbbf95
GM
52962000-02-21 Gerd Moellmann <gerd@gnu.org>
5297
5298 * frame.c (Fmouse_position): GCPRO retval instead of x and y.
5299
5300 * xfns.c (x_window_to_frame, x_any_window_to_frame)
5301 (x_non_menubar_window_to_frame): Check the busy-cursor window.
5302
beb0bc36
DL
53032000-02-21 Dave Love <fx@gnu.org>
5304
5305 * frame.c (Vmouse_position_function): New variable.
5306 (Fmouse_position): Use it.
5307 (syms_of_frame): Install it.
5308
5309 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
5310
1d92afcd
GM
53112000-02-20 Gerd Moellmann <gerd@gnu.org>
5312
5313 * fileio.c (Finsert_file_contents): Unbind the binding of
5314 standard-output done by temp_output_buffer_setup.
329eed9f
GM
5315
5316 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
5317 Vmocklisp_arguments is nil. Inline Fcar and Fcdr.
5318 (specbind, unbind_to): Handle most common case of non-constant
5319 symbol with trivial value specially.
5320
5321 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
5322
18e21ce8 53232000-02-20 Richard M. Stallman <rms@gnu.org>
2d06696f
RS
5324
5325 * data.c (Fmake_variable_buffer_local): Doc fix.
5326 Init found_for_buffer to 0.
5327 (Fmake_variable_frame_local): If the variable has already
5328 been buffer-local, set the check_frame field.
5329
1d4311c3
EZ
53302000-02-20 Eli Zaretskii <eliz@is.elta.co.il>
5331
5332 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
5333 produced for CODING_MODE_LAST_BLOCK requires.
5334
2dc95ddd
DL
53352000-02-18 Dave Love <fx@gnu.org>
5336
5337 * keyboard.c (echo_keystrokes): Remove declaration.
5338 (Vecho_keystrokes) New variable.
5339 (read_char, record_menu_key, read_key_sequence): Use it to allow
5340 use of float value.
5341 (syms_of_keyboard): Change Vecho_keystrokes declaration.
5342
5343 * lread.c: Undef feature selection macros before defining.
5344
f0930f35
GM
53452000-02-18 Gerd Moellmann <gerd@gnu.org>
5346
5347 * data.c (let_shadows_buffer_binding_p): Ignore specbindings
5348 for symbols other than the symbol in question.
5349
e3d4de90
DL
53502000-02-17 Dave Love <fx@gnu.org>
5351
5352 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
5353
0b378936
GM
53542000-02-17 Gerd Moellmann <gerd@gnu.org>
5355
d621caf7
GM
5356 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
5357
0b378936
GM
5358 * alloc.c (enum mem_type): Compile unconditionally.
5359
3b451f74
EZ
53602000-02-17 Eli Zaretskii <eliz@is.elta.co.il>
5361
5362 * xfaces.c (tty_defined_color): Don't return faulire indication
5363 for unspecified-fg and unspecified-bg pseudo-colors.
5364
10689a01
GM
53652000-02-17 Gerd Moellmann <gerd@gnu.org>
5366
1216f5e4
GM
5367 * alloc.c (mark_object): Don't mark symbol names in pure space.
5368 (gc_sweep): Don't unmark symbol names in pure space.
5369
5370 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
5371 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
5372 [GC_MARK_STACK]: New defines.
427ec082 5373 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
1216f5e4
GM
5374 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
5375
5376 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
5377
5378 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
5379 allocate_buffer instead of xmalloc.
5380
5381 * alloc.c (toplevel): Include setjmp.h.
5382 (PURE_POINTER_P): New define.
5383 (enum mem_type) [GC_MARK_STACK]: New enumeration.
5384 (Vdead) [GC_MARK_STACK]: New variable.
5385 (lisp_malloc): Add parameter TYPE, call mem_insert if
5386 GC_MARK_STACK is defined.
5387 (allocate_buffer): New function.
427ec082 5388 (lisp_free) [GC_MARK_STACK]: Call mem_delete.
1216f5e4
GM
5389 (free_float) [GC_MARK_STACK]: Set type to Vdead.
5390 (free_cons) [GC_MARK_STACK]: Set car to Vdead.
5391 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
5392 (MEM_NIL) [GC_MARK_STACK]: New define.
5393 (struct mem_node) [GC_MARK_STACK]: New structure.
5394 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
5395 (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
5396 (live_string_p, live_cons_p, live_symbol_p, live_float_p)
5397 (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
5398 (mark_stack) [GC_MARK_STACK]: New functions.
5399 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
5400 (clear_marks): Removed.
5401 (gc_sweep): Set free conses' car, free floats' type, free
5402 symbols' function to Vdead. Use lisp_free to free buffers.
5403 (init_alloc_once): Initialize Vdead.
5404 (survives_gc_p): Return non-zero for pure objects.
5405
5406 * alloc.c: Add comments throughout the file.
5407
2503c8b1
GM
5408 * atimer.c (stop_other_atimers): Don't call cancel_atimer because
5409 that unblocks alarms.
5410
8389e1e2
GM
5411 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
5412 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
5413 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
5414
10689a01 5415 * frame.c (make_frame): Set frame initiallly to `garbaged'.
427ec082 5416
bfc17d18
KH
54172000-02-17 Kenichi Handa <handa@etl.go.jp>
5418
4a09dee0
KH
5419 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
5420 avoid infinite error signaling. Allocate sufficient memory for
5421 eol_str in the case that eoltype is Lisp_Int.
bfc17d18 5422
2b927d02
SM
54232000-02-17 Stefan Monnier <monnier@cs.yale.edu>
5424
5425 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
5426 depends on the previous behavior.
5427
b49cb764
GM
54282000-02-16 Gerd Moellmann <gerd@gnu.org>
5429
5430 * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
5431
99e95407
GM
54322000-02-15 Gerd Moellmann <gerd@gnu.org>
5433
5434 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
5435
5436 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
b49cb764 5437 Workaround for FreeBSD bug. Clear output queue after EAGAIN in
99e95407
GM
5438 write(2).
5439
6ffd3cf7
RS
54402000-02-15 Richard M. Stallman <rms@gnu.org>
5441
5442 * data.c (set_internal): Don't make variable buffer-local
5443 if within a let-binding for the same buffer.
5444 (let_shadows_buffer_binding_p): New function.
5445
5446 * eval.c (specbind): For buffer-local value,
5447 record the current buffer also.
5448 (unbind_to): Cope with that change.
5449
cad53475
GM
54502000-02-15 Gerd Moellmann <gerd@gnu.org>
5451
5452 * window.c (Fsave_window_excursion): Doc fix.
5453
1aa963c8
SM
54542000-02-15 Stefan Monnier <monnier@cs.yale.edu>
5455
5456 * syntax.c (back_comment): Make sure we only consider comment-starters
5457 of the relevant style and return -1 in case of a failure to find the
5458 beginning of the comment.
5459 (Fforward_comment): If back_comment fails, go back to the position just
5460 after the comment-end.
5461 (scan_lists): Add comment describing a very minor bug.
5462
b9b84fd3
SM
54632000-02-14 Stefan Monnier <monnier@cs.yale.edu>
5464
5465 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
5466 `completion-regexp-list' in the docstring.
5467
3a28db80
DL
54682000-02-14 Dave Love <fx@gnu.org>
5469
5470 * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
5471
fb4a568d
SM
54722000-02-14 Stefan Monnier <monnier@cs.yale.edu>
5473
5474 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
5475 to Emacs' syntax. Also fix the comment about set/not-set meanings
5476 since Emacs syntax is not the value 0 any more.
5477 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
5478 since it's now part of RE_SYNTAX_EMACS.
5479
1063ebb5
DL
54802000-02-12 Dave Love <fx@gnu.org>
5481
5482 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
5483 Alpha.
5484
fb07a302
GM
54852000-02-12 Gerd Moellmann <gerd@gnu.org>
5486
5487 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
5488
aaf2320c
DL
54892000-02-12 Dave Love <fx@gnu.org>
5490
5491 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
5492
5493 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
fb07a302
GM
5494 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
5495 * s/hpux.h: Don't define HAVE_VFORK.
aaf2320c
DL
5496
5497 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
5498
5499 * s/nextstep.h: Don't define HAVE_ALLOCA.
5500
5501 * config.in: Add vfork bits.
5502
eedf8bde
GM
55032000-02-12 Gerd Moellmann <gerd@gnu.org>
5504
5505 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
5506 unwind function to undo the effect of stopping atimers.
5507
5508 * keyboard.c (bind_polling_period): Stop all timers except
5509 poll_timer.
5510
5511 * atimer.c (stopped_atimers): New variable.
5512 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
5513 New functions.
5514
5515 * atimer.h (stop_other_atimers, run_all_atimers)
5516 (unwind_stop_other_atimers): Add function prototypes.
427ec082 5517
eedf8bde
GM
5518 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
5519
8476c2f8
KR
55202000-02-11 Ken Raeburn <raeburn@gnu.org>
5521
5522 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
5523 library may depend on jpeg.
5524 (atimer.o): Depends on atimer.c.
5525
0e85e4a3
KH
55262000-02-11 Kenichi Handa <handa@etl.go.jp>
5527
5528 * insdel.c (del_range_1): Call update_compositions.
5529 (del_range_both): Call update_compositions just once..
5530
97fa0cc8
DL
55312000-02-10 Dave Love <fx@gnu.org>
5532
5533 * xfns.c (create_frame_xic): Fix initialization of automatic
5534 aggregates for pcc.
5535
25566a3c
KH
55362000-02-09 Kenichi Handa <handa@etl.go.jp>
5537
5538 * ccl.c (CCL_MAKE_CHAR): New macro.
5539 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
5540 registers by CCL_MAKE_CHAR before calling translate_char.
5541 <CCL_TranslateCharacterConstTbl> Likewise.
5542
69da54ba
DL
55432000-02-08 Dave Love <fx@gnu.org>
5544
5545 * lread.c (__EXTENSIONS__): Define.
5546
f7136ee8
GM
55472000-02-08 Gerd Moellmann <gerd@gnu.org>
5548
5549 * puresize.h (BASE_PURESIZE): Increase to 650000.
5550
7768790b
EZ
55512000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
5552
5553 * msdos.c (XMenuActivate): Turn off the cursor after displaying
5554 the help message.
5555
38fd211b
EZ
55562000-02-07 Eli Zaretskii <eliz@is.elta.co.il>
5557
5558 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
5559 md, mh, mb, mr, and me to the fake termcap entry.
5560
66e4690f
KR
55612000-02-06 Ken Raeburn <raeburn@gnu.org>
5562
5563 * sound.c (sound_cleanup): Don't call device close routine if the
5564 function pointer is null.
5565
a75dfea0
AI
55662000-02-06 Andrew Innes <andrewi@gnu.org>
5567
5568 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
5569 around image definitions and prototypes.
5570 (gamma_correct) [WINDOWSNT]: New prototype.
5571
5572 * w32term.c (x_make_frame_visible): Replace call to
5573 input_poll_signal with poll_for_input.
5574
5575 * window.c [WINDOWSNT]: Include w32term.h.
5576
5577 * xdisp.c [WINDOWSNT]: Include w32term.h.
5578
5579 * makefile.nt: Add dependencies on w32gui.h.
5580 (OBJ1): Include atimer.obj.
5581 ($(BLD)\atimer.obj): New dependency rule.
5582
5583 * w32.c (sigmask): New function (does nothing).
5584 (sigunblock): Ditto.
5585
5586 * frame.c [WINDOWSNT]: Include w32term.h.
5587
5588 * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
5589
5590 * lread.c (syms_of_lread): Fix literal newlines.
5591
5592 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
5593 the string constant limit (2048 bytes) in MSVC.
5594 (main): Ditto.
5595
59ddecde
GM
55962000-02-05 INOUE Seiichiro <inoue@ainet.or.jp>
5597
5598 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
5599 area.
5600 (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
5601 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
5602 dispatch the event.
5603
07590973
DL
56042000-02-04 Dave Love <fx@gnu.org>
5605
5606 * fileio.c: Remove some unused vars.
5607 (_GNU_SOURCE): Define (for euidaccess).
5608
5609 * lread.c (_XOPEN_SOURCE): Declare (for ftello).
5610
5611 * minibuf.c (read_minibuf_noninteractive): Remove undeclared
5612 gcpro1, gcpro2.
5613 (read_minibuf): Deal with allow_props correctly.
5614
649351f9
EZ
56152000-02-03 Eli Zaretskii <eliz@is.elta.co.il>
5616
5617 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
5618
66e4690f 56192000-02-03 Ken Raeburn <raeburn@gnu.org>
f1b9c7c1
KR
5620
5621 * search.c (compile_pattern): If a cache entry has a nil regexp,
5622 fill in that entry instead of clobbering a previously cached
5623 string regexp.
5624
66e4690f 56252000-02-02 Ken Raeburn <raeburn@gnu.org>
15c9cf81
KR
5626
5627 * puresize.h (BASE_PURESIZE): Increase to 610000.
5628
d240a249
GM
56292000-02-02 Gerd Moellmann <gerd@gnu.org>
5630
5631 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
5632 can GC.
5633
ca91fb26
KH
56342000-02-02 Kenichi Handa <handa@etl.go.jp>
5635
25660570
KH
5636 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
5637 instead of incrementing ic directly.
5638 <CCL_WriteExprConst> Likewise.
5639 <ccl_set_expr>: Set ic to jump_address.
5640
ca91fb26
KH
5641 * fileio.c (e_write): Fix the handling of
5642 CODING_FINISH_INSUFFICIENT_SRC.
5643
2ede9689
DL
56442000-02-01 Dave Love <fx@gnu.org>
5645
5646 * editfns.c (Fpropertize): Doc fix.
5647
5648 * process.c (Fstart_process): Doc fix.
5649
5650 * eval.c: Fix various doc strings not to duplicate information
5651 from help-manyarg-func-alist.
5652
5653 * window.c (Fset_window_margins): Don't make interactive. Doc
5654 fix.
5655
5656 * doc.c (Vhelp_manyarg_func_alist): New variable.
5657 (Fdocumentation): Use it.
5658 (syms_of_doc): Define it.
5659
b6680a0e
GM
56602000-01-31 Gerd Moellmann <gerd@gnu.org>
5661
2cb750ba
GM
5662 * xterm.c (xim_open_dpy): Remove unused local variable.
5663
74e9213b
GM
5664 * emacs.c (USAGE): Use term `display options' instead of `X
5665 options'.
5666
5667 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
5668 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
5669
b6680a0e
GM
5670 * fns.c (sweep_weak_table): New function.
5671 (sweep_weak_hash_tables): Use it. Keep on marking until there
5672 is no more change.
5673
994c5afe
GM
56742000-01-30 Gerd Moellmann <gerd@gnu.org>
5675
5676 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
5677 that XTread_socket does not crash by trying to call XNoOp on a
5678 closed display.
427ec082 5679
f00276e3
JR
56802000-01-30 Jason Rumney <jasonr@gnu.org>
5681
5682 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
5683 Change selected_frame to SELECTED_FRAME ().
5684 (w32_console_mouse_position): Remove #ifndef MULE from around
5685 `insist' parameter.
5686
5687 * makefile.nt: Remove dosfns.obj.
5688
5689 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
5690
5691 * w32fns.c (w32_defined_color): Check for valid frame before
5692 applying gamma correction. Eliminate dependency on frame elsewhere.
5693 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
5694 (w32_to_x_font): Use resx and resy not height_in and width_in.
5695 (x_to_w32_font): Doc fix.
5696 (xlfd_strip_height): New function to strip and return font height.
5697 (w32_font_match): Compare height separately from rest of xlfd
5698 spec, using xlfd_strip_height.
5699
5700 * w32term.c (w32_term_init): Swap resx and height_in, resy and
5701 width_in. Use w32_defined_color in place of defined_color.
5702
5703 * w32faces.c: Merge more of DOS and X specifics in preparation for
5704 merge with xfaces.c.
5705 (defined_color): Remove FIXME comment.
5706 (tty_color_name): Provide w32-specific function.
5707 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
5708
5709 * w32console.c (turn_on_face, turn_off_face): Removed.
5710 (w32_face_attributes): New function.
5711 (Global_variables): Reduce scope where possible.
5712 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
5713 fill attribute.
5714 (hl_mode): Don't modify text attributes.
5715 (write_glyphs): Don't do anything if len <= 0. Use
5716 w32_face_attributes to get attributes for drawing. Write
5717 terminating codes using char_attr_normal.
5718 (reset_terminal_modes, set_terminal_modes): Turn off highlight.
5719 (update_begin, update_end): Likewise.
5720 (vga_stdcolor_name): New function.
5721 (initialize_w32_display): Remove char_attr_reverse and char_attr.
5722 (Fset_screen_color): Remove char_attr_reverse.
5723
b08e8bb2
GM
57242000-01-29 Gerd Moellmann <gerd@gnu.org>
5725
5726 * xfns.c (xic_set_preeditarea): Take window parameter and
5727 window-relative pixel-positions.
5728
5729 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
5730 is its frame's selected window.
5731 (xim_instantiate_callback): Likewise.
5732
5733 * xfns.c (x_create_im): Removed.
5734 (DEFAULT_STYLE, DEFAULT_FONT): Removed.
5735 (supported_xim_styles): Renamed from supported_styles.
5736 (best_xim_style): Renamed from best_style.
5737 (create_frame_xic): Renamed from xic_create_frame.
5738 (free_frame_xic): Renamed from xic_destroy_frame.
427ec082 5739
b08e8bb2
GM
57402000-01-29 INOUE Seiichiro <inoue@ainet.or.jp>
5741
5742 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
5743 our frames, call XFilterEvent with 2nd parameter `None'.
5744 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
5745 returning XBufferOverflow.
5746 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
5747 area.
5748 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
5749 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
5750 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
5751 (xim_initialize, xim_close)
5752 [HAVE_X_I18N && HAVE_X11R6]: New functions.
5753 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame.
5754 (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
5755 (x_delete_display) [HAVE_X_I18N]: Call xim_close.
5756
5757 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
5758 and `xim_styles'.
5759 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
5760 `xic_style' and `xic_xfs'.
5761 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
5762 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
5763 (FRAME_XIM): Removed.
5764
5765 * xfns.c (supported_styles): New variable.
5766 (DEFAULT_STYLE, DEFAULT_FONT): New macros
5767 (xic_create_xfontset, best_style, xic_create_frame)
5768 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
5769 (xic_set_xfontset): New functions.
5770
142e109c
DL
57712000-01-28 Dave Love <fx@gnu.org>
5772
5773 * s/irix6-5.h: Revert last change after change to irix5-0.h.
5774
5775 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
5776
b02786f9
GM
57772000-01-28 Gerd Moellmann <gerd@gnu.org>
5778
d060bc9f
GM
5779 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
5780 for *scratch* if it already existed.
5781
b02786f9
GM
5782 * emacs.c (USAGE): New macro.
5783 (main): Use it to display usage information.
5784
2c52d7e4
EZ
57852000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
5786
5787 Support for the menu-help feature:
5788
5789 * msdos.h: Change prototypes of XMenuAddSelection and
5790 XMenuActivate.
5791
5792 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
5793 part of the line to the termscript file.
5794 (IT_clear_to_end): Clear the entire line, not just its beginning.
5795 (menu_help_message, prev_menu_help_message): New variables.
5796 (IT_menu_make_room): Make room for the help_text member.
5797 (IT_menu_display): New argument disp_help; all callers changed.
5798 If disp_help is non-zero, store the help text of the active menu
5799 item in menu_help_message.
5800 (XMenuAddPane): Initialize the help_text member to NULL.
5801 (XMenuAddSelection): New argument help_text. Store it in the
5802 XMenu structure.
5803 (XMenuActivate): New argument help_callback. If the value of
5804 menu_help_message has changed since the last time, display the
5805 menu help message text while waiting for the mouse to move. Clear
5806 the echo area before exiting.
5807 (XMenuDestroy): Free the help_text member.
5808
ffe0bcd1
GM
58092000-01-27 Gerd Moellmann <gerd@gnu.org>
5810
5811 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
5812 XMenuAddSelection. Pass help callback to XMenuActivate.
5813 (menu_help_callback) [!USE_X_TOOLKIT]: New function.
5814
50dbd23f
EZ
58152000-01-27 Eli Zaretskii <eliz@is.elta.co.il>
5816
5817 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
5818 and EMACS_SET_USECS.
5819
f5941bf8
GM
58202000-01-26 Dave Love <fx@gnu.org>
5821
6c67ddee
DL
5822 * editfns.c (Fchar_after, Fchar_before): Doc fix.
5823
f5941bf8
GM
5824 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
5825 an error may be signalled.
5826
9e49c990
GM
58272000-01-26 Gerd Moellmann <gerd@gnu.org>
5828
fc3cb460
GM
5829 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
5830 LD_SWITCH_SYSTEM inherited from irix5-0.h.
5831
9e49c990
GM
5832 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
5833
d0c037d8
GM
58342000-01-25 Gerd Moellmann <gerd@gnu.org>
5835
5836 * charset.c (Fstring): If there is a multibyte char among
5837 the args, always return a multibyte string.
5838
e12489f9
GM
58392000-01-25 Gerd Moellmann <gerd@gnu.org>
5840
5841 * sysdep.c (sys_select): Turn atimers off and on instead of
5842 recording and restoring old alarm handler
5843
5844 * process.c (toplevel): Include atimer.h.
5845 (create_process_1): Rewritten.
5846 (create_process): Use atimers instead of alarm.
5847 (wait_reading_process_input) [hpux]: Turn atimers off instead
5848 of turning off SIGALRM.
5849 (wait_reading_process_input): Turn off atimers instead off
5850 calling stop_polling.
5851
5852 * emacs.c (main): Call init_atimer.
5853
5854 * keyboard.c (toplevel): Include systime.h and atimer.h.
5855 (polling_for_input): Removed because unused.
5856 (input_poll_signal) [POLL_FOR_INPUT]: Removed.
5857 (poll_timer): New variable.
5858 (poll_for_input, poll_for_input_1): New functions.
5859 (start_polling, stop_polling): Rewritten.
5860
5861 * keyboard.h (polling_for_input): Removed.
427ec082 5862
e12489f9
GM
5863 * atimer.h, atimer.c: New files.
5864
5865 * Makefile.in (obj): Add atimer.o.
5866 (atimer.o): New target.
5867
5868 * blockinput.h (pending_atimers): Add extern declaration.
5869 (UNBLOCK_INPUT): Rewritten. Handle pending atimers.
5870
5871 * lisp.h (popup_activated_flag): Add extern declaration.
5872
5873 * xmenu.c (popup_activated_flag): Make externally visible.
5874 (popup_activate_callback) [USE_MOTIF]: Increment
5875 popup_activated_flag.
5876 (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
5877
5878 * xterm.c (toplevel): Include atimer.h.
5879 (toolkit_scroll_bar_interaction): New variable.
5880 (Fxt_process_timeouts): Removed.
5881 (x_process_timeouts): New function.
5882 (xt_action_hook): Clear toolkit_scroll_bar_interaction.
5883 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
5884 (x_make_frame_visible): Call poll_for_input_1 instead of
5885 input_poll_signal. Don't call alarm.
5886 (x_initialize): Install timer calling x_process_timeouts.
427ec082 5887
1e5279b9
DL
58882000-01-24 Dave Love <fx@gnu.org>
5889
6c67ddee 5890 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
1e5279b9
DL
5891 Don't use -cckr -- apparently not now necessary.
5892
edf6aeb8
EZ
58932000-01-24 Eli Zaretskii <eliz@is.elta.co.il>
5894
5895 * msdos.c (IT_menu_display): Truncate long menu lines at the right
5896 screen boundary.
5897
9badad41
JR
58982000-01-23 Jason Rumney <jasonr@gnu.org>
5899
5900 * w32fns.c (w32_defined_color): Apply gamma correction before
5901 trying to map to the palette.
5902 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
5903 to w32_clear_rect.
5904
5905 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
5906 here. Callers changed to always pass real device context.
5907 (w32_draw_bitmap): Likewise.
5908 (w32_get_glyph_overhangs): Likewise.
5909 (w32_draw_box_rect): Make use of s->hdc rather than getting a new
5910 one.
5911 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
5912 pfnSetScrollInfo and SetScrollRange.
5913 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
5914 back into MULE characters after decoding them.
5915 (x_get_glyph_face_and_encoding): Likewise.
5916 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
5917 GetCharABCWidthsW fails, since this is defined on Windows 9x.
5918 (x_produce_glyphs): Calculate per char metrics for a character
5919 that we know exists in default font when font_not_found_p is true.
5920
63bd786b
JR
59212000-01-22 Jason Rumney <jasonr@gnu.org>
5922
5923 * makefile.nt (intervals.obj, composite.obj): New modules.
5924 (composite.h): Added as dependency where appropriate.
5925
5926 * w32gui.h (XGCValue): New struct for emulating X GCs.
5927
5928 * w32term.h (XCharStruct): New struct for emulating X.
5929
5930 * w32console.c (turn_on_face, turn_off_face): New functions.
5931 (change_line_highlight): New prototype for new redisplay.
5932 (write_glyphs): Support multibyte text. Support faces.
5933
5934 * w32faces.c: Complete rewrite for new redisplay based on new
5935 xfaces.c.
5936
5937 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
5938 throughout. struct frame * in place of FRAME_PTR.
5939 Skeleton support for images, toolbars, tooltips from xfns.c.
5940 (Fx_create_frame): Use system default for default scroll bar
5941 width.
5942 (w32_get_arg): Renamed from x_get_arg.
5943 (Fx_file_dialog): New function.
5944 (w32_list_fonts): Check cache before asking system.
5945 (Vw32_enable_synthesized_fonts): New variable.
5946 (Vw32_enable_italics): Obsolete, removed.
5947
5948 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
5949 Use SELECTED_FRAME macro.
5950
5951 * w32menu.c: Add skeleton support for help strings on menus.
5952 (add_menu_item): Native checkbox and radio support added, but not
5953 yet enabled due to bugs.
5954 (push_menu_item): Add parameters type, selection and help.
5955 Callers updated.
5956 Formatting changes to reduce unnecessary diffs with xmenu.c.
5957
5958 * w32select.c (Fw32_set_clipboard_data): Update call to
5959 find_charset_in_str.
5960
5961 * w32term.c: Complete rewrite for new redisplay based on new
5962 xterm.c with necessary sections merged back in from old w32term.c.
5963
6ffd3cf7 59642000-01-21 Richard M. Stallman <rms@gnu.org>
b50c9214
RS
5965
5966 * data.c (set_internal): Further fix in same criterion.
5967
6ffd3cf7 59682000-01-20 Richard M. Stallman <rms@gnu.org>
8cc95642
RS
5969
5970 * data.c (set_internal): Fix the criteria for whether
5971 to swap out the old cached binding.
5972
60af03f1
DL
59732000-01-19 Dave Love <fx@gnu.org>
5974
5975 * lread.c: (syms_of_lread) [user-init-file]: Doc change.
5976
f9be074f
KH
59772000-01-18 Kenichi Handa <handa@etl.go.jp>
5978
5979 * regex.c (re_compile_fastmap): While checking a range table for
5980 `charset', skip flag bits for a character class correctly.
5981
52b8dbf9
GM
59822000-01-17 Gerd Moellmann <gerd@gnu.org>
5983
d36100c9
GM
5984 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
5985
52b8dbf9
GM
5986 * xfns.c (x_window): Call lw_create_widget with new parameter
5987 list.
5988
5989 * widget.c (EmacsFrameSetCharSize): Change size of children first
5990 because of problems with main window geometry management under
5991 Lesstif.
5992
5993 * xmenu.c (enum menu_item_idx): New enumeration replacing defines
5994 MENU_ITEMS_ITEM_.*.
5995 (MENU_ITEMS_ITEM_HELP): New enumerator.
5996 (push_menu_item): Add parameter HELP. Record help in menu_items.
5997 (single_menu_item, single_submenu, list_of_items): Call
5998 push_menu_item with new parameter.
5999 (single_submenu): Set help string in widget value.
6000 (menu_highlight_callback): New function.
6001 (set_frame_menubar): Call lw_create_widget with new
6002 parameter list.
6003 (xmenu_show, xdialog_show): Ditto.
6004
3139018f
GM
60052000-01-13 Gerd Moellmann <gerd@gnu.org>
6006
6007 * sound.c (Fplay_sound): Improve doc string.
6008
83c8f461
RS
60092000-01-11 Richard M. Stallman <rms@gnu.org>
6010
6011 * lisp.h (set_internal): Enter the new arg.
6012
6013 * eval.c (specbind): Record buffer-local variables specially,
6014 indicating which buffer's binding was saved.
6015 (unbind_to): Restore buffer-local variables specially
6016 in the proper buffer.
6017
6018 * data.c (set_internal): New arg BUF.
427ec082 6019
83c8f461
RS
6020 * eval.c (specbind, unbind_to): Pass new arg to set_internal.
6021 * data.c (Fset): Pass new arg to set_internal.
6022 * bytecode.c (Fbyte_code): Pass new arg to set_internal.
427ec082 6023
1fab1775
GM
60242000-01-11 Gerd Moellmann <gerd@gnu.org>
6025
6026 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload,
6027 xprintsym.
6028
83c8f461 60292000-01-11 Richard M. Stallman <rms@gnu.org>
6f59462e
RS
6030
6031 * minibuf.c (Ftry_completion): Doc fix.
6032
7a85e4df
GM
60332000-01-11 Gerd Moellmann <gerd@gnu.org>
6034
6035 * keyboard.c (Fclear_this_command_keys): Clear recent_keys
6036 vector, too.
6037
a970dae4
AS
60382000-01-11 Andreas Schwab <schwab@suse.de>
6039
6040 * coding.c (code_convert_region): Initialize total_skip.
6041
c65d14ee
DL
60422000-01-08 Dave Love <fx@gnu.org>
6043
6044 * eval.c (Fuser_variable_p): Check customizability too.
6045
834938d2
GM
60462000-01-07 Gerd Moellmann <gerd@gnu.org>
6047
6048 * minibuf.c (Fcompleting_read): Doc fix.
6049
e0303cd6
GM
60502000-01-05 Gerd Moellmann <gerd@gnu.org>
6051
8a26744b
GM
6052 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
6053 -L /usr/local/lib.
6054
e0303cd6
GM
6055 * xfns.c (x_create_im): New function to set IM and IC of a frame.
6056 Check that input style is supported before trying to create an
6057 IC for it.
6058 (x_window): Call x_create_im.
427ec082 6059
2e471eb5
GM
60602000-01-04 Gerd Moellmann <gerd@gnu.org>
6061
560a7bd2
GM
6062 * xfns.c (current_gif_memory_src): New variable.
6063 (gif_load): Record the address of the current memory source
6064 in current_gif_memory_src.
6065 (gif_read_from_memory): Use current_gif_memory_src.
6066
f9ee84a3
GM
6067 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
6068 macros statement form.
6069
d1299cde
GM
6070 * sound.c (struct sound): Renamed from struct sound_file.
6071 (struct sound): Add members `data' and `header_size'.
6072 (enum sound_attr): Add SOUND_DATA.
6073 (current_sound, current_sound_device): Variables renamed from
6074 sound_file and sound_device.
6075 (parse_sound): Parse :data.
6076 (parse_sound): Handle sound data in strings.
6077 (find_sound_type): Function renamed from find_sound_file_type.
427ec082 6078 (wav_init, au_init): Fail if sound's header_size is smaller than
d1299cde
GM
6079 needed header size.
6080 (wav_play, au_play): Play sounds from string data.
6081
2e471eb5
GM
6082 * puresize.h (BASE_PURE_SIZE): Increase to 600000.
6083
6084 * lisp.h: Add prototype for allocate_string_data.
6085
6086 * alloc.c (Fgarbage_collect): Return number of live and free
6087 strings.
6088
6089 * alloc.c (mark_buffer): Remove code in #if 0.
6090 (gc_sweep): Ditto.
6091 (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
6092 (strings_consed): New variable.
6093 (allocate_string): Set it.
6094 (syms_of_alloc): Add DEFVAR_INT for strings_consed.
6095 (Fmemory_use_counts): Return strings_consed. Use Flist.
6096
6097 * alloc.c: General cleanup in comments etc. Remove conditional
6098 compilation for `standalone'.
6099
6100 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
6101
6102 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
6103 (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
6104 (DONT_COPY_FLAG): Removed.
6105 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
6106 (struct sdata, struct sblock): New
6107 (struct string_block): Rewritten.
6108 (STRINGS_IN_STRING_BLOCK): New macro.
6109 (oldest_sblock, current_sblock, total_strings, total_free_strings)
6110 (large_sblocks, string_blocks, string_free_list): New variables.
6111 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
6112 (init_strings): Rewritten.
6113 (allocate_string, allocate_string_data, compact_small_strings)
6114 (free_large_strings, sweep_strings): New functions.
6115 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
6116 (struct string_block_head, current_string_block)
6117 (first_string_block, large_string_blocks, STRING_FULLSIZE)
6118 (STRING_PAD): Removed.
6119 (make_uninit_multibyte_string, make_pure_string): Rewritten.
6120 (Fgarbage_collect): Don't set mark bit in large strings.
6121 (mark_object): Mark strings differently. Mark symbol names
6122 differently.
6123 (survives_gc_p): Test marked strings differently.
427ec082 6124 (gc_sweep): Sweep strings differently, unmark strings in
2e471eb5
GM
6125 symbol names.
6126 (compact_strings): Removed.
6127
42608ba8
EZ
61282000-01-04 Eli Zaretskii <eliz@is.elta.co.il>
6129
6130 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
6131 Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
6132
e0a09e1a
KH
61332000-01-04 Kenichi Handa <handa@etl.go.jp>
6134
dd9f0750 6135 * fileio.c (Finsert_file_contents): Signal error if visiting file
427ec082 6136 in a non-empty buffer.
dd9f0750 6137
3c0f3b15 6138 * term.c (encode_terminal_code): Fix the previous change.
e0a09e1a 6139
44cd3ae5
GM
61402000-01-03 Gerd Moellmann <gerd@gnu.org>
6141
6142 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
6143 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
6144
6145 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
6146
c182a70f
EZ
61472000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
6148
6149 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
6150 need to test for MSDOS frames.
6151
24480d5b
EZ
61522000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
6153
6154 * dosfns.c (unspecified_colors): Remove.
6155 (msdos_stdcolor_idx): Use global variables unspecified_fg and
6156 unspecified_bg.
6157 (msdos_stdcolor_name): Return strings for unspecified fore- and
6158 back-ground colors.
6159
6160 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
aaf2320c 6161 (syms_of_xfaces): Remove their staticpro's.
24480d5b
EZ
6162 (tty_color_name): Return Lisp strings for unspecified fore- and
6163 back-ground colors.
6164 (Finternal_set_lisp_face_attribute): Remove the special treatment
6165 for Qunspecified_{f,b}g.
6166 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
6167 string.
6168
047f434a
GM
61692000-01-03 Gerd Moellmann <gerd@gnu.org>
6170
6171 * xdisp.c (reseat_at_next_visible_line_start): Position before
6172 newline only if ending up on a newline.
6173 (next_element_from_ellipsis): Return success. Handle case of
6174 displaying no ellipsis. Fix case of ellipsis defined in display
6175 table.
6176 (next_element_from_buffer): Return 0 if next_element_from_ellipsis
6177 returns 0.
6178
d684c676
EZ
61792000-01-03 Eli Zaretskii <eliz@is.elta.co.il>
6180
6181 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
6182 (Fcolor_supported_p): Renamed from face-color-supported-p.
6183
5fe1d139
EZ
61842000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6185
6186 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The
6187 list of colors renamed to tty-defined-color-alist.
6188 (tty_color_name): Pass the frame to tty-color-by-index.
6189 (realize_tty_face): tty-color-alist is now a function which
6190 accepts the frame as argument.
6191
6192 * term.c (Ftty_display_color_p): Accept an optional argument
6193 FRAME.
6194
816be8b8
EZ
61952000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6196
6197 * term.c (insert_glyphs): Pass glyph, not &glyph, to
6198 encode_terminal_code.
6199
b635321e
EZ
62002000-01-02 Eli Zaretskii <eliz@is.elta.co.il>
6201
6202 * dispnew.c (mode_line_string): Support termcap frames as well.
6203
9b784e96
GM
62042000-01-01 Gerd Moellmann <gerd@gnu.org>
6205
27189709
GM
6206 * syntax.c (Fforward_word): Undo previous change.
6207
6208 * editfns.c (Fconstrain_to_field): Don't constrain if
6209 inhibit-field-text-motion is non-nil.
6210 (Fline_beginning_position): Undo previous change.
6211 (Fline_end_position): Ditto.
6212
6213 * syntax.c (Fforward_word): Notice field boundaries only if
6214 inhibit-field-text-motion is nil.
6215
6216 * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
6217
6218 * editfns.c (Vinhibit_field_text_motion): New variable.
6219 (inhibit-field-text-motion): New DEFVAR_LISP.
6220 (Fline_beginning_position, Fline_end_position): Notice field
6221 boundaries only if inhibit-field-text-motion is nil.
6222
45158a91
GM
6223 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
6224 All calls adjusted.
6225 (x_build_heuristic_mask): Likewise.
6226 (xbm_load_image_from_file): Change error output.
6227 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
6228 (gif_load, gs_load, x_kill_gs_process): Ditto.
6229
9b784e96
GM
6230 * xfns.c (gif_load): Avoid sign extension and thus out of bounds
6231 color indices when accessing raster pixels.
63cec32f
GM
6232 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
6233 one of :file or :data.
6234 (enum pbm_keyword_index): Add PBM_DATA.
6235 (pbm_format): Add :data.
6236 (pbm_image_p): Allow either :file or :data.
6237 (pbm_read_file): New function.
6238 (pbm_scan_number): Rewritten to read from string.
6239 (pbm_load): Support :data.
9b784e96 6240
2cb085db 6241See ChangeLog.8 for earlier changes.
6922b018
KH
6242
6243;; Local Variables:
49b3bd82 6244;; coding: iso-2022-7bit
6922b018 6245;; End: