* [BUG] org-agenda-tree-to-indirect-buffer does not respect org-indirect-buffer-display value
@ 2024-05-09 17:40 JV
2024-05-11 13:26 ` Ihor Radchenko
0 siblings, 1 reply; 2+ messages in thread
From: JV @ 2024-05-09 17:40 UTC (permalink / raw)
To: emacs-orgmode
`org-agenda-tree-to-indirect-buffer' does not respect the
`org-indirect-buffer-display' value of 'current-window unless invoked
with a prefix arg.
The function does respect all other values for
`org-indirect-buffer-display'. And it does respect the value
'current-window when the function is called with a prefix arg.
However, without prefix arg, 'current-window and 'other-window are
treated the same and call to `split-window' is made.
Modifying the initial lines of `org-agenda-tree-to-indirect-buffer':
(if current-prefix-arg
(org-agenda-do-tree-to-indirect-buffer arg)
to be:
(if (or current-prefix-arg
(eq org-indirect-buffer-display 'current-window))
(org-agenda-do-tree-to-indirect-buffer arg)
produces the behavior I would expect. This may or may not be the ideal
fix, but it seems viable and simple.
Org mode version 9.6.29
GNU Emacs 29.3
- Jeff
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-05-11 13:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-09 17:40 [BUG] org-agenda-tree-to-indirect-buffer does not respect org-indirect-buffer-display value JV
2024-05-11 13:26 ` Ihor Radchenko
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).