Merge branch 'maint'
This commit is contained in:
commit
44c5aa7315
|
@ -4736,7 +4736,7 @@ first element of current section."
|
||||||
;; In blank lines just after the headline, point still
|
;; In blank lines just after the headline, point still
|
||||||
;; belongs to the headline.
|
;; belongs to the headline.
|
||||||
(throw 'exit
|
(throw 'exit
|
||||||
(progn (org-back-to-heading)
|
(progn (skip-chars-backward " \r\t\n")
|
||||||
(if (not keep-trail)
|
(if (not keep-trail)
|
||||||
(org-element-headline-parser (point-max) t)
|
(org-element-headline-parser (point-max) t)
|
||||||
(list (org-element-headline-parser
|
(list (org-element-headline-parser
|
||||||
|
|
|
@ -2819,6 +2819,12 @@ Paragraph \\alpha."
|
||||||
(progn (search-forward "A")
|
(progn (search-forward "A")
|
||||||
(org-element-type
|
(org-element-type
|
||||||
(org-element-property :parent (org-element-at-point)))))))
|
(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'
|
;; Special case: at the very beginning of a table, return `table'
|
||||||
;; object instead of `table-row'.
|
;; object instead of `table-row'.
|
||||||
(should
|
(should
|
||||||
|
|
Loading…
Reference in New Issue