summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2024-05-05 08:20:39 +0300
committerEli Zaretskii <eliz@gnu.org>2024-05-05 08:20:39 +0300
commit8098ad9679c7f5ea19493bdae18227f7a81b3eb4 (patch)
treee9bc4d51d8d49d739c3a1f6f3349ff78d9a34513 /lisp
parent370b216f08699bdd85b910868642df441c06306c (diff)
downloademacs-8098ad9679c7f5ea19493bdae18227f7a81b3eb4.tar.gz
; Improve documentation of a recent change
* lisp/progmodes/project.el (project-files-relative-names): * etc/NEWS: Improve documentation of 'project-files-relative-names'.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/progmodes/project.el9
1 files changed, 5 insertions, 4 deletions
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index b716d442aed..a3181340411 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -324,10 +324,11 @@ end it with `/'. DIR must be either `project-root' or one of
(cdr project))
(defvar project-files-relative-names nil
- "When non-nil, `project-files' is allowed to return relative names.
-The names will be relative to the project root. And this can only
-happen when all returned files are in the same directory. Meaning, the
-DIRS argument has to be nil or have only one element.")
+ "If non-nil, `project-files' is allowed to return relative file names.
+The file names should be relative to the project root. And this can
+only happen when all returned files are in the same directory.
+In other words, the DIRS argument of `project-files' has to be nil or a
+list of only one element.")
(cl-defgeneric project-files (project &optional dirs)
"Return a list of files in directories DIRS in PROJECT.