]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/window.el (display-buffer-in-previous-window): Add symbolp (bug#50576)
authorJuri Linkov <juri@linkov.net>
Wed, 15 Sep 2021 06:47:58 +0000 (09:47 +0300)
committerJuri Linkov <juri@linkov.net>
Wed, 15 Sep 2021 06:47:58 +0000 (09:47 +0300)
lisp/window.el

index 2960384e152c9eaff3281b0bb457d8fe0929be14..3b897eb0bac8e5c9d72905c0bd63606485b9a70d 100644 (file)
@@ -8363,7 +8363,8 @@ indirectly called by the latter."
            (throw 'best t)))))
     ;; When ALIST has a `previous-window' entry, that entry may override
     ;; anything we found so far.
-    (when (and previous-window (boundp previous-window))
+    (when (and previous-window (symbolp previous-window)
+               (boundp previous-window))
       (setq previous-window (symbol-value previous-window)))
     (when (and (setq window previous-window)
               (window-live-p window)