0
0
Fork 1
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-08-27 19:02:52 +00:00

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:
Nicolas Goaziou 2012-01-08 12:47:48 +01:00
parent 3010402b47
commit 3638097e5a

View file

@ -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.