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