Re: message in *compile log* buffer

Ralf Angeli <[email protected]>
Newsgroups gmane.emacs.auc-tex
Message-ID <[email protected]>
* Sebastian Luque (2005-01-19) writes:

> Since upgrading to auctex 11.54, I receive the following message in the
> *compile log* buffer:
>
>  ** reference to free variable minor-mode-list
>
> whenever I open some of my LaTeX files. What does it mean? Thank you.

It is a message from the byte compiler that a variable was referenced
which has not been declared yet.

Could you please tell us something about your setup?  Platform, Emacs
version, if your Emacs is provided by a third party or compiled
yourself etc.  Most of this information is included automatically if
you use `M-x TeX-submit-bug-report RET' for reporting bugs.

As this is the second report about this bug, I changed the concerned
code in CVS.  You can check if this is fixed by downloading a snapshot
from <URL:http://theotp1.physik.uni-ulm.de/~ste/comp/emacs/auctex/snapshots/>
as soon as there is a new one available.  Or you could apply the
attached patch to the 11.54 sources.

-- 
Ralf
tex.el.patch (text/x-patch, 1.2 KB)
Index: tex.el
===================================================================
RCS file: /cvsroot/auctex/auctex/tex.el,v
retrieving revision 5.475
retrieving revision 5.478
diff -u -r5.475 -r5.478
--- tex.el	6 Jan 2005 18:25:57 -0000	5.475
+++ tex.el	19 Jan 2005 09:03:10 -0000	5.478
@@ -687,14 +687,11 @@
   "Call minor mode function if minor mode variable is found."
   (let ((var (ad-get-arg 0))
 	(val (ad-get-arg 1)))
-    (when (if (boundp 'minor-mode-list)
-	      ;; Test which does not require maintenance but `minor-mode-list'.
-	      (and (memq var minor-mode-list)
-		   (string-match "^\\(La\\)*TeX-.+-mode$" (symbol-name var)))
-	    ;; "Manual" test requiring adaption when minor modes change.
-	    (memq var '(TeX-PDF-mode TeX-source-specials-mode
-				     TeX-interactive-mode TeX-Omega-mode
-				     TeX-fold-mode LaTeX-math-mode)))
+    ;; Instead of checking for each mode explicitely `minor-mode-list'
+    ;; could be used.  But this may make the byte compiler pop up.
+    (when (memq var '(TeX-PDF-mode
+		      TeX-source-specials-mode TeX-interactive-mode
+		      TeX-Omega-mode TeX-fold-mode LaTeX-math-mode))
       (if (symbol-value val) (funcall var 1) (funcall var 0)))))
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.