[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/embark af67f6d25b 7/7: Revert "Stylistic change"
From: |
ELPA Syncer |
Subject: |
[elpa] externals/embark af67f6d25b 7/7: Revert "Stylistic change" |
Date: |
Wed, 13 Apr 2022 16:57:30 -0400 (EDT) |
branch: externals/embark
commit af67f6d25b60616ace7433fe6ea6f732fb697ddd
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>
Revert "Stylistic change"
This reverts commit 2c9550f4a551b0aef16b341cb137c17a8cb885a2.
That introduced a bug: when the type was nil, you got a "No
candidates" message. :(
---
embark.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/embark.el b/embark.el
index c5477233bb..2b4a6c5c8a 100644
--- a/embark.el
+++ b/embark.el
@@ -2810,11 +2810,10 @@ candidate."
(defun embark-collect--update-candidates (buffer)
"Update candidates for Embark Collect BUFFER."
- (when-let ((transformed (embark--maybe-transform-candidates))
- ;; we need the originals for default action:
- (type (plist-get transformed :orig-type))
- (candidates (plist-get transformed :orig-candidates))
- (affixator (embark-collect--affixator type)))
+ (let* ((transformed (embark--maybe-transform-candidates))
+ (type (plist-get transformed :orig-type)) ; we need the originals for
+ (candidates (plist-get transformed :orig-candidates)) ; default action
+ (affixator (embark-collect--affixator type)))
(when (eq type 'file)
(let ((dir (buffer-local-value 'default-directory buffer)))
(setq candidates
@@ -2825,7 +2824,8 @@ candidate."
(setq candidates (funcall affixator candidates))
(with-current-buffer buffer
(setq embark--type type)
- (embark-collect--format-entries candidates))))
+ (embark-collect--format-entries candidates))
+ candidates))
(defun embark--collect (buffer-name)
"Create an Embark Collect buffer named BUFFER-NAME.
- [elpa] externals/embark updated (67ef67885a -> af67f6d25b), ELPA Syncer, 2022/04/13
- [elpa] externals/embark b415040c21 2/7: Simplify collect candidate storage, stop using revert, ELPA Syncer, 2022/04/13
- [elpa] externals/embark 72732dc1a4 5/7: Remove last trace of unused embark--candidate text property, ELPA Syncer, 2022/04/13
- [elpa] externals/embark 0e027c57da 1/7: Fix bug that kept embark-live from actually updating 😬, ELPA Syncer, 2022/04/13
- [elpa] externals/embark 0421e1de0f 3/7: Implement "revert = just rerun" for export, ELPA Syncer, 2022/04/13
- [elpa] externals/embark 72a1ae6495 4/7: revert=just rerun for collect buffers too, ELPA Syncer, 2022/04/13
- [elpa] externals/embark af67f6d25b 7/7: Revert "Stylistic change",
ELPA Syncer <=
- [elpa] externals/embark 2c9550f4a5 6/7: Stylistic change, ELPA Syncer, 2022/04/13