From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#21185: 25.0.50; byte-compiler warn on quote lexical var Date: Wed, 05 Aug 2015 23:28:52 -0400 Message-ID: References: <86y4hre7ku.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1438831767 12106 80.91.229.3 (6 Aug 2015 03:29:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Aug 2015 03:29:27 +0000 (UTC) Cc: 21185@debbugs.gnu.org To: stephen_leake@stephe-leake.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 06 05:29:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZNBrk-0000qJ-HH for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Aug 2015 05:29:12 +0200 Original-Received: from localhost ([::1]:43216 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNBrj-0002lB-HE for geb-bug-gnu-emacs@m.gmane.org; Wed, 05 Aug 2015 23:29:11 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNBrg-0002l0-7V for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 23:29:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNBra-0005RK-U5 for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 23:29:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNBra-0005RE-QW for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 23:29:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZNBra-0006Yb-Hu for bug-gnu-emacs@gnu.org; Wed, 05 Aug 2015 23:29:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Aug 2015 03:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 21185 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 21185-submit@debbugs.gnu.org id=B21185.143883173625191 (code B ref 21185); Thu, 06 Aug 2015 03:29:02 +0000 Original-Received: (at 21185) by debbugs.gnu.org; 6 Aug 2015 03:28:56 +0000 Original-Received: from localhost ([127.0.0.1]:40653 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZNBrU-0006YF-1t for submit@debbugs.gnu.org; Wed, 05 Aug 2015 23:28:56 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:35294) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZNBrR-0006Y3-E5 for 21185@debbugs.gnu.org; Wed, 05 Aug 2015 23:28:54 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AzEwA731xV//gFNJ1cgxCEAoVVuzcJhH6CSQQEAgKBPDkUAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQSFBgNiFsIzyMBAQEBBgIBH4s6hQUHFoQXBbUEI4QUIoJ4AQEB X-IPAS-Result: A0AzEwA731xV//gFNJ1cgxCEAoVVuzcJhH6CSQQEAgKBPDkUAQEBAQEBAYEKQQWDXQEBAwFWIwULCzQSFBgNiFsIzyMBAQEBBgIBH4s6hQUHFoQXBbUEI4QUIoJ4AQEB X-IronPort-AV: E=Sophos;i="5.13,465,1427774400"; d="scan'208";a="158898319" Original-Received: from 157-52-5-248.cpe.teksavvy.com (HELO pastel.home) ([157.52.5.248]) by ironport2-out.teksavvy.com with ESMTP; 05 Aug 2015 23:28:52 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 7CFD05FB58; Wed, 5 Aug 2015 23:28:52 -0400 (EDT) In-Reply-To: <86y4hre7ku.fsf@stephe-leake.org> (stephen leake's message of "Tue, 04 Aug 2015 04:17:21 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:105320 Archived-At: > I've been bitten by this problem when converting code to use lexical > binding; it would be helpful if the byte-compiler warned about it. Agreed, but I haven't figured out how to make this work. There are two problems: 1- detect not just things like =AB 'var =BB but also things like =AB '(var1 var2 var3) =BB since such occur in a few places as well. 2- don't swamp the user with false positives. Problem 2 is by far the biggest. It's very common to have a local variable `face' and at the same time to use the symbol `face' (quoted), for example. I do have such a warning in my local hacks (it outputs a warning for any ' where is a locally bound lexical variable) and find it unbearable, even though I'm usually considered to tolerate warnings much better than most. Stefan