From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Decebal Newsgroups: gmane.emacs.help Subject: Re: How to Date: Sat, 10 Oct 2009 13:57:07 -0700 (PDT) Organization: http://groups.google.com Message-ID: <4f26ac40-e181-4d54-a8e3-82f5cf54f9db@g23g2000yqh.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1255210920 31970 80.91.229.12 (10 Oct 2009 21:42:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 10 Oct 2009 21:42:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 10 23:41:50 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1MwjhF-0004P5-AU for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Oct 2009 23:41:49 +0200 Original-Received: from localhost ([127.0.0.1]:55683 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MwjhE-0006FV-RM for geh-help-gnu-emacs@m.gmane.org; Sat, 10 Oct 2009 17:41:48 -0400 Original-Path: news.stanford.edu!usenet.stanford.edu!postnews.google.com!g23g2000yqh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 84.53.123.169 Original-X-Trace: posting.google.com 1255208227 15985 127.0.0.1 (10 Oct 2009 20:57:07 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Sat, 10 Oct 2009 20:57:07 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g23g2000yqh.googlegroups.com; posting-host=84.53.123.169; posting-account=K-cdeAoAAAD_0d505kUtHXJaT5LFIu-3 User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; nl; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:173729 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:68819 Archived-At: On Oct 10, 10:06=A0pm, Andreas R=F6hler wrote: > > The Emacs batch gives output like: > > =A0 =A0 Saving file /home/cecil/temp/inputEmacs... > > it's in files.el, save-buffer, AFAIS > > =A0 =A0 (if (and modp (buffer-file-name)) > =A0 =A0 =A0 =A0 (message "Saving file %s..." (buffer-file-name))) > > commenting out these lines should cancel the message The problem with that is that it only works for me. But I found a way. I replaced: (write-file output-file)) with: (set-visited-file-name output-file) (basic-save-buffer)) But maybe there should be more consideration for the possibility that Emacs is used as a batch program. > > =A0 =A0 Wrote /home/cecil/temp/inputEmacs I still have to find something for this.