From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: How to set 'buffer-save-without-query' from external program? Date: Fri, 9 Nov 2012 09:34:34 -0800 Message-ID: References: <87fw4ivhe1.fsf@googlemail.com><87bof6vgvj.fsf@googlemail.com> <877gpuvfzy.fsf@googlemail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1352482494 8644 80.91.229.3 (9 Nov 2012 17:34:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Nov 2012 17:34:54 +0000 (UTC) To: "'Thorsten Jolitz'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 09 18:35:04 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 1TWsTv-0002Wz-6Z for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Nov 2012 18:35:03 +0100 Original-Received: from localhost ([::1]:41752 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWsTm-00083m-0r for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Nov 2012 12:34:54 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:51991) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWsTd-00082O-5I for help-gnu-emacs@gnu.org; Fri, 09 Nov 2012 12:34:49 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWsTZ-0005oc-7i for help-gnu-emacs@gnu.org; Fri, 09 Nov 2012 12:34:45 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:29273) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWsTY-0005nj-Vc for help-gnu-emacs@gnu.org; Fri, 09 Nov 2012 12:34:41 -0500 Original-Received: from ucsinet21.oracle.com (ucsinet21.oracle.com [156.151.31.93]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id qA9HYdE2023778 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 9 Nov 2012 17:34:40 GMT Original-Received: from acsmt356.oracle.com (acsmt356.oracle.com [141.146.40.156]) by ucsinet21.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id qA9HYcid003459 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Nov 2012 17:34:39 GMT Original-Received: from abhmt120.oracle.com (abhmt120.oracle.com [141.146.116.72]) by acsmt356.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id qA9HYcCl027162; Fri, 9 Nov 2012 11:34:38 -0600 Original-Received: from dradamslap1 (/10.159.219.15) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 09 Nov 2012 09:34:38 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <877gpuvfzy.fsf@googlemail.com> Thread-Index: Ac2+oEEbOQco7PxvQZWxu25YjZ5JIQAACKsg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet21.oracle.com [156.151.31.93] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 156.151.31.81 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:87613 Archived-At: > Ok, thanks for your help, I think this would do the job, but the error > is probably in the emacsclient call, because it does not take > effect on the buffer that should be closed without querying. > > If an external program opened a new emacsclient instance for editing, > and the file opened in the editing buffer is set as the input channel > for the external program - isn't that buffer automatically the target > buffer for further emacsclient calls that evaluate elisp code via the > "-e" option? Sorry, dunno (but someone will). Perhaps look at the emacsclient code for info.