[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to programmatically save a buffer?
From: |
Marcin Borkowski |
Subject: |
Re: How to programmatically save a buffer? |
Date: |
Thu, 19 Nov 2015 23:13:41 +0100 |
User-agent: |
mu4e 0.9.15; emacs 25.0.50.1 |
On 2015-11-17, at 23:21, Jorge A. Alfaro-Murillo
<jorge.alfaro-murillo@yale.edu> wrote:
> Hi Marcin,
>
> Marcin Borkowski writes:
>
>> as part of a function of mine, I want to save a buffer.
>> However, I do not want any messages logged (as save-buffer
>> does).
>
> If you do something like:
>
> #+BEGIN_SRC emacs-lisp
> (let (message-log-max)
> ...
> (save-buffer)
> ...
> )
> #+END_SRC
>
> then message-log-max is nil while save-buffer is executed and so
> it doesn't log the message.
Thanks, that's /almost/ it - but it still shows the message in the echo
area... How to avoid that?
Best,
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University