[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
How to programmatically save a buffer?
From: |
Marcin Borkowski |
Subject: |
How to programmatically save a buffer? |
Date: |
Tue, 17 Nov 2015 23:07:11 +0100 |
User-agent: |
mu4e 0.9.15; emacs 25.0.50.1 |
Hi there,
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). I found this in the
manual:
--8<---------------cut here---------------start------------->8---
You can write the contents of a buffer, or part of a buffer, directly to
a file on disk using the ‘append-to-file’ and ‘write-region’ functions.
Don’t use these functions to write to files that are being visited; that
could cause confusion in the mechanisms for visiting.
--8<---------------cut here---------------end--------------->8---
Why shouldn't I use `write-region'?
Best,
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University
- How to programmatically save a buffer?,
Marcin Borkowski <=