bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#33170: 27.0.50; interactive spec with cl-defgeneric/method


From: Eli Zaretskii
Subject: bug#33170: 27.0.50; interactive spec with cl-defgeneric/method
Date: Sat, 27 Oct 2018 17:47:11 +0300

> From: Alex Branham <address@hidden>
> Cc: address@hidden
> Date: Sat, 27 Oct 2018 07:40:11 -0500
> 
> (require 'cl-lib)
> 
> (cl-defgeneric my/test ()
>   (interactive)
>   (message "generic"))
> 
> here, M-x my/test works
> 
> (cl-defmethod my/test (&context (major-mode emacs-lisp-mode))
>   (interactive)
>   (message "method"))
> 
> Here, M-x my/test does not work.

But "M-: (my/test) RET" does.

I don't think generic functions can be interactive.  At least it is
not documented anywhere that they can be.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]