From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Piet van Oostrum Newsgroups: gmane.emacs.devel Subject: Re: Request for site-lisp-directory Date: Wed, 23 Feb 2005 11:35:49 +0100 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1109156423 11577 80.91.229.2 (23 Feb 2005 11:00:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 23 Feb 2005 11:00:23 +0000 (UTC) Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 23 12:00:22 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D3uFN-0006Gk-Nx for ged-emacs-devel@m.gmane.org; Wed, 23 Feb 2005 12:00:02 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3uWi-0004BN-2A for ged-emacs-devel@m.gmane.org; Wed, 23 Feb 2005 06:17:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D3uD9-0006XF-78 for emacs-devel@gnu.org; Wed, 23 Feb 2005 05:57:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D3uD4-0006Vy-U0 for emacs-devel@gnu.org; Wed, 23 Feb 2005 05:57:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3uCU-0006Mh-WE for emacs-devel@gnu.org; Wed, 23 Feb 2005 05:57:04 -0500 Original-Received: from [131.211.81.146] (helo=ordesa.cs.uu.nl) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D3ts7-0004yq-7b for emacs-devel@gnu.org; Wed, 23 Feb 2005 05:35:59 -0500 Original-Received: from ordesa.cs.uu.nl (localhost [127.0.0.1]) by ordesa.cs.uu.nl (Postfix) with ESMTP id 65DE2392B75 for ; Wed, 23 Feb 2005 11:35:56 +0100 (CET) X-Mailer: emacs 21.3.50.31 (via feedmail 8 I) Original-To: emacs-devel@gnu.org In-Reply-To: (David Kastrup's message of "Tue, 22 Feb 2005 15:40:20 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (darwin) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org X-MailScanner-To: ged-emacs-devel@m.gmane.org Xref: main.gmane.org gmane.emacs.devel:33758 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33758 >>>>> David Kastrup (DK) wrote: >DK> Piet van Oostrum 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. -- Piet van Oostrum URL: http://www.cs.uu.nl/~piet [PGP] Private email: piet@vanoostrum.org