* lisp/vc/vc.el (vc-checkin): Don't assume vc-dir is loaded.

This commit is contained in:
Sean Whitton 2026-04-09 16:22:39 +01:00
parent 49420f7033
commit 1d2c3cb5bb

View file

@ -2230,7 +2230,8 @@ have changed; continue with old fileset?" (current-buffer))))
(dolist (file files)
(let ((file (expand-file-name file)))
(vc-file-setprop file 'display-state "committing")
(vc-dir-resynch-file file)
(when (featurep 'vc-dir)
(vc-dir-resynch-file file))
(push file to-remove-props)))
(vc-exec-after #'remove-props-done-msg nil proc))
ret)