[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/embark a52e795659 5/7: Update embark-consult for change
From: |
ELPA Syncer |
Subject: |
[elpa] externals/embark a52e795659 5/7: Update embark-consult for changes to embark-collect |
Date: |
Sun, 20 Mar 2022 22:57:32 -0400 (EDT) |
branch: externals/embark
commit a52e7956593fba2f4d590c3c328cee3b6d89238c
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>
Update embark-consult for changes to embark-collect
---
embark-consult.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/embark-consult.el b/embark-consult.el
index 5a35677fc4..7d41bdb397 100644
--- a/embark-consult.el
+++ b/embark-consult.el
@@ -75,8 +75,6 @@
(defun embark-consult--collect-candidate ()
"Return candidate at point in collect buffer."
(and (derived-mode-p 'embark-collect-mode)
- (active-minibuffer-window)
- (eq (window-buffer (active-minibuffer-window)) embark-collect-from)
(get-text-property (point) 'embark--candidate)))
(add-hook 'consult--completion-candidate-hook
#'embark-consult--collect-candidate)
@@ -162,7 +160,9 @@ The elements of LINES are assumed to be values of category
`consult-line'."
"Upgrade consult-location cheap markers to real markers.
This function is meant to be added to `embark-collect-mode-hook'."
(when (eq embark--type 'consult-location)
- (mapc #'consult--get-location embark-collect-candidates)))
+ (let ((fn (if (consp (car embark-collect--candidates)) #'car #'identity)))
+ (mapc (lambda (x) (consult--get-location (funcall fn x)))
+ embark-collect--candidates))))
(setf (alist-get 'consult-location embark-collect-initial-view-alist)
'list)
- [elpa] externals/embark updated (5a74f42bd0 -> 3a9e5e1744), ELPA Syncer, 2022/03/20
- [elpa] externals/embark 3c6195e9ad 1/7: Initial removal of embark-collect-{live, completions}, ELPA Syncer, 2022/03/20
- [elpa] externals/embark 7ee2c06880 2/7: Make embark-collect variables private, ELPA Syncer, 2022/03/20
- [elpa] externals/embark 9ae1ad77ea 4/7: Remove embark-collect's initial-view interactive argument, ELPA Syncer, 2022/03/20
- [elpa] externals/embark 21d4ca14e3 3/7: Cache both annotations and "for display versions" of candidates, ELPA Syncer, 2022/03/20
- [elpa] externals/embark a52e795659 5/7: Update embark-consult for changes to embark-collect,
ELPA Syncer <=
- [elpa] externals/embark a7805f2491 6/7: Add embark-live back, ELPA Syncer, 2022/03/20
- [elpa] externals/embark 3a9e5e1744 7/7: Remove some old obsolete definitions, ELPA Syncer, 2022/03/20