From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Compilation warnings in cc-mode.el Date: Mon, 01 Aug 2011 23:11:57 -0400 Message-ID: References: <20110722160449.GA2371@acm.acm> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1312254739 26981 80.91.229.12 (2 Aug 2011 03:12:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 2 Aug 2011 03:12:19 +0000 (UTC) Cc: bug-cc-mode@gnu.org, Eli Zaretskii , emacs-devel@gnu.org To: Alan Mackenzie Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 02 05:12:15 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Qo5Ou-0005sh-JZ for ged-emacs-devel@m.gmane.org; Tue, 02 Aug 2011 05:12:12 +0200 Original-Received: from localhost ([::1]:47736 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qo5Oo-0007ZY-R0 for ged-emacs-devel@m.gmane.org; Mon, 01 Aug 2011 23:12:06 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:42101) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qo5Ol-0007ZG-UW for emacs-devel@gnu.org; Mon, 01 Aug 2011 23:12:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qo5Ok-0001g3-Qr for emacs-devel@gnu.org; Mon, 01 Aug 2011 23:12:03 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:31611 helo=ironport2-out.pppoe.ca) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qo5Oh-0001ai-8m; Mon, 01 Aug 2011 23:11:59 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAHVqN05FxKfe/2dsb2JhbABCp194gUABAQQBViMFCwsOJhIUGA0kh3/BBYZCBJ9KhDE X-IronPort-AV: E=Sophos;i="4.67,304,1309752000"; d="scan'208";a="128371159" Original-Received: from 69-196-167-222.dsl.teksavvy.com (HELO ceviche.home) ([69.196.167.222]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 01 Aug 2011 23:11:58 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id D88D5660CF; Mon, 1 Aug 2011 23:11:57 -0400 (EDT) In-Reply-To: <20110722160449.GA2371@acm.acm> (Alan Mackenzie's message of "Fri, 22 Jul 2011 16:04:49 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:142667 Archived-At: >> 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