1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-28 07:45:00 +00:00

project-known-roots: Rename and improve

* lisp/progmodes/project.el (project-known-project-roots):
Rename from 'project-known-roots'.  Update the docstring.  Make
sure the returned value is a list of strings.  Update the caller
(bug#41821).
This commit is contained in:
Dmitry Gutov 2020-06-26 03:33:13 +03:00
parent beaff813e1
commit 733921edfe

View File

@ -937,10 +937,10 @@ It's also possible to enter an arbitrary directory not in the list."
pr-dir)))
;;;###autoload
(defun project-known-roots ()
"Return a list of known project roots."
(defun project-known-project-roots ()
"Return the list of root directories of all known projects."
(project--ensure-read-project-list)
project--list)
(mapcar #'car project--list))
;;; Project switching