From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: point of "buffer still has clients" message Date: Tue, 26 Nov 2013 10:55:53 -0500 Organization: A noiseless patient Spider Message-ID: References: <529301AA.7070508@poczta.onet.pl> <83eh64beag.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1385481653 17983 80.91.229.3 (26 Nov 2013 16:00:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 Nov 2013 16:00:53 +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 Nov 26 17:01:03 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VlL4Q-0007JS-M2 for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Nov 2013 17:01:02 +0100 Original-Received: from localhost ([::1]:59615 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VlL4Q-0008Rz-9W for geh-help-gnu-emacs@m.gmane.org; Tue, 26 Nov 2013 11:01:02 -0500 Original-Path: usenet.stanford.edu!goblin3!goblin1!goblin.stu.neva.ru!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!barmar.motzarella.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 37 Injection-Info: barmar.motzarella.org; posting-host="2be9e9f5dd9af768b8861af71b85fc28"; logging-data="29146"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+GiZ7QUaFheV09TdnBqN/k" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:FxPljWoRyT8RAHMfukqzLAt2Jgk= Original-Xref: usenet.stanford.edu gnu.emacs.help:202388 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94657 Archived-At: In article , Jarek Czekalski wrote: > W dniu 2013-11-25 18:07, Eli Zaretskii pisze: > >> Date: Mon, 25 Nov 2013 08:52:10 +0100 > >> From: Jarek Czekalski > >> > >> 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 ***