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#12685: 24.2; lexical binding breaks edebug conditional breakpoints Date: Tue, 23 Oct 2012 12:33:34 -0400 Message-ID: References: <20121020010835.GA2683@c3po> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1351010061 30055 80.91.229.3 (23 Oct 2012 16:34:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 23 Oct 2012 16:34:21 +0000 (UTC) Cc: 12685@debbugs.gnu.org To: Toby Cubitt Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Oct 23 18:34:28 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 1TQhQw-0002cC-Va for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Oct 2012 18:34:27 +0200 Original-Received: from localhost ([::1]:38116 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQhQp-0006Q0-4b for geb-bug-gnu-emacs@m.gmane.org; Tue, 23 Oct 2012 12:34:19 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:41767) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQhQg-0006OB-Dr for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2012 12:34:16 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TQhQf-00008w-79 for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2012 12:34:10 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:47784) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TQhQf-00008f-3S for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2012 12:34:09 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.72) (envelope-from ) id 1TQhST-0004Y6-IE for bug-gnu-emacs@gnu.org; Tue, 23 Oct 2012 12:36:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 23 Oct 2012 16:36: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.135101013517450 (code B ref 12685); Tue, 23 Oct 2012 16:36:01 +0000 Original-Received: (at 12685) by debbugs.gnu.org; 23 Oct 2012 16:35:35 +0000 Original-Received: from localhost ([127.0.0.1]:58035 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TQhS3-0004XP-0O for submit@debbugs.gnu.org; Tue, 23 Oct 2012 12:35:35 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:53643) by debbugs.gnu.org with esmtp (Exim 4.72) (envelope-from ) id 1TQhS1-0004XC-KJ for 12685@debbugs.gnu.org; Tue, 23 Oct 2012 12:35:33 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAG6Zu09MCqNj/2dsb2JhbABEtBGBCIIVAQEEAVYeBQULCw4mEhQYDSSIHAW6CZBEA6MzgViDBQ X-IronPort-AV: E=Sophos;i="4.75,637,1330923600"; d="scan'208";a="202550312" Original-Received: from 76-10-163-99.dsl.teksavvy.com (HELO pastel.home) ([76.10.163.99]) by ironport2-out.teksavvy.com with ESMTP/TLS/ADH-AES256-SHA; 23 Oct 2012 12:33:34 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 636CC58CA3; Tue, 23 Oct 2012 12:33:34 -0400 (EDT) In-Reply-To: <20121020010835.GA2683@c3po> (Toby Cubitt's message of "Sat, 20 Oct 2012 03:08:35 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2.50 (gnu/linux) 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:65930 Archived-At: >> 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. I think at this stage the best is to add a note that it might fail when used for lexical-binding code. > 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.) Agreed. Could you take care of it? > Maybe the docs should even recommend disabling lexical-binding when > edebugging for now. I don't think so. The programmer can reach his own conclusion based on the text you'll add warning that some parts don't work. > (Is there a good way of configuring this to happen > automatically? No, that would be even worse, since some code only works in lexical-binding mode (and there's no way to figure out if the code in the current buffer is in this category). Stefan