emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] [patch] org-agenda-goto should push mark before moving point


From: Andreas Seltenreich
Subject: [Orgmode] [patch] org-agenda-goto should push mark before moving point
Date: Thu, 22 Apr 2010 22:57:48 +0200
User-agent: Gnus/5.110011 (No Gnus v0.11) Emacs/23.1 (gnu/linux)

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)




reply via email to

[Prev in Thread] Current Thread [Next in Thread]