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

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

[elpa] externals/substitute 9ddf421c55 34/39: Rename private function fo


From: ELPA Syncer
Subject: [elpa] externals/substitute 9ddf421c55 34/39: Rename private function for clarity
Date: Mon, 16 Jan 2023 11:58:52 -0500 (EST)

branch: externals/substitute
commit 9ddf421c550eeb885208a84cb560668e23eae7aa
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Rename private function for clarity
---
 substitute.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/substitute.el b/substitute.el
index 15bc38a0a5..e85adb2bba 100644
--- a/substitute.el
+++ b/substitute.el
@@ -172,7 +172,7 @@ This is the subroutine of `substitute-target' and related."
                         target sub (length count)
                         (substitute--scope-description scope))))
 
-(defun substitute--target ()
+(defun substitute--determine-target ()
   "Return target or report an error.
 If the region is active, the target of the substitute is the text
 within the region's boundaries.  Otherwise the target is the
@@ -199,7 +199,7 @@ is a string that is provided at the minibuffer prompt.
 If the region is active, TARGET is the text within the region's
 boundaries." doc)
      (interactive
-      (let ((target (substitute--target)))
+      (let ((target (substitute--determine-target)))
         (list target
               (substitute--prompt target ,scope))))
      (substitute--operate target sub ,scope)))



reply via email to

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