[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/anzu 53db7f64b7 177/288: Reduce condition check
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/anzu 53db7f64b7 177/288: Reduce condition check |
Date: |
Thu, 6 Jan 2022 03:58:50 -0500 (EST) |
branch: elpa/anzu
commit 53db7f64b7924b9cfce9fecaed9b5a8e0c65143f
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>
Reduce condition check
---
anzu.el | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/anzu.el b/anzu.el
index ef061a71bb..a552421625 100644
--- a/anzu.el
+++ b/anzu.el
@@ -440,11 +440,12 @@
(defun anzu--compile-replace-text (str)
(let ((compiled (ignore-errors
(query-replace-compile-replacement str t))))
- (cond ((stringp compiled) compiled)
- ((and (consp compiled) (functionp (car compiled)))
- compiled)
- ((and (consp compiled) (stringp (car compiled)))
- (car compiled)))))
+ (when compiled
+ (cond ((stringp compiled) compiled)
+ ((and (consp compiled) (functionp (car compiled)))
+ compiled)
+ ((and (consp compiled) (stringp (car compiled)))
+ (car compiled))))))
(defun anzu--evaluate-occurrence (ov to-regexp replacements fixed-case
from-regexp)
(let ((from-string (overlay-get ov 'from-string))
- [nongnu] elpa/anzu cb70e6c611 145/288: Fix wrong counting total matched number when used default input, (continued)
- [nongnu] elpa/anzu cb70e6c611 145/288: Fix wrong counting total matched number when used default input, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu b600df38cb 144/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu ec0d1f5485 147/288: Merge pull request #33 from syohex/fix-replace-command-bugs, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu ab561fe896 151/288: Use symbol-value instead of eval-when-compile + defvar, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 439e904931 155/288: Enable case-sensitive replacement for at cursor commands, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 686b264468 158/288: Refactoring: better getting migemo variable, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu e664721a7f 157/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 137fc52ca2 159/288: Merge pull request #37 from syohex/improve-for-migemo, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu e782725f80 162/288: Support case sensitive highlighting, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu cf3370967b 170/288: Refactoring for evil-anzu, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 53db7f64b7 177/288: Reduce condition check,
ELPA Syncer <=
- [nongnu] elpa/anzu cb20bdcbfe 167/288: Merge pull request #40 from syohex/improve-replace-command, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu b723c16507 172/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu db819bfb06 184/288: Merge pull request #47 from syohex/fix-46, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 4d81f2f0cd 192/288: Fix order of conditions in cond, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu f41db6225d 194/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 07b7802d9d 212/288: Fix literal replace, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu b11642d49c 207/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 88a7059601 236/288: Implement isearch-query-replace- like commands, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 1eceed7498 196/288: Merge pull request #51 from syohex/highlight-matching-groups, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu dde4d83cfa 235/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06