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

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

Re: How to programmatically save a buffer?


From: Jorge A. Alfaro-Murillo
Subject: Re: How to programmatically save a buffer?
Date: Tue, 17 Nov 2015 17:21:12 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

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.

--
Jorge.




reply via email to

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