From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: How can I remove the functions I do not want Date: Sun, 27 Jun 2010 19:30:52 +1000 Organization: Rapt Technologies Message-ID: <87eifs960j.fsf@lion.rapttech.com.au> References: <24dbb3d.17f0d.129725f19e8.Coremail.taoistleu@163.com> <837hlld5ad.fsf@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291839643 20293 80.91.229.12 (8 Dec 2010 20:20:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 20:20:43 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 08 21:20:39 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQQVA-0006jZ-La for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 21:20:37 +0100 Original-Received: from localhost ([127.0.0.1]:39062 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQQVA-0003Hv-5F for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 15:20:36 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news.astraweb.com!border1.newsrouter.astraweb.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) Cancel-Lock: sha1:dXHgwhhAe9nZ1CgKwTqcyHn23gQ= Original-Lines: 35 Original-NNTP-Posting-Host: b4f359f7.news.astraweb.com Original-X-Trace: DXC=Y_[^gh=]e[Oo; ii5o?B_6AL?0kYOcDh@J5RIWMIBb; `EOlnk2Y:`YFCEEoMV90=M5A; oJ2]1fL<]M Original-Xref: usenet.stanford.edu gnu.emacs.help:179275 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75969 Archived-At: Qiang Guo 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