summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2012-10-30 18:38:39 +0100
committerNicolas Goaziou <n.goaziou@gmail.com>2012-10-30 18:38:39 +0100
commit3ea9372860f4b483fb9083bddce19405e6636c34 (patch)
treef583bd56df9e2fe9c9d03eb0dafec5f2b88464fe
parentcaee8076f86d4b407158787f3269b61e2e679219 (diff)
downloadorg-mode-3ea9372860f4b483fb9083bddce19405e6636c34.tar.gz
Fix error when filling items
* lisp/org.el (org-adaptive-fill-function): Items do not have a :post-affiliated property. Use :begin property instead. This patch follows 86f27311250488e1a7cb686bebf6f36601278888.
-rw-r--r--lisp/org.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index f20fa42..67e41e5 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -21226,7 +21226,10 @@ meant to be filled."
(comment (looking-at "[ \t]*# ?") (match-string 0))
(footnote-definition "")
((item plain-list)
- (make-string (org-list-item-body-column post-affiliated) ? ))
+ (make-string (org-list-item-body-column
+ (or post-affiliated
+ (org-element-property :begin element)))
+ ? ))
(paragraph
;; Fill prefix is usually the same as the current line,
;; except if the paragraph is at the beginning of an item.