* lisp/progmodes/project.el (project-vc-dir): Make interactive-only.

This commit is contained in:
Sean Whitton 2026-06-10 10:00:13 +01:00
parent 02f22865f6
commit 4c12da0888

View file

@ -1608,16 +1608,15 @@ The current buffer's `default-directory' is available as part of
(dired (project-root (project-current t)))) (dired (project-root (project-current t))))
;;;###autoload ;;;###autoload
(defun project-vc-dir (&optional truenameize) (defun project-vc-dir ()
"Run VC-Dir in the current project's root. "Run VC-Dir in the current project's root.
If TRUENAMEIZE is non-nil, as it is interactively, then if the project If TRUENAMEIZE is non-nil, as it is interactively, then if the project
root is a symbolic link, resolve it first. This matches the behaviour root is a symbolic link, resolve it first. This matches the behaviour
of \\[vc-dir] when invoked interactively." of \\[vc-dir] when invoked interactively."
(interactive "p") (declare (interactive-only vc-dir))
(let ((root (project-root (project-current t)))) (interactive)
(vc-dir (if truenameize (vc-dir (abbreviate-file-name
(abbreviate-file-name (file-truename root)) (file-truename (project-root (project-current t))))))
root))))
;;;###autoload ;;;###autoload
(defun project-customize-dirlocals () (defun project-customize-dirlocals ()