emacs-devel
[Top][All Lists]
Advanced

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

Re: Cleaning up code


From: Stefan Monnier
Subject: Re: Cleaning up code
Date: Tue, 13 Aug 2013 12:30:47 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

> However, setting `byte-compile-force-lexical-warnings' to t is too
> coarse. For example, Tramp's macro `with-parsed-tramp-file-name'
> let-binds several variables "just in case". They are reported as unused
> then, on every invocation of that macro.

Yup, that's one of the main problems: when a single let in the source
ends up duplicated after expansion so some expansions may use it while
others end up not using it.

We need to add some way to tell Emacs that it should check "the sum of
all uses" or something like that.  In your case, this "sum" is
open-ended, so we should instead just tell it not to check at all.


        Stefan



reply via email to

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