help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to


From: Decebal
Subject: Re: How to
Date: Sat, 10 Oct 2009 13:57:07 -0700 (PDT)
User-agent: G2/1.0

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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]