From: Toby Cubitt <toby-dated-1351904906.63c2a7@dr-qubit.org>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: 12685@debbugs.gnu.org
Subject: bug#12685: 24.2; lexical binding breaks edebug conditional breakpoints
Date: Sat, 20 Oct 2012 03:08:35 +0200 [thread overview]
Message-ID: <20121020010835.GA2683@c3po> (raw)
In-Reply-To: <jwvbofykutd.fsf-monnier+emacs@gnu.org>
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
next prev parent reply other threads:[~2012-10-20 1:08 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-19 19:18 bug#12685: 24.2; lexical binding breaks edebug conditional breakpoints Toby Cubitt
2012-10-19 21:41 ` Stefan Monnier
2012-10-20 1:08 ` Toby Cubitt [this message]
2012-10-23 16:33 ` Stefan Monnier
2012-10-23 17:10 ` Toby Cubitt
2012-10-23 18:27 ` Stefan Monnier
2012-10-23 18:39 ` Toby Cubitt
2012-10-24 13:55 ` Stefan Monnier
2013-07-26 16:09 ` Stefan Monnier
2013-08-05 15:14 ` Toby Cubitt
2013-08-05 17:27 ` Stefan Monnier
2013-08-08 23:19 ` Stefan Monnier
2013-08-09 11:02 ` Toby Cubitt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20121020010835.GA2683@c3po \
--to=toby-dated-1351904906.63c2a7@dr-qubit.org \
--cc=12685@debbugs.gnu.org \
--cc=monnier@iro.umontreal.ca \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.