diff options
| author | Glenn Morris | 2008-03-01 20:11:47 +0000 |
|---|---|---|
| committer | Glenn Morris | 2008-03-01 20:11:47 +0000 |
| commit | 0e52cd136878e49197d27ff1c60fa6d6d82d1c80 (patch) | |
| tree | 2ee021417bdfa25f8abfac731affab4307c2a701 | |
| parent | fe4f1247e5e4bae8f81ba56041d9731c91bd99a6 (diff) | |
| download | emacs-0e52cd136878e49197d27ff1c60fa6d6d82d1c80.tar.gz emacs-0e52cd136878e49197d27ff1c60fa6d6d82d1c80.zip | |
Expand all viper-cond-compile-for-xemacs-or-emacs calls to a featurep test.
| -rw-r--r-- | lisp/emulation/viper.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el index ee68f868567..0ca83ae6ec0 100644 --- a/lisp/emulation/viper.el +++ b/lisp/emulation/viper.el | |||
| @@ -1022,7 +1022,7 @@ It also can't undo some Viper settings." | |||
| 1022 | (setq global-mode-string | 1022 | (setq global-mode-string |
| 1023 | (append '("" viper-mode-string) (cdr global-mode-string)))) | 1023 | (append '("" viper-mode-string) (cdr global-mode-string)))) |
| 1024 | 1024 | ||
| 1025 | (viper-cond-compile-for-xemacs-or-emacs | 1025 | (if (featurep 'xemacs) |
| 1026 | ;; XEmacs | 1026 | ;; XEmacs |
| 1027 | (defadvice describe-key (before viper-describe-key-ad protect activate) | 1027 | (defadvice describe-key (before viper-describe-key-ad protect activate) |
| 1028 | "Force to read key via `viper-read-key-sequence'." | 1028 | "Force to read key via `viper-read-key-sequence'." |
| @@ -1052,9 +1052,9 @@ It also can't undo some Viper settings." | |||
| 1052 | (eventp (aref key 1)) | 1052 | (eventp (aref key 1)) |
| 1053 | (memq 'down (event-modifiers (aref key 1))))) | 1053 | (memq 'down (event-modifiers (aref key 1))))) |
| 1054 | (read-event)))))) | 1054 | (read-event)))))) |
| 1055 | ) ; viper-cond-compile-for-xemacs-or-emacs | 1055 | ) ; (if (featurep 'xemacs) |
| 1056 | 1056 | ||
| 1057 | (viper-cond-compile-for-xemacs-or-emacs | 1057 | (if (featurep 'xemacs) |
| 1058 | ;; XEmacs | 1058 | ;; XEmacs |
| 1059 | (defadvice describe-key-briefly | 1059 | (defadvice describe-key-briefly |
| 1060 | (before viper-describe-key-briefly-ad protect activate) | 1060 | (before viper-describe-key-briefly-ad protect activate) |
| @@ -1078,7 +1078,7 @@ It also can't undo some Viper settings." | |||
| 1078 | (if current-prefix-arg | 1078 | (if current-prefix-arg |
| 1079 | (prefix-numeric-value current-prefix-arg)) | 1079 | (prefix-numeric-value current-prefix-arg)) |
| 1080 | 1)))) | 1080 | 1)))) |
| 1081 | ) ;; viper-cond-compile-for-xemacs-or-emacs | 1081 | ) ; (if (featurep 'xemacs) |
| 1082 | 1082 | ||
| 1083 | (defadvice find-file (before viper-add-suffix-advice activate) | 1083 | (defadvice find-file (before viper-add-suffix-advice activate) |
| 1084 | "Use `read-file-name' for reading arguments." | 1084 | "Use `read-file-name' for reading arguments." |