From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.bugs Subject: bug#21185: 25.0.50; byte-compiler warn on quote lexical var Date: Thu, 06 Aug 2015 02:15:42 -0500 Message-ID: <86si7wc2g1.fsf@stephe-leake.org> References: <86y4hre7ku.fsf@stephe-leake.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1438845446 11891 80.91.229.3 (6 Aug 2015 07:17:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Aug 2015 07:17:26 +0000 (UTC) Cc: 21185@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Aug 06 09:17:14 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 1ZNFQP-00067C-Fp for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Aug 2015 09:17:13 +0200 Original-Received: from localhost ([::1]:43674 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNFQO-0007oL-NV for geb-bug-gnu-emacs@m.gmane.org; Thu, 06 Aug 2015 03:17:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42454) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNFQI-0007hf-Kp for bug-gnu-emacs@gnu.org; Thu, 06 Aug 2015 03:17:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZNFQE-0001Wy-Dy for bug-gnu-emacs@gnu.org; Thu, 06 Aug 2015 03:17:06 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:39322) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZNFQE-0001Wu-Ah for bug-gnu-emacs@gnu.org; Thu, 06 Aug 2015 03:17:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1ZNFQD-00056P-SV for bug-gnu-emacs@gnu.org; Thu, 06 Aug 2015 03:17:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stephen Leake Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 06 Aug 2015 07:17:01 +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.143884536619547 (code B ref 21185); Thu, 06 Aug 2015 07:17:01 +0000 Original-Received: (at 21185) by debbugs.gnu.org; 6 Aug 2015 07:16:06 +0000 Original-Received: from localhost ([127.0.0.1]:40768 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1ZNFPK-00055D-92 for submit@debbugs.gnu.org; Thu, 06 Aug 2015 03:16:06 -0400 Original-Received: from gproxy10-pub.mail.unifiedlayer.com ([69.89.20.226]:37658) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1ZNFPG-00054y-TS for 21185@debbugs.gnu.org; Thu, 06 Aug 2015 03:16:04 -0400 Original-Received: (qmail 3963 invoked by uid 0); 6 Aug 2015 07:16:00 -0000 Original-Received: from unknown (HELO cmgw2) (10.0.90.83) by gproxy10.mail.unifiedlayer.com with SMTP; 6 Aug 2015 07:16:00 -0000 Original-Received: from host114.hostmonster.com ([74.220.207.114]) by cmgw2 with id 1KFs1r0082UdiVW01KFvi1; Thu, 06 Aug 2015 01:15:58 -0600 X-Authority-Analysis: v=2.1 cv=O9qq4nNW c=1 sm=1 tr=0 a=CQdxDb2CKd3SRg4I0/XZPQ==:117 a=CQdxDb2CKd3SRg4I0/XZPQ==:17 a=DsvgjBjRAAAA:8 a=f5113yIGAAAA:8 a=9i_RQKNPAAAA:8 a=y7kgw_RnJtkA:10 a=IkcTkHD0fZMA:10 a=hEr_IkYJT6EA:10 a=x_XPkuGwIRMA:10 a=uRRa74qj2VoA:10 a=4f21q7dj7GXvHtTunykA:9 a=QEXdDO2ut3YA:10 Original-Received: from [76.218.37.33] (port=49814 helo=TAKVER2) by host114.hostmonster.com with esmtpa (Exim 4.84) (envelope-from ) id 1ZNFP8-0007yp-2Z; Thu, 06 Aug 2015 01:15:54 -0600 In-Reply-To: (Stefan Monnier's message of "Wed, 05 Aug 2015 23:28:52 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (windows-nt) X-Identified-User: {2442:host114.hostmonster.com:stephele:stephe-leake.org} {sentby:smtp auth 76.218.37.33 authed with stephen_leake@stephe-leake.org} 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:105323 Archived-At: Stefan Monnier writes: >> 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 =C2=AB 'var =C2=BB but also things like = =C2=AB '(var1 > var2 var3) =C2=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. Ok. Can you post your local hack? That would at least be useful during a transition to lexical-binding: t; after that, testing should suffice. --=20 -- Stephe