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