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.

Full log


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"





This bug report was last modified 6 years and 9 days ago.

Previous Next


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