[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/anzu 1965307a41 253/288: Fix byte-compile warning for Emac
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/anzu 1965307a41 253/288: Fix byte-compile warning for Emacs 25 or higher version |
Date: |
Thu, 6 Jan 2022 03:58:58 -0500 (EST) |
branch: elpa/anzu
commit 1965307a41aac029db2be007120e0c743226dba4
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>
Fix byte-compile warning for Emacs 25 or higher version
---
anzu.el | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/anzu.el b/anzu.el
index 1159e3525b..392c6cec9b 100644
--- a/anzu.el
+++ b/anzu.el
@@ -169,8 +169,12 @@
(and (not (memq anzu--last-command anzu-regexp-search-commands))
(not isearch-regexp)))
+(defsubst anzu--isearch-regexp-function ()
+ (or (bound-and-true-p isearch-regexp-function)
+ (bound-and-true-p isearch-word)))
+
(defun anzu--transform-input (str)
- (cond ((eq isearch-word 'isearch-symbol-regexp)
+ (cond ((eq (anzu--isearch-regexp-function) 'isearch-symbol-regexp)
(setq str (isearch-symbol-regexp str)))
((anzu--word-search-p)
(setq str (regexp-quote str)))
@@ -221,7 +225,7 @@
finally return 0))
(defun anzu--use-result-cache-p (input)
- (and (eq isearch-word (car anzu--last-search-state))
+ (and (eq (anzu--isearch-regexp-function) (car anzu--last-search-state))
(eq isearch-regexp (cdr anzu--last-search-state))
(string= input anzu--last-isearch-string)))
@@ -234,7 +238,7 @@
(setq anzu--total-matched (plist-get result :count)
anzu--overflow-p (plist-get result :overflow)
anzu--current-position curpos
- anzu--last-search-state (cons isearch-word isearch-regexp)
+ anzu--last-search-state (cons (anzu--isearch-regexp-function)
isearch-regexp)
anzu--last-isearch-string query)
(force-mode-line-update)))))
- [nongnu] elpa/anzu c05a8ac594 206/288: Merge pull request #57 from syohex/fix-typo, (continued)
- [nongnu] elpa/anzu c05a8ac594 206/288: Merge pull request #57 from syohex/fix-typo, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu de3d805c9a 211/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 9c821d182c 217/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu ed5e91b0c4 259/288: Add face at no-match case, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 9574e8140f 247/288: Merge pull request #76 from Fuco1/bugfix/fix-customize-type, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu be16738cb7 250/288: Merge pull request #80 from syohex/replace-with-region, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu d6ffd23cb5 221/288: Fix word replace in region, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 174b940c7e 241/288: Better example as well as #73, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu da766073d4 257/288: Add docstrings for all commands, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu a894a01110 230/288: Set default mode-line update function, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 1965307a41 253/288: Fix byte-compile warning for Emacs 25 or higher version,
ELPA Syncer <=
- [nongnu] elpa/anzu 1e5c3ca0b7 231/288: Use #' instead of ' for detecting typo, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 3845ead349 248/288: Untabify, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 4992a0c23c 223/288: Fix typo, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 72e86131a2 243/288: Merge pull request #75 from syohex/user-case-fold-search, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 7b8146c1eb 254/288: Improve alt attribute of images, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 6fded24b36 224/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu f2914907e9 255/288: Update minimum Emacs version, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 13401ab3c6 249/288: Don't search over bound, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu d257c79a7a 258/288: Merge pull request #85 from syohex/add-docstrings, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 0dbefcdd1f 252/288: Enforce use of spaces for indentation, ELPA Syncer, 2022/01/06