mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 12:31:25 +00:00
vc-dir-refresh: Respect non-essential wrt saving buffers
* lisp/vc/vc-dir.el (vc-dir-refresh): If non-essential is non-nil, don't call vc-buffer-sync-fileset.
This commit is contained in:
parent
438af2764d
commit
7226082f46
1 changed files with 1 additions and 1 deletions
|
|
@ -1522,7 +1522,7 @@ Throw an error if another update process is in progress."
|
|||
(error "Another update process is in progress, cannot run two at a time")
|
||||
(let ((def-dir default-directory)
|
||||
(backend vc-dir-backend))
|
||||
(when vc-dir-save-some-buffers-on-revert
|
||||
(when (and vc-dir-save-some-buffers-on-revert (not non-essential))
|
||||
(vc-buffer-sync-fileset `(,vc-dir-backend (,def-dir)) t))
|
||||
(vc-set-mode-line-busy-indicator)
|
||||
;; Call the `dir-status' backend function.
|
||||
|
|
|
|||
Loading…
Reference in a new issue