* RE: Killing/hiding functions
[not found] <slrnjbsiks.1bk.grahn+nntp@frailea.sa.invalid>
2011-11-13 18:58 ` Killing/hiding functions Michael Heerdegen
@ 2012-03-29 13:23 ` Doug Lewan
1 sibling, 0 replies; 2+ messages in thread
From: Doug Lewan @ 2012-03-29 13:23 UTC (permalink / raw)
To: help-gnu-emacs@gnu.org
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 error 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 not work any more.
2. Any variable of the same name no longer exists either.
,Douglas
-----Original Message-----
From: help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org [mailto:help-gnu-emacs-bounces+dougl=shubertticketing.com@gnu.org] On Behalf Of Jorgen 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
visit-tags-table.
What should I put in my ~/.emacs?
/Jorgen
--
// Jorgen Grahn <grahn@ Oo o. . .
\X/ snipabacken.se> O o .
^ permalink raw reply [flat|nested] 2+ messages in thread