From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Anselm Helbig Newsgroups: gmane.emacs.help Subject: Re: emacsclient stuck "Waiting for Emacs..." Date: Tue, 21 Jul 2009 09:01:35 +0200 Organization: Freie Universitaet Berlin Message-ID: <87iqhma59s.wl%anselm.helbig+news2009@googlemail.com> References: NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1248162098 27923 80.91.229.12 (21 Jul 2009 07:41:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 21 Jul 2009 07:41:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 21 09:41:31 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MT9ya-0006zS-7u for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Jul 2009 09:41:29 +0200 Original-Received: from localhost ([127.0.0.1]:39850 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MT9yZ-0005HK-Oh for geh-help-gnu-emacs@m.gmane.org; Tue, 21 Jul 2009 03:41:27 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 32 Original-X-Trace: news.uni-berlin.de 8NlRihAb/HSiXySDcuNJfgMTOVTFFQ5xTxH7gSh0A5w2sXFsw3Xj6+Vt8M Cancel-Lock: sha1:k50VIhlQCCwfLnmAekA8Qtp/H3w= In-Reply-To: Mail-Followup-To: anselm.helbig+news2009@googlemail.com Original-Xref: news.stanford.edu gnu.emacs.help:171098 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:66288 Archived-At: At Mon, 20 Jul 2009 09:35:42 -0500, Joseph Garvin wrote: > > [1 ] > > [2 ] > 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? 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.helbig+news2009@googlemail.com