all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Decebal <cldwesterhof@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to
Date: Sat, 10 Oct 2009 13:57:07 -0700 (PDT)	[thread overview]
Message-ID: <4f26ac40-e181-4d54-a8e3-82f5cf54f9db@g23g2000yqh.googlegroups.com> (raw)
In-Reply-To: mailman.8511.1255205222.2239.help-gnu-emacs@gnu.org

On Oct 10, 10:06 pm, Andreas Röhler <andreas.roeh...@easy-emacs.de>
wrote:
> > The Emacs batch gives output like:
> >     Saving file /home/cecil/temp/inputEmacs...
>
> it's in files.el, save-buffer, AFAIS
>
>     (if (and modp (buffer-file-name))
>         (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.


> >     Wrote /home/cecil/temp/inputEmacs

I still have to find something for this.


  parent reply	other threads:[~2009-10-10 20:57 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-10 18:33 How to Decebal
2009-10-10 20:06 ` Andreas Röhler
2009-10-10 20:55 ` How to [write sequentially numbered lines] Vassil Nikolov
2009-10-10 21:20   ` Decebal
     [not found] ` <mailman.8511.1255205222.2239.help-gnu-emacs@gnu.org>
2009-10-10 20:57   ` Decebal [this message]
2009-10-11  1:41     ` How to Decebal
2009-10-11  8:11       ` Andreas Röhler
     [not found]       ` <mailman.8527.1255248737.2239.help-gnu-emacs@gnu.org>
2009-10-11 16:20         ` Decebal

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4f26ac40-e181-4d54-a8e3-82f5cf54f9db@g23g2000yqh.googlegroups.com \
    --to=cldwesterhof@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.