From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thorsten Jolitz Newsgroups: gmane.emacs.help Subject: Re: How to set 'buffer-save-without-query' from external program? Date: Fri, 09 Nov 2012 20:13:56 +0100 Message-ID: <87zk2qtwqz.fsf@googlemail.com> References: <87fw4ivhe1.fsf@googlemail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1352488453 29573 80.91.229.3 (9 Nov 2012 19:14:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Nov 2012 19:14:13 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 09 20:14:23 2012 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 1TWu21-0007B9-L5 for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Nov 2012 20:14:21 +0100 Original-Received: from localhost ([::1]:42880 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWu1s-0006R5-1y for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Nov 2012 14:14:12 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:45573) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWu1m-0006QO-BC for help-gnu-emacs@gnu.org; Fri, 09 Nov 2012 14:14:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWu1l-0004vQ-HX for help-gnu-emacs@gnu.org; Fri, 09 Nov 2012 14:14:06 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:55602) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWu1l-0004uT-B1 for help-gnu-emacs@gnu.org; Fri, 09 Nov 2012 14:14:05 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1TWu1o-000715-Ox for help-gnu-emacs@gnu.org; Fri, 09 Nov 2012 20:14:08 +0100 Original-Received: from g231111005.adsl.alicedsl.de ([92.231.111.5]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Nov 2012 20:14:08 +0100 Original-Received: from tjolitz by g231111005.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Nov 2012 20:14:08 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 28 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: g231111005.adsl.alicedsl.de User-Agent: Gnus/5.130002 (Ma Gnus v0.2) Emacs/24.0.93 (gnu/linux) Cancel-Lock: sha1:4UZK5W0vw05L5SDkwYkgmwZwnbo= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:87617 Archived-At: Barry Margolin writes: > In article , > "Drew Adams" wrote: >> But "revert and save" doesn't mean much to me. >> After reverting there is no need to save. >> >> Setting the modified-p flag just pretends that you have not modified the >> buffer. >> So you get no queries about wanting to save it. >> >> If you instead do want to save it, then just save it, systematically. > > He's reverting the buffer, editing it, and then he wants to exit the > server without saving it. But he still plans on saving it later. No, I do want to save it when exiting - but without being queried by Emacs about it. So '(setq buffer-save-without-query t)' looks like the right thing to do for me, but I'm not quite sure how to address the right emacsclient instance / the right buffer with an external call to emacsclient. At least what I tried (see original message) has no effect. -- cheers, Thorsten