From: "Andreas Röhler" <andreas.roehler@easy-emacs.de>
To: Joost Kremers <joostkremers@fastmail.fm>
Cc: Help Gnu Emacs mailing list <help-gnu-emacs@gnu.org>
Subject: Re: dotimes var comiler warning
Date: Thu, 24 Nov 2016 14:59:14 +0100 [thread overview]
Message-ID: <f03dc438-32eb-c605-22e3-58490bd080da@easy-emacs.de> (raw)
In-Reply-To: <87h96xrqd2.fsf@fastmail.fm>
On 24.11.2016 13:53, Joost Kremers wrote:
>
> On Thu, Nov 24 2016, Andreas Röhler wrote:
>> when employing a form
>>
>> (dotimes (i erg)
>>
>> ...do-something
>>
>>
>> Compiler sends a warning "Unused lexical variable ‘i’ - whilst seems
>> no way to leave out such a var.
>
> This seems to work:
>
> (dotimes (_ erg)
> ...)
>
> (info "(elisp) Using Lexical Binding") says:
>
> ,----
> | (To silence byte-compiler warnings about unused variables,
> just use a
> | variable name that start with an underscore. The byte-compiler
> | interprets this as an indication that this is a variable known not
> to be
> | used.)
> `----
>
> (Very bottom of the page)
>
> HTH
>
>
Thanks!
next prev parent reply other threads:[~2016-11-24 13:59 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-24 12:47 dotimes var comiler warning Andreas Röhler
2016-11-24 12:53 ` Joost Kremers
2016-11-24 13:59 ` Andreas Röhler [this message]
2016-11-24 13:32 ` Michael Heerdegen
2016-11-24 14:14 ` Andreas Röhler
2016-12-01 23:08 ` Emanuel Berg
2016-11-24 20:51 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f03dc438-32eb-c605-22e3-58490bd080da@easy-emacs.de \
--to=andreas.roehler@easy-emacs.de \
--cc=help-gnu-emacs@gnu.org \
--cc=joostkremers@fastmail.fm \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).