> I'm running emacs 22.0.96.1. I've put (server-start) in my rc file, and when
> I run emacsclient on a file it opens it my existing emacs just as it should.
> But emacsclient never detects that emacs has opened the file and just sits
> there "Waiting for Emacs..." after that. If in emacs I restart the server
> M-x server-start, then emacsclient stops waiting (because it finally
> realizes it finished or because it detects a disconnect, I don't know). I've
> looked in my /tmp and verified there's an entry for the emacs server there.
> In case it's relevant, I'm running on Solaris 10.
>
> Any ideas how to fix emacsclient?
Did you hit C-x # after editing your file?
> thanks
--
A + Thierry Volpiatto
Location: Saint-Cyr-Sur-Mer - France
It's not broken. Emacsclient is designed to behave like this so that
you can use it as a replacement for other editors, e.g. for composing
mail in mutt, or writing a commit message for subversion. The calling
program needs to know when you're done editing, you do that with
`C-x #' (server-edit) from emacs.
To get the behaviour you desire you have to pass the -n switch to
emacsclient. I have a shell function that does that for me:
ec() { emacsclient -n "$@"; }
HTH
Anselm
--
Anselm Helbig
mailto:anselm.helb...@googlemail.com
On Tue, Jul 21, 2009 at 7:26 AM, Lennart
Borgman<lennart...@gmail.com> wrote:
> Send a bug report! M-x report-emacs-bug
>
>
> On Mon, Jul 20, 2009 at 4:35 PM, Joseph Garvin<joseph....@gmail.com> wrote:
>> I'm running emacs 22.0.96.1. I've put (server-start) in my rc file, and when
>> I run emacsclient on a file it opens it my existing emacs just as it should.
>> But emacsclient never detects that emacs has opened the file and just sits
>> there "Waiting for Emacs..." after that. If in emacs I restart the server
>> M-x server-start, then emacsclient stops waiting (because it finally
>> realizes it finished or because it detects a disconnect, I don't know). I've
>> looked in my /tmp and verified there's an entry for the emacs server there.
>> In case it's relevant, I'm running on Solaris 10.
>>
>> Any ideas how to fix emacsclient?
>>
>> thanks
>>
>
yes: read the documentation for emacsclient:
(info "(emacs) Invoking emacsclient")
--
Joost Kremers joostk...@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)