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