From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: Request for site-lisp-directory Date: Tue, 22 Feb 2005 15:40:20 +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 1109083469 20579 80.91.229.2 (22 Feb 2005 14:44:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Feb 2005 14:44:29 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 22 15:44:29 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D3bFC-00049O-8W for ged-emacs-devel@m.gmane.org; Tue, 22 Feb 2005 15:42:34 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3bWM-0006gU-Dj for ged-emacs-devel@m.gmane.org; Tue, 22 Feb 2005 10:00:18 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D3bSh-0005A5-DK for emacs-devel@gnu.org; Tue, 22 Feb 2005 09:56:31 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D3bSc-000576-GD for emacs-devel@gnu.org; Tue, 22 Feb 2005 09:56:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D3bSb-00054l-TR for emacs-devel@gnu.org; Tue, 22 Feb 2005 09:56:26 -0500 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D3bD4-0004E8-Ca for emacs-devel@gnu.org; Tue, 22 Feb 2005 09:40:22 -0500 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1D3bD3-0007I8-B8; Tue, 22 Feb 2005 09:40:21 -0500 Original-To: Piet van Oostrum In-Reply-To: (Piet van Oostrum's message of "Tue, 22 Feb 2005 10:10:46 +0100") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) 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:33730 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:33730 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. Hold your horses. I am right now overhauling the installation procedure of AUCTeX, and indeed it will make TeX-lisp-directory (and other stuff) typically be set to a relative path location (namely something like (expand-file-name "something" (file-name-directory load-file-name)) This is more a problem of the installation procedure of AUCTeX rather than Emacs. And it can't be solved by Emacs, anyway: packages delivered by your OS distribution vendor will be placed in a directory different (and later in load-path) than packages installed per-site. Having a "site-lisp-directory" in the manner you envision would mean that one could not have AUCTeX working _both_ when installed by the OS installation procedures _as well_ as as part of the site-local installations (probably with a newer version). I don't think there is much within Emacs itself that can be provided and result in consistently being of help here. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum