Fix last change in doc strings of project.el
authorEli Zaretskii <eliz@gnu.org>
Fri, 19 Jun 2020 18:50:30 +0000 (21:50 +0300)
committerEli Zaretskii <eliz@gnu.org>
Fri, 19 Jun 2020 18:50:30 +0000 (21:50 +0300)
* lisp/progmodes/project.el (project-switch-to-buffer): More accurate
doc string.

lisp/progmodes/project.el

index c0c07ab409e989bca51ab8d6ca3a0ba076a5b190..be1b801ca2b2db63a911eb4a9a880054c994c14c 100644 (file)
@@ -775,7 +775,9 @@ Arguments the same as in `compile'."
 
 ;;;###autoload
 (defun project-switch-to-buffer ()
-  "Switch to another buffer that visits some file in the current project."
+  "Switch to another buffer that is related to the current project.
+A buffer is related to a project if its `default-directory'
+is inside the directory hierarchy of the project's root."
   (interactive)
   (let* ((root (project-root (project-current t)))
          (current-buffer (current-buffer))