diff options
| author | Glenn Morris | 2018-02-27 13:02:02 -0500 |
|---|---|---|
| committer | Glenn Morris | 2018-02-27 13:02:02 -0500 |
| commit | f8df49c3a9522780a04facad1fc11fef3508716b (patch) | |
| tree | 50af3b10559fb3e10266862e1354992b3083b5bc | |
| parent | e7a5b1bb671f0bc1c4dfbbbfc7b5ba1de1f39897 (diff) | |
| download | emacs-f8df49c3a9522780a04facad1fc11fef3508716b.tar.gz emacs-f8df49c3a9522780a04facad1fc11fef3508716b.zip | |
Remove free variable warning when compiling viper using .el files
* lisp/emulation/viper-cmd.el (viper-saved-mark): Move definition...
* lisp/emulation/viper-util.el (viper-saved-mark): ... to here.
| -rw-r--r-- | lisp/emulation/viper-cmd.el | 3 | ||||
| -rw-r--r-- | lisp/emulation/viper-util.el | 4 |
2 files changed, 3 insertions, 4 deletions
diff --git a/lisp/emulation/viper-cmd.el b/lisp/emulation/viper-cmd.el index fe57535a14b..224ce5802c6 100644 --- a/lisp/emulation/viper-cmd.el +++ b/lisp/emulation/viper-cmd.el | |||
| @@ -131,9 +131,6 @@ | |||
| 131 | ;; define viper-vi-command-p | 131 | ;; define viper-vi-command-p |
| 132 | (viper-test-com-defun viper-vi-command) | 132 | (viper-test-com-defun viper-vi-command) |
| 133 | 133 | ||
| 134 | ;; Where viper saves mark. This mark is resurrected by m^ | ||
| 135 | (defvar viper-saved-mark nil) | ||
| 136 | |||
| 137 | ;; Contains user settings for vars affected by viper-set-expert-level function. | 134 | ;; Contains user settings for vars affected by viper-set-expert-level function. |
| 138 | ;; Not a user option. | 135 | ;; Not a user option. |
| 139 | (defvar viper-saved-user-settings nil) | 136 | (defvar viper-saved-user-settings nil) |
diff --git a/lisp/emulation/viper-util.el b/lisp/emulation/viper-util.el index f0540401803..9fd68b7a61f 100644 --- a/lisp/emulation/viper-util.el +++ b/lisp/emulation/viper-util.el | |||
| @@ -39,7 +39,6 @@ | |||
| 39 | (defvar ex-unix-type-shell-options) | 39 | (defvar ex-unix-type-shell-options) |
| 40 | (defvar viper-ex-tmp-buf-name) | 40 | (defvar viper-ex-tmp-buf-name) |
| 41 | (defvar viper-syntax-preference) | 41 | (defvar viper-syntax-preference) |
| 42 | (defvar viper-saved-mark) | ||
| 43 | 42 | ||
| 44 | (require 'ring) | 43 | (require 'ring) |
| 45 | 44 | ||
| @@ -886,6 +885,9 @@ Otherwise return the normal value." | |||
| 886 | (if (featurep 'xemacs) (mark-marker t) | 885 | (if (featurep 'xemacs) (mark-marker t) |
| 887 | (mark-marker))) | 886 | (mark-marker))) |
| 888 | 887 | ||
| 888 | (defvar viper-saved-mark nil | ||
| 889 | "Where viper saves mark. This mark is resurrected by m^.") | ||
| 890 | |||
| 889 | ;; like (set-mark-command nil) but doesn't push twice, if (car mark-ring) | 891 | ;; like (set-mark-command nil) but doesn't push twice, if (car mark-ring) |
| 890 | ;; is the same as (mark t). | 892 | ;; is the same as (mark t). |
| 891 | (defsubst viper-set-mark-if-necessary () | 893 | (defsubst viper-set-mark-if-necessary () |