help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Conditional compilation to avoid "assignment to free variable"


From: Glenn Morris
Subject: Re: Conditional compilation to avoid "assignment to free variable"
Date: Wed, 24 Sep 2008 15:09:37 -0700
User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)

Michael Hoffman wrote:

> (when (locate-library "auctex")
>   (load "auctex.el" nil t t)
>   (setq TeX-auto-save t))
>
> When I byte-compile, however, I get a warning like this:
>
> emacs.el:320:9:Warning: assignment to free variable `TeX-auto-save'

Byte-compiling your .emacs is pretty much a waste of time (you've
probably already invested more time in it than it might ever save you).
Worry about warnings while doing so is really a waste of time; but the 
standard method of suppressing free variable warnings is

(defvar TeX-auto-save)
(setq TeX-auto-save t)


reply via email to

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