GNU bug report logs -
#50576
28.0.50; display-buffer-in-previous-window no longer accepts window value for previous-window
Previous Next
Reported by: Adam Porter <adam <at> alphapapa.net>
Date: Tue, 14 Sep 2021 00:44:02 UTC
Severity: normal
Tags: fixed
Fixed in version 28.0.50
Done: Juri Linkov <juri <at> linkov.net>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 50576 in the body.
You can then email your comments to 50576 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#50576
; Package
emacs
.
(Tue, 14 Sep 2021 00:44:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Adam Porter <adam <at> alphapapa.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 14 Sep 2021 00:44:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hi Juri, et al,
It seems the patch in this message:
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45688#116
which was installed causes the function
display-buffer-in-previous-window to fail when called with an alist
having the previous-window key set to a window value, because it calls
boundp on the value unconditionally rather than checking the type of
the value.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#50576
; Package
emacs
.
(Tue, 14 Sep 2021 06:45:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 50576 <at> debbugs.gnu.org (full text, mbox):
> It seems the patch in this message:
>
> https://debbugs.gnu.org/cgi/bugreport.cgi?bug=45688#116
>
> which was installed causes the function
> display-buffer-in-previous-window to fail when called with an alist
> having the previous-window key set to a window value, because it calls
> boundp on the value unconditionally rather than checking the type of
> the value.
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)
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#50576
; Package
emacs
.
(Tue, 14 Sep 2021 13:38:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 50576 <at> debbugs.gnu.org (full text, mbox):
Hi Juri,
On Tue, Sep 14, 2021 at 1:44 AM Juri Linkov <juri <at> linkov.net> wrote:
> 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.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#50576
; Package
emacs
.
(Wed, 15 Sep 2021 06:50:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 50576 <at> debbugs.gnu.org (full text, mbox):
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.
Added tag(s) fixed.
Request was from
Juri Linkov <juri <at> linkov.net>
to
control <at> debbugs.gnu.org
.
(Wed, 15 Sep 2021 06:50:02 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 28.0.50, send any further explanations to
50576 <at> debbugs.gnu.org and Adam Porter <adam <at> alphapapa.net>
Request was from
Juri Linkov <juri <at> linkov.net>
to
control <at> debbugs.gnu.org
.
(Wed, 15 Sep 2021 06:50:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 13 Oct 2021 11:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 2 years and 195 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.