From 8df2957df167bf34220fbf6a059752759ef41f4a Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sun, 21 Jun 2020 19:20:37 +0300 Subject: [PATCH] Improve doc strings of 'project-shell' and 'project-eshell' * lisp/progmodes/project.el (project-shell, project-eshell): Doc fixes. --- lisp/progmodes/project.el | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lisp/progmodes/project.el b/lisp/progmodes/project.el index 8f6301c6020..bfbe2362721 100644 --- a/lisp/progmodes/project.el +++ b/lisp/progmodes/project.el @@ -716,10 +716,10 @@ PREDICATE, HIST, and DEFAULT have the same meaning as in ;;;###autoload (defun project-shell () "Start an inferior shell in the current project's root directory. -If such buffer already exists (one or several), switch to the one -that was created first. -With \\[universal-argument] prefix, create a new inferior shell -buffer with uniquified name." +If a buffer already exists for running a shell in the project's root, +switch to it. Otherwise, create a new shell buffer. +With \\[universal-argument] prefix arg, create a new inferior shell buffer even +if one already exist." (interactive) (let* ((default-directory (project-root (project-current t))) (default-project-shell-name @@ -735,10 +735,10 @@ buffer with uniquified name." ;;;###autoload (defun project-eshell () "Start Eshell in the current project's root directory. -If such buffer already exists (one or several), switch to the one -that was created first. -With \\[universal-argument] prefix, create a new Eshell buffer -with uniquified name." +If a buffer already exists for running Eshell in the project's root, +switch to it. Otherwise, create a new Eshell buffer. +With \\[universal-argument] prefix arg, create a new Eshell buffer even +if one already exist." (interactive) (let* ((default-directory (project-root (project-current t))) (eshell-buffer-name -- 2.39.5