--- Begin Message ---
Subject: |
24.3; Incorrect unused variable byte-compiler warning in dotimes |
Date: |
Fri, 20 Dec 2013 16:06:38 -0500 |
User-agent: |
Notmuch/0.16+156~gdb5189a (http://notmuchmail.org) Emacs/24.3.1 (x86_64-pc-linux-gnu) |
When `lexical-binding' is t the byte-compiler issues an invalid warning
for `dotimes' when the optional "result" form is used. For example,
byte-compile a file with these contents.
;;; -*- lexical-binding: t; -*-
(defun foo ()
(dotimes (i 1 t) i))
Or evaluate this form.
(let ((lexical-binding t))
(byte-compile (lambda () (dotimes (i 1 t) i))))
Output:
Warning: Unused lexical variable `i'
If the t is removed the warning goes away.
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#16206: 24.3; Incorrect unused variable byte-compiler warning in dotimes |
Date: |
Sat, 28 Apr 2018 23:21:05 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (x86_64-pc-linux-gnu) |
Version: 27.0.50
>> But without that addition the sentence makes no sense when
>> the documentation describes the RESULT argument and then
>> at the end says that "RESULT should not be used".
>
> "Its use is deprecated".
Done in f4eeb0f.
--- End Message ---