]> git.eshelyaron.com Git - emacs.git/commitdiff
tex-mode: paragraph separator groups text and comments
authorMichael Orlitzky <michael@orlitzky.com>
Sat, 16 Nov 2019 07:15:48 +0000 (08:15 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 16 Nov 2019 07:15:48 +0000 (08:15 +0100)
* 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

index 9b92a2fc60e956619edd10239c39a2fb5ae5a9b0..5f2c7ee9feadb4ab7d4e6b2274da8716c7752806 100644 (file)
@@ -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)