From 86f27311250488e1a7cb686bebf6f36601278888 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Tue, 30 Oct 2012 13:05:56 +0100 Subject: [PATCH] Fix error when auto filling * lisp/org.el (org-adaptive-fill-function): All elements do not have a :post-affiliated property. --- lisp/org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/org.el b/lisp/org.el index 9ba39a726..f20fa4236 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -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 "")