branch: elpa commit ce347e6f4763a530d0a86c9f233361486914bbf1 Author: Uwe Brauer <o...@mat.ucm.es> Commit: Mosè Giordano <m...@gnu.org>
Document how to disable filling for specific environments * latex.el (LaTeX-indent-environment-list): Mention in docstring that environments listed here are not filled. (LaTeX-fill-region-as-paragraph): Add information to the docstring concerning excluding enviroments from that function by using `LaTeX-indent-environment-list'. Suggested by Uwe Brauer. --- latex.el | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/latex.el b/latex.el index 16d6760..babcd1a 100644 --- a/latex.el +++ b/latex.el @@ -2995,7 +2995,10 @@ consideration just as is in the non-commented source code." ("tabbing")) "Alist of environments with special indentation. The second element in each entry is the function to calculate the -indentation level in columns." +indentation level in columns. + +Environments present in this list are not filled by filling +functions, see `LaTeX-fill-region-as-paragraph'." :group 'LaTeX-indentation :type '(repeat (list (string :tag "Environment") (option function)))) @@ -3457,7 +3460,11 @@ Break lines to fit `fill-column', but leave all lines ending with \\\\ \(plus its optional argument) alone. Lines with code comments and lines ending with `\par' are included in filling but act as boundaries. Prefix arg means justify too. From program, -pass args FROM, TO and JUSTIFY-FLAG." +pass args FROM, TO and JUSTIFY-FLAG. + +You can disable filling inside a specific environment by adding +it to `LaTeX-indent-environment-list', only indentation is +performed in that case." (interactive "*r\nP") (let ((end-marker (save-excursion (goto-char to) (point-marker)))) (if (or (assoc (LaTeX-current-environment) LaTeX-indent-environment-list)