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

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

[nongnu] elpa/evil-numbers bea0c102af 088/145: Cleanup: use term amount


From: ELPA Syncer
Subject: [nongnu] elpa/evil-numbers bea0c102af 088/145: Cleanup: use term amount for both decimal/(hex/bin/octal) functions
Date: Thu, 6 Jan 2022 03:00:21 -0500 (EST)

branch: elpa/evil-numbers
commit bea0c102afef2042a7d163b55f255c8f8b484eb4
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>

    Cleanup: use term amount for both decimal/(hex/bin/octal) functions
---
 evil-numbers.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/evil-numbers.el b/evil-numbers.el
index 3eeb76005f..ab0c19a873 100644
--- a/evil-numbers.el
+++ b/evil-numbers.el
@@ -428,7 +428,7 @@ into ASCII text (use for subscript & superscript)."
 
     t))
 
-(defun evil-numbers--search-and-replace (skip-chars sign-group num-group inc 
base)
+(defun evil-numbers--search-and-replace (skip-chars sign-group num-group 
amount base)
   "Perform the increment/decrement on the current line.
 
 For SKIP-CHARS docs see `evil-numbers--match-from-skip-chars'.
@@ -436,7 +436,7 @@ NUM-GROUP is the match group used to evaluate the number.
 SIGN-GROUP is the match group used for the sign ('-' or '+').
 
 When all characters are found in sequence,
-replace number incremented by INC in BASE and return non-nil."
+replace number incremented by AMOUNT in BASE and return non-nil."
   (save-match-data
     (when (save-excursion
             ;; Skip backwards (as needed), there may be no
@@ -451,7 +451,7 @@ replace number incremented by INC in BASE and return 
non-nil."
                (concat (match-string sign-group)
                        (match-string num-group))
                base))
-             (num-next (+ inc num-prev))
+             (num-next (+ amount num-prev))
              (str-next
               (evil-numbers--format
                (abs num-next)



reply via email to

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