From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xah Newsgroups: gmane.emacs.help Subject: Re: puzzled with load-path entries - where do they come from when .emacs is empty? Date: Mon, 10 Nov 2008 16:08:56 -0800 (PST) Organization: http://groups.google.com Message-ID: References: <11534d33-6ec0-4348-99a4-236a44365da0@v22g2000pro.googlegroups.com> <1fcacf3d-32af-464e-b117-fa0669dd790d@i24g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1226378025 4747 80.91.229.12 (11 Nov 2008 04:33:45 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 11 Nov 2008 04:33:45 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 11 05:34:46 2008 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.50) id 1Kzkxh-0005CQ-E7 for geh-help-gnu-emacs@m.gmane.org; Tue, 11 Nov 2008 05:34:45 +0100 Original-Received: from localhost ([127.0.0.1]:35409 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KzkwZ-00015u-Os for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Nov 2008 23:33:35 -0500 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!f40g2000pri.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: 24.6.185.159 Original-X-Trace: posting.google.com 1226362137 8293 127.0.0.1 (11 Nov 2008 00:08:57 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Tue, 11 Nov 2008 00:08:57 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: f40g2000pri.googlegroups.com; posting-host=24.6.185.159; posting-account=bRPKjQoAAACxZsR8_VPXCX27T2YcsyMA User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_4_11; en) AppleWebKit/525.18 (KHTML, like Gecko) Version/3.1.2 Safari/525.22, gzip(gfe), gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:164304 X-Mailman-Approved-At: Mon, 10 Nov 2008 23:33:17 -0500 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:59643 Archived-At: Mirko wrote: > I am using emacs 22.1 on windows & I am puzzled with the components of > load-path: where are they coming from: > Even if I completely comment out all of my .emacs, and my > EMACSLOADPATH is empty, when I start up emacs, my load-path is full of > stuff: slime, planner, muse, auctex,... that I use. But since I > commented all of the code in .emacs where did that stuff come from? > Again, my .emacs is completely commented out. > ... > I found site-lisp/site-start.d with auctex.el and preview-latex.el. > That explains the auctex message during startup. But still no clue as > to where load-path gets preloaded. > > Actually, could it be that emacs populates load-path automatically > based on the contents of the site-lisp directory? That would explain > everything. basically all langs, e.g. perl, java, python, php, mathematica, provides you with a default load path, so that basic functionalities are available. if emacs doesn't provide you with a default path, all the basic major modes, c, java, perl, shell, dired ... and probably most of fundamental working of emacs will break. At a user level, if you want absolutely the minimal stuff in load path, start emacs with --no-site-file --no-init-file. You'll probably still see entries in load path though. If for some reason you simply don't want any, you can set it to empty and see what is the effect, or hack emacs's source. Xah =E2=88=91 http://xahlee.org/ =E2=98=84