emacs-devel
[Top][All Lists]
Advanced

[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: martin rudalics
Subject: Re: May we have a variant of display-buffer-reuse-window that considers indirect buffers?
Date: Wed, 18 Dec 2024 10:08:39 +0100
User-agent: Mozilla Thunderbird

> 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

I included the facility that if there is a window whose buffer is the
base buffer of BUFFER use that window.  See the attached diff which I
did not test very thoroughly.

martin

Attachment: display-indirect-buffer.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]