%X, %E, %G in format strings.
[emacs.git] / src / ChangeLog
blobd218f86eeb83c0bc21c93aac5c7eec1df119e63a
1 2001-01-03  Gerd Moellmann  <gerd@gnu.org>
3         * xdisp.c (forward_to_next_line_start): Reset it->c if taking the
4         short cut at the start of the function.  Add an assertion.
5         (reseat_at_next_visible_line_start): Add an assertion.
7         * window.c (Frecenter): When changing the window start, set the
8         window's window_end_valid to nil.
9         (Fwindow_end): Fix window-end computation when UPDATE is non-nil.
11         * dispextern.h (move_it_past_eol): Add prototype.
13         * xdisp.c (move_it_past_eol): New function.
15         * window.c (Fwindow_end): Doc fix.
17 2001-01-03  Dave Love  <fx@gnu.org>
19         * dired.c (Ffile_attributes): Fix last change, removing BSD4_3
20         kluge.
22 2001-01-03  Gerd Moellmann  <gerd@gnu.org>
24         * xdisp.c (try_window_reusing_current_matrix): Fix bug setting
25         the enabled_p flag of the glyph row at window_end_vpos to 0.
26         (handle_single_display_prop): Fix last change.
28 2001-01-02  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
30         * window.c (Frecenter): Doc fix.
32 2001-01-02  Andrew Innes  <andrewi@gnu.org>
34         * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition.
36         * frame.h (output_method): Add output_w32_console method.
37         (FRAME_W32_CONSOLE_P): New macro.
39         * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames
40         use output_w32_console method.
41         (Qw32_console): New Lisp_Object.
42         (Fframep): Return it.
43         (syms_of_frame): Init it.
44         (Fframe_parameters): Report w32console as font for w32_console
45         frames.
47         * xfaces.c (realize_default_face): Set face foreground and
48         background to unspecified for w32_console frames.
49         (realize_face): Realize face cache for w32_console frames.
50         (realize_tty_face): Accept w32_console frames.
52         * xdisp.c (handle_single_display_prop): Return if frame is
53         w32_console.
54         (init_iterator) [WINDOWSNT]: Initialize frame face cache if
55         necessary, even if running interactively.
57         * dispnew.c (Fredraw_frame): Call set_terminal_modes for
58         w32_console frames.
60         * w32term.c (x_update_begin): 
61         (x_update_end): 
62         (x_clear_frame): 
63         (x_ins_del_lines): 
64         (x_change_line_highlight): 
65         (x_delete_glyphs): 
66         (w32_ring_bell): 
67         (x_update_begin): 
68         (x_update_end): 
69         (w32_reassert_line_highlight): 
70         (w32_frame_rehighlight): 
71         (w32_frame_raise_lower): Do nothing if not w32 frame.
73         * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame.
75         * w32fns.c (Fx_display_color_cells): Determine correct value, when
76         system doesn't tell us directly.
77         (Fx_display_visual_class): Implement properly.
79 2001-01-02  Gerd Moellmann  <gerd@gnu.org>
81         * window.c (Frecenter): Handle centering in graphical frames
82         specially.  Centering on the basis of line counts doesn't work
83         reliably with variable-height lines.
84         
85 2001-01-02  Eli Zaretskii  <eliz@is.elta.co.il>
87         * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac'
88         and al[].
90         * composite.c (run_composition_function): Remove unused variable
91         `val'.
92         (update_compositions): Remove unused variable `hook'.
94         * intervals.c (get_local_map): Remove unused variable `tem'.
96         * doprnt.c (doprnt1): Remove unused variable `size'.
98         * fns.c (Flength): Remove unused variable `tail'.
99         (Fdelete): Remove unused variable `size'.
101         * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1'
102         and `gcpro2'.
104         * doc.c (Fsnarf_documentation): Remove unused variables `fun' and
105         `tem'.
107         * data.c (find_symbol_value): Remove extra 3rd argument in the
108         call to swap_in_symval_forwarding.
110         * undo.c (Fprimitive_undo): Remove unused block-scope variable
111         `end'.
113         * search.c (shrink_regexp_cache): Remove unused variable `cpp'.
114         (trivial_regexp_p): Remove unused variable `c'.
115         (boyer_moore): Remove unused variable `k'.
117         * indent.c (current_column): Remove unused variable `stopchar'.
118         (Fcompute_motion): Remove unused variable `contin'.
120         * casefiddle.c (casify_object): Remove unused variable `tolen'.
122         * dired.c (directory_files_internal): Fix a typo in a comment.
123         Remove an unused variable `handler'.
124         (file_name_completion): Remove unused function-scope variable
125         `dp'.
126         (Ffile_attributes) <dirname, sdir>: Make declarations conditioned
127         on BSD4_2.
129         * fileio.c (e_write): Remove unused variable
130         `require_encoding_p'.
132         * marker.c (Fmarker_position): Remove unused variables `pos', `i',
133         and `buf'.
134         (Fmarker_insertion_type): Remove unused variable `buf'.
136         * insdel.c (make_gap): Remove unused variable `result'.
138         * keyboard.c (record_char): Remove unused function-scope variable
139         `help'.
140         (kbd_buffer_get_event): Remove unused block-scope variable `idx'.
141         (menu_bar_items): Remove unused function-scope variable `tem'.
143         * fontset.c (fontset_ref): Remove unused variable `i'.
144         (fontset_set): Remove unused variables `j' and `tmp'.
145         (make_fontset): Remove unused variables `i', `j', `elt' and
146         `base_elt'.
147         (make_fontset_for_ascii_face): Remove unused variable `name'.
148         (fs_load_font): Remove unused variable `font_idx'.
149         (fs_query_fontset): Remove unused function-local variable
150         `fontset'.
151         (list_fontsets): Remove unused variable `tail'.
152         (Fnew_fontset): Remove unused variables `family' and `registry'.
153         (accumulate_font_info): Remove unused variable `tmp'.
154         (Ffontset_font): Remove unused variable `id'.
155         (syms_of_fontset): Remove unused variable `i'.
157         * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call
158         to x_term_init.
159         (lookup_image): Remove unused variable `file'.
160         (xbm_load): Remove unused variables `bitmap_data', `height', and
161         `width'.  Remove function-local variable `i', leave the
162         block-local one.
163         (gif_load): Remove unused variable `inc'.
165         * xterm.c (XTread_socket): Remove unused variables `p' and
166         `pend'.
167         (XTread_socket) <LeaveNotify>: Remove unused variable `frame',
168         leave only the one in the inner block.
170         * xfaces.c (face_fontset, realize_default_face): Remove unused
171         variable `fontset'.
172         (face_at_buffer_position): Remove unused variable `multibyte_p'.
174         * term.c (encode_terminal_code): Remove unused variable `c'.
176         * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned
177         char *' instead of `char *'.
179         * category.c (Fcategory_docstring): Remove unused variable `doc'.
180         (Fget_unused_category): Remove unused variable
181         `docstring_vector'.
182         (Fchar_category_set): Remove unused variables `val', `charset',
183         `c1' and `c2'.
185         * coding.c (detect_coding_iso2022, setup_coding_system): Remove
186         unused variable `i'.
187         (detect_coding_mask): Remove unused variable `idx'.
188         (detect_coding): Remove unused variable `i'.
189         (ccl_coding_driver): Remove unused variable `result'.
190         (run_pre_post_conversion_on_str): Remove unused variable `prev'.
191         (decode_coding_string): Remove unused variables `to' and
192         `gcpro1'.
193         (encode_coding_string): Remove unused variables `gcpro1' and
194         `saved_coding_symbol'.
195         (Ffind_coding_systems_region_internal): Remove function-local
196         variable args[], leave only the block-local one.
197         (code_convert_region1): Remove unused variable `len'.
199         * charset.c (char_printable_p): Remove unused variable `chars'.
200         (Fsplit_char, Fchar_bytes): Remove unused variable `val'.
201         (str_to_multibyte): Remove unused variable `c'.
203         * window.c (size_window): Remove block-local variable `min_size'.
205         * xdisp.c (make_cursor_line_fully_visible): Remove unused variable
206         `header_line_height'.
207         (append_space, extend_face_to_end_of_line): Declare `saved_what'
208         enum display_element_type.
210 2001-01-02  Gerd Moellmann  <gerd@gnu.org>
212         * xterm.c (x_connection_closed): Catch X errors around all
213         statements that call X.  Save away the error message in a local
214         copy.
215         
216         * xterm.c (x_connection_closed): Set handling_signal to 0 at
217         the start.
219         * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe
220         in or at the start of invisible text.
222         * dispnew.c (update_window): Don't check_current_matrix_flags.
224 2001-01-01  Jason Rumney  <jasonr@gnu.org>
226         * w32fns.c (x_figure_window_size): Do not allow new_height and
227         new_width of frame to override specified values.
229 2000-12-30  Kenichi Handa  <handa@etl.go.jp>
231         * composite.c (find_composition): Fix a code for searching
232         backward.
234 2000-12-29  Gerd Moellmann  <gerd@gnu.org>
236         * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New
237         function.
238         (update_window) [GLYPH_DEBUG]: Call it.
239         (scrolling_window): Prevent including current rows which are below
240         what's displayed in the window.
242         * xdisp.c (try_window_reusing_current_matrix)
243         <new start <= old start>:  Disable rows in the current matrix
244         which are below the window after scrolling.
245         
246         * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P
247         is zero.  It's not worth the complexity.
248         (invisible_text_between_p): Put in #if 0 because unused.
250 2000-12-28  Gerd Moellmann  <gerd@gnu.org>
252         * xfns.c (Fx_backspace_delete_keys_p): Check library and server
253         XKB versions.  Call XkbFreeKeyboard with 2nd arg 0.
255         * keyboard.c (echo_char): If C is an integer, always call
256         push_key_description.  Former code could signal an invalid
257         character error.
259         * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE.
260         If set, print multibyte text.
261         (Fsingle_key_description): Call push_key_description with
262         FORCE_MULTIBYTE set.
263         (describe_buffer_bindings): Likewise.
265         * lisp.h (push_key_description): Add prototype.
267         * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t
268         around the call to redisplay_internal.
270         * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
272         * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG.
274 2000-12-28  Kenichi Handa  <handa@etl.go.jp>
276         * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'.
277         (ccl_driver): New local variable `extra_bytes'.
279         * ccl.h (struct ccl_spec): New member eight_bit_carryover.
281         * coding.c (setup_coding_system): Initialize
282         coding->spec.ccl.eight_bit_carryover.
283         (ccl_coding_driver): Pay attention to carried over 8-bit bytes.
285 2000-12-28  Kenichi Handa  <handa@etl.go.jp>
287         * coding.c (SAFE_ONE_MORE_BYTE): New macro.
288         (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro.
289         (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro.
290         (decode_composition_emacs_mule): New function.
291         (decode_coding_emacs_mule): Decode composition sequence by calling
292         decode_composition_emacs_mule.
293         (ENCODE_COMPOSITION_EMACS_MULE): New macro.
294         (encode_coding_emacs_mule): Changed from macro to function.  If
295         a text contains compositions, encode them correctly.
296         (setup_coding_system): Set coding->commong_flags for emacs-mule so
297         that decoding and encoding are required.
299 2000-12-27  Gerd Moellmann  <gerd@gnu.org>
301         * xfaces.c (PT_PER_INCH): New macro.
302         (xlfd_point_size): Compute real point size from font's pixel size.
303         (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH
304         instead of 72.
306         * .gdbinit: Comment out the line pointing to the Lesstif source
307         directory.
309         * window.c (Frecenter): Use displayed_window_lines instead
310         of window_internal_height.
312         * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
313         instead of x-toolkit-scroll-bars-p.
314         (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
316         * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars
317         instead of x-toolkit-scroll-bars-p.
318         (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p.
319         
320         * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New.
321         (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro.
322         (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]: New
323         variables.
324         (add_window_display_history, add_frame_display_history) 
325         (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions.
326         (build_frame_matrix_from_leaf_window): Remove unused code.
327         (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to
328         redisplay history.
329         (update_frame) [GLYPH_DEBUG]: Add to redisplay history.
330         (update_window) [GLYPH_DEBUG]: Likewise.
331         (syms_of_display): Defsubr dump-redisplay-history.
333 2000-12-23  Gerd Moellmann  <gerd@gnu.org>
335         * keyboard.c (echo_prompt): Always set current_kboard->echoptr to
336         the end of the prompt.  Set echo_after_prompt to the offset
337         of echoptr in echobuf.
339         * xdisp.c (init_from_display_pos): Pop until the iterator's
340         stack is empty; there may be frames for stretch or images
341         on the stack.
343         * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed.
344         (save_or_restore_current_matrix): New function for the same
345         purpose, but more efficient.
346         (adjust_frame_glyphs_for_frame_redisplay): Use it.
348 2000-12-23  Eli Zaretskii  <eliz@is.elta.co.il>
350         * xdisp.c (syms_of_xdisp): Fix last change.
352 2000-12-23  Gerd Moellmann  <gerd@gnu.org>
354         * xdisp.c (syms_of_xdisp): Doc fix.
356         * xdisp.c (redisplay_window): Remove label restore_buffers;
357         use finish_scroll_bars instead to make sure that scroll bars
358         are redeemed.  If we don't do this, flickering can result from
359         scroll bars being destroyed and recreated.
361 2000-12-22  Jason Rumney  <jasonr@gnu.org>
363         * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear
364         in the wrong colors when the foreground is not black.
365         (expose_window): Don't redraw the window that's currently being
366         updated.
368 2000-12-22  Gerd Moellmann  <gerd@gnu.org>
370         * window.c (size_window): When setting the window's too_small_ok
371         flag, compare old size with minimum size depending on WIDTH_P,
372         don't compare with window_min_width.
373         
374         * window.c (delete_window): Simplify somewhat.
375         (Fset_window_configuration): Don't SET_FRAME_GARBAGED after
376         freeing window matrices.  The flag windows_or_buffers_changed is
377         set, so the next redisplay will consider all windows; this should
378         suffice.
380 2000-12-22  Kenichi Handa  <handa@etl.go.jp>
382         * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed.
384         * ccl.h (struct ccl_program): New member cr_consumed.
386         * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here.
387         (CCL_READ_CHAR): Handle EOL conversion here.
388         (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise.
390 2000-12-21  Gerd Moellmann  <gerd@gnu.org>
392         * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg
393         GLYPHS.
395         * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths,
396         otherwise tabs of different size compare equal.
398         * callint.c (Fcall_interactively): Prevent a compiler warning.
400         * print.c (print_unwind): Return nil.
401         (PRINTDECLARE): Initialize all local variables.
402         (print_preprocess): Add a default case.
404         * lisp.h (Qinhibit_point_motion_hooks): Declare extern.
406         * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t.
408         * window.c (delete_window, Fsplit_window) 
409         (Fset_window_configuration): Calls to ensure_frame_matrix removed.
411         * dispextern.h (ensure_frame_matrix): Function declaration removed.
413         * dispnew.c (ensure_frame_matrix): Removed.
414         (save_frame_matrix, restore_frame_matrix): New functions.
415         (adjust_frame_glyphs_for_frame_redisplay): Use them.
417         * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix)
418         [GLYPH_DEBUG]: Extended to dump glyphs in short form.
420 2000-12-21  Andrew Innes  <andrewi@gnu.org>
422         * w32term.c (x_update_begin): Regenerate the palette here, rather
423         than for each window.
425         * w32xfns.c (select_palette): Avoid calling SelectPalette if
426         palette is NULL, since this corrupts memory!  Also get
427         display_info reference from frame.
429 2000-12-21  Jason Rumney  <jasonr@gnu.org>
431         * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap.
433         * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC
434         to avoid returning without releasing it.
436 2000-12-21  Kenichi Handa  <handa@etl.go.jp>
438         * keymap.c (push_key_description): Don't convert eight-bit-control
439         and eight-bit-graphic to multibyte character.
441         * charset.c (Fmake_char_internal): If CHARSET doesn't have a
442         generic character and CODE1 is nil, return the smallest character
443         in CHARSET.
445 2000-12-20  Dave Love  <fx@gnu.org>
447         * s/osf5-0.h (NSIG): Don't redefine.
449 2000-12-20  Stefan Monnier  <monnier@cs.yale.edu>
451         * keymap.c (where_is_internal): Check ascii_sequence_p rather than
452         excluding menu-bar and tool-bar.
453         (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache.
454         (menu_item_p): Remove.
455         (where_is_internal_1): Don't ignore menu-items.
457 2000-12-20  Gerd Moellmann  <gerd@gnu.org>
459         * xdisp.c (hscroll_window_tree): Take window's min_hscroll
460         into account.
462         * window.c (make_window): Initialize window's min_hscroll.
463         (Fset_window_hscroll): Set window's hscroll and min_hscroll.
464         (set_window_buffer, temp_output_buffer_show): Set min_hscroll
465         to zero.
466         (struct saved_window): New member min_hscroll.
467         (SAVED_WINDOW_VECTOR_SIZE): Set to 17.
468         (Fset_window_configuration): Set window's min_hscroll.
469         (save_window_save): Save window's min_hscroll.
470         (compare_window_configurations): Compare min_hscroll values.
472         * window.h (struct window): New member min_hscroll.
474         * keyboard.c (echo_prompt): Prevent a compiler warning.
476         * xdisp.c (try_cursor_movement): Fix last change.  The real
477         condition is that PT is at the end of the row, and should
478         be displayed at the start of the next row.
479         
480         * xdisp.c (try_cursor_movement): If we end on a partially
481         visible line, end we already decided to scroll, return -1.
483         * dispextern.h (ensure_frame_matrix): Add prototype.
485         * window.c (delete_window, Fsplit_window)
486         (Fset_window_configuration): Call ensure_frame_matrix.
488         * dispnew.c (fake_current_matrices, ensure_frame_matrix): New
489         functions.
490         (adjust_frame_glyphs_for_frame_redisplay): If display has been
491         completed, call fake_current_matrices instead of marking frame
492         garbaged.
494 2000-12-20  Jason Rumney  <jasonr@gnu.org>
496         * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame.
498 2000-12-19  Eli Zaretskii  <eliz@is.elta.co.il>
500         * fns.c (Frequire): Doc fix.
502 2000-12-19  Gerd Moellmann  <gerd@gnu.org>
504         * window.c (window_scroll_pixel_based): Don't use
505         move_it_vertically.
507         * dispnew.c (direct_output_for_insert): Fix check for mini-window
508         currently displaying a message.
510         * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and
511         xterm.h.
512         (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font.
514 2000-12-18  Andrew Innes  <andrewi@gnu.org>
516         * w32.c (w32_strerror): New function.
518         * w32.h (w32_strerror): New extern.
520         * w32fns.c (Fw32_shell_execute): Use it.
522 2000-12-18  Gerd Moellmann  <gerd@gnu.org>
524         * s/hpux10.h (_FILE_OFFSET_BITS): Undef again.
526 2000-12-18  Eli Zaretskii  <eliz@is.elta.co.il>
528         * msdos.c (IT_set_face): Obey inverse_video.
530 2000-12-18  Kenichi Handa  <handa@etl.go.jp>
532         * dired.c (directory_files_internal): Always return decoded filenames.
534 2000-12-18  Gerd Moellmann  <gerd@gnu.org>
536         * xterm.c (x_connection_closed): Prevent being called recursively
537         because of an error condition in XtCloseDisplay.
538         
539         * xdisp.c (init_iterator): If noninteractive, and the frame's
540         face cache is null, make one.
542         * xfns.c (show_busy_cursor): Check for live frames more
543         thoroughly.
545         * process.c (wait_reading_process_input): Check for pending
546         input when running timers.
548 2000-12-18  Eli Zaretskii  <eliz@is.elta.co.il>
550         * msdos.c (IT_write_glyphs): Compute the glyph face from
551         str->face_id.
553 2000-12-18  Kenichi Handa  <handa@etl.go.jp>
555         * process.c (read_process_output): Don't run a filter if the code
556         decoder produces nothing but carryover.
558 2000-12-17  Andrew Innes  <andrewi@gnu.org>
560         * w32.c (sys_rename): Only check errno against EEXIST, and not
561         EACCES, when determining whether rename failed because the target
562         exists.  This was resulting in indefinite looping on Windows 9x if
563         the source file was locked by another process.
565         * w32fns.c (Ffile_system_info): New function.
566         (syms_of_w32fns): Defsubr it.
568 2000-12-17  Gerd Moellmann  <gerd@gnu.org>
570         * window.c (coordinates_in_window): Fix computation for
571         position on vertical line between mode lines.
573         * xfns.c (unwind_create_frame): Return t if frame was deleted.
574         Don't alter tip_frame or tip_window.
575         (unwind_create_tip_frame): Set tip_frame to nil only if frame
576         was deleted.
578         * w32fns.c (unwind_create_frame): Return t if frame was deleted.
579         Don't alter tip_frame or tip_window.
580         (unwind_create_tip_frame): Set tip_frame to nil only if frame
581         was deleted.
583 2000-12-16  Eli Zaretskii  <eliz@is.elta.co.il>
585         * fileio.c (Fcopy_file): Rename the last argument to keep_time, to
586         be consistent with the doc string.  Reported by NAKAJIMA Mikio
587         <minakaji@osaka.email.ne.jp>.
589 2000-12-16  Kenichi Handa  <handa@etl.go.jp>
591         * xfaces.c (Vface_ignored_fonts): New variable.
592         (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts.
593         (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable.
595 2000-12-15  Gerd Moellmann  <gerd@gnu.org>
597         * dispnew.c (update_window): Detect pending input every nth line
598         updated, i.e. do it depending on real work done, and not on the
599         vpos of the line.
601         * xterm.c (expose_window): Don't redraw the window that's
602         currently being updated.
604         * window.c (Fset_window_point): Remove test for
605         cursor_in_non_selected_windows.
607         * lread.c (read1): Recognize end of file after `\\'.
609         * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame,
610         not unwind_create_frame.
612 2000-12-15  Dave Love  <fx@gnu.org>
614         * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of
615         bcopy & al.
617         * s/irix6-5.h: #undef bcopy & al here.  Include strings.h.
619 2000-12-15  Kenichi Handa  <handa@etl.go.jp>
621         * coding.c (setup_coding_system): Clear all members of the struct
622         coding_system at first.
623         (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP
624         argument.
625         (code_convert_region): Don't override coding->src_multibyte and
626         coding->dst_multibyte.
628         * fns.c (Fmd5): Docstring improved.
630 2000-12-15  Miles Bader  <miles@gnu.org>
632         * xdisp.c (window_box_height): Only use mode-line glyph-rows that
633         are actually marked as mode-lines; otherwise use
634         estimate_mode_line_height.
636 2000-12-14  Gerd Moellmann  <gerd@gnu.org>
638         * editfns.c (Fformat): Prevent a buffer overrun when the format
639         specifies a precision.
641 2000-12-14  Eli Zaretskii  <eliz@is.elta.co.il>
643         * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the
644         argument is outside the range [2..3].
646 2000-12-14  Andrew Innes  <andrewi@gnu.org>
648         * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's
649         nothing to do.  Bind inhibit-quit.
650         (tip_frame): Make it a Lisp_Object.
651         (x_create_tip_frame): Set tip_frame after it has been added to
652         Vframe_list.
653         (Fx_show_tip): Don't set tip_frame here.
654         (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New
655         variables.
656         (unwind_create_frame, unwind_create_tip_frame): New functions.
657         (Fx_create_frame, x_create_tip_frame): Handle errors signaled
658         while a frame is only partially constructed.
660         * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
661         (x_free_frame_resources): New function.
662         (x_destroy_window): Use it.
664 2000-12-14  Gerd Moellmann  <gerd@gnu.org>
666         * xfns.c (Fx_backspace_delete_keys_p): New function.
667         (syms_of_xfns): Defsubr it.
669         * config.in (HAVE_XKBGETKEYBOARD): Add.
671 2000-12-14  Kenichi Handa  <handa@etl.go.jp>
673         * keyboard.c (echo_prompt): Argument type changed to Lisp_Object.
674         Always store string in multibyte representation in echobuf.
675         (echo_char): Always store string in multibyte representation in
676         echobuf.
677         (echo_now): Call message2_nolog with the arg MULTIBYTE 1.
678         (read_key_sequence): Adjusted for the change of echo_prompt.
680         * fns.c (Fmd5): Docstring improved.
682         * lisp.h (detect_coding_system): Prototype adjusted.
684         * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro.
685         (detect_coding_emacs_mule, detect_coding_iso2022,)
686         (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8)
687         (detect_coding_utf_16, detect_coding_ccl): Make them static.  New
688         argument MULTIBYTEP.  Callers changed.
689         (detect_coding_mask, detect_coding_system): New argument
690         MULTIBYTEP.  Callers changed.
691         (decode_coding_string): Set coding->src_multibyte and
692         coding->dst_multibyte before calling detect_coding and detect_eol.
693         Update them after some coding system is detected.
694         
695 2000-12-13  Stefan Monnier  <monnier@cs.yale.edu>
697         * keymap.c (get_keyelt): Only eval the filter if `autoload' is set.
699         * keyboard.c (menu_bar_items, tool_bar_items):
700         Set `autoload' when looking up `tool-bar' or `menu-bar' submap.
702 2000-12-13  Gerd Moellmann  <gerd@gnu.org>
704         * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: 
705         New variables.
706         (unwind_create_frame, unwind_create_tip_frame): New functions.
707         (Fx_create_frame, x_create_tip_frame): Handle errors signaled
708         while a frame is only partially constructed.
710         * xterm.h (x_free_frame_resources): Declare.
712         * xterm.c (x_free_frame_resources): New function.
713         (x_destroy_window): Use it.
715         * dispnew.c (update_window): If do_mouse_tracking is non-nil,
716         don't interrupt the update for pending input initially, i.e.
717         update at least some lines.
719         * keyboard.c (do_mouse_tracking): Make externally visible.
720         
721         * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'.
723         * xfns.c (gray_bitmap_bits): Declare `char *'.
725 2000-12-12  Gerd Moellmann  <gerd@gnu.org>
727         * xdisp.c (display_tool_bar_line): Make sure that tool bar
728         lines start with a relief line.
730 2000-12-12  Dave Love  <fx@gnu.org>
732         * window.c (Fdisplay_buffer): Doc fix.
733         (Fwindow_list): Remove unused var.
735         * buffer.h (mmap_set_vars): Declare.
737         * window.h (Fset_window_point): Declare.
739 2000-12-12  Eli Zaretskii  <eliz@is.elta.co.il>
741         * msdos.c (fast_find_position): Don't overstep the last window row.
742         (IT_note_mouse_highlight): Initialize portion to -1.  Remove
743         unused variable `area'.  When looking for a row under (X,Y), give
744         up if some of the previous rows is not enabled.
746 2000-12-12  Gerd Moellmann  <gerd@gnu.org>
748         * window.c (Fset_window_point): If displaying cursors in windows
749         other than the selected window, make sure redisplay updates
750         other windows to show the new value of point in the window.
752         * dispextern.h (cursor_in_non_selected_windows): Declare extern.
754         * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if
755         the buffer is the sole visible buffer when in the mini-buffer.
757         * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer): 
758         Bind `inhibit-read-only' to t.
759         (unwind_with_echo_area_buffer): Use AREF.
761         * xfns.c (Fx_hide_tip): Simplified.
763         * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use
764         GC_MAKE_GCPROS_NOOPS instead of `1'.
766         * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS.
768 2000-12-11  Gerd Moellmann  <gerd@gnu.org>
770         * xfns.c (Fx_hide_tip): Fix last change.
771         
772         * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's
773         nothing to do.  Bind inhibit-quit.
774         (tip_frame): Make it a Lisp_Object.
775         (x_create_tip_frame): Set tip_frame after it has been added to
776         Vframe_list.
777         (Fx_show_tip): Don't set tip_frame here.
779         * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object.
781         * xdisp.c (prepare_menu_bars): Changes for tip_frame being a
782         Lisp_Object.
784         * dispextern.h: Change external declaration of tip_frame.
786         * keymap.c (Fkey_description): If KEYS is an empty key sequence,
787         return an empty string.
789         * xdisp.c (try_cursor_movement): Check update_mode_lines instead
790         of the window's update_mode_line flag, since the former is set by
791         force-mode-line-update, not the latter.  This makes
792         column-number-mode slightly faster.
793         
794         * xdisp.c (try_window_id) <all changes above window start>:
795         Set the cursor.
797 2000-12-11  Paul Eggert  <eggert@twinsun.com>
799         * config.in (HAVE_FTELLO): Remove.
800         (HAVE_FSEEKO): Add.
801         (_XOPEN_SOURCE): Remove; the large-file code no longer needs it.
802         * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not
803         HAVE_FTELLO.
804         * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef.
805         * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE.
806         
807 2000-12-11  Miles Bader  <miles@gnu.org>
809         * window.c (displayed_window_lines): Don't round up when
810         converting empty space at bottom to lines.
811         Handle non-newline-terminated final lines properly.
812         (Fwindow_text_height): New function (used to be in lisp).
813         (syms_of_window): Initialize it.
815 2000-12-09  Stefan Monnier  <monnier@cs.yale.edu>
817         * syntax.c (scan_lists): Check that the right quote char has the
818         right Sstring syntax when jumping over strings.
819         (init_syntax_once): Use Smax rather than 13.
821 2000-12-09  Miles Bader  <miles@gnu.org>
823         * window.c (Fpos_visible_in_window_p): Replace FULLY parameter
824         with PARTIALLY, inverting the sense.
825         (window_scroll_pixel_based): Scroll partially visible lines into
826         place if we hit the beginning or end of the buffer.
827         (displayed_window_lines): Don't include partially visible lines.
828         (Fmove_to_window_line): Skip past any partially visible first line.
830 2000-12-08  Gerd Moellmann  <gerd@gnu.org>
832         * keymap.c (current_minor_maps): Use malloc.  Prevent a leak.
834         * tparam.c (tparam1): Change the way buffers are reallocated to be
835         portable and less obfuscated.
837         * termcap.c (tgetent): Change the way buffers are reallocated to
838         be portable and less obfuscated.
840         * macros.c (store_kbd_macro_char): Change the way buffers are
841         reallocated to be portable and less obfuscated.
843         * lread.c (read1): Change the way buffers are reallocated to be
844         portable and less obfuscated.
846         * doc.c (Fsubstitute_command_keys): Change the way buffers
847         are reallocated so that it is portable.
849 2000-12-07  Eli Zaretskii  <eliz@is.elta.co.il>
851         * dosfns.c (Ffile_system_info): New function.
852         (syms_of_dosfns): Defsubr it.
854 2000-12-07  Stefan Monnier  <monnier@cs.yale.edu>
856         * alloc.c (gc_sweep): Add comment.
858 2000-12-07  Gerd Moellmann  <gerd@gnu.org>
860         * sound.c (vox_configure): Change order of ioctls.  Don't
861         set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE.
862         Ignore errors when changing volume.
863         (vox_close): Don't reset the device.
865         * process.c (read_process_output): Make sure the process marker's
866         position is valid when the process buffer is changed in
867         after-change functions.  W3 does that.
868         
869         * xfns.c (x_free_gcs): New function.
871         * xterm.h (x_free_gcs): Add prototype.
873         * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of
874         freeing GCs here.
876         * xterm.c (x_destroy_window): Call x_free_gcs so that
877         resources of non-toolkit X windows will be freed.
879 2000-12-07  Andrew Innes  <andrewi@gnu.org>
881         * w32fns.c (xlfd_charset_of_font): Fix last change.
883 2000-12-06  Dave Love  <fx@gnu.org>
885         * md5.h (__P): Don't define -- it comes from config.h.
887         * strftime.c: Change some #if foo to #ifdef foo.
889 2000-12-06  Andrew Innes  <andrewi@gnu.org>
891         * w32term.h (CP_INVALID): Rename to CP_UNKNOWN.
893         * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname
894         argument.
895         (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN.
896         (w32_list_fonts): Don't choke if pattern doesn't specify a
897         codepage.
899 2000-12-06  Gerd Moellmann  <gerd@gnu.org>
901         * alloc.c (gc_sweep): Prevent symbols read during loadup
902         from being freed.
904         * xdisp.c (underlying_face_id): New function.
905         (handle_face_prop, face_before_or_after_it_pos): Use it
906         to determine the face ``under'' a string.  Let strings inherit
907         the face of the buffer under them.
909         * xfaces.c (face_at_string_position): Update function comment.
910         
911         * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current
912         matrix if the window's left position has changed; we need to
913         redraw it in this case.
915         * dispextern.h (struct glyph_matrix): Add member window_left_x.
917         * window.c (coordinates_in_window): Check mouse on mode-line or
918         header-line first.
920         * alloc.c (Fgarbage_collect): Dox fix.  Return a list as
921         advertized by the function documentation.
923         * window.c (syms_of_window): Doc fix.
925         * sound.c (vox_configure): Set volume for left and right channel.
926         (sound_cleanup): Return nil.
928         * xdisp.c (move_it_by_lines): Fix paren typo.
930         * xterm.c (x_load_font): Don't use the font's max_bounds for
931         computing the height of the font.  If max_bounds' ascent or
932         descent are greater than the font's ascent or descent, this means
933         glyphs overlap, which should be handled now by redisplay.
935         * window.c (Veven_window_heights): New variable.
936         (syms_of_window): DEFVAR_LISP it.
937         (Fdisplay_buffer): Check Veven_window_heights before evening the
938         window heights.
939         
940 2000-12-06  Miles Bader  <miles@gnu.org>
942         * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t',
943         update `default-frame-alist' instead of setting no frame parameters.
945 2000-12-06  Kenichi Handa  <handa@etl.go.jp>
947         * composite.c (update_compositions): Fix typo (use the correct
948         variable).
950 2000-12-05  Jason Rumney  <jasonr@gnu.org>
952         * md5.h: Remove underscores from function declarations.
953         (__attribute__, __alignof__) [!__GNUC__]: Define.
955         * md5.c: Delay include of md5.h until after namespace cleaning.
957         * makefile.w32-in (fns.o): Depend on md5.h
958         (md5.o): New target.
959         (sunfns.o): Remove.
961         * makefile.nt: Likewise.
963 2000-12-05  Jason Rumney  <jasonr@altavista.net>
965         * w32term.c (expose_area): Complete last change.
967 2000-12-05  Ken Raeburn  <raeburn@gnu.org>
969         * minibuf.c: Include intervals.h.
971 2000-12-05  Jason Rumney  <jasonr@gnu.org>
973         * w32term.c (x_produce_glyphs): If a font for a component of
974         a composition is not found, use 1 pixel dot ascent and 0 dot
975         descent value to avoid displaying terribly tall empty boxes.
976         (expose_area): Pass x-coordinate relative to the exposed
977         area to x_draw_glyphs instead of a window-relative coordinate.
979 2000-12-05  Gerd Moellmann  <gerd@gnu.org>
981         * xdisp.c (next_element_from_ellipsis): Save face before selective
982         display in saved_face_id, and set face_before_selective_p.
983         (reseat_1): Reset face_before_selective_p.
984         (append_space, extend_face_to_end_of_line): If iterator's
985         face_before_selective_p is set, use the face from saved_face_id.
986         (extend_face_to_end_of_line): For tty frames, make sure to
987         use the right face id when producing spaces at the end of
988         the line.
990         * dispextern.h (struct it): Add face_before_selective_p.
992         * keyboard.c (record_char): Don't record identical help-echo
993         events in recent_keys.
995         * xterm.c [USE_X_TOOLKIT]: Close the display.
996         (xim_close_dpy): Handle case that the display has been closed.
998         * xterm.c (x_destroy_window): Reset the frame's X window after
999         destroying it.
1001         * dispnew.c (adjust_glyph_matrix): Make sure to initialize local
1002         variable window_width.
1003         (line_draw_cost): Fix code skipping over spaces at the end of the
1004         line when must_write_spaces is not set.
1005         (scrolling_window): Fix code inserting runs in list of all runs.
1007 2000-12-05  Kenichi Handa  <handa@etl.go.jp>
1009         * coding.c (setup_coding_system): Be sure to initialize
1010         coding->category_idx.
1012 2000-12-04  Gerd Moellmann  <gerd@gnu.org>
1014         * xterm.c (PER_CHAR_METRIC): Removed because not used.
1015         
1016         * xterm.c (expose_area): Pass x-coordinate relative to the exposed
1017         area to x_draw_glyphs instead of a window-relative coordinate.
1019         * fileio.c (auto_save_error): Add parameter ERROR.  Show the
1020         error in the message.
1022         * keyboard.c (Fread_key_sequence): Don't start the busy cursor
1023         timer after having read a key.  It's not good for code reading
1024         several keys in a loop, like an input method.
1026         * fileio.c (Finsert_file_contents): When VISIT is t, don't
1027         record undo information for format-decode.
1029         * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if
1030         current buffer is read-only, not if it isn't.
1032         * keyboard.c (record_char): Record `help-echo' input events
1033         in recent_keys only if they display some help.  Don't record
1034         `help-echo' events as macro char.
1036 2000-12-04  Richard M. Stallman  <rms@caffeine.ai.mit.edu>
1038         * editfns.c (save_excursion_restore): Don't move point
1039         in another window if it is showing the wrong buffer.
1040         Avoid the call to Fwindow_live_p, for speed.
1042 2000-12-04  Kenichi Handa  <handa@etl.go.jp>
1044         * xfaces.c (struct font_name): New member registry_priority.
1045         (split_font_name): Initialize the above member to zero.
1046         (concat_font_list): New function.
1047         (font_list): Include fonts of all alternative registries.
1048         (FONT_POINT_SIZE_QUANTUM): New macro.
1049         (better_font_p): Ignore point size difference less than
1050         FONT_POINT_SIZE_QUANTUM.  Use registry_prioprity as a last resort.
1052         * xterm.c (x_produce_glyphs): If a font for a component of
1053         a composition is not found, use 1 pixel dot ascent and 0 dot
1054         descent value to avoid displaying terribly tall empty boxes.
1056         * ccl.c (stack_idx_of_map_multiple): Don't use C initializier.
1058 2000-12-03  Ken Raeburn  <raeburn@gnu.org>
1060         * coding.h (code_convert_string1): Declare.
1062         * fns.c (Fmd5): Pass lisp objects, not integers, to call3.
1064         * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name):
1065         Declare.
1067 2000-12-02  Jason Rumney  <jasonr@gnu.org>
1069         * w32term.c (w32_bdf_per_char_metric): Dereference pointer
1070         correctly for single byte character case.
1071         (w32_per_char_metric): Do not try to make any assumptions about
1072         the metrics of BDF fonts.
1073         (x_estimate_mode_line_height): If `mode-line' face
1074         hasn't a font, use that of the frame, as drawing glyphs
1075         does.
1076         (note_mouse_highlight): Change the cursor shape on the vertical
1077         border between windows [not enabled].
1079         * w32term.h (struct w32_output): Add member horizontal_drag_cursor.
1081         * w32fns.c (Fx_create_frame): Reintroduce the call to
1082         face-set-after-frame-defaults.
1083         (Vx_window_horizontal_drag_shape): New variable.
1084         (syms_of_xfns): DEFVAR_LISP it.
1085         (x_set_mouse_color): Create frame's horizontal_drag_cursor [not
1086         enabled].
1088 2000-12-02  Simon Josefsson  <simon@josefsson.org>
1090         * fns.c (Fmd5): Use a different logic to decide the coding system
1091         to use.
1093         * coding.h (Qwrite_region, Qcoding_system_error): Declare extern.
1095 2000-12-02  Eli Zaretskii  <eliz@is.elta.co.il>
1097         * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is
1098         NULL.
1100 2000-12-01  Gerd Moellmann  <gerd@gnu.org>
1102         * xterm.c (x_calc_absolute_position): Don't subtract menubar's
1103         height for YNegative.
1104         (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's
1105         height; also see comment there.
1107         * window.c (coordinates_in_window): Handle computations for
1108         positions on the vertical bar and fringes differently for
1109         window-system frames.  Consider some pixels near the vertical bar
1110         as on the bar if the frame doesn't have vertical scroll bars.
1111         Associate positions between mode or header lines with the
1112         right window, the left one.
1114 2000-12-01  Jason Rumney  <jasonr@gnu.org>
1116         * w32term.c (w32_clear_window): Avoid clearing an invalid frame.
1118         * w32xfns.c (get_frame_dc): Avoid changing the palette on an
1119         invalid frame.
1121 2000-12-01  Gerd Moellmann  <gerd@gnu.org>
1123         * window.c (struct saved_window): Add members orig_top and
1124         orig_height.
1125         (SAVED_WINDOW_VECTOR_SIZE): Increment to 16.
1126         (save_window_save, Fset_window_configuration): Save/restore
1127         window's orig_top and orig_height.
1129 2000-12-01  Jason Rumney  <jasonr@gnu.org>
1131         * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect.
1133         * w32fns.c (x_set_cursor_color): Fix last change.
1135 2000-11-30  Gerd Moellmann  <gerd@gnu.org>
1137         * xdisp.c (echo_area_display): If cursor is in the echo area, make
1138         sure that the next redisplay displays the minibuffer, so that
1139         the cursor will be replaced with what the minibuffer wants.
1141         * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and
1142         #ifndef instead of using #if.
1143         (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if
1144         USE_TOOLKIT_SCROLL_BARS is defined.
1146 2000-11-30  Jason Rumney  <jasonr@gnu.org>
1148         * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of
1149         x_display_cursor.
1151 2000-11-30  Gerd Moellmann  <gerd@gnu.org>
1153         * fns.c (Fmd5): Doc fix.
1155 2000-11-30  Simon Josefsson  <simon@josefsson.org>
1157         * fns.c (Fmd5): New function.
1158         (syms_of_fns): Defsubr md5.
1160         * Makefile.in (obj): Add md5.o
1162 2000-11-30  Gerd Moellmann  <gerd@gnu.org>
1164         * md5.h, md5.c: New files, taken from glibc.
1166         * xmenu.c (popup_get_selection): Use xmalloc instead of malloc.
1168         * xterm.c (x_estimate_mode_line_height): If `mode-line' face
1169         hasn't a font, use that of the frame, as drawing glyphs
1170         does.
1172 2000-11-29  Stefan Monnier  <monnier@cs.yale.edu>
1174         * eval.c (Frun_hooks): Allow 0 arguments.
1176 2000-11-29  Gerd Moellmann  <gerd@gnu.org>
1178         * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse
1179         is over the menu bar widget, say it's not on the frame.
1181         * xfns.c (Fx_create_frame): Reintroduce the call to
1182         face-set-after-frame-defaults.
1184         * eval.c (Fsignal): Reset handling_signal.
1186 2000-11-28  Jason Rumney  <jasonr@gnu.org>
1188         * w32menu.c (add_menu_item): Reset menu item text when changing
1189         type to radio button.
1191 2000-11-28  Gerd Moellmann  <gerd@gnu.org>
1193         * xselect.c: Update copyright.
1195         * window.c (coordinates_in_window): If on a mode or header line,
1196         but sufficiently close to its start, return ``on vertical
1197         border''.  This gives us a way to drag windows horizontally when
1198         using toolkit scroll bars.
1200         * xterm.c (note_mouse_highlight): Change the cursor shape
1201         on the vertical border between windows.
1203         * xterm.h (struct x_output): Add member horizontal_drag_cursor.
1205         * xfns.c (Vx_window_horizontal_drag_shape): New variable.
1206         (syms_of_xfns): DEFVAR_LISP it.
1207         (x_set_mouse_color): Create frame's horizontal_drag_cursor.
1209         * textprop.c (text_read_only): New function.
1210         (verify_interval_modification): Use it instead of signaling
1211         `text-read-only'.  This makes it easier to catch this error
1212         with a breakpoint.: 
1214         * xdisp.c (forward_to_next_line_start): Check for newlines, 
1215         not end of line, which includes CR.
1217 2000-11-28  Kenichi Handa  <handa@etl.go.jp>
1219         * coding.c (Ffind_coding_systems_region_internal): Be sure to
1220         include no-conversion.
1222 2000-11-27  Jason Rumney  <jasonr@gnu.org>
1224         * w32fns.c (w32_load_system_font): Always mark font as double byte
1225         if codepage is unicode.
1227 2000-11-27  Gerd Moellmann  <gerd@gnu.org>
1229         * xdisp.c (forward_to_next_line_start): If already on a newline,
1230         just consume it to avoid unintended skipping over invisible text
1231         below.
1233         * keyboard.c (lucid_event_type_list_p): Handle `help-echo',
1234         `vertical-line', `mode-line' and `header-line' events.
1236         * xdisp.c (try_window_id): Avoid starting to display in the middle
1237          of a character, a TAB for instance.  This is easier than to set
1238          up the iterator exactly, and it's not a frequent case, so the
1239          additional effort wouldn't really pay off.
1241 2000-11-26  Andrew Choi  <akochoi@i-cable.com>
1243         * emacs.c (main) [macintosh]: Call syms_of_frame before calling
1244         init_window_once.
1246 2000-11-25  Jason Rumney  <jasonr@gnu.org>
1248         * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]: Args
1249         to window_from_coordinates should be pixel coordinates.
1251         * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new
1252         redisplay handles them properly.
1254 2000-11-25  Miles Bader  <miles@gnu.org>
1256         * indent.c (compute_motion): Keep pos_byte in sync with pos.
1258 2000-11-24  Jason Rumney  <jasonr@gnu.org>
1260         * w32.c (init_environment): Set LANG environment variable based on
1261         locale settings, if not set.
1263         * w32fns.c (x_set_tool_bar_lines): Clear internal border when
1264         making tool bar smaller. When clearing the frame, also
1265         clear current matrices. Clear frame when tool bar disappears.
1266         Don't use more lines for the tool-bar than is available.
1267         (x_change_window_heights): New function.
1269 2000-11-24  Gerd Moellmann  <gerd@gnu.org>
1271         * xdisp.c (init_from_display_pos): If POS says we're already after
1272          an overlay string ending at POS, make sure to pop the iterator
1273          because it will be in front of that overlay string.  When POS is
1274          ZV, we've thereby also ``processed'' overlay strings at ZV.
1276         * xfaces.c (lface_from_face_name): Function comment fix.
1278 2000-11-24  Miles Bader  <miles@gnu.org>
1280         * xdisp.c (display_menu_bar, display_mode_line): Change the way we
1281         apply `mode-line-inverse-video' -- zero means force display using
1282         the default face, non-zero means display using the specialized face.
1283         (syms_of_xdisp): `mode-line-inverse-video' defaults to true again.
1285 2000-11-23  Kenichi Handa  <handa@etl.go.jp>
1287         * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of
1288         hard coded `4'.
1290 2000-11-23  Eli Zaretskii  <eliz@is.elta.co.il>
1292         * coding.c (decode_coding_emacs_mule): Fix the case of
1293         CODING_EOL_LF, which used uninitialized value of c.
1295 2000-11-23  Stefan Monnier  <monnier@cs.yale.edu>
1297         * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local.
1299 2000-11-22  Gerd Moellmann  <gerd@gnu.org>
1301         * buffer.c (Fmake_indirect_buffer): Don't treat nil as a
1302         buffer object.
1304         * frame.h (struct frame): Replace desired_tool_bar_items,
1305         current_tool_bar_items, n_desired_tool_bar_items,
1306         n_current_tool_bar_items with tool_bar_items and n_tool_bar_items.
1308         * frame.c (make_frame): Change initialization of tool bar
1309         items accordingly.
1311         * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight):
1312         Change references to members deleted from struct frame to use the
1313         new ones.
1315         * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change
1316         references to members deleted from struct frame to use the new
1317         ones.
1319         * dispnew.c (update_frame): Do nothing with frame's tool bar
1320         items.
1322         * alloc.c (mark_object) <frame>: Mark tool bar items differently.
1324         * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click)
1325         (note_tool_bar_highlight): Change references to members deleted
1326         from struct frame to use the new ones.
1328 2000-11-23  Miles Bader  <miles@gnu.org>
1330         * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with
1331         the face's inverse-video attribute, rather than overriding it.
1333 2000-11-22  Gerd Moellmann  <gerd@gnu.org>
1335         * xfns.c (x_set_tool_bar_lines): Clear internal border when
1336         making tool bar smaller.
1338 2000-11-22  Dave Love  <fx@gnu.org>
1340         * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define.
1342 2000-11-22  Miles Bader  <miles@gnu.org>
1344         * keyboard.c (Vminibuffer_message_timeout): New variable.
1345         (command_loop_1): Use it to determine message timeout.
1346         (syms_of_keyboard): Initialize it.
1348         * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil.
1350 2000-11-22  Kenichi Handa  <handa@etl.go.jp>
1352         * sysdep.c: Move the code for declaring h_errno after #include
1353         <netdb.h>.
1355 2000-11-21  Gerd Moellmann  <gerd@gnu.org>
1357         * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay
1358         the menu bar when the tooltip is unmapped.
1360         * buffer.c (Fkill_buffer): Notice if the buffer to kill is the
1361         sole visible buffer when we're currently in the mini-buffer, and
1362         give up if so.
1363         
1364 2000-11-21  Jason Rumney  <jasonr@gnu.org>
1366         * w32select.c (Fw32_set_clipboard_data): Save a copy of what is
1367         put on the clipboard.
1368         (Fw32_get_clipboard_data): Compare data on clipboard with saved
1369         copy of what Emacs last put there. If they are the same, do not
1370         use the clipboard copy to avoid losing data due to coding
1371         conversions. 
1373 2000-11-22  Miles Bader  <miles@gnu.org>
1375         * minibuf.c (Vminibuffer_prompt_properties): New variable.
1376         (syms_of_minibuf): Initialize it.
1377         (read_minibuf): Add properties from Vminibuffer_prompt_properties
1378         to prompt, don't make read-only.
1380 2000-11-21  Gerd Moellmann  <gerd@gnu.org>
1382         * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>: Add
1383         BEFORE/AFTER_POTENTIAL_GC.
1385         * s/hpux10.h (_FILE_OFFSET_BITS): Undef.
1387         * buffer.c (mmap_free_1): Avoid a compiler warning.
1389         * term.c, cm.c: Don't try to include termcap.h; see comment there.
1391 2000-11-21  Kenichi Handa  <handa@etl.go.jp>
1393         * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0
1394         ... #endif scope.
1396 2000-11-20  Gerd Moellmann  <gerd@gnu.org>
1398         * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the 
1399         screen supports it.
1401         * s/gnu-linux.h: Don't use `#cpu'.
1403         * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's
1404         not defined in mman.h.
1406         * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New
1407         variables.
1408         (x_send_scroll_bar_event): Store the window in scroll_bar_windows
1409         and store an index in the XClientMessageEvent.  Storing a
1410         Lisp_Object or pointer can fail on a 64 bit system, since X only
1411         transfers 32 bits.
1412         (x_scroll_bar_to_input_event): Get the window from
1413         scroll_bar_windows.
1414         
1415 2000-11-20  Dave Love  <fx@gnu.org>
1417         * Makefile.in (LIBX): Reorder for -lX11 after -lXpm.
1419 2000-11-20  Gerd Moellmann  <gerd@gnu.org>
1421         * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine.
1423 2000-11-20  Kenichi Handa  <handa@etl.go.jp>
1425         * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID
1426         by WIDTH.
1428         * alloc.c (make_string): Fix previous change.  Be sure to make
1429         unibyte string correctly.
1431 2000-11-19  Gerd Moellmann  <gerd@gnu.org>
1433         * window.c (Fwindow_list): Change parameter list to be XEmacs
1434         compatible.
1435         (window_list_1): New function.
1436         (window_loop): Use it instead of Fwindow_list.
1438         * sysdep.c (emacs_ospeed): New variable.
1439         (toplevel): Don't declare ospeed extern.
1440         (init_baud_rate): Use emacs_ospeed instead of ospeed.
1442         * termcap.c (ospeed): Remove.
1443         (tputs) [!emacs]: Remove unused code.
1444         (tgetent): Avoid a compiler warning.
1446         * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create)
1447         (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call
1448         SCROLL_BAR_X_WIDGET with additional argument DPY.
1450         * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high
1451         removed.
1452         (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget.
1453         Take the X display as additional argument.
1454         (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since
1455         `Widget' is a pointer type that's not easily stored in Lisp_Object
1456         form in a portable way.
1457         
1458         * dispnew.c (update_text_area): Fix last change.
1460 2000-11-18  Gerd Moellmann  <gerd@gnu.org>
1462         * xdisp.c: Use BINDING_STACK_SIZE throughout.
1464         * xfns.c (x_set_tool_bar_lines): When clearing the frame, also
1465         clear current matrices.
1467         * buffer.c (mmap_enlarge): Don't print a message on stderr
1468         if mapping new memory at the end of the existing region fails.
1470         * dispnew.c (update_text_area): Don't skip over equal glyphs
1471         when the last current glyph overlaps the glyph to its right.
1473 2000-11-18  Miles Bader  <miles@gnu.org>
1475         * xdisp.c (message_log_check_duplicate): Let "..."-detection match
1476         lines that *end* with "..." too (that's the most common case!).
1478 2000-11-18  Gerd Moellmann  <gerd@gnu.org>
1480         * xdisp.c (resize_mini_window): Temporarily change to the
1481         mini-window's buffer if necessary.
1483         * xfns.c (Fx_show_tip): Use default y-offset of -10 so that
1484         the tooltip obscures less text under it.
1486 2000-11-17  Gerd Moellmann  <gerd@gnu.org>
1488         * puresize.h (BASE_PURESIZE): Increase to 700000.
1490 2000-11-18  Jason Rumney  <jasonr@gnu.org>
1492         * w32term.c (w32_draw_bitmap): Use face to set colors.
1494 2000-11-17  Dave Love  <fx@gnu.org>
1496         * lread.c (Fload): Fix #ifdef for pcc.
1498 2000-11-17  Gerd Moellmann  <gerd@gnu.org>
1500         * xdisp.c (pos_visible_p): Compute the default character height
1501         differently.
1503 2000-11-16  Gerd Moellmann  <gerd@gnu.org>
1505         * xdisp.c (pos_visible_p): Handle case that we reach ZV without
1506         knowing the line's height; use the default font's height in that
1507         case.
1509         * xfaces.c (weight_table): Add `demi' with the same meaning as
1510         `demibold'.
1512 2000-11-16  Kenichi Handa  <handa@etl.go.jp>
1514         * dispnew.c (null_row): New global static variable.
1515         (clear_glyph_row): Delete local static variable null_row.
1517 2000-11-15  Jason Rumney  <jasonr@gnu.org>
1519         * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant.
1520         (w32_alloc_lighter_color): Use new brightness calculations from
1521         xterm.c. Scale delta to be in the range expected by W32.
1522         (w32_draw_relief_rect): Use frame relief colors.
1524 2000-11-15  Gerd Moellmann  <gerd@gnu.org>
1526         * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame.
1527         (Qinhibit_default_face_x_resources): New variable.
1528         (syms_of_frame): Initialize it.
1529         (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources.
1531         * xdisp.c (pos_visible_p): Improve function comment.
1533         * lisp.h (BINDING_STACK_SIZE): New macro.
1535         * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry
1536         reading the directory if readdir returns null and errno is EAGAIN
1537         or EINTR.
1539 2000-11-14  Stefan Monnier  <monnier@cs.yale.edu>
1541         * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args
1542         so setting scroll-step to 1 doesn't defeat scroll-conservatively.
1543         Set amount_to_scroll to max of dx and scroll_step so that
1544         scroll-conservatively doesn't defeat scroll-step>1.
1545         (syms_of_xdisp): Add a hint in scroll-step's docstring to use
1546         scroll-conservatively for line-at-a-time scrolling.
1548 2000-11-14  Gerd Moellmann  <gerd@gnu.org>
1550         * window.c (Fpos_visible_in_window_p): Call pos_visible with
1551         extra argument.
1553         * xdisp.c (current_mode_line_height, current_header_line_height):
1554         New variables.
1555         (init_xdisp): Initialize them.
1556         (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P.  Compute
1557         and use exact mode line heights if it is set.
1559         * lisp.h (pos_visible_p): Change prototype.
1561         * dispextern.h (CURRENT_MODE_LINE_HEIGHT)
1562         (CURRENT_HEADER_LINE_HEIGHT):  Look at current_mode_line_height
1563         and current_header_line_height first.
1564         (current_mode_line_height, current_header_line_height): Declare
1565         extern.
1567 2000-11-14  Miles Bader  <miles@lsi.nec.co.jp>
1569         * xterm.c (x_alloc_lighter_color): Use real brightness calculation.
1570         Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST.
1571         (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed.
1573 2000-11-14  Miles Bader  <miles@gnu.org>
1575         * xterm.c (x_alloc_lighter_color): Include an additive component
1576         too for dark colors, because FACTOR isn't enough.
1577         (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT):
1578         New macros.
1580 2000-11-13  Gerd Moellmann  <gerd@gnu.org>
1582         * keyboard.c (show_help_echo): Call message3_nolog with number of
1583         bytes in the help string as 2nd parameter, instead of the number
1584         of characters.
1586 2000-11-13  Miles Bader  <miles@gnu.org>
1588         * lread.c (openp): Return -2 instead of 0 for the `remote file' case.
1589         (Fload): Use new openp return protocol.
1590         Don't try to use Vload_source_file_function to load .elc files.
1591         * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new
1592         openp return protocol.
1593         * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise.
1595 2000-11-11  Kenichi Handa  <handa@etl.go.jp>
1597         * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY.
1599         * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL):
1600         Defined these macros.
1601         (NLIST_STRUCT): Avoid re-defining it.
1603         * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and
1604         -I/usr/contrib/X11R6/include.
1605         (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6.
1607 2000-11-10  Jason Rumney  <jasonr@gnu.org>
1609         * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages.
1611         * w32term.c (w32_encode_char): Handle CP_UNICODE specially.
1612         (w32_use_unicode_for_codepage): Use new pseudo-codepages.
1614         * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers.
1615         (Qw32_charset_vietnamese): New symbol.
1616         (xlfd_charset_of_font): New function.
1617         (w32_load_system_font): Use it.
1618         (x_to_w32_charset): Use Fassoc to find charset info. Special case
1619         when Vw32_charset_info_alist is nil to ensure default face always
1620         has font. Use Fcar and Fcdr for safety.
1621         (w32_to_x_charset): Use Vw32_charset_info_alist for mappings.
1622         (w32_codepage_for_font): Use xlfd_charset_of_font.  Use new
1623         pseudo-codepages for special cases.
1624         (w32_to_x_font): New parameter to allow charset portion to be
1625         specified where there is many to one mapping.  Callers changed.
1626         (w32_list_fonts): Avoid listing fonts that won't display.
1628 2000-11-10  Gerd Moellmann  <gerd@gnu.org>
1630         * xfaces.c (Vface_alternative_font_registry_alist): New variable.
1631         (font_list_1): Renamed from font_list.
1632         (font_list): New function, trying alternative registries from
1633         Vface_alternative_font_registry_alist.
1634         (Finternal_set_alternative_font_registry_alist): New function.
1635         (syms_of_xfaces): Initialize and Staticpro
1636         Vface_alternative_font_registry_alist.  Defsubr
1637         Finternal_set_alternative_font_registry_alist.
1639 2000-11-09  Ken Raeburn  <raeburn@gnu.org>
1641         * lisp.h (Flooking_at): Declare.
1643 2000-11-09  Gerd Moellmann  <gerd@gnu.org>
1645         * dired.c (directory_files_internal): Fix a braino.
1646         
1647         * dired.c (directory_files_internal): Add missing GCPRO's.
1648         Some cleanup.
1650 2000-11-08  Gerd Moellmann  <gerd@gnu.org>
1652         * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height.
1653         (resize_mini_window): Return quickly if Vresize_mini_window is
1654         nil.  Don't return if Vmax_mini_window_height is nil.
1656         * xdisp.c (Vresize_mini_window, Qgrow_only): New variables.
1657         (syms_of_xdisp): Initialize them.
1658         (resize_mini_window): Act according to the setting of
1659         Vresize_mini_window.
1660         (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil.
1662         * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the
1663         scroll bar widget after configuring it, so that it will appear at
1664         the right position from the start.
1665         (XTredeem_scroll_bar): Cleaned up.
1667 2000-11-08  Kenichi Handa  <handa@etl.go.jp>
1669         * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change.  If the
1670         font is taller than the frame line, we don't have to bias the
1671         division by two.
1673         * w32term.c (VCENTER_BASELINE_OFFSET): Likewise.
1675 2000-11-07  Dave Love  <fx@gnu.org>
1677         * config.in (HAVE_MKSTEMP): Add.
1679         * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it.
1681 2000-11-07  Gerd Moellmann  <gerd@gnu.org>
1683         * window.c (Fset_window_configuration): Don't try to preserve
1684         point in the current buffer, if that buffer is displayed in more
1685         than one window.
1687         * xfaces.c (lookup_named_face): If default face isn't realized,
1688         try to realize it.  Return -1 if not successful.
1689         (Fx_list_fonts): Handle case that face cannot be determined.
1690         (Fface_font): Likewise.
1692 2000-11-06  Gerd Moellmann  <gerd@gnu.org>
1694         * window.c (displayed_window_lines): Detect partially
1695         visible lines at the bottom correctly.
1697 2000-11-06  Stefan Monnier  <monnier@cs.yale.edu>
1699         * fileio.c (Fwrite_region): Use `visiting' rather than `visit'
1700         when ensuring we don't do visit in indirect buffer.
1702 2000-11-06  Kenichi Handa  <handa@etl.go.jp>
1704         * composite.h (compose_chars_in_text): Add prototype.
1706         * composite.c (Vcomposition_function_table): New variable.
1707         (Qcomposition_function_table): New variable.
1708         (run_composition_function): Call
1709         Vcompose_chars_after_function with three arguments.
1710         (compose_chars_in_text): New function.
1711         (syms_of_composite): Modified the doc-string of
1712         Vcompose_chars_after_function.  Declare composition-function-table
1713         as a lisp variable, and initialize it.
1715         * xfns.c (x_encode_text): Suppress producing escape sequences for
1716         composition.
1718         * xselect.c: Include composite.h.
1719         (selection_data_to_lisp_data): Call compose_chars_in_text on STR.
1721 2000-11-05  Andrew Innes  <andrewi@gnu.org>
1723         * w32term.c (x_produce_glyphs): Fix typo in enum name.
1725         * sysdep.c (read_input_waiting): Remove extraneous argument to
1726         read_socket_hook.
1728         * w32fns.c (Fx_server_version): Include w32_build_number in the
1729         return list.
1731         * w32heap.c (w32_build_number): New variable.
1732         (cache_system_info): Set it.
1734         * w32heap.h (w32_build_number): Add extern.
1736         * emacs.c (syms_of_emacs): Update docstring for
1737         system-configuration, to reflect the actual usage on MS-Windows.
1739 2000-10-31  Gerd Moellmann  <gerd@gnu.org>
1741         * keyboard.c (read_char) <wrong_kboard>: Make sure that we
1742         process idle timers while waiting for another event.
1744         * dispnew.c (update_frame_line): Handle case where spaces in 
1745         the default face are colored.
1747         * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if
1748         window height hasn't changed.
1750 2000-10-31  Jason Rumney  <jasonr@gnu.org>
1752         * w32term.c (x_produce_glyphs): Handle composite characters.
1753         (x_draw_glyph_string_foreground)
1754         (x_draw_composite_glyph_string_foreground): Restore old font.
1756 2000-10-31  Miles Bader  <miles@lsi.nec.co.jp>
1758         * minibuf.c (read_minibuf): Reset the undo history just before
1759         starting the recursive-edit.
1761 2000-10-30  Gerd Moellmann  <gerd@gnu.org>
1763         * xfaces.c (menu_face_change_count): New variable.
1764         (Finternal_set_lisp_face_attribute): Increment it for changes
1765         of the `menu' face.
1766         (realize_basic_faces): Reflect changes in the `menu' faces
1767         in menu bars.
1769         * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the
1770         dy obtained from the iterator's y-position after moving from
1771         scroll_margin_pos to PT; see comment there.
1772         
1773         * xdisp.c (safe_eval_handler): Call add_to_log.
1775         * xfaces.c (resolve_face_name): Handle case that FACE_NAME
1776         is not a symbol or string.
1778         * xdisp.c (echo_area_display): Don't perform a display update from
1779         inside redisplay.  The update will happen anyway at the end of
1780         redisplay, and it can confuse redisplay (GC messages while
1781         redisplaying, for instance.)
1783 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
1785         * xrdb.c (x_load_resources): Use the class name in the defaults.
1787         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
1788         (regex_compile): Catch bogus \(\1\).
1790 2000-10-30  Gerd Moellmann  <gerd@gnu.org>
1792         * xterm.c (x_alloc_nearest_color): Fix last change to compare
1793         RGB values.
1794         
1795         * xterm.c (x_alloc_nearest_color): If allocation succeeds, and
1796         we have a color cache, check that the cached color equals the
1797         allocated color.  If not, clear the color cache.
1799         * window.c (displayed_window_lines): Change buffers if necessary.
1800         Fix computation of displayed lines.
1802         * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of
1803         update_menu_bindings to DEFVAR_BOOL.
1805 2000-10-30  Kenichi Handa  <handa@etl.go.jp>
1807         * search.c (Fset_match_data): Be sure to make search_regs always sane.
1809         * puresize.h (BASE_PURESIZE): Increase to 680000.
1811         * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION.
1813 2000-10-29  Jason Rumney  <jasonr@gnu.org>
1815         * w32term.h (FONT_DESCENT): Negate descent of BDF fonts.
1817         * w32term.c (w32_bdf_per_char_metric): Negate descent.
1818         (w32_cache_char_metrics): Handle possibility that 'x' does not
1819         exist in a BDF font.
1820         (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars.
1822         * w32bdf.h (bdffont): Add nchars.
1824         * w32bdf.c (set_bdf_font_info): Set it.
1825         (w32_BDF_TextOut): Swap byte order of double byte characters.
1826         (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars.
1828 2000-10-28  Eli Zaretskii  <eliz@is.elta.co.il>
1830         * frame.c (Fframe_parameters): Fix the change from 2000-10-16:
1831         don't override the colors in frame's param_alist, unless they are
1832         unspecified.
1834         * term.c (reassert_line_highlight): If inverse_video is non-zero,
1835         reverse the effect of the highlight flag.
1837 2000-10-27  Ken Raeburn  <raeburn@gnu.org>
1839         * window.h (Fwindow_live_p): Declare.
1841         * undo.c (record_delete): Check that last_undo_buffer is really a
1842         buffer before applying XBUFFER to it.
1844         * keymap.c (where_is_internal): Pass lisp object, not integer, to
1845         Faref.
1847 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
1849         * lisp.h (KEYMAPP): New macro.
1850         (get_keymap): Remove.
1851         (get_keymap_1): Rename get_keymap.
1853         * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype.
1855         * xterm.c (note_mode_line_highlight): Use KEYMAPP.
1857         * xmenu.c (single_submenu): Use KEYMAPP.
1858         (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
1859         Use KEYMAPP rather than Fkeymapp.
1861         * w32term.c (note_mode_line_highlight): Use KEYMAPP.
1863         * w32menu.c (True, False): Remove (use TRUE and FALSE instead).
1864         (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp.
1865         Use KEYMAPP rather than Fkeymapp.
1866         (single_submenu): Use KEYMAPP.
1867         (w32_menu_show, w32_dialog_show): Use TRUE.
1869         * minibuf.c (Fread_from_minibuffer): Update call to get_keymap.
1871         * keymap.c (KEYMAPP): Remove (moved to lisp.h).
1872         (Fkeymapp): Use KEYMAPP.
1873         (get_keymap): Rename from get_keymap_1.  Remove old def.
1874         Return t when autoload=0 and error=0 and the keymap needs autoloading.
1875         (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp.
1876         (Fminor_mode_key_binding): Don't raise an error if the binding
1877         is not a keymap.
1878         (Fuse_global_map, Fuse_local_map): Allow autoloading.
1879         (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp.
1881         * keyboard.c (read_char): get_keymap_1 -> get_keymap.
1882         Allow Vspecial_event_map to be autoloaded.
1883         (menu_bar_items): Fetch the keymap rather than using keymapp.
1884         (menu_bar_one_keymap): No need to follow func-indirect any more.
1885         (parse_menu_item): get_keymap_1 -> get_keymap.
1886         (tool_bar_items): Fetch the keymap rather than using keymapp.
1887         (read_key_sequence): Use KEYMAPP.
1889         * intervals.c (get_local_map): Use get_keymap rather than following
1890         function-indirections explicitly.
1892         * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap.
1894 2000-10-27  Jason Rumney  <jasonr@gnu.org>
1896         * w32fns.c (Fx_create_frame): Make default fontsize on w32 10
1897         point, as Windows has oversized fonts.
1899         * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise.
1901 2000-10-27  Gerd Moellmann  <gerd@gnu.org>
1903         * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1.
1904         (freehook, reallochook): Handle null pointer arguments.
1905         (__malloc_initialize) [GC_MCHECK]: Call mcheck.
1907 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
1909         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
1910         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
1911         Giving in to popular pressure to shut up the compiler with casts.
1913 2000-10-27  Gerd Moellmann  <gerd@gnu.org>
1915         * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a
1916         signed value, and use a default value computed from the font's
1917         maximum descent.
1919 2000-10-27  Miles Bader  <miles@lsi.nec.co.jp>
1921         * xterm.c (x_draw_glyph_string): Add a workaround so that fonts
1922         that specify a negative underline position can still use underlines.
1924         * window.c (Fpos_visible_in_window_p): Make POS default to
1925         WINDOW's point, not the current buffer's point.
1927 2000-10-26  Dave Love  <fx@gnu.org>
1929         * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out
1930         when it's necessary.
1932 2000-10-26  Gerd Moellmann  <gerd@gnu.org>
1934         * window.c (size_window): Compute size difference from sum of old
1935         child window sizes instead of from parent's size.
1937         * xdisp.c (pos_visible_p): Change current buffer if necessary.
1938         Handle obscured lines at the top of the window.
1940         * frame.c (Fdelete_frame): Doc fix.  Move running the hook
1941         down after the last error condition check.
1943         * frame.c (Fdelete_frame): Run delete-frame-hook.
1945 2000-10-26  Kenichi Handa  <handa@etl.go.jp>
1947         * coding.c (decode_coding): Fix previous change (check also
1948         CODING_MODE_LAST_BLOCK).
1950 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
1952         * regex.c: More `unsigned char' -> `re_char' changes.
1953         Also change several `int' into `re_wchar_t'.
1954         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
1955         (PUSH_FAILURE_POINTER): Don't cast any more.
1956         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
1957         We want GCC to complain, since this piece of code makes
1958         re_match non-reentrant, which *should* be fixed.
1959         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
1960         (EXTEND_BUFFER): Use RETALLOC.
1961         (SET_LIST_BIT): Don't cast.
1962         (re_wchar_t): New type.
1963         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
1964         that those two functions will always properly return.
1965         (IMMEDIATE_QUIT_CHECK): Cast to void.
1966         (analyse_first): Use recursion rather than an explicit stack.
1967         (re_compile_fastmap): Can't fail anymore.
1968         (re_search_2): Don't check re_compile_fastmap for failure.
1969         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
1970         Now also sets the new value (passed in a new argument).
1971         (re_match_2_internal): Use it.
1972         Also, use a new var `reg' of type size_t when looping through regs
1973         rather than reuse the inappropriate `mcnt'.
1975         * keymap.c (where_is_cache, where_is_cache_keymaps): New vars.
1976         (Fset_keymap_parent, store_in_keymap): Flush the where-is cache.
1977         (where_is_internal): Renamed from Fwhere_is_internal.
1978         Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'.
1979         (Fwhere_is_internal): New function wrapping where_is_internal.
1980         (where_is_internal_1): Handle the case where we're filling the cache.
1981         (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps).
1983 2000-10-25  Miles Bader  <miles@gnu.org>
1985         * xdisp.c (pos_visible_p): Don't add `it.current_y' twice.
1987 2000-10-25  Gerd Moellmann  <gerd@gnu.org>
1989         * window.c (pos_fully_visible_p): Removed.
1990         (Fpos_visible_in_window_p): Use pos_visible_p to determine
1991         if position is visible and/or fully visible.
1993         * lisp.h (pos_visible_p): Add prototype.
1995         * xdisp.c (pos_visible_p): New function.
1997 2000-10-25  Kenichi Handa  <handa@etl.go.jp>
1999         * process.c (send_process): If OBJECT is t, it means that the data
2000         is from C string, but we should encode it.  Before calling
2001         setup_raw_text_coding_system, be sure to flush out data by the
2002         previous coding system.
2004 2000-10-25  Miles Bader  <miles@lsi.nec.co.jp>
2006         * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an
2007         assignment of startpos to prev when startpos == pos.
2009         * editfns.c (find_field): Set the field stickiness correctly from
2010         overlay fields.  Use renamed `text_property_stickiness'.
2011         (text_property_stickiness): Renamed from `char_property_stickiness'.
2012         Only check text properties, not overlays.
2013         * textprop.c (get_char_property_and_overlay): New function.
2014         (Fget_char_property): Use it.
2015         * intervals.h (get_char_property_and_overlay): Add declaration.
2017 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
2019         * keymap.c: Use AREF, ASET and ASIZE macros.
2020         (Fmake_sparse_keymap): Docstring fix.
2021         (synkey): Remove.
2022         (shadow_lookup): Move up.
2023         Handle the case where lookup-key returns an integer.
2024         (where_is_internal_1): Drop arg `keymap'. Don't check shadowing.
2025         (where_is_internal_2): Adapt to fewer args for where_is_internal_1.
2026         (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps.
2027         Simplify/rewrite the keymap-finding code.
2028         Add check for command shadowing, using shadow_lookup.
2030 2000-10-24  Stefan Monnier  <monnier@cs.yale.edu>
2032         * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry
2033         rather than KEYMAPP, to allow EQ to work correctly if parent_entry is
2034         a symbol.
2036 2000-10-24  Andrew Innes  <andrewi@gnu.org>
2038         * dired.c (directory_files_internal_unwind): New function.
2039         (directory_files_internal): Use it to ensure closedir is called
2040         even if expand-file-name or file-attributes throw, eg. because of
2041         a user interrupt.  Also enable immediate_quit while calling
2042         re_search, so that matching can be interrupted as well.
2044 2000-10-24  Andrew Innes  <andrewi@gnu.org>
2046         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
2047         NT-Emacs only.
2048         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
2049         so that re_search functions only quit when callers expect them to.
2051 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
2053         * regex.c (regex_compile): Change the way of handling a range from
2054         a char less than 256 to a char not less than 256.
2056 2000-10-24  Gerd Moellmann  <gerd@gnu.org>
2058         * window.c (size_window): Prevent setting window's width or
2059         height to a negative value (esp. with XSETFASTINT).
2061         * gmalloc.c (state_protected_p, last_state_size, last_heapinfo)
2062         [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables.
2063         (protect_malloc_state) [GC_MALLOC_CHECK &&
2064         GC_PROTECT_MALLOC_STATE]: New function.
2065         (PROTECT_MALLOC_STATE): New macro.
2066         (__malloc_initialize, morecore, _malloc_internal)
2067         (_free_internal) _realloc_internal): Use it to make _heapinfo
2068         read-only outside of gmalloc.
2070         * keymap.c: Update copyright.
2072         * .gdbinit (xbacktrace): Handle case that $bt->function isn't
2073         a symbol.
2075 2000-10-24  Colin Walters  <walters@cis.ohio-state.edu>
2077         * filelock.c (unlock_all_files): Use unlock_file to expand each
2078         buffer's file_truename before trying remove its lock file.
2080 2000-10-24  Eli Zaretskii  <eliz@is.elta.co.il>
2082         * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR
2083         or CRLF, decode EOLs.
2085 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
2087         * window.c (Fdisplay_buffer): Fix doc.
2089 2000-10-23  Jason Rumney  <jasonr@gnu.org>
2091         * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for
2092         ASCII font of default fontset on Windows.
2094         * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see
2095         xterm.c comment below).
2097         * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy.
2099 2000-10-23  Gerd Moellmann  <gerd@gnu.org>
2101         * xterm.c (x_connection_closed): Reset handling_signal.
2103         * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing
2104         null.
2106 2000-10-23  Miles Bader  <miles@gnu.org>
2108         * window.c (window_scroll_pixel_based, window_scroll_line_based):
2109         Pass nil for FULLY argument to Fpos_visible_in_window_p to
2110         maintain old behavior.
2111         * minibuf.c (Fminibuffer_complete): Likewise.
2113 2000-10-23  Miles Bader  <miles@lsi.nec.co.jp>
2115         * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so
2116         that when a font can't be exactly centered, it errs up rather than
2117         down.
2119 2000-10-23  ShengHuo ZHU  <zsh@cs.rochester.edu>
2121         * fns.c (Fbase64_decode_string): The decoded result should be
2122         unibyte.
2124 2000-10-23  Andrew Choi  <akochoi@i-cable.com>
2126         * dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
2128         * dispnew.c [macintosh]: Include macterm.h.
2129         (init_display) [macintosh]: Initialization for window system.
2131         * emacs.c (main) [macintosh]: Call syms_of_textprop,
2132         syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
2133         syms_of_search, x_term_init, and init_keyboard before calling
2134         init_window_once.  Also, call syms_of_xmenu.
2136         * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
2137         default fontset to Monaco.
2139         * frame.c [macintosh]: Include macterm.h.  Remove declarations of
2140         NewMacWindow and DisposeMacWindow.
2141         (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
2142         instead of calling NewMacWindow and setting fields of
2143         f->output_data.mac directly.  Call init_frame_faces.
2144         (Fdelete_frame) [macintosh]: Remove unused code.
2145         (Fmodify_frame_parameters) [macintosh]: Call
2146         x_set_frame_parameters instead of mac_set_frame_parameters.
2148         * frame.h [macintosh]: Define menu_bar_lines field in struct
2149         frame.  Define FRAME_EXTERNAL_MENU_BAR macro.
2151         * keyboard.c [macintosh]: Include macterm.h.
2152         (kbd_buffer_get_event) [macintosh]: Generate delete_window_event
2153         and menu_bar_activate_event type events as for X and NT.
2154         (make_lispy_event) [macintosh]: Construct lisp events of type
2155         MENU_BAR_EVENT as for X and NT.
2157         * sysdep.c [macintosh]: Remove declaration for sys_signal.
2158         Include stdlib.h.  Remove definition of Vx_bitmap_file_path.
2159         (sys_subshell) [macintosh]: Remove definition entirely.
2160         (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
2161         Vwindow_system_version here.  Remove initialization of
2162         Vx_bitmap_file_path.
2163         (read_input_waiting): Correct the number of parameters passed to
2164         read_socket_hook.
2165         Move all Macintosh functions to mac/mac.c.
2167         * term.c [macintosh]: Include macterm.h.
2169         * window.c [macintosh]: Include macterm.h.
2171         * xdisp.c [macintosh]: Include macterm.h.  Declare
2172         set_frame_menubar and pending_menu_activation.
2173         (echo_area_display) [macintosh]: Do not return if terminal frame
2174         is the selected frame.
2175         (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
2176         Allow only the selected frame to set menu bar.
2177         (redisplay_window) [macintosh]: Obtain menu bar to redisplay by
2178         calling FRAME_EXTERNAL_MENU_BAR (f).
2179         (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
2181         * xfaces.c [macintosh]: Include macterm.h.  Define x_display_info
2182         and check_x.  Declare XCreateGC.  Define x_create_gc and
2183         x_free_gc.  Initialize font_sort_order.
2184         (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
2185         but call x_list_fonts instead of w32_list_fonts.
2186         (Finternal_face_x_get_resource) [macintosh]: Do not call
2187         display_x_get_resource.
2188         (prepare_face_for_display) [macintosh]: Set xgcv.font.
2189         (realize_x_face) [macintosh]: Load the font if it is specified in
2190         ATTRS.
2191         (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed
2192         to Qt.
2194 2000-10-22  Stefan Monnier  <monnier@cs.yale.edu>
2196         * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry
2197         is nil: since we go to the end of submap anyway, we'd end up
2198         setting nil to nil.
2199         (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP
2200         doesn't obey autoload.
2202 2000-10-21  Eli Zaretskii  <eliz@is.elta.co.il>
2204         * msdos.c (dos_set_window_size): Update screen dimension variables.
2206 2000-10-21  Jason Rumney  <jasonr@gnu.org>
2208         * w32term.c (w32_cache_char_metrics): Double check that font is
2209         really fixed pitch before trusting tmPitchAndFamily.
2211 2000-10-21  Andrew Innes  <andrewi@gnu.org>
2213         * w32gui.h (w32_char_font_type): Move enum from w32term.c
2215         * w32term.h: Extern decl for w32_cache_char_metrics.
2217         * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics.
2219         * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics.
2220         (w32_unload_font): Free per_char array if present.
2222         * w32term.c (w32_per_char_metric): Remove HDC argument.  Use
2223         cached information in emulated XFontStruct to handle common cases
2224         quickly.  Do not allocate XCharStruct for return.
2225         (w32_native_per_char_metric): New function.
2226         (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of
2227         allocating one.
2228         (x_produce_glyphs): Don't get an HDC.  Change calls to
2229         w32_per_char_metric to match arg change above.  Remove calls to
2230         free results.
2231         (w32_get_glyph_overhangs): Ditto.
2232         (w32_cache_char_metrics): New function.
2234         * makefile.w32-in: Change .obj to .$(O) in all dependencies.
2235         ($(BLD)/casefiddle.$(O)): Remove compile command.
2236         ($(BLD)/gmalloc.$(O)): Remove compile command.
2237         ($(BLD)/dispnew.obj): 
2238         ($(BLD)/keyboard.obj): 
2239         ($(BLD)/w32inevt.obj): 
2240         ($(BLD)/w32bdf.obj): 
2241         ($(BLD)/alloc.obj): 
2242         ($(BLD)/buffer.obj): 
2243         ($(BLD)/editfns.obj): 
2244         ($(BLD)/emacs.obj): 
2245         ($(BLD)/fileio.obj): 
2246         ($(BLD)/fns.obj): 
2247         ($(BLD)/indent.obj): 
2248         ($(BLD)/insdel.obj): 
2249         ($(BLD)/intervals.obj): 
2250         ($(BLD)/minibuf.obj): 
2251         ($(BLD)/print.obj): 
2252         ($(BLD)/scroll.obj): 
2253         ($(BLD)/sysdep.obj): 
2254         ($(BLD)/textprop.obj): 
2255         ($(BLD)/widget.obj): 
2256         ($(BLD)/xdisp.obj): Add dependency on w32gui.h.
2257         ($(BLD)/term.obj): Add dependency on dispextern.h.
2259         * makefile.nt ($(BLD)\dispnew.obj): 
2260         ($(BLD)\keyboard.obj): 
2261         ($(BLD)\w32inevt.obj): 
2262         ($(BLD)\w32bdf.obj): 
2263         ($(BLD)\alloc.obj): 
2264         ($(BLD)\buffer.obj): 
2265         ($(BLD)\editfns.obj): 
2266         ($(BLD)\emacs.obj): 
2267         ($(BLD)\fileio.obj): 
2268         ($(BLD)\fns.obj): 
2269         ($(BLD)\indent.obj): 
2270         ($(BLD)\insdel.obj): 
2271         ($(BLD)\intervals.obj): 
2272         ($(BLD)\minibuf.obj): 
2273         ($(BLD)\print.obj): 
2274         ($(BLD)\scroll.obj): 
2275         ($(BLD)\sysdep.obj): 
2276         ($(BLD)\textprop.obj): 
2277         ($(BLD)\widget.obj): 
2278         ($(BLD)\xdisp.obj): Add dependency on w32gui.h.
2279         ($(BLD)\term.obj): Add dependency on dispextern.h
2281 2000-10-21  Eli Zaretskii  <eliz@is.elta.co.il>
2283         * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p
2284         with an additional argument of Qt.
2286 2000-10-21  Miles Bader  <miles@gnu.org>
2288         * window.c (pos_fully_visible_in_window_p): New function.
2289         (Fpos_visible_in_window_p): Add FULLY argument.
2290         Use pos_fully_visible_in_window_p.
2291         (window_scroll_pixel_based, window_scroll_line_based): Update
2292         calls to Fpos_visible_in_window_p.
2293         * lisp.h (Fpos_visible_in_window_p): Update prototype
2295 2000-10-20  Gerd Moellmann  <gerd@gnu.org>
2297         * alloc.c (toplevel): Conditionalize compilation of mem_*
2298         functions differently.
2299         
2300 2000-10-20  Jason Rumney  <jasonr@gnu.org>
2302         * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above
2303         mem_init where it used to be. mem_z etc not defined otherwise.
2305 2000-10-20  Gerd Moellmann  <gerd@gnu.org>
2307         * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef
2308         GC_MALLOC_CHECK.
2309         (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node
2310         structure definition and related variabled to the top of the file.
2311         Include this code when GC_MALLOC_CHECK is defined.
2312         (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't
2313         register/unregister allocated region.
2314         (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something
2315         which isn't allocated.
2316         (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning
2317         something which is already in use.
2318         (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise.
2319         (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal.
2320         (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal.
2321         (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init.
2323         * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use
2324         _malloc_internal instead of malloc.
2325         (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead
2326         of free.
2328 2000-10-20  Andrew Innes  <andrewi@gnu.org>
2330         * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on
2331         Windows.
2332         (my_strftime) <macro>: Don't use macro arg list when redefining as
2333         _strftime_copytm.
2334         (my_strftime) <function>: Supply 0 as ut argument.
2336 2000-10-19  Jason Rumney  <jasonr@altavista.net>
2338         * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before
2339         including dispextern.h, as it stops faces from working.
2341         * w32fns.c (Fx_create_frame): Don't bother calling
2342         face-set-after-frame-default since the caller does it for us
2343         anyway. Clean up calls to x_get_arg to be consistent with X.
2345         * w32term.c (x_produce_glyphs): Handle
2346         unibyte_display_via_language_environment correctly.
2347         (w32_draw_box_rect): Fix the calculation of width and height.
2349         * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles,
2350         as it has stopped working.
2351         (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like
2352         menu-bar.
2354 2000-10-19  Gerd Moellmann  <gerd@gnu.org>
2356         * eval.c (skip_debugger): Prevent a compiler warning.
2357         (Fcondition_case): Likewise.
2358         (Fbacktrace_frame): Use a null interactive spec.
2360 2000-10-19  Kenichi Handa  <handa@etl.go.jp>
2362         * xterm.c (x_find_ccl_program): Check also fontp->full_name.
2364 2000-10-18  Gerd Moellmann  <gerd@gnu.org>
2366         * strftime.c: Sync with glibc, file version 1.78.
2367         (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which
2368         should no longer be used according to ISO 8601.
2370         * keymap.c (access_keymap): If IDX has a meta prefix, and there's
2371         no map for meta_prefix_char, don't try to use it as a keymap.
2372         Instead, if T_OK is non-zero, look up a default binding, if any,
2373         otherwise, if T_OK is zero, return nil.
2375         * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color)
2376         (x_to_xcolors, png_load): Use x_query_color.
2378         * xterm.c (x_color_cells, x_query_colors, x_query_color): New
2379         functions.
2380         (x_alloc_nearest_color): Use it to reduce calls to XQueryColors
2381         which can be slow.
2382         (x_copy_color, x_alloc_lighter_color): Likewise.
2384         * xterm.h (struct x_display_info): Add color_cells and ncolor_cells.
2385         (x_query_color, x_query_colors): Add prototype.
2387         * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call
2388         check_string_bytes only if not noninteractive, increase count to 50.
2390 2000-10-18  Miles Bader  <miles@lsi.nec.co.jp>
2392         * insdel.c (adjust_markers_for_delete): Handle before-insertion
2393         markers correctly.
2395 2000-10-17  Gerd Moellmann  <gerd@gnu.org>
2397         * alloc.c (pure_bytes_used): Renamed from pureptr.
2398         (ALIGN): New macro.
2399         (pure_alloc): New function.
2400         (make_pure_string, pure_cons, make_pure_float, make_pure_vector):
2401         Use it.
2402         (Fpurecopy): Use PURE_POINTER_P.
2404         * xdisp.c (try_cursor_movement): Use cursor_row_p also when
2405         PT has moved backward.
2406         
2407         * xdisp.c (cursor_row_p): Take continued lines into account.
2409         * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of
2410         string's size_byte.
2411         (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function.
2412         (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable.
2413         (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th
2414         string allocated.
2416         * xdisp.c (forward_to_next_line_start): Switch iterator's handling
2417         of selective display off while searching for the next line start.
2419 2000-10-17  Kenichi Handa  <handa@etl.go.jp>
2421         * Makefile.in (term.o): Depend on dispextern.h.
2423 2000-10-16  Stefan Monnier  <monnier@cs.yale.edu>
2425         * keymap.c (keymap_memberp): Ensure that nil is not a member.
2427 2000-10-16  Gerd Moellmann  <gerd@gnu.org>
2429         * xdisp.c (set_iterator_to_next): Reset box start and end flags of
2430         the iterator at the beginning, so that they can be set later on,
2431         for instance in reseat_at_next_visible_line_start, without being
2432         overwritten.
2434         * xfns.c (pbm_format): Add :foreground and :background keywords.
2435         (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators.
2436         (xbm_load): Recognize foreground and background color
2437         specifications.
2439 2000-10-16  Eli Zaretskii  <eliz@is.elta.co.il>
2441         * dispextern.h (unspecified_fg, unspecified_bg): Declare.
2443         * dosfns.c (unspecified_fg, unspecified_bg): Remove extern
2444         declaration.
2446         * msdos.c (IT_set_face): Compare highlighted face with the default
2447         face, and invert colors if these faces' colors are identical.
2448         (Fmsdos_remember_default_colors): Don't swap foreground and
2449         background colors in initial_colors[].
2450         (IT_set_frame_parameters): Don't swap frame's foreground and
2451         background pixels.  If ALIST includes "(reverse . t)", swap
2452         foreground-color and background-color properties in frame's
2453         param_alist.  If the original frame's param_alist doesn't specify
2454         the colors, store unspecified-fg and unspecified-bg, reversed if
2455         required.
2457         * frame.c (Fframe_parameters): If a tty's frame's param_alist says
2458         the colors are unspecified and reversed, reverse fore- and back-
2459         ground in the returned value.
2460         (Fframe_parameter): Ditto.
2462 2000-10-16  Gerd Moellmann  <gerd@gnu.org>
2463         
2464         * xdisp.c (find_last_unchanged_at_beg_row): Renamed from
2465         get_last_unchanged_at_beg_row.
2466         (find_first_unchanged_at_end_row): Renamed from
2467         get_first_unchanged_at_end_row.
2468         (find_first_unchanged_at_end_row): Convert assertions to
2469         unconditional tests which abort.  When looking for a row in
2470         unchanged text, don't go further back than first_text_row.
2472         * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>:
2473         Don't add in the last line's height when deciding if the new
2474         position is below the scroll margin.
2476 2000-10-16  Miles Bader  <miles@gnu.org>
2478         * editfns.c (Fconstrain_to_field): Check carefully for field
2479         boundaries if either OLD_POS or NEW_POS has a non-nil field
2480         property, even if they're the same.
2482 2000-10-16  Kenichi Handa  <handa@etl.go.jp>
2484         * xterm.c (x_draw_box_rect): Fix the calculation of width and
2485         height for XFillRectangle.
2487 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
2489         * syntax.c (Fstring_to_syntax): New function extracted from
2490         Fmodify_syntax_entry.
2491         (Fmodify_syntax_entry): Use it and document the ! and | fences.
2492         (skip_chars, Fforward_comment): Remove unused variables.
2493         (syms_of_syntax): Add defsubr for string-to-syntax.
2494         (describe_syntax): Add code for comment and string fences.
2496 2000-10-14  Stefan Monnier  <monnier@cs.yale.edu>
2498         * keymap.c (access_keymap): Add AUTOLOAD parameter.
2499         Do the meta->esc mapping.  Call get_keyelt before returning.
2500         Start scanning from the second element (the first is always `keymap')
2501         to make it easier to detect when we reach a parent map.
2502         Handle the case of inheriting from a symbol whose function is a map.
2503         (Fkeymap_parent): Also handle the `inherit from symbol' case.
2504         (fix_submap_inheritance, Fdefine_key): Update call to access_keymap.
2505         (get_keyelt, Flookup_key): Update call to access_keymap.
2506         Remove the meta->esc mappings.
2507         (define_as_prefix): Delete old disabled code.
2508         (menu_item_p): New function.
2509         (where_is_internal_1): Skip over the few remaining menu items.
2510         * lisp.h (access_keymap): Update prototype.
2511         * keyboard.c (read_char, menu_bar_items, tool_bar_items):
2512         Update call to access_keymap.
2513         (follow_key, read_key_sequence): Update calls to access_keymap.
2514         Remove the meta->esc mappings.
2516 2000-10-13  Gerd Moellmann  <gerd@gnu.org>
2518         * dispnew.c (direct_output_for_insert): Call set_iterator_to_next
2519         with additional argument.
2521         * xdisp.c (cursor_row_p): New function.
2522         (try_cursor_movement, display_line): Use it.
2523         
2524         * xdisp.c (append_space): Also save/restore iterator's current
2525         character and its length.
2527         * xdisp.c (init_from_display_pos): Add an assertion.
2528         (handle_stop): Don't set iterator's add_overlay_start.
2529         (handle_invisible_prop): Likewise.
2530         (load_overlay_strings): If text under an overlay is invisible,
2531         take both before- and after-strings into account when the iterator
2532         is positioned either at the start or at the end of the overlay.
2533         (forward_to_next_line_start): Rewritten.
2534         (reseat_at_next_visible_line_start): Rewritten.
2535         (set_iterator_to_next): Add parameter RESEAT_P.
2537         * dispextern.h (struct it): Remove member add_overlay_start.
2538         (set_iterator_to_next): Change prototype.
2540 2000-10-13  Kenichi Handa  <handa@etl.go.jp>
2542         * coding.c (code_convert_region): Be sure to initialize
2543         coding->category_idx.
2544         (decode_coding_string): Set coding->src_multibyte and
2545         coding->dst_multibyte before using CODING_REQUIRE_DECODING.
2546         (encode_coding_string): Set coding->src_multibyte and
2547         coding->dst_multibyte before using CODING_REQUIRE_ENCODING.
2549 2000-10-12  Stefan Monnier  <monnier@cs.yale.edu>
2551         * xfns.c (Fx_create_frame): Don't bother calling
2552         face-set-after-frame-default since the caller does it for us anyway.
2554 2000-10-12  Eli Zaretskii  <eliz@is.elta.co.il>
2556         * window.c (coordinates_in_window): Fix detection of vertical line
2557         on character terminals.
2559 2000-10-12  Gerd Moellmann  <gerd@gnu.org>
2561         * editfns.c (save_excursion_save): Additionally record the
2562         selected window.
2563         (save_excursion_restore): If buffer was visible in a window, and a
2564         different window was selected, and the old selected window is
2565         still live, restore point in that window.
2567 2000-10-12  Kenichi Handa  <handa@etl.go.jp>
2569         * xterm.c (x_produce_glyphs): Handle
2570         unibyte_display_via_language_environment correctly.
2572         * regex.c (regex_compile): Change the way of handling a range from
2573         unibyte char to multibyte char.
2575         * syntax.c (skip_chars): Change the way of handling a range from
2576         unibyte char to multibyte char.
2578         * process.c (read_process_output): Cancel previous change.
2580 2000-10-11  Eli Zaretskii  <eliz@is.elta.co.il>
2582         * search.c (Fsearch_backward, Fsearch_forward): Doc fix.
2584         * charset.c (Ffind_charset_string): Doc fix.
2585         (Ffind_charset_region): Doc fix.
2587 2000-10-11  Kenichi Handa  <handa@mule.m17n.org>
2589         * process.c (read_process_output): Fix previous change.  Adjust
2590         multibyteness of text to insert in a buffer by
2591         string_make_unibyte/multibyte instead of
2592         Fstring_as_unibyte/multibyte.
2594 2000-10-10  Andreas Schwab  <schwab@suse.de>
2596         * alloc.c (mark_object): Remove all workarounds installed on
2597         1993-08-08.
2599 2000-10-10  Kenichi Handa  <handa@etl.go.jp>
2601         * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before
2602         returning.
2603         (base64_encode_1): Make it work for a text of multibyte form.
2604         (Fbase64_decode_region): Allocate sufficient memory for multibyte
2605         case.  Don't call str_to_multibyte because base64_decode_1
2606         produces correct multibyte form for eight-bit codes.
2607         (Fbase64_decode_string): Adjusted for the change of
2608         base64_decode_1.
2609         (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN.  If
2610         MULTIBYTE is nonzero, produce correct multibyte form for eight-bit
2611         codes.
2613         * charset.h (CHAR_STRING): Optimized for single byte characters.
2615 2000-10-09  Andreas Schwab  <schwab@suse.de>
2617         * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to
2618         -1 after socket is closed, to fall through to error processing.
2620 2000-10-09  Eli Zaretskii  <eliz@is.elta.co.il>
2622         * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object
2623         variables.  If ALIST includes foreground-color or
2624         background-color, change also the colors of the default face for
2625         this frame.
2627 2000-10-08  Eli Zaretskii  <eliz@is.elta.co.il>
2629         * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make
2630         them extern (they are defined on xfaces.c).
2631         (syms_of_msdos): Don't intern and don't staticpro
2632         Qbackground_color and Qforeground_color.
2634 2000-10-07  Eli Zaretskii  <eliz@is.elta.co.il>
2636         * frame.c (Fframe_parameter): For non-windowed frames, if
2637         f->param_alist says foreground or background color is unspecified,
2638         call tty_color_name to return the color name computed from the
2639         frame's current colors.
2641 2000-10-06  Dave Love  <fx@gnu.org>
2643         * terminfo.c (ospeed): Don't declare.
2645         * sysdep.c: Don't include string.h.
2646         (h_errno): Declare conditional also on TRY_AGAIN.
2648         * charset.c (Ffind_charset_string): Doc fix.
2650         * fns.c (Fbase64_encode_region, Fbase64_encode_string) 
2651         (Fbase64_decode_region, Fbase64_decode_string): More explicit
2652         error messages.
2654 2000-10-05  Dave Love  <fx@gnu.org>
2656         * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar
2657         position like menu-bar.
2659 2000-10-05  Gerd Moellmann  <gerd@gnu.org>
2661         * keyboard.c (Frecursive_edit): Make sure redisplay can happen.
2663         * xdisp.c (handle_single_display_prop): Use safe_call1.
2664         (safe_call): Renamed from call_function.
2665         (safe_call1): New function.
2666         (handle_fontified_prop): Use safe_call1 instead of call1.
2667         (safe_eval): Renamed from eval_form.
2668         (safe_eval_handler): Renamed from eval_handler.
2669         (handle_single_display_prop, display_mode_element): Use safe_eval
2670         instead of eval_form.
2672         * xfaces.c (merge_face_heights): Use safe_call instead of
2673         call_function.
2675         * keyboard.c (show_help_echo): Use safe_call instead of
2676         call_function; use safe_eval instead of eval_form.
2678         * lisp.h (safe_call): Renamed from call_function.
2679         (safe_eval): Renamed from eval_form.
2680         (safe_call1): Add prototype.
2682 2000-10-05  Miles Bader  <miles@lsi.nec.co.jp>
2684         * xfns.c (image_ascent): Rearrange ascent calculation for the
2685         has-a-font case.
2687 2000-10-04  Stefan Monnier  <monnier@cs.yale.edu>
2689         * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'.
2690         (where_is_internal_1): Don't bother ignoring menu-items any more.
2692 2000-10-04  Gerd Moellmann  <gerd@gnu.org>
2694         * keyboard.c (update_menu_bindings): New variable.
2695         (parse_menu_item): Use AREF.  If update_menu_bindings
2696         is 0, don't update menu bindings.
2697         (syms_of_keyboard): New Lisp variable `update-menu-bindings'.
2699 2000-10-03  Eli Zaretskii  <eliz@is.elta.co.il>
2701         * alloc.c (Fgarbage_collect): Prevent compiler warning for a call
2702         to `mark_object'.
2704 2000-10-02  Stefan Monnier  <monnier@cs.yale.edu>
2706         * syntax.c (forw_comment): Match nestedness of ender/starter.
2707         (Fforward_comment): Treat an unmatched \n comment-ender as whitespace.
2708         (prev_char_comstart_first): Remove.
2709         (back_comment): Check two-char comment markers more carefully
2710         to better handle overlapping cases like *//* or /* */* */ ...
2711         Match nestedness of ender/starter.
2713 2000-10-02  Dave Love  <fx@gnu.org>
2715         * config.in (HAVE_GAI_STRERROR): Add undef.
2717         * process.c (Fopen_network_stream): Use it.
2719         * m/alpha.h (NO_REMAP): Don't define.
2721 2000-10-02  Gerd Moellmann  <gerd@gnu.org>
2723         * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can
2724         return with a string converted to an integer or vice versa when
2725         Vmocklisp_arguments is t.
2726         (Fsignal): Likewise.  The function can return for `quit'.
2727         (struct gcpro): Declare member `var' to point to a volatile
2728         Lisp_Object.
2730         * eval.c (error): Prevent compiler warning.
2732 2000-09-30  Stefan Monnier  <monnier@cs.yale.edu>
2734         * keymap.c (keymap_memberp): New function.
2735         (Fset_keymap_parent): Use it.
2736         (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP.
2737         Use keymap_memberp to avoid creating cycles.
2738         (access_keymap): Use KEYMAPP.
2740 2000-09-30  Gerd Moellmann  <gerd@gnu.org>
2742         * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use
2743         gai_strerror.  Make sure xerrno is set if connect fails.  Improve
2744         error recovery.
2746 2000-09-29  Jason Rumney <jasonr@gnu.org>
2748         * w32term.c (w32_char_font_type, w32_encode_char)
2749         (x_produce_glyphs): Distinguish single and multibyte BDF fonts.
2750         (w32_bdf_per_char_metric): New function.
2751         (w32_per_char_metric): Use it.
2752         (x_draw_glyph_string_background): Always draw background for BDF
2753         glyphs.
2755         * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not
2756         GDI object which is a scarce resource.
2758         * w32bdf.c (search_file_line): Fix skipping of whitespace.
2759         (get_quoted_string): Fix limit on memchr search.
2760         (set_bdf_font_info): Use unsigned chars. Negate yoffset.
2761         (w32_init_bdf_font): Initialize codepoint and bitmap heaps.
2762         (w32_free_bdf_font): Free bitmaps and codepoints on heaps.
2763         (get_cached_font_char, cache_char_offset): Use macro
2764         BDF_CODEPOINT_RANGE_COVER_P.
2765         (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap.
2766         (clear_cached_bitmap_slots): New function.
2767         (GET_HEX_VALUE): G-Z, g-z are not hex.
2768         (w32_get_bdf_glyph): Convert to DIB format. Return bytes read.
2769         (get_bitmap_with_cache): Use new cache implementation.
2770         (create_offscreen_bitmap): New function.
2771         (w32_BDF_TextOut): Use it. Draw glyphs as DIBs.
2773         * w32term.c (x_produce_glyphs):  If the distance from the current
2774         position to the next tab stop is less than a canonical character
2775         width, use the tab stop after that.
2776         (x_draw_glyphs): Handle case START and END are out of bounds more
2777         carefully.
2778         (x_clear_mouse_face): Block/unblock input.
2779         (x_display_and_set_cursor): Don't show a hollow box cursor for
2780         buffers whose cursor_type is nil.
2782 2000-09-29  Gerd Moellmann  <gerd@gnu.org>
2784         * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar
2785         disappears.
2787         * dispextern.h (updating_frame): Declare extern.
2789 2000-09-29  Andreas Schwab  <schwab@suse.de>
2791         * m/ia64.h: Remove hack of not prototyping bcopy, etc.
2793 2000-09-29  Gerd Moellmann  <gerd@gnu.org>
2795         * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol,
2796         use its function definition.
2797         (tool_bar_items): Likewise.
2799         * lisp.h (fatal): Declare NO_RETURN.
2800         
2801 2000-09-29  Kenichi Handa  <handa@etl.go.jp>
2803         * keymap.c: Remove the line "#undef NULL".
2805 2000-09-28  Gerd Moellmann  <gerd@gnu.org>
2807         * xterm.c (x_make_frame_visible): Try harder to make the frame
2808         visible.
2810 2000-09-28  Dave Love  <fx@gnu.org>
2812         * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP.
2814         * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define.
2816         * .gdbinit (xreload): Note its need on GNU/Linux.
2818         * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare
2819         r_alloc, r_alloc_free.
2821 2000-09-28  Kenichi Handa  <handa@etl.go.jp>
2823         * syntax.c (skip_chars): Handle negation correctly.
2825 2000-09-27  Gerd Moellmann  <gerd@gnu.org>
2827         * xfaces.c (realize_default_face): Call set_lface_from_font_name
2828         with non-zero FORCE_P argument.
2830         * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows): 
2831         Add assertions.
2833         * xdisp.c (window_box_height): Add an assertion.
2835         * xfns.c (x_set_tool_bar_lines): Don't use more lines for the
2836         tool-bar than is available.
2837         (x_change_window_heights): Renamed from x_set_menu_bar_lines_1.
2839 2000-09-27  Dave Love  <fx@gnu.org>
2841         * s/irix6-5.h: Now works 64-bit.  Tidied.
2843 2000-09-26  Gerd Moellmann  <gerd@gnu.org>
2845         * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT
2846         instead of BITS_PER_INT.
2847         (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and
2848         EMACS_UINT, respectively.
2849         (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine.
2851         * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define.
2853         * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64.
2855         * window.c (freeze_window_starts): Construct last argument for
2856         foreach_window differently.
2858         * xfns.c (x_decode_color): Don't return a Lisp_Object.
2860         * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and
2861         EMACS_UINT instead of `int' and `unsigned int'.
2862         (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'.
2864         * frame.h (struct frame): Make the `nothing' member of union
2865         output_data an EMACS_INT.
2867         * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug
2868         hunting.
2869         (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's
2870         size in the sdata structure.
2871         (SDATA_NBYTES, SDATA_DATA): New macros.
2872         (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define
2873         differently for the different layout of the sdata structure.
2874         (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size
2875         in sdata.
2876         (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]:
2877         Check that size recorded in the string size and size recorded in
2878         the sdata structure agree.
2880 2000-09-25  Dave Love  <fx@gnu.org>
2882         * buffer.c: Include stdio.h.
2884         Partly suggested by Eduardo Horvath <eeh@netbsd.org>.
2885         
2886         * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t.
2888         * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it.
2889         (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as
2890         size_t.
2891         (__malloc_extra_blocks): Declare as __malloc_size_t.
2893 2000-09-25  Gerd Moellmann  <gerd@gnu.org>
2895         * alloc.c (mark_image): Use GC_NILP instead of NILP.
2897         * keyboard.c (show_help_echo): Set help_echo_showing_p.
2898         (read_char): If help-echo is showing, preserve the echo area
2899         when redisplaying.
2901         * xdisp.c (help_echo_showing_p): New variable.
2902         (set_message): Reset it to 0.
2903         (init_xdisp): Initialize help_echo_showing_p.
2905         * dispextern.h (help_echo_showing_p): Declare extern.
2907         * config.in: Fix typo in __GNUC_MINOR__.
2909         * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN.
2911         * s/freebsd.h (POSIX_SIGNALS): Define.
2913         * xterm.c (x_clear_mouse_face): Block/unblock input.
2915 2000-09-24  Dave Love  <fx@gnu.org>
2917         * fns.c (base64_encode_1): Fix last change.
2919 2000-09-22  Gerd Moellmann  <gerd@gnu.org>
2921         * dispnew.c (enable_glyph_matrix_rows): Remove xasserts.
2923         * xdisp.c (try_window_reusing_current_matrix): More fixes
2924         for the case window has a header-line.
2926 2000-09-22  Dave Love  <fx@gnu.org>
2928         * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide
2929         a doc string.
2931         * xterm.c [SOLARIS2]: Remove redundant include of string.h.
2933         * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix.
2935 2000-09-21  Gerd Moellmann  <gerd@gnu.org>
2937         * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))'
2938         for GCC >= 2.5.
2940         * lisp.h (wrong_type_argument, Fthrow, Fsignal, error): Declare
2941         NO_RETURN.
2943         * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c,
2944         * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c,
2945         * indent.c, search.c, alloc.c, data.c: Avoid some more compiler
2946         warnings.
2947         
2948         * marker.c (byte_char_debug_check): Return void.
2950         * xfns.c (Fx_create_frame): Set default frame parameter value
2951         for tool-bar-lines to 1.
2953         * dispnew.c (scrolling_window): Compare y-positions of rows
2954         equal at the start.  Some simplification.
2956         * xdisp.c (try_window_reusing_current_matrix): Fix computation of
2957         reused rows' y-position in the case window has a header-line, and
2958         new window start is greater than old window start.
2960         * process.c (process_sent_to): New variable.
2961         (send_process): Workaround for a crash on sparc-sun-solaris-2.6
2962         with GCC 2.95.2 caused by a parameter being clobbered by longjmp.
2963         Declare more parameters volatile.
2965         * lread.c (Vrecursive_load_depth_limit): New variable.
2966         (Fload): Check recursive loads whose recursion depth exceeds
2967         Vrecursive_load_depth_limit.
2968         (syms_of_lread): DERFAR_LISP recursive-load-depth-limit.
2970 2000-09-20  Gerd Moellmann  <gerd@gnu.org>
2972         * fileio.c (Fread_file_name): Doc fix.
2974         * editfns.c (Fmessage_or_box): Doc fix.
2976         * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix.
2978         * xfns.c (xbm_scan): Allow C-style comments.
2979         
2980         * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color
2981         symbols are specified, add color translations to the cache.
2982         (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New
2983         functions.
2984         (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and
2985         xpm_cache_color.
2986         (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes
2987         structures to xpm_init_color_cache.
2989 2000-09-19  Gerd Moellmann  <gerd@gnu.org>
2991         * dispnew.c (update_window_line): Make sure to always draw
2992         mode-lines.
2994 2000-09-19  Andrew Innes  <andrewi@gnu.org>
2996         * makefile.nt (bootstrap-emacs): Don't change directory.
2998 2000-09-19  Kenichi Handa  <handa@etl.go.jp>
3000         * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.
3002         * ccl.c (Fccl_execute_on_string): Make multibyte string correctly.
3003         If output buffer is too small, signal an appropriated error.
3005 2000-09-18  Dave Love  <fx@gnu.org>
3007         * keyboard.c (menu_bar_items, tool_bar_items) 
3008         (current_active_maps): Remove redundant get_local_map call.
3010 2000-09-18  Gerd Moellmann  <gerd@gnu.org>
3012         * xterm.c (x_display_and_set_cursor): Don't show a hollow box
3013         cursor for buffers whose cursor_type is nil.
3014         
3015         * xterm.c (x_draw_image_glyph_string): Remove a comment describing
3016         a feature to implement that is already implemented.
3017         (note_mouse_highlight, x_find_ccl_program): Avoid some compiler
3018         warnings.
3020         * xfns.c (x_clear_image_1): New function.
3021         (x_clear_image): Use it.
3022         (x_from_xcolors): Use x_clear_image_1; don't free the image's
3023         mask.
3025         * dispnew.c (update_window): Move test for invisible lines
3026         at the top to update_window_line.
3027         (update_window_line): Handle invisible lines here.
3029         * xfns.c (clear_image_cache): Clear current matrices of all
3030         frames sharing an image cache.  Block input while freeing
3031         images.  Fix timestamp comparison.
3032         (x_clear_image): Also free the mask.
3034         * xfns.c (lookup_image): Block input while loading the image so
3035         that we won't get interrupted in a state where the image isn't yet
3036         set up completely.
3037         (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color)
3038         (lookup_pixel_color, x_to_xcolors, x_from_xcolors)
3039         (x_disable_image, x_build_heuristic_mask, pbm_load, png_load)
3040         (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock
3041         input.
3043 2000-09-16  Gerd Moellmann  <gerd@gnu.org>
3045         * dispnew.c (update_window): Make sure to make desired rows
3046         current even if they are completely invisible at the top
3047         of a window.
3049 2000-09-15  Gerd Moellmann  <gerd@gnu.org>
3051         * xfns.c (lookup_image): Build mask before applying an algorithm.
3052         Recognize algorithm `disabled'.
3053         (cross_disabled_images): New variable.
3054         (COLOR_INTENSITY): New macro.
3055         (x_detect_edges): Use COLOR_INTENSITY.
3056         (x_disable_image): New function.
3057         (syms_of_xfns): DEFVAR_BOOL cross_disabled_images.
3059         * xdisp.c (build_desired_tool_bar_string): For a toolbar item in
3060         disabled state, don't apply an image transformation algorithm if
3061         the user specified an image for the disabled state.  Use
3062         `:algorithm disabled' for creating a disabled item's image if the
3063         user hasn't specified an image.
3065         * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color
3066         allocation functions with the XPM lib.
3067         (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure.
3068         (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro.
3069         (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable.
3070         (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color)
3071         (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New
3072         functions.
3073         (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation
3074         functions, if possible, because these handle color allocation
3075         failure more gracefully.
3076         (Fimage_mask_p): New function.
3078         * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss)
3079         (Qedge_detection, Qheuristic): New symbols.
3080         (syms_of_xfns): Initialize new symbols.
3081         (lookup_image): Handle `:mask X', `:algorithm emboss', and
3082         `algorithm (edge-detection ...)'.
3083         (xbm_format, xpm_format, pbm_format, png_format, jpeg_format):
3084         (tiff_format, gif_format, gs_format): Add `:mask'.
3085         (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK)
3086         (GIF_MASK, GS_MASK): New enumerators.
3087         (x_laplace_read_row, x_laplace_write_row): Functions removed.
3088         (emboss_matrix, laplace_matrix): New variables.
3089         (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss)
3090         (x_edge_detection): New functions.
3091         (x_laplace): Rewritten in terms of x_detect_edges.
3092         (x_build_heuristic_mask): If image has a mask, free it.
3094 2000-09-14  Andrew Innes  <andrewi@gnu.org>
3096         * makefile.w32-in: Revert to Unix line endings.
3098 2000-09-14  Andrew Innes  <andrewi@gnu.org>
3100         * makefile.w32-in: Standardize indentation somewhat.
3101         (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to
3102         cater for differences between shells.
3104         * w32term.c (w32_per_char_metric): Handle non-TrueType fonts.
3106 2000-09-14  Gerd Moellmann  <gerd@gnu.org>
3108         * xterm.c (x_produce_glyphs): If the distance from the current
3109         position to the next tab stop is less than a canonical character
3110         width, use the tab stop after that.
3112 2000-09-14  Dave Love  <fx@gnu.org>
3114         * buffer.c (alloc_buffer_text): Fix xmalloc call.
3116 2000-09-14  Gerd Moellmann  <gerd@gnu.org>
3118         * xdisp.c (handle_fontified_prop): While running fontification
3119         functions, bind `fontification-functions' and
3120         `after-change-functions' to nil.
3122         * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h
3123         (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP.
3125         * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o.
3127         * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to
3128         USE_MMAP_FOR_BUFFERS.
3130         * insdel.c (make_gap): Use enlarge_buffer_text.
3132         * buffer.c: Move allocation with mmap here, from ralloc.c.  Change
3133         conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS.
3134         (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed
3135         from former r_alloc_* functions in ralloc.c.
3136         (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New
3137         variables.
3138         (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro.
3139         (mmap_init) [REL_ALLOC_MMAP]: New function.
3140         (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New
3141         functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and
3142         BUFFER_FREE.
3144         * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed.
3145         (enlarge_buffer_text): Add prototype.
3147         * ralloc.c: Remove everything having to do with the use of mmap.
3149 2000-09-13  Gerd Moellmann  <gerd@gnu.org>
3151         * sound.c (Fplay_sound): Doc fix.
3153         * keyboard.c: Avoid some more compiler warnings.
3154         (parse_tool_bar_item): Ignore cached key bindings.
3156         * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap
3157         and allocation of Lisp data.
3159 2000-09-12  Gerd Moellmann  <gerd@gnu.org>
3161         * xfaces.c: Remove conditional compilation on SCALABLE_FONTS.
3162         (Finternal_set_lisp_face_attribute): If frame is 0, set new frame
3163         defaults first.
3165         * lread.c (Fload): Put code checking for recursive loads in #if 0.
3167 2000-09-12  Miyashita Hisashi  <himi@meadowy.org>
3169         * ccl.c: Comment fixed.
3170         (MAX_MAP_SET_LEVEL): Increased to 30.
3171         (PUSH_MAPPING_STACK): Enclose with do-while block.
3172         (POP_MAPPING_STACK): Likewise.
3173         (stack_idx_of_map_multiple): New variable.
3174         (CCL_CALL_FOR_MAP_INSTRUCTION): New macro.
3175         (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol,
3176         call the corresponding CCL program by
3177         CCL_CALL_FOR_MAP_INSTRUCTION.
3178         (ccl_driver) <CCL_MapSingle>: Likewise.
3179         (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal
3180         with the case where looking up process reaches to the end of
3181         map-set, and call CCL programs as the above change.
3183 2000-09-11  Gerd Moellmann  <gerd@gnu.org>
3185         * xfns.c (png_load, jpeg_load): Declare some variables volatile
3186         that might be clobbered by longjmp.
3187         (check_x_display_info, x_decode_color, create_frame_xic)
3188         (Fx_display_backing_store, Fx_display_visual_class)
3189         (x_build_heuristic_mask, pbm_scan_number): Avoid compiler
3190         warnings.
3192         * lread.c (init_lread): Set Vloads_in_progress to nil.
3193         (Fload): Show list of recursively loaded files, when signaling an
3194         error.
3196         * lread.c (Vloads_in_progress): New variable.
3197         (record_load_unwind): New function.
3198         (Fload): Check for recursive loads.
3199         (syms_of_lread): Initialize Vloads_in_progress.
3200         (read_integer, read1): Avoid some compiler warnings.
3202         * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some
3203         compiler warnings.
3205 2000-09-11  Miles Bader  <miles@gnu.org>
3207         * editfns.c (Fbuffer_string): Doc fix.
3209 2000-09-10  Gerd Moellmann  <gerd@gnu.org>
3211         * ralloc.c (mmap_enlarge): Don't return 0 if successful.
3213 2000-09-09  Ken Raeburn  <raeburn@gnu.org>
3215         * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding
3216         whether to include other header files.
3218 2000-09-09  Gerd Moellmann  <gerd@gnu.org>
3220         * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned 
3221         by Fmemq as a boolean.
3223 2000-09-08  Stefan Monnier  <monnier@cs.yale.edu>
3225         * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko.
3227 2000-09-08  Gerd Moellmann  <gerd@gnu.org>
3229         * ralloc.c (mmap_fd): Remove initializer which can make it
3230         read-only in a dumped Emacs.
3231         (mmap_fd_1): New variable.
3232         (mmap_set_vars): Remove local `fd'.  Save mmap_fd in mmap_fd_1,
3233         restore it from there.
3234         (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init
3235         unconditionally so that mmap_fd can be initialized there.
3236         (r_alloc_init_fd): Open-coded in r_alloc_init; function removed.
3237         (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero.
3238         (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1.
3240         * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object.
3242         * xdisp.c (dump_glyph_row): Fix printf format string.
3243         (display_line, move_it_in_display_line_to): Avoid compiler
3244         warnings.
3246         * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define.
3248         * keymap.c (Fset_keymap_parent): Check for cycles in keymap
3249         inheritance.
3251         * xdisp.c (try_window_id): When trying to locate cursor in
3252         unchanged rows at the top, handle the case that we can't find it.
3254         * xterm.c (x_draw_glyphs): Handle case START and END are out
3255         of bounds more carefully.
3257 2000-09-08  Dave Love  <fx@gnu.org>
3259         * s/sol2.h (REL_ALLOC_MMAP): Define.
3260         * s/irix5-0.h (REL_ALLOC_MMAP): Likewise.
3262         * ralloc.c: Don't include string.h (redundant).
3263         (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined.
3264         [!MAP_ANON]: Include fcntl.h.
3265         (mmap_fd) [REL_ALLOC_MMAP]: New variable.
3266         (r_alloc, r_re_alloc, r_alloc_free)
3267         (mmap_enlarge, mmap_set_vars): Use it.
3268         (r_alloc_init_fd): New function.
3269         (__morecore) [SYSTEM_MALLOC]: Don't declare.
3270         (r_alloc_init): Call r_alloc_init_fd.  Conditionalize stuff on
3271         malloc type.
3273         * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]:
3274         Remove vm-limit.o.
3276         * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last
3277         change to __NetBSD__.
3279 2000-09-08  Kenichi Handa  <handa@etl.go.jp>
3281         * search.c (compile_pattern): Check the multibyteness of cached
3282         string and PATTERN.
3284 2000-09-08  Miles Bader  <miles@gnu.org>
3286         * xfaces.c (default_face_vector): Function removed.
3287         (Finternal_merge_in_global_face): Restore old global/local
3288         attribute override order.  Use inline loop instead of calling
3289         default_face_vector.
3291 2000-09-07  Gerd Moellmann  <gerd@gnu.org>
3293         * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use)
3294         (get_bloc, relocate_blocs, update_heap_bloc_correspondence)
3295         (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *'
3296         where necessary, in case POINTER_TYPE is `void'.
3298 2000-09-07  Eli Zaretskii  <eliz@is.elta.co.il>
3300         * frame.c (make_terminal_frame): Initialize frame foreground and
3301         background colors to unspecified, for the initial instance of an
3302         MSDOS frame.
3304 2000-09-07  Gerd Moellmann  <gerd@gnu.org>
3306         * ralloc.c (mmap_find): Fix overlap computation.
3307         (mmap_enlarge): Compute nbytes before trying to find an
3308         overlapping region.
3310         * xfaces.c (smaller_face): Compare font heights with `<' and `>'
3311         instead of `!='.
3313         * lread.c (syms_of_lread): Change value of regexp
3314         Vbytecomp_version_regexp to not match some XEmacs-compiled files.
3316         * xmenu.c (xdialog_show): When looking up the selection in
3317         menu_items, take `quote' boundaries into account; this corresponds
3318         to a nil ITEM in x-popup-dialog.
3320 2000-09-07  Kenichi Handa  <handa@etl.go.jp>
3322         * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80,
3323         not 0x81.
3324         (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
3326         * coding.c (encode_coding_sjis_big5): Use translation table for
3327         encoding, not decoding.  Fix the handling of latin-jisx0201.
3328         Check for the charset katakana-jisx0201 too.
3329         (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1.
3330         (detect_coding_sjis): Check the byte sequence more rigidly.
3332 2000-09-07  Gerd Moellmann  <gerd@gnu.org>
3334         * xfaces.c (Vparam_value_alist): New variable.
3335         (syms_of_xfaces): Initialize it.
3336         (Finternal_set_lisp_face_attribute): Avoid more consing.
3338         * frame.c (Fframe_parameter): Handle `name' and `background-mode'
3339         specially.
3340         (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially.
3341         (Qbackground_mode): New variable.
3342         (syms_of_frame_1): Initialize Qbackground_mode.
3344         * lisp.h (Qdisplay): Declare extern.
3346         * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0,
3347         change face on all frames, and change the default for new frames.
3349 2000-09-07  Dave Love  <fx@gnu.org>
3351         * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj.
3353 2000-09-07  Kenichi Handa  <handa@etl.go.jp>
3355         * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0.
3357         * charset.c: Include composite.h
3358         (lisp_string_width): New function.
3359         (Fstring_width): Call lisp_string_width instead of strwidth.
3361         * Makefile.in (charset.o): Depends on composite.h.
3363         * process.c (read_process_output): Before inserting the decoded
3364         text in the buffer, adjust the multibyteness.
3366 2000-09-06  Gerd Moellmann  <gerd@gnu.org>
3368         * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If 
3369         buffer's text buffer is null, map new memory.
3371         * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of
3372         POINTER_TYPE and size_t.
3373         (struct mmap_region) [REL_ALLOC_MMAP]: New structure.
3374         (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables.
3375         (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA)
3376         [REL_ALLOC_MMAP]: New macros.
3377         (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars)
3378         (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free)
3379         [REL_ALLOC_MMAP]: New functions.
3381         * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars
3382         before and after unexec.
3384         * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer
3385         text buffers if necessary.
3387         * buffer.h (R_ALLOC_DECLARE): Removed because unused.
3388         (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t
3389         in prototypes.
3391         * config.in (HAVE_MMAP): Add #undef.
3393 2000-09-05  Gerd Moellmann  <gerd@gnu.org>
3395         * frame.c (Qdisplay_type): New variable.
3396         (syms_of_frame_1): Initialize it.
3397         (Fframe_parameter): New function that avoids consing.
3398         (syms_of_frame): Defsubr it.
3400         * buffer.c (Fother_buffer): Consider buffers as invisible when
3401         they are displayed in a window on an invisible frame.
3403         * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making
3404         get-largest-window always return nil.
3406 2000-09-04  Gerd Moellmann  <gerd@gnu.org>
3408         * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp
3409         variable; recognize Emacs 19 elc files.
3411 2000-09-04  Miles Bader  <miles@gnu.org>
3413         * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face
3414         before initially popping up the menu, so the menu doesn't flash
3415         when the face settings are significantly different from the
3416         defaults.
3418 2000-09-04  Stefan Monnier  <monnier@cs.yale.edu>
3420         * regex.c (WIDE_CHAR_SUPPORT): New macro.
3421         (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>.
3422         (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT)
3423         (BIT_UNIBYTE): Remove.
3424         (re_match_2_internal): Delete corresponding code and streamline the
3425         BIT_MULTIBYTE case to not bother checking ISUNIBYTE.
3426         (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6.
3427         (re_wctype_t): New type.
3428         (re_wctype, re_iswctype, re_wctype_to_bit): New functions.
3429         (regex_compile): Use them and fix handling of overly long char classes.
3431 2000-09-03  Andrew Innes  <andrewi@gnu.org>
3433         * makefile.w32-in: Change to DOS line endings.
3435         * s/ms-w32.h (ORDINARY_LINK): New define.
3437         * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define
3438         (_ANONYMOUS_STRUCT) [__GNUC__]: New define.
3440         * makefile.w32-in (clean): Don't delete config.h and epaths.h.
3441         (distclean): Delete them here instead.
3443         * w32proc.c (compare_env): Convert to uppercase for comparison,
3444         not lowercase, to match how the native Windows shell works.
3446 2000-09-03  Jason Rumney  <jasonr@gnu.org>
3448         * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as
3449         CVS changes the line-ends when checking in/out on DOS/Windows.
3451         * makefile.nt (emacs): Do not change directory to run temacs, as
3452         the load-path is set relative to current directory.
3454 2000-09-03  Miles Bader  <miles@gnu.org>
3456         * xterm.c (x_alloc_lighter_color_for_widget): New function.
3458 2000-09-02  Gerd Moellmann  <gerd@gnu.org>
3460         * xdisp.c (redisplay_mode_lines): New function.
3461         (display_mode_lines): Return number of mode lines displayed.
3462         (echo_area_display): Use redisplay_mode_lines to draw garbaged
3463         mode lines.  Don't temporarily bind redisplay-dont-pause to t.
3465         * emacs.c, callint.c, doc.c, editfns.c: Remove includes of
3466         string.h and strings.h.
3467         (index) [HAVE_INDEX]: Add prototype.
3469         * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define.
3470         (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define.
3472         * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>.
3473         (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
3475 2000-09-01  Gerd Moellmann  <gerd@gnu.org>
3477         * lread.c (read1): Accept `?' as symbol constituent, for
3478         compatiblity with XEmacs.
3480 2000-08-31  Stefan Monnier  <monnier@cs.yale.edu>
3482         * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag.
3483         (struct re_pattern_buffer): Remove newline_anchor.
3484         * regex.c: Keep namespace clean for GNU libc by renaming <fun>
3485         to __<fun> and using `weak_alias (__<fun>, <fun>)'.
3486         (re_max_failures, fail_stack): Use size_t rather than unsigned.
3487         (regex_compile): For ^ and $, choose between buffer and line (beg|end)
3488         depending on the new RE_NO_NEWLINE_ANCHOR syntax flag.
3489         (print_compiled_pattern, re_search_2, mutually_exclusive_p)
3490         (re_match_2_internal, re_compile_pattern, re_comp, regcomp):
3491         Get rid of references to newline_anchor.
3492         (regcomp): Allocate and precompute a fastmap.
3494 2000-08-31  Gerd Moellmann  <gerd@gnu.org>
3496         * lread.c (openp): GCPRO local variable `filename'.
3498 2000-08-30  Stefan Monnier  <monnier@cs.yale.edu>
3500         * regex.h (struct re_pattern_buffer): Use size_t for used/allocated.
3502         * regex.c: Merge some changes from GNU libc.  Add prototypes.
3503         (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal):
3504         Use memcmp and memcpy instead of bcopy and bcmp.
3505         (init_syntax_once): Use ISALNUM.
3506         (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id.
3507         (REG_UNSET_VALUE): Remove.  Use NULL instead.
3508         (REG_UNSET, re_match_2_internal): Use NULL.
3509         (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND):
3510         New macros.
3511         (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS).
3512         (GET_UNSIGNED_NUMBER): Don't use ISDIGIT.
3513         (regex_compile): In handle_interval, return an error rather than try to
3514         unfetch the interval if we can't find the closing brace.
3515         Obey the RE_NO_GNU_OPS syntax bit.
3516         (TOLOWER): New macro.
3517         (regcomp): Use it.
3518         (regexec): Allocate regs.start and regs.end as one block.
3520 2000-08-30  Gerd Moellmann  <gerd@gnu.org>
3522         * xdisp.c (echo_area_display): Check display_completed instead
3523         of calling detect_input_pending.
3525         * dispnew.c (update_frame): Only set display_completed here; move
3526         the update_begin and update_end calls here from update_frame_1.
3527         (update_frame_1): Don't set display_completed here, don't call
3528         update_begin/update_end.
3530         * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters
3531         instead of store_frame_param.
3533 2000-08-29  Gerd Moellmann  <gerd@gnu.org>
3535         * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a
3536         desired window matrix hasn't been displayed, use the current row
3537         instead.  Make sure that only those frame rows are updated for
3538         which there exists a corresponding enabled desired row.
3539         
3540 2000-08-29  Miles Bader  <miles@gnu.org>
3542         * xfaces.c (default_face_vector): New function.
3543         (Finternal_merge_in_global_face): Use it instead of merge_face_vectors.
3545 2000-08-29  Gerd Moellmann  <gerd@gnu.org>
3547         * lread.c (openp): Prevent temporary string passed to
3548         Ffile_readable_p from being garbage collected.
3550 2000-08-28  Dave Love  <fx@gnu.org>
3552         * keymap.c (store_in_keymap): Add `static' to declaration.
3554 2000-08-28  Gerd Moellmann  <gerd@gnu.org>
3556         * emacs.c, callint.c, doc.c, editfns.c
3557         (toplevel) [HAVE_STRING_H]: Include string.h.
3558         (toplevel) [HAVE_STRINGS_H]: Include strings.h.
3559         (index): Remove prototypes which might conflict with non-standard
3560         definitions of index/strchr.
3562         * s/usg5-3.h (index): Define only if not HAVE_INDEX.
3563         (rindex): Define only if !HAVE_RINDEX.
3565         * s/sco5.h (bcopy, bzero, bcmp): Don't define.
3567         * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs.
3569 2000-08-28  Miles Bader  <miles@gnu.org>
3571         * xfaces.c (merge_face_vectors): Clear TO's :font attribute if
3572         made inconsistent by a font-related attribute in FROM.
3573         (merge_face_inheritance): Add function comment.
3575 2000-08-28  Kenichi Handa  <handa@etl.go.jp>
3577         * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with
3578         the 4th arg (PREV_EVENT) Qt to suppress input method.
3580 2000-08-27  Stefan Monnier  <monnier@cs.yale.edu>
3582         * regex.c: Indent cpp directives and remove parens after `defined'.
3583         (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place.
3584         (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition.
3585         (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY.
3586         (re_compile_pattern): Use size_t for length.
3587         (init_syntax_once): Move to a better place.
3588         * regex.h: Merge changes from GNU libc.  Indent cpp directives.
3589         (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning).
3591         * syntax.c (back_comment): Detect cases where a comment-starter is
3592         actually inside another comment as in:   /* a // b */ c // d \n.
3593         Make it clear that `comstart_pos' is unused for nested comments.
3595         * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes.
3596         (KEYMAPP): New macro.
3597         (Fkeymap_parent, Fset_keymap_parent): Use it.
3598         (fix_submap_inheritance): Mark it static.
3599         (define_as_prefix, describe_buffer_bindings, describe_command)
3600         (describe_translation, describe_map): Complete prototypes.
3602         * lisp.h (store_in_keymap, fix_submap_inheritance): Remove.
3604         * keyboard.c (menu_bar_item): Detect duplicate entries for all items
3605         to better match the key-lookup behavior.
3607 2000-08-27  Gerd Moellmann  <gerd@gnu.org>
3609         * xfaces.c (lface_fully_specified_p): Handle :inherit.
3610         (Finternal_set_lisp_face_attribute): Fix typo in error message.
3612 2000-08-27  Eli Zaretskii  <eliz@is.elta.co.il>
3614         * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o)
3615         (process.o, scroll.o, sysdep.o): Depend on keyboard.h.
3616         (xterm.o): Depend on coding.h
3618 2000-08-26  Kenichi Handa  <handa@etl.go.jp>
3620         * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and
3621         the corresponding '#endif'.
3623 2000-08-26  Miles Bader  <miles@gnu.org>
3625         * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX.
3626         * xfaces.c (QCinherit): New variable.
3627         (syms_of_xfaces): Initialize it.
3628         (LFACE_INHERIT): New macro.
3629         (Finternal_get_lisp_face_attribute)
3630         (merge_face_vector_with_property) 
3631         (Finternal_set_lisp_face_attribute): Deal with :inherit attribute.
3632         (check_lface_attrs): Allow new types of face height.  Check
3633         inherit attribute.
3634         (CYCLE_CHECK): New macro.
3635         (merge_face_inheritance): New function.
3636         (merge_face_vectors): Merge inherited faces too.  Add F and
3637         CYCLE_CHECK arguments.
3638         (merge_face_vector_with_property, Finternal_merge_in_global_face)
3639         (lookup_named_face, lookup_derived_face, realize_named_face)
3640         (face_at_string_position, face_at_buffer_position):  Supply
3641         new F and CYCLE_CHECK arguments to merge_face_vectors.
3642         (merge_face_heights): New function.
3643         (merge_face_vectors, merge_face_vector_with_property) 
3644         (Finternal_set_lisp_face_attribute): Call merge_face_heights to
3645         handle relative face heights.
3646         (lface_same_font_attributes_p): Compare heights using EQ.
3648 2000-08-26  Kenichi Handa  <handa@etl.go.jp>
3650         * charset.c (char_to_string): Check the character validity.
3651         (char_valid_p): If C is not less than MAX_CHAR, be sure to return
3652         0.
3654 2000-08-25  Stefan Monnier  <monnier@cs.yale.edu>
3656         * regex.c (PUSH_FAILURE_COUNT): New macro.
3657         (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG.
3658         Handle popping of a register's or a counter's data.
3659         (POP_FAILURE_POINT): Use the new name.
3660         (re_match_2_internal): Push counter data on the stack for succeed_n,
3661         jump_n and set_number_at and remove misleading dead code in succeed_n.
3663 2000-08-25  Gerd Moellmann  <gerd@gnu.org>
3665         * xdisp.c (redisplay_internal): If considering all windows on all
3666         frames, update the display for each frame as soon as possible,
3667         instead of first building all desired matrices for all frames, and
3668         then updating them all.
3669         (try_cursor_movement): Handle case that last_cursor.vpos is -1.
3671 2000-08-24  Gerd Moellmann  <gerd@gnu.org>
3673         * bytecode.c (mark_byte_stack): Add a comment.
3675         * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH) 
3676         (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is 
3677         a graphical frame.
3679 2000-08-24  Kenichi Handa  <handa@etl.go.jp>
3681         * minibuf.c (do_completion): Always use compare-string, not
3682         string-equal because the latter doesn't pay attention to
3683         multibyteness of strings.
3685         * process.c (create_process): Don't setup raw-text coding here.
3686         (Fopen_network_stream): Don't set coding->src_multibyte and
3687         coding->dst_multibyte here.
3688         (read_process_output): For process filter, return unibyte string
3689         if default-enable-multibyte-characters is nil.
3690         (send_process): If OBJECT is multibyte text, be sure to encoded it
3691         by the specified coding system for the process.  Otherwise, setup
3692         raw-text coding.
3693         (init_process): Don't initialize default-process-coding-system
3694         here.
3696 2000-08-23  Eli Zaretskii  <eliz@is.elta.co.il>
3698         * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix.
3699         <scroll-down-aggressively>: Likewise.
3701 2000-08-23  Kenichi Handa  <handa@etl.go.jp>
3703         * coding.c (encode_eol): Fix bug for the case of dst_bytes being
3704         zero.  Set coding->produced_char correctly.
3706 2000-08-22  Andrew Innes  <andrewi@gnu.org>
3708         * makefile.w32-in: New file.
3710         * unexw32.c (unexec): Ignore old_name, and use the actual location
3711         of the current executable instead.  Base new_name on this.
3713         * w32proc.c (create_child): Remove reference to security
3714         descriptor, which isn't needed and doesn't compile with mingw32.
3716         * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
3717         up dllimport attributes.
3718         (x_update_window_end): Update prototype.
3720         * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary
3721         extern, which screws up dllimport attributes.
3723         * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
3724         up dllimport attributes.
3726         * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which
3727         screws up dllimport attributes.
3729         * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
3730         up dllimport attributes.
3731         (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which
3732         screws up dllimport attributes.
3734         * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
3735         up dllimport attributes.
3737         * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which
3738         screws up dllimport attributes.
3740         * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which
3741         screws up dllimport attributes.
3743         * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
3744         up dllimport attributes.
3746         * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove
3747         unnecessary extern, which screws up dllimport attributes.
3748         (main): Ditto.
3750         * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
3751         up dllimport attributes.
3753         * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove
3754         unnecessary extern, which screws up dllimport attributes.
3756         * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which
3757         screws up dllimport attributes.
3759         * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws
3760         up dllimport attributes.
3762         * w32proc.c (IsValidLocale): Extern missing from mingw32 headers.
3764         * w32bdf.c (search_file_line): 
3765         (set_bdf_font_info): 
3766         (seek_char): 
3767         (w32_get_bdf_glyph): 
3768         (w32_BDF_to_x_font): Fix compile warnings.
3770         * w32menu.c: Include keyboard.h before frame.h.  Fix compile
3771         warnings.
3773         * w32select.c: Include keyboard.h before frame.h.
3775         * w32fns.c (max): Define macro.
3776         (JOHAB_CHARSET): Define if not known.
3777         (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known.
3778         (Fx_show_tip): Synch with X version.
3780         * w32xfns.c: Include keyboard.h before frame.h.
3782         * w32fns.c: Include keyboard.h before frame.h.
3784         * w32term.c: Include keyboard.h before frame.h.
3786         * fontset.c: Include keyboard.h before frame.h.
3788         * w32inevt.c: Include keyboard.h before frame.h.
3789         (MOUSE_MOVED): Define if not known.
3791         * minibuf.c: Include keyboard.h before frame.h.
3793         * keyboard.c: Include keyboard.h before frame.h.
3795         * indent.c: Include keyboard.h before frame.h.
3797         * dispnew.c: Include keyboard.h before frame.h.
3799         * buffer.c: Include keyboard.h before frame.h.
3801         * alloc.c: Include keyboard.h before frame.h.
3803         * print.c: Include keyboard.h before frame.h.
3805         * process.c: Include keyboard.h before frame.h.
3807         * scroll.c: Include keyboard.h before frame.h.
3809         * sysdep.c: Include keyboard.h before frame.h.
3811         * term.c: Include keyboard.h before frame.h.
3813         * window.c: Include keyboard.h before frame.h.
3815         * xdisp.c: Include keyboard.h before frame.h.
3816         Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE.
3818         * frame.c: Include keyboard.h before frame.h.
3820         * w32heap.h: Undefine min, max.
3822         * w32gui.h: Undefine min, max.
3824         * unexw32.c: Change PUCHAR to PCHAR.
3825         (PTR_TO_OFFSET): Cast ptr to unsigned char *.
3826         (relocate_offset): 
3827         (get_section_info): 
3828         (copy_executable_and_dump_data): Remove unnecessary static defs.
3829         (copy_executable_and_dump_data): Fix compile warnings.
3831         * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined.
3833         * w32console.c (min): Define macro.
3834         (clear_frame, write_glyphs): Fix compile warning.
3836         * w32proc.c (compare_env): 
3837         (find_child_console): Fix compile warning.
3839         * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr.  Use
3840         sys_errlist instead of _sys_errlist.
3841         (get_emacs_configuration_options): New function.
3843         * s/ms-w32.h (sys_nerr): Provide default definition.
3844         (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same
3845         name with _ prepended.
3846         (NSIG): Define if not known.
3847         (get_emacs_configuration): Provide extern declaration.
3848         (get_emacs_configuration_options): Provide extern declaration.
3849         (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options.
3851         * w32.c (gettimeofday): Use struct timeb, not struct _timeb.
3852         (map_w32_filename): 
3853         (read_unc_volume): Fix compile warning.
3855         * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock
3856         definitions from being used.
3858         * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd.
3860         * w32.c (unc_volume_file_attributes): 
3861         (open_unc_volume): Make arg const.
3863         * sysdep.c [WINDOWSNT]: Remove extern decl of errno.
3864         (read_input_waiting): Remove excess parameter.
3866         * w32.c (init_environment): Call _access.
3867         (check_windows_init_file): Call _close.
3868         (init_user_info): Call _putenv.
3869         (init_environment): Call _putenv and _strdup.
3870         (init_ntproc): Reset volume info cache on startup.
3872         * s/ms-w32.h (malloc, free, realloc, calloc): Rename if
3873         USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it
3874         cannot override the CRT malloc.
3876         * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested.
3877         (LINK_FLAGS): Append to original value of LINK_FLAGS.
3879         * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term
3880         unless we are linking with a static CRT.
3881         (RVA_TO_PTR): Cast result to unsigned char*.
3883         * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup.
3884         (add_volume_info): Use xstrdup.
3886 2000-08-22  Stefan Monnier  <monnier@cs.yale.edu>
3888         * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'.
3889         (do_completion, Fminibuffer_complete_word): Use it.
3890         (syms_of_minibuf): Turn completion-auto-help into a proper Lisp
3891         var so it can take non-boolean values.
3893 2000-08-21  Gerd Moellmann  <gerd@gnu.org>
3895         * editfns.c (find_field): Formatting changes.
3896         (toplevel): Some old-style function forward declarations 
3897         changed to prototypes, some new protypes added, some functions
3898         made static.
3900         * lisp.h (set_time_zone_rule): Add prototype.
3901         (use_dialog_box): External declaration.
3903         * keyboard.c (gen_help_event): Add parameter SIZE.
3904         (kbd_buffer_events_waiting): Slightly rewritten.
3905         (clear_event): New function.
3906         (kbd_buffer_get_event): Use it, and clear the input_events of
3907         HELP_EVENTs.
3908         (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and
3909         don't fill the newly created array with nils.
3910         (toplevel): Convert some old-style function forward declarations
3911         to prototypes.
3913         * keyboard.h (gen_help_event): Change prototype.
3915         * xterm.c (XTread_socket): Change calls to gen_help_event.
3917         * w32term.c (w32_read_socket): Change calls to gen_help_event.
3919         * eval.c (Fmacroexpand): Doc fix.
3921 2000-08-20  Jason Rumney  <jasonr@gnu.org>
3923         * w32term.h (x_display_info_for_display): Remove as this function
3924         does not exist on W32.
3926         * w32term.c (help_echo_window): New variable.
3927         (syms_of_w32term): staticpro it.
3928         (note_mode_line_highlight): Set it.
3929         (XTextExtents16): Removed as there is no equivalent on W32.
3930         (x_compute_glyph_string_overhangs): Incomplete body removed, as
3931         the X way of doing this will not work for W32.
3932         (w32_intersect_rectangles): Removed. Use IntersectRect API call.
3933         (x_draw_image_foreground):  Avoid drawing outside of the clip area
3934         when image doesn't have a mask.
3935         (note_mouse_highlight): Process overlays in the right order of
3936         priority. Set help_echo_window.
3937         (x_draw_bar_cursor): If cursor is on an image, draw a box cursor
3938         because that's more visible for large images.
3940         * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane
3941         name to single_keymap_panes.
3942         (w32_menu_show): Set wv->title when dealing with titles.
3943         (w32_menu_display_help): Call show_help_echo with OBJECT and POS.
3945 2000-08-21  Miles Bader  <miles@gnu.org>
3947         * minibuf.c (do_completion): Try again if we rewrite the input
3948         string, but no completion was done, so that any completion message
3949         will be correct.
3951 2000-08-20  Gerd Moellmann  <gerd@gnu.org>
3953         * xfaces.c (lface_equal_p): Compare strings differently.
3954         (Qtty_color_alist, Vtty_defined_color_alist): New variables.
3955         (realize_tty_face): Use them.
3956         (syms_of_xfaces): Initialize new variables.
3957         (map_tty_color): New function, extracted from realize_tty_face.
3958         (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default
3959         foreground or background color, store the new color name in the
3960         realized face; previous code trying to do this had no effect.
3961         (realize_tty_face): Use map_tty_color.
3962         (Fclear_face_cache): Set face_change_count and ensure thorough
3963         redisplay.
3965 2000-08-19  Gerd Moellmann  <gerd@gnu.org>
3967         * undo.c (record_first_change, record_marker_adjustment): Don't
3968         use XBUFFER on last_undo_buffer which might not be a buffer.
3970 2000-08-18  Kenichi Handa  <handa@etl.go.jp>
3972         * coding.c (decode_coding_string): Set members consumed,
3973         consumed_char, produced, produced_char of *coding correctly.  If
3974         decode_coding doesn't consume any byte, don't try anymore.
3975         (encode_coding_string): Likewise.
3977 2000-08-18  Gerd Moellmann  <gerd@gnu.org>
3979         * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the
3980         conditional have void type, for Standard C compilers.
3982         * xdisp.c (redisplay_internal): Compare windows for equality with
3983         EQ, instead of applying XWINDOW to something that might not
3984         be a window.
3985         
3986 2000-08-18  Kenichi Handa  <handa@etl.go.jp>
3988         * fontset.c (Finternal_char_font): Search only the selected frame
3989         for a window of the current buffer.
3991 2000-08-18  Gerd Moellmann  <gerd@gnu.org>
3993         * minibuf.c (do_completion): Use EQ instead of `!=' to compare
3994         Lisp_Objects.
3996         * keyboard.c (kbd_buffer_get_event): Handle the case that the
3997         second half of a HELP_EVENT is found at the start of kbd_buffer.
3999 2000-08-18  Miles Bader  <miles@gnu.org>
4001         * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl.
4003         * editfns.c (save_restriction_save): Rewrite to use markers.
4004         (save_restriction_restore): Rewrite to understand new form of data
4005         saved by save_restriction_save.
4006         (Fsave_restriction): Remove cautionary note in doc-string.
4008 2000-08-17  Gerd Moellmann  <gerd@gnu.org>
4010         * fileio.c (build_annotations): Add a comment explaining the
4011         return value of format-annotate-function.  Replace a spurious call
4012         to Flength with a CONSP test.  Call format-annotate-function with
4013         a fifth arg specifying how many times the function is been called
4014         in a row, to let it choose temporary buffers appropriately.
4016 2000-08-17  Dave Love  <fx@gnu.org>
4018         * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL.  Don't
4019         declare make_temp_name twice.
4021         * lread.c: Prototype readevalloop, load_unwind,
4022         load_descriptor_unwind.
4023         (unreadpure): Give it an arg.
4025         * unexalpha.c: Prototype fatal_unexec, mark_x,
4026         update_dynamic_symbols.  Declare unexec as void.
4028         * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>.
4029         [!HAVE_TERMCAP_H]: Prototype tputs, tgoto.
4031         * alloc.c (lisp_malloc): Declare with POINTER_TYPE.
4032         [SYSTEM_MALLOC]: Make decls in malloc.h conditional on
4033         DOUG_LEA_MALLOC.
4035         * alloca.c: Use #error.
4036         [POINTER_TYPE]: Use it.
4038         * eval.c (Fdefvar): Doc fix.
4040         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid
4041         INITIALIZE_INTERVAL.
4043         * buffer.h: Avoid DECLARE_INTERVALS.
4045         * config.in: Add size_t.
4047 2000-08-17  Eli Zaretskii  <eliz@is.elta.co.il>
4049         * w16select.c (set_clipboard_data): If there's not enough memory
4050         to put text into clipboard, return 1, as Fw16_set_clipboard_data
4051         expects.  In case of other failures, return 3.
4052         (system_error_msg): New error message.
4053         (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print
4054         system_error_msg.
4056 2000-08-16  Gerd Moellmann  <gerd@gnu.org>
4058         * term.c (write_glyphs): Also turn off inverse video after turning
4059         off other appearances in case TS_exit_attribute_mode is not equal
4060         to TS_end_standout_mode.
4061         (insert_glyphs): Turn inverse video on/off for each run of glyphs
4062         with the same face.
4063         (turn_off_face): Reset standout_mode only if
4064         TS_exit_attribute_mode has been output and TS_exit_attribute_mode
4065         is equal to TS_end_standout_mode.
4067 2000-08-16  Kenichi Handa  <handa@etl.go.jp>
4069         * coding.c (encode_coding): Fix the bug of not flushing ISO escape
4070         sequence at the end of the source block.
4072         * ccl.c (Fccl_program_p): Docstring modified.
4073         (Fccl_execute): Likewise.
4074         (Fccl_execute_on_string): Likewise.
4076 2000-08-16  Eli Zaretskii  <eliz@is.elta.co.il>
4078         * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *.
4080 2000-08-16  Kenichi Handa  <handa@etl.go.jp>
4082         The following changes are mainly to fix bugs of
4083         encode/decode-coding-string failing if encoding/decoding return
4084         CODING_FINISH_INSUFFICIENT_DST.  In addition, delete the global
4085         variable conversion_buffer.
4087         * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char,
4088         decrement dst_end to avoid buffer overflow in the later call of
4089         string_as_multibyte
4091         * coding.h (conversion_buffer_size, conversion_buffer)
4092         (get_conversion_buffer): Extern deleted.
4094         * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted.
4095         (conversion_buffer, conversion_buffer_size): Variables deleted.
4096         (get_conversion_buffer): Function deleted.
4097         (struct conversion_buffer): New structure.
4098         (MAX_ALLOCA): New macro.
4099         (allocate_conversion_buffer): New macro.
4100         (extend_conversion_buffer, free_conversion_buffer): New functions.
4101         (ccl_coding_driver): Set coding->result.
4102         (decode_coding): Set coding->result to CODING_FINISH_NORMAL if
4103         this is the last block of source.
4104         (encode_coding): Likewise.  Handle the source block as the last
4105         one only when the whole source text is consumed.
4106         (decode_coding_string): Handle the case that the output buffer is
4107         too small to decode the whole source text.  Use
4108         allocate_conversion_buffer, extend_conversion_buffer and
4109         free_conversion_buffer, not get_conversion_buffer.
4110         (encode_coding_string): Likewise.
4111         (init_coding): Function deleted.
4112         (init_coding_once): Delete code to initialize
4113         conversion_buffer_size.
4115         * emacs.c (main): Don't call init_coding.
4117         * msdos.c (IT_write_glyphs): Use a locally declared
4118         conversion_buffer.
4120         * term.c (write_glyphs): Use a locally declared conversion_buffer.
4121         (insert_glyphs): Likewise.
4123         * w32console.c (write_glyphs): Use a locally declared
4124         conversion_buffer.
4126 2000-08-15  Eli Zaretskii  <eliz@is.elta.co.il>
4128         * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame
4129         member of display_info is NULL.
4131 2000-08-15  Gerd Moellmann  <gerd@gnu.org>
4133         * alloc.c (compact_small_strings): Use safe_bcopy, add an
4134         assertion.
4136         * term.c (turn_off_face): Reset standout_mode when resetting
4137         appearances with capability `me'.
4138         (write_glyphs): Switch on inverse video before each face change.
4140 2000-08-14  Dave Love  <fx@gnu.org>
4142         * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk.
4143         [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk.
4144         (lisp_free): Declare and make static.
4146         * window.c: Fix embedded comment.
4147         (syms_of_window): Fix doc string.
4149 2000-08-14  Gerd Moellmann  <gerd@gnu.org>
4151         * keymap.c (push_key_description): If C without modifiers is < 32, 
4152         make sure to print `C-' before `M-', like in the manual.
4154 2000-08-11  Gerd Moellmann  <gerd@gnu.org>
4156         * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially
4157         since they aren't relocated anymore.
4158         (sxhash_string): Make sure returned hash code fits in a Lisp
4159         integer.
4161         * xdisp.c (try_cursor_movement): Fix handling of cursor in
4162         partially visible line which is smaller than the window's
4163         height.
4165 2000-08-11  Kenichi Handa  <handa@etl.go.jp>
4167         * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to
4168         the multibyte form of eight-bit-control characters. 
4169         (Fccl_execute_on_string): Initialize ccl->multibyte.
4171         * ccl.h (struct ccl_program): New member multibyte.
4173         * coding.c (ccl_coding_driver): Initialize ccl->multibyte.
4175 2000-08-11  Kenichi Handa  <handa@etl.go.jp>
4177         * regex.c (regex_compile) <normal_char>: Pay attention to
4178         multibyteness.
4179         (analyse_first) <exactn>: Setup fastmap correctly for
4180         eight-bit-control characters.
4182 2000-08-11  Kenichi Handa  <handa@etl.go.jp>
4184         * termhooks.h (enum event_kind): New member
4185         multibyte_char_keystroke.
4187         * keyboard.c (make_lispy_event): Handle the new event type
4188         multibyte_char_keystroke.
4190         * xterm.c: Include coding.h.
4191         (XTread_socket): Work around a bug of XmbLookupString.  If the
4192         input is from XIM, decode it according to the current locale.  In
4193         that case, generate multibyte_char_keystroke events.
4195 2000-08-11  Kenichi Handa  <handa@etl.go.jp>
4197         * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon.
4198         (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy.
4200 2000-08-10  Gerd Moellmann  <gerd@gnu.org>
4202         * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable.
4203         (TRACE_MOVE) [GLYPH_DEBUG]: New macro.
4204         (move_it_in_display_line_to): Record iterator's ascent and descent
4205         before producing glyphs, and restore them when we know the glyph
4206         doesn't fit on the line.
4207         (move_it_to): Restructured so that it's easier to debug.  If
4208         moving to a vpos, and not moving to an x or character position,
4209         stop as soon as the specified vpos is reached; don't move further
4210         into that line because that might change the computed line height.
4211         (try_cursor_movement): New function, extracted from the cursor
4212         movement branch of redisplay_window.  If ending on a partially
4213         visible line, don't try to scroll if the cursor line is taller
4214         than the window.
4215         (redisplay_window): Use try_cursor_movement.
4217         * window.c (Fwindow_end): Rewritten to not use Fvertical_motion,
4218         because that function doesn't cope with variable-height lines.
4220         * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a
4221         box cursor because that's better visible for large images.
4222         
4223 2000-08-10  Miles Bader  <miles@gnu.org>
4225         * w32term.c (note_mouse_highlight): Update calls to overlays_at.
4227 2000-08-10  Gerd Moellmann  <gerd@gnu.org>
4229         * xdisp.c (Vmessages_buffer_name): New variable.
4230         (message_dolog): Use it.
4231         (syms_of_xdisp): Initialize it.
4233 2000-08-10  Eli Zaretskii  <eliz@is.elta.co.il>
4235         * msdos.c (IT_note_mouse_highlight): Update the calls to
4236         overlays_at.
4237         (toplevel) <kbd_buffer_store_event>: Remove prototype, it's
4238         redundant now that keyboard.h is included.
4240 2000-08-09  Eli Zaretskii  <eliz@is.elta.co.il>
4242         * keyboard.c (kbd_buffer_events_waiting): New function.
4244         * keyboard.h (kbd_buffer_events_waiting): Add prototype.
4246         * msdos.c: Include keyboard.h.
4247         (XMenuActivate): Empty no_event events from the event buffer.  If
4248         no events are left after that, call clear_input_pending.
4249         (mouse_clear_clicks): New function, code moved from mouse_init.
4250         (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the
4251         mouse driver to ``forget'' any past clicks.
4253         * Makefile.in (msdos.o): Depend on keyboard.h.
4255 2000-08-09  Gerd Moellmann  <gerd@gnu.org>
4257         * lisp.h (input_pending): External declaration.
4259         * dispextern.h (Qredisplay_dont_pause): Declare extern.
4260         
4261         * xdisp.c (echo_area_display): Display thoroughly if input is
4262         pending.  Bind redisplay-dont-pause to t during the redisplay.
4263         in case input is pending.
4265         * dispnew.c (Qredisplay_dont_pause): New variable.
4266         (syms_of_display): Initialize and staticpro it.
4267         (update_frame_1): Don't interrupt the display for pending input if
4268         redisplay_dont_pause is set.
4269         
4270         * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P.
4272         * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
4274 2000-08-09  Miles Bader  <miles@lsi.nec.co.jp>
4276         * callproc.c (Fcall_process): Terminate the unwind-protect around
4277         the post-read-conversion of coding system.
4279         * buffer.c (overlays_at): Add CHANGE_REQ parameter.
4280         (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it.
4281         * buffer.h (overlays_at): Update prototype.
4282         * xdisp.c (next_overlay_change): Update call to overlays_at.
4283         * xfaces.c (face_at_buffer_position): Likewise.
4284         * textprop.c (Fget_char_property): Likewise.
4285         * xterm.c (note_mouse_highlight): Likewise.
4287         * minibuf.c (do_completion): Don't consider a simple change of
4288         case as `completion'.
4290 2000-08-08  Ken Raeburn  <raeburn@gnu.org>
4292         * keyboard.c (syms_of_keyboard): Initialize
4293         last_point_position_buffer.
4294         * undo.c (record_delete): Make sure last_point_position_buffer is
4295         a buffer before comparing pointers.
4297         * coding.h (decode_coding_string): Declare.
4299         * intervals.h (Fprevious_single_char_property_change): Declare.
4301         * textprop.c (Fprevious_single_char_property_change): Don't do
4302         arithmetic directly on lisp objects.
4304         * editfns.c (find_field): Use EQ, not ==, to compare Lisp
4305         objects.
4307         * keyboard.h (menu_item_eval_property): Declare.
4309         * xdisp.c (message_dolog): Save and protect string "*Messages*" to
4310         reuse as buffer name, instead of recreating (and discarding) every
4311         time a message is logged.
4312         (with_echo_area_buffer): Make callback arg A2 a lisp object.
4313         (current_message_1, truncate_message_1, set_message_1)
4314         (display_echo_area_1, resize_mini_window_1): Signatures changed.
4315         (current_message, truncate_echo_area, display_echo_area)
4316         (resize_echo_area_axactly): Changed calls.
4318         * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a
4319         Lisp object.
4320         (Ffind_coding_systems_region_internal): First argument to Fappend
4321         must be an integer, not a Lisp object.
4323 2000-08-08  Kenichi Handa  <handa@etl.go.jp>
4325         * charset.c (Fchar_width): Doc fix.
4327 2000-08-08  Gerd Moellmann  <gerd@gnu.org>
4329         * charset.c (Fstring_width): Doc fix.
4331 2000-08-07  Gerd Moellmann  <gerd@gnu.org>
4333         * xdisp.c (start_display): When starting display on a continuation
4334         line, clear ascent and descent members of the iterator structure;
4335         the height of the continued line does not affect the height of the
4336         continuation line.
4337         (make_cursor_line_fully_visible): Do nothing if cursor is on a
4338         line taller than the window.
4339         (redisplay_window) <forced window start>: Handle case that the
4340         middle of the window is not found in any row.
4341         (dump_glyph_row): Show more information.
4342         (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the
4343         first text line in a glyph matrix.
4345         * xterm.c (x_draw_image_foreground): Avoid drawing outside
4346         of the clip area when image doesn't have a mask.
4348         * fns.c (sweep_weak_table): Fix survival conditions for
4349         key-or-value and key-and-value weakness.
4351         * .gdbinit (xhashtable): New command.
4353         * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked
4354         tables out of the list of all weak hash tables.
4356         * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and
4357         a new buffer is created, make sure echo_area_buffer[] references
4358         the new buffer.
4360 2000-08-07  Eli Zaretskii  <eliz@is.elta.co.il>
4362         * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in
4363         the doc string.
4365 2000-08-07  Kenichi Handa  <handa@etl.go.jp>
4367         * syntax.c (skip_chars): Fix previous change.  Make the handling
4368         of unibyte string consistent with that of regex search.
4370 2000-08-05  Gerd Moellmann  <gerd@gnu.org>
4372         * xmenu.c (popup_get_selection): Use xfree instead of free.
4374         * fileio.c (Finsert_file_contents): Use xfree instead of free.
4376         * editfns.c (Ftranspose_regions): Use xfree instead of free.
4378         * callproc.c (child_setup): Use xfree instead of free.
4380         * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc
4381         instead of malloc.
4382         (run_mac_command, closedir): Use `xfree' instead of `free'.
4384         * keymap.c (current_minor_maps): Use xmalloc instead of malloc.
4386         * eval.c (error): Use xfree instead of free.
4388         * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'.
4390         * fns.c: Replace `illegal' with `invalid'.
4391         (Fmake_hash_table, make_hash_table): Allow table size of 0.
4393 2000-08-05  Kenichi Handa  <handa@etl.go.jp>
4395         * syntax.c (skip_chars): Fix handling of multibyte<->unibyte
4396         conversion.
4398 2000-08-04  Noah Friedman  <friedman@splode.com>
4400         * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in
4401         docstring.
4403 2000-08-04  Gerd Moellmann  <gerd@gnu.org>
4405         * syntax.c (skip_chars): Fix typo in error message.
4407 2000-08-04  Andreas Schwab  <schwab@suse.de>
4409         * m/ia64.h: Moved from s/ia64.h.
4411 2000-08-04  Kenichi Handa  <handa@etl.go.jp>
4413         * process.c (read_process_output): Big simplification.  Handle
4414         composition and post-read-conversion of coding system correctly.
4415         (send_process): Handle composition correctly.
4417         * callproc.c (Fcall_process): Handle post-read-conversion of
4418         coding system if any.
4420         * coding.c (decode_coding_iso2022): More strict check for handling
4421         single shifting.
4422         (coding_restore_composition): Pay attention to the case that
4423         cmp_data is not set properly (because of invalid code in the
4424         source text).
4425         (run_pre_post_conversion_on_str): Include text properties in the
4426         resulting string.
4427         (decode_coding_string): Set members of coding correctly.
4429 2000-08-03  Gerd Moellmann  <gerd@gnu.org>
4431         * s/ia64.h: New file.
4433         * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues):
4434         Use NULL instead of 0 at the end of variable argument list of
4435         XtVaGetValues and XtVaSetValues, because 0 fails on systems where
4436         sizeof (int) < sizeof (void *).
4438         * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end
4439         of variable argument lists of XtVaGetValues and XtVaSetValues.
4441         * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of
4442         variable argument lists of XtVaGetValues and XtVaSetValues.
4444 2000-08-02  Gerd Moellmann  <gerd@gnu.org>
4446         * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE.
4447         (xrealloc, xmalloc): Use size_t.  Some callers adjusted.
4449         * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change
4450         prototype.
4452         * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter
4453         in call to Fsingle_key_description.
4455         * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES.
4456         Callers changed.
4458 2000-08-02  Colin Walters <walters@cis.ohio-state.edu>
4460         * window.c (display_buffer_reuse_frames): New variable.
4461         (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse
4462         frames displaying BUFFER.
4463         (syms_of_window): Define Lisp variable
4464         display-buffer-reuse-frames.
4466 2000-08-01  Miles Bader  <miles@gnu.org>
4468         * editfns.c (Fconstrain_to_field): Fix the conditions for deciding
4469         when to constrain NEW_POS (they were pretty screwed up before).
4471 2000-07-31  Eli Zaretskii  <eliz@is.elta.co.il>
4473         * msdos.c (run_msdos_command): Save and restore the master
4474         environment, for the case that child_setup signals an error.
4475         When mirroring slashes in DOS shell commands, don't fail when
4476         argv[2] has embedded blanks.
4477         (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions.
4478         (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons.
4479         (dos_ttraw): Call mouse_setup_buttons.
4481         * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of
4482         using alloca; free it after run_msdos_command returns.
4484 2000-07-27  Dave Love  <fx@gnu.org>
4486         * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't
4487         define.
4488         [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently
4489         working.
4491         * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define.
4493 2000-07-27  Eli Zaretskii  <eliz@is.elta.co.il>
4495         * editfns.c (lisp_time_argument): Fix last change.
4497 2000-07-27  Gerd Moellmann  <gerd@gnu.org>
4499         * fns.c (Fdelete): Make it work on vectors and strings in addition
4500         to lists.
4502         * fns.c (Qkey_or_value, Qkey_and_value): New variables.
4503         (syms_of_fns): Initialize new variables.
4504         (sweep_weak_table): Handle weakness `key-or-value' and
4505         `key-and-value'.
4506         (Fmake_hash_table): Recognize `key-and-value' and `key-or-value'
4507         weakness, with t meaning the same as `key-and-value'.
4509 2000-07-27  Kenichi Handa  <handa@etl.go.jp>
4511         * coding.h (struct coding_system): Member safe_charset deleted.
4513         * coding.c (Qsafe_charsets): This variable deleted.
4514         (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): New
4515         variables.
4516         (coding_safe_chars): New function.
4517         (CODING_SAFE_CHAR_P): New macro.
4518         (CHARSET_OK): New arg C.  Call CODING_SAFE_CHAR_P instead of
4519         checking safe_charsets member of the coding system.  Caller
4520         changed.
4521         (detect_coding_iso2022): New local variable safe_chars.
4522         (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking
4523         safe_charsets member of the coding system.
4524         (decode_coding_iso2022): New local variable safe_chars.
4525         (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here.
4526         (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise.
4527         (ENCODE_ISO_CHARACTER): Arguments changed.  Caller changed.
4528         (ENCODE_UNSAFE_CHARACTER): New macro.
4529         (encode_coding_iso2022): New local variable safe_chars.  Check
4530         unsafe chars.
4531         (setup_coding_system): Delete the code to initialize
4532         coding->safe_charses
4533         (intersection, find_safe_codings): New functions.
4534         (Ffind_coding_systems_region_internal): New function.
4535         (syms_of_coding): Defsubr it.  Initialize Qsafe_chars,
4536         Qsafe_cding_system.  Make Vchar_coding_system_table a Lisp
4537         variable and initialize it.
4539         * fns.c (char_table_ref_and_index): New function.
4541         * lisp.h (char_table_ref_and_index): Add prototype.
4543 2000-07-26  Sam Steingold  <sds@gnu.org>
4545         * editfns.c (lisp_time_argument): Added third argument `usec'.
4546         (Ffloat_time): New built-in Lisp function.
4548 2000-07-26  Gerd Moellmann  <gerd@gnu.org>
4550         * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits
4551         for the character code.
4553         * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and
4554         GNU/Linux.
4556         * xmenu.c (menu_highlight_callback): Call show_help_echo directly
4557         if called for a popup menu.
4558         (xmenu_show): Store help string in widget values.
4560 2000-07-26  Dave Love  <fx@gnu.org>
4562         * syswait.h: Move some definitions.
4563         (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex.
4564         [!HAVE_SYS_WAIT_H]: Define things unconditionally.   More
4565         perspicuous definitions.
4566         (WTERMSIG): Fix bit pattern used.
4568 2000-07-26  Kenichi Handa  <handa@etl.go.jp>
4570         * print.c (print_object): If vector printing is truncated, print
4571         "..." to indicate it as well as the case of list printing.
4573 2000-07-25  Gerd Moellmann  <gerd@gnu.org>
4575         * xdisp.c (next_element_from_display_vector): Improve comments.
4577         * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits
4578         for the character code, and the rest for the face id as in 20.x.
4579         (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly.
4581         * window.c (window_display_table): Cleaned up.
4583         * syntax.c (Fforward_word): Add last arg nil in call of
4584         Fconstrain_to_field.
4586 2000-07-25  Eli Zaretskii  <eliz@is.elta.co.il>
4588         * fileio.c (Frename_file) [DOS_NT]: If the file names are
4589         identical but for the letter-case, don't call
4590         barf_or_query_if_file_exists.
4592 2000-07-25  Miles Bader  <miles@gnu.org>
4594         * editfns.c (find_field): Honor special `boundary' fields.
4595         (Qboundary): New variables.
4596         (syms_of_editfns): Initialize Qboundary.
4597         (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument.
4598         Use scan_buffer instead of find_before_next_newline, because it
4599         allows us to detect the boundary case where there's a newline at
4600         the search limit.
4601         * lisp.h (Fconstrain_to_field): Update external declaration.
4603 2000-07-24  Gerd Moellmann  <gerd@gnu.org>
4605         * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks
4606         if that is nil.
4608 2000-07-24  Dave Love  <fx@gnu.org>
4610         * s/sunos4-0.h, s/sol2.h:
4611         (LIBS_TERMCAP): Move from m/sparc.h.
4613         * m/sparc.h (TERMINFO): Moved to system files (probably only
4614         relevant for sunos4 judging by its vintage).
4615         (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on
4616         __arch64__.
4618 2000-07-24  Eli Zaretskii  <eliz@is.elta.co.il>
4620         * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane
4621         name to single_keymap_panes.
4623 2000-07-24  Andreas Schwab  <schwab@suse.de>
4625         * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil.
4627 2000-07-24  Gerd Moellmann  <gerd@gnu.org>
4629         * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT
4630         parameters instead of using int parameters.  Expect FN to accept
4631         EMACS_INT parameters.
4632         (display_echo_area, resize_echo_area_axactly, current_message)
4633         (truncate_echo_area, set_message_1): Call with_echo_area_buffer
4634         with new argument list.
4635         (resize_mini_window_1): New callback function.
4636         (current_message_1, truncate_message_1, set_message_1): Change
4637         parameter lists to the new format expected by
4638         with_echo_area_buffer.
4640 2000-07-24  Kenichi Handa  <handa@etl.go.jp>
4642         * fontset.c (fontset_ref): Remove INLINE declaration.
4643         (fontset_ref_via_base): Likewise.
4644         (Fset_fontset_font): Convert FAMILY and REGISTRY specifications
4645         to downcase.
4647 2000-07-23  Eli Zaretskii  <eliz@is.elta.co.il>
4649         * msdos.c (IT_note_mouse_highlight): Process overlays in the
4650         correct order of priority.  If help echo was found in an overlay,
4651         use that overlay as the object in which the help echo was found.
4653 2000-07-22  Miles Bader  <miles@gnu.org>
4655         * textprop.c (Fprevious_single_char_property_change): The initial
4656         property value should be from the position preceding POSITION, not
4657         following it.
4659 2000-07-22  Eli Zaretskii  <eliz@is.elta.co.il>
4661         * coding.c (syms_of_coding): Doc fix for
4662         inhibit-iso-escape-detection.
4664 2000-07-21  Gerd Moellmann  <gerd@gnu.org>
4666         * xterm.c (note_mouse_highlight): Process overlays in the right
4667         order of priority.
4669         * keyboard.c (show_help_echo, gen_help_event): Extend comments.
4671         * xterm.c (note_mouse_highlight): If help-echo was found in an
4672         overlay, use that overlay as the object in which the help was
4673         found.
4675         * window.c (foreach_window_1): Fix typo reversing an if-condition.
4677         * window.c (foreach_window): Instead of a fake variable argument
4678         list, take one USER_DATA argument.
4679         (foreach_window_1): Likewise, and call callback functions with two
4680         args, the window and USER_DATA.
4681         (struct check_window_data): New struct.
4682         (check_window_containing): Use it.
4683         (window_from_coordinates): Set up a struct check_window_data for
4684         foreach_window.
4685         (add_window_to_list, freeze_window_start): Change parameters
4686         according to new calling convention.
4688         * window.h (foreach_window): Change prototype.
4690         * buffer.c (Fprevious_overlay_change): Avoid memory leak.
4692 2000-07-21  Eli Zaretskii  <eliz@is.elta.co.il>
4694         * xmenu.c (menu_help_callback): Call show_help_echo with
4695         additional arguments OBJECT and POS.
4697 2000-07-21  Kenichi Handa  <handa@etl.go.jp>
4699         * data.c (Faset): Allow storing any multibyte character in a
4700         string.  Convert unibyte string to multibyte if necessary.
4702         * xfns.c (x_encode_text): New function.
4703         (x_set_name): Use x_encode_text.
4704         (x_set_title): Likewise.
4706         * xselect.c (lisp_data_to_selection_data): Use x_encode_text.
4708         * xterm.h (x_encode_text): Add prototype.
4710 2000-07-20  Dave Love  <fx@gnu.org>
4712         * ccl.c (Fccl_execute_on_string): Don't check xmalloc return.  Use
4713         xfree, not free.
4715 2000-07-20  Eli Zaretskii  <eliz@is.elta.co.il>
4717         * msdos.c (help_echo_window): New variable.
4718         (syms_of_msdos): Initialize and staticpro it.
4719         (IT_note_mode_line_highlight): Set help_echo_window.
4720         (IT_note_mouse_highlight): Ditto.
4721         (dos_rawgetc): Store help_echo_window in the second event produced
4722         for HELP_EVENTs.
4724         * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight):
4725         Record the object that generated the help echo and the position of
4726         that object in help_echo_object and help_echo_pos.  Record that
4727         some glyphs in a row are displayed in mouse-face.
4728         (IT_update_begin): Don't clear mouse highlight unless one of the
4729         enabled glyph rows is marked as being displayed in mouse-face.
4730         (dos_rawgetc): Generate 2 events for HELP_EVENT.  Pass the object
4731         and position recorded in help_echo_object and help_echo_pos to the
4732         event queue.
4733         (IT_menu_display): Accept a new argument PN: the pane number of
4734         the current menu pane.  Record the pane number and the item
4735         number of the item which has associated help string.
4736         (XMenuActivate): Update the prototype for help_callback in
4737         function declaration.  Call IT_menu_display with the current menu
4738         pane number as an additional argument.  Call help_callback with
4739         two additional arguments: the pane number and the item number of
4740         the menu item associated with the help text.
4741         (help_echo_object, help_echo_pos): New variables.
4742         (syms_of_msdos): Initialize them and staticpro help_echo_object.
4744         * msdos.h (XMenuActivate): Update prototype.
4746 2000-07-19  Gerd Moellmann  <gerd@gnu.org>
4748         * xdisp.c (with_echo_area_buffer): Call FN with more arguments.
4749         Add some more prototypes.
4751         * xterm.c, xterm.h: Add some more prototypes.
4753         * lisp.h (Fnext_single_char_property_change): Add prototype.
4755         * dispnew.c (direct_output_for_insert): Remove confusing
4756         outer local variable mouse_face_overwritten_p.
4757         (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG.
4759         * alloc.c (allocate_string_data): Don't copy old string contents.
4761 2000-07-19  Kenichi Handa  <handa@etl.go.jp>
4763         * coding.c (code_convert_region): Delete text properties before
4764         shrinking the conversion region.
4766 2000-07-18  Gerd Moellmann  <gerd@gnu.org>
4768         * dispnew.c (update_text_area): Write the whole row if it
4769         has mouse-face in it.
4771         * xfaces.c (face-alternative-font-family-alist): Remove
4772         DEFVAR_LISP; staticpro instead.
4774         * xmenu.c (menu_help_callback): Call show_help_echo with
4775         new arguments.
4777         * keyboard.c (show_help_echo): Add parameter WINDOW.
4778         (read_char): Call show_help_echo with window extracted from Lisp
4779         help event.
4780         (gen_help_event): Add parameter WINDOW.
4782         * keyboard.h (show_help_echo, gen_help_event): Change prototypes.
4784         * xterm.c (help_echo_window): New variable.
4785         (note_mouse_highlight, note_tool_bar_highlight): Set
4786         help_echo_window.
4787         (XTread_socket): Pass help_echo_window to gen_help_event.
4788         (syms_of_xterm): Initialize and staticpro help_echo_window.
4790 2000-07-18  Dave Love  <fx@gnu.org>
4792         * Makefile.in: Fix dependencies of blockinput.h on atimer.h,
4793         systime.h.
4795 2000-07-18  Gerd Moellmann  <gerd@gnu.org>
4797         * alloc.c (allocate_string_data): If string had already data
4798         assigned, copy old contents to new string data.
4800         * coding.c (syms_of_coding): Fix typo in spelling of variable
4801         `inhibit-iso-escape-detection'.
4803         * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE.
4805         * Makefile.in: Add dependencies on dispextern.h.
4806         (alloca.o): Don't define malloc and define EMACS_FREE instead of
4807         `free'; both can conflict with system header files.
4809 2000-07-18  Kenichi Handa  <handa@etl.go.jp>
4811         * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is
4812         undefined.
4814 2000-07-18  Dave Love  <fx@gnu.org>
4816         * window.c (Fwindow_list): Declare arg `window'.
4818 2000-07-18  Kenichi Handa  <handa@etl.go.jp>
4820         * coding.c (setup_coding_system): Don't override the explicitly
4821         specified designations.
4823 2000-07-15  Miles Bader  <miles@gnu.org>
4825         * editfns.c (char_property_eq, char_property_stickiness): Renamed
4826         from `text_property_eq' and `text_property_stickiness', respectively.
4827         (find_field, Fconstrain_to_field, char_property_eq)
4828         (char_property_stickiness): Changed to call char-property functions
4829         instead of text-property-only ones.
4831         * textprop.c (Fnext_single_char_property_change): Made a subr (was
4832         `next_single_char_property_change').  Do more error checking, and
4833         cleanup limit behavior.
4834         (Fprevious_single_char_property_change): New function.
4835         (syms_of_textprop): Initialize new subrs.
4837         * xdisp.c (display_prop_end, invisible_text_between_p):
4838         Call Fnext_single_char_property_change instead of
4839         next_single_char_property_change.
4841 2000-07-15  Jason Rumney  <jasonr@gnu.org>
4843         * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree
4844         after menu is finished with.
4845         (add_menu_item): Only consider wv->title as a menu title.
4846         (w32_menu_display_help): Add OBJECT and POS to show_help_echo.
4848         * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a
4849         null title.
4850         (FONT_REGEXP): Remove unused macro, and its sub-components.
4851         (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts.
4853         * w32term.c (help_echo_object, help_echo_pos): New variables.
4854         (note_mode_line_highlight): Store additional information about the
4855         help-echo in help_echo_object and help_echo_pos.  Check both
4856         `local-map' and `keymap' properties for changing the cursor
4857         (note_mouse_highlight): Store additional information about the
4858         help-echo in help_echo_object and help_echo_pos.
4859         (note_tool_bar_highlight): Set help_echo_object to nil and
4860         help_echo_pos to -1.
4861         (w32_read_socket): Use gen_help_event instead of filling
4862         input_events manually.
4863         (syms_of_w32term): Staticpro help_echo_object.
4864         (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If
4865         set, arrange for a mouse-highlight redisplay in
4866         XTframe_up_to_date.
4867         (x_clear_mouse_face): New function.
4868         (w32_redisplay_interface): Add pointer to x_clear_mouse_face.
4869         (x_update_window_begin): No need to turn off the mouse
4870         highlight here.
4871         (show_mouse_face): Set the mouse_face_p flag of glyph rows
4872         depending on whether they contain glyphs highlighted in
4873         mouse-face.
4874         (x_fill_stretch_glyph_string): Consume runs of stretch
4875         glyphs instead of a single one.
4876         (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
4877         with new argument list.
4878         (x_set_glyph_string_gc): Make sure the face's GC is valid.
4879         (x_append_glyph, x_append_composite_glyph)
4880         (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
4881         changes in struct glyph starting 1999-12-27. See comments for
4882         xterm.c on 2000-07-05.
4884 2000-07-14  Sam Steingold  <sds@gnu.org>
4886         * xfaces.c (realize_x_face): Fix the last patch:
4887         check `default_face' before dereferencing.
4889 2000-07-14  Dave Love  <fx@gnu.org>
4891         * syntax.c (back_comment): Add null default in switch (for pcc).
4893 2000-07-14  Kenichi Handa  <handa@etl.go.jp>
4895         * xfaces.c (realize_x_face): Make fontset using the base of the
4896         default_face's fontset, not using the default fontset.
4898         * coding.c (inhibit_iso_escape_detection): New variable.
4899         (syms_of_coding): Make it a Lisp variable.
4900         (detect_coding_iso2022): If inhibit_iso_escape_detection is
4901         nonzero, ignore ISO2022's escape sequence.
4903 2000-07-14  Gerd Moellmann  <gerd@gnu.org>
4905         * alloca.c (malloc) [emacs]: Define as xmalloc.
4907         * xfns.c (Fx_show_tip): If frame parameters contain a position,
4908         use that instead of the mouse position.  Add parameters DX and DY.
4910         * dispextern.h (Fx_show_tip): Adjust number of parameters
4911         in prototype.
4913         * keyboard.c (show_help_echo): Add parameters OBJECT and POS.
4914         if HELP is a function, call it with OBJECT and POS as parameters
4915         to get the help to display.
4916         (gen_help_event, kbd_buffer_store_help_event): New functions.
4917         (kbd_buffer_get_event): Construct the Lisp help-event differently.
4918         (read_char): Call show_help_echo with new parameters.
4920         * keyboard.h (gen_help_event, kbd_buffer_store_help_event):
4921         Add prototypes.
4923         * xterm.c (help_echo_object, help_echo_pos): New variables.
4924         (note_mode_line_highlight): Store additional information about the
4925         help-echo in help_echo_object and help_echo_pos.  Check both
4926         `local-map' and `keymap' properties for changing the cursor
4927         (note_mouse_highlight): Store additional information about the
4928         help-echo in help_echo_object and help_echo_pos.
4929         (note_tool_bar_highlight): Set help_echo_object to nil and
4930         help_echo_pos to -1.
4931         (XTread_socket): Use gen_help_event instead of filling
4932         input_events manually.
4933         (syms_of_xterm): Staticpro help_echo_object.
4935         * xmenu.c (menu_highlight_callback): Use
4936         kbd_buffer_store_help_event instead of setting up and input_event
4937         structure manually.
4939         * xdisp.c (eval_form): GCPRO argument sexpr.
4940         (call_function): New function.
4941         (handle_single_display_prop): Use call_function and FUNCTIONP
4942         instead of checking whether if font_height is a symbol and
4943         using eval_form.
4945         * eval.c (internal_condition_case_2): New function.
4947         * lisp.h (FUNCTIONP): New macro.
4948         (internal_condition_case_2, call_function): Add prototypes.
4950         * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event)
4951         (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket):
4952         Always set `arg' member of input_events.
4953         (construct_menu_click): Unused function removed.
4955         * msdos.c (dos_rawgetc): Always set `arg' member of input_events.
4957         * w32term.c (construct_mouse_click, construct_mouse_wheel)
4958         (construct_drag_n_drop, x_scroll_bar_handle_click)
4959         (w32_read_socket): Always set `arg' member of input_events.
4961         * keyboard.c (show_help_echo): Use eval_form.  Add comment.
4963         * lisp.h (eval_form): Add prototype.
4965         * xdisp.c (eval_form): Make it externally visible.
4967 2000-07-13  Gerd Moellmann  <gerd@gnu.org>
4969         * xterm.c (x_handle_tool_bar_click): Store the frame in the
4970         frame_or_window slot of TOOL_BAR_EVENT input events instead of
4971         consing.  For prefix events, store the frame in the `arg' slot of
4972         the event, otherwise store the key there.
4973         (XTread_socket): Instead of consing, use the frame_or_window slot
4974         of HELP_EVENTs for the frame, and the `arg' slot for the help
4975         string.
4977         * xmenu.c (menu_highlight_callback): Store help string in the
4978         `arg' member of the input event; don't cons.
4979         (menubar_selection_callback): Use the `arg' slot of input events
4980         to queue additional information, instead of consing.
4982         * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs.
4984         * w32term.c (w32_handle_tool_bar_click): Adapt to changes in
4985         TOOL_BAR_EVENTs.
4986         (w32_read_socket): Adapt to changes in HELP_EVENTs.
4988         * w32menu.c (menubar_selection_callback): Use the `arg' slot of
4989         input events to queue additional information, instead of consing.
4991         * keyboard.c (kbd_buffer_gcpro): Renamed from
4992         kbd_buffer_frame_or_window.  Now used for all Lisp objects
4993         referenced from the input queue.
4994         (kbd_buffer_store_event): Always use structure assignment for
4995         copying input events.  Record all Lisp objects referenced from
4996         events in kbd_buffer_gcpro.
4997         (kbd_buffer_get_event): Construct Lisp `help-echo' events
4998         differently from input events.  Test for prefix menu_bar_events
4999         and TOOL_BAR_EVENTs differently.  Reset all slots used by an input
5000         event in kbd_buffer_gcpro to nil.
5001         (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose
5002         frame_or_window is equal to its arg member as prefix events.
5003         (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro
5004         used by an input event to nil.
5005         (init_keyboard): Use two times the size of the input queue
5006         for kbd_buffer_gcpro.
5007         (syms_of_keyboard): Likewise.
5009         * emacs.c (handle_USR2_signal, handle_USR1_signal): Use
5010         USER_SIGNAL_EVENT.
5012         * termhooks.h (struct input_event): Add member `arg'.
5013         (MENU_BAR_EVENT): Renamed from menu_bar_event.
5014         (USER_SIGNAL_EVENT): Renamed from user_signal.
5016         * xfaces.c (ASET): Remove definition.
5018         * lisp.h (AREF, ASET, ASIZE): New macros.
5020         * fontset.c (AREF, ASIZE): Remove definitions.
5022         * fns.c (AREF): Remove definition.
5024         * composite.c (AREF): Remove definition.
5026 2000-07-12  Gerd Moellmann  <gerd@gnu.org>
5028         * dispnew.c (redraw_overlapped_rows): Add missing local.
5029         (scrolling_window): Remove debug code.
5031         * xdisp.c (try_window_reusing_current_matrix, try_window_id):
5032         Before scrolling, turn off a mouse-highlight in the window
5033         being scrolled.
5035         * xterm.c (x_update_window_end): Add parameter
5036         MOUSE_FACE_OVERWRITTEN_P.  If set, arrange for a mouse-highlight
5037         redisplay in XTframe_up_to_date.
5038         (x_clear_mouse_face): New function.
5039         (x_redisplay_interface): Add pointer to x_clear_mouse_face.
5041         * dispnew.c (make_current): Preserve the mouse_face_p flag of the
5042         current glyph row.
5043         (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P.  Set
5044         it when any row is written to that contains glyphs highlighted in
5045         mouse-face.
5046         (update_window): Call the window update end hook with new
5047         parameter MOUSE_FACE_OVERWRITTEN_P.
5048         (direct_output_for_insert): Give up if row contains mouse-face.
5050         * dispextern.h (struct redisplay_interface): Add parameter
5051         MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function.
5052         (clear_mouse_face): New function pointer member.
5054 2000-07-11  Stefan Monnier  <monnier@cs.yale.edu>
5056         * syntax.c (back_comment): Use one switch rather than a few `if's.
5057         Obey open_paren_in_column_0_is_defun_start.
5058         When reverting to the `slow' method, try to nicely handle the case
5059         of nested comments by checking that the comment-starter we found
5060         does indeed match the comment-ender.
5061         (scan_sexps_forward, scan_sexps_forward):
5062         Ignore excessive opening parenthesis rather than throwing an error.
5064 2000-07-11  Gerd Moellmann  <gerd@gnu.org>
5066         * doc.c (Fsubstitute_command_keys): Handle case that a GC
5067         in Fwhere_is_internal or get_keymap_1 relocates string contents.
5069         * dispnew.c (direct_output_forward_char): Give up if currently
5070         displaying a message instead of the minibuffer contents.
5072         * xterm.c (x_update_window_begin): No need to turn off the mouse
5073         highlight here.
5074         (show_mouse_face): Set the mouse_face_p flag of glyph rows
5075         depending on whether they contain glyphs highlighted in
5076         mouse-face.
5078         * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P.  If set,
5079         compare the mouse_face_p flags of both rows.
5081         * dispextern.h (struct glyph_row): Add flag mouse_face_p.
5083 2000-07-11  Eli Zaretskii  <eliz@is.elta.co.il>
5085         * keyboard.c (show_help_echo): Accept additional parameter
5086         ok_to_overwrite_keystroke_echo.
5087         (read_char): Call show_help_echo with a zero
5088         ok_to_overwrite_keystroke_echo argument.
5089         * keyboard.h (show_help_echo): Update prototype of
5090         show_help_echo.
5091         * xmenu.c (menu_help_callback): Call show_help_echo with non-zero
5092         ok_to_overwrite_keystroke_echo argument.
5093         * w32menu.c (w32_menu_display_help): Call show_help_echo with
5094         non-zero ok_to_overwrite_keystroke_echo argument.
5096 2000-07-10  Gerd Moellmann  <gerd@gnu.org>
5098         * xdisp.c (try_window_id): If changes are all below what is
5099         displayed in the window, and point is in the window, we still
5100         might have to find point on the display.
5102         * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch
5103         glyphs instead of a single one.
5104         (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string
5105         with new argument list.
5106         (x_set_glyph_string_gc): Make sure the face's GC is valid.
5108         * keymap.c (get_keymap_1): Add comment that this function can GC.
5109         (where_is_internal_2, where_is_internal_1): Add GCPROs, add
5110         comment that functions can GC.
5111         (Fset_keymap_parent): GCPRO arg KEYMAP.
5113 2000-07-10  Eli Zaretskii  <eliz@is.elta.co.il>
5115         * msdos.c (XMenuActivate): After exiting the menu, restore the
5116         echo area message and erase it.
5118 2000-07-10  Kenichi Handa  <handa@etl.go.jp>
5120         * fontset.c (Ffontset_info): Make the return value more compatible
5121         with that of Emacs 20.
5123 2000-07-07  Gerd Moellmann  <gerd@gnu.org>
5125         * eval.c (Fsignal): Handle case that backtrace_list is null.
5127 2000-07-07  Kenichi Handa  <handa@etl.go.jp>
5129         * ccl.c (Fccl_execute): Typo fixed.
5131 2000-07-06  Gerd Moellmann  <gerd@gnu.org>
5133         * window.c (window_loop): Add missing gcpro1 local variable.
5135         * window.c (Fwindow_list): Reverse list at the end.
5136         (candidate_window_p): Add parameter OWINDOW.  ALL_FRAMES nil
5137         means allow windows on OWINDOW's frame, only.
5138         (window_loop): Simplified; use Fwindow_list.
5140         * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make.
5142 2000-07-05  Gerd Moellmann  <gerd@gnu.org>
5144         * xterm.c (XTread_socket): Increment handling_signal at the start,
5145         decrement it at the end.
5147         * eval.c (handling_signal): New variable.
5148         (Fsignal): Abort if handling_signal is non-zero.
5150         * lisp.h (handling_signal): External declaration.
5152         * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0.
5154 2000-07-05  Ken Raeburn  <raeburn@gnu.org>
5156         Sound support for NetBSD through "Linux emulation" support:
5157         * config.in (HAVE_SOUNDCARD_H): Undef.
5158         (HAVE_SOUND): Define if HAVE_SOUNDCARD_H.
5159         * Makefile.in (LIBSOUND): New variable.
5160         (LIBES): Include it.
5161         * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and
5162         <soundcard.h>.
5163         (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined
5164         elsewhere.
5165         (vox_open): Use DEFAULT_SOUND_DEVICE.
5166         * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio.
5168 2000-07-05  Gerd Moellmann  <gerd@gnu.org>
5170         * print.c (print_error_message): If Vsignaling_function is set,
5171         show it in *Messages*.
5173         * lisp.h (Vsignaling_function): External declaration.
5175         * eval.c (Vsignaling_function): New variable.
5176         (Fsignal): Compute it.
5177         (syms_of_eval): Staticpro it.
5179 2000-07-05  Dave Love  <fx@gnu.org>
5181         * syswait.h: Use the autoconf recommended approach.  Old code
5182         #if'd out in case we need to revert.
5184         * config.in (HAVE_SYS_WAIT_H): Added.
5186 2000-07-05  Andrew Innes  <andrewi@gnu.org>
5188         * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore
5189         when non-NULL instead of __morecore, to take account of buffer
5190         memory.  This also solves a problem with spurious memory warnings
5191         on Windows.
5193         * ralloc.c: Make real_morecore non-static.
5195         * eval.c (internal_condition_case): Comment out abort if
5196         interrupt_input_blocked is not zero.
5198         * makefile.nt: Add support for `bootstrap' and related targets.
5199         Include minimal debug info in emacs.exe in release build.
5200         Remove all dependencies on lisp.h, and fixup some others.
5202         * w32.c (init_environment): Install code from 20.7 for providing
5203         default values for environment variables, based on the
5204         executable's own location.
5205         (map_w32_filename): Handle filenames that are longer than
5206         MAX_PATH.
5207         (sys_socket): Install socket inheritance bug fix from 20.7.
5209         * alloca.c [emacs]: Include lisp.h (needed by atimer.h included
5210         here via blockinput.h).
5212 2000-07-05  Stefan Monnier  <monnier@cs.yale.edu>
5214         * w32menu.c (w32_menu_display_help):
5215         * xmenu.c (menu_help_callback): Use show_help_echo.
5217         * keyboard.h (show_help_echo): Declare.
5219         * keyboard.c (show_help_echo): New function, extracted from read_char.
5220         Feval its `msg' argument if it's a cons cell.
5221         (read_char): Use it.
5222         (follow_key): Pass `autoload' to get_keyelt.
5224         * xterm.c (note_mode_line_highlight, note_mouse_highlight)
5225         (note_tool_bar_highlight, XTread_socket):
5226         * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight)
5227         (dos_rawgetc):
5228         * w32term.c (note_mode_line_highlight, note_mouse_highlight)
5229         (note_tool_bar_highlight, w32_read_socket):
5230         Do not gratuitously ignore non-string `help-echo' properties.
5232 2000-07-05  Gerd Moellmann  <gerd@gnu.org>
5234         * eval.c (Feval): Put check for interrupt_input_block in #if 0.
5236         * window.c (delete_all_subwindows): Reset Vwindow_list.
5238         * xterm.c (x_append_glyph, x_append_composite_glyph)
5239         (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to
5240         changes in struct glyph starting 1999-12-27.  Some bit-fields of
5241         struct glyph were not set, which made glyphs unequal when compared
5242         with GLYPH_EQUAL_P.  Redisplay outputs such glyphs, and flickering
5243         effects were the result.  This also depended on the contents of
5244         memory returned by xmalloc.  If flickering happens again, activate
5245         the code in clear_glyph_row that's in #if 0.  If the flickering is
5246         gone with that, chances are that it is caused by something
5247         similar.
5249         * dispnew.c (clear_glyph_row): Add debug code in #if 0.
5251         * dispextern.h: Add some comments.
5253         * window.c (add_window_to_list): Add parameter LIST.
5254         (window_list): Order list so that, for each frame, windows are
5255         in canonical order, and so that frames appear in the list in
5256         the order given by Vframe_list.
5257         (next_window): Reverse the handling of NEXT_P.
5259 2000-07-04  Gerd Moellmann  <gerd@gnu.org>
5261         * window.c (Vwindow_list): New variable.
5262         (make_window, delete_window): Set Vwindow_list to nil.
5263         (check_window_containing): New function.
5264         (window_from_coordinates): Rewritten.
5265         (add_window_to_list, window_list, candidate_window_p)
5266         (decode_next_window_args, next_window): New functions.
5267         (Fnext_window, Fprevious_window): Rewritten in terms of
5268         next_window.
5269         (Fwindow_list): New function.
5270         (Fother_window): Cleaned up.
5271         (foreach_window): Add a longer "variable argument list".  Let
5272         callback function return 0 to indicate that cycling over windows
5273         should stop.
5274         (foreach_window_1): Likewise.
5275         (freeze_window_start): Return int.
5276         (init_window): New function.
5277         (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list.
5279         * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear
5280         input_event with bzero.
5281         (main): Call init_window.
5283         * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating
5284         a menu filter.
5286 2000-07-04  Kenichi Handa  <handa@etl.go.jp>
5288         * composite.h (make_composition_value_copy): Extern it.
5290         * composite.c (make_composition_value_copy): New function.
5292         * editfns.c (Fformat): While copying text properties, make each
5293         composition property value a copy.
5295         * fns.c (concat): While copying text properties, make each
5296         composition property value a copy.
5298 2000-07-03  Gerd Moellmann  <gerd@gnu.org>
5300         * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define.
5302         * fns.c (sweep_weak_table): Mark only objects that are not
5303         marked already.
5305         * frame.c (next_frame, prev_frame): If MINIBUF is a window,
5306         include those frames as candidates which have their focus
5307         redirected to the minibuffer frame.
5309 2000-07-03  Stefan Monnier  <monnier@cs.yale.edu>
5311         * fns.c (Fputhash): Return `value' rather than nil.
5313 2000-06-30  Gerd Moellmann  <gerd@gnu.org>
5315         * frame.c (next_frame): Don't check focus redirection in case
5316         MINIBUF is a window.  Doing so excludes frames using MINIBUF
5317         unless their focus is redirected, which contradicts the
5318         specification of next-frame, and leads to infinite loops in
5319         certain situations when cycling through windows with next-window.
5321 2000-06-30  Kenichi Handa  <handa@etl.go.jp>
5323         * coding.c (code_convert_region): Even if the length of text is
5324         zero, try to convert it if coding->type is coding_type_ccl.
5325         (decode_coding_string, encode_coding_string): Likewise.
5327 2000-06-28  Gerd Moellmann  <gerd@gnu.org>
5329         * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse
5330         the display if windows_or_buffers_changed.
5332         * dispnew.c (struct row_entry): New structure.
5333         (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table)
5334         (row_table_size, old_lines, new_lines, old_lines_size)
5335         (new_lines_size, run_pool, runs_size, runs): New variables.
5336         (add_row_entry): New function.
5337         (scrolling_window): Use data structures allocated with xmalloc and
5338         held in global variables, instead of allocating them with alloca and
5339         holding them in local variables.  Use a larger hash table whose
5340         size depends on glyph matrix sizes.  Don't use bzero to clear the
5341         hash table; instead, clear used slots only.
5343         * fns.c (next_almost_prime): Make it externally visible.
5345         * lisp.h (next_almost_prime): Add prototype.
5347         * s/isc4-0.h (sigunblock): Define.
5349         * s/sco5.h (sigunblock): Define.
5351 2000-06-27  Dave Love  <fx@gnu.org>
5353         * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change
5354         (moved to osf5-0.h).
5355         [!NOT_C_CODE]: Protect string.h stuff.
5357         * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED)
5358         (sys_siglist, NSIG): Definitions moved here from osf1.h.
5360 2000-06-27  Gerd Moellmann  <gerd@gnu.org>
5362         * xdisp.c (resize_mini_window): Subtract the extra line spacing
5363         below the last line from the needed window height.
5365 2000-06-26  Stefan Monnier  <monnier@cs.yale.edu>
5367         * fns.c (Fplist_member): Renamed from Fwidget_plist_member.
5368         (Fwidget_get): Use it.
5369         (syms_of_fns): Defsubr it.
5371 2000-06-26  Gerd Moellmann  <gerd@gnu.org>
5373         * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the
5374         display info for XIM.
5375         (xim_open_dpy): Likewise.
5376         (xim_close_dpy): Don't free the display info's XIM.
5378         * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic.
5380         * config.in (USE_XIM): New define.
5382         * keymap.c (get_keyelt): For menu-items containing a `:filter
5383         FILTER', apply FILTER to the menu-item's definition to get the
5384         real definition to use.
5386         * lisp.h (QCfilter): External declaration.
5388         * xfns.c (Fimage_size): New function.
5389         (syms_of_xfns): Defsubr it.
5391 2000-06-26  Andreas Schwab  <schwab@suse.de>
5393         * coding.c (decode_coding_string): Re-fetch STRING_BYTES after
5394         Fstring_as_unibyte.
5396 2000-06-25  Dave Love  <fx@gnu.org>
5398         * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag,
5399         tgetnum.
5401         * Makefile.in (blockinput.h): Depend on atimer.h.
5402         (atimer.h): Depend on systime.h.
5404         * blockinput.h: Protect against multiple inclusion.  Include
5405         atimer.h.
5407         * atimer.h: Protect against multiple inclusion.  Include
5408         systime.h.
5410         * lisp.h (swap_in_global_binding): Declare.
5412 2000-06-24  Ken Raeburn  <raeburn@gnu.org>
5414         * process.c (Fopen_network_stream): Turn off atimers for duration
5415         of call to connect.  (Patch from Gerd.)
5417 2000-06-23  Dave Love  <fx@gnu.org>
5419         * ralloc.c: Maybe include unistd.h
5421         * emacs.c (setgrp): Undefine before defining.
5422         (malloc_warning, set_time_zone_rule, index): Prototype.
5424         * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use
5425         HAVE_STRUCT_TIMEZONE.
5427         * s/osf1.h: Move string.h hack here from alpha.h and make it
5428         conditional.
5429         (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with
5430         _XOPEN_SOURCE.
5431         (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define.
5432         (SOCKLEN_TYPE): Don't define.
5434         * m/alpha.h: Remove string.h hack.
5436         * s/osf5-0.h: New file.
5438         * filelock.c: Use feature tests for fcntl.h, string.h.  Don't
5439         include time.h, done by systime.h.
5440         [__FreeBSD__]: Remove redundant includes.
5442         * callproc.c (setpgrp): Undefine before defining.
5443         (delete_temp_file): Return Qnil to avoid warning.
5445         * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add.
5447         * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not
5448         HAVE_X_WINDOWS.
5450         * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset.
5452         * composite.h (compose_text): Declare.
5454         * xterm.c: Don't include sys/types.h unconditionally.  Don't
5455         protect its inclusion with !USG (following xmenu.c).
5457 2000-06-23  Gerd Moellmann  <gerd@gnu.org>
5459         * xfns.c (x_create_tip_frame): Initialize frame's colors like
5460         in x_create_frame.
5462 2000-06-23  Eli Zaretskii  <eliz@is.elta.co.il>
5464         * coding.c (decode_eol_post_ccl): Special handling for undecided
5465         and inconsistent EOL types.
5467 2000-06-22  Gerd Moellmann  <gerd@gnu.org>
5469         * xrdb.c (x_load_resources): Add default resource for scroll bar's
5470         trough color and main window's background color.
5472         * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events
5473         differently.
5475         * xterm.h (Xt_app_con): External declaration.
5477         * widget.c (EmacsFrameRealize): Fix typo.
5479         * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask.
5481         * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero.
5482         (handle_invisible_prop): Record the start of invisible text in
5483         it->add_overlay_start.
5484         (struct overlay_entry): Add member `overlay'.
5485         (handle_overlay_change): Simplify.
5486         (next_overlay_string): After having processed overlay strings at the
5487         end of the buffer, record that fact in
5488         it->overlay_strings_at_end_processed_p.
5489         (compare_overlay_entries): If before- and after-strings come
5490         from the same overlay, let before-strings come first.
5491         (RECORD_OVERLAY_STRING): Record the overlay that strings come from.
5492         (load_overlay_strings): Take it->add_overlay_start into account
5493         when adding overlay strings.
5495         * dispextern.h (struct it): Add member add_overlay_start.
5497 2000-06-22  Dave Love  <fx@gnu.org>
5499         * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500.
5501         * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here.
5503 2000-06-22  Kenichi Handa  <handa@etl.go.jp>
5505         * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it
5506         is greater than 0.
5508 2000-06-21  Dave Love  <fx@gnu.org>
5510         * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it.
5512 2000-06-21  Stefan Monnier  <monnier@cs.yale.edu>
5514         * syntax.c (back_comment): Simplify string-parity counting (with
5515         the added benefit of handling multiple string-styles as long as
5516         they are not intertwined).
5517         Jump to the slow code as soon as a comment starter is found in
5518         a "string_lossage" position.  Fixes the case:  " /* " /* " */.
5520 2000-06-21  Dave Love  <fx@gnu.org>
5522         * Makefile.in: Use GETLOADAVG_LIBS.
5524         * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS,
5525         _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE.
5527 2000-06-20  Stefan Monnier  <monnier@cs.yale.edu>
5529         * syntax.c (describe_syntax): Recognize the `n'estable bit.
5530         (Fforward_comment, scan_lists):
5531         Check the comstyle of single-char comment-starters.
5532         (scan_sexps_forward): Don't try to recognize `half comment-enders' if
5533         we're just at the beginning of the comment (f.ex with (*) ... (*)).
5534         Check the comstyle of single-char comment-starters.
5535         Clarify control-flow around the Scomment case.
5537 2000-06-20  Dave Love  <fx@gnu.org>
5539         * fns.c (make_hash_table, maybe_resize_hash_table):
5540         Cast arg of next_almost_prime.
5542         * tparam.c [emacs]: Include lisp.h.
5544         * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5.  Include lisp.h
5545         and unistd.h.
5547 2000-06-20  Gerd Moellmann  <gerd@gnu.org>
5549         * keyboard.c (adjust_point_for_property): Check if display
5550         property should be treated as intangible by looking at its
5551         value.
5553         * xdisp.c (single_display_prop_intangible_p)
5554         (display_prop_intangible_p): New functions.
5556         * dispextern.h (display_prop_intangible_p): Add prototype.
5558         * xdisp.c (dump_glyph_row): Show type of glyph->object.
5560         * s/isc4-0.h (sigblock): Redefined to pass a pointer as second
5561         argument to sigprocmask.
5563         * s/sco5.h (sigblock): Redefined to pass a pointer as second
5564         argument to sigprocmask.
5566         * syssignal.h (sigblock, sigunblock) [USG5_4]: Set
5567         sigprocmask_set, and pass a pointer to it to sigprocmask.
5569         * sysdep.c (sigprocmask_set): New variable.
5571         * fileio.c (make_temp_name): Don't use `%s' in string passed to
5572         report_file_error.
5574 2000-06-20  Sam Steingold  <sds@gnu.org>
5576         * xrdb.c: Don't declare xmalloc, xrealloc.
5578 2000-06-20  Stefan Monnier  <monnier@cs.yale.edu>
5580         * regex.c (re_match, re_match_2): Protect calls to alloca (0).
5581         (re_comp): Cast gettext return value to avoid complaints when
5582         !HAVE_LIBINTL.
5584 2000-06-20  Dave Love  <fx@gnu.org>
5586         * m/stride.h, m/mips.h: Don't define HAVE_GETWD,
5587         HAVE_GETTIMEOFDAY.
5589         * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK.
5591         * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD.
5593         * m/alpha.h: Don't declare xmalloc, xrealloc.
5595         * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT.
5597         * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE.
5599         * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY.
5601         * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare
5602         HAVE_GETWD.
5604         * keyboard.h (poll_for_input_1): Declare.
5606         * getloadavg.c: Don't define NLIST_STRUCT (handled by configure).
5608         * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE.
5610         * doprnt.c: Don't declare xmalloc, xrealloc.
5612         * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text)
5613         (getenv, ctime, getwd): Removed.
5614         (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE.
5616         * xterm.h: Remove duplicate prototypes.  Declare free_frame_xic,
5617         x_set_tool_bar_lines.
5619         * config.in: Add HAVE_GETWD.  Move some definitions above
5620         machine/system includes.
5622 2000-06-20  Kenichi Handa  <handa@etl.go.jp>
5624         * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1.
5626         * xfaces.c (font_list): Handle the case that REGISTRY doesn't
5627         contain information about ENCODING.
5629         * fontset.c (FONTSET_ASCII): Use the first element of char table
5630         for an ASCII font, not defalt slot.
5631         (fontset_ref_via_base): If FONTSET doesn't contain information for
5632         C, try the default fontset.
5633         (make_fontset): Don't copy the default fontset.
5634         (fontset_font_pattern): Likewise.
5635         (accumulate_font_info): If ELT is nil, use the corresponding
5636         element in the default fontset.
5638 2000-06-19  Dave Love  <fx@gnu.org>
5640         * syntax.c (Fparse_partial_sexp): Doc fix.
5642         * regex.h: Test PROTOTYPES as well as __STDC__.
5644         * unexalpha.c: Include errno.h, string.h, unistd.h.  Don't declare
5645         errno, strerror.  Put text after #endif in comment.
5647         * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for
5648         pcc).
5650         * xterm.c (x_frame_of_widget): Likewise.
5652 2000-06-19  Gerd Moellmann  <gerd@gnu.org>
5654         * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table
5655         to Vfundamental_mode_abbrev_table.
5657         * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no
5658         bogus objects are marked.  This slows down GC by ~80 percent, but
5659         it might be worth trying when debugging GC-related problems.
5660         This feature requires conservative stack marking to be enabled.
5662         * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString
5663         returns XLookupChars, reset `modifiers' to zero.
5665 2000-06-19  Dave Love  <fx@gnu.org>
5667         * mktime.c: Unprotoized.
5669 2000-06-19  Richard Stallman  <rms@gnu.org>
5671         * data.c (set_internal): If variable is frame-local,
5672         store the new value immediately into the frame parameter alist.
5674 2000-06-19  Ken Raeburn  <raeburn@gnu.org>
5676         * xfns.c (jpeg_load): Fetch error-handling data first, then fill
5677         in the custom handler pointer.
5679         * keyboard.c (follow_key, read_key_sequence): Use XUINT on key
5680         value, or checks for CHAR_META can fail when Lisp_Object is a
5681         union type.
5682         * keymap.c (get_keyelt): Likewise.
5684 2000-06-19  Kenichi Handa  <handa@etl.go.jp>
5686         * ccl.h (struct ccl_program): New member eol_type.
5687         (struct ccl_spec): New member cr_carryover.
5689         * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type.
5690         (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF.
5692         * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'.
5693         (ccl_coding_driver): On encoding, initialize ccl->eol_type.
5694         (decode_eol_post_ccl): New function.
5695         (decode_coding): Don't detect EOL format here for CCL based coding
5696         systems.
5697         (decode_coding) <coding_type_ccl>: Handle carryovered CR.  Call
5698         decode_eol_post_ccl after running the CCL program.
5699         (code_convert_region): Don't detect EOL format here for CCL based
5700         coding systems.
5701         (decode_coding_string): Likewise.
5703 2000-06-18  Ken Raeburn  <raeburn@gnu.org>
5705         * charset.c (update_charset_table): Use XINT on "iso_final_char"
5706         when treating it as an integer.
5708         * coding.h (encode_coding_string): Declare.
5710         * keyboard.c (read_key_sequence): Use XINT on "pos" when treating
5711         it as an integer.
5713         * keymap.c (Fwhere_is_internal): Rename argument "keymap" to
5714         "xkeymap" to avoid shadowing the "enum map_type" value that needs
5715         to be passed to get_local_map.
5717         * sound.c (Fplay_sound): Don't call make_number on
5718         Frun_hook_with_args count argument.
5720         * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer
5721         for lisp objects in X event structure data field, when lisp
5722         objects are represented with unions.
5723         (x_scroll_bar_to_input_event): Ditto.
5725 2000-06-16  Ken Raeburn  <raeburn@gnu.org>
5727         * xdisp.c (decode_mode_spec): In "no_value" case, do NUL
5728         termination of string.  Fix sense of test whether
5729         Vline_number_display_limit is an integer.
5731 2000-06-16  Gerd Moellmann  <gerd@gnu.org>
5733         * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors
5734         only if HAVE_X_WINDOWS.
5736         * keymap.c (describe_buffer_bindings): Add `\f\n' in front
5737         of titles.
5739         * dispnew.c (update_frame_1): Handle case that cursor vpos is
5740         out of bounds.
5742 2000-06-15  Eli Zaretskii  <eliz@is.elta.co.il>
5744         * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS
5745         of its headers.
5747 2000-06-15  Kenichi Handa  <handa@etl.go.jp>
5749         * coding.c (decode_coding_emacs_mule): Always set src_base at the
5750         start of the while loop.
5752 2000-06-15  Gerd Moellmann  <gerd@gnu.org>
5754         * atimer.c (alarm_signal_handler): Add forward declaration.
5756         * data.c (set_internal): Remove debug code.
5758 2000-06-14  Gerd Moellmann  <gerd@gnu.org>
5760         * Makefile.in (bootstrap-temacs): Add `-I../src'.
5762         * unexec.c (toplevel) [COFF]: Include coff.h.
5764         * s/lynxos.h: New file.
5766         * keymap.c (Fsingle_key_description): Enclose function key and
5767         event symbol names in angle brackets.
5769         * xdisp.c (setup_echo_area_for_printing): Call
5770         message_log_maybe_newline if message_buf_print is not set.
5772         * print.c (printchar, strout): Don't check message_buf_print
5773         before calling setup_echo_area_for_printing because that
5774         function does something useful even when message_buf_print is
5775         already set.
5777         * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): New
5778         variables.
5779         (ensure_echo_area_buffers): Initialize echo buffer's
5780         truncate lines setting to nil.
5781         (with_echo_area_buffer): Don't set the echo buffer's truncate
5782         lines setting here.
5783         (set_message_1): Set it here instead, based on the value
5784         of message_truncate_lines.
5785         (resize_mini_window): Handle case that lines are truncated.
5786         (syms_of_xdisp): Initialize Qmessage_truncate_lines.  DEFVAR_BOOL
5787         message-truncate-lines.
5789         * keyboard.c (read_char): Bind message-truncate-lines to t
5790         while displaying a help-echo.
5792         * lisp.h (Qmessage_truncate_lines): External declaration.
5794 2000-06-13  Gerd Moellmann  <gerd@gnu.org>
5796         * xdisp.c (Vline_number_display_limit): Renamed from
5797         line_number_display_limit.
5798         (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit.
5799         Extend documentation string.  Initialize
5800         Vline_number_display_limit to nil meaning no limit.
5801         (decode_mode_spec): Use Vline_number_display_limit with its new
5802         meaning.
5804         * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype.
5806 2000-06-13  Richard Stallman  <rms@gnu.org>
5808         * frame.c (Fmodify_frame_parameters): Doc fix.
5810         * xfns.c (x_set_frame_parameters): Comment fix.
5812         * frame.c (store_frame_param): Call swap_in_global_binding if the
5813         variable's current binding was chosen based on this frame.
5815         * data.c (swap_in_global_binding): New function.
5817 2000-06-13  Eli Zaretskii  <eliz@is.elta.co.il>
5819         * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING
5820         macro, instead AND with CODING_REQUIRE_ENCODING_MASK.
5822 2000-06-13  Eli Zaretskii  <eliz@is.elta.co.il>
5824         * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_.
5826 2000-06-12  Jason Rumney  <jasonr@gnu.org>
5828         * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__
5830         * w32.h (EMACS_W32_H): Renamed from _NT_H_
5832         * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__
5834         * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__
5836 2000-06-12  Gerd Moellmann  <gerd@gnu.org>
5838         * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function.
5839         (syms_of_xfaces): Defsubr Sdump_colors.
5840         (x_free_colors): Don't treat b&w specially on default visual.
5841         (x_free_dpy_colors): New function.
5842         (free_face_colors): Don't check visual class; it's done
5843         in x_free_colors.
5845         * xterm.c (x_frame_of_widget): New function.
5846         (x_alloc_nearest_color_for_widget): Use it.
5847         (x_copy_dpy_color): New function.
5848         (x_destroy_window): Free various colors.
5850 2000-06-12  Kenichi Handa  <handa@etl.go.jp>
5852         * ccl.h (EMACS_CCL_H): Renamed from _CCL_H.
5854         * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H.
5856         * coding.h (EMASC_CODING_H): Renamed from _CODING_H.
5858         * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H.
5860         * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H.
5862 2000-06-11  Dave Love  <fx@gnu.org>
5864         * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H.
5866 2000-06-11  Eli Zaretskii  <eliz@is.elta.co.il>
5868         * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead.
5870 2000-06-11  Gerd Moellmann  <gerd@gnu.org>
5872         * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu
5873         to `XEvent *'.
5875 2000-06-10  Kenichi Handa  <handa@etl.go.jp>
5877         * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env.
5878         (regex_compile): Fix the code for handling the case of single byte
5879         char and multibyte char being mixed in a range within [...].
5881         * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte
5882         and dst_multibyte members of coding.
5884         * charset.c (update_charset_table): Update the table
5885         bytes_by_char_head.
5886         (init_charset_once): Initialize elements of bytes_by_char_head to
5887         1 except for leading codes for private charases.
5889         * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80.
5890         (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte
5891         sequence.
5893 2000-06-09  Ken Raeburn  <raeburn@gnu.org>
5895         * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to
5896         access the data it doesn't point to.
5898 2000-06-08  Gerd Moellmann  <gerd@gnu.org>
5900         * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which
5901         will be translated to a switch-frame event when reading the
5902         event queue.  This is necessary because Emacs otherwise won't
5903         perform a switch-frame to a new frame until some other event, for
5904         example a keystroke event, forces it to do so.  This has various
5905         effects, one visible being that the cursor of a frame created with
5906         C-x 5 2 or switched to with a window manager key binding like
5907         A-TAB stays hollow because selected_window isn't on the newly
5908         focused frame until the switch-frame is performed.
5910         * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by
5911         generating a switch-frame event if necessary.
5913         * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT.
5915         * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos';
5916         it's an integer.
5918 2000-06-08  Kenichi Handa  <handa@etl.go.jp>
5920         * fontset.c (Fset_fontset_font): The arg CHARACTER may be a
5921         charset.
5923 2000-06-07  Gerd Moellmann  <gerd@gnu.org>
5925         * window.c (displayed_window_lines): Take empty lines at
5926         the bottom of a window into account.
5928         * window.c (displayed_window_lines): New function.
5929         (Fmove_to_window_line): Use displayed_window_lines to determine
5930         the number of lines to move, instead of using the window's height.
5932         * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange
5933         to stop reading, even if the form read sets point to a different
5934         value when evaluated.
5936         * xdisp.c (display_line): Fix code deciding in which line to
5937         put the cursor.
5939 2000-06-07  Kenichi Handa  <handa@etl.go.jp>
5941         * fileio.c (e_write): Free composition data if stored in
5942         coding->cmp_data.
5944 2000-06-06  Gerd Moellmann  <gerd@gnu.org>
5946         * xdisp.c (display_line): Set row's and iterator's
5947         starts_in_middle_of_char_p and ends_in_middle_of_char_p flags.
5948         Set cursor even if row ends in the middle of a character.
5949         (dump_glyph_row): Print values of new flags.
5950         (redisplay_window) <cursor movement in unchanged window>: When
5951         point has been moved forward, and PT is at the end of the cursor
5952         row, don't place the cursor in the next row if the cursor row ends
5953         in the middle of a character or at ZV.
5955         * dispextern.h (struct it): Add starts_in_middle_of_char_p.
5956         (struct glyph_row): Add starts_in_middle_of_char_p and
5957         ends_in_middle_of_char_p.
5958         (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's
5959         ends_in_middle_of_char_p flag.
5960         (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise.
5962         * term.c (append_glyph): Revert change of 2000-06-06.
5964         * xdisp.c (display_line): Revert change of 2000-06-06.  Treat
5965         padding glyph not fitting on line as whole character not
5966         fitting on line.
5968         * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0';
5969         this isn't true for images with `:ascent 100'.
5971 2000-06-06  Kenichi Handa  <handa@etl.go.jp>
5973         * buffer.c (Fset_buffer_multibyte): Don't make the current buffer
5974         as modified if it is originally unmodified.
5976         * term.c (encode_terminal_code): Change the way to check if
5977         terminal coding does any conversion.
5978         (append_glyph): Set glyph->pixel_width correctly.
5980         * xdisp.c (display_line): While checking line continuation, pay
5981         attention to a padding glyph.
5983 2000-06-05  Gerd Moellmann  <gerd@gnu.org>
5985         * xdisp.c (redisplay_window): Always use set_buffer_internal_1.
5987 2000-06-05  Dave Love  <fx@gnu.org>
5989         * xdisp.c: Include fontset.h.
5991         * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned.
5993         * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
5995         * dispnew.c: Conditionally include term.h.
5997         * coding.h: Declare code_convert_string_norecord.
5999         * frame.h (struct frame): Use volatile unconditionally.
6001         * buffer.h: Remove Vbefore_change_function, Vafter_change_function.
6003         * xmenu.c (menu_item_selection): Declare volatile unconditionally.
6005         * systime.h: Protect against multiple inclusion.
6006         (timezone) [USG5_4]: Define as time_t.
6008         * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
6009         (Foptimize_char_table, make_temp_name): Declare.
6011         * Makefile.in (xdisp.o): Depend on fontset.h.
6013         * xterm.c (x_calc_absolute_position): Declare nchildren unsigned.
6015         * lisp.h (DEFUN, EXFUN): Test PROTOTYPES.
6016         (Foptimize_char_table, make_temp_name): Declare.
6018         * s/irix4-0.h:
6019         * s/irix5-0.h:
6020         * s/netbsd.h: Don't define autoconfiscated MATHERR.
6022 2000-06-02  Dave Love  <fx@gnu.org>
6024         * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define.
6026 2000-06-02  Gerd Moellmann  <gerd@gnu.org>
6028         * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the
6029         result face, set flags in that face indicating that colors may not
6030         be freed.
6032         * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character
6033         glyph, use the ASCII NUL character to determine the face.
6035 2000-06-02  Dave Love  <fx@gnu.org>
6037         * sysdep.c: Conditionally include stdlib.h, unistd.h.
6038         (VFORK_RETURN_TYPE): Remove.
6040         * config.in: Add NO_MATHERR.
6042 2000-06-01  Dave Love  <fx@gnu.org>
6044         * cmds.c (internal_self_insert): Don't check
6045         Vbefore_change_function, Vafter_change_function.
6047         * insdel.c (signal_before_change, signal_after_change): Likewise.
6049         * buffer.c (Vbefore_change_function, Vafter_change_function):
6050         Variables and their initializations deleted.
6052         * callint.c (Fcall_interactively): Doc fix.
6054         * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern.
6056 2000-05-31  Dave Love  <fx@gnu.org>
6058         * textprop.c: Revert last change -- duplicated.
6060 2000-05-31  Gerd Moellmann  <gerd@gnu.org>
6062         * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put
6063         in #if 0.
6065         * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'.
6067 2000-05-31  Jason Rumney  <jasonr@gnu.org>
6069         * search.c (Fre_search_forward, Fre_search_backward)
6070         (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs.
6072         * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil.
6074 2000-05-30  Jason Rumney  <jasonr@gnu.org>
6076         * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros.
6077         [WINDOWSNT]: Add extern for Vw32_system_coding_system.
6079         * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type
6080         member.
6082         * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog.
6083         (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to
6084         expand a nil default_filename.
6086         * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window
6087         pointer to glyph_to_pixel_coords, not a frame.
6089         * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and
6090         coding.h to dependencies.
6092         * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p.
6094         * w32console.c (glyph_to_pixel_coords): Change first parameter to
6095         window pointer to be consistent with w32term.c and xterm.c.
6097         * w32fns.c: Format and doc changes to bring closer to xfns.c.
6098         (VIETNAMESE_CHARSET): Define if not defined in system headers.
6099         (Qline_spacing, Qcenter): New variables.
6100         (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c.
6101         (x_set_line_spacing): New function.
6102         (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT
6103         macros.
6104         (x_specified_cursor_type): New function.
6105         (x_set_cursor_type): Use it.
6106         (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar
6107         and icon strings.
6108         (validate_x_resource_name, x_get_resource_string): Measure lengths
6109         of external strings in bytes.
6110         (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling
6111         GetTextExtentPoint32 with NULL title.
6112         (Fx_create_frame): Initialize Qline_spacing.
6113         (w32_load_system_font): Initialize font->double_byte_p.
6114         (x_to_w32_charset): Use Vw32_charset_info_alist.
6115         (Image, busy cursor, tooltip functions): Merged changes from
6116         xfns.c. Not yet functional on Windows.
6118         * w32gui.h (W32FontStruct): Add double_byte_p member.
6120         * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant.
6121         (emacs_button_translation): Use it.
6122         (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit
6123         in `mask' to be set.
6125         * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on
6126         menu strings.
6128         * w32term.c: Format and doc changes to bring closer to xterm.c.
6129         (w32_char_font_type): New enum.
6130         (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c.
6131         (w32_per_char_metric): Use w32_char_font_type instead of unicode_p.
6132         (w32_encode_char): New function.
6133         (x_encode_char): Removed.
6134         (x_get_glyph_and_face_encoding): Use w32_encode_char in place of
6135         x_encode_char and w32_font_is_double_byte.
6136         (x_produce_image_glyph): Use image_ascent.
6137         (x_produce_glyphs): Use new version of w32_per_char_metric and
6138         handle NULL return value. Allow extra line spacing.
6139         (W32_TEXTOUT): Distinguish between Unicode and DBCS text.
6140         (w32_get_glyph_overhangs): Remove unicode_p param. Use
6141         w32_font_type member of glyph instead.
6142         (x_draw_glyph_string): Draw underline and strike-out for BDF fonts.
6143         (fast_find_position): Make sure not to consider rows not visible
6144         in the window.
6145         (w32_read_socket) [WM_MENUSELECT]: Cannot call
6146         w32_menu_display_help with input blocked, as it can abort.
6147         (x_display_and_set_cursor): Choose cursor depending
6148         on buffer-local value of cursor_type.
6149         (x_draw_bar_cursor): Add parameter WIDTH.
6151         * w32term.h (CP_DEFAULT): Define.
6152         (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare.
6154 2000-05-30  Gerd Moellmann  <gerd@gnu.org>
6156         * search.c (Fre_search_forward, Fre_search_backward)
6157         (Fposix_search_backward, Fposix_search_forward): Doc fix.
6159 2000-05-30  Kenichi Handa  <handa@etl.go.jp>
6161         * coding.c (detect_coding_iso2022): Fix code for checking
6162         CODING_CATEGORY_MASK_ISO_8_2.
6164 2000-05-29  Stefan Monnier  <monnier@cs.yale.edu>
6166         * regex.c (PREFETCH_NOLIMIT): New function.
6167         (re_match_2_internal): Use it and adjust the end_match_2 logic.
6169 2000-05-29  Gerd Moellmann  <gerd@gnu.org>
6171         * syntax.c (find_defun_start): Move test for
6172         open_paren_in_column_0_is_defun_start outside of the loop.
6174         * xdisp.c (redisplay_window): Really switch buffers when
6175         displaying mode lines, and temporarily set selected_frame to the
6176         frame of the window that's redisplayed.
6178         * xfaces.c (free_realized_faces): Block/unblock input.
6179         (free_realized_multibyte_face): Ditto.
6181 2000-05-29  Dave Love  <fx@gnu.org>
6183         * textprop.c (Qkeymap): New variable.
6184         (syms_of_textprop): Intern it.
6186         * keymap.c: Include intervals.h.
6187         (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property.
6189         * Makefile.in (keymap.o): Depend on intervals.h.
6191         * keyboard.c (menu_bar_items, tool_bar_items)
6192         (Fexecute_extended_command): Deal with `keymap' property.
6193         (read_key_sequence): Track map from `keymap' property as well as
6194         `local_map'.
6196         * intervals.c (get_local_map): Extra arg to allow looking for
6197         `keymap' too.
6199         * intervals.h (map_property): New enum.
6200         (get_local_map): Extra arg using it.
6201         (Qkeymap): Declare.
6203         * lisp.h (get_local_map): Don't declare here.
6205 2000-05-29  Kenichi Handa  <handa@etl.go.jp>
6207         * Makefile.in (callproc.o): Depend on composite.h.
6209         * callproc.c: Include composite.h.
6210         (Fcall_process): Handle composition correctly.
6212         * coding.h (coding_allocate_composition_data): Extern it.
6213         (coding_restore_composition): Likewise.
6215         * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not
6216         yet allocated, finish decoding with result
6217         CODING_FINISH_INSUFFICIENT_CMP.
6218         (coding_allocate_composition_data): Make it non-static.
6219         (coding_restore_composition): Likewise.
6221 2000-05-29  Eli Zaretskii  <eliz@is.elta.co.il>
6223         * charset.c (syms_of_charset): Revert last change.
6225 2000-05-28  Eli Zaretskii  <eliz@is.elta.co.il>
6227         * term.c (produce_glyphs): Treat characters from the eight-bit-*
6228         charsets as unibyte, with 1-column screen width.  Sent by Kenichi
6229         Handa.
6231 2000-05-28  Eli Zaretskii  <eliz@is.elta.co.il>
6233         * charset.c (syms_of_charset): Set width of character sets
6234         eight-bit-control and eight-bit-graphic to 1 column.
6236 2000-05-26  Gerd Moellmann  <gerd@gnu.org>
6238         * config.in (HAVE_SPEED_T): New define.
6240         * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as
6241         `extern speed_t'.
6243 2000-05-26  Dave Love  <fx@gnu.org>
6245         * coding.c (shrink_decoding_region): Initialize eol_conversion.
6247         * data.c (Qsubrp, Qmany, Qunevalled): New variables.
6248         (Fsubr_arity): New function.
6249         (syms_of_data): Install them.
6251 2000-05-26  Kenichi Handa  <handa@etl.go.jp>
6253         * charset.c (init_charset_once): Set the table bytes_by_char_head
6254         correctly.
6256         * fontset.c (syms_of_fontset): Adjust the font name for ascii of
6257         the default fontset to what Emacs uses by default.
6258         (check_registry_encoding): This function deleted.
6259         (Fset_fontset_font): Remove the adhoc condition for the default
6260         fontset.  Allow cons in FONTNAME.
6262         * fns.c (map_char_table): Ignore char-table entries for
6263         charsets eight-bit-control and eight-bit-graphic.
6265 2000-05-25  Ken Raeburn  <raeburn@gnu.org>
6267         * emacs.c (main): Initialize keyboard syms before initializing
6268         window code, so face names are available.
6270 2000-05-25  Stefan Monnier  <monnier@cs.yale.edu>
6272         * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case
6273         of an anchor at the beginning of a shy-group.
6275 2000-05-25  Gerd Moellmann  <gerd@gnu.org>
6277         * xdisp.c (handle_invisible_prop): Don't try to skip over
6278         invisible text if end of text is already reached.
6280 2000-05-25  Dave Love  <fx@gnu.org>
6282         * xdisp.c (Fdump_glyph_matrix): Declare the arg.
6284         * coding.c (encode_eol): Add null statement after label.
6286 2000-05-25  Eli Zaretskii  <eliz@is.elta.co.il>
6288         * w16select.c (Fw16_set_clipboard_data): Fix the change from
6289         2000-05-20.
6291 2000-05-25  Kenichi Handa  <handa@etl.go.jp>
6293         * ccl.c (ccl_driver): Fix previous change.
6295 2000-05-25  Kenichi Handa  <handa@etl.go.jp>
6297         * coding.c (run_pre_post_conversion_on_str): Set point to the
6298         beginning of buffer before calling coding->post_read_conversion.
6299         (decode_coding_string): Give correct args to
6300         run_pre_post_conversion_on_str.
6301         (encode_coding_string): Likewise.
6303         * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>
6304         <CCL_WriteMultibyteChar2>:  Handle charsets eight-bit-control and
6305         eight-bit-graphic correctly.
6307 2000-05-24  Kenichi HANDA  <handa@etl.go.jp>
6309         * fileio.c (Finsert_file_contents): Even if a file is not found,
6310         execute codes for setting up coding system.  Call
6311         after-insert-file-functions unconditionally.
6313 2000-05-24  Gerd Moellmann  <gerd@gnu.org>
6315         * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and
6316         BSD_PGRPS are not defined.
6318 2000-05-24  Kenichi Handa  <handa@etl.go.jp>
6320         * charset.c (update_charset_table): Accept nil in LONG_NAME and
6321         DESCRIPTION.
6322         (syms_of_charset): Avoid building same strings.
6324 2000-05-23  Gerd Moellmann  <gerd@gnu.org>
6326         * lread.c (Fload): Add a comment about the meaning of
6327         Vuser_init_file being t.
6329         * puresize.h (BASE_PURESIZE): Increase to 675000.
6331         * s/gnu-linux.h (setpgrp): Don't define it here because this
6332         prevents compilation on GNU/Linux systems with glib 2.2.
6334         * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define
6335         as setpgid.
6337 2000-05-23  Eli Zaretskii  <eliz@is.elta.co.il>
6339         * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc,
6340         dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS
6341         version.
6342         (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc.
6344 2000-05-23  Kenichi Handa  <handa@etl.go.jp>
6346         * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE
6347         unconditionally.
6349         * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1.
6351         * term.c (encode_terminal_code): Set coding->src_multibyte
6352         properly.
6354         * coding.c (encode_eol): Fix a bug of DOS style EOL encoding.
6356 2000-05-22  Kenichi Handa  <handa@etl.go.jp>
6358         * keyboard.c (read_char): Allow character codes 128..255 to be
6359         handled by input-method-function.
6361         * insdel.c (adjust_markers_for_replace): Fix previous change.
6362         (adjust_after_replace): If PREV_TEXT is nil, call
6363         adjust_markers_for_insert, not adjust_markers_for_replace.
6365 2000-05-20  NIIBE Yutaka  <gniibe@mri.co.jp>
6367         * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define.
6368         (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF)
6369         [HAVE_GRANDPT]: Define.
6370         (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE.
6372         * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined
6373         like SYSV_PTYS.
6375         * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines.
6377         * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h.
6379 2000-05-20  Kenichi Handa  <handa@etl.go.jp>
6381         The following changes are to handle 8-bit characters in a
6382         multibyte buffer/string without facing with byte combining
6383         problem.  Two new charsets eight-bit-control (for 0x80..0x9F) and
6384         eight-bit-graphic (for 0xA0..0xFF) are introduced.
6386         * Makefile.in (fns.o): Depend on charset.h.
6388         * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte,
6389         convert it to unibyte.
6390         (make_string): Use parse_str_as_multibyte, not chars_in_text.
6392         * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a
6393         apparent char boundary.
6394         (Fset_buffer_multibyte): Convert 8-bit characters in the range
6395         0x80..0x9F to/from multibyte form.
6397         * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it
6398         to unibyte.
6400         * callproc.c (Fcall_process): Always encode an argument string if
6401         it is multibyte.  Setup src_multibyte and dst_multibyte members of
6402         process_coding properly.
6404         * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not
6405         SPLIT_NON_ASCII_CHAR.
6407         * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters
6408         as is.
6409         (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR.
6411         * charset.c (Qeight_bit_control, Qeight_bit_graphic): New
6412         variables.
6413         (SPLIT_CHARACTER_SEQ): This macro deleted.
6414         (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is
6415         valid.
6416         (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control
6417         and eight-bit-graphic.
6418         (char_to_string): Likewise.  Signal an error for too large
6419         character code.
6420         (char_printable_p): Return 0 for 8-bit characters.
6421         (update_charset_table): Update iso_charset_table only when a final
6422         character is non-negative.
6423         (find_charset_in_text): Renamed from find_charset_in_str.
6424         Arguments and return value changed.  Callers changed.
6425         (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can
6426         be -1 if CHARSET is used only internally.
6427         (Fmake_char_internal): Handle new charsets; eight-bit-control and
6428         eight-bit-graphic.
6429         (Fcharset_after): Simplified.
6430         (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR.
6431         (char_bytes): Return 2 for chars of the range 0xA0..0xFF.
6432         (multibyte_chars_in_text): Simplified by assuming there's no
6433         invalid multibyte sequence.
6434         (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
6435         str_as_unibyte): New functions.
6436         (Fstring): Simpified by assuming that byte combining never
6437         happens.
6438         (init_charset_once): Initialization for
6439         LEADING_CODE_8_BIT_CONTROL.
6440         (syms_of_charset): Intern and staticpro Qeight_bit_control and
6441         Qeight_bit_graphic.  Include them in Vcharset_list.  Make charsets
6442         eight-bit-control and eight-bit-graphic.
6444         * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,
6445         CHARSET_8_BIT_GRAPHIC): New macros.
6446         (SINGLE_BYTE_CHAR_P): Make it faster by using casting.
6447         (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT.
6448         (CHARSET_REVERSE_CHARSET): Likewise.
6449         (CHARSET_VALID_P): Handle new charsets; eight-bit-control and
6450         eight-bit-graphic.
6451         (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII.
6452         (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise.
6453         (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we
6454         encounter an invalid multibyte sequence.
6455         (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte
6456         sequence is always valid.
6457         (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted.
6458         (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New
6459         macros.
6460         (CHAR_STRING): For 8-bit characters, call char_to_string.
6461         (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version.  Assume
6462         multibyte sequence is always valid.
6463         (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise.
6464         (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte,
6465         str_as_unibyte): Extern them.
6466         (BCOPY_SHORT): Fix a bug.
6467         (CHAR_LEN): This macro deleted.  Callers changed to use
6468         CHAR_BYTES.
6469         (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING.
6470         (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro.
6471         (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
6473         * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to
6474         CODING_FINISH_INSUFFICIENT_SRC if there's not enough source.
6475         (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE,
6476         EMIT_BYTES): New macros.
6477         (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII,
6478         DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These
6479         macros deleted.
6480         (CHECK_CODE_RANGE_A0_FF): This macro deleted.
6481         (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to
6482         check the validity of multibyte sequence.
6483         (decode_coding_emacs_mule): New function.
6484         (encode_coding_emacs_mule): New macro.
6485         (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from
6486         the source.
6487         (DECODE_ISO_CHARACTER): Just return a character code.
6488         (DECODE_COMPOSITION_START): Set coding->result instead of result.
6489         (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use
6490         EMIT_CHAR to produced decoded characters.  Exit the loop only by
6491         macros ONE_MORE_BYTE or EMIT_CHAR.  Don't handle the case of last
6492         block here.
6493         (ENCODE_ISO_CHARACTER): Don't translate character here.  Produce
6494         only position codes for an invalid character.
6495         (encode_designation_at_bol): Return new destination pointer.  5th
6496         arg DSTP is changed to DST.
6497         (encode_coding_iso2022, decode_coding_sjis_big5): Get a character
6498         from the source by ONE_MORE_CHAR.  Don't handle the case of last
6499         block here.
6500         (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These
6501         macros deleted.
6502         (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8,
6503         detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and
6504         TWO_MORE_BYTES to fetch a byte from the source.
6505         (encode_eol): Pay attention to coding->src_multibyte.
6506         (detect_coding, detect_eol): Preserve members src_multibyte and
6507         dst_multibyte.
6508         (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text.
6509         (encoding_buffer_size): Set magnification to 3 for all coding
6510         systems that require encoding.
6511         (ccl_coding_driver): For decoding, be sure that the result is
6512         valid multibyte sequence.
6513         (decode_coding): Initialize coding->errors and coding->result.
6514         For emacs-mule, call decode_coding_emacs_mule.  For no-conversion
6515         and raw-text, always call decode_eol.  Handle the case of last
6516         block here.  If not coding->dst_multibyte, convert the resulting
6517         sequence to unibyte.
6518         (encode_coding): Initialize coding->errors and coding->result.
6519         For emacs-mule, call encode_coding_emacs_mule.  For no-conversion
6520         and raw-text, always call encode_eol.  Handle the case of last
6521         block here.
6522         (shrink_decoding_region, shrink_encoding_region): Detect cases
6523         that we can't skip data more rigidly.
6524         (code_convert_region): Setup src_multibyte and dst_multibyte
6525         members of coding.  For decoding, if the buffer is multibyte,
6526         convert the source sequence to unibyte in advance.  For encoding,
6527         if the buffer is multibyte, convert the resulting sequence to
6528         multibyte afterward.
6529         (run_pre_post_conversion_on_str): New function.
6530         (code_convert_string): Deleted and divided into the following two.
6531         (decode_coding_string, encode_coding_string): New functions.
6532         (code_convert_string1, code_convert_string_norecord): Call one of
6533         above.
6534         (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of
6535         MAKE_NON_ASCII_CHAR.
6536         (Fset_terminal_coding_system_internal,
6537         Fset_safe_terminal_coding_system_internal): Setup src_multibyte
6538         and dst_multibyte members.
6539         (init_coding_once): Initialize iso_code_class with new enum
6540         ISO_control_0 and ISO_control_1.
6542         * coding.h (enum iso_code_class_type): Member ISO_control_code is
6543         devided into ISO_control_0 and ISO_control_1.
6544         (struct coding_system): New members src_multibyte, dst_multibyte,
6545         errors, and result.  Delete member fake_multibyte.
6546         (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is
6547         nonzero.
6548         (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is
6549         nonzero.
6551         * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR.
6552         (Faset): Likewise.
6554         * editfns.c (Fformat): Be sure to convert 8-bit characters to
6555         multibyte form.
6556         (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte
6557         combining occurs.
6558         (Ftranspose_region): Delete codes for handling byte combining.
6560         * fileio.c (Finsert_file_contents): Setup src_multibyte and
6561         dst_multibyte members of coding.  On handling REPLACE on unibyte
6562         buffer, convert the result of decode_coding to unibyte.  On
6563         inserting into a mutibyte buffer, always call code_convert_region.
6564         (e_write): Setup coding->src_multibyte according to the
6565         multibyteness of the source (buffer or string).
6567         * fns.c (concat): Handle 8-bit characters correctly.
6568         (Fstring_as_unibyte): Be sure to make all 8-bit characters in
6569         unibyte in the result.
6570         (Fstring_as_multibyte): Be sure to make all 8-bit characters in
6571         valid multibyte form in the result.
6572         (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
6573         (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1
6574         return -1, signal an error.
6575         (base64_encode_1): New arg MULTIBYTE.  Get each character by
6576         CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero.  If a multibyte
6577         character is found, return -1.
6578         (Fbase64_decode_region): Delete codes for handling byte-combining.
6579         Treat each decoded byte as a unibyte character.
6580         (Fbase64_decode_string): Return unibyte string.
6581         (Fcompare_strings, concat, string_byte_to_char): Use
6582         FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off
6583         FETCH_STRING_CHAR_ADVANCE.
6584         (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
6585         (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE.
6587         * fontset.c (fontset_ref): Use SPLIT_CHAR instead of
6588         SPLIT_NON_ASCII_CHAR.
6589         (fontset_ref_via_base, fontset_set): Likewise
6591         * insdel.c (adjust_markers_for_record_delete): Deleted.
6592         (adjust_markers_for_insert): Argument changed.  Caller changed.
6593         (adjust_markers_for_replace): Likewise.
6594         (ADJUST_CHAR_POS, combine_bytes, byte_combining_error,
6595         CHECK_BYTE_COMBINING_FOR_INSERT): Deleted.
6596         (copy_text): Delete unused local varialbe c_save.  For converting
6597         to multibyte, be sure to make all 8-bit characters in valid
6598         multibyte form.
6599         (count_size_as_multibyte): Handle 8-bit characters correctly.
6600         (insert_1_both, insert_from_string_1, insert_from_buffer_1,
6601         adjust_after_replace, replace_range, del_range_2)
6602         [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs.
6603         (insert_1_both, insert_from_string_1, insert_from_buffer_1,
6604         adjust_after_replace, replace_range, del_range_2) Delete codes for
6605         handling byte combining.
6606         (adjust_before_replace): Deleted.
6608         * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of
6609         SPLIT_NON_ASCII_CHAR.
6610         (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR.
6611         (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE
6612         unconditionally.
6613         (Fkey_description): Likewise.
6615         * lread.c (read1): On reading multibyte string, be sure to make
6616         all 8-bit chararacters in valid multibyte form.
6617         (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally.
6619         * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE
6620         unconditionally.
6622         * process.c (Fstart_process): GCPRO current_dir before calling
6623         Ffind_operation_coding_system.  Encode arguments here.
6624         (create_process): Don't encode arguments here.  Setup
6625         src_multibyte and dst_multibyte members of struct coding.
6626         (read_process_output): Setup src_multibyte and dst_multibyte
6627         members of struct coding.  If the output is to multibyte buffer,
6628         always decode the output of the process.  Adjust the
6629         representation of 8-bit characters to the multibyteness of the
6630         output.
6631         (send_process): Setup coding->src_multibyte according to the
6632         multibyteness of the source.
6634         * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE
6635         unconditionally.
6636         (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and
6637         FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately.
6639         * term.c (produce_special_glyphs): Use CHAR_BYTES instead of
6640         CHAR_LEN.
6642         * w16select.c (Fw16_set_clipboard_data): Setup members
6643         src_multibyte and dst_multibyte of coding.  Adjusted for the
6644         change for find_charset_in_str.
6645         (Fw16_get_clipboard_data): Likewise.
6647         * w32fns.c (w32_to_x_font): Setup members src_multibyte and
6648         dst_multibyte of coding.
6649         (x_to_w32_font): Likewise.
6651         * w32select.c (Fw32_set_clipboard_data): Setup members
6652         src_multibyte and dst_multibyte of coding.  Adjusted for the
6653         change for find_charset_in_str.
6654         (Fw32_get_clipboard_data): Likewise.
6656         * xdisp.c (get_next_display_element): Handle 8-bit characters
6657         correctly.
6658         (next_element_from_display_vector): Use CHAR_BYTES instead of
6659         CHAR_LEN.
6660         (disp_char_vector): Use SPLIT_CHAR instead of
6661         SPLIT_NON_ASCII_CHAR.
6663         * xselect.c (selection_data_to_lisp_data): Setup members
6664         src_multibyte and dst_multibyte of coding.  Adjusted for the
6665         change for find_charset_in_str.
6666         (lisp_data_to_selection_data): Likewise.
6668 2000-05-19  Gerd Moellmann  <gerd@gnu.org>
6670         * buffer.c (Fbury_buffer): Avoid trouble from burying a killed
6671         buffer.
6673         * dispextern.h (Vimage_types): Add extern declaration.
6675         * xdisp.c (Vimage_types): Moved here from xfns.c.
6676         (syms_of_xdisp): Move `image-types' variable here from xfns.c.
6678         * xfns.c (Vimages_types): Moved to xdisp.c.
6679         (syms_of_xfns): Move `image-types' to xdisp.c.
6681         * w32fns.c (Vimage_types): Removed.
6682         (syms_of_w32fns): Remove `image-types'.
6684 2000-05-18  Kenichi Handa  <handa@etl.go.jp>
6686         * fns.c (map_char_table): Pay attention to character number of
6687         charset.  Check the validity of charset at the first level.   For
6688         leaf nodes that has nil value, call C_FUNCTION or FUNCTION with
6689         the default value.
6691         * fontset.c: Include "buffer.h".
6692         (fs_load_font): If the face has fontset, record the face ID in
6693         that fontset.
6694         (Finternal_char_font): New function.
6695         (accumulate_font_info): New function.
6696         (Ffontset_info): Rewritten for the new fontset implementation.
6697         (syms_of_fontset): Register Vdefault_fontset in the first element
6698         of Vfontset_table.  Include Vdefault_fontset in
6699         Vfontset_alias_alist.  Declare `internal-char-font' as a Lisp
6700         function.
6702 2000-05-16  Dave Love  <fx@gnu.org>
6704         * m/iris5d.h: Deleted -- unused.
6706 2000-05-16  Gerd Moellmann  <gerd@gnu.org>
6708         * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term
6709         `invalid' instead of `illegal'.
6711         * indent.c (Fmove_to_column): When ending within a tab, insert
6712         spaces first so that markers at the end of the tab get adjusted.
6714         * frame.c (frames_bury_buffer): Don't add a buffer to the frame's
6715         buffer list that wasn't selected in that frame.
6717         * filelock.c (get_boot_time): To obtain an 8 char file name, which
6718         is needed on mescaline, use a 2 char prefix, and call
6719         make_temp_name with second arg non-zero.
6721         * fileio.c (make_temp_name): New function, extracted from
6722         Fmake_temp_name.
6723         (Fmake_temp_name): Use it.
6725 2000-05-15  Eli Zaretskii  <eliz@is.elta.co.il>
6727         * window.c (coordinates_in_window): Subtract 1 when computing
6728         right_x.
6730 2000-05-15  Gerd Moellmann  <gerd@gnu.org>
6732         * Makefile.in (lisp): Add env.elc.
6734         * callproc.c (Fgetenv_internal): Renamed from Fgetenv.
6736 2000-05-12  Gerd Moellmann  <gerd@gnu.org>
6738         * search.c (Freplace_match): Handle case of `\N' in the
6739         replacement when there's no group N.
6741 2000-05-11  Gerd Moellmann  <gerd@gnu.org>
6743         * xdisp.c (add_to_log): Don't pass the terminating NUL byte
6744         of the message to message_dolog.
6746         * keyboard.c (read_char): Don't clear current message for help
6747         events; let the code handling help events handle this.  Change
6748         code detecting help events that should be ignored.
6750         * xdisp.c (handle_single_display_prop): Don't try to set PT if
6751         we're interating over a string.
6753 2000-05-09  Dave Love  <fx@gnu.org>
6755         * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to
6756         that offset before writing.  Move gcpro region past call of
6757         Ffile_regular_p.
6759 2000-05-04  Dave Love  <fx@gnu.org>
6761         * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix.
6763 2000-05-04  Gerd Moellmann  <gerd@gnu.org>
6765         * insdel.c (insert_from_buffer_1): Adjust FROM position by number
6766         of inserted characters when BUF equals the current buffer, and PT
6767         is in front of or equal to FROM.
6769 2000-05-03  Gerd Moellmann  <gerd@gnu.org>
6771         * xdisp.c (handle_single_display_prop): If display property value
6772         is invalid, or something not supported on the frame, restore
6773         iterator's position to what it was initially.  Make sure to return
6774         0 for invalid and unsupported property values.
6776         * xterm.c (x_produce_glyphs) <composite chars>: Handle case
6777         that x_per_char_metric returns null.
6779 2000-05-02  Gerd Moellmann  <gerd@gnu.org>
6781         * xterm.h (struct face): Add forward declaration.
6782         (struct image): Ditto.
6783         (image_ascent): Add prototype.
6785         * xterm.c (x_produce_image_glyph, x_draw_image_foreground)
6786         (x_draw_image_relief, x_draw_image_foreground_1): Call function
6787         image_ascent instead of using IMAGE_ASCENT.
6789         * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro.
6790         (IMAGE_ASCENT): Removed.
6792         * xfns.c (Qcenter): New variable.
6793         (enum image_value_type): Add IMAGE_ASCENT_VALUE.
6794         (parse_image_spec): Handle IMAGE_ASCENT_VALUE.
6795         (image_ascent): New function.
6796         (lookup_image): Recognize `:ascent center'.
6797         (xbm_format, xpm_format, pbm_format, png_format, jpeg_format)
6798         (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
6799         (xbm_load): Don't set image's ascent here.
6800         (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p)
6801         (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't
6802         check ascent values here.
6803         (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed.
6804         (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions.
6805         (syms_of_xfns): Initialize Qcenter.
6807         * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near
6808         to the limits, increase the limits.
6810 2000-05-01  Kenichi Handa  <handa@etl.go.jp>
6812         * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII.
6813         Check Vfont_encoding_alist against the full name of the opened
6814         font.
6816 2000-04-28  Gerd Moellmann  <gerd@gnu.org>
6818         * xdisp.c (make_cursor_line_fully_visible): Handle case of rows
6819         taller than the window.
6821 2000-04-28  Kenichi Handa  <handa@etl.go.jp>
6823         * xfaces.c (realize_x_face): Fix the argument of the second
6824         xassert.  BASE_FACE may not be a face for ASCII.
6826 2000-04-27  Gerd Moellmann  <gerd@gnu.org>
6828         * print.c (print_object): Treat print-length < 0 as nil.
6830         * Makefile.in (termcapobj): Don't use TERMCAP_OBJ.
6832         * s/freebsd.h (TERMCAP_OBJ): Removed.
6833         (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000.
6835         * lread.c (read1): Don't treat period followed by certain
6836         characters as symbol start.
6838         * xfns.c (slurp_file): New function.
6839         (xbm_image_p): Handle case of in-memory XBM files.
6840         (xbm_scan): Rewritten to work on memory buffers instead of files.
6841         (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data.
6842         Work on memory buffers instead of files.  If DATA is null test
6843         if buffer looks like an in-memory XBM file.
6844         (xbm_load_image): Renamed from xbm_load_image_file.  Work on
6845         memory buffers instead of files.
6846         (xbm_file_p): New function.
6847         (xbm_load): Accept :data DATA where DATA is an in-memory XBM file.
6849         * lread.c (end_of_file_error): New function.
6850         (read1): Call it instead of signaling `end-of-file' directly.
6852         * print.c (print_error_message): Print data of `end-of-file'
6853         with Fprinc instead of Fprin1.
6855 2000-04-26  Ken Raeburn  <raeburn@gnu.org>
6857         * window.c (freeze_window_start): Check that minibuffer scroll
6858         window isn't nil before extracting the window structure pointer
6859         from it.
6861         * undo.c (record_delete): If we hit the end of the undo list, stop
6862         picking elements apart.
6864 2000-04-26  Gerd Moellmann  <gerd@gnu.org>
6866         * xdisp.c (display_line): If lines are continued, restore
6867         iterator's ascent/descent information to the values before the
6868         first glyph not fitting on the line.
6870 2000-04-25  Gerd Moellmann  <gerd@gnu.org>
6872         * xdisp.c (try_window_id) <all changes above window start>: Adjust
6873         positions in glyph matrix.  Don't compute new window end
6874         positions.
6876         * dispnew.c (increment_matrix_positions): Renamed from
6877         increment_glyph_matrix_buffer_positions.
6878         (increment_row_positions): Renamed from
6879         increment_glyph_row_buffer_positions.
6881         * dispextern.h: Change names of renamed functions from dispnew.c
6882         in prototypes.
6884 2000-04-24  Gerd Moellmann  <gerd@gnu.org>
6886         * fileio.c (Fdo_auto_save): Create directories for auto-save
6887         list file if necessary.
6889         * xdisp.c (init_iterator): Set iterator's extra_line_spacing
6890         from buffer or frame.
6891         (automatic_hscrolling_p): New variable.
6892         (hscroll_windows): Scroll windows horizontally only if automatic
6893         hscrolling is allowed.
6894         (syms_of_xdisp): New variable `automatic-hscrolling'.
6896         * frame.h (struct frame): Add member extra_line_spacing.
6898         * xfns.c (x_set_line_spacing): New function.
6899         (Fx_create_frame): Set line spacing from resources.
6900         (Qline_spacing): New variable.
6901         (syms_of_xfns): Initialize Qline_spacing.
6903         * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'.
6905         * buffer.c (init_buffer_once): Handle extra_line_spacing.
6906         (syms_of_buffer): Add `default-line-spacing' and `line-spacing'.
6907         (reset_buffer): Don't initialize extra2 and extra3.  Initialize
6908         extra_line_spacing from default value.
6909         (init_buffer_once): Initialize default value of extra_line_spacing.
6911         * buffer.h (struct buffer): Add extra_line_spacing, remove extra2
6912         and extra3.
6914         * xterm.c (x_produce_glyphs): Remove reference to struct it's
6915         prompt_width.  Add extra line spacing.
6917         * term.c (produce_glyphs): Remove reference to struct it's
6918         prompt_width.
6920         * dispextern.h (struct it): Remove member prompt_width, add
6921         extra_line_spacing.
6923 2000-04-22  Gerd Moellmann  <gerd@gnu.org>
6925         * dispnew.c (update_frame_line): When writing a whole line, make
6926         sure cursor is in the right row afterwards, otherwise a use of
6927         capability `ch' in cmgoto might leave the cursor in the row below.
6929 2000-04-21  Gerd Moellmann  <gerd@gnu.org>
6931         * lisp.h (struct Lisp_Buffer_Cons): Remove.
6933         * keyboard.c (timer_check): Fix typo in comment.
6935 2000-04-21  Kenichi Handa  <handa@etl.go.jp>
6937         * fontset.c (Fset_fontset_font): Fix docstring.  Local variable
6938         name change: ch -> character.
6940 2000-04-20  Gerd Moellmann  <gerd@gnu.org>
6942         * keyboard.c (echo_message_buffer): New variable.
6943         (echo_now): Set echo_message_buffer to the echo area buffer used
6944         to display the echo.
6945         (cancel_echoing): Reset echo_message_buffer to nil.
6946         (read_char): Code rewritten that handles canceling an echo or
6947         echoing a dash, respectively.
6949         * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent
6950         directory doesn't exist.
6952 2000-04-19  Dave Love  <fx@gnu.org>
6954         * fns.c (syms_of_fns): Defsubr mapc.
6955         (concat): Don't allow numeric args.
6956         (Fconcat): Doc change.
6958 2000-04-19  Stefan Monnier  <monnier@cs.yale.edu>
6960         * regex.c (re_match_2_internal): Don't shorten the strings anymore,
6961         instead define end_match(1|2) more carefully.
6962         Use GET_CHAR_BEFORE_2 for `begline'.
6964 2000-04-19  Gerd Moellmann  <gerd@gnu.org>
6966         * frame.h (SELECTED_FRAME): Change definition to compile cleanly
6967         on 64-bit systems where NULL is defined as `0'.
6969         * xdisp.c (with_echo_area_buffer): Add more `int' parameters for
6970         the `variable argument list' to make it work on Alpha.
6972         * m/alpha.h (_LP64) [!_LP64]: Define.
6973         (ORDINARY_LINK): Define for NetBSD.
6975         * m/macppc.h (ORDINARY_LINK): Define for NetBSD.
6977 2000-04-19  Dave Love  <fx@gnu.org>
6979         * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14
6980         change.
6982         * Makefile.in (LIBS): Don't use.
6983         (GETLOADAVG_OBJ): Define again.
6984         (otherobj): Add GETLOADAVG_OBJ.
6986         * buffer.c (Fmake_indirect_buffer): Escape newline in doc.
6988 2000-04-18  Gerd Moellmann  <gerd@gnu.org>
6990         * lread.c (read_filtered_event): Cancel and start busy cursor.
6992         * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account
6993         that the per-character metrics may be null.
6995 2000-04-17  Gerd Moellmann  <gerd@gnu.org>
6997         * buffer.c (clone_per_buffer_values): New function.
6998         (Fmake_indirect_buffer): Add optional argument CLONE.  Call
6999         clone_per_buffer_values if CLONE is not nil.
7001         * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix.
7003 2000-04-16  Dave Love  <fx@gnu.org>
7005         * Makefile.in: Remove obsolete localcpp stuff.
7006         (GETLOADAVG_OBJ): Don't define.
7007         (obj): Move LIBOBJS...
7008         (otherobj): ... to here.
7009         (MSDOS_OBJ): Convert to make variable -- preprocessing zapped
7010         whitespace-only lines after the continuation (Irix).
7012 2000-04-14  Gerd Moellmann  <gerd@gnu.org>
7014         * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors.
7016         * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'.
7018 2000-04-14  Dave Love  <fx@gnu.org>
7020         * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h:
7021         * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h:
7022         * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h:
7023         * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated
7024         NLIST_STRUCT.
7026         * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define
7027         autoconfiscated HAVE_GETLOADAVG.
7029         * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated
7030         BROKEN_MKTIME.
7032 2000-04-14  Gerd Moellmann  <gerd@gnu.org>
7034         * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes.
7035         (fill_in_lock_file_name): Avoid existing files that aren't
7036         links.
7038 2000-04-14  Dave Love  <fx@gnu.org>
7040         * Makefile.in (LIBS, LIBOBJS): New variable.
7041         (INTERVAL_SRC): Convert to make variable.
7042         (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT)
7043         (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove.
7044         (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and
7045         add LIBOBJS.
7046         (SOME_MACHINE_OBJECTS): Remove interval stuff.
7047         (lisp): Substitute FACE_SUPPORT, FLOAT_SUP.
7048         (shortlisp): Add facemenu, float-sup, frame.
7049         (SOME_MACHINE_LISP): Remove them from here.
7050         (LIBES): Change unused LDLIBS to autoconf LIBS.
7052         * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION.
7054 2000-04-14  Kenichi Handa  <handa@etl.go.jp>
7056         * composite.c (update_compositions): If FROM and TO are not in a
7057         valid range, do nothing.
7059 2000-04-13  Gerd Moellmann  <gerd@gnu.org>
7061         * tparam.c (tparam1): Abort when encountering an unknown
7062         `%'-specifier.
7064         * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as
7065         terminfo.o.
7067         * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define
7068         as TERMCAP_OBJ.
7070 2000-04-13  Eli Zaretskii  <eliz@is.elta.co.il>
7072         * fileio.c (a_write): Remove redundant semi-colons.
7073         (e_write): Return -1 if failed to write all the data.
7074         This fixes the changes made at 1999-12-15.
7076 2000-04-12  Dave Love  <fx@gnu.org>
7078         * fns.c (mapcar1): Test for null vals to support mapc.
7079         (Fmapc): New function.
7081 2000-04-12  Eli Zaretskii  <eliz@is.elta.co.il>
7083         * msdos.c (NUM_MOUSE_BUTTONS): Define.
7084         (IT_frame_up_to_date): Support the buffer local value of
7085         cursor-type, if defined.
7087 2000-04-10  Dave Love  <fx@gnu.org>
7089         * editfns.c (preceding-char, following-char): Doc fix.
7091 2000-04-10  Ken Raeburn  <raeburn@gnu.org>
7093         * Makefile.in (temacs): Revert 2000-03-12 change.
7095 2000-04-10  Jason Rumney  <jasonr@gnu.org>
7097         * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P.
7099 2000-04-10  Gerd Moellmann  <gerd@gnu.org>
7101         * xdisp.c (setup_echo_area_for_printing): Choose an echo
7102         area buffer, if it's not set up yet.
7104         * indent.c (compute_motion): Set immediate_quit.
7106 2000-04-09  Gerd Moellmann  <gerd@gnu.org>
7108         * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New
7109         variable.
7110         (realize_tty_face): Suppress boldness if colors are the inverse of
7111         the default colors, and tty_suppress_bold_inverse_default_colors_p
7112         is set.
7113         (Ftty_suppress_bold_inverse_default_colors): New function.
7114         (syms_of_xfaces): Defsubr it.
7116         * buffer.c (Frestore_buffer_modified_p): New function.
7117         (syms_of_buffer): Defsubr it.
7119 2000-04-08  Ken Raeburn  <raeburn@gnu.org>
7121         * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a
7122         charset id (int) argument, not a charset (Lisp_Object).
7124         * coding.h (code_convert_string): Declare.
7125         * coding.c (code_convert_string_norecord): Pass an int, not a lisp
7126         object, as the fourth argument to code_convert_string.
7128         * fontset.c (make_fontset_for_ascii_face): Use XINT on return
7129         value.
7130         (Fset_fontset_font): Use EQ to compare lisp objects.
7132 2000-04-05  Ken Raeburn  <raeburn@gnu.org>
7134         * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for
7135         a pointer that looks like a lisp object.
7136         (SET_INTERVAL_OBJECT): Don't explicitly compare the object with
7137         zero, instead see whether it's an integer object, since they can't
7138         have intervals.
7139         (GET_INTERVAL_OBJECT): Simply assign to the destination.
7141         * dispnew.c (allocate_matrices_for_frame_redisplay,
7142         direct_output_forward_char): Use X(U)INT and make_number as needed
7143         to convert between (unsigned) int values and lisp integers.
7144         * keyboard.c (read_key_sequence): Likewise.
7145         * lread.c (substitute_object_recurse): Likewise.
7146         * fns.c (concat, hash_lookup, hash_remove): Likewise.
7147         * minibuf.c (do_completion, Fminibuffer_complete_word,
7148         Fminibuffer_completion_help): Likewise.
7149         * term.c (produce_special_glyphs): Likewise.
7151         * fileio.c (Fwrite_region): Use EQ when comparing lisp objects.
7152         * print.c (print_preprocess, print_object): Likewise.
7154         * search.c (compile_pattern): Use NILP when checking for nil.
7156         * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 &&
7157         __OPTIMIZE__]: Provide a GNU C macro version that handles
7158         lisp-object unions.
7159         (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type
7160         field, to better cope with ENABLE_CHECKING and calls that modify a
7161         Lisp_Object using its old value.
7163 2000-04-04  Gerd Moellmann  <gerd@gnu.org>
7165         * window.c (compare_window_configurations): Signal an error
7166         if parameters C1 or C2 aren't window configurations.
7168         * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/
7169         AFTER_POTENTIAL_GC calls around calls to functions that can
7170         signal an error and thus invoke the debugger.
7172 2000-04-03  Gerd Moellmann  <gerd@gnu.org>
7174         * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal
7175         an error if decoding fails.
7177         * keyboard.c (lispy_mouse_names): Variable removed.
7178         (Vlispy_mouse_stem): New variable.
7179         (syms_of_keyboard): Initialize Vlispy_mouse_stem.
7180         (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort
7181         for any mouse button number.  Increase size of mouse_syms and
7182         button_down_location as needed.  Call modify_event_symbol with
7183         different arguments.
7184         (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]:
7185         Call modify_event_symbol with different arguments.
7186         (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort
7187         for any button number.  Call modify_event_symbol with different
7188         arguments.
7189         (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM.
7190         Accept a string for NAME_ALIST_OR_STEM.
7192         * lisp.h (larger_vector): Add prototype.
7194         * fns.c (larger_vector): Make externally visible.
7196         * termhooks.h (NUM_MOUSE_BUTTONS): Removed.
7198 2000-04-02  Stefan Monnier  <monnier@cs.yale.edu>
7200         * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.
7201         (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros.
7202         (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when
7203         we are between str1 and str2.
7204         (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default.
7205         (PATFETCH): Use `TRANSLATE'.
7206         (PATFETCH_RAW): Fetch multibyte char if applicable.
7207         (PATUNFETCH): Remove.
7208         (regex_compile): Rely on PATFETCH to do most of the multibyte magic.
7209         When writing a char, write it directly into the pattern buffer rather
7210         than going needlessly through a temp char-array.
7211         (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the
7212         multibyte magic and remove the useless `#ifdef emacs'.
7213         (bcmp_translate): Don't compare as multibyte chars when in a unibyte
7214         buffer.
7216         * regex.h (struct re_pattern_buffer): Make field `multibyte'
7217         conditional on `emacs'.
7219         * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
7221 2000-04-01  Ken Raeburn  <raeburn@gnu.org>
7223         * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand
7224         non-union-type versions of XMARK and friends here, because XMARK
7225         and friends won't work on an integer field if NO_UNION_TYPE is not
7226         defined.
7227         (make_number): Define as a function if it's not defined as a
7228         macro.
7230         * composite.c (run_composite_function): Use NILP when checking for
7231         nil.
7232         (syms_of_composite): Delete local var NARGS, pass an int as first
7233         argument to Fmake_hash_table.
7235         * editfns.c (text_property_stickiness): Use NILP to test
7236         Lisp_Object boolean value.
7237         (Fmessage_or_box): Don't use NILP to test int variable.
7238         (Fformat): Use a temporary variable to avoid ENABLE_CHECKING
7239         problems reading from and changing the same lisp value in an
7240         XSETSTRING call.
7242 2000-04-01  Gerd Moellmann  <gerd@gnu.org>
7244         * term.c (TN_no_color_video): New variable.
7245         (term_init): Intitialize TN_no_color_video.
7246         (enum no_color_bit): New enumeration.
7247         (MAY_USE_WITH_COLORS_P): New macro.
7248         (turn_on_face): Use it to determine if attributes may be used
7249         combined with colors.
7251 2000-04-01  Ken Raeburn  <raeburn@gnu.org>
7253         * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues
7254         with int lvalues via casts; instead, just yield lisp object
7255         lvalues.
7256         (enlarge_window): Variable sizep now points to Lisp_Object.  Use
7257         proper accessor macros.
7258         (shrink_window_lowest_first): w->top is Lisp_Object; use XINT.
7259         (grow_mini_window): Fix typo getting int value of root->height.
7261         * xdisp.c (compute_string_pos): Fix order of arguments to
7262         string_pos_nchars_ahead.
7263         (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as
7264         count arg to variable-arg routines like Frun_hook_with_args and
7265         Fformat.
7266         (back_to_previous_visible_line_start)
7267         (build_desired_tool_bar_string): Pass Lisp_Object, not int, to
7268         fixed-arg routines like Fget_char_property and Fmake_string.
7269         (reconsider_clip_changes): Use XINT when comparing integer lisp
7270         objects, or passing them as int arguments.
7271         (mark_window_display_accurate, insert_left_trunc_glyphs)
7272         (append_space, extend_face_to_end_of_line): Use make_number when
7273         storing or passing integer values as lisp objects.
7274         (set_cursor_from_row, highlight_trailing_whitespace): Use
7275         INTEGERP, not implicit test against zero, for glyph object.
7276         (try_window_id): Don't use make_number when we want an int value.
7278         * xfaces.c (xlfd_symbolic_value): Make last argument a
7279         Lisp_Object, to be consistent with callers.
7280         (Fbitmap_spec_p): Use XINT to get numeric value of height.
7281         (lface_hash): Apply XFASTINT to lisp values before folding in.
7283         * xfns.c (Fx_show_tip): Use make_number to get lisp objects to
7284         fill in window width and height.  Pass an int, not a lisp object,
7285         as first arg to Finsert.
7287 2000-04-01  Gerd Moellmann  <gerd@gnu.org>
7289         * xfaces.c (realize_basic_faces): Block input while realizing
7290         the faces.
7292         * keyboard.c (lispy_mouse_names): Add additional mouse names.
7294         * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15.
7296 2000-03-31  Gerd Moellmann  <gerd@gnu.org>
7298         * xterm.c (x_produce_glyphs): When displaying unibyte text
7299         or ASCII, handle case that per-char metric is null.
7301 2000-03-30  Ken Raeburn  <raeburn@gnu.org>
7303         * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef.
7305         * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW,
7306         XSUBR, XBUFFER): Verify correct object type before returning
7307         pointer, using eassert.
7308         * frame.h (XFRAME): Likewise.
7310         * buffer.c (Frename_buffer, Fset_buffer_multibyte,
7311         swap_out_buffer_local_variables, Fmove_overlay): Don't apply
7312         XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong
7313         type.
7314         * data.c (set_internal): Likewise.
7315         * dispextern.h (WINDOW_WANTS_MODELINE_P,
7316         WINDOW_WANTS_HEADER_LINE_P): Likewise.
7317         * fileio.c (auto_save_1): Likewise.
7318         * insdel.c (check_markers): Likewise.
7319         * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise.
7320         * undo.c (record_insert): Likewise.
7321         * vmsproc.c (child_sig): Likewise.
7322         * window.c (unshow_buffer, window_loop): Likewise.
7323         * xterm.c (x_erase_phys_cursor): Likewise.
7325 2000-03-30  Gerd Moellmann  <gerd@gnu.org>
7327         * xfns.c (free_image_cache): Free the cache structure itself
7328         last, after all its members have been freed.
7330         * lisp.h (xstrdup): Add prototype.
7332         * alloc.c (xstrdup): Moved here from xfaces.c.
7333         (allocating_for_lisp): Variable removed.
7334         (lisp_malloc): Block input around the calls to malloc and
7335         mem_insert.
7337         * xfaces.c (realize_tty_face): Use find_symbol_value instead
7338         of Fsymbol_value.
7339         (xstrdup): Moved to alloc.c.
7341 2000-03-29  Ken Raeburn  <raeburn@gnu.org>
7343         * scroll.c (CHECK_BOUNDS): Renamed from CHECK.
7345         * emacs.c (main): Fix sense of no-loadup test.
7347         * config.in (ENABLE_CHECKING): Undef.
7349         * lisp.h (struct interval): Replace "parent" field with a union of
7350         interval pointer and Lisp_Object; add new bitfield to use as
7351         discriminant.  Change other flag fields to bitfields.
7352         (CHECK): New macro for consistency checking.  If ENABLE_CHECKING
7353         is defined and the supplied test fails, print a message and
7354         abort.
7355         (eassert): New macro.  Use CHECK to provide an assert-like
7356         facility.
7358         * intervals.h (NULL_INTERVAL_P): Now applies only to real interval
7359         pointers; abort if the value looks like a lisp object.
7360         (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT,
7361         SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT):
7362         Modify for new interval parent definition.
7364         * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE,
7365         UNMARK_BALANCE_INTERVALS): Update references that need an
7366         addressable lisp object in the interval structure.
7367         (die): New function.
7368         (suppress_checking): New variable.
7370         * intervals.c (interval_start_pos): Just return 0 if there's no
7371         parent object.
7373 2000-03-29  Gerd Moellmann  <gerd@gnu.org>
7375         * lread.c (read1): Accept `.' (period) as symbol start like in CL
7376         and earlier Emacs versions.
7378         * keyboard.c (Ftop_level): Cancel busy-cursor.
7380         * eval.c (call_debugger): Cancel busy-cursor.
7382 2000-03-29  Kenichi Handa  <handa@etl.go.jp>
7384         * search.c (Freplace_match): Adjust multibyteness of the current
7385         buffer and NEWTEXT.  Free allocated memory before signaling an
7386         error.
7388 2000-03-28  Stefan Monnier  <monnier@cs.yale.edu>
7390         * regex.c (analyse_first): New function obtained by ripping out most
7391         of re_compile_fastmap and generalizing it a little bit so that it
7392         can also just return whether a given (sub)pattern can match the empty
7393         string or not.
7394         (regex_compile): Use `analyse_first' to decide whether the loop-check
7395         needs to be done or not for *, +, *? and +? (the loop check is costly
7396         for non-greedy repetition).
7397         (re_compile_fastmap): Delegate the actual work to `analyse_first'.
7399 2000-03-28  Dave Love  <fx@gnu.org>
7401         * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k,
7402         alpha.
7404         * alloc.c: Include stdio.h.  Test STDC_HEADERS, not __STDC__.
7406 2000-03-27  Stefan Monnier  <monnier@cs.yale.edu>
7408         * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as
7409         an expression.
7410         (enum re_opcode_t): Update description of succeed_n.
7411         (PATFETCH): Always define.
7412         (regex_compile): Use lookahead rather than PATUNFETCH (for repetition
7413         operators, char classes, shy-groups and intervals).
7414         Optimize special cases of intervals so as to only use succeed_n and
7415         jump_n when really needed.
7416         (re_compile_fastmap): Simplify handling of jump_n and succeed_n now
7417         that we don't have to handle the special cases any more.
7418         Simplify on_failure_jump handling as well.
7420 2000-03-28  Jason Rumney  <jasonr@gnu.org>
7422         * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT.
7424 2000-03-27  Gerd Moellmann  <gerd@gnu.org>
7426         * s/freebsd.h (GC_SETJMP_WORKS): Define.
7428         * s/msdos.h (GC_SETJMP_WORKS): Define.
7430         * alloc.c (mark_maybe_object): New function.
7431         (mark_memory): Use it.
7432         (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros.
7433         (setjmp_tested_p, longjmp_done): New variables.
7434         (test_setjmp): New function.
7435         (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp.
7436         (init_alloc): Initialize setjmp_tested_p and longjmp_done.
7438         * xdisp.c (face_before_or_after_it_pos): Pass multibyteness
7439         to DEC_TEXT_POS and INC_TEXT_POS.
7441         * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS
7442         with parameter MULTIBYTE_P.
7444         * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter
7445         MULTIBYTE_P.
7447         * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte
7448         buffers because it looks for multibyte character byte sequences
7449         which don't exist in unibyte text.
7451         * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes.
7453         * xfaces.c (register_color, unregister_color, unregister_colors)
7454         [DEBUG_X_COLORS]: New functions.
7455         (x_free_colors) [DEBUG_X_COLORS]: Unregister colors.
7457         * xfns.c (x_set_cursor_color): Get color reference counts right.
7459         * xterm.c (x_copy_color): New function.
7460         (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color.
7462         * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS.
7463         (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET.
7464         (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX.
7465         (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P.
7466         (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P.
7467         (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX.
7468         (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE.
7469         (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE.
7470         (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL.
7471         (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE.
7473         * category.c, data.c, syntax.c, print.c, lread.c: Use new macro
7474         names for handling per-buffer variables.
7476         * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS
7477         instead of MAX_BUFFER_LOCAL_VARS.
7478         (last_per_buffer_idx): Renamed from max_buffer_local_idx.
7480         * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P.
7482         * xfns.c (x_specified_cursor_type): New function.
7483         (x_set_cursor_type): Use it.
7485         * buffer.h (struct buffer): Add cursor_type.
7487 2000-03-26  Stefan Monnier  <monnier@cs.yale.edu>
7489         * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop.
7490         (print_partial_compiled_pattern, re_compile_fastmap): Handle new
7491         opcode.
7492         (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops.
7493         (re_match_2_internal): Add code for on_failure_jump_nastyloop when
7494         executing it as well as when popping it off the stack to find infinite
7495         loops in non-greedy repetition operators.
7497 2000-03-26  Gerd Moellmann  <gerd@gnu.org>
7499         * doc.c (Qfunction_documentation): New variable.
7500         (syms_of_doc): Initialize Qfunction_documentation.
7501         (Fdocumentation): If FUNCTION is a symbol with non-nil
7502         `function-documentation' property, return a documentation derived
7503         from that.
7505         * buffer.c (syms_of_buffer): Add default-cursor-type.
7506         (init_buffer_once): Don't let cursor_type have a local value
7507         in every buffer.
7509         * xterm.c (x_display_and_set_cursor): Choose cursor depending
7510         on buffer-local value of cursor_type.
7511         (x_draw_bar_cursor): Add parameter WIDTH.
7513         * buffer.c (reset_buffer): Initialize buffer's cursor_type.
7514         (init_buffer_once): Set default cursor_type value to t.
7515         Mark cursor_type as local everywhere.
7516         (syms_of_buffer): New per-buffer variable cursor-type.
7518         * buffer.h (struct buffer): Remove member local_var_flags,
7519         add local_flags.
7520         (MAX_BUFFER_LOCAL_VARS): New macro.
7521         (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX)
7522         (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P)
7523         (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE)
7524         (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros.
7526         * print.c (print_object): Use new macros for per-buffer
7527         variables.
7529         * category.c (Fset_category_table): Use new macros for per-buffer
7530         variables.
7532         * buffer.c (buffer_permanent_local_flags): Make a char array.
7533         (max_buffer_local_idx): New variable.
7534         (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten
7535         for new handling of per-buffer variables.
7536         (buffer_slot_type_mismatch): Use new macros for per-buffer vars.
7537         (init_buffer_once): Initialize per-buffer vars differently.
7538         Set max_buffer_local_idx.
7540         * syntax.c (Fset_syntax_table): Use new macros for per-buffer
7541         variables.
7543         * lread.c (defvar_per_buffer): Use new macros for per-buffer
7544         variables.
7546         * data.c (do_symval_forwarding, store_symval_forwarding)
7547         (find_symbol_value, set_internal, default_value, Fset_default)
7548         (Fkill_local_variable, Flocal_variable_p): Use new macros for
7549         per-buffer variables.
7551         * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'.
7553 2000-03-24  Gerd Moellmann  <gerd@gnu.org>
7555         * xterm.c (x_term_init): Unblock input around call1 of
7556         Qvendor_specific_keysyms.
7558         * syntax.c (open_paren_in_column_0_is_defun_start): New variable.
7559         (find_defun_start): Consider an open parenthesis in column 0
7560         a defun start only if open_paren_in_column_0_is_defun_start is set.
7561         (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start.
7563 2000-03-24  Stefan Monnier  <monnier@cs.yale.edu>
7565         * eval.c (Fautoload): Add entry in load-history (if after dump).
7566         * lread.c (load-history): Update docstring.
7568 2000-03-24  Gerd Moellmann  <gerd@gnu.org>
7570         * indent.c (Fvertical_motion): Always use the current buffer.
7571         Temporarily change the window's buffer, if necessary.
7573 2000-03-23  Gerd Moellmann  <gerd@gnu.org>
7575         * xterm.c (fast_find_position): Make sure not to consider rows
7576         not visible in the window.
7578 2000-03-22  Stefan Monnier  <monnier@cs.yale.edu>
7580         * regex.c (enum syntaxcode): Provide default for non-Emacs.
7581         (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix.
7583 2000-03-22  Jason Rumney  <jasonr@gnu.org>
7585         * w32menu.c (single_submenu): Set help string to NULL if none.
7586         (w32_menu_show): Set help string correctly.
7587         (add-menu-item): Set help string in MIIM_DATA for menu item.
7588         Load SetMenuItemInfoA explicitly.
7589         (w32_menu_display_help): New function.
7591         * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message.
7592         (QCdata): Moved to xdisp.c.
7594         * w32term.c (w32_read_socket): Handle WM_MENUSELECT message.
7595         (Vw32_charset_to_codepage_alist): Removed.
7596         (Vw32_charset_info_alist): New variable.
7597         (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312,
7598         chinesebig5, oem, easteurope, turkish, baltic, russian, arabic,
7599         greek, hebrew, thai, johab, mac, unicode]): New symbols.
7600         (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace
7601         with TODO comment.
7602         (w32_codepage_for_font): Use Vw32_charset_info_alist.
7603         (syms_of_w32term): Remove Vw32_charset_to_codepage_alist.
7604         Define Vw32_charset_info_alist and w32_charset symbols.
7606 2000-03-22  Jason Rumney  <jasonr@gnu.org>
7608         * makefile.nt (w32bdf.obj): Update dependencies.
7610         * w32bdf.c: Include frame.h and dispextern.h before fontset.h.
7612         * w32fns.c: Include fontset.h after dispextern.h.
7613         (Fx_create_frame): Do not create fontset.
7614         (w32_load_system_font): Doc fix.
7615         (Fx_close_connection): Free full_name if it is not shared.
7617         * w32term.c: Include fontset.h after dispextern.h.
7618         (x_get_glyph_face_and_encoding): New parameter two_byte_p. Callers
7619         updated.
7620         (w32_per_char_metric): If PCM is invalid, delete and return NULL.
7621         (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id.
7622         (w32_font_is_double_byte): New function, needs body.
7623         (x_append_glyph): Set glyph->glyph_not_available_p.
7624         (x_produce_glyphs): Set it->glyph_not_available_p.  Don't set
7625         it->charset.  If it->multibyte_p is zero and it->c is a multibyte
7626         character, convert it to a unibyte character.
7627         (struct glyph_string): Delete member `charset'.
7628         (W32_TEXTOUT): Temporarily remove charset_dim until another way of
7629         calculating it is found.
7630         (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id.  Handle
7631         the case that per char metric is not available correctly.
7632         (x_fill_glyph_string): Handle the case that the specific glyph is
7633         not available correctly.
7634         (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
7635         (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
7636         (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
7637         (x_new_fontset): Call fontset_ascii to get ASCII font name of the
7638         fontset.  Don't call FS_LOAD_FONT.
7640 2000-03-22  Ken Raeburn  <raeburn@gnu.org>
7642         * intervals.h (NULL_INTERVAL): Cast to INTERVAL type.
7643         (INT_LISPLIKE): New macro.
7644         (NULL_INTERVAL_P): Use it.
7645         (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT,
7646         SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT,
7647         GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros.
7649         * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all
7650         explicit references to "parent" field of struct interval and
7651         associated unclean type conversions.
7652         * intervals.c (create_root_interval, root_interval, rotate_right,
7653         rotate_left, balance_possible_root_interval, split_interval_right,
7654         split_interval_left, interval_start_pos, find_interval,
7655         next_interval, previous_interval, update_interval,
7656         adjust_intervals_for_insertion, delete_node, delete_interval,
7657         adjust_intervals_for_deletion, merge_interval_right,
7658         merge_interval_left, reproduce_tree, graft_intervals_into_buffer,
7659         copy_intervals_to_string): Likewise.
7660         * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL):
7661         Likewise.
7662         * syntax.c (update_syntax_table): Likewise.
7664         * intervals.c (reproduce_tree_obj): New function, like
7665         reproduce_tree but takes a Lisp_Object for the parent.  Declare
7666         with prototype.
7667         (graft_intervals_into_buffer): Use it when appropriate.
7668         (reproduce_tree): Declare with prototype.
7669         (balance_possible_root_interval): Check that the parent is a lisp
7670         object before trying to examine its type.
7672 2000-03-22  Gerd Moellmann  <gerd@gnu.org>
7674         * xfaces.c (lface_same_font_attributes_p): Compare font attributes
7675         as strings only if both are known to be strings.
7677         * s/openbsd.h (LIBS_TERMCAP): Undef.
7679 2000-03-21  Stefan Monnier  <monnier@cs.yale.edu>
7681         * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default
7682         definitions for non-Emacs compilation.
7683         (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec
7684         outside of `#ifdef emacs'.
7685         (print_partial_compiled_pattern): Update.
7686         (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar.
7687         (re_compile_fastmap): Merge handling of charset and charset_not (for
7688         emacs and non-emacs compilation as well).
7689         Similarly for (not)categoryspec and (not)syntaxspec.
7690         Don't use the fastmap when reaching `anychar' since the added
7691         complexity is not justified.
7692         (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs)
7693         and (not)syntaxspec.  Merge (not)categoryspec.
7695 2000-03-22  Kenichi Handa  <handa@etl.go.jp>
7697         * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P,
7698         FACE_FOR_CHAR): Define them differently for the configuration of
7699         --without-x.
7701 2000-03-21  Dave Love  <fx@gnu.org>
7703         * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in
7704         doc string.
7706 2000-03-21  Gerd Moellmann  <gerd@gnu.org>
7708         * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error.
7709         (lface_fully_specified_p): Don't check contents of
7710         LFACE_FONT_INDEX because that attribute is optional.
7711         (realize_x_face): Remove now unwarranted xassert.
7713 2000-03-21  Kenichi HANDA  <handa@etl.go.jp>
7715         The following changes are to make font selection based on
7716         characters, not charset.  In addition, they recover fontset
7717         facilities while utilizing the new font selection mechanism.
7719         * Makefile.in (fontset.o): Depend on dispextern.h.
7721         * alloc.c (mark_face_cache): Don't mark face->registry.
7723         * dispextern.h (struct glyph): New member glyph_not_available_p.
7724         Use 22 bits for face_id.
7725         (enum lface_attribute_index): Add LFACE_FONT_INDEX.
7726         (struct face): Delete member registry, new member ascii_face.
7727         (FACE_SUITABLE_FOR_CHAR_P): Renamed from
7728         FACE_SUITABLE_FOR_CHARSET_P.  Caller changed.
7729         (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET.  Caller changed.
7730         (struct it): Delete member charset, new member
7731         glyph_not_available_p.
7733         * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed.
7734         (struct fontset_info, struct fontset_data): Structs removed.
7735         (allloc_fontset_data, free_fontset_data, fs_regiser_fontset,
7736         Vglobale_fontset_alist, font_idx_temp): Externs removed.
7737         (fs_load_font, fs_query_fontset): Adjusted for new argument.
7738         (fs_free_face_fontset, fontset_font_pattern,
7739         face_suitable_for_char_p, face_for_char,
7740         make_fontset_for_ascii_face): Extern them.
7741         (FS_LOAD_FONT): Adjusted for the change of fontset implementation.
7742         (FS_LOAD_FACE_FONT): New macro.
7744         * fontset.c: All codes rewritten or adjusted for the change of
7745         fontset implementation.  Now fontset is represented by char table.
7746         (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): Variables
7747         removed.
7748         (my_strcasecmp): Function removed.
7749         (Vfontset_table, next_fontset_id, Vdefault_fontset): New
7750         variables.
7751         (AREF, ASIZE): New macros.
7752         (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME,
7753         FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF,
7754         FONTSET_REF_VIA_BASE, FONTSET_SET): New macros.
7755         (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset,
7756         fontset_id_valid_p, font_family_registry, fontset_name,
7757         fontset_ascii, free_face_fontset, face_suitable_for_char_p,
7758         face_for_char, make_fontset_for_ascii_face, fontset_font_pattern):
7759         New functions.
7760         (fs_load_font): New arg FACE.  Caller changed.
7761         (fs_query_fontset): Argument changed.  Caller changed.
7762         (Fquery_fontset): call fs_query_fontset.
7763         (fs_register_fontset, alloc_fontset_data, free_fontset_data):
7764         Functions removed.
7765         (clear_fontset_elements, check_registry_encoding,
7766         check_fontset_name): New functions.
7767         (syms_of_fontset): Set char-table-extra-slots property of fontset
7768         to 3.  Staticpro and initialize Vfontset_table and
7769         Vdefault_fontset.  Defsubr fontset_font and fontset_list.
7771         * frame.h (struct frame): Member `fontset_data' removed.
7772         (FRAME_FONTSET_DATA): Macro removed.
7774         * frame.c (make_frame): Don't allocate f->fontset_data.
7775         (Fdelete_frame): Don't free f->fontset_data.
7777         * msdos.c (XMenuActivate): Args to lookup_derived_face changed.
7779         * xdisp.c (charset_at_position): Function removed.
7780         (init_iterator): Don't set member charset of struct `it'.
7781         (handle_face_prop, reseat_to_string, set_iterator_to_next,
7782         next_element_from_display_vector, insert_left_trunc_glyphs):
7783         Likewise.
7784         (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not
7785         FACE_FOR_CHARSET.
7786         (get_next_display_element, append_space,
7787         extend_face_to_end_of_line): Likewise.
7789         * xfaces.c (Qx_charset_registry, Vface_default_registry):
7790         Variables removed.
7791         (clear_font_table, frame_update_line_height, load_face_font):
7792         Adjusted for the change of fontset implementation.
7793         (load_face_fontset_font): Function removed.
7794         (pixel_point_size): New function.
7795         (font_list): Argument type changed.  Caller changed.
7796         (LFACE_FONT): New macro.
7797         (check_lface_attrs): Check attr[LFACE_FONT_INDEX].
7798         (set_lface_from_font_name): Type of arg FONTNAME is changed to
7799         Lisp_Object.  Determine the font name by actually loading a font
7800         by the specified pattern.  Set LFACE_FONT (lface) to the specified
7801         pattern.  Even if a font is not found, don't try alternatives.
7802         (Finternal_set_lisp_face_attribute): Handle `font' slot in lface.
7803         (set_font_frame_param): If `font' is specified in lface, use it.
7804         (Finternal_get_lisp_face_attribute): Handle `font' slot in lface.
7805         (lface_same_font_attributes_p): Likewise.
7806         (make_realized_face): Arguent changed.  Caller changed.  Set
7807         face->ascii_face to face itself.
7808         (free_realized_face): Free face->fontset if face is for ASCII.
7809         (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p,
7810         deduce_unibyte_registry, x_charset_registry): Functions removed.
7811         (free_realized_multibyte_face): New function.
7812         (lookup_face, lookup_named_face, lookup_derived_face): Argument
7813         changed.  Caller changed.
7814         (try_font_list): Argument type changed.
7815         (face_fontset): Check `font' slot of ATTRS, not `family' slot.
7816         (choose_face_font): Argument changed.  Handle fontset properly.
7817         (choose_face_fontset_font): Function removed.
7818         (realize_default_face, realize_named_face): Don't remove the
7819         former face here.
7820         (realize_face): Argument changed.  Caller changed.  Remove face
7821         with the arg former_face_id in advance.  Load font for the new
7822         face.
7823         (realize_x_face): Argument changed.  Caller changed.  For a
7824         multibyte character, share fontset with base_face.  For a single
7825         byte character, make a new realized fontset.  Don't load a font
7826         here.
7827         (realize_tty_face): Argument changed.  Caller changed.
7828         (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET.
7829         (face_at_buffer_position): Don't check multibyte_p for returning
7830         DEFAULT_FACE_ID.
7831         (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not
7832         FACE_SUITABLE_FOR_CHARSET_P.
7833         (syms_of_xfaces): Remove code for Qx_charset_registry and
7834         Vface_default_registry.
7836         * xterm.c: Include fontset.h after dispextern.h.  Undo the changes
7837         related to PER_CHAR_METRIC done by Gerd on 2000-03-03.
7838         (x_per_char_metric): Don't try FONT->default_char.  Even if
7839         pcm->width is zero, glyph bits may exist.
7840         (x_encode_char): Always initialize char2b->byte1.
7841         (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id.
7842         (x_get_glyph_face_and_encoding): New arg two_byte_p.  Caller
7843         changed.
7844         (x_append_glyph): Set glyph->glyph_not_available_p.
7845         (x_produce_glyphs): Set it->glyph_not_available_p.  Don't set
7846         it->charset.  Handle the case that per char metric is not
7847         available.  If it->multibyte_p is zero and it->c is a multibyte
7848         character, convert it to a unibyte character.
7849         (struct glyph_string): Delete member `charset'.
7850         (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id.  Handle
7851         the case that per char metric is not available correctly.
7852         (x_fill_glyph_string): Handle the case that the specific glyph is
7853         not available correctly.
7854         (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset.
7855         (BUILD_COMPOSITE_GLYPH_STRING): Likewise.
7856         (x_new_font): Call FS_LOAD_FONT, not fs_load_font.
7857         (x_new_fontset): Call fontset_ascii to get ASCII font name of the
7858         fontset.  Don't call FS_LOAD_FONT.
7860         * xfns.c (Fx_create_frame): Don't cal fs_register_fontset.
7861         (x_create_tip_frame): Likewise.
7862         (Fx_close_connection): Free full_name of font_info.
7864         * fns.c (optimize_sub_char_table): New function.
7865         (Foptimize_char_table): New function.
7866         (syms_of_fns): Defsubr Soptimize_char_table.
7868 2000-03-20  Gerd Moellmann  <gerd@gnu.org>
7870         * buffer.c (Fset_buffer_modified_p): Set update_mode_lines
7871         only if buffer is displayed in some window.
7873         * xdisp.c (handle_single_display_prop): Initialize local `value'.
7874         (try_window_reusing_current_matrix): Don't call scroll run
7875         function if run's current and desired position are the same;
7876         this prevents cursor flickering.
7878 2000-03-19  Stefan Monnier  <monnier@cs.yale.edu>
7880         * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c.
7882         * regex.c (RE_STRING_CHAR): New macro.
7883         (GET_CHAR_AFER_2): Remove.
7884         (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h.
7885         (enum re_opcode_t): Remove on_failure_jump_exclusive.
7886         (print_partial_compiled_pattern, re_compile_fastmap)
7887         (re_match_2_internal): Remove on_failure_jump_exclusive.
7888         (regex_compile): Turn optimizable P+ loops into PP*, so that the
7889         optimization only need to work for * (ie. can use of_keep_string_jump).
7890         Remove the special case for .*\n since it is now covered by the general
7891         optimization.
7892         (re_search_2): Don't bother with `room'.
7893         (skip_one_char): New function.
7894         (skip_noops): Simplify since `memory' is not needed any more.
7895         (mutually_exclusive_p): Restructure slightly to use `switch' and
7896         add handling for "all" remaining cases.
7897         (re_match_2_internal): Change on_failure_jump_smart to use
7898         on_failure_keep_string_jump (and redirect the end-of-loop jump)
7899         rather than on_failure_jump_exclusive.
7901 2000-03-19  Gerd Moellmann  <gerd@gnu.org>
7903         * xfns.c (select_visual): Don't set dpyinfo->n_planes to the
7904         number of bits per RGB because it's everywhere used as the depth
7905         of the visual.
7907         * term.c (calculate_costs): Remove code dealing with X frames.
7909 2000-03-19  Richard M. Stallman  <rms@gnu.org>
7911         * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte.
7913 2000-03-18  Gerd Moellmann  <gerd@gnu.org>
7915         * lread.c (read_integer): Unread the last char not consumed.
7917 2000-03-17  Gerd Moellmann  <gerd@gnu.org>
7919         * xterm.c (x_update_window_cursor): Don't update in frames
7920         which are in the process of being deleted.
7922 2000-03-16  Gerd Moellmann  <gerd@gnu.org>
7924         * Makefile.in (mostlyclean): Add `*.core'.
7925         (clean): Add `bootstrap-emacs'.
7927         * lread.c (read_integer): New function.
7928         (read1): Support read syntax #o, #x, #b, #r.
7930 2000-03-15  Stefan Monnier  <monnier@cs.yale.edu>
7932         * regex.c (re_match_2): Fix string shortening (to fit `stop') to
7933         make sure POINTER_TO_OFFSET gives the same value before and after
7934         PREFETCH.  Use `dfail' to guarantee "atomic" matching.
7935         (PTR_TO_OFFSET): Use POINTER_TO_OFFSET.
7936         (debug): Now only active if > 0 rather than if != 0.
7937         (DEBUG_*): Update for the new meaning of `debug'.
7938         (print_partial_compiled_pattern): Add missing `succeed' case.  Use
7939         CHARSET_* macros in the charset(_not) branch.  Fix off-by-two bugs
7940         in `succeed_n', `jump_n' and `set_number_at'.
7941         (store_op1, store_op2, insert_op1, insert_op2)
7942         (at_begline_loc_p, at_endline_loc_p): Add prototype.
7943         (group_in_compile_stack): Move to after its arg's types are
7944         declared and add a prototype.
7945         (PATFETCH): Define in terms of PATFETCH_RAW.
7946         (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)'
7947         wrapper.
7948         (QUIT): Redefine as a nop except for NTemacs.
7949         (regex_compile): Handle intervals {,M} as if it was {0,M}.  Fix
7950         indentation of the greedy-op and shy-group code.
7951         (at_(beg|end)line_loc_p): Fix argument's types.
7952         (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc.
7953         (re_search_2): Use POS_AS_IN_BUFFER.  Simplify `room' computation.
7954         (MATCHING_IN_FIRST_STRING): Remove.
7955         (re_match_2): Use POS_AS_IN_BUFFER.  Ifdef out failure_stack_ptr
7956         to shut up gcc.  Use FIRST_STRING_P and POINTER_TO_OFFSET.  Use
7957         QUIT unconditionally.
7959 2000-03-15  Gerd Moellmann  <gerd@gnu.org>
7961         * minibuf.c (Fminibuffer_complete): Set point to ZV if finding
7962         a sole completion.
7964         * process.c (send_process): Add a hint that the function
7965         can call Lisp code to its comment.
7967         * lread.c (load_dangerous_libraries): New variable.
7968         (Vbytecomp_version_regexp): New variable.
7969         (safe_to_load_p): New function.
7970         (Fload): Handle files not compiled with Emacs specially.
7971         (syms_of_lread): New Lisp variable load-dangerous-libraries.
7973 2000-03-14  Gerd Moellmann  <gerd@gnu.org>
7975         * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon.
7977         * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM
7978         support functions only if HAVE_X11R6_XIM is defined.
7979         (xim_instantiate_callback): Define only if HAVE_X11R6_XIM.
7981         * s/sol2.h (INHIBIT_X11R6_XIM): Define.
7983         * xfns.c (X_I18N_INHIBITED): Don't define.
7984         (create_frame_xic): Remove conditional compilation on
7985         X_I18N_INHIBITED.
7986         (x_kill_gs_process, x_window): Use FRAME_X_VISUAL.
7988         * config.in (HAVE_X_I18N): Moved here from xterm.h.
7989         (HAVE_X11R6_XIM): Define.
7991         * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in.
7993         * xterm.c (x_term_init): Add support for X resource `synchronous'.
7994         If set, call XSynchronize.
7996 2000-03-13  Stefan Monnier  <monnier@cs.yale.edu>
7998         * regex.c: Declare a new type `re_char' used throughout the code
7999         for the string char type.  It's `const unsigned char' to match the
8000         rest of Emacs.  Consistently make sure all pointers to strings use
8001         it and make sure all pointers into the pattern use `unsigned
8002         char'.
8003         (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of
8004         GET_CHAR_AFTER_2.  Also merge wordbound and notwordbound to reduce
8005         code duplication.
8007         * charset.h (GET_CHAR_AFTER_2): Remove.
8008         (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
8010 2000-03-12  Ken Raeburn  <raeburn@gnu.org>
8012         * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary
8013         variable before the invocation of YMF_PASS_LDFLAGS, in case both
8014         of them try to use backquotes.
8016 2000-03-12  Dave Love  <fx@gnu.org>
8018         * unexelf.c: Restore changes of 1999-10-19.
8019         (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise
8020         fix its type and alignment; copy it from current process.
8022 2000-03-12  Gerd Moellmann  <gerd@gnu.org>
8024         * atimer.c (cancel_atimer): Break out of the loop as soon as timer
8025         has been found.  Fix bug not computing timer's predecessor.
8027         * fileio.c (Fread_file_name): Handle case that DIR contains a
8028         file name.
8030         * window.c (Fsave_window_excursion): Doc fix.
8032         * xfns.c (x_defined_color): Rewritten to use
8033         x_allocate_nearest_color.
8035 2000-03-12  Eli Zaretskii  <eliz@is.elta.co.il>
8037         * msdos.c (vga_installed): New function, code moved from
8038         dos_set_window_size.
8039         (Qbar, Qcursor_type, outside_cursor): New variables.
8040         (syms_of_msdos): Intern and staticpro them.
8041         (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor
8042         shape used outside Emacs when called for the first time.
8043         (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the
8044         cursor shape used outside Emacs.
8045         (msdos_set_cursor_shape, IT_set_cursor_type): New functions.
8046         (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor
8047         type has changed.
8048         (IT_set_frame_parameters): Call IT_set_cursor_type if the frame
8049         parameters specify the cursor.  Make qreverse a global
8050         variable (renamed to Qreverse).
8052 2000-03-09  Gerd Moellmann  <gerd@gnu.org>
8054         * fns.c (Fy_or_n_p): Cancel busy-cursor.
8056 2000-03-08  Stefan Monnier  <monnier@cs.yale.edu>
8058         This is a big redesign of failure-stack and register handling, prompted
8059         by bugs revealed when trying to add shy-groups.  Overall, what happened
8060         is that loops are now structured a little differently, groups can be
8061         shy and the code is a little simpler.
8063         * regex.h: Update the copyright.
8064         (RE_SHY_GROUPS): New value.
8065         (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber.
8066         (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS.
8068         * regex.c (enum re_opcode_t): Remove jump_past_alt,
8069         maybe_pop_jump, push_dummy_failure and dumy_failure_jump.  Add
8070         on_failure_jump_(exclusive, loop and smart).  Also fix the comment
8071         for (start|stop)_memory since they now only take one argument (the
8072         second has becomes unnecessary).
8073         (print_partial_compiled_pattern): Adjust for changes in
8074         re_opcode_t.
8075         (print_compiled_pattern): Use %ld to printf long ints and flush to
8076         make debugging a little easier.
8077         (union fail_stack_elt): Make the integer unsigned.
8078         (struct fail_stack_type): Add a `frame' element.
8079         (INIT_FAIL_STACK): Init `frame' as well.
8080         (POP_PATTERN_OP): New macro for re_compile_fastmap.
8081         (DEBUG_PUSH, DEBUG_POP): Remove.
8082         (NUM_REG_ITEMS): Remove.
8083         (NUM_NONREG_ITEMS): Adjust.
8084         (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE)
8085         (TOP_FAILURE_HANDLE): New macros for the cycle detection.
8086         (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT).
8087         (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): New
8088         macros.
8089         (PUSH_FAILURE_POINT): Don't push registers any more.  The pattern
8090         address pushed is not the destination of the jump but the source
8091         of it instead.
8092         (NUM_FAILURE_ITEMS): Remove.
8093         (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop
8094         registers before the actual failure point).  Don't hardcode any
8095         meaning for str==NULL anymore.
8096         (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE)
8097         (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED):
8098         Remove.
8099         (REG_UNSET_VALUE): Use NULL (why not?).
8100         (compile_range): Remove declaration since it doesn't exist.
8101         (struct compile_stack_elt_t): Remove inner_group_offset.
8102         (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove.
8103         (regex_grow_registers): Remove dead code.
8104         (FIXUP_ALT_JUMP): New macro.
8105         (regex_compile): Add shy-groups Change loops to use
8106         on_failure_jump_smart&jump instead of
8107         on_failure_jump&maybe_pop_jump.  Change + loops to eliminate the
8108         initial (dummy_failure_)jump.  Remove c1_base (looks like unused
8109         variable to me).  Use `jump' instead of `jump_past_alt' and don't
8110         bother with push_dummy_failure in alternatives since it is now
8111         unnecessary.  Use FIXUP_ALT_JUMP.  Eliminate a useless `#ifdef
8112         emacs' for (re)allocating the stack.
8113         (re_compile_fastmap): Remove dead variables i and num_regs.  Exit
8114         from loop when bufp->can_be_null rather than jumping to `done'.
8115         Avoid jumping backwards so as to ensure termination.  Use
8116         PATTERN_STACK_EMPTY and POP_PATTERN_OP.  Improved handling of
8117         backreferences.  Remove dead code in handling of `anychar'.
8118         (skip_noops, mutually_exclusive_p): New functions taken from the
8119         handling of `maybe_pop_jump' in re_match_2_internal.  Slightly
8120         improve mutually_exclusive_p to handle ".+\n".
8121         (lowest_active_reg, highest_active_reg,
8122         NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove.
8123         (re_match_2_internal): Use %p instead of 0x%x when printf'ing
8124         ptrs.  Don't SET_REGS_MATCHED anymore.  Remove many dead
8125         variables.  Push register (in `start_memory') on the stack rather
8126         than storing it in old_reg(start|end).  Remove the cycle detection
8127         from `stop_memory', replaced by the use of on_failure_jump_loop
8128         for greedy loops.  Add code for the new on_failure_jump_<foo>.
8129         Remove ad-hoc code in `on_failure_jump' to push more registers in
8130         the case of a loop.  Take out code from `maybe_pop_jump' into
8131         separate functions and adapt it to the semantics of
8132         `on_failure_jump_smart'.  Remove jump_past_alt, dummy_failure_jump
8133         and push_dummy_failure.  Remove dummy_failure handling and
8134         handling of `failures to jump to on_failure_jump' (this last one
8135         was already dead code, it seems).
8136         (group_match_null_string_p, alt_match_null_string_p)
8137         (common_op_match_null_string_p): Remove.
8139 2000-03-08  Dave Love  <fx@gnu.org>
8141         * config.in: Don't depend on __STDC__ for volatile.
8142         Add POINTER_TYPE, PTR, PROTOTYPES.
8144         * hftctl.c, strftime.c: Use PROTOTYPES.
8145         * eval.c (find_handler_clause): Likewise.
8147         * mem-limits.h: Use POINTER_TYPE.
8149         * lisp.h (P_): Define based on PROTOTYPES, not __STDC__.
8150         (memory_warnings): Declare using POINTER_TYPE.
8152 2000-03-08  Gerd Moellmann  <gerd@gnu.org>
8154         * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor.
8156         * xdisp.c (display_echo_area): Temporarily inhibit garbage
8157         collection.
8159         * xfns.c: Remove obsolete code in #if 0.
8160         (Fx_focus_frame): New function.
8162 2000-03-07  Miyashita Hisashi  <himi@bird.scphys.kyoto-u.ac.jp>
8164         * coding.c (coding_category_name): Add coding-category-utf-8,
8165         coding-category-utf-16-be, coding-category-utf-16-le.
8166         (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P,
8167         UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P,
8168         UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros.
8169         (detect_coding_utf_8): New function.
8170         (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P
8171         UTF_16_LOW_SURROGATE_P): New macros.
8172         (detect_coding_utf_16): New function
8173         (detect_coding_mask): When priorities are specified, skip any
8174         categories that have `nil' coding-system.  Fix bug of returning
8175         wrong mask when PRIORITIES is specified and detect_coding_XXX()
8176         returns a mask not set in PRIORITIES.
8177         (detect_eol_type_in_2_octet_form): New function.
8178         (detect_eol): selects detect_eol_type_XXX to call according to
8179         cooding->category_idx.
8180         (detect_coding_system): Remove `nil' coding-system in the result.
8181         (Fupdate_coding_systems_internal): Update all coding-categories.
8183         * coding.h (CODING_CATEGORY_IDX_UTF_8,
8184         CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): New
8185         macros.
8186         (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY,
8187         CODING_CATEGORY_IDX_MAX): Adjusted for the above macros.
8188         CODING_CATEGORY_IDX_UTF_16_LE.
8189         (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE,
8190         CODING_CATEGORY_MASK_UTF_16_LE): New macros.
8191         (CODING_CATEGORY_MASK_ANY): Include the above macros.
8192         (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro.
8194 2000-03-07  Gerd Moellmann  <gerd@gnu.org>
8196         * doc.c (Fdocumentation_property): If value is not a string,
8197         and doesn't refer to etc/DOC, evaluate it to obtain a string.
8199         * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to
8200         close the display with XtCloseDisplay.  This caused a bus error
8201         on OpenWindows.
8203         * minibuf.c (Fminibuffer_complete): Move point to ZV when input is
8204         complete but not unique.
8206 2000-03-06  Gerd Moellmann  <gerd@gnu.org>
8208         * process.c (send_process): Remove local variable `procname' that
8209         might become invalid when a GC happens.  Instead, access the
8210         process name slot directly.
8212         * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and
8213         orig_height if set.
8215         * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and
8216         orig_height if set.
8218 2000-03-06  Eli Zaretskii  <eliz@is.elta.co.il>
8220         * msdos.c (IT_note_mouse_highlight): Return immediately if frame's
8221         glyph matrices have been freed.
8223 2000-03-05  Gerd Moellmann  <gerd@gnu.org>
8225         * Makefile.in (tags): Include ../lwlib/TAGS in TAGS.
8226         (bootstrap-temacs): Set LC_ALL to C like for temacs.
8228         * xfns.c (QCdata): Moved to xdisp.c.
8230         * xdisp.c (QCdata): Moved here from xfns.c.
8231         (syms_of_xdisp): Initialize QCdata.
8233         * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define.
8235         * window.c (coordinates_in_window): Use
8236         FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of
8237         FRAME_INTERNAL_BORDER_WIDTH.
8239         * xdisp.c (try_window_id): Recompute unchanged information if
8240         it is obviously invalid.
8242         * xterm.c (x_term_init): Create a colormap if not using the
8243         default visual.
8245         * xterm.h (select_visual): Change prototype.
8247         * xfns.c (select_visual): Rewritten.  Recognize user-specified
8248         visual classes.
8249         (visual_classes): New variable.
8251 2000-03-04  Gerd Moellmann  <gerd@gnu.org>
8253         * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color)
8254         (lookup_pixel_color, x_laplace, x_build_heuristic_mask)
8255         (png_load): Access colormap of frame using FRAME_X_COLORMAP.
8256         (x_decode_color): Don't handle allocation of white and black
8257         specially.
8258         (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and
8259         XtNcolormap resources.
8260         (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow.
8261         (Fx_create_frame): Initialize color members of x_output structure.
8262         (xpm_load): Pass colormap to XPM lib.
8264         * xfaces.c (x_free_colors): Access colormap of frame using
8265         FRAME_X_COLORMAP.  Be paranoid about freeing black and white
8266         when default colormap is used.
8268         * xterm.c (x_term_init): Set Colormap member of x_display_info
8269         structure.  Copy colormap if resource `privateColormap' is
8270         specified (PseudoColor only).
8271         (x_setup_relief_color): Access colormap of frame using
8272         FRAME_X_COLORMAP.
8274         * xterm.h (struct x_display_info): Add Colormap member `cmap'.
8275         (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros.
8277 2000-03-04  Jason Rumney  <jasonr@gnu.org>
8279         * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or
8280         other non-platform-specific equivalents.
8281         [WINDOWSNT]: Include w32term.h, fontset.h and define X
8282         specific functions and macros as their w32 equivalents where
8283         non-platform-specifics are not available.
8284         [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM.
8285         (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions.
8286         (clear_font_table) [WINDOWSNT]: Call w32_unload_font.
8287         (frame_update_line_height): Use macros to access f->output_data.
8288         (defined_color): Remove FIXME comments; fixed.
8289         (x_face_list_fonts, prepare_face_for_display): Put X specifics
8290         into #ifdef blocks. Add WINDOWSNT blocks.
8291         (Fx_list_fonts): Use macros for accessing font data.
8292         (set_lface_from_font_name): Different default fonts for X and
8293         WINDOWSNT.
8294         (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as
8295         scalable for backward compatibility.
8296         (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT.
8297         (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default.
8299         * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of
8300         syms_of_w32faces.
8302         * makefile.nt (w32faces.obj): Remove.
8303         (xfaces.obj): Add.
8305 2000-03-03  Jason Rumney  <jasonr@gnu.org>
8307         * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with
8308         correct parameters.
8310 2000-03-03  Ken Raeburn  <raeburn@gnu.org>
8312         * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide
8313         standard ELF definitions here if the system header does not.
8315 2000-03-03  Gerd Moellmann  <gerd@gnu.org>
8317         * xterm.c (PER_CHAR_METRIC): Removed.
8318         (x_per_char_metric_1, x_default_char): New functions.
8319         (x_per_char_metric): If font's default char is invalid, return
8320         metrics of a suitably chosen usable default char.
8321         (x_draw_glyph_string_foreground): If font has an invalid default
8322         char, replace occurrences of unprintable chars with a suitably
8323         chosen usable default char.
8325 2000-03-02  Gerd Moellmann  <gerd@gnu.org>
8327         * xterm.c (note_mouse_highlight): Return quickly if frame's
8328         glyph matrices have been freed.
8330         * dispnew.c (free_glyphs): Block input while freeing matrices.
8332         * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors.
8334         * xterm.c (x_alloc_lighter_color, x_setup_relief_color): Use
8335         x_free_colors.
8337         * dispextern.h (x_free_colors): Add prototype.
8339         * xfaces.c (x_free_colors): New function.
8340         (unload_color, free_face_colors): Use it.
8342 2000-03-02  Eli Zaretskii  <eliz@is.elta.co.il>
8344         * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero.
8346         * window.c [MSDOS]: Include msdos.h.
8348 2000-03-02  Dave Love  <fx@gnu.org>
8350         * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH.
8352         * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't
8353         set C_OPTIMIZE_SWITCH for gcc.
8355 2000-03-02  Kenichi Handa  <handa@etl.go.jp>
8357         * coding.c (coding_save_composition): Be sure to allocate
8358         composition data area in coding even if there's no composition in
8359         the current run.
8361 2000-03-01  Jason Rumney  <jasonr@gnu.org>
8363         * w32term.c: Equivalent changes to those made to xterm.c on
8364         2000-02-25 and 2000-02-24.
8366         * w32fns.c: Equivalent changes to those made to xfns.c on
8367         2000-02-25 and 2000-02-21.
8369         * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure
8370         correct line-end convention is followed.
8372         * w32menu.c [HAVE_BOXES]: Remove #undef.
8373         (single_keymap_panes): Remove code for simulating checkmarks.
8374         (single_menu_item): Remove notbuttons_ptr argument. Callers changed.
8375         Remove code for drawing simulated checkmarks.
8376         (w32_menu_show): make unibyte help string correctly.
8377         (add_menu_item): draw standard Windows checkmarks. Draw radio
8378         buttons as radio buttons if possible.
8380 2000-03-01  Gerd Moellmann  <gerd@gnu.org>
8382         * sysdep.c (start_of_text): Don't define this function for NetBSD
8383         with ELF.
8385         * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]:
8386         Don't define.
8387         (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o.
8388         (LINKER): Don't undef if __NetBSD__ is defined.
8390         * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define.
8392         * fileio.c [__NetBSD__]: Define `unix'.
8394         * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay.
8396 2000-02-29  Gerd Moellmann  <gerd@gnu.org>
8398         * atimer.c (start_atimer): Don't abort when timers are stopped.
8399         (append_atimer_lists): New function.
8400         (cancel_atimer, stop_other_atimers, run_all_atimers): Handle
8401         arbitrary lists of stopped and running atimers.
8403         * atimer.c (cancel_atimer): Handle canceling an atimer when
8404         some timers are stopped.
8406         * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null
8407         after canceling it.
8409         * fns.c (maybe_resize_hash_table): Handle case of new size
8410         coming out as being the same as old size.
8412 2000-02-27  Jason Rumney  <jasonr@gnu.org>
8414         * makefile.nt: Add atimer.h to dependencies.
8415         * w32.c (init_environment): Set Vw32_num_mouse_buttons here.
8416         * w32console.c: Only disable window system features for dispextern.h
8417         (initialize_w32_display): Build a display info for the console.
8418         * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17.
8419         * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN,
8420         WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice
8421         as 2 button mice.
8422         * w32gui.h (struct W32FontStruct): Revert last change after change
8423         to xdisp.c.
8424         * w32menu.c (single_submenu): Set up help string.
8425         [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip.
8426         (w32_dialog_show): Set up help string.
8427         * w32term.c (w32_display_info_for_display): Remove unused function.
8428         (w32_draw_bitmap): Use pre-built bitmaps.
8429         (w32_initialize_display_info): New function to initialize parts of
8430         display info that are common to both GUI and console frames.
8431         (w32_term_init): Use w32_initialize_display_info. Do not set
8432         Vw32_num_mouse_buttons here, as it is not called for console
8433         frames.  Build bitmaps for indicating truncated lines etc.
8434         (x_delete_display): Destroy pre-built bitmaps.
8435         * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro.
8436         (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM.
8438 2000-02-27  Dave Love  <fx@gnu.org>
8440         * lisp.h: Add a bunch of prototypes.
8442 2000-02-26  Kenichi Handa  <handa@etl.go.jp>
8444         * keyboard.c (read_char): Set `usec' correctly.
8446 2000-02-25  Miyashita Hisashi  <himi@bird.scphys.kyoto-u.ac.jp>
8448         * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is
8449         `lambda', set reg[RRR] to the map index.
8450         (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set
8451         reg[RRR] to 0.  Otherwise, set it to -1.
8453 2000-02-25  Gerd Moellmann  <gerd@gnu.org>
8455         * emacs.c (main): Remove code snippet commented out with `//'.
8457 2000-02-25  Richard M. Stallman  <rms@gnu.org>
8459         * fileio.c (Ffile_symlink_p): If result starts with a `/'
8460         and contains a `:', prepend `/:'.
8462         * window.c (select_window_1): If selected_window is nil,
8463         don't "swap out" the buffer's point.
8464         (Fset_window_configuration): Set selected_window to nil
8465         before calling Fselect_window.
8466         (unshow_buffer): Don't set point in buffer from window's point
8467         if another more recently selected window also shows the buffer.
8469 2000-02-25  Gerd Moellmann  <gerd@gnu.org>
8471         * keyboard.c (recursive_edit_1): Cancel busy-cursor.
8473         * xfns.c (inhibit_busy_cursor, busy_count): Removed.
8474         (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed.
8475         (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): New
8476         variables.
8477         (DEFAULT_BUSY_CURSOR_DELAY): New define.
8478         (start_busy_cursor, cancel_busy_cursor, show_busy_cursor)
8479         (hide_busy_cursor): New functions.
8480         (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay.
8482         * minibuf.c (read_minibuf): Cancel busy-cursor.
8484         * keyboard.c (command_loop_1): Call start_busy_cursor before
8485         Fcommand_execute and cancel_busy_cursor after it.
8486         (timer_check): Remove busy-cursor code.
8487         (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy
8488         cursor timer.
8490         * process.c (wait_reading_process_input): Remove busy-cursor code.
8492         * eval.c (Fsignal): Call cancel_busy_cursor instead of
8493         Fx_hide_busy_cursor.
8495         * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor):
8496         Remove prototyoes.
8497         (start_busy_cursor, cancel_busy_cursor): Add prototypes.
8499         * lisp.h (Fx_hide_busy_cursor): Remove prototype.
8501         * xterm.c (XTread_socket): Remove busy-cursor code.
8503         * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function.
8504         (build_frame_matrix_from_leaf_window): Put code handling
8505         glyph row's not being a slice of a frame row in #if 0.
8506         (sync_window_with_frame_matrix_rows): New function.
8507         (frame_row_to_window): New function.
8508         (mirror_line_dance): Handle copies between windows.
8510         * lread.c (Fload): Use `xfree' instead of `free'.
8511         (init_obarray): Use `xmalloc' instead of `malloc'.
8513         * window.c (Fset_window_buffer): Set WINDOW to the window
8514         after decoding.
8515         (coordinates_in_window): Take frame's internal border width
8516         into account.
8518 2000-02-24  Gerd Moellmann  <gerd@gnu.org>
8520         * xterm.c (x_display_and_set_cursor): Display cursor of
8521         non-selected windows depending on the setting of
8522         cursor_in_non_selected_windows.
8524         * xdisp.c (cursor_in_non_selected_windows): New variable.
8525         (syms_of_xdisp): DEFVAR_BOOL it.
8527 2000-02-23  Gerd Moellmann  <gerd@gnu.org>
8529         * data.c (Fstring_to_number): If number is greater than what
8530         fits into an integer, return a float.
8532         * eval.c (specbind): Remove references to
8533         keyword_symbols_constant_flag.
8535         * data.c (keyword_symbols_constant_flag): Removed.
8536         (Fmakunbound, set_internal, syms_of_data): Remove references to
8537         keyword_symbols_constant_flag.
8539         * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag.
8541 2000-02-23  Kenichi Handa  <handa@etl.go.jp>
8543         * syntax.c (multibyte_syntax_as_symbol): New variable.
8544         (syms_of_syntax): Declare it as a Lisp variable.
8545         (SYNTAX_WITH_MULTIBYTE_CHECK): New macro.
8546         (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are
8547         nonzero, treat all multibyte characters as symbol.
8548         (init_syntax_once): Give syntax `word' to all multibyte
8549         characters.
8551 2000-02-22  Eli Zaretskii  <eliz@is.elta.co.il>
8553         * frame.c (Fdelete_frame): Don't let echo_area_window remain on
8554         a deleted frame.
8556 2000-02-21  Gerd Moellmann  <gerd@gnu.org>
8558         * frame.c (Fmouse_position): GCPRO retval instead of x and y.
8560         * xfns.c (x_window_to_frame, x_any_window_to_frame)
8561         (x_non_menubar_window_to_frame): Check the busy-cursor window.
8563 2000-02-21  Dave Love  <fx@gnu.org>
8565         * frame.c (Vmouse_position_function): New variable.
8566         (Fmouse_position): Use it.
8567         (syms_of_frame): Install it.
8569         * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'.
8571 2000-02-20  Gerd Moellmann  <gerd@gnu.org>
8573         * fileio.c (Finsert_file_contents): Unbind the binding of
8574         standard-output done by temp_output_buffer_setup.
8576         * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless
8577         Vmocklisp_arguments is nil.  Inline Fcar and Fcdr.
8578         (specbind, unbind_to): Handle most common case of non-constant
8579         symbol with trivial value specially.
8581         * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case.
8583 2000-02-20  Richard M. Stallman  <rms@gnu.org>
8585         * data.c (Fmake_variable_buffer_local): Doc fix.
8586         Init found_for_buffer to 0.
8587         (Fmake_variable_frame_local): If the variable has already
8588         been buffer-local, set the check_frame field.
8590 2000-02-20  Eli Zaretskii  <eliz@is.elta.co.il>
8592         * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data
8593         produced for CODING_MODE_LAST_BLOCK requires.
8595 2000-02-18  Dave Love  <fx@gnu.org>
8597         * keyboard.c (echo_keystrokes): Remove declaration.
8598         (Vecho_keystrokes) New variable.
8599         (read_char, record_menu_key, read_key_sequence): Use it to allow
8600         use of float value.
8601         (syms_of_keyboard): Change Vecho_keystrokes declaration.
8603         * lread.c: Undef feature selection macros before defining.
8605 2000-02-18  Gerd Moellmann  <gerd@gnu.org>
8607         * data.c (let_shadows_buffer_binding_p): Ignore specbindings
8608         for symbols other than the symbol in question.
8610 2000-02-17  Dave Love  <fx@gnu.org>
8612         * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization.
8614 2000-02-17  Gerd Moellmann  <gerd@gnu.org>
8616         * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef.
8618         * alloc.c (enum mem_type): Compile unconditionally.
8620 2000-02-17  Eli Zaretskii  <eliz@is.elta.co.il>
8622         * xfaces.c (tty_defined_color): Don't return faulire indication
8623         for unspecified-fg and unspecified-bg pseudo-colors.
8625 2000-02-17  Gerd Moellmann  <gerd@gnu.org>
8627         * alloc.c (mark_object): Don't mark symbol names in pure space.
8628         (gc_sweep): Don't unmark symbol names in pure space.
8630         * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS)
8631         (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES)
8632         [GC_MARK_STACK]: New defines.
8633         (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO)
8634         [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops.
8636         * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base.
8638         * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use
8639         allocate_buffer instead of xmalloc.
8641         * alloc.c (toplevel): Include setjmp.h.
8642         (PURE_POINTER_P): New define.
8643         (enum mem_type) [GC_MARK_STACK]: New enumeration.
8644         (Vdead) [GC_MARK_STACK]: New variable.
8645         (lisp_malloc): Add parameter TYPE, call mem_insert if
8646         GC_MARK_STACK is defined.
8647         (allocate_buffer): New function.
8648         (lisp_free) [GC_MARK_STACK]: Call mem_delete.
8649         (free_float) [GC_MARK_STACK]: Set type to Vdead.
8650         (free_cons) [GC_MARK_STACK]: Set car to Vdead.
8651         (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables.
8652         (MEM_NIL) [GC_MARK_STACK]: New define.
8653         (struct mem_node) [GC_MARK_STACK]: New structure.
8654         (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup)
8655         (mem_delete_fixup, mem_rotate_left, mem_rotate_right)
8656         (live_string_p, live_cons_p, live_symbol_p, live_float_p)
8657         (live_misc_p, live_vector_p, live_buffer_p, mark_memory)
8658         (mark_stack) [GC_MARK_STACK]: New functions.
8659         (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack.
8660         (clear_marks): Removed.
8661         (gc_sweep): Set free conses' car, free floats' type, free
8662         symbols' function to Vdead.  Use lisp_free to free buffers.
8663         (init_alloc_once): Initialize Vdead.
8664         (survives_gc_p): Return non-zero for pure objects.
8666         * alloc.c: Add comments throughout the file.
8668         * atimer.c (stop_other_atimers): Don't call cancel_atimer because
8669         that unblocks alarms.
8671         * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c,
8672         emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h,
8673         Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'.
8675         * frame.c (make_frame): Set frame initiallly to `garbaged'.
8677 2000-02-17  Kenichi Handa  <handa@etl.go.jp>
8679         * xdisp.c (decode_mode_spec_coding): Delete superfluous code to
8680         avoid infinite error signaling.  Allocate sufficient memory for
8681         eol_str in the case that eoltype is Lisp_Int.
8683 2000-02-17  Stefan Monnier  <monnier@cs.yale.edu>
8685         * syntax.c (Fforward_comment): Undo the previous change, since cc-mode
8686         depends on the previous behavior.
8688 2000-02-16  Gerd Moellmann  <gerd@gnu.org>
8690         * sysdep.c (vfork) [!HAVE_VFORK]: Removed.
8692 2000-02-15  Gerd Moellmann  <gerd@gnu.org>
8694         * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define.
8696         * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]:
8697         Workaround for FreeBSD bug.  Clear output queue after EAGAIN in
8698         write(2).
8700 2000-02-15  Richard M. Stallman  <rms@gnu.org>
8702         * data.c (set_internal): Don't make variable buffer-local
8703         if within a let-binding for the same buffer.
8704         (let_shadows_buffer_binding_p): New function.
8706         * eval.c (specbind): For buffer-local value,
8707         record the current buffer also.
8708         (unbind_to): Cope with that change.
8710 2000-02-15  Gerd Moellmann  <gerd@gnu.org>
8712         * window.c (Fsave_window_excursion): Doc fix.
8714 2000-02-15  Stefan Monnier  <monnier@cs.yale.edu>
8716         * syntax.c (back_comment): Make sure we only consider comment-starters
8717         of the relevant style and return -1 in case of a failure to find the
8718         beginning of the comment.
8719         (Fforward_comment): If back_comment fails, go back to the position just
8720         after the comment-end.
8721         (scan_lists): Add comment describing a very minor bug.
8723 2000-02-14  Stefan Monnier  <monnier@cs.yale.edu>
8725         * minibuf.c (Ftry_completion, Fall_completions): Add a reference to
8726         `completion-regexp-list' in the docstring.
8728 2000-02-14  Dave Love  <fx@gnu.org>
8730         * xfaces.c (tty_defined_color): Declare color_idx unsigned long.
8732 2000-02-14  Stefan Monnier  <monnier@cs.yale.edu>
8734         * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS
8735         to Emacs' syntax.  Also fix the comment about set/not-set meanings
8736         since Emacs syntax is not the value 0 any more.
8737         * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax
8738         since it's now part of RE_SYNTAX_EMACS.
8740 2000-02-12  Dave Love  <fx@gnu.org>
8742         * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on
8743         Alpha.
8745 2000-02-12  Gerd Moellmann  <gerd@gnu.org>
8747         * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively.
8749 2000-02-12  Dave Love  <fx@gnu.org>
8751         * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc.
8753         * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h:
8754         * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h:
8755         * s/hpux.h: Don't define HAVE_VFORK.
8757         * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST.
8759         * s/nextstep.h: Don't define HAVE_ALLOCA.
8761         * config.in: Add vfork bits.
8763 2000-02-12  Gerd Moellmann  <gerd@gnu.org>
8765         * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register
8766         unwind function to undo the effect of stopping atimers.
8768         * keyboard.c (bind_polling_period): Stop all timers except
8769         poll_timer.
8771         * atimer.c (stopped_atimers): New variable.
8772         (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers):
8773         New functions.
8775         * atimer.h (stop_other_atimers, run_all_atimers)
8776         (unwind_stop_other_atimers): Add function prototypes.
8778         * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined.
8780 2000-02-11  Ken Raeburn  <raeburn@gnu.org>
8782         * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff
8783         library may depend on jpeg.
8784         (atimer.o): Depends on atimer.c.
8786 2000-02-11  Kenichi Handa  <handa@etl.go.jp>
8788         * insdel.c (del_range_1): Call update_compositions.
8789         (del_range_both): Call update_compositions just once..
8791 2000-02-10  Dave Love  <fx@gnu.org>
8793         * xfns.c (create_frame_xic): Fix initialization of automatic
8794         aggregates for pcc.
8796 2000-02-09  Kenichi Handa  <handa@etl.go.jp>
8798         * ccl.c (CCL_MAKE_CHAR): New macro.
8799         (ccl_driver) <CCL_TranslateCharacter>: Check the validity of
8800         registers by CCL_MAKE_CHAR before calling translate_char.
8801         <CCL_TranslateCharacterConstTbl> Likewise.
8803 2000-02-08  Dave Love  <fx@gnu.org>
8805         * lread.c (__EXTENSIONS__): Define.
8807 2000-02-08  Gerd Moellmann  <gerd@gnu.org>
8809         * puresize.h (BASE_PURESIZE): Increase to 650000.
8811 2000-02-07  Eli Zaretskii  <eliz@is.elta.co.il>
8813         * msdos.c (XMenuActivate): Turn off the cursor after displaying
8814         the help message.
8816 2000-02-07  Eli Zaretskii <eliz@is.elta.co.il>
8818         * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue,
8819         md, mh, mb, mr, and me to the fake termcap entry.
8821 2000-02-06  Ken Raeburn  <raeburn@gnu.org>
8823         * sound.c (sound_cleanup): Don't call device close routine if the
8824         function pointer is null.
8826 2000-02-06  Andrew Innes  <andrewi@gnu.org>
8828         * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM,
8829         around image definitions and prototypes.
8830         (gamma_correct) [WINDOWSNT]: New prototype.
8832         * w32term.c (x_make_frame_visible): Replace call to
8833         input_poll_signal with poll_for_input.
8835         * window.c [WINDOWSNT]: Include w32term.h.
8837         * xdisp.c [WINDOWSNT]: Include w32term.h.
8839         * makefile.nt: Add dependencies on w32gui.h.
8840         (OBJ1): Include atimer.obj.
8841         ($(BLD)\atimer.obj): New dependency rule.
8843         * w32.c (sigmask): New function (does nothing).
8844         (sigunblock): Ditto.
8846         * frame.c [WINDOWSNT]: Include w32term.h.
8848         * w32gui.h (struct W32FontStruct): Add ascent and descent slots.
8850         * lread.c (syms_of_lread): Fix literal newlines.
8852         * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around
8853         the string constant limit (2048 bytes) in MSVC.
8854         (main): Ditto.
8856 2000-02-05  INOUE Seiichiro <inoue@ainet.or.jp>
8858         * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit
8859         area.
8860         (x_display_cursor) [HAVE_X_I18N]: Don't set it here.
8861         (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't
8862         dispatch the event.
8864 2000-02-04  Dave Love  <fx@gnu.org>
8866         * fileio.c: Remove some unused vars.
8867         (_GNU_SOURCE): Define (for euidaccess).
8869         * lread.c (_XOPEN_SOURCE): Declare (for ftello).
8871         * minibuf.c (read_minibuf_noninteractive): Remove undeclared
8872         gcpro1, gcpro2.
8873         (read_minibuf): Deal with allow_props correctly.
8875 2000-02-03  Eli Zaretskii  <eliz@is.elta.co.il>
8877         * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000.
8879 2000-02-03  Ken Raeburn  <raeburn@gnu.org>
8881         * search.c (compile_pattern): If a cache entry has a nil regexp,
8882         fill in that entry instead of clobbering a previously cached
8883         string regexp.
8885 2000-02-02  Ken Raeburn  <raeburn@gnu.org>
8887         * puresize.h (BASE_PURESIZE): Increase to 610000.
8889 2000-02-02  Gerd Moellmann  <gerd@gnu.org>
8891         * frame.c (Fframe_parameters): Add GCPRO because tty_color_name
8892         can GC.
8894 2000-02-02  Kenichi Handa  <handa@etl.go.jp>
8896         * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address
8897         instead of incrementing ic directly.
8898         <CCL_WriteExprConst> Likewise.
8899         <ccl_set_expr>: Set ic to jump_address.
8901         * fileio.c (e_write): Fix the handling of
8902         CODING_FINISH_INSUFFICIENT_SRC.
8904 2000-02-01  Dave Love  <fx@gnu.org>
8906         * editfns.c (Fpropertize): Doc fix.
8908         * process.c (Fstart_process): Doc fix.
8910         * eval.c: Fix various doc strings not to duplicate information
8911         from help-manyarg-func-alist.
8913         * window.c (Fset_window_margins): Don't make interactive.  Doc
8914         fix.
8916         * doc.c (Vhelp_manyarg_func_alist): New variable.
8917         (Fdocumentation): Use it.
8918         (syms_of_doc): Define it.
8920 2000-01-31  Gerd Moellmann  <gerd@gnu.org>
8922         * xterm.c (xim_open_dpy): Remove unused local variable.
8924         * emacs.c (USAGE): Use term `display options' instead of `X
8925         options'.
8927         * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function.
8928         (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
8930         * fns.c (sweep_weak_table): New function.
8931         (sweep_weak_hash_tables): Use it.  Keep on marking until there
8932         is no more change.
8934 2000-01-30  Gerd Moellmann  <gerd@gnu.org>
8936         * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure
8937         that XTread_socket does not crash by trying to call XNoOp on a
8938         closed display.
8940 2000-01-30  Jason Rumney  <jasonr@gnu.org>
8942         * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
8943         Change selected_frame to SELECTED_FRAME ().
8944         (w32_console_mouse_position): Remove #ifndef MULE from around
8945         `insist' parameter.
8947         * makefile.nt: Remove dosfns.obj.
8949         * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors.
8951         * w32fns.c (w32_defined_color): Check for valid frame before
8952         applying gamma correction. Eliminate dependency on frame elsewhere.
8953         (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH.
8954         (w32_to_x_font): Use resx and resy not height_in and width_in.
8955         (x_to_w32_font): Doc fix.
8956         (xlfd_strip_height): New function to strip and return font height.
8957         (w32_font_match): Compare height separately from rest of xlfd
8958         spec, using xlfd_strip_height.
8960         * w32term.c (w32_term_init): Swap resx and height_in, resy and
8961         width_in. Use w32_defined_color in place of defined_color.
8963         * w32faces.c: Merge more of DOS and X specifics in preparation for
8964         merge with xfaces.c.
8965         (defined_color): Remove FIXME comment.
8966         (tty_color_name): Provide w32-specific function.
8967         (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially.
8969         * w32console.c (turn_on_face, turn_off_face): Removed.
8970         (w32_face_attributes): New function.
8971         (Global_variables): Reduce scope where possible.
8972         (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as
8973         fill attribute.
8974         (hl_mode): Don't modify text attributes.
8975         (write_glyphs): Don't do anything if len <= 0. Use
8976         w32_face_attributes to get attributes for drawing. Write
8977         terminating codes using char_attr_normal.
8978         (reset_terminal_modes, set_terminal_modes): Turn off highlight.
8979         (update_begin, update_end): Likewise.
8980         (vga_stdcolor_name): New function.
8981         (initialize_w32_display): Remove char_attr_reverse and char_attr.
8982         (Fset_screen_color): Remove char_attr_reverse.
8984 2000-01-29  Gerd Moellmann  <gerd@gnu.org>
8986         * xfns.c (xic_set_preeditarea): Take window parameter and
8987         window-relative pixel-positions.
8989         * xterm.c (x_display_cursor): Set XIC pre-edit area only if window
8990         is its frame's selected window.
8991         (xim_instantiate_callback): Likewise.
8993         * xfns.c (x_create_im): Removed.
8994         (DEFAULT_STYLE, DEFAULT_FONT): Removed.
8995         (supported_xim_styles): Renamed from supported_styles.
8996         (best_xim_style): Renamed from best_style.
8997         (create_frame_xic): Renamed from xic_create_frame.
8998         (free_frame_xic): Renamed from xic_destroy_frame.
9000 2000-01-29  INOUE Seiichiro <inoue@ainet.or.jp>
9002         * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of
9003         our frames, call XFilterEvent with 2nd parameter `None'.
9004         (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString
9005         returning XBufferOverflow.
9006         (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status
9007         area.
9008         (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area.
9009         (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset.
9010         (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback)
9011         (xim_initialize, xim_close)
9012         [HAVE_X_I18N && HAVE_X11R6]: New functions.
9013         (x_destroy_window) [HAVE_X_I18N]:  Call xic_destroy_frame.
9014         (x_term_init) [HAVE_X_I18N]: Call xim_initialize.
9015         (x_delete_display) [HAVE_X_I18N]: Call xim_close.
9017         * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim'
9018         and `xim_styles'.
9019         (struct x_output) [HAVE_X_I18N]: Remove member `xim', add
9020         `xic_style' and `xic_xfs'.
9021         (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES)
9022         (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros.
9023         (FRAME_XIM): Removed.
9025         * xfns.c (supported_styles): New variable.
9026         (DEFAULT_STYLE, DEFAULT_FONT): New macros
9027         (xic_create_xfontset, best_style, xic_create_frame)
9028         (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea)
9029         (xic_set_xfontset): New functions.
9031 2000-01-28  Dave Love  <fx@gnu.org>
9033         * s/irix6-5.h: Revert last change after change to irix5-0.h.
9035         * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0.
9037 2000-01-28  Gerd Moellmann  <gerd@gnu.org>
9039         * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode
9040         for *scratch* if it already existed.
9042         * emacs.c (USAGE): New macro.
9043         (main): Use it to display usage information.
9045 2000-01-27  Eli Zaretskii  <eliz@is.elta.co.il>
9047         Support for the menu-help feature:
9049         * msdos.h: Change prototypes of XMenuAddSelection and
9050         XMenuActivate.
9052         * msdos.c (IT_clear_end_of_line): Print the extent of the cleared
9053         part of the line to the termscript file.
9054         (IT_clear_to_end): Clear the entire line, not just its beginning.
9055         (menu_help_message, prev_menu_help_message): New variables.
9056         (IT_menu_make_room): Make room for the help_text member.
9057         (IT_menu_display): New argument disp_help; all callers changed.
9058         If disp_help is non-zero, store the help text of the active menu
9059         item in menu_help_message.
9060         (XMenuAddPane): Initialize the help_text member to NULL.
9061         (XMenuAddSelection): New argument help_text.  Store it in the
9062         XMenu structure.
9063         (XMenuActivate): New argument help_callback.  If the value of
9064         menu_help_message has changed since the last time, display the
9065         menu help message text while waiting for the mouse to move.  Clear
9066         the echo area before exiting.
9067         (XMenuDestroy): Free the help_text member.
9069 2000-01-27  Gerd Moellmann  <gerd@gnu.org>
9071         * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to
9072         XMenuAddSelection.  Pass help callback to XMenuActivate.
9073         (menu_help_callback) [!USE_X_TOOLKIT]: New function.
9075 2000-01-27  Eli Zaretskii  <eliz@is.elta.co.il>
9077         * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS
9078         and EMACS_SET_USECS.
9080 2000-01-26  Dave Love  <fx@gnu.org>
9082         * editfns.c (Fchar_after, Fchar_before): Doc fix.
9084         * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where
9085         an error may be signalled.
9087 2000-01-26  Gerd Moellmann  <gerd@gnu.org>
9089         * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef
9090         LD_SWITCH_SYSTEM inherited from irix5-0.h.
9092         * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo.
9094 2000-01-25  Gerd Moellmann  <gerd@gnu.org>
9096         * charset.c (Fstring): If there is a multibyte char among
9097         the args, always return a multibyte string.
9099 2000-01-25  Gerd Moellmann  <gerd@gnu.org>
9101         * sysdep.c (sys_select): Turn atimers off and on instead of
9102         recording and restoring old alarm handler
9104         * process.c (toplevel): Include atimer.h.
9105         (create_process_1): Rewritten.
9106         (create_process): Use atimers instead of alarm.
9107         (wait_reading_process_input) [hpux]: Turn atimers off instead
9108         of turning off SIGALRM.
9109         (wait_reading_process_input): Turn off atimers instead off
9110         calling stop_polling.
9112         * emacs.c (main): Call init_atimer.
9114         * keyboard.c (toplevel): Include systime.h and atimer.h.
9115         (polling_for_input): Removed because unused.
9116         (input_poll_signal) [POLL_FOR_INPUT]: Removed.
9117         (poll_timer): New variable.
9118         (poll_for_input, poll_for_input_1): New functions.
9119         (start_polling, stop_polling): Rewritten.
9121         * keyboard.h (polling_for_input): Removed.
9123         * atimer.h, atimer.c: New files.
9125         * Makefile.in (obj): Add atimer.o.
9126         (atimer.o): New target.
9128         * blockinput.h (pending_atimers): Add extern declaration.
9129         (UNBLOCK_INPUT): Rewritten.  Handle pending atimers.
9131         * lisp.h (popup_activated_flag): Add extern declaration.
9133         * xmenu.c (popup_activated_flag): Make externally visible.
9134         (popup_activate_callback) [USE_MOTIF]: Increment
9135         popup_activated_flag.
9136         (popup_deactivate_callback) [USE_MOTIF]: Decrement it.
9138         * xterm.c (toplevel): Include atimer.h.
9139         (toolkit_scroll_bar_interaction): New variable.
9140         (Fxt_process_timeouts): Removed.
9141         (x_process_timeouts): New function.
9142         (xt_action_hook): Clear toolkit_scroll_bar_interaction.
9143         (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction.
9144         (x_make_frame_visible): Call poll_for_input_1 instead of
9145         input_poll_signal.  Don't call alarm.
9146         (x_initialize): Install timer calling x_process_timeouts.
9148 2000-01-24  Dave Love  <fx@gnu.org>
9150         * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now.
9151         Don't use -cckr -- apparently not now necessary.
9153 2000-01-24  Eli Zaretskii  <eliz@is.elta.co.il>
9155         * msdos.c (IT_menu_display): Truncate long menu lines at the right
9156         screen boundary.
9158 2000-01-23  Jason Rumney  <jasonr@gnu.org>
9160         * w32fns.c (w32_defined_color): Apply gamma correction before
9161         trying to map to the palette.
9162         (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame
9163         to w32_clear_rect.
9165         * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc
9166         here. Callers changed to always pass real device context.
9167         (w32_draw_bitmap): Likewise.
9168         (w32_get_glyph_overhangs): Likewise.
9169         (w32_draw_box_rect): Make use of s->hdc rather than getting a new
9170         one.
9171         (w32_set_vertical_scroll_bar): Pass correct HWND parameters to
9172         pfnSetScrollInfo and SetScrollRange.
9173         (x_get_char_face_and_encoding): Don't turn iso8859-1 characters
9174         back into MULE characters after decoding them.
9175         (x_get_glyph_face_and_encoding): Likewise.
9176         (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when
9177         GetCharABCWidthsW fails, since this is defined on Windows 9x.
9178         (x_produce_glyphs): Calculate per char metrics for a character
9179         that we know exists in default font when font_not_found_p is true.
9181 2000-01-22  Jason Rumney <jasonr@gnu.org>
9183         * makefile.nt (intervals.obj, composite.obj): New modules.
9184         (composite.h): Added as dependency where appropriate.
9186         * w32gui.h (XGCValue): New struct for emulating X GCs.
9188         * w32term.h (XCharStruct): New struct for emulating X.
9190         * w32console.c (turn_on_face, turn_off_face): New functions.
9191         (change_line_highlight): New prototype for new redisplay.
9192         (write_glyphs): Support multibyte text. Support faces.
9194         * w32faces.c: Complete rewrite for new redisplay based on new
9195         xfaces.c.
9197         * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame
9198         throughout. struct frame * in place of FRAME_PTR.
9199         Skeleton support for images, toolbars, tooltips from xfns.c.
9200         (Fx_create_frame): Use system default for default scroll bar
9201         width.
9202         (w32_get_arg): Renamed from x_get_arg.
9203         (Fx_file_dialog): New function.
9204         (w32_list_fonts): Check cache before asking system.
9205         (Vw32_enable_synthesized_fonts): New variable.
9206         (Vw32_enable_italics): Obsolete, removed.
9208         * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to):
9209         Use SELECTED_FRAME macro.
9211         * w32menu.c: Add skeleton support for help strings on menus.
9212         (add_menu_item): Native checkbox and radio support added, but not
9213         yet enabled due to bugs.
9214         (push_menu_item): Add parameters type, selection and help.
9215         Callers updated.
9216         Formatting changes to reduce unnecessary diffs with xmenu.c.
9218         * w32select.c (Fw32_set_clipboard_data): Update call to
9219         find_charset_in_str.
9221         * w32term.c: Complete rewrite for new redisplay based on new
9222         xterm.c with necessary sections merged back in from old w32term.c.
9224 2000-01-21  Richard M. Stallman  <rms@gnu.org>
9226         * data.c (set_internal): Further fix in same criterion.
9228 2000-01-20  Richard M. Stallman  <rms@gnu.org>
9230         * data.c (set_internal): Fix the criteria for whether
9231         to swap out the old cached binding.
9233 2000-01-19  Dave Love  <fx@gnu.org>
9235         * lread.c: (syms_of_lread) [user-init-file]: Doc change.
9237 2000-01-18  Kenichi Handa  <handa@etl.go.jp>
9239         * regex.c (re_compile_fastmap): While checking a range table for
9240         `charset', skip flag bits for a character class correctly.
9242 2000-01-17  Gerd Moellmann  <gerd@gnu.org>
9244         * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC.
9246         * xfns.c (x_window): Call lw_create_widget with new parameter
9247         list.
9249         * widget.c (EmacsFrameSetCharSize): Change size of children first
9250         because of problems with main window geometry management under
9251         Lesstif.
9253         * xmenu.c (enum menu_item_idx): New enumeration replacing defines
9254         MENU_ITEMS_ITEM_.*.
9255         (MENU_ITEMS_ITEM_HELP): New enumerator.
9256         (push_menu_item): Add parameter HELP.  Record help in menu_items.
9257         (single_menu_item, single_submenu, list_of_items): Call
9258         push_menu_item with new parameter.
9259         (single_submenu): Set help string in widget value.
9260         (menu_highlight_callback): New function.
9261         (set_frame_menubar): Call lw_create_widget with new
9262         parameter list.
9263         (xmenu_show, xdialog_show): Ditto.
9265 2000-01-13  Gerd Moellmann  <gerd@gnu.org>
9267         * sound.c (Fplay_sound): Improve doc string.
9269 2000-01-11  Richard M. Stallman  <rms@gnu.org>
9271         * lisp.h (set_internal): Enter the new arg.
9273         * eval.c (specbind): Record buffer-local variables specially,
9274         indicating which buffer's binding was saved.
9275         (unbind_to): Restore buffer-local variables specially
9276         in the proper buffer.
9278         * data.c (set_internal): New arg BUF.
9280         * eval.c (specbind, unbind_to): Pass new arg to set_internal.
9281         * data.c (Fset): Pass new arg to set_internal.
9282         * bytecode.c (Fbyte_code): Pass new arg to set_internal.
9284 2000-01-11  Gerd Moellmann  <gerd@gnu.org>
9286         * .gdbinit: Adapt to new strings.  Add xbacktrace, xreload,
9287         xprintsym.
9289 2000-01-11  Richard M. Stallman  <rms@gnu.org>
9291         * minibuf.c (Ftry_completion): Doc fix.
9293 2000-01-11  Gerd Moellmann  <gerd@gnu.org>
9295         * keyboard.c (Fclear_this_command_keys): Clear recent_keys
9296         vector, too.
9298 2000-01-11  Andreas Schwab  <schwab@suse.de>
9300         * coding.c (code_convert_region): Initialize total_skip.
9302 2000-01-08  Dave Love  <fx@gnu.org>
9304         * eval.c (Fuser_variable_p): Check customizability too.
9306 2000-01-07  Gerd Moellmann  <gerd@gnu.org>
9308         * minibuf.c (Fcompleting_read): Doc fix.
9310 2000-01-05  Gerd Moellmann  <gerd@gnu.org>
9312         * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and
9313         -L /usr/local/lib.
9315         * xfns.c (x_create_im): New function to set IM and IC of a frame.
9316         Check that input style is supported before trying to create an
9317         IC for it.
9318         (x_window): Call x_create_im.
9320 2000-01-04  Gerd Moellmann  <gerd@gnu.org>
9322         * xfns.c (current_gif_memory_src): New variable.
9323         (gif_load): Record the address of the current memory source
9324         in current_gif_memory_src.
9325         (gif_read_from_memory): Use current_gif_memory_src.
9327         * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give
9328         macros statement form.
9330         * sound.c (struct sound): Renamed from struct sound_file.
9331         (struct sound): Add members `data' and `header_size'.
9332         (enum sound_attr): Add SOUND_DATA.
9333         (current_sound, current_sound_device): Variables renamed from
9334         sound_file and sound_device.
9335         (parse_sound): Parse :data.
9336         (parse_sound): Handle sound data in strings.
9337         (find_sound_type): Function renamed from find_sound_file_type.
9338         (wav_init, au_init): Fail if sound's header_size is smaller than
9339         needed header size.
9340         (wav_play, au_play): Play sounds from string data.
9342         * puresize.h (BASE_PURE_SIZE): Increase to 600000.
9344         * lisp.h: Add prototype for allocate_string_data.
9346         * alloc.c (Fgarbage_collect): Return number of live and free
9347         strings.
9349         * alloc.c (mark_buffer): Remove code in #if 0.
9350         (gc_sweep): Ditto.
9351         (UNMARK_BALANCE_INTERVALS): Give the macro statement form.
9352         (strings_consed): New variable.
9353         (allocate_string): Set it.
9354         (syms_of_alloc): Add DEFVAR_INT for strings_consed.
9355         (Fmemory_use_counts): Return strings_consed.  Use Flist.
9357         * alloc.c: General cleanup in comments etc.  Remove conditional
9358         compilation for `standalone'.
9360         * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'.
9362         * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P):
9363         (GC_STRING_BYTES, GC_STRING_CHARS): New macros.
9364         (DONT_COPY_FLAG): Removed.
9365         (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros.
9366         (struct sdata, struct sblock): New
9367         (struct string_block): Rewritten.
9368         (STRINGS_IN_STRING_BLOCK): New macro.
9369         (oldest_sblock, current_sblock, total_strings, total_free_strings)
9370         (large_sblocks, string_blocks, string_free_list): New variables.
9371         (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros.
9372         (init_strings): Rewritten.
9373         (allocate_string, allocate_string_data, compact_small_strings)
9374         (free_large_strings, sweep_strings): New functions.
9375         (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE)
9376         (struct string_block_head, current_string_block)
9377         (first_string_block, large_string_blocks, STRING_FULLSIZE)
9378         (STRING_PAD): Removed.
9379         (make_uninit_multibyte_string, make_pure_string): Rewritten.
9380         (Fgarbage_collect): Don't set mark bit in large strings.
9381         (mark_object): Mark strings differently.  Mark symbol names
9382         differently.
9383         (survives_gc_p): Test marked strings differently.
9384         (gc_sweep): Sweep strings differently, unmark strings in
9385         symbol names.
9386         (compact_strings): Removed.
9388 2000-01-04  Eli Zaretskii  <eliz@is.elta.co.il>
9390         * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and
9391         Scolor_supported_p even if HAVE_X_WINDOWS is not defined.
9393 2000-01-04  Kenichi Handa  <handa@etl.go.jp>
9395         * fileio.c (Finsert_file_contents): Signal error if visiting file
9396         in a non-empty buffer.
9398         * term.c (encode_terminal_code): Fix the previous change.
9400 2000-01-03  Gerd Moellmann  <gerd@gnu.org>
9402         * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to
9403         Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p.
9405         * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU.
9407 2000-01-03  Eli Zaretskii  <eliz@is.elta.co.il>
9409         * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No
9410         need to test for MSDOS frames.
9412 2000-01-03  Eli Zaretskii  <eliz@is.elta.co.il>
9414         * dosfns.c (unspecified_colors): Remove.
9415         (msdos_stdcolor_idx): Use global variables unspecified_fg and
9416         unspecified_bg.
9417         (msdos_stdcolor_name): Return strings for unspecified fore- and
9418         back-ground colors.
9420         * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove.
9421         (syms_of_xfaces): Remove their staticpro's.
9422         (tty_color_name): Return Lisp strings for unspecified fore- and
9423         back-ground colors.
9424         (Finternal_set_lisp_face_attribute): Remove the special treatment
9425         for Qunspecified_{f,b}g.
9426         (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp
9427         string.
9429 2000-01-03  Gerd Moellmann  <gerd@gnu.org>
9431         * xdisp.c (reseat_at_next_visible_line_start): Position before
9432         newline only if ending up on a newline.
9433         (next_element_from_ellipsis): Return success.  Handle case of
9434         displaying no ellipsis.  Fix case of ellipsis defined in display
9435         table.
9436         (next_element_from_buffer): Return 0 if next_element_from_ellipsis
9437         returns 0.
9439 2000-01-03  Eli Zaretskii  <eliz@is.elta.co.il>
9441         * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p.
9442         (Fcolor_supported_p): Renamed from face-color-supported-p.
9444 2000-01-02  Eli Zaretskii  <eliz@is.elta.co.il>
9446         * xfaces.c (tty_defined_color): Pass frame to tty-color-desc.  The
9447         list of colors renamed to tty-defined-color-alist.
9448         (tty_color_name): Pass the frame to tty-color-by-index.
9449         (realize_tty_face): tty-color-alist is now a function which
9450         accepts the frame as argument.
9452         * term.c (Ftty_display_color_p): Accept an optional argument
9453         FRAME.
9455 2000-01-02  Eli Zaretskii  <eliz@is.elta.co.il>
9457         * term.c (insert_glyphs): Pass glyph, not &glyph, to
9458         encode_terminal_code.
9460 2000-01-02  Eli Zaretskii  <eliz@is.elta.co.il>
9462         * dispnew.c (mode_line_string): Support termcap frames as well.
9464 2000-01-01  Gerd Moellmann  <gerd@gnu.org>
9466         * syntax.c (Fforward_word): Undo previous change.
9468         * editfns.c (Fconstrain_to_field): Don't constrain if
9469         inhibit-field-text-motion is non-nil.
9470         (Fline_beginning_position): Undo previous change.
9471         (Fline_end_position): Ditto.
9473         * syntax.c (Fforward_word): Notice field boundaries only if
9474         inhibit-field-text-motion is nil.
9476         * lisp.h: Add extern declaration for Vinhibit_field_text_motion.
9478         * editfns.c (Vinhibit_field_text_motion): New variable.
9479         (inhibit-field-text-motion): New DEFVAR_LISP.
9480         (Fline_beginning_position, Fline_end_position): Notice field
9481         boundaries only if inhibit-field-text-motion is nil.
9483         * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE.
9484         All calls adjusted.
9485         (x_build_heuristic_mask): Likewise.
9486         (xbm_load_image_from_file): Change error output.
9487         (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load)
9488         (gif_load, gs_load, x_kill_gs_process): Ditto.
9490         * xfns.c (gif_load): Avoid sign extension and thus out of bounds
9491         color indices when accessing raster pixels.
9492         (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only
9493         one of :file or :data.
9494         (enum pbm_keyword_index): Add PBM_DATA.
9495         (pbm_format): Add :data.
9496         (pbm_image_p): Allow either :file or :data.
9497         (pbm_read_file): New function.
9498         (pbm_scan_number): Rewritten to read from string.
9499         (pbm_load): Support :data.
9501 See ChangeLog.8 for earlier changes.
9503 ;; Local Variables:
9504 ;; coding: iso-2022-7bit
9505 ;; End: