org-element: Fix af9c0fbf9143883ce31478a137a60cc69428d4d4
authorNicolas Goaziou <n.goaziou@gmail.com>
Wed, 11 Sep 2013 16:23:16 +0000 (18:23 +0200)
committerNicolas Goaziou <n.goaziou@gmail.com>
Wed, 11 Sep 2013 16:23:16 +0000 (18:23 +0200)
* lisp/org-element.el (org-element-at-point): Fix commit
  af9c0fbf9143883ce31478a137a60cc69428d4d4.

lisp/org-element.el

index e078d9f..ad461a7 100644 (file)
@@ -4740,6 +4740,7 @@ first element of current section."
              ;; belongs to the headline.
              (throw 'exit
                     (progn (skip-chars-backward " \r\t\n")
+                           (beginning-of-line)
                            (if (not keep-trail)
                                (org-element-headline-parser (point-max) t)
                              (list (org-element-headline-parser