* bug#28958: 26.0.90; Edebug can't step into methods defined with cl-defgeneric
@ 2017-10-23 19:04 Gemini Lasswell
2019-07-14 21:28 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Gemini Lasswell @ 2017-10-23 19:04 UTC (permalink / raw)
To: 28958
Edebug can't find generic methods to step into when they are defined
with cl-defgeneric instead of cl-defmethod.
To reproduce, put the following code into *scratch* and eval-buffer
it:
(cl-defgeneric my-func (x)
(:method ((x integer)) (message "%s is an integer" x))
(:method ((x string)) (message "%s is a string" x))
(message "%s is something else" x))
(defun use-my-func ()
(my-func "hello")
(my-func 3)
(my-func 'foo))
Then navigate to the definition of use-my-func and:
C-u C-M-x
M-: (use-my-func) RET
i
Result: "Don’t know where ‘(my-func nil t)’ is defined"
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#28958: 26.0.90; Edebug can't step into methods defined with cl-defgeneric
2017-10-23 19:04 bug#28958: 26.0.90; Edebug can't step into methods defined with cl-defgeneric Gemini Lasswell
@ 2019-07-14 21:28 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2019-07-14 21:28 UTC (permalink / raw)
To: Gemini Lasswell; +Cc: 28958
Gemini Lasswell <gazally@runbox.com> writes:
> To reproduce, put the following code into *scratch* and eval-buffer
> it:
>
> (cl-defgeneric my-func (x)
> (:method ((x integer)) (message "%s is an integer" x))
> (:method ((x string)) (message "%s is a string" x))
> (message "%s is something else" x))
>
> (defun use-my-func ()
> (my-func "hello")
> (my-func 3)
> (my-func 'foo))
>
> Then navigate to the definition of use-my-func and:
>
> C-u C-M-x
> M-: (use-my-func) RET
> i
I'm unable to reproduce this on the Emacs trunk, and I see that the
debug definition has changed substantially since 26.0, so I'm closing
this bug report. If this still is a problem, please reopen.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-07-14 21:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-23 19:04 bug#28958: 26.0.90; Edebug can't step into methods defined with cl-defgeneric Gemini Lasswell
2019-07-14 21:28 ` Lars Ingebrigtsen
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).