diff options
| author | Sean Whitton | 2025-10-16 16:56:47 +0100 |
|---|---|---|
| committer | Sean Whitton | 2025-10-16 16:56:47 +0100 |
| commit | d0d6e5ce659c00b6cb04839e13700c018200eabb (patch) | |
| tree | db9f1260c16344bd511975ef4084595d0e79d656 | |
| parent | f36ed942b1971e99ed344e3ed7501638a7cb7610 (diff) | |
| download | emacs-d0d6e5ce659c00b6cb04839e13700c018200eabb.tar.gz emacs-d0d6e5ce659c00b6cb04839e13700c018200eabb.zip | |
vc-auto-revert-mode: Fix an autoload problem
* lisp/vc/vc-hooks.el (auto-revert-mode): Replace compiler
declaration for this variable with a full defvar-local.
| -rw-r--r-- | lisp/vc/vc-hooks.el | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/vc/vc-hooks.el b/lisp/vc/vc-hooks.el index e03313b5730..60aa0cf9927 100644 --- a/lisp/vc/vc-hooks.el +++ b/lisp/vc/vc-hooks.el | |||
| @@ -210,7 +210,10 @@ VC commands are globally reachable under the prefix \\[vc-prefix-map]: | |||
| 210 | \\{vc-prefix-map}" | 210 | \\{vc-prefix-map}" |
| 211 | nil) | 211 | nil) |
| 212 | 212 | ||
| 213 | (defvar auto-revert-mode) | 213 | ;; A compiler declaration (defvar auto-revert-mode) is not enough here |
| 214 | ;; because `define-globalized-minor-mode' wants to check the variable's | ||
| 215 | ;; value before causing autorevert.el to be autoloaded. | ||
| 216 | (defvar-local auto-revert-mode nil) | ||
| 214 | (define-globalized-minor-mode vc-auto-revert-mode auto-revert-mode | 217 | (define-globalized-minor-mode vc-auto-revert-mode auto-revert-mode |
| 215 | vc-turn-on-auto-revert-mode-for-tracked-files | 218 | vc-turn-on-auto-revert-mode-for-tracked-files |
| 216 | :group 'vc | 219 | :group 'vc |