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

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

Re: How to avoid compiler warning `unused lexical variable' for `dolist'


From: Emanuel Berg
Subject: Re: How to avoid compiler warning `unused lexical variable' for `dolist' or `dotimes'?
Date: Fri, 08 Jan 2021 14:35:53 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

tomas wrote:

>> No! Again, this is a problem with the byte compiler.
>> So rather, fixing it would take
>
> No. It's a problem somewhere between the macro expander
> and the byte compiler.

The byte compiler, after user invocation, tells the user the
user isn't using the variable. When the user is using it.

This bug tho is easy to fix. Add to the warning string that it
refers not to what the user has just written and what is
referenced by the byte compiler, BUT to what is macro-expanded
(one will have to do this manually, in scratch, I guess), and
maybe certain parts of that, even. The second let?

-- 
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal




reply via email to

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