[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/anzu 1da06b0717 262/288: Don't use cl-loop for Emacs 27 bu
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/anzu 1da06b0717 262/288: Don't use cl-loop for Emacs 27 bug |
Date: |
Thu, 6 Jan 2022 03:58:59 -0500 (EST) |
branch: elpa/anzu
commit 1da06b071755984601cd38c910a088da330b2639
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>
Don't use cl-loop for Emacs 27 bug
---
anzu.el | 15 ++++++++++-----
1 file changed, 10 insertions(+), 5 deletions(-)
diff --git a/anzu.el b/anzu.el
index 9ab18f9092..2c43e268e8 100644
--- a/anzu.el
+++ b/anzu.el
@@ -222,11 +222,16 @@
result))))))
(defun anzu--where-is-here (positions here)
- (cl-loop for (start . end) in positions
- for i = 1 then (1+ i)
- when (and (>= here start) (<= here end))
- return i
- finally return 0))
+ ;; don't use loop for emacs 27 bug
+ (let ((poss positions)
+ (index 1)
+ (ret 0))
+ (while poss
+ (let ((pos (car poss)))
+ (if (and (>= here (car pos)) (<= here (cdr pos)))
+ (setq ret index poss nil)
+ (setq poss (cdr poss) index (1+ index)))))
+ ret))
(defun anzu--use-result-cache-p (input)
(and (eq (anzu--isearch-regexp-function) (car anzu--last-search-state))
- [nongnu] elpa/anzu 1f7ac26191 189/288: Just call isearch-symbol-regexp instead of constructing own regexp, (continued)
- [nongnu] elpa/anzu 1f7ac26191 189/288: Just call isearch-symbol-regexp instead of constructing own regexp, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 10bc7c5fbd 171/288: Merge pull request #41 from syohex/refactoring, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu db9e990940 179/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 8930374775 176/288: Fix case if s-expression cannot be compiled., ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu ef39357f0a 188/288: Use variable instead of function call, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 95caf0f382 219/288: Merge pull request #63 from tarsius/master, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu e2cb45487d 213/288: Merge pull request #60 from kosh04/fix-literal-replace, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu b791609fe8 226/288: Update document, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 722ed9a52c 256/288: Merge pull request #84 from syohex/update-minimum-emacs-version, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 61cb32aa61 278/288: reapply #93 by hand, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 1da06b0717 262/288: Don't use cl-loop for Emacs 27 bug,
ELPA Syncer <=
- [nongnu] elpa/anzu 5ac649fc77 264/288: Fix wrong count issue with case-sensitive search, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 3805a01572 272/288: "new maintainer" note in README.md, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 3345640004 269/288: update badges on README.md, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu e6c56ca8b2 261/288: Update face document, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu acaef89dca 027/288: Fix byte-compilation warning, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 169442a831 055/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu cd6d3441d9 062/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 31f1f8b817 089/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 138ebcb0e0 098/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu f73bab2744 100/288: Merge pull request #16 from syohex/fix-case-sensitive, ELPA Syncer, 2022/01/06