From: Chris Poole <chrispoole@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Issue with .emacs, files not loading
Date: Wed, 4 Jun 2008 05:00:12 -0700 (PDT) [thread overview]
Message-ID: <f2f954f3-aec8-494b-b120-e1ca060c2c7c@r66g2000hsg.googlegroups.com> (raw)
In-Reply-To: 87od6hn006.fsf@gmx.de
On Jun 4, 8:16 am, Sven Joachim <svenj...@gmx.de> wrote:
> On 2008-06-03 23:40 +0200, Colin S. Miller wrote:
>
> > From the variable's documentation
>
> > *List of directories to search for files to load.
> > Each element is a string (directory name) or nil (try default directory).
>
> > Note that the elements of this list *may not* begin with "~", so you must
> > call `expand-file-name' on them before adding them to this list.
>
> Where did you get that? Here it says:
>
> ,----
> | *List of directories to search for files to load.
> | Each element is a string (directory name) or nil (try default directory).
> | Initialized based on EMACSLOADPATH environment variable, if any,
> | otherwise to default specified by file `epaths.h' when Emacs was built.
> `----
>
> No mention of expand-file-name.
>
> > You need to expand your paths before adding them to load-path.
>
> Huh? I have
>
> (setq load-path (append (list "~/elisp") load-path))
>
> in my .emacs since ages, and that has always worked.
>
> > I can't see where you are calling (load-library) to load
> > my-custom-generic.el.
>
> That's a valid point, at last.
>
> Sven
Thanks.
I have the same definition for load-path as you do (not mention of
having to expand the path). And anyway, it works fine to load org-mode
without expanding the path.
But I'm afraid I'm new to elisp. I was under the impression that by
adding ~/.../generic to my load path, it would read all elisp files in
that directory, executing everything.
What do I have to do with load-library?
next prev parent reply other threads:[~2008-06-04 12:00 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-03 14:59 Issue with .emacs, files not loading Chris Poole
2008-06-03 21:40 ` Colin S. Miller
2008-06-04 7:16 ` Sven Joachim
2008-06-04 8:47 ` Peter Dyballa
2008-06-04 17:26 ` Eli Zaretskii
2008-06-04 12:00 ` Chris Poole [this message]
2008-06-04 12:49 ` Chris Poole
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f2f954f3-aec8-494b-b120-e1ca060c2c7c@r66g2000hsg.googlegroups.com \
--to=chrispoole@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.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.