I recently installed Emacs 23 (on OS X Leopard) and trying out the emacs server. I have tried both ways: (1) putting (server-start) in my .emacs file, and (2) running emacs --daemon at the terminal (in separate trials; not at the same time). In either case, when I have an emacs frame already open and try to open a separate file in the OS X terminal using emacsclient -t, -tty, or -nw, the file always opens in an existing frame rather than in the terminal as described:
http://www.gnu.org/software/emacs/manual/html_node/emacs/emacsclient-Options.html
http://emacs-fu.blogspot.com/2009/02/emacs-daemon.html
However, emacsclient -c works as expected. Do you have any ideas what may be happening?
Thanks much! -Stephen
Are you sure you're using the right 'emacsclient' binary? You'll want /Applications/Emacs.app/Contents/MacOS/bin/emacsclient
, and by default it will NOT be in your path. If you just invoke a bare emacsclient
from the command line, you'll get the emacsclient
from the Emacs 22.1 that Apple ships.
If you run emacsclient --version
and get this:
$ emacsclient --version
emacsclient 22.1
You're not getting the right one.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With