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