diff options
| author | Michael Kifer | 2002-02-10 06:46:12 +0000 |
|---|---|---|
| committer | Michael Kifer | 2002-02-10 06:46:12 +0000 |
| commit | 8bdd0bf7853d4803c2949d3048574859ce243acd (patch) | |
| tree | daa173356b426c5ba682ca107d8daaef8e37d9d2 | |
| parent | 73df3b72f653c4c6ff557d2165672bab3e80a391 (diff) | |
| download | emacs-8bdd0bf7853d4803c2949d3048574859ce243acd.tar.gz emacs-8bdd0bf7853d4803c2949d3048574859ce243acd.zip | |
2002-02-10 Michael Kifer <kifer@cs.stonybrook.edu>
* viper-util.el (viper-read-key-sequence): fixed so it'll read
fast key sequences in emacs native mode
(viper-events-to-keys): deleted
* viper.el (describe-key, describe-key-briefly): get rid of
viper-events-to-keys.
* ediff-init.el (ediff-has-gutter-support): Steven Turnbull's patch.
* ediff-wind.el (ediff-setup-control-frame): Use
ediff-has-gutter-support.
* ediff-util.el (ediff-dispose-of-variant-according-to-user):
check if buff is alive.
* ediff.el: typo in comment.
| -rw-r--r-- | ChangeLog | 19 | ||||
| -rw-r--r-- | lisp/ediff-init.el | 8 | ||||
| -rw-r--r-- | lisp/ediff-util.el | 3 | ||||
| -rw-r--r-- | lisp/ediff-wind.el | 4 | ||||
| -rw-r--r-- | lisp/emulation/viper-util.el | 18 | ||||
| -rw-r--r-- | lisp/emulation/viper.el | 6 | ||||
| -rw-r--r-- | man/ediff.texi | 1 |
7 files changed, 43 insertions, 16 deletions
| @@ -1,3 +1,22 @@ | |||
| 1 | 2002-02-10 Michael Kifer <kifer@cs.stonybrook.edu> | ||
| 2 | |||
| 3 | * viper-util.el (viper-read-key-sequence): fixed so it'll read | ||
| 4 | fast key sequences in emacs native mode | ||
| 5 | (viper-events-to-keys): deleted | ||
| 6 | |||
| 7 | * viper.el (describe-key, describe-key-briefly): get rid of | ||
| 8 | viper-events-to-keys. | ||
| 9 | |||
| 10 | * ediff-init.el (ediff-has-gutter-support): Steven Turnbull's patch. | ||
| 11 | |||
| 12 | * ediff-wind.el (ediff-setup-control-frame): Use | ||
| 13 | ediff-has-gutter-support. | ||
| 14 | |||
| 15 | * ediff-util.el (ediff-dispose-of-variant-according-to-user): | ||
| 16 | check if buff is alive. | ||
| 17 | |||
| 18 | * ediff.el: typo in comment. | ||
| 19 | |||
| 1 | 2002-02-08 Richard M. Stallman <rms@gnu.org> | 20 | 2002-02-08 Richard M. Stallman <rms@gnu.org> |
| 2 | 21 | ||
| 3 | * Makefile.in (maybe_bootstrap): Add an infinite sleep-loop. | 22 | * Makefile.in (maybe_bootstrap): Add an infinite sleep-loop. |
diff --git a/lisp/ediff-init.el b/lisp/ediff-init.el index 729d6f76e19..ae6d05ab40a 100644 --- a/lisp/ediff-init.el +++ b/lisp/ediff-init.el | |||
| @@ -87,6 +87,14 @@ that Ediff doesn't know about.") | |||
| 87 | nil ; emacs form | 87 | nil ; emacs form |
| 88 | )) | 88 | )) |
| 89 | 89 | ||
| 90 | |||
| 91 | (defun ediff-has-gutter-support-p () | ||
| 92 | (ediff-cond-compile-for-xemacs-or-emacs | ||
| 93 | (and (featurep 'gutter) (console-on-window-system-p)) ; xemacs form | ||
| 94 | nil ; emacs form | ||
| 95 | )) | ||
| 96 | |||
| 97 | |||
| 90 | (defun ediff-use-toolbar-p () | 98 | (defun ediff-use-toolbar-p () |
| 91 | (and (ediff-has-toolbar-support-p) ;Can it do it ? | 99 | (and (ediff-has-toolbar-support-p) ;Can it do it ? |
| 92 | (boundp 'ediff-use-toolbar-p) | 100 | (boundp 'ediff-use-toolbar-p) |
diff --git a/lisp/ediff-util.el b/lisp/ediff-util.el index c7f0be3638d..e1dbdc7f336 100644 --- a/lisp/ediff-util.el +++ b/lisp/ediff-util.el | |||
| @@ -2628,7 +2628,8 @@ delete this buffer in another session as well." | |||
| 2628 | ;; BUFF is the buffer, BUFF-TYPE is either 'A, or 'B, 'C, 'Ancestor | 2628 | ;; BUFF is the buffer, BUFF-TYPE is either 'A, or 'B, 'C, 'Ancestor |
| 2629 | (defun ediff-dispose-of-variant-according-to-user (buff bufftype ask keep-variants) | 2629 | (defun ediff-dispose-of-variant-according-to-user (buff bufftype ask keep-variants) |
| 2630 | ;; if this is indirect buffer, kill it and substitute with direct buf | 2630 | ;; if this is indirect buffer, kill it and substitute with direct buf |
| 2631 | (if (ediff-with-current-buffer buff ediff-temp-indirect-buffer) | 2631 | (if (and (ediff-buffer-live-p buff) |
| 2632 | (ediff-with-current-buffer buff ediff-temp-indirect-buffer)) | ||
| 2632 | (let ((wind (ediff-get-visible-buffer-window buff)) | 2633 | (let ((wind (ediff-get-visible-buffer-window buff)) |
| 2633 | (base (buffer-base-buffer buff)) | 2634 | (base (buffer-base-buffer buff)) |
| 2634 | (modified-p (buffer-modified-p buff))) | 2635 | (modified-p (buffer-modified-p buff))) |
diff --git a/lisp/ediff-wind.el b/lisp/ediff-wind.el index ede3e569ae0..8d8334705d2 100644 --- a/lisp/ediff-wind.el +++ b/lisp/ediff-wind.el | |||
| @@ -968,8 +968,8 @@ into icons, regardless of the window manager." | |||
| 968 | (if (ediff-has-toolbar-support-p) | 968 | (if (ediff-has-toolbar-support-p) |
| 969 | (ediff-cond-compile-for-xemacs-or-emacs | 969 | (ediff-cond-compile-for-xemacs-or-emacs |
| 970 | (progn ; xemacs | 970 | (progn ; xemacs |
| 971 | (set-specifier top-toolbar-height (list ctl-frame 2)) | 971 | (if (ediff-has-gutter-support-p) |
| 972 | (set-specifier top-gutter (list ctl-frame nil)) | 972 | (set-specifier top-gutter (list ctl-frame nil))) |
| 973 | (sit-for 0) | 973 | (sit-for 0) |
| 974 | (set-specifier top-toolbar-height (list ctl-frame 0)) | 974 | (set-specifier top-toolbar-height (list ctl-frame 0)) |
| 975 | ;;(set-specifier bottom-toolbar-height (list ctl-frame 0)) | 975 | ;;(set-specifier bottom-toolbar-height (list ctl-frame 0)) |
diff --git a/lisp/emulation/viper-util.el b/lisp/emulation/viper-util.el index 817db016ef4..bb748fcadfc 100644 --- a/lisp/emulation/viper-util.el +++ b/lisp/emulation/viper-util.el | |||
| @@ -925,12 +925,6 @@ | |||
| 925 | )) | 925 | )) |
| 926 | 926 | ||
| 927 | 927 | ||
| 928 | (defsubst viper-events-to-keys (events) | ||
| 929 | (viper-cond-compile-for-xemacs-or-emacs | ||
| 930 | (events-to-keys events) ; xemacs | ||
| 931 | events ; emacs | ||
| 932 | )) | ||
| 933 | |||
| 934 | 928 | ||
| 935 | ;; it is suggested that an event must be copied before it is assigned to | 929 | ;; it is suggested that an event must be copied before it is assigned to |
| 936 | ;; last-command-event in XEmacs | 930 | ;; last-command-event in XEmacs |
| @@ -969,15 +963,21 @@ | |||
| 969 | (elt (listify-key-sequence keyseq) 0))) | 963 | (elt (listify-key-sequence keyseq) 0))) |
| 970 | (if (viper-ESC-event-p event) | 964 | (if (viper-ESC-event-p event) |
| 971 | (let (unread-command-events) | 965 | (let (unread-command-events) |
| 972 | (viper-set-unread-command-events keyseq) | ||
| 973 | (if (viper-fast-keysequence-p) | 966 | (if (viper-fast-keysequence-p) |
| 974 | (let ((viper-vi-global-user-minor-mode nil) | 967 | (let ((viper-vi-global-user-minor-mode nil) |
| 975 | (viper-vi-local-user-minor-mode nil) | 968 | (viper-vi-local-user-minor-mode nil) |
| 969 | (viper-vi-intercept-minor-mode nil) | ||
| 970 | (viper-insert-intercept-minor-mode nil) | ||
| 976 | (viper-replace-minor-mode nil) ; actually unnecessary | 971 | (viper-replace-minor-mode nil) ; actually unnecessary |
| 977 | (viper-insert-global-user-minor-mode nil) | 972 | (viper-insert-global-user-minor-mode nil) |
| 978 | (viper-insert-local-user-minor-mode nil)) | 973 | (viper-insert-local-user-minor-mode nil)) |
| 979 | (setq keyseq (read-key-sequence prompt continue-echo))) | 974 | ;; Note: set unread-command-events only after testing for fast |
| 980 | (setq keyseq (read-key-sequence prompt continue-echo))))) | 975 | ;; keysequence. Otherwise, viper-fast-keysequence-p will be |
| 976 | ;; always t -- whether there is anything after ESC or not | ||
| 977 | (viper-set-unread-command-events keyseq) | ||
| 978 | (setq keyseq (read-key-sequence nil))) | ||
| 979 | (viper-set-unread-command-events keyseq) | ||
| 980 | (setq keyseq (read-key-sequence nil))))) | ||
| 981 | keyseq)) | 981 | keyseq)) |
| 982 | 982 | ||
| 983 | 983 | ||
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el index 65c426da535..a0de2e27275 100644 --- a/lisp/emulation/viper.el +++ b/lisp/emulation/viper.el | |||
| @@ -982,14 +982,12 @@ remains buffer-local." | |||
| 982 | 982 | ||
| 983 | (defadvice describe-key (before viper-read-keyseq-ad protect activate) | 983 | (defadvice describe-key (before viper-read-keyseq-ad protect activate) |
| 984 | "Force to read key via `viper-read-key-sequence'." | 984 | "Force to read key via `viper-read-key-sequence'." |
| 985 | (interactive (list (viper-events-to-keys | 985 | (interactive (list (viper-read-key-sequence "Describe key: ")))) |
| 986 | (viper-read-key-sequence "Describe key: "))))) | ||
| 987 | 986 | ||
| 988 | (defadvice describe-key-briefly | 987 | (defadvice describe-key-briefly |
| 989 | (before viper-read-keyseq-ad protect activate) | 988 | (before viper-read-keyseq-ad protect activate) |
| 990 | "Force to read key via `viper-read-key-sequence'." | 989 | "Force to read key via `viper-read-key-sequence'." |
| 991 | (interactive (list (viper-events-to-keys | 990 | (interactive (list (viper-read-key-sequence "Describe key briefly: ")))) |
| 992 | (viper-read-key-sequence "Describe key briefly: "))))) | ||
| 993 | 991 | ||
| 994 | 992 | ||
| 995 | (defadvice find-file (before viper-add-suffix-advice activate) | 993 | (defadvice find-file (before viper-add-suffix-advice activate) |
diff --git a/man/ediff.texi b/man/ediff.texi index 1747a9bc3c5..76c6bf688c1 100644 --- a/man/ediff.texi +++ b/man/ediff.texi | |||
| @@ -2458,6 +2458,7 @@ Peter Stout (Peter_Stout@@cs.cmu.edu), | |||
| 2458 | Chuck Thompson (cthomp@@cs.uiuc.edu), | 2458 | Chuck Thompson (cthomp@@cs.uiuc.edu), |
| 2459 | Ray Tomlinson (tomlinso@@bbn.com), | 2459 | Ray Tomlinson (tomlinso@@bbn.com), |
| 2460 | Raymond Toy (toy@@rtp.ericsson.se), | 2460 | Raymond Toy (toy@@rtp.ericsson.se), |
| 2461 | Stephen J. Turnbull (stephen@@xemacs.org), | ||
| 2461 | Jan Vroonhof (vroonhof@@math.ethz.ch), | 2462 | Jan Vroonhof (vroonhof@@math.ethz.ch), |
| 2462 | Colin Walters (walters@@cis.ohio-state.edu), | 2463 | Colin Walters (walters@@cis.ohio-state.edu), |
| 2463 | Philippe Waroquiers (philippe.waroquiers@@eurocontrol.be), | 2464 | Philippe Waroquiers (philippe.waroquiers@@eurocontrol.be), |