Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Emacs 23, emacsclient arguments?

Tags:

emacs

emacs23

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

like image 957
hatmatrix Avatar asked Dec 14 '22 03:12

hatmatrix


1 Answers

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.

like image 76
genehack Avatar answered Jan 01 '23 12:01

genehack