On a Mac, finding emacsclient is not as easy as falling off a chair. The way I build emacs on the Mac is to make an application. The path to emacsclient happens to be:
/Applications/Emacs.app/Contents/MacOS/bin/emacsclient
The other "ick" is invocation-directory is set to
/Applications/Emacs.app/Contents/MacOS/ because (I'm half guessing) it is
executing either Emacs or Emacs.sh found in that directory when you double
click the icon. I've managed to fix this with the small change below.
(let ((version (format "%s.%s"
emacs-major-version
emacs-minor-version)))
(or (let ((exec-path (list invocation-directory (format "%sbin/"
invocation-directory)))) <<<< changed.
(or (executable-find (format "emacsclient-%s" version))
(executable-find (format "emacsclient-%s.exe" version))
(executable-find "emacsclient")
(executable-find "emacsclient.exe")))
(executable-find (format "emacsclient-%s" version))
(executable-find (format "emacsclient-%s.exe" version))
(executable-find "emacsclient")
(executable-find "emacsclient.exe")))
(note that invocation-directory ends with a slash)
I can add this to a pull request if that would help out and if you think this
is the way to fix it.
Thank you,
Perry
signature.asc
Description: Message signed with OpenPGP using GPGMail
