GNU bug report logs -
#20020
25.0.50; `info-display-manual' should reuse existing window where buffer is displayed
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Fri, 6 Mar 2015 19:17:02 UTC
Severity: wishlist
Found in version 25.0.50
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #24 received at 20020 <at> debbugs.gnu.org (full text, mbox):
>> In my case, Info buffers (*info* and *info<N>*) are in dedicated
>> windows. I expect `info-display-manual' to select such an existing
>> window. That is, if the Calc manual is already displayed in an Info
>> buffer and I use `M-x info-display-manual' from some other buffer, I
>> expect the existing window showing that manual to be selected (and its
>> frame raised and focused, if necessary).
>>
>> Instead, `info-display-manual' displays the manual in the same window
>> where I invoke it, resulting in two windows (and frames in my case)
>> showing the same Info manual.
>
> Makes sense. I've now done this in Emacs 27, but while writing the
> code, it struck me that there has to be a ready-made function for this
> somewhere already. I had a peek through the plethora of
> switch-to/pop-to functions, but I didn't find anything that did exactly
> this...
>
> Does anybody know? In short: If there's a window that has the buffer,
> then that window should be selected, and its frame popped to the top
> (and given focus). If not, it should work like `switch-to-buffer'.
I'm not sure, maybe Martin could confirm this, but very likely
you can use display-buffer-reuse-window here.
This bug report was last modified 5 years and 225 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.