[Top][All Lists]
[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 12:26:23 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.0.50 (gnu/linux) |
"Juanma Barranquero" <address@hidden> writes:
> On Nov 30, 2007 11:34 AM, 山本和彦 Kazu Yamamoto <address@hidden> wrote:
>
>> I'm not sure the point of this example.
>
> The point of the example is (and I'm sure you know it) that dynamic
> variables can be used in ways that are not evident to the
> byte-compiler just by looking at the lexical scope where the dynamic
> variable is used...
>
>> What I want to say is that case-fold-search in the following example
>> is not warned with XEmacs because it is defined with 'defvar'.
>
> So, yes: what you propose is forcing `defvar' for dynamic variables
> used across function boundaries.
I am actually surprised that this is supposedly not already the case:
the (defvar xxx) construct has the sole purpose of silencing the byte
compiler as far as I remember.
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum
- Re: unused local variables, (continued)
- Re: unused local variables, 山本和彦, 2007/11/30
- Re: unused local variables, Juanma Barranquero, 2007/11/30
- Re: unused local variables, David Kastrup, 2007/11/30
- Re: unused local variables, Juanma Barranquero, 2007/11/30
- Re: unused local variables, David Kastrup, 2007/11/30
- Re: unused local variables, Juanma Barranquero, 2007/11/30
- Re: unused local variables, David Kastrup, 2007/11/30
- Re: unused local variables, Juanma Barranquero, 2007/11/30
- Re: unused local variables, 山本和彦, 2007/11/30
- Re: unused local variables, Juanma Barranquero, 2007/11/30
- Re: unused local variables,
David Kastrup <=
- Re: unused local variables, Juanma Barranquero, 2007/11/30
- Re: unused local variables, Stefan Monnier, 2007/11/30
- Re: unused local variables, Juanma Barranquero, 2007/11/30
- Re: unused local variables, Stefan Monnier, 2007/11/30
- Re: unused local variables, David Kastrup, 2007/11/30
- Re: unused local variables, tomas, 2007/11/30
- Re: unused local variables, Juanma Barranquero, 2007/11/30
- Re: unused local variables, Juanma Barranquero, 2007/11/30
- Re: unused local variables, Stefan Monnier, 2007/11/30
- Re: unused local variables, Juanma Barranquero, 2007/11/30