From: Sean Whitton Date: Sun, 11 Sep 2022 06:10:45 +0000 (-0700) Subject: * lisp/vc/vc.el (vc-deduce-backend): Handle eshell-mode. X-Git-Tag: emacs-29.0.90~1856^2~611 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=03969ddcac1a3c34a2073b922e833997100d972b;p=emacs.git * lisp/vc/vc.el (vc-deduce-backend): Handle eshell-mode. --- diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el index 6df5f3cf7d7..c4f0671d643 100644 --- a/lisp/vc/vc.el +++ b/lisp/vc/vc.el @@ -1050,7 +1050,8 @@ Within directories, only files already under version control are noticed." ((derived-mode-p 'log-edit-mode) log-edit-vc-backend) ((derived-mode-p 'diff-mode) diff-vc-backend) ;; Maybe we could even use comint-mode rather than shell-mode? - ((derived-mode-p 'dired-mode 'shell-mode 'compilation-mode) + ((derived-mode-p + 'dired-mode 'shell-mode 'eshell-mode 'compilation-mode) (ignore-errors (vc-responsible-backend default-directory))) (vc-mode (vc-backend buffer-file-name))))