home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / alt / lucidem / help / 799 < prev    next >
Encoding:
Text File  |  1992-12-14  |  1.8 KB  |  40 lines

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