home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: gnu.emacs.help
- Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!cs.utexas.edu!hellgate.utah.edu!eeide
- From: eeide%asylum.cs.utah.edu@cs.utah.edu (Eric Eide)
- Subject: Wanted: Better paragraph-separate for TeX Mode
- Message-ID: <EEIDE.92Sep2150239@asylum.cs.utah.edu>
- Organization: University of Utah Department of Computer Science
- Distribution: gnu
- Date: 2 Sep 92 15:02:39
- Lines: 32
-
- I've found that the default value of paragraph-separate in TeX mode is not very
- useful to me. I particular, it sometimes gets in the way of the paragraph
- filler. The function TeX-common-initialization does this:
-
- (make-local-variable 'paragraph-start)
- (setq paragraph-start "^[ \t]*$\\|^[\f\\\\%]")
- (make-local-variable 'paragraph-separate)
- (setq paragraph-separate paragraph-start)
-
- This value of paragraph-separate makes sense for TeX input like this:
-
- \begin{...}
- This is text to be filled. This is text to be filled. This is text to be
- filled. This is text to be filled. This is text to be filled.
- \end{...}
-
- But it doesn't work well for TeX input like this:
-
- \item This is text to be filled. This is text to be filled. This is text to
- be filled. This is text to be fiiled. This is text to be filled.
-
- The problem is that the "\item ..." line is treated as a paragraph separator,
- not the first line of the paragraph.
-
- So before I try to rewrite paragraph-separate for TeX mode, I thought I'd find
- out if anybody has already done this. I'm not a real TeX hack. Thanks for any
- advice.
-
- --
- -------------------------------------------------------------------------------
- Eric Eide | University of Utah Department of Computer Science
- eeide@cs.utah.edu | Buddhist to hot dog vendor: "Make me one with everything."
-