aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2016-01-09 21:45:33 +0200
committerEli Zaretskii2016-01-09 21:45:33 +0200
commitcc140bcec665163790a8a15845f16dca39525425 (patch)
treefd37bf84e4061d4977f0831f5a1bcce664841fb8
parentf8208b69192359a97735d461f05060f6579df0f2 (diff)
downloademacs-cc140bcec665163790a8a15845f16dca39525425.tar.gz
emacs-cc140bcec665163790a8a15845f16dca39525425.zip
Document user-level functions in project.el
* lisp/progmodes/project.el (project-find-file) (project-or-external-find-file): Add doc strings.
-rw-r--r--etc/NEWS3
-rw-r--r--lisp/progmodes/project.el8
2 files changed, 10 insertions, 1 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 407d13b31b3..3ad2fb3253f 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -964,13 +964,14 @@ As a result of this, the following commands are now obsolete:
964The framework's Lisp API is still experimental and can change in major, 964The framework's Lisp API is still experimental and can change in major,
965backward-incompatible ways. 965backward-incompatible ways.
966 966
967---
967** New package Project 968** New package Project
968 969
969The new package Project provides generic infrastructure for dealing 970The new package Project provides generic infrastructure for dealing
970with projects. The main commands included in it are 971with projects. The main commands included in it are
971`project-find-file' and `project-find-regexp'. 972`project-find-file' and `project-find-regexp'.
972 973
973Like Xref, the project API is still experimental. 974The Lisp API of this package is still experimental.
974 975
975*** New variables 976*** New variables
976 977
diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el
index 5070bb0c8ac..fe28ed776b2 100644
--- a/lisp/progmodes/project.el
+++ b/lisp/progmodes/project.el
@@ -313,6 +313,10 @@ pattern to search for."
313 313
314;;;###autoload 314;;;###autoload
315(defun project-find-file () 315(defun project-find-file ()
316 "Visit a file in the current project's roots.
317
318This is like `find-file', but it limits the file-name completion
319candidates to the files within the current project roots."
316 (interactive) 320 (interactive)
317 (let* ((pr (project-current t)) 321 (let* ((pr (project-current t))
318 (dirs (project-roots pr))) 322 (dirs (project-roots pr)))
@@ -320,6 +324,10 @@ pattern to search for."
320 324
321;;;###autoload 325;;;###autoload
322(defun project-or-external-find-file () 326(defun project-or-external-find-file ()
327 "Visit a file in the current project's roots or external roots.
328
329This is like `find-file', but it limits the file-name completion
330candidates to the files within the current project roots and external roots."
323 (interactive) 331 (interactive)
324 (let* ((pr (project-current t)) 332 (let* ((pr (project-current t))
325 (dirs (append 333 (dirs (append