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