forked from mirrors/org-mode
org-element: Fix small bug when parsing visible headlines only
* contrib/lisp/org-element.el (org-element-parse-elements): Fix bug when restricting parsing to visible headlines only.
This commit is contained in:
parent
3010402b47
commit
3638097e5a
|
@ -3084,9 +3084,8 @@ Elements are accumulated into ACC."
|
|||
granularity
|
||||
visible-only
|
||||
(reverse element)))
|
||||
;; Case 4. Else, just accumulate ELEMENT, unless
|
||||
;; GRANULARITY is set to `headline'.
|
||||
((not (eq granularity 'headline)) element))))
|
||||
;; Case 4. Else, just accumulate ELEMENT.
|
||||
(t element))))
|
||||
acc)
|
||||
(org-skip-whitespace))
|
||||
;; Return result.
|
||||
|
|
Loading…
Reference in a new issue