[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: May we have a variant of display-buffer-reuse-window that considers
From: |
Ihor Radchenko |
Subject: |
Re: May we have a variant of display-buffer-reuse-window that considers indirect buffers? |
Date: |
Tue, 17 Dec 2024 18:11:20 +0000 |
martin rudalics <rudalics@gmx.at> writes:
> Could you please tell us what you would like 'display-buffer' to do
> without referring to org-mode. IIUC you want it to automatically detect
> that if a base buffer has been displayed in a window earlier and BUFFER
> is an indirect buffer sharing that base buffer, then it should try to
> use that window for the indirect buffer. Is that assumption correct?
Yup.
To be 100% clear, let me try to restate exactly what I have in mind.
I want to call something like
(pop-to-buffer BUFFER
'((display-buffer-reuse-window display-buffer-pop-up-window)
(reuse-indirect . t)))
1. If there is a window displaying BUFFER, switch to that window
2. If there is a window that is an indirect buffer of BUFFER or that
shares the same base buffer with BUFFER, switch to that window
3. Otherwise, pop up a new window displaying BUFFER
(2) is the feature I am failing to find.
--
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
- May we have a variant of display-buffer-reuse-window that considers indirect buffers? (was: Indirect follow mode in agenda: Display, edition and how to hide drawers), Ihor Radchenko, 2024/12/15
- Re: May we have a variant of display-buffer-reuse-window that considers indirect buffers?, Juri Linkov, 2024/12/16
- Re: May we have a variant of display-buffer-reuse-window that considers indirect buffers?, martin rudalics, 2024/12/16
- Re: May we have a variant of display-buffer-reuse-window that considers indirect buffers?, Ihor Radchenko, 2024/12/16
- Re: May we have a variant of display-buffer-reuse-window that considers indirect buffers?, martin rudalics, 2024/12/17
- Re: May we have a variant of display-buffer-reuse-window that considers indirect buffers?,
Ihor Radchenko <=
- Re: May we have a variant of display-buffer-reuse-window that considers indirect buffers?, martin rudalics, 2024/12/18
- Re: May we have a variant of display-buffer-reuse-window that considers indirect buffers?, Ihor Radchenko, 2024/12/18
- Re: May we have a variant of display-buffer-reuse-window that considers indirect buffers?, martin rudalics, 2024/12/18
- Re: May we have a variant of display-buffer-reuse-window that considers indirect buffers?, Ihor Radchenko, 2024/12/19
- Re: May we have a variant of display-buffer-reuse-window that considers indirect buffers?, martin rudalics, 2024/12/20
- Re: May we have a variant of display-buffer-reuse-window that considers indirect buffers?, Ihor Radchenko, 2024/12/21