[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/evil-numbers a65dbc5094 123/145: Cleanup: remove nil for e
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/evil-numbers a65dbc5094 123/145: Cleanup: remove nil for empty body |
Date: |
Thu, 6 Jan 2022 03:00:24 -0500 (EST) |
branch: elpa/evil-numbers
commit a65dbc50947fd8b1b09dc213965cad059426e704
Author: Campbell Barton <ideasman42@gmail.com>
Commit: Campbell Barton <ideasman42@gmail.com>
Cleanup: remove nil for empty body
---
evil-numbers.el | 18 ++++++++----------
1 file changed, 8 insertions(+), 10 deletions(-)
diff --git a/evil-numbers.el b/evil-numbers.el
index a4fadf5058..e7e39dca2b 100644
--- a/evil-numbers.el
+++ b/evil-numbers.el
@@ -337,16 +337,14 @@ replace number incremented by AMOUNT in BASE and return
non-nil."
;; Maintain case.
(when do-case
+ ;; Upper case (already set), no need to handle here.
(cond
- ;; Upper case (already set).
- ((eq evil-numbers-case 'upcase)
- nil)
- ((eq evil-numbers-case 'downcase)
- (setq str-next (downcase str-next)))
;; Keep current case.
- (t
+ ((null evil-numbers-case)
(when (eq -1 (or (evil-numbers--case-category str-prev -1) -1))
- (setq str-next (downcase str-next))))))
+ (setq str-next (downcase str-next))))
+ ((eq evil-numbers-case 'downcase)
+ (setq str-next (downcase str-next)))))
;; Replace the sign (as needed).
(cond
@@ -439,6 +437,8 @@ Return non-nil on success, leaving the point at the end of
the number."
;; if `evil-numbers--search-and-replace' cannot parse it - that's fine,
;; keep searching until `end'
;; This avoids doubling up on number parsing logic.
+ ;;
+ ;; Note that the while body is empty.
(while (and
;; Found item, exit the loop.
(null
@@ -460,9 +460,7 @@ Return non-nil on success, leaving the point at the end of
the number."
evil-numbers--chars-superscript
evil-numbers--chars-subscript
"]")
- end t))
- ;; Empty while body.
- nil))
+ end t))))
found))
- [nongnu] elpa/evil-numbers adda2cc221 083/145: Cleanup: use private function name, (continued)
- [nongnu] elpa/evil-numbers adda2cc221 083/145: Cleanup: use private function name, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 0934e38a76 099/145: README: various minor updates, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 299e0418ca 093/145: Cleanup: remove duplicate number search logic, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 445943fbce 082/145: Fix #17 bin/octal/hex numbers don't support becoming negative, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 79daec88d5 110/145: Cleanup: sort code into sections, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers b88595d46b 112/145: Cleanup: reduce vertical space use, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers a427fda95e 111/145: Update README.org, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers a01fa6b83a 106/145: Rename evil-numbers/padDefault to evil-numbers-pad-default, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 01c68921b5 114/145: README.org: update keymap examples, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 8d84bd3763 108/145: Cleanup: remove strict number searching logic, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers a65dbc5094 123/145: Cleanup: remove nil for empty body,
ELPA Syncer <=
- [nongnu] elpa/evil-numbers bce451b700 137/145: Use message instead of error when no number is found, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 6087ef48b9 140/145: Tests: run increment operations at different offsets, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 8ce0066fa4 143/145: Tests: rename evil-numbers-test.el to evil-numbers-tests.el, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers d7a3e6ddec 129/145: Add evil to requirements, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 11883bc3a3 124/145: Fix incremental regression in cleanup from 7602f3b4842f4ec149d3b8ed32c9da9f771597c3, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers f48504348f 121/145: Add evil-numbers-case option, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 6ff686be13 120/145: Cleanup: remove autoload on defcustom, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 9423e4cb8f 142/145: Tests: add simple-hex-negative-to-positive, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 8761f55167 144/145: Cleanup: redundant group usage, ELPA Syncer, 2022/01/06
- [nongnu] elpa/evil-numbers 061de6f895 139/145: Tests: watch evil-numbers.el as well as the tests, ELPA Syncer, 2022/01/06