|
From: | Stefan Monnier |
Subject: | Re: master 8f0f851: * lisp/autoarg.el: Use lexical binding. |
Date: | Mon, 20 Apr 2020 09:52:48 -0400 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
> I don't think I understand the original warning though. This > minimized code example gives me "Unused lexical variable 'i'" when > byte-compiled: > > (let (alist) > (dotimes (i 10 alist) > (push i alist))) It's unused in the expression `alist`. If you don't use `i` there, then you should do: (let (alist) (dotimes (i 10) (push i alist)) alist) -- Stefan
[Prev in Thread] | Current Thread | [Next in Thread] |