From 733921edfebe54488143719fada303d2d5d35b29 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Fri, 26 Jun 2020 03:33:13 +0300 Subject: [PATCH] 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). --- lisp/progmodes/project.el | 6 +++--- 1 file 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 -- 2.39.5