all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to programmatically save a buffer?
@ 2015-11-17 22:07 Marcin Borkowski
  2015-11-17 22:21 ` Jorge A. Alfaro-Murillo
  0 siblings, 1 reply; 5+ messages in thread
From: Marcin Borkowski @ 2015-11-17 22:07 UTC (permalink / raw)
  To: Help Gnu Emacs mailing list

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



^ permalink raw reply	[flat|nested] 5+ messages in thread
[parent not found: <mailman.108.1447798057.31583.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2015-11-19 22:21 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-11-17 22:07 How to programmatically save a buffer? Marcin Borkowski
2015-11-17 22:21 ` Jorge A. Alfaro-Murillo
2015-11-19 22:13   ` Marcin Borkowski
2015-11-19 22:21     ` Jorge A. Alfaro-Murillo
     [not found] <mailman.108.1447798057.31583.help-gnu-emacs@gnu.org>
2015-11-17 22:41 ` Pascal J. Bourguignon

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.