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