]> git.eshelyaron.com Git - emacs.git/commitdiff
Improve docstrings
authorDmitry Gutov <dgutov@yandex.ru>
Mon, 30 Nov 2020 01:33:14 +0000 (03:33 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Mon, 30 Nov 2020 01:33:14 +0000 (03:33 +0200)
* lisp/progmodes/project.el (project-find-file)
(project-or-external-find-file): More accurate docstrings (bug#44588).

lisp/progmodes/project.el

index a395453491bfc5813d8478c81f910fa9a61cf4dc..39c3ca841727df391cebc733a9053da7175c9472 100644 (file)
@@ -745,7 +745,9 @@ pattern to search for."
 ;;;###autoload
 (defun project-find-file ()
   "Visit a file (with completion) in the current project.
-The completion default is the string at point."
+
+The completion default is the filename at point, determined by
+`thing-at-point' (whether such file exists or not)."
   (interactive)
   (let* ((pr (project-current t))
          (dirs (list (project-root pr))))
@@ -754,7 +756,9 @@ The completion default is the string at point."
 ;;;###autoload
 (defun project-or-external-find-file ()
   "Visit a file (with completion) in the current project or external roots.
-The completion default is the string at point."
+
+The completion default is the filename at point, determined by
+`thing-at-point' (whether such file exists or not)."
   (interactive)
   (let* ((pr (project-current t))
          (dirs (cons