diff options
author | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2014-08-31 19:11:29 +0200 |
---|---|---|
committer | Nicolas Goaziou <mail@nicolasgoaziou.fr> | 2014-08-31 19:11:29 +0200 |
commit | 2df0785fbdcac4e343c9ac801b6c1cfcf3887bbf (patch) | |
tree | 4f623d37ec40359213ff62ed310169b9aabb3918 | |
parent | 21258060ad0f46be2d967fda6c6346a7f5723b8c (diff) | |
download | org-mode-2df0785fbdcac4e343c9ac801b6c1cfcf3887bbf.tar.gz |
org-element: Complete 2125806
* lisp/org-element.el (org-element--parse-to): Do not bother checking
for a planning line at the beginning of buffer.
-rw-r--r-- | lisp/org-element.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/org-element.el b/lisp/org-element.el index d70cd99..2eca350 100644 --- a/lisp/org-element.el +++ b/lisp/org-element.el @@ -5236,10 +5236,10 @@ the process stopped before finding the expected result." ;; buffer. ((not cached) (when (org-with-limited-levels (outline-previous-heading)) - (forward-line)) + (setq mode 'planning) + (forward-line)) (skip-chars-forward " \r\t\n") - (beginning-of-line) - (setq mode 'planning)) + (beginning-of-line)) ;; Cache returned exact match: return it. ((= pos begin) (throw 'exit (if syncp (org-element-property :parent cached) cached))) |