From: Andreas Seltenreich <seltenreich@gmx.de>
To: emacs-orgmode@gnu.org
Subject: [patch] org-agenda-goto should push mark before moving point
Date: Thu, 22 Apr 2010 22:57:48 +0200 [thread overview]
Message-ID: <871ve7433n.fsf@gate450.dyndns.org> (raw)
Hi,
many commands in Emacs that move the point long distances push the mark
so you can go back using C-u C-<SPC>. org-agenda-goto doesn't do this,
and I found it a bit annoying that I have to navigate the outline again
to find back to where the point was before using the Agenda.
Patch attached.
regards,
andreas
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index c68038d..9f35069 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -6082,6 +6082,7 @@
(pos (marker-position marker)))
(switch-to-buffer-other-window buffer)
(widen)
+ (push-mark)
(goto-char pos)
(when (org-mode-p)
(org-show-context 'agenda)
next reply other threads:[~2010-04-22 20:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-22 20:57 Andreas Seltenreich [this message]
2010-04-23 6:35 ` [patch] org-agenda-goto should push mark before moving point Carsten Dominik
2010-04-23 8:42 ` Andreas Seltenreich
2010-04-27 10:00 ` Carsten Dominik
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=871ve7433n.fsf@gate450.dyndns.org \
--to=seltenreich@gmx.de \
--cc=emacs-orgmode@gnu.org \
/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).