[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex fc037de 44/62: ; Fix byte-compiler warnings in s
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex fc037de 44/62: ; Fix byte-compiler warnings in styles |
Date: |
Sun, 20 Dec 2020 10:40:02 -0500 (EST) |
branch: externals/auctex
commit fc037de2206bfe51d89c87052bcebf491de8c33a
Author: Tassilo Horn <tsdh@gnu.org>
Commit: Tassilo Horn <tsdh@gnu.org>
; Fix byte-compiler warnings in styles
---
style/icelandic.el | 3 ++
style/ifluatex.el | 3 ++
style/imakeidx.el | 3 ++
style/index.el | 109 +++++++++++++++++++++++++++--------------------------
style/inputenc.el | 2 +
style/italian.el | 2 +
style/nicefrac.el | 3 ++
7 files changed, 72 insertions(+), 53 deletions(-)
diff --git a/style/icelandic.el b/style/icelandic.el
index 58f2e3c..622b00a 100644
--- a/style/icelandic.el
+++ b/style/icelandic.el
@@ -31,6 +31,9 @@
;;; Code:
+(require 'tex)
+(require 'latex)
+
;; Silence the compiler:
(declare-function font-latex-add-quotes
"font-latex"
diff --git a/style/ifluatex.el b/style/ifluatex.el
index 9964ee3..3986fdd 100644
--- a/style/ifluatex.el
+++ b/style/ifluatex.el
@@ -29,6 +29,9 @@
;;; Code:
+(require 'tex)
+(require 'tex-buf)
+
;; Silence the compiler:
(declare-function font-latex-add-keywords
"font-latex"
diff --git a/style/imakeidx.el b/style/imakeidx.el
index 1410498..f14cfeb 100644
--- a/style/imakeidx.el
+++ b/style/imakeidx.el
@@ -29,6 +29,9 @@
;;; Code:
+(require 'tex)
+(require 'latex)
+
(defvar LaTeX-imakeidx-makeindex-options
'(("name")
("title")
diff --git a/style/index.el b/style/index.el
index cd99840..d541341 100644
--- a/style/index.el
+++ b/style/index.el
@@ -24,59 +24,62 @@
;;; Code:
-(TeX-add-style-hook "index"
- (lambda ()
-
- (TeX-add-symbols
-
- ;; New indices
- '("newindex" [ "Counter" ] "Tag"
- "Extension of raw index" "Extension of processed index" "Index title")
- '("renewindex" [ "Counter" ] "Tag"
- "Extension of raw index" "Extension of processed index" "Index title")
- "makeindex"
- '("disableindex" "Tag[,tag...]")
-
- ;; Printing the index
- '("printindex" [ "Indextag" ] [ "Prologue" ])
- "indexspace"
-
- ;; Index entries
- '("index" [ TeX-arg-index-tag ] TeX-arg-index)
- '("index*" [ TeX-arg-index-tag ] TeX-arg-index)
-
- ;; Showidx-like stuff
- "proofmodetrue" "proofmodefalse" '("indexproofstyle" "Style")
-
- ;; Shortcuts (THESE ARE DEPRECATED AND SHOULD NOT BE USED
- "shortindexingon" "shortindexinoff")
-
- ;; Parsing index macros
- (setq LaTeX-auto-regexp-list
- (append
-
- ;; The first regexp is faster, but less accurate
- ;;'(("\\\\index\\*?\\[[^{}]*\\]{\\([^}]*\\)"
- ;; 1 LaTeX-auto-index-entry))
-
- ;; The second regexp is very good, but slower.
-
'(("\\\\index\\*?\\[[^{}]*\\]{\\([^}{]*\\({[^}{]*\\({[^}{]*\\({[^}{]*}[^}{]*\\)*}[^}{]*\\)*}[^}{]*\\)*\\)}"
- 1 LaTeX-auto-index-entry))
-
- LaTeX-auto-regexp-list))
-
- ;; Completion for the index entries in \index and |see commands
- (setq TeX-complete-list
- (append
- '(("\\\\index\\*?\\(\\[[^][{}]*\\]\\)?{\\([^{}\n\r]*\\)"
- 2 LaTeX-index-entry-list)
- ("|see{\\([^}]*\\)" 1 LaTeX-index-entry-list))
- TeX-complete-list))
-
- ;; RefTeX support
- (and (fboundp 'reftex-add-index-macros)
- (reftex-add-index-macros '(index))))
- TeX-dialect)
+(require 'tex)
+(require 'latex)
+
+(TeX-add-style-hook
+ "index"
+ (lambda ()
+
+ (TeX-add-symbols
+ ;; New indices
+ '("newindex" [ "Counter" ] "Tag"
+ "Extension of raw index" "Extension of processed index" "Index title")
+ '("renewindex" [ "Counter" ] "Tag"
+ "Extension of raw index" "Extension of processed index" "Index title")
+ "makeindex"
+ '("disableindex" "Tag[,tag...]")
+
+ ;; Printing the index
+ '("printindex" [ "Indextag" ] [ "Prologue" ])
+ "indexspace"
+
+ ;; Index entries
+ '("index" [ TeX-arg-index-tag ] TeX-arg-index)
+ '("index*" [ TeX-arg-index-tag ] TeX-arg-index)
+
+ ;; Showidx-like stuff
+ "proofmodetrue" "proofmodefalse" '("indexproofstyle" "Style")
+
+ ;; Shortcuts (THESE ARE DEPRECATED AND SHOULD NOT BE USED
+ "shortindexingon" "shortindexinoff")
+
+ ;; Parsing index macros
+ (setq LaTeX-auto-regexp-list
+ (append
+
+ ;; The first regexp is faster, but less accurate
+ ;;'(("\\\\index\\*?\\[[^{}]*\\]{\\([^}]*\\)"
+ ;; 1 LaTeX-auto-index-entry))
+
+ ;; The second regexp is very good, but slower.
+
'(("\\\\index\\*?\\[[^{}]*\\]{\\([^}{]*\\({[^}{]*\\({[^}{]*\\({[^}{]*}[^}{]*\\)*}[^}{]*\\)*}[^}{]*\\)*\\)}"
+ 1 LaTeX-auto-index-entry))
+
+ LaTeX-auto-regexp-list))
+
+ ;; Completion for the index entries in \index and |see commands
+ (setq TeX-complete-list
+ (append
+ '(("\\\\index\\*?\\(\\[[^][{}]*\\]\\)?{\\([^{}\n\r]*\\)"
+ 2 LaTeX-index-entry-list)
+ ("|see{\\([^}]*\\)" 1 LaTeX-index-entry-list))
+ TeX-complete-list))
+
+ ;; RefTeX support
+ (and (fboundp 'reftex-add-index-macros)
+ (reftex-add-index-macros '(index))))
+ TeX-dialect)
(defvar LaTeX-index-package-options nil
"Package options for the index package.")
diff --git a/style/inputenc.el b/style/inputenc.el
index eac202e..613f2dc 100644
--- a/style/inputenc.el
+++ b/style/inputenc.el
@@ -28,6 +28,8 @@
;;; Code:
+(require 'tex)
+
(defun LaTeX-inputenc-package-options nil
"Prompt for package options for the inputenc package."
;; separate the condition in three to silence the byte compiler
diff --git a/style/italian.el b/style/italian.el
index e6240ec..6a6a996 100644
--- a/style/italian.el
+++ b/style/italian.el
@@ -31,6 +31,8 @@
;;; Code:
+(require 'tex)
+
;; Silence the compiler:
(declare-function font-latex-add-quotes
"font-latex"
diff --git a/style/nicefrac.el b/style/nicefrac.el
index 86827c1..2c69a56 100644
--- a/style/nicefrac.el
+++ b/style/nicefrac.el
@@ -29,6 +29,9 @@
;;; Code:
+(require 'tex)
+(require 'latex)
+
;; Silence the compiler:
(declare-function font-latex-add-keywords
"font-latex"
- [elpa] externals/auctex ced4b1a 10/62: Adapt styles to lexical-binding, (continued)
- [elpa] externals/auctex ced4b1a 10/62: Adapt styles to lexical-binding, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 42f061a 17/62: Improve style/amsthm.el, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 08d01c1 19/62: ; * style/changelog.el: Silence the compiler for `reftex-label-alist'., Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 4c1430a 20/62: Add new style/appendix.el, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 5bffc24 24/62: ; * font-latex.el (font-latex-update-math-env): Fix docstring., Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 072cfc7 28/62: ; Convert suffix to pattern rule, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex a9c37b7 29/62: ; Add new make target dynvars-check, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 3fa1baa 32/62: ; Improve dynvars check, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex f1f71c2 36/62: ; Fix byte-compiler warnings in styles, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 70dc031 38/62: ; Fix more byte-compiler warnings in styles, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex fc037de 44/62: ; Fix byte-compiler warnings in styles,
Tassilo Horn <=
- [elpa] externals/auctex 471748b 46/62: ; Fix byte-compiler warnings in styles, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex a3510c7 51/62: ; Fix byte-compile warnings in styles, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 6f232c3 52/62: ; Fix byte-compile warnings in styles, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 7d87b2a 39/62: ; Fix more byte-compiler warnings in styles, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex dabe30c 02/62: Arrange test condition, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 2b9b3a8 09/62: Enable lexical-binding in all style files., Tassilo Horn, 2020/12/20
- [elpa] externals/auctex cebf8cc 16/62: Enable lexical-binding for texmathp.el, Tassilo Horn, 2020/12/20
- [elpa] externals/auctex c4583f0 15/62: ; * tests/tex/command-expansion.el: Update copyright year., Tassilo Horn, 2020/12/20
- [elpa] externals/auctex c3b76ca 18/62: * tex-ispell.el: Enable lexical-binding., Tassilo Horn, 2020/12/20
- [elpa] externals/auctex 237f409 26/62: ; Suppress warning about obsolete inactivate-input-method, Tassilo Horn, 2020/12/20