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