emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/consult bbb53018ae: Disable preview for consult-buffer-


From: ELPA Syncer
Subject: [elpa] externals/consult bbb53018ae: Disable preview for consult-buffer-other-window (See #547)
Date: Sat, 9 Apr 2022 07:57:21 -0400 (EDT)

branch: externals/consult
commit bbb53018aea11612d95067577d6a636db3406712
Author: Daniel Mendler <mail@daniel-mendler.de>
Commit: Daniel Mendler <mail@daniel-mendler.de>

    Disable preview for consult-buffer-other-window (See #547)
---
 consult.el | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/consult.el b/consult.el
index 82f622f7c5..3d6499d319 100644
--- a/consult.el
+++ b/consult.el
@@ -4128,9 +4128,7 @@ Report progress and return a list of the results"
     (lambda (action cand)
       ;; Only preview in current window and other window.
       ;; Preview in frames and tabs is not possible since these don't get 
cleaned up.
-      (when (and (eq action 'preview)
-                 (memq consult--buffer-display
-                       '(switch-to-buffer switch-to-buffer-other-window)))
+      (when (and (eq action 'preview) (eq consult--buffer-display 
#'switch-to-buffer))
         (cond
          ((and cand (get-buffer cand))
           (consult--buffer-action cand 'norecord))



reply via email to

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