From: Ihor Radchenko <yantar92@posteo.net>
To: martin rudalics <rudalics@gmx.at>
Cc: "Juri Linkov" <juri@linkov.net>, "Sébastien Gendre" <seb@k-7.ch>,
"Org Mode List" <emacs-orgmode@gnu.org>,
emacs-devel@gnu.org
Subject: Re: May we have a variant of display-buffer-reuse-window that considers indirect buffers?
Date: Thu, 19 Dec 2024 17:47:13 +0000 [thread overview]
Message-ID: <87cyhn7efy.fsf@localhost> (raw)
In-Reply-To: <4a276720-259e-458a-a0ea-53cdd24e8ee6@gmx.at>
martin rudalics <rudalics@gmx.at> writes:
> > It seems to work, although somewhat different than I described.
> >
> > With your diff, in case (2), if BUFFER is what is passed to
> > `pop-to-buffer' and BUFFER2 is indirectly related buffer displayed in a
> > visible window, then BUFFER2 is replaced with BUFFER. I expected that
> > BUFFER2's window will be selected; nothing more.
>
> Hmmm... This is not really what 'display-buffer' is supposed to do. I
> have to disguise the fact that we wanted to display BUFFER. I attach a
> new patch.
Now, when you said that, it does feel not right indeed.
What I was concerned about is the situation my request originated from:
1. Org displays a *narrowed* indirect buffer
2. User requests to jump to a heading in base buffer of that indirect
buffer
3. Changing the buffer (even in the same window - with your patch) will
suddenly change the narrowing state.
That said, it is not a problem `display-buffer' is supposed to solve
anyway. The modified `get-buffer-window-list' from your patch may also
be used in the above scenario before deciding which buffer we want to
change to.
So, I'd myself vote for the first version of the patch if looking from
more general Emacs perspective.
--
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>
prev parent reply other threads:[~2024-12-19 17:46 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-05 8:02 Indirect follow mode in agenda: Display, edition and how to hide drawers Sébastien Gendre
2024-11-05 9:22 ` Kristoffer Balintona
2024-11-05 21:15 ` Karthik Chikmagalur
2024-11-08 15:05 ` Sébastien Gendre
2024-11-08 14:59 ` Sébastien Gendre
2024-11-10 23:34 ` Sébastien Gendre
2024-11-11 0:09 ` Sébastien Gendre
2024-11-11 17:59 ` Ihor Radchenko
2024-11-12 0:30 ` Sébastien Gendre
2024-11-12 19:17 ` Ihor Radchenko
2024-11-18 23:22 ` Sébastien Gendre
2024-12-15 15:09 ` Ihor Radchenko
2024-12-15 15:28 ` 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-16 7:49 ` May we have a variant of display-buffer-reuse-window that considers indirect buffers? Juri Linkov
2024-12-16 9:23 ` martin rudalics
2024-12-16 18:07 ` Ihor Radchenko
2024-12-17 9:01 ` martin rudalics
2024-12-17 18:11 ` Ihor Radchenko
2024-12-18 9:08 ` martin rudalics
2024-12-18 18:18 ` Ihor Radchenko
2024-12-18 19:13 ` martin rudalics
2024-12-19 17:47 ` Ihor Radchenko [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87cyhn7efy.fsf@localhost \
--to=yantar92@posteo.net \
--cc=emacs-devel@gnu.org \
--cc=emacs-orgmode@gnu.org \
--cc=juri@linkov.net \
--cc=rudalics@gmx.at \
--cc=seb@k-7.ch \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).