* Re: Killing/hiding functions
[not found] <slrnjbsiks.1bk.grahn+nntp@frailea.sa.invalid>
@ 2011-11-13 18:58 ` Michael Heerdegen
2012-03-29 13:23 ` Doug Lewan
1 sibling, 0 replies; 2+ messages in thread
From: Michael Heerdegen @ 2011-11-13 18:58 UTC (permalink / raw)
To: Emacs mailing list; +Cc: Jorgen Grahn
Hello Jorgen,
I think it is generally no good idea to just "forget" commands as you
suggest. You would probably make Emacs non-functional.
> ff-find-other-file
> ff-find-related-file
Did you know that you can use partial completions, like that:
M-x ff-f-o TAB RET
(You can similarly hit SPC instead of -).
You can also define your own aliases for commands you often use, but
don't want to bind to a key sequence, like
(defalias 'fffo 'ff-find-other-file)
> And I'd like to forget visible-mode to have easier access to
> visit-tags-table.
Dunno about that, sorry.
Regards,
Michael.
^ permalink raw reply [flat|nested] 2+ messages in thread
* 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
end of thread, other threads:[~2012-03-29 13:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).