auctex-diffs
[Top][All Lists]
Advanced

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

[AUCTeX-diffs] [elpa] externals/auctex 088e10c 45/67: ; Silence the comp


From: Tassilo Horn
Subject: [AUCTeX-diffs] [elpa] externals/auctex 088e10c 45/67: ; Silence the compiler in styles for various functions and variables
Date: Fri, 8 Feb 2019 11:40:37 -0500 (EST)

branch: externals/auctex
commit 088e10c34bec0f51a6e137511ce52d547593e6fa
Author: Arash Esbati <address@hidden>
Commit: Arash Esbati <address@hidden>

    ; Silence the compiler in styles for various functions and variables
    
    * style/alphanum.el: Silence the compiler for the function
    `reftex-match-string' and free variable `reftex-section-regexp'.
    
    * style/biblatex.el:
    * style/jurabib.el: Silence the compiler for the free variable
    `reftex-cite-format-builtin'.
    
    * style/bicaption.el: Silence the compiler for the functions
    `LaTeX-babel-active-languages',
    `LaTeX-polyglossia-active-languages' and the free variables
    `LaTeX-caption-supported-float-types' and
    `LaTeX-caption-key-val-options'.
    
    * style/caption.el: Silence the compiler for the functions
    `LaTeX-babel-active-languages',
    `LaTeX-polyglossia-active-languages' and the free variable
    `LaTeX-bicaption-key-val-options'.
    
    * style/emp.el (LaTeX-env-emp-gen): Silence the compiler and
    let-bind the variable `LaTeX-emp-fig-name'.
    (LaTeX-env-empfile): Silence the compiler and let-bind the
    variables `LaTeX-emp-file-name' and `mpost-emp-file-name'.
    Minor code rearrangements.
    
    * style/empheq.el: Silence the compiler for the function
    `LaTeX-item-equation-alignat' and the free variables
    `LaTeX-mathtools-package-options' and
    `font-latex-math-environments'.
    
    * style/exam.el: Silence the compiler for the free variable
    `LaTeX-article-class-options'.
    
    * style/fvextra.el: Silence the compiler for the free variable
    `LaTeX-fancyvrb-key-val-options-local'.
    
    * style/gloss-italian.el: Silence the compiler for the function
    `LaTeX-polyglossia-lang-option-member'.
    
    * style/mathtools.el: Silence the compiler for the free variable
    `LaTeX-amsmath-package-options'.
    
    * style/minted.el: Silence the compiler for the function
    `LaTeX-add-newfloat-DeclareFloatingEnvironments'.
    
    * style/pstricks.el (LaTeX-pst-point-in-parens)
    (LaTeX-pst-parameters-add): Escape character literals.
    
    * style/subcaption.el: Silence the compiler for the free variables
    `LaTeX-caption-key-val-options' and
    `LaTeX-caption-key-val-options-local'.
    
    * style/tcolorboxlib-raster.el: Silence the compiler for the free
    variables `LaTeX-tcolorbox-keyval-options-full' and
    `LaTeX-tcolorbox-keyval-options-local'.
    
    * style/thm-restate.el: Silence the compiler for the function
    `LaTeX-thmtools-declaretheorem-list'.
---
 style/alphanum.el            |  5 ++++-
 style/biblatex.el            |  2 ++
 style/bicaption.el           |  6 ++++++
 style/caption.el             |  5 +++++
 style/emp.el                 | 41 +++++++++++++++++++----------------------
 style/empheq.el              |  6 ++++++
 style/exam.el                |  2 ++
 style/fvextra.el             |  2 ++
 style/gloss-italian.el       |  3 +++
 style/jurabib.el             |  2 ++
 style/mathtools.el           |  2 ++
 style/minted.el              |  2 ++
 style/pstricks.el            |  7 +++----
 style/subcaption.el          |  3 +++
 style/tcolorboxlib-raster.el |  3 +++
 style/thm-restate.el         |  4 ++++
 16 files changed, 68 insertions(+), 27 deletions(-)

diff --git a/style/alphanum.el b/style/alphanum.el
index d680aac..6bd5a5e 100644
--- a/style/alphanum.el
+++ b/style/alphanum.el
@@ -1,6 +1,6 @@
 ;;; alphanum.el --- AUCTeX style for `alphanum.sty'
 
