all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Request for site-lisp-directory
Date: Wed, 23 Feb 2005 12:20:06 +0100	[thread overview]
Message-ID: <x5ekf75xqx.fsf@lola.goethe.zz> (raw)
In-Reply-To: <wzvf8jk1h6.fsf@ordesa.cs.uu.nl> (Piet van Oostrum's message of "Wed, 23 Feb 2005 11:35:49 +0100")

Piet van Oostrum <piet@cs.uu.nl> writes:

>>>>>> David Kastrup <dak@gnu.org> (DK) wrote:
>
>>DK> Piet van Oostrum <piet@cs.uu.nl> writes:
>>>> I want to make a plea for a new lisp-level variable
>>>> `site-lisp-directory' similar to `data-directory' and
>>>> `exec-directory'. In my AUCTeX tex-site.el I now have:
>>>> 
>>>> (defvar TeX-lisp-directory
>>>> "/Applications/Emacs.app/Contents/Resources/site-lisp/auctex" ...
>>>> 
>>>> I would prefer the location-independent:
>>>> 
>>>> (expand-file-name "auctex" site-lisp-directory)
>>>> 
>>>> Of course it is possible to say:
>>>> (defvar site-lisp-directory (expand-file-name "../site-lisp"
>>>> data-directory)) but I think it is cleaner if this is setup by the
>>>> initialization code.
>
>>DK> Hold your horses.  I am right now overhauling the installation
>>DK> procedure of AUCTeX, and indeed it will make TeX-lisp-directory (and
>>DK> other stuff) typically be set to a relative path location (namely
>>DK> something like
>>DK> (expand-file-name "something" (file-name-directory load-file-name))
>
>>DK> This is more a problem of the installation procedure of AUCTeX rather
>>DK> than Emacs.
>
> It is not only AUCTeX; I just use that as an example. I have more
> packages installed in site-lisp and some of them require a variable
> set to their location or a location of one of their files. Emacs
> knows the site-lisp directory because it puts it in load-path, so it
> could easily put it in a variable also.

I just explained that it is no good to assume that there is only a
single possible directory relative to site-lisp where a package may be
installed, since some packages come in package systems delivered by
the OS vendor, some packages get installed by the site administrator,
and some packages get installed by the user himself, and in some cases
those installations are even in parallel.  The only scheme that has a
marginal chance of working is locating stuff relatively to
(file-name-directory load-file-name).

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

  reply	other threads:[~2005-02-23 11:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-22  9:10 Request for site-lisp-directory Piet van Oostrum
2005-02-22 14:40 ` David Kastrup
2005-02-23 10:35   ` Piet van Oostrum
2005-02-23 11:20     ` David Kastrup [this message]
2005-02-23 12:40     ` Stefan Monnier

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=x5ekf75xqx.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=emacs-devel@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.