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: Tue, 23 Oct 2012 20:39:50 +0200 Message-ID: <20121023183950.GA13930@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 1351017629 5389 80.91.229.3 (23 Oct 2012 18:40:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Oct 2012 18:40:29 +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 Tue Oct 23 20:40:36 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 1TQjOt-0003vu-KH for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Oct 2012 20:40:27 +0200 Original-Received: from localhost ([::1]:48550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQjOl-00034V-Ph for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Oct 2012 14:40:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51253) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQjOe-00034C-0a for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2012 14:40:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQjOc-0007oT-Kw for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2012 14:40:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47873) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQjOc-0007oI-H8 for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2012 14:40:10 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TQjQQ-0007Vg-Ux for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2012 14:42:03 -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: Tue, 23 Oct 2012 18:42: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.135101770228842 (code B ref 12685); Tue, 23 Oct 2012 18:42:02 +0000 Original-Received: (at 12685) by debbugs.gnu.org; 23 Oct 2012 18:41:42 +0000 Original-Received: from localhost ([127.0.0.1]:58124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TQjQ5-0007V9-P2 for submit@debbugs.gnu.org; Tue, 23 Oct 2012 14:41:42 -0400 Original-Received: from starfish.geekisp.com ([216.168.135.166]:19738) by debbugs.gnu.org with smtp (Exim 4.72) (envelope-from ) id 1TQjQ3-0007Uw-3O for 12685@debbugs.gnu.org; Tue, 23 Oct 2012 14:41:40 -0400 Original-Received: (qmail 11980 invoked by uid 1003); 23 Oct 2012 18:39:39 -0000 Original-Received: from localhost (localhost.geekisp.com [127.0.0.1]) by localhost.geekisp.com (tmda-ofmipd) with ESMTP; Tue, 23 Oct 2012 14:39:37 -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:65940 Archived-At: On Tue, Oct 23, 2012 at 02:27:45PM -0400, Stefan Monnier wrote: > > I was asking if you knew of a good place to hook into (just in my own > > private Emacs config), so that I don't have to do this manually every > > time I want to run edebug? > > You might try to add an around-advice on edebug-eval-defun (and maybe > edebug-eval-top-level-form if you use it). Thanks! I should have thought of that, but for some reason I didn't consider using advice (probably a habit formed by avoiding advice in packages). > > I'm well aware that this means whatever behaviour I see under edebug > > could be different from the real behaviour. Given how rarely > > dynamical-binding differs from lexical-binding in practice, it's still a > > useful work-around for me, until edebug is fixed. > > You're not addicted to closures like I am, I guess, Not yet :) Closures are very elegant. But I only recently started converting my Elisp code to lexical binding, so almost all of it works just fine under dynamic binding for now. Now if the byte-compiler learned how to do tail-call elimination, I might find myself writing more of my Elisp in a pure functional style... Just sayin' ;-) 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