changeset 102890:fb16f3bdad15

(append-to-file): Doc fix.
author Eli Zaretskii <eliz@gnu.org>
date Wed, 08 Apr 2009 14:05:38 +0000
parents dccc80becf9d
children 78cf196522ce
files lisp/files.el
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/files.el	Wed Apr 08 13:51:48 2009 +0000
+++ b/lisp/files.el	Wed Apr 08 14:05:38 2009 +0000
@@ -4475,8 +4475,14 @@
 (defun append-to-file (start end filename)
   "Append the contents of the region to the end of file FILENAME.
 When called from a function, expects three arguments,
-START, END and FILENAME.  START and END are buffer positions
-saying what text to write."
+START, END and FILENAME.  START and END are normally buffer positions
+specifying the part of the buffer to write.
+If START is nil, that means to use the entire buffer contents.
+If START is a string, then output that string to the file
+instead of any buffer contents; END is ignored.
+
+This does character code conversion and applies annotations
+like `write-region' does."
   (interactive "r\nFAppend to file: ")
   (write-region start end filename t))