diff options
| author | Eli Zaretskii | 2016-01-09 21:45:33 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2016-01-09 21:45:33 +0200 |
| commit | cc140bcec665163790a8a15845f16dca39525425 (patch) | |
| tree | fd37bf84e4061d4977f0831f5a1bcce664841fb8 | |
| parent | f8208b69192359a97735d461f05060f6579df0f2 (diff) | |
| download | emacs-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/NEWS | 3 | ||||
| -rw-r--r-- | lisp/progmodes/project.el | 8 |
2 files changed, 10 insertions, 1 deletions
| @@ -964,13 +964,14 @@ As a result of this, the following commands are now obsolete: | |||
| 964 | The framework's Lisp API is still experimental and can change in major, | 964 | The framework's Lisp API is still experimental and can change in major, |
| 965 | backward-incompatible ways. | 965 | backward-incompatible ways. |
| 966 | 966 | ||
| 967 | --- | ||
| 967 | ** New package Project | 968 | ** New package Project |
| 968 | 969 | ||
| 969 | The new package Project provides generic infrastructure for dealing | 970 | The new package Project provides generic infrastructure for dealing |
| 970 | with projects. The main commands included in it are | 971 | with 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 | ||
| 973 | Like Xref, the project API is still experimental. | 974 | The 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 | |||
| 318 | This is like `find-file', but it limits the file-name completion | ||
| 319 | candidates 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 | |||
| 329 | This is like `find-file', but it limits the file-name completion | ||
| 330 | candidates 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 |