emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/auctex b4f304b 36/95: Improve regexp for looking for do


From: Tassilo Horn
Subject: [elpa] externals/auctex b4f304b 36/95: Improve regexp for looking for documentclass macro
Date: Sun, 16 Apr 2017 01:26:50 -0400 (EDT)

branch: externals/auctex
commit b4f304b74deff62c19b6349fe8b81dd369e4411a
Author: Mosè Giordano <address@hidden>
Commit: Mosè Giordano <address@hidden>

    Improve regexp for looking for documentclass macro
    
    * latex.el (LaTeX-env-document): Allow any non line-breaking character in 
regexp
      used to look for `documentclass' macro.  Previous regexp did not catch 
class
      options containing dots or slash, that may occur when using `subfiles' 
class.
---
 latex.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/latex.el b/latex.el
index 1ecbbdd..318362f 100644
--- a/latex.el
+++ b/latex.el
@@ -850,7 +850,7 @@ The compatibility argument IGNORE is ignored."
     (save-excursion
       (while (and (not found)
                  (re-search-backward
-                  
"\\\\documentclass\\(\\[[a-z0-9A-Z\-\_,]*\\]\\)?\\({[^}]+}\\)"
+                  "\\\\documentclass\\(\\[[^]\n\r]*\\]\\)?\\({[^}]+}\\)"
                   nil t))
        (and (not (TeX-in-commented-line))
             (setq found t))))



reply via email to

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