From fb84aee819bbfbf54ee0dea7b6a52627d522f99c Mon Sep 17 00:00:00 2001 From: Boris Goldowsky Date: Thu, 2 Mar 1995 15:52:37 +0000 Subject: (tex-common-initialization, latex-mode, slitex-mode): Remove ^ from paragraph-start & paragraph-separate. --- lisp/textmodes/tex-mode.el | 76 +++++++++++++++++++++++----------------------- 1 file changed, 38 insertions(+), 38 deletions(-) (limited to 'lisp/textmodes/tex-mode.el') diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 495576b8e1c..2f399aaf99a 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -383,24 +383,24 @@ subshell is initiated, `tex-shell-hook' is run." ;; A line containing just $$ is treated as a paragraph separator. ;; A line starting with $$ starts a paragraph, ;; but does not separate paragraphs if it has more stuff on it. - (setq paragraph-start "^[ \t]*$\\|^[\f%]\\|^[ \t]*\\$\\$\\|\ -^\\\\begin\\>\\|^\\\\label\\>\\|^\\\\end\\>\\|^\\\\\\[\\|^\\\\\\]\\|\ -^\\\\chapter\\>\\|^\\\\section\\>\\|\ -^\\\\subsection\\>\\|^\\\\subsubsection\\>\\|\ -^\\\\paragraph\\>\\|^\\\\subparagraph\\>\\|\ -^\\\\item\\>\\|^\\\\bibitem\\>\\|^\\\\newline\\>\\|^\\\\noindent\\>\\|\ -^\\\\[a-z]*space\\>\\|^\\\\[a-z]*skip\\>\\|\ -^\\\\newpage\\>\\|^\\\\[a-z]*page\\|^\\\\footnote\\>\\|\ -^\\\\marginpar\\>\\|^\\\\parbox\\>\\|^\\\\caption\\>") - (setq paragraph-separate "^[ \t]*$\\|^[\f%]\\|^[ \t]*\\$\\$[ \t]*$\\|\ -^\\\\begin\\>\\|^\\\\label\\>\\|^\\\\end\\>\\|^\\\\\\[\\|^\\\\\\]\\|\ -^\\\\chapter\\>\\|^\\\\section\\>\\|\ -^\\\\subsection\\>\\|^\\\\subsubsection\\>\\|\ -^\\\\paragraph\\>\\|^\\\\subparagraph\\>\\|\ -\\(^\\\\item\\|^\\\\bibitem\\|^\\\\newline\\|^\\\\noindent\\|\ -^\\\\[a-z]*space\\|^\\\\[a-z]*skip\\|\ -^\\\\newpage\\|^\\\\[a-z]*page[a-z]*\\|^\\\\footnote\\|\ -^\\\\marginpar\\|^\\\\parbox\\|^\\\\caption\\)[ \t]*\\($\\|%\\)") + (setq paragraph-start "[ \t]*$\\|[\f%]\\|[ \t]*\\$\\$\\|\ +\\\\begin\\>\\|\\\\label\\>\\|\\\\end\\>\\|\\\\\\[\\|\\\\\\]\\|\ +\\\\chapter\\>\\|\\\\section\\>\\|\ +\\\\subsection\\>\\|\\\\subsubsection\\>\\|\ +\\\\paragraph\\>\\|\\\\subparagraph\\>\\|\ +\\\\item\\>\\|\\\\bibitem\\>\\|\\\\newline\\>\\|\\\\noindent\\>\\|\ +\\\\[a-z]*space\\>\\|\\\\[a-z]*skip\\>\\|\ +\\\\newpage\\>\\|\\\\[a-z]*page\\|\\\\footnote\\>\\|\ +\\\\marginpar\\>\\|\\\\parbox\\>\\|\\\\caption\\>") + (setq paragraph-separate "[ \t]*$\\|[\f%]\\|[ \t]*\\$\\$[ \t]*$\\|\ +\\\\begin\\>\\|\\\\label\\>\\|\\\\end\\>\\|\\\\\\[\\|\\\\\\]\\|\ +\\\\chapter\\>\\|\\\\section\\>\\|\ +\\\\subsection\\>\\|\\\\subsubsection\\>\\|\ +\\\\paragraph\\>\\|\\\\subparagraph\\>\\|\ +\\(\\\\item\\|\\\\bibitem\\|\\\\newline\\|\\\\noindent\\|\ +\\\\[a-z]*space\\|\\\\[a-z]*skip\\|\ +\\\\newpage\\|\\\\[a-z]*page[a-z]*\\|\\\\footnote\\|\ +\\\\marginpar\\|\\\\parbox\\|\\\\caption\\)[ \t]*\\($\\|%\\)") (run-hooks 'text-mode-hook 'tex-mode-hook 'latex-mode-hook)) ;;;###autoload @@ -456,24 +456,24 @@ Entering SliTeX mode runs the hook `text-mode-hook', then the hook ;; A line containing just $$ is treated as a paragraph separator. ;; A line starting with $$ starts a paragraph, ;; but does not separate paragraphs if it has more stuff on it. - (setq paragraph-start "^[ \t]*$\\|^[\f%]\\|^[ \t]*\\$\\$\\|\ -^\\\\begin\\>\\|^\\\\label\\>\\|^\\\\end\\>\\|^\\\\\\[\\|^\\\\\\]\\|\ -^\\\\chapter\\>\\|^\\\\section\\>\\|\ -^\\\\subsection\\>\\|^\\\\subsubsection\\>\\|\ -^\\\\paragraph\\>\\|^\\\\subparagraph\\>\\|\ -^\\\\item\\>\\|^\\\\bibitem\\>\\|^\\\\newline\\>\\|^\\\\noindent\\>\\|\ -^\\\\[a-z]*space\\>\\|^\\\\[a-z]*skip\\>\\|\ -^\\\\newpage\\>\\|^\\\\[a-z]*page\\|^\\\\footnote\\>\\|\ -^\\\\marginpar\\>\\|^\\\\parbox\\>\\|^\\\\caption\\>") - (setq paragraph-separate "^[ \t]*$\\|^[\f%]\\|^[ \t]*\\$\\$[ \t]*$\\|\ -^\\\\begin\\>\\|^\\\\label\\>\\|^\\\\end\\>\\|^\\\\\\[\\|^\\\\\\]\\|\ -^\\\\chapter\\>\\|^\\\\section\\>\\|\ -^\\\\subsection\\>\\|^\\\\subsubsection\\>\\|\ -^\\\\paragraph\\>\\|^\\\\subparagraph\\>\\|\ -^\\\\item[ \t]*$\\|^\\\\bibitem[ \t]*$\\|^\\\\newline[ \t]*$\\|^\\\\noindent[ \t]*$\\|\ -^\\\\[a-z]*space[ \t]*$\\|^\\\\[a-z]*skip[ \t]*$\\|\ -^\\\\newpage[ \t]*$\\|^\\\\[a-z]*page[a-z]*[ \t]*$\\|^\\\\footnote[ \t]*$\\|\ -^\\\\marginpar[ \t]*$\\|^\\\\parbox[ \t]*$\\|^\\\\caption[ \t]*$") + (setq paragraph-start "[ \t]*$\\|[\f%]\\|[ \t]*\\$\\$\\|\ +\\\\begin\\>\\|\\\\label\\>\\|\\\\end\\>\\|\\\\\\[\\|\\\\\\]\\|\ +\\\\chapter\\>\\|\\\\section\\>\\|\ +\\\\subsection\\>\\|\\\\subsubsection\\>\\|\ +\\\\paragraph\\>\\|\\\\subparagraph\\>\\|\ +\\\\item\\>\\|\\\\bibitem\\>\\|\\\\newline\\>\\|\\\\noindent\\>\\|\ +\\\\[a-z]*space\\>\\|\\\\[a-z]*skip\\>\\|\ +\\\\newpage\\>\\|\\\\[a-z]*page\\|\\\\footnote\\>\\|\ +\\\\marginpar\\>\\|\\\\parbox\\>\\|\\\\caption\\>") + (setq paragraph-separate "[ \t]*$\\|[\f%]\\|[ \t]*\\$\\$[ \t]*$\\|\ +\\\\begin\\>\\|\\\\label\\>\\|\\\\end\\>\\|\\\\\\[\\|\\\\\\]\\|\ +\\\\chapter\\>\\|\\\\section\\>\\|\ +\\\\subsection\\>\\|\\\\subsubsection\\>\\|\ +\\\\paragraph\\>\\|\\\\subparagraph\\>\\|\ +\\\\item[ \t]*$\\|\\\\bibitem[ \t]*$\\|\\\\newline[ \t]*$\\|\\\\noindent[ \t]*$\\|\ +\\\\[a-z]*space[ \t]*$\\|\\\\[a-z]*skip[ \t]*$\\|\ +\\\\newpage[ \t]*$\\|\\\\[a-z]*page[a-z]*[ \t]*$\\|\\\\footnote[ \t]*$\\|\ +\\\\marginpar[ \t]*$\\|\\\\parbox[ \t]*$\\|\\\\caption[ \t]*$") (run-hooks 'text-mode-hook 'tex-mode-hook 'latex-mode-hook 'slitex-mode-hook)) @@ -504,11 +504,11 @@ Entering SliTeX mode runs the hook `text-mode-hook', then the hook (set-syntax-table tex-mode-syntax-table)) (make-local-variable 'paragraph-start) ;; A line containing just $$ is treated as a paragraph separator. - (setq paragraph-start "^[ \t]*$\\|^[\f\\\\%]\\|^[ \t]*\\$\\$") + (setq paragraph-start "[ \t]*$\\|[\f\\\\%]\\|[ \t]*\\$\\$") (make-local-variable 'paragraph-separate) ;; A line starting with $$ starts a paragraph, ;; but does not separate paragraphs if it has more stuff on it. - (setq paragraph-separate "^[ \t]*$\\|^[\f\\\\%]\\|^[ \t]*\\$\\$[ \t]*$") + (setq paragraph-separate "[ \t]*$\\|[\f\\\\%]\\|[ \t]*\\$\\$[ \t]*$") (make-local-variable 'comment-start) (setq comment-start "%") (make-local-variable 'comment-start-skip) -- cgit v1.2.1