aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/emulation/viper.el9
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