[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/consult 8a22414 4/4: Reintroduce consult--cached-buffer
From: |
ELPA Syncer |
Subject: |
[elpa] externals/consult 8a22414 4/4: Reintroduce consult--cached-buffers to avoid breakage |
Date: |
Sun, 25 Jul 2021 15:57:08 -0400 (EDT) |
branch: externals/consult
commit 8a224147506bb6a1e131753d43fa963e48fddb70
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>
Reintroduce consult--cached-buffers to avoid breakage
consult-notmuch by @jaor uses this function currently.
(defun consult-notmuch--interesting-buffers ()
(consult--buffer-query
:as (lambda (buf)
(and (notmuch-interesting-buffer buf)
(buffer-name buf)))))
---
consult.el | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/consult.el b/consult.el
index 364fc37..14e26dc 100644
--- a/consult.el
+++ b/consult.el
@@ -3517,6 +3517,12 @@ The command supports previewing the currently selected
theme."
;;;;; Command: consult-buffer
+;; Used by consult-notmuch.el, will be removed.
+(defun consult--cached-buffers ()
+ "Obsolete function."
+ (consult--buffer-query :sort 'visibility))
+(make-obsolete 'consult--cached-buffers 'consult--buffer-query "0.9")
+
(defun consult--buffer-sort-alpha (buffers)
"Sort BUFFERS alphabetically."
(sort buffers