emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Ihor Radchenko <yantar92@posteo.net>
To: "Marvin J." <silbersplitter@googlemail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Allow org-agenda-switch-to to restore the previous window configuration
Date: Wed, 29 Mar 2023 13:44:41 +0000	[thread overview]
Message-ID: <87lejfn03a.fsf@localhost> (raw)
In-Reply-To: <CAH7LOt1Cu0vfQ83q9nt=UpLXQtoUSVKM0acd-rFCXONLQUHowA@mail.gmail.com>

"Marvin J." <silbersplitter@googlemail.com> writes:

> Org-agenda provides the possibility to automatically restore the previous
> window configuration after closing the agenda buffer using org-agenda-quit
> (bound to q). This is achieved by setting
> org-agenda-restore-windows-after-quit to t.
> However, there is also another way to "exit" the agenda, namely by calling
> org-agenda-switch-to (bound to RET) on an appropriate item. However, this
> command currently does not take the previous window configuration into
> account.

> I thus propose adding a new variable named e.g.
> org-agenda-restore-windows-after-switch that controls whether the command
> org-agenda-switch-to will restore the previous window configuration before
> switching to the Org mode file of the item at point.

Note that you can still achieve what you want using `org-agenda-after-show-hook'.

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>

      reply	other threads:[~2023-03-29 13:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-01 11:44 Allow org-agenda-switch-to to restore the previous window configuration Marvin J.
2023-03-29 13:44 ` 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:

  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=87lejfn03a.fsf@localhost \
    --to=yantar92@posteo.net \
    --cc=emacs-orgmode@gnu.org \
    --cc=silbersplitter@googlemail.com \


* 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


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).