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:
parent
2959acb18c
commit
8e8955089f
|
@ -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.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue