[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#50576: 28.0.50; display-buffer-in-previous-window no longer accepts
From: |
Juri Linkov |
Subject: |
bug#50576: 28.0.50; display-buffer-in-previous-window no longer accepts window value for previous-window |
Date: |
Wed, 15 Sep 2021 09:48:33 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (x86_64-pc-linux-gnu) |
tags 50576 fixed
close 50576 28.0.50
thanks
>> Sorry, this was a wrong assumption. Does this patch correctly fix it?
>>
>> diff --git a/lisp/window.el b/lisp/window.el
>> index 2960384e15..1c795cf684 100644
>> --- a/lisp/window.el
>> +++ b/lisp/window.el
>> @@ -8363,7 +8363,7 @@ display-buffer-in-previous-window
>> (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)
>
> Yes, that seems to work. Thanks.
Thanks for the bug report. Now fixed.