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:18:59 -0800 Message-ID: References: <87fw4ivhe1.fsf@googlemail.com> <87bof6vgvj.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 1352481555 32345 80.91.229.3 (9 Nov 2012 17:19:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 Nov 2012 17:19:15 +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:19:25 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 1TWsEj-00067m-Pm for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Nov 2012 18:19:21 +0100 Original-Received: from localhost ([::1]:35122 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWsEa-0006vj-GG for geh-help-gnu-emacs@m.gmane.org; Fri, 09 Nov 2012 12:19:12 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:52180) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWsEV-0006v7-DM for help-gnu-emacs@gnu.org; Fri, 09 Nov 2012 12:19:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TWsEU-0000Zl-Cu for help-gnu-emacs@gnu.org; Fri, 09 Nov 2012 12:19:07 -0500 Original-Received: from userp1040.oracle.com ([156.151.31.81]:21374) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TWsEU-0000ZY-3V for help-gnu-emacs@gnu.org; Fri, 09 Nov 2012 12:19:06 -0500 Original-Received: from ucsinet22.oracle.com (ucsinet22.oracle.com [156.151.31.94]) by userp1040.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id qA9HJ4gk007363 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 9 Nov 2012 17:19:05 GMT Original-Received: from acsmt358.oracle.com (acsmt358.oracle.com [141.146.40.158]) by ucsinet22.oracle.com (8.14.4+Sun/8.14.4) with ESMTP id qA9HJ3wL021529 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 9 Nov 2012 17:19:04 GMT Original-Received: from abhmt116.oracle.com (abhmt116.oracle.com [141.146.116.68]) by acsmt358.oracle.com (8.12.11.20060308/8.12.11) with ESMTP id qA9HJ3Fn021217; Fri, 9 Nov 2012 11:19:03 -0600 Original-Received: from dradamslap1 (/10.159.219.15) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 09 Nov 2012 09:19:03 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87bof6vgvj.fsf@googlemail.com> Thread-Index: Ac2+nZv/vRk5udBXSyusc6wBh4D1HQAACykg X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.6157 X-Source-IP: ucsinet22.oracle.com [156.151.31.94] 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:87611 Archived-At: > > You should be able to use (set-buffer-modified-p nil) to > > prevent such checks. > > But I want the buffer to be reverted and saved - only without being > queried. Would this still happen if I set the set-buffer-modified-p > flag to nil? Sorry, I don't have the time right now to get into it. Hopefully someone else can help more. 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.