emacs-devel
[Top][All Lists]
Advanced

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

Re: Byte compiling and semi-free variables


From: Lennart Borgman
Subject: Re: Byte compiling and semi-free variables
Date: Sun, 28 Dec 2008 16:50:09 +0100

On Sun, Dec 28, 2008 at 4:48 PM, Juanma Barranquero <address@hidden> wrote:
> On Sun, Dec 28, 2008 at 16:39, Lennart Borgman
> <address@hidden> wrote:
>
>> Is there any way to avoid that warning?
>
> You could use `with-no-warnings' (which is ugly):
>
>  (defun my-fun ()
>    (interactive)
>    (with-no-warnings
>      (setq my-internal-var 1)))
>
> or add a local variable:
>
>  ;;; Local Variables:
>  ;;; byte-compile-warnings: (not free-vars)
>  ;;; End:
>
> which is uglier and affects every non-declared variable in the file.
>
> Or you could just not order the definitions top-down.

Which is also rather ugly ... ;-)

Thanks.

>    Juanma
>




reply via email to

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