Am 02.01.2008 um 23:01 schrieb Adam M. Goldstein:

> This question of where to install various things brings up a bigger  
> issue I think---
>
> If were were in a plain old unix or linux environment, I suppose we  
> would put things like the auto directory and site-local in  
> something like /usr/local/share or somewhere in the home  
> directory---but where do these sorts of local files go in the Mac  
> environment? From his previous posts, it looks like Pete is  
> suggesting that something like ~/Library/Application Support/Emacs  
> should be used. I don't know the answer to this question. I figure  
> that my home directory is pretty safe on the Mac from future  
> installations of the system, but I don't know.

I submitted once or twice the proposal to add /Library/Application\  
Support/Emacs and ~/Library/Application\ Support/Emacs to load-path  
to GNU Emacs when built on Mac OS X to the GNU Emacs developers list.  
Both paths follow the rules of Mac OS X. Carbon Emacs had these  
elements in load-path for some time. Another, a bit hidden, part of  
load-path is ~/.emacs.d/.

The auto directory can't be put into /usr/local/share. AUCTeX writes  
into auto directories ELisp user files by the name of <TeX document's  
name>.el. These ELisp files somehow help AUCTeX with the packages and  
their options used in the (La)TeX document.

The important thing is to install AUCTeX outside of the application's  
installation bundle, because inside it can be deleted when the  
application is updated by some means. The Emacs application bundles  
usually have a load-path that does not leave the application bundle  
branch. So it's needed anyway to expand load-path, either by /Library/ 
Application Support/Emacs or by /usr/local/share/emacs/site-lisp,  
which is also safe, because it's not part of Apple's GNU Emacs  
installation.

I think two directories need to be added to load-path: the  
installation directory as passed to configure and also it's "auctex"  
sub-directory:

        (add-to-list 'load-path "/Library/Application Support/Emacs/auctex")
        (add-to-list 'load-path (expand-file-name "~/Library/Application  
Support/Emacs"))

The latter form allows to use for example ~ or ~<some user> as  
shortcuts, which commonly have only a meaning for shell interpreters.

--
Greetings

   Pete

The human brain operates at only 10% of its capacity. The rest is  
overhead for the operating system.



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Emacs-app-dev- mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/emacs-app-dev-

Reply via email to