Fix error when auto filling
authorNicolas Goaziou <n.goaziou@gmail.com>
Tue, 30 Oct 2012 12:05:56 +0000 (13:05 +0100)
committerNicolas Goaziou <n.goaziou@gmail.com>
Tue, 30 Oct 2012 12:05:56 +0000 (13:05 +0100)
* lisp/org.el (org-adaptive-fill-function): All elements do not have
  a :post-affiliated property.

lisp/org.el

index 9ba39a7..f20fa42 100644 (file)
@@ -21221,7 +21221,7 @@ meant to be filled."
                                     (org-element-at-point)))
            (type (org-element-type element))
            (post-affiliated (org-element-property :post-affiliated element)))
-       (unless (< p post-affiliated)
+       (unless (and post-affiliated (< p post-affiliated))
         (case type
           (comment (looking-at "[ \t]*# ?") (match-string 0))
           (footnote-definition "")