]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/vc/vc.el (vc-deduce-backend): Handle eshell-mode.
authorSean Whitton <spwhitton@spwhitton.name>
Sun, 11 Sep 2022 06:10:45 +0000 (23:10 -0700)
committerSean Whitton <spwhitton@spwhitton.name>
Sun, 11 Sep 2022 06:10:45 +0000 (23:10 -0700)
lisp/vc/vc.el

index 6df5f3cf7d7529fa9a715e5a56fc1de97275ac78..c4f0671d6435269bb124a13244f26e346d9901c2 100644 (file)
@@ -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))))