summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2014-03-20 00:05:04 +0100
committerBastien Guerry <bzg@altern.org>2014-03-20 00:05:04 +0100
commit5d0e7068365c8274d0d7884f82f3c240baeda5fb (patch)
tree985b237af512bbcdbdcf5a709acf1f8d0e1ab0ab
parentdf10309489a6f6e1a001866be42480ba8cf9f5af (diff)
downloadorg-mode-5d0e7068365c8274d0d7884f82f3c240baeda5fb.tar.gz
org-agenda.el (org-agenda-switch-to): Ensure point is at the beginning of the heading
* org-agenda.el (org-agenda-switch-to): Ensure point is at the beginning of the heading.
-rw-r--r--lisp/org-agenda.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 13796e8..4d3481c 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -8560,6 +8560,7 @@ It also looks at the text of the entry itself."
(and delete-other-windows (delete-other-windows))
(widen)
(goto-char pos)
+ (org-back-to-heading t)
(when (derived-mode-p 'org-mode)
(org-show-context 'agenda)
(save-excursion