From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Davis Herring Newsgroups: gmane.emacs.devel Subject: Re: Limit what M-x TAB lists? Date: Mon, 06 Jan 2014 08:47:45 -0700 Organization: XCP-1 Message-ID: <52CAD021.70001@lanl.gov> 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> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1389023290 2803 80.91.229.3 (6 Jan 2014 15:48:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 6 Jan 2014 15:48:10 +0000 (UTC) Cc: =?ISO-8859-1?Q?=D3scar_F?= =?ISO-8859-1?Q?uentes?= , Stefan Monnier , emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 06 16:48:16 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 1W0CPW-0003vl-4z for ged-emacs-devel@m.gmane.org; Mon, 06 Jan 2014 16:48:14 +0100 Original-Received: from localhost ([::1]:35923 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0CPV-0003lo-Kw for ged-emacs-devel@m.gmane.org; Mon, 06 Jan 2014 10:48:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48089) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0CPF-0003VR-Gx for emacs-devel@gnu.org; Mon, 06 Jan 2014 10:48:05 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W0CP7-000567-Ap for emacs-devel@gnu.org; Mon, 06 Jan 2014 10:47:57 -0500 Original-Received: from proofpoint5.lanl.gov ([204.121.3.53]:39490) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W0CP7-00055a-3p for emacs-devel@gnu.org; Mon, 06 Jan 2014 10:47:49 -0500 Original-Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by mailgate5.lanl.gov (8.14.5/8.14.5) with ESMTP id s06FljlB012042; Mon, 6 Jan 2014 08:47:45 -0700 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by mailrelay1.lanl.gov (Postfix) with ESMTP id 501F61357BF4; Mon, 6 Jan 2014 08:47:45 -0700 (MST) X-NIE-2-Virus-Scanner: amavisd-new at mailrelay1.lanl.gov Original-Received: from [128.165.123.145] (xray-r10.lanl.gov [128.165.123.145]) by mailrelay1.lanl.gov (Postfix) with ESMTP id 3D6651357BF3; Mon, 6 Jan 2014 08:47:45 -0700 (MST) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110717 Lanikai/3.1.11 In-Reply-To: <87sitfcww4.fsf@building.gnus.org> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:5.11.87, 1.0.14, 0.0.0000 definitions=2014-01-06_01:2014-01-06, 2014-01-06, 1970-01-01 signatures=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x X-Received-From: 204.121.3.53 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:167474 Archived-At: > 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.