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