el/dot-emacs.el (mdw-fontify-perl): Use the standard autofill function.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 9 May 2024 22:22:41 +0000 (23:22 +0100)
committerMark Wooding <mdw@distorted.org.uk>
Thu, 9 May 2024 22:22:41 +0000 (23:22 +0100)
Cperl mode has its own crazy autofill which messes up earlier lines and
doesn't get the dynamic fill prefix right.  So beat it up and use the
standard function.

el/dot-emacs.el

index 542a6cb..a323e03 100644 (file)
@@ -3447,6 +3447,7 @@ name, as a symbol."
   (modify-syntax-entry ?$ "\\" font-lock-syntax-table)
   (modify-syntax-entry ?: "." font-lock-syntax-table)
   (mdw-standard-fill-prefix "\\([ \t]*#+[ \t]*\\)")
+  (setq auto-fill-function #'do-auto-fill)
 
   ;; Now define fontification things.
   (make-local-variable 'font-lock-keywords)