mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-06-14 04:21:24 +00:00
Revert "* lisp/progmodes/project.el (project-vc-dir): Make interactive-only."
This reverts commit 4c12da0888.
This commit is contained in:
parent
6370b66a87
commit
d813a8bf98
1 changed files with 6 additions and 5 deletions
|
|
@ -1608,15 +1608,16 @@ The current buffer's `default-directory' is available as part of
|
|||
(dired (project-root (project-current t))))
|
||||
|
||||
;;;###autoload
|
||||
(defun project-vc-dir ()
|
||||
(defun project-vc-dir (&optional truenameize)
|
||||
"Run VC-Dir in the current project's root.
|
||||
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
|
||||
of \\[vc-dir] when invoked interactively."
|
||||
(declare (interactive-only vc-dir))
|
||||
(interactive)
|
||||
(vc-dir (abbreviate-file-name
|
||||
(file-truename (project-root (project-current t))))))
|
||||
(interactive "p")
|
||||
(let ((root (project-root (project-current t))))
|
||||
(vc-dir (if truenameize
|
||||
(abbreviate-file-name (file-truename root))
|
||||
root))))
|
||||
|
||||
;;;###autoload
|
||||
(defun project-customize-dirlocals ()
|
||||
|
|
|
|||
Loading…
Reference in a new issue