From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Toby Cubitt Newsgroups: gmane.emacs.bugs Subject: bug#12685: 24.2; lexical binding breaks edebug conditional breakpoints Date: Sat, 20 Oct 2012 03:08:35 +0200 Message-ID: <20121020010835.GA2683@c3po> References: <20121019191806.GA23820@c3po> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1350695374 22610 80.91.229.3 (20 Oct 2012 01:09:34 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 20 Oct 2012 01:09:34 +0000 (UTC) Cc: 12685@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Oct 20 03:09:42 2012 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 1TPNZN-0002P7-SC for geb-bug-gnu-emacs@m.gmane.org; Sat, 20 Oct 2012 03:09:41 +0200 Original-Received: from localhost ([::1]:49662 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPNZG-0003ZF-G1 for geb-bug-gnu-emacs@m.gmane.org; Fri, 19 Oct 2012 21:09:34 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPNZD-0003ZA-Qp for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 21:09:32 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TPNZC-0005Ns-Mv for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 21:09:31 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:42176) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TPNZC-0005Nh-JD for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 21:09:30 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TPNag-00064p-HA for bug-gnu-emacs@gnu.org; Fri, 19 Oct 2012 21:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Toby Cubitt Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 20 Oct 2012 01:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 12685 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 12685-submit@debbugs.gnu.org id=B12685.135069540823299 (code B ref 12685); Sat, 20 Oct 2012 01:11:02 +0000 Original-Received: (at 12685) by debbugs.gnu.org; 20 Oct 2012 01:10:08 +0000 Original-Received: from localhost ([127.0.0.1]:52427 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TPNZn-00063i-K3 for submit@debbugs.gnu.org; Fri, 19 Oct 2012 21:10:08 -0400 Original-Received: from starfish.geekisp.com ([216.168.135.166]:32167) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1TPNZk-00063A-VI for 12685@debbugs.gnu.org; Fri, 19 Oct 2012 21:10:06 -0400 Original-Received: (qmail 6905 invoked by uid 1003); 20 Oct 2012 01:08:26 -0000 Original-Received: from localhost (localhost.geekisp.com [127.0.0.1]) by localhost.geekisp.com (tmda-ofmipd) with ESMTP; Fri, 19 Oct 2012 21:08:24 -0400 Content-Disposition: inline In-Reply-To: X-PGP-Key: http://www.dr-qubit.org/gpg-toby.asc User-Agent: Mutt/1.5.21 (2010-09-15) X-Delivery-Agent: TMDA/1.1.11 (Ladyburn) X-Primary-Address: toby@dr-qubit.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.13 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) 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:65769 Archived-At: On Fri, Oct 19, 2012 at 05:41:49PM -0400, Stefan Monnier wrote: > > Conditional breakpoints whose condition refers to a lexically-scoped > > variable fail with a "Symbol's value as variable is void" error. > > This is almost certainly caused by the same issue as > > http://thread.gmane.org/gmane.emacs.devel/150556 > > Indeed. > > > The current behaviour definitely contradicts this. Not only does the > > breakpoint not work, the error is not "ignored and treated as if the > > result were nil", but instead aborts execution. > > The fact that it aborts execution should be fixable before the release > (tho I'm not sure that it's really better to silently mis-interpret the > user's request), Indeed. But that's what the documentation says it should do, so either the documentation or the implementation needs to be changed so that they at least match. > But making it actually work will require more substantial changes, so I > don't think it's likely to be fixed for 24.3. I figured as much. Maybe for now we could mention in the Edebug section of the Elisp manual which parts of edebug won't (currently) work in lexically-scoped code? As far as I can see, M-: and conditional breakpoints should be the only things that are affected. (Though `edebug-step-in' doesn't always seem to work for me lately, but I can't reliably reproduce this at the moment.) Maybe the docs should even recommend disabling lexical-binding when edebugging for now. (Is there a good way of configuring this to happen automatically? `edebug-setup-hook' doesn't seem quite the right place, since it gets reset to nil after use.) Best, Toby -- Dr T. S. Cubitt Mathematics and Quantum Information group Department of Mathematics Complutense University Madrid, Spain email: tsc25@cantab.net web: www.dr-qubit.org