[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/anzu 17b3ab244b 074/288: Fix case, no symbol at cursor
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/anzu 17b3ab244b 074/288: Fix case, no symbol at cursor |
Date: |
Thu, 6 Jan 2022 03:58:41 -0500 (EST) |
branch: elpa/anzu
commit 17b3ab244b55c0d34a565b42927afb2035e5e687
Author: Syohei YOSHIDA <syohex@gmail.com>
Commit: Syohei YOSHIDA <syohex@gmail.com>
Fix case, no symbol at cursor
---
anzu.el | 14 ++++++++------
1 file changed, 8 insertions(+), 6 deletions(-)
diff --git a/anzu.el b/anzu.el
index 0f2710c365..9ac8844f99 100644
--- a/anzu.el
+++ b/anzu.el
@@ -436,12 +436,14 @@
(point)))
(defun anzu--query-from-at-cursor (prompt buf beg end overlay-limit)
- (let* ((symbol (thing-at-point 'symbol))
- (symbol-regexp (concat "\\_<" (regexp-quote symbol) "\\_>")))
- (setq anzu--total-matched
- (anzu--count-matched buf symbol-regexp beg end t overlay-limit))
- (force-mode-line-update)
- symbol))
+ (let ((symbol (thing-at-point 'symbol)))
+ (unless symbol
+ (error "No symbol at cursor!!"))
+ (let ((symbol-regexp (concat "\\_<" (regexp-quote symbol) "\\_>")))
+ (setq anzu--total-matched
+ (anzu--count-matched buf symbol-regexp beg end t overlay-limit))
+ (force-mode-line-update)
+ symbol)))
(defun anzu--thing-begin (thing)
(let ((bound (bounds-of-thing-at-point thing)))
- [nongnu] elpa/anzu 1fc36f460c 046/288: Implement anzu-query-regexp and anzu-query-regexp, (continued)
- [nongnu] elpa/anzu 1fc36f460c 046/288: Implement anzu-query-regexp and anzu-query-regexp, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu cdee5811bb 048/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 28953f86f9 051/288: bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 2bcd549c5a 054/288: Re-factoring: reduce global variables, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 9a055d9b0b 056/288: Add replacement feature like evil replace, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu ce021b7234 057/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 602aa46fe7 070/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 4d50eb8274 072/288: Implement anzu-query-replace-at-cursor-thing, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu ad0d7bce91 073/288: Update document, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 5718f08dc6 066/288: Fix case fold issue, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 17b3ab244b 074/288: Fix case, no symbol at cursor,
ELPA Syncer <=
- [nongnu] elpa/anzu c324833756 080/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu f50be69c0f 082/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu eb2b4ec103 084/288: fix link, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 156980dc69 092/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu c7ecd57c24 095/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 91f3478003 097/288: Merge pull request #15 from syohex/fix-nonprefix-case, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 189c0eaf9f 101/288: Bump up version and update Changes, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 0b3cf4b0a6 103/288: Merge pull request #17 from syohex/add-nonquery-replace-command, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 2a9785459b 111/288: Merge pull request #20 from syohex/enable-lexical-binding, ELPA Syncer, 2022/01/06
- [nongnu] elpa/anzu 8e92765ab7 113/288: Specify Emacs version, ELPA Syncer, 2022/01/06