Function: mhtml-ts-mode--switch-fill-defun
mhtml-ts-mode--switch-fill-defun is an interactive and byte-compiled
function defined in mhtml-ts-mode.el.gz.
Signature
(mhtml-ts-mode--switch-fill-defun &rest ARGUMENTS)
Documentation
Switch between fill-paragraph and prog-fill-reindent-defun.
In an HTML region it calls fill-paragraph as does html-ts-mode,
otherwise it calls prog-fill-reindent-defun.
Optional ARGUMENTS to to be passed to it.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/mhtml-ts-mode.el.gz
(defun mhtml-ts-mode--switch-fill-defun (&rest arguments)
"Switch between `fill-paragraph' and `prog-fill-reindent-defun'.
In an HTML region it calls `fill-paragraph' as does `html-ts-mode',
otherwise it calls `prog-fill-reindent-defun'.
Optional ARGUMENTS to to be passed to it."
(interactive)
(if (eq (treesit-language-at (point)) 'html)
(funcall-interactively #'fill-paragraph arguments)
(funcall-interactively #'prog-fill-reindent-defun arguments)))