1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-05 11:45:45 +00:00

; vc-checkout: Wrap var lookup in 'bound-and-true-p'

This commit is contained in:
Dmitry Gutov 2023-04-12 02:03:14 +03:00
parent e9fef1d70f
commit 7972b76c2c

View File

@ -1594,7 +1594,7 @@ After check-out, runs the normal hook `vc-checkout-hook'."
(vc-call make-version-backups-p file)
(vc-up-to-date-p file)
(vc-make-version-backup file))
(let ((backend (or vc-dir-backend (vc-backend file))))
(let ((backend (or (bound-and-true-p vc-dir-backend) (vc-backend file))))
(with-vc-properties (list file)
(condition-case err
(vc-call-backend backend 'checkout file rev)