From: Doug Lewan <dougl@shubertticketing.com>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: RE: Killing/hiding functions
Date: Thu, 29 Mar 2012 13:23:18 +0000 [thread overview]
Message-ID: <495248DFDEA08C469BBDED2D4AA6C61440B45D@DAKIYA1.pegasus.local> (raw)
In-Reply-To: <slrnjbsiks.1bk.grahn+nntp@frailea.sa.invalid>
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 .
prev parent reply other threads:[~2012-03-29 13:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
[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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=495248DFDEA08C469BBDED2D4AA6C61440B45D@DAKIYA1.pegasus.local \
--to=dougl@shubertticketing.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.