Theodor Thornhill writes: > Eli Zaretskii writes: > >>> From: Theodor Thornhill >>> Cc: larsi@gnus.org, 59662@debbugs.gnu.org, casouri@gmail.com, >>> monnier@iro.umontreal.ca >>> Date: Fri, 09 Dec 2022 16:50:25 +0100 >>> >>> diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi >>> index ba8475e86a..cc06a003e2 100644 >>> --- a/doc/emacs/programs.texi >>> +++ b/doc/emacs/programs.texi >>> @@ -409,6 +409,14 @@ Multi-line Indent >>> @table @kbd >>> @item C-M-q >>> Reindent all the lines within one parenthetical grouping. >>> +@item M-q >>> +Major modes that derive from @code{prog-mode} can reindent all the >>> +lines within a defun around point using >>> +@code{prog-mode-fill-reindent-defun}. The bounds of of a defun is >>> +decided by @code{beginning-of-defun-function} and >>> +@code{end-of-defun-function}. If point is inside a comment or a >>> +doc-string, refill that paragraph instead, using >>> +@code{fill-paragraph-function}. >> >> The 2 variables you mention should have @vindex entries. Also, please >> add a cross-reference to the mode in elisp manual where these two >> variables are described. >> Is this worded a little better? Theo