GNU bug report logs - #28958
26.0.90; Edebug can't step into methods defined with cl-defgeneric

Previous Next

Package: emacs;

Reported by: Gemini Lasswell <gazally <at> runbox.com>

Date: Mon, 23 Oct 2017 19:06:01 UTC

Severity: normal

Found in version 26.0.90

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 28958 in the body.
You can then email your comments to 28958 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#28958; Package emacs. (Mon, 23 Oct 2017 19:06:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Gemini Lasswell <gazally <at> runbox.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 23 Oct 2017 19:06:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Gemini Lasswell <gazally <at> runbox.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 26.0.90; Edebug can't step into methods defined with cl-defgeneric
Date: Mon, 23 Oct 2017 12:04:21 -0700
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"





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#28958; Package emacs. (Sun, 14 Jul 2019 21:29:01 GMT) Full text and rfc822 format available.

Message #8 received at 28958 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Gemini Lasswell <gazally <at> runbox.com>
Cc: 28958 <at> debbugs.gnu.org
Subject: Re: bug#28958: 26.0.90; Edebug can't step into methods defined with
 cl-defgeneric
Date: Sun, 14 Jul 2019 23:28:54 +0200
Gemini Lasswell <gazally <at> 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




bug closed, send any further explanations to 28958 <at> debbugs.gnu.org and Gemini Lasswell <gazally <at> runbox.com> Request was from Lars Ingebrigtsen <larsi <at> gnus.org> to control <at> debbugs.gnu.org. (Sun, 14 Jul 2019 21:30:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Mon, 12 Aug 2019 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 5 years and 330 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.