mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-06 11:50:51 -08:00
Support state changing VC operations in dired-mode on files (bug#34949)
* lisp/vc/vc.el (vc-deduce-fileset): Don't error out when observer is nil. (vc-dired-deduce-fileset): Add optional args 'state-model-only-files' and 'observer'. Check that all files are in a consistent state when state-model-only-files is non-nil. Error out on directories. * lisp/vc/vc-dispatcher.el (vc-dispatcher-browsing): Check dired-mode for derived-mode-p.
This commit is contained in:
parent
0c0fa1d5fd
commit
2b04ca05ad
3 changed files with 35 additions and 8 deletions
|
|
@ -746,7 +746,8 @@ the buffer contents as a comment."
|
|||
|
||||
(defun vc-dispatcher-browsing ()
|
||||
"Are we in a directory browser buffer?"
|
||||
(derived-mode-p 'vc-dir-mode))
|
||||
(or (derived-mode-p 'vc-dir-mode)
|
||||
(derived-mode-p 'dired-mode)))
|
||||
|
||||
;; These are unused.
|
||||
;; (defun vc-dispatcher-in-fileset-p (fileset)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue