[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [gforth] Handling of include file paths
From: |
David Kuehling |
Subject: |
Re: [gforth] Handling of include file paths |
Date: |
Tue, 04 Dec 2012 23:57:36 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux) |
>>>>> "Anton" == Anton Ertl <address@hidden> writes:
> On Mon, Dec 03, 2012 at 06:39:03PM +0100, Bernd Paysan wrote:
>> Am Montag, 3. Dezember 2012, 01:15:30 schrieb David Kuehling: > I'd
>> prefer /always/ adding /usr/share/gforth/site-forth >
>> /usr/local/share/gforth/site-forth, so that even a non-root user who
>> > installs gforth with prefix $HOME can access all the forth
>> libraries > installed in a system.
>>
>> Ok, makes sense. The logic then is: If $prefix is /usr, don't add
>> /usr/share..., if it's /usr/local, don't add /usr/local/share..., as
>> it is created by $prefix/share...
> Or we may leave $prefix/share away and just use /usr and /usr/local.
> What does Emacs do?
Running
emacs -q --no-site-file --batch --eval '(message "%s" load-path)
With debian wheezy's /usr/bin/emacs prints:
(/etc/emacs23 /etc/emacs /usr/local/share/emacs/23.4/site-lisp
/usr/local/share/emacs/site-lisp
/usr/share/emacs/23.4/site-lisp
/usr/share/emacs/23.4/site-lisp/anthy
/usr/share/emacs/23.4/site-lisp/cmake-data
/usr/share/emacs/23.4/site-lisp/debian-el
/usr/share/emacs/23.4/site-lisp/dictionaries-common
/usr/share/emacs/23.4/site-lisp/edict-el
/usr/share/emacs/23.4/site-lisp/gforth
/usr/share/emacs/23.4/site-lisp/latex-cjk-common
/usr/share/emacs/23.4/site-lisp/latex-cjk-thai
/usr/share/emacs/23.4/site-lisp/thailatex
/usr/share/emacs/site-lisp
/usr/share/emacs/23.4/lisp /usr/share/emacs/23.4/lisp/url
/usr/share/emacs/23.4/lisp/textmodes
/usr/share/emacs/23.4/lisp/progmodes /usr/share/emacs/23.4/lisp/play
/usr/share/emacs/23.4/lisp/org /usr/share/emacs/23.4/lisp/nxml
/usr/share/emacs/23.4/lisp/net /usr/share/emacs/23.4/lisp/mh-e
/usr/share/emacs/23.4/lisp/mail /usr/share/emacs/23.4/lisp/language
/usr/share/emacs/23.4/lisp/international /usr/share/emacs/23.4/lisp/gnus
/usr/share/emacs/23.4/lisp/eshell /usr/share/emacs/23.4/lisp/erc
/usr/share/emacs/23.4/lisp/emulation
/usr/share/emacs/23.4/lisp/emacs-lisp /usr/share/emacs/23.4/lisp/cedet
/usr/share/emacs/23.4/lisp/calendar /usr/share/emacs/23.4/lisp/calc
/usr/share/emacs/23.4/lisp/obsolete /usr/share/emacs/23.4/leim)
A copy of emacs installed from source to /usr/local/bin prints:
(/usr/local/share/emacs/23.3/site-lisp
/usr/local/share/emacs/site-lisp
/usr/local/share/emacs/23.3/lisp /usr/local/share/emacs/23.3/lisp/url
/usr/local/share/emacs/23.3/lisp/textmodes
/usr/local/share/emacs/23.3/lisp/progmodes
/usr/local/share/emacs/23.3/lisp/play
/usr/local/share/emacs/23.3/lisp/org
/usr/local/share/emacs/23.3/lisp/nxml
/usr/local/share/emacs/23.3/lisp/net
/usr/local/share/emacs/23.3/lisp/mh-e
/usr/local/share/emacs/23.3/lisp/mail
/usr/local/share/emacs/23.3/lisp/language
/usr/local/share/emacs/23.3/lisp/international
/usr/local/share/emacs/23.3/lisp/gnus
/usr/local/share/emacs/23.3/lisp/eshell
/usr/local/share/emacs/23.3/lisp/erc
/usr/local/share/emacs/23.3/lisp/emulation
/usr/local/share/emacs/23.3/lisp/emacs-lisp
/usr/local/share/emacs/23.3/lisp/cedet
/usr/local/share/emacs/23.3/lisp/calendar
/usr/local/share/emacs/23.3/lisp/calc
/usr/local/share/emacs/23.3/lisp/obsolete
/usr/local/share/emacs/23.3/leim)
Hmm, while Debian's emacs has both /usr and /usr/local site-lisp
directories, the emacs installed from source only has the /usr/local
site-lisp directory :/
That's somewhat unexpected. In the latter case
/usr/share/emacs/site-lisp even exists but isn't listed still.
cheers,
David
--
GnuPG public key: http://dvdkhlng.users.sourceforge.net/dk.gpg
Fingerprint: B17A DC95 D293 657B 4205 D016 7DEF 5323 C174 7D40
pgp4ZhsG2JTCl.pgp
Description: PGP signature
- [gforth] Handling of include file paths, David Kuehling, 2012/12/02
- Re: [gforth] Handling of include file paths, Bernd Paysan, 2012/12/02
- Re: [gforth] Handling of include file paths, David Kuehling, 2012/12/02
- Re: [gforth] Handling of include file paths, Bernd Paysan, 2012/12/02
- Re: [gforth] Handling of include file paths, David Kuehling, 2012/12/02
- Re: [gforth] Handling of include file paths, Bernd Paysan, 2012/12/03
- Re: [gforth] Handling of include file paths, Anton Ertl, 2012/12/03
- Re: [gforth] Handling of include file paths, Bernd Paysan, 2012/12/03
- Re: [gforth] Handling of include file paths, Bernd Paysan, 2012/12/03
- Re: [gforth] Handling of include file paths,
David Kuehling <=