Kaynağa Gözat

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.
Nicolas Goaziou 13 yıl önce
ebeveyn
işleme
29e633f7cd
1 değiştirilmiş dosya ile 2 ekleme ve 1 silme
  1. 2 1
      contrib/lisp/org-element.el

+ 2 - 1
contrib/lisp/org-element.el

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