home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / gnu / emacs / help / 3970 < prev    next >
Encoding:
Text File  |  1992-09-02  |  1.7 KB  |  43 lines

  1. Newsgroups: gnu.emacs.help
  2. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!hellgate.utah.edu!eeide
  3. From: eeide%asylum.cs.utah.edu@cs.utah.edu (Eric Eide)
  4. Subject: Wanted: Better paragraph-separate for TeX Mode
  5. Message-ID: <EEIDE.92Sep2150239@asylum.cs.utah.edu>
  6. Organization: University of Utah Department of Computer Science
  7. Distribution: gnu
  8. Date: 2 Sep 92 15:02:39
  9. Lines: 32
  10.  
  11. I've found that the default value of paragraph-separate in TeX mode is not very
  12. useful to me.  I particular, it sometimes gets in the way of the paragraph
  13. filler.  The function TeX-common-initialization does this:
  14.  
  15.   (make-local-variable 'paragraph-start)
  16.   (setq paragraph-start "^[ \t]*$\\|^[\f\\\\%]")
  17.   (make-local-variable 'paragraph-separate)
  18.   (setq paragraph-separate paragraph-start)
  19.  
  20. This value of paragraph-separate makes sense for TeX input like this:
  21.  
  22.   \begin{...}
  23.   This is text to be filled.  This is text to be filled.  This is text to be
  24.   filled.  This is text to be filled.  This is text to be filled.
  25.   \end{...}
  26.  
  27. But it doesn't work well for TeX input like this:
  28.  
  29.   \item This is text to be filled.  This is text to be filled.  This is text to
  30.   be filled.  This is text to be fiiled.  This is text to be filled.
  31.  
  32. The problem is that the "\item ..." line is treated as a paragraph separator,
  33. not the first line of the paragraph.
  34.  
  35. So before I try to rewrite paragraph-separate for TeX mode, I thought I'd find
  36. out if anybody has already done this.  I'm not a real TeX hack.  Thanks for any
  37. advice.
  38.  
  39. --
  40. -------------------------------------------------------------------------------
  41. Eric Eide          |          University of Utah Department of Computer Science
  42. eeide@cs.utah.edu  | Buddhist to hot dog vendor: "Make me one with everything."
  43.