home *** CD-ROM | disk | FTP | other *** search
- x-gateway: rodan.UU.NET from help-lucid-emacs to alt.lucid-emacs.help; Mon, 14 Dec 1992 13:36:44 EST
- Date: Mon, 14 Dec 1992 13:14:59 EST
- From: ex594bw@pts.mot.com (Bob Weiner)
- Message-ID: <9212141814.AA01789@mars.pts.mot.com>
- Subject: Re: Filling commented paragraphs
- Reply-To: bob_weiner@pts.mot.com
- Newsgroups: alt.lucid-emacs.help
- Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
- Sender: help-lucid-emacs-request@lucid.com
- Lines: 28
-
- > From: burt@dfki.uni-kl.de (Alastair Burt)
- > References: <9212141451.AA01671@mars.pts.mot.com>
- >
- > I have just browsed throught the par-align.el code sent to this group by
- > Barry Warsaw. I had hoped that it would help me fill text used as program
- > comments. However my main problem is that when I hack around with the text
- > the commenting prefixes are no longer at the beginning of the line. I
- > would like the filling routines to optionally delete these extraneous
- > comment characters. At first glance Barry Warsaw's code does not do this.
- > Has anybody hacked up something that does?
- >
-
- First of all, you got the author name wrong, so I'll assume you didn't
- look closely at much of what is in the package. I'm not sure if the
- complete package operation is documented in the beginning comments
- of "par-align.el" so I'll explain some here.
-
- Just like the regular paragraph fill functions of GNU Emacs, you have to
- specify what your fill prefix is with 'set-fill-prefix' before doing a fill.
- The par-align code keeps the prior fill prefix too, so if you want to delete
- one prefix and change it to another, just set the fill prefix to the one you
- want to get rid of, then set it to the new one and fill the paragraph or
- region as you like.
-
- If you don't set the fill prefix as needed, then all of your filling
- will be wrong, as you have noticed.
-
- Bob
-