org-element: Fix small bug in org-element-map

* contrib/lisp/org-element.el (org-element-map): Don't forget to apply
  function on paragraph even when no object should be mapped.  Just
  don't recurse in it.
This commit is contained in:
Nicolas Goaziou 2012-02-26 11:24:26 +01:00
parent c166bfbb1a
commit 29e633f7cd
1 changed files with 2 additions and 1 deletions

View File

@ -3028,7 +3028,8 @@ Nil values returned from FUN are ignored in the result."
(funcall --check-blob --type types fun --blob)) (funcall --check-blob --type types fun --blob))
;; Limiting recursion to elements, and --BLOB only ;; Limiting recursion to elements, and --BLOB only
;; contains objects. ;; contains objects.
((and (eq --category 'elements) (eq --type 'paragraph))) ((and (eq --category 'elements) (eq --type 'paragraph))
(funcall --check-blob --type types fun --blob))
;; No limitation on recursion, but --BLOB hasn't ;; No limitation on recursion, but --BLOB hasn't
;; got a recursive type. ;; got a recursive type.
((and (eq --category 'objects) ((and (eq --category 'objects)