Browse Source

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.
Bastien Guerry 7 years ago
parent
commit
5d0e706836
1 changed files with 1 additions and 0 deletions
  1. 1 0
      lisp/org-agenda.el

+ 1 - 0
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