From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Doug Lewan Newsgroups: gmane.emacs.help Subject: RE: Killing/hiding functions Date: Thu, 29 Mar 2012 13:23:18 +0000 Message-ID: <495248DFDEA08C469BBDED2D4AA6C61440B45D@DAKIYA1.pegasus.local> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1333027293 24529 80.91.229.3 (29 Mar 2012 13:21:33 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Mar 2012 13:21:33 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 29 15:21:32 2012 Return-path: Envelope-to: geh-help-gnu-emacs@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 1SDFIA-000349-1u for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Mar 2012 15:21:30 +0200 Original-Received: from localhost ([::1]:33164 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDFI9-0006FS-Bo for geh-help-gnu-emacs@m.gmane.org; Thu, 29 Mar 2012 09:21:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:40981) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDFHz-0006EF-Jb for help-gnu-emacs@gnu.org; Thu, 29 Mar 2012 09:21:25 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDFHt-0008Uw-AO for help-gnu-emacs@gnu.org; Thu, 29 Mar 2012 09:21:19 -0400 Original-Received: from webmail.shubertorg.com ([207.246.209.200]:23487) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDFHt-0008UJ-6O for help-gnu-emacs@gnu.org; Thu, 29 Mar 2012 09:21:13 -0400 Original-Received: from dakiya1.pegasus.local ([fe80::5ce2:4641:22cf:ff1f]) by DAKIYA1.pegasus.local ([::1]) with mapi id 14.01.0339.001; Thu, 29 Mar 2012 09:23:23 -0400 Thread-Topic: Killing/hiding functions Thread-Index: AQHNDTclKJtpkZqyYkOYIkzkk0S2q5aBQG7g In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.0.21.202] X-detected-operating-system: by eggs.gnu.org: Windows XP/2000 (RFC1323+, w+, tstamp-) X-Received-From: 207.246.209.200 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:84207 Archived-At: The most common way of disabling a function is to, well, disable it: (put 'ff-find-other-file 'disabled t) This is unpleasant in the following way. The function still exists and if you try to execute it you will get an erro= r window. (If you really never try to execute it, then that's not really unpleasant.) To remove a function you can do this: (unintern 'ff-find-other-file) This is dangerous. 1. The function no longer exists, so anything that uses it will probably no= t work any more. 2. Any variable of the same name no longer exists either. ,Douglas -----Original Message----- From: help-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org [mailto:h= elp-gnu-emacs-bounces+dougl=3Dshubertticketing.com@gnu.org] On Behalf Of Jo= rgen Grahn Sent: Saturday, 2011 November 12 05:30 To: help-gnu-emacs@gnu.org Subject: Killing/hiding functions I think this is easy if you know what you're looking for. I'd like to hide, remove or un-name certain functions which I don't use, so they don't show up when I do M-x, type some characters and then TAB-complete. For example, I'd like to have only one of the synonymous ff-find-other-file ff-find-related-file And I'd like to forget visible-mode to have easier access to=20 visit-tags-table. What should I put in my ~/.emacs? /Jorgen --=20 // Jorgen Grahn O o .