From: Amol Vaidya <amolvaidya06@gmail.com>
To: Ihor Radchenko <yantar92@posteo.net>
Cc: emacs-orgmode@gnu.org
Subject: Re: Org-Capture Window Behavior
Date: Sun, 22 Sep 2024 11:52:20 -0500 [thread overview]
Message-ID: <CAHBJKyU-bDG2UkPm53tJ7-P4kW=YjyizbTSSqEGoOuroxCYBzg@mail.gmail.com> (raw)
In-Reply-To: <875xqortcj.fsf@localhost>
[-- Attachment #1: Type: text/plain, Size: 4690 bytes --]
Hello,
Again, I apologize for sending this email to you twice Ihor. I keep
forgetting to hit reply-all. Anyway...
Thank you for your clarification. Just a minor point: my concern is that
org-capture is not adhering to general display-buffer settings rather than
specifically display-buffer-alist. In my case display-buffer-alist is nil
when I run emacs -q, but according to section 29.13.1 of the Elisp manual,
if display-buffer-alist is nil, then display-buffer should consult the
display-buffer-base-action user option to decide where to display a buffer.
In my setup, when I run emacs -q display-buffer-base-action has the
following value
((display-buffer--maybe-same-window
display-buffer-reuse-window
display-buffer--maybe-pop-up-frame-or-window
display-buffer-in-previous-window
display-buffer-use-some-window
display-buffer-pop-up-frame)).
So the steps to reproduce the behavior I'm encountering are as follows
1. Run emacs -q
2. C-x 3 C-x 3 to split the frame into three windows.
3. M-x org-capture [RET] t
At this point, only two windows are displayed, rather than the three that
were originally open. I'm not entirely familiar with what all the
display-functions in display-buffer-base-action do, but I don't believe any
of them should result in windows being deleted. This suggests that
org-capture may not be respecting that setting.
I also tried doing the following two alternative sets of steps, both
leading to the same behavior
TEST 1:
1. Run emacs -q
2. M-x ielm
3. In ielm, run (setq display-buffer-base-action
'((display-buffer-same-window)))
4. C-x 3 C-x 3 to split the frame into three windows
5. M-x org-capture [RET] t
------------------------------------------------------------------------------------------------------------
TEST 2:
1. Run emacs -q
2. M-x ielm
3. In ielm, run (add-to-list 'display-buffer-alist '("\\*CAPTURE*"
(display-buffer-same-window)))
4. C-x 3 C-x 3 to split the frame into three windows
5. M-x org-capture [RET] t
In both cases, after running org-capture, all other windows are deleted
except one, regardless of the settings in display-buffer-base-action or
display-buffer-alist. This leads me to believe that org-capture may not be
respecting those settings, particularly if delete-other-windows is being
called, as appears to be the case in org-capture-place-template.
Please let me know if I can provide any additional details or further
clarification.
Best regards,
Amol Vaidya
On Sun, Sep 22, 2024 at 3:20 AM Ihor Radchenko <yantar92@posteo.net> wrote:
> Amol Vaidya <amolvaidya06@gmail.com> writes:
>
> > (Apologies for replying to this twice Ihor, forgot to reply-all last
> time.)
> >
> > The linked video was from an emacs -q, so I have made no modifications to
> > display-buffer-alist, and my understanding is that emacs -q is equivalent
> > to an empty init file. If that's not correct, I'm not sure what kind of
> > reproducer I need to be providing.
>
> Yes, you are correct. emacs -q is an equivalent to the empty init file.
> And what you get with emacs -q is also expected - the default window
> placement.
>
> There is no bug in what you have shown - Org mode uses its defaults (we
> need to have some).
>
> > I am using Emacs 29.4. I am using org 9.7.11. I don't know what the
> > protocol for submitting long code excerpts is to this mailing list, so I
> > apologize if this is not the preferred method, but the output of
> > org-submit-bug-report is given below. If there is other information I
> > should provide, please let me know.
>
> I am trying to figure out your report that Org mode does not respect
> `display-buffer-alist'. Org mode, since Org 9.7, should respect user
> customization in `display-buffer-alist'.
>
> What I want from you is sufficient information for me to replicate the
> problem you are seeing on my computer. Without such information, I
> simply cannot diagnose the problem.
>
> The usual way to produce such information is providing detailed steps,
> starting from emacs -Q, that demonstrate the problem.
>
> In your case, it is probably something like
> 1. emacs -Q
> 2. Evaluate (setq display-buffer-alist ...)
> 3. Run M-x org-capture ...
> 4. Observe display-buffer-alist not being respected
>
> See also https://orgmode.org/manual/Feedback.html
>
> May you please provide such information for me?
>
> --
> Ihor Radchenko // yantar92,
> Org mode contributor,
> 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>
>
[-- Attachment #2: Type: text/html, Size: 7523 bytes --]
next prev parent reply other threads:[~2024-09-22 16:53 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-09-16 0:31 Org-Capture Window Behavior Amol Vaidya
2024-09-16 19:24 ` Ihor Radchenko
2024-09-16 20:34 ` Amol Vaidya
2024-09-17 18:48 ` Ihor Radchenko
2024-09-17 21:28 ` Amol Vaidya
2024-09-22 8:22 ` Ihor Radchenko
2024-09-22 16:52 ` Amol Vaidya [this message]
2024-09-22 17:02 ` Ihor Radchenko
2024-09-22 17:33 ` Amol Vaidya
2024-09-22 17:47 ` Ihor Radchenko
2024-09-22 18:26 ` Amol Vaidya
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='CAHBJKyU-bDG2UkPm53tJ7-P4kW=YjyizbTSSqEGoOuroxCYBzg@mail.gmail.com' \
--to=amolvaidya06@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=yantar92@posteo.net \
/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).