I want to create a command line executable which will spawn an emacs window/application.
I searched on the internet and found that the emacs shipped with Mac is not supported in X11 window So, I downloaded the latest emacs from http://emacsformacosx.com/ and installed it in my mac.
Then I go to the /usr/bin directory and create a symbolic link like this:
sudo ln /Applications/Emacs.app/Contents/MacOS/Emacs xemacs
when I run this symblolic link by ./xemacs it says(. means /usr/bin):
Warning: arch-dependent data dir (/Users/david/src/emacs-dev/ftp-versions/emacs-24.2/nextstep/Emacs.app/Contents/MacOS//libexec/emacs/24.2/x86_64-apple-darwin/) does not exist. Warning: arch-independent data dir (/Users/david/src/emacs-dev/ftp-versions/emacs-24.2/nextstep/Emacs.app/Contents/Resources/share/emacs/24.2/etc/) does not exist. Error: charsets directory not found: /Users/david/src/emacs-dev/ftp-versions/emacs-24.2/nextstep/Emacs.app/Contents/Resources/share/emacs/24.2/etc/charsets Emacs will not function correctly without the character map files. Please check your installation!
But if I run the Emacs binary in directory /Applications/Emacs.app/Contents/MacOS/ it starts the application without any error.
Any one knows how to solve this problem?
argv[0]to find its resources. You might have to use a script instead of a symlink. - tripleeexemacsin general refers to a fork project, not GNU Emacs. For your own private use, this is completely harmless, of course, but I thought I'd still point out the potential for a mix-up. - tripleee/Applications/Emacs.app? Why do you want a symlink, anyway; isn't Emacs in yourPATH? - tripleeealias emacs="open -a Emacs"- Matthias