emacs-devel
[Top][All Lists]
Advanced

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

Re: unused local variables


From: Juanma Barranquero
Subject: Re: unused local variables
Date: Fri, 30 Nov 2007 10:37:55 +0100

On Nov 30, 2007 10:27 AM, 山本和彦 Kazu Yamamoto <address@hidden> wrote:

> XEmacs warns unused local variables as if they are statically bound.
> Also XEmacs does not warns unused local variables if they are
> also globally defined.

Are you saying that in

 (defun test ()
   (if my-dynamic-var
       "correct"
     "erroneous"))

 (let ((my-dynamic-var t))
   (test))

you would force my-dynamic-var to be `defvar'ed to avoid a warning in the let?

             Juanma

reply via email to

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