unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Tim X <timx@nospam.dev.null>
To: help-gnu-emacs@gnu.org
Subject: Re: How can I remove the functions I do not want
Date: Sun, 27 Jun 2010 19:30:52 +1000	[thread overview]
Message-ID: <87eifs960j.fsf@lion.rapttech.com.au> (raw)
In-Reply-To: mailman.9.1277610330.30403.help-gnu-emacs@gnu.org

Qiang Guo <mcknight0219@gmail.com> writes:

> Right, if you don't load them, they are just files stored on
> your disk. If by saying uninstall you do mean delete those
> files, sure, you can delete unwanted files. They are usually
> located in /usr/share/emacs/23.X/lisp/
>

While you can do this, it is extremely dangerous. What functions/files a
mode or command relies upon is not always obvious and not always
restricted to the same file. For example, simple.el contains lots of
core functionality that may not be obvious. 

Note also that removing lots of these files is unlikely to change the
memory footprint of emacs. Emacs uses a dumped image and changing the
files on disk will not affect this. It won't necessarily remove/reduce
the list of commands that appear with things like apropos etc. 

As pointed out by others, many of the functions available in emacs are
not loaded until you run the command. You can sometimes see this when
you do a describe function and its documentation refers to arguments not
being available until loaded. 

Frequently, requests like this a due to some other issue that the user
want to solve and there is usually another way to get somethning closer
to what is desired without the need to change/delete files. It is
possibly best to explain exactly what the problem is and see if anyone
has better solutions. 

regards,

Tim

-- 
tcross (at) rapttech dot com dot au


  parent reply	other threads:[~2010-06-27  9:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-26  3:48 How can I remove the functions I do not want 刘道士
2010-06-26 18:20 ` Eli Zaretskii
2010-06-27  3:44   ` Qiang Guo
     [not found]   ` <mailman.9.1277610330.30403.help-gnu-emacs@gnu.org>
2010-06-27  9:30     ` Tim X [this message]
     [not found] <mailman.2.1277575476.19630.help-gnu-emacs@gnu.org>
2010-06-26 18:42 ` Pascal J. Bourguignon

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87eifs960j.fsf@lion.rapttech.com.au \
    --to=timx@nospam.dev.null \
    --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.
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).