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