This is somewhat of a follow up to Prevent emacsclient from blocking other instances.
I am using
emacsclient -a '' -nw --socket-name=$TTY where
TTY=$(basename tty). I use emacs in the terminal and this gives a unique daemon for each terminal session.
If I start the daemon by running
emacsclient with no arguments, it starts and everything works fine. However, if I start it by running
emacsclient file, it locks down. It opens the scratch buffer and then gets frozen. The only way to fix it is to
kill -9 the daemon process and to restart it without opening a file.
I am using emacs 24.4 compiled with
--without-x with Mac OS X in iTerm 2. You can get the exact build of emacs I am using with conda
conda install -c asmeurer emacs.
I found after disabling flyspell (commenting out these lines from my .emacs), it fixes it. It still hangs on the scratch buffer for a few seconds, but then goes to the file. I suspect it has something to do with starting the hunspell process.