master c7aab69e30f: Delete dir-mode VC backend method

Sean Whitton <[email protected]> Mon, 6 Jul 2026 11:50:18 -0400 (EDT)
Newsgroups gmane.emacs.diffs
Message-ID <[email protected]>
branch: master
commit c7aab69e30ffb8cd91df488d0cafe22bb7774877
Author: Sean Whitton <[email protected]>
Commit: Sean Whitton <[email protected]>

    Delete dir-mode VC backend method
    
    This overlapped with the existing support for a backend-specific
    minor mode.
    
    * lisp/vc/vc.el (dir-mode): Delete specification.
    (vc-dir-mode): De-declare.
    (vc-default-dir-mode): Delete.
    * etc/NEWS: Update.
---
 etc/NEWS      |  7 ++-----
 lisp/vc/vc.el | 10 ----------
 2 files changed, 2 insertions(+), 15 deletions(-)

diff --git a/etc/NEWS b/etc/NEWS
index 0a5bf6d8af6..6c743afbe2f 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -129,11 +129,8 @@ obsolete.
 *** VC-Dir now shows key binding hints.
 To hide these, you can customize the new user option
 'vc-dir-show-key-binding-hints' to nil.
-
----
-*** Backends can supply a derived mode for VC-Dir buffers.
-Backend authors can use the new backend methods 'dir-mode' and
-'dir-extra-hints'.
+Backends can supply additional hints using the new 'dir-extra-hints'
+backend method.
 
 ---
 *** VC-Dir doesn't process very large status output by default.
diff --git a/lisp/vc/vc.el b/lisp/vc/vc.el
index bbc87bb0a19..33e3e5dced2 100644
--- a/lisp/vc/vc.el
+++ b/lisp/vc/vc.el
@@ -208,12 +208,6 @@
 ;;   Return a string of additional key bindings hints for the *vc-dir*
 ;;   buffer header, or nil.
 ;;
-;; - dir-mode ()
-;;
-;;   Mode to use for the *vc-dir* buffer.  This defaults to
-;;   `vc-dir-mode' and is expected to be changed (if at all) to a
-;;   derived mode of `vc-dir-mode'.
-;;
 ;; - dir-printer (fileinfo)
 ;;
 ;;   Pretty print the `vc-dir-fileinfo' FILEINFO.
@@ -5643,10 +5637,6 @@ to provide the `find-revision' operation instead."
   (funcall update-function
            (mapcar (lambda (file) (list file 'up-to-date)) files)))
 
-(declare-function vc-dir-mode "vc-dir")
-
-(defun vc-default-dir-mode (_backend) (vc-dir-mode))
-
 (defalias 'vc-default-dir-extra-hints #'ignore)
 
 (defun vc-check-headers ()