branch: externals/auctex commit 5c287512117fdc92ad0c2072d798662a4807d5fa Author: Tassilo Horn <t...@gnu.org> Commit: Tassilo Horn <t...@gnu.org>
; Fix some byte-compiler warnings --- style/acro.el | 3 ++- style/arabxetex.el | 3 +++ style/beamer.el | 2 +- style/bidi.el | 6 ++++++ style/doc.el | 2 +- 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/style/acro.el b/style/acro.el index c3a3256..a691d6e 100644 --- a/style/acro.el +++ b/style/acro.el @@ -29,7 +29,8 @@ ;;; Code: -(require 'tex) ;Indispensable when compiling the call to `TeX-auto-add-type'. +(require 'tex) +(require 'latex) ;; Silence the compiler: (declare-function font-latex-add-keywords diff --git a/style/arabxetex.el b/style/arabxetex.el index 249d7a4..d675de2 100644 --- a/style/arabxetex.el +++ b/style/arabxetex.el @@ -35,6 +35,9 @@ (declare-function font-latex-add-keywords "font-latex" (keywords class)) +(declare-function TeX-check-engine-add-engines + "tex-buf" + (&rest engines)) (TeX-add-style-hook "arabxetex" diff --git a/style/beamer.el b/style/beamer.el index 453878f..5221c4f 100644 --- a/style/beamer.el +++ b/style/beamer.el @@ -62,7 +62,7 @@ (TeX-add-style-hook "beamer" (lambda () - (add-hook 'LaTeX-after-insert-env-hooks 'LaTeX-beamer-after-insert-env nil t) + (add-hook 'LaTeX-after-insert-env-hook 'LaTeX-beamer-after-insert-env nil t) (TeX-run-style-hooks "amsmath" "amssymb" "amsthm" "color" "geometry" "hyperref" "inputenc" "translator" "xcolor") diff --git a/style/bidi.el b/style/bidi.el index e2ad675..d1e080d 100644 --- a/style/bidi.el +++ b/style/bidi.el @@ -29,10 +29,16 @@ ;;; Code: +(require 'tex) +(require 'latex) + ;; Silence the compiler: (declare-function font-latex-add-keywords "font-latex" (keywords class)) +(declare-function TeX-check-engine-add-engines + "tex-buf" + (&rest engines)) (defvar LaTeX-bidi-package-options '("RTLdocument" "rldocument" "extrafootnotefeatures") diff --git a/style/doc.el b/style/doc.el index 20e1486..5c2b2e8 100644 --- a/style/doc.el +++ b/style/doc.el @@ -69,7 +69,7 @@ '("macrocode*" current-indentation) t) (add-to-list 'LaTeX-indent-environment-list '("macro" current-indentation) t) - (add-hook 'LaTeX-after-insert-env-hooks 'LaTeX-doc-after-insert-macrocode + (add-hook 'LaTeX-after-insert-env-hook 'LaTeX-doc-after-insert-macrocode nil t) (LaTeX-add-environments "theglossary"