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:
parent
c166bfbb1a
commit
29e633f7cd
|
@ -3028,7 +3028,8 @@ Nil values returned from FUN are ignored in the result."
|
|||
(funcall --check-blob --type types fun --blob))
|
||||
;; Limiting recursion to elements, and --BLOB only
|
||||
;; 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
|
||||
;; got a recursive type.
|
||||
((and (eq --category 'objects)
|
||||
|
|
Loading…
Reference in New Issue