comparison src/ChangeLog @ 49999:4a963c586625

A lot of lines removed at checkin version 1.3108, restore them
author Jan Djärv <jan.h.d@swipnet.se>
date Sun, 02 Mar 2003 12:45:29 +0000
parents 532146653f8d
children 8b7db04f3672
comparison
equal deleted inserted replaced
49998:1f54e3351ad2 49999:4a963c586625
609 2003-01-20 Jan Dj,Ad(Brv <jan.h.d@swipnet.se> 609 2003-01-20 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
610 610
611 * gtkutil.c (xg_create_frame_widgets): Check if there is an 611 * gtkutil.c (xg_create_frame_widgets): Check if there is an
612 external tool bar before setting tool bar height. 612 external tool bar before setting tool bar height.
613 613
614 2003-01-19 Ja 614 2003-01-19 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
615
616 * xterm.c (handle_one_xevent): Surround popup_activated
617 with #ifdef:s for non-toolkit version.
618
619 * Makefile.in (XOBJ): Add gtkutil.o if USE_GTK
620 (gtkutil.o): New file.
621 (TOOLKIT_DEFINES): Set to -DUSE_GTK if HAVE_GTK.
622 (LIBW): Set to @GTK_LIBS@ if USE_GTK.
623
624 * gtkutil.c: New file for GTK version.
625
626 * gtkutil.h: New file for GTK version.
627
628 * xterm.h: Add xt_or_gtk_widget.
629 Include gtk files for USE_GTK.
630 (struct x_output): Add toolbar_height.
631 (struct x_output): Add GTK widgets and Gdk size_hints.
632 (GTK_WIDGET_TO_X_WIN, FRAME_GTK_OUTER_WIDGET, FRAME_GTK_WIDGET)
633 (FRAME_OUTER_WINDOW): New macros for USE_GTK.
634 (FRAME_OUTER_TO_INNER_DIFF_Y): Add FRAME_TOOLBAR_HEIGHT to calculation.
635
636 * xterm.c: Include gtkutil.h for USE_GTK.
637 Declare extern void free_frame_menubar for USE_GTK.
638 (note_mouse_highlight): Check popup_activated for USE_GTK.
639 (xt_action_hook): Don't compile if USE_GTK.
640 (x_scroll_bar_to_input_event): Use CurrentTime for USE_GTK.
641 (xg_scroll_callback): New function.
642 (x_create_toolkit_scroll_bar): Call xg_create_scroll_bar for USE_GTK.
643 (x_set_toolkit_scroll_bar_thumb): Call xg_set_toolkit_scroll_bar_thumb
644 for USE_GTK.
645 (x_scroll_bar_create): Call xg_update_scrollbar_pos and
646 xg_show_scroll_bar for USE_GTK.
647 (x_scroll_bar_remove): Call xg_remove_scroll_bar for USE_GTK.
648 (XTset_vertical_scroll_bar): Call xg_update_scrollbar_pos for USE_GTK.
649 (event_handler_gdk): New function for USE_GTK.
650 (handle_one_xevent): Call xg_resize_widgets for USE_GTK.
651 (handle_one_xevent): Make sure widget is mapped before
652 calling x_real_positions for USE_GTK.
653 (XTread_socket): Add GTK event loop for USE_GTK.
654 (x_set_window_size): Call xg_frame_set_char_size for USE_GTK.
655 (x_make_frame_visible): Call gtk_widget_show_all for USE_GTK.
656 (x_make_frame_invisible): Call gtk_widget_hide for USE_GTK.
657 (x_iconify_frame): Add code for USE_GTK.
658 (x_free_frame_resources): Call gtk_widget_destroy for USE_GTK.
659 (x_wm_set_size_hint): Only compile if not USE_GTK. GTK version
660 is in gtkutil.c.
661 (x_term_init): Add initialization for GTK.
662 (syms_of_xterm): Set Vx_toolkit_scroll_bars for USE_GTK.
663
664 * xmenu.c: Include gtkutil.h for USE_GTK.
665 (Fx_popup_menu): Use current position if x and y is NIL.
666 (single_menu_item, single_menu_item, Fx_popup_dialog): Check
667 for USE_GTK.
668 (popup_widget_loop): New function for USE_GTK.
669 (x_activate_menubar): Add code for USE_GTK.
670 (popup_activate_callback, popup_deactivate_callback)
671 (menu_highlight_callback, menubar_selection_callback): USE_GTK versions
672 added.
673 (update_frame_menubar): Call xg_update_frame_menubar for USE_GTK.
674 (set_frame_menubar): Call xg_modify_menubar_widgets for USE_GTK.
675 (free_frame_menubar): Only compile if not USE_GTK. GTK version
676 is in gtkutil.c.
677 (popup_selection_callback): New version for USE_GTK.
678 (create_and_show_popup_menu): New fuction, one USE_GTK version and
679 one USE_X_TOOLKIT version.
680 (xmenu_show): Call create_and_show_popup_menu.
681 (dialog_selection_callback): New version for USE_GTK.
682 (create_and_show_dialog): New fuction, one USE_GTK version and
683 one USE_X_TOOLKIT version.
684 (xdialog_show): Call create_and_show_dialog.
685
686 * xfns.c: Include gtkutil for USE_GTK.
687 (x_window_to_frame, x_any_window_to_frame)
688 (x_non_menubar_window_to_frame, x_menubar_window_to_frame)
689 (x_top_window_to_frame): Add code for USE_GTK.
690 (x_set_background_color): Call xg_set_background_color for GTK.
691 (x_set_menu_bar_lines): Check for USE_GTK.
692 (x_set_tool_bar_lines): Call update_frame_tool_bar for USE_GTK.
693 (x_set_name, x_set_title): Call gtk_window_set_title for USE_GTK.
694 (x_window): Call xg_create_frame_widgets for USE_GTK.
695 (Fx_create_frame): Check for USE_GTK
696 (Fx_file_dialog): New implementation for USE_GTK.
697
698 * xdisp.c: Add check for USE_GTK for extern void set_frame_menubar.
699 (update_menu_bar): Add check for USE_GTK.
700 (update_tool_bar): Add check for USE_GTK and external tool bar.
701 (redisplay_tool_bar): Add check for USE_GTK and external tool bar.
702 (redisplay_internal): Add check for USE_GTK and popup_activated.
703 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_MENU_BAR.
704 (redisplay_window): Add check for USE_GTK and FRAME_EXTERNAL_TOOL_BAR.
705 (display_menu_bar): Add check for USE_GTK
706
707 * lisp.h: Declare Vx_resource_name extern.
708
709 * keyboard.c (kbd_buffer_get_event): Check MENU_BAR_ACTIVATE_EVENT
710 for USE_GTK.
711 (make_lispy_event): Check MENU_BAR_EVENT for USE_GTK.
712
713 * frame.h (struct frame): Add external_tool_bar. Check for USE_GTK.
714 (FRAME_EXTERNAL_TOOL_BAR): New macro.
715 (FRAME_EXTERNAL_MENU_BAR): Check for USE_GTK.
716
717 * fileio.c (Fread_file_name): Add check for USE_GTK.
718
719 * dispnew.c (adjust_frame_glyphs_for_window_redisplay): Add
720 check for USE_GTK.
721
722 * config.in: Added HAVE_GTK
723
724 * alloc.c (Fgarbage_collect): Call xg_mark_data for GTK.
725
726 2003-01-18 Stefan Monnier <monnier@cs.yale.edu>
727
728 * charset.h (Funibyte_char_to_multibyte): Export.
729
730 2003-01-18 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
731
732 * xmenu.c (mouse_position_for_popup): New function.
733 (Fx_popup_menu): Call mouse_position_for_popup for X and
734 mouse_position_hook for others.
735
736 2003-01-17 Kim F. Storm <storm@cua.dk>
737
738 * editfns.c (Finsert): Mention `string-make-multibyte' and
739 `string-as-multibyte' in doc string.
740
741 2003-01-17 Kenichi Handa <handa@m17n.org>
742
743 * fontset.c (syms_of_fontset): Setup Vfont_encoding_alist here.
744
745 * editfns.c (Fformat): Convert an unibyte char argument that is
746 formatted by "%c" to multibyte if the total result must be a
747 multibyte string.
748
749 2003-01-16 Kim F. Storm <storm@cua.dk>
750
751 * process.c (set-process-filter): Document unibyte/multibyte-ness
752 of string argument.
753
754 2003-01-16 Kenichi Handa <handa@m17n.org>
755
756 * charset.h (NEXT_CHAR_BOUNDARY, PREV_CHAR_BOUNDARY): New macros.
757
758 * regex.c (GET_CHAR_BEFORE_2): Use PREV_CHAR_BOUNDARY.
759 (re_search_2): Likewise.
760
761 2003-01-15 Kenichi Handa <handa@m17n.org>
762
763 * xdisp.c (message_dolog): Fix bug of the case that *Message*
764 buffer is unibyte.
765
766 2003-01-15 Francesco Potort,Al(B <pot@gnu.org>
767
768 * fns.c (Fsubstring): Clarify doc string.
769
770 * textprop.c (Ftext_properties_at, Fnext_char_property_change)
771 (Fprevious_char_property_change)
772 (Fnext_single_char_property_change)
773 (Fprevious_single_char_property_change, Fnext_property_change)
774 (Fnext_single_property_change, Fprevious_property_change)
775 (Fprevious_single_property_change, Fadd_text_properties)
776 (Fput_text_property, Fset_text_properties)
777 (Fremove_text_properties, Fremove_list_of_text_properties)
778 (Ftext_property_any, Ftext_property_not_all): Clarify doc strings.
779
780 2003-01-14 Kim F. Storm <storm@cua.dk>
781
782 * process.h (struct Lisp_Process): New member plist replaces old
783 member private_vars. All uses changed.
784
785 * process.c: Reworked 2003-01-12 change -- call a plist a plist!
786 (QCplist): Renamed from QCvars. All uses changed.
787 (Fprocess_plist): Replaces Fprocess_variable. Simplified.
788 (Fset_process_plist): Replaces Fset_process_variable. Simplified.
789 (syms_of_process): Intern, staticpro, defsubr these.
790 (Fmake_network_process): Describe :plist arg. Removed :vars arg.
791
792 2003-01-14 Francesco Potort,Al(B <pot@gnu.org>
793
794 * m/delta.h: Removed (obsolete).
795
796 2003-01-13 Francesco Potort,Al(B <pot@gnu.org>
797
798 * fileio.c (Fdelete_directory, Fdelete_file): Document the
799 behaviour in front of symlinks.
800 (Fdelete_file): Raise an error on directories.
801
802 2003-01-13 Dave Love <fx@gnu.org>
803
804 * fns.c (Freverse): Use QUIT.
805
806 2003-01-13 Richard M. Stallman <rms@gnu.org>
807
808 * minibuf.c (minibuffer_completion_contents):
809 Error if point is inside prompt.
810
811 * keyboard.c (command_loop_1): Don't redisplay directly
812 if there's a post-command-hook.
813
814 * fileio.c (syms_of_fileio) <directory-sep-char>: Doc fix.
815 (Fdo_auto_save): Add gcpros around Ffile_name_directory.
816
817 2003-01-12 Kim F. Storm <storm@cua.dk>
818
819 * process.h (struct Lisp_Process): New member private_vars.
820
821 * process.c (QCvars): New variable.
822 (syms_of_process): Intern and staticpro it.
823 (Fset_process_contact): Removed function.
824 (Fprocess_variable, Fset_process_variable): New functions.
825 (syms_of_process): Defsubr them.
826 (Fstart_process): Initialize private_vars plist to nil.
827 (Fmake_network_process): New arg :vars to setup the private
828 variables for new network process.
829 (server_accept_connection): Copy server's private variables to
830 client process.
831
832 * alloc.c (pure_alloc): Fixed 2003-01-10 changed (caused spurious
833 crashes). Code rewritten and simplified. Now directly aligns the
834 pointer and recalculates pure_bytes_used, rather than aligning the
835 size and adjusting the pointer.
836
837 2003-01-11 Kim F. Storm <storm@cua.dk>
838
839 * process.c (Fset_process_contact): New function.
840 (syms_of_process): defsubr it.
841 (make-network-process): Update doc.
842
843 2003-01-10 Andreas Schwab <schwab@suse.de>
844
845 * alloc.c (pure_alloc): Correct alignment for Lisp_Floats.
846 Reported by Berthold Gunreben <b.gunreben@web.de>.
847
848 2003-01-10 Dave Love <fx@gnu.org>
849
850 * composite.c (syms_of_composite): Make composition_hash_table weak.
851
852 2003-01-09 Kim F. Storm <storm@cua.dk>
853
854 * process.c (Fmake_network_process): Convert new port number
855 to host byte order for `:service t' case. From Mario Lang.
856
857 2003-01-08 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
858
859 * xfns.c (Fx_file_dialog): Call XtAppNextEvent and x_dispatch_event
860 instead of XtAppProcessEvent.
861
862 * xterm.c (handle_one_xevent): New function.
863 (x_dispatch_event): New function.
864 (XTread_socket): Call handle_one_xevent.
865
866 * xterm.h (FRAME_OUTER_TO_INNER_DIFF_X/Y): New.
867
868 * xmenu.c (Fx_popup_menu): If popping up at mouse position,
869 call XQueryPointer to get coordinates.
870 (popup_get_selection): Do not set popup_activated_flag to zero,
871 let popup_deactivate_callback do that. Needed for Motif.
872 Call x_dispatch_event instead of XtDispatchEvent.
873 (xmenu_show): Calculate root coordinate from frame top/left position.
874
875 2003-01-08 Kim F. Storm <storm@cua.dk>
876
877 * process.c (server_accept_connection): Fixed recording of new
878 connection's local address in :local property of contact info.
879 (Fmake_network_process): Record local network address for new
880 client processes in :local property of contact info.
881 (format-network-address): Added arg OMIT-PORT. Callers changed.
882
883 2003-01-07 Dave Love <fx@gnu.org>
884
885 * Makefile.in (fns.o): Depend on coding.h.
886
887 2003-01-07 Markus Rost <rost@math.ohio-state.edu>
888
889 * minibuf.c (Fread_variable): Doc fix.
890
891 * eval.c (Fuser_variable_p): Doc change. For custom variables,
892 use the same test as for custom-variable-p.
893
894 2003-01-05 Richard M. Stallman <rms@gnu.org>
895
896 * xdisp.c (try_scrolling): New arg LAST_LINE_MISFIT.
897 Count LAST_LINE_MISFIT in scroll margin for end of window.
898 Move label too_near_end before setting SCROLL_MARGIN_POS.
899 Set LAST_LINE_MISFIT before jumping there.
900
901 * xdisp.c (try_scrolling): Calculate amount_to_scroll better in
902 scroll_conservatively case. If scrolling that much doesn't change
903 STARTP, move it down one line.
904
905 * xdisp.c (redisplay_window): Pass last_line_misfit arg to
906 try_scrolling. Make it 1 after make_cursor_line_fully_visible fails.
907
908 * xdisp.c (setup_echo_area_for_printing): Kill Emacs if no
909 selected frame.
910
911 * keymap.c (apropos_predicate, apropos_accumulate): Make them static.
912 (syms_of_keymap): staticpro them.
913 (Fapropos_internal): Initialize them and clear them out.
914 Don't GCPRO them.
915
916 * buffer.c (syms_of_buffer) <scroll-up-aggressively, scroll-down-aggressively>:
917 Doc fixes.
918
919 * lisp.h: New misc type Lisp_Save_Value.
920 (enum Lisp_Misc_Type): Add Lisp_Misc_Save_Value.
921 (XSAVE_VALUE): New macro.
922 (struct Lisp_Save_Value): New data type.
923 (union Lisp_Misc): Add u_save_value alternative.
924 (make_save_value): Declared.
925
926 * alloc.c (make_save_value): New function.
927
928 * xterm.c (x_catch_errors): Save dpy using make_save_value.
929 (x_catch_errors_unwind): Call XSync.
930
931 2003-01-01 Richard M. Stallman <rms@gnu.org>
932
933 * window.c (window_scroll_pixel_based): Partially undo last change.
934
935 * keyboard.c (command_loop_1): Call adjust_point_for_property
936 in direct action cases for Qforward_char and Qbackward_char.
937 Set already_adjusted so it won't be done twice.
938
939 2002-12-30 Richard Dawe <rich@phekda.freeserve.co.uk> (tiny change)
940
941 * src/config.in (!HAVE_SIZE_T): Fix order of arguments in
942 type definition of size_t.
943
944 2003-01-02 Steven Tamm <steventamm@mac.com>
945
946 * macterm.c (syms_of_macterm): Provide the feature "mac-carbon" to
947 distinguish Carbon GUI builds from X11 builds on darwin.
948
949 2002-12-30 Steven Tamm <steventamm@mac.com>
950
951 * macterm.c (syms_of_macterm): Set mac-wheel-button-is-mouse-2
952 to default to t.
953
954 2002-12-29 Francesco Potort,Al(B <pot@gnu.org>
955
956 * data.c (Fstring_to_number, Fminus): Better English in doc strings.
957
958 2002-12-28 Steven Tamm <steventamm@mac.com>
959
960 * Makefile.in (macosx-bundle): Fixes to Mac OS X/Carbon port to
961 allow building in a different directory than source. Uses some
962 GNU Make extensions, but there is no other make on Mac OS X.
963
964 2002-12-26 Francesco Potort,Al(B <pot@gnu.org>
965
966 * data.c (Fmakunbound, Ffmakunbound, Fmake_variable_buffer_local)
967 (Fsetq_default, Fmake_local_variable, Fkill_local_variable)
968 (Fmake_variable_frame_local, Faset, Fnumber_to_string, Fminus)
969 (Fstring_to_number): Mention the returned value in the doc strings.
970
971 2002-12-23 Richard M. Stallman <rms@gnu.org>
972
973 * buffer.c (syms_of_buffer) <scroll-up-aggressively>
974 <scroll-down-aggressively>: Doc fix.
975
976 * xmenu.c (parse_single_submenu): Use individual keymap's prompt
977 string as pane name, if there is one.
978 (set_frame_menubar): Save menu_items_n_panes from each call to
979 parse_single_submenu and use it when calling digest_single_submenu.
980
981 * window.c (window_scroll_pixel_based): Fix check for reaching BEGV.
982 Don't try to make last line fully visible if it is past end of window.
983
984 2002-12-22 Steven Tamm <steventamm@mac.com>
985
986 * macmenu.c (MIN_POPUP_SUBMENU_ID): Add.
987 (mac_menu_show): Add support for hierarchical popup menus.
988 (add_menu_item): Remove indentation support.
989 (fill_submenu, fill_menu): Create hierarchical menus
990 instead of using indentation.
991
992 2002-12-22 Richard M. Stallman <rms@gnu.org>
993
994 * xdisp.c (try_cursor_movement): Don't call try_window here.
995 (redisplay_window): Never redisplay minibuffer when inactive.
996
997 * window.c (select_window_1): Undo 9/21 change.
998
999 2002-12-22 Steven Tamm <steventamm@mac.com>
1000
1001 * macterm.c (XTread_socket): Call KeyTranslate for control and
1002 meta to deal correctly shifted non-alpha characters, like C-S-5
1003 being treated like C-%. Does not look for shift key to deal
1004 with masking off control-key with mac-reverse-ctrl-meta.
1005
1006 2002-12-21 Richard M. Stallman <rms@gnu.org>
1007
1008 * xmenu.c (popup_get_selection): Now static. New arg DO_TIMERS.
1009 If it is non-nil, run timers. Use an unwind-protect to requeue
1010 the events that were read ahead.
1011 (popup_get_selection_unwind): New subroutine.
1012 (popup_get_selection_queue): File-scope variable now holds that queue.
1013 (xmenu_show): Pass 0 for DO_TIMERS to popup_get_selection.
1014 (xdialog_show): Pass 1 for DO_TIMERS to popup_get_selection.
1015 Use an unwind-protect to pop down the dialog box.
1016 (xdialog_show_unwind): New subroutine implements that.
1017
1018 * xdisp.c (row_containing_pos): Change exit test using last_y.
1019 (try_window_id): Abort if row_containing_pos returns null.
1020
1021 * lread.c (load_error_handler): New function.
1022 (Fload): Handle errors in Fsubstitute_in_file_name.
1023 Don't expect Fsignal to return.
1024
1025 * eval.c: Errors and throws work right with interrupt blocking.
1026 (struct catchtag): New elt interrupt_input_blocked.
1027 (unwind_to_catch): Restore interrupt_input_blocked from saved value.
1028 (internal_catch, Fcondition_case, internal_condition_case)
1029 (internal_condition_case_1, internal_condition_case_2): Save it.
1030 (Fsignal): Don't do TOTALLY_UNBLOCK_INPUT.
1031
1032 * editfns.c (Fformat): Add parens.
1033
1034 * dired.c (file_name_completion): Fix that change.
1035 Delete special quit-handling code; just use QUIT.
1036
1037 2002-12-21 Tak Ota <Takaaki.Ota@am.sony.com> (tiny change)
1038
1039 * dired.c (file_name_completion): Close directory on error
1040 just as in directory_files_internal.
1041
1042 2002-12-19 David Kastrup <David.Kastrup@t-online.de>
1043
1044 * window.c (Fset_window_configuration): Set old_point to correct
1045 value when new_current_buffer == current_buffer.
1046
1047 2002-12-17 Ben Key <bkey1@tampabay.rr.com>
1048
1049 Revisited my earlier fix for the following entry in etc/PROBLEMS:
1050 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
1051 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
1052
1053 These changes were in part based upon suggestions made by Peter
1054 'Luna' Runestig [peter@runestig.com].
1055
1056 * w32.c (g_b_init_is_windows_9x, g_b_init_open_process_token,
1057 g_b_init_get_token_information, g_b_init_lookup_account_sid,
1058 g_b_init_get_sid_identifier_authority ): Added several static
1059 global variables.
1060
1061 * w32.c (globals_of_w32): New function. Used to initialize those
1062 global variables that must always be initialized on startup even
1063 when the global variable initialized is non zero. Its primary
1064 purpose at this time is to set the global variables
1065 g_b_init_is_windows_9x, g_b_init_open_process_token,
1066 g_b_init_get_token_information, g_b_init_lookup_account_sid, and
1067 g_b_init_get_sid_identifier_authority to 0 on startup.
1068 Called from main.
1069
1070 * w32.c (is_windows_9x): Perform initialization only if
1071 g_b_init_is_windows_9x is equal to 0. On initialization set
1072 g_b_init_is_windows_9x equal to 1.
1073
1074 * w32.c (open_process_token): Perform initialization only if
1075 g_b_init_open_process_token is equal to 0. On initialization set
1076 g_b_init_open_process_token equal to 1.
1077
1078 * w32.c (get_token_information): Perform initialization only if
1079 g_b_init_get_token_information is equal to 0. On initialization
1080 set g_b_init_get_token_information equal to 1.
1081
1082 * w32.c (lookup_account_sid): Perform initialization only if
1083 g_b_init_lookup_account_sid is equal to 0. On initialization
1084 set g_b_init_lookup_account_sid equal to 1.
1085
1086 * w32.c (get_sid_identifier_authority): Perform initialization
1087 only if g_b_init_get_sid_identifier_authority is equal to 0.
1088 On initialization set g_b_init_get_sid_identifier_authority equal to 1.
1089
1090 * w32fns.c (globals_of_w32fns): New function. Used to initialize
1091 those global variables that must always be initialized on startup
1092 even when the global variable initialized is non zero.
1093 Its primary purpose at this time is to initialize the global variable
1094 track_mouse_event_fn.
1095
1096 * w32fns.c (w32_wnd_proc): Remove initialization of
1097 track_mouse_event_fn from the handler for the WM_SETFOCUS message.
1098
1099 * w32fns.c (syms_of_w32fns): Call globals_of_w32fns.
1100
1101 * w32menu.c (globals_of_w32menu): New function. Used to
1102 initialize those global variables that must always be initialized
1103 on startup even when the global variable initialized is non zero.
1104 Its primary purpose at this time is to initialize the global
1105 variables get_menu_item_info and set_menu_item_info.
1106
1107 * w32menu.c (initialize_frame_menubar): Remove initialization of
1108 get_menu_item_info and set_menu_item_info.
1109
1110 * w32menu.c (syms_of_w32menu): Call globals_of_w32menu.
1111
1112 * w32.h (globals_of_w32, globals_of_w32fns, globals_of_w32menu):
1113 Declare them.
1114
1115 * emacs.c (main): Call globals_of_w32 prior to calling
1116 init_environment if WINDOWSNT is defined. Call globals_of_w32fns
1117 and globals_of_w32menu if initialized is non zero and HAVE_NTGUI
1118 is defined.
1119
1120 * w32term.c (x_update_window_begin): Fix Windows API error
1121 detected by BoundsChecker. Test to determine if
1122 w32_system_caret_hwnd is NULL prior to attempting to use
1123 SendMessage to send the WM_EMACS_HIDE_CARET message to it.
1124
1125 * w32term.c (x_update_window_end): Fix Windows API error
1126 detected by BoundsChecker. Test to determine if
1127 w32_system_caret_hwnd is NULL prior to attempting to use
1128 SendMessage to send the WM_EMACS_SHOW_CARET message to it.
1129
1130 2002-12-17 Kenichi Handa <handa@m17n.org>
1131
1132 * coding.c (coding_system_require_warning): New variable.
1133 (syms_of_coding): DEFVAR it.
1134
1135 * coding.h (coding_system_require_warning): Extern it.
1136
1137 * fileio.c (choose_write_coding_system): Even if
1138 Vcoding_system_for_write is non-nil, if
1139 coding_system_require_warning is nonzero, call
1140 Vselect_safe_coding_system_function.
1141
1142 2002-12-17 Markus Rost <rost@math.ohio-state.edu>
1143
1144 * Makefile.in (lisp, shortlisp): Add cus-face and timer.
1145 (lisp): Add font-core.
1146
1147 2002-12-13 Stefan Monnier <monnier@cs.yale.edu>
1148
1149 * textprop.c (text_read_only): New arg `propval'.
1150 (get_char_property_and_overlay): Remove unused var `next_overlay'.
1151 (verify_interval_modification): Use text_read_only's new arg.
1152
1153 2002-12-13 Kenichi Handa <handa@m17n.org>
1154
1155 * coding.c (Funencodable_char_position): Set pend correctly.
1156
1157 2002-12-12 Jason Rumney <jasonr@gnu.org>
1158
1159 * w32term.c (last_mousemove_x, last_mousemove_y): New variables.
1160 (w32_read_socket) <WM_MOUSEMOVE>: Use them to detect non-movement.
1161 Be more careful about when help_events are generated.
1162
1163 2002-12-12 Steven Tamm <steventamm@mac.com>
1164
1165 * macterm.c (mac_check_for_quit_char): Correctly set the
1166 modifiers of the event to 0.
1167 * mac.c (sys_select): Duplicate rfds before calling select to
1168 ensure that rfds survive the while loop.
1169
1170 2002-12-11 Kim F. Storm <storm@cua.dk>
1171
1172 * xdisp.c (try_window_id): Don't call set_cursor_from_row if
1173 row_containing_pos returned NULL.
1174
1175 2002-12-10 Steven Tamm <steventamm@mac.com>
1176
1177 * mac.c (sys_read): Fixed sys_read to not call select if IO is
1178 non-blocking.
1179 (sys_select): Fixed sys_select to not use a timeout larger than
1180 the one given.
1181
1182 2002-12-10 Juanma Barranquero <lektu@terra.es>
1183
1184 * editfns.c (Fformat): Use alloca, not _alloca.
1185
1186 2002-12-09 Richard M. Stallman <rms@gnu.org>
1187
1188 * buffer.c (Fget_buffer_create): Call Qucs_set_table_for_input
1189 as the last thing.
1190
1191 2002-12-09 Dave Love <fx@gnu.org>
1192
1193 * s/sol2-8.h: Removed. (Not necessary.)
1194
1195 2002-12-09 Matthew Swift <swift@alum.mit.edu>
1196
1197 * editfns.c (Fformat): Handle precision in string conversion
1198 specifiers like libc functions do (ie, print at most that many
1199 characters).
1200
1201 2002-12-08 Richard M. Stallman <rms@gnu.org>
1202
1203 * xdisp.c (row_containing_pos): Check more carefully
1204 whether charpos is really in the row before returning it.
1205
1206 2002-12-07 Steven Tamm <steventamm@mac.com>
1207
1208 * sysdep.c (emacs_read) [HAVE_CARBON]: Have emacs_read use sys_read.
1209
1210 * eval.c (Feval) [HAVE_CARBON]: Calls mac_check_for_quit_char at
1211 each stack frame. This may change as it could be time consuming.
1212
1213 * macterm.c (mac_check_for_quit_char, quit_char_comp)
1214 (init_quit_char_handler, mac_determine_quit_char_modifiers)
1215 (mac_initialize): Added code to check for pressing of quit_char
1216 in the OS event queue.
1217
1218 * mac.c (sys_select): Call mac_check_for_quit_char every second
1219 while blocking on select.
1220
1221 * mac.c (sys_read): Use sys_select to test for input first
1222 before calling read, to allow C-g to break.
1223
1224 2002-12-07 Richard M. Stallman <rms@gnu.org>
1225
1226 * minibuf.c (Fcompleting_read): Doc fix.
1227
1228 * lread.c (syms_of_lread) <load-history>: Doc fix.
1229
1230 * fileio.c (Fcopy_file): Set immediate_quit around emacs_open call.
1231
1232 * eval.c (Fdefun, Fdefmacro): Record in load-history redefining an
1233 autoload.
1234
1235 * data.c (Fdefalias): Record in load-history redefining an autoload.
1236
1237 * alloca.c: Undo ifdef change accidentally made on 12-04.
1238
1239 2002-12-06 Francesco Potorti` <pot@gnu.org>
1240
1241 * xfns.c (png_load): Avoid double gamma correction for PNG images.
1242
1243 2002-12-04 Richard M. Stallman <rms@gnu.org>
1244
1245 * sysdep.c (fcntl.h): Test only HAVE_FCNTL_H.
1246
1247 * fileio.c (fcntl.h): Test only HAVE_FCNTL_H.
1248
1249 * alloca.c: Don't use #error.
1250
1251 2002-12-03 Dave Love <fx@gnu.org>
1252
1253 * buffer.c (Qucs_set_table_for_input): New.
1254 (Fget_buffer_create): Use it.
1255 (Qset_buffer_major_mode_hook): Deleted.
1256 (Fset_buffer_major_mode): Revert previous change.
1257 (init_buffer_once): Intern ucs-set-table-for-input.
1258 (syms_of_buffer): Delete Qset_buffer_major_mode_hook.
1259 Add &Qucs_set_table_for_input.
1260
1261 2002-12-03 Andreas Schwab <schwab@suse.de>
1262
1263 * callint.c (Fcall_interactively): Use next_event only if less
1264 than key_count.
1265
1266 2002-12-02 Andrew Choi <akochoi@shaw.ca>
1267
1268 * macmenu.c (add_menu_item, fill_menubar): Truncate menu item
1269 names to 255 characters.
1270
1271 * macterm.c (XTread_socket): If all frames have been collapsed,
1272 expand the first one before handling drag-and-drop events.
1273
1274 * s/darwin.h (GETPGRP_NO_ARG): Delete. Replaced by GETPGRP_VOID,
1275 which is detected by autoconf.
1276
1277 2002-12-01 Steven Tamm <steventamm@mac.com>
1278
1279 * unexmacosx.c (copy_twolevelhints, dump_it): Now corrects the
1280 offset in two hints table to allow prebinding to be redone and
1281 allow the executable to be stripped.
1282
1283 2002-11-29 Dave Love <fx@gnu.org>
1284
1285 * fns.c (Frequire): Don't call LOADHIST_ATTACH if feature was
1286 already provided.
1287
1288 2002-11-29 Richard M. Stallman <rms@gnu.org>
1289
1290 * xdisp.c (start_display): Check more intelligently for
1291 whether the line is continued.
1292 (move_it_vertically_backward): Clear it->continuation_lines_width.
1293
1294 2002-11-28 Dave Love <fx@gnu.org>
1295
1296 * s/amdahl.h, s/unipl5-0.h, m/sgi3000.h, s/3700.h, s/alliant-2800.h:
1297 * s/alliant.h, s/altos.h: Deleted. (Unused/empty.)
1298
1299 2002-11-27 Steven Tamm <steventamm@mac.com>
1300
1301 * fns.c (Frequire): Change nesting allowance from 2 to 3 to cause
1302 more descriptive error output from lread.c:Fload upon most require
1303 cycles during boostrapping.
1304
1305 2002-11-27 Jason Rumney <jasonr@gnu.org>
1306
1307 * fileio.c (Finsert_file_contents): Give a more appropriate error
1308 for files bigger than 2Gb when off_t is 32 bit.
1309
1310 * dired.c (Ffile_attributes): Don't return negative file sizes for
1311 files bigger than 2Gb when off_t is 32 bit.
1312
1313 2002-11-27 Dave Love <fx@gnu.org>
1314
1315 * s/irix6-0.h (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
1316
1317 * systty.h: Don't conditionally define GETPGRP_NO_ARG.
1318 Test GETPGRP_VOID instead.
1319 [BSD_TERMIOS]: Remove definitions (never used).
1320
1321 * s/osf5-0.h (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist):
1322 Don't define.
1323 (GC_SETJMP_WORKS, GC_MARK_STACK): Define.
1324
1325 * m/mips.h (WORDS_BIG_ENDIAN): Define conditionally.
1326
1327 2002-11-25 Jason Rumney <jasonr@gnu.org>
1328
1329 * w32.c (sys_write): Avoid non-blocking mode, which is not fully
1330 supported.
1331
1332 2002-11-25 Dave Love <fx@gnu.org>
1333
1334 * unexalpha.c (update_dynamic_symbols): Cast arg of fatal_unexec.
1335
1336 * Makefile.in (TEMACS_LDFLAGS): Update last change.
1337
1338 2002-11-25 Andreas Schwab <schwab@suse.de>
1339
1340 * m/ia64.h: Restore `#ifndef NOT_C_CODE' deleted by last change.
1341
1342 2002-11-24 Steven Tamm <steventamm@mac.com>
1343
1344 * unexmacosx.c (unexec_realloc): Use malloc_default_zone to
1345 determine the size of pointers alloced in unexed space instead
1346 of using possibly invalid emacs_zone pointers. This fixes the
1347 binary incompatibility problems caused by updates to libSystem.B.
1348
1349 2002-11-24 Richard M. Stallman <rms@gnu.org>
1350
1351 * search.c (Fstring_match): Doc fix.
1352
1353 * callint.c (Fcall_interactively): If a command fails because
1354 `*' detects a read-only buffer, but RECORD_FLAG is set,
1355 record it anyway if the args don't actually do tty input.
1356
1357 2002-11-22 Dave Love <fx@gnu.org>
1358
1359 * sysdep.c (stuff_char) [PROTOTYPES]: Provide ISO C arglist.
1360
1361 * keyboard.c (interrupt_signal): Provide forward declaration.
1362 (kbd_buffer_store_event): Don't declare interrupt_signal.
1363
1364 * xdisp.c (store_frame_title_char) [PROTOTYPES]: Provide ISO C arglist.
1365
1366 2002-11-21 Richard M. Stallman <rms@gnu.org>
1367
1368 * eval.c (interactive_p): Skip any number of bytecode
1369 and special form frames, in any order.
1370
1371 2002-11-20 Jason Rumney <jasonr@gnu.org>
1372
1373 * w32fns.c (convert_mono_to_color_image): New function.
1374 (xbm_load, xbm_load_image): Use it when foreground or background
1375 is explicitly set.
1376
1377 2002-11-19 Dave Love <fx@gnu.org>
1378
1379 * s/usg5-4.h, sco4.h (bcopy, bzero, bcmp): Don't define.
1380
1381 2002-11-18 Jason Rumney <jasonr@gnu.org>
1382
1383 * w32fns.c (x_build_heuristic_mask): Filter palette info from color.
1384 (XPutPixel): Swap blue and red.
1385 (xpm_format, pbm_format, png_format, jpeg_format, tiff_format)
1386 (gif_format, gs_format): Use IMAGE_ASCENT_VALUE.
1387 (xpm_image_p, pbm_image_p, png_image_p, jpeg_image_p)
1388 (tiff_image_p, gif_image_p, gs_image_p): Don't check ascent.
1389
1390 2002-11-18 Dave Love <fx@gnu.org>
1391
1392 * m/orion105.h (HAVE_ALLOCA): Don't define.
1393
1394 * m/m68k.h, m/arm.h, mtekxd88.h, m/tower32v3.h: Don't define alloca.
1395
1396 * m/intel386.h: Don't include alloca.h or define alloca.
1397
1398 * m/ia64.h: Don't include alloca.h, stdlib.h. Don't declare
1399 malloc, realloc, calloc.
1400
1401 * m/hp800.h, m/sr2k.h, m/ns16000.h, m/wicat.h (bcopy, bzero)
1402 (bcmp): Don't define.
1403
1404 * m/delta.h (bcopy, bzero, bcmp, alloca): Don't define.
1405
1406 * m/amdahl.h: Don't define LIB_STANDARD.
1407
1408 * m/alpha.h: Move OSF1 stuff from here to s/osf1.h.
1409
1410 * s/osf1.h: Move OSF1 stuff from m/alpha.h to here.
1411
1412 * s/irix4-0.h, s/irix5-0.h, m/powerpcle.h, m/sparc.h:
1413 Don't include alloca.h.
1414
1415 * s/aix3-2.h (HAVE_FSYNC): Don't define.
1416
1417 * regex.c (_GNU_SOURCE): Don't define.
1418
1419 * process.c (_GNU_SOURCE): Don't define.
1420
1421 * fileio.c (_GNU_SOURCE, HAVE_FSYNC): Don't define.
1422
1423 2002-11-18 Markus Rost <rost@math.ohio-state.edu>
1424
1425 * s/sol2-8.h: Include sol2-6.h.
1426
1427 2002-11-18 Miles Bader <miles@gnu.org>
1428
1429 * dispextern.h (struct face): Add `overstrike' field.
1430 * xterm.c (x_draw_glyph_string_foreground)
1431 (x_draw_composite_glyph_string_foreground): Implement overstriking.
1432 * xfaces.c (load_face_font): Set `face->overstrike' based on
1433 result from choose_face_font.
1434 (best_matching_font, choose_face_font): Add `needs_overstrike'
1435 argument, and use it to return whether overstriking is desirable
1436 for this face/font combo.
1437 (set_font_frame_param: Pass new argument to choose_face_font.
1438
1439 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
1440
1441 This change is my fix for the following entry in etc/PROBLEMS:
1442 "Emacs built on Windows 9x/ME crashes at startup on Windows XP,
1443 or Emacs builtpart of on XP crashes at startup on Windows 9x/ME."
1444
1445 * w32.c: Added wrapper functions around the win32 API functions
1446 OpenProcessToken, GetTokenInformation, LookupAccountSid, and
1447 GetSidIdentifierAuthority. These wrapper functions serve two
1448 purposes:
1449 1. They ensure that the wrapped function can never be called
1450 when Emacs is running on an operating system on which they are
1451 not supported (Microsoft Windows 95 / 98 / ME).
1452 2. They call the wrapped functions via function pointers rather
1453 than calling them directly. This avoids taking advantage of the
1454 undocumented fact that although these functions are not supported
1455 in the 9x branch of Microsoft Windows, the functions do exist in
1456 the version of advapi32.dll that is found in the 9x branch of
1457 Microsoft Windows.
1458
1459 * w32.c (init_user_info): Replaced the calls to the win32 API
1460 functions OpenProcessToken, GetTokenInformation, LookupAccountSid,
1461 and GetSidIdentifierAuthority with calls to the newly added
1462 wrapper functions.
1463
1464 * w32.h: Added extern declarations for the following functions:
1465 syms_of_w32term, syms_of_w32fns, syms_of_w32select,
1466 syms_of_w32menu, and void syms_of_fontset.
1467
1468 * w32fns.c (w32_wnd_proc): Added code to reinitialize the
1469 function pointer track_mouse_event_fn in the handler for the
1470 WM_SETFOCUS message.
1471
1472 * w32menu.c (initialize_frame_menubar): Added code to
1473 reinitialize the function pointers set_menu_item_info and
1474 get_menu_item_info.
1475
1476 2002-11-17 Ben Key <BKey1@tampabay.rr.com>
1477
1478 * sound.c: Added a partial implementation of play-sound-internal
1479 for Microsoft Windows. Added various #ifdef / #else / #endif
1480 code blocks to separate the code that will compile under
1481 Microsoft Windows from the code that is specific to Gnu/Linux.
1482 Moved several blocks of code around to make this separation of code
1483 into Windows compatible and Gnu/Linux compatible code blocks easier.
1484
1485 * makefile.w32-in: Include sound.c and link with WinMM.lib.
1486
1487 * s/ms-w32.h: Defined the symbol HAVE_SOUND so that the newly
1488 added support for play-sound-internal under Windows would be
1489 included in the build of Emacs.
1490
1491 2002-11-16 Jason Rumney <jasonr@gnu.org>
1492
1493 * w32fns.c (w32_load_system_font): Don't disable Cleartype.
1494
1495 * w32term.c (w32_get_glyph_string_clip_rect): Clip cursor tightly.
1496
1497 2002-11-15 Stefan Monnier <monnier@cs.yale.edu>
1498
1499 * keyboard.c (command_loop_1): Fix int/Lisp_Object mixup.
1500 (adjust_point_for_property): Move out of display and invisible even if
1501 we were already inside before (in case a property was added while
1502 we weren't looking). Be more careful when handling invisible props.
1503 Skip invisible text as if it really wasn't there at all.
1504
1505 2002-11-15 Jason Rumney <jasonr@gnu.org>
1506
1507 * w32term.c (x_draw_image_foreground)
1508 (w32_draw_image_foreground_1): Use standard copy and invert
1509 operations to draw images.
1510
1511 * w32fns.c (x_create_x_image_and_pixmap): Fill in palette for
1512 depth of 1.
1513 (xbm_read_bitmap_data): Invert bits as xbm is read in.
1514 (XPutPixel): Don't invert bits here.
1515
1516 2002-11-15 Jason Rumney <jasonr@gnu.org>
1517
1518 * w32term.c (x_draw_image_foreground, x_draw_image_glyph_string)
1519 (w32_draw_image_foreground_1): Handle image masks.
1520 (x_draw_image_glyph_string): Don't BitBlt transparently.
615 1521
616 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs. 1522 * w32fns.c (w32_defined_color): Adjust RGB values for Emacs.
617 (x_from_xcolors): Adjust RGB values for W32. 1523 (x_from_xcolors): Adjust RGB values for W32.
618 (image_background, image_background_transparent) 1524 (image_background, image_background_transparent)
619 (postprocess_image, x_to_xcolors, x_disable_image) 1525 (postprocess_image, x_to_xcolors, x_disable_image)
687 * coding.c (Vtranslation_table_for_input): New. 1593 * coding.c (Vtranslation_table_for_input): New.
688 (syms_of_coding): DEFVAR it. 1594 (syms_of_coding): DEFVAR it.
689 1595
690 2002-11-08 Juanma Barranquero <lektu@terra.es> 1596 2002-11-08 Juanma Barranquero <lektu@terra.es>
691 1597
692 * w32term.c (w32_draw_fringe_bitmap): Remove unused variable window. 1598 * w32term.c (w32_draw_fringe_bitmap): Remove unused local variable
1599 window.
693 1600
694 2002-11-08 Pavel Jan,Am(Bk <Pavel@Janik.cz> 1601 2002-11-08 Pavel Jan,Am(Bk <Pavel@Janik.cz>
695 1602
696 * process.c (Fformat_network_address): Remove unused locals p, 1603 * process.c (Fformat_network_address): Removed unused locals p,
697 cp, and i. 1604 cp, and i.
698 1605
699 2002-11-06 Dave Love <fx@gnu.org> 1606 2002-11-06 Dave Love <fx@gnu.org>
700 1607
701 * buffer.c (Qset_buffer_major_mode_hook): New. 1608 * buffer.c (Qset_buffer_major_mode_hook): New.
1133 At the same time, make an unwind-protect to pop it. 2040 At the same time, make an unwind-protect to pop it.
1134 Rename local message_p to old_message_p. 2041 Rename local message_p to old_message_p.
1135 (do_auto_save_make_dir, do_auto_save_eh): New functions. 2042 (do_auto_save_make_dir, do_auto_save_eh): New functions.
1136 (do_auto_save_unwind): Don't call pop_message. 2043 (do_auto_save_unwind): Don't call pop_message.
1137 2044
2045 * lisp.h (pop_message_unwind): Renamed from push_message_unwind.
2046
2047 * keyboard.c (Fexecute_extended_command): Use pop_message_unwind.
2048
2049 * alloc.c (Fgarbage_collect): Use pop_message_unwind.
2050
2051 * xdisp.c (pop_message_unwind): Renamed from push_message_unwind.
2052
2053 2002-09-10 Stefan Monnier <monnier@cs.yale.edu>
2054
2055 * regex.c (DISCARD_FAILURE_REG_OR_COUNT): Delete.
2056 (CHECK_INFINITE_LOOP): Don't pop anything: just set `cycle' to 1.
2057 (re_match_2_internal): Be more careful with infinite loops.
2058
2059 2002-09-10 Kim F. Storm <storm@cua.dk>
2060
2061 * macros.c (end_kbd_macro): New function.
2062 (Fend_kbd_macro): Use it.
2063
2064 * macros.h (end_kbd_macro): Declare extern.
2065
2066 * keyboard.c (Fdiscard_input): If defining keyboard macro,
2067 end and save it instead of discarding it.
2068
2069 2002-09-09 Markus Rost <rost@math.ohio-state.edu>
2070
2071 * s/sol2-6.h: Fix typo. Add comment.
2072
2073 2002-09-09 Richard M. Stallman <rms@gnu.org>
2074
2075 * regex.c (regnum_t): Use signed int, not unsigned int.
2076
2077 * s/sol2-6.h: New file.
2078
2079 * s/sol2-5.h (UNEXEC): Definition deleted.
2080
2081 2002-09-08 Kim F. Storm <storm@cua.dk>
2082
2083 * macros.c (executing_macro_index): Change type to EMACS_INT.
2084 (syms_of_macros): DEFVAR_INT it (needed by kmacro).
2085
2086 * macros.h (executing_macro_index): Change type to EMACS_INT.
2087
2088 2002-09-06 Richard M. Stallman <rms@gnu.org>
2089
2090 * casetab.c (set_case_table): Make canon table point to eqv table.
2091
2092 2002-09-06 Juanma Barranquero <lektu@terra.es>
2093
2094 * coding.c (syms_of_coding): Fix spacing.
2095
2096 * composite.c (Fcompose_region_internal)
2097 (Fcompose_string_internal): Likewise.
2098
2099 * data.c (Flsh): Likewise.
2100
2101 * fontset.c (Fset_fontset_font): Likewise.
2102
2103 * macfns.c (Fx_server_max_request_size): Likewise.
2104
2105 * w16select.c (syms_of_win16select): Likewise.
2106
2107 * w32select.c (syms_of_w32select): Likewise.
2108
2109 * xselect.c (syms_of_xselect): Likewise.
2110
2111 2002-09-05 Richard M. Stallman <rms@gnu.org>
2112
2113 * regex.c (set_image_of_range_1): In no-TRANSLATE case,
2114 call EXTEND_RANGE_TABLE and return a proper value.
2115 (set_image_of_range): Don't call set_image_of_range_1
2116 if no TRANSLATE or if range includes all of Latin-1.
2117 Only call it for the Latin-1 part of the range.
2118 For other cases, make two separate ranges,
2119 one for the original specified characters and one for
2120 their case-conversions.
2121
2122 2002-09-04 Richard M. Stallman <rms@gnu.org>
2123
2124 * s/sol2-5.h (UNEXEC): Use unexsol.o.
2125
2126 * window.c (displayed_window_lines): Correct for one-off bug
2127 in HEIGHT on non-window displays.
2128
2129 * regex.c (set_image_of_range_1): New function.
2130 (set_image_of_range): Use set_image_of_range_1 for Latin-1.
2131 Return a value to indicate running out of memory.
2132 (SET_RANGE_TABLE_WORK_AREA): Check value from set_image_of_range.
2133 (extend_range_table_work_area): New subroutine.
2134 (EXTEND_RANGE_TABLE): Replaces EXTEND_RANGE_TABLE_WORK_AREA.
2135 Different calling conventions, and used from set_image_of_range{,_1}.
2136 (IMMEDIATE_QUIT_CHECK): Definitions moved.
2137
2138 2002-09-04 Juanma Barranquero <lektu@terra.es>
2139
2140 * makefile.w32-in: All dependencies updated.
2141
2142 2002-09-01 Richard M. Stallman <rms@gnu.org>
2143
2144 * unexsol.c: New file.
2145
2146 * xfns.c (Qbox): Declare external, don't define.
2147
2148 * xdisp.c (redisplay_window) <force-start case>:
2149 If point is on semi-visible last line, reposition
2150 it at previous line.
2151
2152 * alloc.c (display_malloc_warning): Use display-warning.
2153 (malloc_warning_1): Function deleted.
2154
2155 * alloc.c [ALLOC_DEBUG]: #undef INLINE.
2156
2157 * lread.c (read1): Handle #! by skipping the line.
2158
2159 2002-08-31 Richard M. Stallman <rms@gnu.org>
2160
2161 * Makefile.in (TEMACS_LDFLAGS): Renamed from ALL_LDFLAGS.
2162 Don't include LDFLAGS.
2163 (temacs): Pass LDFLAGS separately, and not via YMF_PASS_LDFLAGS.
2164
2165 2002-08-31 Eli Zaretskii <eliz@is.elta.co.il>
2166
2167 * xdisp.c (get_window_cursor_type): Don't use x_highlight_frame
2168 member of x_display_info unless we compile for some window system.
2169
2170 2002-08-31 Kim F. Storm <storm@cua.dk>
2171
2172 * xdisp.c (Valternate_cursor_type, Qalternate_cursor_type): Removed.
2173 (get_window_cursor_type): Don't use them.
2174 (syms_of_xdisp): Remove intern, staticpro, and defvar for them.
2175
2176 2002-08-30 Kenichi Handa <handa@etl.go.jp>
2177
2178 * xdisp.c (get_next_display_element): Fix previous change.
2179
2180 2002-08-30 Andrew Choi <akochoi@shaw.ca>
2181
2182 * macterm.c (expose_overlaps): New function (merge code from xterm.c).
2183 (expose_window): Use it to fix the display of overlapping
2184 rows (merge code from xterm.c).
2185
2186 * macfns.c (Qbox): Add extern declaration.
2187
2188 2002-08-30 Juanma Barranquero <lektu@terra.es>
2189
2190 * w32fns.c (Qbox): Make extern.
2191 (syms_of_w32fns): Remove initialization of Qbox.
2192
2193 2002-08-30 Rune Kleveland <runekl@viewpoint.no> (tiny change)
2194
2195 * xfns.c (Fx_open_connection): Fix error message.
2196
2197 2002-08-30 Kim F. Storm <storm@cua.dk>
2198
2199 The following changes consolidates the handling of the cursor
2200 type in xdisp.c, moving duplicate code and functionality from
2201 xfns.c, xterm.c, w32fns.c, w32term.c, macfns.c, and macterm.c.
2202
2203 * frame.h (enum text_cursor_kinds): Consolidated here.
2204 Added DEFAULT_CURSOR value.
2205 (struct frame) <desired_cursor, cursor_width>
2206 <blink_off_cursor, blink_off_cursor_width>: New fields.
2207 Consolidated from output_x, output_w32 and output_mac structs.
2208 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
2209 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros consolidated here.
2210
2211 * xdisp.c (Qbar, Qhbar, Qbox, Qhollow, Vblink_cursor_alist):
2212 Variables consolidated here.
2213 (Valternate_cursor_type, Qalternate_cursor_type): New variables.
2214 (Vcursor_in_non_selected_windows): Renamed from
2215 cursor_in_non_selected_windows and changed to Lisp_Object.
2216 (syms_of_xdisp): Define and staticpro new and moved variables.
2217 (get_specified_cursor_type): Renamed from x_specified_cursor_type;
2218 consolidated here. Recognize Qhollow setting.
2219 (set_frame_cursor_types): New function to set frame cursor types
2220 based on the frame parameters.
2221 (get_window_cursor_type): New function to calculate new cursor
2222 type and width for the specified window. Based on duplicated
2223 code consolidated here.
2224 Enhancements: cursor-in-non-selected-windows may be a cursor type,
2225 check buffer-local alternate-cursor-type and blink-cursor-alist
2226 before using built-in blink off methods.
2227
2228 * dispextern.h (cursor_in_non_selected_windows): Extern removed.
2229
2230 * lisp.h (Qcursor_in_non_selected_windows): Extern removed.
2231 (get_specified_cursor_type, get_window_cursor_type)
2232 (set_frame_cursor_types): Added prototypes.
2233
2234 * macfns.c (x_specified_cursor_type): Removed.
2235 (x_set_cursor_type): Use set_frame_cursor_types.
2236 (Qbar, Qbox): Removed.
2237 (syms_of_macfns): Don't intern or staticpro them.
2238
2239 * macterm.c (x_specified_cursor_type): Remove prototype.
2240 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
2241 (x_display_and_set_cursor): Use get_window_cursor_type.
2242 Remove unused local variables cursor_non_selected, active_cursor.
2243 Redraw cursor if hbar cursor width changes.
2244 (make_mac_frame): Set FRAME_DESIRED_CURSOR.
2245
2246 * macterm.h (enum text_cursor_kinds): Removed.
2247 (struct output_mac) <current_cursor, desired_cursor, cursor_width>
2248 <blink_off_cursor, blink_off_cursor_width>: Members removed.
2249 (FRAME_DESIRED_CURSOR): Macro removed.
2250
2251 * w32fns.c (Vblink_cursor_alist): Removed.
2252 (Qbar, Qhbar, Qbox, Qhollow): Removed.
2253 (syms_of_w32fns): Don't intern, staticpro, or define them.
2254 (x_specified_cursor_type): Removed.
2255 (x_set_cursor_type): Use set_frame_cursor_types.
2256
2257 * w32term.c (x_specified_cursor_type): Remove prototype.
2258 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
2259 (x_display_and_set_cursor): Use get_window_cursor_type.
2260 Remove unused local variables cursor_off_state.
2261 Redraw cursor if hbar cursor width changes.
2262 Changed all occurrences of w32_highlight_frame to x_highlight_frame.
2263
2264 * w32term.h (enum text_cursor_kinds): Removed.
2265 (struct output_w32) <current_cursor, desired_cursor, cursor_width>
2266 <blink_off_cursor, blink_off_cursor_width>: Members removed.
2267 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
2268 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
2269 (struct w32_display_info) <x_highlight_frame>: Renamed member from
2270 w32_highlight_frame.
2271
2272 * xfns.c (Vblink_cursor_alist): Removed.
2273 (Qbar, Qhbar, Qbox, Qhollow): Removed.
2274 (syms_of_xfns): Don't intern, staticpro, or define them.
2275 (x_specified_cursor_type): Removed.
2276 (x_set_cursor_type): Use set_frame_cursor_types.
2277
2278 * xterm.c (x_specified_cursor_type): Remove prototype.
2279 (x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
2280 (x_display_and_set_cursor): Use get_window_cursor_type.
2281 Remove unused local variables cursor_off_state.
2282 Redraw cursor if hbar cursor width changes.
2283
2284 * xterm.h (enum text_cursor_kinds): Removed.
2285 (struct output_x) <current_cursor, desired_cursor, cursor_width>
2286 <blink_off_cursor, blink_off_cursor_width>: Members removed.
2287 (FRAME_DESIRED_CURSOR, FRAME_CURSOR_WIDTH, FRAME_BLINK_OFF_CURSOR)
2288 (FRAME_BLINK_OFF_CURSOR_WIDTH): Macros removed.
2289 (x_specified_cursor_type): Remove prototype.
2290
2291 2002-08-28 Richard M. Stallman <rms@gnu.org>
2292
2293 * w32fns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
2294 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
2295 (Vblink_cursor_alist): New variable.
2296 (syms_of_w32fns): Initialize and defvar it.
2297 (x_specified_cursor_type): Recognize Qbox for filled box.
2298 Exceptions are hollow boxes.
2299 (Qbox, Qhollow): New variables.
2300 (syms_of_w32fns): Initialize and staticpro them.
2301
2302 * w32term.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
2303 New macros.
2304 (struct w32_output): New fields blink_off_cursor,
2305 blink_off_cursor_width.
2306 (FRAME_CURSOR_WIDTH): New macro.
2307
2308 * w32term.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
2309 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
2310
2311 * w32term.c (x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH
2312 for bar cursor.
2313
2314 * w32term.c (expose_overlaps): New function.
2315 (expose_window): Use it to fix the display of overlapping rows.
2316
2317 2002-08-28 Simon Josefsson <jas@extundo.com>
2318
2319 * xfns.c (Fx_open_connection): Improve help when X connection
2320 fails, xhost is insecure and xauth is better.
2321
2322 2002-08-28 Juanma Barranquero <lektu@terra.es>
2323
2324 * makefile.w32-in: Add missing dependencies on w32term.h and
2325 composite.h.
2326
2327 * emacs.c (USAGE1): Add missing newline.
2328
2329 2002-08-27 Andrew Choi <akochoi@shaw.ca>
2330
2331 * s/darwin.h [HAVE_LIBNCURSES]: Define HAVE_TERMINFO.
2332
2333 2002-08-27 Richard M. Stallman <rms@gnu.org>
2334
2335 * xfns.c (x_set_cursor_type): Set FRAME_BLINK_OFF_CURSOR and
2336 FRAME_BLINK_OFF_CURSOR_WIDTH using defaults and Vblink_cursor_alist.
2337 (Vblink_cursor_alist): New variable.
2338 (syms_of_xfns): Initialize and defvar it.
2339 (x_specified_cursor_type): Recognize Qbox for filled box.
2340 Exceptions are hollow boxes.
2341 (Qbox, Qhollow): New variables.
2342 (syms_of_xfns): Initialize and staticpro them.
2343
2344 * xterm.h (FRAME_BLINK_OFF_CURSOR, FRAME_BLINK_OFF_CURSOR_WIDTH):
2345 New macros.
2346 (struct x_output): New fields blink_off_cursor, blink_off_cursor_width.
2347
2348 * xterm.c (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
2349 and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.
2350
2351 * emacs.c (main): Handle --script.
2352 (USAGE1): Mention --script.
2353 (standard_args): Define sort order for --script.
2354
2355 2002-08-27 Gerd Moellmann <gerd.moellmann@t-online.de>
2356
2357 * xdisp.c (redisplay_updating_p): Variable removed.
2358 (inhibit_free_realized_faces, Qinhibit_free_realized_faces):
2359 New variables.
2360 (init_iterator): Don't free realized faces if
2361 inhibit_free_realized_faces is set.
2362 (redisplay_internal): Bind Qinhibit_free_realized_faces to nil.
2363 (syms_of_xdisp): DEFVAR_BOOL inhibit-free-realized-faces,
2364 initialize Qinhibit_free_realized_faces.
2365
2366 * dispextern.h (PRODUCE_GLYPHS): Set inhibit_free_realized_faces
2367 when iterator is adding glyphs to a glyph matrix.
2368
2369 2002-08-27 Kenichi Handa <handa@etl.go.jp>
2370
2371 * xdisp.c (get_next_display_element): In unibyte case, don't use
2372 octal form for such eight-bit characters that can be converted to
2373 multibyte char.
2374
2375 2002-08-26 Kim F. Storm <storm@cua.dk>
2376
2377 * frame.c (make_terminal_frame) [CANNOT_DUMP]: Initialize foreground
2378 and background colors. From Joe Buehler (tiny change).
2379
2380 2002-08-26 Miles Bader <miles@gnu.org>
2381
2382 * bytecode.c (Fbyte_code): Fsub1 can GC, so protect it.
2383
2384 2002-08-25 Andrew Choi <akochoi@shaw.ca>
2385
2386 * emacs.c (main): Call init_mac_osx_environment if HAVE_CARBON is
2387 defined instead of MAC_OSX.
2388
2389 * s/darwin.h (select): Define select to sys_select only if
2390 HAVE_CARBON is defined.
2391 (HAVE_WORKING_VFORK): #undef it. Define vfork to fork.
2392 (DONT_REOPEN_PTY): #def it.
2393
2394 * macterm.c (XTread_socket): Remove code to call
2395 SendEventToEventTarget for keys with command modifiers when
2396 mac_command_key_is_meta is nil.
2397
2398 2002-08-24 Andreas Schwab <schwab@suse.de>
2399
2400 * eval.c (Fdefvar): Fix last change.
2401
2402 2002-08-23 Richard M. Stallman <rms@gnu.org>
2403
2404 * eval.c (Fdefvar, Fdefconst, Fdefvaralias):
2405 Record variables in load history as (defvar . VAR).
2406 (Fdefvar): Don't record in load history if no initial value.
2407 (Qdefvar): New variable.
2408 (syms_of_eval): Init and staticpro it.
2409
2410 * lread.c (syms_of_lread): Doc fix.
2411 (build_load_history): Use Fmember to see if a definition
2412 is already in the Vload_history element.
2413
2414 * process.c (Fstart_process): Remove /: from program name.
2415
2416 * emacs.c (decode_env_path): Don't add /: if file name handler
2417 has a `safe-magic' property.
2418
2419 * callproc.c (Fcall_process): Remove /: from program name.
2420
2421 2002-08-23 Stefan Monnier <monnier@cs.yale.edu>
2422
2423 * regex.c (PATFETCH): Remove the translating fetch.
2424 (PATFETCH_RAW): Rename to PATFETCH.
2425 (set_image_of_range): New fun.
2426 (SET_RANGE_TABLE_WORK_AREA): Use it.
2427 (regex_compile): Don't translate the pattern chars so eagerly.
2428 Only do it when inserting an `exactn' bytecode or when handling
2429 a char-range.
2430 (mutually_exclusive_p): Avoid empty statement.
2431
2432 2002-08-22 Kim F. Storm <storm@cua.dk>
2433
2434 * xdisp.c (redisplay_window): Do not `goto try_to_scroll' when we
2435 end up on a partially visible line; this reverts a specific part
2436 of the 2002-07-07 change by Richard M. Stallman to "fix" a nasty
2437 display error which has been reported several times now.
2438 However it introduces the problem that changes was supposed to fix.
2439 See my comments in the source if you want to debug this further.
2440
2441 2002-08-20 Kenichi Handa <handa@etl.go.jp>
2442
2443 * abbrev.c (Fexpand_abbrev): Fix for the multibyte case.
2444
2445 2002-08-19 Eli Zaretskii <eliz@is.elta.co.il>
2446
2447 * msdos.c (croak): Add `void' to definition.
2448
2449 * sysdep.c [MSDOS] (request_sigio, unrequest_sigio):
2450 Don't define them, they are defined in msdos.c.
2451
2452 * mem-limits.h [MSDOS]: Declare etext.
2453
2454 * fileio.c (Ffile_name_directory) [DOS_NT]: Don't declare `beg'
2455 `const' since CORRECT_DIR_SEPS modifies its target.
2456
2457 2002-08-19 Kim F. Storm <storm@cua.dk>
2458
2459 * keyboard.c (Fclear_this_command_keys): Added optional arg
2460 KEEP-RECORD to avoid clearing lossage when we just want to clear
2461 the current key sequence (kmacro needs this).
2462
2463 2002-08-19 Kenichi Handa <handa@localhost>
2464
2465 * composite.c (run_composition_function): Call FUNC if it is fboundp.
2466
2467 * composite.h (COMPOSITION_MODIFICATION_FUNC): If PROP is not a
2468 cons, return Qnil.
2469
2470 2002-08-17 Richard M. Stallman <rms@gnu.org>
2471
2472 * s/sol2-5.h (BROKEN_SIGIO): Add #undef.
2473
2474 * sysdep.c [!VMS]: Include sys/files.h.
2475
2476 * editfns.c (save_restriction_restore): Defend from unchained marker.
2477
2478 * buffer.c (overlays_at): Handle extending vec uniformly.
2479 (overlays_in): Handle extending vec from length 0 as in overlays_at.
2480
2481 2002-08-15 Andrew Choi <akochoi@shaw.ca>
2482
2483 * mac.c (init_mac_osx_environment): New function.
2484
2485 * emacs.c (main) [MAC_OSX]: Call init_mac_osx_environment.
2486
2487 2002-08-14 Kim F. Storm <storm@cua.dk>
2488
2489 * macros.c (Fstart_kbd_macro): Added NO-EXEC argument to inhibit
2490 executing macro before appending to it (when used from Lisp).
2491 (Fexecute_kbd_macro): Added LOOPFUNC argument to supply function
2492 which is called prior to each iteration of macro (for kmacro.el).
2493 (Fend_kbd_macro, Fcall_last_kbd_macro): Likewise.
2494
2495 * lisp.h (Fexecute_kbd_macro): Update prototype.
2496
2497 * keyboard.c (Fcommand_execute): Update call to Fexecute_kbd_macro.
2498
2499 2002-08-14 Kenichi Handa <handa@etl.go.jp>
2500
2501 * xselect.c (QUTF8_STRING): New variable.
2502 (symbol_to_x_atom): Pay attention to QUTF8_STRING.
2503 (x_atom_to_symbol): Likewise.
2504 (x_get_local_selection): New argument local_request. If it is
2505 nonzero, call handler_fn with the second arg nil.
2506 (x_handle_selection_request): Call x_get_local_selection with
2507 local_request 0.
2508 (lisp_data_to_selection_data): Don't encode the string here.
2509 (Fx_get_selection_internal): Call x_get_local_selection with
1138 local_request 1. 2510 local_request 1.
1139 (syms_of_xselect): Intern and staticpro QUTF8_STRING. 2511 (syms_of_xselect): Intern and staticpro QUTF8_STRING.
1140 2512
1141 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING. 2513 * xterm.c (x_term_init): Initialize dpyinfo->Xatom_UTF8_STRING.
1142 2514
2048 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT, 3420 to MOUSE_CLICK_EVENT, mouse_wheel to MOUSE_WHEEL_EVENT,
2049 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click 3421 language_change_event to LANGUAGE_CHANGE_EVENT, scroll_bar_click
2050 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to 3422 to SCROLL_BAR_CLICK_EVENT, w32_scroll_bar_click to
2051 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to 3423 W32_SCROLL_BAR_CLICK_EVENT, selection_request_event to
2052 SELECTION_REQUEST_EVENT, selection_clear_event to 3424 SELECTION_REQUEST_EVENT, selection_clear_event to
2053 SELECTION_CLEAR_EVENT, buffer_sw 3425 SELECTION_CLEAR_EVENT, buffer_switch_event to BUFFER_SWITCH_EVENT,
3426 delete_window_event to DELETE_WINDOW_EVENT, iconify_event to
3427 ICONIFY_EVENT, deiconify_event to DEICONIFY_EVENT,
3428 menu_bar_activate_event to MENU_BAR_ACTIVATE_EVENT, drag_n_drop to
3429 DRAG_N_DROP_EVENT, save_session_event to SAVE_SESSION_EVENT and
3430 no_event to NO_EVENT.
3431
3432 2002-06-12 Pavel Jan,Am(Bk <Pavel@Janik.cz>
3433
3434 * macmenu.c: Remove declaration of Qmouse_click and Qevent_kind.
3435
3436 2002-06-12 Stefan Monnier <monnier@cs.yale.edu>
3437
3438 * intervals.c (textget): Don't forget to `return'.
3439 (lookup_char_property): Use XCAR/XCDR.
3440
3441 2002-06-12 Juanma Barranquero <lektu@terra.es>
3442
3443 * xdisp.c (Fformat_mode_line): Fix typo.
3444
3445 2002-06-12 Kim F. Storm <storm@cua.dk>
3446
3447 * xdisp.c (Fformat_mode_line): New function.
3448 (frame_title_buf, frame_title_buf_end, frame_title_ptr)
3449 (store_frame_title_char, store_frame_title): Use unconditionally.
3450 (init_xdisp): Defsubr Fformat_mode_line.
3451 Initialize frame_title_buf etc. unconditionally.
3452
3453 2002-06-11 Stefan Monnier <monnier@cs.yale.edu>
3454
3455 * keyboard.c (read_key_sequence):
3456 Remove prev_(fkey|keytran}_(map|start|end) since we don't want to pass
3457 things through those maps after downcasing events.
3458 Enforce that keytran_end <= fkey_start, i.e. that key-translation-map
3459 applies after function-key-map.
3460 Make sure that keytran can be done in the middle in the sequence.
3461 Be careful not to throw away events past the one we downcase.
3462
3463 * lread.c (read_integer): Remove unused var `tem'.
3464 (read1): Fix int/Lisp_Object mixup.
3465
3466 * xfaces.c (tty_lookup_color): Type bool/Lisp_Object mismatch fixed.
3467
3468 2002-06-11 Richard M. Stallman <rms@gnu.org>
3469
3470 * keyboard.c (readable_events): Ignore any number of
3471 FOCUS_IN_EVENT events and return 0 if nothing else in buffer.
3472
3473 2002-06-09 Miles Bader <miles@gnu.org>
3474
3475 * xfaces.c (Ftty_supports_face_attributes_p): New function.
3476 (parse_rgb_list, tty_lookup_color): New functions.
3477 (tty_defined_color): Use `tty_lookup_color' to do all the work.
3478 (color_distance, Fcolor_distance): New functions.
3479 (TTY_SAME_COLOR_THRESHOLD): New macro.
3480 (Qtty_color_standard_values): New variable.
3481 (syms_of_xfaces): Initialize new vars & functions.
3482
3483 2002-06-08 Colin Walters <walters@verbum.org>
3484
3485 * textprop.c (Vchar_property_alias_alist): New variable.
3486 (syms_of_textprop) <Vchar_property_alias_alist>: DEFVAR_LISP.
3487
3488 * intervals.c (lookup_char_property): New function for looking up
3489 overlay and text properties, created from textget.
3490 (textget): Use it.
3491
3492 * intervals.h (lookup_char_property): Declare.
3493 (Vchar_property_alias_alist): Declare.
3494
3495 * buffer.c (Foverlay_get): Use lookup_char_property.
3496
3497 2002-06-07 Sam Steingold <sds@gnu.org>
3498
3499 * xselect.c (lisp_data_to_selection_data): Fix last change:
3500 *data_ret is not a Lisp string, while unibyte_string is.
3501
3502 2002-06-07 Eli Zaretskii <eliz@is.elta.co.il>
3503
3504 * xselect.c (lisp_data_to_selection_data): Fix last change:
3505 set size_ret.
3506
3507 2002-06-07 Andreas Schwab <schwab@suse.de>
3508
3509 * m/amdx86-64.h: New file.
3510
3511 2002-06-05 Eli Zaretskii <eliz@is.elta.co.il>
3512
3513 * fns.c (Fstring_make_unibyte): Doc fix.
3514
3515 * xselect.c (lisp_data_to_selection_data): If the requested type
3516 is STRING, call string_make_unibyte to encode the selected text
3517 as a string.
3518
3519 * window.c (Fset_window_hscroll): Doc fix.
3520
3521 2002-06-05 Pavel Jan,Am(Bk <Pavel@Janik.cz>
3522
3523 * fileio.c (choose_write_coding_system):
3524 Call select-safe-coding-system properly.
3525
3526 2002-06-03 Richard M. Stallman <rms@gnu.org>
3527
3528 * xdisp.c (message_with_string): Error if STRING is not a string.
3529
3530 * fns.c (md5): Pass FILE arg to Vselect_safe_coding_system_function.
3531
3532 * fileio.c (choose_write_coding_system): Pass FILE arg to
3533 Vselect_safe_coding_system_function.
3534
3535 2002-06-03 Ken Raeburn <raeburn@gnu.org>
3536
3537 * buffer.c (fix_overlays_before): Fix list-walking bug in 05-19 change.
3538
3539 2002-06-02 Thien-Thi Nguyen <ttn@gnu.org>
3540
3541 * bytecode.c (Fbyte_code): Cast `current_column' return value to int.
3542 * cmds.c (Fdelete_backward_char, internal_self_insert): Likewise.
3543 * keymap.c (describe_command): Likewise.
3544 * minibuf.c (read_minibuf): Likewise.
3545
3546 * xdisp.c (redisplay_internal, redisplay_window, decode_mode_spec):
3547 Cast `current_column' return value to int.
3548 (back_to_previous_visible_line_start)
3549 (reseat_at_next_visible_line_start, next_element_from_buffer):
3550 Cast `indented_beyond_p' 3rd arg to float.
3551
3552 * indent.c (last_known_column): Now a float.
3553 (current_column_1, position_indentation, current_column)
3554 (string_display_width): Return float.
3555 (Fcurrent_column): Cast `current_column' return value to int.
3556 (Fcurrent_indentation): Cast `position_indentation' retval to int.
3557 (indented_beyond_p): Third arg now a float.
3558 (compute_motion, vmotion): Cast `indented_beyond_p' 3rd arg to float.
3559
3560 * lisp.h (current_column): Now returns float.
3561 (indented_beyond_p): 3rd arg now a float.
3562
3563 2002-05-31 Eli Zaretskii <eliz@is.elta.co.il>
3564
3565 * xfns.c (x_encode_text): Return stringp non-NULL if coding_system
3566 is Qcompound_text_with_extensions.
3567
3568 * xselect.c (lisp_data_to_selection_data): Always set selection
3569 type as string if x_encode_text returns streingp non-NULL.
3570
3571 * s/netbsd.h: Include /usr/pkg in the run time shared library path.
3572
3573 2002-05-30 Richard M. Stallman <rms@gnu.org>
3574
3575 * window.c (Fset_window_configuration): Correct the handling
3576 of point in current buffer, to work with multiple windows.
3577
3578 2002-05-29 Colin Walters <walters@verbum.org>
3579
3580 * lread.c (Fread_from_string): Don't depend on order of evaluation
3581 for C function parameters.
3582
3583 2002-05-28 Richard M. Stallman <rms@gnu.org>
3584
3585 * xterm.c (x_display_and_set_cursor): Change the cursor in the same
3586 way for blinked-off state and for a nonselected window.
3587
3588 * window.c (window_scroll_pixel_based): Don't call Fbolp;
3589 instead, see if the new start pos is at beginning of line.
3590
3591 * fileio.c (Fwrite_region): If START is a string, don't
3592 make any annotations.
3593
3594 * eval.c (syms_of_eval): Doc fix.
3595
3596 2002-05-28 Colin Walters <walters@debian.org>
3597
3598 * emacs.c (USAGE1): Add --no-splash.
3599 (standard_args): Ditto.
3600
3601 2002-05-28 Colin Walters <walters@gnu.org>
3602
3603 * lread.c (readchar_count): New variable.
3604 (readchar): Increment it.
3605 (unreadchar): Decrement it.
3606 (read_multibyte): Decrement it.
3607 (Vread_with_symbol_positions): New variable.
3608 (Vread_symbol_positions_list): New variable.
3609 (read_internal_start): New function, created from Fread and
3610 Fread_from_string. Handle Vread_symbol_positions_list and
3611 Vread_with_symbol_positions.
3612 (readevalloop, Fread, Fread_from_string): Use it.
3613 (read1): Use readchar_count to add symbol positions to
3614 Vread_symbol_positions_list if Vread_with_symbol_positions is non-nil.
3615 (syms_of_lread): DEFVAR_LISP and initialize them.
3616
3617 * lread.c (read0, read1, read_list, read_vector, read_multibyte)
3618 (substitute_object_recurse, substitute_object_in_subtree)
3619 (substitute_in_interval): Prototype.
3620 (read_multibyte): Return c if it's less than zero.
3621
3622 2002-05-28 Kim F. Storm <storm@cua.dk>
3623
3624 * fileio.c (Fread_file_name_internal): Added brute-force
3625 speed up for using predicate file-directory-p.
3626
3627 2002-05-28 Kim F. Storm <storm@cua.dk>
3628
3629 * fileio.c (Vread_file_name_function, Vread_file_name_predicate):
3630 New variables.
3631 (syms_of_fileio): DEFVAR_LISP them.
3632 (read_file_name_cleanup): New unwind function.
3633 (Fread_file_name_internal): Only return completions satifying
3634 Vread_file_name_predicate. Temporarily unwind protect and rebind
3635 default-directory while checking completions against the predicate.
3636 (Fread_file_name): Added PREDICATE argument. Specbind it to
3637 Vread_file_name_predicate during completion.
3638 Call Vread_file_name_function to read the file name if non-nil.
3639
3640 * lisp.h (Fread_file_name): Now has 6 args.
3641
3642 * callint.c (Fcall_interactively) <"D">: Supply Qfile_directory_p
3643 predicate for Fread_file_name when reading directory name.
3644 Supply Qnil for predicate in other calls to Fread_file_name.
3645
3646 2002-05-26 Miles Bader <miles@gnu.org>
3647
3648 * term.c (tty_capable_p): New function.
3649 * dispextern.h (tty_capable_p): New function declaration.
3650 (TTY_CAP_INVERSE, TTY_CAP_UNDERLINE, TTY_CAP_BOLD, TTY_CAP_DIM)
3651 (TTY_CAP_BLINK, TTY_CAP_ALT_CHARSET): New macros.
3652
3653 2002-05-23 Stefan Monnier <monnier@cs.yale.edu>
3654
3655 * fileio.c (read_non_regular, Finsert_file_contents): Use BEG_BYTE.
3656 (Finsert_file_contents, build_annotations): Use XCAR, XCDR.
3657 (Vwrite_region_annotate_functions): Docstring fix.
3658
3659 2002-05-23 Kim F. Storm <storm@cua.dk>
3660
3661 * xterm.c (x_write_glyphs): Clear phys_cursor_on_p if current
3662 phys_cursor's hpos is overwritten. This is still not completely
3663 correct, as it doesn't really make sense to use hpos at all to
3664 get the cursor glyph (as that is relative to the width of the
3665 characters on the line, which may have changed during the update).
3666
3667 2002-05-22 Jason Rumney <jasonr@gnu.org>
3668
3669 * w32fns.c (enumfont_t): Remove tail, make pattern a normal
3670 Lisp_Object.
3671 (enum_font_cb2, enum_font_maybe_add_to_list, w32_list_fonts):
3672 Use modified enumfont_t struct.
3673
3674 * w32term.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
3675
3676 * w32term.c (x_draw_bar_cursor): New argument KIND; callers changed.
3677 Handle the `hbar' cursor type.
3678 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
3679
3680 * w32fns.c (Qhbar): New variable.
3681 (x_specified_cursor_type): Use it.
3682
3683 2002-05-21 Ken Raeburn <raeburn@gnu.org>
3684
3685 * w32fns.c (enum_font_maybe_add_to_list): Use XCDR_AS_LVALUE for
3686 now, when the address is needed.
3687
3688 2002-05-21 Colin Walters <walters@gnu.org>
3689
3690 * Makefile.in (shortlisp): Add font-core.el.
3691
3692 2002-05-20 Richard M. Stallman <rms@gnu.org>
3693
3694 * buffer.c (syms_of_buffer) <cursor-type>: Doc fix.
3695
3696 * keyboard.c (read_char_minibuf_menu_prompt): Don't list
3697 equivalent key bindings here.
3698
3699 2002-05-20 Ken Raeburn <raeburn@gnu.org>
3700
3701 Change symbol structure to contain a lisp object for the symbol
3702 name:
3703 * lisp.h (struct Lisp_Symbol): Replace field "name" with a lisp
3704 object field named "xname".
3705 (SYMBOL_NAME): New macro.
3706 * abbrev.c (write_abbrev): Use SYMBOL_NAME instead of XSYMBOL and
3707 name field.
3708 * alloc.c (Fmake_symbol): Set symbol xname field instead of name.
3709 (mark_object, gc_sweep): Use symbol xname field and XSTRING
3710 instead of name field.
3711 * buffer.c (buffer_slot_type_mismatch): Use XSTRING and
3712 SYMBOL_NAME instead of XSYMBOL and name field.
3713 * callint.c (Fcall_interactively): Use XSTRING and SYMBOL_NAME
3714 instead of XSYMBOL and name field.
3715 * charset.c (Fdefine_charset, Fdeclare_equiv_charset): Use XSTRING
3716 and SYMBOL_NAME instead of XSYMBOL and name field.
3717 * coding.c (Fread_coding_system, code_convert_region1)
3718 (code_convert_string1, code_convert_string_norecord)
3719 (Ffind_operation_coding_system): Use SYMBOL_NAME instead of
3720 XSYMBOL and name field.
3721 * data.c (Fkeywordp, Fsymbol_name, store_symval_forwarding)
3722 (Fmake_variable_buffer_local, Fmake_local_variable)
3723 (Fmake_variable_frame_local): Use SYMBOL_NAME and XSTRING instead
3724 of XSYMBOL and name field.
3725 * editfns.c (Fformat): Use SYMBOL_NAME and XSTRING instead of
3726 XSYMBOL and name field.
3727 * emacs.c (shut_down_emacs) [#if 0]: Use SYMBOL_NAME and XSTRING
3728 instead of XSYMBOL and name field.
3729 * eval.c (do_autoload): Use SYMBOL_NAME and XSTRING instead of
3730 XSYMBOL and name field.
3731 * fns.c (Fstring_equal, Fstring_lessp, Frequire, sxhash):
3732 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
3733 * fontset.c (Fset_fontset_font): Use SYMBOL_NAME and XSTRING
3734 instead of XSYMBOL and name field.
3735 * keyboard.c (echo_char, record_char, parse_modifiers_uncached)
3736 (parse_modifiers, apply_modifiers, Fevent_convert_list)
3737 (parse_solitary_modifier, Fexecute_extended_command):
3738 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
3739 * keymap.c (silly_event_symbol_error, Fsingle_key_description)
3740 (Fdescribe_buffer_bindings): Use SYMBOL_NAME and XSTRING instead
3741 of XSYMBOL and name field.
3742 (describe_command, describe_translation): Use SYMBOL_NAME and
3743 assignment instead of XSYMBOL and name field and XSETSTRING.
3744 * lread.c (Fintern_soft, oblookup): Use SYMBOL_NAME and XSTRING
3745 instead of XSYMBOL and name field.
3746 (Funintern): Use SYMBOL_NAME and assignment instead of XSYMBOL and
3747 name field and XSETSTRING.
3748 * macfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
3749 of XSYMBOL and name field.
3750 * minibuf.c (Fread_command, Fread_variable): Use SYMBOL_NAME and
3751 assignment instead of XSYMBOL and name field and XSETSTRING.
3752 * print.c (print_error_message, print_object): Use SYMBOL_NAME and
3753 XSTRING instead of XSYMBOL and name field.
3754 * process.c (set_socket_options, Fsignal_process): Use SYMBOL_NAME
3755 and XSTRING instead of XSYMBOL and name field.
3756 * w32fns.c (parse_image_spec, w32_parse_hot_key): Use SYMBOL_NAME
3757 and XSTRING instead of XSYMBOL and name field.
3758 * xfaces.c (merge_face_vector_with_property): Use SYMBOL_NAME and
3759 XSTRING instead of XSYMBOL and name field.
3760 * xfns.c (parse_image_spec): Use SYMBOL_NAME and XSTRING instead
3761 of XSYMBOL and name field.
3762 * xselect.c (symbol_to_x_atom, x_get_foreign_selection):
3763 Use SYMBOL_NAME and XSTRING instead of XSYMBOL and name field.
3764
3765 2002-05-19 Ken Raeburn <raeburn@gnu.org>
3766
3767 * lisp.h (LISP_MAKE_RVALUE): Delete disabled version, making XCAR
3768 and XCDR real rvalues in most configurations.
3769
3770 * buffer.c (fix_overlays_in_range, fix_overlays_before):
3771 Don't take the address of the cdr part of a cons cell; instead, track
3772 the parent cell and call XSETCDR, or set the variable for the head
3773 of the list if we haven't started down the list yet.
3774
3775 2002-05-19 Richard M. Stallman <rms@gnu.org>
3776
3777 * doc.c (reread_doc_file): Don't ask for confirmation.
3778
3779 2002-05-18 Jason Rumney <jasonr@gnu.org>
3780
3781 * w32fns.c (w32_create_pixmap_from_bitmap_data): New function.
3782 (xbm_load_image): Use it.
3783 (xbm_load): Ditto.
3784 (xbm_read_bitmap_data): Reverted to xfns.c version.
3785 From David Ponce <david@dponce.com>.
3786
3787 2002-05-17 Eli Zaretskii <eliz@is.elta.co.il>
3788
3789 * msdos.c (sig_suspender, sigprocmask): Don't define for DJGPP
3790 2.02 and later.
3791
3792 2002-05-16 Juanma Barranquero <lektu@terra.es>
3793
3794 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector): Fix typo.
3795
3796 2002-05-15 Stefan Monnier <monnier@cs.yale.edu>
3797
3798 * keyboard.c (read_char_x_menu_prompt): Use an equivalent but more
3799 meaningful test.
3800 (read_char_minibuf_menu_prompt): Fix typo.
3801
3802 2002-05-15 Eli Zaretskii <eliz@is.elta.co.il>
3803
3804 * eval.c (Fcommandp): Doc fix.
3805
3806 2002-05-13 Stefan Monnier <monnier@cs.yale.edu>
3807
3808 * keymap.c (keymap_parent): New fun, extracted from Fkeymap_parent.
3809 (Fkeymap_parent, keymap_memberp, fix_submap_inheritance): Use it.
3810 (Fset_keymap_parent): Gcpro a bit more.
3811 (access_keymap): Gcpro around meta_map call and around the main loop.
3812 (get_keyelt): Gcpro when following indirect references.
3813 (copy_keymap_item): New fun, extracted from Fcopy_keymap.
3814 (copy_keymap_1, Fcopy_keymap): Use it. Don't copy the parent map.
3815 (Fdefine_key, Flookup_key): Gcpro before calling get_keymap.
3816 Remove useless ad-hoc remap code.
3817
3818 2002-05-13 Richard M. Stallman <rms@gnu.org>
3819
3820 * search.c (search_buffer): Give up boyer moore search if inverse
3821 translation change charset_base.
3822
3823 2002-05-12 Eli Zaretskii <eliz@is.elta.co.il>
3824
3825 * coding.c (decode_coding) <coding_type_ccl>: If a lone CR
3826 characters is carried over from the previous block of text, adjust
3827 coding->produced to account for the extra character.
3828
3829 2002-05-11 Andreas Schwab <schwab@suse.de>
3830
3831 * coding.c (intersection): Keep the elements of the returned list
3832 in the same order as in the first list.
3833
3834 2002-05-11 Kim F. Storm <storm@cua.dk>
3835
3836 * keymap.c (current_minor_maps): Fixed resizing of cmm_maps;
3837 only update cmm_size if realloc actually succeeds.
3838 Testing with initial size of 2 elements revealed that using
3839 realloc on GNU/Linux would cause a random trap in xmalloc
3840 later on, so I rewrote the code to use malloc/bcopy/free instead
3841 of realloc.
3842
3843 2002-05-10 Jason Rumney <jasonr@gnu.org>
3844
3845 * w32fns.c (enum_font_cb2): Avoid DBCS raster fonts.
3846
3847 2002-05-10 Eli Zaretskii <eliz@is.elta.co.il>
3848
3849 * coding.c (encode_coding_sjis_big5): Enclose bitwise AND in
3850 parens, to ensure correct evaluation order.
3851
3852 2002-05-10 Kim F. Storm <storm@cua.dk>
3853
3854 * keymap.c (Vemulation_mode_map_alists): New variable.
3855 (syms_of_keymap): DEFVAR_LISP it.
3856 (current_minor_maps): Process keymap alists in that list before
3857 minor-mode-overriding-map-alist and minor-mode-map-alist.
3858
3859 2002-05-09 Richard M. Stallman <rms@gnu.org>
3860
3861 * search.c (Freplace_match): Doc fix.
3862
3863 2002-05-09 Kim F. Storm <storm@cua.dk>
3864
3865 * macterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
3866 Enlarge cursor rectangle drawn around image with non-zero relief.
3867
3868 * w32term.c (x_draw_image_foreground, w32_draw_image_foreground_1):
3869 Enlarge cursor rectangle drawn around image with non-zero relief.
3870
3871 * xterm.c (x_draw_image_foreground, x_draw_image_foreground_1):
3872 Enlarge cursor rectangle drawn around image with non-zero relief.
3873
3874 2002-05-07 Eli Zaretskii <eliz@is.elta.co.il>
3875
3876 * xselect.c (lisp_data_to_selection_data): Don't set selection
3877 type if comes from the Lisp object's car. If the selection
3878 contains a pure ASCII text, always return QSTRING as its type.
3879
3880 2002-05-06 Pavel Jan,Am(Bk <Pavel@Janik.cz>
3881
3882 * mac.c (mac-cut-function): Doc fix.
3883
3884 2002-05-05 Richard M. Stallman <rms@gnu.org>
3885
3886 * s/gnu.h [DOUG_LEA_MALLOC] (REL_ALLOC): Undefine it.
3887
3888 2002-05-04 Jason Rumney <jasonr@gnu.org>
3889
3890 * keyboard.c (make_lispy_event) <mouse-wheel>: Set count to 1
3891 for event-click-count.
3892
3893 * process.c (init_process): Only add server subfeature if we can
3894 use non-blocking I/O.
3895
3896 2002-05-04 Andrew Choi <akochoi@shaw.ca>
3897
3898 * macterm.c (XTread_socket): Call WaitNextEvent once instead of
3899 repeatedly.
3900
3901 2002-05-03 Jason Rumney <jasonr@gnu.org>
3902
3903 * process.c (Fmake_network_process): Only support server sockets
3904 when we can make them non-blocking.
3905
3906 * s/ms-w32.h (HAVE_SELECT): Define.
3907
3908 * w32.h (FILE_NDELAY): New flag.
3909
3910 * w32.c (sys_getpeername, fcntl): New functions.
3911 (_sys_read_ahead): Temporarily block on non-blocking sockets.
3912
3913 * w32proc.c: include sys/file.h.
3914
3915 2002-05-03 Colin Walters <walters@verbum.org>
3916
3917 * callproc.c (Vgame_score_directory): Renamed to
3918 Vshared_game_score_directory.
3919
3920 2002-04-30 Richard M. Stallman <rms@gnu.org>
3921
3922 * s/gnu.h [emacs]: Include stdio.h.
3923 (GNU_LIBRARY_PENDING_OUTPUT_COUNT): New definition, conditional.
3924
3925 * eval.c (do_autoload): Error if called while preparing to dump.
3926
3927 * fns.c (Frequire): Error if need to load while preparing to dump.
3928
3929 2002-04-28 Colin Walters <walters@verbum.org>
3930
3931 * callproc.c (Vgame_score_directory) [!HAVE_SHARED_GAME_DIR]:
3932 Default to "~/.emacs.d/games".
3933
3934 2002-04-29 Stefan Monnier <monnier@cs.yale.edu>
3935
3936 * lread.c (openp): Change arg exec_only to predicate.
3937 (build_load_history): Use XCAR/XCDR.
3938 (Flocate_file_internal): New fun.
3939 (syms_of_lread): Defsubr it.
3940 (Fload): Update call to openp.
3941
3942 * lisp.h (openp): Update prototype.
3943
3944 * xfns.c (x_create_bitmap_from_file, x_find_image_file):
3945 * w32proc.c (sys_spawnve):
3946 * w32fns.c (x_create_bitmap_from_file, x_find_image_file):
3947 * w32.c (check_windows_init_file):
3948 * sound.c (Fplay_sound_internal):
3949 * process.c (Fstart_process):
3950 * macfns.c (x_create_bitmap_from_file, x_find_image_file):
3951 * mac.c (run_mac_command):
3952 * emacs.c (init_cmdargs):
3953 * callproc.c (Fcall_process): Update call to openp.
3954
3955 * textprop.c (remove_properties): Don't use XCAR without CONSP.
3956
3957 * xterm.c (XTread_socket): Disable the Xutf8LookupString code.
3958
3959 2002-04-29 Pavel Jan,Am(Bk <Pavel@Janik.cz>
3960
3961 * dispextern.h (DEFAULT_TOOL_BAR_BUTTON_MARGIN)
3962 (DEFAULT_TOOL_BAR_BUTTON_RELIEF): Change default values.
3963
3964 2002-04-28 Richard M. Stallman <rms@gnu.org>
3965
3966 * minibuf.c (Fall_completions, Ftry_completion): New arg to Fcommandp.
3967
3968 * eval.c (Fcommandp): New arg for_call_interactively.
3969 * lisp.h (Fcommandp): Declare new arg.
3970
3971 2002-04-28 Jason Rumney <jasonr@gnu.org>
3972
3973 * w32proc.c (syms_of_w32proc): Get true file attributes by default.
3974
3975 * w32.c (stat, fstat): Use file index information to generate
3976 inodes for directories where available.
3977
3978 2002-04-26 Andrew Choi <akochoi@shaw.ca>
3979
3980 * Makefile.in (C_SWITCH_SYSTEM_TEMACS): Add.
3981 [HAVE_CARBON]: Include Mac object files.
3982
3983 * alloc.c, callproc.c, dispextern.h, dispnew.c, emacs.c,
3984 fontset.c, frame.c, frame.h, keyboard.c, sysdep.c, term.c,
3985 termcap.c, window.c, xdisp.c, xfaces.c: Use macros MAC_OS8,
3986 MAC_OSX, and MAC_OS instead of macintosh.
3987
3988 * editfns.c [MAC_OS8]: Include stdio.h.
3989
3990 * emacs.c [MAC_OS8]: Call mac_initialize instead of x_term_init.
3991
3992 * fontset.c [MAC_OS]: Set Vdefault_fontset to ETL Fixed instead of
3993 Apple Monaco.
3994
3995 * process.c: Declare QCfamily and QCfilter as extern.
3996 (wait_reading_process_input) [MAC_OSX]: Clear bit for stdin before
3997 calling select.
3998
3999 * termcap.c [MAC_OSX]: Don't define tgetnum, PC, tputs, and tgetent.
4000
4001 * tparam.c [MAC_OSX]: Don't define BC and UP.
4002
4003 * config.in [HAVE_CARBON]: Add.
4004
4005 * mac.c, macgui.h, macfns.c, macmenu.c, macterm.c, macterm.h:
4006 Move here from mac/src and mac/inc.
4007
4008 * s/darwin.h, m/powermac.h, unexmacosx.c: New files.
4009
4010 2002-04-26 Gerd Moellmann <gerd@gnu.org>
4011
4012 * xterm.c (x_draw_phys_cursor_glyph): Undo last change.
4013 Compute phys_cursor_width from the x position returned
4014 by x_draw_glyhs, which is cheaper.
4015 (x_display_and_set_cursor): Compute the buffer-local value
4016 of `cursor-in-non-selected-windows' only when needed.
4017
4018 2002-04-25 Gerd Moellmann <gerd@gnu.org>
4019
4020 * xterm.c (x_draw_phys_cursor_glyph): Take into account that a box
4021 cursor on a stretch glyph has a width that depends on
4022 x_stretch_cursor_p.
4023
4024 2002-04-25 Pavel Jan,Am(Bk <Pavel@Janik.cz>
4025
4026 * abbrev.c (abbrev-start-location): Doc fix.
4027
4028 * indent.c (Fvertical_motion): Fix last change.
4029
4030 2002-04-25 Gerd Moellmann <gerd@gnu.org>
4031
4032 * indent.c (Fvertical_motion): Move to the start of the line
4033 containing PT before moving up or down.
4034
4035 2002-04-24 Gerd Moellmann <gerd@gnu.org>
4036
4037 * dispnew.c (update_text_area): Set phys_cursor_on_p to 0 in the
4038 case of writing a whole row, more or less analogous to the case of
4039 writing only parts of a row.
4040
4041 * xterm.c (x_display_and_set_cursor): Set phys_cursor_width to
4042 0 for NO_CURSOR.
4043
4044 * xterm.c (notice_overwritten_cursor): Fix an off by 1 error.
4045
4046 2002-04-23 Colin Walters <walters@verbum.org>
4047
4048 * buffer.c (syms_of_buffer): Doc fix.
4049
4050 2002-04-23 Gerd Moellmann <gerd@gnu.org>
4051
4052 * xterm.c (notice_overwritten_cursor): Handle the special case
4053 of the cursor being in the first blank non-text line at the
4054 end of a window.
4055
4056 * xterm.c (x_draw_hollow_cursor, x_draw_bar_cursor)
4057 (x_draw_phys_cursor_glyph): Set phys_cursor_width here.
4058 (x_display_and_set_cursor): Don't set phys_cursor_width here, for
4059 bar cursors only, to make phys_cursor_width contain what its name
4060 suggests.
4061 (notice_overwritten_cursor): Consider the cursor image erased if
4062 the output area intersects the cursor image in y-direction.
4063
4064 2002-04-23 Simon Marshall <simon@gnu.org>
4065
4066 * xfns.c (x_set_mouse_color): Change default for cross_cursor
4067 to XC_hand2.
4068
4069 2002-04-23 Pavel Jan,Am(Bk <Pavel@Janik.cz>
4070
4071 * xdisp.c: Remove unused global variable `minibuf_prompt_pixel_width'.
4072
4073 2002-04-22 Kim F. Storm <storm@cua.dk>
4074
4075 * textprop.c (remove_properties): Fixed trap for malformed plist.
4076
4077 2002-04-22 Richard M. Stallman <rms@gnu.org>
4078
4079 * cmds.c (Fend_of_line): Handle intangible text in mid line.
4080
4081 * window.c (make_window): Initialize height_fixed_p,
4082 last_cursor_off_p, and p->cursor_off_p slots.
4083
4084 2002-04-20 Pavel Jan,Am(Bk <Pavel@Janik.cz>
4085
4086 * fns.c (use-dialog-box): Doc fix.
4087
4088 2002-04-19 Pavel Jan,Am(Bk <Pavel@Janik.cz>
4089
4090 * xterm.c (note_mode_line_or_margin_highlight): Remove unused
4091 variables `row', `i' and `area'.
4092 (XTread_socket) <KeyPress>: Pass KeyPress events when in menu to
4093 toolkit library.
4094
4095 2002-04-19 Stefan Monnier <monnier@cs.yale.edu>
4096
4097 * xfaces.c (clear_font_table): Don't free the default font of
4098 a frame even if it's on another display.
4099 (Finternal_set_lisp_face_attribute): Don't use XFRAME on something
4100 that could be Qt.
4101
4102 2002-04-19 Juanma Barranquero <lektu@terra.es>
4103
4104 * indent.c (Fmove_to_column): Remove unused local variable
4105 `next_boundary_byte'.
4106 (current_column_1): Likewise.
4107
4108 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
4109
4110 * msdos.c (Qhbar): New variable.
4111 (syms_of_msdos): Intern and staticpro it.
4112 (IT_set_cursor_type, IT_set_frame_parameters): Handle the `hbar'
4113 cursor type.
4114
4115 2002-04-19 Dave Lambert <dlambert@acm.org>
4116
4117 Theses change implement an underscore-like (`hbar') cursor.
4118
4119 * xterm.h (text_cursor_kinds): New enumeration member HBAR_CURSOR.
4120
4121 * xterm.c (x_draw_bar_cursor): New argument KIND; callers changed.
4122 Handle the `hbar' cursor type.
4123 (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
4124
4125 * xfns.c (Qhbar): New variable.
4126 (syms_of_xfns): Intern and staticpro it.
4127 (x_specified_cursor_type): Handle `hbar' cursor.
4128
4129 * s/sol2-5.h (bcopy, bzero, bcmp): Define only if HAVE_BCOPY is
4130 not defined.
4131
4132 2002-04-18 Richard M. Stallman <rms@gnu.org>
4133
4134 * textprop.c (remove_properties): New arg LIST allows scanning
4135 either a list or a plist.
4136 (interval_has_some_properties_list): New function, like
4137 interval_has_some_properties using list instead of plist.
4138 All callers changed.
4139 (Fremove_list_of_text_properties): New function.
4140 (syms_of_textprop): Defsubr it.
4141
4142 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
4143
4144 * s/sol2.h (HAVE_LIBKSTAT): Define only if not already defined.
4145
4146 2002-04-17 Juanma Barranquero <lektu@terra.es>
4147
4148 * indent.c (Fmove_to_column): Remove unused local variable `end_byte'.
4149
4150 2002-04-17 Eli Zaretskii <eliz@is.elta.co.il>
4151
4152 * window.c (coordinates_in_window): Don't report on margin area
4153 if its width is zero.
4154
4155 2002-04-16 Jason Rumney <jasonr@gnu.org>
4156
4157 * w32fns.c (Fx_file_dialog): Decode file name before using.
4158
4159 * w32term.c (construct_drag_n_drop): Likewise.
4160
4161 2002-04-16 Eli Zaretskii <eliz@is.elta.co.il>
4162
4163 * puresize.h (BASE_PURESIZE): Increase to 830000, since we now
4164 store load-history in pure space.
4165
4166 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Reduce to 50000.
4167
4168 2002-04-16 Stefan Monnier <monnier@cs.yale.edu>
4169
4170 * xterm.c (Qlatin_1, Qutf_8): New vars.
4171 (syms_of_xterm): Initialize them.
4172 (XTread_socket): Eliminate incorrect optimization that tried to avoid
4173 decoding the output of X*LookupString.
4174 Always use latin-1 to decode the output of XLookupString.
4175 Try Xutf8LookupString if XmbLookupString failed.
4176
4177 * region-cache.c (new_region_cache): Use BEG.
4178
4179 2002-04-16 Gerd Moellmann <gerd@gnu.org>
4180
4181 * buffer.c (MMAP_ALLOCATED_P): New macro to be set from system
4182 configuration files.
4183 (mmap_enlarge): Enlarge mapped regions only if MMAP_ALLOCATED_P
4184 returns 0.
4185
4186 2002-04-15 Andreas Schwab <schwab@suse.de>
4187
4188 * config.in: Regenerated using autoheader.
4189
4190 * m/7300.h, m/acorn.h, m/alliant-2800.h, m/alliant.h, m/alpha.h,
4191 m/altos.h, m/amdahl.h, m/apollo.h, m/arm.h, m/att3b.h, m/aviion.h,
4192 m/celerity.h, m/clipper.h, m/cnvrgnt.h, m/convex.h, m/cydra5.h,
4193 m/delta.h, m/delta88k.h, m/dpx2.h, m/elxsi.h, m/gec63.h,
4194 m/gould.h, m/hp800.h, m/hp9000s300.h, m/i860.h, m/ia64.h,
4195 m/ibmps2-aix.h, m/ibmrs6000.h, m/ibmrt-aix.h, m/ibmrt.h,
4196 m/ibms390.h, m/intel386.h, m/iris4d.h, m/irist.h, m/isi-ov.h,
4197 m/m68k.h, m/macppc.h, m/masscomp.h, m/mg1.h, m/mips-siemens.h,
4198 m/mips.h, m/news-r6.h, m/news.h, m/next.h, m/nh3000.h, m/nh4000.h
4199 m/ns32000.h, m/orion.h, m/pfa50.h, m/plexus.h, m/pmax.h,
4200 m/powerpcle.h, m/pyrmips.h, m/sequent-ptx.h, m/sequent.h,
4201 m/sparc.h, m/sr2k.h, m/symmetry.h, m/tad68k.h, m/tahoe.h,
4202 m/targon31.h, m/tek4300.h, m/tekxd88.h, m/template.h, m/tower32.h,
4203 m/tower32v3.h, m/ustation.h, m/vax.h, m/wicat.h, m/windowsnt.h,
4204 m/xps100.h, s/aix3-2.h, s/aix4-2.h, s/irix4-0.h, s/irix5-0.h,
4205 s/sco5.h, s/unixware.h: Don't set HAVE_ALLOCA, C_ALLOCA and
4206 STACK_DIRECTION, now set by autoconf.
4207
4208 2002-04-14 Pavel Jan,Am(Bk <Pavel@Janik.cz>
4209
4210 * dispnew.c (marginal_area_string): Sort arguments.
4211
4212 * dispextern.h (marginal_area_string): Add prototype.
4213
4214 2002-04-13 Richard M. Stallman <rms@gnu.org>
4215
4216 * fileio.c (Finsert_file_contents):
4217 Don't call temp_output_buffer_setup--do just part, by hand.
4218
4219 * coding.c (run_pre_post_conversion_on_str):
4220 Don't call temp_output_buffer_setup--do just part, by hand.
4221
4222 * keyboard.c (command_loop_1): Don't call start_hourglass
4223 or cancel_hourglass when executing a macro.
4224
4225 * marker.c (count_markers): New function.
4226
4227 * xdisp.c (display_mode_element): Don't let mode_line_proptrans_alist
4228 grow without limit. Move recently used elements to the front.
4229
4230 2002-04-13 Eli Zaretskii <eliz@is.elta.co.il>
4231
4232 * unexelf.c (unexec) [__sgi]: Undo the change from 2002-01-20.
4233
4234 2002-04-12 Gerd Moellmann <gerd@gnu.org>
4235
4236 * xdisp.c (sync_frame_with_window_matrix_rows): Don't give frame
4237 rows marginal areas.
4238 (Fdump_frame_glyph_matrix) [GLYPH_DEBUG]: New function.
4239 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it.
4240
4241 * dispnew.c (marginal_area_string): Check that glyph row is enabled.
4242
4243 2002-04-12 Dave Love <fx@gnu.org>
4244
4245 * dispnew.c (marginal_area_string): New.
4246
4247 * window.c (window_part): Add ON_LEFT_MARGIN, ON_RIGHT_MARGIN.
4248 (Qleft_margin, Qright_margin): Declare.
4249 (coordinates_in_window, (Fcoordinates_in_window_p): Deal with margins.
4250
4251 * xterm.c (note_mode_line_or_margin_highlight): Renamed from
4252 note_mode_line_highlight and extended.
4253
4254 * keyboard.c (Qleft_margin, Qright_margin): Declare.
4255 (make_lispy_event): Deal with mouse events in margins.
4256
4257 2002-04-12 Stefan Monnier <monnier@cs.yale.edu>
4258
4259 * msdos.c (dos_rawgetc): Use a single event for HELP_EVENT.
4260
4261 * keyboard.c (command_loop_1): Turn off transient-mark-mode rather
4262 than deactivating the mark if tmm is set to `lambda'.
4263 (gen_help_event, kbd_buffer_store_help_event, kbd_buffer_get_event):
4264 Use a single event for HELP_EVENT.
4265 (Fexecute_extended_command): Save last_point_position.
4266
4267 2002-04-12 Pavel Jan,Am(Bk <Pavel@Janik.cz>
4268
4269 * lisp.h (Fpropertize): Add prototype.
4270
4271 * fns.c (Fy_or_n_p): Use `minibuffer-prompt' face for prompt.
4272
4273 2002-04-10 Colin Walters <walters@verbum.org>
4274
4275 * config.in: Add HAVE_SHARED_GAME_DIR.
4276
4277 * callproc.c: (Vgame_score_directory): New variable.
4278 (syms_of_callproc) <Vgame_score_directory>: DEFVAR_LISP.
4279
4280 2002-04-10 Richard M. Stallman <rms@gnu.org>
4281
4282 * puresize.h (BASE_PURESIZE): Reduce again to avoid big excess.
4283
4284 2002-04-09 Stefan Monnier <monnier@cs.yale.edu>
4285
4286 * minibuf.c (read_minibuf): Use empty_string.
4287 (Ftry_completion): Allow lambda forms and lists of strings for `alist'.
4288 Short-circuit the search as soon as it "failed".
4289 (Fall_completions): Allow lambda forms and lists of strings for alist.
4290 (Fcompleting_read): Set Qminibuffer_completion_confirm to nil
4291 when require_match is nil.
4292 (Ftest_completion): Rename from `test_completion' and export to elisp.
4293 Call the predicate also when alist is a list.
4294 Obey Vcompletion_regexp_list.
4295 (do_completion, Fminibuffer_complete_and_exit): Use it.
4296 (Fassoc_string): Rename from `assoc_for_completion'.
4297 Allow list of strings as well and export to elisp.
4298
4299 2002-04-08 Stefan Monnier <monnier@cs.yale.edu>
4300
4301 * puresize.h (BASE_PURESIZE): Increase to 900KB.
4302
4303 2002-04-08 Juanma Barranquero <lektu@terra.es>
4304
4305 * w32.c (sys_accept): Don't hide variable `s'.
4306
4307 2002-04-05 Gerd Moellmann <gerd@gnu.org>
4308
4309 * callint.c (Fcall_interactively): Use INTEGERP instead of
4310 NUMBERP for checking Vhistory_length.
4311
4312 2002-04-05 Pavel Jan,Am(Bk <Pavel@Janik.cz>
4313
4314 * sound.c (Fplay_sound_internal): Renamed from Fplay_sound.
4315 Doc fix to reflect it.
4316
4317 2002-04-04 Richard M. Stallman <rms@gnu.org>
4318
4319 * xdisp.c (display_mode_element): New arg RISKY.
4320 Disregard text props found or specified within a variable
4321 that isn't marked risky-local-variable.
4322 (Qrisky_local_variable): New variable.
4323 (syms_of_xdisp): Init and staticpro it.
4324
4325 2002-04-04 Stefan Monnier <monnier@cs.yale.edu>
4326
4327 * undo.c (record_point): New fun.
4328 (record_delete, record_insert): Use it.
4329
4330 2002-04-03 Juanma Barranquero <lektu@terra.es>
4331
4332 * doc.c (Fdocumentation): Add missing parentheses.
4333 (Fdocumentation_property): Likewise.
4334
4335 2002-04-03 Stefan Monnier <monnier@cs.yale.edu>
4336
4337 * doc.c (Fdocumentation, Fdocumentation_property): When the doc
4338 data is 0, just return nil.
4339
4340 2002-04-03 Eli Zaretskii <eliz@is.elta.co.il>
4341
4342 * msdos.c (syms_of_msdos): Fix last change with
4343 mouse_autoselect_window.
4344
4345 2002-04-03 Pavel Jan,Am(Bk <Pavel@Janik.cz>
4346
4347 * w32term.c, xterm.c, msdos.c: Rename autoselect_window_p to
4348 mouse_autoselect_window.
4349
4350 2002-04-02 Stefan Monnier <monnier@cs.yale.edu>
4351
4352 * keyboard.c (make_lispy_event): Handle unknown keysyms together
4353 with system-specific keysyms. Use it also for unknown function keys.
4354
4355 * doc.c (reread_doc_file): Return whether reload was attempted.
4356 (Fdocumentation, Fdocumentation_property): Don't try to reload
4357 if the doc is 0 and only ask once.
4358
4359 * Makefile.in (lisp, shortlisp): Add ucs-tables.elc.
4360
4361 2002-04-02 Eli Zaretskii <eliz@is.elta.co.il>
4362
4363 * keyboard.c (read_char): If the event was Qselect_window,
4364 restore timer_idleness_start_time to its previous value.
4365
4366 * msdos.c (dos_rawgetc): Generate SELECT_WINDOW_EVENTs when required.
2054 4367
2055 2002-04-01 Stefan Monnier <monnier@cs.yale.edu> 4368 2002-04-01 Stefan Monnier <monnier@cs.yale.edu>
2056 4369
2057 * region-cache.c (new_region_cache): Use BEG. 4370 * region-cache.c (new_region_cache): Use BEG.
2058 4371
2503 x_autoselect_window_p in #if 0. 4816 x_autoselect_window_p in #if 0.
2504 4817
2505 * lread.c (Fload): Don't assume that message_with_string uses the 4818 * lread.c (Fload): Don't assume that message_with_string uses the
2506 string it is given like a C string. 4819 string it is given like a C string.
2507 4820
2508 2002-03-10 Jan D. <Jan.Djarv@mbox200.swipnet.se> 4821 2002-03-10 Jan Dj,Ad(Brv <jan.h.d@swipnet.se>
2509 4822
2510 * xterm.h: Extern declare x_session_check_input () and 4823 * xterm.h (x_session_check_input, x_session_initialize): Declared.
2511 x_session_initialize (). 4824
2512 4825 * xterm.c: (XTread_socket): Add call to x_session_check_input and
2513 * xterm.c: Added calls to x_session_check_input () and 4826 x_session_have_connection.
2514 x_session_initialize (). 4827 (x_initialize): Add call to x_session_initialize.
2515 4828
2516 * termhooks.h (enum event_kind): Added save_session_event. 4829 * termhooks.h (enum event_kind): Add save_session_event.
2517 4830
2518 * keyboard.c: Added Emacs event save_session_event. 4831 * keyboard.c: Add Emacs event save_session_event.
2519 4832
2520 * emacs.c (main): Added call to syms_of_xsmfns (). 4833 * emacs.c (main): Add call to syms_of_xsmfns.
2521 4834
2522 * lisp.h: Extern declare syms_of_xsmfns (). 4835 * lisp.h: Declare syms_of_xsmfns as extern.
2523 4836
2524 * config.in: Added HAVE_X_SM 4837 * config.in: Add HAVE_X_SM.
2525 4838
2526 * Makefile.in: Added test for HAVE_X_SM and added new file xsmfns.c 4839 * Makefile.in (LIBXT): Add -lSM -lICE
4840 if HAVE_X_SM and not USE_X_TOOLKIT.
4841 (XOBJ): New file xsmfns.c added.
2527 4842
2528 * xsmfns.c: New file for X session management. 4843 * xsmfns.c: New file for X session management.
2529 4844
2530 2002-03-09 Jason Rumney <jasonr@gnu.org> 4845 2002-03-09 Jason Rumney <jasonr@gnu.org>
2531 4846
2532 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not 4847 * fileio.c (Fcopy_file) [WINDOWS_NT]: Ensure file is not
2533 read-only when setting modified time. 4848 read-only when setting modified time.
2534 4849
2535 2002-03-08 Gerd Moellmann <gerd@gnu.org> 4850 2002-03-08 Gerd Moellmann <gerd@gnu.org>
2536 4851
2537 * xdisp.c (move_it_vertically_backward): At the end of the 4852 * xdisp.c (move_it_vertically_backward): At the end of the function,
2538 function, when moving forward by lines, treat terminal frames 4853 when moving forward by lines, treat terminal frames specially.
2539 specially.
2540 4854
2541 * keyboard.c (echo_char): Make sure to add a separator between 4855 * keyboard.c (echo_char): Make sure to add a separator between
2542 keys even if echo_dash hasn't been called. 4856 keys even if echo_dash hasn't been called.
2543 4857
2544 * xdisp.c: Use new string macros. 4858 * xdisp.c: Use new string macros.
2604 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il> 4918 2002-03-04 Eli Zaretskii <eliz@is.elta.co.il>
2605 4919
2606 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the 4920 * sysdep.c (sys_subshell) [MSDOS]: If PWD is set in the
2607 environment, pass it down with corrected value. 4921 environment, pass it down with corrected value.
2608 4922
2609 2002-03-04 Pavel Jan,Bm(Bk <Pavel@Janik.cz> 4923 2002-03-04 Pavel Jan,Am(Bk <Pavel@Janik.cz>
2610 4924
2611 * lread.c (read_filtered_event): Do not call start_hourglass 4925 * lread.c (read_filtered_event): Do not call start_hourglass
2612 before returning. 4926 before returning.
2613 4927
2614 2002-03-04 Juanma Barranquero <lektu@terra.es> 4928 2002-03-04 Juanma Barranquero <lektu@terra.es>
2694 [NON_BLOCKING_CONNECT]: New conditional. 5008 [NON_BLOCKING_CONNECT]: New conditional.
2695 (connect_wait_mask, num_pending_connects): New variables. 5009 (connect_wait_mask, num_pending_connects): New variables.
2696 (status_message): Convert Qfailed status. 5010 (status_message): Convert Qfailed status.
2697 (Fopen_network_stream): Added support for non-blocking connect. 5011 (Fopen_network_stream): Added support for non-blocking connect.
2698 New optional args: filter, sentinel, non_blocking. Doc updated. 5012 New optional args: filter, sentinel, non_blocking. Doc updated.
2699 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code. 5013 [HAVE_GETADDRINFO, !HAVE_GETADDRINFO]: Merged common code.
2700 (deactivate_process): Handle pending non-blocking connect. 5014 (deactivate_process): Handle pending non-blocking connect.
2701 (wait_reading_process_input): Poll for status of non-blocking 5015 (wait_reading_process_input): Poll for status of non-blocking
2702 connects. Exec sentinel directly when connect succeeds. 5016 connects. Exec sentinel directly when connect succeeds.
2703 (status_notify): Don't read process output if not yet connected. 5017 (status_notify): Don't read process output if not yet connected.
2704 5018
2734 the region should be highlighted. Consequently, the region remains 5048 the region should be highlighted. Consequently, the region remains
2735 highlighteded even when a completion buffer is also displayed. 5049 highlighteded even when a completion buffer is also displayed.
2736 5050
2737 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il> 5051 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il>
2738 5052
2739 * fileio.c (Fsubstitute_in_file_name): Fix the change from 5053 * fileio.c (Fsubstitute_in_file_name): Fix the change from 2002-02-08.
2740 2002-02-08.
2741 5054
2742 * xselect.c (Qcompound_text_with_extensions): Renamed from 5055 * xselect.c (Qcompound_text_with_extensions): Renamed from
2743 Qcompound_text_no_extensions. 5056 Qcompound_text_no_extensions.
2744 (lisp_data_to_selection_data, syms_of_xselect): Use the new name. 5057 (lisp_data_to_selection_data, syms_of_xselect): Use the new name.
2745 5058
2746 2002-02-26 Juanma Barranquero <lektu@terra.es> 5059 2002-02-26 Juanma Barranquero <lektu@terra.es>
2747 5060
2748 * w32proc.c (syms_of_ntproc): Doc fix. 5061 * w32proc.c (syms_of_ntproc): Doc fix.
2749 5062
2750 2002-02-24 Pavel Jan,Bm(Bk <Pavel@Janik.cz> 5063 2002-02-24 Pavel Jan,Am(Bk <Pavel@Janik.cz>
2751 5064
2752 * intervals.h: Include "dispextern.h" unconditionally. 5065 * intervals.h: Include "dispextern.h" unconditionally.
2753 5066
2754 2002-02-24 Jason Rumney <jasonr@gnu.org> 5067 2002-02-24 Jason Rumney <jasonr@gnu.org>
2755 5068
2801 (Fw32_get_clipboard_data): Run post-read-conversion on the string 5114 (Fw32_get_clipboard_data): Run post-read-conversion on the string
2802 after decoding it. 5115 after decoding it.
2803 5116
2804 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change. 5117 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change.
2805 5118
2806 2002-02-23 Pavel Jan,Bm(Bk <Pavel@Janik.cz> 5119 2002-02-23 Pavel Jan,Am(Bk <Pavel@Janik.cz>
2807 5120
2808 * w32term.c (enter_timestamp): Remove unused static variable to 5121 * w32term.c (enter_timestamp): Remove unused static variable to
2809 prevent warning. 5122 prevent warning.
2810 5123
2811 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning. 5124 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning.
2877 bindings at PT when building menu (the menu is not updated often 5190 bindings at PT when building menu (the menu is not updated often
2878 enough for this to work reliable). 5191 enough for this to work reliable).
2879 (tool_bar_items): Likewise. 5192 (tool_bar_items): Likewise.
2880 (current_active_maps): Removed unused (and buggy) function. 5193 (current_active_maps): Removed unused (and buggy) function.
2881 5194
2882 2002-02-20 Pavel Jan,Bm(Bk <Pavel@Janik.cz> 5195 2002-02-20 Pavel Jan,Am(Bk <Pavel@Janik.cz>
2883 5196
2884 * xfns.c (gif_load): Use correct width and height for GIF images. 5197 * xfns.c (gif_load): Use correct width and height for GIF images.
2885 5198
2886 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il> 5199 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il>
2887 5200
2912 (x_figure_window_size): Support full-screen frames. 5225 (x_figure_window_size): Support full-screen frames.
2913 (Fx_create_frame): Default the fullscreen parameter. 5226 (Fx_create_frame): Default the fullscreen parameter.
2914 5227
2915 * w32term.c (x_check_fullscreen, x_check_fullscreen_move) 5228 * w32term.c (x_check_fullscreen, x_check_fullscreen_move)
2916 (x_fullscreen_adjust): New functions. 5229 (x_fullscreen_adjust): New functions.
2917 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to 5230 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to
2918 fullscreen. Call x_check_fullscreen_move, and set the 5231 fullscreen. Call x_check_fullscreen_move, and set the
2919 want_fullscreen member of output_data.w32 5232 want_fullscreen member of output_data.w32
2920 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen. 5233 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
2921 5234
2922 * w32term.h: New enum for FULLSCREEN_* constants. 5235 * w32term.h: New enum for FULLSCREEN_* constants.
2966 5279
2967 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el. 5280 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not cus-start.el.
2968 5281
2969 * msdos.c (x_autoselect_window_p): New variable. 5282 * msdos.c (x_autoselect_window_p): New variable.
2970 (syms_of_msdos): Defvar it. 5283 (syms_of_msdos): Defvar it.
2971 (dos_rawgetc): If x_autoselect_window_p is set, select the window 5284 (dos_rawgetc): If x_autoselect_window_p is set, select the window in
2972 in which the last mouse movement occured, unless it is already 5285 which the last mouse movement occured, unless it is already selected.
2973 selected.
2974 5286
2975 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step): 5287 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step):
2976 New variables. 5288 New variables.
2977 (syms_of_xdisp): DEVFAR them. 5289 (syms_of_xdisp): DEVFAR them.
2978 (hscroll_window_tree): Use automatic_hscroll_margin and 5290 (hscroll_window_tree): Use automatic_hscroll_margin and
3448 for mice with more than 3 buttons. 5760 for mice with more than 3 buttons.
3449 5761
3450 * w32term.c (parse_button): New parameter xbutton. Callers changed. 5762 * w32term.c (parse_button): New parameter xbutton. Callers changed.
3451 (w32_read_socket): Handle new "XBUTTON" messages. 5763 (w32_read_socket): Handle new "XBUTTON" messages.
3452 5764
3453 * w32fns. 5765 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option.
5766 (syms_of_w32fns): DEFVAR_BOOL it.
5767 (w32_wnd_proc): Handle new "XBUTTON" messages.
5768
5769 2002-01-13 Pavel Jan,Am(Bk <Pavel@Janik.cz>
5770
5771 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'.
5772
5773 2002-01-13 Andreas Schwab <schwab@suse.de>
5774
5775 * xterm.c (x_load_font): Never set fonts_changed_p to zero.
5776
5777 2002-01-12 Andreas Schwab <schwab@suse.de>
5778
5779 * .gdbinit (xbuffer): Remove address operator since data is now a
5780 pointer.
5781
5782 2002-01-11 Richard M. Stallman <rms@gnu.org>
5783
5784 * insdel.c (adjust_after_replace_noundo): New function.
5785
5786 * coding.c (code_convert_region): Don't copy old text if undo disabled.
5787
5788 2002-01-09 Jason Rumney <jasonr@gnu.org>
5789
5790 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame
5791 when checking for multiple frames.
5792
5793 2002-01-08 Richard M. Stallman <rms@gnu.org>
5794
5795 * window.c (delete_window): Rewrite the code for changing the
5796 selected window to handle the case where WINDOW is not a leaf.
5797
5798 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il>
5799
5800 * process.c (send_process): Set src_multibyte to 1 after the call
5801 top setup_coding_system, not before the call.
5802
5803 2002-01-07 Jason Rumney <jasonr@gnu.org>
5804
5805 * xmenu.c (set_frame_menubar, xmenu_show):
5806 (xdialog_show): Initialize wv->help to Qnil.
5807
5808 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show):
5809 (w32_dialog_show): Initialize wv->help to Qnil.
5810
5811 2002-01-06 Jason Rumney <jasonr@gnu.org>
5812
5813 * xmenu.c (single_submenu): Initialize wv->help to Qnil.
5814
5815 * w32menu.c (w32_menu_display_help): Revert last change.
5816
5817 * xmenu.c (menu_highlight_callback): Revert last change.
5818
5819 2002-01-06 Andreas Schwab <schwab@suse.de>
5820
5821 * insdel.c (make_gap_larger): Make sure buffer size does not
5822 overflow range of int.
5823
5824 2002-01-05 Jason Rumney <jasonr@gnu.org>
5825
5826 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
5827 OVERLAPS_P.
5828
5829 * w32menu.c (w32_menu_display_help): Hide any tooltip window.
5830
5831 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen
5832 to the left or to the right of the pointer, put it against
5833 the left screen edge.
5834 (x_frame_parms): Add missing braces around initializer.
5835
5836 * w32term.c (x_setup_relief_colors): Don't compute an image's
5837 background color if it doesn't have a Pixmap.
5838 (notice_overwritten_cursor): Don't depend on
5839 output_cursor and updated_area. Compare pixel coordinates with
5840 window's cursor pixel coordinates.
5841 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
5842 Call notice_overwritten_cursor with new arg list.
5843 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
5844 unconditionally.
5845 (x_draw_image_relief): Use predefined macro instead of
5846 constant when the value of `tool_bar_button_relief' is negative.
5847
5848 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types.
5849
5850 2002-01-04 Richard M. Stallman <rms@gnu.org>
5851
5852 * xmenu.c (menu_highlight_callback): Hide any tooltip window.
5853
5854 2002-01-03 Richard M. Stallman <rms@gnu.org>
5855
5856 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first.
5857 (Fkey_binding): Try the `keymap' property map first.
5858 (Fdescribe_buffer_bindings): Show `keymap' property bindings before
5859 minor mode bindings.
5860
5861 2002-01-03 Kim F. Storm <storm@cua.dk>
5862
5863 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy.
5864
5865 2002-01-02 Richard M. Stallman <rms@gnu.org>
5866
5867 * keyboard.c (read_key_sequence): Handle the keymap property
5868 before minor mode maps.
5869
5870 * editfns.c (Fformat): Update thissize from field_width
5871 based on the actual width, in the string case.
5872
5873 2002-01-01 Pavel Jan,Am(Bk <Pavel@Janik.cz>
5874
5875 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment
5876 when used as truth value to prevent gcc warnings.
5877
5878 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c,
5879 * w32proc.c: Include <config.h>.
5880
5881 2002-01-01 Andreas Schwab <schwab@suse.de>
5882
5883 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int,
5884 not EMACS_INT, to make them compatible with DEFVAR_INT.
5885 * lisp.h (max_specpdl_size): Adjust declaration.
5886
5887 2002-01-01 Richard M. Stallman <rms@gnu.org>
5888
5889 * print.c (print_object): Test print_escape_nonascii only for
5890 unibyte strings.
5891 (PRINTPREPARE): Once again bind Qprint_escape_nonascii
5892 when outputting to a multibyte buffer.
5893
5894 2001-12-29 Richard M. Stallman <rms@gnu.org>
5895
5896 * print.c (print_object): In multibyte string, use hex escapes.
5897 Use octal only for unibyte strings.
5898 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii.
5899
5900 * lread.c (read_escape): New arg BYTEREP for reporting whether
5901 escape forces unibyte or multibyte.
5902 (read1): When reading a string, take note of that info.
5903
5904 2001-12-29 Ken Raeburn <raeburn@gnu.org>
5905
5906 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero
5907 comparison to test lisp value returned by Fget.
5908
5909 2001-12-29 Richard M. Stallman <rms@gnu.org>
5910
5911 * lisp.h (max_specpdl_size): Add declaration.
5912
5913 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message.
5914
5915 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key.
5916 Handle modifier bits. Correct typo in error message.
5917
5918 2001-12-28 Richard M. Stallman <rms@gnu.org>
5919
5920 * abbrev.c: Use the plist of an abbrev for multiple params if nec.
5921 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev.
5922 (Fdefine_global_abbrev, Fdefine_mode_abbrev):
5923 Update calls to Fdefine_abbrev.
5924 (write_abbrev): Update for changed data format.
5925 Don't list "system" abbrevs.
5926 (Fexpand_abbrev): Update use count with new data format.
5927 (describe_abbrev): Update for changed data format.
5928 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG.
5929
5930 * config.in (HAVE_MBSINIT): Add #undef.
5931
5932 * strftime.c (mbsinit): Define as no-op if not available.
5933
5934 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen.
5935 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE.
5936
5937 * keymap.c (Flookup_key): Error message if key has wrong data type.
5938 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc.
5939 (exclude_key): New variable.
5940
5941 2001-12-28 Gerd Moellmann <gerd@gnu.org>
5942
5943 * xterm.c (x_setup_relief_colors): Don't compute an image's
5944 background color if it doesn't have a Pixmap.
5945
5946 * xterm.c (notice_overwritten_cursor): Don't depend on
5947 output_cursor and updated_area. Compare pixel coordinates with
5948 window's cursor pixel coordinates.
5949 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face):
5950 Call notice_overwritten_cursor with new arg list.
5951 (show_mouse_face): Fix bug setting a row's mouse_face_p flag
5952 unconditionally.
5953
5954 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the
5955 height of the cursor line to the amount to scroll.
5956
5957 2001-12-27 Richard M. Stallman <rms@gnu.org>
5958
5959 * intervals.c (set_point_both): The position after an invisible,
5960 intangible character is not an acceptable stopping point.
5961
5962 2001-12-27 Ken Raeburn <raeburn@gnu.org>
5963
5964 * window.c (enlarge_window): In new preserve_before code, convert
5965 CURBEG from lisp object to integer before doing arithmetic.
5966
5967 2001-12-27 Richard M. Stallman <rms@gnu.org>
5968
5969 * bytecode.c (Fbyte_code): Undo previous change.
5970
5971 2001-12-26 Kim F. Storm <storm@cua.dk>
5972
5973 * keyboard.c (record_char): Ignore duplicate help-echo events only
5974 separated by mouse-movement. When tracking mouse, only record
5975 first and last mouse-movement event in same window.
5976 Don't record mouse-movement events in keyboard macros.
5977
5978 2001-12-25 Richard M. Stallman <rms@gnu.org>
5979
5980 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed.
5981 (Fenlarge_window): New arg PRESERVE_BEFORE.
5982
5983 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte
5984 instead of Fstring_as_unibyte.
5985
5986 2001-12-22 Pavel Jan,Am(Bk <Pavel@Janik.cz>
5987
5988 The following changes remove mocklisp support:
5989
5990 * mocklisp.h, mocklisp.c: Files removed.
5991
5992 * lisp.h: Remove declarations of variables `Vmocklisp_arguments',
5993 `Qmocklisp' and `Qmocklisp_arguments'.
5994 Remove prototype of syms_of_mocklisp.
5995
5996 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files.
5997
5998 * callint.c: Do not include mocklisp.h.
5999 (Fcall_interactively): Do not test for mocklisp case.
6000
6001 * eval.c: Remove variables `Qmocklisp_arguments',
6002 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply.
6003 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda):
6004 Do not test for mocklisp case.
6005 (Fwhile): Remove unused variable `tem'.
6006 (syms_of_eval): Remove variable `moclisp-arguments'.
6007
6008 * data.c (wrong_type_argument): Remove mocklisp case.
6009
6010 * doc.c (Fdocumentation): Remove mocklisp case.
6011
6012 * emacs.c (main): Do not call syms_of_mocklisp.
6013
6014 2001-12-21 Richard M. Stallman <rms@gnu.org>
6015
6016 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen
6017 to the left or to the right of the pointer, put it against
6018 the left screen edge.
6019
6020 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il>
6021
6022 * Makefile.in (distclean): Remove .gdbinit if we are building
6023 outside the source tree.
6024
6025 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il>
6026
6027 * w32.c (emacs_root_dir): New function.
6028
6029 * msdos.c (emacs_root_dir): New function.
6030
6031 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory
6032 of the current drive as the fallback for default_directory.
6033
6034 * dired.c (file_name_completion): Run the elements of
6035 completion-ignored-extensions through ENCODE_FILE.
6036
6037 * lisp.h (scmp): Remove prototype, since it's now a static
6038 function private to dired.c.
6039
6040 2001-12-18 Richard M. Stallman <rms@gnu.org>
6041
6042 * dired.c (scmp): Function moved from minibuf.c.
6043 Delete multibyte handling--used only on encoded strings.
6044
6045 * minibuf.c (scmp): Function moved to dired.c.
6046
6047 * fns.c (merge): Add QUIT call.
6048
6049 2001-12-18 Dave Love <fx@gnu.org>
6050
6051 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el,
6052 language/georgian.el.
6053
6054 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il>
6055
6056 * Makefile.in (lisp, shortlisp): Synchronize with changes to
6057 lisp/Makefile.in:DONTCOMPILE.
6058
6059 2001-12-18 Pavel Jan,Am(Bk <Pavel@Janik.cz>
6060
6061 * xdisp.c (window_box_height): Do not return negative values.
6062 From Gerd Moellmann <gerd@gnu.org>.
6063
6064 * keyboard.c (head_table): Add missing braces around initializer.
6065
6066 * term.c (keys): Likewise.
6067
6068 * xfns.c (x_frame_parms, visual_classes): Likewise.
6069
6070 2001-12-17 Sam Steingold <sds@gnu.org>
6071
6072 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last
6073 patch (COMPOSING_P, not COMPOSING).
6074
6075 2001-12-17 Richard M. Stallman <rms@gnu.org>
6076
6077 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop.
6078
6079 * coding.c (code_convert_region): Update coding->cmp_data->char_offset
6080 before calling decode_coding.
6081
6082 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal.
6083
6084 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding)
6085 instead of only for COMPOSITION_DISABLED.
6086
6087 2001-12-16 Richard M. Stallman <rms@gnu.org>
6088
6089 * alloc.c (pure_alloc): After overflow, allocate just a small block.
6090
6091 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h.
6092
6093 * buffer.h (struct buffer): New field `display_error_modiff'.
6094 * buffer.c (reset_buffer): Initialize `display_error_modiff'.
6095
6096 * window.c (Frecenter): Clear display_error_modiff field.
6097
6098 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions.
6099 Call redisplay_window, but not if display_error_modiff field says no.
6100 (redisplay_window_error): New function.
6101 (displayed_buffer): New variable.
6102 (redisplay_internal, redisplay_windows): Call the new functions
6103 instead of redisplay_window directly.
6104
6105 2001-12-15 Richard M. Stallman <rms@gnu.org>
6106
6107 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix.
6108
6109 2001-12-14 Andrew Innes <andrewi@gnu.org>
6110
6111 * makefile.w32-in (EMACSLOADPATH): Define.
6112 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs.
6113 (bootstrap-temacs): Remove dependency on bootstrap-clean.
6114
6115 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il>
6116
6117 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame
6118 parameter have a numeric value all the time.
6119
6120 * w32fns.c (x_report_frame_params): Likewise.
6121
6122 2001-12-12 Richard M. Stallman <rms@gnu.org>
6123
6124 * fileio.c (Fwrite_region): Doc fix.
6125
6126 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500.
6127 (redisplay_internal): Call clear_image_cache only for window terminals.
6128
6129 2001-12-12 Gerd Moellmann <gerd@gnu.org>
6130
6131 * xdisp.c (move_it_vertically_backward): Change heuristic
6132 for the case that we didn't move far enough initially.
6133
6134 * window.c (Frecenter): Simplify computation in the case of window
6135 system frames and ARG < 0; use window_box_height.
6136
6137 2001-12-11 Richard M. Stallman <rms@gnu.org>
6138
6139 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c:
6140 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX.
6141
6142 2001-12-11 Andrew Innes <andrewi@gnu.org>
6143
6144 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if
6145 arg is negative.
6146
6147 2001-12-11 Richard M. Stallman <rms@gnu.org>
6148
6149 * m/hp800.h: Split the __hpux conditional into the parts
6150 that are right for GNU/Linux too and the parts that are not.
6151 Use the former if GNU_LINUX.
6152 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux.
6153
6154 * s/gnu-linux.h (GNU_LINUX): Defined.
6155
6156 2001-12-11 Pavel Jan,Am(Bk <Pavel@Janik.cz>
6157
6158 * macros.c, msdos.c, w16select.c: Change doc-string comments to
6159 `new style' [w/`doc:' keyword].
6160
6161 2001-12-10 Jason Rumney <jasonr@gnu.org>
6162
6163 * w32menu.c (w32_free_submenu_strings): Clear menu item struct
6164 before using.
6165
6166 2001-12-09 Pavel Jan,Am(Bk <Pavel@Janik.cz>
6167
6168 * dosfns.c: Change doc-string comments to `new style' [w/`doc:'
6169 keyword].
6170
6171 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il>
6172
6173 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix.
6174
6175 * s/hpux10.h (srand48): Don't undefine.
6176
6177 2001-12-09 Jason Rumney <jasonr@gnu.org>
6178
6179 * w32menu.c (_widget_value): Make `help' field a Lisp_Object.
6180 Add comment to explain where the struct came from.
6181 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object.
6182 (add_menu_item): Process pop-up menus first to avoid memory leak.
6183 (add_menu_item, w32_menu_display_help): Use `help' field as
6184 Lisp_Object.
6185 (w32_free_submenu_strings): Only free owner-drawn strings.
6186
6187 2001-12-09 Pavel Jan,Am(Bk <Pavel@Janik.cz>
6188
6189 * COPYING: Moved back.
6190
6191 * charset.c (char_to_string_1, translate_char, Fdefine_charset):
6192 Add parentheses around && within ||.
6193
6194 * indent.c (compute_motion): Likewise.
6195
6196 * intervals.c (merge_properties_sticky): Likewise.
6197
6198 * coding.c (setup_coding_system, shrink_encoding_region)
6199 (Fdecode_sjis_char): Likewise.
6200
6201 2001-12-07 Andreas Schwab <schwab@suse.de>
6202
6203 * xdisp.c (display_mode_element): Don't read past end of string if
6204 it ends with '%'.
6205
6206 * alloc.c (inhibit_garbage_collection): Don't exceed value an int
6207 can hold.
6208
6209 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum):
6210 Rename from most_positive_fixnum and most_negative_fixnum, resp., and
6211 type changed to Lisp_Object.
6212 (syms_of_data): DEFVAR_LISP them.
6213
6214 2001-12-07 Richard M. Stallman <rms@gnu.org>
6215
6216 * callproc.c (init_callproc): Set Vdata_directory based on the source
6217 location whenever Emacs was run uninstalled.
6218
6219 2001-12-06 Paul Eggert <eggert@twinsun.com>
6220
6221 * config.in (HAVE_WORKING_VFORK): New #undefs.
6222 * process.c (create_process):
6223 Use HAVE_WORKING_VFORK, not HAVE_VFORK.
6224 * m/cnvrgnt.h (HAVE_VFORK): Remove #define.
6225 * m/ibm370aix.h (HAVE_VFORK): Remove #undef.
6226 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define.
6227 * m/intel386.h (HAVE_VFORK): Likewise.
6228 * m/mips-siemens.h (HAVE_VFORK): Likewise.
6229 * m/mips.h (HAVE_VFORK): Likewise.
6230 * s/freebsd.h (vfork): Remove #define.
6231 * s/lynxos.h (HAVE_VFORK): Remove #undef.
6232 * s/usg5-4-2.h: Fix comment about vfork.
6233
6234 2001-12-06 Richard M. Stallman <rms@gnu.org>
6235
6236 * s/hpux10.h (random): Add undef.
6237 (HAVE_RANDOM): Define it just once.
6238
6239 2001-12-06 Stefan Monnier <monnier@cs.yale.edu>
6240
6241 * eval.c: Undo last change: the standard syntax is not wanted.
6242
6243 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il>
6244
6245 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the
6246 scroll bars of the frame before deleting the frame itself. If the
6247 frame has a widget, delete the frame with XtDestroyWidget, and do
6248 not call XDestroyWindow before that.
6249
6250 2001-12-06 Kim F. Storm <storm@cua.dk>
6251
6252 * xfns.c (x_report_frame_params): Return actual fringe widths.
6253
6254 * w32fns.c (x_report_frame_params): Return actual fringe widths.
6255
6256 2001-12-05 Andrew Innes <andrewi@gnu.org>
6257
6258 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are
6259 excessively large.
6260
6261 * insdel.c (make_gap_larger): New function.
6262 (make_gap_smaller): New function.
6263 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]:
6264 Call make_gap_smaller if arg is negative.
6265
6266 2001-12-04 Stefan Monnier <monnier@cs.yale.edu>
6267
6268 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype.
6269 Pass a dummy argument when calling interrupt_signal.
6270 (parse_menu_item): Mark disabled items before checking for empty def.
6271 (read_char_minibuf_menu_prompt): Make safety more visible.
6272 (read_key_sequence): Add a `first_unbound' variable.
6273 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the
6274 unbound prefix as soon as we can detect it.
6275
6276 * doc.c (Fsnarf_documentation): Add prototype.
6277 (get_doc_string): Handle negative arguments.
6278 (Fdocumentation): Use AREF and ASIZE.
6279 Move the calls to get_doc_string to a single place.
6280 Don't confuse an interactive-spec for a docstring reference.
6281 (Fdocumentation_property): Take advantage of the fact that
6282 get_doc_string now ignores the sign of the docstring position.
6283
6284 * eval.c: Use standard syntax for usage in docstrings.
6285
6286 2001-12-03 Pavel Jan,Am(Bk <Pavel@Janik.cz>
6287
6288 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option.
6289
6290 2001-12-02 Pavel Jan,Am(Bk <Pavel@Janik.cz>
6291
6292 * xterm.c (x_draw_image_relief): Use predefined macro instead of
6293 constant when the value of `tool_bar_button_relief' is negative.
6294
6295 2001-12-02 Richard M. Stallman <rms@gnu.org>
6296
6297 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object.
6298 (single_submenu, xmenu_show): Set `help' field as Lisp_Object.
6299
6300 * fileio.c (read_non_regular): Delete Fsignal call.
6301
6302 2001-12-01 Stefan Monnier <monnier@cs.yale.edu>
6303
6304 * lisp.h (run_hook_list_with_args): Undo last change.
6305
6306 2001-12-01 Gerd Moellmann <gerd@gnu.org>
6307
6308 * xterm.c (x_draw_fringe_bitmap): Always undo clipping.
6309
6310 2001-12-01 Jason Rumney <jasonr@gnu.org>
6311
6312 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c.
6313
6314 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT)
6315 [!WM_MOUSELEAVE]: Define.
6316
6317 * w32menu.c (current_popup_menu, get_menu_item_info):
6318 (set_menu_item_info): New vars.
6319 (set_frame_menubar): Doc fix clarifying GC interaction with menus.
6320 (w32_menu_show): Set current_popup_menu.
6321 (add_menu_item): Allocate new strings for owner-drawn menu items
6322 and help strings.
6323 Use owner-draw for disabled menu items again.
6324 (w32_menu_display_help): Ignore owner-drawn items and popup menus.
6325 (w32_free_submenu_strings, w32_free_menu_strings): New functions.
6326
6327 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars.
6328 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame.
6329 <WM_EXITMENULOOP>: Free menu strings.
6330 <WM_MOUSELEAVE>: Stop tracking mouse.
6331 (x_create_tip_frame): Specify no minibuffer, modeline or fringes.
6332
6333 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
6334 and mouse face.
6335
6336 2001-12-01 Kim F. Storm <storm@cua.dk>
6337
6338 The following changes add left-fringe and right-fringe
6339 frame parameters to adjust fringe widths, or remove one or
6340 both fringes.
6341
6342 * frame.h (struct frame): Remove trunc_area_pixel_width and
6343 trunc_area_cols fields.
6344 (Qleft_fringe, Qright_fringe): Declare.
6345 (FRAME_RIGHT_FRINGE_WIDTH): New macro.
6346
6347 * frame.c (Qleft_fringe, Qright_fringe): New vars.
6348 (syms_of_frame): Initialize them.
6349
6350 * window.c (coordinates_in_window): Handle separate left and right
6351 fringe widths.
6352
6353 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width,
6354 and fringe_cols fields.
6355 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros.
6356 (FRAME_X_FRINGE_COLS): Use fringe_cols field.
6357 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field.
6358 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field.
6359 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field.
6360 (x_compute_fringe_widths): Add prototype.
6361
6362 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to
6363 fill fringe evenly with small dashes.
6364 (x_draw_fringe_bitmap): Clear background if necessary. Align and
6365 clip the new ZV bitmap to avoid jitter between rows.
6366 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear
6367 background. Don't draw fringe bitmaps if fringe width is zero.
6368 (x_compute_fringe_widths): New function.
6369 (x_new_font, x_set_window_size_1): Use it.
6370
6371 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms.
6372 (x_set_frame_parameters): Process `font' parameter before other
6373 parameters as fringe widths depend on it.
6374 (x_set_fringe_width): New function.
6375 (x_figure_window_size): Use x_compute_fringe_widths.
6376 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame
6377 parameters.
6378
6379 * widget.c (set_frame_size): Use x_compute_fringe_widths.
6380 (EmacsFrameSetCharSize): Ditto.
6381
6382 * w32term.h: Merged changes from xterm.h.
6383 * w32term.c: Merged changes from xterm.c.
6384 * w32fns.c: Merged changes from xfns.c.
6385
6386 2001-11-29 Pavel Jan,Am(Bk <Pavel@Janik.cz>
6387
6388 * COPYING: Removed.
6389
6390 2001-11-29 Dave Love <fx@gnu.org>
6391
6392 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an
6393 extra extra slot.
6394 (detect_coding_mask): Fix call of detect_coding_iso2022.
6395
6396 2001-11-29 Pavel Jan,Am(Bk <Pavel@Janik.cz>
6397
6398 * fileio.c (file-name-coding-system)
6399 (default-file-name-coding-system): Doc fix (links to referenced
6400 variables added).
6401
6402 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
6403
6404 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5):
6405 Add dummy uses of gcproN variables.
6406
6407 * category.c (describe_category, describe_category_1)
6408 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.)
6409 (syms_of_category): Don't defsubr Sdescribe_categories.
6410
6411 2001-11-28 Richard M. Stallman <rms@gnu.org>
6412
6413 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'.
6414
6415 * Makefile.in (lispdir): New variable, referring to build dir.
6416 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource).
6417
6418 2001-11-28 Andrew Innes <andrewi@gnu.org>
6419
6420 * w32menu.c (w32_menu_display_help): Actually add the new argument
6421 OWNER.
6422
6423 2001-11-28 Jason Rumney <jasonr@gnu.org>
6424
6425 * w32menu.c (add_menu_item): Do not use owner-draw for disabled
6426 menu items. From David Ponce <dponce@wanadoo.fr>.
6427 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function
6428 conditionally.
6429 (w32_menu_display_help): New argument OWNER. Rewritten to store a
6430 help event in the owner frame's keyboard buffer.
6431
6432 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly.
6433 (Fx_show_tip): Don't subtract last width from row width.
6434
6435 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove.
6436 (w32_read_socket): Use EQ to compare frames.
6437
6438 2001-11-28 Gerd Moellmann <gerd@gnu.org>
6439
6440 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if
6441 OVERLAPS_P.
6442
6443 2001-11-28 Pavel Jan,Am(Bk <Pavel@Janik.cz>
6444
6445 * xdisp.c (message_dolog): Remove unused variables `gcpro2',
6446 `gcpro3' and `gcpro4'.
6447
6448 * coding.c (decode_coding_string): Remove unused variable `gcpro1'.
6449
6450 2001-11-28 Stefan Monnier <monnier@cs.yale.edu>
6451
6452 * ccl.c: Use AREF and ASIZE.
6453
6454 2001-11-27 Stefan Monnier <monnier@cs.yale.edu>
6455
6456 * lisp.h (run_hook_list_with_args): Remove.
6457 (LIST_END_P): Fix call to wrong_type_argument.
6458 (make_fixnum_or_float): Use EMACS_INT rather than int.
6459
6460 2001-11-26 Stefan Monnier <monnier@cs.yale.edu>
6461
6462 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax.
6463 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove.
6464
6465 * eval.c: Use AREF and ASIZE.
6466 (Ffetch_bytecode): Add the file name to the error message.
6467
6468 * fileio.c (Ffind_file_name_handler): Give precedence to handlers
6469 which match the end of the file-name.
6470 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR
6471 is not a valid env var, but leave it as is instead.
6472
6473 * keymap.c (access_keymap): Handle t bindings like nil bindings.
6474 Make nil bindings in char-tables transparent.
6475 (store_in_keymap): Turn a nil binding into a t binding for char-tables.
6476
6477 2001-11-26 Richard M. Stallman <rms@gnu.org>
6478
6479 * textprop.c (set_text_properties_1): Allow START, END in either order.
6480 Do nothing if range is empty.
6481
6482 * Makefile.in (mallocobj): Simplify logic using auxiliary vars.
6483
6484 * Makefile.in (mostlyclean): Delete bootstrap-emacs here.
6485 (clean): Not here.
6486
6487 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
6488
6489 * textprop.c (set_text_properties_1): Clearly mark that the
6490 interval should not be empty.
6491
6492 * intervals.c (graft_intervals_into_buffer):
6493 Don't call set_text_properties_1 on an empty interval.
6494
6495 2001-11-25 Richard M. Stallman <rms@gnu.org>
6496
6497 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss".
6498
6499 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr,
6500 don't lose the data in it.
6501
6502 2001-11-25 Juanma Barranquero <lektu@terra.es>
6503
6504 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks.
6505
6506 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks.
6507
6508 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks.
6509
6510 2001-11-25 Stefan Monnier <monnier@cs.yale.edu>
6511
6512 * xfaces.c (merge_face_heights): Coerce back to int explicitly.
6513
6514 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il>
6515
6516 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi
6517 Niemitalo <kon@iki.fi>.
6518
6519 2001-11-25 Jason Rumney <jasonr@gnu.org>
6520
6521 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames.
6522
6523 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0.
6524 (Fx_show_tip): Block input during frame creation.
6525 (Fx_show_tip, Fx_hide_tip): Enable.
6526
6527 2001-11-24 Richard M. Stallman <rms@gnu.org>
6528
6529 * lread.c (Fload): Detect recursive load error for more than 3
6530 nestings of the same file.
6531 (Vrecursive_load_depth_limit): Variable deleted.
6532 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted.
6533
6534 2001-11-24 Jason Rumney <jasonr@gnu.org>
6535
6536 * xfns.c (compute_tip_xy): Initialize root_x and root_y from
6537 mouse position if either left or top is not specified.
6538
6539 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change.
6540 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction.
6541 (my_create_tip_window, Fx_show_tip): Adjust size for external border.
6542 (my_create_tip_window): Assign tip_window.
6543 (x_create_tip_frame): Use same defaults as X.
6544 (compute_tip_xy): Remove unused variable. Use full screen width.
6545 (Fx_show_tip): Do not double height. Call ShowWindow directly.
6546
6547 * w32term.c (x_after_update_window_line): Doc fix.
6548 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip
6549 frames.
6550 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
6551
6552 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame
6553 for all Windowed systems.
6554
6555 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il>
6556
6557 * msdos.c (IT_clear_screen): If the frame's faces are not yet
6558 realized, use the initial screen colors to clear the screen.
6559
6560 2001-11-23 Pavel Jan,Am(Bk <Pavel@Janik.cz>
6561
6562 * textprop.c (Fset_text_properties): Remove unused variables
6563 `unchanged', `prev_changed', `s' and `len'.
6564
6565 * search.c (Freplace_match): Remove unused variable `inslen'.
6566
6567 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'.
6568
6569 2001-11-22 Jason Rumney <jasonr@gnu.org>
6570
6571 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment.
6572 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly.
6573 (my_create_tip_window): New function.
6574 (x_create_tip_frame, compute_tip_xy): Adapt for Windows.
6575 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows.
6576
6577 2001-11-20 Jason Rumney <jasonr@gnu.org>
6578
6579 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove.
6580 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system.
6581
6582 * w32fns.c (Vw32_system_coding_system): Remove.
6583 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system.
6584
6585 2001-11-19 Stefan Monnier <monnier@cs.yale.edu>
6586
6587 * fileio.c (Fwrite_region): Move choose_write_coding_system to
6588 after build_annotations.
6589
6590 * syntax.c (describe_syntax): Add dummy arg.
6591 (describe_syntax_1): Update call to describe_vector.
6592
6593 * category.c (describe_category): Add dummy arg.
6594 (describe_category_1): Update call to describe_vector.
6595
6596 * keymap.c (Fdescribe_vector): Add `describer' parameter.
6597 (describe_command, describe_translation): Add dummy second param.
6598 (describe_map): Call elt_describer with two arguments.
6599 (describe_vector_princ): Add `fun' parameter.
6600 Call it instead of the hardcoded `princ'.
6601 (describe_vector): Add arg `args'.
6602 Pass it as a new second argument to elt_describer.
6603
6604 * keymap.h (describe_vector): Update prototype.
6605
6606 * frame.c: Don't include keymap.h any more.
6607 (keys_of_frame): Remove.
6608
6609 * lisp.h (keys_of_frame): Remove declaration.
6610
6611 * emacs.c (main): Don't call `keys_of_frame' any more.
6612
6613 2001-11-14 Andreas Schwab <schwab@suse.de>
6614
6615 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS
6616 if defined, 0 otherwise.
6617 (MAP_FAILED): Define if not defined and use it to test mmap failure.
6618 (unexec) [!MAP_ANON]: Use /dev/zero as file to map.
6619
6620 2001-11-19 Richard M. Stallman <rms@gnu.org>
6621
6622 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars.
6623
6624 2001-11-18 Jason Rumney <jasonr@gnu.org>
6625
6626 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'.
6627 (x_draw_bar_cursor): If the background color of the glyph under
6628 the cursor equals the frame's cursor color, use the glyph's
6629 foreground color for drawing the bar cursor.
6630 (x_after_update_window_line): Clear internal border in different
6631 circumstances.
6632 (w32_set_vertical_scroll_bar): Check for width and height > 0.
6633 (w32_draw_relief_rect): Correct relief by 1 pixel.
6634 (x_set_glyph_string_background_width):
6635 Set extends_to_end_of_line_p if the row's fill_line_p is set and
6636 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
6637 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
6638 if cursor_in_non_selected_windows is false.
6639 (show_mouse_face): Clean up. Recognize overwritten cursor differently.
6640 (x_draw_glyphs): Remove parameters REAL_START and REAL_END.
6641 Notice if cursor gets overwritten.
6642 (notice_overwritten_cursor): Renamed from
6643 note_overwritten_text_cursor. Rewritten to take glyph widths
6644 into account, and to take X positions as parameters.
6645 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
6646 around call to x_draw_glyphs.
6647 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
6648 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
6649 color to use for image glyph reliefs.
6650 (x_draw_image_relief): Accept zero tool_bar_button_relief.
6651 (glyph_rect): Remove unused variable `area'.
6652
6653 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for
6654 some items.
6655 (x_set_internal_border_width): Set frame garbaged when window
6656 doesn't exist yet.
6657 (Fx_create_frame): Accept zero tool_bar_button_relief.
6658 (x_clear_image_1, four_corners_best, image_background)
6659 (image_background_transparent): New functions.
6660 (xpm_format, png_format, jpeg_format, tiff_format, gif_format)
6661 (gs_format): Add `:background' entry.
6662 (lookup_image): Set IMG's background color if specified.
6663 (pbm_load, xbm_load_image, png_load): Set IMG's background field
6664 when appropriate.
6665 (x_clear_image_1): Reset `background_valid' and
6666 `background_transparent_valid' fields.
6667 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of
6668 calculating it here. Set IMG's background_transparent field.
6669 (enum xpm_keyword_index): Add XPM_BACKGROUND.
6670 (enum png_keyword_index): Add PNG_BACKGROUND.
6671 (enum jpeg_keyword_index): Add JPEG_BACKGROUND.
6672 (enum tiff_keyword_index): Add TIFF_BACKGROUND.
6673 (enum gif_keyword_index): Add GIF_BACKGROUND.
6674 (enum gs_keyword_index): Add GS_BACKGROUND.
6675 (pbm_load, png_load, jpeg_load, tiff_load, gif_load):
6676 Pre-calculate image background color where necessary.
6677 (x_create_x_image_and_pixmap, xbm_load, gs_load):
6678 Use display info's n_cbits entry for screen depth.
6679 (Fx_show_tip): Remove unused variables `buffer', `top',
6680 `left', `max_width' and `max_height'.
6681
6682 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes.
6683
6684 2001-11-18 Gerd Moellmann <gerd@gnu.org>
6685
6686 * puresize.h (BASE_PURESIZE): Increase to 750000.
6687
6688 2001-11-18 Pavel Jan,Am(Bk <Pavel@Janik.cz>
6689
6690 * frame.c (Fframe_live_p): Doc fix.
6691
6692 2001-11-18 Richard M. Stallman <rms@gnu.org>
6693
6694 * xdisp.c (message_dolog_marker1, message_dolog_marker2)
6695 (message_dolog_marker3): New static variables hold three markers.
6696 (syms_of_xdisp): Initialize and staticpro them.
6697 (message_dolog): Use message_dolog_marker1..3 instead of
6698 allocating markers each time. Unchain them when done.
6699
6700 2001-11-17 Richard M. Stallman <rms@gnu.org>
6701
6702 * doc.c (Fsnarf_documentation): Doc fix.
6703
6704 2001-11-17 Andreas Schwab <schwab@suse.de>
6705
6706 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'.
6707
6708 2001-11-17 Richard M. Stallman <rms@gnu.org>
6709
6710 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object.
6711
6712 2001-11-17 Jason Rumney <jasonr@gnu.org>
6713
6714 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case.
6715
6716 2001-11-17 Gerd Moellmann <gerd@gnu.org>
6717
6718 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property
6719 with invalid position.
6720
6721 2001-11-16 Richard M. Stallman <rms@gnu.org>
6722
6723 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex.
6724
6725 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef.
6726 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef.
6727 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it.
6728
6729 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef.
6730
6731 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
6732
6733 * fileio.c (build_annotations): Split off the tail.
6734 (build_annotations_2): New fun. Extracted from build_annotations.
6735 (Fwrite_region): Split the call to build_annotations into two
6736 calls to build_annotations and build_annotations_2.
6737
6738 2001-11-16 Pavel Jan,Am(Bk <Pavel@Janik.cz>
6739
6740 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call
6741 clear_waiting_for_input with argument.
6742
6743 * xterm.h (x_update_cursor): Remove duplicated prototype.
6744
6745 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype.
6746
6747 * xterm.c (waiting_for_input): Remove unnecessary declaration.
6748
6749 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix.
6750
6751 2001-11-16 Stefan Monnier <monnier@cs.yale.edu>
6752
6753 * fileio.c (choose_write_coding_system): New fun, extracted
6754 from Fwrite_region.
6755 (Fwrite_region): Use it.
6756
6757 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT.
6758 (funcall_lambda, run_hook_with_args): Make static and add prototype.
6759 (ml_apply, find_handler_clause): Add prototype.
6760
6761 2001-11-16 Eli Zaretskii <eliz@gnu.org>
6762
6763 * config.in: Add #undef HAVE_COFF_H.
6764
6765 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined.
6766 Required for ISC 4.1.
6767
6768 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il>
6769
6770 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by
6771 Andrew Wiseman <a.wiseman@btclick.com>.
6772
6773 2001-11-16 Kim F. Storm <storm@cua.dk>
6774
6775 The following changes are made to clean up the various internal
6776 references to the fringes to actually use the term `fringe' for
6777 them. Previously, they were called `flags areas', `bitmap areas',
6778 `left/right side of windows', or implicitly as `flags' or
6779 `bitmaps':
6780
6781 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID.
6782 Comments fixed. Use renamed symbols.
6783
6784 * dispnew.c: Comment fix. Use renamed symbols.
6785
6786 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS.
6787 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH.
6788 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH.
6789
6790 * msdos.c: Comment fix.
6791
6792 * w32fns.c: Use renamed symbols.
6793
6794 * w32term.c: Comment fixes. Use renamed symbols.
6795 (fringe_bitmap_type): Renamed from bitmap_type.
6796 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
6797 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
6798 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
6799
6800 * w32term.h: Comment fixes. Use renamed symbols.
6801 (fringes_extra): Renamed from flags_areas_extra.
6802 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
6803 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
6804 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
6805 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
6806 (FRAME_X_LEFT_FRINGE_WIDTH):
6807 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
6808 (FRAME_X_RIGHT_FRINGE_WIDTH):
6809 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
6810
6811 * widget.c: Use renamed symbols.
6812
6813 * window.c: Comment fixes. Use renamed symbols.
6814 (coordinates-in-window-p): Doc fix.
6815
6816 * xdisp.c: Comment fixes. Use renamed symbols.
6817
6818 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID.
6819
6820 * xfns.c: Use renamed symbols.
6821
6822 * xterm.c: Comment fixes. Use renamed symbols.
6823 (fringe_bitmap_type): Renamed from bitmap_type.
6824 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
6825 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
6826 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
6827
6828 * xterm.h: Comment fixes. Use renamed symbols.
6829 (fringes_extra): Renamed from flags_areas_extra.
6830 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH.
6831 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT.
6832 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS.
6833 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH.
6834 (FRAME_X_LEFT_FRINGE_WIDTH):
6835 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH.
6836 (FRAME_X_RIGHT_FRINGE_WIDTH):
6837 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH.
6838
6839 2001-11-15 Jason Rumney <jasonr@gnu.org>
6840
6841 * w32menu.c (add-menu-item): Make help_echo and radio buttons
6842 work for most menu items. From David Ponce
6843 <david.ponce@wanadoo.fr>.
6844
6845 2001-11-15 Gerd Moellmann <gerd@gnu.org>
6846
6847 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07.
6848 Some x_set_* function expect to be called even if old and new
6849 value are equal.
6850
6851 * xdisp.c (build_desired_tool_bar_string): Accept zero
6852 tool_bar_button_relief.
6853
6854 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief.
6855
6856 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief.
6857
6858 * xterm.c (x_draw_bar_cursor): If the background color of the
6859 glyph under the cursor equals the frame's cursor color, use
6860 the glyph's foreground color for drawing the bar cursor.
6861
6862 * dispnew.c (direct_output_forward_char): Fix character/byte
6863 position comparison.
6864
6865 2001-11-15 Miles Bader <miles@gnu.org>
6866
6867 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters.
6868 (Fdelete_field, Ffield_string, Ffield_string_no_properties):
6869 Update arguments to find_field.
6870 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field.
6871 (Fconstrain_to_field): Use LIMIT arg to shorten search time.
6872 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl.
6873 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end.
6874
6875 2001-11-14 Richard M. Stallman <rms@gnu.org>
6876
6877 * editfns.c (Fpropertize): Allow call with 1 arg.
6878
6879 * dispextern.h (image_background, image_background_transparent):
6880 Conditionalize on HAVE_X_WINDOWS.
6881
6882 2001-11-13 Richard M. Stallman <rms@gnu.org>
6883
6884 * print.c (Fprin1_to_string): Doc fix.
6885
6886 * sunfns.c (Fsun_change_cursor_icon): Doc fix.
6887
6888 * floatfns.c (Fceiling, Ffloor): Doc fixes.
6889
6890 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes.
6891
6892 * fileio.c (Ffile_accessible_directory_p): Doc fix.
6893
6894 * eval.c (syms_of_eval): Doc fix.
6895
6896 * coding.c (syms_of_coding): Doc fix.
6897
6898 * doc.c (Fsnarf_documentation): Doc fix.
6899
6900 * dispnew.c (syms_of_display): Doc fix.
6901
6902 * category.c (Fget_unused_category): Doc fix.
6903
6904 * buffer.c (syms_of_buffer): Doc fixes.
6905
6906 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il>
6907
6908 * print.c (prin1, print): Doc fix.
6909
6910 2001-11-14 Pavel Jan,Am(Bk <Pavel@Janik.cz>
6911
6912 * fontset.h: Remove declarations of variables
6913 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'.
6914
6915 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and
6916 `Vclip_large_size_font'.
6917
6918 2001-11-13 Jason Rumney <jasonr@gnu.org>
6919
6920 * w32fns.c: Doc fix.
6921
6922 2001-11-13 Pavel Jan,Am(Bk <Pavel@Janik.cz>
6923
6924 * xfaces.c (Fface_attributes_as_vector): Doc fix.
6925
6926 * fns.c: Doc fix.
6927
6928 * emacs.c: Doc fix.
6929
6930 * coding.c: Doc fix.
6931
6932 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c,
6933 * fontset.c, insdel.c, keymap.c: Change doc-string comments to
6934 `new style' [w/`doc:' keyword].
6935
6936 2001-11-12 Richard M. Stallman <rms@gnu.org>
6937
6938 * xterm.c (XTread_socket): Don't update focus for EnterNotify or
6939 LeaveNotify events. Only FocusIn and FocusOut do that now.
6940 (x_display_and_set_cursor): Do display hollow cursors in active
6941 minibuffer windows when they are not selected.
6942
6943 2001-11-12 Jason Rumney <jasonr@gnu.org>
6944
6945 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c,
6946 * w32term.c: Change doc-string comments to `new style'.
6947 [w/`doc:' keyword]. Doc fixes.
6948
6949 * w32fns.c: Don't define max.
6950 (Fx_open_connection): Only execute once.
6951
6952 2001-11-12 Pavel Jan,Am(Bk <Pavel@Janik.cz>
6953
6954 * ccl.c: Change macros to use do-while block instead of if-else.
6955 Use braces to follow GNU Coding Standards.
6956
6957 2001-11-11 Richard M. Stallman <rms@gnu.org>
6958
6959 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR.
6960
6961 * lread.c (read_escape): Use end_of_file_error for reporting eof.
6962
6963 * insdel.c (replace_range): Use adjust_markers_for_replace
6964 instead of adjust_markers_for_delete and adjust_markers_for_insert.
6965
6966 * intervals.h: Declare set_text_properties and set_text_properties_1.
6967
6968 * textprop.c (set_text_properties_1): New subroutine
6969 broken out of set_text_properties.
6970 (set_text_properties): Use set_text_properties_1.
6971
6972 * intervals.c (graft_intervals_into_buffer):
6973 Use set_text_properties_1 to clear out properties.
6974
6975 * search.c (Freplace_match): Use replace_range to insert
6976 and delete. Don't request property inheritance from
6977 surrounding text.
6978
6979 2001-11-10 Jason Rumney <jasonr@gnu.org>
6980
6981 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect
6982 vertical fonts. Allow them if face name is explicitly specified.
6983 Do not give up if we find a font that cannot be converted to an xlfd.
6984
6985 2001-11-10 Gerd Moellmann <gerd@gnu.org>
6986
6987 * unexelf.c (unexec): Use mmap/munmap to allocate buffers
6988 instead of malloc/free.
6989
6990 2001-11-09 Pavel Jan,Am(Bk <Pavel@Janik.cz>
6991
6992 * xfaces.c (merge_face_vectors): Use braces to follow GNU
6993 Coding Standards.
6994 (Finternal_set_lisp_face_attribute): Likewise.
6995
6996 * buffer.c (Fbury_buffer): Likewise.
6997
6998 * indent.c (current_column_1): Remove unused variable `prev_col'.
6999
7000 * coding.c (encode_coding): Use precomputed value of `src'.
7001 (encode_coding): Remove unused variable `src_end'.
7002 (code_convert_region): Remove unused variables `count'.
7003
7004 2001-11-07 Jason Rumney <jasonr@gnu.org>
7005
7006 * w32term.c (x_display_and_set_cursor): Do not move system caret
7007 if cursor_glyph is NULL.
7008
7009 2001-11-07 Pavel Jan,Am(Bk <Pavel@Janik.cz>
7010
7011 * keymap.c (access_keymap): Fix compilation error.
7012
7013 2001-11-07 Miles Bader <miles@gnu.org>
7014
7015 * xfns.c (x_set_frame_parameters): Avoid infinite recursion.
7016
7017 2001-11-07 Pavel Jan,Am(Bk <Pavel@Janik.cz>
7018
7019 * intervals.c (graft_intervals_into_buffer):
7020 Remove #ifdef'd-out code.
7021 (graft_intervals_into_buffer): Remove unused variable `middle'.
7022
7023 * lread.c (Feval_region): Remove obsolete #ifdef'd-out
7024 code (eval-current-buffer).
7025 Change doc-string comments to `new style' [w/`doc:' keyword].
7026
7027 2001-11-06 Richard M. Stallman <rms@gnu.org>
7028
7029 * keymap.c (access_keymap): Don't use initializers on Lisp_Object.
7030
7031 2001-11-06 Stefan Monnier <monnier@cs.yale.edu>
7032
7033 * lread.c (read1): Fix behavior with nested backquoting.
7034
7035 * keyboard.c (make_lispy_event): Check integerness and fix
7036 Lisp_Object/int mixup.
7037
7038 2001-11-06 Pavel Jan,Am(Bk <Pavel@Janik.cz>
7039
7040 * fns.c (copy_hash_table): Remove unused variable `v'.
7041
7042 * fontset.c (fontset_font_pattern): Remove unused variable
7043 `family_registry'.
7044
7045 * indent.c (current_column_1): Remove unused variable `prev_col'.
7046
7047 2001-11-05 Richard M. Stallman <rms@gnu.org>
7048
7049 * m/news-risc.h (BROKEN_PROTOTYPES): Defined.
7050
7051 * buffer.c (Fkill_buffer): Don't delete auto save file
7052 if buffer is modified.
7053
7054 2001-11-05 Andrew Innes <andrewi@gnu.org>
7055
7056 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and
7057 CHECK_NUMBER_CDR.
7058
7059 2001-11-05 Richard M. Stallman <rms@gnu.org>
7060
7061 * unexelf.c (unexec): Minor changes; clean up comments.
7062
7063 2001-11-05 Sam Steingold <sds@gnu.org>
7064
7065 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error.
7066
7067 2001-11-05 Andreas Schwab <schwab@suse.de>
7068
7069 * sound.c (sound_perror): Save errno from being clobbered.
7070
7071 2001-11-05 Dale Hagglund <rdh@yottayotta.com>
7072
7073 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write
7074 the program image directly.
7075
7076 2001-11-05 Pavel Jan,Am(Bk <Pavel@Janik.cz>
7077
7078 * buffer.h (Fbuffer_local_value): Add prototype.
7079
7080 2001-11-04 Richard M. Stallman <rms@gnu.org>
7081
7082 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL
7083 and CHECK_BUFFER.
7084
7085 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth.
7086 (record_char): Likewise.
7087
7088 * keyboard.c (make_lispy_event): Don't insist a drag event must
7089 move to a different buffer position. Instead, check for moving at
7090 least double_click_fuzz.
7091
7092 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength.
7093
7094 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change.
7095
7096 * indent.c (current_column_1, Fmove_to_column): Separate the code
7097 for display-table glyphs from the code for buffer text, to fix
7098 bugs in the former.
7099
7100 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu>
7101
7102 * buffer.c (Fbuffer_local_value): New function.
7103 (syms_of_buffer): Defsubr it.
7104
7105 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local
7106 value of `cursor-in-non-selected-windows'.
7107
7108 * lisp.h (Qcursor_in_non_selected_windows): New declaration.
7109 * xdisp.c (Qcursor_in_non_selected_windows): New variable.
7110 (syms_of_xdisp): Initialize it.
7111
7112 2001-11-04 Pavel Jan,Am(Bk <Pavel@Janik.cz>
7113
7114 * xfns.c (Fx_create_frame): Doc fix.
7115
7116 * coding.c: Change doc-string comments to `new style' [w/`doc:'
7117 keyword].
7118
7119 * eval.c (top_level_value, top_level_set): Remove commented and
7120 #ifdef'd-out code.
7121 (Fdefvar): Fix usage in doc-string.
7122
7123 2001-11-03 Richard M. Stallman <rms@gnu.org>
7124
7125 * xfns.c: Include unistd.h, if it exists.
7126
7127 * editfns.c: Move the include of ctype.h after unistd.h.
7128
7129 * gmalloc.c: Test BROKEN_PROTOTYPES.
7130
7131 2001-11-03 Ken Raeburn <raeburn@gnu.org>
7132
7133 * lisp.h (CHECK_STRING_CAR): New macro.
7134 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of
7135 treating XCAR and XCDR as lvalues.
7136 (openp): Use CHECK_STRING_CAR.
7137 (read_list): Use XSETCDR instead of treating XCDR as lvalue.
7138
7139 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il>
7140
7141 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE.
7142 (SIGMASKTYPE): Define.
7143
7144 * syssignal.h (sigunblock): Don't define if already defined.
7145
7146 2001-11-02 Pavel Jan,Am(Bk <Pavel@Janik.cz>
7147
7148 * eval.c (debugger_may_continue, Vdebug_ignored_errors)
7149 (call_debugger, Fcondition_case, skip_debugger, unbind_to):
7150 Fix typos in comments.
7151
7152 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented
7153 and #ifdef'd-out code.
7154 Fix and reindent comments.
7155
7156 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c.
7157
7158 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused
7159 argument `i' in macros.
7160
7161 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument
7162 `i' in macros.
7163
7164 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST)
7165 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE)
7166 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER)
7167 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER)
7168 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER)
7169 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT)
7170 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY)
7171 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i'
7172 in macros.
7173
7174 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c,
7175 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c,
7176 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c,
7177 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h,
7178 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c,
7179 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c,
7180 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c,
7181 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c,
7182 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros
7183 (remove unused second argument).
7184
7185 2001-11-02 Stefan Monnier <monnier@cs.yale.edu>
7186
7187 * syntax.c (describe_syntax): New wrapper.
7188 (Finternal_describe_syntax_value): Rename from describe_syntax.
7189 Don't insert space at front and \n at the end.
7190 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value.
7191
7192 * regex.c (re_wctype): Try to fix some warnings.
7193 (regcomp, regexec): Don't forget the __restrict.
7194
7195 2001-11-02 Richard M. Stallman <rms@gnu.org>
7196
7197 * textprop.c (Fget_char_property): Doc fix.
7198
7199 2001-11-02 Pavel Jan,Am(Bk <Pavel@Janik.cz>
7200
7201 * process.c (Fstart_process): Add usage to doc-string.
7202
7203 * data.c (Fsetq_default): Ditto.
7204
7205 * callint.c (Finteractive): Ditto.
7206
7207 2001-11-01 Stefan Monnier <monnier@cs.yale.edu>
7208
7209 * macros.c: Don't include keymap.h any more.
7210
7211 2001-11-01 Richard M. Stallman <rms@gnu.org>
7212
7213 * data.c (Fmake_local_variable): Doc fix.
7214
7215 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix.
7216 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix.
7217
7218 * keymap.c (Fdescribe_buffer_bindings): Print character property
3454 bindings along with or instead of the buffer local map. 7219 bindings along with or instead of the buffer local map.
3455 Make the overriding maps override what they should. 7220 Make the overriding maps override what they should.
3456 7221
3457 2001-11-01 Pavel Jan,Am(Bk <Pavel@Janik.cz> 7222 2001-11-01 Pavel Jan,Am(Bk <Pavel@Janik.cz>
3458 7223