diff options
| -rw-r--r-- | lisp/emulation/viper.el | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lisp/emulation/viper.el b/lisp/emulation/viper.el index a0bba9a22e6..1ee1464ac73 100644 --- a/lisp/emulation/viper.el +++ b/lisp/emulation/viper.el | |||
| @@ -647,10 +647,14 @@ This startup message appears whenever you load Viper, unless you type `y' now." | |||
| 647 | 647 | ||
| 648 | (defun viper--advice-add (function where advice) | 648 | (defun viper--advice-add (function where advice) |
| 649 | (advice-add function where advice) | 649 | (advice-add function where advice) |
| 650 | (push (list function advice) viper--advice-list)) | 650 | (push (cons function advice) viper--advice-list)) |
| 651 | 651 | ||
| 652 | (defun viper--deactivate-advice-list () | 652 | (defun viper--deactivate-advice-list () |
| 653 | (mapc #'advice-remove viper--advice-list) | 653 | (mapc (lambda (n) |
| 654 | (advice-remove | ||
| 655 | (car n) | ||
| 656 | (cdr n))) | ||
| 657 | viper--advice-list) | ||
| 654 | (setq viper--advice-list nil)) | 658 | (setq viper--advice-list nil)) |
| 655 | 659 | ||
| 656 | (defun viper-go-away () | 660 | (defun viper-go-away () |