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