[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/embark 49b9bca8e5 1/2: Fix getting embark collect candi
From: |
ELPA Syncer |
Subject: |
[elpa] externals/embark 49b9bca8e5 1/2: Fix getting embark collect candidate for consult-preview-at-point |
Date: |
Fri, 31 Dec 2021 10:57:34 -0500 (EST) |
branch: externals/embark
commit 49b9bca8e5a9dd2cf56be82d9dd9ca4b8530bd1f
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>
Fix getting embark collect candidate for consult-preview-at-point
I broke this when I switched to using embark--for-display to simplify
the string for display in Embark collect buffers. In particular, the
button label no longer contains the tofu consult uses.
---
embark-consult.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/embark-consult.el b/embark-consult.el
index 40529001c1..7d2eb9ba80 100644
--- a/embark-consult.el
+++ b/embark-consult.el
@@ -77,7 +77,7 @@
(and (derived-mode-p 'embark-collect-mode)
(active-minibuffer-window)
(eq (window-buffer (active-minibuffer-window)) embark-collect-from)
- (ignore-errors (button-label (point)))))
+ (get-text-property (point) 'embark--candidate)))
(add-hook 'consult--completion-candidate-hook
#'embark-consult--collect-candidate)