GNU bug report logs - #54079
29.0.50; Method dispatching eratically fails

Previous Next

Package: emacs;

Reported by: Michael Heerdegen <michael_heerdegen <at> web.de>

Date: Mon, 21 Feb 2022 00:14:02 UTC

Severity: normal

Found in version 29.0.50

Done: Alan Mackenzie <acm <at> muc.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Heerdegen <michael_heerdegen <at> web.de>
To: 54079 <at> debbugs.gnu.org
Cc: monnier <at> iro.umontreal.ca
Subject: bug#54079: 29.0.50; Method dispatching eratically fails
Date: Mon, 21 Feb 2022 05:21:11 +0100
Stefan Monnier via "Bug reports for GNU Emacs, the Swiss army knife of
text editors" <bug-gnu-emacs <at> gnu.org> writes:

> Can you show the actual code (the bodies of the `cl-defmethod`s aren't
> important, but the TYPE part could,

The TYPE parts all simply look like

  (val my-command-register)

where my-command-register is defined with `cl-defstruct'.

> or maybe if they're inside something
> else (maybe an `eval-and-compile` or something like that?))?

Some definitions are wrapped in a lambda and pushed to
`after-init-hook' using this macro:

(defmacro after-init (&rest args)
  `(add-hook 'after-init-hook (lambda () ,@args) 'append))

The others things are top-level definitions.

> What does `type-of` return on VAL?

Will answer that when it happens the next time.

Michael.




This bug report was last modified 3 years and 67 days ago.

Previous Next


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