Merge branch 'maint'

This commit is contained in:
Nicolas Goaziou 2013-09-11 12:23:42 +02:00
commit 44c5aa7315
2 changed files with 7 additions and 1 deletions

View File

@ -4736,7 +4736,7 @@ first element of current section."
;; In blank lines just after the headline, point still
;; belongs to the headline.
(throw 'exit
(progn (org-back-to-heading)
(progn (skip-chars-backward " \r\t\n")
(if (not keep-trail)
(org-element-headline-parser (point-max) t)
(list (org-element-headline-parser

View File

@ -2819,6 +2819,12 @@ Paragraph \\alpha."
(progn (search-forward "A")
(org-element-type
(org-element-property :parent (org-element-at-point)))))))
;; Special case: at a blank line just below a headline, return that
;; headline.
(should
(equal "H1" (org-test-with-temp-text "* H1\n \n* H2\n"
(forward-line)
(org-element-property :title (org-element-at-point)))))
;; Special case: at the very beginning of a table, return `table'
;; object instead of `table-row'.
(should