all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Barry Margolin <barmar@alum.mit.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: point of "buffer still has clients" message
Date: Tue, 26 Nov 2013 10:55:53 -0500	[thread overview]
Message-ID: <barmar-3CE40E.10555326112013@news.eternal-september.org> (raw)
In-Reply-To: mailman.7173.1385478804.10748.help-gnu-emacs@gnu.org

In article <mailman.7173.1385478804.10748.help-gnu-emacs@gnu.org>,
 Jarek Czekalski <jarekczek@poczta.onet.pl> wrote:

> W dniu 2013-11-25 18:07, Eli Zaretskii pisze:
> >> Date: Mon, 25 Nov 2013 08:52:10 +0100
> >> From: Jarek Czekalski <jarekczek@poczta.onet.pl>
> >>
> >> I don't see a point of "buffer still has clients, kill it" message.
> > The second one explains the reason quite clearly, I think.  You need
> > to release the client when the file is safely stored on disk.  How
> > else you suggest to do this, except by a special command?
> 
> There must be a misunderstanding between us. The question appears when I 
> try to kill the buffer. I don't see any connection with "safely storing 
> on disk". What's more, this question is asked even if I try to kill the 
> buffer right after storing it safely on disk.
> 
> I ask this on user list, because there may be a substantial lack of 
> knowledge on my side, which may be suplemented by experienced Emacs users.
> 
> I suggest to do it as it is currently done, without bothering user with 
> a question, which they always answer with "yes".

When you have EDITOR set to most editors, the client starts a new editor 
process, you edit the file, save it, and then exit the editor. The 
client waits for the editor to exit, then it will use the result.

But when you use emacsclient, it's not so simple. Emacs keeps on running 
after you save the file. Emacsclient is waiting for a message from emacs 
telling it that it you're done, so it should exit, and then its client 
application can use the result. You do this with the server-edit (C-x #) 
command.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


  parent reply	other threads:[~2013-11-26 15:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-25  7:52 point of "buffer still has clients" message Jarek Czekalski
2013-11-25 17:07 ` Eli Zaretskii
2013-11-26 15:13   ` Jarek Czekalski
     [not found]   ` <mailman.7173.1385478804.10748.help-gnu-emacs@gnu.org>
2013-11-26 15:55     ` Barry Margolin [this message]
2013-11-27  7:32       ` Jarek Czekalski
2013-11-27  8:42         ` Ian van der Neut
2013-11-27 15:18           ` Ludwig, Mark
     [not found]           ` <mailman.7255.1385566785.10748.help-gnu-emacs@gnu.org>
2013-11-27 22:27             ` Barry Margolin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=barmar-3CE40E.10555326112013@news.eternal-september.org \
    --to=barmar@alum.mit.edu \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.