emacs-devel
[Top][All Lists]
Advanced

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

Re: Limit what M-x TAB lists?


From: Davis Herring
Subject: Re: Limit what M-x TAB lists?
Date: Mon, 06 Jan 2014 08:47:45 -0700
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110717 Lanikai/3.1.11

> It seemed to work for me.  I put the following in an .el file:
> 
> (unless (fboundp 'command)
>   (defmacro command (&rest args)
>     `(interactive ,@(cdr args))))
> 
> (defun foo (arg)
>   (command 'bar "p")
>   (message "%s" arg))
> 
> and byte-compiled it and loaded it in a new Emacs.  `C-u 4 M-x foo' said
> "4"...  But perhaps there are other subtle things that don't work?

It works _only_ when byte-compiled.

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.



reply via email to

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