From: Gemini Lasswell <gem@chinook.i-did-not-set--mail-host-address--so-tickle-me>
To: Dmitry Gutov <dgutov@yandex.ru>
Cc: Gemini Lasswell <gazally@runbox.com>, 24753@debbugs.gnu.org
Subject: bug#24753: 26.0.50; Error using Edebug on code that uses cl-defmethod
Date: Wed, 26 Apr 2017 14:39:56 -0700 [thread overview]
Message-ID: <8760hqvoer.fsf@chinook.i-did-not-set--mail-host-address--so-tickle-me> (raw)
In-Reply-To: <35640890-0451-771d-578e-666552b141ec@yandex.ru> (Dmitry Gutov's message of "Tue, 11 Apr 2017 15:16:47 +0300")
Dmitry Gutov <dgutov@yandex.ru> writes:
> TBH, I'm not sure what (setf foo) does in the NAME slot.
I'm not totally clear on what that example is doing either. I just
grabbed it from cl-generic-tests.el because it was short and reproduced
the bug. But I think the idea is to let you define a method so that
(setf (foo x) y) does something analogous to (setf (cdr x) y).
> A similar scenario with existing functions leads to a related problem:
Your scenario is another way to reproduce the bug. When Edebug
instruments something it attaches a cache of markers to the symbol. So
when two methods with the same name are instrumented, the cache of
markers pointing into the first method's source is replaced with a cache
of markers for the second method. And then if you debug into the first
method Edebug sees markers pointing at the wrong method and gets
confused. My patch works by making Edebug generate new symbols for each
method.
next prev parent reply other threads:[~2017-04-26 21:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-10-21 15:15 bug#24753: 26.0.50; Error using Edebug on code that uses cl-defmethod Gemini Lasswell
2016-10-23 3:50 ` Gemini Lasswell
2017-03-03 2:49 ` bug#24753: Patch (was: bug#24753: 26.0.50; Error using Edebug on code that uses cl-defmethod) Gemini Lasswell
2017-04-11 12:16 ` bug#24753: 26.0.50; Error using Edebug on code that uses cl-defmethod Dmitry Gutov
2017-04-26 21:39 ` Gemini Lasswell [this message]
2017-05-02 1:11 ` Dmitry Gutov
2017-05-02 7:24 ` Eli Zaretskii
2017-05-02 8:41 ` Dmitry Gutov
2017-05-07 2:11 ` Dmitry Gutov
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=8760hqvoer.fsf@chinook.i-did-not-set--mail-host-address--so-tickle-me \
--to=gem@chinook.i-did-not-set--mail-host-address--so-tickle-me \
--cc=24753@debbugs.gnu.org \
--cc=dgutov@yandex.ru \
--cc=gazally@runbox.com \
/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.