emacs-devel
[Top][All Lists]
Advanced

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

Re: Smarter M-x that filters on major-mode


From: Eli Zaretskii
Subject: Re: Smarter M-x that filters on major-mode
Date: Thu, 11 Feb 2021 16:16:42 +0200

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Date: Thu, 11 Feb 2021 12:00:20 +0100
> Cc: emacs-devel@gnu.org
> 
> I started tinkering with this -- I've now got
> 
> (defun foo (arg)
>   (command foo-mode "p"))
> 
> working in the sense that it doesn't do anything.  :-)  That is, that's
> now 100% equivalent to `interactive'.
> 
> But I'm wondering where to stash the mode.  Well, for uncompiled
> functions, that's kinda obvious, but byte-compiled functions stash this
> in the sixth slot in the bytecode object.

Would it make sense to store that info in the plist of the function's
symbol?



reply via email to

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