branch: externals/consult
commit 38f0f39ce2e15ef353c6cb70435373e47cb9ae86
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>

    consult--find-file-temporarily: Always set variables
    
    We must ensure that the variables are set before
    potential package loads are triggered by find-file-noselect.
---
 consult.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/consult.el b/consult.el
index a1b5d4cd3d..3eeeffa886 100644
--- a/consult.el
+++ b/consult.el
@@ -1131,7 +1131,9 @@ MARKER is the cursor position."
 (defun consult--find-file-temporarily (name)
   "Open file NAME temporarily for preview."
   (cl-letf ((orig (mapcar (pcase-lambda (`(,k . ,_))
-                            (list k (default-value k) (symbol-value k)))
+                            (list k
+                                  (and (boundp k) (default-value k))
+                                  (and (boundp k) (symbol-value k))))
                           consult-preview-variables))
             ((default-value 'find-file-hook)
              (seq-filter (lambda (x)

Reply via email to