From d03915650e110b0241d44f8283d665506455aed6 Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Sat, 16 Nov 2019 08:15:48 +0100 Subject: [PATCH] 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 --- lisp/textmodes/tex-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5