From 3638097e5a4dfdba44dea05de8ea711bdea802db Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 8 Jan 2012 12:47:48 +0100 Subject: [PATCH] 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. --- contrib/lisp/org-element.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/contrib/lisp/org-element.el b/contrib/lisp/org-element.el index 9f42e4fdf..efb188b7a 100644 --- a/contrib/lisp/org-element.el +++ b/contrib/lisp/org-element.el @@ -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.