From 9822a6799a45d8f8efa0bad624c99994b2bd41a6 Mon Sep 17 00:00:00 2001 From: Carsten Dominik Date: Tue, 27 Apr 2010 12:00:03 +0200 Subject: [PATCH] Push a mark before the agenda can move point in a buffer Patch by Andreas Seltenreich. --- lisp/ChangeLog | 3 +++ lisp/org-agenda.el | 1 + 2 files changed, 4 insertions(+) diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 181143e07..21bbbcc69 100755 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2010-04-27 Carsten Dominik + * org-agenda.el (org-agenda-goto): Push a mark before changing + the position. + * org-footnote.el (org-footnote): New group. (org-footnote-section) (org-footnote-tag-for-non-org-mode-files): Fix typos. diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el index d8039163f..279d682ba 100644 --- a/lisp/org-agenda.el +++ b/lisp/org-agenda.el @@ -6082,6 +6082,7 @@ and by additional input from the age of a schedules or deadline entry." (pos (marker-position marker))) (switch-to-buffer-other-window buffer) (widen) + (push-mark) (goto-char pos) (when (org-mode-p) (org-show-context 'agenda)