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

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

Re: closure within closure, incorrect (?) byte-compiler warnings


From: Emanuel Berg
Subject: Re: closure within closure, incorrect (?) byte-compiler warnings
Date: Tue, 09 Nov 2021 01:10:32 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Michael Heerdegen wrote:

>> This sums it up ... three bugs?
>
>> ;; 1. Byte compiler warnings (two cases) relating to the
>> ;;    interactive spec:
>> ;;
>> ;;    geh.el:7:1: Warning: Unused lexical variable `more-data'
>> ;;    geh.el:10:54: Warning: reference to free variable ‘data-item’
>> ;;    geh.el:10:64: Warning: reference to free variable ‘more-data’
>> ;;
>> ;; 2. When the compiled version is used interactively:
>> ;;
>> ;;    Symbol's value as variable is void: data-item
>
> These are all symptoms of one and the same issue: the
> interactive spec currently can't refer to outer lexical
> variables. The warnings are actually legitimate, they only
> warn about this limitation. So: one bug (there was no Bug #3
> in your list btw).

OK, I submitted only one bug report so if you (or anyone else)
want to submit the other two feel free to do it.

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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