emacs-devel
[Top][All Lists]
Advanced

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

Re: unused local variables


From: David Kastrup
Subject: Re: unused local variables
Date: Fri, 30 Nov 2007 11:23:34 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux)

"Juanma Barranquero" <address@hidden> writes:

> On Nov 30, 2007 10:59 AM, David Kastrup <address@hidden> wrote:
>
>> I consider this quite reasonable.  If my-dynamic-var is used for passing
>> information across function boundaries, it deserves being declared in
>> the same scope.
>
> I don't know whether it is reasonable, but it is a departure of the
> current use.
>
> The docstring of `defvar' clearly says:

The docstring is not defining "current use".

> Getting a warning is tantamount to be required to define it...
>
> Now, I'm all for lexically scoped Lisp and (declare (special
> mydynamic-var)) and the like, but clearly that's not the route elisp
> is following.

It is pretty much the current practice in Emacs code.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum




reply via email to

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