From: Michael Orlitzky Date: Sat, 16 Nov 2019 07:15:48 +0000 (+0100) Subject: tex-mode: paragraph separator groups text and comments X-Git-Tag: emacs-27.0.90~599 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d03915650e110b0241d44f8283d665506455aed6;p=emacs.git tex-mode: paragraph separator groups text and comments * lisp/textmodes/tex-mode.el (latex-mode): Don't wrap text with leading spaces into preceding comments (bug#38152). Copyright-paperwork-exempt: yes --- diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 9b92a2fc60e..5f2c7ee9fea 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -1153,7 +1153,7 @@ subshell is initiated, `tex-shell-hook' is run." "\\>\\|\\\\[a-z]*" (regexp-opt '("space" "skip" "page") t) "\\>\\)")) (setq paragraph-separate - (concat "[\f%]\\|[ \t]*\\($\\|" + (concat "\\([ \t]*%\\)\\|[\f]\\|[ \t]*\\($\\|" "\\\\[][]\\|" "\\\\" (regexp-opt (append (mapcar #'car latex-section-alist)