aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii <[email protected]>2009-04-08 14:06:45 +0000
committerEli Zaretskii <[email protected]>2009-04-08 14:06:45 +0000
commitd8c0d4196f8d20e8726f9f124c75846bb8e9a9bb (patch)
tree921baacff9b187ea691f49a86b02d0778dd0fa38 /lisp
parent9993f59a8583c0934913c76618b39429dbbca285 (diff)
(append-to-file): Doc fix.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/files.el10
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 33b315367b..8eb266495d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,7 @@
2009-04-08 Eli Zaretskii <[email protected]>
+ * files.el (append-to-file): Doc fix.
+
* term/pc-win.el (msdos-last-help-message): New defvar.
(msdos-show-help): Use it to avoid saving the last message if it
was also a help message (Bug#2895).
diff --git a/lisp/files.el b/lisp/files.el
index 7c792c96c5..499948c417 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -4475,8 +4475,14 @@ Don't call it from programs! Use `insert-file-contents' instead.
(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))