auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-devel] paragraph-start in modes other than latex


From: Ikumi Keita
Subject: [AUCTeX-devel] paragraph-start in modes other than latex
Date: Sun, 02 Apr 2017 20:41:33 +0900

[To: and Subject: changed]

Hi all,

I thought of checking `paragraph-start' in modes other than latex and
some questions came to my mind.  Could you see the following topics?

A. plain-tex mode
This is a quote from plain-tex.el:
----------------------------------------------------------------------
  (setq paragraph-start
        (concat
         "\\(^[ \t]*$"
         "\\|" (regexp-quote TeX-esc) "par\\|"
         "^[ \t]*"
         (regexp-quote TeX-esc)
         "\\("
         "begin\\|end\\|part\\|chapter\\|"
         "section\\|subsection\\|subsubsection\\|"
         "paragraph\\|include\\|includeonly\\|"
         "tableofcontents\\|appendix\\|label\\|caption\\|"
         "\\[\\|\\]"                    ; display math delimitors
         "\\)"
         "\\|"
         "^[ \t]*\\$\\$"                ; display math delimitor
         "\\)" ))
----------------------------------------------------------------------
I know almost nothing about plain TeX commands.
(1) It seems that "\b" is necessary as well.
(2) Macros "begin", "end", "part" and so on are treated as paragraph
starters.  Are these macros available not only in LaTeX but also plain
TeX?  Similar question goes for "\[" and "\]" as display math
delimiters.
(3) The doc string of `paragraph-start' says "This is matched against
the text at the left margin, which is not necessarily the beginning of
the line, so it should never use "^" as an anchor."  However, the above
quote contains explicit "^".  Is this OK?
(4) I'm afraid that `paragraph-separate' should also undergo review.

B. texinfo mode
This is a quote from texinfo.el:
----------------------------------------------------------------------
  (set (make-local-variable 'paragraph-start)
       (concat "\b\\|address@hidden \n]\\|" paragraph-start))
----------------------------------------------------------------------
I know little about TeXinfo.
(1) This contains "\b", not "\\b", in it.  String literal "\b" is the
same as "\C-h".  Does a texinfo file sometimes contain raw ^H bytes in
it?
(2) It also contains explicit "^".  Is this OK?
(3) It seems that `paragraph-separate' should also be reviewed, too.

Bye,
Ikumi Keita



reply via email to

[Prev in Thread] Current Thread [Next in Thread]