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

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

[elpa] externals/auctex 352de40 50/62: ; Fix byte-compile warnings in st


From: Tassilo Horn
Subject: [elpa] externals/auctex 352de40 50/62: ; Fix byte-compile warnings in styles
Date: Sun, 20 Dec 2020 10:40:04 -0500 (EST)

branch: externals/auctex
commit 352de40c94ee40879365d4d2239ff8c0ee63b8c6
Author: Tassilo Horn <tsdh@gnu.org>
Commit: Tassilo Horn <tsdh@gnu.org>

    ; Fix byte-compile warnings in styles
---
 style/plhb.el        |  1 +
 style/polyglossia.el |  1 +
 style/pst-node.el    |  3 +++
 style/pst-plot.el    |  2 ++
 style/pst-slpe.el    | 35 ++++++++++++++++++-----------------
 style/pstricks.el    |  2 ++
 style/pythontex.el   |  3 +++
 7 files changed, 30 insertions(+), 17 deletions(-)

diff --git a/style/plhb.el b/style/plhb.el
index 3247e2a..14d86ab 100644
--- a/style/plhb.el
+++ b/style/plhb.el
@@ -8,6 +8,7 @@
 ;;; Code:
 
 (require 'tex)
+(require 'latex)
 
 (defvar LaTeX-plhb-mode-syntax-table
   (copy-syntax-table LaTeX-mode-syntax-table)
diff --git a/style/polyglossia.el b/style/polyglossia.el
index 97fee5d..e52d54e 100644
--- a/style/polyglossia.el
+++ b/style/polyglossia.el
@@ -37,6 +37,7 @@
 
 (require 'tex) ;Indispensable when compiling the call to `TeX-auto-add-type'.
 (require 'latex)
+(require 'tex-buf)
 
 ;; Silence the compiler:
 (declare-function font-latex-add-keywords
diff --git a/style/pst-node.el b/style/pst-node.el
index 8a72647..be28fb0 100644
--- a/style/pst-node.el
+++ b/style/pst-node.el
@@ -35,6 +35,9 @@
 
 ;;; Code:
 
+(require 'tex)
+(require 'latex)
+
 ;; Silence the compiler:
 (declare-function LaTeX-package-parameter-value
                  "pstricks" (param pname))
diff --git a/style/pst-plot.el b/style/pst-plot.el
index 843c614..bcbeb9d 100644
--- a/style/pst-plot.el
+++ b/style/pst-plot.el
@@ -35,6 +35,8 @@
 
 ;;; Code:
 
+(require 'tex)
+
 ;; Silence the compiler:
 (declare-function LaTeX-pst-arrows "pstricks" ())
 (declare-function LaTeX-pst-point  "pstricks" ())
diff --git a/style/pst-slpe.el b/style/pst-slpe.el
index 7b68ce1..e9f78e6 100644
--- a/style/pst-slpe.el
+++ b/style/pst-slpe.el
@@ -33,6 +33,8 @@
 
 ;;; Code:
 
+(require 'tex)
+
 ;; Silence the compiler:
 (defvar LaTeX-pst-fillstyle-list)
 (defvar LaTeX-pst-parameters-completion-regexp)
@@ -51,23 +53,22 @@
 ;;; Define hook
 (TeX-add-style-hook
  "pst-slpe"
- (function
-  (lambda ()
-    (TeX-run-style-hooks
-     "pstricks")
-    (unless (member "slope" LaTeX-pst-fillstyle-list)
-      (setq LaTeX-pst-fillstyle-list
-            (append LaTeX-pst-fillstyle-list
-                    '("slope" "slopes" "ccslope" "ccslopes" "radslope"
-                    "radslopes")))
-      (setq LaTeX-pst-parameters-completion-regexp
-            (concat
-             (substring LaTeX-pst-parameters-completion-regexp 0 -2)
-             "\\|slopebegin\\|slopeend\\)")))
-    (make-local-variable 'LaTeX-pst-parameters-name-list)
-    (setq LaTeX-pst-parameters-name-list
-          (append LaTeX-pstslpe-parameters-name-list
-                  LaTeX-pst-parameters-name-list))))
+ (lambda ()
+   (TeX-run-style-hooks
+    "pstricks")
+   (unless (member "slope" LaTeX-pst-fillstyle-list)
+     (setq LaTeX-pst-fillstyle-list
+           (append LaTeX-pst-fillstyle-list
+                   '("slope" "slopes" "ccslope" "ccslopes" "radslope"
+                     "radslopes")))
+     (setq LaTeX-pst-parameters-completion-regexp
+           (concat
+            (substring LaTeX-pst-parameters-completion-regexp 0 -2)
+            "\\|slopebegin\\|slopeend\\)")))
+   (make-local-variable 'LaTeX-pst-parameters-name-list)
+   (setq LaTeX-pst-parameters-name-list
+         (append LaTeX-pstslpe-parameters-name-list
+                 LaTeX-pst-parameters-name-list)))
  TeX-dialect)
 
 ;;; pst-slpe.el ends here
diff --git a/style/pstricks.el b/style/pstricks.el
index 489fcb3..7b40256 100644
--- a/style/pstricks.el
+++ b/style/pstricks.el
@@ -61,6 +61,8 @@
 
 ;;; Code:
 
+(require 'tex)
+(require 'latex)
 (eval-when-compile
   (require 'cl-lib))
 
diff --git a/style/pythontex.el b/style/pythontex.el
index c408326..18ba765 100644
--- a/style/pythontex.el
+++ b/style/pythontex.el
@@ -31,6 +31,9 @@
 
 ;;; Code:
 
+(require 'tex)
+(require 'latex)
+
 ;; Silence the compiler:
 ;; `LaTeX-fancyvrb-key-val-options-local' will be defined after
 ;; loading `fvextra.el' which loads `fancyvrb.el' in return:



reply via email to

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