unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: "Roland Winkler" <winkler@gnu.org>
Cc: 14876@debbugs.gnu.org
Subject: bug#14876: 24.3; load-path and environment variable EMACSLOADPATH
Date: Mon, 15 Jul 2013 18:48:44 -0400	[thread overview]
Message-ID: <52vc4b7837.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <87d2qjphto.fsf@gnu.org> (Roland Winkler's message of "Mon, 15 Jul 2013 17:41:07 -0500")

"Roland Winkler" wrote:

> The node "Library Search" suggests to to set EMACSLOADPATH to some
> user directory such as /home/foo/.emacs.d/lisp.

I don't quite see that it literally says that; but the info node should
be tidied up a little bit.

> The proper meaning of EMACSLOADPATH seems to be the one given in the
> docstring of load-path saying that EMACSLOADPATH overrides the
> default value of load-path specified by file `epaths.h' when Emacs
> was built.

Yes.

> The docstring of load-path also says that an element `nil' means
> "try default directory". Yet what is the "default directory" in this
> context?

Whatever the value is where you call `load' from.

> default-directory is a buffer-local variable with default nil.

Seems like a red-herring. Normally every buffer has a non-nil value.

> I looked into this because I was looking for a way to _extend_ the
> emacs load path in a Makefile generated via autoconf.

Use "emacs -L /path/to/add".

(cf http://debbugs.gnu.org/cgi/bugreport.cgi?bug=12100 )





  reply	other threads:[~2013-07-15 22:48 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-15 22:41 bug#14876: 24.3; load-path and environment variable EMACSLOADPATH Roland Winkler
2013-07-15 22:48 ` Glenn Morris [this message]
2013-07-15 23:11   ` Roland Winkler
2013-07-15 23:23     ` Glenn Morris
2013-07-15 23:29       ` Glenn Morris
2013-07-16  0:34         ` Roland Winkler
2013-07-16  0:55           ` Roland Winkler
2013-07-16  0:55           ` Glenn Morris
2013-07-16  1:16             ` Roland Winkler
2013-07-16  1:39               ` Glenn Morris
2013-07-16  3:14                 ` Roland Winkler
2013-11-14  8:39   ` Glenn Morris

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=52vc4b7837.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=14876@debbugs.gnu.org \
    --cc=winkler@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).