[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] paragraph-start in modes other than latex
From: |
Ikumi Keita |
Subject: |
Re: [AUCTeX-devel] paragraph-start in modes other than latex |
Date: |
Tue, 04 Apr 2017 22:44:37 +0900 |
Hi Arash,
>>>>> Arash Esbati <address@hidden> writes:
> 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.
Sorry, I missed to incoporate your comment about item and itemitem. I
changed "\\(" to shy-group starter "\\(?:" as well over the entire
regexp as follows. I will install this change into git repo soon.
Best,
Ikumi Keita
diff -r 32ce25988565 plain-tex.el
--- a/plain-tex.el Sat Feb 04 18:21:44 2017 +0900
+++ b/plain-tex.el Tue Apr 04 22:39:44 2017 +0900
@@ -152,30 +152,29 @@
(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\\|\\(?:item\\)?item"
"\\)"
"\\|"
- "^[ \t]*\\$\\$" ; display math delimitor
+ "[ \t]*\\$\\$" ; display math delimitor
"\\)" ))
(setq paragraph-separate
(concat
"[ \t]*"
- "\\("
+ "\\(?:"
(regexp-quote TeX-esc) "par\\|"
"%\\|"
"$\\|"
"\\$\\$\\|"
(regexp-quote TeX-esc)
- "\\("
+ "\\(?:"
"begin\\|end\\|label\\|caption\\|part\\|chapter\\|"
"section\\|subsection\\|subsubsection\\|"
"paragraph\\|include\\|includeonly\\|"
diff -r 32ce25988565 tex-info.el
--- a/tex-info.el Sat Feb 04 18:21:44 2017 +0900
+++ b/tex-info.el Tue Apr 04 22:39:44 2017 +0900
@@ -618,9 +618,9 @@
(set (make-local-variable 'require-final-newline) t)
(set (make-local-variable 'indent-tabs-mode) nil)
(set (make-local-variable 'paragraph-separate)
- (concat "\b\\|address@hidden \n]\\|" paragraph-separate))
+ (concat "\b\\|@[a-zA-Z]*[ \n]\\|" paragraph-separate))
(set (make-local-variable 'paragraph-start)
- (concat "\b\\|address@hidden \n]\\|" paragraph-start))
+ (concat "\b\\|@[a-zA-Z]*[ \n]\\|" paragraph-start))
(set (make-local-variable 'fill-column) 72)
(set (make-local-variable 'comment-start) "@c ")
(set (make-local-variable 'comment-start-skip) "@c +\\|@comment +")