GNU bug report logs - #36161
27.0.50; display-buffer-in-previous-window might choose not to use PREVIOUS-WINDOW

Previous Next

Package: emacs;

Reported by: Dmitry Gutov <dgutov <at> yandex.ru>

Date: Mon, 10 Jun 2019 20:30:02 UTC

Severity: normal

Found in version 27.0.50

Full log


Message #26 received at 36161 <at> debbugs.gnu.org (full text, mbox):

From: martin rudalics <rudalics <at> gmx.at>
To: Dmitry Gutov <dgutov <at> yandex.ru>, 36161 <at> debbugs.gnu.org
Subject: Re: bug#36161: 27.0.50; display-buffer-in-previous-window might
 choose not to use PREVIOUS-WINDOW
Date: Sun, 16 Jun 2019 10:16:39 +0200
>  > Hence it's more suitable for buffers popping up in special occasions
>  > (like, for example, when a bug occurred and the debugger should be
>  > entered) and less suitable for buffer editing.
>
> I have also noticed it's not always good for special buffers either, e.g. if I run xref-find-definitions, press q, and run it again, different windows will be used for the two times.

When a different window gets used there's usually a reason.  So I'd
need a recipe to tell you more about this ...

> So about that main use case (the Debugger), can it just exclude the selected window using inhibit-same-window? That would obviate the need for special logic in this case.

An 'inhibit-same-window' entry is the canonical way to "exclude" the
selected window.  A 'previous-window' entry is just a hint to "prefer"
some other window.

martin




This bug report was last modified 5 years and 362 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.