-;; Copyright (C) 2004 Free Software Foundation, Inc.
+;; Copyright (C) 2004, 2018 Free Software Foundation, Inc.
 
 ;; Author: Frank Küster <address@hidden>
 ;; Maintainer: address@hidden
@@ -34,6 +34,9 @@
 
 ;;; Code:
 
+;; Silence the compiler:
+(declare-function reftex-match-string "reftex" (n))
+(defvar reftex-section-regexp)
 
 (defun TeX-arg-none (arg)
   (insert " "))
diff --git a/style/biblatex.el b/style/biblatex.el
index 0873b45..f38fee5 100644
--- a/style/biblatex.el
+++ b/style/biblatex.el
@@ -35,6 +35,8 @@
                  "font-latex"
                  (keywords class))
 
+(defvar reftex-cite-format-builtin)
+
 (defvar LaTeX-biblatex-entrytype
   '(;; Regular Types
     "article" "book" "mvbook" "inbook" "bookinbook" "suppbook" "booklet"
diff --git a/style/bicaption.el b/style/bicaption.el
index d0397d4..5dc4063 100644
--- a/style/bicaption.el
+++ b/style/bicaption.el
@@ -42,6 +42,12 @@
                  "font-latex"
                  (keywords class))
 
+(declare-function LaTeX-babel-active-languages "babel" ())
+(declare-function LaTeX-polyglossia-active-languages "polyglossia" ())
+
+(defvar LaTeX-caption-supported-float-types)
+(defvar LaTeX-caption-key-val-options)
+
 (defvar LaTeX-bicaption-key-val-options
   '(("bi-lang" ("first" "second" "both"))
     ("bi-singlelinecheck" ("false" "no" "off" "0" "true" "yes" "on" "1"))
diff --git a/style/caption.el b/style/caption.el
index 30cc45e..c38c1fa 100644
--- a/style/caption.el
+++ b/style/caption.el
@@ -46,6 +46,11 @@
                  "font-latex"
                  (keywords class))
 
+(declare-function LaTeX-babel-active-languages "babel" ())
+(declare-function LaTeX-polyglossia-active-languages "polyglossia" ())
+
+(defvar LaTeX-bicaption-key-val-options)
+
 (defvar LaTeX-caption-key-val-options
   '(("aboveskip")
     ("belowskip")
diff --git a/style/emp.el b/style/emp.el
index e42b23c..79ce9f0 100644
--- a/style/emp.el
+++ b/style/emp.el
@@ -25,20 +25,17 @@
 
 ;;; Code:
 
-
-(TeX-add-style-hook "emp"
- (function
-  (lambda ()
-     (TeX-add-symbols "empuse" "empTeX"  "empaddtoTeX"
-                     "emprelude" "empaddtoprelude" "unitlength"
-                    )
-    (LaTeX-add-environments
-     '("empfile" LaTeX-env-empfile)
-     '("emp" LaTeX-env-emp-gen)
-     '("empdef" LaTeX-env-emp-gen)
-     '("empgraph" LaTeX-env-emp-gen)
-     '("empcmds")
-     )))
+(TeX-add-style-hook
+ "emp"
+ (lambda ()
+   (TeX-add-symbols "empuse" "empTeX"  "empaddtoTeX"
+                   "emprelude" "empaddtoprelude" "unitlength")
+   (LaTeX-add-environments
+    '("empfile" LaTeX-env-empfile)
+    '("emp" LaTeX-env-emp-gen)
+    '("empdef" LaTeX-env-emp-gen)
+    '("empgraph" LaTeX-env-emp-gen)
+    '("empcmds")))
  LaTeX-dialect)
 
 (defun LaTeX-env-emp-gen (environment-name)
@@ -51,7 +48,7 @@ Used for emp, empdef, and empgraph environments."
         ;;; emp, empdef, and empgraph environments
         ;;; we give them 1 by default
         ;;; not necessarily the best thing to do?
-        )
+        LaTeX-emp-fig-name)
      (if (not (zerop (length emp-fig-name)))
         (progn
           (setq LaTeX-emp-fig-name (concat LaTeX-optop emp-fig-name 
LaTeX-optcl))
@@ -61,20 +58,19 @@ Used for emp, empdef, and empgraph environments."
      (end-of-line)
      (insert "(" emp-fig-width "," emp-fig-height ")")
      (forward-line 1)
-     (indent-according-to-mode)
-     ))
+     (indent-according-to-mode)))
 
 (defun LaTeX-env-empfile (_optional)
-   "Ask for file. Insert empfile environment"
-   (let ((empfile (TeX-read-string "empfile: " "")))
+   "Ask for file. Insert empfile environment."
+   (let ((empfile (TeX-read-string "empfile: " ""))
+        LaTeX-emp-file-name mpost-emp-file-name)
      (if (not (zerop (length empfile)))
         (progn
           (setq LaTeX-emp-file-name (concat LaTeX-optop empfile LaTeX-optcl))
           (setq mpost-emp-file-name (concat empfile ".mp"))
           (LaTeX-insert-environment "empfile" LaTeX-emp-file-name))
-       (progn
-        (setq mpost-emp-file-name "\jobname")
-        (LaTeX-insert-environment "empfile")))
+       (setq mpost-emp-file-name "\jobname")
+       (LaTeX-insert-environment "empfile"))
      (if LaTeX-write18-enabled-p
         (progn
           (forward-line 1)
@@ -82,4 +78,5 @@ Used for emp, empdef, and empgraph environments."
           (newline-and-indent)
           (insert "\immediate\write18{mpost -tex=latex " mpost-emp-file-name 
TeX-grcl)
           (forward-line -2)))))
+
 ;;; emp.el ends here
diff --git a/style/empheq.el b/style/empheq.el
index a0b301c..e01d04c 100644
--- a/style/empheq.el
+++ b/style/empheq.el
@@ -42,6 +42,12 @@
                  "font-latex"
                  (keywords class))
 
