[Top][All Lists]

[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 ()
       :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 
 ;;;;; 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]