From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.help Subject: Re: How does M-x completion works Date: Tue, 23 Feb 2010 21:08:07 -0700 Message-ID: References: <4b82ff9b$0$279$14726298@news.sunsite.dk> <877hq34pdu.fsf@lion.rapttech.com.au> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1266984544 10627 80.91.229.12 (24 Feb 2010 04:09:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 24 Feb 2010 04:09:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 24 05:08:46 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Nk8YF-0007Z9-Pb for geh-help-gnu-emacs@m.gmane.org; Wed, 24 Feb 2010 05:08:44 +0100 Original-Received: from localhost ([127.0.0.1]:51377 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nk8YE-0004t9-Vx for geh-help-gnu-emacs@m.gmane.org; Tue, 23 Feb 2010 23:08:43 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nk8Xs-0004su-9p for help-gnu-emacs@gnu.org; Tue, 23 Feb 2010 23:08:20 -0500 Original-Received: from [140.186.70.92] (port=59791 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nk8Xq-0004sm-R1 for help-gnu-emacs@gnu.org; Tue, 23 Feb 2010 23:08:19 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nk8Xp-0007Sk-Uy for help-gnu-emacs@gnu.org; Tue, 23 Feb 2010 23:08:18 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]:59354) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nk8Xp-0007Se-PE for help-gnu-emacs@gnu.org; Tue, 23 Feb 2010 23:08:17 -0500 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Nk8Xo-0007Sa-Cs for help-gnu-emacs@gnu.org; Wed, 24 Feb 2010 05:08:16 +0100 Original-Received: from c-71-237-24-138.hsd1.co.comcast.net ([71.237.24.138]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Feb 2010 05:08:16 +0100 Original-Received: from kevin.d.rodgers by c-71-237-24-138.hsd1.co.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 24 Feb 2010 05:08:16 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: c-71-237-24-138.hsd1.co.comcast.net User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) In-Reply-To: <877hq34pdu.fsf@lion.rapttech.com.au> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72085 Archived-At: Tim X wrote: > Trying to remove all definitions of interactive functions that are > thought to be unnecessary will fail and is a pointless exercise. It will > never result in a small/convenient number of commands being shown with > just M-x . I'd suspect that even just the C built-in commands alone > would likely be too numerous and you cannot remove them. This approach > is essentially futile. I don't think that's what the OP is asking for. Rather, why not remove the function binding from symbols that would autoload an unavailable lisp library (such as the ones the OP has already removed): (mapatoms (lambda (symbol) (let (function) (when (and (fboundp symbol) (setq function (symbol-function symbol)) (consp function) ;; (car function) (eq (car function) 'autoload) ;; (cadr function) (stringp (cadr function)) (not (locate-library (cadr function)))) ;; (message "invalid autoload: %s: %s" symbol (cadr function)) (fmakunbound symbol))))) -- Kevin Rodgers Denver, Colorado, USA