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: Mon, 5 Aug 2013 16:14:46 +0100 Message-ID: <20130805151446.GA12256@c3po> References: <20121019191806.GA23820@c3po> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="9jxsPFA5p3P2qPhR" X-Trace: ger.gmane.org 1375715776 18999 80.91.229.3 (5 Aug 2013 15:16:16 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 5 Aug 2013 15:16:16 +0000 (UTC) Cc: egnarts-ms , 12685@debbugs.gnu.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Aug 05 17:16:18 2013 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 1V6MW8-0003wi-1f for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Aug 2013 17:16:16 +0200 Original-Received: from localhost ([::1]:58781 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6MW7-0001EW-Gd for geb-bug-gnu-emacs@m.gmane.org; Mon, 05 Aug 2013 11:16:15 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:52251) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6MVz-00014L-TP for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2013 11:16:11 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V6MVu-0001iS-Tb for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2013 11:16:07 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47110) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V6MVu-0001iE-Pt for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2013 11:16:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1V6MVu-0004FJ-0u for bug-gnu-emacs@gnu.org; Mon, 05 Aug 2013 11:16:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Toby Cubitt Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 05 Aug 2013 15:16:01 +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.137571570416188 (code B ref 12685); Mon, 05 Aug 2013 15:16:01 +0000 Original-Received: (at 12685) by debbugs.gnu.org; 5 Aug 2013 15:15:04 +0000 Original-Received: from localhost ([127.0.0.1]:41425 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1V6MUw-0004Cz-RX for submit@debbugs.gnu.org; Mon, 05 Aug 2013 11:15:03 -0400 Original-Received: from sanddollar.geekisp.com ([216.168.135.167]:8971) by debbugs.gnu.org with smtp (Exim 4.80) (envelope-from ) id 1V6MUt-0004Bw-Hi for 12685@debbugs.gnu.org; Mon, 05 Aug 2013 11:15:00 -0400 Original-Received: (qmail 6629 invoked by uid 1003); 5 Aug 2013 15:14:54 -0000 Original-Received: from localhost (localhost.geekisp.com [127.0.0.1]) by localhost.geekisp.com (tmda-ofmipd) with ESMTP; Mon, 05 Aug 2013 11:14:49 -0400 Content-Disposition: inline In-Reply-To: X-PGP-Key: http://www.dr-qubit.org/gpg-toby-pub.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.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:76963 Archived-At: --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi Stefan, On Fri, Jul 26, 2013 at 12:09:05PM -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 > > I've just installed a patch into trunk which should make Edebug properly > use the lexical scope of the debugged code (when applicable). > > Could you confirm it fixes this bug? I just checked out and recompiled Emacs from bzr and tested. I'm still seeing the same bug as before. Steps to reproduce: 1. Open the attached elisp file 2. Instrument `test' for edebug: "C-u C-M-x" 3. Evaluate `test': "M-: (test 3)" 4. Evaluate lexical variable from within edebug: "M-: arg " -> backtrace buffer with "Debugger entered--Lisp error: (void-variable arg)" 3'. Create conditional breakpoint in `test': "C-x X x (null arg) " 4'. Evaluate `test': "M-: (test 3)" -> message "Symbol's value as variable is void: arg" Best, Toby -- Dr T. S. Cubitt Royal Society University Research Fellow Centre for Quantum Information and Foundations DAMTP, University of Cambridge email: tsc25@cantab.net web: www.dr-qubit.org --9jxsPFA5p3P2qPhR Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="test.el" ;;; -*- lexical-binding: t; -*- (defun test (arg) (dotimes (i arg) (message "%s" i))) --9jxsPFA5p3P2qPhR--