فهرست منبع

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 14 سال پیش
والد
کامیت
29e633f7cd
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  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)