Hi Jannis, 2013/5/27 Jannis <bt_jan...@yahoo.de>: > Dear Auctex users, > > > I use auto-fill to automatically hard-wrap (i.e. insert line breaks) long > lines after a specific length. These are the relevant lines in .emacs: > > (add-hook 'LaTeX-mode-hook 'turn-on-auto-fill) > (add-hook 'latex-mode-hook 'turn-on-auto-fill) > (add-hook 'text-mode-hook 'turn-on-auto-fill) > (setq-default fill-column 80) > > > This works fine. For comments it automatically inserts % signs for the new > lines in case I type a comment. If I mark a whole region and use M-q, > however, to correct the wrapping after some changes, comments are not > automatically recognised, no % is inserted, and parts of the comment are > treated as usual text. Only when I put the cursor into the same line again > and hit M-q, the wrapping works fine. This, however, is not practical to > change the wrapping of whole documents. > > Is there any solution to this? See the "Filling" section in AUCTeX manual, (info "(auctex)Filling"). You can also use the `LaTeX-fill-buffer' command to fill the whole buffer without marking it.
Bye, Mosè _______________________________________________ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex