[Top][All Lists]

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

[elpa] externals/auctex be4a912 26/30: ; Silence the compiler

From: Tassilo Horn
Subject: [elpa] externals/auctex be4a912 26/30: ; Silence the compiler
Date: Fri, 25 Sep 2020 11:00:16 -0400 (EDT)

branch: externals/auctex
commit be4a912097521709f74617b2ef9b45e1487a2830
Author: Arash Esbati <arash@gnu.org>
Commit: Arash Esbati <arash@gnu.org>

    ; Silence the compiler
    * tex-font.el (tex-math-face): Add variable to tex group.
    * tex.el: defvar internal and external variables.
 tex-font.el |  3 ++-
 tex.el      | 45 ++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 46 insertions(+), 2 deletions(-)

diff --git a/tex-font.el b/tex-font.el
index 27c9cf2..cdedc42 100644
--- a/tex-font.el
+++ b/tex-font.el
@@ -148,7 +148,8 @@
 (defface tex-math-face
   '((t :inherit font-lock-string-face))
-  "Face used to highlight TeX math expressions.")
+  "Face used to highlight TeX math expressions."
+  :group 'tex)
 (defvar tex-math-face 'tex-math-face)
 ;; Use string syntax but math face for $...$.
diff --git a/tex.el b/tex.el
index b954eba..b2bbbbf 100644
--- a/tex.el
+++ b/tex.el
@@ -35,6 +35,7 @@
 (require 'tex-site)
   (require 'cl-lib))
+(require 'texmathp)
 ;; Silence the compiler for functions:
 (declare-function dbus-ignore-errors "ext:dbus"
@@ -65,6 +66,48 @@
 (declare-function spell-buffer "ext:text-mode"
+;; Silence the compiler for variables:
+;; tex.el: Variables defined somewhere in this file:
+(defvar TeX-PDF-from-DVI)
+(defvar TeX-PDF-mode)
+(defvar TeX-PDF-mode-parsed)
+(defvar TeX-all-extensions)
+(defvar TeX-command-default)
+(defvar TeX-default-extension)
+(defvar TeX-esc)
+(defvar TeX-interactive-mode)
+(defvar TeX-macro-global)
+(defvar TeX-mode-map)
+(defvar TeX-mode-p)
+(defvar TeX-output-extension)
+(defvar TeX-output-extension)
+(defvar TeX-source-correlate-mode)
+(defvar TeX-source-specials-places)
+(defvar TeX-source-specials-tex-flags)
+(defvar TeX-synctex-tex-flags)
+;; Variables defined in other AUCTeX libraries:
+;; latex.el:
+(defvar BibLaTeX-global-style-files)
+(defvar BibTeX-global-files)
+(defvar BibTeX-global-style-files)
+(defvar LaTeX-default-verb-delimiter)
+(defvar LaTeX-global-class-files)
+(defvar LaTeX-optcl)
+(defvar LaTeX-optop)
+(defvar TeX-Biber-global-files)
+(defvar TeX-global-input-files)
+;; tex-buf.el
+(defvar TeX-current-process-region-p)
+(defvar TeX-region)
+(defvar TeX-region-orig-buffer)
+;; tex-ispell.el
+(defvar TeX-ispell-verb-delimiters)
+;; graphicx.el
+(defvar LaTeX-includegraphics-global-files)
+;; Others:
+(defvar tex--prettify-symbols-alist)   ; tex-mode.el
+(defvar Info-file-list-for-emacs)      ; info.el
 (defgroup TeX-file nil
   "Files used by AUCTeX."
   :group 'AUCTeX)
@@ -1191,7 +1234,7 @@ entry in `TeX-view-program-list-builtin'."
   (if (and TeX-source-correlate-mode
           (fboundp 'pdf-sync-forward-search))
       (with-current-buffer (or (when TeX-current-process-region-p
-                                (get-file-buffer (TeX-region-file t)))
+                                (get-file-buffer (TeX-region-file t)))
     (let ((pdf (concat file "." (TeX-output-extension))))

reply via email to

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