From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Limit what M-x TAB lists? Date: Sat, 18 Jan 2014 09:43:41 -0800 Message-ID: <87r485i3si.fsf@building.gnus.org> References: <87bo03itkn.fsf@building.gnus.org> <87wqirhbyw.fsf@building.gnus.org> <87mwjn7g75.fsf@wanadoo.es> <877garh9v6.fsf@building.gnus.org> <87sitfcww4.fsf@building.gnus.org> <52CAD021.70001@lanl.gov> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1390067077 18040 80.91.229.3 (18 Jan 2014 17:44:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 18 Jan 2014 17:44:37 +0000 (UTC) Cc: =?iso-8859-1?Q?=D3scar?= Fuentes , Stefan Monnier , emacs-devel@gnu.org To: Davis Herring Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 18 18:44:44 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W4Zwo-0002Fi-Tx for ged-emacs-devel@m.gmane.org; Sat, 18 Jan 2014 18:44:43 +0100 Original-Received: from localhost ([::1]:43826 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4Zwo-0006KP-Jc for ged-emacs-devel@m.gmane.org; Sat, 18 Jan 2014 12:44:42 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4Zwh-0006KE-LM for emacs-devel@gnu.org; Sat, 18 Jan 2014 12:44:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W4Zwc-0000tN-8m for emacs-devel@gnu.org; Sat, 18 Jan 2014 12:44:35 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:59722) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W4Zwc-0000sK-2a for emacs-devel@gnu.org; Sat, 18 Jan 2014 12:44:30 -0500 Original-Received: from [204.14.154.233] (helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1W4ZwL-00020F-6C; Sat, 18 Jan 2014 18:44:13 +0100 In-Reply-To: <52CAD021.70001@lanl.gov> (Davis Herring's message of "Mon, 06 Jan 2014 08:47:45 -0700") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-MailScanner-ID: 1W4ZwL-00020F-6C MailScanner-NULL-Check: 1390671853.71152@jCaqME8WNIjRuUXfq2zW4g X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:168700 Archived-At: Davis Herring writes: >> 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. I did the same with an un-compiled /tmp/foo.el, and it worked the same. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/