Mercurial > emacs
comparison src/ChangeLog @ 88816:028259b11c0d
Truncate to reflect only the branch.
author | Dave Love <fx@gnu.org> |
---|---|
date | Mon, 01 Jul 2002 17:37:27 +0000 |
parents | 515ca7d12013 |
children | 2a39da7c94ef |
comparison
equal
deleted
inserted
replaced
88815:557d65677c96 | 88816:028259b11c0d |
---|---|
740 CHAR_WIDTH instead of CHARSET_WIDTH. | 740 CHAR_WIDTH instead of CHARSET_WIDTH. |
741 (XTread_socket): Adjusted for the new code-conversion API. | 741 (XTread_socket): Adjusted for the new code-conversion API. |
742 (x_new_font): Adjusted for the change of FS_LOAD_FONT. | 742 (x_new_font): Adjusted for the change of FS_LOAD_FONT. |
743 (x_load_font): Adjusted for the change of struct font. | 743 (x_load_font): Adjusted for the change of struct font. |
744 | 744 |
745 2002-02-26 Kim F. Storm <storm@cua.dk> | |
746 | |
747 The following changes add a new Vminibuf_selected_window variable | |
748 which is similar to Vminibuf_scroll_window, but which is only set | |
749 on entry to the minibuffer (from a non-minibuffer window): | |
750 | |
751 * window.c: (Vminibuf_selected_window): New variable. | |
752 (struct save_window_data): New member minibuf_selected_window. | |
753 (Fset_window_configuration): Restore Vminibuf_selected_window. | |
754 (Fcurrent_window_configuration): Save Vminibuf_selected_window. | |
755 Set minibuf_scroll_window member to nil if minibuf_level is 0. | |
756 (compare_window_configurations): Compare minibuf_selected_window. | |
757 | |
758 * window.h: (Vminibuf_selected_window): Declare extern. | |
759 | |
760 * minibuf.c (read_minibuf): Set Vminibuf_selected_window on first | |
761 entry to minibuffer or on entry from a non-minibuffer window. | |
762 | |
763 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Compare with | |
764 Vminibuf_selected_window instead of Vminibuf_scroll_window. | |
765 | |
766 * xdisp.c (init_iterator): Compare with Vminibuf_selected_window | |
767 instead of Vminibuf_scroll_window when deciding in which window | |
768 the region should be highlighted. Consequently, the region remains | |
769 highlighteded even when a completion buffer is also displayed. | |
770 | |
771 2002-02-26 Eli Zaretskii <eliz@is.elta.co.il> | |
772 | |
773 * fileio.c (Fsubstitute_in_file_name): Fix the change from | |
774 2002-02-08. | |
775 | |
776 * xselect.c (Qcompound_text_with_extensions): Renamed from | |
777 Qcompound_text_no_extensions. | |
778 (lisp_data_to_selection_data, syms_of_xselect): Use the new name. | |
779 | |
780 2002-02-26 Juanma Barranquero <lektu@terra.es> | |
781 | |
782 * w32proc.c (syms_of_ntproc): Doc fix. | |
783 | |
784 2002-02-24 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
785 | |
786 * intervals.h: Include "dispextern.h" unconditionally. | |
787 | |
788 2002-02-24 Jason Rumney <jasonr@gnu.org> | |
789 | |
790 * Makefile.in (WINNT_SUPPORT) [WINDOWSNT]: Add w32-vars.elc | |
791 and disp-table.elc. | |
792 (lisp): Add emacs-lisp/backquote.elc. | |
793 | |
794 2002-02-24 Kim F. Storm <storm@cua.dk> | |
795 | |
796 * keymap.c (Flookup_key): Fixed problem in 2001-12-28 patch: | |
797 The validation of the event type was too strict as it didn't | |
798 allow string events; buffer names are used in bindings for | |
799 menu-bar-select-buffer (see `menu-bar-update-buffers'). | |
800 | |
801 2002-02-23 Kim F. Storm <storm@cua.dk> | |
802 | |
803 The following changes rework my patch of 2002-02-06 which | |
804 added command remapping by entering the commands directly into | |
805 the keymaps. Now, command remapping uses an explicit `remap' | |
806 prefix in the keymaps, i.e. [remap COMMAND]. | |
807 | |
808 * keymap.c (Qremap, remap_command_vector): New variables. | |
809 (is_command_symbol): Removed function. | |
810 (Fdefine_key): No longer accept a symbol for KEY. Added | |
811 validation of [remap COMMAND] argument for KEY. The DEF is no | |
812 longer required to be a symbol when remapping a command. | |
813 (Fremap_command): New function to remap command through keymaps. | |
814 (Flookup_key): Perform command remapping initiated by | |
815 Fremap_command directly for speed. | |
816 (Fkey_binding): Use Fremap_command for command remapping. | |
817 (where_is_internal): Handle new command remapping representation. | |
818 (syms_of_keymap): Intern Qremap, initialize remap_command_vector, | |
819 staticpro them. Defsubr Fremap_command. | |
820 | |
821 * keymap.h (Fremap_command): Declare extern. | |
822 (is_command_symbol): Remove extern. | |
823 | |
824 * keyboard.c (command_loop_1): Use Fremap_command for command | |
825 remapping; now try command remapping for all symbols. | |
826 | |
827 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il> | |
828 | |
829 * coding.h (run_pre_post_conversion_on_str): Add prototype. | |
830 | |
831 2002-02-23 Jason Rumney <jasonr@gnu.org> | |
832 | |
833 * w32select.c (Fw32_set_clipboard_data): Run pre-write-conversion | |
834 on the string before encoding it. | |
835 (Fw32_get_clipboard_data): Run post-read-conversion on the string | |
836 after decoding it. | |
837 | |
838 * w32fns.c (w32_wnd_proc) <WM_TIMER>: Fix last change. | |
839 | |
840 2002-02-23 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
841 | |
842 * w32term.c (enter_timestamp): Remove unused static variable to | |
843 prevent warning. | |
844 | |
845 * xterm.c (enter_timestamp): Put in #if 0 to prevent warning. | |
846 | |
847 2002-02-23 Eli Zaretskii <eliz@is.elta.co.il> | |
848 | |
849 * w16select.c (Fw16_get_clipboard_data): Fix last change. | |
850 | |
851 * xselect.c (selection_data_to_lisp_data): Fix last change. | |
852 | |
853 2002-02-22 Jason Rumney <jasonr@gnu.org> | |
854 | |
855 * w32term.h (struct w32_output): New member menu_command_in_progress. | |
856 | |
857 * w32menu.c (menubar_selection_callback): Free the menu and | |
858 clear the menu_command_in_progress flag. | |
859 | |
860 * w32fns.c (mouse_move_timer, mouse_button_timer): Initialize. | |
861 (menu_free_timer): New variable. | |
862 (MENU_FREE_ID, MENU_FREE_DELAY): New constants. | |
863 (w32_wnd_proc) <WM_TIMER>: Handle menu_free_timer. | |
864 <WM_EXITMENULOOP>: Delay before freeing menu. Do nothing if a | |
865 menu command is in progress. | |
866 <WM_COMMAND>: Set the menu_command_in_progress flag. Kill | |
867 any menu_free_timer that is running. | |
868 | |
869 * w32term.c (w32_text_out): Renamed from W32_TEXTOUT. | |
870 Call ExtTextOutA rather than ExtTextOut. | |
871 | |
872 2002-02-22 Eli Zaretskii <eliz@gnu.org> | |
873 | |
874 * puresize.h (BASE_PURESIZE): Increase to 755000. | |
875 | |
876 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il> | |
877 | |
878 * w16select.c (Fw16_set_clipboard_data): Run pre-write-conversion | |
879 on the string before encoding it. | |
880 (Fw16_get_clipboard_data): Run post-read-conversion on the string | |
881 after decoding it. | |
882 | |
883 2002-02-22 Eli Zaretskii <eliz@is.elta.co.il> | |
884 | |
885 Support for ICCCM Extended Segments in X selections: | |
886 | |
887 * xselect.c <Qcompound_text_no_extensions>: New variable. | |
888 (syms_of_xselect): Intern and staticpro it. | |
889 (selection_data_to_lisp_data): Run post-read-conversion on decoded | |
890 selection text. | |
891 (lisp_data_to_selection_data): If next-selection-coding-system is | |
892 compound-text-no-extensions, set the type of selection to be | |
893 compound-text. | |
894 | |
895 * xterm.h (x_encode_text): Update prototype. | |
896 | |
897 * xfns.c (x_encode_text): Accept additional arg SELECTIONP; all | |
898 callers changed. If SELECTIONP is non-zero, run the | |
899 pre-write-conversion function before encoding the selection text. | |
900 | |
901 2002-02-21 Kim F. Storm <storm@cua.dk> | |
902 | |
903 * frame.c (syms_of_frame): Change mouse-highlight default to t. | |
904 | |
905 * keyboard.c (kbd_buffer_get_event) [WINDOWSNT]: Corrected | |
906 composing of language-change event. | |
907 | |
908 2002-02-20 Kim F. Storm <storm@cua.dk> | |
909 | |
910 * keyboard.c (menu_bar_items): Don't include keymap or local-map | |
911 bindings at PT when building menu (the menu is not updated often | |
912 enough for this to work reliable). | |
913 (tool_bar_items): Likewise. | |
914 (current_active_maps): Removed unused (and buggy) function. | |
915 | |
916 2002-02-20 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
917 | |
918 * xfns.c (gif_load): Use correct width and height for GIF images. | |
919 | |
920 2002-02-19 Eli Zaretskii <eliz@is.elta.co.il> | |
921 | |
922 * floatfns.c (Fatan): Accept an optional second arg and call | |
923 atan2 if passed 2 args. | |
924 | |
925 2002-02-18 Jason Rumney <jasonr@gnu.org> | |
926 | |
927 * w32term.c (glyph_rect): Determine the row and glyph more precisely. | |
928 | |
929 2002-02-17 Jason Rumney <jasonr@gnu.org> | |
930 | |
931 * w32term.c (x_autoselect_window_p): New variable. | |
932 (syms_of_w32term): DEFVAR_BOOL and initialize it. | |
933 (note_mouse_movement): Use it. | |
934 | |
935 * w32fns.c (w32_load_system_font): Never set fonts_changed_p to zero. | |
936 | |
937 * w32bdf.c (w32_load_bdf_font): Maybe set fonts_changed_p. | |
938 | |
939 * w32fns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth): | |
940 New variables. | |
941 (syms_of_w32fns): Intern and staticpro them. | |
942 (x_frame_parms) <"fullscreen">: New parameter. | |
943 (x_fullscreen_move, x_set_fullscreen): New functions. | |
944 (x_set_frame_parameters): Support Qfullscreen. | |
945 (x_real_positions): Save x/y_pixels_diff frame params. | |
946 (x_figure_window_size): Support full-screen frames. | |
947 (Fx_create_frame): Default the fullscreen parameter. | |
948 | |
949 * w32term.c (x_check_fullscreen, x_check_fullscreen_move) | |
950 (x_fullscreen_adjust): New functions. | |
951 (w32_read_socket) <WM_WINDOWPOSCHANGED>: Don't resize to | |
952 fullscreen. Call x_check_fullscreen_move, and set the | |
953 want_fullscreen member of output_data.w32 | |
954 <WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen. | |
955 | |
956 * w32term.h: New enum for FULLSCREEN_* constants. | |
957 (struct w32_output): New members want_fullscreen, x_pixels_diff, | |
958 y_pixels_diff, x_pixels_outer_diff, and y_pixels_outer_diff. | |
959 (x-fullscreen-adjust): New prototype. | |
960 | |
961 2002-02-17 Kim F. Storm <storm@cua.dk> | |
962 | |
963 * frame.c: (Vmouse_highlight): New variable. | |
964 (syms_of_frame): DEFVAR_LISP it. | |
965 | |
966 * frame.h: (Vmouse_highlight): Declare extern. | |
967 | |
968 * xterm.h (struct x_display_info): Add mouse_face_hidden. | |
969 | |
970 * xterm.c (disable_mouse_highlight): Removed variable. | |
971 (note_mouse_highlight): Don't highlight if Vmouse_highlight is nil. | |
972 (show_mouse_face): Don't show highlight if mouse_face_hidden is set. | |
973 (XTread_socket): Turn mouse_face_hidden off after mouse movement, | |
974 and on after keyboard input. | |
975 (x_term_init): Initialize mouse_face_hidden. | |
976 | |
977 * msdos.h (struct display_info): Add mouse_face_hidden. | |
978 | |
979 * msdos.c (disable_mouse_highlight): Removed variable. | |
980 (show_mouse_face): Don't show highlight if mouse_face_hidden is set. | |
981 (IT_note_mouse_highlight): Don't highlight if Vmouse_highlight is nil. | |
982 (internal_terminal_init): Initialize mouse_face_hidden. | |
983 (dos_rawgetc): Turn mouse_face_hidden off after mouse movement, | |
984 and on after keyboard input. | |
985 | |
986 * w32term.h (struct w32_display_info): Add mouse_face_hidden. | |
987 | |
988 * w32term.c (disable_mouse_highlight): Removed variable. | |
989 (note_mouse_highlight): Disable highlight if Vmouse_highlight is nil. | |
990 (show_mouse_face): Don't show highlight if mouse_face_hidden is set. | |
991 (w32_read_socket): Turn mouse_face_hidden off after mouse movement, | |
992 and on after keyboard input. | |
993 (w32_initialize_display_info): Initialize mouse_face_hidden. | |
994 | |
995 2002-02-16 Eli Zaretskii <eliz@is.elta.co.il> | |
996 | |
997 * msdos.c (last_mouse_window): New variable. | |
998 (dos_rawgetc): Fix last change--if the mouse is in the same window | |
999 as recorded in last_mouse_window, don't select this window. | |
1000 | |
1001 * Makefile.in (lisp, shortlisp): Use cus-start.elc, not | |
1002 cus-start.el. | |
1003 | |
1004 * msdos.c (x_autoselect_window_p): New variable. | |
1005 (syms_of_msdos): Defvar it. | |
1006 (dos_rawgetc): If x_autoselect_window_p is set, select the window | |
1007 in which the last mouse movement occured, unless it is already | |
1008 selected. | |
1009 | |
1010 * xdisp.c (automatic_hscroll_margin, Vautomatic_hscroll_step): New | |
1011 variables. | |
1012 (syms_of_xdisp): DEVFAR them. | |
1013 (hscroll_window_tree): Use automatic_hscroll_margin and | |
1014 Vautomatic_hscroll_step to compute the amount of window scrolling. | |
1015 | |
1016 2002-02-16 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
1017 | |
1018 * xterm.c (x-autoselect-window): New variable. | |
1019 (note_mouse_movement): Use it. | |
1020 | |
1021 * keyboard.c: Do not include "systime.h" twice. | |
1022 | |
1023 2002-02-15 Andreas Schwab <schwab@suse.de> | |
1024 | |
1025 * puresize.h (BASE_PURESIZE): Increase to 9/5. | |
1026 | |
1027 * alloc.c (NSTATICS): Increase to 1280. | |
1028 | |
1029 2002-02-15 Kai Gro,A_(Bjohann <Kai.Grossjohann@CS.Uni-Dortmund.DE> | |
1030 | |
1031 * alloc.c (NSTATICS): Bump to 1026. | |
1032 | |
1033 * xterm.c (Vx_alt_keysym, Vx_hyper_keysym, Vx_meta_keysym) | |
1034 (Vx_super_keysym): New variables. | |
1035 (syms_of_xterm): DEFVAR_LISP them. | |
1036 (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): Use the | |
1037 variables to determine which keys to use for the various | |
1038 modifiers. | |
1039 | |
1040 2002-02-13 Kim F. Storm <storm@cua.dk> | |
1041 | |
1042 * window.c: (Vmode_line_in_non_selected_windows): Removed. | |
1043 (mode_line_in_non_selected_windows): New variable. | |
1044 (syms_of_window): DEFVAR_BOOL it. | |
1045 | |
1046 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): Use | |
1047 mode_line_in_non_selected_windows. | |
1048 (mode_line_in_non_selected_windows): Declare extern. | |
1049 (Vmode_line_in_non_selected_windows): Removed extern. | |
1050 | |
1051 2002-02-13 Richard M. Stallman <rms@gnu.org> | |
1052 | |
1053 * keyboard.c (Fthis_command_keys, Fthis_command_keys_vector) | |
1054 (Fthis_single_command_keys, Fthis_single_command_raw_keys) | |
1055 (Fclear_this_command_keys): Doc fixes. | |
1056 | |
1057 * xfaces.c (Finternal_make_lisp_face, Finternal_copy_lisp_face) | |
1058 (update_face_from_frame_parameter): Increment face_change_count | |
1059 and windows_or_buffers_changed to force redisplay using changed faces. | |
1060 | |
1061 * xdisp.c (QCpropertize): New variable. | |
1062 (mode_line_proptrans_alist): New variable. | |
1063 (display_mode_element): New arg PROPS; all calls changed. | |
1064 Implement this, for strings. | |
1065 Handle literal output of strings by sharing the | |
1066 main-line code for strings, using local var `literal'. | |
1067 Handle :propertize feature. | |
1068 (syms_of_xdisp): Initialze and staticpro QCpropertize and | |
1069 mode_line_proptrans_alist. | |
1070 | |
1071 2002-02-11 Kim F. Storm <storm@cua.dk> | |
1072 | |
1073 * window.c: (Vmode_line_in_non_selected_windows): New variable. | |
1074 (syms_of_window): DEFVAR_LISP it. | |
1075 | |
1076 * dispextern.h (CURRENT_MODE_LINE_FACE_ID_3): New macro. | |
1077 (CURRENT_MODE_LINE_FACE_ID): Use it. | |
1078 (Vmode_line_in_non_selected_windows): Declare extern. | |
1079 | |
1080 * xdisp.c (display_mode_lines): Use CURRENT_MODE_LINE_FACE_ID_3 | |
1081 to get mode line face. | |
1082 | |
1083 2002-02-11 Eli Zaretskii <eliz@is.elta.co.il> | |
1084 | |
1085 * msdos.c (Vx_bitmap_file_path, x_stretch_cursor_p): Remove these | |
1086 variables; cus-start.el doesn't need them anymore. | |
1087 | |
1088 2002-02-09 Kim F. Storm <storm@cua.dk> | |
1089 | |
1090 * insdel.c (make_gap_smaller): Preserve BEG_UNCHANGED during gap | |
1091 reduction. This fixes a display problem where stray newlines were | |
1092 inserted in the window (corrected by C-l). Clarified code (IMHO). | |
1093 | |
1094 2002-02-09 Eli Zaretskii <eliz@is.elta.co.il> | |
1095 | |
1096 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): Fix last change. | |
1097 | |
1098 * xdisp.c (display_mode_lines): Fix last change. | |
1099 | |
1100 2002-02-09 Jason Rumney <jasonr@gnu.org> | |
1101 | |
1102 * w32fns.c (enum_font_cb2): Don't let charsets unknown to Windows | |
1103 match each other. | |
1104 (w32_load_system_font): Prevent Cleartype fonts from loading. | |
1105 (Fx_show_tip): Ensure tip frames are above other topmost windows. | |
1106 | |
1107 2002-02-09 Kim F. Storm <storm@cua.dk> | |
1108 | |
1109 * dispextern.h (CURRENT_MODE_LINE_FACE_ID): New macro. | |
1110 (CURRENT_MODE_LINE_HEIGHT): Use it. | |
1111 (enum face_id): Add MODE_LINE_INACTIVE_FACE_ID. | |
1112 | |
1113 * xdisp.c (window_box_height): Use CURRENT_MODE_LINE_FACE_ID. | |
1114 (pos_visible_p, handle_face_prop): Likewise. | |
1115 (display_mode_lines): Likewise, but for the real selected window. | |
1116 (init_iterator) [row == NULL]: Handle MODE_LINE_INACTIVE_FACE_ID. | |
1117 | |
1118 * xfaces.c (Qmode_line_inactive): New face variable for mode-line | |
1119 in non-selected windows. | |
1120 (realize_basic_faces): Realize it. | |
1121 (syms_of_term): Intern and staticpro it. | |
1122 | |
1123 2002-02-08 Kim F. Storm <storm@cua.dk> | |
1124 | |
1125 * alloc.c (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): | |
1126 Changed mail addresses to emacs-devel@gnu.org. | |
1127 | |
1128 2002-02-08 Eli Zaretskii <eliz@is.elta.co.il> | |
1129 | |
1130 * fileio.c (Fsubstitute_in_file_name): If the file name includes | |
1131 ~user, and there's no such user, don't discard everything before | |
1132 ~user. | |
1133 | |
1134 * floatfns.c (Fround): Doc fix. | |
1135 | |
1136 2002-02-08 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
1137 | |
1138 * sysdep.c (init_system_name): Put unused variable `p' in #if 0. | |
1139 | |
1140 2002-02-07 Stefan Monnier <monnier@cs.yale.edu> | |
1141 | |
1142 * lisp.h (Fx_file_dialog): Add extern decl (used in fileio.c). | |
1143 | |
1144 2002-02-07 Kim F. Storm <storm@cua.dk> | |
1145 | |
1146 * keymap.c (where_is_internal): Only check whether definition is | |
1147 remapped if it fulfills is_command_symbol. | |
1148 | |
1149 2002-02-07 Andreas Schwab <schwab@suse.de> | |
1150 | |
1151 * s/gnu-linux.h (GC_LISP_OBJECT_ALIGNMENT): Define to 2 for m68k. | |
1152 | |
1153 * alloc.c (mark_stack): Don't assume sizeof (Lisp_Object) is 4. | |
1154 | |
1155 2002-02-06 Kim F. Storm <storm@cua.dk> | |
1156 | |
1157 * keymap.c (Fdefine_key): Allow symbol as KEY argument for | |
1158 defining command remapping. Doc updated. | |
1159 (Flookup_key): Remap command through keymap if KEY is a symbol. | |
1160 (is_command_symbol): New function. | |
1161 (Fkey_binding): Use it. New optional argument NO-REMAP. | |
1162 Doc updated. Callers changed. Perform command remapping via | |
1163 recursive call unless that arg is non-nil. | |
1164 (where_is_internal): New argument no_remap. Callers changed. | |
1165 Call recursively to find original key bindings for a remapped | |
1166 comand unless that arg is non-nil. | |
1167 (Fwhere_is_internal): New optional argument NO-REMAP. | |
1168 Doc updated. Callers changed. Pass arg to where_is_internal. | |
1169 | |
1170 * keymap.h (Fkey_binding, Fwhere_is_internal): Update prototype. | |
1171 (is_command_symbol): Added prototype. | |
1172 | |
1173 * keyboard.c (Vthis_original_command): New variable. | |
1174 (syms_of_keyboard): DEFVAR_LISP it. | |
1175 (command_loop_1): Set it, and perform command remapping. | |
1176 | |
1177 2002-02-06 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
1178 | |
1179 * keyboard.c (recursive_edit_1): Call cancel_hourglass | |
1180 unconditionally. | |
1181 | |
1182 2002-02-06 Jason Rumney <jasonr@gnu.org> | |
1183 | |
1184 * w32term.c (w32_native_per_char_metric): Disable 2002-01-20 change. | |
1185 | |
1186 2002-02-06 Eli Zaretskii <eliz@is.elta.co.il> | |
1187 | |
1188 * charset.c (get_charset_id): Use if-else instead of ?:. | |
1189 | |
1190 2002-02-06 Richard M. Stallman <rms@gnu.org> | |
1191 | |
1192 * filelock.c (S_ISLNK): Define if not defined. | |
1193 | |
1194 2002-02-03 Richard M. Stallman <rms@gnu.org> | |
1195 | |
1196 * fileio.c (Fdo_auto_save): Improve "auto save disabled" msg. | |
1197 | |
1198 * lread.c (read1): Redesign strategy for force_multibyte and | |
1199 force_singlebyte. Now is_multibyte records whether read_buffer | |
1200 is multibyte. Encountering any multibyte character makes it so. | |
1201 | |
1202 2002-02-02 Stefan Monnier <monnier@cs.yale.edu> | |
1203 | |
1204 * term.c (term_get_fkeys_1): If `k0' and `k;' are both specified and | |
1205 with the same sequence, map that sequence to f10 rather than f0. | |
1206 | |
1207 2002-02-03 Andreas Schwab <schwab@suse.de> | |
1208 | |
1209 * s/gnu-linux.h: Check for __mc68000__ instead of __m68k__, the | |
1210 latter never being defined on GNU/Linux. | |
1211 | |
1212 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il> | |
1213 | |
1214 * xfaces.c (realize_default_face): Don't set the weight and slant | |
1215 of the default face to Qnormal, unless these attributes are | |
1216 unspecified. | |
1217 | |
1218 2002-02-02 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
1219 | |
1220 * keyboard.c (command_loop_1) [HAVE_X_WINDOWS]: | |
1221 Call cancel_hourglass unconditionally. | |
1222 | |
1223 * eval.c (Fsignal): Remove duplicated declaration of | |
1224 the variable `display_hourglass_p'. | |
1225 | |
1226 2002-01-31 Richard M. Stallman <rms@gnu.org> | |
1227 | |
1228 * editfns.c (region_limit): Nicer error message. | |
1229 | |
1230 * coding.c (decode_composition_emacs_mule): | |
1231 Give up if NCOMPONENT gets too large to index `component'. | |
1232 | |
1233 * callint.c (check_mark): New arg to specify clearer error message. | |
1234 Callers changed. | |
1235 | |
1236 2002-01-27 Richard M. Stallman <rms@gnu.org> | |
1237 | |
1238 * minibuf.c (Fcompleting_read): Doc fix. | |
1239 | |
1240 2002-01-27 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
1241 | |
1242 * minibuf.c (Fread_from_minibuffer, Fread_command, Fread_function) | |
1243 (Fread_variable, Fread_buffer, minibuffer-completion-confirm): | |
1244 Fix doc-strings. | |
1245 | |
1246 2002-01-26 Richard M. Stallman <rms@gnu.org> | |
1247 | |
1248 * buffer.c (syms_of_buffer): Doc fixes for scroll-...-aggressively. | |
1249 | |
1250 * xdisp.c (try_scrolling): Exchange uses of scroll_down_aggressively | |
1251 and scroll_up_aggressively. | |
1252 | |
1253 2002-01-26 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
1254 | |
1255 * keyboard.c (parse_tool_bar_item): Remove duplicated prototypes. | |
1256 | |
1257 2002-01-25 Stefan Monnier <monnier@cs.yale.edu> | |
1258 | |
1259 * textprop.c (Fnext_property_change, Fnext_single_property_change) | |
1260 (Fprevious_property_change, Fprevious_single_property_change): | |
1261 Stay within the narrowed-buffer boundaries. | |
1262 | |
1263 2002-01-25 Eli Zaretskii <eliz@is.elta.co.il> | |
1264 | |
1265 * term.c (Ftty_display_color_cells): New function. | |
1266 (syms_of_term): Defsubr it. | |
1267 (Ftty_display_color_cells, Ftty_display_color_p): Change the | |
1268 argument name to DISPLAY. Doc fix. | |
1269 | |
1270 * dispextern.h: Add prototype for set_tty_color_mode and | |
1271 tty_setup_colors. | |
1272 | |
1273 2002-01-24 Jason Rumney <jasonr@gnu.org> | |
1274 | |
1275 * w32term.c (x_scroll_run): Use ScrollWindowEx in place of BitBlt. | |
1276 If region left to draw is not what was expected, mark the frame as | |
1277 garbaged. | |
1278 | |
1279 * w32fns.c (w32_wnd_proc) <WM_PAINT>: Initialize update_rect. | |
1280 Combine the regions returned by BeginPaint and GetUpdateRect. | |
1281 | |
1282 2002-01-23 Jason Rumney <jasonr@gnu.org> | |
1283 | |
1284 * w32term.c (x_update_window_begin): Only hide caret if | |
1285 w32_use_visible_system_caret is set. | |
1286 (x_update_window_end): Only show caret if | |
1287 w32_use_visible_system_caret is set. | |
1288 (syms_of_w32term): Handle SystemParametersInfo call failing. | |
1289 | |
1290 * w32fns.c (syms_of_w32fns): Initialize w32_visible_system_caret_hwnd. | |
1291 | |
1292 2002-01-22 Richard M. Stallman <rms@gnu.org> | |
1293 | |
1294 * unexelf.c (unexec): Define n so as to cause compilation error | |
1295 for the code where people have often written n instead of nn. | |
1296 | |
1297 * .gdbinit (hookpost-run): Defined. | |
1298 | |
1299 2002-01-22 Jan D. <Jan.Djarv@mbox200.swipnet.se> | |
1300 | |
1301 * xfns.c (x_set_frame_parameters): Typo in previous fix corrected. | |
1302 | |
1303 2002-01-21 Jan D. <Jan.Djarv@mbox200.swipnet.se> | |
1304 | |
1305 * xfns.c (x_set_frame_parameters): Just call x_fullscreen_adjust | |
1306 if fullscreen is being set. | |
1307 | |
1308 2002-01-21 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
1309 | |
1310 * minibuf.c (Fminibuffer_contents) | |
1311 (Fminibuffer_contents_no_properties, Fread_from_minibuffer) | |
1312 (Fread_string, Fread_no_blanks_input, Fcompleting_read): Doc fixes. | |
1313 | |
1314 2002-01-21 Richard M. Stallman <rms@gnu.org> | |
1315 | |
1316 * window.c (check_frame_size): Fix minimum height calculation. | |
1317 | |
1318 2002-01-20 Ken Raeburn <raeburn@gnu.org> | |
1319 | |
1320 * dispextern.h (WINDOW_WANTS_MODELINE_P): Use XFASTINT on window | |
1321 height before comparison. | |
1322 (WINDOW_WANTS_HEADER_LINE_P): Likewise. | |
1323 | |
1324 2002-01-20 Jason Rumney <jasonr@gnu.org> | |
1325 | |
1326 * w32term.c (w32_system_caret_width): Remove. | |
1327 (w32_use_visible_system_caret): New user flag. | |
1328 (syms_of_w32term): DEFVAR_BOOL it. Initialize based on whether | |
1329 Windows reports a screen reader running. | |
1330 (x_update_window_begin): Hide the system caret. | |
1331 (x_update_window_end): Show the system caret. | |
1332 (x_display_and_set_cursor): Don't draw a cursor when | |
1333 w32_use_visible_system_caret is set. Do not adjust width. | |
1334 | |
1335 * w32fns.c (w32_visible_system_caret_hwnd): New static variable. | |
1336 (w32_wnd_proc) <WM_KILL_FOCUS, WM_EMACS_DESTROY_CARET>: Set it. | |
1337 <WM_EMACS_TRACK_CARET>: Arrange for system caret to be visible if | |
1338 the user requests it. Use system default width when creating. | |
1339 <WM_EMACS_HIDE_CARET, WM_EMACS_SHOW_CARET>: Handle new messages. | |
1340 | |
1341 * w32term.h (WM_EMACS_SHOW_CARET, WM_EMACS_HIDE_CARET): | |
1342 New window messages. | |
1343 | |
1344 2002-01-20 Richard M. Stallman <rms@gnu.org> | |
1345 | |
1346 * window.c (MIN_SAFE_WINDOW_HEIGHT): Value now 1. | |
1347 | |
1348 2002-01-20 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
1349 | |
1350 * doprnt.c (doprnt1): Fix typos in error call. | |
1351 | |
1352 2002-01-20 Eli Zaretskii <eliz@is.elta.co.il> | |
1353 | |
1354 * unexelf.c (unexec) [__sgi]: Support the .got sections. | |
1355 | |
1356 2002-01-20 Jason Rumney <jasonr@gnu.org> | |
1357 | |
1358 * w32term.c (w32_native_per_char_metric): Don't trust the metrics | |
1359 that Windows returns. If a double check fails, try to guess how | |
1360 ExtTextOut is going to act. | |
1361 | |
1362 * w32fns.c (w32_load_system_font, w32_to_x_charset): Use strnicmp | |
1363 in place of stricmp. | |
1364 (w32_list_synthesized_fonts): Removed. | |
1365 (w32_to_all_x_charsets, enum_font_maybe_add_to_list): New functions. | |
1366 (struct enumfont_t): New element; list. | |
1367 (enum_font_cb2): List all style and charset variations of a font. | |
1368 (Fw32_select_font): New optional argument; include_proportional. | |
1369 Exclude vertical fonts. Exclude proportional fonts unless | |
1370 include_proportional is non-nil. | |
1371 (w32_enable_synthesized_fonts): Change to a boolean. | |
1372 (Fw32_send_sys_command): Doc fix. | |
1373 | |
1374 2002-01-19 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
1375 | |
1376 * dispnew.c (update_frame): Move the variable `tem' to the block | |
1377 where it is used. | |
1378 | |
1379 2002-01-19 Jason Rumney <jasonr@gnu.org> | |
1380 | |
1381 * w32fns.c (Fx_create_frame): Bind redisplay-dont-pause around | |
1382 call to face-set-after-frame-default. | |
1383 | |
1384 2002-01-18 Richard M. Stallman <rms@gnu.org> | |
1385 | |
1386 * dispextern.h (WINDOW_WANTS_MODELINE_P): Check window height > 1. | |
1387 (WINDOW_WANTS_HEADER_LINE_P): Check window height provides room. | |
1388 | |
1389 2002-01-17 Richard M. Stallman <rms@gnu.org> | |
1390 | |
1391 * window.c (enlarge_window): When exceeding size of parent, | |
1392 directly delete all the siblings instead of trying to resize it. | |
1393 | |
1394 2002-01-17 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
1395 | |
1396 * term.c (set_tty_color_mode): Remove unused variable `tem'. | |
1397 | |
1398 2002-01-16 Henrik Enberg <henrik@enberg.org> | |
1399 | |
1400 * lread.c (init_lread): Move the installed-lisp dirs later in the path. | |
1401 | |
1402 2002-01-16 Kim F. Storm <storm@cua.dk> | |
1403 | |
1404 * xterm.c (x_erase_phys_cursor): Don't erase cursor if cursor row | |
1405 is invisible. This can happen if cursor is on top line of a | |
1406 window, and we switch to a buffer with a header line. | |
1407 | |
1408 * w32term.c (x_erase_phys_cursor): Ditto. | |
1409 | |
1410 2002-01-16 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
1411 | |
1412 * xterm.c (XTread_socket) [!USE_X_TOOLKIT]: Compute the value of | |
1413 `dont_resize' only when used. | |
1414 | |
1415 * xdisp.c: Remove forgotten extern declaration of `Qimage'. | |
1416 | |
1417 2002-01-15 Eli Zaretskii <eliz@is.elta.co.il> | |
1418 | |
1419 * xdisp.c (display_mode_element): When computing charpos, depend | |
1420 on multibyteness of elt, not the text in field. | |
1421 | |
1422 2002-01-15 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
1423 | |
1424 * buffer.c (Fkill_all_local_variables): Increment | |
1425 `update_mode_lines' only once. | |
1426 | |
1427 2002-01-14 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
1428 | |
1429 * lisp.h (adjust_after_replace_noundo) | |
1430 (Fupdate_coding_systems_internal): Add prototypes. | |
1431 | |
1432 * sound.c (Fplay_sound): Initialize header_size also for :data case. | |
1433 | |
1434 2002-01-14 Eli Zaretskii <eliz@is.elta.co.il> | |
1435 | |
1436 Support for the --color command-line argument and tty-color-mode | |
1437 frame parameter: | |
1438 | |
1439 * term.c (tty_default_color_capabilities, tty_setup_colors) | |
1440 (set_tty_color_mode): New functions. | |
1441 (term_init): Call tty_default_color_capabilities. | |
1442 (Qtty_color_mode_alist): New variable. | |
1443 (syms_of_term): Intern and staticpro it. | |
1444 | |
1445 * frame.c (store_frame_param): Call set_tty_color_mode for termcap | |
1446 frames. | |
1447 (do_switch_frame): For termcap frames, switch the tty | |
1448 color mode as specified by the frame's parameters. | |
1449 (Qtty_color_mode): New variable. | |
1450 (syms_of_frame): Intern and staticpro it. | |
1451 | |
1452 * emacs.c (USAGE2): Add the --color option. | |
1453 (standard_args): Ditto. | |
1454 | |
1455 2002-01-13 Jan Djarv <Jan.Djarv@mbox200.swipnet.se> | |
1456 | |
1457 * xterm.h (struct x_output): New members want_fullscreen, | |
1458 x_pixels_diff, y_pixels_diff, x_pixels_outer_diff, and | |
1459 y_pixels_outer_diff. | |
1460 New enum for FULLSCREEN_* constants. | |
1461 (FRAME_OUTER_WINDOW): Handle the case where output_data.x->widget | |
1462 is NULL. | |
1463 (x_fullscreen_adjust): Add prototype. | |
1464 | |
1465 * emacs.c (USAGE2): Add the new full-screen arguments. | |
1466 (standard_args): Ditto. | |
1467 | |
1468 * xfns.c (Qfullscreen, Qfullwidth, Qfullheight, Qfullboth): | |
1469 New variables. | |
1470 (syms_of_xfns): Intern and staticpro them. | |
1471 (x_frame_parms) <"fullscreen">: New parameter. | |
1472 (x_fullscreen_move, x_set_fullscreen): New functions. | |
1473 (x_set_frame_parameters): Support for Qfullscreen. | |
1474 (x_real_positions): More accurate computation of the frame position. | |
1475 (x_figure_window_size): Support full-screen frames. | |
1476 (Fx_create_frame): Default the fullscreen parameter. | |
1477 | |
1478 * xterm.c (x_check_fullscreen, x_fullscreen_adjust): New functions. | |
1479 (XTread_socket) <Expose>: Call x_check_fullscreen. | |
1480 <ConfigureNotify>: Don't resize to fullscreen. | |
1481 Call x_check_fullscreen_move, and set the want_fullscreen member of | |
1482 output_data.x. | |
1483 | |
1484 2002-01-13 Jason Rumney <jasonr@gnu.org> | |
1485 | |
1486 * w32term.h (WM_XBUTTONDOWN, WM_XBUTTONUP): New window messages | |
1487 for mice with more than 3 buttons. | |
1488 | |
1489 * w32term.c (parse_button): New parameter xbutton. Callers changed. | |
1490 (w32_read_socket): Handle new "XBUTTON" messages. | |
1491 | |
1492 * w32fns.c (w32_pass_extra_mouse_buttons_to_system): New user option. | |
1493 (syms_of_w32fns): DEFVAR_BOOL it. | |
1494 (w32_wnd_proc): Handle new "XBUTTON" messages. | |
1495 | |
1496 2002-01-13 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
1497 | |
1498 * keyboard.c (read_key_sequence): Remove unused variable `extra_maps'. | |
1499 | |
1500 2002-01-13 Andreas Schwab <schwab@suse.de> | |
1501 | |
1502 * xterm.c (x_load_font): Never set fonts_changed_p to zero. | |
1503 | |
1504 2002-01-12 Andreas Schwab <schwab@suse.de> | |
1505 | |
1506 * .gdbinit (xbuffer): Remove address operator since data is now a | |
1507 pointer. | |
1508 | |
1509 2002-01-11 Richard M. Stallman <rms@gnu.org> | |
1510 | |
1511 * insdel.c (adjust_after_replace_noundo): New function. | |
1512 | |
1513 * coding.c (code_convert_region): Don't copy old text if undo disabled. | |
1514 | |
1515 2002-01-09 Jason Rumney <jasonr@gnu.org> | |
1516 | |
1517 * xdisp.c (x_consider_frame_title): Don't count the tooltip frame | |
1518 when checking for multiple frames. | |
1519 | |
1520 2002-01-08 Richard M. Stallman <rms@gnu.org> | |
1521 | |
1522 * window.c (delete_window): Rewrite the code for changing the | |
1523 selected window to handle the case where WINDOW is not a leaf. | |
1524 | |
1525 2002-01-07 Eli Zaretskii <eliz@is.elta.co.il> | |
1526 | |
1527 * process.c (send_process): Set src_multibyte to 1 after the call | |
1528 top setup_coding_system, not before the call. | |
1529 | |
1530 2002-01-07 Jason Rumney <jasonr@gnu.org> | |
1531 | |
1532 * xmenu.c (set_frame_menubar, xmenu_show): | |
1533 (xdialog_show): Initialize wv->help to Qnil. | |
1534 | |
1535 * w32menu.c (single_submenu, set_frame_menubar, w32_menu_show): | |
1536 (w32_dialog_show): Initialize wv->help to Qnil. | |
1537 | |
1538 2002-01-06 Jason Rumney <jasonr@gnu.org> | |
1539 | |
1540 * xmenu.c (single_submenu): Initialize wv->help to Qnil. | |
1541 | |
1542 * w32menu.c (w32_menu_display_help): Revert last change. | |
1543 | |
1544 * xmenu.c (menu_highlight_callback): Revert last change. | |
1545 | |
1546 2002-01-06 Andreas Schwab <schwab@suse.de> | |
1547 | |
1548 * insdel.c (make_gap_larger): Make sure buffer size does not | |
1549 overflow range of int. | |
1550 | |
1551 2002-01-05 Jason Rumney <jasonr@gnu.org> | |
1552 | |
1553 * w32term.c (x_draw_glyphs): Don't call notice_overwritten_cursor if | |
1554 OVERLAPS_P. | |
1555 | |
1556 * w32menu.c (w32_menu_display_help): Hide any tooltip window. | |
1557 | |
1558 * w32fns.c (compute_tip_xy): If tooltip won't fit on the screen | |
1559 to the left or to the right of the pointer, put it against | |
1560 the left screen edge. | |
1561 (x_frame_parms): Add missing braces around initializer. | |
1562 | |
1563 * w32term.c (x_setup_relief_colors): Don't compute an image's | |
1564 background color if it doesn't have a Pixmap. | |
1565 (notice_overwritten_cursor): Don't depend on | |
1566 output_cursor and updated_area. Compare pixel coordinates with | |
1567 window's cursor pixel coordinates. | |
1568 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face): | |
1569 Call notice_overwritten_cursor with new arg list. | |
1570 (show_mouse_face): Fix bug setting a row's mouse_face_p flag | |
1571 unconditionally. | |
1572 (x_draw_image_relief): Use predefined macro instead of | |
1573 constant when the value of `tool_bar_button_relief' is negative. | |
1574 | |
1575 * w32term.c (x_display_and_set_cursor): Fix PostMessage arg types. | |
1576 | |
1577 2002-01-04 Richard M. Stallman <rms@gnu.org> | |
1578 | |
1579 * xmenu.c (menu_highlight_callback): Hide any tooltip window. | |
1580 | |
1581 2002-01-03 Richard M. Stallman <rms@gnu.org> | |
1582 | |
1583 * keymap.c (Fcurrent_active_maps): Put the `keymap' property map first. | |
1584 (Fkey_binding): Try the `keymap' property map first. | |
1585 (Fdescribe_buffer_bindings): Show `keymap' property bindings before | |
1586 minor mode bindings. | |
1587 | |
1588 2002-01-03 Kim F. Storm <storm@cua.dk> | |
1589 | |
1590 * keyboard.c (read_key_sequence): Fixed cast of submaps arg to bcopy. | |
1591 | |
1592 2002-01-02 Richard M. Stallman <rms@gnu.org> | |
1593 | |
1594 * keyboard.c (read_key_sequence): Handle the keymap property | |
1595 before minor mode maps. | |
1596 | |
1597 * editfns.c (Fformat): Update thissize from field_width | |
1598 based on the actual width, in the string case. | |
1599 | |
1600 2002-01-01 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
1601 | |
1602 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment | |
1603 when used as truth value to prevent gcc warnings. | |
1604 | |
1605 * sysdep.c, unexapollo.c, w32.c, w32bdf.c, w32heap.c, w32inevt.c, | |
1606 * w32proc.c: Include <config.h>. | |
1607 | |
1608 2002-01-01 Andreas Schwab <schwab@suse.de> | |
1609 | |
1610 * eval.c (max_specpdl_size, max_lisp_eval_depth): Define as int, | |
1611 not EMACS_INT, to make them compatible with DEFVAR_INT. | |
1612 * lisp.h (max_specpdl_size): Adjust declaration. | |
1613 | |
1614 2002-01-01 Richard M. Stallman <rms@gnu.org> | |
1615 | |
1616 * print.c (print_object): Test print_escape_nonascii only for | |
1617 unibyte strings. | |
1618 (PRINTPREPARE): Once again bind Qprint_escape_nonascii | |
1619 when outputting to a multibyte buffer. | |
1620 | |
1621 2001-12-29 Richard M. Stallman <rms@gnu.org> | |
1622 | |
1623 * print.c (print_object): In multibyte string, use hex escapes. | |
1624 Use octal only for unibyte strings. | |
1625 (PRINTPREPARE): Don't ever set Qprint_escape_nonascii. | |
1626 | |
1627 * lread.c (read_escape): New arg BYTEREP for reporting whether | |
1628 escape forces unibyte or multibyte. | |
1629 (read1): When reading a string, take note of that info. | |
1630 | |
1631 2001-12-29 Ken Raeburn <raeburn@gnu.org> | |
1632 | |
1633 * abbrev.c (Fexpand_abbrev): Use NILP instead of implicit zero | |
1634 comparison to test lisp value returned by Fget. | |
1635 | |
1636 2001-12-29 Richard M. Stallman <rms@gnu.org> | |
1637 | |
1638 * lisp.h (max_specpdl_size): Add declaration. | |
1639 | |
1640 * fileio.c (Fdo_auto_save): If NO_MESSAGE, don't call push_message. | |
1641 | |
1642 * keymap.c (silly_event_symbol_error): New subrtn, from Fdefine_key. | |
1643 Handle modifier bits. Correct typo in error message. | |
1644 | |
1645 2001-12-28 Richard M. Stallman <rms@gnu.org> | |
1646 | |
1647 * abbrev.c: Use the plist of an abbrev for multiple params if nec. | |
1648 (Fdefine_abbrev): New arg SYSTEM-FLAG for a system abbrev. | |
1649 (Fdefine_global_abbrev, Fdefine_mode_abbrev): | |
1650 Update calls to Fdefine_abbrev. | |
1651 (write_abbrev): Update for changed data format. | |
1652 Don't list "system" abbrevs. | |
1653 (Fexpand_abbrev): Update use count with new data format. | |
1654 (describe_abbrev): Update for changed data format. | |
1655 (Fdefine_abbrev_table): Handle the new SYSTEM-FLAG. | |
1656 | |
1657 * config.in (HAVE_MBSINIT): Add #undef. | |
1658 | |
1659 * strftime.c (mbsinit): Define as no-op if not available. | |
1660 | |
1661 * s/sco5.h (LIBX11_SYSTEM) [MOTIF]: Add -lgen. | |
1662 (sigprocmask_set): Conditionalize decl on ! NOT_C_CODE. | |
1663 | |
1664 * keymap.c (Flookup_key): Error message if key has wrong data type. | |
1665 (Fdefine_key): Add error message for trying to bind [DEL], [RET], etc. | |
1666 (exclude_key): New variable. | |
1667 | |
1668 2001-12-28 Gerd Moellmann <gerd@gnu.org> | |
1669 | |
1670 * xterm.c (x_setup_relief_colors): Don't compute an image's | |
1671 background color if it doesn't have a Pixmap. | |
1672 | |
1673 * xterm.c (notice_overwritten_cursor): Don't depend on | |
1674 output_cursor and updated_area. Compare pixel coordinates with | |
1675 window's cursor pixel coordinates. | |
1676 (x_draw_glyphs, x_clear_end_of_line, show_mouse_face): | |
1677 Call notice_overwritten_cursor with new arg list. | |
1678 (show_mouse_face): Fix bug setting a row's mouse_face_p flag | |
1679 unconditionally. | |
1680 | |
1681 * xdisp.c (try_scrolling) <PT below scroll margin>: Add the | |
1682 height of the cursor line to the amount to scroll. | |
1683 | |
1684 2001-12-27 Richard M. Stallman <rms@gnu.org> | |
1685 | |
1686 * intervals.c (set_point_both): The position after an invisible, | |
1687 intangible character is not an acceptable stopping point. | |
1688 | |
1689 2001-12-27 Ken Raeburn <raeburn@gnu.org> | |
1690 | |
1691 * window.c (enlarge_window): In new preserve_before code, convert | |
1692 CURBEG from lisp object to integer before doing arithmetic. | |
1693 | |
1694 2001-12-27 Richard M. Stallman <rms@gnu.org> | |
1695 | |
1696 * bytecode.c (Fbyte_code): Undo previous change. | |
1697 | |
1698 2001-12-26 Kim F. Storm <storm@cua.dk> | |
1699 | |
1700 * keyboard.c (record_char): Ignore duplicate help-echo events only | |
1701 separated by mouse-movement. When tracking mouse, only record | |
1702 first and last mouse-movement event in same window. | |
1703 Don't record mouse-movement events in keyboard macros. | |
1704 | |
1705 2001-12-25 Richard M. Stallman <rms@gnu.org> | |
1706 | |
1707 * window.c (enlarge_window): New arg PRESERVE_BEFORE. Callers changed. | |
1708 (Fenlarge_window): New arg PRESERVE_BEFORE. | |
1709 | |
1710 * bytecode.c (Fbyte_code): Use Fstring_make_unibyte | |
1711 instead of Fstring_as_unibyte. | |
1712 | |
1713 2001-12-22 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
1714 | |
1715 The following changes remove mocklisp support: | |
1716 | |
1717 * mocklisp.h, mocklisp.c: Files removed. | |
1718 | |
1719 * lisp.h: Remove declarations of variables `Vmocklisp_arguments', | |
1720 `Qmocklisp' and `Qmocklisp_arguments'. | |
1721 Remove prototype of syms_of_mocklisp. | |
1722 | |
1723 * makefile.nt, makefile.w32-in, Makefile.in: Remove mocklisp files. | |
1724 | |
1725 * callint.c: Do not include mocklisp.h. | |
1726 (Fcall_interactively): Do not test for mocklisp case. | |
1727 | |
1728 * eval.c: Remove variables `Qmocklisp_arguments', | |
1729 `Vmocklisp_arguments' and `Qmocklisp'. Remove prototype of ml_apply. | |
1730 (Fprogn, Fwhile, Fcommandp, Feval, Ffuncall, funcall_lambda): | |
1731 Do not test for mocklisp case. | |
1732 (Fwhile): Remove unused variable `tem'. | |
1733 (syms_of_eval): Remove variable `moclisp-arguments'. | |
1734 | |
1735 * data.c (wrong_type_argument): Remove mocklisp case. | |
1736 | |
1737 * doc.c (Fdocumentation): Remove mocklisp case. | |
1738 | |
1739 * emacs.c (main): Do not call syms_of_mocklisp. | |
1740 | |
1741 2001-12-21 Richard M. Stallman <rms@gnu.org> | |
1742 | |
1743 * xfns.c (compute_tip_xy): If tooltip won't fit on the screen | |
1744 to the left or to the right of the pointer, put it against | |
1745 the left screen edge. | |
1746 | |
1747 2001-12-21 Eli Zaretskii <eliz@is.elta.co.il> | |
1748 | |
1749 * Makefile.in (distclean): Remove .gdbinit if we are building | |
1750 outside the source tree. | |
1751 | |
1752 2001-12-19 Eli Zaretskii <eliz@is.elta.co.il> | |
1753 | |
1754 * w32.c (emacs_root_dir): New function. | |
1755 | |
1756 * msdos.c (emacs_root_dir): New function. | |
1757 | |
1758 * fileio.c (Fexpand_file_name) [DOS_NT]: Use the root directory | |
1759 of the current drive as the fallback for default_directory. | |
1760 | |
1761 * dired.c (file_name_completion): Run the elements of | |
1762 completion-ignored-extensions through ENCODE_FILE. | |
1763 | |
1764 * lisp.h (scmp): Remove prototype, since it's now a static | |
1765 function private to dired.c. | |
1766 | |
1767 2001-12-18 Richard M. Stallman <rms@gnu.org> | |
1768 | |
1769 * dired.c (scmp): Function moved from minibuf.c. | |
1770 Delete multibyte handling--used only on encoded strings. | |
1771 | |
1772 * minibuf.c (scmp): Function moved to dired.c. | |
1773 | |
1774 * fns.c (merge): Add QUIT call. | |
1775 | |
1776 2001-12-18 Dave Love <fx@gnu.org> | |
1777 | |
1778 * Makefile.in (lisp, shortlisp): Add language/utf-8-lang.el, | |
1779 language/georgian.el. | |
1780 | |
1781 2001-12-18 Eli Zaretskii <eliz@is.elta.co.il> | |
1782 | |
1783 * Makefile.in (lisp, shortlisp): Synchronize with changes to | |
1784 lisp/Makefile.in:DONTCOMPILE. | |
1785 | |
1786 2001-12-18 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
1787 | |
1788 * xdisp.c (window_box_height): Do not return negative values. | |
1789 From Gerd Moellmann <gerd@gnu.org>. | |
1790 | |
1791 * keyboard.c (head_table): Add missing braces around initializer. | |
1792 | |
1793 * term.c (keys): Likewise. | |
1794 | |
1795 * xfns.c (x_frame_parms, visual_classes): Likewise. | |
1796 | |
1797 2001-12-17 Sam Steingold <sds@gnu.org> | |
1798 | |
1799 * coding.c (DECODE_COMPOSITION_END): Fixed a typo in the last | |
1800 patch (COMPOSING_P, not COMPOSING). | |
1801 | |
1802 2001-12-17 Richard M. Stallman <rms@gnu.org> | |
1803 | |
1804 * editfns.c (Fcompare_buffer_substrings): Add QUIT to main loop. | |
1805 | |
1806 * coding.c (code_convert_region): Update coding->cmp_data->char_offset | |
1807 before calling decode_coding. | |
1808 | |
1809 * charset.c (Fdefine_charset): Call Fupdate_coding_systems_internal. | |
1810 | |
1811 * coding.c (DECODE_COMPOSITION_END): Check for ! COMPOSING_P (coding) | |
1812 instead of only for COMPOSITION_DISABLED. | |
1813 | |
1814 2001-12-16 Richard M. Stallman <rms@gnu.org> | |
1815 | |
1816 * alloc.c (pure_alloc): After overflow, allocate just a small block. | |
1817 | |
1818 * Makefile.in (xmenu.o, xterm.o, fontset.o): Depend on buffer.h. | |
1819 | |
1820 * buffer.h (struct buffer): New field `display_error_modiff'. | |
1821 * buffer.c (reset_buffer): Initialize `display_error_modiff'. | |
1822 | |
1823 * window.c (Frecenter): Clear display_error_modiff field. | |
1824 | |
1825 * xdisp.c (redisplay_window_0, redisplay_window_1): New functions. | |
1826 Call redisplay_window, but not if display_error_modiff field says no. | |
1827 (redisplay_window_error): New function. | |
1828 (displayed_buffer): New variable. | |
1829 (redisplay_internal, redisplay_windows): Call the new functions | |
1830 instead of redisplay_window directly. | |
1831 | |
1832 2001-12-15 Richard M. Stallman <rms@gnu.org> | |
1833 | |
1834 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Doc fix. | |
1835 | |
1836 2001-12-14 Andrew Innes <andrewi@gnu.org> | |
1837 | |
1838 * makefile.w32-in (EMACSLOADPATH): Define. | |
1839 ($(EMACS)): Run `list-load-path-shadows' after dumping emacs. | |
1840 (bootstrap-temacs): Remove dependency on bootstrap-clean. | |
1841 | |
1842 2001-12-13 Eli Zaretskii <eliz@is.elta.co.il> | |
1843 | |
1844 * xfns.c (x_report_frame_params): Make the scroll-bar-width frame | |
1845 parameter have a numeric value all the time. | |
1846 | |
1847 * w32fns.c (x_report_frame_params): Likewise. | |
1848 | |
1849 2001-12-12 Richard M. Stallman <rms@gnu.org> | |
1850 | |
1851 * fileio.c (Fwrite_region): Doc fix. | |
1852 | |
1853 * xdisp.c (CLEAR_FACE_CACHE_COUNT): Redefine as 500. | |
1854 (redisplay_internal): Call clear_image_cache only for window terminals. | |
1855 | |
1856 2001-12-12 Gerd Moellmann <gerd@gnu.org> | |
1857 | |
1858 * xdisp.c (move_it_vertically_backward): Change heuristic | |
1859 for the case that we didn't move far enough initially. | |
1860 | |
1861 * window.c (Frecenter): Simplify computation in the case of window | |
1862 system frames and ARG < 0; use window_box_height. | |
1863 | |
1864 2001-12-11 Richard M. Stallman <rms@gnu.org> | |
1865 | |
1866 * Makefile.in, mem-limits.h, dispnew.c, emacs.c, fileio.c: | |
1867 * process.c, sysdep.c, unexec.c: Test GNU_LINUX, not LINUX. | |
1868 | |
1869 2001-12-11 Andrew Innes <andrewi@gnu.org> | |
1870 | |
1871 * insdel.c (make_gap) [DOUG_LEA_MALLOC]: Call make_gap_smaller if | |
1872 arg is negative. | |
1873 | |
1874 2001-12-11 Richard M. Stallman <rms@gnu.org> | |
1875 | |
1876 * m/hp800.h: Split the __hpux conditional into the parts | |
1877 that are right for GNU/Linux too and the parts that are not. | |
1878 Use the former if GNU_LINUX. | |
1879 (HAVE_ALLOCA, LOAD_AVE_TYPE, LOAD_AVE_CVT): New defs for GNU/Linux. | |
1880 | |
1881 * s/gnu-linux.h (GNU_LINUX): Defined. | |
1882 | |
1883 2001-12-11 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
1884 | |
1885 * macros.c, msdos.c, w16select.c: Change doc-string comments to | |
1886 `new style' [w/`doc:' keyword]. | |
1887 | |
1888 2001-12-10 Jason Rumney <jasonr@gnu.org> | |
1889 | |
1890 * w32menu.c (w32_free_submenu_strings): Clear menu item struct | |
1891 before using. | |
1892 | |
1893 2001-12-09 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
1894 | |
1895 * dosfns.c: Change doc-string comments to `new style' [w/`doc:' | |
1896 keyword]. | |
1897 | |
1898 2001-12-09 Eli Zaretskii <eliz@is.elta.co.il> | |
1899 | |
1900 * dosfns.c (dos-display-scancodes, dos-decimal): Doc fix. | |
1901 | |
1902 * s/hpux10.h (srand48): Don't undefine. | |
1903 | |
1904 2001-12-09 Jason Rumney <jasonr@gnu.org> | |
1905 | |
1906 * w32menu.c (_widget_value): Make `help' field a Lisp_Object. | |
1907 Add comment to explain where the struct came from. | |
1908 (single_submenu, w32_menu_show): Set `help' field as Lisp_Object. | |
1909 (add_menu_item): Process pop-up menus first to avoid memory leak. | |
1910 (add_menu_item, w32_menu_display_help): Use `help' field as | |
1911 Lisp_Object. | |
1912 (w32_free_submenu_strings): Only free owner-drawn strings. | |
1913 | |
1914 2001-12-09 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
1915 | |
1916 * COPYING: Moved back. | |
1917 | |
1918 * charset.c (char_to_string_1, translate_char, Fdefine_charset): | |
1919 Add parentheses around && within ||. | |
1920 | |
1921 * indent.c (compute_motion): Likewise. | |
1922 | |
1923 * intervals.c (merge_properties_sticky): Likewise. | |
1924 | |
1925 * coding.c (setup_coding_system, shrink_encoding_region) | |
1926 (Fdecode_sjis_char): Likewise. | |
1927 | |
1928 2001-12-07 Andreas Schwab <schwab@suse.de> | |
1929 | |
1930 * xdisp.c (display_mode_element): Don't read past end of string if | |
1931 it ends with '%'. | |
1932 | |
1933 * alloc.c (inhibit_garbage_collection): Don't exceed value an int | |
1934 can hold. | |
1935 | |
1936 * data.c (Vmost_positive_fixnum, Vmost_negative_fixnum): Rename | |
1937 from most_positive_fixnum and most_negative_fixnum, resp., and | |
1938 type changed to Lisp_Object. | |
1939 (syms_of_data): DEFVAR_LISP them. | |
1940 | |
1941 2001-12-07 Richard M. Stallman <rms@gnu.org> | |
1942 | |
1943 * callproc.c (init_callproc): Set Vdata_directory based on the source | |
1944 location whenever Emacs was run uninstalled. | |
1945 | |
1946 2001-12-06 Paul Eggert <eggert@twinsun.com> | |
1947 | |
1948 * config.in (HAVE_WORKING_VFORK): New #undefs. | |
1949 * process.c (create_process): | |
1950 Use HAVE_WORKING_VFORK, not HAVE_VFORK. | |
1951 * m/cnvrgnt.h (HAVE_VFORK): Remove #define. | |
1952 * m/ibm370aix.h (HAVE_VFORK): Remove #undef. | |
1953 * m/ibmps2-aix.h (HAVE_VFORK): Remove #define. | |
1954 * m/intel386.h (HAVE_VFORK): Likewise. | |
1955 * m/mips-siemens.h (HAVE_VFORK): Likewise. | |
1956 * m/mips.h (HAVE_VFORK): Likewise. | |
1957 * s/freebsd.h (vfork): Remove #define. | |
1958 * s/lynxos.h (HAVE_VFORK): Remove #undef. | |
1959 * s/usg5-4-2.h: Fix comment about vfork. | |
1960 | |
1961 2001-12-06 Richard M. Stallman <rms@gnu.org> | |
1962 | |
1963 * s/hpux10.h (random): Add undef. | |
1964 (HAVE_RANDOM): Define it just once. | |
1965 | |
1966 2001-12-06 Stefan Monnier <monnier@cs.yale.edu> | |
1967 | |
1968 * eval.c: Undo last change: the standard syntax is not wanted. | |
1969 | |
1970 2001-12-06 Eli Zaretskii <eliz@is.elta.co.il> | |
1971 | |
1972 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: Remove all the | |
1973 scroll bars of the frame before deleting the frame itself. If the | |
1974 frame has a widget, delete the frame with XtDestroyWidget, and do | |
1975 not call XDestroyWindow before that. | |
1976 | |
1977 2001-12-06 Kim F. Storm <storm@cua.dk> | |
1978 | |
1979 * xfns.c (x_report_frame_params): Return actual fringe widths. | |
1980 | |
1981 * w32fns.c (x_report_frame_params): Return actual fringe widths. | |
1982 | |
1983 2001-12-05 Andrew Innes <andrewi@gnu.org> | |
1984 | |
1985 * alloc.c (Fgarbage_collect): Shrink buffer gaps that are | |
1986 excessively large. | |
1987 | |
1988 * insdel.c (make_gap_larger): New function. | |
1989 (make_gap_smaller): New function. | |
1990 (make_gap) [USE_MMAP_FOR_BUFFERS || REL_ALLOC]: Call | |
1991 make_gap_smaller if arg is negative. | |
1992 | |
1993 2001-12-04 Stefan Monnier <monnier@cs.yale.edu> | |
1994 | |
1995 * keyboard.c (kbd_buffer_store_event): Fix interrupt_signal prototype. | |
1996 Pass a dummy argument when calling interrupt_signal. | |
1997 (parse_menu_item): Mark disabled items before checking for empty def. | |
1998 (read_char_minibuf_menu_prompt): Make safety more visible. | |
1999 (read_key_sequence): Add a `first_unbound' variable. | |
2000 Use it to detect C-c ESC ESC ESC ESC ... cases and drop the | |
2001 unbound prefix as soon as we can detect it. | |
2002 | |
2003 * doc.c (Fsnarf_documentation): Add prototype. | |
2004 (get_doc_string): Handle negative arguments. | |
2005 (Fdocumentation): Use AREF and ASIZE. | |
2006 Move the calls to get_doc_string to a single place. | |
2007 Don't confuse an interactive-spec for a docstring reference. | |
2008 (Fdocumentation_property): Take advantage of the fact that | |
2009 get_doc_string now ignores the sign of the docstring position. | |
2010 | |
2011 * eval.c: Use standard syntax for usage in docstrings. | |
2012 | |
2013 2001-12-03 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
2014 | |
2015 * xdisp.c (syms_of_xdisp): Make `tool-bar-button-relief` an option. | |
2016 | |
2017 2001-12-02 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
2018 | |
2019 * xterm.c (x_draw_image_relief): Use predefined macro instead of | |
2020 constant when the value of `tool_bar_button_relief' is negative. | |
2021 | |
2022 2001-12-02 Richard M. Stallman <rms@gnu.org> | |
2023 | |
2024 * xmenu.c (menu_highlight_callback): Use `help' field as Lisp_Object. | |
2025 (single_submenu, xmenu_show): Set `help' field as Lisp_Object. | |
2026 | |
2027 * fileio.c (read_non_regular): Delete Fsignal call. | |
2028 | |
2029 2001-12-01 Stefan Monnier <monnier@cs.yale.edu> | |
2030 | |
2031 * lisp.h (run_hook_list_with_args): Undo last change. | |
2032 | |
2033 2001-12-01 Gerd Moellmann <gerd@gnu.org> | |
2034 | |
2035 * xterm.c (x_draw_fringe_bitmap): Always undo clipping. | |
2036 | |
2037 2001-12-01 Jason Rumney <jasonr@gnu.org> | |
2038 | |
2039 * window.c (Qleft_fringe, Qright_fringe): Remove. Now in frame.c. | |
2040 | |
2041 * w32term.h (WM_MOUSELEAVE, TME_LEAVE, TRACKMOUSEEVENT) | |
2042 [!WM_MOUSELEAVE]: Define. | |
2043 | |
2044 * w32menu.c (current_popup_menu, get_menu_item_info): | |
2045 (set_menu_item_info): New vars. | |
2046 (set_frame_menubar): Doc fix clarifying GC interaction with menus. | |
2047 (w32_menu_show): Set current_popup_menu. | |
2048 (add_menu_item): Allocate new strings for owner-drawn menu items | |
2049 and help strings. | |
2050 Use owner-draw for disabled menu items again. | |
2051 (w32_menu_display_help): Ignore owner-drawn items and popup menus. | |
2052 (w32_free_submenu_strings, w32_free_menu_strings): New functions. | |
2053 | |
2054 * w32fns.c (trackmouse_window, track_mouse_event_fn): New vars. | |
2055 (w32_wnd_proc) <WM_MOUSEMOVE>: Notice when mouse enters frame. | |
2056 <WM_EXITMENULOOP>: Free menu strings. | |
2057 <WM_MOUSELEAVE>: Stop tracking mouse. | |
2058 (x_create_tip_frame): Specify no minibuffer, modeline or fringes. | |
2059 | |
2060 * w32term.c (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo | |
2061 and mouse face. | |
2062 | |
2063 2001-12-01 Kim F. Storm <storm@cua.dk> | |
2064 | |
2065 The following changes add left-fringe and right-fringe | |
2066 frame parameters to adjust fringe widths, or remove one or | |
2067 both fringes. | |
2068 | |
2069 * frame.h (struct frame): Remove trunc_area_pixel_width and | |
2070 trunc_area_cols fields. | |
2071 (Qleft_fringe, Qright_fringe): Declare. | |
2072 (FRAME_RIGHT_FRINGE_WIDTH): New macro. | |
2073 | |
2074 * frame.c (Qleft_fringe, Qright_fringe): New vars. | |
2075 (syms_of_frame): Initialize them. | |
2076 | |
2077 * window.c (coordinates_in_window): Handle separate left and right | |
2078 fringe widths. | |
2079 | |
2080 * xterm.h (struct x_output): Add left_fringe_width, right_fringe_width, | |
2081 and fringe_cols fields. | |
2082 (FRAME_FRINGE_BITMAP_WIDTH, FRAME_FRINGE_BITMAP_HEIGHT): Remove macros. | |
2083 (FRAME_X_FRINGE_COLS): Use fringe_cols field. | |
2084 (FRAME_X_FRINGE_WIDTH): Use fringes_extra field. | |
2085 (FRAME_X_LEFT_FRINGE_WIDTH): Use left_fringe_width field. | |
2086 (FRAME_X_RIGHT_FRINGE_WIDTH): Use right_fringe_width field. | |
2087 (x_compute_fringe_widths): Add prototype. | |
2088 | |
2089 * xterm.c (zv_height, zv_bits, zv_period): Changed zv bitmap to | |
2090 fill fringe evenly with small dashes. | |
2091 (x_draw_fringe_bitmap): Clear background if necessary. Align and | |
2092 clip the new ZV bitmap to avoid jitter between rows. | |
2093 (x_draw_row_fringe_bitmaps): Rely on x_draw_fringe_bitmap to clear | |
2094 background. Don't draw fringe bitmaps if fringe width is zero. | |
2095 (x_compute_fringe_widths): New function. | |
2096 (x_new_font, x_set_window_size_1): Use it. | |
2097 | |
2098 * xfns.c (x_frame_parms): Add `left-fringe' and `right-fringe' parms. | |
2099 (x_set_frame_parameters): Process `font' parameter before other | |
2100 parameters as fringe widths depend on it. | |
2101 (x_set_fringe_width): New function. | |
2102 (x_figure_window_size): Use x_compute_fringe_widths. | |
2103 (Fx_create_frame): Process `left-fringe' and `right-fringe' frame | |
2104 parameters. | |
2105 | |
2106 * widget.c (set_frame_size): Use x_compute_fringe_widths. | |
2107 (EmacsFrameSetCharSize): Ditto. | |
2108 | |
2109 * w32term.h: Merged changes from xterm.h. | |
2110 * w32term.c: Merged changes from xterm.c. | |
2111 * w32fns.c: Merged changes from xfns.c. | |
2112 | |
2113 2001-11-29 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
2114 | |
2115 * COPYING: Removed. | |
2116 | |
2117 2001-11-29 Dave Love <fx@gnu.org> | |
2118 | |
2119 * coding.c (syms_of_coding) <Qchar_coding_system>: Give it an | |
2120 extra extra slot. | |
2121 (detect_coding_mask): Fix call of detect_coding_iso2022. | |
2122 | |
2123 2001-11-29 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
2124 | |
2125 * fileio.c (file-name-coding-system) | |
2126 (default-file-name-coding-system): Doc fix (links to referenced | |
2127 variables added). | |
2128 | |
2129 2001-11-28 Stefan Monnier <monnier@cs.yale.edu> | |
2130 | |
2131 * lisp.h (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5): | |
2132 Add dummy uses of gcproN variables. | |
2133 | |
2134 * category.c (describe_category, describe_category_1) | |
2135 (Fdescribe_categories): Remove. (Moved to lisp/help-fns.el.) | |
2136 (syms_of_category): Don't defsubr Sdescribe_categories. | |
2137 | |
2138 2001-11-28 Richard M. Stallman <rms@gnu.org> | |
2139 | |
2140 * fileio.c (Ffind_file_name_handler): Avoid initializer for `result'. | |
2141 | |
2142 * Makefile.in (lispdir): New variable, referring to build dir. | |
2143 (TAGS-LISP): Find Makefile in $(lispdir), not $(lispsource). | |
2144 | |
2145 2001-11-28 Andrew Innes <andrewi@gnu.org> | |
2146 | |
2147 * w32menu.c (w32_menu_display_help): Actually add the new argument | |
2148 OWNER. | |
2149 | |
2150 2001-11-28 Jason Rumney <jasonr@gnu.org> | |
2151 | |
2152 * w32menu.c (add_menu_item): Do not use owner-draw for disabled | |
2153 menu items. From David Ponce <dponce@wanadoo.fr>. | |
2154 (w32_dialog_show) [HAVE_DIALOGS]: Compile whole function | |
2155 conditionally. | |
2156 (w32_menu_display_help): New argument OWNER. Rewritten to store a | |
2157 help event in the owner frame's keyboard buffer. | |
2158 | |
2159 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Display help directly. | |
2160 (Fx_show_tip): Don't subtract last width from row width. | |
2161 | |
2162 * w32term.c (w32_read_socket) <WM_MENUSELECT>: Remove. | |
2163 (w32_read_socket): Use EQ to compare frames. | |
2164 | |
2165 2001-11-28 Gerd Moellmann <gerd@gnu.org> | |
2166 | |
2167 * xterm.c (x_draw_glyphs): Don't call notice_overwritten_cursor if | |
2168 OVERLAPS_P. | |
2169 | |
2170 2001-11-28 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
2171 | |
2172 * xdisp.c (message_dolog): Remove unused variables `gcpro2', | |
2173 `gcpro3' and `gcpro4'. | |
2174 | |
2175 * coding.c (decode_coding_string): Remove unused variable `gcpro1'. | |
2176 | |
2177 2001-11-28 Stefan Monnier <monnier@cs.yale.edu> | |
2178 | |
2179 * ccl.c: Use AREF and ASIZE. | |
2180 | |
2181 2001-11-27 Stefan Monnier <monnier@cs.yale.edu> | |
2182 | |
2183 * lisp.h (run_hook_list_with_args): Remove. | |
2184 (LIST_END_P): Fix call to wrong_type_argument. | |
2185 (make_fixnum_or_float): Use EMACS_INT rather than int. | |
2186 | |
2187 2001-11-26 Stefan Monnier <monnier@cs.yale.edu> | |
2188 | |
2189 * syntax.c (syms_of_syntax): Remove defsubr of Sdescribe_syntax. | |
2190 (describe_syntax, describe_syntax_1, Fdescribe_syntax): Remove. | |
2191 | |
2192 * eval.c: Use AREF and ASIZE. | |
2193 (Ffetch_bytecode): Add the file name to the error message. | |
2194 | |
2195 * fileio.c (Ffind_file_name_handler): Give precedence to handlers | |
2196 which match the end of the file-name. | |
2197 (Fsubstitute_in_file_name): Don't signal an error if $ENVVAR | |
2198 is not a valid env var, but leave it as is instead. | |
2199 | |
2200 * keymap.c (access_keymap): Handle t bindings like nil bindings. | |
2201 Make nil bindings in char-tables transparent. | |
2202 (store_in_keymap): Turn a nil binding into a t binding for char-tables. | |
2203 | |
2204 2001-11-26 Richard M. Stallman <rms@gnu.org> | |
2205 | |
2206 * textprop.c (set_text_properties_1): Allow START, END in either order. | |
2207 Do nothing if range is empty. | |
2208 | |
2209 * Makefile.in (mallocobj): Simplify logic using auxiliary vars. | |
2210 | |
2211 * Makefile.in (mostlyclean): Delete bootstrap-emacs here. | |
2212 (clean): Not here. | |
2213 | |
2214 2001-11-25 Stefan Monnier <monnier@cs.yale.edu> | |
2215 | |
2216 * textprop.c (set_text_properties_1): Clearly mark that the | |
2217 interval should not be empty. | |
2218 | |
2219 * intervals.c (graft_intervals_into_buffer): | |
2220 Don't call set_text_properties_1 on an empty interval. | |
2221 | |
2222 2001-11-25 Richard M. Stallman <rms@gnu.org> | |
2223 | |
2224 * unexelf.c (unexec): Index by n, not nn, when checking for ".sbss". | |
2225 | |
2226 * callproc.c (Fcall_process): When we make a bigger buffer for bufptr, | |
2227 don't lose the data in it. | |
2228 | |
2229 2001-11-25 Juanma Barranquero <lektu@terra.es> | |
2230 | |
2231 * abbrev.c (Fexpand_abbrev): Use Frun_hooks instead of Vrun_hooks. | |
2232 | |
2233 * buffer.c (Fkill_buffer): Use Frun_hooks, not Vrun_hooks. | |
2234 | |
2235 * print.c (temp_output_buffer_setup): Use Frun_hooks, not Vrun_hooks. | |
2236 | |
2237 2001-11-25 Stefan Monnier <monnier@cs.yale.edu> | |
2238 | |
2239 * xfaces.c (merge_face_heights): Coerce back to int explicitly. | |
2240 | |
2241 2001-11-25 Eli Zaretskii <eliz@is.elta.co.il> | |
2242 | |
2243 * window.c (Fset_window_vscroll): Doc fix. From Kalle Olavi | |
2244 Niemitalo <kon@iki.fi>. | |
2245 | |
2246 2001-11-25 Jason Rumney <jasonr@gnu.org> | |
2247 | |
2248 * w32term.h (FRAME_X_FRINGE_COLS): No fringe on tip frames. | |
2249 | |
2250 * w32fns.c (x_create_tip_frame): Set frame's fringes_extra to 0. | |
2251 (Fx_show_tip): Block input during frame creation. | |
2252 (Fx_show_tip, Fx_hide_tip): Enable. | |
2253 | |
2254 2001-11-24 Richard M. Stallman <rms@gnu.org> | |
2255 | |
2256 * lread.c (Fload): Detect recursive load error for more than 3 | |
2257 nestings of the same file. | |
2258 (Vrecursive_load_depth_limit): Variable deleted. | |
2259 (syms_of_lread) <recursive-load-depth-limit>: Variable deleted. | |
2260 | |
2261 2001-11-24 Jason Rumney <jasonr@gnu.org> | |
2262 | |
2263 * xfns.c (compute_tip_xy): Initialize root_x and root_y from | |
2264 mouse position if either left or top is not specified. | |
2265 | |
2266 * w32fns.c (w32_wnd_proc) <WM_MENUSELECT>: Revert last change. | |
2267 <WM_WINDOWPOSCHANGING>: Let tip frames resize without restriction. | |
2268 (my_create_tip_window, Fx_show_tip): Adjust size for external border. | |
2269 (my_create_tip_window): Assign tip_window. | |
2270 (x_create_tip_frame): Use same defaults as X. | |
2271 (compute_tip_xy): Remove unused variable. Use full screen width. | |
2272 (Fx_show_tip): Do not double height. Call ShowWindow directly. | |
2273 | |
2274 * w32term.c (x_after_update_window_line): Doc fix. | |
2275 (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip | |
2276 frames. | |
2277 <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame. | |
2278 | |
2279 * xdisp.c (prepare_menu_bars) [HAVE_WINDOW_SYSTEM]: Use tip_frame | |
2280 for all Windowed systems. | |
2281 | |
2282 2001-11-23 Eli Zaretskii <eliz@is.elta.co.il> | |
2283 | |
2284 * msdos.c (IT_clear_screen): If the frame's faces are not yet | |
2285 realized, use the initial screen colors to clear the screen. | |
2286 | |
2287 2001-11-23 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
2288 | |
2289 * textprop.c (Fset_text_properties): Remove unused variables | |
2290 `unchanged', `prev_changed', `s' and `len'. | |
2291 | |
2292 * search.c (Freplace_match): Remove unused variable `inslen'. | |
2293 | |
2294 * keymap.c (access_keymap): Remove unused variables `c1' and `c2'. | |
2295 | |
2296 2001-11-22 Jason Rumney <jasonr@gnu.org> | |
2297 | |
2298 * w32fns.c (x_window_to_frame): Remove irrelevant TODO comment. | |
2299 (w32_wnd_proc) <WM_MENUSELECT>: Show help echo directly. | |
2300 (my_create_tip_window): New function. | |
2301 (x_create_tip_frame, compute_tip_xy): Adapt for Windows. | |
2302 (Fx_show_tip, Fx_hide_tip) [TEST_TOOLTIPS]: Adapt for Windows. | |
2303 | |
2304 2001-11-20 Jason Rumney <jasonr@gnu.org> | |
2305 | |
2306 * coding.h (Vw32_system_coding_system) [WINDOWSNT]: Remove. | |
2307 (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: Use Vlocale_coding_system. | |
2308 | |
2309 * w32fns.c (Vw32_system_coding_system): Remove. | |
2310 (w32_to_x_font, x_to_w32_font): Use Vlocale_coding_system. | |
2311 | |
2312 2001-11-19 Stefan Monnier <monnier@cs.yale.edu> | |
2313 | |
2314 * fileio.c (Fwrite_region): Move choose_write_coding_system to | |
2315 after build_annotations. | |
2316 | |
2317 * syntax.c (describe_syntax): Add dummy arg. | |
2318 (describe_syntax_1): Update call to describe_vector. | |
2319 | |
2320 * category.c (describe_category): Add dummy arg. | |
2321 (describe_category_1): Update call to describe_vector. | |
2322 | |
2323 * keymap.c (Fdescribe_vector): Add `describer' parameter. | |
2324 (describe_command, describe_translation): Add dummy second param. | |
2325 (describe_map): Call elt_describer with two arguments. | |
2326 (describe_vector_princ): Add `fun' parameter. | |
2327 Call it instead of the hardcoded `princ'. | |
2328 (describe_vector): Add arg `args'. | |
2329 Pass it as a new second argument to elt_describer. | |
2330 | |
2331 * keymap.h (describe_vector): Update prototype. | |
2332 | |
2333 * frame.c: Don't include keymap.h any more. | |
2334 (keys_of_frame): Remove. | |
2335 | |
2336 * lisp.h (keys_of_frame): Remove declaration. | |
2337 | |
2338 * emacs.c (main): Don't call `keys_of_frame' any more. | |
2339 | |
2340 2001-11-14 Andreas Schwab <schwab@suse.de> | |
2341 | |
2342 * unexelf.c [!defined MAP_ANON]: Define MAP_ANON to MAP_ANONYMOUS | |
2343 if defined, 0 otherwise. | |
2344 (MAP_FAILED): Define if not defined and use it to test mmap failure. | |
2345 (unexec) [!MAP_ANON]: Use /dev/zero as file to map. | |
2346 | |
2347 2001-11-19 Richard M. Stallman <rms@gnu.org> | |
2348 | |
2349 * indent.c (current_column_1): Fix handling of scan_bytes for mb chars. | |
2350 | |
2351 2001-11-18 Jason Rumney <jasonr@gnu.org> | |
2352 | |
2353 * w32term.c (note_mouse_highlight): Fix type of variable `ignore'. | |
2354 (x_draw_bar_cursor): If the background color of the glyph under | |
2355 the cursor equals the frame's cursor color, use the glyph's | |
2356 foreground color for drawing the bar cursor. | |
2357 (x_after_update_window_line): Clear internal border in different | |
2358 circumstances. | |
2359 (w32_set_vertical_scroll_bar): Check for width and height > 0. | |
2360 (w32_draw_relief_rect): Correct relief by 1 pixel. | |
2361 (x_set_glyph_string_background_width): | |
2362 Set extends_to_end_of_line_p if the row's fill_line_p is set and | |
2363 drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}. | |
2364 (x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR | |
2365 if cursor_in_non_selected_windows is false. | |
2366 (show_mouse_face): Clean up. Recognize overwritten cursor differently. | |
2367 (x_draw_glyphs): Remove parameters REAL_START and REAL_END. | |
2368 Notice if cursor gets overwritten. | |
2369 (notice_overwritten_cursor): Renamed from | |
2370 note_overwritten_text_cursor. Rewritten to take glyph widths | |
2371 into account, and to take X positions as parameters. | |
2372 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p | |
2373 around call to x_draw_glyphs. | |
2374 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and | |
2375 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background | |
2376 color to use for image glyph reliefs. | |
2377 (x_draw_image_relief): Accept zero tool_bar_button_relief. | |
2378 (glyph_rect): Remove unused variable `area'. | |
2379 | |
2380 * w32fns.c (x_set_frame_parameters): Avoid infinite recursion for | |
2381 some items. | |
2382 (x_set_internal_border_width): Set frame garbaged when window | |
2383 doesn't exist yet. | |
2384 (Fx_create_frame): Accept zero tool_bar_button_relief. | |
2385 (x_clear_image_1, four_corners_best, image_background) | |
2386 (image_background_transparent): New functions. | |
2387 (xpm_format, png_format, jpeg_format, tiff_format, gif_format) | |
2388 (gs_format): Add `:background' entry. | |
2389 (lookup_image): Set IMG's background color if specified. | |
2390 (pbm_load, xbm_load_image, png_load): Set IMG's background field | |
2391 when appropriate. | |
2392 (x_clear_image_1): Reset `background_valid' and | |
2393 `background_transparent_valid' fields. | |
2394 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of | |
2395 calculating it here. Set IMG's background_transparent field. | |
2396 (enum xpm_keyword_index): Add XPM_BACKGROUND. | |
2397 (enum png_keyword_index): Add PNG_BACKGROUND. | |
2398 (enum jpeg_keyword_index): Add JPEG_BACKGROUND. | |
2399 (enum tiff_keyword_index): Add TIFF_BACKGROUND. | |
2400 (enum gif_keyword_index): Add GIF_BACKGROUND. | |
2401 (enum gs_keyword_index): Add GS_BACKGROUND. | |
2402 (pbm_load, png_load, jpeg_load, tiff_load, gif_load): | |
2403 Pre-calculate image background color where necessary. | |
2404 (x_create_x_image_and_pixmap, xbm_load, gs_load): | |
2405 Use display info's n_cbits entry for screen depth. | |
2406 (Fx_show_tip): Remove unused variables `buffer', `top', | |
2407 `left', `max_width' and `max_height'. | |
2408 | |
2409 * w32menu.c (w32_menu_show, push_menu_pane): Doc fixes. | |
2410 | |
2411 2001-11-18 Gerd Moellmann <gerd@gnu.org> | |
2412 | |
2413 * puresize.h (BASE_PURESIZE): Increase to 750000. | |
2414 | |
2415 2001-11-18 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
2416 | |
2417 * frame.c (Fframe_live_p): Doc fix. | |
2418 | |
2419 2001-11-18 Richard M. Stallman <rms@gnu.org> | |
2420 | |
2421 * xdisp.c (message_dolog_marker1, message_dolog_marker2) | |
2422 (message_dolog_marker3): New static variables hold three markers. | |
2423 (syms_of_xdisp): Initialize and staticpro them. | |
2424 (message_dolog): Use message_dolog_marker1..3 instead of | |
2425 allocating markers each time. Unchain them when done. | |
2426 | |
2427 2001-11-17 Richard M. Stallman <rms@gnu.org> | |
2428 | |
2429 * doc.c (Fsnarf_documentation): Doc fix. | |
2430 | |
2431 2001-11-17 Andreas Schwab <schwab@suse.de> | |
2432 | |
2433 * xterm.c (note_mouse_highlight): Fix type of variable `ignore'. | |
2434 | |
2435 2001-11-17 Richard M. Stallman <rms@gnu.org> | |
2436 | |
2437 * fileio.c (Fwrite_region): Avoid initializer for Lisp_Object. | |
2438 | |
2439 2001-11-17 Jason Rumney <jasonr@gnu.org> | |
2440 | |
2441 * xterm.c (notice_overwritten_cursor): Take care of end < 0 case. | |
2442 | |
2443 2001-11-17 Gerd Moellmann <gerd@gnu.org> | |
2444 | |
2445 * xdisp.c (tool_bar_item_info): Avoid calling Fget_text_property | |
2446 with invalid position. | |
2447 | |
2448 2001-11-16 Richard M. Stallman <rms@gnu.org> | |
2449 | |
2450 * syswait.h: Delete conditionals for HPUX7, ISC 4.1, and convex. | |
2451 | |
2452 * s/isc4-1.h (HAVE_SYS_WAIT_H): Add #undef. | |
2453 * s/hpux.h (HAVE_SYS_WAIT_H): Add #undef. | |
2454 * s/hpux8.h (HAVE_SYS_WAIT_H): Define it. | |
2455 | |
2456 * m/convex.h (HAVE_SYS_WAIT_H): Add #undef. | |
2457 | |
2458 2001-11-16 Stefan Monnier <monnier@cs.yale.edu> | |
2459 | |
2460 * fileio.c (build_annotations): Split off the tail. | |
2461 (build_annotations_2): New fun. Extracted from build_annotations. | |
2462 (Fwrite_region): Split the call to build_annotations into two | |
2463 calls to build_annotations and build_annotations_2. | |
2464 | |
2465 2001-11-16 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
2466 | |
2467 * sysdep.c (wait_for_kbd_input) [VMS]: Do not call | |
2468 clear_waiting_for_input with argument. | |
2469 | |
2470 * xterm.h (x_update_cursor): Remove duplicated prototype. | |
2471 | |
2472 * keyboard.h (clear_waiting_for_input): Remove duplicated prototype. | |
2473 | |
2474 * xterm.c (waiting_for_input): Remove unnecessary declaration. | |
2475 | |
2476 * data.c (Ftimes, Fquo, Frem, Fmod): Doc fix. | |
2477 | |
2478 2001-11-16 Stefan Monnier <monnier@cs.yale.edu> | |
2479 | |
2480 * fileio.c (choose_write_coding_system): New fun, extracted | |
2481 from Fwrite_region. | |
2482 (Fwrite_region): Use it. | |
2483 | |
2484 * eval.c (max_specpdl_size, max_lisp_eval_depth): Use EMACS_INT. | |
2485 (funcall_lambda, run_hook_with_args): Make static and add prototype. | |
2486 (ml_apply, find_handler_clause): Add prototype. | |
2487 | |
2488 2001-11-16 Eli Zaretskii <eliz@gnu.org> | |
2489 | |
2490 * config.in: Add #undef HAVE_COFF_H. | |
2491 | |
2492 * unexec.c (coff.h): Don't include unless HAVE_COFF_H is defined. | |
2493 Required for ISC 4.1. | |
2494 | |
2495 2001-11-16 Eli Zaretskii <eliz@is.elta.co.il> | |
2496 | |
2497 * syswait.h: (HAVE_SYS_WAIT_H): Undef for ISC 4.1. Reported by | |
2498 Andrew Wiseman <a.wiseman@btclick.com>. | |
2499 | |
2500 2001-11-16 Kim F. Storm <storm@cua.dk> | |
2501 | |
2502 The following changes are made to clean up the various internal | |
2503 references to the fringes to actually use the term `fringe' for | |
2504 them. Previously, they were called `flags areas', `bitmap areas', | |
2505 `left/right side of windows', or implicitly as `flags' or | |
2506 `bitmaps': | |
2507 | |
2508 * dispextern.h (FRINGE_FACE_ID): Renamed from BITMAP_AREA_FACE_ID. | |
2509 Comments fixed. Use renamed symbols. | |
2510 | |
2511 * dispnew.c: Comment fix. Use renamed symbols. | |
2512 | |
2513 * frame.h (FRAME_FRINGE_COLS): Renamed from FRAME_FLAGS_AREA_COLS. | |
2514 (FRAME_FRINGE_WIDTH): Renamed from FRAME_FLAGS_AREA_WIDTH. | |
2515 (FRAME_LEFT_FRINGE_WIDTH): Renamed from FRAME_LEFT_FLAGS_AREA_WIDTH. | |
2516 | |
2517 * msdos.c: Comment fix. | |
2518 | |
2519 * w32fns.c: Use renamed symbols. | |
2520 | |
2521 * w32term.c: Comment fixes. Use renamed symbols. | |
2522 (fringe_bitmap_type): Renamed from bitmap_type. | |
2523 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP. | |
2524 (w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap. | |
2525 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps. | |
2526 | |
2527 * w32term.h: Comment fixes. Use renamed symbols. | |
2528 (fringes_extra): Renamed from flags_areas_extra. | |
2529 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH. | |
2530 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT. | |
2531 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS. | |
2532 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH. | |
2533 (FRAME_X_LEFT_FRINGE_WIDTH): | |
2534 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH. | |
2535 (FRAME_X_RIGHT_FRINGE_WIDTH): | |
2536 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH. | |
2537 | |
2538 * widget.c: Use renamed symbols. | |
2539 | |
2540 * window.c: Comment fixes. Use renamed symbols. | |
2541 (coordinates-in-window-p): Doc fix. | |
2542 | |
2543 * xdisp.c: Comment fixes. Use renamed symbols. | |
2544 | |
2545 * xfaces.c (realize_basic_faces): Use FRINGE_FACE_ID. | |
2546 | |
2547 * xfns.c: Use renamed symbols. | |
2548 | |
2549 * xterm.c: Comment fixes. Use renamed symbols. | |
2550 (fringe_bitmap_type): Renamed from bitmap_type. | |
2551 (NO_FRINGE_BITMAP): Renamed from NO_BITMAP. | |
2552 (x_draw_fringe_bitmap): Renamed from x_draw_bitmap. | |
2553 (x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps. | |
2554 | |
2555 * xterm.h: Comment fixes. Use renamed symbols. | |
2556 (fringes_extra): Renamed from flags_areas_extra. | |
2557 (FRAME_FRINGE_BITMAP_WIDTH): Renamed from FRAME_FLAGS_BITMAP_WIDTH. | |
2558 (FRAME_FRINGE_BITMAP_HEIGHT): Renamed from FRAME_FLAGS_BITMAP_HEIGHT. | |
2559 (FRAME_X_FRINGE_COLS): Renamed from FRAME_X_FLAGS_AREA_COLS. | |
2560 (FRAME_X_FRINGE_WIDTH): Renamed from FRAME_X_FLAGS_AREA_WIDTH. | |
2561 (FRAME_X_LEFT_FRINGE_WIDTH): | |
2562 Renamed from FRAME_X_LEFT_FLAGS_AREA_WIDTH. | |
2563 (FRAME_X_RIGHT_FRINGE_WIDTH): | |
2564 Renamed from FRAME_X_RIGHT_FLAGS_AREA_WIDTH. | |
2565 | |
2566 2001-11-15 Jason Rumney <jasonr@gnu.org> | |
2567 | |
2568 * w32menu.c (add-menu-item): Make help_echo and radio buttons | |
2569 work for most menu items. From David Ponce | |
2570 <david.ponce@wanadoo.fr>. | |
2571 | |
2572 2001-11-15 Gerd Moellmann <gerd@gnu.org> | |
2573 | |
2574 * xfns.c (x_set_frame_parameters): Revert change of 2001-11-07. | |
2575 Some x_set_* function expect to be called even if old and new | |
2576 value are equal. | |
2577 | |
2578 * xdisp.c (build_desired_tool_bar_string): Accept zero | |
2579 tool_bar_button_relief. | |
2580 | |
2581 * xfns.c (Fx_create_frame): Accept zero tool_bar_button_relief. | |
2582 | |
2583 * xterm.c (x_draw_image_relief): Accept zero tool_bar_button_relief. | |
2584 | |
2585 * xterm.c (x_draw_bar_cursor): If the background color of the | |
2586 glyph under the cursor equals the frame's cursor color, use | |
2587 the glyph's foreground color for drawing the bar cursor. | |
2588 | |
2589 * dispnew.c (direct_output_forward_char): Fix character/byte | |
2590 position comparison. | |
2591 | |
2592 2001-11-15 Miles Bader <miles@gnu.org> | |
2593 | |
2594 * editfns.c (find_field): Add BEG_LIMIT and END_LIMIT parameters. | |
2595 (Fdelete_field, Ffield_string, Ffield_string_no_properties): | |
2596 Update arguments to find_field. | |
2597 (Ffield_beginning, Ffield_end): Add LIMIT param, pass to find_field. | |
2598 (Fconstrain_to_field): Use LIMIT arg to shorten search time. | |
2599 * lisp.h (Ffield_beginning, Ffield_end): Update EXFUN decl. | |
2600 * minibuf.c (Fminibuffer_prompt_end): Update args to Ffield_end. | |
2601 | |
2602 2001-11-14 Richard M. Stallman <rms@gnu.org> | |
2603 | |
2604 * editfns.c (Fpropertize): Allow call with 1 arg. | |
2605 | |
2606 * dispextern.h (image_background, image_background_transparent): | |
2607 Conditionalize on HAVE_X_WINDOWS. | |
2608 | |
2609 2001-11-13 Richard M. Stallman <rms@gnu.org> | |
2610 | |
2611 * print.c (Fprin1_to_string): Doc fix. | |
2612 | |
2613 * sunfns.c (Fsun_change_cursor_icon): Doc fix. | |
2614 | |
2615 * floatfns.c (Fceiling, Ffloor): Doc fixes. | |
2616 | |
2617 * filelock.c (Funlock_buffer, Ffile_locked_p): Doc fixes. | |
2618 | |
2619 * fileio.c (Ffile_accessible_directory_p): Doc fix. | |
2620 | |
2621 * eval.c (syms_of_eval): Doc fix. | |
2622 | |
2623 * coding.c (syms_of_coding): Doc fix. | |
2624 | |
2625 * doc.c (Fsnarf_documentation): Doc fix. | |
2626 | |
2627 * dispnew.c (syms_of_display): Doc fix. | |
2628 | |
2629 * category.c (Fget_unused_category): Doc fix. | |
2630 | |
2631 * buffer.c (syms_of_buffer): Doc fixes. | |
2632 | |
2633 2001-11-14 Eli Zaretskii <eliz@is.elta.co.il> | |
2634 | |
2635 * print.c (prin1, print): Doc fix. | |
2636 | |
2637 2001-11-14 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
2638 | |
2639 * fontset.h: Remove declarations of variables | |
2640 `Vhighlight_wrong_size_font' and `Vclip_large_size_font'. | |
2641 | |
2642 * fontset.c: Remove variables `Vhighlight_wrong_size_font' and | |
2643 `Vclip_large_size_font'. | |
2644 | |
2645 2001-11-13 Jason Rumney <jasonr@gnu.org> | |
2646 | |
2647 * w32fns.c: Doc fix. | |
2648 | |
2649 2001-11-13 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
2650 | |
2651 * xfaces.c (Fface_attributes_as_vector): Doc fix. | |
2652 | |
2653 * w32fns.c (Fx_synchronize): Reindent. | |
2654 | |
2655 * fns.c: Doc fix. | |
2656 | |
2657 * emacs.c: Doc fix. | |
2658 | |
2659 * coding.c: Doc fix. | |
2660 | |
2661 * cmds.c, composite.c, dired.c, doc.c, filelock.c, floatfns.c, | |
2662 * fontset.c, insdel.c, keymap.c: Change doc-string comments to | |
2663 `new style' [w/`doc:' keyword]. | |
2664 | |
2665 * xmenu.c (x-popup-menu): Reindent. | |
2666 (x-popup-dialog): Likewise. | |
2667 | |
2668 * xfaces.c (Finternal_set_alternative_font_family_alist): Reindent. | |
2669 | |
2670 * xdisp.c (Fdump_tool_bar_row): Reindent. | |
2671 | |
2672 * minibuf.c (Fminibuffer_complete_word): Reindent. | |
2673 (Fminibuffer_complete_and_exit): Likewise. | |
2674 (Fminibuffer_completion_help): Likewise. | |
2675 (Fminibuffer_message): Likewise. | |
2676 | |
2677 * fns.c (Freverse): Reindent. | |
2678 | |
2679 * eval.c (Fif): Reindent. | |
2680 (Fand): Likewise. | |
2681 | |
2682 * editfns.c (Fuser_real_login_name): Reindent. | |
2683 (Finsert_buffer_substring): Likewise. | |
2684 (Fcompare_buffer_substrings): Likewise. | |
2685 (Fsubst_char_in_region): Likewise. | |
2686 | |
2687 * dispnew.c (Fsit_for): Reindent. | |
2688 (Fframe_or_buffer_changed_p): Likewise. | |
2689 (Finternal_show_cursor_p): Likewise. | |
2690 (syms_of_display): Likewise. | |
2691 | |
2692 * alloc.c (Flist): Reindent. | |
2693 (Fvector): Likewise. | |
2694 | |
2695 2001-11-12 Richard M. Stallman <rms@gnu.org> | |
2696 | |
2697 * xterm.c (XTread_socket): Don't update focus for EnterNotify or | |
2698 LeaveNotify events. Only FocusIn and FocusOut do that now. | |
2699 (x_display_and_set_cursor): Do display hollow cursors in active | |
2700 minibuffer windows when they are not selected. | |
2701 | |
2702 2001-11-12 Jason Rumney <jasonr@gnu.org> | |
2703 | |
2704 * w32console.c, w32fns.c, w32menu.c, w32proc.c, w32select.c, | |
2705 * w32term.c: Change doc-string comments to `new style'. | |
2706 [w/`doc:' keyword]. Doc fixes. | |
2707 | |
2708 * w32fns.c: Don't define max. | |
2709 (Fx_open_connection): Only execute once. | |
2710 | |
2711 2001-11-12 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
2712 | |
2713 * ccl.c: Change macros to use do-while block instead of if-else. | |
2714 Use braces to follow GNU Coding Standards. | |
2715 | |
2716 2001-11-11 Richard M. Stallman <rms@gnu.org> | |
2717 | |
2718 * sysdep.c (child_setup_tty): Don't clear ICRNL or INLCR. | |
2719 | |
2720 * lread.c (read_escape): Use end_of_file_error for reporting eof. | |
2721 | |
2722 * insdel.c (replace_range): Use adjust_markers_for_replace | |
2723 instead of adjust_markers_for_delete and adjust_markers_for_insert. | |
2724 | |
2725 * intervals.h: Declare set_text_properties and set_text_properties_1. | |
2726 | |
2727 * textprop.c (set_text_properties_1): New subroutine | |
2728 broken out of set_text_properties. | |
2729 (set_text_properties): Use set_text_properties_1. | |
2730 | |
2731 * intervals.c (graft_intervals_into_buffer): | |
2732 Use set_text_properties_1 to clear out properties. | |
2733 | |
2734 * search.c (Freplace_match): Use replace_range to insert | |
2735 and delete. Don't request property inheritance from | |
2736 surrounding text. | |
2737 | |
2738 2001-11-10 Jason Rumney <jasonr@gnu.org> | |
2739 | |
2740 * w32fns.c (enum_font_cb2): Use leading @ on face name to detect | |
2741 vertical fonts. Allow them if face name is explicitly specified. | |
2742 Do not give up if we find a font that cannot be converted to an xlfd. | |
2743 | |
2744 2001-11-10 Gerd Moellmann <gerd@gnu.org> | |
2745 | |
2746 * unexelf.c (unexec): Use mmap/munmap to allocate buffers | |
2747 instead of malloc/free. | |
2748 | |
2749 2001-11-09 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
2750 | |
2751 * xfaces.c (merge_face_vectors): Use braces to follow GNU | |
2752 Coding Standards. | |
2753 (Finternal_set_lisp_face_attribute): Likewise. | |
2754 | |
2755 * buffer.c (Fbury_buffer): Likewise. | |
2756 | |
2757 * indent.c (current_column_1): Remove unused variable `prev_col'. | |
2758 | |
2759 * coding.c (encode_coding): Use precomputed value of `src'. | |
2760 (encode_coding): Remove unused variable `src_end'. | |
2761 (code_convert_region): Remove unused variables `count'. | |
2762 | |
2763 2001-11-07 Jason Rumney <jasonr@gnu.org> | |
2764 | |
2765 * w32term.c (x_display_and_set_cursor): Do not move system caret | |
2766 if cursor_glyph is NULL. | |
2767 | |
2768 2001-11-07 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
2769 | |
2770 * keymap.c (access_keymap): Fix compilation error. | |
2771 | |
2772 2001-11-07 Miles Bader <miles@gnu.org> | |
2773 | |
2774 * xfns.c (x_set_frame_parameters): Avoid infinite recursion. | |
2775 | |
2776 2001-11-07 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
2777 | |
2778 * intervals.c (graft_intervals_into_buffer): | |
2779 Remove #ifdef'd-out code. | |
2780 (graft_intervals_into_buffer): Remove unused variable `middle'. | |
2781 | |
2782 * lread.c (Feval_region): Remove obsolete #ifdef'd-out | |
2783 code (eval-current-buffer). | |
2784 Change doc-string comments to `new style' [w/`doc:' keyword]. | |
2785 | |
2786 2001-11-06 Richard M. Stallman <rms@gnu.org> | |
2787 | |
2788 * keymap.c (access_keymap): Don't use initializers on Lisp_Object. | |
2789 | |
2790 2001-11-06 Stefan Monnier <monnier@cs.yale.edu> | |
2791 | |
2792 * lread.c (read1): Fix behavior with nested backquoting. | |
2793 | |
2794 * keyboard.c (make_lispy_event): Check integerness and fix | |
2795 Lisp_Object/int mixup. | |
2796 | |
2797 2001-11-06 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
2798 | |
2799 * fns.c (copy_hash_table): Remove unused variable `v'. | |
2800 | |
2801 * fontset.c (fontset_font_pattern): Remove unused variable | |
2802 `family_registry'. | |
2803 | |
2804 * indent.c (current_column_1): Remove unused variable `prev_col'. | |
2805 | |
2806 2001-11-05 Richard M. Stallman <rms@gnu.org> | |
2807 | |
2808 * m/news-risc.h (BROKEN_PROTOTYPES): Defined. | |
2809 | |
2810 * buffer.c (Fkill_buffer): Don't delete auto save file | |
2811 if buffer is modified. | |
2812 | |
2813 2001-11-05 Andrew Innes <andrewi@gnu.org> | |
2814 | |
2815 * w32proc.c (Fw32_set_keyboard_layout): Use CHECK_NUMBER_CAR and | |
2816 CHECK_NUMBER_CDR. | |
2817 | |
2818 2001-11-05 Richard M. Stallman <rms@gnu.org> | |
2819 | |
2820 * unexelf.c (unexec): Minor changes; clean up comments. | |
2821 | |
2822 2001-11-05 Sam Steingold <sds@gnu.org> | |
2823 | |
2824 * w32term.c (x_display_and_set_cursor): Fix w32 compilation error. | |
2825 | |
2826 2001-11-05 Andreas Schwab <schwab@suse.de> | |
2827 | |
2828 * sound.c (sound_perror): Save errno from being clobbered. | |
2829 | |
2830 2001-11-05 Dale Hagglund <rdh@yottayotta.com> | |
2831 | |
2832 * unexelf.c (unexec): Don't use `mmap'. Instead, read and write | |
2833 the program image directly. | |
2834 | |
2835 2001-11-05 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
2836 | |
2837 * buffer.h (Fbuffer_local_value): Add prototype. | |
2838 | |
2839 2001-11-04 Richard M. Stallman <rms@gnu.org> | |
2840 | |
2841 * buffer.c (Fbuffer_local_value): Remove extra args from CHECK_SYMBOL | |
2842 and CHECK_BUFFER. | |
2843 | |
2844 * keyboard.c (read_char): Use Fcar and Fcdr, not Fnth. | |
2845 (record_char): Likewise. | |
2846 | |
2847 * keyboard.c (make_lispy_event): Don't insist a drag event must | |
2848 move to a different buffer position. Instead, check for moving at | |
2849 least double_click_fuzz. | |
2850 | |
2851 * fns.c (Fmake_hash_table): Use XCAR and XCDR, not Fnth and Flength. | |
2852 | |
2853 * keyboard.c (echo-area-clear-hook): Undo Oct 29 change. | |
2854 | |
2855 * indent.c (current_column_1, Fmove_to_column): Separate the code | |
2856 for display-table glyphs from the code buffer text, to fix | |
2857 bugs in the former. | |
2858 | |
2859 2001-11-04 Michael Welsh Duggan <md5i@cs.cmu.edu> | |
2860 | |
2861 * buffer.c (Fbuffer_local_value): New function. | |
2862 (syms_of_buffer): Defsubr it. | |
2863 | |
2864 * xterm.c, w32term.c (x_display_and_set_cursor): Use buffer-local | |
2865 value of `cursor-in-non-selected-windows'. | |
2866 | |
2867 * lisp.h (Qcursor_in_non_selected_windows): New declaration. | |
2868 * xdisp.c (Qcursor_in_non_selected_windows): New variable. | |
2869 (syms_of_xdisp): Initialize it. | |
2870 | |
2871 2001-11-04 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
2872 | |
2873 * xfns.c (Fx_create_frame): Doc fix. | |
2874 | |
2875 * coding.c: Change doc-string comments to `new style' [w/`doc:' | |
2876 keyword]. | |
2877 | |
2878 * eval.c (top_level_value, top_level_set): Remove commented and | |
2879 #ifdef'd-out code. | |
2880 (Fdefvar): Fix usage in doc-string. | |
2881 | |
2882 2001-11-03 Richard M. Stallman <rms@gnu.org> | |
2883 | |
2884 * xfns.c: Include unistd.h, if it exists. | |
2885 | |
2886 * editfns.c: Move the include of ctype.h after unistd.h. | |
2887 | |
2888 * gmalloc.c: Test BROKEN_PROTOTYPES. | |
2889 | |
2890 2001-11-03 Ken Raeburn <raeburn@gnu.org> | |
2891 | |
2892 * lisp.h (CHECK_STRING_CAR): New macro. | |
2893 * lread.c (Fload): Use XSETCARFASTINT, XSETCDRFASTINT instead of | |
2894 treating XCAR and XCDR as lvalues. | |
2895 (openp): Use CHECK_STRING_CAR. | |
2896 (read_list): Use XSETCDR instead of treating XCDR as lvalue. | |
2897 | |
2898 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il> | |
2899 | |
2900 * s/sco5.h (sigprocmask_set): Declare as extern SIGMASKTYPE. | |
2901 (SIGMASKTYPE): Define. | |
2902 | |
2903 * syssignal.h (sigunblock): Don't define if already defined. | |
2904 | |
2905 2001-11-02 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
2906 | |
2907 * eval.c (debugger_may_continue, Vdebug_ignored_errors) | |
2908 (call_debugger, Fcondition_case, skip_debugger, unbind_to): | |
2909 Fix typos in comments. | |
2910 | |
2911 * mocklisp.c (Fml_defun, Fml_while, Fml_substr): Remove commented | |
2912 and #ifdef'd-out code. | |
2913 Fix and reindent comments. | |
2914 | |
2915 * mocklisp.h: Remove comment which is a copy of comment in mocklisp.c. | |
2916 | |
2917 * category.h (CHECK_CATEGORY, CHECK_CATEGORY_SET): Remove unused | |
2918 argument `i' in macros. | |
2919 | |
2920 * frame.h (CHECK_FRAME, CHECK_LIVE_FRAME): Remove unused argument | |
2921 `i' in macros. | |
2922 | |
2923 * lisp.h (CHECK_STRING_OR_BUFFER, CHECK_HASH_TABLE, CHECK_LIST) | |
2924 (CHECK_STRING, CHECK_CONS, CHECK_SYMBOL, CHECK_CHAR_TABLE) | |
2925 (CHECK_VECTOR, CHECK_VECTOR_OR_CHAR_TABLE, CHECK_BUFFER) | |
2926 (CHECK_WINDOW, CHECK_LIVE_WINDOW, CHECK_PROCESS, CHECK_NUMBER) | |
2927 (CHECK_NATNUM, CHECK_MARKER, CHECK_NUMBER_COERCE_MARKER) | |
2928 (CHECK_FLOAT, CHECK_NUMBER_OR_FLOAT) | |
2929 (CHECK_NUMBER_OR_FLOAT_COERCE_MARKER, CHECK_OVERLAY) | |
2930 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): Remove unused argument `i' | |
2931 in macros. | |
2932 | |
2933 * abbrev.c, alloc.c, buffer.c, bytecode.c, callint.c, callproc.c, | |
2934 * casefiddle.c, category.c, ccl.c, charset.c, cmds.c, coding.c, | |
2935 * composite.c, data.c, dired.c, dispnew.c, doc.c, dosfns.c, emacs.c, | |
2936 * eval.c, fileio.c, filelock.c, fns.c, fontset.c, frame.c, frame.h, | |
2937 * indent.c, keyboard.c, keymap.c, lread.c, macros.c, marker.c, | |
2938 * minibuf.c, mocklisp.c, msdos.c, print.c, process.c, search.c, | |
2939 * sunfns.c, syntax.c, textprop.c, undo.c, w16select.c, w32console.c, | |
2940 * w32fns.c, w32menu.c, w32proc.c, w32select.c, window.c, xdisp.c, | |
2941 * xfaces.c, xmenu.c, xselect.c: Update usage of CHECK_ macros | |
2942 (remove unused second argument). | |
2943 | |
2944 2001-11-02 Stefan Monnier <monnier@cs.yale.edu> | |
2945 | |
2946 * syntax.c (describe_syntax): New wrapper. | |
2947 (Finternal_describe_syntax_value): Rename from describe_syntax. | |
2948 Don't insert space at front and \n at the end. | |
2949 (syms_of_syntax): Defsubr Sinternal_describe_syntax_value. | |
2950 | |
2951 * regex.c (re_wctype): Try to fix some warnings. | |
2952 (regcomp, regexec): Don't forget the __restrict. | |
2953 | |
2954 2001-11-02 Richard M. Stallman <rms@gnu.org> | |
2955 | |
2956 * textprop.c (Fget_char_property): Doc fix. | |
2957 | |
2958 2001-11-02 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
2959 | |
2960 * process.c (Fstart_process): Add usage to doc-string. | |
2961 | |
2962 * data.c (Fsetq_default): Ditto. | |
2963 | |
2964 * callint.c (Finteractive): Ditto. | |
2965 | |
2966 2001-11-01 Stefan Monnier <monnier@cs.yale.edu> | |
2967 | |
2968 * macros.c: Don't include keymap.h any more. | |
2969 | |
2970 2001-11-01 Richard M. Stallman <rms@gnu.org> | |
2971 | |
2972 * data.c (Fmake_local_variable): Doc fix. | |
2973 | |
2974 * eval.c (Frun_hooks, Frun_hook_with_args_until_failure): Doc fix. | |
2975 (Frun_hook_with_args_until_success, Frun_hook_with_args): Doc fix. | |
2976 | |
2977 * keymap.c (Fdescribe_buffer_bindings): Print character property | |
2978 bindings along with or instead of the buffer local map. | |
2979 Make the overriding maps override what they should. | |
2980 | |
2981 2001-11-01 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
2982 | |
2983 * window.c (grow_mini_window): Fix typo in comment. | |
2984 | |
2985 2001-11-01 Gerd Moellmann <gerd@gnu.org> | |
2986 | |
2987 * xterm.c (x_scroll_bar_create): Check for width and height > 0. | |
2988 (XTset_vertical_scroll_bar): Likewise. | |
2989 | |
2990 * xfns.c (x_build_heuristic_mask): Use four_corners_best | |
2991 instead of IMAGE_BACKGROUND. | |
2992 | |
2993 * xfns.c (four_corners_best): Reindent. | |
2994 | |
2995 * xfaces.c (Finternal_set_lisp_face_attribute_from_resource): | |
2996 Handle :box so that it is possible to specify sexprs. | |
2997 | |
2998 2001-11-01 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
2999 | |
3000 * xfaces.c (Finternal_merge_in_global_face): Reindent. | |
3001 (Fface_font): Ditto. | |
3002 (Finternal_set_alternative_font_registry_alist): Ditto. | |
3003 (Ftty_suppress_bold_inverse_default_colors): Ditto. | |
3004 | |
3005 * xfns.c (x-get-resource): Reindent. | |
3006 | |
3007 2001-10-31 Eli Zaretskii <eliz@is.elta.co.il> | |
3008 | |
3009 * s/hpux11.h: New file. | |
3010 | |
3011 2001-10-31 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
3012 | |
3013 * emacs.c (USAGE1): Show command line option --no-window-system | |
3014 instead of --no-windows in usage. | |
3015 (standard_args): Rename --no-windows to --no-window-system. | |
3016 (bug_reporting_address): Follow Emacs coding conventions. | |
3017 | |
3018 * eval.c (Fcommandp): Doc fix. | |
3019 Change doc-string comments to `new style' [w/`doc:' keyword]. | |
3020 | |
3021 * frame.c (Fframe_live_p): Doc fix. | |
3022 | |
3023 * buffer.c (selective-display-ellipses): Doc fix. | |
3024 | |
3025 2001-10-31 Gerd Moellmann <gerd@gnu.org> | |
3026 | |
3027 * lread.c (to_multibyte): Fix computation of new read_buffer_size. | |
3028 | |
3029 * xfaces.c (realize_x_face): If C is not a single-byte character, | |
3030 set the face's colors_copied_bitwise_p instead of the defaulted_p | |
3031 members which have a different meaning. | |
3032 (free_face_colors): Do nothing for a face whose colors have been | |
3033 copied bitwise. | |
3034 | |
3035 * dispextern.h (struct face) <colors_copied_bitwise_p>: New member. | |
3036 | |
3037 2001-10-31 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
3038 | |
3039 * marker.c, mocklisp.c: Change doc-string comments to `new style' | |
3040 [w/`doc:' keyword]. | |
3041 | |
3042 2001-10-31 Gerd Moellmann <gerd@gnu.org> | |
3043 | |
3044 * fns.c (require_unwind): Return Lisp_Object. | |
3045 | |
3046 2001-10-31 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
3047 | |
3048 * keyboard.c (lucid-menu-bar-dirty-flag): Doc fix. | |
3049 (last-input-char): Revert doc-string to be the same as the | |
3050 doc-string of `last-input-event'. | |
3051 | |
3052 * xdisp.c: Fix typos in comments. | |
3053 | |
3054 2001-10-31 Gerd Moellmann <gerd@gnu.org> | |
3055 | |
3056 * window.c (grow_mini_window): Handle case that the root | |
3057 window is already smaller than the nominal mininum height. | |
3058 | |
3059 2001-10-30 Stefan Monnier <monnier@cs.yale.edu> | |
3060 | |
3061 * emacs.c (main): Don't call keys_of_macros any more. | |
3062 | |
3063 * lisp.h (keys_of_macros): Remove. | |
3064 | |
3065 * macros.c (keys_of_macros): Remove. | |
3066 | |
3067 * xfaces.c (Fface_attribute_relative_p): Declare args. | |
3068 | |
3069 2001-10-30 Jason Rumney <jasonr@gnu.org> | |
3070 | |
3071 * w32fns.c (w32_to_x_charset): Increase size of XLFD charset buffer. | |
3072 (enum_font_cb2): Ignore fonts with vertical orientation. | |
3073 | |
3074 2001-10-30 Richard M. Stallman <rms@gnu.org> | |
3075 | |
3076 * keyboard.c (Finput_pending_p): Doc fix. | |
3077 | |
3078 2001-10-30 Gerd Moellmann <gerd@gnu.org> | |
3079 | |
3080 * xterm.c (x_after_update_window_line): Don't run the code | |
3081 clearing in borders for rows whose visible height is 0. | |
3082 | |
3083 * xdisp.c (clear_garbaged_frames): Redraw the frame only if its | |
3084 resized_p flag is set. If not set, use the much less flickering | |
3085 method previously used. | |
3086 | |
3087 * dispnew.c (change_frame_size_1): Set frame's resized_p. | |
3088 | |
3089 * frame.h (struct frame) <resized_p>: New member. | |
3090 | |
3091 * lread.c (to_multibyte): Ensure read_buffer is at least twice | |
3092 as large as the number of bytes to convert. | |
3093 | |
3094 * lread.c (to_multibyte): New function. | |
3095 (read1): Use it. | |
3096 | |
3097 2001-10-30 Eli Zaretskii <eliz@is.elta.co.il> | |
3098 | |
3099 * msdos.h (FRAME_LINE_HEIGHT): Define (it's used by xmenu.c). | |
3100 | |
3101 2001-10-30 Gerd Moellmann <gerd@gnu.org> | |
3102 | |
3103 * xterm.c (x_draw_relief_rect): Correct bottom relief by 1 pixel. | |
3104 (x_set_glyph_string_background_width): Set extends_to_end_of_line_p | |
3105 if the row's fill_line_p is set and drawing the last glyph with | |
3106 DRAW_IMAGE_{RAISED,SUNKEN}. | |
3107 | |
3108 * xdisp.c (clear_garbaged_frames): Call Fredraw_frame. | |
3109 | |
3110 2001-10-29 Stefan Monnier <monnier@cs.yale.edu> | |
3111 | |
3112 * xmenu.c: Include coding.h and charset.h. | |
3113 (Fx_popup_menu): Use FRAME_PTR and FRAME_FONT and FRAME_LINE_HEIGHT. | |
3114 (Fx_popup_dialog): Use FRAME_PTR and enum scroll_bar_part. | |
3115 (single_submenu, xmenu_show): Use ENCODE_SYSTEM. | |
3116 Explicitly set wv->help. Use `TRUE' rather than `True'. | |
3117 (menu_help_callback): Use empty_string. | |
3118 | |
3119 * w32menu.c (Fx_popup_menu): Explicitly init f, xpos, and ypos. | |
3120 (Fx_popup_dialog): Explicitly init f. | |
3121 (w32_menu_display_help): Use empty_string. | |
3122 | |
3123 2001-10-29 Richard M. Stallman <rms@gnu.org> | |
3124 | |
3125 * fns.c (Frequire): Detect recursive try to require the same | |
3126 feature 3 or more levels deep, and get error. | |
3127 (require_unwind): New subroutine. | |
3128 (require_nesting_list): New variable. | |
3129 (syms_of_fns): Init and staticpro it. | |
3130 | |
3131 * print.c (print_object): Clarify indication of insertion type. | |
3132 | |
3133 2001-10-29 Eli Zaretskii <eliz@is.elta.co.il> | |
3134 | |
3135 * coding.c (syms_of_coding): Document that locale-coding-system is | |
3136 used for decoding input on X. | |
3137 | |
3138 * window.c (Fscroll_left, Fscroll_right): Doc fix. | |
3139 | |
3140 2001-10-29 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
3141 | |
3142 * keyboard.c (Finput_pending_p): Fix typo in doc-string. | |
3143 (echo-area-clear-hook): Properly DEFVAR_LISP and staticpro it. | |
3144 | |
3145 2001-10-29 Gerd Moellmann <gerd@gnu.org> | |
3146 | |
3147 * xterm.c (x_display_and_set_cursor): If cursor_in_echo_area, | |
3148 use NO_CURSOR if cursor_in_non_selected_windows is false. | |
3149 | |
3150 * xfaces.c (Fface_font): Use UNSPECIFIEDP instead of NILP for | |
3151 the slant attribute if FRAME is t. | |
3152 | |
3153 * xfns.c (x_set_internal_border_width): Set frame garbaged | |
3154 when X window doesn't exist yet. | |
3155 | |
3156 * xterm.c (x_after_update_window_line): Clear internal border | |
3157 in different circumstances. | |
3158 | |
3159 * xterm.c (XTread_socket) <KeyPress>: Don't use | |
3160 STRING_CHAR_AND_LENGTH if nchars == nbytes. From Kenichi Handa | |
3161 <handa@etl.go.jp>. | |
3162 | |
3163 2001-10-28 Eli Zaretskii <eliz@is.elta.co.il> | |
3164 | |
3165 * m/ibms390.h: New file. From Adam Thornton | |
3166 <athornton@sinenomine.net>. | |
3167 | |
3168 2001-10-28 Gerd Moellmann <gerd@gnu.org> | |
3169 | |
3170 * xfns.c (x_build_heuristic_mask): Use x_alloc_image_color. | |
3171 | |
3172 * xfns.c (x_build_heuristic_mask): Fix a bug not incrementing | |
3173 a loop counter. | |
3174 | |
3175 2001-10-28 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
3176 | |
3177 * emacs.c: Use argv[0] instead of emacs when -t was specified. | |
3178 | |
3179 * keyboard.c: Change doc-string comments to `new style' [w/`doc:' | |
3180 keyword]. | |
3181 Fix typos in comments. | |
3182 | |
3183 * emacs.c (bug_reporting_address): New function. | |
3184 Use it when displaying usage message. | |
3185 | |
3186 * minibuf.c (read_minibuf): Remove unused external declaration of | |
3187 variable `Qread_only'. | |
3188 | |
3189 * keymap.c (access_keymap): Remove unused variable `charset'. | |
3190 | |
3191 2001-10-28 Miles Bader <miles@gnu.org> | |
3192 | |
3193 * xfaces.c (merge_face_heights): Handle TO being relative as well. | |
3194 Remove #ifdef'd-out code. | |
3195 (Fface_attribute_relative_p, Fmerge_face_attribute): New functions. | |
3196 (syms_of_xfaces): Initialize them. | |
3197 | |
3198 2001-10-27 Jason Rumney <jasonr@gnu.org> | |
3199 | |
3200 * w32fns.c (w32_wnd_proc) <WM_KILLFOCUS>: Destroy the system caret. | |
3201 <WM_EMACS_DESTROY_CARET, WM_EMACS_TRACK_CARET>: Track cursor | |
3202 position using the system caret. | |
3203 | |
3204 * w32term.c (w32_system_caret_hwnd, w32_system_caret_width) | |
3205 (w32_system_caret_height, w32_system_caret_x) | |
3206 (w32_system_caret_y): New variables for tracking system caret. | |
3207 (w32_initialize): Initialize them. | |
3208 (x_display_and_set_cursor): Make system caret follow the active cursor. | |
3209 | |
3210 * w32term.h (WM_EMACS_TRACK_CARET, WM_EMACS_DESTROY_CARET): | |
3211 New messages types. | |
3212 | |
3213 * w32term.c (note_mouse_highlight): Clear old help_echo. | |
3214 | |
3215 2001-10-27 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
3216 | |
3217 * xterm.c: Fix typo in a comment. | |
3218 | |
3219 * emacs.c: Fix typos in comments. | |
3220 Remove unnecessary spaces. | |
3221 Change doc-string comments to `new style' [w/`doc:' keyword]. | |
3222 (USAGE2): Fix typos in usage string. | |
3223 | |
3224 * xterm.c: Fix typo in a comment. | |
3225 | |
3226 * lisp.h: (gdb_lisp_params): Remove code in #if 0 which is now in | |
3227 emacs.c. | |
3228 | |
3229 2001-10-27 Gerd Moellmann <gerd@gnu.org> | |
3230 | |
3231 * xdisp.c (move_it_vertically_backward): Use 2/3 line_height | |
3232 instead of 1/2 line_height in the heuristic for skipping | |
3233 farther backward when target_y was not reached. | |
3234 | |
3235 * sound.c (sound_perror): Unblock SIGIO, turn on atimers. | |
3236 Display errno only if non-zero. | |
3237 (sound_warning): New function. | |
3238 (vox_configure): Don't treat failing to set sample rate as error. | |
3239 (various places): Improve error messages. | |
3240 | |
3241 2001-10-26 Eli Zaretskii <eliz@is.elta.co.il> | |
3242 | |
3243 * fileio.c (Faccess_file): Run the argument filename through | |
3244 Fexpand_file_name, before using it. | |
3245 | |
3246 * dispnew.c (syms_of_display) <visible-bell>: Add a reference to | |
3247 ring-bell-function. Suggested by Alf-Ivar Holm <alfh@ifi.uio.no> | |
3248 | |
3249 2001-10-26 Gerd Moellmann <gerd@gnu.org> | |
3250 | |
3251 * insdel.c (insert_1_both): Do nothing if NCHARS == 0. | |
3252 | |
3253 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]: | |
3254 Fix clearing in the case of scroll bars on the right. | |
3255 | |
3256 2001-10-26 Juanma Barranquero <lektu@terra.es> | |
3257 | |
3258 * w32gui.h (XImage): Add a dummy typedef. | |
3259 | |
3260 2001-10-26 Gerd Moellmann <gerd@gnu.org> | |
3261 | |
3262 * xfns.c (XScreenNumberOfScreen): Fix struct to pointer comparison. | |
3263 | |
3264 2001-10-25 Eli Zaretskii <eliz@is.elta.co.il> | |
3265 | |
3266 * frame.c (Fframe_parameter): Fix last change. | |
3267 | |
3268 * fileio.c: Revert last change (which removed old commented-out | |
3269 version of expand-file-name). Add a comment that explains why | |
3270 this old version should not be removed. | |
3271 | |
3272 2001-10-25 Gerd Moellmann <gerd@gnu.org> | |
3273 | |
3274 * frame.c (Fframe_parameter): Fix a bug whereby some | |
3275 ``artificial'' frame parameters, like `minibuffer' were not | |
3276 obtained by calling Fframe_parameters. | |
3277 | |
3278 * xterm.c (show_mouse_face): Clean up. Recognize overwritten | |
3279 cursor differently. | |
3280 | |
3281 * xdisp.c (move_it_vertically_backward): Compute line height | |
3282 differently. Add heuristic to try to be more compatible to 20.x. | |
3283 | |
3284 2001-10-25 Stefan Monnier <monnier@cs.yale.edu> | |
3285 | |
3286 * lisp.h (make_fixnum_or_float): Coerce double to int explicitly. | |
3287 | |
3288 * editfns.c (text_property_stickiness): Fix Lisp_Object used as | |
3289 boolean. | |
3290 | |
3291 2001-10-25 Miles Bader <miles@gnu.org> | |
3292 | |
3293 * xfns.c (png_load): Make sure SPECIFIED_BG is a string. | |
3294 BG is a pointer to a structure, not a structure. | |
3295 (gif_format, png_format): Add missing commas. | |
3296 | |
3297 2001-10-24 Richard M. Stallman <rms@gnu.org> | |
3298 | |
3299 * xfaces.c (Fface_attributes_as_vector): New function. | |
3300 (syms_of_xfaces): Defsubr it. | |
3301 | |
3302 2001-10-24 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
3303 | |
3304 * dispnew.c (sync_window_with_frame_matrix_rows): Remove unused | |
3305 variable `area'. | |
3306 | |
3307 2001-10-25 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
3308 | |
3309 * search.c (scan_newline): Remove unused variable `selective_display'. | |
3310 | |
3311 2001-10-25 Miles Bader <miles@gnu.org> | |
3312 | |
3313 * dispextern.h (struct image): Add `background', | |
3314 `background_valid', and `background_transparent' fields. | |
3315 (image_background, image_background_transparent): New declarations. | |
3316 (IMAGE_BACKGROUND, IMAGE_BACKGROUND_TRANSPARENT): New macros. | |
3317 * xfns.c (image_background, image_background_transparent) | |
3318 (four_corners_best): New functions. | |
3319 (xpm_format, png_format, jpeg_format, tiff_format, gif_format) | |
3320 (gs_format): Add `:background' entry. | |
3321 (lookup_image): Set IMG's background color if specified. | |
3322 (pbm_load, xbm_load_image, png_load): Set IMG's background field | |
3323 when appropriate. | |
3324 (x_clear_image_1): Reset `background_valid' and | |
3325 `background_transparent_valid' fields. | |
3326 (x_build_heuristic_mask): Use IMAGE_BACKGROUND instead of | |
3327 calculating it here. Set IMG's background_transparent field. | |
3328 (enum xpm_keyword_index): Add XPM_BACKGROUND. | |
3329 (enum png_keyword_index): Add PNG_BACKGROUND. | |
3330 (enum jpeg_keyword_index): Add JPEG_BACKGROUND. | |
3331 (enum tiff_keyword_index): Add TIFF_BACKGROUND. | |
3332 (enum gif_keyword_index): Add GIF_BACKGROUND. | |
3333 (enum gs_keyword_index): Add GS_BACKGROUND. | |
3334 (pbm_load, png_load, jpeg_load, tiff_load, gif_load): | |
3335 Pre-calculate image background color where necessary. | |
3336 * xterm.c (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and | |
3337 `IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background | |
3338 color to use for image glyph reliefs. | |
3339 | |
3340 2001-10-24 Gerd Moellmann <gerd@gnu.org> | |
3341 | |
3342 * xterm.c (x_draw_glyphs): Don't check for cursor overwriting | |
3343 in full-width rows. | |
3344 | |
3345 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]: | |
3346 Fix clearing of area not covered by scroll bar. | |
3347 | |
3348 2001-10-24 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
3349 | |
3350 * xterm.c: (x_insert_glyphs): Remove unused variables `real_end' | |
3351 and `real_start'. | |
3352 (x_draw_image_foreground): Remove unused variables `mask' and `xgcv'. | |
3353 (glyph_rect): Remove unused variable `area'. | |
3354 | |
3355 2001-10-24 Gerd Moellmann <gerd@gnu.org> | |
3356 | |
3357 * xdisp.c: Change #ifdef GLYPH_DEBUG to #if. | |
3358 | |
3359 * xdisp.c (try_window_reusing_current_matrix): Use row_containing_pos. | |
3360 (row_containing_pos): Take additional argument DY. | |
3361 Treat rows ending in middle of char differently. | |
3362 (display_line): Handle tabs on window systems differently. | |
3363 | |
3364 * xterm.c, w32term.c (fast_find_position): Call row_containing_pos | |
3365 with additional argument. | |
3366 | |
3367 * dispextern.h (row_containing_pos): Adjust prototype. | |
3368 | |
3369 * xdisp.c (inhibit_try_window_id, inhibit_try_window_reusing) | |
3370 (inhibit_try_cursor_movement) [GLYPH_DEBUG]: New variables. | |
3371 (try_window_id, try_window_reusing_current_matrix) | |
3372 (try_cursor_movement) [GLYPH_DEBUG]: Don't run if inhibited. | |
3373 (syms_of_xdisp) [GLYPH_DEBUG]: DEFVAR_BOOL the variables. | |
3374 | |
3375 2001-10-24 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
3376 | |
3377 * xmenu.c: Spell the name of Emacs properly (GNU Emacs instead of | |
3378 gnuemacs). | |
3379 (HAVE_BOXES): Fix typo in comment. | |
3380 (push_menu_pane): Fix typo in comment. | |
3381 | |
3382 * xdisp.c: (display_prop_string_p): Remove unused local declaration | |
3383 of `Qwhen'. | |
3384 (single_display_prop_string_p): Remove unused local declarations | |
3385 of `Qwhen' and `Qmargin'. | |
3386 (string_buffer_position): Remove unused variable `around'. | |
3387 (store_frame_title): Remove unused variable `width'. | |
3388 | |
3389 * window.c: Don't define max. | |
3390 (coordinates_in_window): Remove unused variable `uy'. | |
3391 | |
3392 * widget.c: Don't define max. | |
3393 | |
3394 * process.c: Don't define max. | |
3395 (create_process): Remove unused variable `buffer'. | |
3396 | |
3397 2001-10-23 Gerd Moellmann <gerd@gnu.org> | |
3398 | |
3399 * xfaces.c (Finternal_set_lisp_face_attribute): Fix compilation error. | |
3400 | |
3401 2001-10-23 Eli Zaretskii <eliz@is.elta.co.il> | |
3402 | |
3403 * xfaces.c (Finternal_set_lisp_face_attribute) | |
3404 [HAVE_WINDOW_SYSTEM]: Don't do anything for QCfont unless the | |
3405 frame is on a windowed display. | |
3406 | |
3407 2001-10-23 Gerd Moellmann <gerd@gnu.org> | |
3408 | |
3409 * dispnew.c (sync_window_with_frame_matrix_rows): | |
3410 Fix handling of windows which aren't full-width, fix handling | |
3411 of marginal areas. | |
3412 | |
3413 * lread.c (syms_of_lread) <recursive-load-depth-limit>: Raise to 50. | |
3414 | |
3415 2001-10-23 Andreas Schwab <schwab@suse.de> | |
3416 | |
3417 * m/macppc.h [LINUX]: Undef LD_SWITCH_SYSTEM_TEMACS and override | |
3418 LD_SWITCH_MACHINE_TEMACS with "-Xlinker -znocombreloc". | |
3419 | |
3420 2001-10-23 Gerd Moellmann <gerd@gnu.org> | |
3421 | |
3422 * xterm.c (x_draw_glyphs): Remove parameters READ_START and | |
3423 REAL_END. Notice if cursor gets overwritten. | |
3424 (notice_overwritten_cursor): Take X positions as parameters. | |
3425 (x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p | |
3426 around call to x_draw_glyphs. | |
3427 | |
3428 2001-10-23 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
3429 | |
3430 * syntax.c (modify-syntax-entry): Fix argument names (use CHAR | |
3431 instead of C) and usage. | |
3432 | |
3433 * editfns.c (char-to-string): Fix argument names (use CHAR instead | |
3434 of C) and usage. | |
3435 | |
3436 * xfns.c (Fx_show_tip): Remove unused variables `buffer', `top', | |
3437 `left', `max_width' and `max_height'. | |
3438 | |
3439 2001-10-23 Gerd Moellmann <gerd@gnu.org> | |
3440 | |
3441 * xdisp.c (display_line): For a tab continued to the next line, | |
3442 set row's ends_in_middle_of_char_p. | |
3443 | |
3444 2001-10-22 Gerd Moellmann <gerd@gnu.org> | |
3445 | |
3446 * xdisp.c (display_line): Fix computation of continuation lines | |
3447 width for TABs. | |
3448 | |
3449 2001-10-22 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
3450 | |
3451 * xdisp.c (build_desired_tool_bar_string): Remove unused variable | |
3452 `Qlaplace'. | |
3453 | |
3454 * fileio.c: Remove unused code. | |
3455 | |
3456 2001-10-22 Miles Bader <miles@gnu.org> | |
3457 | |
3458 * lisp.h (DEFVAR_LISP, DEFVAR_LISP_NOPRO, DEFVAR_BOOL) | |
3459 (DEFVAR_INT, DEFVAR_PER_BUFFER, DEFVAR_KBOARD): | |
3460 Remove `DOC_STRINGS_IN_COMMENTS' cases. | |
3461 | |
3462 2001-10-21 Jason Rumney <jasonr@gnu.org> | |
3463 | |
3464 * w32term.c (x_erase_phys_cursor): Remove inverse_p again. | |
3465 | |
3466 2001-10-21 Eli Zaretskii <eliz@is.elta.co.il> | |
3467 | |
3468 * mocklisp.c (Fml_if, Fml_provide_prefix_argument) | |
3469 (Finsert_string): Avoid the multi-line string literals warning. | |
3470 | |
3471 2001-10-22 Miles Bader <miles@gnu.org> | |
3472 | |
3473 * doc.c (Vhelp_manyarg_func_alist): Variable removed. | |
3474 (Fdocumentation): Don't use it. | |
3475 (syms_of_doc): Don't initialize it. | |
3476 | |
3477 * keyboard.c (Ftrack_mouse): Add usage: string to doc string. | |
3478 * print.c (Fwith_output_to_temp_buffer): Likewise. | |
3479 * window.c (Fsave_window_excursion): Likewise. | |
3480 * editfns.c (Fsave_excursion, Fsave_current_buffer) | |
3481 (Fsave_restriction): Likewise. | |
3482 * eval.c (Frun_hooks, Frun_hook_with_args) | |
3483 (Frun_hook_with_args_until_failure) | |
3484 (Frun_hook_with_args_until_success, Ffuncall, For, Fand, Fif) | |
3485 (Fcond, Fprogn, Fprog1, Fprog2, Fsetq, Fquote, Ffunction, Fdefun) | |
3486 (Fdefmacro, Fdefvar, Fdefconst, FletX, Flet, Fwhile, Fcatch) | |
3487 (Funwind_protect, Fcondition_case): Likewise. | |
3488 * coding.c (Ffind_operation_coding_system): Likewise. | |
3489 * keyboard.c (Ftrack_mouse): Likewise. | |
3490 | |
3491 2001-10-21 Miles Bader <miles@gnu.org> | |
3492 | |
3493 * fns.c (Fappend, Fconcat, Fvconcat, Fnconc, Fwidget_apply) | |
3494 (Fmake_hash_table): Add usage: string to doc string. | |
3495 * editfns.c (Finsert, Finsert_and_inherit, Finsert_before_markers) | |
3496 (Fmessage, Fmessage_box, Fmessage_or_box, Fpropertize, Fformat) | |
3497 (Fencode_time, Finsert_and_inherit_before_markers): Likewise. | |
3498 * mocklisp.c (Finsert_string, Fml_if, Fml_provide_prefix_argument) | |
3499 (Fml_prefix_argument_loop): Likewise. | |
3500 | |
3501 2001-10-21 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
3502 | |
3503 * fileio.c (Finsert_file_contents): Remove unused variable `gap_size'. | |
3504 | |
3505 * sysdep.c (init_sys_modes): Change doc-string comments to `new | |
3506 style' [w/`doc:' keyword]. | |
3507 | |
3508 * data.c, fileio.c, indent.c, print.c, search.c, sound.c, | |
3509 * sunfns.c, textprop.c, undo.c, xselect.c: Change doc-string | |
3510 comments to `new style' [w/`doc:' keyword]. | |
3511 | |
3512 2001-10-21 Jason Rumney <jasonr@gnu.org> | |
3513 | |
3514 * w32fns.c (Fx_file_dialog): Pass a filter to GetOpenFileName. | |
3515 | |
3516 * w32term.c (remember_mouse_glyph): New function. | |
3517 (w32_mouse_position): Use it. | |
3518 (note_mouse_movement): If the mouse moved off the glyph, remember | |
3519 its new position. | |
3520 | |
3521 * w32term.h (struct w32_output): Correct spelling of x_compatible. | |
3522 (w32_display_info): Add mouse_face_overlay. | |
3523 | |
3524 * w32term.c (notice_overwritten_cursor): Renamed from | |
3525 note_overwritten_text_cursor. Rewritten to take glyph widths into | |
3526 account. | |
3527 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P. | |
3528 (fast_find_string_pos): New function. | |
3529 (fast_find_position): Return the correct vpos. Add parameter | |
3530 STOP. In the final row, stop before glyphs having STOP as object. | |
3531 Don't consider glyphs that are not from a buffer. | |
3532 (fast_find_position) [0]: Add a presumably more correct version | |
3533 for after 21.1. | |
3534 (expose_window_tree, expose_frame): Don't compute intersections here. | |
3535 (expose_window): Do it here instead. | |
3536 (expose_window_tree, expose_window, expose_line): Return 1 when | |
3537 overwriting mouse-face. | |
3538 (expose_window): If W is the window currently being updated, mark | |
3539 the frame garbaged. | |
3540 (expose_frame): If mouse-face was overwritten, redo it. | |
3541 (x_use_underline_position_properties): New variable. | |
3542 (syms_of_xterm): DEFVAR_BOOL it. | |
3543 (x_draw_glyph_string): Add comment to use it in future. | |
3544 (x_draw_glyph_string): Restore clipping after drawing box. | |
3545 Fix a computation of the underline position. | |
3546 (w32_get_glyph_string_clip_rect): Minor cleanup. | |
3547 (x_fill_stretch_glyph_string): Remove an assertion. | |
3548 (x_produce_glyphs): Don't convert multibyte characters | |
3549 to unibyte characters in unibyte buffers. | |
3550 (cursor_in_mouse_face_p): New function. | |
3551 (x_draw_stretch_glyph_string): Use it to choose a different GC | |
3552 when drawing a cursor within highlighted text. Don't draw | |
3553 background again if it has already been drawn. | |
3554 (x_draw_glyph_string_box): Don't draw a full-width | |
3555 box just because the glyph row's full_width_p flag is set. | |
3556 (x_draw_glyphs): Fix computation of rightmost x for | |
3557 full-width rows. | |
3558 (x_dump_glyph_string): Put in #if GLYPH_DEBUG. | |
3559 (w32_draw_relief_rect): Extend left shadow to the bottom and left; | |
3560 change bottom shadow accordingly. Some cleanup. | |
3561 (x_update_window_end): Handle overwritten mouse face | |
3562 also for tool bar windows. | |
3563 (show_mouse_face): Set the glyph row's mouse_face_p flag also when | |
3564 DRAW is DRAW_IMAGE_RAISED. | |
3565 (clear_mouse_face): Return 1 if text with mouse face was | |
3566 actually redrawn. Make the function static. Reset | |
3567 dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might | |
3568 optimize away highlighting if we pass over that same overlay again. | |
3569 (note_mouse_highlight): Call mouse_face_overlay_overlaps | |
3570 to detect a case where we have to highlight a different region | |
3571 despite not having left the currently highlighted region. | |
3572 Set mouse_face_overlay in the x_display_info. Avoid changing the | |
3573 mouse pointer shape when show_mouse_face has already done it, or | |
3574 there is no need. Handle mouse-face and help-echo in strings. | |
3575 (glyph_rect): New function. | |
3576 (w32_mouse_position): Use it to raise the threshold for mouse | |
3577 movement event generation. | |
3578 (w32_initialize_display_info): Initialize the x_display_info's | |
3579 mouse_face_overlay. | |
3580 (w32_set_vertical_scroll_bar): Don't clear a zero height | |
3581 or width area. | |
3582 (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure | |
3583 a widget to zero height. | |
3584 | |
3585 * w32menu.c (single_submenu, w32_menu_show) [!HAVE_MULTILINGUAL_MENU]: | |
3586 Protect unibyte strings created by replacing their multibyte | |
3587 equivalents in menu_items. | |
3588 (w32_menu_show): Don't overwrite an item's name with its key | |
3589 description in case the description is a multibyte string. | |
3590 (single_submenu): Some cleanup. | |
3591 | |
3592 * w32fns.c (x_laplace_read_row, x_laplace_write_row): Removed. | |
3593 (postprocess_image): New function. | |
3594 (lookup_image): Call it for all image types except PostScript. | |
3595 (x_kill_gs_process): Call postprocess_image. | |
3596 (tiff_error_handler, tiff_warning_handler): New functions. | |
3597 (tiff_load): Install them as handlers. | |
3598 (x_kill_gs_process): Recognize if someone has cleared the image | |
3599 cache under us. | |
3600 (valid_image_p): Protect better against invalid image | |
3601 specifications. Previous code could signal an error. | |
3602 (Fx_hide_tip, Fshow_tip): Doc fix. | |
3603 (Fv_max_tooltip_size): New variable. | |
3604 (syns_of_xfns): DEFVAR_LISP it. | |
3605 (Fx_show_tip): Add parameter TEXT. Set the tip frame's root | |
3606 window buffer to *tip* right after creating the frame. Set frame's | |
3607 window_width. Use a maximum tooltip size specified by | |
3608 Vx_max_tooltip_size, if that has valid contents. | |
3609 (compute_tip_xy): Add parameters WIDTH and HEIGHT. | |
3610 Make sure the tooltip is completely visible. | |
3611 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil. | |
3612 (Fx_create_frame): Adjust the frame's height for presence | |
3613 of the tool bar before calling x_figure_window_size. | |
3614 (x_set_tool_bar_lines): Clear the tool bar window's current matrix | |
3615 when the window gets smaller. | |
3616 (x_set_foreground_color): Set frame's cursor_pixel. | |
3617 (x_set_foreground_color, x_set_background_color): Cleaned up. | |
3618 (x_set_font): Handle case of x_new_fontset returning the same name | |
3619 as before, although there was a change in fontsets. | |
3620 | |
3621 2001-10-21 Miles Bader <miles@gnu.org> | |
3622 | |
3623 * data.c (Fplus, Fminus, Fmax, Ftimes, Fquo, Flogand, Flogior) | |
3624 (Flogxor): Add usage: string to doc string. | |
3625 * charset.c (Fstring): Likewise. | |
3626 * callproc.c (Fcall_process_region, Fcall_process): Likewise. | |
3627 * alloc.c (Fmake_byte_code, Fvector, Flist): Likewise. | |
3628 | |
3629 2001-10-21 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
3630 | |
3631 * buffer.c: Reindent DEFUNs and DEFVARs with doc: keywords. | |
3632 | |
3633 * alloc.c: Reindent DEFUNs with doc: keywords. | |
3634 | |
3635 * abbrev.c (Finsert_abbrev_table_description): Reindent. | |
3636 | |
3637 * frame.c: Change doc-string comments to `new style' [w/`doc:' | |
3638 keyword]. | |
3639 | |
3640 2001-10-20 Gerd Moellmann <gerd@gnu.org> | |
3641 | |
3642 * (Version 21.1 released.) | |
3643 | |
3644 2001-10-20 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
3645 | |
3646 * xfns.c (x_laplace_read_row, x_laplace_write_row): Prototypes removed. | |
3647 | |
3648 * xdisp.c (invisible_text_between_p): Put prototype inside #if | |
3649 0 because unused. | |
3650 | |
3651 * bytecode.c, callint.c, callproc.c, casefiddle.c, casetab.c | |
3652 * category.c, ccl.c, charset.c, process.c, syntax.c, window.c: | |
3653 Change doc-string comments to `new style' [w/`doc:' keyword]. | |
3654 | |
3655 2001-10-20 Miles Bader <miles@gnu.org> | |
3656 | |
3657 The following changes remove the glyph_row `inverse_p' field, | |
3658 which is never set anymore, due to other changes: | |
3659 | |
3660 * dispextern.h (struct glyph_row): Remove `inverse_p' field. | |
3661 (reassert_line_highlight, change_line_highlight): Declarations removed. | |
3662 * dispnew.c (update_frame_line): Don't call reassert_line_highlight. | |
3663 (line_hash_code, row_equal_p, fake_current_matrices) | |
3664 (build_frame_matrix_from_leaf_window, update_frame_line) | |
3665 (update_frame_line, update_frame_line, update_frame_line): | |
3666 Don't use `inverse_p' field. | |
3667 * xterm.c (x_initialize): Don't set reassert_line_highlight_hook or | |
3668 change_line_highlight_hook. | |
3669 (XTreassert_line_highlight, x_change_line_highlight): | |
3670 Functions removed. | |
3671 (x_fix_overlapping_area, x_write_glyphs, expose_area) | |
3672 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field. | |
3673 * xdisp.c (dump_glyph_row, display_mode_line): Don't use | |
3674 `inverse_p' field. | |
3675 * w32term.c (x_fix_overlapping_area, x_write_glyphs, expose_area) | |
3676 (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field. | |
3677 (w32_reassert_line_highlight, x_change_line_highlight): | |
3678 Functions removed. | |
3679 * w32console.c (reassert_line_highlight, change_line_highlight): | |
3680 Functions removed. | |
3681 (initialize_w32_display): Don't set reassert_line_highlight_hook | |
3682 or change_line_highlight_hook. | |
3683 (hl_mode): Function removed. | |
3684 (reset_terminal_modes, set_terminal_modes, update_begin) | |
3685 (update_end, w32_face_attributes, initialize_w32_display): | |
3686 (clear_frame, ins_del_lines): Don't call it. | |
3687 * termhooks.h (reassert_line_highlight_hook) | |
3688 (change_line_highlight_hook): Declarations removed. | |
3689 * term.c (reassert_line_highlight_hook) | |
3690 (change_line_highlight_hook): Variables removed. | |
3691 (reassert_line_highlight, change_line_highlight): Functions removed. | |
3692 * msdos.c (IT_reassert_line_highlight) | |
3693 (IT_change_line_highlight): Functions removed. | |
3694 (internal_terminal_init): Don't set reassert_line_highlight_hook | |
3695 or change_line_highlight_hook. | |
3696 (highlight): Variable removed. | |
3697 (IT_set_face, IT_update_begin, IT_update_end) | |
3698 (IT_set_terminal_modes): Don't set or use it. | |
3699 | |
3700 The following changes remove inverse-video support for terminals | |
3701 that use a `magic cookie' standout mode. Due to changes in the | |
3702 way mode-lines are displayed, such support no longer works | |
3703 anyway, and it's probable that almost no one uses such terminals | |
3704 anymore: | |
3705 | |
3706 * term.c (standout_requested): Variable removed. | |
3707 (update_end, highlight_if_desired): Don't use it. | |
3708 (chars_wasted, copybuf): Variables removed. | |
3709 (write_standout_marker): Function removed. | |
3710 (cursor_to, clear_to_end, clear_frame, clear_end_of_line_raw) | |
3711 (clear_end_of_line_raw, write_glyphs, ins_del_lines): | |
3712 Don't use `chars_wasted' or `copybuf'. | |
3713 (calculate_costs): Don't allocate `chars_wasted' or `copybuf'. | |
3714 Set `costs_set' to true. | |
3715 (cursor_to, clear_end_of_line): Test `costs_set' instead of | |
3716 `chars_wasted'. | |
3717 (clear_end_of_line): Function removed. | |
3718 (clear_end_of_line_raw): Renamed to `clear_end_of_line'. | |
3719 (clear_to_end): Call `clear_end_of_line' instead of | |
3720 `clear_end_of_line_raw'. | |
3721 (TN_standout_width, TF_xs, TN_magic_cookie_glitch_ul): Vars removed. | |
3722 (term_init): Don't set them. | |
3723 Turn off any standout/underline modes that require magic cookies. | |
3724 (ins_del_lines, highlight_if_desired, background_highlight) | |
3725 (turn_on_highlight, turn_off_highlight, reset_terminal_modes): | |
3726 Remove special processing for magic-cookie standout modes. | |
3727 (turn_off_face, turn_on_face): Remove special processing for | |
3728 underline magic-cookie glitch. | |
3729 | |
3730 2001-10-19 Richard M. Stallman <rms@gnu.org> | |
3731 | |
3732 * eval.c (syms_of_eval): Doc fixes. | |
3733 | |
3734 2001-10-19 Gerd Moellmann <gerd@gnu.org> | |
3735 | |
3736 * xdisp.c (redisplay_internal): Don't clear echo area if the | |
3737 mini-window is selected. | |
3738 | |
3739 2001-10-19 Miles Bader <miles@gnu.org> | |
3740 | |
3741 * editfns.c (text_property_stickiness): Non-rear-non-stickiness | |
3742 doesn't take precedence if the affected property's value is nil. | |
3743 | |
3744 * editfns.c (Fencode_time): Escape a BOL paren in the doc-string. | |
3745 | |
3746 * cmds.c (Fbeginning_of_line, Fend_of_line): Clarify interaction | |
3747 with fields and suggest using `forward-line' to avoid them. | |
3748 * editfns.c (Fline_beginning_position, Fline_end_position): | |
3749 Clarify documentation. | |
3750 | |
3751 2001-10-18 Stefan Monnier <monnier@cs.yale.edu> | |
3752 | |
3753 * keymap.c (current_minor_maps): `override' only shadows its | |
3754 correspondent in minor-mode-map-alist, not the whole tail. | |
3755 | |
3756 2001-10-18 Andrew Innes <andrewi@gnu.org> | |
3757 | |
3758 * fontset.c (fs_load_font) [WINDOWSNT && _MSC_VER]: Disable | |
3759 optimization. The fontp->encoding array was not being initialized | |
3760 correctly when compiled with optimizations by MSVC. | |
3761 | |
3762 2001-10-18 Gerd Moellmann <gerd@gnu.org> | |
3763 | |
3764 * xdisp.c (display_line): Indicate empty lines in active mini-window. | |
3765 | |
3766 2001-10-17 Andrew Innes <andrewi@gnu.org> | |
3767 | |
3768 * fontset.h (struct font_info) [WINDOWSNT]: Add codepage field. | |
3769 | |
3770 * w32fns.c (w32_load_system_font): Cache codepage for font, in | |
3771 font_info.charset field. | |
3772 | |
3773 * w32term.c (w32_encode_char): Get cached codepage from font_info, | |
3774 rather than working it out by calling w32_codepage_for_font for | |
3775 every glyph. | |
3776 | |
3777 2001-10-17 Andrew Innes <andrewi@gnu.org> | |
3778 | |
3779 * w32term.c (w32_read_socket): Determine clipping rectangle for | |
3780 the entire frame, including areas covered by scrollbars and the | |
3781 menubar. This avoids internal arguments about whether a frame is | |
3782 fully obscured or not. | |
3783 | |
3784 2001-10-17 Gerd Moellmann <gerd@gnu.org> | |
3785 | |
3786 * xdisp.c (try_window_id): Undo last change. Give up if | |
3787 window ends in strings. | |
3788 | |
3789 * xdisp.c (try_window_id): Don't display lines after the window | |
3790 end if the rest of the window after the window end was already blank. | |
3791 | |
3792 * xdisp.c (try_window_id): Remove code that was only there | |
3793 for the release of 21.1. | |
3794 | |
3795 * xdisp.c (display_line): Don't indicate empty lines in mini-windows. | |
3796 | |
3797 2001-10-17 Miles Bader <miles@gnu.org> | |
3798 | |
3799 * lisp.h (DEFUN): Remove `DOC_STRINGS_IN_COMMENTS' case. | |
3800 * xmenu.c, xdisp.c, term.c, dispnew.c, abbrev.c, editfns.c, buffer.c | |
3801 * xfns.c, alloc.c, minibuf.c, xterm.c, xfaces.c: | |
3802 Change doc-string comments to `new style' [w/`doc:' keyword]. | |
3803 (DOC_STRINGS_IN_COMMENTS): Macro removed. | |
3804 * minibuf.c: Remove old commented-out-DEFUN that was used to fake | |
3805 out make-docfile. | |
3806 | |
3807 2001-10-16 Miles Bader <miles@gnu.org> | |
3808 | |
3809 * fns.c: Change doc-string comments to `new style' [w/`doc:' keyword]. | |
3810 | |
3811 2001-10-16 Gerd Moellmann <gerd@gnu.org> | |
3812 | |
3813 * buffer.c (Fset_buffer_major_mode): Use initial-major-mode for | |
3814 *scratch*. | |
3815 | |
3816 2001-10-16 Ken Raeburn <raeburn@gnu.org> | |
3817 | |
3818 Avoid the assumption that car and cdr slots of cons cells are | |
3819 addressable lvalues; this allows for easier experimentation with | |
3820 other lisp implementations that may not permit such accesses for | |
3821 various reasons. Not quite complete -- buffer.c still needs some | |
3822 work, and w32/mac files need rechecking -- so compile-time | |
3823 enforcement is left disabled for now. | |
3824 | |
3825 * lisp.h (LISP_MAKE_RVALUE): New macro, or function in the case of | |
3826 gcc with a union-based Lisp object rep. Redefine as no-op for now. | |
3827 (XCAR_AS_LVALUE, XCDR_AS_LVALUE): Rename from old XCAR, XCDR. | |
3828 (XCAR, XCDR): Apply LISP_MAKE_RVALUE to the _AS_LVALUE versions. | |
3829 (XSETCAR, XSETCDR): New macros. | |
3830 (XSETCARFASTINT, XSETCDRFASTINT): New macros. | |
3831 (CHECK_NUMBER_CAR, CHECK_NUMBER_CDR): New macros. | |
3832 * keyboard.h (POSN_BUFFER_SET_POSN): New macro. | |
3833 * alloc.c (Fcons, pure_cons, Fgarbage_collect): Use XSETCAR and | |
3834 XSETCDR. | |
3835 (mark_buffer): Use XCAR_AS_LVALUE, XCDR_AS_LVALUE. | |
3836 * buffer.c (record_buffer, Fbury_buffer) | |
3837 (swap_out_buffer_local_variables, recenter_overlay_lists) | |
3838 (Foverlay_put): Use XSETCAR and XSETCDR to set the car and cdr | |
3839 fields of a cons cell respectively. | |
3840 * callint.c (quotify_args, Fcall_interactively): Likewise. | |
3841 * ccl.c (Fregister_code_conversion_map): Likewise. | |
3842 * coding.c (detect_coding_system): Likewise. | |
3843 * composite.c (get_composition_id, make_composition_value_copy): | |
3844 Likewise. | |
3845 * data.c (Fsetcar, Fsetcdr, swap_in_global_binding) | |
3846 (swap_in_symval_forwarding, set_internal, Fset_default) | |
3847 (Fmake_variable_buffer_local, Fmake_local_variable) | |
3848 (Fmake_variable_frame_local): Likewise. | |
3849 * fns.c (concat, Fcopy_alist, Fwidget_put): Likewise. | |
3850 * keymap.c (Fset_keymap_parent, store_in_keymap) | |
3851 (accessible_keymaps_1, where_is_internal_2, Fcopy_keymap): Likewise. | |
3852 * minibuf.c (get_minibuffer): Likewise. | |
3853 * search.c (Fmatch_data): Likewise. | |
3854 * textprop.c (extend_property_ranges): Likewise. | |
3855 * undo.c (record_insert, Fundo_boundary, truncate_undo_list): Likewise. | |
3856 * w32fns.c (w32_msg_pump, Fw32_register_hot_key, w32_list_fonts): | |
3857 Likewise. | |
3858 * w32term.c (x_delete_display): Likewise. | |
3859 * xfaces.c (remove_duplicates, Finternal_set_lisp_face_attribute): | |
3860 Likewise. | |
3861 * xterm.c (x_list_fonts, x_load_font, x_delete_display): Likewise. | |
3862 * doc.c (store_function_docstring): Use XSETCARFASTINT. | |
3863 * fileio.c (Fdo_auto_save): Use XSETCARFASTINT and XSETCDRFASTINT. | |
3864 (Fread_file_name): Use XSETCAR. | |
3865 * fontset.c (Fset_fontset_font): Use CHECK_NUMBER_CAR and | |
3866 CHECK_NUMBER_CDR. | |
3867 (accumulate_font_info, Ffontset_info): Use XSETCAR and XSETCDR. | |
3868 * frame.c (Fmake_terminal_frame): Use XSETCDR. | |
3869 * indent.c (Fcompute_motion): Use CHECK_NUMBER_CAR and | |
3870 CHECK_NUMBER_CDR. | |
3871 * keyboard.c (read_char): Alter list traversal to avoid taking the | |
3872 address of cons cell slots. Use POSN_BUFFER_SET_POSN. | |
3873 (parse_menu_item): Use XSETCAR and XSETCDR. | |
3874 (reach_char_x_menu_prompt): Use XSETCAR. | |
3875 (read_key_sequence): Use POSN_BUFFER_SET_POSN. | |
3876 (Fcommand_execute): Use XSETCDR. | |
3877 * lread.c (Fload): Use XSETCARFASTINT and XSETCDRFASTINT. | |
3878 (openp): Change list traversal to avoid using XCAR as lvalue. | |
3879 (read_list): Use XSETCDR. | |
3880 * process.c (wait_reading_process_input): Change wait_for_cell | |
3881 handling to avoid taking addresses of cons cell slots. | |
3882 * xselect.c (x_own_selection, x_handle_selection_clear) | |
3883 (x_clear_frame_selections): Use XSETCDR. | |
3884 (wait_for_property_change): Use XSETCARFASTINT and XSETCDRFASTINT. | |
3885 (x_handle_property_notify, x_get_foreign_selection) | |
3886 (x_handle_selection_notify): Use XSETCAR. | |
3887 | |
3888 2001-10-15 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
3889 | |
3890 * buffer.c: Put doc strings in comments. | |
3891 | |
3892 * sound.c: Include <sys/ioctl.h> also on systems without <soundcard.h>. | |
3893 | |
3894 2001-10-15 Sam Steingold <sds@gnu.org> | |
3895 | |
3896 * fns.c (Vafter_load_alist): Declare extern (w32 build problem). | |
3897 | |
3898 2001-10-15 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
3899 | |
3900 * process.c (process-inherit-coding-system-flag) | |
3901 (get-buffer-process): Do not confuse make-docfile with doc strings | |
3902 in comment. | |
3903 | |
3904 * editfns.c (Fchar_to_string): Make doc string consistent with | |
3905 arguments. Put doc strings in comments. | |
3906 | |
3907 * abbrev.c, minibuf.c: Put doc strings in comments. | |
3908 | |
3909 2001-10-15 Gerd Moellmann <gerd@gnu.org> | |
3910 | |
3911 * window.c (window_loop): Don't check for Fother_buffer returning nil. | |
3912 | |
3913 * window.c (select_window_1): Unfreeze window start. Remove a | |
3914 doubled test for WINDOW being live. | |
3915 | |
3916 2001-10-15 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
3917 | |
3918 * fns.c (Fmapconcat): Fix typo in a doc string. | |
3919 | |
3920 * dispnew.c (Fsleep_for): Fix typo in a doc string. | |
3921 | |
3922 2001-10-15 Gerd Moellmann <gerd@gnu.org> | |
3923 | |
3924 * xterm.c (x_draw_glyph_string): Restore clipping after | |
3925 drawing box. | |
3926 | |
3927 2001-10-15 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
3928 | |
3929 * callint.c (prefix-arg, current-prefix-arg): Fix typo in a doc string. | |
3930 | |
3931 2001-10-14 Stefan Monnier <monnier@cs.yale.edu> | |
3932 | |
3933 * indent.c (skip_invisible): Use new retval of | |
3934 TEXT_PROP_MEANS_INVISIBLE. | |
3935 | |
3936 * keymap.c (access_keymap): Unify handling of `t' and generic-char. | |
3937 If a parent is reached and noinherit is set, exit immediately. | |
3938 Use AREF and ASIZE macros. Call get_keyelt before checking KEYMAPP. | |
3939 | |
3940 * s/ms-w32.h (EXEC_SUFFIXES): | |
3941 * s/msdos.h (EXEC_SUFFIXES): | |
3942 * process.h (EXEC_SUFFIXES): Remove. | |
3943 | |
3944 * callproc.c (syms_of_callproc): Init Vexec_suffixes to Qnil. | |
3945 (decode_suffixes): Remove. | |
3946 | |
3947 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_WITH_ELLIPSIS) | |
3948 (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS, invisible_noellipsis_p) | |
3949 (invisible_ellipsis_p): Remove. | |
3950 | |
3951 * xdisp.c (DOLIST, LOOP_PROPVAL): Remove. | |
3952 (invisible_p): Return 1 or 2 depending on whether an ellipsis is used. | |
3953 (invisible_ellipsis_p, invisible_noellipsis_p): Remove. | |
3954 (in_ellipses_for_invisible_text_p, handle_invisible_prop): | |
3955 Use new retval of TEXT_PROP_MEANS_INVISIBLE. | |
3956 | |
3957 2001-10-14 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
3958 | |
3959 * lisp.h (Ftop_level): Add prototype. | |
3960 | |
3961 * xterm.c: (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes. | |
3962 (XTread_socket): Improve style of comments to follow other | |
3963 comments. | |
3964 | |
3965 * keyboard.c (Fcommand_execute): Remove unnecessary prototype (it | |
3966 is already prototyped in included lisp.h). | |
3967 | |
3968 * frame.c (Fset_mouse_position): Improve style of comment to | |
3969 follow other comments. | |
3970 (Fset_mouse_pixel_position): Improve style of comment to follow | |
3971 other comments. | |
3972 (Fmake_frame_visible): Doc fix and typo in comment. | |
3973 (Fmake_frame_invisible): Doc fix and typo in comment. | |
3974 (Ficonify_frame): Fix typo in comment. | |
3975 | |
3976 2001-10-14 Gerd Moellmann <gerd@gnu.org> | |
3977 | |
3978 * xfns.c, dispnew.c, xterm.c, xdisp.c, xfaces.c, xmenu.c | |
3979 * term.c, alloc.c: Put doc strings in comments. | |
3980 | |
3981 2001-10-13 Gerd Moellmann <gerd@gnu.org> | |
3982 | |
3983 * lisp.h (DEFUN, DEFVAR_LISP, ...) [DOC_STRINGS_IN_COMMENTS]: | |
3984 Provide definitions for doc strings in comments. | |
3985 | |
3986 * fns.c: Put doc strings in comments. | |
3987 | |
3988 2001-10-13 Eli Zaretskii <eliz@is.elta.co.il> | |
3989 | |
3990 * dired.c (file_name_completion): Ignore a candidate directory if | |
3991 it matches an element in completion-ignored-extensions that ends | |
3992 in a slash. | |
3993 (syms_of_dired) <completion-ignored-extensions>: Mention the above | |
3994 feature in the doc string. | |
3995 (Ffile_name_completion): Ditto. | |
3996 | |
3997 2001-10-12 Stefan Monnier <monnier@cs.yale.edu> | |
3998 | |
3999 * indent.c (skip_invisible): Don't skip "ellipsisized" text. | |
4000 | |
4001 * xfns.c (syms_of_xfns): Update calls to Fprovide. | |
4002 | |
4003 * lisp.h (Fprovide): Update prototype. | |
4004 (Ffeaturep, invisible_p): Remove. | |
4005 | |
4006 * xdisp.c (init_iterator): Be more strict with bytepos and charpos. | |
4007 (DOLIST, LOOP_PROPVAL): New macros. | |
4008 (invisible_p, invisible_ellipsis_p): Use them. | |
4009 (invisible_noellipsis_p): New function. | |
4010 (syms_of_xdisp): Use empty_string. | |
4011 | |
4012 * alloc.c (mark_interval_tree): Use traverse_intervals_noorder. | |
4013 | |
4014 * lread.c (substitute_object_recurse): Use traverse_intervals_noorder. | |
4015 (syms_of_lread) <Vafter_load_alist>: Update docstring. | |
4016 | |
4017 * print.c (Fwith_output_to_temp_buffer): Align with | |
4018 internal_with_output_to_temp_buffer. | |
4019 (print_preprocess): Use traverse_intervals_noorder. | |
4020 (print_object): Update call to traverse_intervals. | |
4021 | |
4022 * intervals.h (TEXT_PROP_MEANS_INVISIBLE_NOELLIPSIS): New macro. | |
4023 (traverse_intervals_noorder, invisible_noellipsis_p): New funs. | |
4024 | |
4025 * intervals.c (traverse_intervals_noorder): New function. | |
4026 (search_for_interval, count_intervals): Use it. | |
4027 (traverse_intervals): Use less stack space and drop `depth' arg. | |
4028 | |
4029 * fns.c (Ffeaturep): Add new `subfeature' arg. | |
4030 (Fprovide): Add new `subfeatures' arg. Use `after-load-alist'. | |
4031 (Qsubfeatures): New var. | |
4032 (syms_of_fns): Initialize it. | |
4033 | |
4034 * keymap.c (Fkey_description): Use empty_string. | |
4035 (Fdescribe_bindings_internal, describe_buffer_bindings): Remove. | |
4036 (syms_of_keymap): Setup inheritance between maps. | |
4037 Don't export Sdescribe_bindings_internal any more. | |
4038 | |
4039 * minibuf.c (keys_of_minibuf): Eliminate redundant bindings. | |
4040 | |
4041 2001-10-12 Gerd Moellmann <gerd@gnu.org> | |
4042 | |
4043 * xterm.c (notice_overwritten_cursor): Renamed from | |
4044 note_overwritten_text_cursor. Rewritten to take glyph widths into | |
4045 account. | |
4046 | |
4047 2001-10-12 Eli Zaretskii <eliz@is.elta.co.il> | |
4048 | |
4049 * lread.c (syms_of_lread) <load-suffixes>: Fix last change: | |
4050 multi-line strings without a trailing "\n\". | |
4051 | |
4052 2001-10-12 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
4053 | |
4054 * floatfns.c: float_error() is defined iff FLOAT_CATCH_SIGILL is | |
4055 defined. | |
4056 | |
4057 2001-10-11 Stefan Monnier <monnier@cs.yale.edu> | |
4058 | |
4059 * callint.c (Fcall_interactively): Remove unused code. Use XCAR. | |
4060 | |
4061 * xfns.c (x_create_bitmap_from_file, x_find_image_file): | |
4062 * w32proc.c (sys_spawnve): | |
4063 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): | |
4064 * w32.c (check_windows_init_file): | |
4065 * sound.c (Fplay_sound): | |
4066 * emacs.c (init_cmdargs): | |
4067 * process.c (Fstart_process): Update calls to openp. | |
4068 | |
4069 * callproc.c (Vexec_suffixes): New var. | |
4070 (Fcall_process): Update call to openp. | |
4071 (decode_suffixes): New function. | |
4072 (syms_of_callproc): Init exec-suffixes. | |
4073 | |
4074 * lread.c (Vload_suffixes, default_suffixes): New vars. | |
4075 (openp): Take a lisp list of suffixes. | |
4076 Check for file-name-handlers even if the file was absolute already. | |
4077 (syms_of_lread): Declare load-suffixes. | |
4078 (Fload): Fix up call to openp. | |
4079 Don't bother checking for file-name-handler at the very beginning. | |
4080 | |
4081 * keymap.h (Fcopy_keymap): Don't export. | |
4082 | |
4083 * lisp.h (empty_string): Declare. | |
4084 (Vload_suffixes, Vexec_suffixes): Declare. | |
4085 (openp): Update prototype. | |
4086 | |
4087 * emacs.c (empty_string): New var. | |
4088 (syms_of_emacs): Initialize it. | |
4089 | |
4090 * search.c (wordify): Use it. | |
4091 | |
4092 * buffer.c (Fbury_buffer): Don't try to remove the buffer from the | |
4093 selected window if it's not displayed there. Handle the case | |
4094 when the window is dedicated. | |
4095 (syms_of_buffer): Fix docstrings not to mention "buffer-local" anymore. | |
4096 | |
4097 * undo.c (Fprimitive_undo): Use XCAR/XCDR. | |
4098 | |
4099 * syntax.h (struct gl_state_s): Change the meaning of b_property. | |
4100 Remove left_ok and right_ok. | |
4101 (UPDATE_SYNTAX_TABLE_BACKWARD, UPDATE_SYNTAX_TABLE) | |
4102 (SETUP_SYNTAX_TABLE, SETUP_SYNTAX_TABLE_FOR_OBJECT): Update to the | |
4103 new meaning of b_property. | |
4104 | |
4105 * syntax.c (update_syntax_table): Simplify. | |
4106 (Fforward_comment): Don't skip quoted chars when going backward. | |
4107 | |
4108 2001-10-11 Gerd Moellmann <gerd@gnu.org> | |
4109 | |
4110 * lisp.h (FIXNUM_OVERFLOW_P): Cast I to EMACS_INT in comparisons | |
4111 in case I is of some unsigned type, in which case | |
4112 MOST_NEGATIVE_FIXNUM will be converted to unsigned, and the | |
4113 comparison becomes bogus. | |
4114 | |
4115 * editfns.c (Fuser_uid, Fuser_real_uid): Use make_fixnum_or_float. | |
4116 (Fuser_full_name): Fix bug treating a float as a fixnum. | |
4117 | |
4118 * data.c (Fstring_to_number): Use make_fixnum_or_float. | |
4119 | |
4120 * lisp.h (make_fixnum_or_float): New macro. | |
4121 | |
4122 * lisp.h (circular_list_error): Add prototype. | |
4123 | |
4124 * data.c (Qcircular_list): New variable. | |
4125 (circular_list_error): New function. | |
4126 (syms_of_data): Initialize it Qcircular_list. | |
4127 | |
4128 2001-10-10 Stefan Monnier <monnier@cs.yale.edu> | |
4129 | |
4130 * window.c, syntax.c, macros.c, frame.c, emacs.c, cmds.c, category.c | |
4131 * casefiddle.c, buffer.c: Include keymap.h. | |
4132 | |
4133 2001-10-10 Gerd Moellmann <gerd@gnu.org> | |
4134 | |
4135 * s/osf5-0.h (C_SWITCH_SYSTEM) [!__GNUC__]: Add `-nointrinsics' | |
4136 options. From Dave Love <d.love@dl.ac.uk>. | |
4137 | |
4138 2001-10-09 Gerd Moellmann <gerd@gnu.org> | |
4139 | |
4140 * regex.c (WIDE_CHAR_SUPPORT): Do not use defined() in macro. | |
4141 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>. | |
4142 | |
4143 * editfns.c (Fcurrent_time_zone): Cast isalnum() argument to | |
4144 unsigned char. | |
4145 From Hallvard B Furuseth <h.b.furuseth@usit.uio.no>. | |
4146 | |
4147 2001-10-08 Andrew Innes <andrewi@gnu.org> | |
4148 | |
4149 * lisp.h [max]: Undef min and max before redefining them. | |
4150 | |
4151 * w32gui.h: Do not undef min and max. | |
4152 | |
4153 * w32heap.h: Do not undef min and max. | |
4154 | |
4155 * s/ms-w32.h: Do not undef min and max. | |
4156 | |
4157 2001-10-08 Stefan Monnier <monnier@cs.yale.edu> | |
4158 | |
4159 * xdisp.c (handle_fontified_prop): Don't bind after-change-functions. | |
4160 | |
4161 2001-10-08 Sam Steingold <sds@gnu.org> | |
4162 | |
4163 * keymap.c (current-active-maps): Quote newlines (compilation error). | |
4164 | |
4165 2001-10-08 Eli Zaretskii <eliz@is.elta.co.il> | |
4166 | |
4167 * Makefile.in (lisp, shortlisp): Replace bindings.el with | |
4168 bindings.elc, since otherwise doc strings in bindings.el get wrong | |
4169 offsets in etc/DOC. | |
4170 | |
4171 2001-10-08 Stefan Monnier <monnier@cs.yale.edu> | |
4172 | |
4173 * lisp.h: Remove the entries for keymap.c (moved to keymap.h). | |
4174 | |
4175 * keyboard.h (map_prompt): Remove. | |
4176 | |
4177 * xterm.c, w32term.c, term.c, minibuf.c, keymap.c, | |
4178 * intervals.c, fns.c, doc.c, callint.c: Include keymap.h. | |
4179 | |
4180 * xmenu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt. | |
4181 | |
4182 * w32menu.c (keymap_panes, Fx_popup_menu): Use Fkeymap_prompt. | |
4183 | |
4184 * keyboard.c (map_prompt): Remove. | |
4185 (read_char_x_menu_prompt, read_char_minibuf_menu_prompt): | |
4186 Use Fkeymap_prompt. | |
4187 | |
4188 * keymap.h: New file. Extracted from lisp.h. | |
4189 | |
4190 * keymap.c (Fkeymap_prompt, Fcurrent_active_maps): New funs. | |
4191 (accessible_keymaps_1): New function. | |
4192 (Faccessible_keymaps, accessible_keymaps_char_table): Use it. | |
4193 (Fwhere_is_internal): Use Fcurrent_active_maps. | |
4194 (Fdescribe_buffer_bindings): Renamed from describe_buffer_bindings. | |
4195 Insert in current buffer rather than standard-output. | |
4196 Don't call `help-mode'. Export to elisp. | |
4197 (describe_buffer_bindings): New wrapper. | |
4198 (syms_of_keymap): Defsubr Skeymap_prompt, Scurrent_active_maps | |
4199 and Sdescribe_buffer_bindings. | |
4200 | |
4201 2001-10-08 Gerd Moellmann <gerd@gnu.org> | |
4202 | |
4203 * atimer.c (alarm_signal_handler) [USG && !POSIX_SIGNALS]: | |
4204 Remove code setting signal handler. | |
4205 | |
4206 * sysdep.c (child_setup_tty) [HAVE_TERMIO || HAVE_TERMIOS]: | |
4207 Clear ICRNL and INLCR. From Daiki Ueno <ueno@unixuser.org>. | |
4208 | |
4209 2001-10-08 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
4210 | |
4211 * keyboard.c: Don't define min/max. | |
4212 | |
4213 2001-10-08 Gerd Moellmann <gerd@gnu.org> | |
4214 | |
4215 * xterm.c, xmenu.c, xfns.c, xdisp.c, window.c: | |
4216 * w32term.c, w32menu.c, w32console.c, w32bdf.c, w32.c, term.c | |
4217 * sysdep.c, sound.c, search.c, scroll.c, minibuf.c, keymap.c | |
4218 * intervals.c, insdel.c, indent.c, fns.c, fileio.c, editfns.c | |
4219 * dispnew.c, dired.c, charset.c, xfaces.c, alloc.c, atimer.c: | |
4220 Don't define min/max. | |
4221 | |
4222 * lisp.h (min, max): New macros. | |
4223 | |
4224 * puresize.h (BASE_PURESIZE): Increase to 725000. | |
4225 | |
4226 2001-10-08 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
4227 | |
4228 * xfaces.c (free_frame_menubar): Add prototype. | |
4229 | |
4230 * lisp.h (init_window): Add prototype. | |
4231 | |
4232 * editfns.c: Include ctype.h. | |
4233 | |
4234 * xterm.c: USE_LUCID can be defined iff USE_X_TOOLKIT is defined. | |
4235 (xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'. | |
4236 (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused | |
4237 variable `sb'. | |
4238 | |
4239 * xfns.c (Fx_hide_tip): Fix typo in a doc string. | |
4240 (Fx_file_dialog) [USE_MOTIF]: Remove unused variables | |
4241 `popup_activated_flag' and `title'. | |
4242 | |
4243 * doc.c (Fdocumentation_property): Fix typo in a doc string. | |
4244 | |
4245 * emacs.c (main): Remove extra `;'. | |
4246 | |
4247 * atimer.h (struct atimer): Fix typos in a comment. | |
4248 | |
4249 * atimer.c: Fix typo. | |
4250 | |
4251 * Makefile.in: Fix typo. | |
4252 | |
4253 * README: Remove obsolete part mentioning removed VMS file. | |
4254 | |
4255 2001-10-07 Miles Bader <miles@gnu.org> | |
4256 | |
4257 * Makefile.in (lisp, shortlisp): Add `button.elc'. | |
4258 | |
4259 2001-10-07 Ken Raeburn <raeburn@gnu.org> | |
4260 | |
4261 * minibuf.c (Fminibuffer_prompt_end): Don't apply make_number to a | |
4262 Lisp_Object. | |
4263 | |
4264 * lisp.h (Ffield_end): Declare. | |
4265 | |
4266 2001-10-07 Gerd Moellmann <gerd@gnu.org> | |
4267 | |
4268 * keyboard.c (parse_modifiers, apply_modifiers): Use VALMASK. | |
4269 | |
4270 * insdel.c (make_gap): Use MOST_POSITIVE_FIXNUM. | |
4271 | |
4272 * floatfns.c (FLOAT_TO_INT2, FLOAT_TO_INT): Use FIXNUM_OVERFLOW_P. | |
4273 | |
4274 * dired.c (Ffile_attributes): Use FIXNUM_OVERFLOW_P. | |
4275 | |
4276 * bytecode.c (syms_of_bytecode) [BYTE_CODE_METER]: Doc fix. | |
4277 (METER_CODE, Fbyte_code): Use MOST_POSITIVE_FIXNUM. | |
4278 | |
4279 * alloc.c (inhibit_garbage_collection): Simplify. | |
4280 (Fmemory_use_counts): Ditto. | |
4281 | |
4282 * data.c (most_positive_fixnum, most_negative_fixnum): New variables. | |
4283 (syms_of_data): DEFVAR_INT most-positive-fixnum and | |
4284 most-negative-fixnum. | |
4285 | |
4286 * lisp.h (MOST_NEGATIVE_FIXNUM, MOST_POSITIVE_FIXNUM) | |
4287 (FIXNUM_OVERFLOW_P): New macros. | |
4288 | |
4289 2001-10-06 Miles Bader <miles@gnu.org> | |
4290 | |
4291 * xterm.h (struct x_output): Add scroll_bar_top_shadow_pixel and | |
4292 scroll_bar_bottom_shadow_pixel fields. | |
4293 * xterm.c (x_create_toolkit_scroll_bar): Try to allocate colors | |
4294 for the shadows, and tell the toolkit about them if we succeed. | |
4295 (x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]: | |
4296 Free scroll-bar shadow colors. | |
4297 * xfns.c (x_set_scroll_bar_background) [USE_TOOLKIT_SCROLL_BARS]: | |
4298 Free scroll-bar shadow colors when the background color changes. | |
4299 (Fx_create_frame, x_create_tip_frame) [USE_TOOLKIT_SCROLL_BARS]: | |
4300 Initialize scroll-bar shadow-color fields. | |
4301 | |
4302 2001-10-05 Gerd Moellmann <gerd@gnu.org> | |
4303 | |
4304 * fileio.c (Fcopy_file): If NEWNAME is a directory copy FILE there. | |
4305 | |
4306 2001-10-05 Miles Bader <miles@gnu.org> | |
4307 | |
4308 * minibuf.c (Fminibuffer_prompt_end, Fminibuffer_contents) | |
4309 (Fminibuffer_contents_no_properties, Fdelete_minibuffer_contents): | |
4310 New functions (were in simple.el). | |
4311 (Fminibuffer_complete_and_exit, Fminibuffer_complete_word) | |
4312 (read_minibuf, do_completion, Fminibuffer_completion_help): Use them. | |
4313 (syms_of_minibuf): Initialize them. | |
4314 | |
4315 2001-10-05 Gerd Moellmann <gerd@gnu.org> | |
4316 | |
4317 * xfns.c (tiff_error_handler, tiff_warning_handler): New functions. | |
4318 (tiff_load): Install them as error and warning handler. | |
4319 | |
4320 2001-10-04 Andrew Innes <andrewi@gnu.org> | |
4321 | |
4322 * w32fns.c (x_to_w32_color): Fix argument to alloca. | |
4323 (w32_load_system_font): Don't believe what GetLanguageFontInfo | |
4324 says; query codepage info directly to determine if font is double byte. | |
4325 (x_to_w32_charset): Handle private format for unknown charsets. | |
4326 Handle wildcards in charset spec, by ignoring them. | |
4327 (w32_codepage_for_font): Fix argument to alloca. Don't remove | |
4328 "*-" prefix from charset. | |
4329 (x_to_w32_font): Enlarge remainder array for safety. Specifically | |
4330 handle the truncated font spec form constructed by font_list_1, so | |
4331 that we correctly identify the charset fields. Don't remove "*-" | |
4332 prefix from charset. | |
4333 (w32_list_synthesized_fonts): Fix argument to alloca. | |
4334 | |
4335 2001-10-04 Stefan Monnier <monnier@cs.yale.edu> | |
4336 | |
4337 * window.h (MINI_WINDOW_P): Use NILP. | |
4338 | |
4339 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM): Define also for non-NT. | |
4340 | |
4341 * termhooks.h (struct input_event): Use proper type for `kind'. | |
4342 | |
4343 2001-10-04 Gerd Moellmann <gerd@gnu.org> | |
4344 | |
4345 This handles unknown keysyms better than before. For example, | |
4346 after `xmodmap -e 'keysym F5 = ccaron' in a Latin-1 environment, | |
4347 Emacs formerly completely ignored F5. With the change, it derives | |
4348 a key symbol from the name of the X keysym, `ccaron' in this case. | |
4349 Reported by Martin Buchholz. | |
4350 | |
4351 * xterm.c (XTread_socket): Return a non_ascii_keystroke for | |
4352 unknown keysyms. | |
4353 | |
4354 * keyboard.c (make_lispy_event) [HAVE_X_WINDOWS]: If we know | |
4355 that EVENT->code isn't a function key, use the keysym's name. | |
4356 | |
4357 2001-10-04 Gerd Moellmann <gerd@gnu.org> | |
4358 | |
4359 FOREACH is a macro that should make it easier to loop over Lisp | |
4360 lists with checks for cycles and proper lists. | |
4361 | |
4362 * lisp.h (LIST_END_P, FOREACH): New macros. | |
4363 | |
4364 2001-10-04 Gerd Moellmann <gerd@gnu.org> | |
4365 | |
4366 On some systems, XtCloseDisplay seems to cause a SIGSEGV when | |
4367 called for a lost connection. Prevent dumping core in this case. | |
4368 Instead print the X error, and exit. On user request. | |
4369 | |
4370 * xterm.c (error_msg): New variable. | |
4371 (x_fatal_error_signal): New function. | |
4372 (x_connection_closed): Set error_msg. Install x_fatal_error_signal | |
4373 as fatal_error_signal_hook around the call to XtCloseDisplay. | |
4374 | |
4375 * emacs.c (fatal_error_signal_hook): New variable. | |
4376 (fatal_error_signal): Call that function. | |
4377 | |
4378 2001-10-04 Gerd Moellmann <gerd@gnu.org> | |
4379 | |
4380 With this, Emacs prints how much pure storage it will | |
4381 approximately need in case pure storage overflows while dumping. | |
4382 | |
4383 * alloc.c (purebeg, pure_size, pure_bytes_used_before_overflow): | |
4384 New variables. | |
4385 (init_alloc_once): Initialize new variables. | |
4386 (PURE_POINTER_P): Use new variables. | |
4387 (pure_alloc): If pure storage overflows, allocate from the heap. | |
4388 (check_pure_size): New function. | |
4389 (Fgarbage_collect): Don't GC if pure storage has overflowed. | |
4390 | |
4391 * lisp.h (pure_size) [HAVE_SHM]: Declare extern size_t. | |
4392 (check_pure_size): Add prototype. | |
4393 | |
4394 * emacs.c (Fdump_emacs_data, Fdump_emacs): Call check_pure_size. | |
4395 | |
4396 2001-10-04 Gerd Moellmann <gerd@gnu.org> | |
4397 | |
4398 This adds a post-gc-hook that's run with GC inhibited. | |
4399 Requested by Francois Pinard. XEmacs has it. Added to NEWS. | |
4400 | |
4401 * alloc.c (Vpost_gc_hook, Qpost_gc_hook): New variables. | |
4402 (syms_of_alloc): DEFVAR_LISP post-gc-hook, initialize Qpost_gc_hook. | |
4403 (Fgarbage_collect): Run post-gc-hook. | |
4404 | |
4405 2001-10-04 Gerd Moellmann <gerd@gnu.org> | |
4406 | |
4407 This adds `defvaralias' and `indirect-variable'. Changes not | |
4408 directly related to this feature are there to gain the same | |
4409 performance again as before variable aliases. | |
4410 | |
4411 You must use the SYMBOL_VALUE and SET_SYMBOL_VALUE macros in C | |
4412 code to get and set symbol values, to take defvaralias into account. | |
4413 | |
4414 (Note: the new `constant' bit-flag in symbols would make it | |
4415 possible to define arbitrary read-only variables, e.g. with | |
4416 `defconst'.) | |
4417 | |
4418 Documentation is in lispref/variables.texi. Added to NEWS. | |
4419 | |
4420 * lisp.h (enum symbol_interned): New enumeration. | |
4421 (struct Lisp_Symbol): Remove member `obarray', add | |
4422 `indirect_variable', `constant', and `interned'. | |
4423 (SYMBOL_INTERNED_P, SYMBOL_INTERNED_IN_INITIAL_OBARRAY_P) | |
4424 (SYMBOL_CONSTANT_P, SYMBOL_VALUE, SET_SYMBOL_VALUE): New macros. | |
4425 (indirect_variable): Add prototype. | |
4426 | |
4427 * print.c (print_preprocess, print_object): Test internedness of | |
4428 symbols differently. | |
4429 | |
4430 * lread.c (Fintern, Funintern): Set symbol's interned and constant | |
4431 bit-fields. | |
4432 (init_obarray): Likewise for t and nil. | |
4433 | |
4434 * eval.c Use SYMBOL_VALUE/SET_SYMBOL_VALUE. | |
4435 (Fdefvaralias): New function. | |
4436 (specbind): Simplify the test if symbol is a constant. | |
4437 (syms_of_eval): Defsubr Fdefvaralias. | |
4438 | |
4439 * data.c: Use SYMBOL_VALUE/SET_SYMBOL_VALUE. | |
4440 (Qcyclic_variable_indirection): New variable. | |
4441 (Fkeywordp): Check for internedness differently. | |
4442 (Fmakunbound): Simplify the test if symbol is a constant. | |
4443 (indirect_variable, Findirect_variable): New functions. | |
4444 (swap_in_symval_forwarding): If SYMBOL is an alias, use the | |
4445 aliased symbol. | |
4446 (let_shadows_buffer_binding_p): Check for variable aliases. | |
4447 (set_internal): Simplify the test if SYMBOL is a constant. | |
4448 If SYMBOL has a buffer-local value and is an alias, use the aliased | |
4449 symbol instead. | |
4450 (syms_of_data): Initialize Qcyclic_variable_indirection and defsubr | |
4451 Sindirect_variable. | |
4452 | |
4453 * bytecode.c (Fbyte_code) <varref>: Use SYMBOL_VALUE. | |
4454 (Fbyte_code) <varset>: Simplify the test if symbol's value can be | |
4455 set directly. | |
4456 | |
4457 * alloc.c (Fmake_symbol): Adapt to changes of struct Lisp_Symbol. | |
4458 | |
4459 * abbrev.c, buffer.c, coding.c, fns.c, frame.c, keyboard.c: | |
4460 * minibuf.c, sunfns.c, w16select.c: Use SYMBOL_VALUE/ | |
4461 SET_SYMBOL_VALUE macros instead of accessing symbol values directly. | |
4462 | |
4463 2001-10-04 Gerd Moellmann <gerd@gnu.org> | |
4464 | |
4465 * Branch for 21.1. | |
4466 | |
4467 2001-10-03 Miles Bader <miles@gnu.org> | |
4468 | |
4469 * callproc.c (syms_of_callproc): Explicitly state in the | |
4470 documentation for `process-environment' that earlier entries take | |
4471 precedence over later ones. | |
4472 | |
4473 2001-10-02 Miles Bader <miles@gnu.org> | |
4474 | |
4475 * textprop.c (Fnext_char_property_change) | |
4476 (Fprevious_char_property_change): Remove reference to non-existant | |
4477 argument OBJECT from doc-string. | |
4478 | |
4479 2001-10-01 Gerd Moellmann <gerd@gnu.org> | |
4480 | |
4481 * xdisp.c (display_line): Set row's ends_in_newline_from_string_p. | |
4482 (try_window_id): Skip back over lines ending in a newline from a | |
4483 string. | |
4484 | |
4485 * dispextern.h (struct glyph_row) <ends_in_newline_from_string_p>: | |
4486 New bit flag | |
4487 | |
4488 2001-10-01 Richard M. Stallman <rms@gnu.org> | |
4489 | |
4490 * search.c (Freplace_match): Doc fix. | |
4491 | |
4492 2001-09-28 Andrew Innes <andrewi@gnu.org> | |
4493 | |
4494 * w32menu.c (set_frame_menubar): Take into account that | |
4495 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn | |
4496 <raeburn@gnu.org>. | |
4497 | |
4498 2001-09-30 Eli Zaretskii <eliz@is.elta.co.il> | |
4499 | |
4500 * frame.c (syms_of_frame) <default-minibuffer-frame>: Doc fix. | |
4501 | |
4502 2001-09-28 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
4503 | |
4504 * s/gnu-linux.h: Fix a typo in comment. | |
4505 | |
4506 2001-09-28 Andreas Schwab <schwab@suse.de> | |
4507 | |
4508 * s/gnu-linux.h (LD_SWITCH_SYSTEM_TEMACS): Link temacs with -z | |
4509 nocombreloc, in case -z combreloc is the default. | |
4510 | |
4511 2001-09-28 Gerd Moellmann <gerd@gnu.org> | |
4512 | |
4513 * m/macppc.h [DATA_SEG_BITS]: Put in #if 0 until we know what's | |
4514 really going on here. | |
4515 | |
4516 2001-09-27 Stefan Monnier <monnier@cs.yale.edu> | |
4517 | |
4518 * search.c (trivial_regexp_p): Catch \{N,M\} as well. | |
4519 | |
4520 2001-09-27 Eli Zaretskii <eliz@is.elta.co.il> | |
4521 | |
4522 * Makefile.in (shortlisp): Resync with loadup.el: add backquote, | |
4523 utf-8, menu-bar, and latin-N. | |
4524 (SOME_MACHINE_LISP): Remove menu-bar, since it's loaded | |
4525 unconditionally now. | |
4526 (lisp): Add latin-N, since they are preloaded. | |
4527 | |
4528 2001-09-27 Gerd Moellmann <gerd@gnu.org> | |
4529 | |
4530 * xterm.c (x_draw_relief_rect): Draw bottom relief 1 pixel more | |
4531 to the left. Some cleanup. | |
4532 | |
4533 * xdisp.c (display_mode_element): One more case where a string's | |
4534 multibyteness should be used for display. | |
4535 | |
4536 2001-09-26 Gerd Moellmann <gerd@gnu.org> | |
4537 | |
4538 * fileio.c (Finsert_file_contents): If REPLACE is non-nil, stop | |
4539 reading at EOF. | |
4540 | |
4541 * xdisp.c (with_echo_area_buffer): Use echo_kboard instead | |
4542 of the only temporarily set echoing flag for deciding when | |
4543 the cancel echoing. | |
4544 | |
4545 * keyboard.c (echo_kboard): Make externally visible. | |
4546 | |
4547 * lisp.h (echo_kboard): Declare extern. | |
4548 | |
4549 * xdisp.c (make_cursor_line_fully_visible): Return 0 and set | |
4550 fonts_changed_p if we need larger matrices due to vscrolling. | |
4551 (try_scrolling, try_cursor_movement, redisplay_window): Give up on | |
4552 this round of redisplay if make_cursor_line_fully_visible fails. | |
4553 (CURSOR_MOVEMENT_*, SCROLLING_*): New enumerators. | |
4554 (try_cursor_movement, try_scrolling): Use them instead of integers. | |
4555 | |
4556 * dispextern.h (required_matrix_width, required_matrix_height): | |
4557 Add prototypes. | |
4558 | |
4559 * dispnew.c (required_matrix_width, required_matrix_height): | |
4560 New functions. | |
4561 (allocate_matrices_for_window_redisplay) | |
4562 (allocate_matrices_for_frame_redisplay: Use them. | |
4563 Remove parameters CH_DIM. | |
4564 | |
4565 * xdisp.c (display_mode_lines): Temporarily set selected_frame | |
4566 and selected_window to the frame of the window whose mode-lines | |
4567 are displayed, and to the window itself. | |
4568 (redisplay_window, redisplay_mode_lines): Don't set selected_frame | |
4569 here. | |
4570 | |
4571 2001-09-25 Gerd Moellmann <gerd@gnu.org> | |
4572 | |
4573 * xfns.c (x_kill_gs_process): Recognize if someone has cleared | |
4574 the image cache under us. | |
4575 | |
4576 * xdisp.c (display_mode_element): If the mode element is a symbol | |
4577 with a string value, use that string's multibyteness for displaying. | |
4578 | |
4579 * keyboard.c (read_char): Don't clear a message for a switch-frame | |
4580 event. From Stefan Monnier <monnier@cs.yale.edu>. | |
4581 | |
4582 * xterm.c (fast_find_position) [0]: Add a presumably more correct | |
4583 version for after 21.1. | |
4584 | |
4585 * xdisp.c (row_containing_pos): Make externally visible. | |
4586 | |
4587 * dispextern.h (row_containing_pos): Add prototype. | |
4588 | |
4589 * process.c (send_process): Disable composition if from_byte < 0. | |
4590 From Kenichi Handa <handa@etl.go.jp>. | |
4591 | |
4592 2001-09-24 Gerd Moellmann <gerd@gnu.org> | |
4593 | |
4594 * xterm.c (refreshicon): Function removed. | |
4595 | |
4596 * Makefile.in (xterm.o): Remove references to sink.h and sinkmask.h. | |
4597 | |
4598 * sink11.h, sink11mask.h, sink.h, sinkmask.h: Removed. | |
4599 | |
4600 * xterm.c (toplevel): Remove includes in #if 0. | |
4601 | |
4602 * process.c (sigchld_handler) [LINUX]: Don't return from | |
4603 the signal handler at the end of the loop. | |
4604 | |
4605 2001-09-21 Gerd Moellmann <gerd@gnu.org> | |
4606 | |
4607 * sysdep.c (wait_for_termination) [POSIX_SIGNALS]: | |
4608 Terminate only if kill returns -1, and errno is ESRCH. | |
4609 | |
4610 2001-09-21 Markus Rost <rost@math.ohio-state.edu> | |
4611 | |
4612 * Makefile.in (shortlisp): Add ../lisp/env.elc. | |
4613 | |
4614 2001-09-20 Gerd Moellmann <gerd@gnu.org> | |
4615 | |
4616 * process.c (sigchld_handler): Use GC_CONSP, GC_INTEGERP, GC_EQ | |
4617 since this function can be called during GC. | |
4618 | |
4619 * callproc.c (Fcall_process): Handle errors from pipe(2). | |
4620 (child_setup): Delete code in #ifdef vipc. | |
4621 | |
4622 2001-09-19 Gerd Moellmann <gerd@gnu.org> | |
4623 | |
4624 * xdisp.c (decode_mode_spec): Add parameter MULTIBYTE. | |
4625 (display_mode_element): Display the string from decode_mode_spec | |
4626 depending on its multibyteness. | |
4627 | |
4628 * s/netbsd.h (LD_SWITCH_SYSTEM, C_SWITCH_SYSTEM): Add /usr/pkg. | |
4629 | |
4630 * m/macppc.h (DATA_SEG_BITS): Also define for GCC 3. | |
4631 | |
4632 2001-09-18 Gerd Moellmann <gerd@gnu.org> | |
4633 | |
4634 * keyboard.c (Frecursive_edit): Pass (BUFFER . SINGLE-KBOARD) to | |
4635 recursive_edit_unwind. | |
4636 (recursive_edit_unwind): Set kboard state according to | |
4637 SINGLE-KBOARD. | |
4638 | |
4639 * buffer.c (modify_overlay): Don't do nothing if START == END; | |
4640 This can still be a modification, for example when an overlay has | |
4641 a before-string or after-string. | |
4642 (Fdelete_overlay): Prevent redisplay optimizations when deleting | |
4643 an overlay with before-string or after-string. | |
4644 | |
4645 * s/netbsd.h (C_SWITCH_SYSTEM): Add. | |
4646 (LD_SWITCH_SYSTEM): Include /usr/local/lib. | |
4647 | |
4648 * xdisp.c (try_window_id) [!GLYPH_DEBUG]: Give up if | |
4649 first_unchanged_at_end_row is in front of | |
4650 last_unchanged_at_beg_row. This code should be removed after the | |
4651 release of 21.1. | |
4652 | |
4653 2001-09-17 Gerd Moellmann <gerd@gnu.org> | |
4654 | |
4655 * buffer.h (BUF_COMPUTE_UNCHANGED): Use BUF_MODIFF and | |
4656 BUF_OVERLAY_MODIFF instead of MODIFF and OVERLAY_MODIFF. | |
4657 | |
4658 * m/macppc.h (DATA_SEG_BITS) [__linux__]: Define for GCC | |
4659 versions >= 2.95. | |
4660 | |
4661 2001-09-14 Eli Zaretskii <eliz@is.elta.co.il> | |
4662 | |
4663 * dired.c (Ffile_attributes): Doc fix. | |
4664 | |
4665 2001-09-14 Gerd Moellmann <gerd@gnu.org> | |
4666 | |
4667 * fileio.c (Ffile_symlink_p): Fix last change. | |
4668 | |
4669 * filelock.c (current_lock_owner): Fix last change. | |
4670 | |
4671 2001-09-13 Gerd Moellmann <gerd@gnu.org> | |
4672 | |
4673 * filelock.c (current_lock_owner): If readlink returns ERANGE, | |
4674 take that to mean that the buffer is too small. | |
4675 | |
4676 * fileio.c (Ffile_symlink_p): If readlink returns ERANGE, take | |
4677 that to mean that the buffer is too small. | |
4678 | |
4679 * xdisp.c (reseat_1): Set IT's multibyte_p flag according to the | |
4680 current buffer's multibyteness when discarding the iterator's | |
4681 stack. | |
4682 | |
4683 * xfns.c (Fx_window_property): Handle case that property gets | |
4684 deleted between the two calls to XGetWindowProperty. | |
4685 | |
4686 2001-09-11 Gerd Moellmann <gerd@gnu.org> | |
4687 | |
4688 * minibuf.c (read_minibuf_unwind): Bind inhibit-modification-hooks. | |
4689 | |
4690 * minibuf.c (read_minibuf): Bind inhibit-modification-hooks to t, | |
4691 in addition to read-only. | |
4692 | |
4693 * xdisp.c (with_echo_area_buffer): Bind inhibit-modification-hooks | |
4694 to t in addition to read-only. | |
4695 | |
4696 * lisp.h (Qinhibit_modification_hooks): Declare. | |
4697 | |
4698 * insdel.c (Qinhibit_modification_hooks): New variable. | |
4699 (syms_of_insdel): Initialize and staticpro it. | |
4700 | |
4701 * textprop.c (verify_interval_modification): Don't run | |
4702 modification-hooks if inhibit_modification_hooks. | |
4703 | |
4704 * dispnew.c (set_window_cursor_after_update): Fix code | |
4705 finding glyph row containing cursor when cursor_in_echo_area | |
4706 is >= 0. | |
4707 | |
4708 * xdisp.c (init_from_display_pos): Put some code in #if 0. | |
4709 (add_to_log): Use bcopy instead of strcpy. | |
4710 (init_from_display_pos): Use an explicit loop over bytes in | |
4711 overlay strings instead of calling index. | |
4712 | |
4713 2001-09-10 Gerd Moellmann <gerd@gnu.org> | |
4714 | |
4715 * alloc.c (allocate_buffer): Call VALIDATE_LISP_STORAGE. | |
4716 | |
4717 * dispnew.c (direct_output_for_insert): Don't change IT's | |
4718 stop_charpos to something in front of its current position. | |
4719 | |
4720 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: Take args like | |
4721 `format'. | |
4722 | |
4723 2001-09-10 Richard M. Stallman <rms@gnu.org> | |
4724 | |
4725 * frame.c (Fmouse_position): Doc fix. | |
4726 | |
4727 2001-09-07 Gerd Moellmann <gerd@gnu.org> | |
4728 | |
4729 * xdisp.c (init_from_display_pos): Don't compare the result | |
4730 of calling index with NULL. | |
4731 | |
4732 2001-09-06 Gerd Moellmann <gerd@gnu.org> | |
4733 | |
4734 * xfns.c (x_set_background_color): Don't change the colors | |
4735 of the X window of scroll bar widgets. | |
4736 | |
4737 2001-09-05 Andrew Innes <andrewi@gnu.org> | |
4738 | |
4739 * w32fns.c (w32_createwindow): Undo last change. | |
4740 | |
4741 2001-09-05 Gerd Moellmann <gerd@gnu.org> | |
4742 | |
4743 * macros.c (store_kbd_macro_char): Fix computation of kbd_macro_end. | |
4744 | |
4745 * xdisp.c (string_buffer_position): Use *single_char_property* | |
4746 functions instead of the *single_property* functions. | |
4747 | |
4748 2001-09-04 Andrew Innes <andrewi@gnu.org> | |
4749 | |
4750 * w32term.c (w32_read_socket): Add more information to debugging | |
4751 output. | |
4752 | |
4753 * w32fns.c (w32_createwindow): Remove the WS_CLIPCHILDREN style | |
4754 from Emacs frames, so that calls to GetClipBox in w32term.c | |
4755 correctly report when part of a frame is visible (including | |
4756 scrollbars, etc). This prevents repeated redrawing of frames when | |
4757 only a scrollbar is visible. | |
4758 (w32_wnd_proc): Add more frame information to debugging output. | |
4759 | |
4760 2001-09-03 Stefan Monnier <monnier@cs.yale.edu> | |
4761 | |
4762 * xdisp.c (handle_single_display_prop): Fix for int/Lisp_Object mixup. | |
4763 | |
4764 2001-09-03 Gerd Moellmann <gerd@gnu.org> | |
4765 | |
4766 * xterm.c (note_mouse_highlight) <help-echo>: When looking for | |
4767 help-echo for a string which doesn't have help-echo itself, use | |
4768 get-char-property to obtain the help-echo from the string's buffer | |
4769 (note_mouse_highlight) <mouse-face>: When on a string that doesn't | |
4770 have mouse-face, look ``under'' the string for mouse-face from an | |
4771 overlay. | |
4772 (fast_find_position): Add parameter STOP. In the final row, stop | |
4773 before glyphs having STOP as object. Don't consider glyphs that | |
4774 are not from a buffer. | |
4775 | |
4776 * buffer.c (syms_of_buffer) <default-directory>: Doc fix. | |
4777 | |
4778 2001-09-01 Eli Zaretskii <eliz@is.elta.co.il> | |
4779 | |
4780 * fns.c (Fmd5): Doc fix. | |
4781 | |
4782 2001-08-31 Gerd Moellmann <gerd@gnu.org> | |
4783 | |
4784 * composite.c (update_compositions): Do nothing if | |
4785 inhibit-modification-hooks is set. | |
4786 | |
4787 2001-08-30 Gerd Moellmann <gerd@gnu.org> | |
4788 | |
4789 * emacs.c (shut_down_emacs): Don't call check_glyph_memory | |
4790 and check_message_stack if terminating abnormally. We want | |
4791 glyph matrices etc. in a core dump. | |
4792 | |
4793 * xdisp.c (Qbuffer_position, Qposition, Qobject): New variables. | |
4794 (syms_of_xdisp): Initialize them. | |
4795 (handle_single_display_prop): Don't change point, bind `object', | |
4796 `position', and `buffer-position' instead to the object having the | |
4797 `display' property, position in the object and position in the buffer. | |
4798 | |
4799 * fileio.c (Finsert_file_contents): Don't change the multibyteness | |
4800 of the buffer if REPLACE is non-nil. | |
4801 | |
4802 2001-08-29 Gerd Moellmann <gerd@gnu.org> | |
4803 | |
4804 * fileio.c (Finsert_file_contents): Undo change of 2001-08-27. | |
4805 | |
4806 2001-08-28 Eli Zaretskii <eliz@is.elta.co.il> | |
4807 | |
4808 * w32term.c (x_set_glyph_string_background_width) | |
4809 (show_mouse_face): Track the last changes in xterm.c. | |
4810 | |
4811 2001-08-28 Gerd Moellmann <gerd@gnu.org> | |
4812 | |
4813 * xterm.c (x_set_glyph_string_background_width): Set the glyph | |
4814 string's background width so that multi-line mouse-face is drawn | |
4815 to the right edge of the window. | |
4816 (show_mouse_face): Set the row's mouse_face_p flag after drawing | |
4817 glyphs. | |
4818 | |
4819 * dispnew.c (direct_output_for_insert): Set updated_area | |
4820 before inserting/writing glyphs. | |
4821 | |
4822 * xdisp.c (display_mode_element): Use string_byte_to_char to | |
4823 determine character positions in strings, use chars_in_text | |
4824 instead of strwidth. | |
4825 (dump_glyph_row) [GLYPH_DEBUG]: Take a glyph row instead of | |
4826 a matrix as parameter; this is easier to use from GDB. | |
4827 | |
4828 2001-08-28 Miles Bader <miles@gnu.org> | |
4829 | |
4830 * textprop.c (Fprevious_single_char_property_change) | |
4831 (Fnext_single_char_property_change): Doc fixes. | |
4832 | |
4833 2001-08-27 Gerd Moellmann <gerd@gnu.org> | |
4834 | |
4835 * fileio.c (Finsert_file_contents): Allocate, restore, and | |
4836 free composition data in the case of REPLACE not being nil. | |
4837 | |
4838 * xdisp.c (init_from_display_pos, init_to_row_end): Return 0 if | |
4839 there exist overlay strings with newlines at POS. | |
4840 (text_outside_line_unchanged_p): Return 0 if changes start at | |
4841 START and overlays exist at START. Likewise for END. | |
4842 (try_window_id): Give up if init_to_row_end returns 0. | |
4843 | |
4844 * fileio.c (Finsert_file_contents): Call Fset_buffer_multibyte | |
4845 unconditionally. | |
4846 | |
4847 2001-08-24 Gerd Moellmann <gerd@gnu.org> | |
4848 | |
4849 * keymap.c (access_keymap): Return the cdr of the binding of | |
4850 a generic character instead of its definition (KEY . BINDING). | |
4851 | |
4852 * fileio.c (Finsert_file_contents): Set coding's dest_multibyte | |
4853 to 0 also in the REPLACE case. | |
4854 | |
4855 2001-08-24 Andrew Choi <akochoi@cse.cuhk.edu.hk> | |
4856 | |
4857 * fileio.c (Ffile_readable_p) [macintosh]: Call access instead of | |
4858 open to determine whether file is readable (as for DOS_NT). | |
4859 | |
4860 2001-08-23 Gerd Moellmann <gerd@gnu.org> | |
4861 | |
4862 * fileio.c (Finsert_file_contents): If VISIT is non-nil, and | |
4863 coding.type is coding_type_no_conversion or coding_type_raw_text, | |
4864 use Fset_buffer_multibyte to make the buffer unibyte if REPLACE is | |
4865 non-nil instead of just setting enable_multibyte_characters in the | |
4866 buffer to nil. | |
4867 | |
4868 2001-08-22 Gerd Moellmann <gerd@gnu.org> | |
4869 | |
4870 * dispextern.h (struct face_cache): Add member | |
4871 menu_face_changed_p. | |
4872 | |
4873 * xfaces.c (menu_face_changed_default): New variable. | |
4874 (menu_face_changed_count): Variable removed. | |
4875 (Finternal_set_lisp_face_attribute): Doc fix. If FRAME is t, set | |
4876 the menu_face_changed_default flag, otherwise set the FRAME's | |
4877 menu_face_changed_p flag if the `menu' face has been changed. | |
4878 Prevent calling set_font_frame_param if FRAME is t. | |
4879 (make_face_cache): Initialize cache's menu_face_changed_p | |
4880 from menu_face_changed_default. | |
4881 (realize_basic_faces): Look into the frame's face cache to | |
4882 determine if the menu appearance needs updating. | |
4883 | |
4884 * keymap.c (access_keymap): Fix last change to not consider | |
4885 IDX when it has modifiers. | |
4886 | |
4887 2001-08-21 Gerd Moellmann <gerd@gnu.org> | |
4888 | |
4889 * keymap.c (access_keymap): If a binding of the form (GENERIC-CHAR | |
4890 . BINDING) exists, where GENERIC-CHAR is the generic character of | |
4891 the charset of IDX, return BINDING unless there exists a binding | |
4892 for IDX itself. | |
4893 | |
4894 2001-08-16 Gerd Moellmann <gerd@gnu.org> | |
4895 | |
4896 * xrdb.c (SYSV): Don't define on Solaris 2. | |
4897 From Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>. | |
4898 | |
4899 * xdisp.c (move_it_by_lines) <DVPOS < 0>: Start at the beginning | |
4900 of the screen line, not text line, containing IT's current position. | |
4901 | |
4902 2001-08-15 Gerd Moellmann <gerd@gnu.org> | |
4903 | |
4904 * window.c (window_scroll_pixel_based): Don't recenter if | |
4905 PT is partially visible in the window. | |
4906 | |
4907 * xterm.c (expose_window_tree, expose_window, expose_line): | |
4908 Return 1 when overwriting mouse-face. | |
4909 (expose_frame): If mouse-face was overwritten, redo it. | |
4910 | |
4911 * xfaces.c (x_update_menu_appearance): Don't call | |
4912 set_frame_menubar, let the next redisplay do it. | |
4913 | |
4914 2001-08-14 Andrew Innes <andrewi@gnu.org> | |
4915 | |
4916 * w32term.c (x_draw_glyph_string): Draw relief (if any) before | |
4917 drawing glyph string. | |
4918 | |
4919 2001-08-14 Eli Zaretskii <eliz@is.elta.co.il> | |
4920 | |
4921 * s/hiuxwe2.h: New file, for the HITACHI SR2001/SR2201 series | |
4922 running HI-UX/MPP. | |
4923 | |
4924 2001-08-14 Gerd Moellmann <gerd@gnu.org> | |
4925 | |
4926 * xfaces.c (x_update_menu_appearance): Save and restore value of | |
4927 interrupt_input_blocked. | |
4928 | |
4929 2001-08-13 Gerd Moellmann <gerd@gnu.org> | |
4930 | |
4931 * xdisp.c (move_it_by_lines) <DVPOS < 0>: If not already on | |
4932 a line start, move back to the line start. | |
4933 | |
4934 * xdisp.c (resize_echo_area_exactly): Don't resize the mini-window | |
4935 exactly when a mini-buffer is active. | |
4936 | |
4937 * keyboard.c (make_lispy_event): Interpret double_click_fuzz | |
4938 in units of 1/8 character on non window-system frames. | |
4939 (syms_of_keyboard) <double-click-fuzz>: Doc fix. | |
4940 | |
4941 2001-08-10 Eli Zaretskii <eliz@is.elta.co.il> | |
4942 | |
4943 * keyboard.c (syms_of_keyboard) <double-click-fuzz>: Fix a typo in | |
4944 a doc string. | |
4945 | |
4946 2001-08-09 Gerd Moellmann <gerd@gnu.org> | |
4947 | |
4948 * keyboard.c (Vpre_help_message): New variable. | |
4949 (syms_of_keyboard): Initialize and staticpro it. | |
4950 (show_help_echo): Record current message before displaying a | |
4951 help-echo, and restore that message when clearing the help. | |
4952 | |
4953 * xfns.c (x_create_im): Remove prototype. | |
4954 | |
4955 * xdisp.c (mark_window_display_accurate_1): Remove an assertion. | |
4956 | |
4957 * dispnew.c (adjust_glyph_matrix): Undo last change. | |
4958 | |
4959 2001-08-08 Gerd Moellmann <gerd@gnu.org> | |
4960 | |
4961 * dispnew.c (adjust_glyph_matrix): In the optimization for | |
4962 windows whose height has changed, disable partially visible lines. | |
4963 | |
4964 2001-08-07 Gerd Moellmann <gerd@gnu.org> | |
4965 | |
4966 * window.c (Frecenter): If ARG < 0, and on a window system | |
4967 frame, count in some empty lines when we can't move -ARG lines down. | |
4968 | |
4969 * xdisp.c (start_display): Don't try to determine the continuation | |
4970 lines width if lines are truncated. It's superfluous and leads to | |
4971 incorrect results if POS is not visible in the window after | |
4972 reseating the iterator at the previous line start. | |
4973 | |
4974 2001-08-06 Gerd Moellmann <gerd@gnu.org> | |
4975 | |
4976 * xterm.c (x_dump_glyph_string): Put in #if GLYPH_DEBUG. | |
4977 | |
4978 2001-08-06 Pavel Jan,Am(Bk <Pavel@Janik.cz> | |
4979 | |
4980 * alloc.c (init_stack): Remove declaration. | |
4981 | |
4982 2001-08-03 Gerd Moellmann <gerd@gnu.org> | |
4983 | |
4984 * keyboard.c (read_key_sequence): Check that key is an integer | |
4985 before comparing it with quit_char. | |
4986 (add_command_key): Use larger_vector. | |
4987 (read_char_x_menu_prompt): Instead of converting symbol and | |
4988 integer events into conses (EVENT . nil), use (EVENT . disabled) | |
4989 which cannot be confused with valid events. | |
4990 (read_char): When reading from Vunread_command_events, check for | |
4991 events of the form (EVENT . disabled) instead of | |
4992 (EVENT . nil). | |
4993 | |
4994 * xdisp.c (resize_mini_window): If Vmax_mini_window_height is | |
4995 a float, determine the max height from the frame's height. | |
4996 | |
4997 2001-08-02 Gerd Moellmann <gerd@gnu.org> | |
4998 | |
4999 * xdisp.c (redisplay_internal): Take message_cleared_p into | |
5000 account only if minibuf_level == 0. | |
5001 | |
5002 2001-08-01 Gerd Moellmann <gerd@gnu.org> | |
5003 | |
5004 * xdisp.c (redisplay_internal): Add a check for the last | |
5005 displayed message. | |
5006 | |
5007 * xdisp.c (message_cleared_p): New variable. | |
5008 (clear_message): Set message_cleared_p when clearing the current | |
5009 message. | |
5010 (redisplay_internal): Look at message_cleared_p to capture | |
5011 the case that the echo area should be cleared. | |
5012 | |
5013 * keyboard.c (command_loop_1): Fix spelling of | |
5014 resize_echo_area_exactly. | |
5015 | |
5016 * dispextern.h (resize_echo_area_exactly): Fix typo in function name. | |
5017 | |
5018 * xdisp.c (resize_echo_area_exactly): Fix typo in function name. | |
5019 | |
5020 * xfns.c (x_set_tool_bar_lines): Clear the tool bar window's | |
5021 current matrix when the window gets smaller. | |
5022 | |
5023 2001-08-01 Eli Zaretskii <eliz@is.elta.co.il> | |
5024 | |
5025 * print.c (strout): Cast the character passed to insert_char to | |
5026 unsigned char, to avoid sign extension when it is promoted to int. | |
5027 | |
5028 2001-07-31 Gerd Moellmann <gerd@gnu.org> | |
5029 | |
5030 * fileio.c (Finsert_file_contents): Don't treat a return value | |
5031 of 0 from emacs_read as an IO error. | |
5032 | |
5033 2001-07-30 Gerd Moellmann <gerd@gnu.org> | |
5034 | |
5035 * keyboard.c (abs): New macro. | |
5036 (double_click_fuzz): New variable. | |
5037 (make_lispy_event): Use it to determine what makes a double-click. | |
5038 (syms_of_keyboard): DEFVAR_INT it. | |
5039 | |
5040 * xmenu.c (set_frame_menubar): Take into account that | |
5041 f->menu_bar_vector can be nil, and not a vector. From Ken Raeburn | |
5042 <raeburn@gnu.org>. | |
5043 | |
5044 2001-07-27 Gerd Moellmann <gerd@gnu.org> | |
5045 | |
5046 * xterm.c (x_get_glyph_string_clip_rect): Minor cleanup. | |
5047 | |
5048 * dispnew.c (shift_glyph_matrix, blank_row): Fix computation | |
5049 of row's visible height. | |
5050 | |
5051 * xdisp.c (init_from_display_pos): If POS is in an overlay string, | |
5052 deal with the first overlay string having an image `display' property. | |
5053 (try_window_reusing_current_matrix, compute_line_metrics): | |
5054 Fix computation of row's visible height for the case that part of the | |
5055 row is invisible above and part of the row is at the same time | |
5056 invisible below the window. | |
5057 | |
5058 2001-07-26 Gerd Moellmann <gerd@gnu.org> | |
5059 | |
5060 * xfns.c (x-show-tip): Doc fix. | |
5061 | |
5062 * xfns.c (Vx_max_tooltip_size): New variable. | |
5063 (syms_of_xfns): DEFVAR_LISP it. | |
5064 (Fx_show_tip): Set frame's window_width to the width of the | |
5065 window. Use a maximum tooltip size specified by | |
5066 Vx_max_tooltip_size, if that has valid contents. | |
5067 (x_create_tip_frame): Set tooltip buffer's truncate-lines to nil. | |
5068 | |
5069 2001-07-26 Andrew Innes <andrewi@gnu.org> | |
5070 | |
5071 * w32term.c (x_display_list): New variable. | |
5072 (w32_term_init): Set it. | |
5073 | |
5074 * w32term.h (x_display_list): New extern. | |
5075 | |
5076 2001-07-26 Gerd Moellmann <gerd@gnu.org> | |
5077 | |
5078 * xdisp.c (resize_mini_window): Give up when inhibit-redisplay | |
5079 is non-nil, instead of when redisplaying_p is non-zero. | |
5080 See comment there. | |
5081 (mark_window_display_accurate_1): Add an assertion. | |
5082 | |
5083 2001-07-25 Gerd Moellmann <gerd@gnu.org> | |
5084 | |
5085 * dispextern.h (struct it): Increase size of ctl_chars to 16. | |
5086 | |
5087 * xfns.c (Fx_file_dialog): Block/unblock input while processing | |
5088 events so that we get a chance of processing expose events. | |
5089 | |
5090 * xdisp.c (resize_mini_window): Don't resize while redisplaying. | |
5091 | |
5092 2001-07-24 Gerd Moellmann <gerd@gnu.org> | |
5093 | |
5094 * xfns.c (valid_image_p): Protect better against invalid image | |
5095 specifications. Previous code could signal an error. | |
5096 | |
5097 2001-07-23 Gerd Moellmann <gerd@gnu.org> | |
5098 | |
5099 * indent.c (current_column): Fix column computation in the | |
5100 presence of display table entries. | |
5101 (current_column_1, Fmove_to_column, compute_motion): Likewise. | |
5102 | |
5103 * dispnew.c (adjust_glyph_matrix): In the optimization for | |
5104 windows whose height has changed, use the new window height | |
5105 to compute which rows to invalidate. | |
5106 | |
5107 * editfns.c (toplevel) [STDC_HEADERS]: Include float.h. | |
5108 (MAX_10_EXP): New macro. | |
5109 (Fformat): Use it. | |
5110 | |
5111 * coding.c (code_convert_region): Handle the multibyte case if | |
5112 decoding ends with CODING_FINISH_INSUFFICIENT_SRC. | |
5113 | |
5114 2001-07-20 Gerd Moellmann <gerd@gnu.org> | |
5115 | |
5116 * dispextern.h (struct face): Change type of `stipple' to | |
5117 int; it's an ID. | |
5118 | |
5119 * xterm.c (x_fill_stretch_glyph_string): Remove an assertion. | |
5120 | |
5121 2001-07-19 Gerd Moellmann <gerd@gnu.org> | |
5122 | |
5123 * dispnew.c (update_window): Don't set the cursor at the end | |
5124 of the update if display update has been paused. | |
5125 | |
5126 * composite.h (syms_of_composite): Renamed from syms_of_composition. | |
5127 | |
5128 2001-07-18 Ken Raeburn <raeburn@gnu.org> | |
5129 | |
5130 * fns.c (Fset_char_table_default): Check that a charset is defined | |
5131 before checking its dimension. | |
5132 | |
5133 2001-07-17 Ken Raeburn <raeburn@gnu.org> | |
5134 | |
5135 * coding.c (setup_coding_system): Don't do any designation based | |
5136 on reg_bits if charset is not yet defined. | |
5137 | |
5138 * lisp.h (XVECTOR): Verify correct object type before returning a | |
5139 pointer, using eassert. | |
5140 | |
5141 2001-07-17 Gerd Moellmann <gerd@gnu.org> | |
5142 | |
5143 * keyboard.c (KBD_BUFFER_SIZE) [!HAVE_WINDOW_SYSTEM]: | |
5144 Increase to 4096 because of paste problems reported on GNU/Linux. | |
5145 | |
5146 2001-07-17 Jan Nieuwenhuizen <janneke@gnu.org> | |
5147 | |
5148 * emacs.c (USAGE1): Add +LINE:COLUMN option help. | |
5149 | |
5150 2001-07-16 Gerd Moellmann <gerd@gnu.org> | |
5151 | |
5152 * fileio.c (unwind_read): Function removed. | |
5153 (read_non_regular, read_non_regular_quit): New functions. | |
5154 (Finsert_file_contents): When reading from non-regular files, | |
5155 arrange to catch a `quit' and terminate the loop. Rearrange | |
5156 code so that a `quit' when reading from a regular file doesn't | |
5157 insert text in the buffer. | |
5158 | |
5159 * xfaces.c (clear_face_cache): Clear fonts on a display basis. | |
5160 Clear faces afterwards. | |
5161 (clear_font_table): Take a x_display_info parameter. Don't free | |
5162 fonts being the default font of any frame on the given display. | |
5163 | |
5164 2001-07-13 Gerd Moellmann <gerd@gnu.org> | |
5165 | |
5166 * xdisp.c (get_next_display_element): Use CHAR_STRING_NO_SIGNAL | |
5167 instead of CHAR_STRING which can signal an error. | |
5168 | |
5169 * charset.c (char_to_string_1): Extracted from char_to_string. | |
5170 Return -1 instead of signaling an error. | |
5171 (char_to_string): Use it. | |
5172 | |
5173 * charset.h (CHAR_STRING_NO_SIGNAL): New macro. | |
5174 | |
5175 2001-07-12 Stefan Monnier <monnier@cs.yale.edu> | |
5176 | |
5177 * coding.c (Ffind_coding_systems_region_internal): If safe_codings | |
5178 is t, don't try to append anything to it. | |
5179 | |
5180 2001-07-12 Eli Zaretskii <eliz@is.elta.co.il> | |
5181 | |
5182 * dired.c (file_name_completion): Pass dp->d_name to | |
5183 Fstring_match, not elt, which is always nil here. | |
5184 | |
5185 2001-07-12 Gerd Moellmann <gerd@gnu.org> | |
5186 | |
5187 * xselect.c (x_decline_selection_request): Handle errors | |
5188 caused by receivers that have vanished. | |
5189 | |
5190 * xterm.c (XTread_socket) <PropertyNotify>: Put the code | |
5191 ignoring events on foreign windows in #if 0. Always dispatch | |
5192 the event after checking it with x_handle_property_notify. | |
5193 | |
5194 * xselect.c (TRACE0, TRACE1, TRACE2): New macros, defined | |
5195 depending on TRACE_SELECTION. Replace fprintfs in #if 0 with | |
5196 TRACE macros to facilitate debugging. Add additional trace statements. | |
5197 (toplevel): Add prototypes for file-local functions. | |
5198 (x_atom_to_symbol): Remove DPYINFO parameter. | |
5199 | |
5200 2001-07-11 Stefan Monnier <monnier@cs.yale.edu> | |
5201 | |
5202 * w32menu.c (menubar_selection_callback, w32_menu_show): | |
5203 Initialize `entry' to nil. | |
5204 (w32_dialog_show): Remove unused `save_wv' variable. | |
5205 (name_is_separator): Recognize "--:foo" and "--foo-bar". | |
5206 | |
5207 2001-07-11 Gerd Moellmann <gerd@gnu.org> | |
5208 | |
5209 * xdisp.c (try_cursor_movement): Prevent a warning from GCC 3.0. | |
5210 | |
5211 * fileio.c (unwind_read): Print a message when discarding inserted | |
5212 text or switching the buffer to unibyte. Change parameter. | |
5213 (Finsert_file_contents): Don't pass VISIT to unwind_read. | |
5214 | |
5215 * fileio.c (unwind_read): New function. | |
5216 (Finsert_file_contents): Record it as unwind-function for | |
5217 the case that reading is interrupted by C-g. | |
5218 | |
5219 2001-07-10 Gerd Moellmann <gerd@gnu.org> | |
5220 | |
5221 * dispnew.c (update_window): Don't skip the header-line | |
5222 update when scrolling_window returns 0. | |
5223 | |
5224 * xfaces.c (unload_color): Do nothing if PIXEL is -1. | |
5225 | |
5226 * xfns.c (Fx_create_frame): Initialize frame colors to -1, | |
5227 for the case that x_decode_color signals an error. | |
5228 | |
5229 * xdisp.c (add_to_log): Do nothing if called asynchronously. | |
5230 | |
5231 2001-07-09 Gerd Moellmann <gerd@gnu.org> | |
5232 | |
5233 * sound.c (toplevel): Include <signal.h> and "syssignal.h". | |
5234 (vox_configure, vox_close) [SIGIO]: Block/unblock SIGIO | |
5235 around ioctls. | |
5236 | |
5237 2001-07-06 Eli Zaretskii <eliz@is.elta.co.il> | |
5238 | |
5239 * dosfns.c (syms_of_dosfns): Add \n\ at the end of a line in the | |
5240 doc string line for dos-timezone-offset. | |
5241 | |
5242 * msdos.c (do_visible_bell): Add \n\ at the end of each line of | |
5243 inline assembly, to avoid compiler warnings. | |
5244 (syms_of_msdos): Add \n\ at the end of a line in the doc string | |
5245 line for dos-unsupported-char-glyph. | |
5246 | |
5247 * buffer.c (syms_of_buffer) [if 0]: Avoid a warning from GCC 3.0. | |
5248 | |
5249 2001-07-05 Gerd Moellmann <gerd@gnu.org> | |
5250 | |
5251 * sound.c: Include Emacs' header files with #include "...". | |
5252 | |
5253 * eval.c (specbind): Additionally record the buffer that was | |
5254 current when a buffer-local or frame-local variable was bound. | |
5255 | |
5256 2001-07-04 Gerd Moellmann <gerd@gnu.org> | |
5257 | |
5258 * xterm.c (x_produce_glyphs): Don't convert multibyte characters | |
5259 to unibyte characters in unibyte buffers. | |
5260 | |
5261 2001-07-03 Gerd Moellmann <gerd@gnu.org> | |
5262 | |
5263 * eval.c (specbind): If SYMBOL has a frame-local binding, record | |
5264 the frame on the binding stack. Change format of entries for | |
5265 local bindings on the binding stack to '(SYMBOL . WHERE)'. | |
5266 (unbind_to): Handle unbinding a frame-local variable. | |
5267 | |
5268 * xdisp.c (compute_line_metrics): On ttys, subtract continuation | |
5269 glyphs and truncation glyphs at the end of a row from its pixel width. | |
5270 (dump_glyph_row): Print row's continuation_lines_width. | |
5271 (try_window_id): Take the shortcut if ZV is visible in the | |
5272 window, but there are actually no changes at ZV. | |
5273 | |
5274 2001-07-02 Gerd Moellmann <gerd@gnu.org> | |
5275 | |
5276 * xterm.h (x_free_dpy_colors): Add prototype. | |
5277 | |
5278 * xterm.c (cvt_pixel_dtor): Call x_free_dpy_colors with the | |
5279 right number of arguments. | |
5280 | |
5281 * Makefile.in (tags): Depend on $(lwlibdir)/TAGS. | |
5282 ($(lwlibdir)TAGS): New target. | |
5283 (TAGS): Fix dependency list. | |
5284 | |
5285 * xterm.c (x_list_fonts): Make sure XFreeFont is called | |
5286 with input blocked. | |
5287 | |
5288 2001-06-30 Gerd Moellmann <gerd@gnu.org> | |
5289 | |
5290 * emacs.c (main): Remove extern declaration for sys_nerr, which | |
5291 isn't used and causes a compilation error with GCC 3.0 on | |
5292 FreeBSD 4.3. | |
5293 | |
5294 2001-06-27 Gerd Moellmann <gerd@gnu.org> | |
5295 | |
5296 * widget.c (EmacsFrameSetCharSize): Turn off atimers and block | |
5297 SIGIO around the code where Xt might wait for a ConfigureNotifyEvent. | |
5298 (toplevel): Include <signal.h> and syssignal.h. | |
5299 | |
5300 * sound.c (vox_configure, vox_close): Turn off atimers | |
5301 around ioctls. | |
5302 | |
5303 2001-06-26 Gerd Moellmann <gerd@gnu.org> | |
5304 | |
5305 * keyboard.c (read_char) <non_reread>: Record the previous idle | |
5306 start time before calling timer_stop_idle. | |
5307 (read_char) <reread_first>: After processing a help-echo event, | |
5308 restore the previous idle start time. | |
5309 | |
5310 * xdisp.c (handle_invisible_prop): Deal with overlay strings at | |
5311 the start of invisible text. | |
5312 (setup_for_ellipsis): New function. | |
5313 (next_overlay_string): After all overlay strings have been | |
5314 processed, display an ellipsis if necessary. | |
5315 (load_overlay_strings, get_overlay_strings): Add parameter CHARPOS. | |
5316 (push_it): Initialize display_ellipsis_p on the iterator's stack. | |
5317 | |
5318 * dispextern.h (struct iterator_stack_entry): Add member | |
5319 display_ellipsis_p. | |
5320 | |
5321 2001-06-25 Gerd Moellmann <gerd@gnu.org> | |
5322 | |
5323 * widget.c (EmacsFrameSetCharSize): Set XtNwaitForWm depending | |
5324 on the value of the wait-for-wm frame parameter. | |
5325 | |
5326 * xterm.h (struct x_output): Add member wait_for_wm. | |
5327 | |
5328 * xfns.c (Qwait_for_wm): New variable. | |
5329 (x_frame_parms): Add entry for `wait-for-wm". | |
5330 (x_set_wait_for_wm): New function. | |
5331 (Fx_create_frame): Call x_default_parameter for wait-for-wm. | |
5332 (syms_of_xfns): Initialize and staticpro Qwait_for_wm. | |
5333 | |
5334 * xdisp.c (try_window_id) <all changes below window end>: Don't | |
5335 take this shortcut if ZV is visible in the window. | |
5336 (try_window_id): When checking for window start being in changed | |
5337 text, don't check that the buffer's size has changed. | |
5338 | |
5339 2001-06-23 Richard M. Stallman <rms@gnu.org> | |
5340 | |
5341 * minibuf.c (Fcompleting_read): Doc fix. | |
5342 | |
5343 2001-06-19 Gerd Moellmann <gerd@gnu.org> | |
5344 | |
5345 * composite.c (Ffind_composition_internal): Accept ZV | |
5346 and a string's end position as POS. | |
5347 | |
5348 2001-06-18 Gerd Moellmann <gerd@gnu.org> | |
5349 | |
5350 * composite.c (Ffind_composition_internal): Check POS | |
5351 for validity. | |
5352 | |
5353 2001-06-15 Eli Zaretskii <eliz@is.elta.co.il> | |
5354 | |
5355 * editfns.c (Fmessage_box): If the frame is not under a window | |
5356 system, output the message in the echo area. | |
5357 | |
5358 2001-06-14 Richard M. Stallman <rms@gnu.org> | |
5359 | |
5360 * xdisp.c (try_window_id): When EOB is visible, don't treat | |
5361 insertion at EOB as if it were "off the bottom of the screen." | |
5362 | |
5363 2001-06-11 Andrew Innes <andrewi@gnu.org> | |
5364 | |
5365 * w32proc.c (create_child): Add new parameter is_gui_app. | |
5366 (w32_executable_type): Add new parameter is_gui_app. | |
5367 (sys_spawnve): Use it. | |
5368 (sys_kill): Fake ^C for SIGINT, and ^Break (if possible) for | |
5369 SIGQUIT. This matches better how the signals are interpreted by | |
5370 MSVC compiled programs. | |
5371 (syms_of_ntproc): Update docstring. | |
5372 | |
5373 2001-06-02 Stefan Monnier <monnier@cs.yale.edu> | |
5374 | |
5375 * xterm.c (clear_mouse_face): Reset dpyinfo->mouse_face_overlay as | |
5376 well otherwise note_mouse_highlight might optimize away highlighting | |
5377 if we pass over that same overlay again. | |
5378 | |
5379 2001-06-02 Eli Zaretskii <eliz@is.elta.co.il> | |
5380 | |
5381 * lread.c (Fload): Document that the argument is run via | |
5382 substitute-in-file-name. | |
5383 | |
5384 2001-05-31 Gerd Moellmann <gerd@gnu.org> | |
5385 | |
5386 * Makefile.in (bootstrap-doc): New target. | |
5387 (bootstrap-emacs): Depend on it. | |
5388 | |
5389 * fileio.c (Fdo_auto_save): Don't try to create the directory of | |
5390 auto-save-list-file-name when shutting down Emacs, because | |
5391 creating the directory might signal an error, and leaves | |
5392 Emacs in a strange state. | |
5393 | |
5394 * term.c: (tty_cursor_hidden): New variable. | |
5395 (update_begin): Don't call tty_hide_cursor. Clean up. | |
5396 (update_end, set_terminal_window, set_scroll_region): Clean up. | |
5397 (ring_bell, reset_terminal_modes): Clean up. | |
5398 (tty_hide_cursor, tty_show_cursor): Hide/show cursor depending | |
5399 on tty_cursor_hidden. | |
5400 (write_glyphs): Call tty_hide_cursor. | |
5401 | |
5402 2001-05-30 Stefan Monnier <monnier@cs.yale.edu> | |
5403 | |
5404 * buffer.c (copy_overlays): Make ENABLE_CHECKING happy. | |
5405 | |
5406 2001-05-30 Gerd Moellmann <gerd@gnu.org> | |
5407 | |
5408 * xfns.c (enum image_value_type): New enumerator | |
5409 IMAGE_STRING_OR_NIL_VALUE. | |
5410 (parse_image_spec): Handle it. | |
5411 (xbm_format, pbm_format): Use it for :foreground and :background. | |
5412 (xbm_load, pbm_load): Check for nil color names. | |
5413 | |
5414 * xterm.c (note_mouse_highlight): If an overlapping overlay | |
5415 exists, but we find that we highlight the same overlay as before, | |
5416 don't do the highlighting again. | |
5417 | |
5418 2001-05-29 Gerd Moellmann <gerd@gnu.org> | |
5419 | |
5420 * xmenu.c (single_submenu, xmenu_show) [!HAVE_MULTILINGUAL_MENU]: | |
5421 Protect unibyte strings created by replacing their multibyte | |
5422 equivalents in menu_items. | |
5423 | |
5424 * keymap.c (Fsingle_key_description): NUL-terminate the string | |
5425 buffer before calling build_string. | |
5426 | |
5427 * callproc.c (Fcall_process): Deal with decode_coding returning | |
5428 CODING_FINISH_INCONSISTENT_EOL. | |
5429 | |
5430 2001-05-28 Gerd Moellmann <gerd@gnu.org> | |
5431 | |
5432 * xmenu.c (xmenu_show) [!HAVE_MULTILINGUAL_MENU]: Don't overwrite | |
5433 an item's name with its key description in case the description | |
5434 is a multibyte string. | |
5435 | |
5436 * keymap.c (Fsingle_key_description): Create a multibyte string | |
5437 only if necessary. | |
5438 | |
5439 * macros.c (Fstart_kbd_macro): Doc fix. | |
5440 | |
5441 * xterm.c (cursor_in_mouse_face_p): New function. | |
5442 (x_draw_stretch_glyph_string): Use it to choose a different GC | |
5443 when drawing a cursor within highlighted text. | |
5444 | |
5445 * editfns.c (char_property_eq): Put in #if 0. | |
5446 | |
5447 * indent.c (string_display_width): Put in #if 0. | |
5448 | |
5449 * lread.c (Fload): Remove unused label. | |
5450 | |
5451 * termcap.c (speeds): Put in #if 0. | |
5452 | |
5453 2001-05-18 Gerd Moellmann <gerd@gnu.org> | |
5454 | |
5455 * eval.c (call_debugger): Don't bind inhibit-eval-during-redisplay. | |
5456 | |
5457 * xfaces.c (xlfd_point_size): Don't divide pixel size from | |
5458 transformation matrix by 10. | |
5459 | |
5460 2001-05-16 Gerd Moellmann <gerd@gnu.org> | |
5461 | |
5462 * xfns.c (x_set_foreground_color): Change frame's cursor_pixel | |
5463 only if it's equal to the former foreground pixel color. | |
5464 (x_set_foreground_color, x_set_background_color) | |
5465 (x_set_mouse_color, x_set_cursor_color): Cleaned up. | |
5466 | |
5467 2001-05-16 Dave Love <fx@gnu.org> | |
5468 | |
5469 * insdel.c (signal_before_change, signal_after_change): Consider a | |
5470 local change hook which changes the buffer. | |
5471 | |
5472 * process.c (read_process_output): Don't call signal_after_change | |
5473 and update_compositions after insert_from_string_before_markers. | |
5474 | |
5475 2001-05-16 Gerd Moellmann <gerd@gnu.org> | |
5476 | |
5477 * xfaces.c (split_font_name): Use the right field when | |
5478 checking for `[...]' syntax. | |
5479 | |
5480 * buffer.c (copy_overlays): New function. | |
5481 (clone_per_buffer_values): Use it. | |
5482 | |
5483 * buffer.h (OVERLAY_PLIST): New macro. | |
5484 | |
5485 * keymap.c (Fsingle_key_description): Replace a build_string with | |
5486 a make_multibyte_string. From Kenichi Handa <handa@etl.go.jp>. | |
5487 | |
5488 * fontset.c (Ffontset_info): Check that face is non-null | |
5489 before accessing its fields. | |
5490 | |
5491 2001-05-15 Gerd Moellmann <gerd@gnu.org> | |
5492 | |
5493 * keyboard.c (read_key_sequence): Prevent generating a fake | |
5494 prefix key twice. | |
5495 | |
5496 * xfaces.c (split_font_name): Handle `[...]' for the right | |
5497 font name fields. | |
5498 | |
5499 * ccl.c (ccl_driver): Don't copy remaining bytes in case | |
5500 of CCL_STAT_INVALID_CMD. | |
5501 | |
5502 2001-05-14 Stefan Monnier <monnier@cs.yale.edu> | |
5503 | |
5504 * eval.c (Fdefvar): Only record (defvar <var>) in the load-history | |
5505 in <var> has no default value yet. | |
5506 | |
5507 * xfaces.c (try_alternative_families): First try the FAMILY. | |
5508 And if nothing is found in the end, try again with scalable fonts. | |
5509 (try_font_list): Let try_alternative_families do a bit more of | |
5510 the work. Only use FAMILY if it is not nil. | |
5511 (syms_of_xfaces) <scalable-fonts-allowed>: Fix docstring. | |
5512 | |
5513 2001-05-14 Gerd Moellmann <gerd@gnu.org> | |
5514 | |
5515 * xterm.c (note_mouse_highlight): Avoid changing the mouse | |
5516 pointer shape when show_mouse_face has already done it. | |
5517 | |
5518 * xterm.c (x_draw_glyphs): Fix computation of rightmost x for | |
5519 full-width rows. | |
5520 | |
5521 * xfaces.c (split_font_name): Make sure to leave the loop | |
5522 with the right value of `i'. | |
5523 | |
5524 * xfaces.c (split_font_name): Handle matrix transformations | |
5525 in the pixel and point size fields of XLFD font names. | |
5526 (xlfd_point_size): Likewise. | |
5527 | |
5528 2001-05-12 Eli Zaretskii <eliz@is.elta.co.il> | |
5529 | |
5530 * w32fns.c (w32_to_x_font): Change prototype to fit the declaration. | |
5531 (x_to_w32_font): Add prototype. | |
5532 | |
5533 * regex.c (malloc, realloc, free) [emacs]: Undefine before | |
5534 redefining, to avoid compiler warnings. | |
5535 | |
5536 * w32proc.c: Include syssignal.h, to avoid compiler warnings. | |
5537 | |
5538 * w32bdf.c (search_file_line, set_bdf_font_info, seek_char) | |
5539 (w32_get_bdf_glyph): Cast between unsigned char and char when | |
5540 passing arguments to subroutines, to shut up compiler warnings. | |
5541 (w32_get_bdf_glyph): Don't mix signed and unsigned when calling | |
5542 GET_HEX_VAL. | |
5543 | |
5544 * xfaces.c: Include keyboard.h before frame.h, not after it. | |
5545 | |
5546 * widget.c: Include keyboard.h before frame.h. | |
5547 | |
5548 * w32term.h (struct image, struct face): Forward declaration, to | |
5549 avoid compiler warnings. | |
5550 | |
5551 2001-05-11 Gerd Moellmann <gerd@gnu.org> | |
5552 | |
5553 * keyboard.c (read_key_sequence): Don't modify events when | |
5554 generating fake prefix keys (mode-line, scroll-bar, ...) since | |
5555 this prevents proper processing of such events when pushed back | |
5556 into unread-command-events. | |
5557 | |
5558 * xterm.c (clear_mouse_face): Return 1 if text with mouse face was | |
5559 actually redrawn. Make the function static. | |
5560 (note_mouse_highlight): Fix a case where the mouse cursor | |
5561 was changed back to the text cursor. | |
5562 | |
5563 * xterm.h (clear_mouse_face): Remove prototype. | |
5564 | |
5565 * xdisp.c (try_window_id): Fix the fix and set the right | |
5566 window_end_vpos. | |
5567 | |
5568 * xdisp.c (try_window_id): Fix computation of window end in the | |
5569 case that lines were deleted at the end of the window. Add some | |
5570 more debug_method_adds. | |
5571 | |
5572 * xfaces.c (try_alternative_families): New function. | |
5573 (try_font_list): Use it. If ATTRS specifies a family, check | |
5574 fonts from that family first. | |
5575 (choose_face_font): Remove code setting the family part of | |
5576 the pattern to nil. | |
5577 | |
5578 2001-05-10 Gerd Moellmann <gerd@gnu.org> | |
5579 | |
5580 * xdisp.c (try_window_id): Fix case of all changes before | |
5581 the window start. | |
5582 | |
5583 * xdisp.c (try_window_id): Add some xasserts. | |
5584 | |
5585 2001-05-09 Gerd Moellmann <gerd@gnu.org> | |
5586 | |
5587 * lisp.h (GLYPH_CHAR_VALID_P): Use CHAR_VALID_P. | |
5588 | |
5589 2001-05-09 Dave Love <fx@gnu.org> | |
5590 | |
5591 * xdisp.c (GIVE_UP): Fix for K&R C. | |
5592 | |
5593 2001-05-09 Gerd Moellmann <gerd@gnu.org> | |
5594 | |
5595 * print.c (syms_of_print) <print-length, print-level>: Doc fix. | |
5596 | |
5597 * xterm.c (note_mouse_highlight): Don't change the mouse cursor | |
5598 back to the text cursor shape without need. | |
5599 | |
5600 2001-05-07 Gerd Moellmann <gerd@gnu.org> | |
5601 | |
5602 * xfns.c (x_set_foreground_color): Set frame's cursor_pixel. | |
5603 | |
5604 * dispextern.h (inverse_video): Declare extern. | |
5605 | |
5606 * keyboard.c (delete_kboard): Handle the case that selected_frame | |
5607 has been deleted in the course of x_connection_closed. | |
5608 | |
5609 2001-05-03 Eli Zaretskii <eliz@is.elta.co.il> | |
5610 | |
5611 * xterm.c (XTread_socket) <Expose> [!USE_TOOLKIT_SCROLL_BARS]: | |
5612 Fix the change from 2001-04-30. | |
5613 | |
5614 2001-05-03 Gerd Moellmann <gerd@gnu.org> | |
5615 | |
5616 * xfns.c (file_dialog_unmap_cb): New function. | |
5617 (Fx_file_dialog): Use it as XmNunmapCallback to capture the case | |
5618 where a dialog is closed via the window manager. | |
5619 | |
5620 * xdisp.c (try_window_id): Cases of changes all in front of | |
5621 the window start or all below the window end mostly rewritten. | |
5622 (redisplay_window): Move the tests if try_window_id is | |
5623 applicable to try_window_id. | |
5624 (GIVE_UP): New macro. | |
5625 | |
5626 2001-05-02 Gerd Moellmann <gerd@gnu.org> | |
5627 | |
5628 * xterm.c (expose_window): Return int. If W is the window | |
5629 currently being updated, mark the frame garbaged. | |
5630 Fix computation of rows intersecting the exposed rectangle. | |
5631 (expose_window_tree): Stop when expose_window returns 0. | |
5632 | |
5633 * xterm.c (x_draw_stretch_glyph_string): Don't draw background | |
5634 again if it has already been drawn. | |
5635 | |
5636 2001-05-01 Stefan Monnier <monnier@cs.yale.edu> | |
5637 | |
5638 * syntax.c (update_syntax_table): Check that oldi has the same | |
5639 properties as old_prop before deciding not to invalidate. | |
5640 | |
5641 2001-04-30 Gerd Moellmann <gerd@gnu.org> | |
5642 | |
5643 * undo.c (Fprimitive_undo): In a writable buffer, enable undoing | |
5644 read-only text that is so because of text properties. | |
5645 | |
5646 * xterm.c (x_window_to_menu_bar) [USE_LUCID]: New function. | |
5647 (XTread_socket) <Expose> [USE_LUCID]: Handle events for | |
5648 windows that are components of a Lucid menu bar. | |
5649 | |
5650 2001-04-27 Gerd Moellmann <gerd@gnu.org> | |
5651 | |
5652 * term.c (turn_on_face): Fix reverse video handling on terminals | |
5653 that don't support colors. | |
5654 | |
5655 2001-04-26 Gerd Moellmann <gerd@gnu.org> | |
5656 | |
5657 * editfns.c (save_excursion_restore): Don't use XBUFFER on | |
5658 a non-buffer. | |
5659 | |
5660 2001-04-25 Gerd Moellmann <gerd@gnu.org> | |
5661 | |
5662 * term.c (toggle_highlight): New function. | |
5663 (turn_on_face): Change handling of reverse video. | |
5664 | |
5665 * process.c (wait_reading_process_input): | |
5666 Call record_asynch_buffer_change only if a timer really changed buffers. | |
5667 | |
5668 * buffer.c (mouse_face_overlay_overlaps): Fix the computation | |
5669 of the number of overlays to check. | |
5670 | |
5671 * keyboard.c (command_loop_1): Redo change of 2001-03-12. | |
5672 | |
5673 * xdisp.c (try_window_id): Fix a case where window_end_pos | |
5674 and window_end_bytepos were not adjusted. | |
5675 | |
5676 2001-04-23 Gerd Moellmann <gerd@gnu.org> | |
5677 | |
5678 * xfaces.c (compute_char_face): If buffer is unibyte, set CH to | |
5679 zero instead of -1. | |
5680 | |
5681 2001-04-21 Eli Zaretskii <eliz@is.elta.co.il> | |
5682 | |
5683 * process.c (wait_reading_process_input) [!subprocesses]: | |
5684 Don't reference waiting_for_user_input_p, it's not defined in the | |
5685 branch without async subprocesses support. | |
5686 | |
5687 2001-04-19 Gerd Moellmann <gerd@gnu.org> | |
5688 | |
5689 * keyboard.c (delete_kboard): Prevent a dangling reference | |
5690 from current_kboard to KB, which is freed. | |
5691 | |
5692 * process.c (wait_reading_process_input): | |
5693 Call record_asynch_buffer_change after running timers, to make | |
5694 read_key_sequence aware of buffer changes from under it. | |
5695 | |
5696 2001-04-18 Gerd Moellmann <gerd@gnu.org> | |
5697 | |
5698 * xfaces.c (Qscalable_fonts_allowed): New variable. | |
5699 (realizing_basic_faces_p): Removed. | |
5700 (x_face_list_fonts): Special handling for realizing_basic_faces_p | |
5701 removed. | |
5702 (realize_basic_faces): Specbind Qscalable_fonts_allowed to t. | |
5703 (syms_of_xfaces): Initialize Qscalable_fonts_allowed. Change default | |
5704 for scalable-fonts-allowed to t. | |
5705 | |
5706 * fileio.c (Finsert_file_contents): If the file size returned from | |
5707 stat is zero, set END to READ_BUF_SIZE. This makes sure we can | |
5708 read from files on a procfs whose contents are generated dynamically. | |
5709 | |
5710 2001-04-18 Eli Zaretskii <eliz@is.elta.co.il> | |
5711 | |
5712 * gmalloc.c (__malloc_size_t) [__GNUC__]: If STDC_HEADERS is not | |
5713 defined, include stddef.h and use __SIZE_TYPE__ instead of size_t. | |
5714 (__memalign_hook): Make the two prototypes consistent. | |
5715 | |
5716 2001-04-17 Gerd Moellmann <gerd@gnu.org> | |
5717 | |
5718 * xdisp.c (redisplay_window): Make sure to clear the desired glyph | |
5719 matrix of mini-windows. | |
5720 | |
5721 2001-04-12 Stefan Monnier <monnier@cs.yale.edu> | |
5722 | |
5723 * intervals.c (find_interval): Don't rebalance during signal handling. | |
5724 | |
5725 2001-04-11 Gerd Moellmann <gerd@gnu.org> | |
5726 | |
5727 * fns.c: Include blockinput.h. | |
5728 | |
5729 * fns.c (Fplist_get): Don't QUIT if interrupt_input_blocked. | |
5730 | |
5731 2001-04-10 Gerd Moellmann <gerd@gnu.org> | |
5732 | |
5733 * fns.c (Fcompare_strings): Fix return values. | |
5734 | |
5735 * window.c (window_scroll): Change the meaning of N to mean | |
5736 N screen-fulls or N lines. | |
5737 (window_scroll_pixel_based, window_scroll_line_based) | |
5738 (scroll_command, Fscroll_other_window): Change accordingly. | |
5739 | |
5740 * window.c (window_scroll_pixel_based, Frecenter): | |
5741 Call window_box_height instead of using it.last_visible_y for the | |
5742 height of the window. | |
5743 | |
5744 * xdisp.c (redisplay_window) <recenter>: Call window_box_height | |
5745 instead of using it.last_visible_y for the height of the window. | |
5746 | |
5747 * w32proc.c (sys_spawnve): Quote more chars for Cygwin. | |
5748 From Dan Holmsand <dan@eyebee.com>. | |
5749 | |
5750 * w32.c (sys_open): Try to open file without _O_CREAT first, to be | |
5751 able to write to hidden and system files. From Dan Holmsand | |
5752 <dan@eyebee.com>. | |
5753 | |
5754 * fileio.c (Fcopy_file) [WINDOWSNT]: Use CopyFile. From Dan | |
5755 Holmsand <dan@eyebee.com>. | |
5756 | |
5757 2001-04-09 Gerd Moellmann <gerd@gnu.org> | |
5758 | |
5759 * fns.c (Fplist_get, Fplist_put): Add QUITs. | |
5760 | |
5761 * window.c (window_internal_height): Return 1 less if the | |
5762 window has a header line. | |
5763 | |
5764 * xdisp.c (try_window_id): When scrolling on a terminal, take | |
5765 the change of window_internal_height into account. | |
5766 | |
5767 2001-04-09 Eli Zaretskii <eliz@is.elta.co.il> | |
5768 | |
5769 * gmalloc.c (align): If the argument SIZE would overflow | |
5770 __malloc_ptrdiff_t, fail right away. | |
5771 | |
5772 2001-04-06 Gerd Moellmann <gerd@gnu.org> | |
5773 | |
5774 * xfns.c (compute_tip_xy): Add parameters WIDTH and HEIGHT. | |
5775 Make sure the tooltip is completely visible. | |
5776 (x_make_gc): Use FRAME_X_SCREEN_NUMBER. | |
5777 | |
5778 * xterm.h (FRAME_X_SCREEN_NUMBER): New macro. | |
5779 | |
5780 * xmenu.c (xmenu_show): Use FRAME_X_SCREEN_NUMBER. | |
5781 | |
5782 2001-04-06 Dave Love <fx@gnu.org> | |
5783 | |
5784 * composite.c (update_compositions) <check_mask & CHECK_HEAD>: | |
5785 Fix test of `from'. | |
5786 | |
5787 2001-04-06 Gerd Moellmann <gerd@gnu.org> | |
5788 | |
5789 * composite.h (COMPOSITION_VALID_P): Allow integers as cdrs of PROP. | |
5790 | |
5791 * xdisp.c (Qinhibit_eval_during_redisplay): Make it a Lisp_Object. | |
5792 | |
5793 2001-04-05 Gerd Moellmann <gerd@gnu.org> | |
5794 | |
5795 * sysdep.c (getwd) [!HAVE_GETWD]: Unblock input before returning. | |
5796 | |
5797 * editfns.c (Fcurrent_time_zone): Accept spaces in timezone names. | |
5798 | |
5799 * xfns.c (Vmotif_version_string) [USE_MOTIF]: New variable. | |
5800 (syms_of_xfns): DEFVAR_LISP it. Initialize from XmVERSION_STRING. | |
5801 | |
5802 * xmenu.c (free_frame_menubar) [USE_MOTIF]: Preserve the | |
5803 shell widget's position only if it is non-null. | |
5804 | |
5805 * xterm.c (x_free_frame_resources) [USE_X_TOOLKIT]: | |
5806 Set f->output_data.x->widget to null after destroying it. | |
5807 | |
5808 * fns.c (Frequire): Doc fix. Rename parameter FILE_NAME to | |
5809 FILENAME to bring it in synch with the documentation. | |
5810 | |
5811 * xfaces.c (realizing_basic_faces_p): Renamed from | |
5812 realize_default_face_p. | |
5813 (realize_basic_faces): Set/clear realizing_basic_faces_p. | |
5814 (realize_default_face): Don't set the flag. | |
5815 | |
5816 2001-04-04 Gerd Moellmann <gerd@gnu.org> | |
5817 | |
5818 * lisp.h (echoing, echo_message_buffer, cancel_echoing): Declare. | |
5819 | |
5820 * keyboard.c (echoing, echo_message_buffer): Make externally visible. | |
5821 | |
5822 * xdisp.c (with_echo_area_buffer): Avoid confusion from reusing | |
5823 the buffer that was used for echoing. | |
5824 | |
5825 * xfaces.c (best_matching_font): Remove unused parameter PATTERN. | |
5826 (first_font_matching): Removed unused function. | |
5827 (x_face_list_fonts): Remove unused parameter SCALABLE_P. | |
5828 (may_use_scalable_font_p): Remove parameter FONT; rename | |
5829 parameter NAME to FONT. | |
5830 (x_face_list_fonts): Fix missing bounds check. | |
5831 (realizing_default_face_p): New variable. | |
5832 (realize_default_face): Set and clear that flag. | |
5833 (x_face_list_fonts): When called during the realization of the | |
5834 default face, and no matching fonts are found when ignoring | |
5835 scalable fonts and fonts matching a regexp from | |
5836 face-ignored-fonts, try without ignoring fonts. | |
5837 | |
5838 2001-04-03 Gerd Moellmann <gerd@gnu.org> | |
5839 | |
5840 * xfns.c (postprocess_image): New function. | |
5841 (lookup_image): Call it for all image types except PostScript. | |
5842 (x_kill_gs_process): Call postprocess_image. | |
5843 | |
5844 * xterm.c (x_use_underline_position_properties): New variable. | |
5845 (x_draw_glyph_string): Use it. | |
5846 (syms_of_xterm): DEFVAR_BOOL it. | |
5847 | |
5848 2001-04-02 Gerd Moellmann <gerd@gnu.org> | |
5849 | |
5850 * xterm.c (x_alloc_nearest_color_1): New function. | |
5851 (x_alloc_nearest_color): Use it. | |
5852 (x_color_cells): Take a Display as argument, instead of a frame. | |
5853 (cvt_string_to_pixel_args, cvt_string_to_pixel_value): New variables. | |
5854 (cvt_string_to_pixel, cvt_pixel_dtor): New functions. | |
5855 (x_initialize): Register cvt_string_to_pixel as resource converter | |
5856 string -> Pixel and cvt_pixel_dtor as pixel resource destructor. | |
5857 | |
5858 2001-03-30 Gerd Moellmann <gerd@gnu.org> | |
5859 | |
5860 * xdisp.c (get_overlay_strings): Set iterator's end_charpos. | |
5861 (set_iterator_to_next): If a string from a display property ends, | |
5862 consider the case that this might also be the end of an | |
5863 overlay string having the display property. | |
5864 | |
5865 * xdisp.c (handle_display_prop): Fix recognition of subproperty lists. | |
5866 | |
5867 * xdisp.c (reseat_to_string): Undo last change. | |
5868 | |
5869 * dispnew.c (adjust_glyph_matrix): Don't try to reuse the current | |
5870 matrix of a window when the header line changes, when | |
5871 new rows are allocated, or when the width changes. | |
5872 | |
5873 2001-03-30 Eli Zaretskii <eliz@is.elta.co.il> | |
5874 | |
5875 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Fix last change. | |
5876 | |
5877 2001-03-29 Eli Zaretskii <eliz@is.elta.co.il> | |
5878 | |
5879 * fileio.c (syms_of_fileio) <directory-sep-char>: Warn that it is | |
5880 deprecated. | |
5881 | |
5882 2001-03-29 Gerd Moellmann <gerd@gnu.org> | |
5883 | |
5884 * data.c (Fsubr_interactive_form): New function. | |
5885 (syms_of_data): Defsubr it. | |
5886 | |
5887 * alloc.c (live_string_p, live_cons_p, live_symbol_p) | |
5888 (live_float_p, live_misc_p): Return 1 only if the offset of the | |
5889 pointer in its block is >= 0. | |
5890 | |
5891 2001-03-28 Paul Eggert <eggert@twinsun.com> | |
5892 | |
5893 * editfns.c (Ffloat_time): Fix off-by-factor-of-10 bug in the | |
5894 microseconds calcuation. Avoid double-rounding problem. | |
5895 In doc string, warn that the result is approximate. | |
5896 | |
5897 2001-03-28 Gerd Moellmann <gerd@gnu.org> | |
5898 | |
5899 * eval.c (call_debugger): Bind `inhibit-redisplay' to nil, and | |
5900 bind `inhibit-eval-during-redisplay' to t. | |
5901 | |
5902 * lisp.h (Qinhibit_eval_during_redisplay): Declare extern. | |
5903 | |
5904 * xdisp.c (inhibit_eval_during_redisplay) | |
5905 (Qinhibit_eval_during_redisplay): New variables. | |
5906 (safe_eval, safe_call): If inhibit_eval_during_redisplay is set, | |
5907 don't eval, return nil instead. | |
5908 (syms_of_xdisp): DEFVAR_BOOL inhibit-eval-during-redisplay. | |
5909 Initialize Qinhibit_eval_during_redisplay. | |
5910 | |
5911 * xdisp.c (reseat_to_string): If STRING is multibyte, set | |
5912 the iterator's multibyte_p flag. | |
5913 | |
5914 * xfaces.c (realize_basic_faces): Decrement menu_face_change_count | |
5915 instead of setting it to zero; it's incremented for each frame | |
5916 where the menu face is changed. | |
5917 | |
5918 * xterm.c (x_draw_relief_rect): Extend left shadow to the bottom; | |
5919 change bottom shadow accordingly. | |
5920 | |
5921 * xterm.c (expose_window_tree, expose_frame): Don't compute | |
5922 intersections here. | |
5923 (expose_window): Do it here instead. | |
5924 (x_draw_glyph_string): Fix a computation of the underline position. | |
5925 | |
5926 * bytecode.c (BYTE_CODE_QUIT): New macro. | |
5927 (Fbyte_code): Use BYTE_CODE_QUIT instead of QUIT. | |
5928 | |
5929 2001-03-27 Gerd Moellmann <gerd@gnu.org> | |
5930 | |
5931 * xdisp.c (try_window_reusing_current_matrix) <scrolling up>: | |
5932 Give up if matrix starts in an ellipsis. | |
5933 (init_from_display_pos): Do nothing if POS doesn't specify | |
5934 a dpvec_index but the iterator has such a position. | |
5935 | |
5936 * xdisp.c (init_from_display_pos): Remove unwarranted assertion. | |
5937 | |
5938 * xmenu.c (free_frame_menubar) [USE_MOTIF]: If the shell widget's | |
5939 x/y position is (0, 0) after destroying the menu bar, restore | |
5940 its original position. | |
5941 | |
5942 * xdisp.c (in_ellipses_for_invisible_text_p): New function. | |
5943 (init_from_display_pos): Use it. | |
5944 (try_window_reusing_current_matrix): Don't use cursor_row_p. | |
5945 | |
5946 2001-03-26 Gerd Moellmann <gerd@gnu.org> | |
5947 | |
5948 * xdisp.c (try_window_id): Undo last change. | |
5949 | |
5950 2001-03-26 Eli Zaretskii <eliz@is.elta.co.il> | |
5951 | |
5952 * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix. | |
5953 | |
5954 * buffer.c (syms_of_buffer): Doc fix. | |
5955 | |
5956 2001-03-26 Gerd Moellmann <gerd@gnu.org> | |
5957 | |
5958 * xfaces.c (x_update_menu_appearance): Use local variable | |
5959 popup_path for setting font resources. | |
5960 | |
5961 2001-03-25 Eli Zaretskii <eliz@is.elta.co.il> | |
5962 | |
5963 * frame.c (Fframe_list): Don't reference tip_frame if | |
5964 HAVE_WINDOW_SYSTEM is not defined. | |
5965 | |
5966 * emacs.c (main): Update the copyright year. From Werner LEMBERG | |
5967 <wl@gnu.org>. | |
5968 | |
5969 2001-03-25 Gerd Moellmann <gerd@gnu.org> | |
5970 | |
5971 * xdisp.c (init_from_display_pos): Test invisible property | |
5972 with TEXT_PROP_MEANS_INVISIBLE instead of NILP. | |
5973 | |
5974 * xdisp.c (redisplay_internal) <update one window>: Make sure | |
5975 last_arrow_position and last_arrow_string are set. | |
5976 | |
5977 * frame.c (Fframe_list): Don't return a tooltip frame. | |
5978 | |
5979 2001-03-23 Gerd Moellmann <gerd@gnu.org> | |
5980 | |
5981 * xdisp.c (mark_window_display_accurate_1): New function, | |
5982 extracted from mark_window_display_accurate. | |
5983 Compute BUF_UNCHANGED_MODIFIED, BUF_OVERLAY_UNCHANGED_MODIFIED, | |
5984 BUF_BEG_UNCHANGED, BUF_END_UNCHANGED. | |
5985 (mark_window_display_accurate): Use it. | |
5986 (redisplay_internal): Use it for the selected window. | |
5987 (redisplay_internal): Avoid duplicate mark_window_display_accurate | |
5988 for the selected frame. | |
5989 | |
5990 * xdisp.c Use make_number, for readability. | |
5991 (try_window_id): Disable rows below the window end. | |
5992 (try_window_reusing_current_matrix): Use cursor_row_p. | |
5993 (try_window_reusing_current_matrix) <scrolling up>: Fix disabling | |
5994 of rows. | |
5995 (init_from_display_pos): If POS specifies a position in a display | |
5996 vector, maybe get the iterator set up for that ellipsis. | |
5997 | |
5998 * xdisp.c (dump_glyph_row): Fix output for NGLYPHS == 2. | |
5999 | |
6000 2001-03-23 Eli Zaretskii <eliz@is.elta.co.il> | |
6001 | |
6002 * xmenu.c: Include widget.h only if USE_X_TOOLKIT is defined. | |
6003 | |
6004 2001-03-23 Gerd Moellmann <gerd@gnu.org> | |
6005 | |
6006 * xfaces.c (x_update_menu_appearance): Use a different path | |
6007 for Lucid popup menus. | |
6008 | |
6009 2001-03-22 Stefan Monnier <monnier@cs.yale.edu> | |
6010 | |
6011 * xterm.c (note_mouse_highlight): Dec the int, not the Lisp_Object. | |
6012 | |
6013 * xdisp.c (init_iterator): Check WINDOWP before using XWINDOW. | |
6014 (string_buffer_position): Use `make_number'. | |
6015 | |
6016 2001-03-22 Gerd Moellmann <gerd@gnu.org> | |
6017 | |
6018 * xfaces.c (x_update_menu_appearance): Renamed from | |
6019 x_set_menu_face_resources. Use different resources for popups. | |
6020 | |
6021 * lisp.h (Vx_resource_name) [HAVE_X_WINDOWS]: Declare extern. | |
6022 (GC_CHECK_STRING_BYTES): Don't define. | |
6023 | |
6024 * xfaces.c (x_set_menu_resources_from_menu_face) [USE_X_TOOLKIT]: | |
6025 Removed, together with subroutines. | |
6026 (x_set_menu_face_resources) [USE_X_TOOLKIT]: New function. | |
6027 (realize_basic_faces) [USE_X_TOOLKIT]: Call x_set_menu_face_resources. | |
6028 | |
6029 * dispextern.h (x_set_menu_resources_from_menu_face): | |
6030 Remove prototype. | |
6031 | |
6032 * xmenu.c (update_frame_menubar, set_frame_menubar, xmenu_show): | |
6033 Remove calls to x_set_menu_resources_from_menu_face. | |
6034 | |
6035 * xfaces.c (xm_set_menu_resources_from_menu_face): | |
6036 Remove #ifndef LESSTIF_VERSION. | |
6037 | |
6038 * xmenu.c: Include widget.h. | |
6039 (single_submenu): Return int. Some cleanup. | |
6040 (set_frame_menubar): Call x_set_menu_resources_from_menu_face. | |
6041 | |
6042 2001-03-21 Gerd Moellmann <gerd@gnu.org> | |
6043 | |
6044 * xterm.c (x_update_window_end): Handle overwritten mouse face | |
6045 also for tool bar windows. | |
6046 (show_mouse_face): Set the glyph row's mouse_face_p flag also when | |
6047 DRAW is DRAW_IMAGE_RAISED. | |
6048 | |
6049 2001-03-20 Gerd Moellmann <gerd@gnu.org> | |
6050 | |
6051 * print.c (syms_of_print): Doc fixes. | |
6052 | |
6053 * fns.c (Fmd5): Doc fix. | |
6054 | |
6055 2001-03-19 Gerd Moellmann <gerd@gnu.org> | |
6056 | |
6057 * xterm.c (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]: | |
6058 Clear area of the frame not occupied by the scroll bar. | |
6059 | |
6060 * xfns.c (x_create_tip_frame): Add parameter TEXT. Set the | |
6061 tip frame's root window buffer to *tip* right after creating | |
6062 the frame. | |
6063 | |
6064 * xdisp.c (highlight_trailing_whitespace): Glyphs whose object | |
6065 is an integer don't have to be for space characters. | |
6066 | |
6067 2001-03-16 Gerd Moellmann <gerd@gnu.org> | |
6068 | |
6069 * indent.c (current_column, current_column_1, Fmove_to_column) | |
6070 (compute_motion): Handle characters from display vectors differently. | |
6071 | |
6072 2001-03-15 Kenichi Handa <handa@etl.go.jp> | |
6073 | |
6074 * xterm.c (x_draw_glyph_string): Draw relief (if any) before | |
6075 drawing glyph string. | |
6076 | |
6077 2001-03-15 Gerd Moellmann <gerd@gnu.org> | |
6078 | |
6079 * keyboard.c (timer_check): Preserve the value of deactivate-mark. | |
6080 (command_loop_1): Undo last change. | |
6081 | |
6082 * xterm.c (fast_find_position): Return the correct vpos. | |
6083 | |
6084 * data.c (store_symval_forwarding): Add parameter BUF. If BUF is | |
6085 non-null, set a per-buffer value in BUF instead of the current buffer. | |
6086 (swap_in_global_binding, swap_in_symval_forwarding, Fset_default): | |
6087 Call store_symval_forwarding with BUF null. | |
6088 (set_internal): Call store_symval_forwarding with the BUF | |
6089 parameter passed to set_internal. Formerly, the value was always | |
6090 set in the current buffer; the buffer recorded in specbind for | |
6091 this case wasn't used. | |
6092 (arith_driver): Reindent. | |
6093 | |
6094 * buffer.c (swap_out_buffer_local_variables): | |
6095 Call store_symval_forwarding with BUF null. | |
6096 | |
6097 * lisp.h (store_symval_forwarding): Change prototype. | |
6098 | |
6099 * eval.c (specbind): Call store_symval_forwarding with BUF null. | |
6100 | |
6101 2001-03-14 Gerd Moellmann <gerd@gnu.org> | |
6102 | |
6103 * frame.c (do_switch_frame): Remove unused parameter NO_EVENT, add | |
6104 FOR_DELETION. Avoid resizing the mini-window of the selected | |
6105 frame if FOR_DELETION is set. | |
6106 (Fselect_frame, Fhandle_switch_frame, Fdelete_frame) | |
6107 (Fmake_frame_invisible): Change calls to do_switch_frame for new | |
6108 signature. | |
6109 | |
6110 * window.c (Fset_window_configuration): Change call to | |
6111 do_switch_frame to new format. | |
6112 | |
6113 * keyboard.c (quit_throw_to_read_char): Change call to | |
6114 do_switch_frame to new format. | |
6115 | |
6116 * lisp.h (do_switch_frame): Change prototype. | |
6117 | |
6118 * frame.c (Fframe_parameters): In the `buffer-list' frame | |
6119 parameter, store the buffer list of FRAME, not the list of the | |
6120 selected frame. | |
6121 | |
6122 * xterm.c (x_draw_glyph_string_box): Don't draw a full-width | |
6123 box just because the glyph row's full_width_p flag is set. | |
6124 | |
6125 2001-03-14 Eli Zaretskii <eliz@is.elta.co.il> | |
6126 | |
6127 * xdisp.c (highlight_trailing_whitespace): On character terminals, | |
6128 skip the padding blanks inserted in extend_face_to_end_of_line, | |
6129 before checking for trailing whitespace. | |
6130 | |
6131 2001-03-13 Gerd Moellmann <gerd@gnu.org> | |
6132 | |
6133 * xmenu.c (popup_activate_callback, popup_deactivate_callback): | |
6134 Remove special handling for LessTif/Motif. | |
6135 (toplevel): Don't include Xm/Xm.h. | |
6136 | |
6137 * xterm.c (XTread_socket) <LeaveNotify, EnterNotify>: | |
6138 Remove workaround code for LessTif; it doesn't work anymore. | |
6139 | |
6140 * xterm.c [USE_TOOLKIT_SCROLL_BARS && USE_MOTIF]: Don't include | |
6141 Xm/ScrollBarP.h. | |
6142 | |
6143 * xterm.c (x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: | |
6144 Don't access private scroll bar data; it's no longer necessary with | |
6145 contemporary LessTif. | |
6146 | |
6147 * xfaces.c (xm_set_menu_resources_from_menu_face): | |
6148 Change #if 0 to #ifndef LESSTIF_VERSION. | |
6149 | |
6150 * xmenu.c (xmenu_show) [LESSTIF_VERSION]: Take out the code | |
6151 removing button grabs. | |
6152 | |
6153 2001-03-13 Kenichi Handa <handa@etl.go.jp> | |
6154 | |
6155 * fontset.c (syms_of_fontset): Describe highlight-wrong-size-font | |
6156 and clip-large-size-font as obsolete. | |
6157 | |
6158 * lread.c (read_multibyte): Check the validity of multibyte | |
6159 sequence. If invalid, return the first byte. | |
6160 | |
6161 2001-03-12 Gerd Moellmann <gerd@gnu.org> | |
6162 | |
6163 * keyboard.c (command_loop_1): Set Vdeactivate_mark to nil | |
6164 before running the command; timer functions or process | |
6165 filters may have set it. | |
6166 | |
6167 2001-03-12 Eli Zaretskii <eliz@is.elta.co.il> | |
6168 | |
6169 * keyboard.c (syms_of_keyboard) <overriding-terminal-local-map>: | |
6170 Doc fix. | |
6171 | |
6172 2001-03-12 Gerd Moellmann <gerd@gnu.org> | |
6173 | |
6174 * xrdb.c (x_load_resources) [USE_MOTIF]: Remove extraneous arg | |
6175 to sprintf. | |
6176 | |
6177 2001-03-09 Gerd Moellmann <gerd@gnu.org> | |
6178 | |
6179 * dispextern.h (string_buffer_position): Add prototype. | |
6180 | |
6181 * xdisp.c (string_buffer_position, display_prop_string_p) | |
6182 (single_display_prop_string_p): New functions. | |
6183 | |
6184 * xterm.c (note_mouse_highlight): If there's no help-echo on | |
6185 a string, look at the buffer text ``under'' it. | |
6186 | |
6187 * keyboard.c (make_lispy_event): Add string info to the event, | |
6188 analogous to what's done on mode lines. | |
6189 (read_key_sequence): For a click on a string, consider `local-map' | |
6190 and `keymap' of that string. | |
6191 | |
6192 * keyboard.c (make_lispy_event, make_lispy_movement): | |
6193 Adjust calls to buffer_posn_from_coords to new format. | |
6194 | |
6195 * dispextern.h (buffer_posn_from_coords): Adjust prototype. | |
6196 | |
6197 * dispnew.c (buffer_posn_from_coords): Add parameters OBJECT and | |
6198 POS; return void. | |
6199 | |
6200 * fileio.c (Fwrite_region) [DOS_NT]: Remove O_TRUNC from open | |
6201 flags argument to emacs_open; it seems to conflict with O_EXCL. | |
6202 | |
6203 2001-03-09 Kenichi Handa <handa@etl.go.jp> | |
6204 | |
6205 * composite.h (struct composition): Change types of members; | |
6206 glyph_len to unsigned, width to unsigned short. | |
6207 | |
6208 2001-03-08 Andrew Innes <andrewi@gnu.org> | |
6209 | |
6210 * w32menu.c (add_menu_item): Fix problems with using ownerdraw for | |
6211 menu titles. | |
6212 | |
6213 2001-03-08 Gerd Moellmann <gerd@gnu.org> | |
6214 | |
6215 * xdisp.c (handle_display_prop): Use it->w->buffer as object, | |
6216 instead of nil. | |
6217 | |
6218 * xterm.c (note_mouse_highlight): Handle mouse-face and | |
6219 help-echo in strings. | |
6220 (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P. | |
6221 (fast_find_string_pos): New function. | |
6222 | |
6223 * xdisp.c (handle_face_prop, face_before_or_after_it_pos) | |
6224 (display_string): Call face_at_string_position with new parameter. | |
6225 | |
6226 * xfaces.c (face_at_string_position): Add parameter MOUSE_P. | |
6227 Handle `mouse-face'. | |
6228 | |
6229 * dispextern.h (face_at_string_position): Change prototype. | |
6230 | |
6231 * dired.c (directory_files_internal): Handle EAGAIN more efficiently. | |
6232 | |
6233 * keyboard.c (make_lispy_event): Avoid generating drag events | |
6234 if the mouse hasn't actually moved to another buffer position. | |
6235 | |
6236 2001-03-08 Dave Love <fx@gnu.org> | |
6237 | |
6238 * eval.c (syms_of_eval) <debug-on-error>: Doc fix. | |
6239 | |
6240 2001-03-08 Gerd Moellmann <gerd@gnu.org> | |
6241 | |
6242 * process.c (Fset_process_window_size): Fix a typo. | |
6243 | |
6244 2001-03-08 Kenichi Handa <handa@etl.go.jp> | |
6245 | |
6246 * coding.c (detect_coding_sjis): Do more rigid check. | |
6247 (detect_coding_big5): Likewise. | |
6248 (decode_coding_sjis_big5): Likewise. | |
6249 (Fdetect_coding_region): Call detect_coding_system with tailing | |
6250 anchor byte `\0' for more rigid detection. | |
6251 (detect_coding_mask): Fix the incorrect handling of arg MULTIBYTEP. | |
6252 (Fdetect_coding_string): Likewise. | |
6253 | |
6254 2001-03-07 Stefan Monnier <monnier@cs.yale.edu> | |
6255 | |
6256 * bytecode.c (Fbyte_code) <Btemp_output_buffer_setup>: Check the arg is | |
6257 a string before extracting its data. | |
6258 | |
6259 2001-03-07 Gerd Moellmann <gerd@gnu.org> | |
6260 | |
6261 * window.c (Frecenter): Rewrite code handling negative values | |
6262 of ARG on graphical frames. | |
6263 | |
6264 2001-03-07 Eli Zaretskii <a34785@is.elta.co.il> | |
6265 | |
6266 * window.c (displayed_window_lines): If W->start is outside the | |
6267 accessible portion of the buffer, call start_display with BEGV or | |
6268 ZV instead of W->start. | |
6269 | |
6270 2001-03-07 Gerd Moellmann <gerd@gnu.org> | |
6271 | |
6272 * buffer.c (syms_of_buffer) <header-line-format>: Doc fix. | |
6273 | |
6274 * process.c (Fset_process_filter): Don't crash if the input | |
6275 file descriptor of PROCESS is closed. | |
6276 (Fset_process_window_size): Likewise. | |
6277 | |
6278 2001-03-06 Kenichi Handa <handa@etl.go.jp> | |
6279 | |
6280 * xterm.c (XTflash): Make the timeout of select shorter, and call | |
6281 select repeatedly until the desired time expires. | |
6282 | |
6283 2001-03-06 Gerd Moellmann <gerd@gnu.org> | |
6284 | |
6285 * w32fns.c (Fx_create_frame): Clear Vwindow_list. | |
6286 | |
6287 * xfns.c (Fx_create_frame): Clear Vwindow_list. | |
6288 | |
6289 * lisp.h (Vwindow_list): Declare extern. | |
6290 | |
6291 2001-03-06 Eli Zaretskii <eliz@is.elta.co.il> | |
6292 | |
6293 * dispnew.c (syms_of_display) <glyph-table>: Doc fix. | |
6294 | |
6295 2001-03-06 Gerd Moellmann <gerd@gnu.org> | |
6296 | |
6297 * xterm.c (note_mouse_highlight): Call mouse_face_overlay_overlaps | |
6298 to detect a case where we have to highlight a different region | |
6299 despite not having left the currently highlighted region. | |
6300 Set mouse_face_overlay in the x_display_info. | |
6301 (x_term_init): Initialize the x_display_info's mouse_face_overlay. | |
6302 | |
6303 * xterm.h (struct x_display_info): Add mouse_face_overlay. | |
6304 | |
6305 * buffer.c (mouse_face_overlay_overlaps): New function. | |
6306 | |
6307 * lisp.h (mouse_face_overlay_overlaps): Add prototype. | |
6308 (Qmouse_face): Declare extern. | |
6309 | |
6310 * xdisp.c (redisplay_internal): Set windows_or_buffers_changed | |
6311 if face_change_count is non-zero. | |
6312 | |
6313 2001-03-06 Kenichi Handa <handa@etl.go.jp> | |
6314 | |
6315 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2>: Fix for the case | |
6316 that the source is unibyte. | |
6317 | |
6318 2001-03-05 Dave Love <fx@gnu.org> | |
6319 | |
6320 * xterm.c (XTmouse_position): Fix typo. | |
6321 | |
6322 2001-03-05 Gerd Moellmann <gerd@gnu.org> | |
6323 | |
6324 * minibuf.c (read_minibuf): Clean up the binding stack if | |
6325 called noninteractively. | |
6326 | |
6327 2001-03-05 Kenichi Handa <handa@etl.go.jp> | |
6328 | |
6329 * coding.c (syms_of_coding): Docstring modified. | |
6330 | |
6331 2001-03-05 Kenichi Handa <handa@etl.go.jp> | |
6332 | |
6333 * charset.c (char_to_string): If a single byte char has modifier | |
6334 bits that can't be reflected to the character code, ignore them | |
6335 instead of signaling an error. | |
6336 | |
6337 2001-03-04 Eli Zaretskii <eliz@is.elta.co.il> | |
6338 | |
6339 * s/msdos.h: Update copyright notice. | |
6340 | |
6341 * dosfns.h: Update copyright notice. | |
6342 | |
6343 * dosfns.c: Update copyright notice. | |
6344 | |
6345 * msdos.c: Update copyright notice. | |
6346 | |
6347 2001-03-02 Gerd Moellmann <gerd@gnu.org> | |
6348 | |
6349 * xterm.c (glyph_rect): New function. | |
6350 (XTmouse_position): Use it to raise the threshold for mouse | |
6351 movement event generation. | |
6352 | |
6353 2001-03-02 Eli Zaretskii <eliz@is.elta.co.il> | |
6354 | |
6355 * msdos.c (Fmsdos_remember_default_colors): If default-frame-alist | |
6356 specifies (reverse . t), reverse the initial screen colors. | |
6357 (IT_set_frame_parameters): If the property is foreground-color, | |
6358 but we are reversing the colors, set bg_set, not fg_set. | |
6359 Likewise for setting background-color and reversing: set fg_set. | |
6360 Set unspecified-fg and unspecified-bg correctly when (reverse . t) is | |
6361 in effect. | |
6362 | |
6363 * xfaces.c (Finternal_set_lisp_face_attribute) | |
6364 [!HAVE_WINDOW_SYSTEM]: Record the new attribute in the frame's | |
6365 parameters alist. | |
6366 | |
6367 2001-03-02 Gerd Moellmann <gerd@gnu.org> | |
6368 | |
6369 * fileio.c (Fexpand_file_name): Collapse sequences of slashes | |
6370 to a single slash in the middle of file names. | |
6371 | |
6372 * editfns.c (Fcurrent_time_zone) [HAVE_TM_ZONE || HAVE_TZNAME]: | |
6373 Accept only alphanumeric time zone names. | |
6374 | |
6375 * xterm.c (XTset_vertical_scroll_bar): Don't clear a zero height | |
6376 or width area. | |
6377 (XTset_vertical_scroll_bar, x_scroll_bar_create): Don't configure | |
6378 a widget to zero height. | |
6379 | |
6380 2001-03-01 Gerd Moellmann <gerd@gnu.org> | |
6381 | |
6382 * window.c (Fwindow_end): Call move_it_past_eol only if | |
6383 ending up on a partially visible line. | |
6384 | |
6385 2001-03-01 Dave Love <fx@gnu.org> | |
6386 | |
6387 * ccl.c (Fccl_execute): Doc fix. | |
6388 | |
6389 2001-03-01 Gerd Moellmann <gerd@gnu.org> | |
6390 | |
6391 * xfns.c (Fx_create_frame): Adjust the frame's height for presence | |
6392 of the tool bar before calling x_figure_window_size. | |
6393 | |
6394 * xmenu.c (free_frame_menubar): Set the frame's menubar_widget to | |
6395 NULL after destroying it, otherwise XTread_socket can access a | |
6396 destroyed widget when input is unblocked. | |
6397 | |
6398 * xfns.c (x_set_foreground_color): Set the background of the cursor GC. | |
6399 | |
6400 * xfns.c (x_set_font): Handle case of x_new_fontset returning the | |
6401 same name as before, although there was a change in fontsets. | |
6402 | |
6403 2001-02-28 Ken Raeburn <raeburn@gnu.org> | |
6404 | |
6405 * lisp.h (Fframe_parameter): Declare. | |
6406 | |
6407 * window.c (set_window_buffer): Field vscroll is an int, not a | |
6408 Lisp_Object. | |
6409 | |
6410 2001-02-28 Gerd Moellmann <gerd@gnu.org> | |
6411 | |
6412 * xterm.c (x_set_window_size): Don't use `None' with widgets; use | |
6413 NULL instead. | |
6414 | |
6415 * xfns.c (Fx_hide_tip): Don't use `None' with widgets; use | |
6416 NULL instead. | |
6417 | |
6418 * alloc.c (toplevel): Include process.h. | |
6419 (enum mem_type): Add MEM_TYPE_PROCESS, MEM_TYPE_HASH_TABLE, | |
6420 MEM_TYPE_FRAME, MEM_TYPE_WINDOW enumerators. | |
6421 (allocate_vectorlike): Make it a static function. Add parameter TYPE. | |
6422 (allocate_vector, allocate_hash_table, allocate_window) | |
6423 (allocate_frame, allocate_process, allocate_other_vector): | |
6424 New functions. | |
6425 (Fmake_vector): Call allocate_vector instead of allocate_vectorlike. | |
6426 (mark_maybe_pointer): New function. | |
6427 (mark_memory): Also mark Lisp data to which only pointers | |
6428 remain and not Lisp_Objects. | |
6429 (min_heap_address, max_heap_address): New variables. | |
6430 (mem_find): Return MEM_NIL if START is below min_heap_address or | |
6431 above max_heap_address. | |
6432 (mem_insert): Compute min_heap_address and max_heap_address. | |
6433 | |
6434 * process.c (make_process): Use allocate_process. | |
6435 | |
6436 * frame.c (make_frame): Use allocate_frame. | |
6437 | |
6438 * window.c (make_window, make_dummy_parent): Use allocate_window. | |
6439 (Fcurrent_window_configuration): Use allocate_other_vector. | |
6440 | |
6441 * lisp.h (allocate_vectorlike): Remove prototype. | |
6442 (allocate_vector, allocate_other_vector, allocate_frame) | |
6443 (allocate_window, allocate_process, allocate_hash_table): | |
6444 Add prototypes. | |
6445 | |
6446 * fns.c (Fdelete, larger_vector): Use allocate_vector. | |
6447 (make_hash_table, copy_hash_table): Use allocate_hash_table. | |
6448 | |
6449 2001-02-27 Kenichi Handa <handa@etl.go.jp> | |
6450 | |
6451 * coding.c (ccl_coding_driver): If ccl->eight_bit_control is zero, | |
6452 treat the produced bytes as a valid multibyte sequence. | |
6453 | |
6454 * ccl.c (CCL_WRITE_MULTIBYTE_CHAR): New macro. | |
6455 (ccl_driver) <CCL_WriteMultibyteChar2>: | |
6456 Use CCL_WRITE_MULTIBYTE_CHAR instead of CCL_WRITE_CHAR. | |
6457 <ccl_finish>: Set ccl->eight_bit_control properly. | |
6458 | |
6459 * ccl.h (struct ccl_program): New member eight_bit_control. | |
6460 | |
6461 2001-02-26 Stefan Monnier <monnier@cs.yale.edu> | |
6462 | |
6463 * keymap.c (Faccessible_keymaps): Pass `is_metized' to | |
6464 accessible_keymaps_char_table. | |
6465 (accessible_keymaps_char_table): Obey `is_metized'. | |
6466 (where_is_internal, Fwhere_is_internal): Don't confuse int and | |
6467 Lisp_Object. | |
6468 | |
6469 2001-02-26 Gerd Moellmann <gerd@gnu.org> | |
6470 | |
6471 * dispnew.c: Check HAVE_TERM_H before including term.h. | |
6472 | |
6473 2001-02-24 Andrew Innes <andrewi@gnu.org> | |
6474 | |
6475 * makefile.w32-in: Update copyright notice. | |
6476 | |
6477 2001-02-24 Stefan Monnier <monnier@cs.yale.edu> | |
6478 | |
6479 * keymap.c (where_is_internal): Accept non-ascii integer prefixes. | |
6480 | |
6481 2001-02-24 Kenichi Handa <handa@etl.go.jp> | |
6482 | |
6483 * Makefile.in (lisp): Add international/utf-8.elc. | |
6484 | |
6485 * fontset.c (Fnew_fontset): Fix handling of the case that an | |
6486 element of FONTLIST is a cons of family and registry. | |
6487 | |
6488 2001-02-23 Jason Rumney <jasonr@gnu.org> | |
6489 | |
6490 * w32fns.c (Fx_create_frame): Don't add FRAME_TOOL_BAR_LINES | |
6491 to height unconditionally. | |
6492 | |
6493 * w32term.c (x_set_glyph_string_background_width): Extend the | |
6494 background face to the end of the drawing area in the text area, only. | |
6495 (x_insert_glyphs): Call window_box_left to obtain the left | |
6496 x-coordinate of the area to shift. | |
6497 | |
6498 * w32menu.c (set_frame_menubar): Run activate-menu-bar-hook with | |
6499 safe_run_hooks. | |
6500 | |
6501 2001-02-22 Andrew Innes <andrewi@gnu.org> | |
6502 | |
6503 * makefile.nt ($(BLD)\dired.obj): Remove reference to VMS header files. | |
6504 ($(BLD)\dispnew.obj): | |
6505 ($(BLD)\editfns.obj): | |
6506 ($(BLD)\fileio.obj): | |
6507 ($(BLD)\filelock.obj): | |
6508 ($(BLD)\keyboard.obj): | |
6509 ($(BLD)\w32proc.obj): | |
6510 ($(BLD)\process.obj): | |
6511 ($(BLD)\sysdep.obj): Ditto. | |
6512 | |
6513 * makefile.w32-in ($(BLD)/dired.$(O)): Remove reference to VMS | |
6514 header files. | |
6515 ($(BLD)/dispnew.$(O)): | |
6516 ($(BLD)/editfns.$(O)): | |
6517 ($(BLD)/fileio.$(O)): | |
6518 ($(BLD)/filelock.$(O)): | |
6519 ($(BLD)/keyboard.$(O)): | |
6520 ($(BLD)/w32proc.$(O)): | |
6521 ($(BLD)/process.$(O)): | |
6522 ($(BLD)/sysdep.$(O)): Ditto. | |
6523 | |
6524 2001-02-22 Gerd Moellmann <gerd@gnu.org> | |
6525 | |
6526 * xdisp.c (forward_to_next_line_start): When taking the shortcut | |
6527 at the start of the function, check that the \n in it->c is | |
6528 from the iterator's current position. | |
6529 | |
6530 * xdisp.c (handle_single_display_prop): Add parameter | |
6531 DISPLAY_REPLACED_BEFORE_P. If it is non-zero ignore display | |
6532 properties which replace the display of text with something else. | |
6533 (handle_display_prop): Call handle_single_display_prop with | |
6534 additional argument saying if we already replaced text display | |
6535 with something else. Use AREF. | |
6536 (with_echo_area_buffer_unwind_data, display_menu_bar) | |
6537 (decode_mode_spec_coding): Use AREF and ASIZE. | |
6538 | |
6539 * vms-pp.c, vmsdir.h, vmsmap.c, vmsproc.h, vms-pp.trans, vmsfns.c, | |
6540 * vmspaths.h, vmstime.c, vms-pwd.h, vmsgmalloc.c, vmsproc.c, | |
6541 * vmstime.h: Files removed. | |
6542 | |
6543 * unexencap.c, unexfx2800.c: Files removed. | |
6544 | |
6545 * dispnew.c (direct_output_for_insert): Give up if we are showing | |
6546 a message or just cleared the message because we might need to | |
6547 resize the echo area window or display an empty echo area. | |
6548 | |
6549 2001-02-21 Gerd Moellmann <gerd@gnu.org> | |
6550 | |
6551 * xdisp.c (redisplay_internal): Do the | |
6552 mark_window_display_accurate after all windows have been | |
6553 redisplayed because this call resets flags in buffers which are | |
6554 needed for proper redisplay. | |
6555 | |
6556 * keyboard.c, minibuf.c, lread.c, fns.c, eval.c: | |
6557 Use display_hourglass_p, start_hourglass, cancel_hourglass instead of | |
6558 the old names. | |
6559 | |
6560 * w32term.h (struct x_output): Rename busy_cursor to hourglass_cursor, | |
6561 busy_window to hourglass_window, busy_p to hourglass_p. | |
6562 | |
6563 * msdos.h (struct x_output): Rename busy_window to | |
6564 hourglass_window, busy_p to hourglass_p. | |
6565 | |
6566 * xterm.h (struct x_output): Rename busy_cursor to hourglass_cursor, | |
6567 busy_window to hourglass_window, busy_p to hourglass_p. | |
6568 | |
6569 * xfns.c: Rename everything containing *busy_cursor* and similar | |
6570 to *hourglass*. | |
6571 (syms_of_w32fns): Rename x-busy-pointer-shape to | |
6572 x-hourglass-pointer-shape, display-busy-cursor to | |
6573 display-hourglass, busy-cursor-delay to hourglass-delay. | |
6574 | |
6575 * w32fns.c: Rename everything containing *busy_cursor* and similar | |
6576 to *hourglass*. | |
6577 (syms_of_w32fns): Rename x-busy-pointer-shape to | |
6578 x-hourglass-pointer-shape, display-busy-cursor to | |
6579 display-hourglass, busy-cursor-delay to hourglass-delay. | |
6580 | |
6581 * xterm.c (XTread_socket): Test x_output's hourglass_p instead | |
6582 of its busy_p flag. | |
6583 | |
6584 * dispextern.h (start_hourglass, cancel_hourglass) | |
6585 (display_hourglass_p): Renamed from *busy_cursor*. | |
6586 | |
6587 2001-02-20 Gerd Moellmann <gerd@gnu.org> | |
6588 | |
6589 * keyboard.c (read_char): When an event from unread-command-events | |
6590 is from the tool or menu bar, set *USE_MOUSE_MENU to 1. | |
6591 | |
6592 * window.c (Fwindow_end): Handle case that WINDOW's buffer is not | |
6593 equal to the current buffer. | |
6594 | |
6595 * xdisp.c (setup_echo_area_for_printing): Set truncate_lines to | |
6596 nil, otherwise we're left with truncate_lines t when a message | |
6597 is printed with message-truncate-lines bound to t. | |
6598 | |
6599 2001-02-19 Gerd Moellmann <gerd@gnu.org> | |
6600 | |
6601 * window.c (Fmove_to_window_line): Undo last change. | |
6602 (displayed_window_lines): Call line_bottom_y to determine | |
6603 the line's bottom position. | |
6604 | |
6605 * dispextern.h (line_bottom_y): Add prototype. | |
6606 | |
6607 * xdisp.c (line_bottom_y): New function extracted from pos_visible_p. | |
6608 (pos_visible_p): Use it. | |
6609 | |
6610 * keyboard.c (recursive_edit_1): Bind `inhibit-redisplay' and | |
6611 set redisplaying_p to 0 here instead of in Frecursive_edit. | |
6612 (Frecursive_edit): Don't bind `inhibit-redisplay' and don't | |
6613 set redisplaying_p. | |
6614 | |
6615 * xdisp.c (Qinhibit_menubar_update, inhibit_menubar_update): | |
6616 New variables. | |
6617 (syms_of_xdisp): Initialize new variables. | |
6618 (update_menu_bar): Do nothing if inhibit_menubar_update is set. | |
6619 Specbind `inhibit-menubar-update' when updating the menu bar. | |
6620 | |
6621 * xmenu.c (set_frame_menubar): Run activate-menu-bar-hook with | |
6622 safe_run_hooks. | |
6623 | |
6624 * xdisp.c (update_menu_bar): Run activate-menu-bar-hook with | |
6625 safe_run_hooks. | |
6626 | |
6627 * emacs.c (malloc_initialize_hook): Handle case thet `environ' | |
6628 is null. | |
6629 | |
6630 * ralloc.c (__morecore) [!SYSTEM_MALLOC]: Move declaration | |
6631 to the start of the file. | |
6632 | |
6633 2001-02-16 Gerd Moellmann <gerd@gnu.org> | |
6634 | |
6635 * window.c (set_window_buffer): Fix last change. | |
6636 | |
6637 * window.c (set_window_buffer): Set window's vscroll to 0. | |
6638 | |
6639 * window.c (coordinates_in_window): Increase width of area | |
6640 where the vertical line can be dragged. | |
6641 | |
6642 * xterm.c (x_set_glyph_string_background_width): Extend the | |
6643 background face to the end of the drawing area in the text | |
6644 area, only. | |
6645 | |
6646 * xdisp.c (handle_single_display_prop): Set iterator's position | |
6647 to where the `display' property starts, like for images. | |
6648 (dump_glyph): New function. | |
6649 (dump_glyph_row): Use it. Dump info about marginal areas. | |
6650 | |
6651 * dispnew.c (direct_output_for_insert): Recognize more cases where | |
6652 glyphs can be written instead of being inserted. | |
6653 | |
6654 * xterm.c (x_insert_glyphs): Call window_box_left to obtain | |
6655 the left x-coordinate of the area to shift. | |
6656 | |
6657 * dired.c (directory_files_internal): Set result list to nil | |
6658 before retrying. | |
6659 | |
6660 2001-02-15 Kenichi Handa <handa@etl.go.jp> | |
6661 | |
6662 * ccl.c (ccl_driver) [CCL_ReadMultibyteChar2]: If SRC points an | |
6663 invalid multibyte sequence, treat *SRC as a character of | |
6664 eight-bit-graphic. | |
6665 | |
6666 2001-02-15 Eli Zaretskii <eliz@is.elta.co.il> | |
6667 | |
6668 * textprop.c (Fset_text_properties): Doc fix. | |
6669 | |
6670 2001-02-15 Gerd Moellmann <gerd@gnu.org> | |
6671 | |
6672 * dispnew.c (update_text_area): Undo change of 2001-01-12. | |
6673 | |
6674 2001-02-14 Dave Love <fx@gnu.org> | |
6675 | |
6676 * coding.c: Doc and message fixes. | |
6677 | |
6678 2001-02-14 Andrew Innes <andrewi@gnu.org> | |
6679 | |
6680 * w32fns.c (w32_wnd_proc) <WM_GETMINMAXINFO>: Allow resizing the | |
6681 Emacs frame above the screen size. | |
6682 | |
6683 2001-02-14 Gerd Moellmann <gerd@gnu.org> | |
6684 | |
6685 * xdisp.c (reseat_1): Set iterator's end_charpos to ZV. | |
6686 | |
6687 2001-02-13 Gerd Moellmann <gerd@gnu.org> | |
6688 | |
6689 * insdel.c (del_range_1, del_range_byte, del_range_both): Handle | |
6690 case that TO ends up beyond ZV after running before-change-functions. | |
6691 | |
6692 * window.c (window_loop) <GET_BUFFER_WINDOW>: Prefer to return | |
6693 the selected window if it is showing the buffer in question. | |
6694 | |
6695 * dired.c (directory_files_internal): Initialize errno. | |
6696 (toplevel): Include errno.h. | |
6697 | |
6698 2001-02-13 Kenichi Handa <handa@etl.go.jp> | |
6699 | |
6700 * xfaces.c (best_matching_font): New parameter width_ratio. | |
6701 Multiply avgwidth by width_ratio. | |
6702 (choose_face_font): Call best_matching_font with width_ratio | |
6703 calculated from the column width of C. | |
6704 | |
6705 2001-02-12 Andrew Innes <andrewi@gnu.org> | |
6706 | |
6707 The following changes are to draw box lines inside characters area | |
6708 if line-width is negative. | |
6709 | |
6710 * w32term.c (x_produce_image_glyph): Pay attention to the case that | |
6711 face->box_line_width is negative. | |
6712 (x_produce_stretch_glyph): Likewise. | |
6713 (x_produce_glyphs): Likewise. | |
6714 (x_estimate_mode_line_height): Likewise. | |
6715 (x_draw_glyph_string_background): Likewise. | |
6716 (x_draw_glyph_string_foreground): Likewise. | |
6717 (x_draw_composite_glyph_string_foreground): Likewise. | |
6718 (x_draw_glyph_string_box): Likewise. | |
6719 (x_draw_image_foreground): Likewise. | |
6720 (x_draw_image_relief): Likewise. | |
6721 (x_draw_image_foreground_1): Likewise. | |
6722 (x_draw_image_glyph_string): Likewise. | |
6723 | |
6724 2001-02-09 Kenichi Handa <handa@etl.go.jp> | |
6725 | |
6726 The following changes are to draw box lines inside characters area | |
6727 if line-width is negative. | |
6728 | |
6729 * xterm.c (x_produce_image_glyph): Pay attention to the case that | |
6730 face->box_line_width is negative. | |
6731 (x_produce_stretch_glyph): Likewise. | |
6732 (x_produce_glyphs): Likewise. | |
6733 (x_estimate_mode_line_height): Likewise. | |
6734 (x_draw_glyph_string_background): Likewise. | |
6735 (x_draw_glyph_string_foreground): Likewise. | |
6736 (x_draw_composite_glyph_string_foreground): Likewise. | |
6737 (x_draw_glyph_string_box): Likewise. | |
6738 (x_draw_image_foreground): Likewise. | |
6739 (x_draw_image_relief): Likewise. | |
6740 (x_draw_image_foreground_1): Likewise. | |
6741 (x_draw_image_glyph_string): Likewise. | |
6742 | |
6743 * xfaces.c (Finternal_set_lisp_face_attribute): The value of :box | |
6744 and :line-width can be negative. | |
6745 (realize_x_face): The value of attrs[LFACE_BOX_INDEX] can be negative. | |
6746 | |
6747 2001-02-09 Jason Rumney <jasonr@gnu.org> | |
6748 | |
6749 * w32term.c (w32_encode_char): Treat eight bit graphic and control | |
6750 characters the same as ASCII and latin-1. | |
6751 (x_display_and_set_cursor): Check for the focus frame's selected | |
6752 window instead of selected_window. | |
6753 (x_after_update_window_line): Don't clear if frame's internal | |
6754 border width is zero. | |
6755 (x_new_font): Don't change a tooltip's size. | |
6756 (w32_initialize): Set char_ins_del_ok to 1. | |
6757 | |
6758 * w32fns.c (Fx_show_tip): Fix calls to make_number. | |
6759 (x_set_font): If font hasn't changed, avoid recomputing | |
6760 faces and other things. | |
6761 (x_set_tool_bar_lines): Do nothing if frame is minibuffer-only, | |
6762 (Fx_create_frame): Add the tool bar height to the frame height. | |
6763 (x_create_tip_frame): Prevent changing the tooltip's | |
6764 background color by specifying a color for the default font | |
6765 in .Xdefaults. | |
6766 (Qcancel_timer): New variable. | |
6767 (syms_of_w32fns): Initialize and staticpro it. | |
6768 (Fx_hide_tip, Fx_show_tip): Use it. | |
6769 (Fx_show_tip): Make sure to set tip_timer to nil when canceling | |
6770 the timer. | |
6771 (toplevel): Lisp code for generating parts of syms_of_w32fns removed. | |
6772 | |
6773 * w32.c (init_environment): Duplicate local string before putenv. | |
6774 | |
6775 2001-02-09 ShengHuo ZHU <zsh@cs.rochester.edu> | |
6776 | |
6777 * charset.c (Fstring): A typo. | |
6778 | |
6779 2001-02-09 Kenichi Handa <handa@etl.go.jp> | |
6780 | |
6781 * charset.c (Fstring): If all arguments are less than 256, return | |
6782 a unibyte string. | |
6783 | |
6784 * editfns.c (Fchar_to_string): If CHARACTER is less than 256, | |
6785 return a unibyte string. | |
6786 | |
6787 * coding.c (code_convert_region): After detecting a coding, if | |
6788 nothing found, set coding->composing to COMPOSITION_NO. | |
6789 (decode_coding_string): Likewise. | |
6790 | |
6791 2001-02-08 Stefan Monnier <monnier@cs.yale.edu> | |
6792 | |
6793 * w32term.c (w32_set_scroll_bar_thumb): Use `double' for `range' | |
6794 to avoid overflow. | |
6795 | |
6796 2001-02-07 Kenichi Handa <handa@etl.go.jp> | |
6797 | |
6798 * charset.c (parse_str_to_multibyte): New function. | |
6799 | |
6800 * charset.h (parse_str_to_multibyte): Extern it. | |
6801 | |
6802 * print.c (print_string): If we are going to print a unibyte | |
6803 string into a multibyte buffer, convert the string to multibyte by | |
6804 str_to_multibyte. | |
6805 | |
6806 2001-02-06 Andrew Innes <andrewi@gnu.org> | |
6807 | |
6808 * w32xfns.c (select_palette): Do nothing if palette hasn't yet | |
6809 been created. It seems we can get sent window messages such as | |
6810 WM_ERASEBKGND before we properly update a frame. | |
6811 | |
6812 2001-02-06 Gerd Moellmann <gerd@gnu.org> | |
6813 | |
6814 * dispnew.c (update_frame_line): Rename parameter FRAME to F. | |
6815 Avoid some unnecessary cursor positioning. | |
6816 | |
6817 2001-02-05 Gerd Moellmann <gerd@gnu.org> | |
6818 | |
6819 * xfaces.c (split_font_name): Compute numeric value of XLFD_AVGWIDTH. | |
6820 (LFACE_AVGWIDTH): New macro. | |
6821 (LFACEP): Use AREF. | |
6822 (check_lface_attrs): Check LFACE_AVGWIDTH. | |
6823 (lface_fully_specified_p): Don't check LFACE_AVGWIDTH. | |
6824 (set_lface_from_font_name): Set LFACE_AVGWIDTH. | |
6825 (merge_face_vectors): Check LFACE_AVGWIDTH. | |
6826 (Finternal_make_lisp_face): Use AREF. | |
6827 (xm_set_menu_resources_from_menu_face) | |
6828 (xl_set_menu_resources_from_menu_face): Check LFACE_AVGWIDTH. | |
6829 (Finternal_lisp_face_empty_p): Use AREF. | |
6830 (lface_same_font_attributes_p): Compare LFACE_AVGWIDTH. | |
6831 (better_font_p, exact_face_match_p): Add parameter AVGWIDTH. | |
6832 Compare average widths.. | |
6833 (best_matching_font): Arrange for comparing average widths. | |
6834 | |
6835 * dispextern.h (enum lface_attribute_index): | |
6836 Add LFACE_AVGWIDTH_INDEX (invisible from Lisp). | |
6837 | |
6838 2001-02-05 Dave Love <fx@gnu.org> | |
6839 | |
6840 * puresize.h: Revert last change following loadup.el change. | |
6841 | |
6842 2001-02-05 Andrew Innes <andrewi@gnu.org> | |
6843 | |
6844 * makefile.w32-in ($(EMACS)): Use $(THISDIR) instead of . in | |
6845 invocation of temacs, to work with Windows 2000. | |
6846 (bootstrap-emacs): Ditto. | |
6847 | |
6848 2001-02-05 Gerd Moellmann <gerd@gnu.org> | |
6849 | |
6850 * xterm.c (x_display_and_set_cursor): Check for the focus | |
6851 frame's selected window instead of selected_window. | |
6852 | |
6853 * xdisp.c (try_scrolling): If point is in the line below the | |
6854 window, make sure to move the iterator at least a canonical | |
6855 char height down. | |
6856 | |
6857 * window.c (Fmove_to_window_line): Don't add 1 if window is vscrolled. | |
6858 | |
6859 2001-02-05 Kenichi Handa <handa@etl.go.jp> | |
6860 | |
6861 * ccl.c (CCL_WRITE_CHAR): Check if CH is valid or not. | |
6862 If invalid, execute CCL_INVALID_CMD. | |
6863 (ccl_driver): If the CCL program is terminated because of | |
6864 CCL_STAT_INVALID_CMD, copy the remaining source data to the | |
6865 destination instead of throwing them away. | |
6866 | |
6867 2001-02-02 Gerd Moellmann <gerd@gnu.org> | |
6868 | |
6869 * xfns.c (x_set_font): If font hasn't changed, avoid recomputing | |
6870 faces and other things. | |
6871 | |
6872 * xdisp.c (get_next_display_element): Fix case of empty | |
6873 display table entry. | |
6874 | |
6875 2001-02-02 Eli Zaretskii <eliz@is.elta.co.il> | |
6876 | |
6877 * editfns.c (Fconstrain_to_field): Doc fix. | |
6878 | |
6879 * xfaces.c (Fclear_face_cache): Rename the `thorougly' argument | |
6880 into `thoroughly', to make it consistent with the doc string. | |
6881 | |
6882 * window.c (Fenlarge_window, Fshrink_window): Doc fix. | |
6883 | |
6884 2001-02-01 Gerd Moellmann <gerd@gnu.org> | |
6885 | |
6886 * search.c (search_buffer): Call set_search_regs with a byte | |
6887 position, not a character position. | |
6888 | |
6889 * xfns.c (x_set_tool_bar_lines): Do nothing if frame is | |
6890 minibuffer-only, | |
6891 | |
6892 2001-02-01 Eli Zaretskii <eliz@is.elta.co.il> | |
6893 | |
6894 * frame.c (Fmodify_frame_parameters): Doc fix. | |
6895 | |
6896 2001-01-31 Gerd Moellmann <gerd@gnu.org> | |
6897 | |
6898 * frame.h (EMACS_FRAME_H_INCLUDED): Use an include blocker | |
6899 identifier which is not reserved by Standard C. | |
6900 | |
6901 * frame.h (FRAME_RIGHT_SCROLL_BAR_WIDTH): New define. | |
6902 | |
6903 * window.c (enum window_part): New enumeration. | |
6904 (Qleft_fringe, Qright_fringe): Replace Qleft_bitmap_area and | |
6905 Qright_bitmap_area. | |
6906 (coordinates_in_window): Return an enumerator from enum | |
6907 window_part. Fix handling of right scroll bar. | |
6908 (Fcoordinates_in_window_p): Doc fix. Return `left-fringe' and | |
6909 `right-fringe' instead of `left-bitmap-area' and | |
6910 `right-bitmap-area'. Use enumerators from enum window_part | |
6911 instead of hard-coded integers. | |
6912 (check_window_containing, window_from_coordinates): | |
6913 Use enumerators from enum window_part instead of hard-coded integers. | |
6914 (syms_of_window): Replace Qleft_bitmap_area and | |
6915 Qright_bitmap_area.with Qleft_fringe and Qright_fringe. | |
6916 | |
6917 2001-01-31 Eli Zaretskii <eliz@is.elta.co.il> | |
6918 | |
6919 * editfns.c (Fformat_time_string): Doc fix. | |
6920 | |
6921 2001-01-31 Stefan Monnier <monnier@cs.yale.edu> | |
6922 | |
6923 * keymap.c (Fwhere_is_internal): Use the first valid binding | |
6924 if no ascii binding is found (when firstonly is t). | |
6925 | |
6926 2001-01-31 Gerd Moellmann <gerd@gnu.org> | |
6927 | |
6928 * window.c (Fscroll_right, Fscroll_left): Use interactive_p | |
6929 instead of Finteractive_p. | |
6930 | |
6931 * lisp.h (interactive_p): Add prototype. | |
6932 | |
6933 * eval.c (interactive_p): New function. | |
6934 (Finteractive_p): Use it. | |
6935 | |
6936 * alloc.c (Fmake_list): Add a QUIT in the loop; unroll the loop. | |
6937 | |
6938 2001-01-31 Dave Love <fx@gnu.org> | |
6939 | |
6940 * .gdbinit (hook-run): Define to run xreload. | |
6941 | |
6942 * textprop.c (Fset_text_properties): Fix newline in doc string. | |
6943 | |
6944 2001-01-30 Gerd Moellmann <gerd@gnu.org> | |
6945 | |
6946 * xdisp.c (build_desired_tool_bar_string, syms_of_xdisp): | |
6947 Use DEFAULT_TOOL_BAR_BUTTON_MARGIN and DEFAULT_TOOL_BAR_BUTTON_RELIEF. | |
6948 | |
6949 * dispextern.h (Vtool_bar_button_margin:): Declare extern. | |
6950 (DEFAULT_TOOL_BAR_BUTTON_MARGIN, DEFAULT_TOOL_BAR_BUTTON_RELIEF) | |
6951 (DEFAULT_TOOL_BAR_IMAGE_HEIGHT): New defines. | |
6952 | |
6953 * xfns.c (Fx_create_frame): Add the tool bar height to the frame | |
6954 height. | |
6955 | |
6956 2001-01-30 Dave Love <fx@gnu.org> | |
6957 | |
6958 * bytecode.c (Fbyte_code) <Bgeq>: Add BEFORE_POTENTIAL_GC and | |
6959 AFTER_POTENTIAL_GC. | |
6960 | |
6961 2001-01-29 Gerd Moellmann <gerd@gnu.org> | |
6962 | |
6963 * bytecode.c (Fbyte_code) <Bcurrent_column>: | |
6964 Add BEFORE_POTENTIAL_GC and AFTER_POTENTIAL_GC. | |
6965 | |
6966 2001-01-29 Eli Zaretskii <eliz@is.elta.co.il> | |
6967 | |
6968 * textprop.c (Fset_text_properties): Doc fix. | |
6969 | |
6970 2001-01-29 Gerd Moellmann <gerd@gnu.org> | |
6971 | |
6972 * xdisp.c (forward_to_next_line_start): Remove xassert. | |
6973 | |
6974 2001-01-29 Jason Rumney <jasonr@gnu.org> | |
6975 | |
6976 * w32term.c (x_draw_row_bitmaps): Delay obtaining HDC to avoid | |
6977 returning without releasing it. | |
6978 | |
6979 2001-01-29 Kenichi Handa <handa@etl.go.jp> | |
6980 | |
6981 * w32fns.c (w32_font_match): Allocate three more bytes to regex | |
6982 for '^', '$', and '\0'. | |
6983 | |
6984 2001-01-28 Andrew Choi <akochoi@i-cable.com> | |
6985 | |
6986 * fontset.c (fontset_pattern_regexp): Allocate three more bytes to | |
6987 regex for '^', '$', and '\0'. | |
6988 | |
6989 * alloc.c (allocate_string) [macintosh]: Call check_string_bytes | |
6990 only if current_sblock has been initialized. | |
6991 | |
6992 * frame.c (Fdelete_frame) [macintosh]: Allow deletion of initial | |
6993 terminal frame even if it is the only visible frame. | |
6994 | |
6995 2001-01-28 Kenichi Handa <handa@etl.go.jp> | |
6996 | |
6997 * fontset.c (font_family_registry): Even if FONTNAME conform to | |
6998 XLFD, if it specifies other fields than family and registry, | |
6999 return FONTANME. New argument FORCE if nonzero cancel that feature. | |
7000 (fontset_font_pattern): Call font_family_registry with FORCE 1 for | |
7001 a signle byte character. Don't set FAMILY part to nil here. | |
7002 It is handled by the caller choose_face_font. | |
7003 (Fnew_fontset): Call font_family_registry with FORCE 0. | |
7004 (Fset_fontset_font): Likewise. | |
7005 | |
7006 2001-01-27 Gerd Moellmann <gerd@gnu.org> | |
7007 | |
7008 * xdisp.c (display_line): Don't treat a newline as fitting | |
7009 on the line. | |
7010 | |
7011 2001-01-26 Gerd Moellmann <gerd@gnu.org> | |
7012 | |
7013 * window.c (size_window): Set the window's orig_top to nil when | |
7014 changing heights, so that a future shrink_mini_window won't | |
7015 restore a bogus height. | |
7016 | |
7017 * frame.c (do_switch_frame): If selected frame has a mini-window, | |
7018 resize that to exact size. | |
7019 | |
7020 * dispnew.c (adjust_glyph_matrix): Always clear desired matrices. | |
7021 | |
7022 * xdisp.c (display_line): Simplify check for glyphs fitting | |
7023 entirely in the line. | |
7024 | |
7025 * xfns.c (xic_style): New variable. | |
7026 (create_frame_xic): Move static variable to global scope for | |
7027 the case that `static' gets defined away. | |
7028 | |
7029 2001-01-26 Kenichi Handa <handa@etl.go.jp> | |
7030 | |
7031 * coding.c (decode_coding): Set a flag for inhibiting | |
7032 inconsistent eol. | |
7033 (code_convert_region): Always set saved_coding_symbol. | |
7034 (decode_coding_string): Likewise. Update coding->symbol when we | |
7035 encounter a inconsistent eol by the same way as code_convert_region. | |
7036 | |
7037 2001-01-25 Gerd Moellmann <gerd@gnu.org> | |
7038 | |
7039 * xfns.c (x_set_tool_bar_lines): Use x_clear_area instead of | |
7040 XClearArea. | |
7041 | |
7042 * xterm.c (x_after_update_window_line): Don't clear if frame's | |
7043 internal border width is zero. | |
7044 (x_clear_area): New function. | |
7045 (x_after_update_window_line, x_clear_end_of_line) | |
7046 (x_scroll_bar_create, x_scroll_bar_set_handle) | |
7047 (XTset_vertical_scroll_bar, x_erase_phys_cursor): Use x_clear_area | |
7048 instead of XClearArea. | |
7049 | |
7050 * xterm.h (x_clear_area): Add prototype. | |
7051 | |
7052 * xfns.c (Fx_file_dialog): Remove a workaround for Lesstif | |
7053 which doesn't seem necessary anymore with Lesstif 0.92. | |
7054 | |
7055 2001-01-25 Dave Love <fx@gnu.org> | |
7056 | |
7057 * puresize.h (BASE_PURESIZE): Up to 720000. | |
7058 | |
7059 * keymap.c (Fwhere_is_internal): Declare gcpro3, gcpro4. | |
7060 | |
7061 2001-01-25 Gerd Moellmann <gerd@gnu.org> | |
7062 | |
7063 * xdisp.c (echo_area_display): Don't call redisplay_internal | |
7064 when Emacs is shutting down. We can't run hooks etc. that | |
7065 would be necessary to do a redisplay. | |
7066 | |
7067 * lread.c (read_integer): Use type EMACS_INT instead of int. | |
7068 | |
7069 2001-01-25 Eli Zaretskii <eliz@is.elta.co.il> | |
7070 | |
7071 * ccl.c (ccl_driver): Fix last change. | |
7072 | |
7073 2001-01-25 Kenichi Handa <handa@etl.go.jp> | |
7074 | |
7075 * ccl.h (sturct ccl_program): New member suppress_error. | |
7076 | |
7077 * ccl.c (ccl_driver): If ccl->suppress_error is nonzero, don't | |
7078 insert error message to the output. | |
7079 (setup_ccl_program): Initialize ccl->suppress_error to 0. | |
7080 | |
7081 * coding.h (struct coding_system): New member suppress_error. | |
7082 | |
7083 * coding.c (ccl_coding_driver): Setup ccl->suppress_error. | |
7084 (Fset_terminal_coding_system_internal): Set the member | |
7085 suppress_error to 1. | |
7086 (Fset_safe_terminal_coding_system_internal): Likewise. | |
7087 | |
7088 2001-01-24 Stefan Monnier <monnier@cs.yale.edu> | |
7089 | |
7090 * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not' | |
7091 as if it was a `charset'. | |
7092 | |
7093 2001-01-24 Gerd Moellmann <gerd@gnu.org> | |
7094 | |
7095 * keymap.c (Fwhere_is_internal): Don't nreverse the cached | |
7096 value in where_is_cache; the next lookup in the cache returns | |
7097 something bogus if we do. | |
7098 | |
7099 2001-01-24 Eli Zaretskii <eliz@is.elta.co.il> | |
7100 | |
7101 * xdisp.c (syms_of_xdisp) <Stool_bar_lines_needed>: Don't defsubr | |
7102 if HAVE_WINDOW_SYSTEM isn't defined. | |
7103 | |
7104 2001-01-24 Gerd Moellmann <gerd@gnu.org> | |
7105 | |
7106 * fns.c (sweep_weak_table): Fix code taking items out of | |
7107 the hash collision chain. Some cleanup. | |
7108 | |
7109 * xterm.c (x_new_font): Don't change a tooltip's size. | |
7110 | |
7111 * xfns.c (x_create_tip_frame): Prevent changing the tooltip's | |
7112 background color by specifying a color for the default font | |
7113 in .Xdefaults. | |
7114 | |
7115 2001-01-24 Kenichi Handa <handa@etl.go.jp> | |
7116 | |
7117 * ccl.c (CCL_READ_CHAR): Change the argument name from r to REG as | |
7118 a workaround for SunOS 4's cc. | |
7119 (CCL_CALL_FOR_MAP_INSTRUCTION): Use "if (1)..." not "do {...". | |
7120 (CCL_SUCCESS, CCL_SUSPEND, CCL_INVALID_CMD): Likewise. | |
7121 (ccl_driver) <CCL_ReadMultibyteChar2>: Remove unnecessay "do" | |
7122 statement. | |
7123 | |
7124 2001-01-23 Gerd Moellmann <gerd@gnu.org> | |
7125 | |
7126 * xterm.c (x_set_window_size_1): New function extracted from | |
7127 x_set_window_size. | |
7128 (x_set_window_size): Use it. | |
7129 (x_set_window_size) [USE_X_TOOLKIT]: Handle case that window | |
7130 doesn't have a widget, like tooltips. | |
7131 | |
7132 2001-01-23 Eli Zaretskii <eliz@is.elta.co.il> | |
7133 | |
7134 * window.c (syms_of_window) <scroll-preserve-screen-position>: Doc fix. | |
7135 | |
7136 2001-01-23 Kenichi Handa <handa@etl.go.jp> | |
7137 | |
7138 * fns.c (Fset_char_table_default): Fix to make sub char-table | |
7139 correctly. | |
7140 | |
7141 2001-01-22 Gerd Moellmann <gerd@gnu.org> | |
7142 | |
7143 * xdisp.c (build_desired_tool_bar_string): Make sure we have | |
7144 a desired tool bar string, even if there are no tool bar items. | |
7145 | |
7146 * xdisp.c (Ftool_bar_lines_needed): New function. | |
7147 (syms_of_xdisp): Defsubr it. | |
7148 | |
7149 * editfns.c (Fformat): Don't extend text properties from arguments | |
7150 to padding chars in the result. | |
7151 | |
7152 2001-01-20 Eli Zaretskii <eliz@is.elta.co.il> | |
7153 | |
7154 * s/msdos.h (GC_MARK_STACK): Define to GC_MAKE_GCPROS_NOOPS. | |
7155 | |
7156 2001-01-20 Andrew Innes <andrewi@gnu.org> | |
7157 | |
7158 * w32term.c (w32_ring_bell): Only support visible bell on w32 frames. | |
7159 (w32_initialize): Don't set term hooks that aren't actually needed | |
7160 in windowed mode. | |
7161 | |
7162 * xfaces.c (realize_default_face): | |
7163 (realize_face): | |
7164 (realize_tty_face): Remove references to FRAME_W32_CONSOLE_P. | |
7165 | |
7166 * xdisp.c (handle_single_display_prop): Remove references to | |
7167 FRAME_W32_CONSOLE_P. | |
7168 | |
7169 * dispnew.c (Fredraw_frame): Remove reference to FRAME_W32_CONSOLE_P. | |
7170 | |
7171 * frame.h (output_method): Remove output_w32_console method. | |
7172 (FRAME_W32_CONSOLE_P): Remove macro. | |
7173 | |
7174 * frame.c (Qw32_console): Remove variable. | |
7175 (Fframep): Remove references to it. | |
7176 (syms_of_frame): Ditto. | |
7177 (Fframe_parameters): Remove references to FRAME_W32_CONSOLE_P. | |
7178 | |
7179 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Reinstate original | |
7180 redefinition. | |
7181 | |
7182 2001-01-20 Kenichi Handa <handa@etl.go.jp> | |
7183 | |
7184 * editfns.c (Fformat): Use lisp_string_width instead of strwidth. | |
7185 | |
7186 2001-01-19 Andrew Innes <andrewi@gnu.org> | |
7187 | |
7188 * w32.c (init_environment): Add a version-independent site-lisp | |
7189 directory to EMACSLOADPATH, after the version dependent one. | |
7190 | |
7191 2001-01-19 Gerd Moellmann <gerd@gnu.org> | |
7192 | |
7193 * editfns.c (Fbuffer_substring): Doc fix. | |
7194 | |
7195 * xdisp.c (message_dolog, message2, message2_nolog): | |
7196 Rename parameter LEN to NBYTES. | |
7197 | |
7198 2001-01-19 Kenichi Handa <handa@etl.go.jp> | |
7199 | |
7200 * charset.c (strwidth): Use c_string_width. | |
7201 (c_string_width): New function. | |
7202 (lisp_string_width): New arguments PRECISION, NCHARS, NBYTES. | |
7203 Caller changed. | |
7204 | |
7205 * charset.h (c_string_width, lisp_string_width): Extern them. | |
7206 | |
7207 * doprnt.c (doprnt1): Get byte length of Lisp string correctly. | |
7208 | |
7209 * indent.c (check_composition): Check validity of composition. | |
7210 | |
7211 * xdisp.c (store_frame_title): Pay attention to width of non-ASCII | |
7212 characters by calling c_string_width. | |
7213 (x_consider_frame_title): Get byte length of frame tile string | |
7214 correctly. | |
7215 (display_mode_element): Pay attention to width of non-ASCII | |
7216 characters by calling strwidth. | |
7217 | |
7218 2001-01-18 Gerd Moellmann <gerd@gnu.org> | |
7219 | |
7220 * xfns.c (Qcancel_timer): New variable. | |
7221 (syms_of_xfns): Initialize and staticpro it. | |
7222 (Fx_hide_tip, Fx_show_tip): Use it. | |
7223 (Fx_show_tip): Make sure to set tip_timer to nil when canceling | |
7224 the timer. | |
7225 (toplevel): Lisp code for generating parts of syms_of_xfns removed. | |
7226 | |
7227 * window.c (Fwindow_live_p): Use WINDOW_LIVE_P. | |
7228 | |
7229 * window.h (WINDOW_LIVE_P): New macro. | |
7230 | |
7231 * window.c (window_size_fixed): New variable. | |
7232 (syms_of_window): Add a DEFVAR_BOOL for window-size-fixed, for | |
7233 the doc string. | |
7234 | |
7235 * eval.c (specbind): If binding a per-buffer variable which | |
7236 doesn't have a buffer-local value in the current buffer, change | |
7237 the global value by changing the value of the symbol bound in all | |
7238 buffers not having their own value, to make it consistent with | |
7239 what happens with other buffer-local variables. | |
7240 | |
7241 * xterm.c (x_initialize): Set char_ins_del_ok to 1. | |
7242 | |
7243 * xdisp.c (forward_to_next_line_start): Stop at end of buffer | |
7244 when searching for a newline. | |
7245 | |
7246 2001-01-18 Kenichi Handa <handa@etl.go.jp> | |
7247 | |
7248 * xdisp.c (display_string): Fix previous change. | |
7249 | |
7250 2001-01-18 Jason Rumney <jasonr@gnu.org> | |
7251 | |
7252 * w32term.c (x_produce_stretch_glyph): Only use Qspace when | |
7253 GLYPH_DEBUG is defined. | |
7254 (x_produce_glyphs): Don't xassert `it->descent > 0'; this isn't | |
7255 true for images with `:ascent 100'. | |
7256 (x_set_mouse_face_gc): If the last used mouse face has gone in the | |
7257 meantime, use face MOUSE_FACE_ID. | |
7258 If first glyph isn't a character glyph, use the ASCII NUL | |
7259 character to determine the face. | |
7260 (expose_area): Do not treat left margin specially. | |
7261 (note_mode_line_highlight): If no local_map, check global keymap. | |
7262 (note_mouse_highlight): Initialize overlay. | |
7263 (clear_mouse_face): Don't return if tip_frame is non-nil. | |
7264 (show_scroll_bars): Remove unused function. | |
7265 (w32_read_socket) [WM_KILLFOCUS]: Set help_echo to Qnil. | |
7266 (x_draw_bar_cursor): Remove extra test for out of bounds cursor. | |
7267 Clip to row. | |
7268 (x_erase_phys_cursor): Don't apply XWINDOW to variable that may be nil. | |
7269 (x_free_frame_resources): Unload relief colors. | |
7270 | |
7271 2001-01-17 Gerd Moellmann <gerd@gnu.org> | |
7272 | |
7273 * xdisp.c (forward_to_next_line_start): Avoid calling | |
7274 get_next_display_element when the newline is already found. | |
7275 This may change the iterator's position, when its current position is | |
7276 equal to the iterator's stop_charpos. | |
7277 | |
7278 * dispnew.c (direct_output_for_insert): If char_ins_del_ok is | |
7279 zero, use this method only at the end of a line. | |
7280 | |
7281 * xfaces.c (x_face_list_fonts): Don't BLOCK_INPUT around the | |
7282 call to x_list_fonts. Call x_list_fonts with SIZE -1 only | |
7283 if SCALABLE_FONTS_P is set. | |
7284 | |
7285 * xfaces.c (x_face_list_fonts): Call x_list_fonts with SIZE -1, | |
7286 so that scalable fonts are included. | |
7287 | |
7288 * xterm.c (x_list_fonts): Allow scalable fonts if SIZE is < 0, | |
7289 In the cache, use a key containing the information if scalable | |
7290 fonts are included. | |
7291 (x_load_font): Adapt to change of keys in the font cache. | |
7292 | |
7293 2001-01-17 Kim F. Storm <storm@filanet.dk> | |
7294 | |
7295 * xfaces.c (x_face_list_fonts): Use x_list_fonts instead of | |
7296 XListFonts to take advantage of font caching. | |
7297 | |
7298 * xterm.c (x_list_fonts): Ensure caching font information when | |
7299 called for a null frame, which is the case frequently when Emacs | |
7300 starts. | |
7301 | |
7302 2001-01-17 Gerd Moellmann <gerd@gnu.org> | |
7303 | |
7304 * xfns.c (QCconversion): Replaces QCalgorithm. | |
7305 | |
7306 * w32fns.c (QCconversion): Replaces QCalgorithm. Update copyright. | |
7307 | |
7308 * xdisp.c (build_desired_tool_bar_string): Use :conversion instead | |
7309 of :algorithm. | |
7310 | |
7311 * xdisp.c (redisplay_tool_bar): Change tool bar's height when | |
7312 not everything could be displayed. | |
7313 | |
7314 * line.h, x-list-font.c: Files removed because unused. | |
7315 | |
7316 2001-01-17 Andrew Innes <andrewi@gnu.org> | |
7317 | |
7318 * dired.c (directory_files_internal): Convert result from readdir | |
7319 to a unibyte string initially, to avoid possible misinterpretation | |
7320 of some bytes as the internal form of Emacs characters. | |
7321 | |
7322 2001-01-17 Kenichi Handa <handa@etl.go.jp> | |
7323 | |
7324 * fns.c (concat): Be sure to avoid putting the same `composition' | |
7325 property on the adjacent regions. | |
7326 | |
7327 2001-01-16 Gerd Moellmann <gerd@gnu.org> | |
7328 | |
7329 * window.c (Fset_window_hscroll): Don't set window's min_hscroll here. | |
7330 (Fscroll_right, Fscroll_left): Set it here instead, if called | |
7331 interactively. | |
7332 | |
7333 * buffer.c (Fset_buffer_modified_p): Set buffer's | |
7334 prevent_redisplay_optimizations_p flag. | |
7335 | |
7336 * dispnew.c, callproc.c, fns.c, keyboard.c, process.c, sunfns.c, | |
7337 * sysdep.c, vmsproc.c, xselect.c: Call redisplay_preserve_echo_area | |
7338 with additional arg. | |
7339 | |
7340 * dispextern.h, lisp.h (redisplay_preserve_echo_area): | |
7341 Change prototype. | |
7342 | |
7343 * xdisp.c (redisplay_preserve_echo_area): Add parameter | |
7344 FROM_WHERE, for debugging. | |
7345 | |
7346 2001-01-16 Kenichi Handa <handa@etl.go.jp> | |
7347 | |
7348 * ccl.c (Fregister_ccl_program): Handle the return value of | |
7349 resolve_symbol_ccl_program correctly. | |
7350 (CCL_Extension): Fix typo (originally CCL_Extention). Caller changed. | |
7351 | |
7352 2001-01-15 Gerd Moellmann <gerd@gnu.org> | |
7353 | |
7354 * xterm.c (x_set_mouse_face_gc): If the last used mouse face | |
7355 has gone in the meantime, use face MOUSE_FACE_ID. | |
7356 | |
7357 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: | |
7358 If x_display_info_for_display returns null, don't try to close | |
7359 the display; we didn't open it. | |
7360 | |
7361 * dispnew.c (save_or_restore_current_matrices): Function removed. | |
7362 (save_current_matrix, restore_current_matrix): New functions. | |
7363 (adjust_frame_glyphs_for_frame_redisplay): Use them to save and | |
7364 restore the frame's current matrix. Due to the glyph pointer | |
7365 setup done in adjust_glyph_matrix, there is no easy way to make | |
7366 saving the current matrix in the desired matrix generally correct, | |
7367 so don't try it. | |
7368 | |
7369 2001-01-15 Kenichi Handa <handa@etl.go.jp> | |
7370 | |
7371 * xdisp.c (insert_left_trunc_glyphs): Overwrite padding glyphs by | |
7372 truncation glyphs. | |
7373 (display_line): Optimize for wide characters. | |
7374 (display_string): Don't try to display a multi-column character | |
7375 partially. On ttys, produce more than one truncation glyph for | |
7376 multi-column characters that don't fit on the line. | |
7377 | |
7378 2001-01-13 Kenichi Handa <handa@etl.go.jp> | |
7379 | |
7380 * md5.c (WORDS_BIG_ENDIAN) [__BYTE_ORDER == __BIG_ENDIAN]: | |
7381 Define it instead of WORDS_BIGENDIAN. Caller changed. | |
7382 | |
7383 2001-01-13 Jason Rumney <jasonr@gnu.org> | |
7384 | |
7385 * w32fns.c (Fimage_size, image_ascent, lookup_image) | |
7386 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR, parse_image_spec) | |
7387 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format) | |
7388 (tiff_format, gif_format, gs_format): Adapt to change of image margins. | |
7389 | |
7390 * w32term.c (x_produce_image_glyph, x_draw_image_foreground) | |
7391 (x_draw_image_relief, x_draw_image_foreground_1) | |
7392 (x_draw_image_glyph_string): Adapt to change of image margins. | |
7393 | |
7394 * w32.c (init_environment, sys_shutdown, sys_pipe): Remove unused | |
7395 variables. | |
7396 | |
7397 * w32bdf.c (search_file_line, get_cached_font_char) | |
7398 (cache_char_offset, create_offscreen_bitmap): Remove unused variables. | |
7399 | |
7400 * w32inevt.c (w32_console_toggle_lock_key): Add parentheses. | |
7401 | |
7402 * w32fns.c (x_to_w32_color, x_set_icon_name, xlfd_strip_height) | |
7403 (w32_list_synthesized_fonts, lookup_image, Fx_file_dialog) | |
7404 (Fw32_send_sys_command): Remove unused variables. | |
7405 (w32_msg_pump): Add parentheses. | |
7406 | |
7407 * w32term.c (w32_fill_rect, w32_read_socket, x_bitmap_icon) | |
7408 (x_new_fontset, x_calc_absolute_position, x_iconify_frame): | |
7409 Add parentheses. | |
7410 | |
7411 2001-01-12 Gerd Moellmann <gerd@gnu.org> | |
7412 | |
7413 * xdisp.c (Vtool_bar_button_margin): Replaces tool_bar_button_margin. | |
7414 (build_desired_tool_bar_string): Handle Vtool_bar_button_margin | |
7415 being a pair of margins. | |
7416 (syms_of_xdisp): Change DEFVAR_INT of tool-bar-button-margins | |
7417 to DEFVAR_LISP. Extend doc. | |
7418 | |
7419 * xfns.c (Fimage_size, image_ascent): Adapt to the change of image | |
7420 margins. | |
7421 (lookup_image): If `:margin MARGIN' is specified, and MARGIN is a | |
7422 pair of integers `(X . Y)', use X for the horizontal and Y for the | |
7423 vertical margin. | |
7424 (IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR): New enumerator. | |
7425 (parse_image_spec): Check it. | |
7426 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format) | |
7427 (tiff_format, gif_format, gs_format): | |
7428 Use IMAGE_POSITIVE_INTEGER_VALUE_OR_PAIR for :margin. | |
7429 | |
7430 * xterm.c (x_produce_image_glyph, x_draw_image_foreground) | |
7431 (x_draw_image_relief, x_draw_image_foreground_1) | |
7432 (x_draw_image_glyph_string): Adapt to the change of image margins. | |
7433 | |
7434 * dispextern.h (struct image): Replace member `margin' with | |
7435 `hmargin' and `vmargin'. | |
7436 | |
7437 * xdisp.c (Fdump_tool_bar_row) [GLYPH_DEBUG]: Add parameters ROW | |
7438 and GLYPHS. | |
7439 | |
7440 * dispnew.c (update_text_area): Put code which decrements the | |
7441 stop position when the row's face extends to the end of the | |
7442 line in #if 0. | |
7443 | |
7444 * xfns.c (x_set_mouse_color): Fix color allocation. | |
7445 | |
7446 * keyboard.c: Call get_local_map with new argument list. | |
7447 | |
7448 * intervals.c (get_local_map): Change TYPE to Lisp_Object. | |
7449 | |
7450 * intervals.h (enum map_property): Removed. | |
7451 (get_local_map): Change prototype. | |
7452 | |
7453 * keymap.c: Call get_local_map with new argument list. | |
7454 (Fwhere_is_internal): Rename parameter XKEYMAP to KEYMAP. | |
7455 | |
7456 2001-01-11 Gerd Moellmann <gerd@gnu.org> | |
7457 | |
7458 * xdisp.c (build_desired_tool_bar_string): Correct the computation | |
7459 of the size needed for the tool bar string. For the last image, | |
7460 use a `display' property that reaches to the end of the string. | |
7461 | |
7462 * xselect.c (selection_request_dpyinfo): New variable. | |
7463 (x_handle_selection_request): Set it. | |
7464 (x_selection_request_lisp_error): Don't call | |
7465 x_decline_selection_request if selection request's display has | |
7466 been closed. | |
7467 | |
7468 * xfaces.c (x_free_colors, x_free_dpy_colors) [DEBUG_X_COLORS]: | |
7469 Do the unregister_colors before calling XFreeColors. | |
7470 | |
7471 2001-01-10 Dave Love <fx@gnu.org> | |
7472 | |
7473 * Makefile.in (${etc}DOC): Depend on ${shortlisp} and | |
7474 ${SOME_MACHINE_LISP}, not ${lisp}. | |
7475 | |
7476 2001-01-10 Gerd Moellmann <gerd@gnu.org> | |
7477 | |
7478 * xdisp.c (display_line): On ttys, produce more than one truncation | |
7479 glyph for multi-column characters that don't fit on the line. | |
7480 | |
7481 * xselect.c (x_reply_selection_request): Add a comment. | |
7482 | |
7483 * xfns.c (Fx_backspace_delete_keys_p): Use XkbGetMap and | |
7484 XkbGetNames instead of XkbGetKeyboard. | |
7485 | |
7486 2001-01-10 Dave Love <fx@gnu.org> | |
7487 | |
7488 * sysdep.c (random): Revert the declaration. | |
7489 | |
7490 2001-01-09 Gerd Moellmann <gerd@gnu.org> | |
7491 | |
7492 * lisp.h (STRING_BYTES) [GC_CHECK_STRING_BYTES]: | |
7493 Call function string_bytes. | |
7494 (GC_CHECK_STRING_BYTES): Moved here from alloc.c. | |
7495 | |
7496 * alloc.c (CHECK_STRING_BYTES) [GC_CHECK_STRING_BYTES]: New macro. | |
7497 (check_sblock, string_bytes) [GC_CHECK_STRING_BYTES]: New functions. | |
7498 (check_string_bytes) [GC_CHECK_STRING_BYTES]: Add parameter ALL_P. | |
7499 (allocate_string) [GC_CHECK_STRING_BYTES]: Always check strings in | |
7500 the current sblock. | |
7501 (mark_object) [GC_CHECK_STRING_BYTES]: Use CHECK_STRING_BYTES. | |
7502 (gc_sweep) [GC_CHECK_STRING_BYTES]: Call check_string_bytes | |
7503 after sweeping strings, and at the end. | |
7504 (GC_CHECK_STRING_BYTES): Moved to lisp.h. | |
7505 | |
7506 * alloc.c (Fgarbage_collect): Use a record_unwind_protect to | |
7507 ensure that pop_message is called. | |
7508 | |
7509 * keyboard.c (Fexecute_extended_command): Use a | |
7510 record_unwind_protect to ensure that pop_message is called. | |
7511 | |
7512 * lisp.h (push_message_unwind): Add prototype. | |
7513 | |
7514 * xdisp.c (push_message_unwind): New function. | |
7515 | |
7516 * fileio.c (do_auto_save_unwind): Do the pop_message here | |
7517 instead of in Fdo_auto_save. | |
7518 (Fdo_auto_save): Don't call pop_message. | |
7519 | |
7520 2001-01-08 Ken Raeburn <raeburn@gnu.org> | |
7521 | |
7522 * xfns.c (xpm_load) [!ALLOC_XPM_COLORS]: Declare local variable I | |
7523 in inner block. | |
7524 | |
7525 2001-01-08 Gerd Moellmann <gerd@gnu.org> | |
7526 | |
7527 * window.c (window_scroll_pixel_based): Adjust glyph matrices | |
7528 when increasing window's vscroll. | |
7529 | |
7530 * macros.c (Qkbd_macro_termination_hook): New variable. | |
7531 (syms_of_macros): Initialize and staticpro it. | |
7532 (pop_kbd_macro): Run kbd-macro-termination-hook. | |
7533 | |
7534 * xterm.c (XTread_socket) <LeaveNotify>: Set help_echo to nil. | |
7535 | |
7536 2001-01-07 Dave Love <fx@gnu.org> | |
7537 | |
7538 * keyboard.c (Fread_key_sequence_vector): Avoid newline in | |
7539 arglist, for documentation's sake. | |
7540 | |
7541 2001-01-06 Andrew Innes <andrewi@gnu.org> | |
7542 | |
7543 * makefile.w32-in (clean): Delete $(COMPILER_TEMP_FILES) instead | |
7544 of *.pdb. | |
7545 | |
7546 2001-01-05 Andrew Innes <andrewi@gnu.org> | |
7547 | |
7548 * term.c (update_end): Don't check updating_frame; for some reason | |
7549 this can be 0 sometimes, such as after dismissing a popup menu, | |
7550 and isn't necessary given the explicit frame argument. | |
7551 | |
7552 2001-01-05 Gerd Moellmann <gerd@gnu.org> | |
7553 | |
7554 * sysdep.c: Don't prototype srandom; it takes an unsigned argument | |
7555 on some systems, and an unsigned long on others, like FreeBSD 4.1. | |
7556 | |
7557 2001-01-04 Gerd Moellmann <gerd@gnu.org> | |
7558 | |
7559 * xterm.c (clear_mouse_face): Don't return if tip_frame is non-nil. | |
7560 | |
7561 * xfns.c (x_create_tip_frame): Preserve the value of | |
7562 face_change_count around the creation of the tip frame. | |
7563 | |
7564 * xfns.c (last_show_tip_args): New variable. | |
7565 (compute_tip_xy): New function. | |
7566 (Fx_show_tip): Reuse an existing tip frame, if possible. | |
7567 (syms_of_xfns): Initialize and staticpro last_show_tip_args. | |
7568 | |
7569 2001-01-04 Dave Love <fx@gnu.org> | |
7570 | |
7571 * editfns.c (Fformat): Doc fix. | |
7572 | |
7573 * systime.h (set_file_times): Prototype. | |
7574 | |
7575 * widget.h (EmacsFrameSetCharSize_): Prototype. | |
7576 | |
7577 * sysdep.c (random, srandom): Declare explicitly. | |
7578 | |
7579 * dispextern.h (move_it_vertically_backward): Declare. | |
7580 | |
7581 2001-01-04 Gerd Moellmann <gerd@gnu.org> | |
7582 | |
7583 * xfns.c (x_create_tip_frame): Call face-set-after-frame-default, | |
7584 like in Fx_create_frame. | |
7585 | |
7586 * xfaces.c (set_font_frame_param): Don't do anything for | |
7587 non-graphical frames. | |
7588 | |
7589 * window.c (Fdelete_other_windows): Set window's window_end_valid | |
7590 to nil when changing the window's start. Don't change the | |
7591 window's start when its top position hasn't changed. If we do, | |
7592 this will set the window's optional_new_start, which act's like a | |
7593 force_start during redisplay with C-x 1 M-> under particular | |
7594 circumstances (see report from Per Starback to emacs-pretest-bug | |
7595 from 2000-12-13.). | |
7596 | |
7597 2001-01-03 Gerd Moellmann <gerd@gnu.org> | |
7598 | |
7599 * xdisp.c (forward_to_next_line_start): Reset it->c if taking the | |
7600 short cut at the start of the function. Add an assertion. | |
7601 (reseat_at_next_visible_line_start): Add an assertion. | |
7602 | |
7603 * window.c (Frecenter): When changing the window start, set the | |
7604 window's window_end_valid to nil. | |
7605 (Fwindow_end): Fix window-end computation when UPDATE is non-nil. | |
7606 | |
7607 * dispextern.h (move_it_past_eol): Add prototype. | |
7608 | |
7609 * xdisp.c (move_it_past_eol): New function. | |
7610 | |
7611 * window.c (Fwindow_end): Doc fix. | |
7612 | |
7613 2001-01-03 Dave Love <fx@gnu.org> | |
7614 | |
7615 * dired.c (Ffile_attributes): Fix last change, removing BSD4_3 kluge. | |
7616 | |
7617 2001-01-03 Gerd Moellmann <gerd@gnu.org> | |
7618 | |
7619 * xdisp.c (try_window_reusing_current_matrix): Fix bug setting | |
7620 the enabled_p flag of the glyph row at window_end_vpos to 0. | |
7621 (handle_single_display_prop): Fix last change. | |
7622 | |
7623 2001-01-02 Richard M. Stallman <rms@caffeine.ai.mit.edu> | |
7624 | |
7625 * window.c (Frecenter): Doc fix. | |
7626 | |
7627 2001-01-02 Andrew Innes <andrewi@gnu.org> | |
7628 | |
7629 * term.c (FRAME_TERMCAP_P) [WINDOWSNT]: Remove redefinition. | |
7630 | |
7631 * frame.h (output_method): Add output_w32_console method. | |
7632 (FRAME_W32_CONSOLE_P): New macro. | |
7633 | |
7634 * frame.c (make_terminal_frame) [WINDOWSNT]: Make terminal frames | |
7635 use output_w32_console method. | |
7636 (Qw32_console): New Lisp_Object. | |
7637 (Fframep): Return it. | |
7638 (syms_of_frame): Init it. | |
7639 (Fframe_parameters): Report w32console as font for w32_console frames. | |
7640 | |
7641 * xfaces.c (realize_default_face): Set face foreground and | |
7642 background to unspecified for w32_console frames. | |
7643 (realize_face): Realize face cache for w32_console frames. | |
7644 (realize_tty_face): Accept w32_console frames. | |
7645 | |
7646 * xdisp.c (handle_single_display_prop): Return if frame is w32_console. | |
7647 (init_iterator) [WINDOWSNT]: Initialize frame face cache if | |
7648 necessary, even if running interactively. | |
7649 | |
7650 * dispnew.c (Fredraw_frame): Call set_terminal_modes for | |
7651 w32_console frames. | |
7652 | |
7653 * w32term.c (x_update_begin): | |
7654 (x_update_end): | |
7655 (x_clear_frame): | |
7656 (x_ins_del_lines): | |
7657 (x_change_line_highlight): | |
7658 (x_delete_glyphs): | |
7659 (w32_ring_bell): | |
7660 (x_update_begin): | |
7661 (x_update_end): | |
7662 (w32_reassert_line_highlight): | |
7663 (w32_frame_rehighlight): | |
7664 (w32_frame_raise_lower): Do nothing if not w32 frame. | |
7665 | |
7666 * w32xfns.c (get_frame_dc): Abort if called on a non-w32 frame. | |
7667 | |
7668 * w32fns.c (Fx_display_color_cells): Determine correct value, when | |
7669 system doesn't tell us directly. | |
7670 (Fx_display_visual_class): Implement properly. | |
7671 | |
7672 2001-01-02 Gerd Moellmann <gerd@gnu.org> | |
7673 | |
7674 * window.c (Frecenter): Handle centering in graphical frames | |
7675 specially. Centering on the basis of line counts doesn't work | |
7676 reliably with variable-height lines. | |
7677 | |
7678 2001-01-02 Eli Zaretskii <eliz@is.elta.co.il> | |
7679 | |
7680 * widget.c (EmacsFrameSetCharSize): Remove unused variables `ac' | |
7681 and al[]. | |
7682 | |
7683 * composite.c (run_composition_function): Remove unused var `val'. | |
7684 (update_compositions): Remove unused variable `hook'. | |
7685 | |
7686 * intervals.c (get_local_map): Remove unused variable `tem'. | |
7687 | |
7688 * doprnt.c (doprnt1): Remove unused variable `size'. | |
7689 | |
7690 * fns.c (Flength): Remove unused variable `tail'. | |
7691 (Fdelete): Remove unused variable `size'. | |
7692 | |
7693 * editfns.c (Ftranspose_regions): Remove unused variables `gcpro1' | |
7694 and `gcpro2'. | |
7695 | |
7696 * doc.c (Fsnarf_documentation): Remove unused vars `fun' and `tem'. | |
7697 | |
7698 * data.c (find_symbol_value): Remove extra 3rd argument in the | |
7699 call to swap_in_symval_forwarding. | |
7700 | |
7701 * undo.c (Fprimitive_undo): Remove unused block-scope variable `end'. | |
7702 | |
7703 * search.c (shrink_regexp_cache): Remove unused variable `cpp'. | |
7704 (trivial_regexp_p): Remove unused variable `c'. | |
7705 (boyer_moore): Remove unused variable `k'. | |
7706 | |
7707 * indent.c (current_column): Remove unused variable `stopchar'. | |
7708 (Fcompute_motion): Remove unused variable `contin'. | |
7709 | |
7710 * casefiddle.c (casify_object): Remove unused variable `tolen'. | |
7711 | |
7712 * dired.c (directory_files_internal): Fix a typo in a comment. | |
7713 Remove an unused variable `handler'. | |
7714 (file_name_completion): Remove unused function-scope variable `dp'. | |
7715 (Ffile_attributes) <dirname, sdir>: Make declarations conditioned | |
7716 on BSD4_2. | |
7717 | |
7718 * fileio.c (e_write): Remove unused variable `require_encoding_p'. | |
7719 | |
7720 * marker.c (Fmarker_position): Remove unused variables `pos', `i', | |
7721 and `buf'. | |
7722 (Fmarker_insertion_type): Remove unused variable `buf'. | |
7723 | |
7724 * insdel.c (make_gap): Remove unused variable `result'. | |
7725 | |
7726 * keyboard.c (record_char): Remove unused function-scope var `help'. | |
7727 (kbd_buffer_get_event): Remove unused block-scope variable `idx'. | |
7728 (menu_bar_items): Remove unused function-scope variable `tem'. | |
7729 | |
7730 * fontset.c (fontset_ref): Remove unused variable `i'. | |
7731 (fontset_set): Remove unused variables `j' and `tmp'. | |
7732 (make_fontset): Remove unused variables `i', `j', `elt' and `base_elt'. | |
7733 (make_fontset_for_ascii_face): Remove unused variable `name'. | |
7734 (fs_load_font): Remove unused variable `font_idx'. | |
7735 (fs_query_fontset): Remove unused function-local variable `fontset'. | |
7736 (list_fontsets): Remove unused variable `tail'. | |
7737 (Fnew_fontset): Remove unused variables `family' and `registry'. | |
7738 (accumulate_font_info): Remove unused variable `tmp'. | |
7739 (Ffontset_font): Remove unused variable `id'. | |
7740 (syms_of_fontset): Remove unused variable `i'. | |
7741 | |
7742 * xfns.c (x_display_info_for_name): Cast 0 to "char *" in the call | |
7743 to x_term_init. | |
7744 (lookup_image): Remove unused variable `file'. | |
7745 (xbm_load): Remove unused variables `bitmap_data', `height', and | |
7746 `width'. Remove function-local variable `i', leave the | |
7747 block-local one. | |
7748 (gif_load): Remove unused variable `inc'. | |
7749 | |
7750 * xterm.c (XTread_socket): Remove unused variables `p' and `pend'. | |
7751 (XTread_socket) <LeaveNotify>: Remove unused variable `frame', | |
7752 leave only the one in the inner block. | |
7753 | |
7754 * xfaces.c (face_fontset, realize_default_face): Remove unused | |
7755 variable `fontset'. | |
7756 (face_at_buffer_position): Remove unused variable `multibyte_p'. | |
7757 | |
7758 * term.c (encode_terminal_code): Remove unused variable `c'. | |
7759 | |
7760 * ccl.c (Fccl_execute): Cast ccl_driver parameters to `unsigned | |
7761 char *' instead of `char *'. | |
7762 | |
7763 * category.c (Fcategory_docstring): Remove unused variable `doc'. | |
7764 (Fget_unused_category): Remove unused variable `docstring_vector'. | |
7765 (Fchar_category_set): Remove unused variables `val', `charset', | |
7766 `c1' and `c2'. | |
7767 | |
7768 * coding.c (detect_coding_iso2022, setup_coding_system): | |
7769 Remove unused variable `i'. | |
7770 (detect_coding_mask): Remove unused variable `idx'. | |
7771 (detect_coding): Remove unused variable `i'. | |
7772 (ccl_coding_driver): Remove unused variable `result'. | |
7773 (run_pre_post_conversion_on_str): Remove unused variable `prev'. | |
7774 (decode_coding_string): Remove unused variables `to' and `gcpro1'. | |
7775 (encode_coding_string): Remove unused variables `gcpro1' and | |
7776 `saved_coding_symbol'. | |
7777 (Ffind_coding_systems_region_internal): Remove function-local | |
7778 variable args[], leave only the block-local one. | |
7779 (code_convert_region1): Remove unused variable `len'. | |
7780 | |
7781 * charset.c (char_printable_p): Remove unused variable `chars'. | |
7782 (Fsplit_char, Fchar_bytes): Remove unused variable `val'. | |
7783 (str_to_multibyte): Remove unused variable `c'. | |
7784 | |
7785 * window.c (size_window): Remove block-local variable `min_size'. | |
7786 | |
7787 * xdisp.c (make_cursor_line_fully_visible): Remove unused variable | |
7788 `header_line_height'. | |
7789 (append_space, extend_face_to_end_of_line): Declare `saved_what' | |
7790 enum display_element_type. | |
7791 | |
7792 2001-01-02 Gerd Moellmann <gerd@gnu.org> | |
7793 | |
7794 * xterm.c (x_connection_closed): Catch X errors around all | |
7795 statements that call X. Save away the error message in a local copy. | |
7796 | |
7797 * xterm.c (x_connection_closed): Set handling_signal to 0 at | |
7798 the start. | |
7799 | |
7800 * xdisp.c (pos_visible_p): Take into account that CHARPOS maybe | |
7801 in or at the start of invisible text. | |
7802 | |
7803 * dispnew.c (update_window): Don't check_current_matrix_flags. | |
7804 | |
7805 2001-01-01 Jason Rumney <jasonr@gnu.org> | |
7806 | |
7807 * w32fns.c (x_figure_window_size): Do not allow new_height and | |
7808 new_width of frame to override specified values. | |
7809 | |
7810 2000-12-30 Kenichi Handa <handa@etl.go.jp> | |
7811 | |
7812 * composite.c (find_composition): Fix a code for searching backward. | |
7813 | |
7814 2000-12-29 Gerd Moellmann <gerd@gnu.org> | |
7815 | |
7816 * dispnew.c (check_current_matrix_flags) [GLYPH_DEBUG]: New function. | |
7817 (update_window) [GLYPH_DEBUG]: Call it. | |
7818 (scrolling_window): Prevent including current rows which are below | |
7819 what's displayed in the window. | |
7820 | |
7821 * xdisp.c (try_window_reusing_current_matrix) | |
7822 <new start <= old start>: Disable rows in the current matrix | |
7823 which are below the window after scrolling. | |
7824 | |
7825 * xdisp.c (move_it_by_lines): Don't do optimizations if NEED_Y_P | |
7826 is zero. It's not worth the complexity. | |
7827 (invisible_text_between_p): Put in #if 0 because unused. | |
7828 | |
7829 2000-12-28 Gerd Moellmann <gerd@gnu.org> | |
7830 | |
7831 * xfns.c (Fx_backspace_delete_keys_p): Check library and server | |
7832 XKB versions. Call XkbFreeKeyboard with 2nd arg 0. | |
7833 | |
7834 * keyboard.c (echo_char): If C is an integer, always call | |
7835 push_key_description. Former code could signal an invalid | |
7836 character error. | |
7837 | |
7838 * keymap.c (push_key_description): Add parameter FORCE_MULTIBYTE. | |
7839 If set, print multibyte text. | |
7840 (Fsingle_key_description): Call push_key_description with | |
7841 FORCE_MULTIBYTE set. | |
7842 (describe_buffer_bindings): Likewise. | |
7843 | |
7844 * lisp.h (push_key_description): Add prototype. | |
7845 | |
7846 * xdisp.c (echo_area_display): Bind redisplay-dont-pause to t | |
7847 around the call to redisplay_internal. | |
7848 | |
7849 * xfns.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG. | |
7850 | |
7851 * dispnew.c: Use #if GLYPH_DEBUG instead of #ifdef GLYPH_DEBUG. | |
7852 | |
7853 2000-12-28 Kenichi Handa <handa@etl.go.jp> | |
7854 | |
7855 * ccl.c (CCL_WRITE_CHAR): Check variable `extra_bytes'. | |
7856 (ccl_driver): New local variable `extra_bytes'. | |
7857 | |
7858 * ccl.h (struct ccl_spec): New member eight_bit_carryover. | |
7859 | |
7860 * coding.c (setup_coding_system): | |
7861 Initialize coding->spec.ccl.eight_bit_carryover. | |
7862 (ccl_coding_driver): Pay attention to carried over 8-bit bytes. | |
7863 | |
7864 2000-12-28 Kenichi Handa <handa@etl.go.jp> | |
7865 | |
7866 * coding.c (SAFE_ONE_MORE_BYTE): New macro. | |
7867 (DECODE_EMACS_MULE_COMPOSITION_CHAR): New macro. | |
7868 (DECODE_EMACS_MULE_COMPOSITION_RULE): New macro. | |
7869 (decode_composition_emacs_mule): New function. | |
7870 (decode_coding_emacs_mule): Decode composition sequence by calling | |
7871 decode_composition_emacs_mule. | |
7872 (ENCODE_COMPOSITION_EMACS_MULE): New macro. | |
7873 (encode_coding_emacs_mule): Changed from macro to function. | |
7874 If a text contains compositions, encode them correctly. | |
7875 (setup_coding_system): Set coding->commong_flags for emacs-mule so | |
7876 that decoding and encoding are required. | |
7877 | |
7878 2000-12-27 Gerd Moellmann <gerd@gnu.org> | |
7879 | |
7880 * xfaces.c (PT_PER_INCH): New macro. | |
7881 (xlfd_point_size): Compute real point size from font's pixel size. | |
7882 (pixel_point_size, build_scalable_font_name): Use PT_PER_INCH | |
7883 instead of 72. | |
7884 | |
7885 * .gdbinit: Comment out the line pointing to the Lesstif source | |
7886 directory. | |
7887 | |
7888 * window.c (Frecenter): Use displayed_window_lines instead | |
7889 of window_internal_height. | |
7890 | |
7891 * xterm.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars | |
7892 instead of x-toolkit-scroll-bars-p. | |
7893 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p. | |
7894 | |
7895 * w32term.c (syms_of_xterm): DEFVAR_LISP x-toolkit-scroll-bars | |
7896 instead of x-toolkit-scroll-bars-p. | |
7897 (Vx_toolkit_scroll_bars): Renamed from x_toolkit_scroll_bars_p. | |
7898 | |
7899 * dispnew.c (struct redisplay_history) [GLYPH_DEBUG]: New. | |
7900 (REDISPLAY_HISTORY_SIZE) [GLYPH_DEBUG]: New macro. | |
7901 (redisplay_history, history_idx, history_tick) [GLYPH_DEBUG]: | |
7902 New variables. | |
7903 (add_window_display_history, add_frame_display_history) | |
7904 (Fdump_redisplay_history) [GLYPH_DEBUG]: New functions. | |
7905 (build_frame_matrix_from_leaf_window): Remove unused code. | |
7906 (build_frame_matrix_from_leaf_window) [GLYPH_DEBUG]: Add to | |
7907 redisplay history. | |
7908 (update_frame) [GLYPH_DEBUG]: Add to redisplay history. | |
7909 (update_window) [GLYPH_DEBUG]: Likewise. | |
7910 (syms_of_display): Defsubr dump-redisplay-history. | |
7911 | |
7912 2000-12-23 Gerd Moellmann <gerd@gnu.org> | |
7913 | |
7914 * keyboard.c (echo_prompt): Always set current_kboard->echoptr to | |
7915 the end of the prompt. Set echo_after_prompt to the offset | |
7916 of echoptr in echobuf. | |
7917 | |
7918 * xdisp.c (init_from_display_pos): Pop until the iterator's | |
7919 stack is empty; there may be frames for stretch or images | |
7920 on the stack. | |
7921 | |
7922 * dispnew.c (save_frame_matrix, restore_frame_matrix): Removed. | |
7923 (save_or_restore_current_matrix): New function for the same | |
7924 purpose, but more efficient. | |
7925 (adjust_frame_glyphs_for_frame_redisplay): Use it. | |
7926 | |
7927 2000-12-23 Eli Zaretskii <eliz@is.elta.co.il> | |
7928 | |
7929 * xdisp.c (syms_of_xdisp): Fix last change. | |
7930 | |
7931 2000-12-23 Gerd Moellmann <gerd@gnu.org> | |
7932 | |
7933 * xdisp.c (syms_of_xdisp): Doc fix. | |
7934 | |
7935 * xdisp.c (redisplay_window): Remove label restore_buffers; | |
7936 use finish_scroll_bars instead to make sure that scroll bars | |
7937 are redeemed. If we don't do this, flickering can result from | |
7938 scroll bars being destroyed and recreated. | |
7939 | |
7940 2000-12-22 Jason Rumney <jasonr@gnu.org> | |
7941 | |
7942 * w32term.c (w32_draw_bitmap): Fix drawing so it does not appear | |
7943 in the wrong colors when the foreground is not black. | |
7944 (expose_window): Don't redraw the window that's currently being | |
7945 updated. | |
7946 | |
7947 2000-12-22 Gerd Moellmann <gerd@gnu.org> | |
7948 | |
7949 * window.c (size_window): When setting the window's too_small_ok | |
7950 flag, compare old size with minimum size depending on WIDTH_P, | |
7951 don't compare with window_min_width. | |
7952 | |
7953 * window.c (delete_window): Simplify somewhat. | |
7954 (Fset_window_configuration): Don't SET_FRAME_GARBAGED after | |
7955 freeing window matrices. The flag windows_or_buffers_changed is | |
7956 set, so the next redisplay will consider all windows; this should | |
7957 suffice. | |
7958 | |
7959 2000-12-22 Kenichi Handa <handa@etl.go.jp> | |
7960 | |
7961 * coding.c (ccl_coding_driver): Initialize ccl->cr_consumed. | |
7962 | |
7963 * ccl.h (struct ccl_program): New member cr_consumed. | |
7964 | |
7965 * ccl.c (CCL_WRITE_CHAR): Don't handle EOL conversion here. | |
7966 (CCL_READ_CHAR): Handle EOL conversion here. | |
7967 (ccl_driver) <CCL_ReadMultibyteChar2>: Likewise. | |
7968 | |
7969 2000-12-21 Gerd Moellmann <gerd@gnu.org> | |
7970 | |
7971 * xdisp.c (Fdump_glyph_row) [GLYPH_DEBUG]: Add optional arg GLYPHS. | |
7972 | |
7973 * dispextern.h (GLYPH_EQUAL_P): Also compare pixel widths, | |
7974 otherwise tabs of different size compare equal. | |
7975 | |
7976 * callint.c (Fcall_interactively): Prevent a compiler warning. | |
7977 | |
7978 * print.c (print_unwind): Return nil. | |
7979 (PRINTDECLARE): Initialize all local variables. | |
7980 (print_preprocess): Add a default case. | |
7981 | |
7982 * lisp.h (Qinhibit_point_motion_hooks): Declare extern. | |
7983 | |
7984 * undo.c (Fprimitive_undo): Bind `inhibit-point-motion-hooks' to t. | |
7985 | |
7986 * window.c (delete_window, Fsplit_window) | |
7987 (Fset_window_configuration): Calls to ensure_frame_matrix removed. | |
7988 | |
7989 * dispextern.h (ensure_frame_matrix): Function declaration removed. | |
7990 | |
7991 * dispnew.c (ensure_frame_matrix): Removed. | |
7992 (save_frame_matrix, restore_frame_matrix): New functions. | |
7993 (adjust_frame_glyphs_for_frame_redisplay): Use them. | |
7994 | |
7995 * xdisp.c (dump_glyph_row, dump_glyph_matrix, Fdump_glyph_matrix) | |
7996 [GLYPH_DEBUG]: Extended to dump glyphs in short form. | |
7997 | |
7998 2000-12-21 Andrew Innes <andrewi@gnu.org> | |
7999 | |
8000 * w32term.c (x_update_begin): Regenerate the palette here, rather | |
8001 than for each window. | |
8002 | |
8003 * w32xfns.c (select_palette): Avoid calling SelectPalette if | |
8004 palette is NULL, since this corrupts memory! Also get | |
8005 display_info reference from frame. | |
8006 | |
8007 2000-12-21 Jason Rumney <jasonr@gnu.org> | |
8008 | |
8009 * w32bdf.c (w32_init_bdf_font): Fix test for valid bmp heap. | |
8010 | |
8011 * w32term.c (x_draw_hollow_cursor): Delay obtaining the frame's DC | |
8012 to avoid returning without releasing it. | |
8013 | |
8014 2000-12-21 Kenichi Handa <handa@etl.go.jp> | |
8015 | |
8016 * keymap.c (push_key_description): Don't convert eight-bit-control | |
8017 and eight-bit-graphic to multibyte character. | |
8018 | |
8019 * charset.c (Fmake_char_internal): If CHARSET doesn't have a | |
8020 generic character and CODE1 is nil, return the smallest character | |
8021 in CHARSET. | |
8022 | |
8023 2000-12-20 Dave Love <fx@gnu.org> | |
8024 | |
8025 * s/osf5-0.h (NSIG): Don't redefine. | |
8026 | |
8027 2000-12-20 Stefan Monnier <monnier@cs.yale.edu> | |
8028 | |
8029 * keymap.c (where_is_internal): Check ascii_sequence_p rather than | |
8030 excluding menu-bar and tool-bar. | |
8031 (Fwhere_is_internal): Check ascii_sequence_p when looking up the cache. | |
8032 (menu_item_p): Remove. | |
8033 (where_is_internal_1): Don't ignore menu-items. | |
8034 | |
8035 2000-12-20 Gerd Moellmann <gerd@gnu.org> | |
8036 | |
8037 * xdisp.c (hscroll_window_tree): Take window's min_hscroll | |
8038 into account. | |
8039 | |
8040 * window.c (make_window): Initialize window's min_hscroll. | |
8041 (Fset_window_hscroll): Set window's hscroll and min_hscroll. | |
8042 (set_window_buffer, temp_output_buffer_show): Set min_hscroll | |
8043 to zero. | |
8044 (struct saved_window): New member min_hscroll. | |
8045 (SAVED_WINDOW_VECTOR_SIZE): Set to 17. | |
8046 (Fset_window_configuration): Set window's min_hscroll. | |
8047 (save_window_save): Save window's min_hscroll. | |
8048 (compare_window_configurations): Compare min_hscroll values. | |
8049 | |
8050 * window.h (struct window): New member min_hscroll. | |
8051 | |
8052 * keyboard.c (echo_prompt): Prevent a compiler warning. | |
8053 | |
8054 * xdisp.c (try_cursor_movement): Fix last change. The real | |
8055 condition is that PT is at the end of the row, and should | |
8056 be displayed at the start of the next row. | |
8057 | |
8058 * xdisp.c (try_cursor_movement): If we end on a partially | |
8059 visible line, end we already decided to scroll, return -1. | |
8060 | |
8061 * dispextern.h (ensure_frame_matrix): Add prototype. | |
8062 | |
8063 * window.c (delete_window, Fsplit_window) | |
8064 (Fset_window_configuration): Call ensure_frame_matrix. | |
8065 | |
8066 * dispnew.c (fake_current_matrices, ensure_frame_matrix): | |
8067 New functions. | |
8068 (adjust_frame_glyphs_for_frame_redisplay): If display has been | |
8069 completed, call fake_current_matrices instead of marking frame | |
8070 garbaged. | |
8071 | |
8072 2000-12-20 Jason Rumney <jasonr@gnu.org> | |
8073 | |
8074 * w32fns.c (syms_of_w32fns): Initialize and staticpro tip_frame. | |
8075 | |
8076 2000-12-19 Eli Zaretskii <eliz@is.elta.co.il> | |
8077 | |
8078 * fns.c (Frequire): Doc fix. | |
8079 | |
8080 2000-12-19 Gerd Moellmann <gerd@gnu.org> | |
8081 | |
8082 * window.c (window_scroll_pixel_based): Don't use move_it_vertically. | |
8083 | |
8084 * dispnew.c (direct_output_for_insert): Fix check for mini-window | |
8085 currently displaying a message. | |
8086 | |
8087 * bytecode.c (toplevel) [CHECK_FRAME_FONT]: Include frame.h and | |
8088 xterm.h. | |
8089 (Fbyte_code) [CHECK_FRAME_FONT]: Check the selected frame's font. | |
8090 | |
8091 2000-12-18 Andrew Innes <andrewi@gnu.org> | |
8092 | |
8093 * w32.c (w32_strerror): New function. | |
8094 | |
8095 * w32.h (w32_strerror): New extern. | |
8096 | |
8097 * w32fns.c (Fw32_shell_execute): Use it. | |
8098 | |
8099 2000-12-18 Gerd Moellmann <gerd@gnu.org> | |
8100 | |
8101 * s/hpux10.h (_FILE_OFFSET_BITS): Undef again. | |
8102 | |
8103 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il> | |
8104 | |
8105 * msdos.c (IT_set_face): Obey inverse_video. | |
8106 | |
8107 2000-12-18 Kenichi Handa <handa@etl.go.jp> | |
8108 | |
8109 * dired.c (directory_files_internal): Always return decoded filenames. | |
8110 | |
8111 2000-12-18 Gerd Moellmann <gerd@gnu.org> | |
8112 | |
8113 * xterm.c (x_connection_closed): Prevent being called recursively | |
8114 because of an error condition in XtCloseDisplay. | |
8115 | |
8116 * xdisp.c (init_iterator): If noninteractive, and the frame's | |
8117 face cache is null, make one. | |
8118 | |
8119 * xfns.c (show_busy_cursor): Check for live frames more thoroughly. | |
8120 | |
8121 * process.c (wait_reading_process_input): Check for pending | |
8122 input when running timers. | |
8123 | |
8124 2000-12-18 Eli Zaretskii <eliz@is.elta.co.il> | |
8125 | |
8126 * msdos.c (IT_write_glyphs): Compute the glyph face from str->face_id. | |
8127 | |
8128 2000-12-18 Kenichi Handa <handa@etl.go.jp> | |
8129 | |
8130 * process.c (read_process_output): Don't run a filter if the code | |
8131 decoder produces nothing but carryover. | |
8132 | |
8133 2000-12-17 Andrew Innes <andrewi@gnu.org> | |
8134 | |
8135 * w32.c (sys_rename): Only check errno against EEXIST, and not | |
8136 EACCES, when determining whether rename failed because the target | |
8137 exists. This was resulting in indefinite looping on Windows 9x if | |
8138 the source file was locked by another process. | |
8139 | |
8140 * w32fns.c (Ffile_system_info): New function. | |
8141 (syms_of_w32fns): Defsubr it. | |
8142 | |
8143 2000-12-17 Gerd Moellmann <gerd@gnu.org> | |
8144 | |
8145 * window.c (coordinates_in_window): Fix computation for | |
8146 position on vertical line between mode lines. | |
8147 | |
8148 * xfns.c (unwind_create_frame): Return t if frame was deleted. | |
8149 Don't alter tip_frame or tip_window. | |
8150 (unwind_create_tip_frame): Set tip_frame to nil only if frame | |
8151 was deleted. | |
8152 | |
8153 * w32fns.c (unwind_create_frame): Return t if frame was deleted. | |
8154 Don't alter tip_frame or tip_window. | |
8155 (unwind_create_tip_frame): Set tip_frame to nil only if frame | |
8156 was deleted. | |
8157 | |
8158 2000-12-16 Eli Zaretskii <eliz@is.elta.co.il> | |
8159 | |
8160 * fileio.c (Fcopy_file): Rename the last argument to keep_time, to | |
8161 be consistent with the doc string. Reported by NAKAJIMA Mikio | |
8162 <minakaji@osaka.email.ne.jp>. | |
8163 | |
8164 2000-12-16 Kenichi Handa <handa@etl.go.jp> | |
8165 | |
8166 * xfaces.c (Vface_ignored_fonts): New variable. | |
8167 (x_face_list_fonts): Ignore fonts matching Vface_ignored_fonts. | |
8168 (syms_of_xfaces): Declare Vface_ignored_fonts as a Lisp variable. | |
8169 | |
8170 2000-12-15 Gerd Moellmann <gerd@gnu.org> | |
8171 | |
8172 * dispnew.c (update_window): Detect pending input every nth line | |
8173 updated, i.e. do it depending on real work done, and not on the | |
8174 vpos of the line. | |
8175 | |
8176 * xterm.c (expose_window): Don't redraw the window that's | |
8177 currently being updated. | |
8178 | |
8179 * window.c (Fset_window_point): Remove test for | |
8180 cursor_in_non_selected_windows. | |
8181 | |
8182 * lread.c (read1): Recognize end of file after `\\'. | |
8183 | |
8184 * xfns.c (x_create_tip_frame): Use unwind_create_tip_frame, | |
8185 not unwind_create_frame. | |
8186 | |
8187 2000-12-15 Dave Love <fx@gnu.org> | |
8188 | |
8189 * s/usg5-4.h (bcopy) [IRIX6]: Don't special-case definition of | |
8190 bcopy & al. | |
8191 | |
8192 * s/irix6-5.h: #undef bcopy & al here. Include strings.h. | |
8193 | |
8194 2000-12-15 Kenichi Handa <handa@etl.go.jp> | |
8195 | |
8196 * coding.c (setup_coding_system): Clear all members of the struct | |
8197 coding_system at first. | |
8198 (detect_coding): Call detect_coding_mask with a correct MULTIBYTEP | |
8199 argument. | |
8200 (code_convert_region): Don't override coding->src_multibyte and | |
8201 coding->dst_multibyte. | |
8202 | |
8203 * fns.c (Fmd5): Docstring improved. | |
8204 | |
8205 2000-12-15 Miles Bader <miles@gnu.org> | |
8206 | |
8207 * xdisp.c (window_box_height): Only use mode-line glyph-rows that | |
8208 are actually marked as mode-lines; otherwise use | |
8209 estimate_mode_line_height. | |
8210 | |
8211 2000-12-14 Gerd Moellmann <gerd@gnu.org> | |
8212 | |
8213 * editfns.c (Fformat): Prevent a buffer overrun when the format | |
8214 specifies a precision. | |
8215 | |
8216 2000-12-14 Eli Zaretskii <eliz@is.elta.co.il> | |
8217 | |
8218 * msdos.c (Fmsdos_set_mouse_buttons): Signal an error if the | |
8219 argument is outside the range [2..3]. | |
8220 | |
8221 2000-12-14 Andrew Innes <andrewi@gnu.org> | |
8222 | |
8223 * w32fns.c (Fx_hide_tip): Avoid unnecessary work when there's | |
8224 nothing to do. Bind inhibit-quit. | |
8225 (tip_frame): Make it a Lisp_Object. | |
8226 (x_create_tip_frame): Set tip_frame after it has been added to | |
8227 Vframe_list. | |
8228 (Fx_show_tip): Don't set tip_frame here. | |
8229 (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: New variables. | |
8230 (unwind_create_frame, unwind_create_tip_frame): New functions. | |
8231 (Fx_create_frame, x_create_tip_frame): Handle errors signaled | |
8232 while a frame is only partially constructed. | |
8233 | |
8234 * w32term.c (clear_mouse_face): Treat tip_frame as a Lisp_Object. | |
8235 (x_free_frame_resources): New function. | |
8236 (x_destroy_window): Use it. | |
8237 | |
8238 2000-12-14 Gerd Moellmann <gerd@gnu.org> | |
8239 | |
8240 * xfns.c (Fx_backspace_delete_keys_p): New function. | |
8241 (syms_of_xfns): Defsubr it. | |
8242 | |
8243 * config.in (HAVE_XKBGETKEYBOARD): Add. | |
8244 | |
8245 2000-12-14 Kenichi Handa <handa@etl.go.jp> | |
8246 | |
8247 * keyboard.c (echo_prompt): Argument type changed to Lisp_Object. | |
8248 Always store string in multibyte representation in echobuf. | |
8249 (echo_char): Always store string in multibyte representation in | |
8250 echobuf. | |
8251 (echo_now): Call message2_nolog with the arg MULTIBYTE 1. | |
8252 (read_key_sequence): Adjusted for the change of echo_prompt. | |
8253 | |
8254 * fns.c (Fmd5): Docstring improved. | |
8255 | |
8256 * lisp.h (detect_coding_system): Prototype adjusted. | |
8257 | |
8258 * coding.c (ONE_MORE_BYTE_CHECK_MULTIBYTE): New macro. | |
8259 (detect_coding_emacs_mule, detect_coding_iso2022,) | |
8260 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8) | |
8261 (detect_coding_utf_16, detect_coding_ccl): Make them static. | |
8262 New argument MULTIBYTEP. Callers changed. | |
8263 (detect_coding_mask, detect_coding_system): New argument | |
8264 MULTIBYTEP. Callers changed. | |
8265 (decode_coding_string): Set coding->src_multibyte and | |
8266 coding->dst_multibyte before calling detect_coding and detect_eol. | |
8267 Update them after some coding system is detected. | |
8268 | |
8269 2000-12-13 Stefan Monnier <monnier@cs.yale.edu> | |
8270 | |
8271 * keymap.c (get_keyelt): Only eval the filter if `autoload' is set. | |
8272 | |
8273 * keyboard.c (menu_bar_items, tool_bar_items): | |
8274 Set `autoload' when looking up `tool-bar' or `menu-bar' submap. | |
8275 | |
8276 2000-12-13 Gerd Moellmann <gerd@gnu.org> | |
8277 | |
8278 * xfns.c (image_cache_refcount, dpyinfo_refcount) [GLYPH_DEBUG]: | |
8279 New variables. | |
8280 (unwind_create_frame, unwind_create_tip_frame): New functions. | |
8281 (Fx_create_frame, x_create_tip_frame): Handle errors signaled | |
8282 while a frame is only partially constructed. | |
8283 | |
8284 * xterm.h (x_free_frame_resources): Declare. | |
8285 | |
8286 * xterm.c (x_free_frame_resources): New function. | |
8287 (x_destroy_window): Use it. | |
8288 | |
8289 * dispnew.c (update_window): If do_mouse_tracking is non-nil, | |
8290 don't interrupt the update for pending input initially, i.e. | |
8291 update at least some lines. | |
8292 | |
8293 * keyboard.c (do_mouse_tracking): Make externally visible. | |
8294 | |
8295 * xterm.c (x_term_init): Declare gray_bitmap_bits as `extern char *'. | |
8296 | |
8297 * xfns.c (gray_bitmap_bits): Declare `char *'. | |
8298 | |
8299 2000-12-12 Gerd Moellmann <gerd@gnu.org> | |
8300 | |
8301 * xdisp.c (display_tool_bar_line): Make sure that tool bar | |
8302 lines start with a relief line. | |
8303 | |
8304 2000-12-12 Dave Love <fx@gnu.org> | |
8305 | |
8306 * window.c (Fdisplay_buffer): Doc fix. | |
8307 (Fwindow_list): Remove unused var. | |
8308 | |
8309 * buffer.h (mmap_set_vars): Declare. | |
8310 | |
8311 * window.h (Fset_window_point): Declare. | |
8312 | |
8313 2000-12-12 Eli Zaretskii <eliz@is.elta.co.il> | |
8314 | |
8315 * msdos.c (fast_find_position): Don't overstep the last window row. | |
8316 (IT_note_mouse_highlight): Initialize portion to -1. Remove unused | |
8317 variable `area'. When looking for a row under (X,Y), give up if some | |
8318 of the previous rows is not enabled. | |
8319 | |
8320 2000-12-12 Gerd Moellmann <gerd@gnu.org> | |
8321 | |
8322 * window.c (Fset_window_point): If displaying cursors in windows | |
8323 other than the selected window, make sure redisplay updates | |
8324 other windows to show the new value of point in the window. | |
8325 | |
8326 * dispextern.h (cursor_in_non_selected_windows): Declare extern. | |
8327 | |
8328 * buffer.c (Fkill_buffer): Don't Fset_buffer when testing if | |
8329 the buffer is the sole visible buffer when in the mini-buffer. | |
8330 | |
8331 * xdisp.c (setup_echo_area_for_printing, with_echo_area_buffer): | |
8332 Bind `inhibit-read-only' to t. | |
8333 (unwind_with_echo_area_buffer): Use AREF. | |
8334 | |
8335 * xfns.c (Fx_hide_tip): Simplified. | |
8336 | |
8337 * s/freebsd.h, s/netbsd.h (GC_MARK_STACK): Use GC_MAKE_GCPROS_NOOPS | |
8338 instead of `1'. | |
8339 | |
8340 * s/gnu-linux.h (GC_MARK_STACK): Define as GC_MAKE_GCPROS_NOOPS. | |
8341 | |
8342 2000-12-11 Gerd Moellmann <gerd@gnu.org> | |
8343 | |
8344 * xfns.c (Fx_hide_tip): Fix last change. | |
8345 | |
8346 * xfns.c (Fx_hide_tip): Avoid unnecessary work when there's | |
8347 nothing to do. Bind inhibit-quit. | |
8348 (tip_frame): Make it a Lisp_Object. | |
8349 (x_create_tip_frame): Set tip_frame after it has been added to | |
8350 Vframe_list. | |
8351 (Fx_show_tip): Don't set tip_frame here. | |
8352 | |
8353 * xterm.c (clear_mouse_face): Treat tip_frame as a Lisp_Object. | |
8354 | |
8355 * xdisp.c (prepare_menu_bars): Changes for tip_frame being a | |
8356 Lisp_Object. | |
8357 | |
8358 * dispextern.h: Change external declaration of tip_frame. | |
8359 | |
8360 * keymap.c (Fkey_description): If KEYS is an empty key sequence, | |
8361 return an empty string. | |
8362 | |
8363 * xdisp.c (try_cursor_movement): Check update_mode_lines instead | |
8364 of the window's update_mode_line flag, since the former is set by | |
8365 force-mode-line-update, not the latter. This makes | |
8366 column-number-mode slightly faster. | |
8367 | |
8368 * xdisp.c (try_window_id) <all changes above window start>: | |
8369 Set the cursor. | |
8370 | |
8371 2000-12-11 Paul Eggert <eggert@twinsun.com> | |
8372 | |
8373 * config.in (HAVE_FTELLO): Remove. | |
8374 (HAVE_FSEEKO): Add. | |
8375 (_XOPEN_SOURCE): Remove; the large-file code no longer needs it. | |
8376 * lread.c (file_offset, file_tell): Depend on HAVE_FSEEKO, not | |
8377 HAVE_FTELLO. | |
8378 * s/hpux10.h (_FILE_OFFSET_BITS): Do not undef. | |
8379 * s/isc3-0.h, s/osf5-0.h: Update comment about _XOPEN_SOURCE. | |
8380 | |
8381 2000-12-11 Miles Bader <miles@gnu.org> | |
8382 | |
8383 * window.c (displayed_window_lines): Don't round up when | |
8384 converting empty space at bottom to lines. | |
8385 Handle non-newline-terminated final lines properly. | |
8386 (Fwindow_text_height): New function (used to be in lisp). | |
8387 (syms_of_window): Initialize it. | |
8388 | |
8389 2000-12-09 Stefan Monnier <monnier@cs.yale.edu> | |
8390 | |
8391 * syntax.c (scan_lists): Check that the right quote char has the | |
8392 right Sstring syntax when jumping over strings. | |
8393 (init_syntax_once): Use Smax rather than 13. | |
8394 | |
8395 2000-12-09 Miles Bader <miles@gnu.org> | |
8396 | |
8397 * window.c (Fpos_visible_in_window_p): Replace FULLY parameter | |
8398 with PARTIALLY, inverting the sense. | |
8399 (window_scroll_pixel_based): Scroll partially visible lines into | |
8400 place if we hit the beginning or end of the buffer. | |
8401 (displayed_window_lines): Don't include partially visible lines. | |
8402 (Fmove_to_window_line): Skip past any partially visible first line. | |
8403 | |
8404 2000-12-08 Gerd Moellmann <gerd@gnu.org> | |
8405 | |
8406 * keymap.c (current_minor_maps): Use malloc. Prevent a leak. | |
8407 | |
8408 * tparam.c (tparam1): Change the way buffers are reallocated to be | |
8409 portable and less obfuscated. | |
8410 | |
8411 * termcap.c (tgetent): Change the way buffers are reallocated to | |
8412 be portable and less obfuscated. | |
8413 | |
8414 * macros.c (store_kbd_macro_char): Change the way buffers are | |
8415 reallocated to be portable and less obfuscated. | |
8416 | |
8417 * lread.c (read1): Change the way buffers are reallocated to be | |
8418 portable and less obfuscated. | |
8419 | |
8420 * doc.c (Fsubstitute_command_keys): Change the way buffers | |
8421 are reallocated so that it is portable. | |
8422 | |
8423 2000-12-07 Eli Zaretskii <eliz@is.elta.co.il> | |
8424 | |
8425 * dosfns.c (Ffile_system_info): New function. | |
8426 (syms_of_dosfns): Defsubr it. | |
8427 | |
8428 2000-12-07 Stefan Monnier <monnier@cs.yale.edu> | |
8429 | |
8430 * alloc.c (gc_sweep): Add comment. | |
8431 | |
8432 2000-12-07 Gerd Moellmann <gerd@gnu.org> | |
8433 | |
8434 * sound.c (vox_configure): Change order of ioctls. | |
8435 Don't set SNDCTL_DSP_SPEED from bps, don't set SNDCTL_DSP_SAMPLESIZE. | |
8436 Ignore errors when changing volume. | |
8437 (vox_close): Don't reset the device. | |
8438 | |
8439 * process.c (read_process_output): Make sure the process marker's | |
8440 position is valid when the process buffer is changed in | |
8441 after-change functions. W3 does that. | |
8442 | |
8443 * xfns.c (x_free_gcs): New function. | |
8444 | |
8445 * xterm.h (x_free_gcs): Add prototype. | |
8446 | |
8447 * widget.c (EmacsFrameDestroy): Call x_free_gcs instead of | |
8448 freeing GCs here. | |
8449 | |
8450 * xterm.c (x_destroy_window): Call x_free_gcs so that | |
8451 resources of non-toolkit X windows will be freed. | |
8452 | |
8453 2000-12-07 Andrew Innes <andrewi@gnu.org> | |
8454 | |
8455 * w32fns.c (xlfd_charset_of_font): Fix last change. | |
8456 | |
8457 2000-12-06 Dave Love <fx@gnu.org> | |
8458 | |
8459 * md5.h (__P): Don't define -- it comes from config.h. | |
8460 | |
8461 * strftime.c: Change some #if foo to #ifdef foo. | |
8462 | |
8463 2000-12-06 Andrew Innes <andrewi@gnu.org> | |
8464 | |
8465 * w32term.h (CP_INVALID): Rename to CP_UNKNOWN. | |
8466 | |
8467 * w32fns.c (xlfd_charset_of_font): Don't overwrite fontname argument. | |
8468 (w32_codepage_for_font): Rename CP_INVALID to CP_UNKNOWN. | |
8469 (w32_list_fonts): Don't choke if pattern doesn't specify a codepage. | |
8470 | |
8471 2000-12-06 Gerd Moellmann <gerd@gnu.org> | |
8472 | |
8473 * alloc.c (gc_sweep): Prevent symbols read during loadup | |
8474 from being freed. | |
8475 | |
8476 * xdisp.c (underlying_face_id): New function. | |
8477 (handle_face_prop, face_before_or_after_it_pos): Use it | |
8478 to determine the face ``under'' a string. Let strings inherit | |
8479 the face of the buffer under them. | |
8480 | |
8481 * xfaces.c (face_at_string_position): Update function comment. | |
8482 | |
8483 * dispnew.c (adjust_glyph_matrix): Don't reuse a window's current | |
8484 matrix if the window's left position has changed; we need to | |
8485 redraw it in this case. | |
8486 | |
8487 * dispextern.h (struct glyph_matrix): Add member window_left_x. | |
8488 | |
8489 * window.c (coordinates_in_window): Check mouse on mode-line or | |
8490 header-line first. | |
8491 | |
8492 * alloc.c (Fgarbage_collect): Dox fix. Return a list as | |
8493 advertized by the function documentation. | |
8494 | |
8495 * window.c (syms_of_window): Doc fix. | |
8496 | |
8497 * sound.c (vox_configure): Set volume for left and right channel. | |
8498 (sound_cleanup): Return nil. | |
8499 | |
8500 * xdisp.c (move_it_by_lines): Fix paren typo. | |
8501 | |
8502 * xterm.c (x_load_font): Don't use the font's max_bounds for | |
8503 computing the height of the font. If max_bounds' ascent or | |
8504 descent are greater than the font's ascent or descent, this means | |
8505 glyphs overlap, which should be handled now by redisplay. | |
8506 | |
8507 * window.c (Veven_window_heights): New variable. | |
8508 (syms_of_window): DEFVAR_LISP it. | |
8509 (Fdisplay_buffer): Check Veven_window_heights before evening the | |
8510 window heights. | |
8511 | |
8512 2000-12-06 Miles Bader <miles@gnu.org> | |
8513 | |
8514 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is `t', | |
8515 update `default-frame-alist' instead of setting no frame parameters. | |
8516 | |
8517 2000-12-06 Kenichi Handa <handa@etl.go.jp> | |
8518 | |
8519 * composite.c (update_compositions): Fix typo (use the correct | |
8520 variable). | |
8521 | |
8522 2000-12-05 Jason Rumney <jasonr@gnu.org> | |
8523 | |
8524 * md5.h: Remove underscores from function declarations. | |
8525 (__attribute__, __alignof__) [!__GNUC__]: Define. | |
8526 | |
8527 * md5.c: Delay include of md5.h until after namespace cleaning. | |
8528 | |
8529 * makefile.w32-in (fns.o): Depend on md5.h | |
8530 (md5.o): New target. | |
8531 (sunfns.o): Remove. | |
8532 | |
8533 * makefile.nt: Likewise. | |
8534 | |
8535 2000-12-05 Jason Rumney <jasonr@altavista.net> | |
8536 | |
8537 * w32term.c (expose_area): Complete last change. | |
8538 | |
8539 2000-12-05 Ken Raeburn <raeburn@gnu.org> | |
8540 | |
8541 * minibuf.c: Include intervals.h. | |
8542 | |
8543 2000-12-05 Jason Rumney <jasonr@gnu.org> | |
8544 | |
8545 * w32term.c (x_produce_glyphs): If a font for a component of | |
8546 a composition is not found, use 1 pixel dot ascent and 0 dot | |
8547 descent value to avoid displaying terribly tall empty boxes. | |
8548 (expose_area): Pass x-coordinate relative to the exposed | |
8549 area to x_draw_glyphs instead of a window-relative coordinate. | |
8550 | |
8551 2000-12-05 Gerd Moellmann <gerd@gnu.org> | |
8552 | |
8553 * xdisp.c (next_element_from_ellipsis): Save face before selective | |
8554 display in saved_face_id, and set face_before_selective_p. | |
8555 (reseat_1): Reset face_before_selective_p. | |
8556 (append_space, extend_face_to_end_of_line): If iterator's | |
8557 face_before_selective_p is set, use the face from saved_face_id. | |
8558 (extend_face_to_end_of_line): For tty frames, make sure to | |
8559 use the right face id when producing spaces at the end of | |
8560 the line. | |
8561 | |
8562 * dispextern.h (struct it): Add face_before_selective_p. | |
8563 | |
8564 * keyboard.c (record_char): Don't record identical help-echo | |
8565 events in recent_keys. | |
8566 | |
8567 * xterm.c [USE_X_TOOLKIT]: Close the display. | |
8568 (xim_close_dpy): Handle case that the display has been closed. | |
8569 | |
8570 * xterm.c (x_destroy_window): Reset the frame's X window after | |
8571 destroying it. | |
8572 | |
8573 * dispnew.c (adjust_glyph_matrix): Make sure to initialize local | |
8574 variable window_width. | |
8575 (line_draw_cost): Fix code skipping over spaces at the end of the | |
8576 line when must_write_spaces is not set. | |
8577 (scrolling_window): Fix code inserting runs in list of all runs. | |
8578 | |
8579 2000-12-05 Kenichi Handa <handa@etl.go.jp> | |
8580 | |
8581 * coding.c (setup_coding_system): Be sure to initialize | |
8582 coding->category_idx. | |
8583 | |
8584 2000-12-04 Gerd Moellmann <gerd@gnu.org> | |
8585 | |
8586 * xterm.c (PER_CHAR_METRIC): Removed because not used. | |
8587 | |
8588 * xterm.c (expose_area): Pass x-coordinate relative to the exposed | |
8589 area to x_draw_glyphs instead of a window-relative coordinate. | |
8590 | |
8591 * fileio.c (auto_save_error): Add parameter ERROR. Show the | |
8592 error in the message. | |
8593 | |
8594 * keyboard.c (Fread_key_sequence): Don't start the busy cursor | |
8595 timer after having read a key. It's not good for code reading | |
8596 several keys in a loop, like an input method. | |
8597 | |
8598 * fileio.c (Finsert_file_contents): When VISIT is t, don't | |
8599 record undo information for format-decode. | |
8600 | |
8601 * undo.c (Fprimitive_undo): Bind inhibit-read-only to t if | |
8602 current buffer is read-only, not if it isn't. | |
8603 | |
8604 * keyboard.c (record_char): Record `help-echo' input events | |
8605 in recent_keys only if they display some help. Don't record | |
8606 `help-echo' events as macro char. | |
8607 | |
8608 2000-12-04 Richard M. Stallman <rms@caffeine.ai.mit.edu> | |
8609 | |
8610 * editfns.c (save_excursion_restore): Don't move point | |
8611 in another window if it is showing the wrong buffer. | |
8612 Avoid the call to Fwindow_live_p, for speed. | |
8613 | |
8614 2000-12-04 Kenichi Handa <handa@etl.go.jp> | |
8615 | |
8616 * xfaces.c (struct font_name): New member registry_priority. | |
8617 (split_font_name): Initialize the above member to zero. | |
8618 (concat_font_list): New function. | |
8619 (font_list): Include fonts of all alternative registries. | |
8620 (FONT_POINT_SIZE_QUANTUM): New macro. | |
8621 (better_font_p): Ignore point size difference less than | |
8622 FONT_POINT_SIZE_QUANTUM. Use registry_prioprity as a last resort. | |
8623 | |
8624 * xterm.c (x_produce_glyphs): If a font for a component of | |
8625 a composition is not found, use 1 pixel dot ascent and 0 dot | |
8626 descent value to avoid displaying terribly tall empty boxes. | |
8627 | |
8628 * ccl.c (stack_idx_of_map_multiple): Don't use C initializier. | |
8629 | |
8630 2000-12-03 Ken Raeburn <raeburn@gnu.org> | |
8631 | |
8632 * coding.h (code_convert_string1): Declare. | |
8633 | |
8634 * fns.c (Fmd5): Pass lisp objects, not integers, to call3. | |
8635 | |
8636 * lisp.h (Fmake_variable_buffer_local, Fbuffer_file_name): Declare. | |
8637 | |
8638 2000-12-02 Jason Rumney <jasonr@gnu.org> | |
8639 | |
8640 * w32term.c (w32_bdf_per_char_metric): Dereference pointer | |
8641 correctly for single byte character case. | |
8642 (w32_per_char_metric): Do not try to make any assumptions about | |
8643 the metrics of BDF fonts. | |
8644 (x_estimate_mode_line_height): If `mode-line' face | |
8645 hasn't a font, use that of the frame, as drawing glyphs does. | |
8646 (note_mouse_highlight): Change the cursor shape on the vertical | |
8647 border between windows [not enabled]. | |
8648 | |
8649 * w32term.h (struct w32_output): Add member horizontal_drag_cursor. | |
8650 | |
8651 * w32fns.c (Fx_create_frame): Reintroduce the call to | |
8652 face-set-after-frame-defaults. | |
8653 (Vx_window_horizontal_drag_shape): New variable. | |
8654 (syms_of_xfns): DEFVAR_LISP it. | |
8655 (x_set_mouse_color): Create frame's horizontal_drag_cursor [not | |
8656 enabled]. | |
8657 | |
8658 2000-12-02 Simon Josefsson <simon@josefsson.org> | |
8659 | |
8660 * fns.c (Fmd5): Use a different logic to decide the coding system | |
8661 to use. | |
8662 | |
8663 * coding.h (Qwrite_region, Qcoding_system_error): Declare extern. | |
8664 | |
8665 2000-12-02 Eli Zaretskii <eliz@is.elta.co.il> | |
8666 | |
8667 * fileio.c (Fread_file_name) [DOS_NT]: Don't crash if homedir is NULL. | |
8668 | |
8669 2000-12-01 Gerd Moellmann <gerd@gnu.org> | |
8670 | |
8671 * xterm.c (x_calc_absolute_position): Don't subtract menubar's | |
8672 height for YNegative. | |
8673 (x_calc_absolute_position) [USE_MOTIF]: Use the column widget's | |
8674 height; also see comment there. | |
8675 | |
8676 * window.c (coordinates_in_window): Handle computations for | |
8677 positions on the vertical bar and fringes differently for | |
8678 window-system frames. Consider some pixels near the vertical bar | |
8679 as on the bar if the frame doesn't have vertical scroll bars. | |
8680 Associate positions between mode or header lines with the | |
8681 right window, the left one. | |
8682 | |
8683 2000-12-01 Jason Rumney <jasonr@gnu.org> | |
8684 | |
8685 * w32term.c (w32_clear_window): Avoid clearing an invalid frame. | |
8686 | |
8687 * w32xfns.c (get_frame_dc): Avoid changing the palette on an | |
8688 invalid frame. | |
8689 | |
8690 2000-12-01 Gerd Moellmann <gerd@gnu.org> | |
8691 | |
8692 * window.c (struct saved_window): Add members orig_top and orig_height. | |
8693 (SAVED_WINDOW_VECTOR_SIZE): Increment to 16. | |
8694 (save_window_save, Fset_window_configuration): Save/restore | |
8695 window's orig_top and orig_height. | |
8696 | |
8697 2000-12-01 Jason Rumney <jasonr@gnu.org> | |
8698 | |
8699 * w32term.c (x_draw_vertical_border): Fix call to w32_fill_rect. | |
8700 | |
8701 * w32fns.c (x_set_cursor_color): Fix last change. | |
8702 | |
8703 2000-11-30 Gerd Moellmann <gerd@gnu.org> | |
8704 | |
8705 * xdisp.c (echo_area_display): If cursor is in the echo area, make | |
8706 sure that the next redisplay displays the minibuffer, so that | |
8707 the cursor will be replaced with what the minibuffer wants. | |
8708 | |
8709 * xterm.c: Test USE_TOOLKIT_SCROLL_BARS everywhere with #ifdef and | |
8710 #ifndef instead of using #if. | |
8711 (XTread_socket) [USE_MOTIF] <KeyPress>: Call XmIsScrollBar only if | |
8712 USE_TOOLKIT_SCROLL_BARS is defined. | |
8713 | |
8714 2000-11-30 Jason Rumney <jasonr@gnu.org> | |
8715 | |
8716 * w32fns.c (x_set_cursor_color): Use x_update_cursor instead of | |
8717 x_display_cursor. | |
8718 | |
8719 2000-11-30 Gerd Moellmann <gerd@gnu.org> | |
8720 | |
8721 * fns.c (Fmd5): Doc fix. | |
8722 | |
8723 2000-11-30 Simon Josefsson <simon@josefsson.org> | |
8724 | |
8725 * fns.c (Fmd5): New function. | |
8726 (syms_of_fns): Defsubr md5. | |
8727 | |
8728 * Makefile.in (obj): Add md5.o | |
8729 | |
8730 2000-11-30 Gerd Moellmann <gerd@gnu.org> | |
8731 | |
8732 * md5.h, md5.c: New files, taken from glibc. | |
8733 | |
8734 * xmenu.c (popup_get_selection): Use xmalloc instead of malloc. | |
8735 | |
8736 * xterm.c (x_estimate_mode_line_height): If `mode-line' face | |
8737 hasn't a font, use that of the frame, as drawing glyphs does. | |
8738 | |
8739 2000-11-29 Stefan Monnier <monnier@cs.yale.edu> | |
8740 | |
8741 * eval.c (Frun_hooks): Allow 0 arguments. | |
8742 | |
8743 2000-11-29 Gerd Moellmann <gerd@gnu.org> | |
8744 | |
8745 * xterm.c (XTmouse_position) [USE_X_TOOLKIT]: When the mouse | |
8746 is over the menu bar widget, say it's not on the frame. | |
8747 | |
8748 * xfns.c (Fx_create_frame): Reintroduce the call to | |
8749 face-set-after-frame-defaults. | |
8750 | |
8751 * eval.c (Fsignal): Reset handling_signal. | |
8752 | |
8753 2000-11-28 Jason Rumney <jasonr@gnu.org> | |
8754 | |
8755 * w32menu.c (add_menu_item): Reset menu item text when changing | |
8756 type to radio button. | |
8757 | |
8758 2000-11-28 Gerd Moellmann <gerd@gnu.org> | |
8759 | |
8760 * xselect.c: Update copyright. | |
8761 | |
8762 * window.c (coordinates_in_window): If on a mode or header line, | |
8763 but sufficiently close to its start, return ``on vertical | |
8764 border''. This gives us a way to drag windows horizontally when | |
8765 using toolkit scroll bars. | |
8766 | |
8767 * xterm.c (note_mouse_highlight): Change the cursor shape | |
8768 on the vertical border between windows. | |
8769 | |
8770 * xterm.h (struct x_output): Add member horizontal_drag_cursor. | |
8771 | |
8772 * xfns.c (Vx_window_horizontal_drag_shape): New variable. | |
8773 (syms_of_xfns): DEFVAR_LISP it. | |
8774 (x_set_mouse_color): Create frame's horizontal_drag_cursor. | |
8775 | |
8776 * textprop.c (text_read_only): New function. | |
8777 (verify_interval_modification): Use it instead of signaling | |
8778 `text-read-only'. This makes it easier to catch this error | |
8779 with a breakpoint.: | |
8780 | |
8781 * xdisp.c (forward_to_next_line_start): Check for newlines, | |
8782 not end of line, which includes CR. | |
8783 | |
8784 2000-11-28 Kenichi Handa <handa@etl.go.jp> | |
8785 | |
8786 * coding.c (Ffind_coding_systems_region_internal): Be sure to | |
8787 include no-conversion. | |
8788 | |
8789 2000-11-27 Jason Rumney <jasonr@gnu.org> | |
8790 | |
8791 * w32fns.c (w32_load_system_font): Always mark font as double byte | |
8792 if codepage is unicode. | |
8793 | |
8794 2000-11-27 Gerd Moellmann <gerd@gnu.org> | |
8795 | |
8796 * xdisp.c (forward_to_next_line_start): If already on a newline, | |
8797 just consume it to avoid unintended skipping over invisible text below. | |
8798 | |
8799 * keyboard.c (lucid_event_type_list_p): Handle `help-echo', | |
8800 `vertical-line', `mode-line' and `header-line' events. | |
8801 | |
8802 * xdisp.c (try_window_id): Avoid starting to display in the middle | |
8803 of a character, a TAB for instance. This is easier than to set | |
8804 up the iterator exactly, and it's not a frequent case, so the | |
8805 additional effort wouldn't really pay off. | |
8806 | |
8807 2000-11-26 Andrew Choi <akochoi@i-cable.com> | |
8808 | |
8809 * emacs.c (main) [macintosh]: Call syms_of_frame before calling | |
8810 init_window_once. | |
8811 | |
8812 2000-11-25 Jason Rumney <jasonr@gnu.org> | |
8813 | |
8814 * keyboard.c (make_lispy_event) [mouse_wheel, drag_n_drop]: | |
8815 Args to window_from_coordinates should be pixel coordinates. | |
8816 | |
8817 * w32fns.c (x_to_w32_font): Do not filter out italic fonts, as new | |
8818 redisplay handles them properly. | |
8819 | |
8820 2000-11-25 Miles Bader <miles@gnu.org> | |
8821 | |
8822 * indent.c (compute_motion): Keep pos_byte in sync with pos. | |
8823 | |
8824 2000-11-24 Jason Rumney <jasonr@gnu.org> | |
8825 | |
8826 * w32.c (init_environment): Set LANG environment variable based on | |
8827 locale settings, if not set. | |
8828 | |
8829 * w32fns.c (x_set_tool_bar_lines): Clear internal border when | |
8830 making tool bar smaller. When clearing the frame, also | |
8831 clear current matrices. Clear frame when tool bar disappears. | |
8832 Don't use more lines for the tool-bar than is available. | |
8833 (x_change_window_heights): New function. | |
8834 | |
8835 2000-11-24 Gerd Moellmann <gerd@gnu.org> | |
8836 | |
8837 * xdisp.c (init_from_display_pos): If POS says we're already after | |
8838 an overlay string ending at POS, make sure to pop the iterator | |
8839 because it will be in front of that overlay string. When POS is | |
8840 ZV, we've thereby also ``processed'' overlay strings at ZV. | |
8841 | |
8842 * xfaces.c (lface_from_face_name): Function comment fix. | |
8843 | |
8844 2000-11-24 Miles Bader <miles@gnu.org> | |
8845 | |
8846 * xdisp.c (display_menu_bar, display_mode_line): Change the way we | |
8847 apply `mode-line-inverse-video' -- zero means force display using | |
8848 the default face, non-zero means display using the specialized face. | |
8849 (syms_of_xdisp): `mode-line-inverse-video' defaults to true again. | |
8850 | |
8851 2000-11-23 Kenichi Handa <handa@etl.go.jp> | |
8852 | |
8853 * alloc.c (Fmake_string): Use MAX_MULTIBYTE_LENGTH, instead of | |
8854 hard coded `4'. | |
8855 | |
8856 2000-11-23 Eli Zaretskii <eliz@is.elta.co.il> | |
8857 | |
8858 * coding.c (decode_coding_emacs_mule): Fix the case of | |
8859 CODING_EOL_LF, which used uninitialized value of c. | |
8860 | |
8861 2000-11-23 Stefan Monnier <monnier@cs.yale.edu> | |
8862 | |
8863 * xdisp.c (syms_of_xdisp): Make fontification-functions buffer-local. | |
8864 | |
8865 2000-11-22 Gerd Moellmann <gerd@gnu.org> | |
8866 | |
8867 * buffer.c (Fmake_indirect_buffer): Don't treat nil as a | |
8868 buffer object. | |
8869 | |
8870 * frame.h (struct frame): Replace desired_tool_bar_items, | |
8871 current_tool_bar_items, n_desired_tool_bar_items, | |
8872 n_current_tool_bar_items with tool_bar_items and n_tool_bar_items. | |
8873 | |
8874 * frame.c (make_frame): Change initialization of tool bar | |
8875 items accordingly. | |
8876 | |
8877 * xterm.c (x_handle_tool_bar_click, note_tool_bar_highlight): | |
8878 Change references to members deleted from struct frame to use the | |
8879 new ones. | |
8880 | |
8881 * xdisp.c (update_tool_bar, build_desired_tool_bar_string): Change | |
8882 references to members deleted from struct frame to use the new ones. | |
8883 | |
8884 * dispnew.c (update_frame): Do nothing with frame's tool bar items. | |
8885 | |
8886 * alloc.c (mark_object) <frame>: Mark tool bar items differently. | |
8887 | |
8888 * w32term.c (x_tool_bar_item, w32_handle_tool_bar_click) | |
8889 (note_tool_bar_highlight): Change references to members deleted | |
8890 from struct frame to use the new ones. | |
8891 | |
8892 2000-11-23 Miles Bader <miles@gnu.org> | |
8893 | |
8894 * xdisp.c (display_menu_bar): Or `mode-line-inverse-video' with | |
8895 the face's inverse-video attribute, rather than overriding it. | |
8896 | |
8897 2000-11-22 Gerd Moellmann <gerd@gnu.org> | |
8898 | |
8899 * xfns.c (x_set_tool_bar_lines): Clear internal border when | |
8900 making tool bar smaller. | |
8901 | |
8902 2000-11-22 Dave Love <fx@gnu.org> | |
8903 | |
8904 * s/sol2-5.h (_LARGEFILE_SOURCE, _FILE_OFFSET_BITS): Don't define. | |
8905 | |
8906 2000-11-22 Miles Bader <miles@gnu.org> | |
8907 | |
8908 * keyboard.c (Vminibuffer_message_timeout): New variable. | |
8909 (command_loop_1): Use it to determine message timeout. | |
8910 (syms_of_keyboard): Initialize it. | |
8911 | |
8912 * xdisp.c (syms_of_xdisp): `mode-line-inverse-video' defaults to nil. | |
8913 | |
8914 2000-11-22 Kenichi Handa <handa@etl.go.jp> | |
8915 | |
8916 * sysdep.c: Move the code for declaring h_errno after #include | |
8917 <netdb.h>. | |
8918 | |
8919 2000-11-21 Gerd Moellmann <gerd@gnu.org> | |
8920 | |
8921 * xfns.c (Fx_hide_tip) [USE_LUCID]: Add a hack to redisplay | |
8922 the menu bar when the tooltip is unmapped. | |
8923 | |
8924 * buffer.c (Fkill_buffer): Notice if the buffer to kill is the | |
8925 sole visible buffer when we're currently in the mini-buffer, and | |
8926 give up if so. | |
8927 | |
8928 2000-11-21 Jason Rumney <jasonr@gnu.org> | |
8929 | |
8930 * w32select.c (Fw32_set_clipboard_data): Save a copy of what is | |
8931 put on the clipboard. | |
8932 (Fw32_get_clipboard_data): Compare data on clipboard with saved | |
8933 copy of what Emacs last put there. If they are the same, do not | |
8934 use the clipboard copy to avoid losing data due to coding conversions. | |
8935 | |
8936 2000-11-22 Miles Bader <miles@gnu.org> | |
8937 | |
8938 * minibuf.c (Vminibuffer_prompt_properties): New variable. | |
8939 (syms_of_minibuf): Initialize it. | |
8940 (read_minibuf): Add properties from Vminibuffer_prompt_properties | |
8941 to prompt, don't make read-only. | |
8942 | |
8943 2000-11-21 Gerd Moellmann <gerd@gnu.org> | |
8944 | |
8945 * bytecode.c (Fbyte_code) <Bvarbind, Bunwind_protect>: | |
8946 Add BEFORE/AFTER_POTENTIAL_GC. | |
8947 | |
8948 * s/hpux10.h (_FILE_OFFSET_BITS): Undef. | |
8949 | |
8950 * buffer.c (mmap_free_1): Avoid a compiler warning. | |
8951 | |
8952 * term.c, cm.c: Don't try to include termcap.h; see comment there. | |
8953 | |
8954 2000-11-21 Kenichi Handa <handa@etl.go.jp> | |
8955 | |
8956 * s/sol2-5.h: Move #undef USE_MMAP_FOR_BUFFERS out of #if 0 | |
8957 ... #endif scope. | |
8958 | |
8959 2000-11-20 Gerd Moellmann <gerd@gnu.org> | |
8960 | |
8961 * xfns.c (x_create_tip_frame): Use CWSaveUnder only if the | |
8962 screen supports it. | |
8963 | |
8964 * s/gnu-linux.h: Don't use `#cpu'. | |
8965 | |
8966 * buffer.c (MAP_FAILED): Define it as `((void *) -1)' if it's | |
8967 not defined in mman.h. | |
8968 | |
8969 * xterm.c (scroll_bar_windows, scroll_bar_windows_size): New variables. | |
8970 (x_send_scroll_bar_event): Store the window in scroll_bar_windows | |
8971 and store an index in the XClientMessageEvent. Storing a | |
8972 Lisp_Object or pointer can fail on a 64 bit system, since X only | |
8973 transfers 32 bits. | |
8974 (x_scroll_bar_to_input_event): Get the window from scroll_bar_windows. | |
8975 | |
8976 2000-11-20 Dave Love <fx@gnu.org> | |
8977 | |
8978 * Makefile.in (LIBX): Reorder for -lX11 after -lXpm. | |
8979 | |
8980 2000-11-20 Gerd Moellmann <gerd@gnu.org> | |
8981 | |
8982 * s/sol2-5.h (USE_MMAP_FOR_BUFFERS): Undefine. | |
8983 | |
8984 2000-11-20 Kenichi Handa <handa@etl.go.jp> | |
8985 | |
8986 * charset.c (get_new_private_charset_id): Don't limit CHARSET_ID | |
8987 by WIDTH. | |
8988 | |
8989 * alloc.c (make_string): Fix previous change. Be sure to make | |
8990 unibyte string correctly. | |
8991 | |
8992 2000-11-19 Gerd Moellmann <gerd@gnu.org> | |
8993 | |
8994 * window.c (Fwindow_list): Change parameter list to be XEmacs | |
8995 compatible. | |
8996 (window_list_1): New function. | |
8997 (window_loop): Use it instead of Fwindow_list. | |
8998 | |
8999 * sysdep.c (emacs_ospeed): New variable. | |
9000 (toplevel): Don't declare ospeed extern. | |
9001 (init_baud_rate): Use emacs_ospeed instead of ospeed. | |
9002 | |
9003 * termcap.c (ospeed): Remove. | |
9004 (tputs) [!emacs]: Remove unused code. | |
9005 (tgetent): Avoid a compiler warning. | |
9006 | |
9007 * xterm.c (x_set_toolkit_scroll_bar_thumb, x_scroll_bar_create) | |
9008 (x_scroll_bar_remove, XTset_vertical_scroll_bar): Call | |
9009 SCROLL_BAR_X_WIDGET with additional argument DPY. | |
9010 | |
9011 * xterm.h (struct scroll_bar): Members x_widget_low, x_widget_high | |
9012 removed. | |
9013 (SCROLL_BAR_X_WIDGET): Get the widget via XtWindowToWidget. | |
9014 Take the X display as additional argument. | |
9015 (SET_SCROLL_BAR_X_WIDGET): Store the window of the widget, since | |
9016 `Widget' is a pointer type that's not easily stored in Lisp_Object | |
9017 form in a portable way. | |
9018 | |
9019 * dispnew.c (update_text_area): Fix last change. | |
9020 | |
9021 2000-11-18 Gerd Moellmann <gerd@gnu.org> | |
9022 | |
9023 * xdisp.c: Use BINDING_STACK_SIZE throughout. | |
9024 | |
9025 * xfns.c (x_set_tool_bar_lines): When clearing the frame, also | |
9026 clear current matrices. | |
9027 | |
9028 * buffer.c (mmap_enlarge): Don't print a message on stderr | |
9029 if mapping new memory at the end of the existing region fails. | |
9030 | |
9031 * dispnew.c (update_text_area): Don't skip over equal glyphs | |
9032 when the last current glyph overlaps the glyph to its right. | |
9033 | |
9034 2000-11-18 Miles Bader <miles@gnu.org> | |
9035 | |
9036 * xdisp.c (message_log_check_duplicate): Let "..."-detection match | |
9037 lines that *end* with "..." too (that's the most common case!). | |
9038 | |
9039 2000-11-18 Gerd Moellmann <gerd@gnu.org> | |
9040 | |
9041 * xdisp.c (resize_mini_window): Temporarily change to the | |
9042 mini-window's buffer if necessary. | |
9043 | |
9044 * xfns.c (Fx_show_tip): Use default y-offset of -10 so that | |
9045 the tooltip obscures less text under it. | |
9046 | |
9047 2000-11-17 Gerd Moellmann <gerd@gnu.org> | |
9048 | |
9049 * puresize.h (BASE_PURESIZE): Increase to 700000. | |
9050 | |
9051 2000-11-18 Jason Rumney <jasonr@gnu.org> | |
9052 | |
9053 * w32term.c (w32_draw_bitmap): Use face to set colors. | |
9054 | |
9055 2000-11-17 Dave Love <fx@gnu.org> | |
9056 | |
9057 * lread.c (Fload): Fix #ifdef for pcc. | |
9058 | |
9059 2000-11-17 Gerd Moellmann <gerd@gnu.org> | |
9060 | |
9061 * xdisp.c (pos_visible_p): Compute the default character height | |
9062 differently. | |
9063 | |
9064 2000-11-16 Gerd Moellmann <gerd@gnu.org> | |
9065 | |
9066 * xdisp.c (pos_visible_p): Handle case that we reach ZV without | |
9067 knowing the line's height; use the default font's height in that case. | |
9068 | |
9069 * xfaces.c (weight_table): Add `demi' with the same meaning as | |
9070 `demibold'. | |
9071 | |
9072 2000-11-16 Kenichi Handa <handa@etl.go.jp> | |
9073 | |
9074 * dispnew.c (null_row): New global static variable. | |
9075 (clear_glyph_row): Delete local static variable null_row. | |
9076 | |
9077 2000-11-15 Jason Rumney <jasonr@gnu.org> | |
9078 | |
9079 * w32term.c (HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): New constant. | |
9080 (w32_alloc_lighter_color): Use new brightness calculations from | |
9081 xterm.c. Scale delta to be in the range expected by W32. | |
9082 (w32_draw_relief_rect): Use frame relief colors. | |
9083 | |
9084 2000-11-15 Gerd Moellmann <gerd@gnu.org> | |
9085 | |
9086 * frame.c (syms_of_frame_1): Removed; code moved to syms_of_frame. | |
9087 (Qinhibit_default_face_x_resources): New variable. | |
9088 (syms_of_frame): Initialize it. | |
9089 (Fmodify_frame_parameters): Bind inhibit-default-face-x-resources. | |
9090 | |
9091 * xdisp.c (pos_visible_p): Improve function comment. | |
9092 | |
9093 * lisp.h (BINDING_STACK_SIZE): New macro. | |
9094 | |
9095 * dired.c (directory_files_internal) [EAGAIN || EINTR]: Retry | |
9096 reading the directory if readdir returns null and errno is EAGAIN | |
9097 or EINTR. | |
9098 | |
9099 2000-11-14 Stefan Monnier <monnier@cs.yale.edu> | |
9100 | |
9101 * xdisp.c (try_scrolling): Set scroll_max to max of scroll_* args | |
9102 so setting scroll-step to 1 doesn't defeat scroll-conservatively. | |
9103 Set amount_to_scroll to max of dx and scroll_step so that | |
9104 scroll-conservatively doesn't defeat scroll-step>1. | |
9105 (syms_of_xdisp): Add a hint in scroll-step's docstring to use | |
9106 scroll-conservatively for line-at-a-time scrolling. | |
9107 | |
9108 2000-11-14 Gerd Moellmann <gerd@gnu.org> | |
9109 | |
9110 * window.c (Fpos_visible_in_window_p): Call pos_visible with | |
9111 extra argument. | |
9112 | |
9113 * xdisp.c (current_mode_line_height, current_header_line_height): | |
9114 New variables. | |
9115 (init_xdisp): Initialize them. | |
9116 (pos_visible_p): Add parameter EXACT_MODE_LINE_HEIGHTS_P. Compute | |
9117 and use exact mode line heights if it is set. | |
9118 | |
9119 * lisp.h (pos_visible_p): Change prototype. | |
9120 | |
9121 * dispextern.h (CURRENT_MODE_LINE_HEIGHT) | |
9122 (CURRENT_HEADER_LINE_HEIGHT): Look at current_mode_line_height | |
9123 and current_header_line_height first. | |
9124 (current_mode_line_height, current_header_line_height): | |
9125 Declare extern. | |
9126 | |
9127 2000-11-14 Miles Bader <miles@lsi.nec.co.jp> | |
9128 | |
9129 * xterm.c (x_alloc_lighter_color): Use real brightness calculation. | |
9130 Just use FACTOR/2 instead of HIGHLIGHT_COLOR_DARK_BOOST. | |
9131 (HIGHLIGHT_COLOR_DARK_BOOST): Macro removed. | |
9132 | |
9133 2000-11-14 Miles Bader <miles@gnu.org> | |
9134 | |
9135 * xterm.c (x_alloc_lighter_color): Include an additive component | |
9136 too for dark colors, because FACTOR isn't enough. | |
9137 (HIGHLIGHT_COLOR_DARK_BOOST, HIGHLIGHT_COLOR_DARK_BOOST_LIMIT): | |
9138 New macros. | |
9139 | |
9140 2000-11-13 Gerd Moellmann <gerd@gnu.org> | |
9141 | |
9142 * keyboard.c (show_help_echo): Call message3_nolog with number of | |
9143 bytes in the help string as 2nd parameter, instead of the number | |
9144 of characters. | |
9145 | |
9146 2000-11-13 Miles Bader <miles@gnu.org> | |
9147 | |
9148 * lread.c (openp): Return -2 instead of 0 for the `remote file' case. | |
9149 (Fload): Use new openp return protocol. | |
9150 Don't try to use Vload_source_file_function to load .elc files. | |
9151 * xfns.c (x_create_bitmap_from_file, x_find_image_file): Use new | |
9152 openp return protocol. | |
9153 * w32fns.c (x_create_bitmap_from_file, x_find_image_file): Likewise. | |
9154 | |
9155 2000-11-11 Kenichi Handa <handa@etl.go.jp> | |
9156 | |
9157 * syssignal.h: Pay attention to BROKEN_SIGAIO and BROKEN_SIGPTY. | |
9158 | |
9159 * m/ibmrs6000.h (BROKEN_SIGAIO, BROKEN_SIGPTY, BROKEN_SIGPOLL): | |
9160 Defined these macros. | |
9161 (NLIST_STRUCT): Avoid re-defining it. | |
9162 | |
9163 * s/hpux10.h (C_SWITCH_X_SYSTEM): Include -I/usr/include/X11R6 and | |
9164 -I/usr/contrib/X11R6/include. | |
9165 (LD_SWITCH_X_DEFAULT): Include -L/usr/lib/X11R6. | |
9166 | |
9167 2000-11-10 Jason Rumney <jasonr@gnu.org> | |
9168 | |
9169 * w32term.h (CP_8BIT, CP_UNICODE, CP_INVALID): New pseudo-codepages. | |
9170 | |
9171 * w32term.c (w32_encode_char): Handle CP_UNICODE specially. | |
9172 (w32_use_unicode_for_codepage): Use new pseudo-codepages. | |
9173 | |
9174 * w32fns.c (Qw32_charset_hangeul): Rename to match w32 headers. | |
9175 (Qw32_charset_vietnamese): New symbol. | |
9176 (xlfd_charset_of_font): New function. | |
9177 (w32_load_system_font): Use it. | |
9178 (x_to_w32_charset): Use Fassoc to find charset info. Special case | |
9179 when Vw32_charset_info_alist is nil to ensure default face always | |
9180 has font. Use Fcar and Fcdr for safety. | |
9181 (w32_to_x_charset): Use Vw32_charset_info_alist for mappings. | |
9182 (w32_codepage_for_font): Use xlfd_charset_of_font. Use new | |
9183 pseudo-codepages for special cases. | |
9184 (w32_to_x_font): New parameter to allow charset portion to be | |
9185 specified where there is many to one mapping. Callers changed. | |
9186 (w32_list_fonts): Avoid listing fonts that won't display. | |
9187 | |
9188 2000-11-10 Gerd Moellmann <gerd@gnu.org> | |
9189 | |
9190 * xfaces.c (Vface_alternative_font_registry_alist): New variable. | |
9191 (font_list_1): Renamed from font_list. | |
9192 (font_list): New function, trying alternative registries from | |
9193 Vface_alternative_font_registry_alist. | |
9194 (Finternal_set_alternative_font_registry_alist): New function. | |
9195 (syms_of_xfaces): Initialize and Staticpro | |
9196 Vface_alternative_font_registry_alist. | |
9197 Defsubr Finternal_set_alternative_font_registry_alist. | |
9198 | |
9199 2000-11-09 Ken Raeburn <raeburn@gnu.org> | |
9200 | |
9201 * lisp.h (Flooking_at): Declare. | |
9202 | |
9203 2000-11-09 Gerd Moellmann <gerd@gnu.org> | |
9204 | |
9205 * dired.c (directory_files_internal): Fix a braino. | |
9206 | |
9207 * dired.c (directory_files_internal): Add missing GCPRO's. | |
9208 Some cleanup. | |
9209 | |
9210 2000-11-08 Gerd Moellmann <gerd@gnu.org> | |
9211 | |
9212 * xdisp.c (syms_of_xdisp): Change doc of max-mini-window-height. | |
9213 (resize_mini_window): Return quickly if Vresize_mini_window is | |
9214 nil. Don't return if Vmax_mini_window_height is nil. | |
9215 | |
9216 * xdisp.c (Vresize_mini_window, Qgrow_only): New variables. | |
9217 (syms_of_xdisp): Initialize them. | |
9218 (resize_mini_window): Act according to the setting of | |
9219 Vresize_mini_window. | |
9220 (syms_of_xdisp): Initialize Vmenu_bar_update_hook to nil. | |
9221 | |
9222 * xterm.c (x_scroll_bar_create) [USE_TOOLKIT_SCROLL_BARS]: Map the | |
9223 scroll bar widget after configuring it, so that it will appear at | |
9224 the right position from the start. | |
9225 (XTredeem_scroll_bar): Cleaned up. | |
9226 | |
9227 2000-11-08 Kenichi Handa <handa@etl.go.jp> | |
9228 | |
9229 * xterm.c (VCENTER_BASELINE_OFFSET): Fix previous change. If the | |
9230 font is taller than the frame line, we don't have to bias the | |
9231 division by two. | |
9232 | |
9233 * w32term.c (VCENTER_BASELINE_OFFSET): Likewise. | |
9234 | |
9235 2000-11-07 Dave Love <fx@gnu.org> | |
9236 | |
9237 * config.in (HAVE_MKSTEMP): Add. | |
9238 | |
9239 * callproc.c (Fcall_process_region) [HAVE_MKSTEMP]: Use it. | |
9240 | |
9241 2000-11-07 Gerd Moellmann <gerd@gnu.org> | |
9242 | |
9243 * window.c (Fset_window_configuration): Don't try to preserve | |
9244 point in the current buffer, if that buffer is displayed in more | |
9245 than one window. | |
9246 | |
9247 * xfaces.c (lookup_named_face): If default face isn't realized, | |
9248 try to realize it. Return -1 if not successful. | |
9249 (Fx_list_fonts): Handle case that face cannot be determined. | |
9250 (Fface_font): Likewise. | |
9251 | |
9252 2000-11-06 Gerd Moellmann <gerd@gnu.org> | |
9253 | |
9254 * window.c (displayed_window_lines): Detect partially | |
9255 visible lines at the bottom correctly. | |
9256 | |
9257 2000-11-06 Stefan Monnier <monnier@cs.yale.edu> | |
9258 | |
9259 * fileio.c (Fwrite_region): Use `visiting' rather than `visit' | |
9260 when ensuring we don't do visit in indirect buffer. | |
9261 | |
9262 2000-11-06 Kenichi Handa <handa@etl.go.jp> | |
9263 | |
9264 * composite.h (compose_chars_in_text): Add prototype. | |
9265 | |
9266 * composite.c (Vcomposition_function_table): New variable. | |
9267 (Qcomposition_function_table): New variable. | |
9268 (run_composition_function): Call | |
9269 Vcompose_chars_after_function with three arguments. | |
9270 (compose_chars_in_text): New function. | |
9271 (syms_of_composite): Modified the doc-string of | |
9272 Vcompose_chars_after_function. Declare composition-function-table | |
9273 as a lisp variable, and initialize it. | |
9274 | |
9275 * xfns.c (x_encode_text): Suppress producing escape sequences for | |
9276 composition. | |
9277 | |
9278 * xselect.c: Include composite.h. | |
9279 (selection_data_to_lisp_data): Call compose_chars_in_text on STR. | |
9280 | |
9281 2000-11-05 Andrew Innes <andrewi@gnu.org> | |
9282 | |
9283 * w32term.c (x_produce_glyphs): Fix typo in enum name. | |
9284 | |
9285 * sysdep.c (read_input_waiting): Remove extraneous argument to | |
9286 read_socket_hook. | |
9287 | |
9288 * w32fns.c (Fx_server_version): Include w32_build_number in the | |
9289 return list. | |
9290 | |
9291 * w32heap.c (w32_build_number): New variable. | |
9292 (cache_system_info): Set it. | |
9293 | |
9294 * w32heap.h (w32_build_number): Add extern. | |
9295 | |
9296 * emacs.c (syms_of_emacs): Update docstring for | |
9297 system-configuration, to reflect the actual usage on MS-Windows. | |
9298 | |
9299 2000-10-31 Gerd Moellmann <gerd@gnu.org> | |
9300 | |
9301 * keyboard.c (read_char) <wrong_kboard>: Make sure that we | |
9302 process idle timers while waiting for another event. | |
9303 | |
9304 * dispnew.c (update_frame_line): Handle case where spaces in | |
9305 the default face are colored. | |
9306 | |
9307 * xdisp.c (redisplay_tool_bar): Don't set fonts_changed_p if | |
9308 window height hasn't changed. | |
9309 | |
9310 2000-10-31 Jason Rumney <jasonr@gnu.org> | |
9311 | |
9312 * w32term.c (x_produce_glyphs): Handle composite characters. | |
9313 (x_draw_glyph_string_foreground) | |
9314 (x_draw_composite_glyph_string_foreground): Restore old font. | |
9315 | |
9316 2000-10-31 Miles Bader <miles@lsi.nec.co.jp> | |
9317 | |
9318 * minibuf.c (read_minibuf): Reset the undo history just before | |
9319 starting the recursive-edit. | |
9320 | |
9321 2000-10-30 Gerd Moellmann <gerd@gnu.org> | |
9322 | |
9323 * xfaces.c (menu_face_change_count): New variable. | |
9324 (Finternal_set_lisp_face_attribute): Increment it for changes | |
9325 of the `menu' face. | |
9326 (realize_basic_faces): Reflect changes in the `menu' faces | |
9327 in menu bars. | |
9328 | |
9329 * xdisp.c (try_scrolling) <PT >= scroll_margin_pos>: Add 1 to the | |
9330 dy obtained from the iterator's y-position after moving from | |
9331 scroll_margin_pos to PT; see comment there. | |
9332 | |
9333 * xdisp.c (safe_eval_handler): Call add_to_log. | |
9334 | |
9335 * xfaces.c (resolve_face_name): Handle case that FACE_NAME | |
9336 is not a symbol or string. | |
9337 | |
9338 * xdisp.c (echo_area_display): Don't perform a display update from | |
9339 inside redisplay. The update will happen anyway at the end of | |
9340 redisplay, and it can confuse redisplay (GC messages while | |
9341 redisplaying, for instance.) | |
9342 | |
9343 2000-10-30 Stefan Monnier <monnier@cs.yale.edu> | |
9344 | |
9345 * xrdb.c (x_load_resources): Use the class name in the defaults. | |
9346 | |
9347 * regex.c (re_iswctype, re_wctype_to_bit): Fix braino. | |
9348 (regex_compile): Catch bogus \(\1\). | |
9349 | |
9350 2000-10-30 Gerd Moellmann <gerd@gnu.org> | |
9351 | |
9352 * xterm.c (x_alloc_nearest_color): Fix last change to compare | |
9353 RGB values. | |
9354 | |
9355 * xterm.c (x_alloc_nearest_color): If allocation succeeds, and | |
9356 we have a color cache, check that the cached color equals the | |
9357 allocated color. If not, clear the color cache. | |
9358 | |
9359 * window.c (displayed_window_lines): Change buffers if necessary. | |
9360 Fix computation of displayed lines. | |
9361 | |
9362 * keyboard.c (syms_of_keyboard): Change DEFVAR_LISP of | |
9363 update_menu_bindings to DEFVAR_BOOL. | |
9364 | |
9365 2000-10-30 Kenichi Handa <handa@etl.go.jp> | |
9366 | |
9367 * search.c (Fset_match_data): Be sure to make search_regs always sane. | |
9368 | |
9369 * puresize.h (BASE_PURESIZE): Increase to 680000. | |
9370 | |
9371 * fns.c (Foptimize_char_table): Fix arg for CHARSET_DIMENSION. | |
9372 | |
9373 2000-10-29 Jason Rumney <jasonr@gnu.org> | |
9374 | |
9375 * w32term.h (FONT_DESCENT): Negate descent of BDF fonts. | |
9376 | |
9377 * w32term.c (w32_bdf_per_char_metric): Negate descent. | |
9378 (w32_cache_char_metrics): Handle possibility that 'x' does not | |
9379 exist in a BDF font. | |
9380 (W32_TEXTOUT): w32_BDF_TextOut wants number of bytes not chars. | |
9381 | |
9382 * w32bdf.h (bdffont): Add nchars. | |
9383 | |
9384 * w32bdf.c (set_bdf_font_info): Set it. | |
9385 (w32_BDF_TextOut): Swap byte order of double byte characters. | |
9386 (w32_load_bdf_font): Set double_byte_p based on bdf_font->nchars. | |
9387 | |
9388 2000-10-28 Eli Zaretskii <eliz@is.elta.co.il> | |
9389 | |
9390 * frame.c (Fframe_parameters): Fix the change from 2000-10-16: | |
9391 don't override the colors in frame's param_alist, unless they are | |
9392 unspecified. | |
9393 | |
9394 * term.c (reassert_line_highlight): If inverse_video is non-zero, | |
9395 reverse the effect of the highlight flag. | |
9396 | |
9397 2000-10-27 Ken Raeburn <raeburn@gnu.org> | |
9398 | |
9399 * window.h (Fwindow_live_p): Declare. | |
9400 | |
9401 * undo.c (record_delete): Check that last_undo_buffer is really a | |
9402 buffer before applying XBUFFER to it. | |
9403 | |
9404 * keymap.c (where_is_internal): Pass lisp object, not integer, to | |
9405 Faref. | |
9406 | |
9407 2000-10-27 Stefan Monnier <monnier@cs.yale.edu> | |
9408 | |
9409 * lisp.h (KEYMAPP): New macro. | |
9410 (get_keymap): Remove. | |
9411 (get_keymap_1): Rename get_keymap. | |
9412 | |
9413 * keyboard.h (get_keymap_1, Fkeymapp): Remove prototype. | |
9414 | |
9415 * xterm.c (note_mode_line_highlight): Use KEYMAPP. | |
9416 | |
9417 * xmenu.c (single_submenu): Use KEYMAPP. | |
9418 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp. | |
9419 Use KEYMAPP rather than Fkeymapp. | |
9420 | |
9421 * w32term.c (note_mode_line_highlight): Use KEYMAPP. | |
9422 | |
9423 * w32menu.c (True, False): Remove (use TRUE and FALSE instead). | |
9424 (Fx_popup_menu): Fetch keymaps rather than checking Fkeymapp. | |
9425 Use KEYMAPP rather than Fkeymapp. | |
9426 (single_submenu): Use KEYMAPP. | |
9427 (w32_menu_show, w32_dialog_show): Use TRUE. | |
9428 | |
9429 * minibuf.c (Fread_from_minibuffer): Update call to get_keymap. | |
9430 | |
9431 * keymap.c (KEYMAPP): Remove (moved to lisp.h). | |
9432 (Fkeymapp): Use KEYMAPP. | |
9433 (get_keymap): Rename from get_keymap_1. Remove old def. | |
9434 Return t when autoload=0 and error=0 and the keymap needs autoloading. | |
9435 (Fcopy_keymap): Check (eq (car x) 'keymap) rather than using Fkeymapp. | |
9436 (Fminor_mode_key_binding): Don't raise an error if the binding | |
9437 is not a keymap. | |
9438 (Fuse_global_map, Fuse_local_map): Allow autoloading. | |
9439 (Faccessible_keymaps): Fetch keymaps rather than checking Fkeymapp. | |
9440 | |
9441 * keyboard.c (read_char): get_keymap_1 -> get_keymap. | |
9442 Allow Vspecial_event_map to be autoloaded. | |
9443 (menu_bar_items): Fetch the keymap rather than using keymapp. | |
9444 (menu_bar_one_keymap): No need to follow func-indirect any more. | |
9445 (parse_menu_item): get_keymap_1 -> get_keymap. | |
9446 (tool_bar_items): Fetch the keymap rather than using keymapp. | |
9447 (read_key_sequence): Use KEYMAPP. | |
9448 | |
9449 * intervals.c (get_local_map): Use get_keymap rather than following | |
9450 function-indirections explicitly. | |
9451 | |
9452 * doc.c (Fsubstitute_command_keys): get_keymap_1 -> get_keymap. | |
9453 | |
9454 2000-10-27 Jason Rumney <jasonr@gnu.org> | |
9455 | |
9456 * w32fns.c (Fx_create_frame): Make default fontsize on w32 10 | |
9457 point, as Windows has oversized fonts. | |
9458 | |
9459 * fontset.c (syms_of_fontset) [WINDOWSNT]: Likewise. | |
9460 | |
9461 2000-10-27 Gerd Moellmann <gerd@gnu.org> | |
9462 | |
9463 * gmalloc.c [GC_MCHECK]: Add code from mcheck.c of glibc-1.09.1. | |
9464 (freehook, reallochook): Handle null pointer arguments. | |
9465 (__malloc_initialize) [GC_MCHECK]: Call mcheck. | |
9466 | |
9467 2000-10-27 Stefan Monnier <monnier@cs.yale.edu> | |
9468 | |
9469 * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal) | |
9470 (re_match_2_internal, re_match_2_internal, re_match_2_internal): | |
9471 Giving in to popular pressure to shut up the compiler with casts. | |
9472 | |
9473 2000-10-27 Gerd Moellmann <gerd@gnu.org> | |
9474 | |
9475 * xterm.c (x_draw_glyph_string): Treat XA_UNDERLINE_POSITION as a | |
9476 signed value, and use a default value computed from the font's | |
9477 maximum descent. | |
9478 | |
9479 2000-10-27 Miles Bader <miles@lsi.nec.co.jp> | |
9480 | |
9481 * xterm.c (x_draw_glyph_string): Add a workaround so that fonts | |
9482 that specify a negative underline position can still use underlines. | |
9483 | |
9484 * window.c (Fpos_visible_in_window_p): Make POS default to | |
9485 WINDOW's point, not the current buffer's point. | |
9486 | |
9487 2000-10-26 Dave Love <fx@gnu.org> | |
9488 | |
9489 * s/sol2-5.h: Don't define SYSTEM_MALLOC so that we can find out | |
9490 when it's necessary. | |
9491 | |
9492 2000-10-26 Gerd Moellmann <gerd@gnu.org> | |
9493 | |
9494 * window.c (size_window): Compute size difference from sum of old | |
9495 child window sizes instead of from parent's size. | |
9496 | |
9497 * xdisp.c (pos_visible_p): Change current buffer if necessary. | |
9498 Handle obscured lines at the top of the window. | |
9499 | |
9500 * frame.c (Fdelete_frame): Doc fix. Move running the hook | |
9501 down after the last error condition check. | |
9502 | |
9503 * frame.c (Fdelete_frame): Run delete-frame-hook. | |
9504 | |
9505 2000-10-26 Kenichi Handa <handa@etl.go.jp> | |
9506 | |
9507 * coding.c (decode_coding): Fix previous change (check also | |
9508 CODING_MODE_LAST_BLOCK). | |
9509 | |
9510 2000-10-25 Stefan Monnier <monnier@cs.yale.edu> | |
9511 | |
9512 * regex.c: More `unsigned char' -> `re_char' changes. | |
9513 Also change several `int' into `re_wchar_t'. | |
9514 (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove. | |
9515 (PUSH_FAILURE_POINTER): Don't cast any more. | |
9516 (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'. | |
9517 We want GCC to complain, since this piece of code makes | |
9518 re_match non-reentrant, which *should* be fixed. | |
9519 (GET_BUFFER_SPACE): Use size_t rather than unsigned long. | |
9520 (EXTEND_BUFFER): Use RETALLOC. | |
9521 (SET_LIST_BIT): Don't cast. | |
9522 (re_wchar_t): New type. | |
9523 (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC | |
9524 that those two functions will always properly return. | |
9525 (IMMEDIATE_QUIT_CHECK): Cast to void. | |
9526 (analyse_first): Use recursion rather than an explicit stack. | |
9527 (re_compile_fastmap): Can't fail anymore. | |
9528 (re_search_2): Don't check re_compile_fastmap for failure. | |
9529 (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT. | |
9530 Now also sets the new value (passed in a new argument). | |
9531 (re_match_2_internal): Use it. | |
9532 Also, use a new var `reg' of type size_t when looping through regs | |
9533 rather than reuse the inappropriate `mcnt'. | |
9534 | |
9535 * keymap.c (where_is_cache, where_is_cache_keymaps): New vars. | |
9536 (Fset_keymap_parent, store_in_keymap): Flush the where-is cache. | |
9537 (where_is_internal): Renamed from Fwhere_is_internal. | |
9538 Don't DEFUN any more. Arg `xkeymap' replaced by `keymaps'. | |
9539 (Fwhere_is_internal): New function wrapping where_is_internal. | |
9540 (where_is_internal_1): Handle the case where we're filling the cache. | |
9541 (syms_of_keymap): Init and gcpro the where_is_cache(|_keymaps). | |
9542 | |
9543 2000-10-25 Miles Bader <miles@gnu.org> | |
9544 | |
9545 * xdisp.c (pos_visible_p): Don't add `it.current_y' twice. | |
9546 | |
9547 2000-10-25 Gerd Moellmann <gerd@gnu.org> | |
9548 | |
9549 * window.c (pos_fully_visible_p): Removed. | |
9550 (Fpos_visible_in_window_p): Use pos_visible_p to determine | |
9551 if position is visible and/or fully visible. | |
9552 | |
9553 * lisp.h (pos_visible_p): Add prototype. | |
9554 | |
9555 * xdisp.c (pos_visible_p): New function. | |
9556 | |
9557 2000-10-25 Kenichi Handa <handa@etl.go.jp> | |
9558 | |
9559 * process.c (send_process): If OBJECT is t, it means that the data | |
9560 is from C string, but we should encode it. Before calling | |
9561 setup_raw_text_coding_system, be sure to flush out data by the | |
9562 previous coding system. | |
9563 | |
9564 2000-10-25 Miles Bader <miles@lsi.nec.co.jp> | |
9565 | |
9566 * buffer.c (overlays_at): Only let CHANGE_REQ inhibit an | |
9567 assignment of startpos to prev when startpos == pos. | |
9568 | |
9569 * editfns.c (find_field): Set the field stickiness correctly from | |
9570 overlay fields. Use renamed `text_property_stickiness'. | |
9571 (text_property_stickiness): Renamed from `char_property_stickiness'. | |
9572 Only check text properties, not overlays. | |
9573 * textprop.c (get_char_property_and_overlay): New function. | |
9574 (Fget_char_property): Use it. | |
9575 * intervals.h (get_char_property_and_overlay): Add declaration. | |
9576 | |
9577 2000-10-25 Stefan Monnier <monnier@cs.yale.edu> | |
9578 | |
9579 * keymap.c: Use AREF, ASET and ASIZE macros. | |
9580 (Fmake_sparse_keymap): Docstring fix. | |
9581 (synkey): Remove. | |
9582 (shadow_lookup): Move up. | |
9583 Handle the case where lookup-key returns an integer. | |
9584 (where_is_internal_1): Drop arg `keymap'. Don't check shadowing. | |
9585 (where_is_internal_2): Adapt to fewer args for where_is_internal_1. | |
9586 (Fwhere_is_internal): Allow `xkeymap' to be a list of keymaps. | |
9587 Simplify/rewrite the keymap-finding code. | |
9588 Add check for command shadowing, using shadow_lookup. | |
9589 | |
9590 2000-10-24 Stefan Monnier <monnier@cs.yale.edu> | |
9591 | |
9592 * keymap.c (fix_submap_inheritance): Use get_keymap_1 on parent_entry | |
9593 rather than KEYMAPP, to allow EQ to work correctly if parent_entry is | |
9594 a symbol. | |
9595 | |
9596 2000-10-24 Andrew Innes <andrewi@gnu.org> | |
9597 | |
9598 * dired.c (directory_files_internal_unwind): New function. | |
9599 (directory_files_internal): Use it to ensure closedir is called | |
9600 even if expand-file-name or file-attributes throw, eg. because of | |
9601 a user interrupt. Also enable immediate_quit while calling | |
9602 re_search, so that matching can be interrupted as well. | |
9603 | |
9604 2000-10-24 Andrew Innes <andrewi@gnu.org> | |
9605 | |
9606 * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on | |
9607 NT-Emacs only. | |
9608 (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT, | |
9609 so that re_search functions only quit when callers expect them to. | |
9610 | |
9611 2000-10-24 Kenichi Handa <handa@etl.go.jp> | |
9612 | |
9613 * regex.c (regex_compile): Change the way of handling a range from | |
9614 a char less than 256 to a char not less than 256. | |
9615 | |
9616 2000-10-24 Gerd Moellmann <gerd@gnu.org> | |
9617 | |
9618 * window.c (size_window): Prevent setting window's width or | |
9619 height to a negative value (esp. with XSETFASTINT). | |
9620 | |
9621 * gmalloc.c (state_protected_p, last_state_size, last_heapinfo) | |
9622 [GC_MALLOC_CHECK && GC_PROTECT_MALLOC_STATE]: New variables. | |
9623 (protect_malloc_state) [GC_MALLOC_CHECK && | |
9624 GC_PROTECT_MALLOC_STATE]: New function. | |
9625 (PROTECT_MALLOC_STATE): New macro. | |
9626 (__malloc_initialize, morecore, _malloc_internal) | |
9627 (_free_internal) _realloc_internal): Use it to make _heapinfo | |
9628 read-only outside of gmalloc. | |
9629 | |
9630 * keymap.c: Update copyright. | |
9631 | |
9632 * .gdbinit (xbacktrace): Handle case that $bt->function isn't | |
9633 a symbol. | |
9634 | |
9635 2000-10-24 Colin Walters <walters@cis.ohio-state.edu> | |
9636 | |
9637 * filelock.c (unlock_all_files): Use unlock_file to expand each | |
9638 buffer's file_truename before trying remove its lock file. | |
9639 | |
9640 2000-10-24 Eli Zaretskii <eliz@is.elta.co.il> | |
9641 | |
9642 * coding.c (decode_coding_emacs_mule): If coding->eol_type is CR | |
9643 or CRLF, decode EOLs. | |
9644 | |
9645 2000-10-24 Kenichi Handa <handa@etl.go.jp> | |
9646 | |
9647 * window.c (Fdisplay_buffer): Fix doc. | |
9648 | |
9649 2000-10-23 Jason Rumney <jasonr@gnu.org> | |
9650 | |
9651 * fontset.c (syms_of_fontset) [WINDOWSNT]: Special case for | |
9652 ASCII font of default fontset on Windows. | |
9653 | |
9654 * w32term.c (VCENTER_BASELINE_OFFSET): Bias division (see | |
9655 xterm.c comment below). | |
9656 | |
9657 * w32fns.c (x_to_w32_font): Initialize dpi from dpyinfo->resy. | |
9658 | |
9659 2000-10-23 Gerd Moellmann <gerd@gnu.org> | |
9660 | |
9661 * xterm.c (x_connection_closed): Reset handling_signal. | |
9662 | |
9663 * alloc.c (emacs_blocked_free) [GC_MALLOC_CHECK]: Handle freeing null. | |
9664 | |
9665 2000-10-23 Miles Bader <miles@gnu.org> | |
9666 | |
9667 * window.c (window_scroll_pixel_based, window_scroll_line_based): | |
9668 Pass nil for FULLY argument to Fpos_visible_in_window_p to | |
9669 maintain old behavior. | |
9670 * minibuf.c (Fminibuffer_complete): Likewise. | |
9671 | |
9672 2000-10-23 Miles Bader <miles@lsi.nec.co.jp> | |
9673 | |
9674 * xterm.c (VCENTER_BASELINE_OFFSET): Bias the division by two, so | |
9675 that when a font can't be exactly centered, it errs up rather than | |
9676 down. | |
9677 | |
9678 2000-10-23 ShengHuo ZHU <zsh@cs.rochester.edu> | |
9679 | |
9680 * fns.c (Fbase64_decode_string): The decoded result should be unibyte. | |
9681 | |
9682 2000-10-23 Andrew Choi <akochoi@i-cable.com> | |
9683 | |
9684 * dispextern.h [macintosh]: Include macgui.h instead of macterm.h. | |
9685 | |
9686 * dispnew.c [macintosh]: Include macterm.h. | |
9687 (init_display) [macintosh]: Initialization for window system. | |
9688 | |
9689 * emacs.c (main) [macintosh]: Call syms_of_textprop, | |
9690 syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm, | |
9691 syms_of_search, x_term_init, and init_keyboard before calling | |
9692 init_window_once. Also, call syms_of_xmenu. | |
9693 | |
9694 * fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of | |
9695 default fontset to Monaco. | |
9696 | |
9697 * frame.c [macintosh]: Include macterm.h. Remove declarations of | |
9698 NewMacWindow and DisposeMacWindow. | |
9699 (make_terminal_frame) [macintosh]: Call make_mac_terminal_frame | |
9700 instead of calling NewMacWindow and setting fields of | |
9701 f->output_data.mac directly. Call init_frame_faces. | |
9702 (Fdelete_frame) [macintosh]: Remove unused code. | |
9703 (Fmodify_frame_parameters) [macintosh]: Call | |
9704 x_set_frame_parameters instead of mac_set_frame_parameters. | |
9705 | |
9706 * frame.h [macintosh]: Define menu_bar_lines field in struct | |
9707 frame. Define FRAME_EXTERNAL_MENU_BAR macro. | |
9708 | |
9709 * keyboard.c [macintosh]: Include macterm.h. | |
9710 (kbd_buffer_get_event) [macintosh]: Generate delete_window_event | |
9711 and menu_bar_activate_event type events as for X and NT. | |
9712 (make_lispy_event) [macintosh]: Construct lisp events of type | |
9713 MENU_BAR_EVENT as for X and NT. | |
9714 | |
9715 * sysdep.c [macintosh]: Remove declaration for sys_signal. | |
9716 Include stdlib.h. Remove definition of Vx_bitmap_file_path. | |
9717 (sys_subshell) [macintosh]: Remove definition entirely. | |
9718 (init_sys_modes) [macintosh]: Do not initialize Vwindow_system and | |
9719 Vwindow_system_version here. Remove initialization of | |
9720 Vx_bitmap_file_path. | |
9721 (read_input_waiting): Correct the number of parameters passed to | |
9722 read_socket_hook. | |
9723 Move all Macintosh functions to mac/mac.c. | |
9724 | |
9725 * term.c [macintosh]: Include macterm.h. | |
9726 | |
9727 * window.c [macintosh]: Include macterm.h. | |
9728 | |
9729 * xdisp.c [macintosh]: Include macterm.h. Declare | |
9730 set_frame_menubar and pending_menu_activation. | |
9731 (echo_area_display) [macintosh]: Do not return if terminal frame | |
9732 is the selected frame. | |
9733 (update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f). | |
9734 Allow only the selected frame to set menu bar. | |
9735 (redisplay_window) [macintosh]: Obtain menu bar to redisplay by | |
9736 calling FRAME_EXTERNAL_MENU_BAR (f). | |
9737 (display_menu_bar) [macintosh]: Check FRAME_MAC_P (f). | |
9738 | |
9739 * xfaces.c [macintosh]: Include macterm.h. Define x_display_info | |
9740 and check_x. Declare XCreateGC. Define x_create_gc and | |
9741 x_free_gc. Initialize font_sort_order. | |
9742 (x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT, | |
9743 but call x_list_fonts instead of w32_list_fonts. | |
9744 (Finternal_face_x_get_resource) [macintosh]: Do not call | |
9745 display_x_get_resource. | |
9746 (prepare_face_for_display) [macintosh]: Set xgcv.font. | |
9747 (realize_x_face) [macintosh]: Load the font if it is specified in | |
9748 ATTRS. | |
9749 (syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed to Qt. | |
9750 | |
9751 2000-10-22 Stefan Monnier <monnier@cs.yale.edu> | |
9752 | |
9753 * keymap.c (fix_submap_inheritance): Don't do anything if parent_entry | |
9754 is nil: since we go to the end of submap anyway, we'd end up | |
9755 setting nil to nil. | |
9756 (access_keymap): Don't use KEYMAPP on meta_map since KEYMAPP | |
9757 doesn't obey autoload. | |
9758 | |
9759 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il> | |
9760 | |
9761 * msdos.c (dos_set_window_size): Update screen dimension variables. | |
9762 | |
9763 2000-10-21 Jason Rumney <jasonr@gnu.org> | |
9764 | |
9765 * w32term.c (w32_cache_char_metrics): Double check that font is | |
9766 really fixed pitch before trusting tmPitchAndFamily. | |
9767 | |
9768 2000-10-21 Andrew Innes <andrewi@gnu.org> | |
9769 | |
9770 * w32gui.h (w32_char_font_type): Move enum from w32term.c | |
9771 | |
9772 * w32term.h: Extern decl for w32_cache_char_metrics. | |
9773 | |
9774 * w32bdf.c (w32_load_bdf_font): Call w32_cache_char_metrics. | |
9775 | |
9776 * w32fns.c (w32_load_system_font): Call w32_cache_char_metrics. | |
9777 (w32_unload_font): Free per_char array if present. | |
9778 | |
9779 * w32term.c (w32_per_char_metric): Remove HDC argument. Use | |
9780 cached information in emulated XFontStruct to handle common cases | |
9781 quickly. Do not allocate XCharStruct for return. | |
9782 (w32_native_per_char_metric): New function. | |
9783 (w32_bdf_per_char_metric): Fill in supplied XCharStruct instead of | |
9784 allocating one. | |
9785 (x_produce_glyphs): Don't get an HDC. Change calls to | |
9786 w32_per_char_metric to match arg change above. Remove calls to | |
9787 free results. | |
9788 (w32_get_glyph_overhangs): Ditto. | |
9789 (w32_cache_char_metrics): New function. | |
9790 | |
9791 * makefile.w32-in: Change .obj to .$(O) in all dependencies. | |
9792 ($(BLD)/casefiddle.$(O)): Remove compile command. | |
9793 ($(BLD)/gmalloc.$(O)): Remove compile command. | |
9794 ($(BLD)/dispnew.obj): | |
9795 ($(BLD)/keyboard.obj): | |
9796 ($(BLD)/w32inevt.obj): | |
9797 ($(BLD)/w32bdf.obj): | |
9798 ($(BLD)/alloc.obj): | |
9799 ($(BLD)/buffer.obj): | |
9800 ($(BLD)/editfns.obj): | |
9801 ($(BLD)/emacs.obj): | |
9802 ($(BLD)/fileio.obj): | |
9803 ($(BLD)/fns.obj): | |
9804 ($(BLD)/indent.obj): | |
9805 ($(BLD)/insdel.obj): | |
9806 ($(BLD)/intervals.obj): | |
9807 ($(BLD)/minibuf.obj): | |
9808 ($(BLD)/print.obj): | |
9809 ($(BLD)/scroll.obj): | |
9810 ($(BLD)/sysdep.obj): | |
9811 ($(BLD)/textprop.obj): | |
9812 ($(BLD)/widget.obj): | |
9813 ($(BLD)/xdisp.obj): Add dependency on w32gui.h. | |
9814 ($(BLD)/term.obj): Add dependency on dispextern.h. | |
9815 | |
9816 * makefile.nt ($(BLD)\dispnew.obj): | |
9817 ($(BLD)\keyboard.obj): | |
9818 ($(BLD)\w32inevt.obj): | |
9819 ($(BLD)\w32bdf.obj): | |
9820 ($(BLD)\alloc.obj): | |
9821 ($(BLD)\buffer.obj): | |
9822 ($(BLD)\editfns.obj): | |
9823 ($(BLD)\emacs.obj): | |
9824 ($(BLD)\fileio.obj): | |
9825 ($(BLD)\fns.obj): | |
9826 ($(BLD)\indent.obj): | |
9827 ($(BLD)\insdel.obj): | |
9828 ($(BLD)\intervals.obj): | |
9829 ($(BLD)\minibuf.obj): | |
9830 ($(BLD)\print.obj): | |
9831 ($(BLD)\scroll.obj): | |
9832 ($(BLD)\sysdep.obj): | |
9833 ($(BLD)\textprop.obj): | |
9834 ($(BLD)\widget.obj): | |
9835 ($(BLD)\xdisp.obj): Add dependency on w32gui.h. | |
9836 ($(BLD)\term.obj): Add dependency on dispextern.h | |
9837 | |
9838 2000-10-21 Eli Zaretskii <eliz@is.elta.co.il> | |
9839 | |
9840 * minibuf.c (Fminibuffer_complete): Call Fpos_visible_in_window_p | |
9841 with an additional argument of Qt. | |
9842 | |
9843 2000-10-21 Miles Bader <miles@gnu.org> | |
9844 | |
9845 * window.c (pos_fully_visible_in_window_p): New function. | |
9846 (Fpos_visible_in_window_p): Add FULLY argument. | |
9847 Use pos_fully_visible_in_window_p. | |
9848 (window_scroll_pixel_based, window_scroll_line_based): Update | |
9849 calls to Fpos_visible_in_window_p. | |
9850 * lisp.h (Fpos_visible_in_window_p): Update prototype | |
9851 | |
9852 2000-10-20 Gerd Moellmann <gerd@gnu.org> | |
9853 | |
9854 * alloc.c (toplevel): Conditionalize compilation of mem_* | |
9855 functions differently. | |
9856 | |
9857 2000-10-20 Jason Rumney <jasonr@gnu.org> | |
9858 | |
9859 * alloc.c (toplevel): Move #ifdef GC_MARK_STACK back to above | |
9860 mem_init where it used to be. mem_z etc not defined otherwise. | |
9861 | |
9862 2000-10-20 Gerd Moellmann <gerd@gnu.org> | |
9863 | |
9864 * alloc.c (toplevel) [SYSTEM_MALLOC || DOUG_LEA_MALLOC]: Undef | |
9865 GC_MALLOC_CHECK. | |
9866 (toplevel) [GC_MARK_STACK || GC_MALLOC_CHECK]: Move mem_node | |
9867 structure definition and related variabled to the top of the file. | |
9868 Include this code when GC_MALLOC_CHECK is defined. | |
9869 (lisp_malloc, lisp_free) [GC_MALLOC_CHECK]: Don't | |
9870 register/unregister allocated region. | |
9871 (emacs_blocked_free) [GC_MALLOC_CHECK]: Check if freeing something | |
9872 which isn't allocated. | |
9873 (emacs_blocked_malloc) [GC_MALLOC_CHECK]: Check if returning | |
9874 something which is already in use. | |
9875 (emacs_blocked_realloc) [GC_MALLOC_CHECK]: Likewise. | |
9876 (mem_insert) [GC_MALLOC_CHECK]: Use _malloc_internal. | |
9877 (mem_delete) [GC_MALLOC_CHECK]: Use _free_internal. | |
9878 (init_alloc_once) [GC_MALLOC_CHECK]: Call mem_init. | |
9879 | |
9880 * gmalloc.c (_malloc_internal) [GC_MALLOC_CHECK]: Use | |
9881 _malloc_internal instead of malloc. | |
9882 (_free_internal) [GC_MALLOC_CHECK]: Use _free_internal instead | |
9883 of free. | |
9884 | |
9885 2000-10-20 Andrew Innes <andrewi@gnu.org> | |
9886 | |
9887 * strftime.c [!WINDOWSNT]: Don't apply Solaris 2.5 work-around on | |
9888 Windows. | |
9889 (my_strftime) <macro>: Don't use macro arg list when redefining as | |
9890 _strftime_copytm. | |
9891 (my_strftime) <function>: Supply 0 as ut argument. | |
9892 | |
9893 2000-10-19 Jason Rumney <jasonr@altavista.net> | |
9894 | |
9895 * w32console.c: Do not undef HAVE_WINDOW_SYSTEM before | |
9896 including dispextern.h, as it stops faces from working. | |
9897 | |
9898 * w32fns.c (Fx_create_frame): Don't bother calling | |
9899 face-set-after-frame-default since the caller does it for us | |
9900 anyway. Clean up calls to x_get_arg to be consistent with X. | |
9901 | |
9902 * w32term.c (x_produce_glyphs): Handle | |
9903 unibyte_display_via_language_environment correctly. | |
9904 (w32_draw_box_rect): Fix the calculation of width and height. | |
9905 | |
9906 * w32menu.c (add_menu_item): Do not use MF_OWNERDRAW for titles, | |
9907 as it has stopped working. | |
9908 (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar position like | |
9909 menu-bar. | |
9910 | |
9911 2000-10-19 Gerd Moellmann <gerd@gnu.org> | |
9912 | |
9913 * eval.c (skip_debugger): Prevent a compiler warning. | |
9914 (Fcondition_case): Likewise. | |
9915 (Fbacktrace_frame): Use a null interactive spec. | |
9916 | |
9917 2000-10-19 Kenichi Handa <handa@etl.go.jp> | |
9918 | |
9919 * xterm.c (x_find_ccl_program): Check also fontp->full_name. | |
9920 | |
9921 2000-10-18 Gerd Moellmann <gerd@gnu.org> | |
9922 | |
9923 * strftime.c: Sync with glibc, file version 1.78. | |
9924 (my_strftime) [HAVE_TZNAME]: Use `UTC' instead of `GMT' which | |
9925 should no longer be used according to ISO 8601. | |
9926 | |
9927 * keymap.c (access_keymap): If IDX has a meta prefix, and there's | |
9928 no map for meta_prefix_char, don't try to use it as a keymap. | |
9929 Instead, if T_OK is non-zero, look up a default binding, if any, | |
9930 otherwise, if T_OK is zero, return nil. | |
9931 | |
9932 * xfns.c (x_to_xcolors, x_set_mouse_color, lookup_pixel_color) | |
9933 (x_to_xcolors, png_load): Use x_query_color. | |
9934 | |
9935 * xterm.c (x_color_cells, x_query_colors, x_query_color): | |
9936 New functions. | |
9937 (x_alloc_nearest_color): Use it to reduce calls to XQueryColors | |
9938 which can be slow. | |
9939 (x_copy_color, x_alloc_lighter_color): Likewise. | |
9940 | |
9941 * xterm.h (struct x_display_info): Add color_cells and ncolor_cells. | |
9942 (x_query_color, x_query_colors): Add prototype. | |
9943 | |
9944 * alloc.c (allocate_string) [GC_CHECK_STRING_BYTES]: Call | |
9945 check_string_bytes only if not noninteractive, increase count to 50. | |
9946 | |
9947 2000-10-18 Miles Bader <miles@lsi.nec.co.jp> | |
9948 | |
9949 * insdel.c (adjust_markers_for_delete): Handle before-insertion | |
9950 markers correctly. | |
9951 | |
9952 2000-10-17 Gerd Moellmann <gerd@gnu.org> | |
9953 | |
9954 * alloc.c (pure_bytes_used): Renamed from pureptr. | |
9955 (ALIGN): New macro. | |
9956 (pure_alloc): New function. | |
9957 (make_pure_string, pure_cons, make_pure_float, make_pure_vector): | |
9958 Use it. | |
9959 (Fpurecopy): Use PURE_POINTER_P. | |
9960 | |
9961 * xdisp.c (try_cursor_movement): Use cursor_row_p also when | |
9962 PT has moved backward. | |
9963 | |
9964 * xdisp.c (cursor_row_p): Take continued lines into account. | |
9965 | |
9966 * alloc.c (mark_object) [GC_CHECK_STRING_BYTES]: Check validity of | |
9967 string's size_byte. | |
9968 (check_string_bytes) [GC_CHECK_STRING_BYTES]: New function. | |
9969 (check_string_bytes_count) [GC_CHECK_STRING_BYTES]: New variable. | |
9970 (allocate_string) [GC_CHECK_STRING_BYTES]: Call it for every 10th | |
9971 string allocated. | |
9972 | |
9973 * xdisp.c (forward_to_next_line_start): Switch iterator's handling | |
9974 of selective display off while searching for the next line start. | |
9975 | |
9976 2000-10-17 Kenichi Handa <handa@etl.go.jp> | |
9977 | |
9978 * Makefile.in (term.o): Depend on dispextern.h. | |
9979 | |
9980 2000-10-16 Stefan Monnier <monnier@cs.yale.edu> | |
9981 | |
9982 * keymap.c (keymap_memberp): Ensure that nil is not a member. | |
9983 | |
9984 2000-10-16 Gerd Moellmann <gerd@gnu.org> | |
9985 | |
9986 * xdisp.c (set_iterator_to_next): Reset box start and end flags of | |
9987 the iterator at the beginning, so that they can be set later on, | |
9988 for instance in reseat_at_next_visible_line_start, without being | |
9989 overwritten. | |
9990 | |
9991 * xfns.c (pbm_format): Add :foreground and :background keywords. | |
9992 (PBM_FOREGROUND, PBM_BACKGROUND): New enumerators. | |
9993 (xbm_load): Recognize foreground and background color specifications. | |
9994 | |
9995 2000-10-16 Eli Zaretskii <eliz@is.elta.co.il> | |
9996 | |
9997 * dispextern.h (unspecified_fg, unspecified_bg): Declare. | |
9998 | |
9999 * dosfns.c (unspecified_fg, unspecified_bg): Remove extern declaration. | |
10000 | |
10001 * msdos.c (IT_set_face): Compare highlighted face with the default | |
10002 face, and invert colors if these faces' colors are identical. | |
10003 (Fmsdos_remember_default_colors): Don't swap foreground and | |
10004 background colors in initial_colors[]. | |
10005 (IT_set_frame_parameters): Don't swap frame's foreground and | |
10006 background pixels. If ALIST includes "(reverse . t)", swap | |
10007 foreground-color and background-color properties in frame's | |
10008 param_alist. If the original frame's param_alist doesn't specify | |
10009 the colors, store unspecified-fg and unspecified-bg, reversed if | |
10010 required. | |
10011 | |
10012 * frame.c (Fframe_parameters): If a tty's frame's param_alist says | |
10013 the colors are unspecified and reversed, reverse fore- and back- | |
10014 ground in the returned value. | |
10015 (Fframe_parameter): Ditto. | |
10016 | |
10017 2000-10-16 Gerd Moellmann <gerd@gnu.org> | |
10018 | |
10019 * xdisp.c (find_last_unchanged_at_beg_row): Renamed from | |
10020 get_last_unchanged_at_beg_row. | |
10021 (find_first_unchanged_at_end_row): Renamed from | |
10022 get_first_unchanged_at_end_row. | |
10023 (find_first_unchanged_at_end_row): Convert assertions to | |
10024 unconditional tests which abort. When looking for a row in | |
10025 unchanged text, don't go further back than first_text_row. | |
10026 | |
10027 * xdisp.c (try_scrolling) <cursor in scroll margin at the bottom>: | |
10028 Don't add in the last line's height when deciding if the new | |
10029 position is below the scroll margin. | |
10030 | |
10031 2000-10-16 Miles Bader <miles@gnu.org> | |
10032 | |
10033 * editfns.c (Fconstrain_to_field): Check carefully for field | |
10034 boundaries if either OLD_POS or NEW_POS has a non-nil field | |
10035 property, even if they're the same. | |
10036 | |
10037 2000-10-16 Kenichi Handa <handa@etl.go.jp> | |
10038 | |
10039 * xterm.c (x_draw_box_rect): Fix the calculation of width and | |
10040 height for XFillRectangle. | |
10041 | |
10042 2000-10-15 Stefan Monnier <monnier@cs.yale.edu> | |
10043 | |
10044 * syntax.c (Fstring_to_syntax): New function extracted from | |
10045 Fmodify_syntax_entry. | |
10046 (Fmodify_syntax_entry): Use it and document the ! and | fences. | |
10047 (skip_chars, Fforward_comment): Remove unused variables. | |
10048 (syms_of_syntax): Add defsubr for string-to-syntax. | |
10049 (describe_syntax): Add code for comment and string fences. | |
10050 | |
10051 2000-10-14 Stefan Monnier <monnier@cs.yale.edu> | |
10052 | |
10053 * keymap.c (access_keymap): Add AUTOLOAD parameter. | |
10054 Do the meta->esc mapping. Call get_keyelt before returning. | |
10055 Start scanning from the second element (the first is always `keymap') | |
10056 to make it easier to detect when we reach a parent map. | |
10057 Handle the case of inheriting from a symbol whose function is a map. | |
10058 (Fkeymap_parent): Also handle the `inherit from symbol' case. | |
10059 (fix_submap_inheritance, Fdefine_key): Update call to access_keymap. | |
10060 (get_keyelt, Flookup_key): Update call to access_keymap. | |
10061 Remove the meta->esc mappings. | |
10062 (define_as_prefix): Delete old disabled code. | |
10063 (menu_item_p): New function. | |
10064 (where_is_internal_1): Skip over the few remaining menu items. | |
10065 * lisp.h (access_keymap): Update prototype. | |
10066 * keyboard.c (read_char, menu_bar_items, tool_bar_items): | |
10067 Update call to access_keymap. | |
10068 (follow_key, read_key_sequence): Update calls to access_keymap. | |
10069 Remove the meta->esc mappings. | |
10070 | |
10071 2000-10-13 Gerd Moellmann <gerd@gnu.org> | |
10072 | |
10073 * dispnew.c (direct_output_for_insert): Call set_iterator_to_next | |
10074 with additional argument. | |
10075 | |
10076 * xdisp.c (cursor_row_p): New function. | |
10077 (try_cursor_movement, display_line): Use it. | |
10078 | |
10079 * xdisp.c (append_space): Also save/restore iterator's current | |
10080 character and its length. | |
10081 | |
10082 * xdisp.c (init_from_display_pos): Add an assertion. | |
10083 (handle_stop): Don't set iterator's add_overlay_start. | |
10084 (handle_invisible_prop): Likewise. | |
10085 (load_overlay_strings): If text under an overlay is invisible, | |
10086 take both before- and after-strings into account when the iterator | |
10087 is positioned either at the start or at the end of the overlay. | |
10088 (forward_to_next_line_start): Rewritten. | |
10089 (reseat_at_next_visible_line_start): Rewritten. | |
10090 (set_iterator_to_next): Add parameter RESEAT_P. | |
10091 | |
10092 * dispextern.h (struct it): Remove member add_overlay_start. | |
10093 (set_iterator_to_next): Change prototype. | |
10094 | |
10095 2000-10-13 Kenichi Handa <handa@etl.go.jp> | |
10096 | |
10097 * coding.c (code_convert_region): Be sure to initialize | |
10098 coding->category_idx. | |
10099 (decode_coding_string): Set coding->src_multibyte and | |
10100 coding->dst_multibyte before using CODING_REQUIRE_DECODING. | |
10101 (encode_coding_string): Set coding->src_multibyte and | |
10102 coding->dst_multibyte before using CODING_REQUIRE_ENCODING. | |
10103 | |
10104 2000-10-12 Stefan Monnier <monnier@cs.yale.edu> | |
10105 | |
10106 * xfns.c (Fx_create_frame): Don't bother calling | |
10107 face-set-after-frame-default since the caller does it for us anyway. | |
10108 | |
10109 2000-10-12 Eli Zaretskii <eliz@is.elta.co.il> | |
10110 | |
10111 * window.c (coordinates_in_window): Fix detection of vertical line | |
10112 on character terminals. | |
10113 | |
10114 2000-10-12 Gerd Moellmann <gerd@gnu.org> | |
10115 | |
10116 * editfns.c (save_excursion_save): Additionally record the | |
10117 selected window. | |
10118 (save_excursion_restore): If buffer was visible in a window, and a | |
10119 different window was selected, and the old selected window is | |
10120 still live, restore point in that window. | |
10121 | |
10122 2000-10-12 Kenichi Handa <handa@etl.go.jp> | |
10123 | |
10124 * xterm.c (x_produce_glyphs): Handle | |
10125 unibyte_display_via_language_environment correctly. | |
10126 | |
10127 * regex.c (regex_compile): Change the way of handling a range from | |
10128 unibyte char to multibyte char. | |
10129 | |
10130 * syntax.c (skip_chars): Change the way of handling a range from | |
10131 unibyte char to multibyte char. | |
10132 | |
10133 * process.c (read_process_output): Cancel previous change. | |
10134 | |
10135 2000-10-11 Eli Zaretskii <eliz@is.elta.co.il> | |
10136 | |
10137 * search.c (Fsearch_backward, Fsearch_forward): Doc fix. | |
10138 | |
10139 * charset.c (Ffind_charset_string): Doc fix. | |
10140 (Ffind_charset_region): Doc fix. | |
10141 | |
10142 2000-10-11 Kenichi Handa <handa@mule.m17n.org> | |
10143 | |
10144 * process.c (read_process_output): Fix previous change. Adjust | |
10145 multibyteness of text to insert in a buffer by | |
10146 string_make_unibyte/multibyte instead of Fstring_as_unibyte/multibyte. | |
10147 | |
10148 2000-10-10 Andreas Schwab <schwab@suse.de> | |
10149 | |
10150 * alloc.c (mark_object): Remove all workarounds installed on | |
10151 1993-08-08. | |
10152 | |
10153 2000-10-10 Kenichi Handa <handa@etl.go.jp> | |
10154 | |
10155 * fns.c (READ_QUADRUPLET_BYTE): Set *NCHARS_RETURN before returning. | |
10156 (base64_encode_1): Make it work for a text of multibyte form. | |
10157 (Fbase64_decode_region): Allocate sufficient memory for multibyte | |
10158 case. Don't call str_to_multibyte because base64_decode_1 | |
10159 produces correct multibyte form for eight-bit codes. | |
10160 (Fbase64_decode_string): Adjusted for the change of base64_decode_1. | |
10161 (base64_decode_1): New args MULTIBYTE and NCHARS_RETURN. If | |
10162 MULTIBYTE is nonzero, produce correct multibyte form for eight-bit | |
10163 codes. | |
10164 | |
10165 * charset.h (CHAR_STRING): Optimized for single byte characters. | |
10166 | |
10167 2000-10-09 Andreas Schwab <schwab@suse.de> | |
10168 | |
10169 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Reset S to | |
10170 -1 after socket is closed, to fall through to error processing. | |
10171 | |
10172 2000-10-09 Eli Zaretskii <eliz@is.elta.co.il> | |
10173 | |
10174 * msdos.c (IT_set_frame_parameters): Don't initialize Lisp_Object | |
10175 variables. If ALIST includes foreground-color or | |
10176 background-color, change also the colors of the default face for | |
10177 this frame. | |
10178 | |
10179 2000-10-08 Eli Zaretskii <eliz@is.elta.co.il> | |
10180 | |
10181 * msdos.c (top-level) <Qbackground_color, Qforeground_color>: Make | |
10182 them extern (they are defined on xfaces.c). | |
10183 (syms_of_msdos): Don't intern and don't staticpro | |
10184 Qbackground_color and Qforeground_color. | |
10185 | |
10186 2000-10-07 Eli Zaretskii <eliz@is.elta.co.il> | |
10187 | |
10188 * frame.c (Fframe_parameter): For non-windowed frames, if | |
10189 f->param_alist says foreground or background color is unspecified, | |
10190 call tty_color_name to return the color name computed from the | |
10191 frame's current colors. | |
10192 | |
10193 2000-10-06 Dave Love <fx@gnu.org> | |
10194 | |
10195 * terminfo.c (ospeed): Don't declare. | |
10196 | |
10197 * sysdep.c: Don't include string.h. | |
10198 (h_errno): Declare conditional also on TRY_AGAIN. | |
10199 | |
10200 * charset.c (Ffind_charset_string): Doc fix. | |
10201 | |
10202 * fns.c (Fbase64_encode_region, Fbase64_encode_string) | |
10203 (Fbase64_decode_region, Fbase64_decode_string): More explicit | |
10204 error messages. | |
10205 | |
10206 2000-10-05 Dave Love <fx@gnu.org> | |
10207 | |
10208 * xmenu.c (Fx_popup_menu, Fx_popup_dialog): Check for tool-bar | |
10209 position like menu-bar. | |
10210 | |
10211 2000-10-05 Gerd Moellmann <gerd@gnu.org> | |
10212 | |
10213 * keyboard.c (Frecursive_edit): Make sure redisplay can happen. | |
10214 | |
10215 * xdisp.c (handle_single_display_prop): Use safe_call1. | |
10216 (safe_call): Renamed from call_function. | |
10217 (safe_call1): New function. | |
10218 (handle_fontified_prop): Use safe_call1 instead of call1. | |
10219 (safe_eval): Renamed from eval_form. | |
10220 (safe_eval_handler): Renamed from eval_handler. | |
10221 (handle_single_display_prop, display_mode_element): Use safe_eval | |
10222 instead of eval_form. | |
10223 | |
10224 * xfaces.c (merge_face_heights): Use safe_call instead of | |
10225 call_function. | |
10226 | |
10227 * keyboard.c (show_help_echo): Use safe_call instead of | |
10228 call_function; use safe_eval instead of eval_form. | |
10229 | |
10230 * lisp.h (safe_call): Renamed from call_function. | |
10231 (safe_eval): Renamed from eval_form. | |
10232 (safe_call1): Add prototype. | |
10233 | |
10234 2000-10-05 Miles Bader <miles@lsi.nec.co.jp> | |
10235 | |
10236 * xfns.c (image_ascent): Rearrange ascent calculation for the | |
10237 has-a-font case. | |
10238 | |
10239 2000-10-04 Stefan Monnier <monnier@cs.yale.edu> | |
10240 | |
10241 * keymap.c (Fwhere_is_internal): Ignore `menu-bar' and `tool-bar'. | |
10242 (where_is_internal_1): Don't bother ignoring menu-items any more. | |
10243 | |
10244 2000-10-04 Gerd Moellmann <gerd@gnu.org> | |
10245 | |
10246 * keyboard.c (update_menu_bindings): New variable. | |
10247 (parse_menu_item): Use AREF. If update_menu_bindings | |
10248 is 0, don't update menu bindings. | |
10249 (syms_of_keyboard): New Lisp variable `update-menu-bindings'. | |
10250 | |
10251 2000-10-03 Eli Zaretskii <eliz@is.elta.co.il> | |
10252 | |
10253 * alloc.c (Fgarbage_collect): Prevent compiler warning for a call | |
10254 to `mark_object'. | |
10255 | |
10256 2000-10-02 Stefan Monnier <monnier@cs.yale.edu> | |
10257 | |
10258 * syntax.c (forw_comment): Match nestedness of ender/starter. | |
10259 (Fforward_comment): Treat an unmatched \n comment-ender as whitespace. | |
10260 (prev_char_comstart_first): Remove. | |
10261 (back_comment): Check two-char comment markers more carefully | |
10262 to better handle overlapping cases like *//* or /* */* */ ... | |
10263 Match nestedness of ender/starter. | |
10264 | |
10265 2000-10-02 Dave Love <fx@gnu.org> | |
10266 | |
10267 * config.in (HAVE_GAI_STRERROR): Add undef. | |
10268 | |
10269 * process.c (Fopen_network_stream): Use it. | |
10270 | |
10271 * m/alpha.h (NO_REMAP): Don't define. | |
10272 | |
10273 2000-10-02 Gerd Moellmann <gerd@gnu.org> | |
10274 | |
10275 * lisp.h (wrong_type_argument): Remove NO_RETURN, the function can | |
10276 return with a string converted to an integer or vice versa when | |
10277 Vmocklisp_arguments is t. | |
10278 (Fsignal): Likewise. The function can return for `quit'. | |
10279 (struct gcpro): Declare member `var' to point to a volatile | |
10280 Lisp_Object. | |
10281 | |
10282 * eval.c (error): Prevent compiler warning. | |
10283 | |
10284 2000-09-30 Stefan Monnier <monnier@cs.yale.edu> | |
10285 | |
10286 * keymap.c (keymap_memberp): New function. | |
10287 (Fset_keymap_parent): Use it. | |
10288 (fix_submap_inheritance): Use get_keyelt, get_keymap_1 and KEYMAPP. | |
10289 Use keymap_memberp to avoid creating cycles. | |
10290 (access_keymap): Use KEYMAPP. | |
10291 | |
10292 2000-09-30 Gerd Moellmann <gerd@gnu.org> | |
10293 | |
10294 * process.c (Fopen_network_stream) [HAVE_GETADDRINFO]: Use | |
10295 gai_strerror. Make sure xerrno is set if connect fails. Improve | |
10296 error recovery. | |
10297 | |
10298 2000-09-29 Jason Rumney <jasonr@gnu.org> | |
10299 | |
10300 * w32term.c (w32_char_font_type, w32_encode_char) | |
10301 (x_produce_glyphs): Distinguish single and multibyte BDF fonts. | |
10302 (w32_bdf_per_char_metric): New function. | |
10303 (w32_per_char_metric): Use it. | |
10304 (x_draw_glyph_string_background): Always draw background for BDF | |
10305 glyphs. | |
10306 | |
10307 * w32bdf.h (glyph_struct, cache_bitmap): Cache bitmap data, not | |
10308 GDI object which is a scarce resource. | |
10309 | |
10310 * w32bdf.c (search_file_line): Fix skipping of whitespace. | |
10311 (get_quoted_string): Fix limit on memchr search. | |
10312 (set_bdf_font_info): Use unsigned chars. Negate yoffset. | |
10313 (w32_init_bdf_font): Initialize codepoint and bitmap heaps. | |
10314 (w32_free_bdf_font): Free bitmaps and codepoints on heaps. | |
10315 (get_cached_font_char, cache_char_offset): Use macro | |
10316 BDF_CODEPOINT_RANGE_COVER_P. | |
10317 (cache_char_offset): Use HeapAlloc to allocate codepoints on own heap. | |
10318 (clear_cached_bitmap_slots): New function. | |
10319 (GET_HEX_VALUE): G-Z, g-z are not hex. | |
10320 (w32_get_bdf_glyph): Convert to DIB format. Return bytes read. | |
10321 (get_bitmap_with_cache): Use new cache implementation. | |
10322 (create_offscreen_bitmap): New function. | |
10323 (w32_BDF_TextOut): Use it. Draw glyphs as DIBs. | |
10324 | |
10325 * w32term.c (x_produce_glyphs): If the distance from the current | |
10326 position to the next tab stop is less than a canonical character | |
10327 width, use the tab stop after that. | |
10328 (x_draw_glyphs): Handle case START and END are out of bounds more | |
10329 carefully. | |
10330 (x_clear_mouse_face): Block/unblock input. | |
10331 (x_display_and_set_cursor): Don't show a hollow box cursor for | |
10332 buffers whose cursor_type is nil. | |
10333 | |
10334 2000-09-29 Gerd Moellmann <gerd@gnu.org> | |
10335 | |
10336 * xfns.c (x_set_tool_bar_lines): Clear frame when tool bar disappears. | |
10337 | |
10338 * dispextern.h (updating_frame): Declare extern. | |
10339 | |
10340 2000-09-29 Andreas Schwab <schwab@suse.de> | |
10341 | |
10342 * m/ia64.h: Remove hack of not prototyping bcopy, etc. | |
10343 | |
10344 2000-09-29 Gerd Moellmann <gerd@gnu.org> | |
10345 | |
10346 * keyboard.c (menu_bar_one_keymap): If KEYMAP is a symbol, | |
10347 use its function definition. | |
10348 (tool_bar_items): Likewise. | |
10349 | |
10350 * lisp.h (fatal): Declare NO_RETURN. | |
10351 | |
10352 2000-09-29 Kenichi Handa <handa@etl.go.jp> | |
10353 | |
10354 * keymap.c: Remove the line "#undef NULL". | |
10355 | |
10356 2000-09-28 Gerd Moellmann <gerd@gnu.org> | |
10357 | |
10358 * xterm.c (x_make_frame_visible): Try harder to make the frame visible. | |
10359 | |
10360 2000-09-28 Dave Love <fx@gnu.org> | |
10361 | |
10362 * s/osf5-0.h: Define USE_MMAP_FOR_BUFFERS, not REL_ALLOC_MMAP. | |
10363 | |
10364 * s/sunos413.h (USE_MMAP_FOR_BUFFERS): Define. | |
10365 | |
10366 * .gdbinit (xreload): Note its need on GNU/Linux. | |
10367 | |
10368 * m/alpha.h (XUINT) [REL_ALLOC && _MALLOC_INTERNAL]: Don't declare | |
10369 r_alloc, r_alloc_free. | |
10370 | |
10371 2000-09-28 Kenichi Handa <handa@etl.go.jp> | |
10372 | |
10373 * syntax.c (skip_chars): Handle negation correctly. | |
10374 | |
10375 2000-09-27 Gerd Moellmann <gerd@gnu.org> | |
10376 | |
10377 * xfaces.c (realize_default_face): Call set_lface_from_font_name | |
10378 with non-zero FORCE_P argument. | |
10379 | |
10380 * dispnew.c (adjust_glyph_matrix, enable_glyph_matrix_rows): | |
10381 Add assertions. | |
10382 | |
10383 * xdisp.c (window_box_height): Add an assertion. | |
10384 | |
10385 * xfns.c (x_set_tool_bar_lines): Don't use more lines for the | |
10386 tool-bar than is available. | |
10387 (x_change_window_heights): Renamed from x_set_menu_bar_lines_1. | |
10388 | |
10389 2000-09-27 Dave Love <fx@gnu.org> | |
10390 | |
10391 * s/irix6-5.h: Now works 64-bit. Tidied. | |
10392 | |
10393 2000-09-26 Gerd Moellmann <gerd@gnu.org> | |
10394 | |
10395 * lisp.h (XINT) [EXPLICIT_SIGN_EXTEND]: Use BITS_PER_EMACS_INT | |
10396 instead of BITS_PER_INT. | |
10397 (XINT, XUINT) [NO_UNION_TYPE]: Cast result to EMACS_INT and | |
10398 EMACS_UINT, respectively. | |
10399 (NO_UNION_TYPE) [USE_LISP_UNION_TYPE]: Undefine. | |
10400 | |
10401 * m/sparc.h (BITS_PER_EMACS_INT) [__arch64__]: Don't define. | |
10402 | |
10403 * unexelf.c (ELFSIZE) [__NetBSD__ && __sparc_v9__]: Define to 64. | |
10404 | |
10405 * window.c (freeze_window_starts): Construct last argument for | |
10406 foreach_window differently. | |
10407 | |
10408 * xfns.c (x_decode_color): Don't return a Lisp_Object. | |
10409 | |
10410 * lisp.h (union Lisp_Object) [!NO_UNION_TYPE]: Use EMACS_INT and | |
10411 EMACS_UINT instead of `int' and `unsigned int'. | |
10412 (XSET) [EXPLICIT_SIGN_EXTEND]: Use EMACS_INT instead of `int'. | |
10413 | |
10414 * frame.h (struct frame): Make the `nothing' member of union | |
10415 output_data an EMACS_INT. | |
10416 | |
10417 * alloc.c (GC_CHECK_STRING_BYTES): Temporarily define, for bug hunting. | |
10418 (struct sdata) [GC_CHECK_STRING_BYTES]: Always record the string's | |
10419 size in the sdata structure. | |
10420 (SDATA_NBYTES, SDATA_DATA): New macros. | |
10421 (SDATA_OF_STRING, SDATA_SIZE) [GC_CHECK_STRING_BYTES]: Define | |
10422 differently for the different layout of the sdata structure. | |
10423 (allocate_string_data) [GC_CHECK_STRING_BYTES]: Record string size | |
10424 in sdata. | |
10425 (sweep_strings, compact_small_strings) [GC_CHECK_STRING_BYTES]: | |
10426 Check that size recorded in the string size and size recorded in | |
10427 the sdata structure agree. | |
10428 | |
10429 2000-09-25 Dave Love <fx@gnu.org> | |
10430 | |
10431 * buffer.c: Include stdio.h. | |
10432 | |
10433 Partly suggested by Eduardo Horvath <eeh@netbsd.org>. | |
10434 | |
10435 * ralloc.c (__malloc_extra_blocks): Declare as __malloc_size_t. | |
10436 | |
10437 * alloc.c (__malloc_size_t) [DOUG_LEA_MALLOC]: Don't redefine it. | |
10438 (__malloc_size_t) [!DOUG_LEA_MALLOC]: Define unconditionally as size_t. | |
10439 (__malloc_extra_blocks): Declare as __malloc_size_t. | |
10440 | |
10441 2000-09-25 Gerd Moellmann <gerd@gnu.org> | |
10442 | |
10443 * alloc.c (mark_image): Use GC_NILP instead of NILP. | |
10444 | |
10445 * keyboard.c (show_help_echo): Set help_echo_showing_p. | |
10446 (read_char): If help-echo is showing, preserve the echo area | |
10447 when redisplaying. | |
10448 | |
10449 * xdisp.c (help_echo_showing_p): New variable. | |
10450 (set_message): Reset it to 0. | |
10451 (init_xdisp): Initialize help_echo_showing_p. | |
10452 | |
10453 * dispextern.h (help_echo_showing_p): Declare extern. | |
10454 | |
10455 * config.in: Fix typo in __GNUC_MINOR__. | |
10456 | |
10457 * keyboard.h (quit_throw_to_read_char): Declare NO_RETURN. | |
10458 | |
10459 * s/freebsd.h (POSIX_SIGNALS): Define. | |
10460 | |
10461 * xterm.c (x_clear_mouse_face): Block/unblock input. | |
10462 | |
10463 2000-09-24 Dave Love <fx@gnu.org> | |
10464 | |
10465 * fns.c (base64_encode_1): Fix last change. | |
10466 | |
10467 2000-09-22 Gerd Moellmann <gerd@gnu.org> | |
10468 | |
10469 * dispnew.c (enable_glyph_matrix_rows): Remove xasserts. | |
10470 | |
10471 * xdisp.c (try_window_reusing_current_matrix): More fixes | |
10472 for the case window has a header-line. | |
10473 | |
10474 2000-09-22 Dave Love <fx@gnu.org> | |
10475 | |
10476 * xdisp.c (syms_of_xdisp): Defvar Vmenu_bar_update_hook to provide | |
10477 a doc string. | |
10478 | |
10479 * xterm.c [SOLARIS2]: Remove redundant include of string.h. | |
10480 | |
10481 * fns.c (Fstring_as_unibyte, Fstring_as_multibyte): Doc fix. | |
10482 | |
10483 2000-09-21 Gerd Moellmann <gerd@gnu.org> | |
10484 | |
10485 * config.in (NO_RETURN): Define as `__attribute__((__noreturn__))' | |
10486 for GCC >= 2.5. | |
10487 | |
10488 * lisp.h (wrong_type_argument, Fthrow, Fsignal, error): | |
10489 Declare NO_RETURN. | |
10490 | |
10491 * window.c, term.c, xmenu.c, xrdb.c, emacs.c, macros.c, | |
10492 * keymap.c, insdel.c, marker.c, minibuf.c, fileio.c, dired.c, | |
10493 * indent.c, search.c, alloc.c, data.c: Avoid some more compiler | |
10494 warnings. | |
10495 | |
10496 * marker.c (byte_char_debug_check): Return void. | |
10497 | |
10498 * xfns.c (Fx_create_frame): Set default frame parameter value | |
10499 for tool-bar-lines to 1. | |
10500 | |
10501 * dispnew.c (scrolling_window): Compare y-positions of rows | |
10502 equal at the start. Some simplification. | |
10503 | |
10504 * xdisp.c (try_window_reusing_current_matrix): Fix computation of | |
10505 reused rows' y-position in the case window has a header-line, and | |
10506 new window start is greater than old window start. | |
10507 | |
10508 * process.c (process_sent_to): New variable. | |
10509 (send_process): Workaround for a crash on sparc-sun-solaris-2.6 | |
10510 with GCC 2.95.2 caused by a parameter being clobbered by longjmp. | |
10511 Declare more parameters volatile. | |
10512 | |
10513 * lread.c (Vrecursive_load_depth_limit): New variable. | |
10514 (Fload): Check recursive loads whose recursion depth exceeds | |
10515 Vrecursive_load_depth_limit. | |
10516 (syms_of_lread): DERFAR_LISP recursive-load-depth-limit. | |
10517 | |
10518 2000-09-20 Gerd Moellmann <gerd@gnu.org> | |
10519 | |
10520 * fileio.c (Fread_file_name): Doc fix. | |
10521 | |
10522 * editfns.c (Fmessage_or_box): Doc fix. | |
10523 | |
10524 * fns.c (Fy_or_n_p, Fyes_or_no_p): Doc fix. | |
10525 | |
10526 * xfns.c (xbm_scan): Allow C-style comments. | |
10527 | |
10528 * xfns.c (xpm_init_color_cache) [ALLOC_XPM_COLORS]: If color | |
10529 symbols are specified, add color translations to the cache. | |
10530 (xpm_color_bucket, xpm_cache_color) [ALLOC_XPM_COLORS]: New functions. | |
10531 (xpm_lookup_color) [ALLOC_XPM_COLORS]: Use xpm_color_bucket and | |
10532 xpm_cache_color. | |
10533 (xpm_load) [ALLOC_XPM_COLORS]: Pass frame and XPM attributes | |
10534 structures to xpm_init_color_cache. | |
10535 | |
10536 2000-09-19 Gerd Moellmann <gerd@gnu.org> | |
10537 | |
10538 * dispnew.c (update_window_line): Make sure to always draw mode-lines. | |
10539 | |
10540 2000-09-19 Andrew Innes <andrewi@gnu.org> | |
10541 | |
10542 * makefile.nt (bootstrap-emacs): Don't change directory. | |
10543 | |
10544 2000-09-19 Kenichi Handa <handa@etl.go.jp> | |
10545 | |
10546 * charset.h (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change. | |
10547 | |
10548 * ccl.c (Fccl_execute_on_string): Make multibyte string correctly. | |
10549 If output buffer is too small, signal an appropriated error. | |
10550 | |
10551 2000-09-18 Dave Love <fx@gnu.org> | |
10552 | |
10553 * keyboard.c (menu_bar_items, tool_bar_items) | |
10554 (current_active_maps): Remove redundant get_local_map call. | |
10555 | |
10556 2000-09-18 Gerd Moellmann <gerd@gnu.org> | |
10557 | |
10558 * xterm.c (x_display_and_set_cursor): Don't show a hollow box | |
10559 cursor for buffers whose cursor_type is nil. | |
10560 | |
10561 * xterm.c (x_draw_image_glyph_string): Remove a comment describing | |
10562 a feature to implement that is already implemented. | |
10563 (note_mouse_highlight, x_find_ccl_program): Avoid some compiler | |
10564 warnings. | |
10565 | |
10566 * xfns.c (x_clear_image_1): New function. | |
10567 (x_clear_image): Use it. | |
10568 (x_from_xcolors): Use x_clear_image_1; don't free the image's mask. | |
10569 | |
10570 * dispnew.c (update_window): Move test for invisible lines | |
10571 at the top to update_window_line. | |
10572 (update_window_line): Handle invisible lines here. | |
10573 | |
10574 * xfns.c (clear_image_cache): Clear current matrices of all | |
10575 frames sharing an image cache. Block input while freeing | |
10576 images. Fix timestamp comparison. | |
10577 (x_clear_image): Also free the mask. | |
10578 | |
10579 * xfns.c (lookup_image): Block input while loading the image so | |
10580 that we won't get interrupted in a state where the image isn't yet | |
10581 set up completely. | |
10582 (xbm_load_image, xbm_load, xpm_load, xpm_load, lookup_rgb_color) | |
10583 (lookup_pixel_color, x_to_xcolors, x_from_xcolors) | |
10584 (x_disable_image, x_build_heuristic_mask, pbm_load, png_load) | |
10585 (jpeg_load, tiff_load, gif_load, gs_load): Don't block/unblock input. | |
10586 | |
10587 2000-09-16 Gerd Moellmann <gerd@gnu.org> | |
10588 | |
10589 * dispnew.c (update_window): Make sure to make desired rows | |
10590 current even if they are completely invisible at the top | |
10591 of a window. | |
10592 | |
10593 2000-09-15 Gerd Moellmann <gerd@gnu.org> | |
10594 | |
10595 * xfns.c (lookup_image): Build mask before applying an algorithm. | |
10596 Recognize algorithm `disabled'. | |
10597 (cross_disabled_images): New variable. | |
10598 (COLOR_INTENSITY): New macro. | |
10599 (x_detect_edges): Use COLOR_INTENSITY. | |
10600 (x_disable_image): New function. | |
10601 (syms_of_xfns): DEFVAR_BOOL cross_disabled_images. | |
10602 | |
10603 * xdisp.c (build_desired_tool_bar_string): For a toolbar item in | |
10604 disabled state, don't apply an image transformation algorithm if | |
10605 the user specified an image for the disabled state. Use | |
10606 `:algorithm disabled' for creating a disabled item's image if the | |
10607 user hasn't specified an image. | |
10608 | |
10609 * xfns.c (ALLOC_XPM_COLORS): Define if we can use Emacs' color | |
10610 allocation functions with the XPM lib. | |
10611 (struct xpm_cached_color) [ALLOC_XPM_COLORS]: New structure. | |
10612 (XPM_COLOR_CACHE_BUCKETS) [ALLOC_XPM_COLORS]: New macro. | |
10613 (xpm_color_cache) [ALLOC_XPM_COLORS]: New variable. | |
10614 (xpm_init_color_cache, xpm_free_color_cache, xpm_lookup_color) | |
10615 (xpm_alloc_color, xpm_free_colors) [ALLOC_XPM_COLORS]: New functions. | |
10616 (xpm_load) [ALLOC_XPM_COLORS]: Use Emacs' own color allocation | |
10617 functions, if possible, because these handle color allocation | |
10618 failure more gracefully. | |
10619 (Fimage_mask_p): New function. | |
10620 | |
10621 * xfns.c (QCmatrix, QCcolor_adjustment, QCmask, Qemboss) | |
10622 (Qedge_detection, Qheuristic): New symbols. | |
10623 (syms_of_xfns): Initialize new symbols. | |
10624 (lookup_image): Handle `:mask X', `:algorithm emboss', and | |
10625 `algorithm (edge-detection ...)'. | |
10626 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format): | |
10627 (tiff_format, gif_format, gs_format): Add `:mask'. | |
10628 (XBM_MASK, XPM_MASK, PBM_MASK, PNG_MASK, JPEG_MASK, TIFF_MASK) | |
10629 (GIF_MASK, GS_MASK): New enumerators. | |
10630 (x_laplace_read_row, x_laplace_write_row): Functions removed. | |
10631 (emboss_matrix, laplace_matrix): New variables. | |
10632 (x_to_xcolors, x_from_xcolors, x_detect_edges, x_emboss) | |
10633 (x_edge_detection): New functions. | |
10634 (x_laplace): Rewritten in terms of x_detect_edges. | |
10635 (x_build_heuristic_mask): If image has a mask, free it. | |
10636 | |
10637 2000-09-14 Andrew Innes <andrewi@gnu.org> | |
10638 | |
10639 * makefile.w32-in: Revert to Unix line endings. | |
10640 | |
10641 2000-09-14 Andrew Innes <andrewi@gnu.org> | |
10642 | |
10643 * makefile.w32-in: Standardize indentation somewhat. | |
10644 (bootstrap-temacs): Use $(ARGQUOTE) instead of literal quotes, to | |
10645 cater for differences between shells. | |
10646 | |
10647 * w32term.c (w32_per_char_metric): Handle non-TrueType fonts. | |
10648 | |
10649 2000-09-14 Gerd Moellmann <gerd@gnu.org> | |
10650 | |
10651 * xterm.c (x_produce_glyphs): If the distance from the current | |
10652 position to the next tab stop is less than a canonical character | |
10653 width, use the tab stop after that. | |
10654 | |
10655 2000-09-14 Dave Love <fx@gnu.org> | |
10656 | |
10657 * buffer.c (alloc_buffer_text): Fix xmalloc call. | |
10658 | |
10659 2000-09-14 Gerd Moellmann <gerd@gnu.org> | |
10660 | |
10661 * xdisp.c (handle_fontified_prop): While running fontification | |
10662 functions, bind `fontification-functions' and | |
10663 `after-change-functions' to nil. | |
10664 | |
10665 * s/freebsd.h, s/irix-5.0.h, s/sol2.h, s/template.h | |
10666 (USE_MMAP_FOR_BUFFERS): Define instead of REL_ALLOC_MMAP. | |
10667 | |
10668 * Makefile.in (mallocobj) [SYSTEM_MALLOC]: Don't add ralloc.o. | |
10669 | |
10670 * emacs.c: Change conditional compilation on REL_ALLOC_MMAP to | |
10671 USE_MMAP_FOR_BUFFERS. | |
10672 | |
10673 * insdel.c (make_gap): Use enlarge_buffer_text. | |
10674 | |
10675 * buffer.c: Move allocation with mmap here, from ralloc.c. Change | |
10676 conditional compilation on REL_ALLOC_MMAP to USE_MMAP_FOR_BUFFERS. | |
10677 (mmap_alloc, mmap_free, mmap_realloc) [REL_ALLOC_MMAP]: Renamed | |
10678 from former r_alloc_* functions in ralloc.c. | |
10679 (mmap_page_size, mmap_initialized_p) [REL_ALLOC_MMAP]: New variables. | |
10680 (MEM_ALIGN) [REL_ALLOC_MMAP]: New macro. | |
10681 (mmap_init) [REL_ALLOC_MMAP]: New function. | |
10682 (alloc_buffer_text, enlarge_buffer_text, free_buffer_text): New | |
10683 functions replacing macros BUFFER_ALLOC, BUFFER_REALLOC, and | |
10684 BUFFER_FREE. | |
10685 | |
10686 * buffer.h (BUFFER_ALLOC, BUFFER_REALLOC, BUFFER_FREE): Removed. | |
10687 (enlarge_buffer_text): Add prototype. | |
10688 | |
10689 * ralloc.c: Remove everything having to do with the use of mmap. | |
10690 | |
10691 2000-09-13 Gerd Moellmann <gerd@gnu.org> | |
10692 | |
10693 * sound.c (Fplay_sound): Doc fix. | |
10694 | |
10695 * keyboard.c: Avoid some more compiler warnings. | |
10696 (parse_tool_bar_item): Ignore cached key bindings. | |
10697 | |
10698 * alloc.c: Add some comments about DOUG_LEA_MALLOC's use of mmap | |
10699 and allocation of Lisp data. | |
10700 | |
10701 2000-09-12 Gerd Moellmann <gerd@gnu.org> | |
10702 | |
10703 * xfaces.c: Remove conditional compilation on SCALABLE_FONTS. | |
10704 (Finternal_set_lisp_face_attribute): If frame is 0, set new frame | |
10705 defaults first. | |
10706 | |
10707 * lread.c (Fload): Put code checking for recursive loads in #if 0. | |
10708 | |
10709 2000-09-12 Miyashita Hisashi <himi@meadowy.org> | |
10710 | |
10711 * ccl.c: Comment fixed. | |
10712 (MAX_MAP_SET_LEVEL): Increased to 30. | |
10713 (PUSH_MAPPING_STACK): Enclose with do-while block. | |
10714 (POP_MAPPING_STACK): Likewise. | |
10715 (stack_idx_of_map_multiple): New variable. | |
10716 (CCL_CALL_FOR_MAP_INSTRUCTION): New macro. | |
10717 (ccl_driver) <CCL_IterateMultipleMap>: If the content is a symbol, | |
10718 call the corresponding CCL program by CCL_CALL_FOR_MAP_INSTRUCTION. | |
10719 (ccl_driver) <CCL_MapSingle>: Likewise. | |
10720 (ccl_driver) <CCL_MapMultiple>: Rewritten to fix many bugs, deal | |
10721 with the case where looking up process reaches to the end of | |
10722 map-set, and call CCL programs as the above change. | |
10723 | |
10724 2000-09-11 Gerd Moellmann <gerd@gnu.org> | |
10725 | |
10726 * xfns.c (png_load, jpeg_load): Declare some variables volatile | |
10727 that might be clobbered by longjmp. | |
10728 (check_x_display_info, x_decode_color, create_frame_xic) | |
10729 (Fx_display_backing_store, Fx_display_visual_class) | |
10730 (x_build_heuristic_mask, pbm_scan_number): Avoid compiler warnings. | |
10731 | |
10732 * lread.c (init_lread): Set Vloads_in_progress to nil. | |
10733 (Fload): Show list of recursively loaded files, when signaling an | |
10734 error. | |
10735 | |
10736 * lread.c (Vloads_in_progress): New variable. | |
10737 (record_load_unwind): New function. | |
10738 (Fload): Check for recursive loads. | |
10739 (syms_of_lread): Initialize Vloads_in_progress. | |
10740 (read_integer, read1): Avoid some compiler warnings. | |
10741 | |
10742 * fns.c (concat, Fsubstring, internal_equal, Fnconc): Avoid some | |
10743 compiler warnings. | |
10744 | |
10745 2000-09-11 Miles Bader <miles@gnu.org> | |
10746 | |
10747 * editfns.c (Fbuffer_string): Doc fix. | |
10748 | |
10749 2000-09-10 Gerd Moellmann <gerd@gnu.org> | |
10750 | |
10751 * ralloc.c (mmap_enlarge): Don't return 0 if successful. | |
10752 | |
10753 2000-09-09 Ken Raeburn <raeburn@gnu.org> | |
10754 | |
10755 * s/netbsd.h: Use NOT_C_CODE, not NO_C_SOURCE, when deciding | |
10756 whether to include other header files. | |
10757 | |
10758 2000-09-09 Gerd Moellmann <gerd@gnu.org> | |
10759 | |
10760 * xfaces.c (CYCLE_CHECK): Don't use the Lisp_Object returned | |
10761 by Fmemq as a boolean. | |
10762 | |
10763 2000-09-08 Stefan Monnier <monnier@cs.yale.edu> | |
10764 | |
10765 * xfaces.c (Finternal_set_lisp_face_attribute): Minor thinko. | |
10766 | |
10767 2000-09-08 Gerd Moellmann <gerd@gnu.org> | |
10768 | |
10769 * ralloc.c (mmap_fd): Remove initializer which can make it | |
10770 read-only in a dumped Emacs. | |
10771 (mmap_fd_1): New variable. | |
10772 (mmap_set_vars): Remove local `fd'. Save mmap_fd in mmap_fd_1, | |
10773 restore it from there. | |
10774 (r_alloc, r_re_alloc, r_alloc_free): Call r_alloc_init | |
10775 unconditionally so that mmap_fd can be initialized there. | |
10776 (r_alloc_init_fd): Open-coded in r_alloc_init; function removed. | |
10777 (r_alloc_init) [REL_ALLOC_MMAP && !MAP_ANON]: Open /dev/zero. | |
10778 (r_alloc_init) [REL_ALLOC_MMAP && MAP_ANON]: Set mmap_fd to -1. | |
10779 | |
10780 * xfaces.c (Finternal_merge_in_global_face): Return a Lisp object. | |
10781 | |
10782 * xdisp.c (dump_glyph_row): Fix printf format string. | |
10783 (display_line, move_it_in_display_line_to): Avoid compiler warnings. | |
10784 | |
10785 * s/freebsd.h (GC_MARK_STACK, REL_ALLOC_MMAP): Define. | |
10786 | |
10787 * keymap.c (Fset_keymap_parent): Check for cycles in keymap | |
10788 inheritance. | |
10789 | |
10790 * xdisp.c (try_window_id): When trying to locate cursor in | |
10791 unchanged rows at the top, handle the case that we can't find it. | |
10792 | |
10793 * xterm.c (x_draw_glyphs): Handle case START and END are out | |
10794 of bounds more carefully. | |
10795 | |
10796 2000-09-08 Dave Love <fx@gnu.org> | |
10797 | |
10798 * s/sol2.h (REL_ALLOC_MMAP): Define. | |
10799 * s/irix5-0.h (REL_ALLOC_MMAP): Likewise. | |
10800 | |
10801 * ralloc.c: Don't include string.h (redundant). | |
10802 (MAP_ANON) [REL_ALLOC_MMAP]: Ensure it's defined. | |
10803 [!MAP_ANON]: Include fcntl.h. | |
10804 (mmap_fd) [REL_ALLOC_MMAP]: New variable. | |
10805 (r_alloc, r_re_alloc, r_alloc_free) | |
10806 (mmap_enlarge, mmap_set_vars): Use it. | |
10807 (r_alloc_init_fd): New function. | |
10808 (__morecore) [SYSTEM_MALLOC]: Don't declare. | |
10809 (r_alloc_init): Call r_alloc_init_fd. Conditionalize stuff on | |
10810 malloc type. | |
10811 | |
10812 * Makefile.in (allocaobj) [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: | |
10813 Remove vm-limit.o. | |
10814 | |
10815 * unexelf.c (SHT_MIPS_DEBUG, HDRR) [__mips__]: Really confine last | |
10816 change to __NetBSD__. | |
10817 | |
10818 2000-09-08 Kenichi Handa <handa@etl.go.jp> | |
10819 | |
10820 * search.c (compile_pattern): Check the multibyteness of cached | |
10821 string and PATTERN. | |
10822 | |
10823 2000-09-08 Miles Bader <miles@gnu.org> | |
10824 | |
10825 * xfaces.c (default_face_vector): Function removed. | |
10826 (Finternal_merge_in_global_face): Restore old global/local | |
10827 attribute override order. Use inline loop instead of calling | |
10828 default_face_vector. | |
10829 | |
10830 2000-09-07 Gerd Moellmann <gerd@gnu.org> | |
10831 | |
10832 * ralloc.c (obtain, relinquish, relinquish, r_alloc_size_in_use) | |
10833 (get_bloc, relocate_blocs, update_heap_bloc_correspondence) | |
10834 (resize_bloc, r_alloc_sbrk, r_alloc_init): Add casts to `char *' | |
10835 where necessary, in case POINTER_TYPE is `void'. | |
10836 | |
10837 2000-09-07 Eli Zaretskii <eliz@is.elta.co.il> | |
10838 | |
10839 * frame.c (make_terminal_frame): Initialize frame foreground and | |
10840 background colors to unspecified, for the initial instance of an | |
10841 MSDOS frame. | |
10842 | |
10843 2000-09-07 Gerd Moellmann <gerd@gnu.org> | |
10844 | |
10845 * ralloc.c (mmap_find): Fix overlap computation. | |
10846 (mmap_enlarge): Compute nbytes before trying to find an | |
10847 overlapping region. | |
10848 | |
10849 * xfaces.c (smaller_face): Compare font heights with `<' and `>' | |
10850 instead of `!='. | |
10851 | |
10852 * lread.c (syms_of_lread): Change value of regexp | |
10853 Vbytecomp_version_regexp to not match some XEmacs-compiled files. | |
10854 | |
10855 * xmenu.c (xdialog_show): When looking up the selection in | |
10856 menu_items, take `quote' boundaries into account; this corresponds | |
10857 to a nil ITEM in x-popup-dialog. | |
10858 | |
10859 2000-09-07 Kenichi Handa <handa@etl.go.jp> | |
10860 | |
10861 * charset.h (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80, | |
10862 not 0x81. | |
10863 (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7). | |
10864 | |
10865 * coding.c (encode_coding_sjis_big5): Use translation table for | |
10866 encoding, not decoding. Fix the handling of latin-jisx0201. | |
10867 Check for the charset katakana-jisx0201 too. | |
10868 (ONE_MORE_CHAR): Call translate_char with CHARSET arg -1. | |
10869 (detect_coding_sjis): Check the byte sequence more rigidly. | |
10870 | |
10871 2000-09-07 Gerd Moellmann <gerd@gnu.org> | |
10872 | |
10873 * xfaces.c (Vparam_value_alist): New variable. | |
10874 (syms_of_xfaces): Initialize it. | |
10875 (Finternal_set_lisp_face_attribute): Avoid more consing. | |
10876 | |
10877 * frame.c (Fframe_parameter): Handle `name' and `background-mode' | |
10878 specially. | |
10879 (Fframe_parameter) [HAVE_X_WINDOWS]: Handle `display' specially. | |
10880 (Qbackground_mode): New variable. | |
10881 (syms_of_frame_1): Initialize Qbackground_mode. | |
10882 | |
10883 * lisp.h (Qdisplay): Declare extern. | |
10884 | |
10885 * xfaces.c (Finternal_set_lisp_face_attribute): If FRAME is 0, | |
10886 change face on all frames, and change the default for new frames. | |
10887 | |
10888 2000-09-07 Dave Love <fx@gnu.org> | |
10889 | |
10890 * Makefile.in [!SYSTEM_MALLOC && REL_ALLOC_MMAP]: Set mallocobj. | |
10891 | |
10892 2000-09-07 Kenichi Handa <handa@etl.go.jp> | |
10893 | |
10894 * charset.h (MAKE_CHAR): Be sure to set MSB of C1 to 0. | |
10895 | |
10896 * charset.c: Include composite.h | |
10897 (lisp_string_width): New function. | |
10898 (Fstring_width): Call lisp_string_width instead of strwidth. | |
10899 | |
10900 * Makefile.in (charset.o): Depends on composite.h. | |
10901 | |
10902 * process.c (read_process_output): Before inserting the decoded | |
10903 text in the buffer, adjust the multibyteness. | |
10904 | |
10905 2000-09-06 Gerd Moellmann <gerd@gnu.org> | |
10906 | |
10907 * buffer.c (set_buffer_internal_1) [REL_ALLOC_MMAP]: If | |
10908 buffer's text buffer is null, map new memory. | |
10909 | |
10910 * ralloc.c (POINTER, SIZE) [emacs]: Define in terms of | |
10911 POINTER_TYPE and size_t. | |
10912 (struct mmap_region) [REL_ALLOC_MMAP]: New structure. | |
10913 (mmap_regions, mmap_regions_1) [REL_ALLOC_MMAP]: New variables. | |
10914 (ROUND, MMAP_REGION_STRUCT_SIZE, MMAP_REGION, MMAP_USER_AREA) | |
10915 [REL_ALLOC_MMAP]: New macros. | |
10916 (mmap_find, mmap_free, mmap_enlarge, mmap_set_vars) | |
10917 (mmap_mapped_bytes, r_alloc, r_re_alloc, r_alloc_free) | |
10918 [REL_ALLOC_MMAP]: New functions. | |
10919 | |
10920 * emacs.c (Fdump_emacs) [REL_ALLOC_MMAP]: Call mmap_set_vars | |
10921 before and after unexec. | |
10922 | |
10923 * buffer.c (init_buffer) [REL_ALLOC_MMAP]: Map new buffer | |
10924 text buffers if necessary. | |
10925 | |
10926 * buffer.h (R_ALLOC_DECLARE): Removed because unused. | |
10927 (r_alloc, r_re_alloc, r_alloc_free): Use POINTER_TYPE and size_t | |
10928 in prototypes. | |
10929 | |
10930 * config.in (HAVE_MMAP): Add #undef. | |
10931 | |
10932 2000-09-05 Gerd Moellmann <gerd@gnu.org> | |
10933 | |
10934 * frame.c (Qdisplay_type): New variable. | |
10935 (syms_of_frame_1): Initialize it. | |
10936 (Fframe_parameter): New function that avoids consing. | |
10937 (syms_of_frame): Defsubr it. | |
10938 | |
10939 * buffer.c (Fother_buffer): Consider buffers as invisible when | |
10940 they are displayed in a window on an invisible frame. | |
10941 | |
10942 * window.c (window_loop) <GET_LARGEST_WINDOW>: Fix bug making | |
10943 get-largest-window always return nil. | |
10944 | |
10945 2000-09-04 Gerd Moellmann <gerd@gnu.org> | |
10946 | |
10947 * lread.c (syms_of_lread): Make Vbytecomp_version_regexp a Lisp | |
10948 variable; recognize Emacs 19 elc files. | |
10949 | |
10950 2000-09-04 Miles Bader <miles@gnu.org> | |
10951 | |
10952 * xmenu.c (xmenu_show): Call x_set_menu_resources_from_menu_face | |
10953 before initially popping up the menu, so the menu doesn't flash | |
10954 when the face settings are significantly different from the defaults. | |
10955 | |
10956 2000-09-04 Stefan Monnier <monnier@cs.yale.edu> | |
10957 | |
10958 * regex.c (WIDE_CHAR_SUPPORT): New macro. | |
10959 (btowc, iswctype, wctype) [_LIBC]: Redefine to __<fun>. | |
10960 (BIT_ALPHA, BIT_ALNUM, BIT_ASCII, BIT_NONASCII, BIT_GRAPH, BIT_PRINT) | |
10961 (BIT_UNIBYTE): Remove. | |
10962 (re_match_2_internal): Delete corresponding code and streamline the | |
10963 BIT_MULTIBYTE case to not bother checking ISUNIBYTE. | |
10964 (CHAR_CLASS_MAX_LENGTH) [!WIDE_CHAR_SUPPORT]: Set to 9 rather than 6. | |
10965 (re_wctype_t): New type. | |
10966 (re_wctype, re_iswctype, re_wctype_to_bit): New functions. | |
10967 (regex_compile): Use them and fix handling of overly long char classes. | |
10968 | |
10969 2000-09-03 Andrew Innes <andrewi@gnu.org> | |
10970 | |
10971 * makefile.w32-in: Change to DOS line endings. | |
10972 | |
10973 * s/ms-w32.h (ORDINARY_LINK): New define. | |
10974 | |
10975 * w32.c (_ANONYMOUS_UNION) [__GNUC__]: New define | |
10976 (_ANONYMOUS_STRUCT) [__GNUC__]: New define. | |
10977 | |
10978 * makefile.w32-in (clean): Don't delete config.h and epaths.h. | |
10979 (distclean): Delete them here instead. | |
10980 | |
10981 * w32proc.c (compare_env): Convert to uppercase for comparison, | |
10982 not lowercase, to match how the native Windows shell works. | |
10983 | |
10984 2000-09-03 Jason Rumney <jasonr@gnu.org> | |
10985 | |
10986 * ChangeLog: Remove -unix from coding. Let Emacs autodetect, as | |
10987 CVS changes the line-ends when checking in/out on DOS/Windows. | |
10988 | |
10989 * makefile.nt (emacs): Do not change directory to run temacs, as | |
10990 the load-path is set relative to current directory. | |
10991 | |
10992 2000-09-03 Miles Bader <miles@gnu.org> | |
10993 | |
10994 * xterm.c (x_alloc_lighter_color_for_widget): New function. | |
10995 | |
10996 2000-09-02 Gerd Moellmann <gerd@gnu.org> | |
10997 | |
10998 * xdisp.c (redisplay_mode_lines): New function. | |
10999 (display_mode_lines): Return number of mode lines displayed. | |
11000 (echo_area_display): Use redisplay_mode_lines to draw garbaged | |
11001 mode lines. Don't temporarily bind redisplay-dont-pause to t. | |
11002 | |
11003 * emacs.c, callint.c, doc.c, editfns.c: Remove includes of | |
11004 string.h and strings.h. | |
11005 (index) [HAVE_INDEX]: Add prototype. | |
11006 | |
11007 * unexelf.c (SHT_PROGBITS) [__NetBSD__ && !PT_LOAD]: Don't define. | |
11008 (SHT_MIPS_DEBUG, HDRR) [__NetBSD__ && __mips__]: Define. | |
11009 | |
11010 * s/netbsd.h [!NO_C_SOURCE]: Include <signal.h>. | |
11011 (GC_SETJMP_WORKS, GC_MARK_STACK): Define. | |
11012 | |
11013 2000-09-01 Gerd Moellmann <gerd@gnu.org> | |
11014 | |
11015 * lread.c (read1): Accept `?' as symbol constituent, for | |
11016 compatiblity with XEmacs. | |
11017 | |
11018 2000-08-31 Stefan Monnier <monnier@cs.yale.edu> | |
11019 | |
11020 * regex.h (RE_NO_NEWLINE_ANCHOR): New syntax flag. | |
11021 (struct re_pattern_buffer): Remove newline_anchor. | |
11022 * regex.c: Keep namespace clean for GNU libc by renaming <fun> | |
11023 to __<fun> and using `weak_alias (__<fun>, <fun>)'. | |
11024 (re_max_failures, fail_stack): Use size_t rather than unsigned. | |
11025 (regex_compile): For ^ and $, choose between buffer and line (beg|end) | |
11026 depending on the new RE_NO_NEWLINE_ANCHOR syntax flag. | |
11027 (print_compiled_pattern, re_search_2, mutually_exclusive_p) | |
11028 (re_match_2_internal, re_compile_pattern, re_comp, regcomp): | |
11029 Get rid of references to newline_anchor. | |
11030 (regcomp): Allocate and precompute a fastmap. | |
11031 | |
11032 2000-08-31 Gerd Moellmann <gerd@gnu.org> | |
11033 | |
11034 * lread.c (openp): GCPRO local variable `filename'. | |
11035 | |
11036 2000-08-30 Stefan Monnier <monnier@cs.yale.edu> | |
11037 | |
11038 * regex.h (struct re_pattern_buffer): Use size_t for used/allocated. | |
11039 | |
11040 * regex.c: Merge some changes from GNU libc. Add prototypes. | |
11041 (bcopy, bcmp, REGEX_REALLOCATE, re_match_2_internal): | |
11042 Use memcmp and memcpy instead of bcopy and bcmp. | |
11043 (init_syntax_once): Use ISALNUM. | |
11044 (PUSH_FAILURE_POINT, re_match_2_internal): Remove failure_id. | |
11045 (REG_UNSET_VALUE): Remove. Use NULL instead. | |
11046 (REG_UNSET, re_match_2_internal): Use NULL. | |
11047 (SET_HIGH_BOUND, MOVE_BUFFER_POINTER, ELSE_EXTEND_BUFFER_HIGH_BOUND): | |
11048 New macros. | |
11049 (EXTEND_BUFFER): Use them (to work with BOUNDED_POINTERS). | |
11050 (GET_UNSIGNED_NUMBER): Don't use ISDIGIT. | |
11051 (regex_compile): In handle_interval, return an error rather than try to | |
11052 unfetch the interval if we can't find the closing brace. | |
11053 Obey the RE_NO_GNU_OPS syntax bit. | |
11054 (TOLOWER): New macro. | |
11055 (regcomp): Use it. | |
11056 (regexec): Allocate regs.start and regs.end as one block. | |
11057 | |
11058 2000-08-30 Gerd Moellmann <gerd@gnu.org> | |
11059 | |
11060 * xdisp.c (echo_area_display): Check display_completed instead | |
11061 of calling detect_input_pending. | |
11062 | |
11063 * dispnew.c (update_frame): Only set display_completed here; move | |
11064 the update_begin and update_end calls here from update_frame_1. | |
11065 (update_frame_1): Don't set display_completed here, don't call | |
11066 update_begin/update_end. | |
11067 | |
11068 * xfaces.c (set_font_frame_param): Use Fmodify_frame_parameters | |
11069 instead of store_frame_param. | |
11070 | |
11071 2000-08-29 Gerd Moellmann <gerd@gnu.org> | |
11072 | |
11073 * dispnew.c (build_frame_matrix_from_leaf_window): If a row of a | |
11074 desired window matrix hasn't been displayed, use the current row | |
11075 instead. Make sure that only those frame rows are updated for | |
11076 which there exists a corresponding enabled desired row. | |
11077 | |
11078 2000-08-29 Miles Bader <miles@gnu.org> | |
11079 | |
11080 * xfaces.c (default_face_vector): New function. | |
11081 (Finternal_merge_in_global_face): Use it instead of merge_face_vectors. | |
11082 | |
11083 2000-08-29 Gerd Moellmann <gerd@gnu.org> | |
11084 | |
11085 * lread.c (openp): Prevent temporary string passed to | |
11086 Ffile_readable_p from being garbage collected. | |
11087 | |
11088 2000-08-28 Dave Love <fx@gnu.org> | |
11089 | |
11090 * keymap.c (store_in_keymap): Add `static' to declaration. | |
11091 | |
11092 2000-08-28 Gerd Moellmann <gerd@gnu.org> | |
11093 | |
11094 * emacs.c, callint.c, doc.c, editfns.c | |
11095 (toplevel) [HAVE_STRING_H]: Include string.h. | |
11096 (toplevel) [HAVE_STRINGS_H]: Include strings.h. | |
11097 (index): Remove prototypes which might conflict with non-standard | |
11098 definitions of index/strchr. | |
11099 | |
11100 * s/usg5-3.h (index): Define only if not HAVE_INDEX. | |
11101 (rindex): Define only if !HAVE_RINDEX. | |
11102 | |
11103 * s/sco5.h (bcopy, bzero, bcmp): Don't define. | |
11104 | |
11105 * config.in (HAVE_INDEX, HAVE_RINDEX, HAVE_STRINGS_H): Add undefs. | |
11106 | |
11107 2000-08-28 Miles Bader <miles@gnu.org> | |
11108 | |
11109 * xfaces.c (merge_face_vectors): Clear TO's :font attribute if | |
11110 made inconsistent by a font-related attribute in FROM. | |
11111 (merge_face_inheritance): Add function comment. | |
11112 | |
11113 2000-08-28 Kenichi Handa <handa@etl.go.jp> | |
11114 | |
11115 * keyboard.c (read_char_minibuf_menu_prompt): Call read_char with | |
11116 the 4th arg (PREV_EVENT) Qt to suppress input method. | |
11117 | |
11118 2000-08-27 Stefan Monnier <monnier@cs.yale.edu> | |
11119 | |
11120 * regex.c: Indent cpp directives and remove parens after `defined'. | |
11121 (PTR_TO_OFFSET, POS_AS_IN_BUFFER): Move to a better place. | |
11122 (ISDIGIT, ISCNTRL, ISXDIGIT) [!emacs]: Remove duplicate definition. | |
11123 (regex_compile): Use RE_FRUGAL instead of RE_ALL_GREEDY. | |
11124 (re_compile_pattern): Use size_t for length. | |
11125 (init_syntax_once): Move to a better place. | |
11126 * regex.h: Merge changes from GNU libc. Indent cpp directives. | |
11127 (RE_FRUGAL): Replaces RE_ALL_GREEDY (inverted meaning). | |
11128 | |
11129 * syntax.c (back_comment): Detect cases where a comment-starter is | |
11130 actually inside another comment as in: /* a // b */ c // d \n. | |
11131 Make it clear that `comstart_pos' is unused for nested comments. | |
11132 | |
11133 * keymap.c (store_in_keymap, fix_submap_inheritance): New prototypes. | |
11134 (KEYMAPP): New macro. | |
11135 (Fkeymap_parent, Fset_keymap_parent): Use it. | |
11136 (fix_submap_inheritance): Mark it static. | |
11137 (define_as_prefix, describe_buffer_bindings, describe_command) | |
11138 (describe_translation, describe_map): Complete prototypes. | |
11139 | |
11140 * lisp.h (store_in_keymap, fix_submap_inheritance): Remove. | |
11141 | |
11142 * keyboard.c (menu_bar_item): Detect duplicate entries for all items | |
11143 to better match the key-lookup behavior. | |
11144 | |
11145 2000-08-27 Gerd Moellmann <gerd@gnu.org> | |
11146 | |
11147 * xfaces.c (lface_fully_specified_p): Handle :inherit. | |
11148 (Finternal_set_lisp_face_attribute): Fix typo in error message. | |
11149 | |
11150 2000-08-27 Eli Zaretskii <eliz@is.elta.co.il> | |
11151 | |
11152 * Makefile.in (dispnew.o, indent.o, fontset.o, minibuf.o) | |
11153 (process.o, scroll.o, sysdep.o): Depend on keyboard.h. | |
11154 (xterm.o): Depend on coding.h | |
11155 | |
11156 2000-08-26 Kenichi Handa <handa@etl.go.jp> | |
11157 | |
11158 * cmds.c (internal_self_insert): Delete '#ifdef HAVE_FACES' and | |
11159 the corresponding '#endif'. | |
11160 | |
11161 2000-08-26 Miles Bader <miles@gnu.org> | |
11162 | |
11163 * dispextern.h (enum lface_attribute_index): Add LFACE_INHERIT_INDEX. | |
11164 * xfaces.c (QCinherit): New variable. | |
11165 (syms_of_xfaces): Initialize it. | |
11166 (LFACE_INHERIT): New macro. | |
11167 (Finternal_get_lisp_face_attribute) | |
11168 (merge_face_vector_with_property) | |
11169 (Finternal_set_lisp_face_attribute): Deal with :inherit attribute. | |
11170 (check_lface_attrs): Allow new types of face height. Check | |
11171 inherit attribute. | |
11172 (CYCLE_CHECK): New macro. | |
11173 (merge_face_inheritance): New function. | |
11174 (merge_face_vectors): Merge inherited faces too. Add F and | |
11175 CYCLE_CHECK arguments. | |
11176 (merge_face_vector_with_property, Finternal_merge_in_global_face) | |
11177 (lookup_named_face, lookup_derived_face, realize_named_face) | |
11178 (face_at_string_position, face_at_buffer_position): Supply | |
11179 new F and CYCLE_CHECK arguments to merge_face_vectors. | |
11180 (merge_face_heights): New function. | |
11181 (merge_face_vectors, merge_face_vector_with_property) | |
11182 (Finternal_set_lisp_face_attribute): Call merge_face_heights to | |
11183 handle relative face heights. | |
11184 (lface_same_font_attributes_p): Compare heights using EQ. | |
11185 | |
11186 2000-08-26 Kenichi Handa <handa@etl.go.jp> | |
11187 | |
11188 * charset.c (char_to_string): Check the character validity. | |
11189 (char_valid_p): If C is not less than MAX_CHAR, be sure to return 0. | |
11190 | |
11191 2000-08-25 Stefan Monnier <monnier@cs.yale.edu> | |
11192 | |
11193 * regex.c (PUSH_FAILURE_COUNT): New macro. | |
11194 (POP_FAILURE_REG_OR_COUNT): Renamed from POP_FAILURE_REG. | |
11195 Handle popping of a register's or a counter's data. | |
11196 (POP_FAILURE_POINT): Use the new name. | |
11197 (re_match_2_internal): Push counter data on the stack for succeed_n, | |
11198 jump_n and set_number_at and remove misleading dead code in succeed_n. | |
11199 | |
11200 2000-08-25 Gerd Moellmann <gerd@gnu.org> | |
11201 | |
11202 * xdisp.c (redisplay_internal): If considering all windows on all | |
11203 frames, update the display for each frame as soon as possible, | |
11204 instead of first building all desired matrices for all frames, and | |
11205 then updating them all. | |
11206 (try_cursor_movement): Handle case that last_cursor.vpos is -1. | |
11207 | |
11208 2000-08-24 Gerd Moellmann <gerd@gnu.org> | |
11209 | |
11210 * bytecode.c (mark_byte_stack): Add a comment. | |
11211 | |
11212 * frame.h (FRAME_FLAGS_AREA_COLS, FRAME_FLAGS_AREA_WIDTH) | |
11213 (FRAME_LEFT_FLAGS_AREA_WIDTH): Return 0 unless frame is | |
11214 a graphical frame. | |
11215 | |
11216 2000-08-24 Kenichi Handa <handa@etl.go.jp> | |
11217 | |
11218 * minibuf.c (do_completion): Always use compare-string, not | |
11219 string-equal because the latter doesn't pay attention to | |
11220 multibyteness of strings. | |
11221 | |
11222 * process.c (create_process): Don't setup raw-text coding here. | |
11223 (Fopen_network_stream): Don't set coding->src_multibyte and | |
11224 coding->dst_multibyte here. | |
11225 (read_process_output): For process filter, return unibyte string | |
11226 if default-enable-multibyte-characters is nil. | |
11227 (send_process): If OBJECT is multibyte text, be sure to encoded it | |
11228 by the specified coding system for the process. Otherwise, setup | |
11229 raw-text coding. | |
11230 (init_process): Don't initialize default-process-coding-system here. | |
11231 | |
11232 2000-08-23 Eli Zaretskii <eliz@is.elta.co.il> | |
11233 | |
11234 * buffer.c (syms_of_buffer) <scroll-up-aggressively>: Doc fix. | |
11235 <scroll-down-aggressively>: Likewise. | |
11236 | |
11237 2000-08-23 Kenichi Handa <handa@etl.go.jp> | |
11238 | |
11239 * coding.c (encode_eol): Fix bug for the case of dst_bytes being | |
11240 zero. Set coding->produced_char correctly. | |
11241 | |
11242 2000-08-22 Andrew Innes <andrewi@gnu.org> | |
11243 | |
11244 * makefile.w32-in: New file. | |
11245 | |
11246 * unexw32.c (unexec): Ignore old_name, and use the actual location | |
11247 of the current executable instead. Base new_name on this. | |
11248 | |
11249 * w32proc.c (create_child): Remove reference to security | |
11250 descriptor, which isn't needed and doesn't compile with mingw32. | |
11251 | |
11252 * w32term.c [USE_CRT_DLL]: Remove unnecessary extern, which screws | |
11253 up dllimport attributes. | |
11254 (x_update_window_end): Update prototype. | |
11255 | |
11256 * unexec.c (write_segment) [USE_CRT_DLL]: Remove unnecessary | |
11257 extern, which screws up dllimport attributes. | |
11258 | |
11259 * sysdep.c [USE_CRT_DLL]: Remove unnecessary extern, which screws | |
11260 up dllimport attributes. | |
11261 | |
11262 * strftime.c [USE_CRT_DLL]: Remove unnecessary extern, which | |
11263 screws up dllimport attributes. | |
11264 | |
11265 * process.c [USE_CRT_DLL]: Remove unnecessary extern, which screws | |
11266 up dllimport attributes. | |
11267 (create_process) [USE_CRT_DLL]: Remove unnecessary extern, which | |
11268 screws up dllimport attributes. | |
11269 | |
11270 * lread.c [USE_CRT_DLL]: Remove unnecessary extern, which screws | |
11271 up dllimport attributes. | |
11272 | |
11273 * keyboard.c [USE_CRT_DLL]: Remove unnecessary extern, which | |
11274 screws up dllimport attributes. | |
11275 | |
11276 * floatfns.c [USE_CRT_DLL]: Remove unnecessary extern, which | |
11277 screws up dllimport attributes. | |
11278 | |
11279 * fileio.c [USE_CRT_DLL]: Remove unnecessary extern, which screws | |
11280 up dllimport attributes. | |
11281 | |
11282 * emacs.c (malloc_initialize_hook) [USE_CRT_DLL]: Remove | |
11283 unnecessary extern, which screws up dllimport attributes. | |
11284 (main): Ditto. | |
11285 | |
11286 * editfns.c [USE_CRT_DLL]: Remove unnecessary extern, which screws | |
11287 up dllimport attributes. | |
11288 | |
11289 * dispnew.c (window_change_signal) [USE_CRT_DLL]: Remove | |
11290 unnecessary extern, which screws up dllimport attributes. | |
11291 | |
11292 * callproc.c [USE_CRT_DLL]: Remove unnecessary extern, which | |
11293 screws up dllimport attributes. | |
11294 | |
11295 * buffer.c [USE_CRT_DLL]: Remove unnecessary extern, which screws | |
11296 up dllimport attributes. | |
11297 | |
11298 * w32proc.c (IsValidLocale): Extern missing from mingw32 headers. | |
11299 | |
11300 * w32bdf.c (search_file_line): | |
11301 (set_bdf_font_info): | |
11302 (seek_char): | |
11303 (w32_get_bdf_glyph): | |
11304 (w32_BDF_to_x_font): Fix compile warnings. | |
11305 | |
11306 * w32menu.c: Include keyboard.h before frame.h. Fix compile warnings. | |
11307 | |
11308 * w32select.c: Include keyboard.h before frame.h. | |
11309 | |
11310 * w32fns.c (max): Define macro. | |
11311 (JOHAB_CHARSET): Define if not known. | |
11312 (MOD_ALT, MOD_CONTROL, MOD_SHIFT, MOD_WIN): Define if not known. | |
11313 (Fx_show_tip): Synch with X version. | |
11314 | |
11315 * w32xfns.c: Include keyboard.h before frame.h. | |
11316 | |
11317 * w32fns.c: Include keyboard.h before frame.h. | |
11318 | |
11319 * w32term.c: Include keyboard.h before frame.h. | |
11320 | |
11321 * fontset.c: Include keyboard.h before frame.h. | |
11322 | |
11323 * w32inevt.c: Include keyboard.h before frame.h. | |
11324 (MOUSE_MOVED): Define if not known. | |
11325 | |
11326 * minibuf.c: Include keyboard.h before frame.h. | |
11327 | |
11328 * keyboard.c: Include keyboard.h before frame.h. | |
11329 | |
11330 * indent.c: Include keyboard.h before frame.h. | |
11331 | |
11332 * dispnew.c: Include keyboard.h before frame.h. | |
11333 | |
11334 * buffer.c: Include keyboard.h before frame.h. | |
11335 | |
11336 * alloc.c: Include keyboard.h before frame.h. | |
11337 | |
11338 * print.c: Include keyboard.h before frame.h. | |
11339 | |
11340 * process.c: Include keyboard.h before frame.h. | |
11341 | |
11342 * scroll.c: Include keyboard.h before frame.h. | |
11343 | |
11344 * sysdep.c: Include keyboard.h before frame.h. | |
11345 | |
11346 * term.c: Include keyboard.h before frame.h. | |
11347 | |
11348 * window.c: Include keyboard.h before frame.h. | |
11349 | |
11350 * xdisp.c: Include keyboard.h before frame.h. | |
11351 Separate GLYPH_DEBUG and DEBUG_TRACE_MOVE. | |
11352 | |
11353 * frame.c: Include keyboard.h before frame.h. | |
11354 | |
11355 * w32heap.h: Undefine min, max. | |
11356 | |
11357 * w32gui.h: Undefine min, max. | |
11358 | |
11359 * unexw32.c: Change PUCHAR to PCHAR. | |
11360 (PTR_TO_OFFSET): Cast ptr to unsigned char *. | |
11361 (relocate_offset): | |
11362 (get_section_info): | |
11363 (copy_executable_and_dump_data): Remove unnecessary static defs. | |
11364 (copy_executable_and_dump_data): Fix compile warnings. | |
11365 | |
11366 * sysdep.c (NULL) [WINDOWSNT]: Define NULL if not defined. | |
11367 | |
11368 * w32console.c (min): Define macro. | |
11369 (clear_frame, write_glyphs): Fix compile warning. | |
11370 | |
11371 * w32proc.c (compare_env): | |
11372 (find_child_console): Fix compile warning. | |
11373 | |
11374 * w32.c (sys_strerror): Use sys_nerr instead of _sys_nerr. Use | |
11375 sys_errlist instead of _sys_errlist. | |
11376 (get_emacs_configuration_options): New function. | |
11377 | |
11378 * s/ms-w32.h (sys_nerr): Provide default definition. | |
11379 (strdup, strupr, strnicmp, stricmp, tzset, tzname): Map to same | |
11380 name with _ prepended. | |
11381 (NSIG): Define if not known. | |
11382 (get_emacs_configuration): Provide extern declaration. | |
11383 (get_emacs_configuration_options): Provide extern declaration. | |
11384 (EMACS_CONFIG_OPTIONS): Call get_emacs_configuration_options. | |
11385 | |
11386 * w32.c (gettimeofday): Use struct timeb, not struct _timeb. | |
11387 (map_w32_filename): | |
11388 (read_unc_volume): Fix compile warning. | |
11389 | |
11390 * s/ms-w32.h (_WINSOCK_H): Define to prevent normal winsock | |
11391 definitions from being used. | |
11392 | |
11393 * lisp.h [WINDOWSNT]: Don't declare externs for getenv, ctime and getwd. | |
11394 | |
11395 * w32.c (unc_volume_file_attributes): | |
11396 (open_unc_volume): Make arg const. | |
11397 | |
11398 * sysdep.c [WINDOWSNT]: Remove extern decl of errno. | |
11399 (read_input_waiting): Remove excess parameter. | |
11400 | |
11401 * w32.c (init_environment): Call _access. | |
11402 (check_windows_init_file): Call _close. | |
11403 (init_user_info): Call _putenv. | |
11404 (init_environment): Call _putenv and _strdup. | |
11405 (init_ntproc): Reset volume info cache on startup. | |
11406 | |
11407 * s/ms-w32.h (malloc, free, realloc, calloc): Rename if | |
11408 USE_CRT_DLL is defined, so Emacs can use GNU malloc even though it | |
11409 cannot override the CRT malloc. | |
11410 | |
11411 * makefile.nt (LOCAL_FLAGS): Define USE_CRT_DLL if requested. | |
11412 (LINK_FLAGS): Append to original value of LINK_FLAGS. | |
11413 | |
11414 * w32heap.c [!USE_CRT_DLL]: Don't define _heap_init and _heap_term | |
11415 unless we are linking with a static CRT. | |
11416 (RVA_TO_PTR): Cast result to unsigned char*. | |
11417 | |
11418 * w32.c (GetCachedVolumeInformation): Use xmalloc, xfree and xstrdup. | |
11419 (add_volume_info): Use xstrdup. | |
11420 | |
11421 2000-08-22 Stefan Monnier <monnier@cs.yale.edu> | |
11422 | |
11423 * minibuf.c (Vcompletion_auto_help): Renamed from `auto_help'. | |
11424 (do_completion, Fminibuffer_complete_word): Use it. | |
11425 (syms_of_minibuf): Turn completion-auto-help into a proper Lisp | |
11426 var so it can take non-boolean values. | |
11427 | |
11428 2000-08-21 Gerd Moellmann <gerd@gnu.org> | |
11429 | |
11430 * editfns.c (find_field): Formatting changes. | |
11431 (toplevel): Some old-style function forward declarations | |
11432 changed to prototypes, some new protypes added, some functions | |
11433 made static. | |
11434 | |
11435 * lisp.h (set_time_zone_rule): Add prototype. | |
11436 (use_dialog_box): External declaration. | |
11437 | |
11438 * keyboard.c (gen_help_event): Add parameter SIZE. | |
11439 (kbd_buffer_events_waiting): Slightly rewritten. | |
11440 (clear_event): New function. | |
11441 (kbd_buffer_get_event): Use it, and clear the input_events of | |
11442 HELP_EVENTs. | |
11443 (init_keyboard): Remove duplicate creation of kbd_buffer_gcpro and | |
11444 don't fill the newly created array with nils. | |
11445 (toplevel): Convert some old-style function forward declarations | |
11446 to prototypes. | |
11447 | |
11448 * keyboard.h (gen_help_event): Change prototype. | |
11449 | |
11450 * xterm.c (XTread_socket): Change calls to gen_help_event. | |
11451 | |
11452 * w32term.c (w32_read_socket): Change calls to gen_help_event. | |
11453 | |
11454 * eval.c (Fmacroexpand): Doc fix. | |
11455 | |
11456 2000-08-20 Jason Rumney <jasonr@gnu.org> | |
11457 | |
11458 * w32term.h (x_display_info_for_display): Remove as this function | |
11459 does not exist on W32. | |
11460 | |
11461 * w32term.c (help_echo_window): New variable. | |
11462 (syms_of_w32term): staticpro it. | |
11463 (note_mode_line_highlight): Set it. | |
11464 (XTextExtents16): Removed as there is no equivalent on W32. | |
11465 (x_compute_glyph_string_overhangs): Incomplete body removed, as | |
11466 the X way of doing this will not work for W32. | |
11467 (w32_intersect_rectangles): Removed. Use IntersectRect API call. | |
11468 (x_draw_image_foreground): Avoid drawing outside of the clip area | |
11469 when image doesn't have a mask. | |
11470 (note_mouse_highlight): Process overlays in the right order of | |
11471 priority. Set help_echo_window. | |
11472 (x_draw_bar_cursor): If cursor is on an image, draw a box cursor | |
11473 because that's more visible for large images. | |
11474 | |
11475 * w32menu.c (keymap_panes): Pass the keymap's prompt as the pane | |
11476 name to single_keymap_panes. | |
11477 (w32_menu_show): Set wv->title when dealing with titles. | |
11478 (w32_menu_display_help): Call show_help_echo with OBJECT and POS. | |
11479 | |
11480 2000-08-21 Miles Bader <miles@gnu.org> | |
11481 | |
11482 * minibuf.c (do_completion): Try again if we rewrite the input | |
11483 string, but no completion was done, so that any completion message | |
11484 will be correct. | |
11485 | |
11486 2000-08-20 Gerd Moellmann <gerd@gnu.org> | |
11487 | |
11488 * xfaces.c (lface_equal_p): Compare strings differently. | |
11489 (Qtty_color_alist, Vtty_defined_color_alist): New variables. | |
11490 (realize_tty_face): Use them. | |
11491 (syms_of_xfaces): Initialize new variables. | |
11492 (map_tty_color): New function, extracted from realize_tty_face. | |
11493 (map_tty_color) [MSDOS || WINDOWSNT]: If using the frame's default | |
11494 foreground or background color, store the new color name in the | |
11495 realized face; previous code trying to do this had no effect. | |
11496 (realize_tty_face): Use map_tty_color. | |
11497 (Fclear_face_cache): Set face_change_count and ensure thorough | |
11498 redisplay. | |
11499 | |
11500 2000-08-19 Gerd Moellmann <gerd@gnu.org> | |
11501 | |
11502 * undo.c (record_first_change, record_marker_adjustment): Don't | |
11503 use XBUFFER on last_undo_buffer which might not be a buffer. | |
11504 | |
11505 2000-08-18 Kenichi Handa <handa@etl.go.jp> | |
11506 | |
11507 * coding.c (decode_coding_string): Set members consumed, | |
11508 consumed_char, produced, produced_char of *coding correctly. If | |
11509 decode_coding doesn't consume any byte, don't try anymore. | |
11510 (encode_coding_string): Likewise. | |
11511 | |
11512 2000-08-18 Gerd Moellmann <gerd@gnu.org> | |
11513 | |
11514 * lisp.h (CHECK) [ENABLE_CHECKING]: Make both sides of the | |
11515 conditional have void type, for Standard C compilers. | |
11516 | |
11517 * xdisp.c (redisplay_internal): Compare windows for equality with | |
11518 EQ, instead of applying XWINDOW to something that might not | |
11519 be a window. | |
11520 | |
11521 2000-08-18 Kenichi Handa <handa@etl.go.jp> | |
11522 | |
11523 * fontset.c (Finternal_char_font): Search only the selected frame | |
11524 for a window of the current buffer. | |
11525 | |
11526 2000-08-18 Gerd Moellmann <gerd@gnu.org> | |
11527 | |
11528 * minibuf.c (do_completion): Use EQ instead of `!=' to compare | |
11529 Lisp_Objects. | |
11530 | |
11531 * keyboard.c (kbd_buffer_get_event): Handle the case that the | |
11532 second half of a HELP_EVENT is found at the start of kbd_buffer. | |
11533 | |
11534 2000-08-18 Miles Bader <miles@gnu.org> | |
11535 | |
11536 * lisp.h (Lisp_String): Replace DECLARE_INTERVALS with real decl. | |
11537 | |
11538 * editfns.c (save_restriction_save): Rewrite to use markers. | |
11539 (save_restriction_restore): Rewrite to understand new form of data | |
11540 saved by save_restriction_save. | |
11541 (Fsave_restriction): Remove cautionary note in doc-string. | |
11542 | |
11543 2000-08-17 Gerd Moellmann <gerd@gnu.org> | |
11544 | |
11545 * fileio.c (build_annotations): Add a comment explaining the | |
11546 return value of format-annotate-function. Replace a spurious call | |
11547 to Flength with a CONSP test. Call format-annotate-function with | |
11548 a fifth arg specifying how many times the function is been called | |
11549 in a row, to let it choose temporary buffers appropriately. | |
11550 | |
11551 2000-08-17 Dave Love <fx@gnu.org> | |
11552 | |
11553 * lisp.h: Remove DECLARE_INTERVALS, INITIALIZE_INTERVAL. Don't | |
11554 declare make_temp_name twice. | |
11555 | |
11556 * lread.c: Prototype readevalloop, load_unwind, load_descriptor_unwind. | |
11557 (unreadpure): Give it an arg. | |
11558 | |
11559 * unexalpha.c: Prototype fatal_unexec, mark_x, | |
11560 update_dynamic_symbols. Declare unexec as void. | |
11561 | |
11562 * cm.c [HAVE_TERMCAP_H]: Include <termcap.h>. | |
11563 [!HAVE_TERMCAP_H]: Prototype tputs, tgoto. | |
11564 | |
11565 * alloc.c (lisp_malloc): Declare with POINTER_TYPE. | |
11566 [SYSTEM_MALLOC]: Make decls in malloc.h conditional on DOUG_LEA_MALLOC. | |
11567 | |
11568 * alloca.c: Use #error. | |
11569 [POINTER_TYPE]: Use it. | |
11570 | |
11571 * eval.c (Fdefvar): Doc fix. | |
11572 | |
11573 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Avoid | |
11574 INITIALIZE_INTERVAL. | |
11575 | |
11576 * buffer.h: Avoid DECLARE_INTERVALS. | |
11577 | |
11578 * config.in: Add size_t. | |
11579 | |
11580 2000-08-17 Eli Zaretskii <eliz@is.elta.co.il> | |
11581 | |
11582 * w16select.c (set_clipboard_data): If there's not enough memory | |
11583 to put text into clipboard, return 1, as Fw16_set_clipboard_data | |
11584 expects. In case of other failures, return 3. | |
11585 (system_error_msg): New error message. | |
11586 (Fw16_set_clipboard_data): If set_clipboard_data returns 3, print | |
11587 system_error_msg. | |
11588 | |
11589 2000-08-16 Gerd Moellmann <gerd@gnu.org> | |
11590 | |
11591 * term.c (write_glyphs): Also turn off inverse video after turning | |
11592 off other appearances in case TS_exit_attribute_mode is not equal | |
11593 to TS_end_standout_mode. | |
11594 (insert_glyphs): Turn inverse video on/off for each run of glyphs | |
11595 with the same face. | |
11596 (turn_off_face): Reset standout_mode only if | |
11597 TS_exit_attribute_mode has been output and TS_exit_attribute_mode | |
11598 is equal to TS_end_standout_mode. | |
11599 | |
11600 2000-08-16 Kenichi Handa <handa@etl.go.jp> | |
11601 | |
11602 * coding.c (encode_coding): Fix the bug of not flushing ISO escape | |
11603 sequence at the end of the source block. | |
11604 | |
11605 * ccl.c (Fccl_program_p): Docstring modified. | |
11606 (Fccl_execute): Likewise. | |
11607 (Fccl_execute_on_string): Likewise. | |
11608 | |
11609 2000-08-16 Eli Zaretskii <eliz@is.elta.co.il> | |
11610 | |
11611 * msdos.c (IT_write_glyphs): Convert cbp to unsigned char *. | |
11612 | |
11613 2000-08-16 Kenichi Handa <handa@etl.go.jp> | |
11614 | |
11615 The following changes are mainly to fix bugs of | |
11616 encode/decode-coding-string failing if encoding/decoding return | |
11617 CODING_FINISH_INSUFFICIENT_DST. In addition, delete the global | |
11618 variable conversion_buffer. | |
11619 | |
11620 * ccl.c (CCL_WRITE_CHAR): If CH is eight-bit-control char, | |
11621 decrement dst_end to avoid buffer overflow in the later call of | |
11622 string_as_multibyte | |
11623 | |
11624 * coding.h (conversion_buffer_size, conversion_buffer) | |
11625 (get_conversion_buffer): Extern deleted. | |
11626 | |
11627 * coding.c (MINIMUM_CONVERSION_BUFFER_SIZE): Macro deleted. | |
11628 (conversion_buffer, conversion_buffer_size): Variables deleted. | |
11629 (get_conversion_buffer): Function deleted. | |
11630 (struct conversion_buffer): New structure. | |
11631 (MAX_ALLOCA): New macro. | |
11632 (allocate_conversion_buffer): New macro. | |
11633 (extend_conversion_buffer, free_conversion_buffer): New functions. | |
11634 (ccl_coding_driver): Set coding->result. | |
11635 (decode_coding): Set coding->result to CODING_FINISH_NORMAL if | |
11636 this is the last block of source. | |
11637 (encode_coding): Likewise. Handle the source block as the last | |
11638 one only when the whole source text is consumed. | |
11639 (decode_coding_string): Handle the case that the output buffer is | |
11640 too small to decode the whole source text. Use | |
11641 allocate_conversion_buffer, extend_conversion_buffer and | |
11642 free_conversion_buffer, not get_conversion_buffer. | |
11643 (encode_coding_string): Likewise. | |
11644 (init_coding): Function deleted. | |
11645 (init_coding_once): Delete code to initialize conversion_buffer_size. | |
11646 | |
11647 * emacs.c (main): Don't call init_coding. | |
11648 | |
11649 * msdos.c (IT_write_glyphs): Use a locally declared conversion_buffer. | |
11650 | |
11651 * term.c (write_glyphs): Use a locally declared conversion_buffer. | |
11652 (insert_glyphs): Likewise. | |
11653 | |
11654 * w32console.c (write_glyphs): Use a locally declared | |
11655 conversion_buffer. | |
11656 | |
11657 2000-08-15 Eli Zaretskii <eliz@is.elta.co.il> | |
11658 | |
11659 * msdos.c (IT_update_begin): Don't crash if mouse_face_mouse_frame | |
11660 member of display_info is NULL. | |
11661 | |
11662 2000-08-15 Gerd Moellmann <gerd@gnu.org> | |
11663 | |
11664 * alloc.c (compact_small_strings): Use safe_bcopy, add an assertion. | |
11665 | |
11666 * term.c (turn_off_face): Reset standout_mode when resetting | |
11667 appearances with capability `me'. | |
11668 (write_glyphs): Switch on inverse video before each face change. | |
11669 | |
11670 2000-08-14 Dave Love <fx@gnu.org> | |
11671 | |
11672 * alloc.c [HAVE_UNISTD_H]: Include unistd.h; don't declare sbrk. | |
11673 [!HAVE_UNISTD_H]: Use POINTER_TYPE to declare sbrk. | |
11674 (lisp_free): Declare and make static. | |
11675 | |
11676 * window.c: Fix embedded comment. | |
11677 (syms_of_window): Fix doc string. | |
11678 | |
11679 2000-08-14 Gerd Moellmann <gerd@gnu.org> | |
11680 | |
11681 * keymap.c (push_key_description): If C without modifiers is < 32, | |
11682 make sure to print `C-' before `M-', like in the manual. | |
11683 | |
11684 2000-08-11 Gerd Moellmann <gerd@gnu.org> | |
11685 | |
11686 * fns.c (hashfn_eq, hashfn_eql): Don't handle strings specially | |
11687 since they aren't relocated anymore. | |
11688 (sxhash_string): Make sure returned hash code fits in a Lisp integer. | |
11689 | |
11690 * xdisp.c (try_cursor_movement): Fix handling of cursor in | |
11691 partially visible line which is smaller than the window's height. | |
11692 | |
11693 2000-08-11 Kenichi Handa <handa@etl.go.jp> | |
11694 | |
11695 * ccl.c (CCL_READ_CHAR): If source is multibyte, pay attention to | |
11696 the multibyte form of eight-bit-control characters. | |
11697 (Fccl_execute_on_string): Initialize ccl->multibyte. | |
11698 | |
11699 * ccl.h (struct ccl_program): New member multibyte. | |
11700 | |
11701 * coding.c (ccl_coding_driver): Initialize ccl->multibyte. | |
11702 | |
11703 2000-08-11 Kenichi Handa <handa@etl.go.jp> | |
11704 | |
11705 * regex.c (regex_compile) <normal_char>: Pay attention to | |
11706 multibyteness. | |
11707 (analyse_first) <exactn>: Setup fastmap correctly for | |
11708 eight-bit-control characters. | |
11709 | |
11710 2000-08-11 Kenichi Handa <handa@etl.go.jp> | |
11711 | |
11712 * termhooks.h (enum event_kind): New member multibyte_char_keystroke. | |
11713 | |
11714 * keyboard.c (make_lispy_event): Handle the new event type | |
11715 multibyte_char_keystroke. | |
11716 | |
11717 * xterm.c: Include coding.h. | |
11718 (XTread_socket): Work around a bug of XmbLookupString. If the | |
11719 input is from XIM, decode it according to the current locale. In | |
11720 that case, generate multibyte_char_keystroke events. | |
11721 | |
11722 2000-08-11 Kenichi Handa <handa@etl.go.jp> | |
11723 | |
11724 * xdisp.c (TRACE_MOVE) [GLYPH_DEBUG]: Delete the last semicolon. | |
11725 (TRACE_MOVE) [not GLYPH_DEBUG]: Define dummy. | |
11726 | |
11727 2000-08-10 Gerd Moellmann <gerd@gnu.org> | |
11728 | |
11729 * xdisp.c (trace_move) [GLYPH_DEBUG]: New variable. | |
11730 (TRACE_MOVE) [GLYPH_DEBUG]: New macro. | |
11731 (move_it_in_display_line_to): Record iterator's ascent and descent | |
11732 before producing glyphs, and restore them when we know the glyph | |
11733 doesn't fit on the line. | |
11734 (move_it_to): Restructured so that it's easier to debug. If | |
11735 moving to a vpos, and not moving to an x or character position, | |
11736 stop as soon as the specified vpos is reached; don't move further | |
11737 into that line because that might change the computed line height. | |
11738 (try_cursor_movement): New function, extracted from the cursor | |
11739 movement branch of redisplay_window. If ending on a partially | |
11740 visible line, don't try to scroll if the cursor line is taller | |
11741 than the window. | |
11742 (redisplay_window): Use try_cursor_movement. | |
11743 | |
11744 * window.c (Fwindow_end): Rewritten to not use Fvertical_motion, | |
11745 because that function doesn't cope with variable-height lines. | |
11746 | |
11747 * xterm.c (x_draw_bar_cursor): If cursor is on an image, draw a | |
11748 box cursor because that's better visible for large images. | |
11749 | |
11750 2000-08-10 Miles Bader <miles@gnu.org> | |
11751 | |
11752 * w32term.c (note_mouse_highlight): Update calls to overlays_at. | |
11753 | |
11754 2000-08-10 Gerd Moellmann <gerd@gnu.org> | |
11755 | |
11756 * xdisp.c (Vmessages_buffer_name): New variable. | |
11757 (message_dolog): Use it. | |
11758 (syms_of_xdisp): Initialize it. | |
11759 | |
11760 2000-08-10 Eli Zaretskii <eliz@is.elta.co.il> | |
11761 | |
11762 * msdos.c (IT_note_mouse_highlight): Update the calls to overlays_at. | |
11763 (toplevel) <kbd_buffer_store_event>: Remove prototype, it's | |
11764 redundant now that keyboard.h is included. | |
11765 | |
11766 2000-08-09 Eli Zaretskii <eliz@is.elta.co.il> | |
11767 | |
11768 * keyboard.c (kbd_buffer_events_waiting): New function. | |
11769 | |
11770 * keyboard.h (kbd_buffer_events_waiting): Add prototype. | |
11771 | |
11772 * msdos.c: Include keyboard.h. | |
11773 (XMenuActivate): Empty no_event events from the event buffer. If | |
11774 no events are left after that, call clear_input_pending. | |
11775 (mouse_clear_clicks): New function, code moved from mouse_init. | |
11776 (mouse_init, XMenuActivate): Call mouse_clear_clicks to force the | |
11777 mouse driver to ``forget'' any past clicks. | |
11778 | |
11779 * Makefile.in (msdos.o): Depend on keyboard.h. | |
11780 | |
11781 2000-08-09 Gerd Moellmann <gerd@gnu.org> | |
11782 | |
11783 * lisp.h (input_pending): External declaration. | |
11784 | |
11785 * dispextern.h (Qredisplay_dont_pause): Declare extern. | |
11786 | |
11787 * xdisp.c (echo_area_display): Display thoroughly if input is | |
11788 pending. Bind redisplay-dont-pause to t during the redisplay. | |
11789 in case input is pending. | |
11790 | |
11791 * dispnew.c (Qredisplay_dont_pause): New variable. | |
11792 (syms_of_display): Initialize and staticpro it. | |
11793 (update_frame_1): Don't interrupt the display for pending input if | |
11794 redisplay_dont_pause is set. | |
11795 | |
11796 * dispnew.c (mode_line_string): Declare parameter MODE_LINE_P. | |
11797 | |
11798 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix. | |
11799 | |
11800 2000-08-09 Miles Bader <miles@lsi.nec.co.jp> | |
11801 | |
11802 * callproc.c (Fcall_process): Terminate the unwind-protect around | |
11803 the post-read-conversion of coding system. | |
11804 | |
11805 * buffer.c (overlays_at): Add CHANGE_REQ parameter. | |
11806 (Foverlays_at, Fnext_overlay_change, Fprevious_overlay_change): Use it. | |
11807 * buffer.h (overlays_at): Update prototype. | |
11808 * xdisp.c (next_overlay_change): Update call to overlays_at. | |
11809 * xfaces.c (face_at_buffer_position): Likewise. | |
11810 * textprop.c (Fget_char_property): Likewise. | |
11811 * xterm.c (note_mouse_highlight): Likewise. | |
11812 | |
11813 * minibuf.c (do_completion): Don't consider a simple change of | |
11814 case as `completion'. | |
11815 | |
11816 2000-08-08 Ken Raeburn <raeburn@gnu.org> | |
11817 | |
11818 * keyboard.c (syms_of_keyboard): Initialize last_point_position_buffer. | |
11819 * undo.c (record_delete): Make sure last_point_position_buffer is | |
11820 a buffer before comparing pointers. | |
11821 | |
11822 * coding.h (decode_coding_string): Declare. | |
11823 | |
11824 * intervals.h (Fprevious_single_char_property_change): Declare. | |
11825 | |
11826 * textprop.c (Fprevious_single_char_property_change): Don't do | |
11827 arithmetic directly on lisp objects. | |
11828 | |
11829 * editfns.c (find_field): Use EQ, not ==, to compare Lisp objects. | |
11830 | |
11831 * keyboard.h (menu_item_eval_property): Declare. | |
11832 | |
11833 * xdisp.c (message_dolog): Save and protect string "*Messages*" to | |
11834 reuse as buffer name, instead of recreating (and discarding) every | |
11835 time a message is logged. | |
11836 (with_echo_area_buffer): Make callback arg A2 a lisp object. | |
11837 (current_message_1, truncate_message_1, set_message_1) | |
11838 (display_echo_area_1, resize_mini_window_1): Signatures changed. | |
11839 (current_message, truncate_echo_area, display_echo_area) | |
11840 (resize_echo_area_axactly): Changed calls. | |
11841 | |
11842 * coding.c (find_safe_codings): CHAR_TABLE_SET index must be a | |
11843 Lisp object. | |
11844 (Ffind_coding_systems_region_internal): First argument to Fappend | |
11845 must be an integer, not a Lisp object. | |
11846 | |
11847 2000-08-08 Kenichi Handa <handa@etl.go.jp> | |
11848 | |
11849 * charset.c (Fchar_width): Doc fix. | |
11850 | |
11851 2000-08-08 Gerd Moellmann <gerd@gnu.org> | |
11852 | |
11853 * charset.c (Fstring_width): Doc fix. | |
11854 | |
11855 2000-08-07 Gerd Moellmann <gerd@gnu.org> | |
11856 | |
11857 * xdisp.c (start_display): When starting display on a continuation | |
11858 line, clear ascent and descent members of the iterator structure; | |
11859 the height of the continued line does not affect the height of the | |
11860 continuation line. | |
11861 (make_cursor_line_fully_visible): Do nothing if cursor is on a | |
11862 line taller than the window. | |
11863 (redisplay_window) <forced window start>: Handle case that the | |
11864 middle of the window is not found in any row. | |
11865 (dump_glyph_row): Show more information. | |
11866 (compute_line_metrics): Use MATRIX_FIRST_TEXT_ROW to determine the | |
11867 first text line in a glyph matrix. | |
11868 | |
11869 * xterm.c (x_draw_image_foreground): Avoid drawing outside | |
11870 of the clip area when image doesn't have a mask. | |
11871 | |
11872 * fns.c (sweep_weak_table): Fix survival conditions for | |
11873 key-or-value and key-and-value weakness. | |
11874 | |
11875 * .gdbinit (xhashtable): New command. | |
11876 | |
11877 * fns.c (sweep_weak_hash_tables): Fix the code taking unmarked | |
11878 tables out of the list of all weak hash tables. | |
11879 | |
11880 * xdisp.c (ensure_echo_area_buffers): If a buffer was killed, and | |
11881 a new buffer is created, make sure echo_area_buffer[] references | |
11882 the new buffer. | |
11883 | |
11884 2000-08-07 Eli Zaretskii <eliz@is.elta.co.il> | |
11885 | |
11886 * msdos.c (Fmsdos_set_mouse_buttons): Add missing backslashes in | |
11887 the doc string. | |
11888 | |
11889 2000-08-07 Kenichi Handa <handa@etl.go.jp> | |
11890 | |
11891 * syntax.c (skip_chars): Fix previous change. Make the handling | |
11892 of unibyte string consistent with that of regex search. | |
11893 | |
11894 2000-08-05 Gerd Moellmann <gerd@gnu.org> | |
11895 | |
11896 * xmenu.c (popup_get_selection): Use xfree instead of free. | |
11897 | |
11898 * fileio.c (Finsert_file_contents): Use xfree instead of free. | |
11899 | |
11900 * editfns.c (Ftranspose_regions): Use xfree instead of free. | |
11901 | |
11902 * callproc.c (child_setup): Use xfree instead of free. | |
11903 | |
11904 * sysdep.c (opendir, GetTempDirName, run_mac_command): Use xmalloc | |
11905 instead of malloc. | |
11906 (run_mac_command, closedir): Use `xfree' instead of `free'. | |
11907 | |
11908 * keymap.c (current_minor_maps): Use xmalloc instead of malloc. | |
11909 | |
11910 * eval.c (error): Use xfree instead of free. | |
11911 | |
11912 * xfaces.c, xfns.c, w32fns.c: Replace `illegal' with `invalid'. | |
11913 | |
11914 * fns.c: Replace `illegal' with `invalid'. | |
11915 (Fmake_hash_table, make_hash_table): Allow table size of 0. | |
11916 | |
11917 2000-08-05 Kenichi Handa <handa@etl.go.jp> | |
11918 | |
11919 * syntax.c (skip_chars): Fix handling of multibyte<->unibyte | |
11920 conversion. | |
11921 | |
11922 2000-08-04 Noah Friedman <friedman@splode.com> | |
11923 | |
11924 * fns.c (Fmake_hash_table): Add missing `\n\' to end of line in | |
11925 docstring. | |
11926 | |
11927 2000-08-04 Gerd Moellmann <gerd@gnu.org> | |
11928 | |
11929 * syntax.c (skip_chars): Fix typo in error message. | |
11930 | |
11931 2000-08-04 Andreas Schwab <schwab@suse.de> | |
11932 | |
11933 * m/ia64.h: Moved from s/ia64.h. | |
11934 | |
11935 2000-08-04 Kenichi Handa <handa@etl.go.jp> | |
11936 | |
11937 * process.c (read_process_output): Big simplification. Handle | |
11938 composition and post-read-conversion of coding system correctly. | |
11939 (send_process): Handle composition correctly. | |
11940 | |
11941 * callproc.c (Fcall_process): Handle post-read-conversion of | |
11942 coding system if any. | |
11943 | |
11944 * coding.c (decode_coding_iso2022): More strict check for handling | |
11945 single shifting. | |
11946 (coding_restore_composition): Pay attention to the case that | |
11947 cmp_data is not set properly (because of invalid code in the | |
11948 source text). | |
11949 (run_pre_post_conversion_on_str): Include text properties in the | |
11950 resulting string. | |
11951 (decode_coding_string): Set members of coding correctly. | |
11952 | |
11953 2000-08-03 Gerd Moellmann <gerd@gnu.org> | |
11954 | |
11955 * s/ia64.h: New file. | |
11956 | |
11957 * widget.c (set_frame_size, update_wm_hints, EmacsFrameSetValues): | |
11958 Use NULL instead of 0 at the end of variable argument list of | |
11959 XtVaGetValues and XtVaSetValues, because 0 fails on systems where | |
11960 sizeof (int) < sizeof (void *). | |
11961 | |
11962 * xmenu.c (update_frame_menubar): Use NULL instead of 0 at the end | |
11963 of variable argument lists of XtVaGetValues and XtVaSetValues. | |
11964 | |
11965 * xfns.c (Fx_file_dialog): Use NULL instead of 0 at the end of | |
11966 variable argument lists of XtVaGetValues and XtVaSetValues. | |
11967 | |
11968 2000-08-02 Gerd Moellmann <gerd@gnu.org> | |
11969 | |
11970 * alloc.c (lisp_malloc, lisp_free): Use size_t and POINTER_TYPE. | |
11971 (xrealloc, xmalloc): Use size_t. Some callers adjusted. | |
11972 | |
11973 * lisp.h (Fsingle_key_description, xmalloc, xrealloc): Change | |
11974 prototype. | |
11975 | |
11976 * keyboard.c (read_char_minibuf_menu_prompt): Add new parameter | |
11977 in call to Fsingle_key_description. | |
11978 | |
11979 * keymap.c (Fsingle_key_description): Add parameter NO_ANGLES. | |
11980 Callers changed. | |
11981 | |
11982 2000-08-02 Colin Walters <walters@cis.ohio-state.edu> | |
11983 | |
11984 * window.c (display_buffer_reuse_frames): New variable. | |
11985 (Fdisplay_buffer): If display_buffer_reuse_frames is set, reuse | |
11986 frames displaying BUFFER. | |
11987 (syms_of_window): Define Lisp variable display-buffer-reuse-frames. | |
11988 | |
11989 2000-08-01 Miles Bader <miles@gnu.org> | |
11990 | |
11991 * editfns.c (Fconstrain_to_field): Fix the conditions for deciding | |
11992 when to constrain NEW_POS (they were pretty screwed up before). | |
11993 | |
11994 2000-07-31 Eli Zaretskii <eliz@is.elta.co.il> | |
11995 | |
11996 * msdos.c (run_msdos_command): Save and restore the master | |
11997 environment, for the case that child_setup signals an error. | |
11998 When mirroring slashes in DOS shell commands, don't fail when | |
11999 argv[2] has embedded blanks. | |
12000 (Fmsdos_set_mouse_buttons, mouse_setup_buttons): New functions. | |
12001 (syms_of_msdos): Defsubr Fmsdos_set_mouse_buttons. | |
12002 (dos_ttraw): Call mouse_setup_buttons. | |
12003 | |
12004 * callproc.c (child_setup) [MSDOS]: malloc pwd_var instead of | |
12005 using alloca; free it after run_msdos_command returns. | |
12006 | |
12007 2000-07-27 Dave Love <fx@gnu.org> | |
12008 | |
12009 * s/irix6-5.h (IRIX_FORCE_32_BITS, LD_SWITCH_SYSTEM): Don't define. | |
12010 [_MIPS_SZLONG == 64]: Set up for 64-bit mode -- not currently working. | |
12011 | |
12012 * m/iris4d.h (XUINT, XSET, XUNMARK) [_LP64]: Don't define. | |
12013 | |
12014 2000-07-27 Eli Zaretskii <eliz@is.elta.co.il> | |
12015 | |
12016 * editfns.c (lisp_time_argument): Fix last change. | |
12017 | |
12018 2000-07-27 Gerd Moellmann <gerd@gnu.org> | |
12019 | |
12020 * fns.c (Fdelete): Make it work on vectors and strings in addition | |
12021 to lists. | |
12022 | |
12023 * fns.c (Qkey_or_value, Qkey_and_value): New variables. | |
12024 (syms_of_fns): Initialize new variables. | |
12025 (sweep_weak_table): Handle weakness `key-or-value' and `key-and-value'. | |
12026 (Fmake_hash_table): Recognize `key-and-value' and `key-or-value' | |
12027 weakness, with t meaning the same as `key-and-value'. | |
12028 | |
12029 2000-07-27 Kenichi Handa <handa@etl.go.jp> | |
12030 | |
12031 * coding.h (struct coding_system): Member safe_charset deleted. | |
12032 | |
12033 * coding.c (Qsafe_charsets): This variable deleted. | |
12034 (Qsafe_chars, Vchar_coding_system_table, Qchar_coding_system): | |
12035 New variables. | |
12036 (coding_safe_chars): New function. | |
12037 (CODING_SAFE_CHAR_P): New macro. | |
12038 (CHARSET_OK): New arg C. Call CODING_SAFE_CHAR_P instead of | |
12039 checking safe_charsets member of the coding system. Caller changed. | |
12040 (detect_coding_iso2022): New local variable safe_chars. | |
12041 (DECODE_DESIGNATION): Call CODING_SAFE_CHAR_P instead of checking | |
12042 safe_charsets member of the coding system. | |
12043 (decode_coding_iso2022): New local variable safe_chars. | |
12044 (ENCODE_ISO_CHARACTER_DIMENSION1): Don't check unsafe chars here. | |
12045 (ENCODE_ISO_CHARACTER_DIMENSION2): Likewise. | |
12046 (ENCODE_ISO_CHARACTER): Arguments changed. Caller changed. | |
12047 (ENCODE_UNSAFE_CHARACTER): New macro. | |
12048 (encode_coding_iso2022): New local variable safe_chars. Check | |
12049 unsafe chars. | |
12050 (setup_coding_system): Delete the code to initialize | |
12051 coding->safe_charses | |
12052 (intersection, find_safe_codings): New functions. | |
12053 (Ffind_coding_systems_region_internal): New function. | |
12054 (syms_of_coding): Defsubr it. Initialize Qsafe_chars, | |
12055 Qsafe_cding_system. Make Vchar_coding_system_table a Lisp | |
12056 variable and initialize it. | |
12057 | |
12058 * fns.c (char_table_ref_and_index): New function. | |
12059 | |
12060 * lisp.h (char_table_ref_and_index): Add prototype. | |
12061 | |
12062 2000-07-26 Sam Steingold <sds@gnu.org> | |
12063 | |
12064 * editfns.c (lisp_time_argument): Added third argument `usec'. | |
12065 (Ffloat_time): New built-in Lisp function. | |
12066 | |
12067 2000-07-26 Gerd Moellmann <gerd@gnu.org> | |
12068 | |
12069 * dispextern.h (GLYPH_FROM_CHAR_GLYPH): Use CHARACTERBITS bits | |
12070 for the character code. | |
12071 | |
12072 * config.in (HAVE_SOUND): Define only for FreeBSD, NetBSD and | |
12073 GNU/Linux. | |
12074 | |
12075 * xmenu.c (menu_highlight_callback): Call show_help_echo directly | |
12076 if called for a popup menu. | |
12077 (xmenu_show): Store help string in widget values. | |
12078 | |
12079 2000-07-26 Dave Love <fx@gnu.org> | |
12080 | |
12081 * syswait.h: Move some definitions. | |
12082 (HAVE_SYS_WAIT_H): Undef for HPUX7, Convex. | |
12083 [!HAVE_SYS_WAIT_H]: Define things unconditionally. More | |
12084 perspicuous definitions. | |
12085 (WTERMSIG): Fix bit pattern used. | |
12086 | |
12087 2000-07-26 Kenichi Handa <handa@etl.go.jp> | |
12088 | |
12089 * print.c (print_object): If vector printing is truncated, print | |
12090 "..." to indicate it as well as the case of list printing. | |
12091 | |
12092 2000-07-25 Gerd Moellmann <gerd@gnu.org> | |
12093 | |
12094 * xdisp.c (next_element_from_display_vector): Improve comments. | |
12095 | |
12096 * lisp.h (GLYPH_MASK_CHAR, GLYPH_MASK_FACE): Use 19 bits | |
12097 for the character code, and the rest for the face id as in 20.x. | |
12098 (FAST_GLYPH_FACE, FAST_MAKE_GLYPH): Changed accordingly. | |
12099 | |
12100 * window.c (window_display_table): Cleaned up. | |
12101 | |
12102 * syntax.c (Fforward_word): Add last arg nil in call of | |
12103 Fconstrain_to_field. | |
12104 | |
12105 2000-07-25 Eli Zaretskii <eliz@is.elta.co.il> | |
12106 | |
12107 * fileio.c (Frename_file) [DOS_NT]: If the file names are | |
12108 identical but for the letter-case, don't call | |
12109 barf_or_query_if_file_exists. | |
12110 | |
12111 2000-07-25 Miles Bader <miles@gnu.org> | |
12112 | |
12113 * editfns.c (find_field): Honor special `boundary' fields. | |
12114 (Qboundary): New variables. | |
12115 (syms_of_editfns): Initialize Qboundary. | |
12116 (Fconstrain_to_field): Add the INHIBIT-CAPTURE-PROPERTY argument. | |
12117 Use scan_buffer instead of find_before_next_newline, because it | |
12118 allows us to detect the boundary case where there's a newline at | |
12119 the search limit. | |
12120 * lisp.h (Fconstrain_to_field): Update external declaration. | |
12121 | |
12122 2000-07-24 Gerd Moellmann <gerd@gnu.org> | |
12123 | |
12124 * print.c (temp_output_buffer_setup): Don't call1 Vrun_hooks | |
12125 if that is nil. | |
12126 | |
12127 2000-07-24 Dave Love <fx@gnu.org> | |
12128 | |
12129 * s/sunos4-0.h, s/sol2.h: | |
12130 (LIBS_TERMCAP): Move from m/sparc.h. | |
12131 | |
12132 * m/sparc.h (TERMINFO): Moved to system files (probably only | |
12133 relevant for sunos4 judging by its vintage). | |
12134 (BITS_PER_LONG, BITS_PER_EMACS_INT, _LP64): Define conditional on | |
12135 __arch64__. | |
12136 | |
12137 2000-07-24 Eli Zaretskii <eliz@is.elta.co.il> | |
12138 | |
12139 * xmenu.c (keymap_panes): Pass the keymap's prompt as the pane | |
12140 name to single_keymap_panes. | |
12141 | |
12142 2000-07-24 Andreas Schwab <schwab@suse.de> | |
12143 | |
12144 * fns.c (Fmakehash): Pass Qeql to Fmake_hash_table if TEST is nil. | |
12145 | |
12146 2000-07-24 Gerd Moellmann <gerd@gnu.org> | |
12147 | |
12148 * xdisp.c (with_echo_area_buffer): Take additional EMACS_INT | |
12149 parameters instead of using int parameters. Expect FN to accept | |
12150 EMACS_INT parameters. | |
12151 (display_echo_area, resize_echo_area_axactly, current_message) | |
12152 (truncate_echo_area, set_message_1): Call with_echo_area_buffer | |
12153 with new argument list. | |
12154 (resize_mini_window_1): New callback function. | |
12155 (current_message_1, truncate_message_1, set_message_1): Change | |
12156 parameter lists to the new format expected by with_echo_area_buffer. | |
12157 | |
12158 2000-07-24 Kenichi Handa <handa@etl.go.jp> | |
12159 | |
12160 * fontset.c (fontset_ref): Remove INLINE declaration. | |
12161 (fontset_ref_via_base): Likewise. | |
12162 (Fset_fontset_font): Convert FAMILY and REGISTRY specifications | |
12163 to downcase. | |
12164 | |
12165 2000-07-23 Eli Zaretskii <eliz@is.elta.co.il> | |
12166 | |
12167 * msdos.c (IT_note_mouse_highlight): Process overlays in the | |
12168 correct order of priority. If help echo was found in an overlay, | |
12169 use that overlay as the object in which the help echo was found. | |
12170 | |
12171 2000-07-22 Miles Bader <miles@gnu.org> | |
12172 | |
12173 * textprop.c (Fprevious_single_char_property_change): The initial | |
12174 property value should be from the position preceding POSITION, not | |
12175 following it. | |
12176 | |
12177 2000-07-22 Eli Zaretskii <eliz@is.elta.co.il> | |
12178 | |
12179 * coding.c (syms_of_coding): Doc fix for | |
12180 inhibit-iso-escape-detection. | |
12181 | |
12182 2000-07-21 Gerd Moellmann <gerd@gnu.org> | |
12183 | |
12184 * xterm.c (note_mouse_highlight): Process overlays in the right | |
12185 order of priority. | |
12186 | |
12187 * keyboard.c (show_help_echo, gen_help_event): Extend comments. | |
12188 | |
12189 * xterm.c (note_mouse_highlight): If help-echo was found in an | |
12190 overlay, use that overlay as the object in which the help was found. | |
12191 | |
12192 * window.c (foreach_window_1): Fix typo reversing an if-condition. | |
12193 | |
12194 * window.c (foreach_window): Instead of a fake variable argument | |
12195 list, take one USER_DATA argument. | |
12196 (foreach_window_1): Likewise, and call callback functions with two | |
12197 args, the window and USER_DATA. | |
12198 (struct check_window_data): New struct. | |
12199 (check_window_containing): Use it. | |
12200 (window_from_coordinates): Set up a struct check_window_data for | |
12201 foreach_window. | |
12202 (add_window_to_list, freeze_window_start): Change parameters | |
12203 according to new calling convention. | |
12204 | |
12205 * window.h (foreach_window): Change prototype. | |
12206 | |
12207 * buffer.c (Fprevious_overlay_change): Avoid memory leak. | |
12208 | |
12209 2000-07-21 Eli Zaretskii <eliz@is.elta.co.il> | |
12210 | |
12211 * xmenu.c (menu_help_callback): Call show_help_echo with | |
12212 additional arguments OBJECT and POS. | |
12213 | |
12214 2000-07-21 Kenichi Handa <handa@etl.go.jp> | |
12215 | |
12216 * data.c (Faset): Allow storing any multibyte character in a | |
12217 string. Convert unibyte string to multibyte if necessary. | |
12218 | |
12219 * xfns.c (x_encode_text): New function. | |
12220 (x_set_name): Use x_encode_text. | |
12221 (x_set_title): Likewise. | |
12222 | |
12223 * xselect.c (lisp_data_to_selection_data): Use x_encode_text. | |
12224 | |
12225 * xterm.h (x_encode_text): Add prototype. | |
12226 | |
12227 2000-07-20 Dave Love <fx@gnu.org> | |
12228 | |
12229 * ccl.c (Fccl_execute_on_string): Don't check xmalloc return. Use | |
12230 xfree, not free. | |
12231 | |
12232 2000-07-20 Eli Zaretskii <eliz@is.elta.co.il> | |
12233 | |
12234 * msdos.c (help_echo_window): New variable. | |
12235 (syms_of_msdos): Initialize and staticpro it. | |
12236 (IT_note_mode_line_highlight): Set help_echo_window. | |
12237 (IT_note_mouse_highlight): Ditto. | |
12238 (dos_rawgetc): Store help_echo_window in the second event produced | |
12239 for HELP_EVENTs. | |
12240 | |
12241 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight): | |
12242 Record the object that generated the help echo and the position of | |
12243 that object in help_echo_object and help_echo_pos. Record that | |
12244 some glyphs in a row are displayed in mouse-face. | |
12245 (IT_update_begin): Don't clear mouse highlight unless one of the | |
12246 enabled glyph rows is marked as being displayed in mouse-face. | |
12247 (dos_rawgetc): Generate 2 events for HELP_EVENT. Pass the object | |
12248 and position recorded in help_echo_object and help_echo_pos to the | |
12249 event queue. | |
12250 (IT_menu_display): Accept a new argument PN: the pane number of | |
12251 the current menu pane. Record the pane number and the item | |
12252 number of the item which has associated help string. | |
12253 (XMenuActivate): Update the prototype for help_callback in | |
12254 function declaration. Call IT_menu_display with the current menu | |
12255 pane number as an additional argument. Call help_callback with | |
12256 two additional arguments: the pane number and the item number of | |
12257 the menu item associated with the help text. | |
12258 (help_echo_object, help_echo_pos): New variables. | |
12259 (syms_of_msdos): Initialize them and staticpro help_echo_object. | |
12260 | |
12261 * msdos.h (XMenuActivate): Update prototype. | |
12262 | |
12263 2000-07-19 Gerd Moellmann <gerd@gnu.org> | |
12264 | |
12265 * xdisp.c (with_echo_area_buffer): Call FN with more arguments. | |
12266 Add some more prototypes. | |
12267 | |
12268 * xterm.c, xterm.h: Add some more prototypes. | |
12269 | |
12270 * lisp.h (Fnext_single_char_property_change): Add prototype. | |
12271 | |
12272 * dispnew.c (direct_output_for_insert): Remove confusing | |
12273 outer local variable mouse_face_overwritten_p. | |
12274 (glyph_row_slice_p): Put in #ifdef GLYPH_DEBUG. | |
12275 | |
12276 * alloc.c (allocate_string_data): Don't copy old string contents. | |
12277 | |
12278 2000-07-19 Kenichi Handa <handa@etl.go.jp> | |
12279 | |
12280 * coding.c (code_convert_region): Delete text properties before | |
12281 shrinking the conversion region. | |
12282 | |
12283 2000-07-18 Gerd Moellmann <gerd@gnu.org> | |
12284 | |
12285 * dispnew.c (update_text_area): Write the whole row if it | |
12286 has mouse-face in it. | |
12287 | |
12288 * xfaces.c (face-alternative-font-family-alist): Remove | |
12289 DEFVAR_LISP; staticpro instead. | |
12290 | |
12291 * xmenu.c (menu_help_callback): Call show_help_echo with | |
12292 new arguments. | |
12293 | |
12294 * keyboard.c (show_help_echo): Add parameter WINDOW. | |
12295 (read_char): Call show_help_echo with window extracted from Lisp | |
12296 help event. | |
12297 (gen_help_event): Add parameter WINDOW. | |
12298 | |
12299 * keyboard.h (show_help_echo, gen_help_event): Change prototypes. | |
12300 | |
12301 * xterm.c (help_echo_window): New variable. | |
12302 (note_mouse_highlight, note_tool_bar_highlight): Set help_echo_window. | |
12303 (XTread_socket): Pass help_echo_window to gen_help_event. | |
12304 (syms_of_xterm): Initialize and staticpro help_echo_window. | |
12305 | |
12306 2000-07-18 Dave Love <fx@gnu.org> | |
12307 | |
12308 * Makefile.in: Fix dependencies of blockinput.h on atimer.h, systime.h. | |
12309 | |
12310 2000-07-18 Gerd Moellmann <gerd@gnu.org> | |
12311 | |
12312 * alloc.c (allocate_string_data): If string had already data | |
12313 assigned, copy old contents to new string data. | |
12314 | |
12315 * coding.c (syms_of_coding): Fix typo in spelling of variable | |
12316 `inhibit-iso-escape-detection'. | |
12317 | |
12318 * alloca.c (free) [emacs && EMACS_FREE]: Define as EMACS_FREE. | |
12319 | |
12320 * Makefile.in: Add dependencies on dispextern.h. | |
12321 (alloca.o): Don't define malloc and define EMACS_FREE instead of | |
12322 `free'; both can conflict with system header files. | |
12323 | |
12324 2000-07-18 Kenichi Handa <handa@etl.go.jp> | |
12325 | |
12326 * charset.h (MAKE_CHAR): Return reasonable code even if CHARSET is | |
12327 undefined. | |
12328 | |
12329 2000-07-18 Dave Love <fx@gnu.org> | |
12330 | |
12331 * window.c (Fwindow_list): Declare arg `window'. | |
12332 | |
12333 2000-07-18 Kenichi Handa <handa@etl.go.jp> | |
12334 | |
12335 * coding.c (setup_coding_system): Don't override the explicitly | |
12336 specified designations. | |
12337 | |
12338 2000-07-15 Miles Bader <miles@gnu.org> | |
12339 | |
12340 * editfns.c (char_property_eq, char_property_stickiness): Renamed | |
12341 from `text_property_eq' and `text_property_stickiness', respectively. | |
12342 (find_field, Fconstrain_to_field, char_property_eq) | |
12343 (char_property_stickiness): Changed to call char-property functions | |
12344 instead of text-property-only ones. | |
12345 | |
12346 * textprop.c (Fnext_single_char_property_change): Made a subr (was | |
12347 `next_single_char_property_change'). Do more error checking, and | |
12348 cleanup limit behavior. | |
12349 (Fprevious_single_char_property_change): New function. | |
12350 (syms_of_textprop): Initialize new subrs. | |
12351 | |
12352 * xdisp.c (display_prop_end, invisible_text_between_p): | |
12353 Call Fnext_single_char_property_change instead of | |
12354 next_single_char_property_change. | |
12355 | |
12356 2000-07-15 Jason Rumney <jasonr@gnu.org> | |
12357 | |
12358 * w32menu.c (w32_menu_show): Call free_menubar_widget_value_tree | |
12359 after menu is finished with. | |
12360 (add_menu_item): Only consider wv->title as a menu title. | |
12361 (w32_menu_display_help): Add OBJECT and POS to show_help_echo. | |
12362 | |
12363 * w32fns.c (w32_wnd_proc) [WM_DRAW_ITEM]: Do not try to draw a | |
12364 null title. | |
12365 (FONT_REGEXP): Remove unused macro, and its sub-components. | |
12366 (syms_of_w32fns): Replace underscore in w32-enable-synthesized-fonts. | |
12367 | |
12368 * w32term.c (help_echo_object, help_echo_pos): New variables. | |
12369 (note_mode_line_highlight): Store additional information about the | |
12370 help-echo in help_echo_object and help_echo_pos. Check both | |
12371 `local-map' and `keymap' properties for changing the cursor | |
12372 (note_mouse_highlight): Store additional information about the | |
12373 help-echo in help_echo_object and help_echo_pos. | |
12374 (note_tool_bar_highlight): Set help_echo_object to nil and | |
12375 help_echo_pos to -1. | |
12376 (w32_read_socket): Use gen_help_event instead of filling | |
12377 input_events manually. | |
12378 (syms_of_w32term): Staticpro help_echo_object. | |
12379 (x_update_window_end): Add parameter MOUSE_FACE_OVERWRITTEN_P. If | |
12380 set, arrange for a mouse-highlight redisplay in XTframe_up_to_date. | |
12381 (x_clear_mouse_face): New function. | |
12382 (w32_redisplay_interface): Add pointer to x_clear_mouse_face. | |
12383 (x_update_window_begin): No need to turn off the mouse | |
12384 highlight here. | |
12385 (show_mouse_face): Set the mouse_face_p flag of glyph rows | |
12386 depending on whether they contain glyphs highlighted in mouse-face. | |
12387 (x_fill_stretch_glyph_string): Consume runs of stretch | |
12388 glyphs instead of a single one. | |
12389 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string | |
12390 with new argument list. | |
12391 (x_set_glyph_string_gc): Make sure the face's GC is valid. | |
12392 (x_append_glyph, x_append_composite_glyph) | |
12393 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to | |
12394 changes in struct glyph starting 1999-12-27. See comments for | |
12395 xterm.c on 2000-07-05. | |
12396 | |
12397 2000-07-14 Sam Steingold <sds@gnu.org> | |
12398 | |
12399 * xfaces.c (realize_x_face): Fix the last patch: | |
12400 check `default_face' before dereferencing. | |
12401 | |
12402 2000-07-14 Dave Love <fx@gnu.org> | |
12403 | |
12404 * syntax.c (back_comment): Add null default in switch (for pcc). | |
12405 | |
12406 2000-07-14 Kenichi Handa <handa@etl.go.jp> | |
12407 | |
12408 * xfaces.c (realize_x_face): Make fontset using the base of the | |
12409 default_face's fontset, not using the default fontset. | |
12410 | |
12411 * coding.c (inhibit_iso_escape_detection): New variable. | |
12412 (syms_of_coding): Make it a Lisp variable. | |
12413 (detect_coding_iso2022): If inhibit_iso_escape_detection is | |
12414 nonzero, ignore ISO2022's escape sequence. | |
12415 | |
12416 2000-07-14 Gerd Moellmann <gerd@gnu.org> | |
12417 | |
12418 * alloca.c (malloc) [emacs]: Define as xmalloc. | |
12419 | |
12420 * xfns.c (Fx_show_tip): If frame parameters contain a position, | |
12421 use that instead of the mouse position. Add parameters DX and DY. | |
12422 | |
12423 * dispextern.h (Fx_show_tip): Adjust number of parameters | |
12424 in prototype. | |
12425 | |
12426 * keyboard.c (show_help_echo): Add parameters OBJECT and POS. | |
12427 if HELP is a function, call it with OBJECT and POS as parameters | |
12428 to get the help to display. | |
12429 (gen_help_event, kbd_buffer_store_help_event): New functions. | |
12430 (kbd_buffer_get_event): Construct the Lisp help-event differently. | |
12431 (read_char): Call show_help_echo with new parameters. | |
12432 | |
12433 * keyboard.h (gen_help_event, kbd_buffer_store_help_event): | |
12434 Add prototypes. | |
12435 | |
12436 * xterm.c (help_echo_object, help_echo_pos): New variables. | |
12437 (note_mode_line_highlight): Store additional information about the | |
12438 help-echo in help_echo_object and help_echo_pos. Check both | |
12439 `local-map' and `keymap' properties for changing the cursor | |
12440 (note_mouse_highlight): Store additional information about the | |
12441 help-echo in help_echo_object and help_echo_pos. | |
12442 (note_tool_bar_highlight): Set help_echo_object to nil and | |
12443 help_echo_pos to -1. | |
12444 (XTread_socket): Use gen_help_event instead of filling | |
12445 input_events manually. | |
12446 (syms_of_xterm): Staticpro help_echo_object. | |
12447 | |
12448 * xmenu.c (menu_highlight_callback): Use | |
12449 kbd_buffer_store_help_event instead of setting up and input_event | |
12450 structure manually. | |
12451 | |
12452 * xdisp.c (eval_form): GCPRO argument sexpr. | |
12453 (call_function): New function. | |
12454 (handle_single_display_prop): Use call_function and FUNCTIONP | |
12455 instead of checking whether if font_height is a symbol and | |
12456 using eval_form. | |
12457 | |
12458 * eval.c (internal_condition_case_2): New function. | |
12459 | |
12460 * lisp.h (FUNCTIONP): New macro. | |
12461 (internal_condition_case_2, call_function): Add prototypes. | |
12462 | |
12463 * xterm.c (construct_mouse_click, x_scroll_bar_to_input_event) | |
12464 (x_scroll_bar_handle_click, SET_SAVED_MENU_EVENT, XTread_socket): | |
12465 Always set `arg' member of input_events. | |
12466 (construct_menu_click): Unused function removed. | |
12467 | |
12468 * msdos.c (dos_rawgetc): Always set `arg' member of input_events. | |
12469 | |
12470 * w32term.c (construct_mouse_click, construct_mouse_wheel) | |
12471 (construct_drag_n_drop, x_scroll_bar_handle_click) | |
12472 (w32_read_socket): Always set `arg' member of input_events. | |
12473 | |
12474 * keyboard.c (show_help_echo): Use eval_form. Add comment. | |
12475 | |
12476 * lisp.h (eval_form): Add prototype. | |
12477 | |
12478 * xdisp.c (eval_form): Make it externally visible. | |
12479 | |
12480 2000-07-13 Gerd Moellmann <gerd@gnu.org> | |
12481 | |
12482 * xterm.c (x_handle_tool_bar_click): Store the frame in the | |
12483 frame_or_window slot of TOOL_BAR_EVENT input events instead of | |
12484 consing. For prefix events, store the frame in the `arg' slot of | |
12485 the event, otherwise store the key there. | |
12486 (XTread_socket): Instead of consing, use the frame_or_window slot | |
12487 of HELP_EVENTs for the frame, and the `arg' slot for the help string. | |
12488 | |
12489 * xmenu.c (menu_highlight_callback): Store help string in the | |
12490 `arg' member of the input event; don't cons. | |
12491 (menubar_selection_callback): Use the `arg' slot of input events | |
12492 to queue additional information, instead of consing. | |
12493 | |
12494 * msdos.c (dos_rawgetc): Adapt to change of HELP_EVENTs. | |
12495 | |
12496 * w32term.c (w32_handle_tool_bar_click): Adapt to changes in | |
12497 TOOL_BAR_EVENTs. | |
12498 (w32_read_socket): Adapt to changes in HELP_EVENTs. | |
12499 | |
12500 * w32menu.c (menubar_selection_callback): Use the `arg' slot of | |
12501 input events to queue additional information, instead of consing. | |
12502 | |
12503 * keyboard.c (kbd_buffer_gcpro): Renamed from | |
12504 kbd_buffer_frame_or_window. Now used for all Lisp objects | |
12505 referenced from the input queue. | |
12506 (kbd_buffer_store_event): Always use structure assignment for | |
12507 copying input events. Record all Lisp objects referenced from | |
12508 events in kbd_buffer_gcpro. | |
12509 (kbd_buffer_get_event): Construct Lisp `help-echo' events | |
12510 differently from input events. Test for prefix menu_bar_events | |
12511 and TOOL_BAR_EVENTs differently. Reset all slots used by an input | |
12512 event in kbd_buffer_gcpro to nil. | |
12513 (make_lispy_event) <TOOL_BAR_EVENT>: Treat an input event whose | |
12514 frame_or_window is equal to its arg member as prefix events. | |
12515 (stuff_buffered_input): Reset all slots in kbd_buffer_gcpro | |
12516 used by an input event to nil. | |
12517 (init_keyboard): Use two times the size of the input queue | |
12518 for kbd_buffer_gcpro. | |
12519 (syms_of_keyboard): Likewise. | |
12520 | |
12521 * emacs.c (handle_USR2_signal, handle_USR1_signal): | |
12522 Use USER_SIGNAL_EVENT. | |
12523 | |
12524 * termhooks.h (struct input_event): Add member `arg'. | |
12525 (MENU_BAR_EVENT): Renamed from menu_bar_event. | |
12526 (USER_SIGNAL_EVENT): Renamed from user_signal. | |
12527 | |
12528 * xfaces.c (ASET): Remove definition. | |
12529 | |
12530 * lisp.h (AREF, ASET, ASIZE): New macros. | |
12531 | |
12532 * fontset.c (AREF, ASIZE): Remove definitions. | |
12533 | |
12534 * fns.c (AREF): Remove definition. | |
12535 | |
12536 * composite.c (AREF): Remove definition. | |
12537 | |
12538 2000-07-12 Gerd Moellmann <gerd@gnu.org> | |
12539 | |
12540 * dispnew.c (redraw_overlapped_rows): Add missing local. | |
12541 (scrolling_window): Remove debug code. | |
12542 | |
12543 * xdisp.c (try_window_reusing_current_matrix, try_window_id): | |
12544 Before scrolling, turn off a mouse-highlight in the window | |
12545 being scrolled. | |
12546 | |
12547 * xterm.c (x_update_window_end): Add parameter | |
12548 MOUSE_FACE_OVERWRITTEN_P. If set, arrange for a mouse-highlight | |
12549 redisplay in XTframe_up_to_date. | |
12550 (x_clear_mouse_face): New function. | |
12551 (x_redisplay_interface): Add pointer to x_clear_mouse_face. | |
12552 | |
12553 * dispnew.c (make_current): Preserve the mouse_face_p flag of the | |
12554 current glyph row. | |
12555 (update_window_line): Add parameter MOUSE_FACE_OVERWRITTEN_P. Set | |
12556 it when any row is written to that contains glyphs highlighted in | |
12557 mouse-face. | |
12558 (update_window): Call the window update end hook with new | |
12559 parameter MOUSE_FACE_OVERWRITTEN_P. | |
12560 (direct_output_for_insert): Give up if row contains mouse-face. | |
12561 | |
12562 * dispextern.h (struct redisplay_interface): Add parameter | |
12563 MOUSE_FACE_OVERWRITTEN_P to update_window_end_hook function. | |
12564 (clear_mouse_face): New function pointer member. | |
12565 | |
12566 2000-07-11 Stefan Monnier <monnier@cs.yale.edu> | |
12567 | |
12568 * syntax.c (back_comment): Use one switch rather than a few `if's. | |
12569 Obey open_paren_in_column_0_is_defun_start. | |
12570 When reverting to the `slow' method, try to nicely handle the case | |
12571 of nested comments by checking that the comment-starter we found | |
12572 does indeed match the comment-ender. | |
12573 (scan_sexps_forward, scan_sexps_forward): | |
12574 Ignore excessive opening parenthesis rather than throwing an error. | |
12575 | |
12576 2000-07-11 Gerd Moellmann <gerd@gnu.org> | |
12577 | |
12578 * doc.c (Fsubstitute_command_keys): Handle case that a GC | |
12579 in Fwhere_is_internal or get_keymap_1 relocates string contents. | |
12580 | |
12581 * dispnew.c (direct_output_forward_char): Give up if currently | |
12582 displaying a message instead of the minibuffer contents. | |
12583 | |
12584 * xterm.c (x_update_window_begin): No need to turn off the mouse | |
12585 highlight here. | |
12586 (show_mouse_face): Set the mouse_face_p flag of glyph rows | |
12587 depending on whether they contain glyphs highlighted in mouse-face. | |
12588 | |
12589 * dispnew.c (row_equal_p): Add parameter MOUSE_FACE_P. If set, | |
12590 compare the mouse_face_p flags of both rows. | |
12591 | |
12592 * dispextern.h (struct glyph_row): Add flag mouse_face_p. | |
12593 | |
12594 2000-07-11 Eli Zaretskii <eliz@is.elta.co.il> | |
12595 | |
12596 * keyboard.c (show_help_echo): Accept additional parameter | |
12597 ok_to_overwrite_keystroke_echo. | |
12598 (read_char): Call show_help_echo with a zero | |
12599 ok_to_overwrite_keystroke_echo argument. | |
12600 * keyboard.h (show_help_echo): Update prototype of show_help_echo. | |
12601 * xmenu.c (menu_help_callback): Call show_help_echo with non-zero | |
12602 ok_to_overwrite_keystroke_echo argument. | |
12603 * w32menu.c (w32_menu_display_help): Call show_help_echo with | |
12604 non-zero ok_to_overwrite_keystroke_echo argument. | |
12605 | |
12606 2000-07-10 Gerd Moellmann <gerd@gnu.org> | |
12607 | |
12608 * xdisp.c (try_window_id): If changes are all below what is | |
12609 displayed in the window, and point is in the window, we still | |
12610 might have to find point on the display. | |
12611 | |
12612 * xterm.c (x_fill_stretch_glyph_string): Consume runs of stretch | |
12613 glyphs instead of a single one. | |
12614 (BUILD_STRETCH_GLYPH_STRING): Call x_fill_stretch_glyph_string | |
12615 with new argument list. | |
12616 (x_set_glyph_string_gc): Make sure the face's GC is valid. | |
12617 | |
12618 * keymap.c (get_keymap_1): Add comment that this function can GC. | |
12619 (where_is_internal_2, where_is_internal_1): Add GCPROs, add | |
12620 comment that functions can GC. | |
12621 (Fset_keymap_parent): GCPRO arg KEYMAP. | |
12622 | |
12623 2000-07-10 Eli Zaretskii <eliz@is.elta.co.il> | |
12624 | |
12625 * msdos.c (XMenuActivate): After exiting the menu, restore the | |
12626 echo area message and erase it. | |
12627 | |
12628 2000-07-10 Kenichi Handa <handa@etl.go.jp> | |
12629 | |
12630 * fontset.c (Ffontset_info): Make the return value more compatible | |
12631 with that of Emacs 20. | |
12632 | |
12633 2000-07-07 Gerd Moellmann <gerd@gnu.org> | |
12634 | |
12635 * eval.c (Fsignal): Handle case that backtrace_list is null. | |
12636 | |
12637 2000-07-07 Kenichi Handa <handa@etl.go.jp> | |
12638 | |
12639 * ccl.c (Fccl_execute): Typo fixed. | |
12640 | |
12641 2000-07-06 Gerd Moellmann <gerd@gnu.org> | |
12642 | |
12643 * window.c (window_loop): Add missing gcpro1 local variable. | |
12644 | |
12645 * window.c (Fwindow_list): Reverse list at the end. | |
12646 (candidate_window_p): Add parameter OWINDOW. ALL_FRAMES nil | |
12647 means allow windows on OWINDOW's frame, only. | |
12648 (window_loop): Simplified; use Fwindow_list. | |
12649 | |
12650 * Makefile.in (TAGS-LISP): Don't pass `$(lispsource)' to make. | |
12651 | |
12652 2000-07-05 Gerd Moellmann <gerd@gnu.org> | |
12653 | |
12654 * xterm.c (XTread_socket): Increment handling_signal at the start, | |
12655 decrement it at the end. | |
12656 | |
12657 * eval.c (handling_signal): New variable. | |
12658 (Fsignal): Abort if handling_signal is non-zero. | |
12659 | |
12660 * lisp.h (handling_signal): External declaration. | |
12661 | |
12662 * s/freebsd.h (WAITTYPE, WRETCODE): Put in #if 0. | |
12663 | |
12664 2000-07-05 Ken Raeburn <raeburn@gnu.org> | |
12665 | |
12666 Sound support for NetBSD through "Linux emulation" support: | |
12667 * config.in (HAVE_SOUNDCARD_H): Undef. | |
12668 (HAVE_SOUND): Define if HAVE_SOUNDCARD_H. | |
12669 * Makefile.in (LIBSOUND): New variable. | |
12670 (LIBES): Include it. | |
12671 * sound.c [HAVE_SOUNDCARD_H]: Include <sys/ioctl.h> and <soundcard.h>. | |
12672 (DEFAULT_SOUND_DEVICE): Define to "/dev/dsp" if not defined elsewhere. | |
12673 (vox_open): Use DEFAULT_SOUND_DEVICE. | |
12674 * s/netbsd.h (DEFAULT_SOUND_DEVICE): Define to /dev/audio. | |
12675 | |
12676 2000-07-05 Gerd Moellmann <gerd@gnu.org> | |
12677 | |
12678 * print.c (print_error_message): If Vsignaling_function is set, | |
12679 show it in *Messages*. | |
12680 | |
12681 * lisp.h (Vsignaling_function): External declaration. | |
12682 | |
12683 * eval.c (Vsignaling_function): New variable. | |
12684 (Fsignal): Compute it. | |
12685 (syms_of_eval): Staticpro it. | |
12686 | |
12687 2000-07-05 Dave Love <fx@gnu.org> | |
12688 | |
12689 * syswait.h: Use the autoconf recommended approach. Old code | |
12690 #if'd out in case we need to revert. | |
12691 | |
12692 * config.in (HAVE_SYS_WAIT_H): Added. | |
12693 | |
12694 2000-07-05 Andrew Innes <andrewi@gnu.org> | |
12695 | |
12696 * vm-limit.c (check_memory_limits) [REL_ALLOC]: Use real_morecore | |
12697 when non-NULL instead of __morecore, to take account of buffer | |
12698 memory. This also solves a problem with spurious memory warnings | |
12699 on Windows. | |
12700 | |
12701 * ralloc.c: Make real_morecore non-static. | |
12702 | |
12703 * eval.c (internal_condition_case): Comment out abort if | |
12704 interrupt_input_blocked is not zero. | |
12705 | |
12706 * makefile.nt: Add support for `bootstrap' and related targets. | |
12707 Include minimal debug info in emacs.exe in release build. | |
12708 Remove all dependencies on lisp.h, and fixup some others. | |
12709 | |
12710 * w32.c (init_environment): Install code from 20.7 for providing | |
12711 default values for environment variables, based on the | |
12712 executable's own location. | |
12713 (map_w32_filename): Handle filenames that are longer than MAX_PATH. | |
12714 (sys_socket): Install socket inheritance bug fix from 20.7. | |
12715 | |
12716 * alloca.c [emacs]: Include lisp.h (needed by atimer.h included | |
12717 here via blockinput.h). | |
12718 | |
12719 2000-07-05 Stefan Monnier <monnier@cs.yale.edu> | |
12720 | |
12721 * w32menu.c (w32_menu_display_help): | |
12722 * xmenu.c (menu_help_callback): Use show_help_echo. | |
12723 | |
12724 * keyboard.h (show_help_echo): Declare. | |
12725 | |
12726 * keyboard.c (show_help_echo): New function, extracted from read_char. | |
12727 Feval its `msg' argument if it's a cons cell. | |
12728 (read_char): Use it. | |
12729 (follow_key): Pass `autoload' to get_keyelt. | |
12730 | |
12731 * xterm.c (note_mode_line_highlight, note_mouse_highlight) | |
12732 (note_tool_bar_highlight, XTread_socket): | |
12733 * msdos.c (IT_note_mode_line_highlight, IT_note_mouse_highlight) | |
12734 (dos_rawgetc): | |
12735 * w32term.c (note_mode_line_highlight, note_mouse_highlight) | |
12736 (note_tool_bar_highlight, w32_read_socket): | |
12737 Do not gratuitously ignore non-string `help-echo' properties. | |
12738 | |
12739 2000-07-05 Gerd Moellmann <gerd@gnu.org> | |
12740 | |
12741 * eval.c (Feval): Put check for interrupt_input_block in #if 0. | |
12742 | |
12743 * window.c (delete_all_subwindows): Reset Vwindow_list. | |
12744 | |
12745 * xterm.c (x_append_glyph, x_append_composite_glyph) | |
12746 (x_produce_image_glyph, x_append_stretch_glyph): Accomodate to | |
12747 changes in struct glyph starting 1999-12-27. Some bit-fields of | |
12748 struct glyph were not set, which made glyphs unequal when compared | |
12749 with GLYPH_EQUAL_P. Redisplay outputs such glyphs, and flickering | |
12750 effects were the result. This also depended on the contents of | |
12751 memory returned by xmalloc. If flickering happens again, activate | |
12752 the code in clear_glyph_row that's in #if 0. If the flickering is | |
12753 gone with that, chances are that it is caused by something similar. | |
12754 | |
12755 * dispnew.c (clear_glyph_row): Add debug code in #if 0. | |
12756 | |
12757 * dispextern.h: Add some comments. | |
12758 | |
12759 * window.c (add_window_to_list): Add parameter LIST. | |
12760 (window_list): Order list so that, for each frame, windows are | |
12761 in canonical order, and so that frames appear in the list in | |
12762 the order given by Vframe_list. | |
12763 (next_window): Reverse the handling of NEXT_P. | |
12764 | |
12765 2000-07-04 Gerd Moellmann <gerd@gnu.org> | |
12766 | |
12767 * window.c (Vwindow_list): New variable. | |
12768 (make_window, delete_window): Set Vwindow_list to nil. | |
12769 (check_window_containing): New function. | |
12770 (window_from_coordinates): Rewritten. | |
12771 (add_window_to_list, window_list, candidate_window_p) | |
12772 (decode_next_window_args, next_window): New functions. | |
12773 (Fnext_window, Fprevious_window): Rewritten in terms of next_window. | |
12774 (Fwindow_list): New function. | |
12775 (Fother_window): Cleaned up. | |
12776 (foreach_window): Add a longer "variable argument list". Let | |
12777 callback function return 0 to indicate that cycling over windows | |
12778 should stop. | |
12779 (foreach_window_1): Likewise. | |
12780 (freeze_window_start): Return int. | |
12781 (init_window): New function. | |
12782 (syms_of_window): Staticpro Vwindow_list and defsubr Swindow_list. | |
12783 | |
12784 * emacs.c (handle_USR1_signal, handle_USR2_signal) Clear | |
12785 input_event with bzero. | |
12786 (main): Call init_window. | |
12787 | |
12788 * keymap.c (get_keyelt): Temporarily inhibit GC while evaluating | |
12789 a menu filter. | |
12790 | |
12791 2000-07-04 Kenichi Handa <handa@etl.go.jp> | |
12792 | |
12793 * composite.h (make_composition_value_copy): Extern it. | |
12794 | |
12795 * composite.c (make_composition_value_copy): New function. | |
12796 | |
12797 * editfns.c (Fformat): While copying text properties, make each | |
12798 composition property value a copy. | |
12799 | |
12800 * fns.c (concat): While copying text properties, make each | |
12801 composition property value a copy. | |
12802 | |
12803 2000-07-03 Gerd Moellmann <gerd@gnu.org> | |
12804 | |
12805 * m/macppc.h (LINKER, LD_SWITCH_MACHINE) [LINUX]: Define. | |
12806 | |
12807 * fns.c (sweep_weak_table): Mark only objects that are not | |
12808 marked already. | |
12809 | |
12810 * frame.c (next_frame, prev_frame): If MINIBUF is a window, | |
12811 include those frames as candidates which have their focus | |
12812 redirected to the minibuffer frame. | |
12813 | |
12814 2000-07-03 Stefan Monnier <monnier@cs.yale.edu> | |
12815 | |
12816 * fns.c (Fputhash): Return `value' rather than nil. | |
12817 | |
12818 2000-06-30 Gerd Moellmann <gerd@gnu.org> | |
12819 | |
12820 * frame.c (next_frame): Don't check focus redirection in case | |
12821 MINIBUF is a window. Doing so excludes frames using MINIBUF | |
12822 unless their focus is redirected, which contradicts the | |
12823 specification of next-frame, and leads to infinite loops in | |
12824 certain situations when cycling through windows with next-window. | |
12825 | |
12826 2000-06-30 Kenichi Handa <handa@etl.go.jp> | |
12827 | |
12828 * coding.c (code_convert_region): Even if the length of text is | |
12829 zero, try to convert it if coding->type is coding_type_ccl. | |
12830 (decode_coding_string, encode_coding_string): Likewise. | |
12831 | |
12832 2000-06-28 Gerd Moellmann <gerd@gnu.org> | |
12833 | |
12834 * xdisp.c (try_window_reusing_current_matrix): Don't try to reuse | |
12835 the display if windows_or_buffers_changed. | |
12836 | |
12837 * dispnew.c (struct row_entry): New structure. | |
12838 (row_entry_pool, row_entry_pool_size, row_entry_idx, row_table) | |
12839 (row_table_size, old_lines, new_lines, old_lines_size) | |
12840 (new_lines_size, run_pool, runs_size, runs): New variables. | |
12841 (add_row_entry): New function. | |
12842 (scrolling_window): Use data structures allocated with xmalloc and | |
12843 held in global variables, instead of allocating them with alloca and | |
12844 holding them in local variables. Use a larger hash table whose | |
12845 size depends on glyph matrix sizes. Don't use bzero to clear the | |
12846 hash table; instead, clear used slots only. | |
12847 | |
12848 * fns.c (next_almost_prime): Make it externally visible. | |
12849 | |
12850 * lisp.h (next_almost_prime): Add prototype. | |
12851 | |
12852 * s/isc4-0.h (sigunblock): Define. | |
12853 | |
12854 * s/sco5.h (sigunblock): Define. | |
12855 | |
12856 2000-06-27 Dave Love <fx@gnu.org> | |
12857 | |
12858 * s/osf1.h (C_SWITCH_SYSTEM, LIBS_SYSTEM): Revert last change | |
12859 (moved to osf5-0.h). | |
12860 [!NOT_C_CODE]: Protect string.h stuff. | |
12861 | |
12862 * s/osf5-0.h (C_SWITCH_SYSTEM, WAIT_USE_INT, SYS_SIGLIST_DECLARED) | |
12863 (sys_siglist, NSIG): Definitions moved here from osf1.h. | |
12864 | |
12865 2000-06-27 Gerd Moellmann <gerd@gnu.org> | |
12866 | |
12867 * xdisp.c (resize_mini_window): Subtract the extra line spacing | |
12868 below the last line from the needed window height. | |
12869 | |
12870 2000-06-26 Stefan Monnier <monnier@cs.yale.edu> | |
12871 | |
12872 * fns.c (Fplist_member): Renamed from Fwidget_plist_member. | |
12873 (Fwidget_get): Use it. | |
12874 (syms_of_fns): Defsubr it. | |
12875 | |
12876 2000-06-26 Gerd Moellmann <gerd@gnu.org> | |
12877 | |
12878 * xterm.c (xim_initialize) [!USE_XIM]: Don't set up the | |
12879 display info for XIM. | |
12880 (xim_open_dpy): Likewise. | |
12881 (xim_close_dpy): Don't free the display info's XIM. | |
12882 | |
12883 * xfns.c (x_window) [!USE_XIM]: Don't call create_frame_ic. | |
12884 | |
12885 * config.in (USE_XIM): New define. | |
12886 | |
12887 * keymap.c (get_keyelt): For menu-items containing a `:filter | |
12888 FILTER', apply FILTER to the menu-item's definition to get the | |
12889 real definition to use. | |
12890 | |
12891 * lisp.h (QCfilter): External declaration. | |
12892 | |
12893 * xfns.c (Fimage_size): New function. | |
12894 (syms_of_xfns): Defsubr it. | |
12895 | |
12896 2000-06-26 Andreas Schwab <schwab@suse.de> | |
12897 | |
12898 * coding.c (decode_coding_string): Re-fetch STRING_BYTES after | |
12899 Fstring_as_unibyte. | |
12900 | |
12901 2000-06-25 Dave Love <fx@gnu.org> | |
12902 | |
12903 * term.c [!HAVE_TERMCAP_H]: Declare tputs, tgetent, tgetflag, tgetnum. | |
12904 | |
12905 * Makefile.in (blockinput.h): Depend on atimer.h. | |
12906 (atimer.h): Depend on systime.h. | |
12907 | |
12908 * blockinput.h: Protect against multiple inclusion. Include atimer.h. | |
12909 | |
12910 * atimer.h: Protect against multiple inclusion. Include systime.h. | |
12911 | |
12912 * lisp.h (swap_in_global_binding): Declare. | |
12913 | |
12914 2000-06-24 Ken Raeburn <raeburn@gnu.org> | |
12915 | |
12916 * process.c (Fopen_network_stream): Turn off atimers for duration | |
12917 of call to connect. (Patch from Gerd.) | |
12918 | |
12919 2000-06-23 Dave Love <fx@gnu.org> | |
12920 | |
12921 * ralloc.c: Maybe include unistd.h | |
12922 | |
12923 * emacs.c (setgrp): Undefine before defining. | |
12924 (malloc_warning, set_time_zone_rule, index): Prototype. | |
12925 | |
12926 * systime.h (EMACS_GET_TIME) [!GETTIMEOFDAY_ONE_ARGUMENT]: Use | |
12927 HAVE_STRUCT_TIMEZONE. | |
12928 | |
12929 * s/osf1.h: Move string.h hack here from alpha.h and make it | |
12930 conditional. | |
12931 (C_SWITCH_SYSTEM): Use _OSF_SOURCE, not -BSD, which clashes with | |
12932 _XOPEN_SOURCE. | |
12933 (WAIT_USE_INT, SYS_SIGLIST_DECLARED, sys_siglist, NSIG): Define. | |
12934 (SOCKLEN_TYPE): Don't define. | |
12935 | |
12936 * m/alpha.h: Remove string.h hack. | |
12937 | |
12938 * s/osf5-0.h: New file. | |
12939 | |
12940 * filelock.c: Use feature tests for fcntl.h, string.h. Don't | |
12941 include time.h, done by systime.h. | |
12942 [__FreeBSD__]: Remove redundant includes. | |
12943 | |
12944 * callproc.c (setpgrp): Undefine before defining. | |
12945 (delete_temp_file): Return Qnil to avoid warning. | |
12946 | |
12947 * config.in (HAVE_TERM_H, HAVE_STRUCT_TIMEZONE): Add. | |
12948 | |
12949 * xfaces.c: Include fontset.h dependent on HAVE_WINDOW_SYSTEM, not | |
12950 HAVE_X_WINDOWS. | |
12951 | |
12952 * fontset.h (free_face_fontset): Renamed from fs_free_face_fontset. | |
12953 | |
12954 * composite.h (compose_text): Declare. | |
12955 | |
12956 * xterm.c: Don't include sys/types.h unconditionally. Don't | |
12957 protect its inclusion with !USG (following xmenu.c). | |
12958 | |
12959 2000-06-23 Gerd Moellmann <gerd@gnu.org> | |
12960 | |
12961 * xfns.c (x_create_tip_frame): Initialize frame's colors like | |
12962 in x_create_frame. | |
12963 | |
12964 2000-06-23 Eli Zaretskii <eliz@is.elta.co.il> | |
12965 | |
12966 * coding.c (decode_eol_post_ccl): Special handling for undecided | |
12967 and inconsistent EOL types. | |
12968 | |
12969 2000-06-22 Gerd Moellmann <gerd@gnu.org> | |
12970 | |
12971 * xrdb.c (x_load_resources): Add default resource for scroll bar's | |
12972 trough color and main window's background color. | |
12973 | |
12974 * xfns.c (Fx_file_dialog) [HAVE_MOTIF_2_1]: Handle events differently. | |
12975 | |
12976 * xterm.h (Xt_app_con): External declaration. | |
12977 | |
12978 * widget.c (EmacsFrameRealize): Fix typo. | |
12979 | |
12980 * widget.c (EmacsFrameRealize): Remove SubstructureRedirectMask. | |
12981 | |
12982 * xdisp.c (handle_stop): Initialize it->add_overlay_start to zero. | |
12983 (handle_invisible_prop): Record the start of invisible text in | |
12984 it->add_overlay_start. | |
12985 (struct overlay_entry): Add member `overlay'. | |
12986 (handle_overlay_change): Simplify. | |
12987 (next_overlay_string): After having processed overlay strings at the | |
12988 end of the buffer, record that fact in | |
12989 it->overlay_strings_at_end_processed_p. | |
12990 (compare_overlay_entries): If before- and after-strings come | |
12991 from the same overlay, let before-strings come first. | |
12992 (RECORD_OVERLAY_STRING): Record the overlay that strings come from. | |
12993 (load_overlay_strings): Take it->add_overlay_start into account | |
12994 when adding overlay strings. | |
12995 | |
12996 * dispextern.h (struct it): Add member add_overlay_start. | |
12997 | |
12998 2000-06-22 Dave Love <fx@gnu.org> | |
12999 | |
13000 * s/isc3-0.h (C_SWITCH_SYSTEM): Define _XOPEN_SOURCE=500. | |
13001 | |
13002 * s/gnu-linux.h (C_SWITCH_SYSTEM): Don't define _XOPEN_SOURCE here. | |
13003 | |
13004 2000-06-22 Kenichi Handa <handa@etl.go.jp> | |
13005 | |
13006 * ccl.c (ccl_driver) <CCL_End>: Decrement stack_idx only when it | |
13007 is greater than 0. | |
13008 | |
13009 2000-06-21 Dave Love <fx@gnu.org> | |
13010 | |
13011 * Makefile.in (GETLOADAVG_OBJ): Removed -- LIBOBJS does it. | |
13012 | |
13013 2000-06-21 Stefan Monnier <monnier@cs.yale.edu> | |
13014 | |
13015 * syntax.c (back_comment): Simplify string-parity counting (with | |
13016 the added benefit of handling multiple string-styles as long as | |
13017 they are not intertwined). | |
13018 Jump to the slow code as soon as a comment starter is found in | |
13019 a "string_lossage" position. Fixes the case: " /* " /* " */. | |
13020 | |
13021 2000-06-21 Dave Love <fx@gnu.org> | |
13022 | |
13023 * Makefile.in: Use GETLOADAVG_LIBS. | |
13024 | |
13025 * config.in: Add HAVE_FCNTL_H, _FILE_OFFSET_BITS, | |
13026 _LARGEFILE_SOURCE, _LARGE_FILES, _XOPEN_SOURCE. | |
13027 | |
13028 2000-06-20 Stefan Monnier <monnier@cs.yale.edu> | |
13029 | |
13030 * syntax.c (describe_syntax): Recognize the `n'estable bit. | |
13031 (Fforward_comment, scan_lists): | |
13032 Check the comstyle of single-char comment-starters. | |
13033 (scan_sexps_forward): Don't try to recognize `half comment-enders' if | |
13034 we're just at the beginning of the comment (f.ex with (*) ... (*)). | |
13035 Check the comstyle of single-char comment-starters. | |
13036 Clarify control-flow around the Scomment case. | |
13037 | |
13038 2000-06-20 Dave Love <fx@gnu.org> | |
13039 | |
13040 * fns.c (make_hash_table, maybe_resize_hash_table): | |
13041 Cast arg of next_almost_prime. | |
13042 | |
13043 * tparam.c [emacs]: Include lisp.h. | |
13044 | |
13045 * termcap.c [emacs]: Test HAVE_FCNTL_H, not USG5. Include lisp.h | |
13046 and unistd.h. | |
13047 | |
13048 2000-06-20 Gerd Moellmann <gerd@gnu.org> | |
13049 | |
13050 * keyboard.c (adjust_point_for_property): Check if display | |
13051 property should be treated as intangible by looking at its value. | |
13052 | |
13053 * xdisp.c (single_display_prop_intangible_p) | |
13054 (display_prop_intangible_p): New functions. | |
13055 | |
13056 * dispextern.h (display_prop_intangible_p): Add prototype. | |
13057 | |
13058 * xdisp.c (dump_glyph_row): Show type of glyph->object. | |
13059 | |
13060 * s/isc4-0.h (sigblock): Redefined to pass a pointer as second | |
13061 argument to sigprocmask. | |
13062 | |
13063 * s/sco5.h (sigblock): Redefined to pass a pointer as second | |
13064 argument to sigprocmask. | |
13065 | |
13066 * syssignal.h (sigblock, sigunblock) [USG5_4]: Set | |
13067 sigprocmask_set, and pass a pointer to it to sigprocmask. | |
13068 | |
13069 * sysdep.c (sigprocmask_set): New variable. | |
13070 | |
13071 * fileio.c (make_temp_name): Don't use `%s' in string passed to | |
13072 report_file_error. | |
13073 | |
13074 2000-06-20 Sam Steingold <sds@gnu.org> | |
13075 | |
13076 * xrdb.c: Don't declare xmalloc, xrealloc. | |
13077 | |
13078 2000-06-20 Stefan Monnier <monnier@cs.yale.edu> | |
13079 | |
13080 * regex.c (re_match, re_match_2): Protect calls to alloca (0). | |
13081 (re_comp): Cast gettext return value to avoid complaints when | |
13082 !HAVE_LIBINTL. | |
13083 | |
13084 2000-06-20 Dave Love <fx@gnu.org> | |
13085 | |
13086 * m/stride.h, m/mips.h: Don't define HAVE_GETWD, HAVE_GETTIMEOFDAY. | |
13087 | |
13088 * m/ibmrt-aix.h: Don't declare HAVE_GETTIMEOFDAY, HAVE_VFORK. | |
13089 | |
13090 * m/ibmrs6000.h, m/ibmps2-aix.h, m/dpx2.h: Don't declare HAVE_GETWD. | |
13091 | |
13092 * m/alpha.h: Don't declare xmalloc, xrealloc. | |
13093 | |
13094 * s/ux4800.h: Don't declare GETTIMEOFDAY_ONE_ARGUMENT. | |
13095 | |
13096 * s/usg5-4-2.h: Don't declare HAVE_GETWD, VFORK_RETURN_TYPE. | |
13097 | |
13098 * s/umips.h: Don't declare HAVE_GETWD, HAVE_GETTIMEOFDAY. | |
13099 | |
13100 * s/cxux.h, s/gnu-linux.h, s/iris3-6.h, s/irix3-3.h: Don't declare | |
13101 HAVE_GETWD. | |
13102 | |
13103 * keyboard.h (poll_for_input_1): Declare. | |
13104 | |
13105 * getloadavg.c: Don't define NLIST_STRUCT (handled by configure). | |
13106 | |
13107 * alloc.c (xmalloc, xrealloc, xfree): Define using POINTER_TYPE. | |
13108 | |
13109 * doprnt.c: Don't declare xmalloc, xrealloc. | |
13110 | |
13111 * lisp.h (x_set_tool_bar_lines, free_frame_xic, compose_text) | |
13112 (getenv, ctime, getwd): Removed. | |
13113 (xmalloc, xrealloc, xfree): Declare using POINTER_TYPE. | |
13114 | |
13115 * xterm.h: Remove duplicate prototypes. Declare free_frame_xic, | |
13116 x_set_tool_bar_lines. | |
13117 | |
13118 * config.in: Add HAVE_GETWD. Move some definitions above | |
13119 machine/system includes. | |
13120 | |
13121 2000-06-20 Kenichi Handa <handa@etl.go.jp> | |
13122 | |
13123 * s/bsd386.h (HAVE_GETLOADAVG): Define it as 1. | |
13124 | |
13125 * xfaces.c (font_list): Handle the case that REGISTRY doesn't | |
13126 contain information about ENCODING. | |
13127 | |
13128 * fontset.c (FONTSET_ASCII): Use the first element of char table | |
13129 for an ASCII font, not defalt slot. | |
13130 (fontset_ref_via_base): If FONTSET doesn't contain information for | |
13131 C, try the default fontset. | |
13132 (make_fontset): Don't copy the default fontset. | |
13133 (fontset_font_pattern): Likewise. | |
13134 (accumulate_font_info): If ELT is nil, use the corresponding | |
13135 element in the default fontset. | |
13136 | |
13137 2000-06-19 Dave Love <fx@gnu.org> | |
13138 | |
13139 * syntax.c (Fparse_partial_sexp): Doc fix. | |
13140 | |
13141 * regex.h: Test PROTOTYPES as well as __STDC__. | |
13142 | |
13143 * unexalpha.c: Include errno.h, string.h, unistd.h. Don't declare | |
13144 errno, strerror. Put text after #endif in comment. | |
13145 | |
13146 * xdisp.c (dump_glyph_matrix): Add `static' to declaration (for pcc). | |
13147 | |
13148 * xterm.c (x_frame_of_widget): Likewise. | |
13149 | |
13150 2000-06-19 Gerd Moellmann <gerd@gnu.org> | |
13151 | |
13152 * abbrev.c (syms_of_abbrev): Set buffer_default's abbrev table | |
13153 to Vfundamental_mode_abbrev_table. | |
13154 | |
13155 * alloc.c (mark_object) [GC_CHECK_MARKED_OBJECTS]: Check that no | |
13156 bogus objects are marked. This slows down GC by ~80 percent, but | |
13157 it might be worth trying when debugging GC-related problems. | |
13158 This feature requires conservative stack marking to be enabled. | |
13159 | |
13160 * xterm.c (XTread_socket) <KeyPress>: In case XmbLookupString | |
13161 returns XLookupChars, reset `modifiers' to zero. | |
13162 | |
13163 2000-06-19 Dave Love <fx@gnu.org> | |
13164 | |
13165 * mktime.c: Unprotoized. | |
13166 | |
13167 2000-06-19 Richard Stallman <rms@gnu.org> | |
13168 | |
13169 * data.c (set_internal): If variable is frame-local, | |
13170 store the new value immediately into the frame parameter alist. | |
13171 | |
13172 2000-06-19 Ken Raeburn <raeburn@gnu.org> | |
13173 | |
13174 * xfns.c (jpeg_load): Fetch error-handling data first, then fill | |
13175 in the custom handler pointer. | |
13176 | |
13177 * keyboard.c (follow_key, read_key_sequence): Use XUINT on key | |
13178 value, or checks for CHAR_META can fail when Lisp_Object is a | |
13179 union type. | |
13180 * keymap.c (get_keyelt): Likewise. | |
13181 | |
13182 2000-06-19 Kenichi Handa <handa@etl.go.jp> | |
13183 | |
13184 * ccl.h (struct ccl_program): New member eol_type. | |
13185 (struct ccl_spec): New member cr_carryover. | |
13186 | |
13187 * ccl.c (CCL_WRITE_CHAR): Convert NL according to ccl->eol_type. | |
13188 (setup_ccl_program): Initialize ccl->eol_type to CODING_EOL_LF. | |
13189 | |
13190 * coding.c (setup_coding_system) <4>: Reset member `cr_carryover'. | |
13191 (ccl_coding_driver): On encoding, initialize ccl->eol_type. | |
13192 (decode_eol_post_ccl): New function. | |
13193 (decode_coding): Don't detect EOL format here for CCL based coding | |
13194 systems. | |
13195 (decode_coding) <coding_type_ccl>: Handle carryovered CR. Call | |
13196 decode_eol_post_ccl after running the CCL program. | |
13197 (code_convert_region): Don't detect EOL format here for CCL based | |
13198 coding systems. | |
13199 (decode_coding_string): Likewise. | |
13200 | |
13201 2000-06-18 Ken Raeburn <raeburn@gnu.org> | |
13202 | |
13203 * charset.c (update_charset_table): Use XINT on "iso_final_char" | |
13204 when treating it as an integer. | |
13205 | |
13206 * coding.h (encode_coding_string): Declare. | |
13207 | |
13208 * keyboard.c (read_key_sequence): Use XINT on "pos" when treating | |
13209 it as an integer. | |
13210 | |
13211 * keymap.c (Fwhere_is_internal): Rename argument "keymap" to | |
13212 "xkeymap" to avoid shadowing the "enum map_type" value that needs | |
13213 to be passed to get_local_map. | |
13214 | |
13215 * sound.c (Fplay_sound): Don't call make_number on | |
13216 Frun_hook_with_args count argument. | |
13217 | |
13218 * xterm.c (x_send_scroll_bar_event): Fudge lisp object/integer | |
13219 for lisp objects in X event structure data field, when lisp | |
13220 objects are represented with unions. | |
13221 (x_scroll_bar_to_input_event): Ditto. | |
13222 | |
13223 2000-06-16 Ken Raeburn <raeburn@gnu.org> | |
13224 | |
13225 * xdisp.c (decode_mode_spec): In "no_value" case, do NUL | |
13226 termination of string. Fix sense of test whether | |
13227 Vline_number_display_limit is an integer. | |
13228 | |
13229 2000-06-16 Gerd Moellmann <gerd@gnu.org> | |
13230 | |
13231 * xfaces.c (syms_of_xfaces) [DEBUG_X_COLORS]: Defsubr dump_colors | |
13232 only if HAVE_X_WINDOWS. | |
13233 | |
13234 * keymap.c (describe_buffer_bindings): Add `\f\n' in front | |
13235 of titles. | |
13236 | |
13237 * dispnew.c (update_frame_1): Handle case that cursor vpos is | |
13238 out of bounds. | |
13239 | |
13240 2000-06-15 Eli Zaretskii <eliz@is.elta.co.il> | |
13241 | |
13242 * unexec.c (toplevel): Fix last change, so as not to deprive MSDOS | |
13243 of its headers. | |
13244 | |
13245 2000-06-15 Kenichi Handa <handa@etl.go.jp> | |
13246 | |
13247 * coding.c (decode_coding_emacs_mule): Always set src_base at the | |
13248 start of the while loop. | |
13249 | |
13250 2000-06-15 Gerd Moellmann <gerd@gnu.org> | |
13251 | |
13252 * atimer.c (alarm_signal_handler): Add forward declaration. | |
13253 | |
13254 * data.c (set_internal): Remove debug code. | |
13255 | |
13256 2000-06-14 Gerd Moellmann <gerd@gnu.org> | |
13257 | |
13258 * Makefile.in (bootstrap-temacs): Add `-I../src'. | |
13259 | |
13260 * unexec.c (toplevel) [COFF]: Include coff.h. | |
13261 | |
13262 * s/lynxos.h: New file. | |
13263 | |
13264 * keymap.c (Fsingle_key_description): Enclose function key and | |
13265 event symbol names in angle brackets. | |
13266 | |
13267 * xdisp.c (setup_echo_area_for_printing): Call | |
13268 message_log_maybe_newline if message_buf_print is not set. | |
13269 | |
13270 * print.c (printchar, strout): Don't check message_buf_print | |
13271 before calling setup_echo_area_for_printing because that | |
13272 function does something useful even when message_buf_print is | |
13273 already set. | |
13274 | |
13275 * xdisp.c (message_truncate_lines, Qmessage_truncate_lines): | |
13276 New variables. | |
13277 (ensure_echo_area_buffers): Initialize echo buffer's | |
13278 truncate lines setting to nil. | |
13279 (with_echo_area_buffer): Don't set the echo buffer's truncate | |
13280 lines setting here. | |
13281 (set_message_1): Set it here instead, based on the value | |
13282 of message_truncate_lines. | |
13283 (resize_mini_window): Handle case that lines are truncated. | |
13284 (syms_of_xdisp): Initialize Qmessage_truncate_lines. | |
13285 DEFVAR_BOOL message-truncate-lines. | |
13286 | |
13287 * keyboard.c (read_char): Bind message-truncate-lines to t | |
13288 while displaying a help-echo. | |
13289 | |
13290 * lisp.h (Qmessage_truncate_lines): External declaration. | |
13291 | |
13292 2000-06-13 Gerd Moellmann <gerd@gnu.org> | |
13293 | |
13294 * xdisp.c (Vline_number_display_limit): Renamed from | |
13295 line_number_display_limit. | |
13296 (syms_of_xdisp): Use DEFVAR_LISP for line-number-display-limit. | |
13297 Extend documentation string. Initialize | |
13298 Vline_number_display_limit to nil meaning no limit. | |
13299 (decode_mode_spec): Use Vline_number_display_limit with its new | |
13300 meaning. | |
13301 | |
13302 * xterm.c (x_check_font) [GLYPH_DEBUG]: Add prototype. | |
13303 | |
13304 2000-06-13 Richard Stallman <rms@gnu.org> | |
13305 | |
13306 * frame.c (Fmodify_frame_parameters): Doc fix. | |
13307 | |
13308 * xfns.c (x_set_frame_parameters): Comment fix. | |
13309 | |
13310 * frame.c (store_frame_param): Call swap_in_global_binding if the | |
13311 variable's current binding was chosen based on this frame. | |
13312 | |
13313 * data.c (swap_in_global_binding): New function. | |
13314 | |
13315 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il> | |
13316 | |
13317 * msdos.c (IT_write_glyphs): Don't use CODING_REQUIRE_ENCODING | |
13318 macro, instead AND with CODING_REQUIRE_ENCODING_MASK. | |
13319 | |
13320 2000-06-13 Eli Zaretskii <eliz@is.elta.co.il> | |
13321 | |
13322 * msdos.h (EMACS_MSDOS_H): Renamed from MSDOS_H_. | |
13323 | |
13324 2000-06-12 Jason Rumney <jasonr@gnu.org> | |
13325 | |
13326 * w32bdf.h (EMACS_W32BDF_H): Renamed from __W32BDF_H__ | |
13327 | |
13328 * w32.h (EMACS_W32_H): Renamed from _NT_H_ | |
13329 | |
13330 * w32gui.h (EMACS_W32GUI_H): Renamed from __W32GUI_H__ | |
13331 | |
13332 * w32inevt.h (EMACS_W32INEVT_H): Renamed from __NTINEVT_H__ | |
13333 | |
13334 2000-06-12 Gerd Moellmann <gerd@gnu.org> | |
13335 | |
13336 * xfaces.c (Fdump_colors) [DEBUG_X_COLORS]: New function. | |
13337 (syms_of_xfaces): Defsubr Sdump_colors. | |
13338 (x_free_colors): Don't treat b&w specially on default visual. | |
13339 (x_free_dpy_colors): New function. | |
13340 (free_face_colors): Don't check visual class; it's done | |
13341 in x_free_colors. | |
13342 | |
13343 * xterm.c (x_frame_of_widget): New function. | |
13344 (x_alloc_nearest_color_for_widget): Use it. | |
13345 (x_copy_dpy_color): New function. | |
13346 (x_destroy_window): Free various colors. | |
13347 | |
13348 2000-06-12 Kenichi Handa <handa@etl.go.jp> | |
13349 | |
13350 * ccl.h (EMACS_CCL_H): Renamed from _CCL_H. | |
13351 | |
13352 * charset.h (EMACS_CHARSET_H): Renamed from _CHARSET_H. | |
13353 | |
13354 * coding.h (EMASC_CODING_H): Renamed from _CODING_H. | |
13355 | |
13356 * composite.h (EMACS_COMPOSITE_H): Renamed from _COMPOSITE_H. | |
13357 | |
13358 * fontset.h (EMACS_FONTSET_H): Renamed from _FONTSET_H. | |
13359 | |
13360 2000-06-11 Dave Love <fx@gnu.org> | |
13361 | |
13362 * systime.h (EMACS_SYSTIME_H): Renamed from _SYSTIME_H. | |
13363 | |
13364 2000-06-11 Eli Zaretskii <eliz@is.elta.co.il> | |
13365 | |
13366 * msdos.h: Don't use _MSDOS_H_ as a symbol, use MSDOS_H_ instead. | |
13367 | |
13368 2000-06-11 Gerd Moellmann <gerd@gnu.org> | |
13369 | |
13370 * xmenu.c (xmenu_show): Cast second parameter of lw_popup_menu | |
13371 to `XEvent *'. | |
13372 | |
13373 2000-06-10 Kenichi Handa <handa@etl.go.jp> | |
13374 | |
13375 * regex.c (MAKE_CHAR) [!emacs]: Dummy macro for non-Emacs env. | |
13376 (regex_compile): Fix the code for handling the case of single byte | |
13377 char and multibyte char being mixed in a range within [...]. | |
13378 | |
13379 * fileio.c (Finsert_file_contents): Be sure to setup src_multibyte | |
13380 and dst_multibyte members of coding. | |
13381 | |
13382 * charset.c (update_charset_table): Update the table | |
13383 bytes_by_char_head. | |
13384 (init_charset_once): Initialize elements of bytes_by_char_head to | |
13385 1 except for leading codes for private charases. | |
13386 | |
13387 * charset.h (CHARSET_8_BIT_GRAPHIC): Define as 0x80. | |
13388 (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence. | |
13389 | |
13390 2000-06-09 Ken Raeburn <raeburn@gnu.org> | |
13391 | |
13392 * xterm.c (x_connection_closed): If dpyinfo is NULL, don't try to | |
13393 access the data it doesn't point to. | |
13394 | |
13395 2000-06-08 Gerd Moellmann <gerd@gnu.org> | |
13396 | |
13397 * xterm.c (XTread_socket) <FocusIn>: Queue a FOCUS_IN_EVENT which | |
13398 will be translated to a switch-frame event when reading the | |
13399 event queue. This is necessary because Emacs otherwise won't | |
13400 perform a switch-frame to a new frame until some other event, for | |
13401 example a keystroke event, forces it to do so. This has various | |
13402 effects, one visible being that the cursor of a frame created with | |
13403 C-x 5 2 or switched to with a window manager key binding like | |
13404 A-TAB stays hollow because selected_window isn't on the newly | |
13405 focused frame until the switch-frame is performed. | |
13406 | |
13407 * keyboard.c (kbd_buffer_get_event): Handle FOCUS_IN_EVENT by | |
13408 generating a switch-frame event if necessary. | |
13409 | |
13410 * termhooks.h (enum event_kind): Add FOCUS_IN_EVENT. | |
13411 | |
13412 * xdisp.c (handle_fontified_prop): Don't GCPRO local var `pos'; | |
13413 it's an integer. | |
13414 | |
13415 2000-06-08 Kenichi Handa <handa@etl.go.jp> | |
13416 | |
13417 * fontset.c (Fset_fontset_font): The arg CHARACTER may be a charset. | |
13418 | |
13419 2000-06-07 Gerd Moellmann <gerd@gnu.org> | |
13420 | |
13421 * window.c (displayed_window_lines): Take empty lines at | |
13422 the bottom of a window into account. | |
13423 | |
13424 * window.c (displayed_window_lines): New function. | |
13425 (Fmove_to_window_line): Use displayed_window_lines to determine | |
13426 the number of lines to move, instead of using the window's height. | |
13427 | |
13428 * lread.c (readevalloop): If READCHARFUN sets point to ZV, arrange | |
13429 to stop reading, even if the form read sets point to a different | |
13430 value when evaluated. | |
13431 | |
13432 * xdisp.c (display_line): Fix code deciding in which line to | |
13433 put the cursor. | |
13434 | |
13435 2000-06-07 Kenichi Handa <handa@etl.go.jp> | |
13436 | |
13437 * fileio.c (e_write): Free composition data if stored in | |
13438 coding->cmp_data. | |
13439 | |
13440 2000-06-06 Gerd Moellmann <gerd@gnu.org> | |
13441 | |
13442 * xdisp.c (display_line): Set row's and iterator's | |
13443 starts_in_middle_of_char_p and ends_in_middle_of_char_p flags. | |
13444 Set cursor even if row ends in the middle of a character. | |
13445 (dump_glyph_row): Print values of new flags. | |
13446 (redisplay_window) <cursor movement in unchanged window>: When | |
13447 point has been moved forward, and PT is at the end of the cursor | |
13448 row, don't place the cursor in the next row if the cursor row ends | |
13449 in the middle of a character or at ZV. | |
13450 | |
13451 * dispextern.h (struct it): Add starts_in_middle_of_char_p. | |
13452 (struct glyph_row): Add starts_in_middle_of_char_p and | |
13453 ends_in_middle_of_char_p. | |
13454 (MATRIX_ROW_ENDS_IN_MIDDLE_OF_CHAR_P): Test row's | |
13455 ends_in_middle_of_char_p flag. | |
13456 (MATRIX_ROW_STARTS_IN_MIDDLE_OF_CHAR_P): Likewise. | |
13457 | |
13458 * term.c (append_glyph): Revert change of 2000-06-06. | |
13459 | |
13460 * xdisp.c (display_line): Revert change of 2000-06-06. Treat | |
13461 padding glyph not fitting on line as whole character not | |
13462 fitting on line. | |
13463 | |
13464 * xterm.c (x_produce_glyphs): Don't xassert `it->descent > 0'; | |
13465 this isn't true for images with `:ascent 100'. | |
13466 | |
13467 2000-06-06 Kenichi Handa <handa@etl.go.jp> | |
13468 | |
13469 * buffer.c (Fset_buffer_multibyte): Don't make the current buffer | |
13470 as modified if it is originally unmodified. | |
13471 | |
13472 * term.c (encode_terminal_code): Change the way to check if | |
13473 terminal coding does any conversion. | |
13474 (append_glyph): Set glyph->pixel_width correctly. | |
13475 | |
13476 * xdisp.c (display_line): While checking line continuation, pay | |
13477 attention to a padding glyph. | |
13478 | |
13479 2000-06-05 Gerd Moellmann <gerd@gnu.org> | |
13480 | |
13481 * xdisp.c (redisplay_window): Always use set_buffer_internal_1. | |
13482 | |
13483 2000-06-05 Dave Love <fx@gnu.org> | |
13484 | |
13485 * xdisp.c: Include fontset.h. | |
13486 | |
13487 * xfns.c (x_real_positions): Declare tmp_nchildren as unsigned. | |
13488 | |
13489 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned. | |
13490 | |
13491 * dispnew.c: Conditionally include term.h. | |
13492 | |
13493 * coding.h: Declare code_convert_string_norecord. | |
13494 | |
13495 * frame.h (struct frame): Use volatile unconditionally. | |
13496 | |
13497 * buffer.h: Remove Vbefore_change_function, Vafter_change_function. | |
13498 | |
13499 * xmenu.c (menu_item_selection): Declare volatile unconditionally. | |
13500 | |
13501 * systime.h: Protect against multiple inclusion. | |
13502 (timezone) [USG5_4]: Define as time_t. | |
13503 | |
13504 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES. | |
13505 (Foptimize_char_table, make_temp_name): Declare. | |
13506 | |
13507 * Makefile.in (xdisp.o): Depend on fontset.h. | |
13508 | |
13509 * xterm.c (x_calc_absolute_position): Declare nchildren unsigned. | |
13510 | |
13511 * lisp.h (DEFUN, EXFUN): Test PROTOTYPES. | |
13512 (Foptimize_char_table, make_temp_name): Declare. | |
13513 | |
13514 * s/irix4-0.h: | |
13515 * s/irix5-0.h: | |
13516 * s/netbsd.h: Don't define autoconfiscated MATHERR. | |
13517 | |
13518 2000-06-02 Dave Love <fx@gnu.org> | |
13519 | |
13520 * lread.c (_XOPEN_SOURCE, __EXTENSIONS__): Don't define. | |
13521 | |
13522 2000-06-02 Gerd Moellmann <gerd@gnu.org> | |
13523 | |
13524 * xfaces.c (realize_x_face): When copying BASE_FACE bitwise to the | |
13525 result face, set flags in that face indicating that colors may not | |
13526 be freed. | |
13527 | |
13528 * xterm.c (x_set_mouse_face_gc): If first glyph isn't a character | |
13529 glyph, use the ASCII NUL character to determine the face. | |
13530 | |
13531 2000-06-02 Dave Love <fx@gnu.org> | |
13532 | |
13533 * sysdep.c: Conditionally include stdlib.h, unistd.h. | |
13534 (VFORK_RETURN_TYPE): Remove. | |
13535 | |
13536 * config.in: Add NO_MATHERR. | |
13537 | |
13538 2000-06-01 Dave Love <fx@gnu.org> | |
13539 | |
13540 * cmds.c (internal_self_insert): Don't check | |
13541 Vbefore_change_function, Vafter_change_function. | |
13542 | |
13543 * insdel.c (signal_before_change, signal_after_change): Likewise. | |
13544 | |
13545 * buffer.c (Vbefore_change_function, Vafter_change_function): | |
13546 Variables and their initializations deleted. | |
13547 | |
13548 * callint.c (Fcall_interactively): Doc fix. | |
13549 | |
13550 * terminfo.c (ospeed) [HAVE_SPEED_T]: Don't declare extern. | |
13551 | |
13552 2000-05-31 Dave Love <fx@gnu.org> | |
13553 | |
13554 * textprop.c: Revert last change -- duplicated. | |
13555 | |
13556 2000-05-31 Gerd Moellmann <gerd@gnu.org> | |
13557 | |
13558 * dispnew.c (find_glyph_row_slice, swap_glyphs_in_rows): Put | |
13559 in #if 0. | |
13560 | |
13561 * lisp.h (eassert) [!ENABLE_CHECKING]: Define as `(void) 0'. | |
13562 | |
13563 2000-05-31 Jason Rumney <jasonr@gnu.org> | |
13564 | |
13565 * search.c (Fre_search_forward, Fre_search_backward) | |
13566 (Fposix_search_backward, Fposix_search_forward): Fix newlines in docs. | |
13567 | |
13568 * w32select.c (Fw32_set_clipboard_data): Change QNil to Qnil. | |
13569 | |
13570 2000-05-30 Jason Rumney <jasonr@gnu.org> | |
13571 | |
13572 * coding.h (ENCODE_SYSTEM, DECODE_SYSTEM) [WINDOWSNT]: New macros. | |
13573 [WINDOWSNT]: Add extern for Vw32_system_coding_system. | |
13574 | |
13575 * dispextern.h (struct glyph) [WINDOWSNT]: Add w32_font_type member. | |
13576 | |
13577 * fileio.c (Fread_file_name) [HAVE_NTGUI]: Use file dialog. | |
13578 (Fread_file_name) [HAVE_NTGUI, USE_MOTIF]: Do not attempt to | |
13579 expand a nil default_filename. | |
13580 | |
13581 * keyboard.c (make_lispy_event) [WINDOWS_NT]: Pass a window | |
13582 pointer to glyph_to_pixel_coords, not a frame. | |
13583 | |
13584 * makefile.nt (w32fns.obj, w32menu.obj): Add charset.h and | |
13585 coding.h to dependencies. | |
13586 | |
13587 * w32bdf.c (w32_load_bdf_font): Initialize font->double_byte_p. | |
13588 | |
13589 * w32console.c (glyph_to_pixel_coords): Change first parameter to | |
13590 window pointer to be consistent with w32term.c and xterm.c. | |
13591 | |
13592 * w32fns.c: Format and doc changes to bring closer to xfns.c. | |
13593 (VIETNAMESE_CHARSET): Define if not defined in system headers. | |
13594 (Qline_spacing, Qcenter): New variables. | |
13595 (Qw32_charset_*, w32_codepage_for_font): Moved from w32term.c. | |
13596 (x_set_line_spacing): New function. | |
13597 (x_set_frame_parameters): Use FRAME_NEW_WIDTH, FRAME_NEW_HEIGHT macros. | |
13598 (x_specified_cursor_type): New function. | |
13599 (x_set_cursor_type): Use it. | |
13600 (x_set_name, x_set_title): Use ENCODE_SYSTEM to encode titlebar | |
13601 and icon strings. | |
13602 (validate_x_resource_name, x_get_resource_string): Measure lengths | |
13603 of external strings in bytes. | |
13604 (w32_wnd_proc) [WM_MEASURE_ITEM]: Avoid calling | |
13605 GetTextExtentPoint32 with NULL title. | |
13606 (Fx_create_frame): Initialize Qline_spacing. | |
13607 (w32_load_system_font): Initialize font->double_byte_p. | |
13608 (x_to_w32_charset): Use Vw32_charset_info_alist. | |
13609 (Image, busy cursor, tooltip functions): Merged changes from | |
13610 xfns.c. Not yet functional on Windows. | |
13611 | |
13612 * w32gui.h (W32FontStruct): Add double_byte_p member. | |
13613 | |
13614 * w32inevt.c (NUM_TRANSLATED_MOUSE_BUTTONS): New constant. | |
13615 (emacs_button_translation): Use it. | |
13616 (do_mouse_event): Allow up to 32 mouse buttons by allowing any bit | |
13617 in `mask' to be set. | |
13618 | |
13619 * w32menu.c (single_submenu, w32_menu_show): Call ENCODE_SYSTEM on | |
13620 menu strings. | |
13621 | |
13622 * w32term.c: Format and doc changes to bring closer to xterm.c. | |
13623 (w32_char_font_type): New enum. | |
13624 (Qw32_charset_*, w32_codepage_for_font): Moved to w32fns.c. | |
13625 (w32_per_char_metric): Use w32_char_font_type instead of unicode_p. | |
13626 (w32_encode_char): New function. | |
13627 (x_encode_char): Removed. | |
13628 (x_get_glyph_and_face_encoding): Use w32_encode_char in place of | |
13629 x_encode_char and w32_font_is_double_byte. | |
13630 (x_produce_image_glyph): Use image_ascent. | |
13631 (x_produce_glyphs): Use new version of w32_per_char_metric and | |
13632 handle NULL return value. Allow extra line spacing. | |
13633 (W32_TEXTOUT): Distinguish between Unicode and DBCS text. | |
13634 (w32_get_glyph_overhangs): Remove unicode_p param. Use | |
13635 w32_font_type member of glyph instead. | |
13636 (x_draw_glyph_string): Draw underline and strike-out for BDF fonts. | |
13637 (fast_find_position): Make sure not to consider rows not visible | |
13638 in the window. | |
13639 (w32_read_socket) [WM_MENUSELECT]: Cannot call | |
13640 w32_menu_display_help with input blocked, as it can abort. | |
13641 (x_display_and_set_cursor): Choose cursor depending | |
13642 on buffer-local value of cursor_type. | |
13643 (x_draw_bar_cursor): Add parameter WIDTH. | |
13644 | |
13645 * w32term.h (CP_DEFAULT): Define. | |
13646 (Fx_display_color_p, Fx_display_grayscale_p, image_ascent): Declare. | |
13647 | |
13648 2000-05-30 Gerd Moellmann <gerd@gnu.org> | |
13649 | |
13650 * search.c (Fre_search_forward, Fre_search_backward) | |
13651 (Fposix_search_backward, Fposix_search_forward): Doc fix. | |
13652 | |
13653 2000-05-30 Kenichi Handa <handa@etl.go.jp> | |
13654 | |
13655 * coding.c (detect_coding_iso2022): Fix code for checking | |
13656 CODING_CATEGORY_MASK_ISO_8_2. | |
13657 | |
13658 2000-05-29 Stefan Monnier <monnier@cs.yale.edu> | |
13659 | |
13660 * regex.c (PREFETCH_NOLIMIT): New function. | |
13661 (re_match_2_internal): Use it and adjust the end_match_2 logic. | |
13662 | |
13663 2000-05-29 Gerd Moellmann <gerd@gnu.org> | |
13664 | |
13665 * syntax.c (find_defun_start): Move test for | |
13666 open_paren_in_column_0_is_defun_start outside of the loop. | |
13667 | |
13668 * xdisp.c (redisplay_window): Really switch buffers when | |
13669 displaying mode lines, and temporarily set selected_frame to the | |
13670 frame of the window that's redisplayed. | |
13671 | |
13672 * xfaces.c (free_realized_faces): Block/unblock input. | |
13673 (free_realized_multibyte_face): Ditto. | |
13674 | |
13675 2000-05-29 Dave Love <fx@gnu.org> | |
13676 | |
13677 * textprop.c (Qkeymap): New variable. | |
13678 (syms_of_textprop): Intern it. | |
13679 | |
13680 * keymap.c: Include intervals.h. | |
13681 (Fkey_binding, Fwhere_is_internal): Deal with `keymap' property. | |
13682 | |
13683 * Makefile.in (keymap.o): Depend on intervals.h. | |
13684 | |
13685 * keyboard.c (menu_bar_items, tool_bar_items) | |
13686 (Fexecute_extended_command): Deal with `keymap' property. | |
13687 (read_key_sequence): Track map from `keymap' property as well as | |
13688 `local_map'. | |
13689 | |
13690 * intervals.c (get_local_map): Extra arg to allow looking for | |
13691 `keymap' too. | |
13692 | |
13693 * intervals.h (map_property): New enum. | |
13694 (get_local_map): Extra arg using it. | |
13695 (Qkeymap): Declare. | |
13696 | |
13697 * lisp.h (get_local_map): Don't declare here. | |
13698 | |
13699 2000-05-29 Kenichi Handa <handa@etl.go.jp> | |
13700 | |
13701 * Makefile.in (callproc.o): Depend on composite.h. | |
13702 | |
13703 * callproc.c: Include composite.h. | |
13704 (Fcall_process): Handle composition correctly. | |
13705 | |
13706 * coding.h (coding_allocate_composition_data): Extern it. | |
13707 (coding_restore_composition): Likewise. | |
13708 | |
13709 * coding.c (DECODE_COMPOSITION_START): If coding->cmp_data is not | |
13710 yet allocated, finish decoding with result | |
13711 CODING_FINISH_INSUFFICIENT_CMP. | |
13712 (coding_allocate_composition_data): Make it non-static. | |
13713 (coding_restore_composition): Likewise. | |
13714 | |
13715 2000-05-29 Eli Zaretskii <eliz@is.elta.co.il> | |
13716 | |
13717 * charset.c (syms_of_charset): Revert last change. | |
13718 | |
13719 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il> | |
13720 | |
13721 * term.c (produce_glyphs): Treat characters from the eight-bit-* | |
13722 charsets as unibyte, with 1-column screen width. Sent by Kenichi | |
13723 Handa. | |
13724 | |
13725 2000-05-28 Eli Zaretskii <eliz@is.elta.co.il> | |
13726 | |
13727 * charset.c (syms_of_charset): Set width of character sets | |
13728 eight-bit-control and eight-bit-graphic to 1 column. | |
13729 | |
13730 2000-05-26 Gerd Moellmann <gerd@gnu.org> | |
13731 | |
13732 * config.in (HAVE_SPEED_T): New define. | |
13733 | |
13734 * sysdep.c, terminfo.c (ospeed) [HAVE_SPEED_T]: Declare as | |
13735 `extern speed_t'. | |
13736 | |
13737 2000-05-26 Dave Love <fx@gnu.org> | |
13738 | |
13739 * coding.c (shrink_decoding_region): Initialize eol_conversion. | |
13740 | |
13741 * data.c (Qsubrp, Qmany, Qunevalled): New variables. | |
13742 (Fsubr_arity): New function. | |
13743 (syms_of_data): Install them. | |
13744 | |
13745 2000-05-26 Kenichi Handa <handa@etl.go.jp> | |
13746 | |
13747 * charset.c (init_charset_once): Set the table bytes_by_char_head | |
13748 correctly. | |
13749 | |
13750 * fontset.c (syms_of_fontset): Adjust the font name for ascii of | |
13751 the default fontset to what Emacs uses by default. | |
13752 (check_registry_encoding): This function deleted. | |
13753 (Fset_fontset_font): Remove the adhoc condition for the default | |
13754 fontset. Allow cons in FONTNAME. | |
13755 | |
13756 * fns.c (map_char_table): Ignore char-table entries for | |
13757 charsets eight-bit-control and eight-bit-graphic. | |
13758 | |
13759 2000-05-25 Ken Raeburn <raeburn@gnu.org> | |
13760 | |
13761 * emacs.c (main): Initialize keyboard syms before initializing | |
13762 window code, so face names are available. | |
13763 | |
13764 2000-05-25 Stefan Monnier <monnier@cs.yale.edu> | |
13765 | |
13766 * regex.c (at_begline_loc_p): Also recognize the \\(?:^ case | |
13767 of an anchor at the beginning of a shy-group. | |
13768 | |
13769 2000-05-25 Gerd Moellmann <gerd@gnu.org> | |
13770 | |
13771 * xdisp.c (handle_invisible_prop): Don't try to skip over | |
13772 invisible text if end of text is already reached. | |
13773 | |
13774 2000-05-25 Dave Love <fx@gnu.org> | |
13775 | |
13776 * xdisp.c (Fdump_glyph_matrix): Declare the arg. | |
13777 | |
13778 * coding.c (encode_eol): Add null statement after label. | |
13779 | |
13780 2000-05-25 Eli Zaretskii <eliz@is.elta.co.il> | |
13781 | |
13782 * w16select.c (Fw16_set_clipboard_data): Fix the change from | |
13783 2000-05-20. | |
13784 | |
13785 2000-05-25 Kenichi Handa <handa@etl.go.jp> | |
13786 | |
13787 * ccl.c (ccl_driver): Fix previous change. | |
13788 | |
13789 2000-05-25 Kenichi Handa <handa@etl.go.jp> | |
13790 | |
13791 * coding.c (run_pre_post_conversion_on_str): Set point to the | |
13792 beginning of buffer before calling coding->post_read_conversion. | |
13793 (decode_coding_string): Give correct args to | |
13794 run_pre_post_conversion_on_str. | |
13795 (encode_coding_string): Likewise. | |
13796 | |
13797 * ccl.c (ccl_driver) <CCL_ReadMultibyteChar2> | |
13798 <CCL_WriteMultibyteChar2>: Handle charsets eight-bit-control and | |
13799 eight-bit-graphic correctly. | |
13800 | |
13801 2000-05-24 Kenichi HANDA <handa@etl.go.jp> | |
13802 | |
13803 * fileio.c (Finsert_file_contents): Even if a file is not found, | |
13804 execute codes for setting up coding system. Call | |
13805 after-insert-file-functions unconditionally. | |
13806 | |
13807 2000-05-24 Gerd Moellmann <gerd@gnu.org> | |
13808 | |
13809 * callproc.c, emacs.c, sysdep.c (setpgrp): Don't define if USG and | |
13810 BSD_PGRPS are not defined. | |
13811 | |
13812 2000-05-24 Kenichi Handa <handa@etl.go.jp> | |
13813 | |
13814 * charset.c (update_charset_table): Accept nil in LONG_NAME and | |
13815 DESCRIPTION. | |
13816 (syms_of_charset): Avoid building same strings. | |
13817 | |
13818 2000-05-23 Gerd Moellmann <gerd@gnu.org> | |
13819 | |
13820 * lread.c (Fload): Add a comment about the meaning of | |
13821 Vuser_init_file being t. | |
13822 | |
13823 * puresize.h (BASE_PURESIZE): Increase to 675000. | |
13824 | |
13825 * s/gnu-linux.h (setpgrp): Don't define it here because this | |
13826 prevents compilation on GNU/Linux systems with glib 2.2. | |
13827 | |
13828 * callproc.c, emacs.c, sysdep.c (setpgrp) [HAVE_SETPGID]: Define | |
13829 as setpgid. | |
13830 | |
13831 2000-05-23 Eli Zaretskii <eliz@is.elta.co.il> | |
13832 | |
13833 * Makefile.in (SOME_MACHINE_LISP): Add disp-table.elc, | |
13834 dos-vars.elc, ccl.elc, and codepage.elc, all loaded by the MS-DOS | |
13835 version. | |
13836 (MSDOS_SUPPORT): Add dos-vars.elc, ccl.elc, and codepage.elc. | |
13837 | |
13838 2000-05-23 Kenichi Handa <handa@etl.go.jp> | |
13839 | |
13840 * syntax.c (skip_chars): Use FETCH_STRING_CHAR_ADVANCE unconditionally. | |
13841 | |
13842 * msdos.c (IT_write_glyphs): Set coding->src_multibyte to 1. | |
13843 | |
13844 * term.c (encode_terminal_code): Set coding->src_multibyte properly. | |
13845 | |
13846 * coding.c (encode_eol): Fix a bug of DOS style EOL encoding. | |
13847 | |
13848 2000-05-22 Kenichi Handa <handa@etl.go.jp> | |
13849 | |
13850 * keyboard.c (read_char): Allow character codes 128..255 to be | |
13851 handled by input-method-function. | |
13852 | |
13853 * insdel.c (adjust_markers_for_replace): Fix previous change. | |
13854 (adjust_after_replace): If PREV_TEXT is nil, call | |
13855 adjust_markers_for_insert, not adjust_markers_for_replace. | |
13856 | |
13857 2000-05-20 NIIBE Yutaka <gniibe@mri.co.jp> | |
13858 | |
13859 * s/gnu-linux.h (UNIX98_PTYS) [HAVE_GRANDPT]: Define. | |
13860 (PTY_ITERATION, PTY_NAME_SPRINTF, PTY_OPEN, PTY_TTY_NAME_SPRINTF) | |
13861 [HAVE_GRANDPT]: Define. | |
13862 (C_SWITCH_SYSTEM): Add -D_XOPEN_SOURCE. | |
13863 | |
13864 * sysdep.c (setup_pty): Treat case that UNIX98_PTYS is defined | |
13865 like SYSV_PTYS. | |
13866 | |
13867 * config.in (HAVE_GRANDPT, HAVE_GETPT): New defines. | |
13868 | |
13869 * process.c (toplevel) [UNIX98_PTYS]: Include stdlib.h. | |
13870 | |
13871 2000-05-20 Kenichi Handa <handa@etl.go.jp> | |
13872 | |
13873 The following changes are to handle 8-bit characters in a | |
13874 multibyte buffer/string without facing with byte combining | |
13875 problem. Two new charsets eight-bit-control (for 0x80..0x9F) and | |
13876 eight-bit-graphic (for 0xA0..0xFF) are introduced. | |
13877 | |
13878 * Makefile.in (fns.o): Depend on charset.h. | |
13879 | |
13880 * alloc.c (Fmake_byte_code): If BYTECODE-STRING is multibyte, | |
13881 convert it to unibyte. | |
13882 (make_string): Use parse_str_as_multibyte, not chars_in_text. | |
13883 | |
13884 * buffer.c (advance_to_char_boundary): Don't use DEC_POS to find a | |
13885 apparent char boundary. | |
13886 (Fset_buffer_multibyte): Convert 8-bit characters in the range | |
13887 0x80..0x9F to/from multibyte form. | |
13888 | |
13889 * bytecode.c (Fbyte_code): If arg BYTESTR is multibyte, convert it | |
13890 to unibyte. | |
13891 | |
13892 * callproc.c (Fcall_process): Always encode an argument string if | |
13893 it is multibyte. Setup src_multibyte and dst_multibyte members of | |
13894 process_coding properly. | |
13895 | |
13896 * category.c (Fmodify_category_entry): Use SPLIT_CHAR, not | |
13897 SPLIT_NON_ASCII_CHAR. | |
13898 | |
13899 * ccl.c (CCL_WRITE_CHAR): Be sure to write single byte characters | |
13900 as is. | |
13901 (CCL_MAKE_CHAR): Use MAKE_CHAR, not MAKE_NON_ASCII_CHAR. | |
13902 | |
13903 * charset.c (Qeight_bit_control, Qeight_bit_graphic): New variables. | |
13904 (SPLIT_CHARACTER_SEQ): This macro deleted. | |
13905 (SPLIT_MULTIBYTE_SEQ): Assume that multibyte sequence at STR is valid. | |
13906 (CHAR_COMPONENTS_VALID_P): Handle new charsets; eight-bit-control | |
13907 and eight-bit-graphic. | |
13908 (char_to_string): Likewise. Signal an error for too large | |
13909 character code. | |
13910 (char_printable_p): Return 0 for 8-bit characters. | |
13911 (update_charset_table): Update iso_charset_table only when a final | |
13912 character is non-negative. | |
13913 (find_charset_in_text): Renamed from find_charset_in_str. | |
13914 Arguments and return value changed. Callers changed. | |
13915 (Fdefine_charset): Args ISO-FINAL-CHAR and ISO-GRAPHIC-PLANE can | |
13916 be -1 if CHARSET is used only internally. | |
13917 (Fmake_char_internal): Handle new charsets; eight-bit-control and | |
13918 eight-bit-graphic. | |
13919 (Fcharset_after): Simplified. | |
13920 (char_valid_p): Use SPLIT_CHAR, not SPLIT_NON_ASCII_CHAR. | |
13921 (char_bytes): Return 2 for chars of the range 0xA0..0xFF. | |
13922 (multibyte_chars_in_text): Simplified by assuming there's no | |
13923 invalid multibyte sequence. | |
13924 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte) | |
13925 (str_as_unibyte): New functions. | |
13926 (Fstring): Simpified by assuming that byte combining never happens. | |
13927 (init_charset_once): Initialization for | |
13928 LEADING_CODE_8_BIT_CONTROL. | |
13929 (syms_of_charset): Intern and staticpro Qeight_bit_control and | |
13930 Qeight_bit_graphic. Include them in Vcharset_list. Make charsets | |
13931 eight-bit-control and eight-bit-graphic. | |
13932 | |
13933 * charset.h (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL) | |
13934 (CHARSET_8_BIT_GRAPHIC): New macros. | |
13935 (SINGLE_BYTE_CHAR_P): Make it faster by using casting. | |
13936 (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT. | |
13937 (CHARSET_REVERSE_CHARSET): Likewise. | |
13938 (CHARSET_VALID_P): Handle new charsets; eight-bit-control and | |
13939 eight-bit-graphic. | |
13940 (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII. | |
13941 (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise. | |
13942 (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we | |
13943 encounter an invalid multibyte sequence. | |
13944 (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte | |
13945 sequence is always valid. | |
13946 (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted. | |
13947 (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros. | |
13948 (CHAR_STRING): For 8-bit characters, call char_to_string. | |
13949 (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume | |
13950 multibyte sequence is always valid. | |
13951 (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise. | |
13952 (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte) | |
13953 (str_as_unibyte): Extern them. | |
13954 (BCOPY_SHORT): Fix a bug. | |
13955 (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES. | |
13956 (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING. | |
13957 (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro. | |
13958 (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer. | |
13959 | |
13960 * coding.c (ONE_MORE_BYTE, TWO_MORE_BYTES): Set coding->result to | |
13961 CODING_FINISH_INSUFFICIENT_SRC if there's not enough source. | |
13962 (ONE_MORE_CHAR, EMIT_CHAR, EMIT_ONE_BYTE, EMIT_TWO_BYTE) | |
13963 (EMIT_BYTES): New macros. | |
13964 (THREE_MORE_BYTES, DECODE_CHARACTER_ASCII) | |
13965 (DECODE_CHARACTER_DIMENSION1, DECODE_CHARACTER_DIMENSION2): These | |
13966 macros deleted. | |
13967 (CHECK_CODE_RANGE_A0_FF): This macro deleted. | |
13968 (detect_coding_emacs_mule): Use UNIBYTE_STR_AS_MULTIBYTE_P to | |
13969 check the validity of multibyte sequence. | |
13970 (decode_coding_emacs_mule): New function. | |
13971 (encode_coding_emacs_mule): New macro. | |
13972 (detect_coding_iso2022): Use ONE_MORE_BYTE to fetch a byte from | |
13973 the source. | |
13974 (DECODE_ISO_CHARACTER): Just return a character code. | |
13975 (DECODE_COMPOSITION_START): Set coding->result instead of result. | |
13976 (decode_coding_iso2022, decode_coding_sjis_big5, decode_eol): Use | |
13977 EMIT_CHAR to produced decoded characters. Exit the loop only by | |
13978 macros ONE_MORE_BYTE or EMIT_CHAR. Don't handle the case of last | |
13979 block here. | |
13980 (ENCODE_ISO_CHARACTER): Don't translate character here. Produce | |
13981 only position codes for an invalid character. | |
13982 (encode_designation_at_bol): Return new destination pointer. 5th | |
13983 arg DSTP is changed to DST. | |
13984 (encode_coding_iso2022, decode_coding_sjis_big5): Get a character | |
13985 from the source by ONE_MORE_CHAR. Don't handle the case of last | |
13986 block here. | |
13987 (DECODE_SJIS_BIG5_CHARACTER, ENCODE_SJIS_BIG5_CHARACTER): These | |
13988 macros deleted. | |
13989 (detect_coding_sjis, detect_coding_big5, detect_coding_utf_8) | |
13990 (detect_coding_utf_16, detect_coding_ccl): Use ONE_MORE_BYTE and | |
13991 TWO_MORE_BYTES to fetch a byte from the source. | |
13992 (encode_eol): Pay attention to coding->src_multibyte. | |
13993 (detect_coding, detect_eol): Preserve members src_multibyte and | |
13994 dst_multibyte. | |
13995 (DECODING_BUFFER_MAG): Return 2 even for coding_type_raw_text. | |
13996 (encoding_buffer_size): Set magnification to 3 for all coding | |
13997 systems that require encoding. | |
13998 (ccl_coding_driver): For decoding, be sure that the result is | |
13999 valid multibyte sequence. | |
14000 (decode_coding): Initialize coding->errors and coding->result. | |
14001 For emacs-mule, call decode_coding_emacs_mule. For no-conversion | |
14002 and raw-text, always call decode_eol. Handle the case of last | |
14003 block here. If not coding->dst_multibyte, convert the resulting | |
14004 sequence to unibyte. | |
14005 (encode_coding): Initialize coding->errors and coding->result. | |
14006 For emacs-mule, call encode_coding_emacs_mule. For no-conversion | |
14007 and raw-text, always call encode_eol. Handle the case of last | |
14008 block here. | |
14009 (shrink_decoding_region, shrink_encoding_region): Detect cases | |
14010 that we can't skip data more rigidly. | |
14011 (code_convert_region): Setup src_multibyte and dst_multibyte | |
14012 members of coding. For decoding, if the buffer is multibyte, | |
14013 convert the source sequence to unibyte in advance. For encoding, | |
14014 if the buffer is multibyte, convert the resulting sequence to | |
14015 multibyte afterward. | |
14016 (run_pre_post_conversion_on_str): New function. | |
14017 (code_convert_string): Deleted and divided into the following two. | |
14018 (decode_coding_string, encode_coding_string): New functions. | |
14019 (code_convert_string1, code_convert_string_norecord): Call one of | |
14020 above. | |
14021 (Fdecode_sjis_char, Fdecode_big5_char): Use MAKE_CHAR instead of | |
14022 MAKE_NON_ASCII_CHAR. | |
14023 (Fset_terminal_coding_system_internal) | |
14024 (Fset_safe_terminal_coding_system_internal): Setup src_multibyte | |
14025 and dst_multibyte members. | |
14026 (init_coding_once): Initialize iso_code_class with new enum | |
14027 ISO_control_0 and ISO_control_1. | |
14028 | |
14029 * coding.h (enum iso_code_class_type): Member ISO_control_code is | |
14030 devided into ISO_control_0 and ISO_control_1. | |
14031 (struct coding_system): New members src_multibyte, dst_multibyte, | |
14032 errors, and result. Delete member fake_multibyte. | |
14033 (CODING_REQUIRE_DECODING): Return 1 if coding->dst_multibyte is | |
14034 nonzero. | |
14035 (CODING_REQUIRE_ENCODING): Return 1 if coding->src_multibyte is | |
14036 nonzero. | |
14037 | |
14038 * data.c (Faref): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR. | |
14039 (Faset): Likewise. | |
14040 | |
14041 * editfns.c (Fformat): Be sure to convert 8-bit characters to | |
14042 multibyte form. | |
14043 (Ftranspose_region) [BYTE_COMBINING_DEBUG]: Abort if byte | |
14044 combining occurs. | |
14045 (Ftranspose_region): Delete codes for handling byte combining. | |
14046 | |
14047 * fileio.c (Finsert_file_contents): Setup src_multibyte and | |
14048 dst_multibyte members of coding. On handling REPLACE on unibyte | |
14049 buffer, convert the result of decode_coding to unibyte. On | |
14050 inserting into a mutibyte buffer, always call code_convert_region. | |
14051 (e_write): Setup coding->src_multibyte according to the | |
14052 multibyteness of the source (buffer or string). | |
14053 | |
14054 * fns.c (concat): Handle 8-bit characters correctly. | |
14055 (Fstring_as_unibyte): Be sure to make all 8-bit characters in | |
14056 unibyte in the result. | |
14057 (Fstring_as_multibyte): Be sure to make all 8-bit characters in | |
14058 valid multibyte form in the result. | |
14059 (map_char_table): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR. | |
14060 (Fbase64_encode_region, Fbase64_encode_string): If base64_encode_1 | |
14061 return -1, signal an error. | |
14062 (base64_encode_1): New arg MULTIBYTE. Get each character by | |
14063 CHAR_STRING_AND_LENGTH if MULTIBYTE is nonzero. If a multibyte | |
14064 character is found, return -1. | |
14065 (Fbase64_decode_region): Delete codes for handling byte-combining. | |
14066 Treat each decoded byte as a unibyte character. | |
14067 (Fbase64_decode_string): Return unibyte string. | |
14068 (Fcompare_strings, concat, string_byte_to_char): Use | |
14069 FETCH_STRING_CHAR_ADVANCE_NO_CHECK instead off | |
14070 FETCH_STRING_CHAR_ADVANCE. | |
14071 (Fstring_lessp): Use FETCH_STRING_CHAR_ADVANCE unconditionally. | |
14072 (mapcar1): If SEQ is string, always use FETCH_STRING_CHAR_ADVANCE. | |
14073 | |
14074 * fontset.c (fontset_ref): Use SPLIT_CHAR instead of | |
14075 SPLIT_NON_ASCII_CHAR. | |
14076 (fontset_ref_via_base, fontset_set): Likewise | |
14077 | |
14078 * insdel.c (adjust_markers_for_record_delete): Deleted. | |
14079 (adjust_markers_for_insert): Argument changed. Caller changed. | |
14080 (adjust_markers_for_replace): Likewise. | |
14081 (ADJUST_CHAR_POS, combine_bytes, byte_combining_error) | |
14082 (CHECK_BYTE_COMBINING_FOR_INSERT): Deleted. | |
14083 (copy_text): Delete unused local varialbe c_save. For converting | |
14084 to multibyte, be sure to make all 8-bit characters in valid | |
14085 multibyte form. | |
14086 (count_size_as_multibyte): Handle 8-bit characters correctly. | |
14087 (insert_1_both, insert_from_string_1, insert_from_buffer_1) | |
14088 (adjust_after_replace, replace_range, del_range_2) | |
14089 [BYTE_COMBINING_DEBUG]: Abort if byte combining occurs. | |
14090 (insert_1_both, insert_from_string_1, insert_from_buffer_1) | |
14091 (adjust_after_replace, replace_range, del_range_2) Delete codes for | |
14092 handling byte combining. | |
14093 (adjust_before_replace): Deleted. | |
14094 | |
14095 * keymap.c (Fsingle_key_description): Use SPLIT_CHAR instead of | |
14096 SPLIT_NON_ASCII_CHAR. | |
14097 (describe_vector): Use MAKE_CHAR instead of MAKE_NON_ASCII_CHAR. | |
14098 (Faccessible_keymaps): Use FETCH_STRING_CHAR_ADVANCE unconditionally. | |
14099 (Fkey_description): Likewise. | |
14100 | |
14101 * lread.c (read1): On reading multibyte string, be sure to make | |
14102 all 8-bit chararacters in valid multibyte form. | |
14103 (readchar): Use FETCH_STRING_CHAR_ADVANCE unconditionally. | |
14104 | |
14105 * print.c (print_object): Use FETCH_STRING_CHAR_ADVANCE | |
14106 unconditionally. | |
14107 | |
14108 * process.c (Fstart_process): GCPRO current_dir before calling | |
14109 Ffind_operation_coding_system. Encode arguments here. | |
14110 (create_process): Don't encode arguments here. Setup | |
14111 src_multibyte and dst_multibyte members of struct coding. | |
14112 (read_process_output): Setup src_multibyte and dst_multibyte | |
14113 members of struct coding. If the output is to multibyte buffer, | |
14114 always decode the output of the process. Adjust the | |
14115 representation of 8-bit characters to the multibyteness of the output. | |
14116 (send_process): Setup coding->src_multibyte according to the | |
14117 multibyteness of the source. | |
14118 | |
14119 * search.c (wordify): Use FETCH_STRING_CHAR_ADVANCE unconditionally. | |
14120 (Freplace_match): Use FETCH_STRING_CHAR_ADVANCE and | |
14121 FETCH_STRING_CHAR_ADVANCE_NO_CHECK appropriately. | |
14122 | |
14123 * term.c (produce_special_glyphs): Use CHAR_BYTES instead of CHAR_LEN. | |
14124 | |
14125 * w16select.c (Fw16_set_clipboard_data): Setup members | |
14126 src_multibyte and dst_multibyte of coding. Adjusted for the | |
14127 change for find_charset_in_str. | |
14128 (Fw16_get_clipboard_data): Likewise. | |
14129 | |
14130 * w32fns.c (w32_to_x_font): Setup members src_multibyte and | |
14131 dst_multibyte of coding. | |
14132 (x_to_w32_font): Likewise. | |
14133 | |
14134 * w32select.c (Fw32_set_clipboard_data): Setup members | |
14135 src_multibyte and dst_multibyte of coding. Adjusted for the | |
14136 change for find_charset_in_str. | |
14137 (Fw32_get_clipboard_data): Likewise. | |
14138 | |
14139 * xdisp.c (get_next_display_element): Handle 8-bit characters | |
14140 correctly. | |
14141 (next_element_from_display_vector): Use CHAR_BYTES instead of CHAR_LEN. | |
14142 (disp_char_vector): Use SPLIT_CHAR instead of SPLIT_NON_ASCII_CHAR. | |
14143 | |
14144 * xselect.c (selection_data_to_lisp_data): Setup members | |
14145 src_multibyte and dst_multibyte of coding. Adjusted for the | |
14146 change for find_charset_in_str. | |
14147 (lisp_data_to_selection_data): Likewise. | |
14148 | |
14149 2000-05-19 Gerd Moellmann <gerd@gnu.org> | |
14150 | |
14151 * buffer.c (Fbury_buffer): Avoid trouble from burying a killed buffer. | |
14152 | |
14153 * dispextern.h (Vimage_types): Add extern declaration. | |
14154 | |
14155 * xdisp.c (Vimage_types): Moved here from xfns.c. | |
14156 (syms_of_xdisp): Move `image-types' variable here from xfns.c. | |
14157 | |
14158 * xfns.c (Vimages_types): Moved to xdisp.c. | |
14159 (syms_of_xfns): Move `image-types' to xdisp.c. | |
14160 | |
14161 * w32fns.c (Vimage_types): Removed. | |
14162 (syms_of_w32fns): Remove `image-types'. | |
14163 | |
14164 2000-05-18 Kenichi Handa <handa@etl.go.jp> | |
14165 | |
14166 * fns.c (map_char_table): Pay attention to character number of | |
14167 charset. Check the validity of charset at the first level. For | |
14168 leaf nodes that has nil value, call C_FUNCTION or FUNCTION with | |
14169 the default value. | |
14170 | |
14171 * fontset.c: Include "buffer.h". | |
14172 (fs_load_font): If the face has fontset, record the face ID in | |
14173 that fontset. | |
14174 (Finternal_char_font): New function. | |
14175 (accumulate_font_info): New function. | |
14176 (Ffontset_info): Rewritten for the new fontset implementation. | |
14177 (syms_of_fontset): Register Vdefault_fontset in the first element | |
14178 of Vfontset_table. Include Vdefault_fontset in | |
14179 Vfontset_alias_alist. Declare `internal-char-font' as a Lisp | |
14180 function. | |
14181 | |
14182 2000-05-16 Dave Love <fx@gnu.org> | |
14183 | |
14184 * m/iris5d.h: Deleted -- unused. | |
14185 | |
14186 2000-05-16 Gerd Moellmann <gerd@gnu.org> | |
14187 | |
14188 * xdisp.c, w32.c, print.c, msdos.c, emacs.c: Use the term | |
14189 `invalid' instead of `illegal'. | |
14190 | |
14191 * indent.c (Fmove_to_column): When ending within a tab, insert | |
14192 spaces first so that markers at the end of the tab get adjusted. | |
14193 | |
14194 * frame.c (frames_bury_buffer): Don't add a buffer to the frame's | |
14195 buffer list that wasn't selected in that frame. | |
14196 | |
14197 * filelock.c (get_boot_time): To obtain an 8 char file name, which | |
14198 is needed on mescaline, use a 2 char prefix, and call | |
14199 make_temp_name with second arg non-zero. | |
14200 | |
14201 * fileio.c (make_temp_name): New function, extracted from | |
14202 Fmake_temp_name. | |
14203 (Fmake_temp_name): Use it. | |
14204 | |
14205 2000-05-15 Eli Zaretskii <eliz@is.elta.co.il> | |
14206 | |
14207 * window.c (coordinates_in_window): Subtract 1 when computing right_x. | |
14208 | |
14209 2000-05-15 Gerd Moellmann <gerd@gnu.org> | |
14210 | |
14211 * Makefile.in (lisp): Add env.elc. | |
14212 | |
14213 * callproc.c (Fgetenv_internal): Renamed from Fgetenv. | |
14214 | |
14215 2000-05-12 Gerd Moellmann <gerd@gnu.org> | |
14216 | |
14217 * search.c (Freplace_match): Handle case of `\N' in the | |
14218 replacement when there's no group N. | |
14219 | |
14220 2000-05-11 Gerd Moellmann <gerd@gnu.org> | |
14221 | |
14222 * xdisp.c (add_to_log): Don't pass the terminating NUL byte | |
14223 of the message to message_dolog. | |
14224 | |
14225 * keyboard.c (read_char): Don't clear current message for help | |
14226 events; let the code handling help events handle this. Change | |
14227 code detecting help events that should be ignored. | |
14228 | |
14229 * xdisp.c (handle_single_display_prop): Don't try to set PT if | |
14230 we're interating over a string. | |
14231 | |
14232 2000-05-09 Dave Love <fx@gnu.org> | |
14233 | |
14234 * fileio.c (Fwrite_region): If APPEND arg is an integer, seek to | |
14235 that offset before writing. Move gcpro region past call of | |
14236 Ffile_regular_p. | |
14237 | |
14238 2000-05-04 Dave Love <fx@gnu.org> | |
14239 | |
14240 * buffer.c (syms_of_buffer) [auto-fill-function]: Doc fix. | |
14241 | |
14242 2000-05-04 Gerd Moellmann <gerd@gnu.org> | |
14243 | |
14244 * insdel.c (insert_from_buffer_1): Adjust FROM position by number | |
14245 of inserted characters when BUF equals the current buffer, and PT | |
14246 is in front of or equal to FROM. | |
14247 | |
14248 2000-05-03 Gerd Moellmann <gerd@gnu.org> | |
14249 | |
14250 * xdisp.c (handle_single_display_prop): If display property value | |
14251 is invalid, or something not supported on the frame, restore | |
14252 iterator's position to what it was initially. Make sure to return | |
14253 0 for invalid and unsupported property values. | |
14254 | |
14255 * xterm.c (x_produce_glyphs) <composite chars>: Handle case | |
14256 that x_per_char_metric returns null. | |
14257 | |
14258 2000-05-02 Gerd Moellmann <gerd@gnu.org> | |
14259 | |
14260 * xterm.h (struct face): Add forward declaration. | |
14261 (struct image): Ditto. | |
14262 (image_ascent): Add prototype. | |
14263 | |
14264 * xterm.c (x_produce_image_glyph, x_draw_image_foreground) | |
14265 (x_draw_image_relief, x_draw_image_foreground_1): Call function | |
14266 image_ascent instead of using IMAGE_ASCENT. | |
14267 | |
14268 * dispextern.h (DEFAULT_IMAGE_HEIGHT): New macro. | |
14269 (IMAGE_ASCENT): Removed. | |
14270 | |
14271 * xfns.c (Qcenter): New variable. | |
14272 (enum image_value_type): Add IMAGE_ASCENT_VALUE. | |
14273 (parse_image_spec): Handle IMAGE_ASCENT_VALUE. | |
14274 (image_ascent): New function. | |
14275 (lookup_image): Recognize `:ascent center'. | |
14276 (xbm_format, xpm_format, pbm_format, png_format, jpeg_format) | |
14277 (tiff_format, gif_format, gs_format): Use IMAGE_ASCENT_VALUE. | |
14278 (xbm_load): Don't set image's ascent here. | |
14279 (xbm_image_p, xpm_image_p, pbm_image_p, png_image_p) | |
14280 (jpeg_image_p, tiff_image_p, gif_image_p, gs_image_p): Don't | |
14281 check ascent values here. | |
14282 (Fimagep, Flookup_image [GLYPH_DEBUG]: Removed. | |
14283 (syms_of_xfns) [GLYPH_DEBUG]: Don't defsubr removed functions. | |
14284 (syms_of_xfns): Initialize Qcenter. | |
14285 | |
14286 * eval.c (Fsignal): If lisp_eval_depth or spepdl_size are near | |
14287 to the limits, increase the limits. | |
14288 | |
14289 2000-05-01 Kenichi Handa <handa@etl.go.jp> | |
14290 | |
14291 * fontset.c (fs_load_font): By default, use 0x00..0x7f for ASCII. | |
14292 Check Vfont_encoding_alist against the full name of the opened font. | |
14293 | |
14294 2000-04-28 Gerd Moellmann <gerd@gnu.org> | |
14295 | |
14296 * xdisp.c (make_cursor_line_fully_visible): Handle case of rows | |
14297 taller than the window. | |
14298 | |
14299 2000-04-28 Kenichi Handa <handa@etl.go.jp> | |
14300 | |
14301 * xfaces.c (realize_x_face): Fix the argument of the second | |
14302 xassert. BASE_FACE may not be a face for ASCII. | |
14303 | |
14304 2000-04-27 Gerd Moellmann <gerd@gnu.org> | |
14305 | |
14306 * print.c (print_object): Treat print-length < 0 as nil. | |
14307 | |
14308 * Makefile.in (termcapobj): Don't use TERMCAP_OBJ. | |
14309 | |
14310 * s/freebsd.h (TERMCAP_OBJ): Removed. | |
14311 (LIBS_TERMCAP): Don't define for __FreeBSD_version >= 400000. | |
14312 | |
14313 * lread.c (read1): Don't treat period followed by certain | |
14314 characters as symbol start. | |
14315 | |
14316 * xfns.c (slurp_file): New function. | |
14317 (xbm_image_p): Handle case of in-memory XBM files. | |
14318 (xbm_scan): Rewritten to work on memory buffers instead of files. | |
14319 (xbm_read_bitmap_data): Renamed from xbm_read_bitmap_file_data. | |
14320 Work on memory buffers instead of files. If DATA is null test | |
14321 if buffer looks like an in-memory XBM file. | |
14322 (xbm_load_image): Renamed from xbm_load_image_file. Work on | |
14323 memory buffers instead of files. | |
14324 (xbm_file_p): New function. | |
14325 (xbm_load): Accept :data DATA where DATA is an in-memory XBM file. | |
14326 | |
14327 * lread.c (end_of_file_error): New function. | |
14328 (read1): Call it instead of signaling `end-of-file' directly. | |
14329 | |
14330 * print.c (print_error_message): Print data of `end-of-file' | |
14331 with Fprinc instead of Fprin1. | |
14332 | |
14333 2000-04-26 Ken Raeburn <raeburn@gnu.org> | |
14334 | |
14335 * window.c (freeze_window_start): Check that minibuffer scroll | |
14336 window isn't nil before extracting the window structure pointer | |
14337 from it. | |
14338 | |
14339 * undo.c (record_delete): If we hit the end of the undo list, stop | |
14340 picking elements apart. | |
14341 | |
14342 2000-04-26 Gerd Moellmann <gerd@gnu.org> | |
14343 | |
14344 * xdisp.c (display_line): If lines are continued, restore | |
14345 iterator's ascent/descent information to the values before the | |
14346 first glyph not fitting on the line. | |
14347 | |
14348 2000-04-25 Gerd Moellmann <gerd@gnu.org> | |
14349 | |
14350 * xdisp.c (try_window_id) <all changes above window start>: Adjust | |
14351 positions in glyph matrix. Don't compute new window end positions. | |
14352 | |
14353 * dispnew.c (increment_matrix_positions): Renamed from | |
14354 increment_glyph_matrix_buffer_positions. | |
14355 (increment_row_positions): Renamed from | |
14356 increment_glyph_row_buffer_positions. | |
14357 | |
14358 * dispextern.h: Change names of renamed functions from dispnew.c | |
14359 in prototypes. | |
14360 | |
14361 2000-04-24 Gerd Moellmann <gerd@gnu.org> | |
14362 | |
14363 * fileio.c (Fdo_auto_save): Create directories for auto-save | |
14364 list file if necessary. | |
14365 | |
14366 * xdisp.c (init_iterator): Set iterator's extra_line_spacing | |
14367 from buffer or frame. | |
14368 (automatic_hscrolling_p): New variable. | |
14369 (hscroll_windows): Scroll windows horizontally only if automatic | |
14370 hscrolling is allowed. | |
14371 (syms_of_xdisp): New variable `automatic-hscrolling'. | |
14372 | |
14373 * frame.h (struct frame): Add member extra_line_spacing. | |
14374 | |
14375 * xfns.c (x_set_line_spacing): New function. | |
14376 (Fx_create_frame): Set line spacing from resources. | |
14377 (Qline_spacing): New variable. | |
14378 (syms_of_xfns): Initialize Qline_spacing. | |
14379 | |
14380 * emacs.c (USAGE2): Add `--line-spacing' and `-lsp'. | |
14381 | |
14382 * buffer.c (init_buffer_once): Handle extra_line_spacing. | |
14383 (syms_of_buffer): Add `default-line-spacing' and `line-spacing'. | |
14384 (reset_buffer): Don't initialize extra2 and extra3. Initialize | |
14385 extra_line_spacing from default value. | |
14386 (init_buffer_once): Initialize default value of extra_line_spacing. | |
14387 | |
14388 * buffer.h (struct buffer): Add extra_line_spacing, remove extra2 | |
14389 and extra3. | |
14390 | |
14391 * xterm.c (x_produce_glyphs): Remove reference to struct it's | |
14392 prompt_width. Add extra line spacing. | |
14393 | |
14394 * term.c (produce_glyphs): Remove reference to struct it's | |
14395 prompt_width. | |
14396 | |
14397 * dispextern.h (struct it): Remove member prompt_width, add | |
14398 extra_line_spacing. | |
14399 | |
14400 2000-04-22 Gerd Moellmann <gerd@gnu.org> | |
14401 | |
14402 * dispnew.c (update_frame_line): When writing a whole line, make | |
14403 sure cursor is in the right row afterwards, otherwise a use of | |
14404 capability `ch' in cmgoto might leave the cursor in the row below. | |
14405 | |
14406 2000-04-21 Gerd Moellmann <gerd@gnu.org> | |
14407 | |
14408 * lisp.h (struct Lisp_Buffer_Cons): Remove. | |
14409 | |
14410 * keyboard.c (timer_check): Fix typo in comment. | |
14411 | |
14412 2000-04-21 Kenichi Handa <handa@etl.go.jp> | |
14413 | |
14414 * fontset.c (Fset_fontset_font): Fix docstring. Local variable | |
14415 name change: ch -> character. | |
14416 | |
14417 2000-04-20 Gerd Moellmann <gerd@gnu.org> | |
14418 | |
14419 * keyboard.c (echo_message_buffer): New variable. | |
14420 (echo_now): Set echo_message_buffer to the echo area buffer used | |
14421 to display the echo. | |
14422 (cancel_echoing): Reset echo_message_buffer to nil. | |
14423 (read_char): Code rewritten that handles canceling an echo or | |
14424 echoing a dash, respectively. | |
14425 | |
14426 * fileio.c (Ffile_writable_p) [WINDOWSNT]: Return nil if parent | |
14427 directory doesn't exist. | |
14428 | |
14429 2000-04-19 Dave Love <fx@gnu.org> | |
14430 | |
14431 * fns.c (syms_of_fns): Defsubr mapc. | |
14432 (concat): Don't allow numeric args. | |
14433 (Fconcat): Doc change. | |
14434 | |
14435 2000-04-19 Stefan Monnier <monnier@cs.yale.edu> | |
14436 | |
14437 * regex.c (re_match_2_internal): Don't shorten the strings anymore, | |
14438 instead define end_match(1|2) more carefully. | |
14439 Use GET_CHAR_BEFORE_2 for `begline'. | |
14440 | |
14441 2000-04-19 Gerd Moellmann <gerd@gnu.org> | |
14442 | |
14443 * frame.h (SELECTED_FRAME): Change definition to compile cleanly | |
14444 on 64-bit systems where NULL is defined as `0'. | |
14445 | |
14446 * xdisp.c (with_echo_area_buffer): Add more `int' parameters for | |
14447 the `variable argument list' to make it work on Alpha. | |
14448 | |
14449 * m/alpha.h (_LP64) [!_LP64]: Define. | |
14450 (ORDINARY_LINK): Define for NetBSD. | |
14451 | |
14452 * m/macppc.h (ORDINARY_LINK): Define for NetBSD. | |
14453 | |
14454 2000-04-19 Dave Love <fx@gnu.org> | |
14455 | |
14456 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Revert 2000-04-14 | |
14457 change. | |
14458 | |
14459 * Makefile.in (LIBS): Don't use. | |
14460 (GETLOADAVG_OBJ): Define again. | |
14461 (otherobj): Add GETLOADAVG_OBJ. | |
14462 | |
14463 * buffer.c (Fmake_indirect_buffer): Escape newline in doc. | |
14464 | |
14465 2000-04-18 Gerd Moellmann <gerd@gnu.org> | |
14466 | |
14467 * lread.c (read_filtered_event): Cancel and start busy cursor. | |
14468 | |
14469 * xterm.c (x_produce_glyphs) <ASCII chars>: Take into account | |
14470 that the per-character metrics may be null. | |
14471 | |
14472 2000-04-17 Gerd Moellmann <gerd@gnu.org> | |
14473 | |
14474 * buffer.c (clone_per_buffer_values): New function. | |
14475 (Fmake_indirect_buffer): Add optional argument CLONE. Call | |
14476 clone_per_buffer_values if CLONE is not nil. | |
14477 | |
14478 * xfaces.c (Ftty_suppress_bold_inverse_default_colors): Doc fix. | |
14479 | |
14480 2000-04-16 Dave Love <fx@gnu.org> | |
14481 | |
14482 * Makefile.in: Remove obsolete localcpp stuff. | |
14483 (GETLOADAVG_OBJ): Don't define. | |
14484 (obj): Move LIBOBJS... | |
14485 (otherobj): ... to here. | |
14486 (MSDOS_OBJ): Convert to make variable -- preprocessing zapped | |
14487 whitespace-only lines after the continuation (Irix). | |
14488 | |
14489 2000-04-14 Gerd Moellmann <gerd@gnu.org> | |
14490 | |
14491 * xfns.c (xpm_load) [DEBUG_X_COLORS]: Register colors. | |
14492 | |
14493 * s/freebsd.h (LD_SWITCH_SYSTEM): Add `-L /usr/local/lib'. | |
14494 | |
14495 2000-04-14 Dave Love <fx@gnu.org> | |
14496 | |
14497 * s/aix3-1.h, s/bsd4-2.h, s/bsd4-3.h, s/cxux.h, s/dgux.h, s/gnu.h: | |
14498 * s/hpux.h, s/iris3-5.h, s/iris3-6.h, s/irix3-3.h, s/rtu.h: | |
14499 * s/unipl5-0.h, s/unipl5-2.h, s/usg5-0.h, s/usg5-2-2.h, s/usg5-2.h: | |
14500 * s/usg5-3.h, s/xenix.h, s/umax.h: Don't define autoconfiscated | |
14501 NLIST_STRUCT. | |
14502 | |
14503 * s/bsd386.h, s/freebsd.h, s/gnu.h, s/netbsd.h: Don't define | |
14504 autoconfiscated HAVE_GETLOADAVG. | |
14505 | |
14506 * s/nextstep.h, s/sco4.h, s/sco5.h: Don't define autoconfiscated | |
14507 BROKEN_MKTIME. | |
14508 | |
14509 2000-04-14 Gerd Moellmann <gerd@gnu.org> | |
14510 | |
14511 * filelock.c (MAKE_LOCK_NAME): Allocate 2 more bytes. | |
14512 (fill_in_lock_file_name): Avoid existing files that aren't links. | |
14513 | |
14514 2000-04-14 Dave Love <fx@gnu.org> | |
14515 | |
14516 * Makefile.in (LIBS, LIBOBJS): New variable. | |
14517 (INTERVAL_SRC): Convert to make variable. | |
14518 (INTERVAL_OBJ, MKTIME_OBJ, FLOAT_SUPPORT, FACE_SUPPORT) | |
14519 (HAVE_X_WINDOWS, OBJECTS_SYSTEM): Remove. | |
14520 (obj): Substitute INTERVAL_OBJ, add MKTIME_OBJ, GETLOADAVG_OBJ and | |
14521 add LIBOBJS. | |
14522 (SOME_MACHINE_OBJECTS): Remove interval stuff. | |
14523 (lisp): Substitute FACE_SUPPORT, FLOAT_SUP. | |
14524 (shortlisp): Add facemenu, float-sup, frame. | |
14525 (SOME_MACHINE_LISP): Remove them from here. | |
14526 (LIBES): Change unused LDLIBS to autoconf LIBS. | |
14527 | |
14528 * config.in: Add BROKEN_MKTIME, NLIST_STRUCT, NLIST_NAME_UNION. | |
14529 | |
14530 2000-04-14 Kenichi Handa <handa@etl.go.jp> | |
14531 | |
14532 * composite.c (update_compositions): If FROM and TO are not in a | |
14533 valid range, do nothing. | |
14534 | |
14535 2000-04-13 Gerd Moellmann <gerd@gnu.org> | |
14536 | |
14537 * tparam.c (tparam1): Abort when encountering an unknown `%'-specifier. | |
14538 | |
14539 * s/freebsd.h (TERMCAP_OBJ) [__FreeBSD__ >= 4]: Define as terminfo.o. | |
14540 | |
14541 * Makefile.in (termcapobj) [LIBS_TERMCAP && TERMCAP_OBJ]: Define | |
14542 as TERMCAP_OBJ. | |
14543 | |
14544 2000-04-13 Eli Zaretskii <eliz@is.elta.co.il> | |
14545 | |
14546 * fileio.c (a_write): Remove redundant semi-colons. | |
14547 (e_write): Return -1 if failed to write all the data. | |
14548 This fixes the changes made at 1999-12-15. | |
14549 | |
14550 2000-04-12 Dave Love <fx@gnu.org> | |
14551 | |
14552 * fns.c (mapcar1): Test for null vals to support mapc. | |
14553 (Fmapc): New function. | |
14554 | |
14555 2000-04-12 Eli Zaretskii <eliz@is.elta.co.il> | |
14556 | |
14557 * msdos.c (NUM_MOUSE_BUTTONS): Define. | |
14558 (IT_frame_up_to_date): Support the buffer local value of | |
14559 cursor-type, if defined. | |
14560 | |
14561 2000-04-10 Dave Love <fx@gnu.org> | |
14562 | |
14563 * editfns.c (preceding-char, following-char): Doc fix. | |
14564 | |
14565 2000-04-10 Ken Raeburn <raeburn@gnu.org> | |
14566 | |
14567 * Makefile.in (temacs): Revert 2000-03-12 change. | |
14568 | |
14569 2000-04-10 Jason Rumney <jasonr@gnu.org> | |
14570 | |
14571 * xfaces.c (realize_face): Change FRAME_X_P to FRAME_WINDOW_P. | |
14572 | |
14573 2000-04-10 Gerd Moellmann <gerd@gnu.org> | |
14574 | |
14575 * xdisp.c (setup_echo_area_for_printing): Choose an echo | |
14576 area buffer, if it's not set up yet. | |
14577 | |
14578 * indent.c (compute_motion): Set immediate_quit. | |
14579 | |
14580 2000-04-09 Gerd Moellmann <gerd@gnu.org> | |
14581 | |
14582 * xfaces.c (tty_suppress_bold_inverse_default_colors_p): New variable. | |
14583 (realize_tty_face): Suppress boldness if colors are the inverse of | |
14584 the default colors, and tty_suppress_bold_inverse_default_colors_p | |
14585 is set. | |
14586 (Ftty_suppress_bold_inverse_default_colors): New function. | |
14587 (syms_of_xfaces): Defsubr it. | |
14588 | |
14589 * buffer.c (Frestore_buffer_modified_p): New function. | |
14590 (syms_of_buffer): Defsubr it. | |
14591 | |
14592 2000-04-08 Ken Raeburn <raeburn@gnu.org> | |
14593 | |
14594 * charset.c (Fmake_char_internal): CHAR_COMPONENTS_VALID_P takes a | |
14595 charset id (int) argument, not a charset (Lisp_Object). | |
14596 | |
14597 * coding.h (code_convert_string): Declare. | |
14598 * coding.c (code_convert_string_norecord): Pass an int, not a lisp | |
14599 object, as the fourth argument to code_convert_string. | |
14600 | |
14601 * fontset.c (make_fontset_for_ascii_face): Use XINT on return value. | |
14602 (Fset_fontset_font): Use EQ to compare lisp objects. | |
14603 | |
14604 2000-04-05 Ken Raeburn <raeburn@gnu.org> | |
14605 | |
14606 * intervals.h (SET_INTERVAL_PARENT): Use INT_LISPLIKE to test for | |
14607 a pointer that looks like a lisp object. | |
14608 (SET_INTERVAL_OBJECT): Don't explicitly compare the object with | |
14609 zero, instead see whether it's an integer object, since they can't | |
14610 have intervals. | |
14611 (GET_INTERVAL_OBJECT): Simply assign to the destination. | |
14612 | |
14613 * dispnew.c (allocate_matrices_for_frame_redisplay) | |
14614 (direct_output_forward_char): Use X(U)INT and make_number as needed | |
14615 to convert between (unsigned) int values and lisp integers. | |
14616 * keyboard.c (read_key_sequence): Likewise. | |
14617 * lread.c (substitute_object_recurse): Likewise. | |
14618 * fns.c (concat, hash_lookup, hash_remove): Likewise. | |
14619 * minibuf.c (do_completion, Fminibuffer_complete_word) | |
14620 (Fminibuffer_completion_help): Likewise. | |
14621 * term.c (produce_special_glyphs): Likewise. | |
14622 | |
14623 * fileio.c (Fwrite_region): Use EQ when comparing lisp objects. | |
14624 * print.c (print_preprocess, print_object): Likewise. | |
14625 | |
14626 * search.c (compile_pattern): Use NILP when checking for nil. | |
14627 | |
14628 * lisp.h (make_number) [!NO_UNION_TYPE && __GNUC__ >= 2 && | |
14629 __OPTIMIZE__]: Provide a GNU C macro version that handles | |
14630 lisp-object unions. | |
14631 (XSET) [!NO_UNION_TYPE]: Set the value field first, then the type | |
14632 field, to better cope with ENABLE_CHECKING and calls that modify a | |
14633 Lisp_Object using its old value. | |
14634 | |
14635 2000-04-04 Gerd Moellmann <gerd@gnu.org> | |
14636 | |
14637 * window.c (compare_window_configurations): Signal an error | |
14638 if parameters C1 or C2 aren't window configurations. | |
14639 | |
14640 * bytecode.c (Fbyte_code): Add a bunch of BEFORE_POTENTIAL_GC/ | |
14641 AFTER_POTENTIAL_GC calls around calls to functions that can | |
14642 signal an error and thus invoke the debugger. | |
14643 | |
14644 2000-04-03 Gerd Moellmann <gerd@gnu.org> | |
14645 | |
14646 * fns.c (Fbase64_decode_region, Fbase64_decode_string): Signal | |
14647 an error if decoding fails. | |
14648 | |
14649 * keyboard.c (lispy_mouse_names): Variable removed. | |
14650 (Vlispy_mouse_stem): New variable. | |
14651 (syms_of_keyboard): Initialize Vlispy_mouse_stem. | |
14652 (make_lispy_event) <mouse_click, scroll_bar_click>: Don't abort | |
14653 for any mouse button number. Increase size of mouse_syms and | |
14654 button_down_location as needed. Call modify_event_symbol with | |
14655 different arguments. | |
14656 (make_lispy_event) <scroll_bar_click> [USE_TOOLKIT_SCROLL_BARS]: | |
14657 Call modify_event_symbol with different arguments. | |
14658 (make_lispy_event) <w32_scroll_bar_click> [WINDOWSNT]: Don't abort | |
14659 for any button number. Call modify_event_symbol with different | |
14660 arguments. | |
14661 (modify_event_symbol): Rename NAME_ALIST to NAME_ALIST_OR_STEM. | |
14662 Accept a string for NAME_ALIST_OR_STEM. | |
14663 | |
14664 * lisp.h (larger_vector): Add prototype. | |
14665 | |
14666 * fns.c (larger_vector): Make externally visible. | |
14667 | |
14668 * termhooks.h (NUM_MOUSE_BUTTONS): Removed. | |
14669 | |
14670 2000-04-02 Stefan Monnier <monnier@cs.yale.edu> | |
14671 | |
14672 * regex.c (PTR_TO_OFFSET) [!emacs]: Remove. | |
14673 (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros. | |
14674 (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when | |
14675 we are between str1 and str2. | |
14676 (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default. | |
14677 (PATFETCH): Use `TRANSLATE'. | |
14678 (PATFETCH_RAW): Fetch multibyte char if applicable. | |
14679 (PATUNFETCH): Remove. | |
14680 (regex_compile): Rely on PATFETCH to do most of the multibyte magic. | |
14681 When writing a char, write it directly into the pattern buffer rather | |
14682 than going needlessly through a temp char-array. | |
14683 (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the | |
14684 multibyte magic and remove the useless `#ifdef emacs'. | |
14685 (bcmp_translate): Don't compare as multibyte chars when in a unibyte | |
14686 buffer. | |
14687 | |
14688 * regex.h (struct re_pattern_buffer): Make field `multibyte' | |
14689 conditional on `emacs'. | |
14690 | |
14691 * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c. | |
14692 | |
14693 2000-04-01 Ken Raeburn <raeburn@gnu.org> | |
14694 | |
14695 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): Expand | |
14696 non-union-type versions of XMARK and friends here, because XMARK | |
14697 and friends won't work on an integer field if NO_UNION_TYPE is not | |
14698 defined. | |
14699 (make_number): Define as a function if it's not defined as a macro. | |
14700 | |
14701 * composite.c (run_composite_function): Use NILP when checking for nil. | |
14702 (syms_of_composite): Delete local var NARGS, pass an int as first | |
14703 argument to Fmake_hash_table. | |
14704 | |
14705 * editfns.c (text_property_stickiness): Use NILP to test | |
14706 Lisp_Object boolean value. | |
14707 (Fmessage_or_box): Don't use NILP to test int variable. | |
14708 (Fformat): Use a temporary variable to avoid ENABLE_CHECKING | |
14709 problems reading from and changing the same lisp value in an | |
14710 XSETSTRING call. | |
14711 | |
14712 2000-04-01 Gerd Moellmann <gerd@gnu.org> | |
14713 | |
14714 * term.c (TN_no_color_video): New variable. | |
14715 (term_init): Intitialize TN_no_color_video. | |
14716 (enum no_color_bit): New enumeration. | |
14717 (MAY_USE_WITH_COLORS_P): New macro. | |
14718 (turn_on_face): Use it to determine if attributes may be used | |
14719 combined with colors. | |
14720 | |
14721 2000-04-01 Ken Raeburn <raeburn@gnu.org> | |
14722 | |
14723 * window.c (CURBEG, CURSIZE): Don't overload lisp object lvalues | |
14724 with int lvalues via casts; instead, just yield lisp object lvalues. | |
14725 (enlarge_window): Variable sizep now points to Lisp_Object. Use | |
14726 proper accessor macros. | |
14727 (shrink_window_lowest_first): w->top is Lisp_Object; use XINT. | |
14728 (grow_mini_window): Fix typo getting int value of root->height. | |
14729 | |
14730 * xdisp.c (compute_string_pos): Fix order of arguments to | |
14731 string_pos_nchars_ahead. | |
14732 (handle_fontified_prop, add_to_log): Pass int, not Lisp_Object, as | |
14733 count arg to variable-arg routines like Frun_hook_with_args and | |
14734 Fformat. | |
14735 (back_to_previous_visible_line_start) | |
14736 (build_desired_tool_bar_string): Pass Lisp_Object, not int, to | |
14737 fixed-arg routines like Fget_char_property and Fmake_string. | |
14738 (reconsider_clip_changes): Use XINT when comparing integer lisp | |
14739 objects, or passing them as int arguments. | |
14740 (mark_window_display_accurate, insert_left_trunc_glyphs) | |
14741 (append_space, extend_face_to_end_of_line): Use make_number when | |
14742 storing or passing integer values as lisp objects. | |
14743 (set_cursor_from_row, highlight_trailing_whitespace): Use | |
14744 INTEGERP, not implicit test against zero, for glyph object. | |
14745 (try_window_id): Don't use make_number when we want an int value. | |
14746 | |
14747 * xfaces.c (xlfd_symbolic_value): Make last argument a | |
14748 Lisp_Object, to be consistent with callers. | |
14749 (Fbitmap_spec_p): Use XINT to get numeric value of height. | |
14750 (lface_hash): Apply XFASTINT to lisp values before folding in. | |
14751 | |
14752 * xfns.c (Fx_show_tip): Use make_number to get lisp objects to | |
14753 fill in window width and height. Pass an int, not a lisp object, | |
14754 as first arg to Finsert. | |
14755 | |
14756 2000-04-01 Gerd Moellmann <gerd@gnu.org> | |
14757 | |
14758 * xfaces.c (realize_basic_faces): Block input while realizing | |
14759 the faces. | |
14760 | |
14761 * keyboard.c (lispy_mouse_names): Add additional mouse names. | |
14762 | |
14763 * termhooks.h (NUM_MOUSE_BUTTONS): Increase to 15. | |
14764 | |
14765 2000-03-31 Gerd Moellmann <gerd@gnu.org> | |
14766 | |
14767 * xterm.c (x_produce_glyphs): When displaying unibyte text | |
14768 or ASCII, handle case that per-char metric is null. | |
14769 | |
14770 2000-03-30 Ken Raeburn <raeburn@gnu.org> | |
14771 | |
14772 * lisp.h (NO_UNION_TYPE) [ENABLE_CHECKING]: Undef. | |
14773 | |
14774 * lisp.h (XCONS, XSTRING, XSYMBOL, XFLOAT, XPROCESS, XWINDOW) | |
14775 (XSUBR, XBUFFER): Verify correct object type before returning | |
14776 pointer, using eassert. | |
14777 * frame.h (XFRAME): Likewise. | |
14778 | |
14779 * buffer.c (Frename_buffer, Fset_buffer_multibyte) | |
14780 (swap_out_buffer_local_variables, Fmove_overlay): Don't apply | |
14781 XSYMBOL, XBUFFER, etc, to values that may be nil or of the wrong type. | |
14782 * data.c (set_internal): Likewise. | |
14783 * dispextern.h (WINDOW_WANTS_MODELINE_P) | |
14784 (WINDOW_WANTS_HEADER_LINE_P): Likewise. | |
14785 * fileio.c (auto_save_1): Likewise. | |
14786 * insdel.c (check_markers): Likewise. | |
14787 * marker.c (buf_charpos_to_bytepos, unchain_marker): Likewise. | |
14788 * undo.c (record_insert): Likewise. | |
14789 * vmsproc.c (child_sig): Likewise. | |
14790 * window.c (unshow_buffer, window_loop): Likewise. | |
14791 * xterm.c (x_erase_phys_cursor): Likewise. | |
14792 | |
14793 2000-03-30 Gerd Moellmann <gerd@gnu.org> | |
14794 | |
14795 * xfns.c (free_image_cache): Free the cache structure itself | |
14796 last, after all its members have been freed. | |
14797 | |
14798 * lisp.h (xstrdup): Add prototype. | |
14799 | |
14800 * alloc.c (xstrdup): Moved here from xfaces.c. | |
14801 (allocating_for_lisp): Variable removed. | |
14802 (lisp_malloc): Block input around the calls to malloc and mem_insert. | |
14803 | |
14804 * xfaces.c (realize_tty_face): Use find_symbol_value instead | |
14805 of Fsymbol_value. | |
14806 (xstrdup): Moved to alloc.c. | |
14807 | |
14808 2000-03-29 Ken Raeburn <raeburn@gnu.org> | |
14809 | |
14810 * scroll.c (CHECK_BOUNDS): Renamed from CHECK. | |
14811 | |
14812 * emacs.c (main): Fix sense of no-loadup test. | |
14813 | |
14814 * config.in (ENABLE_CHECKING): Undef. | |
14815 | |
14816 * lisp.h (struct interval): Replace "parent" field with a union of | |
14817 interval pointer and Lisp_Object; add new bitfield to use as | |
14818 discriminant. Change other flag fields to bitfields. | |
14819 (CHECK): New macro for consistency checking. If ENABLE_CHECKING | |
14820 is defined and the supplied test fails, print a message and abort. | |
14821 (eassert): New macro. Use CHECK to provide an assert-like facility. | |
14822 | |
14823 * intervals.h (NULL_INTERVAL_P): Now applies only to real interval | |
14824 pointers; abort if the value looks like a lisp object. | |
14825 (NULL_INTERVAL_P, NULL_PARENT, HAS_PARENT, HAS_OBJECT, SET_PARENT) | |
14826 (SET_OBJECT, INTERVAL_PARENT, GET_INTERVAL_OBJECT, COPY_PARENT): | |
14827 Modify for new interval parent definition. | |
14828 | |
14829 * alloc.c (mark_interval_tree, MARK_INTERVAL_TREE) | |
14830 (UNMARK_BALANCE_INTERVALS): Update references that need an | |
14831 addressable lisp object in the interval structure. | |
14832 (die): New function. | |
14833 (suppress_checking): New variable. | |
14834 | |
14835 * intervals.c (interval_start_pos): Just return 0 if there's no | |
14836 parent object. | |
14837 | |
14838 2000-03-29 Gerd Moellmann <gerd@gnu.org> | |
14839 | |
14840 * lread.c (read1): Accept `.' (period) as symbol start like in CL | |
14841 and earlier Emacs versions. | |
14842 | |
14843 * keyboard.c (Ftop_level): Cancel busy-cursor. | |
14844 | |
14845 * eval.c (call_debugger): Cancel busy-cursor. | |
14846 | |
14847 2000-03-29 Kenichi Handa <handa@etl.go.jp> | |
14848 | |
14849 * search.c (Freplace_match): Adjust multibyteness of the current | |
14850 buffer and NEWTEXT. Free allocated memory before signaling an error. | |
14851 | |
14852 2000-03-28 Stefan Monnier <monnier@cs.yale.edu> | |
14853 | |
14854 * regex.c (analyse_first): New function obtained by ripping out most | |
14855 of re_compile_fastmap and generalizing it a little bit so that it | |
14856 can also just return whether a given (sub)pattern can match the empty | |
14857 string or not. | |
14858 (regex_compile): Use `analyse_first' to decide whether the loop-check | |
14859 needs to be done or not for *, +, *? and +? (the loop check is costly | |
14860 for non-greedy repetition). | |
14861 (re_compile_fastmap): Delegate the actual work to `analyse_first'. | |
14862 | |
14863 2000-03-28 Dave Love <fx@gnu.org> | |
14864 | |
14865 * s/gnu-linux.h (GC_SETJMP_WORKS): Define for i386, sparc, m68k, alpha. | |
14866 | |
14867 * alloc.c: Include stdio.h. Test STDC_HEADERS, not __STDC__. | |
14868 | |
14869 2000-03-27 Stefan Monnier <monnier@cs.yale.edu> | |
14870 | |
14871 * regex.c (REGEX_FREE_STACK, RESET_FAIL_STACK): Make them usable as | |
14872 an expression. | |
14873 (enum re_opcode_t): Update description of succeed_n. | |
14874 (PATFETCH): Always define. | |
14875 (regex_compile): Use lookahead rather than PATUNFETCH (for repetition | |
14876 operators, char classes, shy-groups and intervals). | |
14877 Optimize special cases of intervals so as to only use succeed_n and | |
14878 jump_n when really needed. | |
14879 (re_compile_fastmap): Simplify handling of jump_n and succeed_n now | |
14880 that we don't have to handle the special cases any more. | |
14881 Simplify on_failure_jump handling as well. | |
14882 | |
14883 2000-03-28 Jason Rumney <jasonr@gnu.org> | |
14884 | |
14885 * lread.c (Fload): Move safe_p definition to above #ifdef DOS_NT. | |
14886 | |
14887 2000-03-27 Gerd Moellmann <gerd@gnu.org> | |
14888 | |
14889 * s/freebsd.h (GC_SETJMP_WORKS): Define. | |
14890 | |
14891 * s/msdos.h (GC_SETJMP_WORKS): Define. | |
14892 | |
14893 * alloc.c (mark_maybe_object): New function. | |
14894 (mark_memory): Use it. | |
14895 (SETJMP_WILL_LIKELY_WORK, SETJMP_WILL_NOT_WORK): New macros. | |
14896 (setjmp_tested_p, longjmp_done): New variables. | |
14897 (test_setjmp): New function. | |
14898 (mark_stack) [!GC_SETJMP_WORKS]: Call test_setjmp. | |
14899 (init_alloc): Initialize setjmp_tested_p and longjmp_done. | |
14900 | |
14901 * xdisp.c (face_before_or_after_it_pos): Pass multibyteness | |
14902 to DEC_TEXT_POS and INC_TEXT_POS. | |
14903 | |
14904 * dispnew.c (direct_output_for_insert): Use DEC_TEXT_POS | |
14905 with parameter MULTIBYTE_P. | |
14906 | |
14907 * dispextern.h (INC_TEXT_POS, DEC_TEXT_POS): Add parameter MULTIBYTE_P. | |
14908 | |
14909 * editfns.c (Fsubst_char_in_region): Don't use INC_POS in unibyte | |
14910 buffers because it looks for multibyte character byte sequences | |
14911 which don't exist in unibyte text. | |
14912 | |
14913 * xterm.h (x_specified_cursor_type, x_copy_color): Add prototypes. | |
14914 | |
14915 * xfaces.c (register_color, unregister_color, unregister_colors) | |
14916 [DEBUG_X_COLORS]: New functions. | |
14917 (x_free_colors) [DEBUG_X_COLORS]: Unregister colors. | |
14918 | |
14919 * xfns.c (x_set_cursor_color): Get color reference counts right. | |
14920 | |
14921 * xterm.c (x_copy_color): New function. | |
14922 (x_alloc_nearest_color) [DEBUG_X_COLORS]: Call register_color. | |
14923 | |
14924 * buffer.h (MAX_PER_BUFFER_VARS): Renamed from MAX_BUFFER_LOCAL_VARS. | |
14925 (PER_BUFFER_VAR_OFFSET): Renamed from BUFFER_LOCAL_VAR_OFFSET. | |
14926 (PER_BUFFER_VAR_IDX): Renamed from BUFFER_LOCAL_VAR_IDX. | |
14927 (PER_BUFFER_VALUE_P): Renamed from BUFFER_HAS_LOCAL_VALUE_P. | |
14928 (SET_PER_BUFFER_VALUE_P): Renamed from SET_BUFFER_HAS_LOCAL_VALUE_P. | |
14929 (PER_BUFFER_IDX): Renamed from BUFFER_LOCAL_IDX. | |
14930 (PER_BUFFER_DEFAULT): Renamed from BUFFER_LOCAL_DEFAULT_VALUE. | |
14931 (PER_BUFFER_VALUE): Renamed from BUFFER_LOCAL_VALUE. | |
14932 (PER_BUFFER_SYMBOL): Renamed from BUFFER_LOCAL_SYMBOL. | |
14933 (PER_BUFFER_TYPE): Renamed from BUFFER_LOCAL_TYPE. | |
14934 | |
14935 * category.c, data.c, syntax.c, print.c, lread.c: Use new macro | |
14936 names for handling per-buffer variables. | |
14937 | |
14938 * buffer.c (buffer_permanent_local_flags): Use MAX_PER_BUFFER_VARS | |
14939 instead of MAX_BUFFER_LOCAL_VARS. | |
14940 (last_per_buffer_idx): Renamed from max_buffer_local_idx. | |
14941 | |
14942 * xfaces.c (lookup_face): Don't assert FACE_SUITABLE_FOR_CHAR_P. | |
14943 | |
14944 * xfns.c (x_specified_cursor_type): New function. | |
14945 (x_set_cursor_type): Use it. | |
14946 | |
14947 * buffer.h (struct buffer): Add cursor_type. | |
14948 | |
14949 2000-03-26 Stefan Monnier <monnier@cs.yale.edu> | |
14950 | |
14951 * regex.c (enum re_opcode_t): New opcode on_failure_jump_nastyloop. | |
14952 (print_partial_compiled_pattern, re_compile_fastmap): | |
14953 Handle new opcode. | |
14954 (regex_compile): Use on_failure_jump_nastyloop for non-greedy loops. | |
14955 (re_match_2_internal): Add code for on_failure_jump_nastyloop when | |
14956 executing it as well as when popping it off the stack to find infinite | |
14957 loops in non-greedy repetition operators. | |
14958 | |
14959 2000-03-26 Gerd Moellmann <gerd@gnu.org> | |
14960 | |
14961 * doc.c (Qfunction_documentation): New variable. | |
14962 (syms_of_doc): Initialize Qfunction_documentation. | |
14963 (Fdocumentation): If FUNCTION is a symbol with non-nil | |
14964 `function-documentation' property, return a documentation derived | |
14965 from that. | |
14966 | |
14967 * buffer.c (syms_of_buffer): Add default-cursor-type. | |
14968 (init_buffer_once): Don't let cursor_type have a local value | |
14969 in every buffer. | |
14970 | |
14971 * xterm.c (x_display_and_set_cursor): Choose cursor depending | |
14972 on buffer-local value of cursor_type. | |
14973 (x_draw_bar_cursor): Add parameter WIDTH. | |
14974 | |
14975 * buffer.c (reset_buffer): Initialize buffer's cursor_type. | |
14976 (init_buffer_once): Set default cursor_type value to t. | |
14977 Mark cursor_type as local everywhere. | |
14978 (syms_of_buffer): New per-buffer variable cursor-type. | |
14979 | |
14980 * buffer.h (struct buffer): Remove member local_var_flags, | |
14981 add local_flags. | |
14982 (MAX_BUFFER_LOCAL_VARS): New macro. | |
14983 (BUFFER_LOCAL_VAR_OFFSET, BUFFER_LOCAL_VAR_IDX) | |
14984 (BUFFER_HAS_LOCAL_VALUE_P, SET_BUFFER_HAS_LOCAL_VALUE_P) | |
14985 (BUFFER_LOCAL_IDX, BUFFER_LOCAL_DEFAULT_VALUE, BUFFER_LOCAL_VALUE) | |
14986 (BUFFER_LOCAL_SYMBOL, BUFFER_LOCAL_TYPE): New macros. | |
14987 | |
14988 * print.c (print_object): Use new macros for per-buffer variables. | |
14989 | |
14990 * category.c (Fset_category_table): Use new macros for per-buffer | |
14991 variables. | |
14992 | |
14993 * buffer.c (buffer_permanent_local_flags): Make a char array. | |
14994 (max_buffer_local_idx): New variable. | |
14995 (reset_buffer_local_variables, Fbuffer_local_variables): Rewritten | |
14996 for new handling of per-buffer variables. | |
14997 (buffer_slot_type_mismatch): Use new macros for per-buffer vars. | |
14998 (init_buffer_once): Initialize per-buffer vars differently. | |
14999 Set max_buffer_local_idx. | |
15000 | |
15001 * syntax.c (Fset_syntax_table): Use new macros for per-buffer | |
15002 variables. | |
15003 | |
15004 * lread.c (defvar_per_buffer): Use new macros for per-buffer variables. | |
15005 | |
15006 * data.c (do_symval_forwarding, store_symval_forwarding) | |
15007 (find_symbol_value, set_internal, default_value, Fset_default) | |
15008 (Fkill_local_variable, Flocal_variable_p): Use new macros for | |
15009 per-buffer variables. | |
15010 | |
15011 * Makefile.in (bootstrap-emacs): Use `mv -f' instead of `mv'. | |
15012 | |
15013 2000-03-24 Gerd Moellmann <gerd@gnu.org> | |
15014 | |
15015 * xterm.c (x_term_init): Unblock input around call1 of | |
15016 Qvendor_specific_keysyms. | |
15017 | |
15018 * syntax.c (open_paren_in_column_0_is_defun_start): New variable. | |
15019 (find_defun_start): Consider an open parenthesis in column 0 | |
15020 a defun start only if open_paren_in_column_0_is_defun_start is set. | |
15021 (syms_of_syntax): New variable open-paren-in-column-0-is-defun-start. | |
15022 | |
15023 2000-03-24 Stefan Monnier <monnier@cs.yale.edu> | |
15024 | |
15025 * eval.c (Fautoload): Add entry in load-history (if after dump). | |
15026 * lread.c (load-history): Update docstring. | |
15027 | |
15028 2000-03-24 Gerd Moellmann <gerd@gnu.org> | |
15029 | |
15030 * indent.c (Fvertical_motion): Always use the current buffer. | |
15031 Temporarily change the window's buffer, if necessary. | |
15032 | |
15033 2000-03-23 Gerd Moellmann <gerd@gnu.org> | |
15034 | |
15035 * xterm.c (fast_find_position): Make sure not to consider rows | |
15036 not visible in the window. | |
15037 | |
15038 2000-03-22 Stefan Monnier <monnier@cs.yale.edu> | |
15039 | |
15040 * regex.c (enum syntaxcode): Provide default for non-Emacs. | |
15041 (re_compile_fastmap, re_match_2_internal): Undo Dave's previous fix. | |
15042 | |
15043 2000-03-22 Jason Rumney <jasonr@gnu.org> | |
15044 | |
15045 * w32menu.c (single_submenu): Set help string to NULL if none. | |
15046 (w32_menu_show): Set help string correctly. | |
15047 (add-menu-item): Set help string in MIIM_DATA for menu item. | |
15048 Load SetMenuItemInfoA explicitly. | |
15049 (w32_menu_display_help): New function. | |
15050 | |
15051 * w32fns.c (w32_wnd_proc): Handle WM_MENUSELECT message. | |
15052 (QCdata): Moved to xdisp.c. | |
15053 | |
15054 * w32term.c (w32_read_socket): Handle WM_MENUSELECT message. | |
15055 (Vw32_charset_to_codepage_alist): Removed. | |
15056 (Vw32_charset_info_alist): New variable. | |
15057 (Qw32_charset_[ansi, default, symbol, shiftjis, hangul, gb2312) | |
15058 (chinesebig5, oem, easteurope, turkish, baltic, russian, arabic) | |
15059 (greek, hebrew, thai, johab, mac, unicode]): New symbols. | |
15060 (x_produce_glyphs): Remove out of date #ifdef 0'd section. Replace | |
15061 with TODO comment. | |
15062 (w32_codepage_for_font): Use Vw32_charset_info_alist. | |
15063 (syms_of_w32term): Remove Vw32_charset_to_codepage_alist. | |
15064 Define Vw32_charset_info_alist and w32_charset symbols. | |
15065 | |
15066 2000-03-22 Jason Rumney <jasonr@gnu.org> | |
15067 | |
15068 * makefile.nt (w32bdf.obj): Update dependencies. | |
15069 | |
15070 * w32bdf.c: Include frame.h and dispextern.h before fontset.h. | |
15071 | |
15072 * w32fns.c: Include fontset.h after dispextern.h. | |
15073 (Fx_create_frame): Do not create fontset. | |
15074 (w32_load_system_font): Doc fix. | |
15075 (Fx_close_connection): Free full_name if it is not shared. | |
15076 | |
15077 * w32term.c: Include fontset.h after dispextern.h. | |
15078 (x_get_glyph_face_and_encoding): New parameter two_byte_p. | |
15079 Callers updated. | |
15080 (w32_per_char_metric): If PCM is invalid, delete and return NULL. | |
15081 (x_get_char_and_face_encoding): Use FACE_FOR_CHAR to get face_id. | |
15082 (w32_font_is_double_byte): New function, needs body. | |
15083 (x_append_glyph): Set glyph->glyph_not_available_p. | |
15084 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set | |
15085 it->charset. If it->multibyte_p is zero and it->c is a multibyte | |
15086 character, convert it to a unibyte character. | |
15087 (struct glyph_string): Delete member `charset'. | |
15088 (W32_TEXTOUT): Temporarily remove charset_dim until another way of | |
15089 calculating it is found. | |
15090 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle | |
15091 the case that per char metric is not available correctly. | |
15092 (x_fill_glyph_string): Handle the case that the specific glyph is | |
15093 not available correctly. | |
15094 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset. | |
15095 (BUILD_COMPOSITE_GLYPH_STRING): Likewise. | |
15096 (x_new_font): Call FS_LOAD_FONT, not fs_load_font. | |
15097 (x_new_fontset): Call fontset_ascii to get ASCII font name of the | |
15098 fontset. Don't call FS_LOAD_FONT. | |
15099 | |
15100 2000-03-22 Ken Raeburn <raeburn@gnu.org> | |
15101 | |
15102 * intervals.h (NULL_INTERVAL): Cast to INTERVAL type. | |
15103 (INT_LISPLIKE): New macro. | |
15104 (NULL_INTERVAL_P): Use it. | |
15105 (INTERVAL_HAS_PARENT, INTERVAL_HAS_OBJECT, SET_INTERVAL_PARENT) | |
15106 (SET_INTERVAL_OBJECT, INTERVAL_PARENT, COPY_INTERVAL_PARENT) | |
15107 (GET_INTERVAL_OBJECT, INTERVAL_PARENT_OR_NULL): New macros. | |
15108 | |
15109 * alloc.c (make_interval, gc_sweep): Use new macros; eliminate all | |
15110 explicit references to "parent" field of struct interval and | |
15111 associated unclean type conversions. | |
15112 * intervals.c (create_root_interval, root_interval, rotate_right) | |
15113 (rotate_left, balance_possible_root_interval, split_interval_right) | |
15114 (split_interval_left, interval_start_pos, find_interval) | |
15115 (next_interval, previous_interval, update_interval) | |
15116 (adjust_intervals_for_insertion, delete_node, delete_interval) | |
15117 (adjust_intervals_for_deletion, merge_interval_right) | |
15118 (merge_interval_left, reproduce_tree, graft_intervals_into_buffer) | |
15119 (copy_intervals_to_string): Likewise. | |
15120 * intervals.h (AM_LEFT_CHILD, AM_RIGHT_CHILD, RESET_INTERVAL): | |
15121 Likewise. | |
15122 * syntax.c (update_syntax_table): Likewise. | |
15123 | |
15124 * intervals.c (reproduce_tree_obj): New function, like | |
15125 reproduce_tree but takes a Lisp_Object for the parent. Declare | |
15126 with prototype. | |
15127 (graft_intervals_into_buffer): Use it when appropriate. | |
15128 (reproduce_tree): Declare with prototype. | |
15129 (balance_possible_root_interval): Check that the parent is a lisp | |
15130 object before trying to examine its type. | |
15131 | |
15132 2000-03-22 Gerd Moellmann <gerd@gnu.org> | |
15133 | |
15134 * xfaces.c (lface_same_font_attributes_p): Compare font attributes | |
15135 as strings only if both are known to be strings. | |
15136 | |
15137 * s/openbsd.h (LIBS_TERMCAP): Undef. | |
15138 | |
15139 2000-03-21 Stefan Monnier <monnier@cs.yale.edu> | |
15140 | |
15141 * regex.c (CHAR_CHARSET, CHARSET_LEADING_CODE_BASE): Add default | |
15142 definitions for non-Emacs compilation. | |
15143 (enum re_opcode_t): Remove (not)wordchar and move (not)syntaxspec | |
15144 outside of `#ifdef emacs'. | |
15145 (print_partial_compiled_pattern): Update. | |
15146 (regex_compile): Use (not)syntaxspec(Sword) instead of (not)wordchar. | |
15147 (re_compile_fastmap): Merge handling of charset and charset_not (for | |
15148 emacs and non-emacs compilation as well). | |
15149 Similarly for (not)categoryspec and (not)syntaxspec. | |
15150 Don't use the fastmap when reaching `anychar' since the added | |
15151 complexity is not justified. | |
15152 (re_match_2_internal): Merge (not)wordchar (emacs and non-emacs) | |
15153 and (not)syntaxspec. Merge (not)categoryspec. | |
15154 | |
15155 2000-03-22 Kenichi Handa <handa@etl.go.jp> | |
15156 | |
15157 * dispextern.h [!HAVE_WINDOW_SYSTEM] (FACE_SUITABLE_FOR_CHAR_P) | |
15158 (FACE_FOR_CHAR): Define them differently for the configuration of | |
15159 --without-x. | |
15160 | |
15161 2000-03-21 Dave Love <fx@gnu.org> | |
15162 | |
15163 * fontset.c (Fset_fontset_font, Ffontset_font): Fix newlines in | |
15164 doc string. | |
15165 | |
15166 2000-03-21 Gerd Moellmann <gerd@gnu.org> | |
15167 | |
15168 * xfaces.c (check_lface_attrs) [GLYPH_DEBUG]: Fix syntax error. | |
15169 (lface_fully_specified_p): Don't check contents of | |
15170 LFACE_FONT_INDEX because that attribute is optional. | |
15171 (realize_x_face): Remove now unwarranted xassert. | |
15172 | |
15173 2000-03-21 Kenichi HANDA <handa@etl.go.jp> | |
15174 | |
15175 The following changes are to make font selection based on | |
15176 characters, not charset. In addition, they recover fontset | |
15177 facilities while utilizing the new font selection mechanism. | |
15178 | |
15179 * Makefile.in (fontset.o): Depend on dispextern.h. | |
15180 | |
15181 * alloc.c (mark_face_cache): Don't mark face->registry. | |
15182 | |
15183 * dispextern.h (struct glyph): New member glyph_not_available_p. | |
15184 Use 22 bits for face_id. | |
15185 (enum lface_attribute_index): Add LFACE_FONT_INDEX. | |
15186 (struct face): Delete member registry, new member ascii_face. | |
15187 (FACE_SUITABLE_FOR_CHAR_P): Renamed from | |
15188 FACE_SUITABLE_FOR_CHARSET_P. Caller changed. | |
15189 (FACE_FOR_CHAR): Renamed from FACE_FOR_CHARSET. Caller changed. | |
15190 (struct it): Delete member charset, new member glyph_not_available_p. | |
15191 | |
15192 * fontset.h (FONT_NOT_OPENED, FONT_NOT_FOUND): Macros removed. | |
15193 (struct fontset_info, struct fontset_data): Structs removed. | |
15194 (allloc_fontset_data, free_fontset_data, fs_regiser_fontset) | |
15195 (Vglobale_fontset_alist, font_idx_temp): Externs removed. | |
15196 (fs_load_font, fs_query_fontset): Adjusted for new argument. | |
15197 (fs_free_face_fontset, fontset_font_pattern) | |
15198 (face_suitable_for_char_p, face_for_char) | |
15199 (make_fontset_for_ascii_face): Extern them. | |
15200 (FS_LOAD_FONT): Adjusted for the change of fontset implementation. | |
15201 (FS_LOAD_FACE_FONT): New macro. | |
15202 | |
15203 * fontset.c: All codes rewritten or adjusted for the change of | |
15204 fontset implementation. Now fontset is represented by char table. | |
15205 (Vglobal_fontset_alist, font_idx_temp, my_strcasetbl): | |
15206 Variables removed. | |
15207 (my_strcasecmp): Function removed. | |
15208 (Vfontset_table, next_fontset_id, Vdefault_fontset): New variables. | |
15209 (AREF, ASIZE): New macros. | |
15210 (FONTSET_FROM_ID, FONTSET_ID, FONTSET_NAME, FONTSET_FRAME) | |
15211 (FONTSET_ASCII, FONTSET_BASE, BASE_FONTSET_P, FONTSET_REF) | |
15212 (FONTSET_REF_VIA_BASE, FONTSET_SET): New macros. | |
15213 (fontset_ref, fontset_ref_via_base, fontset_set, make_fontset) | |
15214 (fontset_id_valid_p, font_family_registry, fontset_name) | |
15215 (fontset_ascii, free_face_fontset, face_suitable_for_char_p) | |
15216 (face_for_char, make_fontset_for_ascii_face, fontset_font_pattern): | |
15217 New functions. | |
15218 (fs_load_font): New arg FACE. Caller changed. | |
15219 (fs_query_fontset): Argument changed. Caller changed. | |
15220 (Fquery_fontset): call fs_query_fontset. | |
15221 (fs_register_fontset, alloc_fontset_data, free_fontset_data): | |
15222 Functions removed. | |
15223 (clear_fontset_elements, check_registry_encoding) | |
15224 (check_fontset_name): New functions. | |
15225 (syms_of_fontset): Set char-table-extra-slots property of fontset | |
15226 to 3. Staticpro and initialize Vfontset_table and | |
15227 Vdefault_fontset. Defsubr fontset_font and fontset_list. | |
15228 | |
15229 * frame.h (struct frame): Member `fontset_data' removed. | |
15230 (FRAME_FONTSET_DATA): Macro removed. | |
15231 | |
15232 * frame.c (make_frame): Don't allocate f->fontset_data. | |
15233 (Fdelete_frame): Don't free f->fontset_data. | |
15234 | |
15235 * msdos.c (XMenuActivate): Args to lookup_derived_face changed. | |
15236 | |
15237 * xdisp.c (charset_at_position): Function removed. | |
15238 (init_iterator): Don't set member charset of struct `it'. | |
15239 (handle_face_prop, reseat_to_string, set_iterator_to_next) | |
15240 (next_element_from_display_vector, insert_left_trunc_glyphs): | |
15241 Likewise. | |
15242 (face_before_or_after_it_pos): Call FACE_FOR_CHAR, not | |
15243 FACE_FOR_CHARSET. | |
15244 (get_next_display_element, append_space) | |
15245 (extend_face_to_end_of_line): Likewise. | |
15246 | |
15247 * xfaces.c (Qx_charset_registry, Vface_default_registry): | |
15248 Variables removed. | |
15249 (clear_font_table, frame_update_line_height, load_face_font): | |
15250 Adjusted for the change of fontset implementation. | |
15251 (load_face_fontset_font): Function removed. | |
15252 (pixel_point_size): New function. | |
15253 (font_list): Argument type changed. Caller changed. | |
15254 (LFACE_FONT): New macro. | |
15255 (check_lface_attrs): Check attr[LFACE_FONT_INDEX]. | |
15256 (set_lface_from_font_name): Type of arg FONTNAME is changed to | |
15257 Lisp_Object. Determine the font name by actually loading a font | |
15258 by the specified pattern. Set LFACE_FONT (lface) to the specified | |
15259 pattern. Even if a font is not found, don't try alternatives. | |
15260 (Finternal_set_lisp_face_attribute): Handle `font' slot in lface. | |
15261 (set_font_frame_param): If `font' is specified in lface, use it. | |
15262 (Finternal_get_lisp_face_attribute): Handle `font' slot in lface. | |
15263 (lface_same_font_attributes_p): Likewise. | |
15264 (make_realized_face): Arguent changed. Caller changed. Set | |
15265 face->ascii_face to face itself. | |
15266 (free_realized_face): Free face->fontset if face is for ASCII. | |
15267 (face_suitable_for_iso8859_1_p, face_suitable_for_charset_p) | |
15268 (deduce_unibyte_registry, x_charset_registry): Functions removed. | |
15269 (free_realized_multibyte_face): New function. | |
15270 (lookup_face, lookup_named_face, lookup_derived_face): Argument | |
15271 changed. Caller changed. | |
15272 (try_font_list): Argument type changed. | |
15273 (face_fontset): Check `font' slot of ATTRS, not `family' slot. | |
15274 (choose_face_font): Argument changed. Handle fontset properly. | |
15275 (choose_face_fontset_font): Function removed. | |
15276 (realize_default_face, realize_named_face): Don't remove the | |
15277 former face here. | |
15278 (realize_face): Argument changed. Caller changed. Remove face | |
15279 with the arg former_face_id in advance. Load font for the new face. | |
15280 (realize_x_face): Argument changed. Caller changed. For a | |
15281 multibyte character, share fontset with base_face. For a single | |
15282 byte character, make a new realized fontset. Don't load a font here. | |
15283 (realize_tty_face): Argument changed. Caller changed. | |
15284 (compute_char_face): Call FACE_FOR_CHAR, not FACE_FOR_CHARSET. | |
15285 (face_at_buffer_position): Don't check multibyte_p for returning | |
15286 DEFAULT_FACE_ID. | |
15287 (face_at_string_position): Call FACE_SUITABLE_FOR_CHAR_P, not | |
15288 FACE_SUITABLE_FOR_CHARSET_P. | |
15289 (syms_of_xfaces): Remove code for Qx_charset_registry and | |
15290 Vface_default_registry. | |
15291 | |
15292 * xterm.c: Include fontset.h after dispextern.h. Undo the changes | |
15293 related to PER_CHAR_METRIC done by Gerd on 2000-03-03. | |
15294 (x_per_char_metric): Don't try FONT->default_char. Even if | |
15295 pcm->width is zero, glyph bits may exist. | |
15296 (x_encode_char): Always initialize char2b->byte1. | |
15297 (x_get_char_face_and_encoding): Call FACE_FOR_CHAR to get face_id. | |
15298 (x_get_glyph_face_and_encoding): New arg two_byte_p. Caller changed. | |
15299 (x_append_glyph): Set glyph->glyph_not_available_p. | |
15300 (x_produce_glyphs): Set it->glyph_not_available_p. Don't set | |
15301 it->charset. Handle the case that per char metric is not | |
15302 available. If it->multibyte_p is zero and it->c is a multibyte | |
15303 character, convert it to a unibyte character. | |
15304 (struct glyph_string): Delete member `charset'. | |
15305 (x_set_mouse_face_gc): Call FACE_FOR_CHAR to get face_id. Handle | |
15306 the case that per char metric is not available correctly. | |
15307 (x_fill_glyph_string): Handle the case that the specific glyph is | |
15308 not available correctly. | |
15309 (BUILD_CHAR_GLYPH_STRINGS): Don't set s->charset. | |
15310 (BUILD_COMPOSITE_GLYPH_STRING): Likewise. | |
15311 (x_new_font): Call FS_LOAD_FONT, not fs_load_font. | |
15312 (x_new_fontset): Call fontset_ascii to get ASCII font name of the | |
15313 fontset. Don't call FS_LOAD_FONT. | |
15314 | |
15315 * xfns.c (Fx_create_frame): Don't cal fs_register_fontset. | |
15316 (x_create_tip_frame): Likewise. | |
15317 (Fx_close_connection): Free full_name of font_info. | |
15318 | |
15319 * fns.c (optimize_sub_char_table): New function. | |
15320 (Foptimize_char_table): New function. | |
15321 (syms_of_fns): Defsubr Soptimize_char_table. | |
15322 | |
15323 2000-03-20 Gerd Moellmann <gerd@gnu.org> | |
15324 | |
15325 * buffer.c (Fset_buffer_modified_p): Set update_mode_lines | |
15326 only if buffer is displayed in some window. | |
15327 | |
15328 * xdisp.c (handle_single_display_prop): Initialize local `value'. | |
15329 (try_window_reusing_current_matrix): Don't call scroll run | |
15330 function if run's current and desired position are the same; | |
15331 this prevents cursor flickering. | |
15332 | |
15333 2000-03-19 Stefan Monnier <monnier@cs.yale.edu> | |
15334 | |
15335 * regex.h (RE_TRANSLATE. RE_TRANSLATE_P): Moved to regex.c. | |
15336 | |
15337 * regex.c (RE_STRING_CHAR): New macro. | |
15338 (GET_CHAR_AFER_2): Remove. | |
15339 (RE_TRANSLATE, RE_TRANSLATE_P): New macros moved from regex.h. | |
15340 (enum re_opcode_t): Remove on_failure_jump_exclusive. | |
15341 (print_partial_compiled_pattern, re_compile_fastmap) | |
15342 (re_match_2_internal): Remove on_failure_jump_exclusive. | |
15343 (regex_compile): Turn optimizable P+ loops into PP*, so that the | |
15344 optimization only need to work for * (ie. can use of_keep_string_jump). | |
15345 Remove the special case for .*\n since it is now covered by the general | |
15346 optimization. | |
15347 (re_search_2): Don't bother with `room'. | |
15348 (skip_one_char): New function. | |
15349 (skip_noops): Simplify since `memory' is not needed any more. | |
15350 (mutually_exclusive_p): Restructure slightly to use `switch' and | |
15351 add handling for "all" remaining cases. | |
15352 (re_match_2_internal): Change on_failure_jump_smart to use | |
15353 on_failure_keep_string_jump (and redirect the end-of-loop jump) | |
15354 rather than on_failure_jump_exclusive. | |
15355 | |
15356 2000-03-19 Gerd Moellmann <gerd@gnu.org> | |
15357 | |
15358 * xfns.c (select_visual): Don't set dpyinfo->n_planes to the | |
15359 number of bits per RGB because it's everywhere used as the depth | |
15360 of the visual. | |
15361 | |
15362 * term.c (calculate_costs): Remove code dealing with X frames. | |
15363 | |
15364 2000-03-19 Richard M. Stallman <rms@gnu.org> | |
15365 | |
15366 * lread.c (syms_of_lread): Doc fix for load-convert-to-unibyte. | |
15367 | |
15368 2000-03-18 Gerd Moellmann <gerd@gnu.org> | |
15369 | |
15370 * lread.c (read_integer): Unread the last char not consumed. | |
15371 | |
15372 2000-03-17 Gerd Moellmann <gerd@gnu.org> | |
15373 | |
15374 * xterm.c (x_update_window_cursor): Don't update in frames | |
15375 which are in the process of being deleted. | |
15376 | |
15377 2000-03-16 Gerd Moellmann <gerd@gnu.org> | |
15378 | |
15379 * Makefile.in (mostlyclean): Add `*.core'. | |
15380 (clean): Add `bootstrap-emacs'. | |
15381 | |
15382 * lread.c (read_integer): New function. | |
15383 (read1): Support read syntax #o, #x, #b, #r. | |
15384 | |
15385 2000-03-15 Stefan Monnier <monnier@cs.yale.edu> | |
15386 | |
15387 * regex.c (re_match_2): Fix string shortening (to fit `stop') to | |
15388 make sure POINTER_TO_OFFSET gives the same value before and after | |
15389 PREFETCH. Use `dfail' to guarantee "atomic" matching. | |
15390 (PTR_TO_OFFSET): Use POINTER_TO_OFFSET. | |
15391 (debug): Now only active if > 0 rather than if != 0. | |
15392 (DEBUG_*): Update for the new meaning of `debug'. | |
15393 (print_partial_compiled_pattern): Add missing `succeed' case. Use | |
15394 CHARSET_* macros in the charset(_not) branch. Fix off-by-two bugs | |
15395 in `succeed_n', `jump_n' and `set_number_at'. | |
15396 (store_op1, store_op2, insert_op1, insert_op2) | |
15397 (at_begline_loc_p, at_endline_loc_p): Add prototype. | |
15398 (group_in_compile_stack): Move to after its arg's types are | |
15399 declared and add a prototype. | |
15400 (PATFETCH): Define in terms of PATFETCH_RAW. | |
15401 (GET_UNSIGNED_NUMBER): Add the usual `do { ... } while(0)' wrapper. | |
15402 (QUIT): Redefine as a nop except for NTemacs. | |
15403 (regex_compile): Handle intervals {,M} as if it was {0,M}. Fix | |
15404 indentation of the greedy-op and shy-group code. | |
15405 (at_(beg|end)line_loc_p): Fix argument's types. | |
15406 (re_compile_fastmap): Ifdef out failure_stack_ptr to shut up gcc. | |
15407 (re_search_2): Use POS_AS_IN_BUFFER. Simplify `room' computation. | |
15408 (MATCHING_IN_FIRST_STRING): Remove. | |
15409 (re_match_2): Use POS_AS_IN_BUFFER. Ifdef out failure_stack_ptr | |
15410 to shut up gcc. Use FIRST_STRING_P and POINTER_TO_OFFSET. Use | |
15411 QUIT unconditionally. | |
15412 | |
15413 2000-03-15 Gerd Moellmann <gerd@gnu.org> | |
15414 | |
15415 * minibuf.c (Fminibuffer_complete): Set point to ZV if finding | |
15416 a sole completion. | |
15417 | |
15418 * process.c (send_process): Add a hint that the function | |
15419 can call Lisp code to its comment. | |
15420 | |
15421 * lread.c (load_dangerous_libraries): New variable. | |
15422 (Vbytecomp_version_regexp): New variable. | |
15423 (safe_to_load_p): New function. | |
15424 (Fload): Handle files not compiled with Emacs specially. | |
15425 (syms_of_lread): New Lisp variable load-dangerous-libraries. | |
15426 | |
15427 2000-03-14 Gerd Moellmann <gerd@gnu.org> | |
15428 | |
15429 * lisp.h (free_frame_xic) [HAVE_X_I18N]: Add missing semicolon. | |
15430 | |
15431 * xterm.c (xim_close_dpy, xim_initialize): Use X11R6-style XIM | |
15432 support functions only if HAVE_X11R6_XIM is defined. | |
15433 (xim_instantiate_callback): Define only if HAVE_X11R6_XIM. | |
15434 | |
15435 * s/sol2.h (INHIBIT_X11R6_XIM): Define. | |
15436 | |
15437 * xfns.c (X_I18N_INHIBITED): Don't define. | |
15438 (create_frame_xic): Remove conditional compilation on X_I18N_INHIBITED. | |
15439 (x_kill_gs_process, x_window): Use FRAME_X_VISUAL. | |
15440 | |
15441 * config.in (HAVE_X_I18N): Moved here from xterm.h. | |
15442 (HAVE_X11R6_XIM): Define. | |
15443 | |
15444 * xterm.h (HAVE_X_I18N) [HAVE_X11R6]: Moved to config.in. | |
15445 | |
15446 * xterm.c (x_term_init): Add support for X resource `synchronous'. | |
15447 If set, call XSynchronize. | |
15448 | |
15449 2000-03-13 Stefan Monnier <monnier@cs.yale.edu> | |
15450 | |
15451 * regex.c: Declare a new type `re_char' used throughout the code | |
15452 for the string char type. It's `const unsigned char' to match the | |
15453 rest of Emacs. Consistently make sure all pointers to strings use | |
15454 it and make sure all pointers into the pattern use `unsigned char'. | |
15455 (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of | |
15456 GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce | |
15457 code duplication. | |
15458 | |
15459 * charset.h (GET_CHAR_AFTER_2): Remove. | |
15460 (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else. | |
15461 | |
15462 2000-03-12 Ken Raeburn <raeburn@gnu.org> | |
15463 | |
15464 * Makefile.in (temacs): Evaluate ALL_LDFLAGS into a temporary | |
15465 variable before the invocation of YMF_PASS_LDFLAGS, in case both | |
15466 of them try to use backquotes. | |
15467 | |
15468 2000-03-12 Dave Love <fx@gnu.org> | |
15469 | |
15470 * unexelf.c: Restore changes of 1999-10-19. | |
15471 (unexec): Don't adjust bss for sbss type SHT_PROGBITS; otherwise | |
15472 fix its type and alignment; copy it from current process. | |
15473 | |
15474 2000-03-12 Gerd Moellmann <gerd@gnu.org> | |
15475 | |
15476 * atimer.c (cancel_atimer): Break out of the loop as soon as timer | |
15477 has been found. Fix bug not computing timer's predecessor. | |
15478 | |
15479 * fileio.c (Fread_file_name): Handle case that DIR contains a | |
15480 file name. | |
15481 | |
15482 * window.c (Fsave_window_excursion): Doc fix. | |
15483 | |
15484 * xfns.c (x_defined_color): Rewritten to use x_allocate_nearest_color. | |
15485 | |
15486 2000-03-12 Eli Zaretskii <eliz@is.elta.co.il> | |
15487 | |
15488 * msdos.c (vga_installed): New function, code moved from | |
15489 dos_set_window_size. | |
15490 (Qbar, Qcursor_type, outside_cursor): New variables. | |
15491 (syms_of_msdos): Intern and staticpro them. | |
15492 (dos_ttraw) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Save the cursor | |
15493 shape used outside Emacs when called for the first time. | |
15494 (dos_ttcooked) [__DJGPP__ >= 2, !HAVE_X_WINDOWS]: Restore the | |
15495 cursor shape used outside Emacs. | |
15496 (msdos_set_cursor_shape, IT_set_cursor_type): New functions. | |
15497 (IT_frame_up_to_date): Call IT_set_cursor_type, in case the cursor | |
15498 type has changed. | |
15499 (IT_set_frame_parameters): Call IT_set_cursor_type if the frame | |
15500 parameters specify the cursor. Make qreverse a global | |
15501 variable (renamed to Qreverse). | |
15502 | |
15503 2000-03-09 Gerd Moellmann <gerd@gnu.org> | |
15504 | |
15505 * fns.c (Fy_or_n_p): Cancel busy-cursor. | |
15506 | |
15507 2000-03-08 Stefan Monnier <monnier@cs.yale.edu> | |
15508 | |
15509 This is a big redesign of failure-stack and register handling, prompted | |
15510 by bugs revealed when trying to add shy-groups. Overall, what happened | |
15511 is that loops are now structured a little differently, groups can be | |
15512 shy and the code is a little simpler. | |
15513 | |
15514 * regex.h: Update the copyright. | |
15515 (RE_SHY_GROUPS): New value. | |
15516 (RE_UNMATCHED_RIGHT_PAREN_ORD): Renumber. | |
15517 (RE_SYNTAX_EMACS): Add RE_SHY_GROUPS. | |
15518 | |
15519 * regex.c (enum re_opcode_t): Remove jump_past_alt, | |
15520 maybe_pop_jump, push_dummy_failure and dumy_failure_jump. Add | |
15521 on_failure_jump_(exclusive, loop and smart). Also fix the comment | |
15522 for (start|stop)_memory since they now only take one argument (the | |
15523 second has becomes unnecessary). | |
15524 (print_partial_compiled_pattern): Adjust for changes in re_opcode_t. | |
15525 (print_compiled_pattern): Use %ld to printf long ints and flush to | |
15526 make debugging a little easier. | |
15527 (union fail_stack_elt): Make the integer unsigned. | |
15528 (struct fail_stack_type): Add a `frame' element. | |
15529 (INIT_FAIL_STACK): Init `frame' as well. | |
15530 (POP_PATTERN_OP): New macro for re_compile_fastmap. | |
15531 (DEBUG_PUSH, DEBUG_POP): Remove. | |
15532 (NUM_REG_ITEMS): Remove. | |
15533 (NUM_NONREG_ITEMS): Adjust. | |
15534 (FAILURE_PAT, FAILURE_STR, NEXT_FAILURE_HANDLE) | |
15535 (TOP_FAILURE_HANDLE): New macros for the cycle detection. | |
15536 (ENSURE_FAIL_STACK): New macro for PUSH_FAILURE_(REG|POINT). | |
15537 (PUSH_FAILURE_REG, POP_FAILURE_REG, CHECK_INFINITE_LOOP): | |
15538 New macros. | |
15539 (PUSH_FAILURE_POINT): Don't push registers any more. The pattern | |
15540 address pushed is not the destination of the jump but the source | |
15541 of it instead. | |
15542 (NUM_FAILURE_ITEMS): Remove. | |
15543 (POP_FAILURE_POINT): Adapt to the new stack structure (i.e. pop | |
15544 registers before the actual failure point). Don't hardcode any | |
15545 meaning for str==NULL anymore. | |
15546 (union register_info_type, REG_MATCH_NULL_STRING_P, IS_ACTIVE) | |
15547 (MATCHED_SOMETHING, EVER_MATCHED_SOMETHING, SET_REGS_MATCHED): | |
15548 Remove. | |
15549 (REG_UNSET_VALUE): Use NULL (why not?). | |
15550 (compile_range): Remove declaration since it doesn't exist. | |
15551 (struct compile_stack_elt_t): Remove inner_group_offset. | |
15552 (old_reg(start|end), reg_info, reg_dummy, reg_info_dummy): Remove. | |
15553 (regex_grow_registers): Remove dead code. | |
15554 (FIXUP_ALT_JUMP): New macro. | |
15555 (regex_compile): Add shy-groups Change loops to use | |
15556 on_failure_jump_smart&jump instead of | |
15557 on_failure_jump&maybe_pop_jump. Change + loops to eliminate the | |
15558 initial (dummy_failure_)jump. Remove c1_base (looks like unused | |
15559 variable to me). Use `jump' instead of `jump_past_alt' and don't | |
15560 bother with push_dummy_failure in alternatives since it is now | |
15561 unnecessary. Use FIXUP_ALT_JUMP. Eliminate a useless `#ifdef | |
15562 emacs' for (re)allocating the stack. | |
15563 (re_compile_fastmap): Remove dead variables i and num_regs. Exit | |
15564 from loop when bufp->can_be_null rather than jumping to `done'. | |
15565 Avoid jumping backwards so as to ensure termination. Use | |
15566 PATTERN_STACK_EMPTY and POP_PATTERN_OP. Improved handling of | |
15567 backreferences. Remove dead code in handling of `anychar'. | |
15568 (skip_noops, mutually_exclusive_p): New functions taken from the | |
15569 handling of `maybe_pop_jump' in re_match_2_internal. Slightly | |
15570 improve mutually_exclusive_p to handle ".+\n". | |
15571 (lowest_active_reg, highest_active_reg) | |
15572 (NO_(LOWEST|HIGHEST)_ACTIVE_REG) Remove. | |
15573 (re_match_2_internal): Use %p instead of 0x%x when printf'ing | |
15574 ptrs. Don't SET_REGS_MATCHED anymore. Remove many dead | |
15575 variables. Push register (in `start_memory') on the stack rather | |
15576 than storing it in old_reg(start|end). Remove the cycle detection | |
15577 from `stop_memory', replaced by the use of on_failure_jump_loop | |
15578 for greedy loops. Add code for the new on_failure_jump_<foo>. | |
15579 Remove ad-hoc code in `on_failure_jump' to push more registers in | |
15580 the case of a loop. Take out code from `maybe_pop_jump' into | |
15581 separate functions and adapt it to the semantics of | |
15582 `on_failure_jump_smart'. Remove jump_past_alt, dummy_failure_jump | |
15583 and push_dummy_failure. Remove dummy_failure handling and | |
15584 handling of `failures to jump to on_failure_jump' (this last one | |
15585 was already dead code, it seems). | |
15586 (group_match_null_string_p, alt_match_null_string_p) | |
15587 (common_op_match_null_string_p): Remove. | |
15588 | |
15589 2000-03-08 Dave Love <fx@gnu.org> | |
15590 | |
15591 * config.in: Don't depend on __STDC__ for volatile. | |
15592 Add POINTER_TYPE, PTR, PROTOTYPES. | |
15593 | |
15594 * hftctl.c, strftime.c: Use PROTOTYPES. | |
15595 * eval.c (find_handler_clause): Likewise. | |
15596 | |
15597 * mem-limits.h: Use POINTER_TYPE. | |
15598 | |
15599 * lisp.h (P_): Define based on PROTOTYPES, not __STDC__. | |
15600 (memory_warnings): Declare using POINTER_TYPE. | |
15601 | |
15602 2000-03-08 Gerd Moellmann <gerd@gnu.org> | |
15603 | |
15604 * xfns.c (x_set_cursor_type): If ARG is nil, give frame no cursor. | |
15605 | |
15606 * xdisp.c (display_echo_area): Temporarily inhibit garbage collection. | |
15607 | |
15608 * xfns.c: Remove obsolete code in #if 0. | |
15609 (Fx_focus_frame): New function. | |
15610 | |
15611 2000-03-07 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp> | |
15612 | |
15613 * coding.c (coding_category_name): Add coding-category-utf-8, | |
15614 coding-category-utf-16-be, coding-category-utf-16-le. | |
15615 (UTF_8_1_OCTET_P, UTF_8_EXTRA_OCTET_P, UTF_8_2_OCTET_LEADING_P, | |
15616 UTF_8_3_OCTET_LEADING_P, UTF_8_4_OCTET_LEADING_P, | |
15617 UTF_8_5_OCTET_LEADING_P, UTF_8_6_OCTET_LEADING_P): New macros. | |
15618 (detect_coding_utf_8): New function. | |
15619 (UTF_16_INVALID_P, UTF_16_HIGH_SURROGATE_P | |
15620 UTF_16_LOW_SURROGATE_P): New macros. | |
15621 (detect_coding_utf_16): New function | |
15622 (detect_coding_mask): When priorities are specified, skip any | |
15623 categories that have `nil' coding-system. Fix bug of returning | |
15624 wrong mask when PRIORITIES is specified and detect_coding_XXX() | |
15625 returns a mask not set in PRIORITIES. | |
15626 (detect_eol_type_in_2_octet_form): New function. | |
15627 (detect_eol): selects detect_eol_type_XXX to call according to | |
15628 cooding->category_idx. | |
15629 (detect_coding_system): Remove `nil' coding-system in the result. | |
15630 (Fupdate_coding_systems_internal): Update all coding-categories. | |
15631 | |
15632 * coding.h (CODING_CATEGORY_IDX_UTF_8) | |
15633 (CODING_CATEGORY_IDX_UTF_16_BE, CODING_CATEGORY_IDX_UTF_16_LE): | |
15634 New macros. | |
15635 (CODING_CATEGORY_IDX_RAW_TEXT, CODING_CATEGORY_IDX_BINARY) | |
15636 (CODING_CATEGORY_IDX_MAX): Adjusted for the above macros. | |
15637 (CODING_CATEGORY_IDX_UTF_16_LE) | |
15638 (CODING_CATEGORY_MASK_UTF_8, CODING_CATEGORY_MASK_UTF_16_BE) | |
15639 (CODING_CATEGORY_MASK_UTF_16_LE): New macros. | |
15640 (CODING_CATEGORY_MASK_ANY): Include the above macros. | |
15641 (CODING_CATEGORY_MASK_UTF_16_BE_LE): New macro. | |
15642 | |
15643 2000-03-07 Gerd Moellmann <gerd@gnu.org> | |
15644 | |
15645 * doc.c (Fdocumentation_property): If value is not a string, | |
15646 and doesn't refer to etc/DOC, evaluate it to obtain a string. | |
15647 | |
15648 * xterm.c (x_connection_closed) [USE_X_TOOLKIT]: Don't try to | |
15649 close the display with XtCloseDisplay. This caused a bus error | |
15650 on OpenWindows. | |
15651 | |
15652 * minibuf.c (Fminibuffer_complete): Move point to ZV when input is | |
15653 complete but not unique. | |
15654 | |
15655 2000-03-06 Gerd Moellmann <gerd@gnu.org> | |
15656 | |
15657 * process.c (send_process): Remove local variable `procname' that | |
15658 might become invalid when a GC happens. Instead, access the | |
15659 process name slot directly. | |
15660 | |
15661 * xfns.c (x_set_menu_bar_lines_1): Adjust window's orig_top and | |
15662 orig_height if set. | |
15663 | |
15664 * frame.c (set_menu_bar_lines_1): Adjust window's orig_top and | |
15665 orig_height if set. | |
15666 | |
15667 2000-03-06 Eli Zaretskii <eliz@is.elta.co.il> | |
15668 | |
15669 * msdos.c (IT_note_mouse_highlight): Return immediately if frame's | |
15670 glyph matrices have been freed. | |
15671 | |
15672 2000-03-05 Gerd Moellmann <gerd@gnu.org> | |
15673 | |
15674 * Makefile.in (tags): Include ../lwlib/TAGS in TAGS. | |
15675 (bootstrap-temacs): Set LC_ALL to C like for temacs. | |
15676 | |
15677 * xfns.c (QCdata): Moved to xdisp.c. | |
15678 | |
15679 * xdisp.c (QCdata): Moved here from xfns.c. | |
15680 (syms_of_xdisp): Initialize QCdata. | |
15681 | |
15682 * frame.h (FRAME_INTERNAL_BORDER_WIDTH) [!HAVE_X_WINDOWS]: Define. | |
15683 | |
15684 * window.c (coordinates_in_window): Use | |
15685 FRAME_INTERNAL_BORDER_WIDTH_SAFE instead of | |
15686 FRAME_INTERNAL_BORDER_WIDTH. | |
15687 | |
15688 * xdisp.c (try_window_id): Recompute unchanged information if | |
15689 it is obviously invalid. | |
15690 | |
15691 * xterm.c (x_term_init): Create a colormap if not using the | |
15692 default visual. | |
15693 | |
15694 * xterm.h (select_visual): Change prototype. | |
15695 | |
15696 * xfns.c (select_visual): Rewritten. Recognize user-specified | |
15697 visual classes. | |
15698 (visual_classes): New variable. | |
15699 | |
15700 2000-03-04 Gerd Moellmann <gerd@gnu.org> | |
15701 | |
15702 * xfns.c (x_defined_color, x_set_mouse_color, lookup_rgb_color) | |
15703 (lookup_pixel_color, x_laplace, x_build_heuristic_mask) | |
15704 (png_load): Access colormap of frame using FRAME_X_COLORMAP. | |
15705 (x_decode_color): Don't handle allocation of white and black specially. | |
15706 (x_window) [USE_X_TOOLKIT]: Set XtNvisual, XtNdepth, and | |
15707 XtNcolormap resources. | |
15708 (x_window) [!USE_X_TOOLKIT]: Pass colormap to XCreateWindow. | |
15709 (Fx_create_frame): Initialize color members of x_output structure. | |
15710 (xpm_load): Pass colormap to XPM lib. | |
15711 | |
15712 * xfaces.c (x_free_colors): Access colormap of frame using | |
15713 FRAME_X_COLORMAP. Be paranoid about freeing black and white | |
15714 when default colormap is used. | |
15715 | |
15716 * xterm.c (x_term_init): Set Colormap member of x_display_info | |
15717 structure. Copy colormap if resource `privateColormap' is | |
15718 specified (PseudoColor only). | |
15719 (x_setup_relief_color): Access colormap of frame using | |
15720 FRAME_X_COLORMAP. | |
15721 | |
15722 * xterm.h (struct x_display_info): Add Colormap member `cmap'. | |
15723 (FRAME_X_COLORMAP, FRAME_X_VISUAL): New macros. | |
15724 | |
15725 2000-03-04 Jason Rumney <jasonr@gnu.org> | |
15726 | |
15727 * xfaces.c Change many FRAME_X... macros to FRAME_WINDOW... or | |
15728 other non-platform-specific equivalents. | |
15729 [WINDOWSNT]: Include w32term.h, fontset.h and define X | |
15730 specific functions and macros as their w32 equivalents where | |
15731 non-platform-specifics are not available. | |
15732 [HAVE_X_WINDOWS]: Change most of these to HAVE_WINDOW_SYSTEM. | |
15733 (x_create_gc, x_free_gc) [WINDOWSNT]: Add W32 versions. | |
15734 (clear_font_table) [WINDOWSNT]: Call w32_unload_font. | |
15735 (frame_update_line_height): Use macros to access f->output_data. | |
15736 (defined_color): Remove FIXME comments; fixed. | |
15737 (x_face_list_fonts, prepare_face_for_display): Put X specifics | |
15738 into #ifdef blocks. Add WINDOWSNT blocks. | |
15739 (Fx_list_fonts): Use macros for accessing font data. | |
15740 (set_lface_from_font_name): Different default fonts for X and | |
15741 WINDOWSNT. | |
15742 (font_scalable_p) [WINDOWSNT]: Treat wildcard XLFD_AVGWIDTH as | |
15743 scalable for backward compatibility. | |
15744 (realize_tty_face) [MSDOS]: Do the same for WINDOWSNT. | |
15745 (syms_of_xfaces) [WINDOWSNT]: Allow scalable fonts by default. | |
15746 | |
15747 * emacs.c (main) [HAVE_NTGUI]: Call syms_of_xfaces instead of | |
15748 syms_of_w32faces. | |
15749 | |
15750 * makefile.nt (w32faces.obj): Remove. | |
15751 (xfaces.obj): Add. | |
15752 | |
15753 2000-03-03 Jason Rumney <jasonr@gnu.org> | |
15754 | |
15755 * keyboard.c (make_lispy_event): Call buffer_posn_from_coords with | |
15756 correct parameters. | |
15757 | |
15758 2000-03-03 Ken Raeburn <raeburn@gnu.org> | |
15759 | |
15760 * unexelf.c (PT_LOAD, SHT_*, SHN_*) [__NetBSD__]: Only provide | |
15761 standard ELF definitions here if the system header does not. | |
15762 | |
15763 2000-03-03 Gerd Moellmann <gerd@gnu.org> | |
15764 | |
15765 * xterm.c (PER_CHAR_METRIC): Removed. | |
15766 (x_per_char_metric_1, x_default_char): New functions. | |
15767 (x_per_char_metric): If font's default char is invalid, return | |
15768 metrics of a suitably chosen usable default char. | |
15769 (x_draw_glyph_string_foreground): If font has an invalid default | |
15770 char, replace occurrences of unprintable chars with a suitably | |
15771 chosen usable default char. | |
15772 | |
15773 2000-03-02 Gerd Moellmann <gerd@gnu.org> | |
15774 | |
15775 * xterm.c (note_mouse_highlight): Return quickly if frame's | |
15776 glyph matrices have been freed. | |
15777 | |
15778 * dispnew.c (free_glyphs): Block input while freeing matrices. | |
15779 | |
15780 * xfns.c (x_clear_image, x_kill_gs_process): Use x_free_colors. | |
15781 | |
15782 * xterm.c (x_alloc_lighter_color, x_setup_relief_color): | |
15783 Use x_free_colors. | |
15784 | |
15785 * dispextern.h (x_free_colors): Add prototype. | |
15786 | |
15787 * xfaces.c (x_free_colors): New function. | |
15788 (unload_color, free_face_colors): Use it. | |
15789 | |
15790 2000-03-02 Eli Zaretskii <eliz@is.elta.co.il> | |
15791 | |
15792 * msdos.h (FRAME_INTERNAL_BORDER_WIDTH): Define to zero. | |
15793 | |
15794 * window.c [MSDOS]: Include msdos.h. | |
15795 | |
15796 2000-03-02 Dave Love <fx@gnu.org> | |
15797 | |
15798 * m/powerpcle.h, m/sparc.h: Don't set C_OPTIMIZE_SWITCH. | |
15799 | |
15800 * m/mips-siemens.h, m/news-r6.h, m/news-risc.h, m/tekxd88.h: Don't | |
15801 set C_OPTIMIZE_SWITCH for gcc. | |
15802 | |
15803 2000-03-02 Kenichi Handa <handa@etl.go.jp> | |
15804 | |
15805 * coding.c (coding_save_composition): Be sure to allocate | |
15806 composition data area in coding even if there's no composition in | |
15807 the current run. | |
15808 | |
15809 2000-03-01 Jason Rumney <jasonr@gnu.org> | |
15810 | |
15811 * w32term.c: Equivalent changes to those made to xterm.c on | |
15812 2000-02-25 and 2000-02-24. | |
15813 | |
15814 * w32fns.c: Equivalent changes to those made to xfns.c on | |
15815 2000-02-25 and 2000-02-21. | |
15816 | |
15817 * sysdep.c: [WINDOWSNT]: Use sys_read and sys_write to ensure | |
15818 correct line-end convention is followed. | |
15819 | |
15820 * w32menu.c [HAVE_BOXES]: Remove #undef. | |
15821 (single_keymap_panes): Remove code for simulating checkmarks. | |
15822 (single_menu_item): Remove notbuttons_ptr argument. Callers changed. | |
15823 Remove code for drawing simulated checkmarks. | |
15824 (w32_menu_show): make unibyte help string correctly. | |
15825 (add_menu_item): draw standard Windows checkmarks. Draw radio | |
15826 buttons as radio buttons if possible. | |
15827 | |
15828 2000-03-01 Gerd Moellmann <gerd@gnu.org> | |
15829 | |
15830 * sysdep.c (start_of_text): Don't define this function for NetBSD | |
15831 with ELF. | |
15832 | |
15833 * m/pmax.h (START_FILES, CANNOT_DUMP) [__NetBSD__ || __OpenBSD__]: | |
15834 Don't define. | |
15835 (UNEXEC) [__NetBSD__ || __OpenBSD__]: Define to unexelf.o. | |
15836 (LINKER): Don't undef if __NetBSD__ is defined. | |
15837 | |
15838 * m/mips.h (LINKER) [__NetBSD__ || __OpenBSD__]: Don't define. | |
15839 | |
15840 * fileio.c [__NetBSD__]: Define `unix'. | |
15841 | |
15842 * xfns.c (start_busy_cursor): Allow floats for busy-cursor-delay. | |
15843 | |
15844 2000-02-29 Gerd Moellmann <gerd@gnu.org> | |
15845 | |
15846 * atimer.c (start_atimer): Don't abort when timers are stopped. | |
15847 (append_atimer_lists): New function. | |
15848 (cancel_atimer, stop_other_atimers, run_all_atimers): Handle | |
15849 arbitrary lists of stopped and running atimers. | |
15850 | |
15851 * atimer.c (cancel_atimer): Handle canceling an atimer when | |
15852 some timers are stopped. | |
15853 | |
15854 * xfns.c (cancel_busy_cursor): Set busy_cursor_atimer to null | |
15855 after canceling it. | |
15856 | |
15857 * fns.c (maybe_resize_hash_table): Handle case of new size | |
15858 coming out as being the same as old size. | |
15859 | |
15860 2000-02-27 Jason Rumney <jasonr@gnu.org> | |
15861 | |
15862 * makefile.nt: Add atimer.h to dependencies. | |
15863 * w32.c (init_environment): Set Vw32_num_mouse_buttons here. | |
15864 * w32console.c: Only disable window system features for dispextern.h | |
15865 (initialize_w32_display): Build a display info for the console. | |
15866 * w32faces.c (tty_defined_color): Apply xfaces.c change from 02-17. | |
15867 * w32fns.c (w32_wnd_proc) [WM_LBUTTON_DOWN, WM_RBUTTON_DOWN, | |
15868 WM_LBUTTON_UP, WM_RBUTTON_UP]: Do not treat 4 or more button mice | |
15869 as 2 button mice. | |
15870 * w32gui.h (struct W32FontStruct): Revert last change after change | |
15871 to xdisp.c. | |
15872 * w32menu.c (single_submenu): Set up help string. | |
15873 [!HAVE_MULTILINGUAL_MENU]: Don't overwrite item_name with descrip. | |
15874 (w32_dialog_show): Set up help string. | |
15875 * w32term.c (w32_display_info_for_display): Remove unused function. | |
15876 (w32_draw_bitmap): Use pre-built bitmaps. | |
15877 (w32_initialize_display_info): New function to initialize parts of | |
15878 display info that are common to both GUI and console frames. | |
15879 (w32_term_init): Use w32_initialize_display_info. Do not set | |
15880 Vw32_num_mouse_buttons here, as it is not called for console | |
15881 frames. Build bitmaps for indicating truncated lines etc. | |
15882 (x_delete_display): Destroy pre-built bitmaps. | |
15883 * xdisp.c (handle_single_display_prop): Use FONT_HEIGHT macro. | |
15884 (echo_area_display): Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM. | |
15885 | |
15886 2000-02-27 Dave Love <fx@gnu.org> | |
15887 | |
15888 * lisp.h: Add a bunch of prototypes. | |
15889 | |
15890 2000-02-26 Kenichi Handa <handa@etl.go.jp> | |
15891 | |
15892 * keyboard.c (read_char): Set `usec' correctly. | |
15893 | |
15894 2000-02-25 Miyashita Hisashi <himi@bird.scphys.kyoto-u.ac.jp> | |
15895 | |
15896 * ccl.c (ccl_driver) [CCL_MapMultiple]: When the mapped value is | |
15897 `lambda', set reg[RRR] to the map index. | |
15898 (ccl_driver) [CCL_MapSingle]: When the mapped value is found, set | |
15899 reg[RRR] to 0. Otherwise, set it to -1. | |
15900 | |
15901 2000-02-25 Gerd Moellmann <gerd@gnu.org> | |
15902 | |
15903 * emacs.c (main): Remove code snippet commented out with `//'. | |
15904 | |
15905 2000-02-25 Richard M. Stallman <rms@gnu.org> | |
15906 | |
15907 * fileio.c (Ffile_symlink_p): If result starts with a `/' | |
15908 and contains a `:', prepend `/:'. | |
15909 | |
15910 * window.c (select_window_1): If selected_window is nil, | |
15911 don't "swap out" the buffer's point. | |
15912 (Fset_window_configuration): Set selected_window to nil | |
15913 before calling Fselect_window. | |
15914 (unshow_buffer): Don't set point in buffer from window's point | |
15915 if another more recently selected window also shows the buffer. | |
15916 | |
15917 2000-02-25 Gerd Moellmann <gerd@gnu.org> | |
15918 | |
15919 * keyboard.c (recursive_edit_1): Cancel busy-cursor. | |
15920 | |
15921 * xfns.c (inhibit_busy_cursor, busy_count): Removed. | |
15922 (Fx_show_busy_cursor, Fx_hide_busy_cursor): Removed. | |
15923 (busy_cursor_atimer, busy_cursor_shown_p, Vbusy_cursor_delay): | |
15924 New variables. | |
15925 (DEFAULT_BUSY_CURSOR_DELAY): New define. | |
15926 (start_busy_cursor, cancel_busy_cursor, show_busy_cursor) | |
15927 (hide_busy_cursor): New functions. | |
15928 (syms_of_xfns): DEFVAR_LISP Vbusy_cursor_delay. | |
15929 | |
15930 * minibuf.c (read_minibuf): Cancel busy-cursor. | |
15931 | |
15932 * keyboard.c (command_loop_1): Call start_busy_cursor before | |
15933 Fcommand_execute and cancel_busy_cursor after it. | |
15934 (timer_check): Remove busy-cursor code. | |
15935 (Fread_key_sequence, Fread_key_sequence_vector): Start/cancel busy | |
15936 cursor timer. | |
15937 | |
15938 * process.c (wait_reading_process_input): Remove busy-cursor code. | |
15939 | |
15940 * eval.c (Fsignal): Call cancel_busy_cursor instead of | |
15941 Fx_hide_busy_cursor. | |
15942 | |
15943 * dispextern.h (Fx_show_busy_cursor, Fx_hide_busy_cursor): | |
15944 Remove prototyoes. | |
15945 (start_busy_cursor, cancel_busy_cursor): Add prototypes. | |
15946 | |
15947 * lisp.h (Fx_hide_busy_cursor): Remove prototype. | |
15948 | |
15949 * xterm.c (XTread_socket): Remove busy-cursor code. | |
15950 | |
15951 * dispnew.c (flush_stdout) [GLYPH_DEBUG]: New function. | |
15952 (build_frame_matrix_from_leaf_window): Put code handling | |
15953 glyph row's not being a slice of a frame row in #if 0. | |
15954 (sync_window_with_frame_matrix_rows): New function. | |
15955 (frame_row_to_window): New function. | |
15956 (mirror_line_dance): Handle copies between windows. | |
15957 | |
15958 * lread.c (Fload): Use `xfree' instead of `free'. | |
15959 (init_obarray): Use `xmalloc' instead of `malloc'. | |
15960 | |
15961 * window.c (Fset_window_buffer): Set WINDOW to the window | |
15962 after decoding. | |
15963 (coordinates_in_window): Take frame's internal border width | |
15964 into account. | |
15965 | |
15966 2000-02-24 Gerd Moellmann <gerd@gnu.org> | |
15967 | |
15968 * xterm.c (x_display_and_set_cursor): Display cursor of | |
15969 non-selected windows depending on the setting of | |
15970 cursor_in_non_selected_windows. | |
15971 | |
15972 * xdisp.c (cursor_in_non_selected_windows): New variable. | |
15973 (syms_of_xdisp): DEFVAR_BOOL it. | |
15974 | |
15975 2000-02-23 Gerd Moellmann <gerd@gnu.org> | |
15976 | |
15977 * data.c (Fstring_to_number): If number is greater than what | |
15978 fits into an integer, return a float. | |
15979 | |
15980 * eval.c (specbind): Remove references to | |
15981 keyword_symbols_constant_flag. | |
15982 | |
15983 * data.c (keyword_symbols_constant_flag): Removed. | |
15984 (Fmakunbound, set_internal, syms_of_data): Remove references to | |
15985 keyword_symbols_constant_flag. | |
15986 | |
15987 * bytecode.c (Fbyte_code): Remove keyword_symbols_constant_flag. | |
15988 | |
15989 2000-02-23 Kenichi Handa <handa@etl.go.jp> | |
15990 | |
15991 * syntax.c (multibyte_syntax_as_symbol): New variable. | |
15992 (syms_of_syntax): Declare it as a Lisp variable. | |
15993 (SYNTAX_WITH_MULTIBYTE_CHECK): New macro. | |
15994 (scan_lists): If both sexpflag and multibyte_syntax_as_symbol are | |
15995 nonzero, treat all multibyte characters as symbol. | |
15996 (init_syntax_once): Give syntax `word' to all multibyte characters. | |
15997 | |
15998 2000-02-22 Eli Zaretskii <eliz@is.elta.co.il> | |
15999 | |
16000 * frame.c (Fdelete_frame): Don't let echo_area_window remain on | |
16001 a deleted frame. | |
16002 | |
16003 2000-02-21 Gerd Moellmann <gerd@gnu.org> | |
16004 | |
16005 * frame.c (Fmouse_position): GCPRO retval instead of x and y. | |
16006 | |
16007 * xfns.c (x_window_to_frame, x_any_window_to_frame) | |
16008 (x_non_menubar_window_to_frame): Check the busy-cursor window. | |
16009 | |
16010 2000-02-21 Dave Love <fx@gnu.org> | |
16011 | |
16012 * frame.c (Vmouse_position_function): New variable. | |
16013 (Fmouse_position): Use it. | |
16014 (syms_of_frame): Install it. | |
16015 | |
16016 * charset.c (find_charset_in_str): Fix use of `c' instead of `c1'. | |
16017 | |
16018 2000-02-20 Gerd Moellmann <gerd@gnu.org> | |
16019 | |
16020 * fileio.c (Finsert_file_contents): Unbind the binding of | |
16021 standard-output done by temp_output_buffer_setup. | |
16022 | |
16023 * eval.c (funcall_lambda): Don't bind Qmocklisp_arguments unless | |
16024 Vmocklisp_arguments is nil. Inline Fcar and Fcdr. | |
16025 (specbind, unbind_to): Handle most common case of non-constant | |
16026 symbol with trivial value specially. | |
16027 | |
16028 * bytecode.c (Fbyte_code) <Bvarset>: Inline most common case. | |
16029 | |
16030 2000-02-20 Richard M. Stallman <rms@gnu.org> | |
16031 | |
16032 * data.c (Fmake_variable_buffer_local): Doc fix. | |
16033 Init found_for_buffer to 0. | |
16034 (Fmake_variable_frame_local): If the variable has already | |
16035 been buffer-local, set the check_frame field. | |
16036 | |
16037 2000-02-20 Eli Zaretskii <eliz@is.elta.co.il> | |
16038 | |
16039 * msdos.c (IT_write_glyphs): Allocate a larger screen_buf as data | |
16040 produced for CODING_MODE_LAST_BLOCK requires. | |
16041 | |
16042 2000-02-18 Dave Love <fx@gnu.org> | |
16043 | |
16044 * keyboard.c (echo_keystrokes): Remove declaration. | |
16045 (Vecho_keystrokes) New variable. | |
16046 (read_char, record_menu_key, read_key_sequence): Use it to allow | |
16047 use of float value. | |
16048 (syms_of_keyboard): Change Vecho_keystrokes declaration. | |
16049 | |
16050 * lread.c: Undef feature selection macros before defining. | |
16051 | |
16052 2000-02-18 Gerd Moellmann <gerd@gnu.org> | |
16053 | |
16054 * data.c (let_shadows_buffer_binding_p): Ignore specbindings | |
16055 for symbols other than the symbol in question. | |
16056 | |
16057 2000-02-17 Dave Love <fx@gnu.org> | |
16058 | |
16059 * s/sol2.h (C_DEBUG_SWITCH): Define to allow optimization. | |
16060 | |
16061 2000-02-17 Gerd Moellmann <gerd@gnu.org> | |
16062 | |
16063 * emacs.c (main): Use #if GC_MARK_STACK instead of #ifdef. | |
16064 | |
16065 * alloc.c (enum mem_type): Compile unconditionally. | |
16066 | |
16067 2000-02-17 Eli Zaretskii <eliz@is.elta.co.il> | |
16068 | |
16069 * xfaces.c (tty_defined_color): Don't return faulire indication | |
16070 for unspecified-fg and unspecified-bg pseudo-colors. | |
16071 | |
16072 2000-02-17 Gerd Moellmann <gerd@gnu.org> | |
16073 | |
16074 * alloc.c (mark_object): Don't mark symbol names in pure space. | |
16075 (gc_sweep): Don't unmark symbol names in pure space. | |
16076 | |
16077 * lisp.h (GC_USE_GCPROS_AS_BEFORE, GC_MAKE_GCPROS_NOOPS) | |
16078 (GC_MARK_STACK_CHECK_GCPROS, GC_USE_GCPROS_CHECK_ZOMBIES) | |
16079 [GC_MARK_STACK]: New defines. | |
16080 (GCPRO1, GCPRO2, GCPRO3, GCPRO4, GCPRO5, UNGCPRO) | |
16081 [GC_MARK_STACK == GC_MAKE_GCPROS_NOOPS]: Define as no-ops. | |
16082 | |
16083 * emacs.c (main) [GC_MARK_STACK]: Initialize stack_base. | |
16084 | |
16085 * buffer.c (Fget_buffer_create, Fmake_indirect_buffer): Use | |
16086 allocate_buffer instead of xmalloc. | |
16087 | |
16088 * alloc.c (toplevel): Include setjmp.h. | |
16089 (PURE_POINTER_P): New define. | |
16090 (enum mem_type) [GC_MARK_STACK]: New enumeration. | |
16091 (Vdead) [GC_MARK_STACK]: New variable. | |
16092 (lisp_malloc): Add parameter TYPE, call mem_insert if | |
16093 GC_MARK_STACK is defined. | |
16094 (allocate_buffer): New function. | |
16095 (lisp_free) [GC_MARK_STACK]: Call mem_delete. | |
16096 (free_float) [GC_MARK_STACK]: Set type to Vdead. | |
16097 (free_cons) [GC_MARK_STACK]: Set car to Vdead. | |
16098 (stack_base, mem_root, mem_z) [GC_MARK_STACK]: New variables. | |
16099 (MEM_NIL) [GC_MARK_STACK]: New define. | |
16100 (struct mem_node) [GC_MARK_STACK]: New structure. | |
16101 (mem_init, mem_find, mem_insert, mem_delete, mem_insert_fixup) | |
16102 (mem_delete_fixup, mem_rotate_left, mem_rotate_right) | |
16103 (live_string_p, live_cons_p, live_symbol_p, live_float_p) | |
16104 (live_misc_p, live_vector_p, live_buffer_p, mark_memory) | |
16105 (mark_stack) [GC_MARK_STACK]: New functions. | |
16106 (Fgarbage_collect) [GC_MARK_STACK]: Call mark_stack. | |
16107 (clear_marks): Removed. | |
16108 (gc_sweep): Set free conses' car, free floats' type, free | |
16109 symbols' function to Vdead. Use lisp_free to free buffers. | |
16110 (init_alloc_once): Initialize Vdead. | |
16111 (survives_gc_p): Return non-zero for pure objects. | |
16112 | |
16113 * alloc.c: Add comments throughout the file. | |
16114 | |
16115 * atimer.c (stop_other_atimers): Don't call cancel_atimer because | |
16116 that unblocks alarms. | |
16117 | |
16118 * alloc.c, bytecode.c, data.c, dispnew.c, ecrt0.c, editfns.c, | |
16119 emacs.c, floatfns.c, fns.c, lread.c, print.c, config.in, lisp.h, | |
16120 Makefile.in: Remove `LISP_FLOAT_TYPE' and `standalone'. | |
16121 | |
16122 * frame.c (make_frame): Set frame initiallly to `garbaged'. | |
16123 | |
16124 2000-02-17 Kenichi Handa <handa@etl.go.jp> | |
16125 | |
16126 * xdisp.c (decode_mode_spec_coding): Delete superfluous code to | |
16127 avoid infinite error signaling. Allocate sufficient memory for | |
16128 eol_str in the case that eoltype is Lisp_Int. | |
16129 | |
16130 2000-02-17 Stefan Monnier <monnier@cs.yale.edu> | |
16131 | |
16132 * syntax.c (Fforward_comment): Undo the previous change, since cc-mode | |
16133 depends on the previous behavior. | |
16134 | |
16135 2000-02-16 Gerd Moellmann <gerd@gnu.org> | |
16136 | |
16137 * sysdep.c (vfork) [!HAVE_VFORK]: Removed. | |
16138 | |
16139 2000-02-15 Gerd Moellmann <gerd@gnu.org> | |
16140 | |
16141 * s/freebsd.h (BROKEN_PTY_READ_AFTER_EAGAIN): Define. | |
16142 | |
16143 * process.c (send_process) [BROKEN_PTY_READ_AFTER_EAGAIN]: | |
16144 Workaround for FreeBSD bug. Clear output queue after EAGAIN in | |
16145 write(2). | |
16146 | |
16147 2000-02-15 Richard M. Stallman <rms@gnu.org> | |
16148 | |
16149 * data.c (set_internal): Don't make variable buffer-local | |
16150 if within a let-binding for the same buffer. | |
16151 (let_shadows_buffer_binding_p): New function. | |
16152 | |
16153 * eval.c (specbind): For buffer-local value, | |
16154 record the current buffer also. | |
16155 (unbind_to): Cope with that change. | |
16156 | |
16157 2000-02-15 Gerd Moellmann <gerd@gnu.org> | |
16158 | |
16159 * window.c (Fsave_window_excursion): Doc fix. | |
16160 | |
16161 2000-02-15 Stefan Monnier <monnier@cs.yale.edu> | |
16162 | |
16163 * syntax.c (back_comment): Make sure we only consider comment-starters | |
16164 of the relevant style and return -1 in case of a failure to find the | |
16165 beginning of the comment. | |
16166 (Fforward_comment): If back_comment fails, go back to the position just | |
16167 after the comment-end. | |
16168 (scan_lists): Add comment describing a very minor bug. | |
16169 | |
16170 2000-02-14 Stefan Monnier <monnier@cs.yale.edu> | |
16171 | |
16172 * minibuf.c (Ftry_completion, Fall_completions): Add a reference to | |
16173 `completion-regexp-list' in the docstring. | |
16174 | |
16175 2000-02-14 Dave Love <fx@gnu.org> | |
16176 | |
16177 * xfaces.c (tty_defined_color): Declare color_idx unsigned long. | |
16178 | |
16179 2000-02-14 Stefan Monnier <monnier@cs.yale.edu> | |
16180 | |
16181 * regex.h (RE_SYNTAX_EMACS): Add RE_CHAR_CLASSES and RE_INTERVALS | |
16182 to Emacs' syntax. Also fix the comment about set/not-set meanings | |
16183 since Emacs syntax is not the value 0 any more. | |
16184 * search.c (compile_pattern_1): Remove RE_CHAR_CLASSES from the syntax | |
16185 since it's now part of RE_SYNTAX_EMACS. | |
16186 | |
16187 2000-02-12 Dave Love <fx@gnu.org> | |
16188 | |
16189 * frame.h (SELECTED_FRAME): Use NULL, not 0 to avoid warnings on Alpha. | |
16190 | |
16191 2000-02-12 Gerd Moellmann <gerd@gnu.org> | |
16192 | |
16193 * xdisp.c (syms_of_xdisp): Doc fix for scroll-conservatively. | |
16194 | |
16195 2000-02-12 Dave Love <fx@gnu.org> | |
16196 | |
16197 * s/aix3-2.h, s/osf-1.h: Define C_DEBUG_SWITCH for non-gcc. | |
16198 | |
16199 * s/ux4800.h, s/umips.h, s/umax.h, s/sol2.h, s/sco5.h, s/rtu.h: | |
16200 * s/ptx4.h, s/umax.h, s/dgux.h, s/bsd4-2.h, s/bsd4-3.h: | |
16201 * s/hpux.h: Don't define HAVE_VFORK. | |
16202 | |
16203 * s/gnu-linux.h: Don't define HAVE_VFORK or HAVE_SYS_SIGLIST. | |
16204 | |
16205 * s/nextstep.h: Don't define HAVE_ALLOCA. | |
16206 | |
16207 * config.in: Add vfork bits. | |
16208 | |
16209 2000-02-12 Gerd Moellmann <gerd@gnu.org> | |
16210 | |
16211 * process.c (Fopen_network_stream) [POLL_FOR_INPUT]: Register | |
16212 unwind function to undo the effect of stopping atimers. | |
16213 | |
16214 * keyboard.c (bind_polling_period): Stop all timers except poll_timer. | |
16215 | |
16216 * atimer.c (stopped_atimers): New variable. | |
16217 (stop_other_atimers, run_all_atimers, unwind_stop_other_atimers): | |
16218 New functions. | |
16219 | |
16220 * atimer.h (stop_other_atimers, run_all_atimers) | |
16221 (unwind_stop_other_atimers): Add function prototypes. | |
16222 | |
16223 * s/hpux10.h (HAVE_XRMSETDATABASE): Define if not already defined. | |
16224 | |
16225 2000-02-11 Ken Raeburn <raeburn@gnu.org> | |
16226 | |
16227 * Makefile.in (LIBX): Link in tiff library before jpeg, since tiff | |
16228 library may depend on jpeg. | |
16229 (atimer.o): Depends on atimer.c. | |
16230 | |
16231 2000-02-11 Kenichi Handa <handa@etl.go.jp> | |
16232 | |
16233 * insdel.c (del_range_1): Call update_compositions. | |
16234 (del_range_both): Call update_compositions just once.. | |
16235 | |
16236 2000-02-10 Dave Love <fx@gnu.org> | |
16237 | |
16238 * xfns.c (create_frame_xic): Fix initialization of automatic | |
16239 aggregates for pcc. | |
16240 | |
16241 2000-02-09 Kenichi Handa <handa@etl.go.jp> | |
16242 | |
16243 * ccl.c (CCL_MAKE_CHAR): New macro. | |
16244 (ccl_driver) <CCL_TranslateCharacter>: Check the validity of | |
16245 registers by CCL_MAKE_CHAR before calling translate_char. | |
16246 <CCL_TranslateCharacterConstTbl> Likewise. | |
16247 | |
16248 2000-02-08 Dave Love <fx@gnu.org> | |
16249 | |
16250 * lread.c (__EXTENSIONS__): Define. | |
16251 | |
16252 2000-02-08 Gerd Moellmann <gerd@gnu.org> | |
16253 | |
16254 * puresize.h (BASE_PURESIZE): Increase to 650000. | |
16255 | |
16256 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il> | |
16257 | |
16258 * msdos.c (XMenuActivate): Turn off the cursor after displaying | |
16259 the help message. | |
16260 | |
16261 2000-02-07 Eli Zaretskii <eliz@is.elta.co.il> | |
16262 | |
16263 * s/msdos.h (INTERNAL_TERMINAL): Add capabilities se, so, us, ue, | |
16264 md, mh, mb, mr, and me to the fake termcap entry. | |
16265 | |
16266 2000-02-06 Ken Raeburn <raeburn@gnu.org> | |
16267 | |
16268 * sound.c (sound_cleanup): Don't call device close routine if the | |
16269 function pointer is null. | |
16270 | |
16271 2000-02-06 Andrew Innes <andrewi@gnu.org> | |
16272 | |
16273 * dispextern.h: Change HAVE_X_WINDOWS to HAVE_WINDOW_SYSTEM, | |
16274 around image definitions and prototypes. | |
16275 (gamma_correct) [WINDOWSNT]: New prototype. | |
16276 | |
16277 * w32term.c (x_make_frame_visible): Replace call to | |
16278 input_poll_signal with poll_for_input. | |
16279 | |
16280 * window.c [WINDOWSNT]: Include w32term.h. | |
16281 | |
16282 * xdisp.c [WINDOWSNT]: Include w32term.h. | |
16283 | |
16284 * makefile.nt: Add dependencies on w32gui.h. | |
16285 (OBJ1): Include atimer.obj. | |
16286 ($(BLD)\atimer.obj): New dependency rule. | |
16287 | |
16288 * w32.c (sigmask): New function (does nothing). | |
16289 (sigunblock): Ditto. | |
16290 | |
16291 * frame.c [WINDOWSNT]: Include w32term.h. | |
16292 | |
16293 * w32gui.h (struct W32FontStruct): Add ascent and descent slots. | |
16294 | |
16295 * lread.c (syms_of_lread): Fix literal newlines. | |
16296 | |
16297 * emacs.c (USAGE): Split into USAGE1 and USAGE2, to work-around | |
16298 the string constant limit (2048 bytes) in MSVC. | |
16299 (main): Ditto. | |
16300 | |
16301 2000-02-05 INOUE Seiichiro <inoue@ainet.or.jp> | |
16302 | |
16303 * xterm.c (x_display_and_set_cursor) [HAVE_X_I18N]: Set pre-edit area. | |
16304 (x_display_cursor) [HAVE_X_I18N]: Don't set it here. | |
16305 (XTread_socket) [HAVE_X_I18N]: <KeyPress, KeyRelease>: Don't | |
16306 dispatch the event. | |
16307 | |
16308 2000-02-04 Dave Love <fx@gnu.org> | |
16309 | |
16310 * fileio.c: Remove some unused vars. | |
16311 (_GNU_SOURCE): Define (for euidaccess). | |
16312 | |
16313 * lread.c (_XOPEN_SOURCE): Declare (for ftello). | |
16314 | |
16315 * minibuf.c (read_minibuf_noninteractive): Remove undeclared | |
16316 gcpro1, gcpro2. | |
16317 (read_minibuf): Deal with allow_props correctly. | |
16318 | |
16319 2000-02-03 Eli Zaretskii <eliz@is.elta.co.il> | |
16320 | |
16321 * s/msdos.h (SYSTEM_PURESIZE_EXTRA): Enlarge to 60000. | |
16322 | |
16323 2000-02-03 Ken Raeburn <raeburn@gnu.org> | |
16324 | |
16325 * search.c (compile_pattern): If a cache entry has a nil regexp, | |
16326 fill in that entry instead of clobbering a previously cached | |
16327 string regexp. | |
16328 | |
16329 2000-02-02 Ken Raeburn <raeburn@gnu.org> | |
16330 | |
16331 * puresize.h (BASE_PURESIZE): Increase to 610000. | |
16332 | |
16333 2000-02-02 Gerd Moellmann <gerd@gnu.org> | |
16334 | |
16335 * frame.c (Fframe_parameters): Add GCPRO because tty_color_name | |
16336 can GC. | |
16337 | |
16338 2000-02-02 Kenichi Handa <handa@etl.go.jp> | |
16339 | |
16340 * ccl.c (ccl_driver) <CCL_WriteExprRegister>: Set jump_address | |
16341 instead of incrementing ic directly. | |
16342 <CCL_WriteExprConst> Likewise. | |
16343 <ccl_set_expr>: Set ic to jump_address. | |
16344 | |
16345 * fileio.c (e_write): Fix the handling of | |
16346 CODING_FINISH_INSUFFICIENT_SRC. | |
16347 | |
16348 2000-02-01 Dave Love <fx@gnu.org> | |
16349 | |
16350 * editfns.c (Fpropertize): Doc fix. | |
16351 | |
16352 * process.c (Fstart_process): Doc fix. | |
16353 | |
16354 * eval.c: Fix various doc strings not to duplicate information | |
16355 from help-manyarg-func-alist. | |
16356 | |
16357 * window.c (Fset_window_margins): Don't make interactive. Doc fix. | |
16358 | |
16359 * doc.c (Vhelp_manyarg_func_alist): New variable. | |
16360 (Fdocumentation): Use it. | |
16361 (syms_of_doc): Define it. | |
16362 | |
16363 2000-01-31 Gerd Moellmann <gerd@gnu.org> | |
16364 | |
16365 * xterm.c (xim_open_dpy): Remove unused local variable. | |
16366 | |
16367 * emacs.c (USAGE): Use term `display options' instead of `X options'. | |
16368 | |
16369 * xdisp.c (Ftrace_to_stderr) [GLYPH_DEBUG]: New function. | |
16370 (syms_of_xdisp) [GLYPH_DEBUG]: Defsubr it. | |
16371 | |
16372 * fns.c (sweep_weak_table): New function. | |
16373 (sweep_weak_hash_tables): Use it. Keep on marking until there | |
16374 is no more change. | |
16375 | |
16376 2000-01-30 Gerd Moellmann <gerd@gnu.org> | |
16377 | |
16378 * xterm.c (x_delete_display): Update next_noop_dpyinfo to ensure | |
16379 that XTread_socket does not crash by trying to call XNoOp on a | |
16380 closed display. | |
16381 | |
16382 2000-01-30 Jason Rumney <jasonr@gnu.org> | |
16383 | |
16384 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to): | |
16385 Change selected_frame to SELECTED_FRAME (). | |
16386 (w32_console_mouse_position): Remove #ifndef MULE from around | |
16387 `insist' parameter. | |
16388 | |
16389 * makefile.nt: Remove dosfns.obj. | |
16390 | |
16391 * term.c (term_init) [WINDOWSNT]: Initialize TN_max_colors. | |
16392 | |
16393 * w32fns.c (w32_defined_color): Check for valid frame before | |
16394 applying gamma correction. Eliminate dependency on frame elsewhere. | |
16395 (w32_load_system_font): Switch FIXED_PITCH and VARIABLE_PITCH. | |
16396 (w32_to_x_font): Use resx and resy not height_in and width_in. | |
16397 (x_to_w32_font): Doc fix. | |
16398 (xlfd_strip_height): New function to strip and return font height. | |
16399 (w32_font_match): Compare height separately from rest of xlfd | |
16400 spec, using xlfd_strip_height. | |
16401 | |
16402 * w32term.c (w32_term_init): Swap resx and height_in, resy and | |
16403 width_in. Use w32_defined_color in place of defined_color. | |
16404 | |
16405 * w32faces.c: Merge more of DOS and X specifics in preparation for | |
16406 merge with xfaces.c. | |
16407 (defined_color): Remove FIXME comment. | |
16408 (tty_color_name): Provide w32-specific function. | |
16409 (realize_tty_face): Handle FACE_TTY_DEFAULT*_COLOR specially. | |
16410 | |
16411 * w32console.c (turn_on_face, turn_off_face): Removed. | |
16412 (w32_face_attributes): New function. | |
16413 (Global_variables): Reduce scope where possible. | |
16414 (clear_frame, ins_del_lines, scroll_line): Use char_attr_normal as | |
16415 fill attribute. | |
16416 (hl_mode): Don't modify text attributes. | |
16417 (write_glyphs): Don't do anything if len <= 0. Use | |
16418 w32_face_attributes to get attributes for drawing. Write | |
16419 terminating codes using char_attr_normal. | |
16420 (reset_terminal_modes, set_terminal_modes): Turn off highlight. | |
16421 (update_begin, update_end): Likewise. | |
16422 (vga_stdcolor_name): New function. | |
16423 (initialize_w32_display): Remove char_attr_reverse and char_attr. | |
16424 (Fset_screen_color): Remove char_attr_reverse. | |
16425 | |
16426 2000-01-29 Gerd Moellmann <gerd@gnu.org> | |
16427 | |
16428 * xfns.c (xic_set_preeditarea): Take window parameter and | |
16429 window-relative pixel-positions. | |
16430 | |
16431 * xterm.c (x_display_cursor): Set XIC pre-edit area only if window | |
16432 is its frame's selected window. | |
16433 (xim_instantiate_callback): Likewise. | |
16434 | |
16435 * xfns.c (x_create_im): Removed. | |
16436 (DEFAULT_STYLE, DEFAULT_FONT): Removed. | |
16437 (supported_xim_styles): Renamed from supported_styles. | |
16438 (best_xim_style): Renamed from best_style. | |
16439 (create_frame_xic): Renamed from xic_create_frame. | |
16440 (free_frame_xic): Renamed from xic_destroy_frame. | |
16441 | |
16442 2000-01-29 INOUE Seiichiro <inoue@ainet.or.jp> | |
16443 | |
16444 * xterm.c (XTread_socket) [HAVE_X_I18N]: If event is for none of | |
16445 our frames, call XFilterEvent with 2nd parameter `None'. | |
16446 (XTread_socket) <KeyPress> [HAVE_X_I18N]: Handle XmbLookupString | |
16447 returning XBufferOverflow. | |
16448 (XTread_socket) <ConfigureNotify> [HAVE_X_I18N]: Set XIC status area. | |
16449 (x_display_cursor) [HAVE_X_I18N]: Set XIC pre-edit area. | |
16450 (x_new_fontset) [HAVE_X_I18N]: Create XIC status area fontset. | |
16451 (xim_destroy_callback, xim_open_dpy, xim_instantiate_callback) | |
16452 (xim_initialize, xim_close) | |
16453 [HAVE_X_I18N && HAVE_X11R6]: New functions. | |
16454 (x_destroy_window) [HAVE_X_I18N]: Call xic_destroy_frame. | |
16455 (x_term_init) [HAVE_X_I18N]: Call xim_initialize. | |
16456 (x_delete_display) [HAVE_X_I18N]: Call xim_close. | |
16457 | |
16458 * xterm.h (struct x_display_info) [HAVE_X_I18N]: Add members `xim' | |
16459 and `xim_styles'. | |
16460 (struct x_output) [HAVE_X_I18N]: Remove member `xim', add | |
16461 `xic_style' and `xic_xfs'. | |
16462 (FRAME_MENUBAR_HEIGHT, FRAME_X_XIM, FRAME_X_XIM_STYLES) | |
16463 (FRAME_XIC_STYLE, FRAME_XIC_FONTSET): New macros. | |
16464 (FRAME_XIM): Removed. | |
16465 | |
16466 * xfns.c (supported_styles): New variable. | |
16467 (DEFAULT_STYLE, DEFAULT_FONT): New macros | |
16468 (xic_create_xfontset, best_style, xic_create_frame) | |
16469 (xic_destroy_frame, xic_set_preeditarea, xic_set_statusarea) | |
16470 (xic_set_xfontset): New functions. | |
16471 | |
16472 2000-01-28 Dave Love <fx@gnu.org> | |
16473 | |
16474 * s/irix6-5.h: Revert last change after change to irix5-0.h. | |
16475 | |
16476 * m/iris4d.h (C_SWITCH_MACHINE): Don't use -G0. | |
16477 | |
16478 2000-01-28 Gerd Moellmann <gerd@gnu.org> | |
16479 | |
16480 * buffer.c (Fother_buffer): Don't call Fset_buffer_major_mode | |
16481 for *scratch* if it already existed. | |
16482 | |
16483 * emacs.c (USAGE): New macro. | |
16484 (main): Use it to display usage information. | |
16485 | |
16486 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il> | |
16487 | |
16488 Support for the menu-help feature: | |
16489 | |
16490 * msdos.h: Change prototypes of XMenuAddSelection and XMenuActivate. | |
16491 | |
16492 * msdos.c (IT_clear_end_of_line): Print the extent of the cleared | |
16493 part of the line to the termscript file. | |
16494 (IT_clear_to_end): Clear the entire line, not just its beginning. | |
16495 (menu_help_message, prev_menu_help_message): New variables. | |
16496 (IT_menu_make_room): Make room for the help_text member. | |
16497 (IT_menu_display): New argument disp_help; all callers changed. | |
16498 If disp_help is non-zero, store the help text of the active menu | |
16499 item in menu_help_message. | |
16500 (XMenuAddPane): Initialize the help_text member to NULL. | |
16501 (XMenuAddSelection): New argument help_text. Store it in the | |
16502 XMenu structure. | |
16503 (XMenuActivate): New argument help_callback. If the value of | |
16504 menu_help_message has changed since the last time, display the | |
16505 menu help message text while waiting for the mouse to move. Clear | |
16506 the echo area before exiting. | |
16507 (XMenuDestroy): Free the help_text member. | |
16508 | |
16509 2000-01-27 Gerd Moellmann <gerd@gnu.org> | |
16510 | |
16511 * xmenu.c (xmenu_show) [!USE_X_TOOLKIT]: Pass help to | |
16512 XMenuAddSelection. Pass help callback to XMenuActivate. | |
16513 (menu_help_callback) [!USE_X_TOOLKIT]: New function. | |
16514 | |
16515 2000-01-27 Eli Zaretskii <eliz@is.elta.co.il> | |
16516 | |
16517 * atimer.c (start_atimer) [!HAVE_SETITIMER]: Use EMACS_SET_SECS | |
16518 and EMACS_SET_USECS. | |
16519 | |
16520 2000-01-26 Dave Love <fx@gnu.org> | |
16521 | |
16522 * editfns.c (Fchar_after, Fchar_before): Doc fix. | |
16523 | |
16524 * bytecode.c (Fbyte_code): Use {BEFORE,AFTER}_POTENTIAL_GC where | |
16525 an error may be signalled. | |
16526 | |
16527 2000-01-26 Gerd Moellmann <gerd@gnu.org> | |
16528 | |
16529 * s/irix6-5.h [__GNUC__ && __GNUC_MINOR__ >= 95]: Undef | |
16530 LD_SWITCH_SYSTEM inherited from irix5-0.h. | |
16531 | |
16532 * bytecode.c (Fbyte_code) [BYTE_CODE_SAFE]: Fix typo. | |
16533 | |
16534 2000-01-25 Gerd Moellmann <gerd@gnu.org> | |
16535 | |
16536 * charset.c (Fstring): If there is a multibyte char among | |
16537 the args, always return a multibyte string. | |
16538 | |
16539 2000-01-25 Gerd Moellmann <gerd@gnu.org> | |
16540 | |
16541 * sysdep.c (sys_select): Turn atimers off and on instead of | |
16542 recording and restoring old alarm handler | |
16543 | |
16544 * process.c (toplevel): Include atimer.h. | |
16545 (create_process_1): Rewritten. | |
16546 (create_process): Use atimers instead of alarm. | |
16547 (wait_reading_process_input) [hpux]: Turn atimers off instead | |
16548 of turning off SIGALRM. | |
16549 (wait_reading_process_input): Turn off atimers instead off | |
16550 calling stop_polling. | |
16551 | |
16552 * emacs.c (main): Call init_atimer. | |
16553 | |
16554 * keyboard.c (toplevel): Include systime.h and atimer.h. | |
16555 (polling_for_input): Removed because unused. | |
16556 (input_poll_signal) [POLL_FOR_INPUT]: Removed. | |
16557 (poll_timer): New variable. | |
16558 (poll_for_input, poll_for_input_1): New functions. | |
16559 (start_polling, stop_polling): Rewritten. | |
16560 | |
16561 * keyboard.h (polling_for_input): Removed. | |
16562 | |
16563 * atimer.h, atimer.c: New files. | |
16564 | |
16565 * Makefile.in (obj): Add atimer.o. | |
16566 (atimer.o): New target. | |
16567 | |
16568 * blockinput.h (pending_atimers): Add extern declaration. | |
16569 (UNBLOCK_INPUT): Rewritten. Handle pending atimers. | |
16570 | |
16571 * lisp.h (popup_activated_flag): Add extern declaration. | |
16572 | |
16573 * xmenu.c (popup_activated_flag): Make externally visible. | |
16574 (popup_activate_callback) [USE_MOTIF]: Increment popup_activated_flag. | |
16575 (popup_deactivate_callback) [USE_MOTIF]: Decrement it. | |
16576 | |
16577 * xterm.c (toplevel): Include atimer.h. | |
16578 (toolkit_scroll_bar_interaction): New variable. | |
16579 (Fxt_process_timeouts): Removed. | |
16580 (x_process_timeouts): New function. | |
16581 (xt_action_hook): Clear toolkit_scroll_bar_interaction. | |
16582 (x_send_scroll_bar_event): Set toolkit_scroll_bar_interaction. | |
16583 (x_make_frame_visible): Call poll_for_input_1 instead of | |
16584 input_poll_signal. Don't call alarm. | |
16585 (x_initialize): Install timer calling x_process_timeouts. | |
16586 | |
16587 2000-01-24 Dave Love <fx@gnu.org> | |
16588 | |
16589 * s/irix5-0.h: Don't set LD_SWITCH_SYSTEM -- we use unexelf now. | |
16590 Don't use -cckr -- apparently not now necessary. | |
16591 | |
16592 2000-01-24 Eli Zaretskii <eliz@is.elta.co.il> | |
16593 | |
16594 * msdos.c (IT_menu_display): Truncate long menu lines at the right | |
16595 screen boundary. | |
16596 | |
16597 2000-01-23 Jason Rumney <jasonr@gnu.org> | |
16598 | |
16599 * w32fns.c (w32_defined_color): Apply gamma correction before | |
16600 trying to map to the palette. | |
16601 (w32_wnd_proc) [WM_ERASE_BACKGROUND]: Pass device context of frame | |
16602 to w32_clear_rect. | |
16603 | |
16604 * w32term.c (w32_fill_rect): Do not try to deal with NULL hdc | |
16605 here. Callers changed to always pass real device context. | |
16606 (w32_draw_bitmap): Likewise. | |
16607 (w32_get_glyph_overhangs): Likewise. | |
16608 (w32_draw_box_rect): Make use of s->hdc rather than getting a new one. | |
16609 (w32_set_vertical_scroll_bar): Pass correct HWND parameters to | |
16610 pfnSetScrollInfo and SetScrollRange. | |
16611 (x_get_char_face_and_encoding): Don't turn iso8859-1 characters | |
16612 back into MULE characters after decoding them. | |
16613 (x_get_glyph_face_and_encoding): Likewise. | |
16614 (w32_per_char_metric): Use GetCharExtentPoint32W as fallback when | |
16615 GetCharABCWidthsW fails, since this is defined on Windows 9x. | |
16616 (x_produce_glyphs): Calculate per char metrics for a character | |
16617 that we know exists in default font when font_not_found_p is true. | |
16618 | |
16619 2000-01-22 Jason Rumney <jasonr@gnu.org> | |
16620 | |
16621 * makefile.nt (intervals.obj, composite.obj): New modules. | |
16622 (composite.h): Added as dependency where appropriate. | |
16623 | |
16624 * w32gui.h (XGCValue): New struct for emulating X GCs. | |
16625 | |
16626 * w32term.h (XCharStruct): New struct for emulating X. | |
16627 | |
16628 * w32console.c (turn_on_face, turn_off_face): New functions. | |
16629 (change_line_highlight): New prototype for new redisplay. | |
16630 (write_glyphs): Support multibyte text. Support faces. | |
16631 | |
16632 * w32faces.c: Complete rewrite for new redisplay based on new xfaces.c. | |
16633 | |
16634 * w32fns.c: Use SELECTED_FRAME macro in place of selected_frame | |
16635 throughout. struct frame * in place of FRAME_PTR. | |
16636 Skeleton support for images, toolbars, tooltips from xfns.c. | |
16637 (Fx_create_frame): Use system default for default scroll bar width. | |
16638 (w32_get_arg): Renamed from x_get_arg. | |
16639 (Fx_file_dialog): New function. | |
16640 (w32_list_fonts): Check cache before asking system. | |
16641 (Vw32_enable_synthesized_fonts): New variable. | |
16642 (Vw32_enable_italics): Obsolete, removed. | |
16643 | |
16644 * w32inevt.c (get_frame, w32_console_mouse_position, mouse_moved_to): | |
16645 Use SELECTED_FRAME macro. | |
16646 | |
16647 * w32menu.c: Add skeleton support for help strings on menus. | |
16648 (add_menu_item): Native checkbox and radio support added, but not | |
16649 yet enabled due to bugs. | |
16650 (push_menu_item): Add parameters type, selection and help. | |
16651 Callers updated. | |
16652 Formatting changes to reduce unnecessary diffs with xmenu.c. | |
16653 | |
16654 * w32select.c (Fw32_set_clipboard_data): Update call to | |
16655 find_charset_in_str. | |
16656 | |
16657 * w32term.c: Complete rewrite for new redisplay based on new | |
16658 xterm.c with necessary sections merged back in from old w32term.c. | |
16659 | |
16660 2000-01-21 Richard M. Stallman <rms@gnu.org> | |
16661 | |
16662 * data.c (set_internal): Further fix in same criterion. | |
16663 | |
16664 2000-01-20 Richard M. Stallman <rms@gnu.org> | |
16665 | |
16666 * data.c (set_internal): Fix the criteria for whether | |
16667 to swap out the old cached binding. | |
16668 | |
16669 2000-01-19 Dave Love <fx@gnu.org> | |
16670 | |
16671 * lread.c: (syms_of_lread) [user-init-file]: Doc change. | |
16672 | |
16673 2000-01-18 Kenichi Handa <handa@etl.go.jp> | |
16674 | |
16675 * regex.c (re_compile_fastmap): While checking a range table for | |
16676 `charset', skip flag bits for a character class correctly. | |
16677 | |
16678 2000-01-17 Gerd Moellmann <gerd@gnu.org> | |
16679 | |
16680 * m/news-risc.h (LD_SWITCH_MACHINE): Define differently for GCC. | |
16681 | |
16682 * xfns.c (x_window): Call lw_create_widget with new parameter list. | |
16683 | |
16684 * widget.c (EmacsFrameSetCharSize): Change size of children first | |
16685 because of problems with main window geometry management under Lesstif. | |
16686 | |
16687 * xmenu.c (enum menu_item_idx): New enumeration replacing defines | |
16688 MENU_ITEMS_ITEM_.*. | |
16689 (MENU_ITEMS_ITEM_HELP): New enumerator. | |
16690 (push_menu_item): Add parameter HELP. Record help in menu_items. | |
16691 (single_menu_item, single_submenu, list_of_items): Call | |
16692 push_menu_item with new parameter. | |
16693 (single_submenu): Set help string in widget value. | |
16694 (menu_highlight_callback): New function. | |
16695 (set_frame_menubar): Call lw_create_widget with new | |
16696 parameter list. | |
16697 (xmenu_show, xdialog_show): Ditto. | |
16698 | |
16699 2000-01-13 Gerd Moellmann <gerd@gnu.org> | |
16700 | |
16701 * sound.c (Fplay_sound): Improve doc string. | |
16702 | |
16703 2000-01-11 Richard M. Stallman <rms@gnu.org> | |
16704 | |
16705 * lisp.h (set_internal): Enter the new arg. | |
16706 | |
16707 * eval.c (specbind): Record buffer-local variables specially, | |
16708 indicating which buffer's binding was saved. | |
16709 (unbind_to): Restore buffer-local variables specially | |
16710 in the proper buffer. | |
16711 | |
16712 * data.c (set_internal): New arg BUF. | |
16713 | |
16714 * eval.c (specbind, unbind_to): Pass new arg to set_internal. | |
16715 * data.c (Fset): Pass new arg to set_internal. | |
16716 * bytecode.c (Fbyte_code): Pass new arg to set_internal. | |
16717 | |
16718 2000-01-11 Gerd Moellmann <gerd@gnu.org> | |
16719 | |
16720 * .gdbinit: Adapt to new strings. Add xbacktrace, xreload, xprintsym. | |
16721 | |
16722 2000-01-11 Richard M. Stallman <rms@gnu.org> | |
16723 | |
16724 * minibuf.c (Ftry_completion): Doc fix. | |
16725 | |
16726 2000-01-11 Gerd Moellmann <gerd@gnu.org> | |
16727 | |
16728 * keyboard.c (Fclear_this_command_keys): Clear recent_keys | |
16729 vector, too. | |
16730 | |
16731 2000-01-11 Andreas Schwab <schwab@suse.de> | |
16732 | |
16733 * coding.c (code_convert_region): Initialize total_skip. | |
16734 | |
16735 2000-01-08 Dave Love <fx@gnu.org> | |
16736 | |
16737 * eval.c (Fuser_variable_p): Check customizability too. | |
16738 | |
16739 2000-01-07 Gerd Moellmann <gerd@gnu.org> | |
16740 | |
16741 * minibuf.c (Fcompleting_read): Doc fix. | |
16742 | |
16743 2000-01-05 Gerd Moellmann <gerd@gnu.org> | |
16744 | |
16745 * s/freebsd.h (C_SWITCH_SYSTEM): Add -I /usr/local/include and | |
16746 -L /usr/local/lib. | |
16747 | |
16748 * xfns.c (x_create_im): New function to set IM and IC of a frame. | |
16749 Check that input style is supported before trying to create an | |
16750 IC for it. | |
16751 (x_window): Call x_create_im. | |
16752 | |
16753 2000-01-04 Gerd Moellmann <gerd@gnu.org> | |
16754 | |
16755 * xfns.c (current_gif_memory_src): New variable. | |
16756 (gif_load): Record the address of the current memory source | |
16757 in current_gif_memory_src. | |
16758 (gif_read_from_memory): Use current_gif_memory_src. | |
16759 | |
16760 * systime.h (EMACS_GET_TIME, EMACS_ADD_TIME, EMACS_SUB_TIME): Give | |
16761 macros statement form. | |
16762 | |
16763 * sound.c (struct sound): Renamed from struct sound_file. | |
16764 (struct sound): Add members `data' and `header_size'. | |
16765 (enum sound_attr): Add SOUND_DATA. | |
16766 (current_sound, current_sound_device): Variables renamed from | |
16767 sound_file and sound_device. | |
16768 (parse_sound): Parse :data. | |
16769 (parse_sound): Handle sound data in strings. | |
16770 (find_sound_type): Function renamed from find_sound_file_type. | |
16771 (wav_init, au_init): Fail if sound's header_size is smaller than | |
16772 needed header size. | |
16773 (wav_play, au_play): Play sounds from string data. | |
16774 | |
16775 * puresize.h (BASE_PURE_SIZE): Increase to 600000. | |
16776 | |
16777 * lisp.h: Add prototype for allocate_string_data. | |
16778 | |
16779 * alloc.c (Fgarbage_collect): Return number of live and free strings. | |
16780 | |
16781 * alloc.c (mark_buffer): Remove code in #if 0. | |
16782 (gc_sweep): Ditto. | |
16783 (UNMARK_BALANCE_INTERVALS): Give the macro statement form. | |
16784 (strings_consed): New variable. | |
16785 (allocate_string): Set it. | |
16786 (syms_of_alloc): Add DEFVAR_INT for strings_consed. | |
16787 (Fmemory_use_counts): Return strings_consed. Use Flist. | |
16788 | |
16789 * alloc.c: General cleanup in comments etc. Remove conditional | |
16790 compilation for `standalone'. | |
16791 | |
16792 * lisp.h (struct Lisp_String): Make DATA member `unsigned char *'. | |
16793 | |
16794 * alloc.c (MARK_STRING, UNMARK_STRING, STRING_MARKED_P): | |
16795 (GC_STRING_BYTES, GC_STRING_CHARS): New macros. | |
16796 (DONT_COPY_FLAG): Removed. | |
16797 (SBLOCK_SIZE, LARGE_STRING_BYTES): New macros. | |
16798 (struct sdata, struct sblock): New | |
16799 (struct string_block): Rewritten. | |
16800 (STRINGS_IN_STRING_BLOCK): New macro. | |
16801 (oldest_sblock, current_sblock, total_strings, total_free_strings) | |
16802 (large_sblocks, string_blocks, string_free_list): New variables. | |
16803 (NEXT_FREE_LISP_STRING, SDATA_OF_STRING, SDATA_SIZE): New macros. | |
16804 (init_strings): Rewritten. | |
16805 (allocate_string, allocate_string_data, compact_small_strings) | |
16806 (free_large_strings, sweep_strings): New functions. | |
16807 (STRING_BLOCK_SIZE, STRING_BLOCK_OUTSIZE) | |
16808 (struct string_block_head, current_string_block) | |
16809 (first_string_block, large_string_blocks, STRING_FULLSIZE) | |
16810 (STRING_PAD): Removed. | |
16811 (make_uninit_multibyte_string, make_pure_string): Rewritten. | |
16812 (Fgarbage_collect): Don't set mark bit in large strings. | |
16813 (mark_object): Mark strings differently. Mark symbol names | |
16814 differently. | |
16815 (survives_gc_p): Test marked strings differently. | |
16816 (gc_sweep): Sweep strings differently, unmark strings in | |
16817 symbol names. | |
16818 (compact_strings): Removed. | |
16819 | |
16820 2000-01-04 Eli Zaretskii <eliz@is.elta.co.il> | |
16821 | |
16822 * xfaces.c (syms_of_xfaces): defsubr Scolor_gray_p and | |
16823 Scolor_supported_p even if HAVE_X_WINDOWS is not defined. | |
16824 | |
16825 2000-01-04 Kenichi Handa <handa@etl.go.jp> | |
16826 | |
16827 * fileio.c (Finsert_file_contents): Signal error if visiting file | |
16828 in a non-empty buffer. | |
16829 | |
16830 * term.c (encode_terminal_code): Fix the previous change. | |
16831 | |
16832 2000-01-03 Gerd Moellmann <gerd@gnu.org> | |
16833 | |
16834 * xfaces.c (syms_of_xfaces): Change Sface_color_gray_p to | |
16835 Scolor_gray_p, Sface_color_supported_p to Scolor_supported_p. | |
16836 | |
16837 * s/hpux9.h (NO_EDITRES): Define even if HAVE_LIBXMU. | |
16838 | |
16839 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> | |
16840 | |
16841 * xdisp.c (handle_single_display_prop) [HAVE_WINDOW_SYSTEM]: No | |
16842 need to test for MSDOS frames. | |
16843 | |
16844 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> | |
16845 | |
16846 * dosfns.c (unspecified_colors): Remove. | |
16847 (msdos_stdcolor_idx): Use global variables unspecified_fg and | |
16848 unspecified_bg. | |
16849 (msdos_stdcolor_name): Return strings for unspecified fore- and | |
16850 back-ground colors. | |
16851 | |
16852 * xfaces.c (Qunspecified_fg, Qunspecified_bg): Remove. | |
16853 (syms_of_xfaces): Remove their staticpro's. | |
16854 (tty_color_name): Return Lisp strings for unspecified fore- and | |
16855 back-ground colors. | |
16856 (Finternal_set_lisp_face_attribute): Remove the special treatment | |
16857 for Qunspecified_{f,b}g. | |
16858 (realize_default_face): Replace Qunspecified_{f,b}g with a Lisp string. | |
16859 | |
16860 2000-01-03 Gerd Moellmann <gerd@gnu.org> | |
16861 | |
16862 * xdisp.c (reseat_at_next_visible_line_start): Position before | |
16863 newline only if ending up on a newline. | |
16864 (next_element_from_ellipsis): Return success. Handle case of | |
16865 displaying no ellipsis. Fix case of ellipsis defined in display table. | |
16866 (next_element_from_buffer): Return 0 if next_element_from_ellipsis | |
16867 returns 0. | |
16868 | |
16869 2000-01-03 Eli Zaretskii <eliz@is.elta.co.il> | |
16870 | |
16871 * xfaces.c (Fcolor_gray_p): Renamed from face-color-gray-p. | |
16872 (Fcolor_supported_p): Renamed from face-color-supported-p. | |
16873 | |
16874 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> | |
16875 | |
16876 * xfaces.c (tty_defined_color): Pass frame to tty-color-desc. The | |
16877 list of colors renamed to tty-defined-color-alist. | |
16878 (tty_color_name): Pass the frame to tty-color-by-index. | |
16879 (realize_tty_face): tty-color-alist is now a function which | |
16880 accepts the frame as argument. | |
16881 | |
16882 * term.c (Ftty_display_color_p): Accept an optional argument FRAME. | |
16883 | |
16884 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> | |
16885 | |
16886 * term.c (insert_glyphs): Pass glyph, not &glyph, to | |
16887 encode_terminal_code. | |
16888 | |
16889 2000-01-02 Eli Zaretskii <eliz@is.elta.co.il> | |
16890 | |
16891 * dispnew.c (mode_line_string): Support termcap frames as well. | |
16892 | |
16893 2000-01-01 Gerd Moellmann <gerd@gnu.org> | |
16894 | |
16895 * syntax.c (Fforward_word): Undo previous change. | |
16896 | |
16897 * editfns.c (Fconstrain_to_field): Don't constrain if | |
16898 inhibit-field-text-motion is non-nil. | |
16899 (Fline_beginning_position): Undo previous change. | |
16900 (Fline_end_position): Ditto. | |
16901 | |
16902 * syntax.c (Fforward_word): Notice field boundaries only if | |
16903 inhibit-field-text-motion is nil. | |
16904 | |
16905 * lisp.h: Add extern declaration for Vinhibit_field_text_motion. | |
16906 | |
16907 * editfns.c (Vinhibit_field_text_motion): New variable. | |
16908 (inhibit-field-text-motion): New DEFVAR_LISP. | |
16909 (Fline_beginning_position, Fline_end_position): Notice field | |
16910 boundaries only if inhibit-field-text-motion is nil. | |
16911 | |
16912 * xfns.c (x_create_x_image_and_pixmap): Remove parameter FILE. | |
16913 All calls adjusted. | |
16914 (x_build_heuristic_mask): Likewise. | |
16915 (xbm_load_image_from_file): Change error output. | |
16916 (xbm_load, xpm_load, pbm_load, png_load, jpeg_load, tiff_load) | |
16917 (gif_load, gs_load, x_kill_gs_process): Ditto. | |
16918 | |
16919 * xfns.c (gif_load): Avoid sign extension and thus out of bounds | |
16920 color indices when accessing raster pixels. | |
16921 (gif_image_p, png_image_p, jpeg_image_p, tiff_image_p): Allow only | |
16922 one of :file or :data. | |
16923 (enum pbm_keyword_index): Add PBM_DATA. | |
16924 (pbm_format): Add :data. | |
16925 (pbm_image_p): Allow either :file or :data. | |
16926 (pbm_read_file): New function. | |
16927 (pbm_scan_number): Rewritten to read from string. | |
16928 (pbm_load): Support :data. | |
16929 | |
16930 See ChangeLog.8 for earlier changes. | |
16931 | |
16932 ;; Local Variables: | 745 ;; Local Variables: |
16933 ;; coding: iso-2022-7bit | 746 ;; coding: iso-2022-7bit |
16934 ;; End: | 747 ;; End: |
16935 | 748 |
16936 Copyright (C) 2001, 2002 Free Software Foundation, Inc. | 749 Copyright (C) 2002 Free Software Foundation, Inc. |
16937 Copying and distribution of this file, with or without modification, | 750 Copying and distribution of this file, with or without modification, |
16938 are permitted provided the copyright notice and this notice are preserved. | 751 are permitted provided the copyright notice and this notice are preserved. |