From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Corneli Newsgroups: gmane.emacs.help Subject: Re: autofill for tex modes Date: Fri, 15 Apr 2005 12:31:46 -0500 Message-ID: References: <85sm1sm1li.fsf@gnu.org> NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1113586700 6956 80.91.229.2 (15 Apr 2005 17:38:20 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 15 Apr 2005 17:38:20 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 15 19:38:16 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1DMUkr-0007UF-60 for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Apr 2005 19:37:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DMUoO-00043t-O0 for geh-help-gnu-emacs@m.gmane.org; Fri, 15 Apr 2005 13:41:00 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DMUkW-0002wf-VC for help-gnu-emacs@gnu.org; Fri, 15 Apr 2005 13:37:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DMUkG-0002rV-UL for help-gnu-emacs@gnu.org; Fri, 15 Apr 2005 13:36:48 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DMUkG-0002po-00 for help-gnu-emacs@gnu.org; Fri, 15 Apr 2005 13:36:44 -0400 Original-Received: from [146.6.139.124] (helo=dell3.ma.utexas.edu) by monty-python.gnu.org with esmtp (Exim 4.34) id 1DMUgL-0005wK-5Z for help-gnu-emacs@gnu.org; Fri, 15 Apr 2005 13:32:41 -0400 Original-Received: from lab45.ma.utexas.edu (mail@lab45.ma.utexas.edu [128.83.133.159]) by dell3.ma.utexas.edu (8.11.0.Beta3/8.10.2) with ESMTP id j3FHVkf27454; Fri, 15 Apr 2005 12:31:46 -0500 Original-Received: from jcorneli by lab45.ma.utexas.edu with local (Exim 3.36 #1 (Debian)) id 1DMUfS-0005cK-00; Fri, 15 Apr 2005 12:31:46 -0500 Original-To: help-gnu-emacs@gnu.org In-reply-to: <85sm1sm1li.fsf@gnu.org> (message from David Kastrup on Fri, 15 Apr 2005 18:44:25 +0200) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:25734 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:25734 Joe Corneli writes: > Does anyone know of an autofill (or `fill-individual-paragraphs' type > of function, alternatively & maybe preferably) that works in LaTeX > modes? I might have written a question about this a couple years ago. > The issue is to avoid messing up the formatting of e.g. large arrays, > while still having "most" lines be 70 characters long or less. I > think I can write this pretty easily, but if it exists already, that's > even easier. AUCTeX Is there an easy way to get LaTeX-fill-buffer from AUCTeX to ignore comment blocks whenever they are encountered? Currently, running it on a file with this header: %%% This file is part of PlanetMath snapshot of 2005-02-15 %%% Primary Title: order of operations %%% Primary Category Code: 00A99 %%% Filename: OrderOfOperations.tex %%% Version: 3 %%% Owner: akrowne %%% Author(s): akrowne %%% PlanetMath is released under the GNU Free Documentation License. %%% You should have received a file called fdl.txt along with this file. %%% If not, please write to gnu@gnu.org. Gave me a file with _this_ header: %%% This file is part of PlanetMath snapshot of 2005-02-15 Primary Title: order %%% of operations Primary Category Code: 00A99 Filename: OrderOfOperations.tex %%% Version: 3 Owner: akrowne Author(s): akrowne PlanetMath is released under %%% the GNU Free Documentation License. You should have received a file called %%% fdl.txt along with this file. If not, please write to gnu@gnu.org. The rest of this function's behavior seems to be just what I want.