From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Alan Mackenzie <acm@muc.de>
Cc: bug-cc-mode@gnu.org, Eli Zaretskii <eliz@gnu.org>, emacs-devel@gnu.org
Subject: Re: Compilation warnings in cc-mode.el
Date: Mon, 01 Aug 2011 23:11:57 -0400 [thread overview]
Message-ID: <jwvsjpk8qc0.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20110722160449.GA2371@acm.acm> (Alan Mackenzie's message of "Fri, 22 Jul 2011 16:04:49 +0000")
>> cc-mode.el:158:1:Warning: (lambda nil ...) quoted with ' rather than with #'
> I've had a quite long look at the source code, but can't figure it out.
> I've fixed another bug in that area, though, so thanks for drawing my
> attention to it. :-)
Most likely it's a ',foo in some macro where `foo' is an argument that ends
up being a (lambda ...) in some cases.
> I'm not altogether sure what that warning means. Mostly, a (lamda ...)
> isn't quoted at all, surely? Presumably there's been a change to the
> byte compiler to cause these warnings.
Yes, the change is to output a warning when we detect such a case
(i.e. when (quote (lambda ..)) is passed to funcall, apply, and a few
more special-cased functions). We used to silently change those to
#'(lambda ..), but now we additionally output a warning since the
meaning of the two is subtly different in the presence of lexical-binding.
Stefan
prev parent reply other threads:[~2011-08-02 3:11 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-20 5:10 Compilation warnings in cc-mode.el Eli Zaretskii
2011-07-20 12:09 ` Juanma Barranquero
2011-07-20 12:14 ` Lars Magne Ingebrigtsen
2011-07-22 16:04 ` Alan Mackenzie
2011-08-02 3:11 ` Stefan Monnier [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvsjpk8qc0.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=acm@muc.de \
--cc=bug-cc-mode@gnu.org \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.