[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/anzu 3a7fcf2096 094/288: Merge pull request #14 from syohe
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/anzu 3a7fcf2096 094/288: Merge pull request #14 from syohex/fix-increasing-anzuinfo-issue |
Date: |
Thu, 6 Jan 2022 03:58:43 -0500 (EST) |
branch: elpa/anzu
commit 3a7fcf2096010fe21fe9b5c202f5da1cde3b70c8
Merge: 156980dc69 81b4eb6e29
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>
Merge pull request #14 from syohex/fix-increasing-anzuinfo-issue
Fix increasing anzu information in mode-line issue(#13)
---
anzu.el | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/anzu.el b/anzu.el
index 7a49a14670..fd58df937a 100644
--- a/anzu.el
+++ b/anzu.el
@@ -194,9 +194,11 @@
anzu--last-isearch-string isearch-string)
(force-mode-line-update)))))
+(defconst anzu--mode-line-format '(:eval (anzu--update-mode-line)))
+
(defsubst anzu--mode-line-not-set-p ()
(and (listp mode-line-format)
- (equal (car mode-line-format) '(:eval (anzu--update-mode-line)))))
+ (member anzu--mode-line-format mode-line-format)))
(defun anzu--cons-mode-line-search ()
(anzu--cons-mode-line 'search))
@@ -204,8 +206,7 @@
(defun anzu--cons-mode-line (state)
(setq anzu--state state)
(when (and anzu-cons-mode-line-p (not (anzu--mode-line-not-set-p)))
- (setq mode-line-format (cons '(:eval (anzu--update-mode-line))
- mode-line-format))))
+ (setq mode-line-format (cons anzu--mode-line-format mode-line-format))))
(defsubst anzu--reset-status ()
(setq anzu--total-matched 0
@@ -217,7 +218,7 @@
(defun anzu--reset-mode-line ()
(anzu--reset-status)
(when (and anzu-cons-mode-line-p (anzu--mode-line-not-set-p))
- (setq mode-line-format (cdr mode-line-format))))
+ (setq mode-line-format (delete anzu--mode-line-format mode-line-format))))
(defsubst anzu--format-here-position (here total)
(if (and anzu--overflow-p (zerop here))
- [nongnu] elpa/anzu e39deb4aec 011/288: Add comment section, (continued)
- [nongnu] elpa/anzu e39deb4aec 011/288: Add comment section, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 6fda98326a 024/288: input is regexp if isearch-regexp is non-nil, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 9ec5a834cf 025/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 8f91b00c91 028/288: Improve the documentation a bit, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu b644e9d067 034/288: Better one-line description, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 06ae1b1f7e 035/288: Merge pull request #9 from purcell/patch-1, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 06f4cf2fe7 037/288: Introduce anzu-minimum-input-length, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu e82b3d4236 069/288: Use delimiter regexp at anzu-query-replace-at-cursor, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu b211f9a50f 067/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 4f024cd623 081/288: Clear last input cache after isearch command, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 3a7fcf2096 094/288: Merge pull request #14 from syohex/fix-increasing-anzuinfo-issue,
ELPA Syncer <=
- [nongnu] elpa/anzu 537b8bfd36 071/288: Add autoload cookie, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 6b01763088 077/288: Improve replace regular expression, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu abd5953eac 018/288: Add Installation section, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 4cfbddbc07 020/288: Reset match count variables in isearch-mode-end-hook, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu de70e2fa4a 031/288: Enable mode unconditionally in examples, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 2b88e1fcbc 021/288: Improve for not regexp search commands, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 5e6bad85d4 036/288: bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 169cf55674 044/288: Use previous result if regexp validation is failed, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu d256c967f3 052/288: Fix message in mode-line at replace command, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 413bd09ebc 079/288: Fix different behavior from query-replace-regexp, ELPA Syncer, 2022/01/06