[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#8711: 24.0.50; binding _ to unused values with lexical-binding
From: |
Juanma Barranquero |
Subject: |
bug#8711: 24.0.50; binding _ to unused values with lexical-binding |
Date: |
Thu, 2 Jun 2011 19:10:24 +0200 |
On Thu, Jun 2, 2011 at 16:00, Stefan Monnier <monnier@iro.umontreal.ca> wrote:
> I don't know which particular case you're referring to
The one I described earlier:
C:\emacs\trunk> bin\emacs.exe -batch -Q -f batch-byte-compile lisp\doc-view.el
In toplevel form:
doc-view.el:614:1:Warning: Unused lexical variable `item'
Wrote c:/emacs/trunk/lisp/doc-view.elc
where line 614 points to this function:
(defun doc-view-remove-if (predicate list)
"Return LIST with all items removed that satisfy PREDICATE."
(let (new-list)
(dolist (item list (nreverse new-list))
(when (not (funcall predicate item))
(setq new-list (cons item new-list))))))
Juanma