]> code.delx.au - gnu-emacs/commitdiff
Document user-level functions in project.el
authorEli Zaretskii <eliz@gnu.org>
Sat, 9 Jan 2016 19:45:33 +0000 (21:45 +0200)
committerEli Zaretskii <eliz@gnu.org>
Sat, 9 Jan 2016 19:45:33 +0000 (21:45 +0200)
* lisp/progmodes/project.el (project-find-file)
(project-or-external-find-file): Add doc strings.

etc/NEWS
lisp/progmodes/project.el

index 407d13b31b38a98ed9a9a55fd044651f15a28b03..3ad2fb3253f7d42f7c2b70c73556563712a1b324 100644 (file)
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -964,13 +964,14 @@ As a result of this, the following commands are now obsolete:
 The framework's Lisp API is still experimental and can change in major,
 backward-incompatible ways.
 
+---
 ** New package Project
 
 The new package Project provides generic infrastructure for dealing
 with projects.  The main commands included in it are
 `project-find-file' and `project-find-regexp'.
 
-Like Xref, the project API is still experimental.
+The Lisp API of this package is still experimental.
 
 *** New variables
 
index 5070bb0c8acabae235513eae592822701b3e3d91..fe28ed776b2147298a84b48455f7f12e1071e0df 100644 (file)
@@ -313,6 +313,10 @@ pattern to search for."
 
 ;;;###autoload
 (defun project-find-file ()
+  "Visit a file in the current project's roots.
+
+This is like `find-file', but it limits the file-name completion
+candidates to the files within the current project roots."
   (interactive)
   (let* ((pr (project-current t))
          (dirs (project-roots pr)))
@@ -320,6 +324,10 @@ pattern to search for."
 
 ;;;###autoload
 (defun project-or-external-find-file ()
+  "Visit a file in the current project's roots or external roots.
+
+This is like `find-file', but it limits the file-name completion
+candidates to the files within the current project roots and external roots."
   (interactive)
   (let* ((pr (project-current t))
          (dirs (append