mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-22 07:09:54 +00:00
Fix "vc-print-log does not erase buffer" and associated problems
* lisp/vc/vc.el (vc-deduce-fileset): Make sure to retain the buffer switch (if it did), bug#63949.
This commit is contained in:
parent
d507aa7336
commit
fdc1a12ed1
@ -1121,10 +1121,15 @@ possible values of STATE are explained in `vc-state', and MODEL in
|
||||
the returned list.
|
||||
|
||||
BEWARE: this function may change the current buffer."
|
||||
(with-current-buffer (or (buffer-base-buffer) (current-buffer))
|
||||
(vc-deduce-fileset-1 not-state-changing
|
||||
allow-unregistered
|
||||
state-model-only-files)))
|
||||
(let (new-buf res)
|
||||
(with-current-buffer (or (buffer-base-buffer) (current-buffer))
|
||||
(setq res
|
||||
(vc-deduce-fileset-1 not-state-changing
|
||||
allow-unregistered
|
||||
state-model-only-files))
|
||||
(setq new-buf (current-buffer)))
|
||||
(set-buffer new-buf)
|
||||
res))
|
||||
|
||||
(defun vc-deduce-fileset-1 (not-state-changing
|
||||
allow-unregistered
|
||||
|
Loading…
Reference in New Issue
Block a user