diff options
| author | Glenn Morris | 2018-03-23 20:55:51 -0400 |
|---|---|---|
| committer | Glenn Morris | 2018-03-23 20:55:51 -0400 |
| commit | 4cfd2a2a92e2890af76bcd8375f966ce67ef2482 (patch) | |
| tree | 0e25dc452d4c7e4524eb577e4cda9f633297a0ac | |
| parent | 0ef87d60054fc1660413772cfb5598d2fb8a5fe5 (diff) | |
| download | emacs-4cfd2a2a92e2890af76bcd8375f966ce67ef2482.tar.gz emacs-4cfd2a2a92e2890af76bcd8375f966ce67ef2482.zip | |
* lisp/emulation/viper.el (viper-set-hooks): Replace obsolete func.
| -rw-r--r-- | lisp/emulation/viper.el | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el index c8eca30e88b..8604020b987 100644 --- a/lisp/emulation/viper.el +++ b/lisp/emulation/viper.el | |||
| @@ -937,8 +937,13 @@ Two differences: | |||
| 937 | (if (and (eq viper-current-state 'vi-state) | 937 | (if (and (eq viper-current-state 'vi-state) |
| 938 | ;; Do not use called-interactively-p here. XEmacs does not have it | 938 | ;; Do not use called-interactively-p here. XEmacs does not have it |
| 939 | ;; and interactive-p is just fine. | 939 | ;; and interactive-p is just fine. |
| 940 | ;; (called-interactively-p 'interactive)) | 940 | (if (featurep 'xemacs) |
| 941 | (interactive-p)) | 941 | (interactive-p) |
| 942 | ;; Respect the spirit of the above comment, though it | ||
| 943 | ;; seems pointless, since XE doesn't have advice-add or | ||
| 944 | ;; lexical binding or any other of the newer features | ||
| 945 | ;; this file uses. | ||
| 946 | (called-interactively-p 'interactive))) | ||
| 942 | (beep 1) | 947 | (beep 1) |
| 943 | (apply orig-fun args)))) | 948 | (apply orig-fun args)))) |
| 944 | 949 | ||