[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/anzu a0a16ab869 108/288: Merge pull request #19 from syohe
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/anzu a0a16ab869 108/288: Merge pull request #19 from syohex/improve-prompt |
Date: |
Thu, 6 Jan 2022 03:58:44 -0500 (EST) |
branch: elpa/anzu
commit a0a16ab86935134b5c8f60054f612a9ae15340fa
Merge: 1ea6980019 a36458386d
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>
Merge pull request #19 from syohex/improve-prompt
Don't show default replacement in prompt
---
anzu.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/anzu.el b/anzu.el
index 55deb774e0..6ef82b2eb4 100644
--- a/anzu.el
+++ b/anzu.el
@@ -272,9 +272,9 @@
(if use-regexp " regexp" "")
(if use-region " in region" "")) )
-(defun anzu--query-prompt (use-region use-regexp)
+(defun anzu--query-prompt (use-region use-regexp at-cursor)
(let ((prompt (anzu--query-prompt-base use-region use-regexp)))
- (if query-replace-defaults
+ (if (and query-replace-defaults (not at-cursor))
(format "%s (default %s -> %s) " prompt
(query-replace-descr (car query-replace-defaults))
(query-replace-descr (cdr query-replace-defaults)))
@@ -519,7 +519,7 @@
(overlay-limit (anzu--overlay-limit))
(beg (anzu--region-begin use-region (anzu--begin-thing at-cursor
thing) backward))
(end (anzu--region-end use-region thing))
- (prompt (anzu--query-prompt use-region use-regexp))
+ (prompt (anzu--query-prompt use-region use-regexp at-cursor))
(delimited (and current-prefix-arg (not (eq current-prefix-arg '-))))
(curbuf (current-buffer))
(clear-overlay nil))
- [nongnu] elpa/anzu 3805a01572 272/288: "new maintainer" note in README.md, (continued)
- [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
- [nongnu] elpa/anzu 906287cb5e 104/288: Switch cl-lib.el from cl.el, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu a0a16ab869 108/288: Merge pull request #19 from syohex/improve-prompt,
ELPA Syncer <=
- [nongnu] elpa/anzu c26de0ecef 112/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 4b9c6479d8 117/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 24a2589f10 119/288: Merge pull request #23 from syohex/fix-replacement-issue, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 6cad7a027f 123/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu fb003540df 129/288: fix typo, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 9fc916b6de 131/288: Fix for symbol search and toggle in isearch-mode, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 0bdbfcb209 138/288: Improve case when input does not match anything in visiable range(#30), ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu af40f91a98 140/288: Merge pull request #31 from syohex/no-match-case, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 04ac39641e 143/288: Merge pull request #32 from syohex/fix-at-cursor-beginning-point, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu c61f6734b1 152/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06