diff options
author | Juanma Barranquero <lekktu@gmail.com> | 2009-10-02 03:48:36 +0000 |
---|---|---|
committer | Juanma Barranquero <lekktu@gmail.com> | 2009-10-02 03:48:36 +0000 |
commit | 32226619c5e563c384372b566000e5d37d783a61 (patch) | |
tree | 216af4221d2ba868b45162679ce3a0462985c422 /lisp/emulation/viper.el | |
parent | 12a3c28c787e23801f40ea557a5c00b538968a52 (diff) | |
download | emacs-32226619c5e563c384372b566000e5d37d783a61.tar.gz |
Use `called-interactively-p' instead of `interactive-p'.
Diffstat (limited to 'lisp/emulation/viper.el')
-rw-r--r-- | lisp/emulation/viper.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el index 2d65f5c4a06..a179e163933 100644 --- a/lisp/emulation/viper.el +++ b/lisp/emulation/viper.el @@ -897,7 +897,8 @@ It also can't undo some Viper settings." (defadvice self-insert-command (around viper-self-insert-ad activate) "Ignore all self-inserting keys in the vi-state." - (if (and (eq viper-current-state 'vi-state) (interactive-p)) + (if (and (eq viper-current-state 'vi-state) + (called-interactively-p 'interactive)) (beep 1) ad-do-it )) |