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: Thu, 19 Nov 2015 17:21:21 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

Marcin Borkowski writes:

Jorge A. Alfaro-Murillo writes:
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?

#+BEGIN_SRC emacs-lisp
 (let ((inhibit-message t)
       message-log-max)
      ...
      (save-buffer)
      ...
) #+END_SRC

Best,
--
Jorge.




reply via email to

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