emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master d039156: tex-mode: paragraph separator groups text and comments


From: Lars Ingebrigtsen
Subject: master d039156: tex-mode: paragraph separator groups text and comments
Date: Sat, 16 Nov 2019 02:15:59 -0500 (EST)

branch: master
commit d03915650e110b0241d44f8283d665506455aed6
Author: Michael Orlitzky <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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 9b92a2f..5f2c7ee 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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]