Fix `org-auto-fill-function'.

* org.el (org-auto-fill-function): Don't call `do-auto-fill'
within (org-let org-fb-vars ...) as `do-auto-fill' should do
the right thing whether orgstruct++-mode is turned on or off.
This commit is contained in:
Bastien Guerry 2012-07-29 10:43:50 +02:00
parent 2959acb18c
commit 8e8955089f
1 changed files with 1 additions and 3 deletions

View File

@ -20943,9 +20943,7 @@ width for filling."
(let ((fc (current-fill-column))) (let ((fc (current-fill-column)))
(when (and fc (> (current-column) fc)) (when (and fc (> (current-column) fc))
(let ((fill-prefix (org-fill-context-prefix (point)))) (let ((fill-prefix (org-fill-context-prefix (point))))
(when fill-prefix (when fill-prefix (do-auto-fill))))))
(if orgstruct-is-++ (org-let org-fb-vars '(do-auto-fill))
(do-auto-fill)))))))
;;; Other stuff. ;;; Other stuff.