Pārlūkot izejas kodu

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.
Bastien Guerry 12 gadi atpakaļ
vecāks
revīzija
8e8955089f
1 mainītis faili ar 1 papildinājumiem un 3 dzēšanām
  1. 1 3
      lisp/org.el

+ 1 - 3
lisp/org.el

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