]> git.eshelyaron.com Git - emacs.git/commitdiff
(defvar): Wrap some defvars in
authorDave Love <fx@gnu.org>
Thu, 1 Mar 2001 18:42:27 +0000 (18:42 +0000)
committerDave Love <fx@gnu.org>
Thu, 1 Mar 2001 18:42:27 +0000 (18:42 +0000)
eval-when-compile.  From Markus Rost <rost@math.ohio-state.edu>.

lisp/textmodes/reftex.el

index 9c3b90118f1b2db14651d60e26a4b879a4c7fc5d..08d6c8baa795e2a9da48f23531d4ed31c56a909c 100644 (file)
@@ -415,14 +415,15 @@ on the menu bar.
 ;;; =========================================================================
 ;;;
 ;;; Silence warnings about variables in other packages.
-(defvar TeX-master)
-(defvar LaTeX-section-hook)
-(defvar LaTeX-label-function)
-(defvar tex-main-file)
-(defvar outline-minor-mode)
-(defvar font-lock-mode)
-(defvar font-lock-fontify-region-function)
-(defvar font-lock-syntactic-keywords)
+(eval-when-compile
+  (defvar TeX-master)
+  (defvar LaTeX-section-hook)
+  (defvar LaTeX-label-function)
+  (defvar tex-main-file)
+  (defvar outline-minor-mode)
+  (defvar font-lock-mode)
+  (defvar font-lock-fontify-region-function)
+  (defvar font-lock-syntactic-keywords))
 
 ;;; =========================================================================
 ;;;