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