emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/consult 2827de3a0c 1/2: Rename argument


From: ELPA Syncer
Subject: [elpa] externals/consult 2827de3a0c 1/2: Rename argument
Date: Sun, 27 Feb 2022 17:57:27 -0500 (EST)

branch: externals/consult
commit 2827de3a0c8dab9ea1066e5ccad45b09035fef6b
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Rename argument
---
 consult.el | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/consult.el b/consult.el
index 2299c336ef..b06d6c28df 100644
--- a/consult.el
+++ b/consult.el
@@ -848,19 +848,19 @@ Otherwise the `default-directory' is returned."
       (t (format "%s (%s): " prompt (consult--abbreviate-directory dir))))
      edir)))
 
-(defun consult--project-root-default-function (&optional maybe-prompt)
+(defun consult--project-root-default-function (&optional may-prompt)
   "Return project root directory.
-When no project is found and MAYBE-PROMPT is non-nil ask the user."
-  (when-let (proj (project-current maybe-prompt))
+When no project is found and MAY-PROMPT is non-nil ask the user."
+  (when-let (proj (project-current may-prompt))
     (cond
      ((fboundp 'project-root) (project-root proj))
      ((fboundp 'project-roots) (car (project-roots proj))))))
 
-(defun consult--project-root (&optional maybe-prompt)
+(defun consult--project-root (&optional may-prompt)
   "Return project root as absolute path.
-When no project is found and MAYBE-PROMPT is non-nil ask the user."
+When no project is found and MAY-PROMPT is non-nil ask the user."
   (when-let (root (and consult-project-root-function
-                       (if maybe-prompt
+                       (if may-prompt
                            (condition-case nil
                                (funcall consult-project-root-function t)
                              (wrong-number-of-arguments



reply via email to

[Prev in Thread] Current Thread [Next in Thread]