From 03969ddcac1a3c34a2073b922e833997100d972b Mon Sep 17 00:00:00 2001 From: Sean Whitton Date: Sat, 10 Sep 2022 23:10:45 -0700 Subject: [PATCH] * lisp/vc/vc.el (vc-deduce-backend): Handle eshell-mode. --- lisp/vc/vc.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)))) -- 2.39.2