+(declare-function LaTeX-item-equation-alignat
+                 "amsmath" (&optional suppress))
+
+(defvar LaTeX-mathtools-package-options)
+(defvar font-latex-math-environments)
+
 (defvar LaTeX-empheq-key-val-options
   `(("box")
     ("innerbox")
diff --git a/style/exam.el b/style/exam.el
index 25cd950..be8126d 100644
--- a/style/exam.el
+++ b/style/exam.el
@@ -37,6 +37,8 @@
                  "font-latex"
                  (keywords class))
 
+(defvar LaTeX-article-class-options)
+
 (defvar LaTeX-exam-class-options
   '("answers" "noanswers" "cancelspace" "nocancelspace" "addpoints")
   "Class options for the exam class.")
diff --git a/style/fvextra.el b/style/fvextra.el
index 0bdcbbc..e5f5d19 100644
--- a/style/fvextra.el
+++ b/style/fvextra.el
@@ -38,6 +38,8 @@
 (declare-function LaTeX-color-definecolor-list "color" ())
 (declare-function LaTeX-xcolor-definecolor-list "xcolor" ())
 
+(defvar LaTeX-fancyvrb-key-val-options-local)
+
 (defvar LaTeX-fvextra-key-val-options
   '(;; 3 General options
     ("curlyquotes" ("true" "false"))
diff --git a/style/gloss-italian.el b/style/gloss-italian.el
index c2a95c9..dd3ec07 100644
--- a/style/gloss-italian.el
+++ b/style/gloss-italian.el
@@ -34,6 +34,9 @@
                  "font-latex"
                  (quotes))
 
+(declare-function LaTeX-polyglossia-lang-option-member
+                 "polyglossia" (language option))
+
 (defvar TeX-language-it-hook nil
   "Hook run for Italian texts.")
 
diff --git a/style/jurabib.el b/style/jurabib.el
index 52f98ed..077af4a 100644
--- a/style/jurabib.el
+++ b/style/jurabib.el
@@ -40,6 +40,8 @@
                  "font-latex"
                  (keywords class))
 
+(defvar reftex-cite-format-builtin)
+
 (TeX-add-style-hook
  "jurabib"
  (lambda ()
diff --git a/style/mathtools.el b/style/mathtools.el
index aeb242c..83bef3e 100644
--- a/style/mathtools.el
+++ b/style/mathtools.el
@@ -44,6 +44,8 @@
                  "font-latex"
                  (keywords class))
 
+(defvar LaTeX-amsmath-package-options)
+
 ;; amsmath options which can be passed directly to mathtools are
 ;; appended in the style hook below
 (defvar LaTeX-mathtools-package-options
diff --git a/style/minted.el b/style/minted.el
index 6cb2f65..24005c2 100644
--- a/style/minted.el
+++ b/style/minted.el
@@ -43,6 +43,8 @@
 
 (declare-function LaTeX-color-definecolor-list "color" ())
 (declare-function LaTeX-xcolor-definecolor-list "xcolor" ())
+(declare-function LaTeX-add-newfloat-DeclareFloatingEnvironments
+                 "newfloat" (&rest newfloat-declarefloatingenvironments))
 
 (defvar font-latex-syntactic-keywords-extra)
 
diff --git a/style/pstricks.el b/style/pstricks.el
index 9762b68..33652f9 100644
--- a/style/pstricks.el
+++ b/style/pstricks.el
@@ -1,7 +1,6 @@
 ;;; pstricks.el --- AUCTeX style for the `pstricks' package.
 
-;; Copyright (C) 2007, 2009, 2013-2015,
-;;               2018  Free Software Foundation, Inc.
+;; Copyright (C) 2007, 2009, 2013-2015, 2018  Free Software Foundation, Inc.
 
 ;; Author: Holger Sparr <address@hidden>
 ;; Maintainer: address@hidden
@@ -232,7 +231,7 @@ package PNAME"
 
 (defun LaTeX-pst-point-in-parens (_optional)
   "Enclose point in parentheses."
-  (LaTeX-pst-enclose-obj 'LaTeX-pst-point ?( ?)))
+  (LaTeX-pst-enclose-obj 'LaTeX-pst-point ?\( ?\)))
 
 ;;; Angles
 (defvar LaTeX-pst-angle-list (list "0")
@@ -720,7 +719,7 @@ comma separated list. Point has to be within the sexp to 
modify."
         (progn
           (re-search-backward "\\\([a-zA-Z]\)")
           (forward-word 1)
-          (insert-pair nil ?[ ?]))
+          (insert-pair nil ?\[ ?\]))
       (up-list 1)
       (backward-char 1)
       (save-excursion
diff --git a/style/subcaption.el b/style/subcaption.el
index 5b82648..8bffa8a 100644
--- a/style/subcaption.el
+++ b/style/subcaption.el
@@ -36,6 +36,9 @@
                  "font-latex"
                  (keywords class))
 
+(defvar LaTeX-caption-key-val-options-local)
+(defvar LaTeX-caption-key-val-options)
+
 (defvar LaTeX-subcaption-key-val-options
   '(("subrefformat" ("default" "empty" "simple" "brace" "parens")))
   "Key=value options for subcaption package.  This key takes the
diff --git a/style/tcolorboxlib-raster.el b/style/tcolorboxlib-raster.el
index d54bbd5..8d0ab79 100644
--- a/style/tcolorboxlib-raster.el
+++ b/style/tcolorboxlib-raster.el
@@ -34,6 +34,9 @@
                  "font-latex"
                  (keywords class))
 
+(defvar LaTeX-tcolorbox-keyval-options-local)
+(defvar LaTeX-tcolorbox-keyval-options-full)
+
 (defvar LaTeX-tcolorbox-lib-raster-keyval-options
   '(;; 14.3 Option Keys of the Library
     ("raster columns")
diff --git a/style/thm-restate.el b/style/thm-restate.el
index 595a582..2176515 100644
--- a/style/thm-restate.el
+++ b/style/thm-restate.el
@@ -35,6 +35,10 @@
 ;; Needed for auto-parsing.
 (require 'tex)
 
+;; Silence the parser:
+(declare-function LaTeX-thmtools-declaretheorem-list
+                 "thmtools" ())
+
 ;; Setup for macro names defined with
 ;; egin{restatable}[<Heading>]{<env-name>}{<macro name>}:
 



reply via email to

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