[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] paragraph-start in modes other than latex
From: |
Arash Esbati |
Subject: |
Re: [AUCTeX-devel] paragraph-start in modes other than latex |
Date: |
Mon, 03 Apr 2017 18:01:14 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 |
Ikumi Keita <address@hidden> writes:
> Here is my tentative proposal:
> diff -r 32ce25988565 plain-tex.el
> --- a/plain-tex.el Sat Feb 04 18:21:44 2017 +0900
> +++ b/plain-tex.el Mon Apr 03 23:46:44 2017 +0900
> @@ -152,19 +152,18 @@
> (set (make-local-variable 'TeX-style-hook-dialect) plain-TeX-dialect)
> (setq paragraph-start
> (concat
> - "\\(^[ \t]*$"
> + "\\([ \t]*$"
> "\\|" (regexp-quote TeX-esc) "par\\|"
> - "^[ \t]*"
> + "[ \t]*"
> (regexp-quote TeX-esc)
> "\\("
> "begin\\|end\\|part\\|chapter\\|"
> "section\\|subsection\\|subsubsection\\|"
> "paragraph\\|include\\|includeonly\\|"
> - "tableofcontents\\|appendix\\|label\\|caption\\|"
> - "\\[\\|\\]" ; display math delimitors
> + "tableofcontents\\|appendix\\|label\\|caption"
> "\\)"
> "\\|"
> - "^[ \t]*\\$\\$" ; display math delimitor
> + "[ \t]*\\$\\$" ; display math delimitor
> "\\)" ))
Hi Keita,
looks good to me, thank you for taking your time. My only suggestion
would be to add "\\|\\(item\\)?item" after "caption" since these macros
are both defined in plain. I would say it's your call.
Best, Arash