Function: prog-fill-reindent-defun
prog-fill-reindent-defun is an interactive and byte-compiled function
defined in prog-mode.el.gz.
Signature
(prog-fill-reindent-defun &optional JUSTIFY)
Documentation
Refill or reindent the paragraph or defun that contains point.
If the point is in a string or a comment, fill the paragraph that contains point or follows point.
Otherwise, reindent the function definition that contains point or follows point.
If JUSTIFY is non-nil (interactively, with prefix argument), justify as well.
Probably introduced at or before Emacs version 30.1.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/prog-mode.el.gz
(defun prog-fill-reindent-defun (&optional justify)
"Refill or reindent the paragraph or defun that contains point.
If the point is in a string or a comment, fill the paragraph that
contains point or follows point.
Otherwise, reindent the function definition that contains point
or follows point.
If JUSTIFY is non-nil (interactively, with prefix argument), justify as
well."
(interactive "P")
(funcall prog-fill-reindent-defun-function justify))