unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Xah <xahlee@gmail.com>
To: help-gnu-emacs@gnu.org
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)	[thread overview]
Message-ID: <a1b57dad-00db-4a30-b3f3-a09e481648fa@f40g2000pri.googlegroups.com> (raw)
In-Reply-To: 1fcacf3d-32af-464e-b117-fa0669dd790d@i24g2000prf.googlegroups.com

Mirko <mvuko...@nycap.rr.com> 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
∑ http://xahlee.org/

  reply	other threads:[~2008-11-11  0:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-10 17:10 puzzled with load-path entries - where do they come from when .emacs is empty? Mirko
2008-11-10 18:59 ` Mirko
2008-11-10 19:33   ` Mirko
2008-11-11  0:08     ` Xah [this message]
2008-11-11 21:45       ` Mirko
2008-11-11  3:45     ` Kevin Rodgers

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=a1b57dad-00db-4a30-b3f3-a09e481648fa@f40g2000pri.googlegroups.com \
    --to=xahlee@gmail.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.
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).