]> git.eshelyaron.com Git - emacs.git/commit
More not-state-changing vc commands can be used from non-file buffers
authorJuri Linkov <juri@linkov.net>
Tue, 23 Jun 2020 23:54:30 +0000 (02:54 +0300)
committerJuri Linkov <juri@linkov.net>
Tue, 23 Jun 2020 23:54:30 +0000 (02:54 +0300)
commit4e04ca847fc04ad0b2845143e0788485de0ed997
tree4a9c7275c1213c5994723a0f2ee09e2c8ab423ee
parent35e881c5303c6ddf23b901bd2805971dc4ecf20b
More not-state-changing vc commands can be used from non-file buffers

* lisp/vc/vc.el (vc-deduce-fileset): Instead of checking for
log-view-mode, check for '(not buffer-file-name)' before trying to
get the backend for default-directory.  Remove the branch that
checks for '(not buffer-file-name)' and signals the error because
vc-responsible-backend used in previous condition already signals
its error.  (Bug#41974)
etc/NEWS
lisp/vc/vc.el