[macemacsjp-english 180] Re: launching emacs from a symbolic link

Back to archive index

Nadeem Faruque nadee****@gmail*****
Fri Sep 9 17:17:52 JST 2005


Thank you Seiji,

This solution works well.
I now have a file ~/emacs that contains:-

#!/bin/sh
/Applications/Emacs.app/Contents/MacOS/Emacs $*
# end

>> For a complicated reason I need to be able to run emacs from a a
>> symbolic link at ~/emacs....
>> emacs opens in -nw mode (i.e. in the Terminal window) with the   
>> Messages
>>
>> Warning: arch-dependent data dir (/Applications/Emacs.app/Contents/
>> Resources/libexec/emacs/22.0.50/powerpc-apple-darwin8.2.0/) does not
>> exist.
>> (/Users/faruque/emacs)
>> Loading disp-table...done
>> byte-code: Finder got an error: Can't continue .
> ...
>
> Usually emacs runs fine when one types the below command.
> /somewhere/Emacs.app/Contents/MacOS/Emacs
>
> Since Carbon Emacs is re-locatable (you can set its icon anywhere  
> you  would like), it searches its libraries inside the application  
> bundle,  based on its path (/somewhere/else/Emacs.app/Contents/ 
> MacOS/Emacs) or  its prefix-parameter at compilation time (/ 
> Applications/Emacs.app/ Contents/Resources). And so Emacs might be  
> confused when one tries to  launch it via its symbolic link.
>
> How about using the below script as ~/emacs or ~/emacs.sh?
>
> #!/bin/sh
> /Applications/Emacs.app/Contents/MacOS/Emacs
> # end
>
>
> -- Seiji

Nadeem




More information about the macemacsjp-english mailing list
Back to archive index