[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/embark 9ae1ad77ea 4/7: Remove embark-collect's initial-
From: |
ELPA Syncer |
Subject: |
[elpa] externals/embark 9ae1ad77ea 4/7: Remove embark-collect's initial-view interactive argument |
Date: |
Sun, 20 Mar 2022 22:57:32 -0400 (EDT) |
branch: externals/embark
commit 9ae1ad77ea2159de560ba4e6a494672724526d19
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>
Remove embark-collect's initial-view interactive argument
I doubt this saw much use!
---
embark.el | 20 +++-----------------
1 file changed, 3 insertions(+), 17 deletions(-)
diff --git a/embark.el b/embark.el
index d0d82e7676..21bfe3c51c 100644
--- a/embark.el
+++ b/embark.el
@@ -2851,15 +2851,6 @@ Refresh the buffer afterwards."
(interactive)
(embark-collect--toggle 'tabulated-list-use-header-line t nil))
-(defun embark-collect--initial-view-arg ()
- "Translate current prefix arg to intial Embark Collect view.
-\\[universal-argument] means grid view, a prefix argument of 1
-means list view, anything else means proceed according to
-`embark-collect-initial-view-alist'."
- (list (pcase current-prefix-arg
- ('(4) 'grid)
- (1 'list))))
-
(defun embark-collect--update-candidates (buffer)
"Update candidates for Embark Collect BUFFER."
(pcase-let* ((`(,type . ,candidates)
@@ -2876,16 +2867,12 @@ means list view, anything else means proceed according
to
(setq embark--type type embark-collect--candidates candidates))))
;;;###autoload
-(defun embark-collect (&optional initial-view)
+(defun embark-collect ()
"Create an Embark Collect buffer.
-Optionally start in INITIAL-VIEW (either `list' or `grid')
-instead of what `embark-collect-initial-view-alist' specifies.
-Interactively, \\[universal-argument] means grid view, a prefix
-argument of 1 means list view.
To control the display, add an entry to `display-buffer-alist'
with key \"Embark Collect\"."
- (interactive (embark-collect--initial-view-arg))
+ (interactive)
(let ((from (current-buffer))
(buffer (generate-new-buffer "*Embark Collect*")))
@@ -2896,8 +2883,7 @@ with key \"Embark Collect\"."
(setq tabulated-list-use-header-line nil) ; default to no header
(add-hook 'tabulated-list-revert-hook #'embark-collect--revert nil t)
(setq embark-collect--view
- (or initial-view
- (alist-get embark--type embark-collect-initial-view-alist)
+ (or (alist-get embark--type embark-collect-initial-view-alist)
(alist-get t embark-collect-initial-view-alist)
'list))
(when (eq embark-collect--view 'zebra)
- [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 <=
- [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, 2022/03/20
- [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