diff options
| author | Juri Linkov | 2020-06-24 02:54:30 +0300 |
|---|---|---|
| committer | Juri Linkov | 2020-06-24 02:54:30 +0300 |
| commit | 4e04ca847fc04ad0b2845143e0788485de0ed997 (patch) | |
| tree | 4a9c7275c1213c5994723a0f2ee09e2c8ab423ee /etc | |
| parent | 35e881c5303c6ddf23b901bd2805971dc4ecf20b (diff) | |
| download | emacs-4e04ca847fc04ad0b2845143e0788485de0ed997.tar.gz emacs-4e04ca847fc04ad0b2845143e0788485de0ed997.zip | |
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)
Diffstat (limited to 'etc')
| -rw-r--r-- | etc/NEWS | 3 |
1 files changed, 3 insertions, 0 deletions
| @@ -173,6 +173,9 @@ directories with the help of new command 'dired-vc-next-action'. | |||
| 173 | 173 | ||
| 174 | ** Change Logs and VC | 174 | ** Change Logs and VC |
| 175 | 175 | ||
| 176 | *** More vc commands that don't change VC state can be used from non-file buffers. | ||
| 177 | Such non-file buffers should have default-directory under vc. | ||
| 178 | |||
| 176 | *** New command 'vc-dir-root' uses the root directory without asking. | 179 | *** New command 'vc-dir-root' uses the root directory without asking. |
| 177 | 180 | ||
| 178 | *** New commands 'vc-dir-mark-registered-files' (bound to '* r') and | 181 | *** New commands 'vc-dir-mark-registered-files' (bound to '* r') and |