auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. f477383b7365ae25c04f9


From: Arash Esbati
Subject: [AUCTeX-diffs] GNU AUCTeX branch, master, updated. f477383b7365ae25c04f9932185a49de4773f3a4
Date: Sat, 17 Aug 2019 17:30:09 -0400 (EDT)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU AUCTeX".

The branch, master has been updated
       via  f477383b7365ae25c04f9932185a49de4773f3a4 (commit)
      from  3e179f890c52657ea27ed4b0319cfc65fbd80cd0 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit f477383b7365ae25c04f9932185a49de4773f3a4
Author: Arash Esbati <address@hidden>
Date:   Sat Aug 17 23:28:11 2019 +0200

    Update style/thmtools.el to package version 67
    
    * style/thmtools.el (LaTeX-thmtools-declaretheoremstyle-regexp)
    (LaTeX-thmtools-declaretheorem-regexp): Use the function
    `LaTeX-extract-key-value-label' to build the regexp.
    (LaTeX-thmtools-listoftheorems-key-val): Add new key `title'.
    (LaTeX-thmtools-package-options): Add new variable.

diff --git a/style/thmtools.el b/style/thmtools.el
index b344c62..20ddb69 100644
--- a/style/thmtools.el
+++ b/style/thmtools.el
@@ -1,6 +1,6 @@
-;;; thmtools.el --- AUCTeX style for `thmtools.sty' (v66)
+;;; thmtools.el --- AUCTeX style for `thmtools.sty' (v67)
 
-;; Copyright (C) 2018 Free Software Foundation, Inc.
+;; Copyright (C) 2018, 2019 Free Software Foundation, Inc.
 
 ;; Author: Arash Esbati <address@hidden>
 ;; Maintainer: address@hidden
@@ -26,7 +26,7 @@
 
 ;;; Commentary:
 
-;; This file adds support for `thmtools.sty' (v66) from 2014/04/21.
+;; This file adds support for `thmtools.sty' (v67) from 2019/07/31.
 ;; `thmtools.sty' is part of TeXLive.
 
 ;;; Code:
@@ -38,6 +38,7 @@
 
 ;; Needed for auto-parsing:
 (require 'tex)
+(require 'latex)
 
 ;; Setup for \declaretheoremstyle:
 (TeX-auto-add-type "thmtools-declaretheoremstyle" "LaTeX")
@@ -45,13 +46,9 @@
 (defvar LaTeX-thmtools-declaretheoremstyle-regexp
   `(,(concat "\\\\declaretheoremstyle"
             "[ \t\n\r%]*"
-            "\\(?:\\[[^][]*"
-              "\\(?:{[^}{]*"
-                "\\(?:{[^}{]*"
-                  "\\(?:{[^}{]*}[^}{]*\\)*"
-                "}[^}{]*\\)*"
-              "}[^][]*\\)*"
-            "\\]\\)?"
+            "\\(?:"
+            (LaTeX-extract-key-value-label 'none)
+            "\\)?"
             "[ \t\n\r%]*"
             "{\\([^}]+\\)}")
     1 LaTeX-auto-thmtools-declaretheoremstyle)
@@ -63,13 +60,9 @@
 (defvar LaTeX-thmtools-declaretheorem-regexp
   `(,(concat "\\\\declaretheorem"
             "[ \t\n\r%]*"
-            "\\(?:\\[[^][]*"
-              "\\(?:{[^}{]*"
-                "\\(?:{[^}{]*"
-                  "\\(?:{[^}{]*}[^}{]*\\)*"
-                "}[^}{]*\\)*"
-              "}[^][]*\\)*"
-            "\\]\\)?"
+            "\\(?:"
+            (LaTeX-extract-key-value-label 'none)
+            "\\)?"
             "[ \t\n\r%]*"
             "{\\([^}]+\\)}")
     1 LaTeX-auto-thmtools-declaretheorem)
@@ -210,7 +203,8 @@ minibuffer.  PROMPT replaces the standard one."
        ("onlynamed" ,thms)
        ("show" ,thms)
        ("ignoreall" ("true" "false"))
-       ("showall" ("true" "false"))))))
+       ("showall" ("true" "false"))
+       ("title")))))
 
 (defun LaTeX-arg-thmtools-listoftheorems (optional &optional prompt)
   "Insert the key=val to \\listoftheorems macro.
@@ -301,4 +295,9 @@ RefTeX users should customize or add ENVIRONMENT to
                              'function)))
  LaTeX-dialect)
 
+;; The package has only one option `debug'.  We ignore that in order
+;; to make loading faster:
+(defvar LaTeX-thmtools-package-options nil
+  "Package options for the thmtools package.")
+
 ;;; thmtools.el ends here

-----------------------------------------------------------------------

Summary of changes:
 style/thmtools.el | 35 +++++++++++++++++------------------
 1 file changed, 17 insertions(+), 18 deletions(-)


hooks/post-receive
-- 
GNU AUCTeX



reply via email to

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