diff options
| author | Dmitry Gutov <dgutov@yandex.ru> | 2020-06-26 03:33:13 +0300 |
|---|---|---|
| committer | Dmitry Gutov <dgutov@yandex.ru> | 2020-06-26 03:43:14 +0300 |
| commit | 733921edfebe54488143719fada303d2d5d35b29 (patch) | |
| tree | 8da861cd23b9b94feec0d7422af8bb1f31b45b0d | |
| parent | beaff813e1f744c93b7f40020f88dae1ef797596 (diff) | |
| download | emacs-733921edfebe54488143719fada303d2d5d35b29.tar.gz | |
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).
| -rw-r--r-- | lisp/progmodes/project.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index e1adabd2f97..add0e592f69 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -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 |
