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