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: Lars Ingebrigtsen
Subject: Re: Smarter M-x that filters on major-mode
Date: Thu, 11 Feb 2021 12:00:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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 extending the object (and stash it in the seventh slot) make
sense?  It'd make the bytecode massively incompatible with previous
versions, but it generally is pretty incompatible.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




reply via email to

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