diff options
| author | Eli Zaretskii | 2009-04-08 14:06:45 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2009-04-08 14:06:45 +0000 |
| commit | d8c0d4196f8d20e8726f9f124c75846bb8e9a9bb (patch) | |
| tree | 921baacff9b187ea691f49a86b02d0778dd0fa38 | |
| parent | 9993f59a8583c0934913c76618b39429dbbca285 (diff) | |
| download | emacs-d8c0d4196f8d20e8726f9f124c75846bb8e9a9bb.tar.gz emacs-d8c0d4196f8d20e8726f9f124c75846bb8e9a9bb.zip | |
(append-to-file): Doc fix.
| -rw-r--r-- | lisp/ChangeLog | 2 | ||||
| -rw-r--r-- | lisp/files.el | 10 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 33b315367ba..8eb266495d6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,7 @@ | |||
| 1 | 2009-04-08 Eli Zaretskii <eliz@gnu.org> | 1 | 2009-04-08 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * files.el (append-to-file): Doc fix. | ||
| 4 | |||
| 3 | * term/pc-win.el (msdos-last-help-message): New defvar. | 5 | * term/pc-win.el (msdos-last-help-message): New defvar. |
| 4 | (msdos-show-help): Use it to avoid saving the last message if it | 6 | (msdos-show-help): Use it to avoid saving the last message if it |
| 5 | was also a help message (Bug#2895). | 7 | was also a help message (Bug#2895). |
diff --git a/lisp/files.el b/lisp/files.el index 7c792c96c52..499948c4176 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -4475,8 +4475,14 @@ Don't call it from programs! Use `insert-file-contents' instead. | |||
| 4475 | (defun append-to-file (start end filename) | 4475 | (defun append-to-file (start end filename) |
| 4476 | "Append the contents of the region to the end of file FILENAME. | 4476 | "Append the contents of the region to the end of file FILENAME. |
| 4477 | When called from a function, expects three arguments, | 4477 | When called from a function, expects three arguments, |
| 4478 | START, END and FILENAME. START and END are buffer positions | 4478 | START, END and FILENAME. START and END are normally buffer positions |
| 4479 | saying what text to write." | 4479 | specifying the part of the buffer to write. |
| 4480 | If START is nil, that means to use the entire buffer contents. | ||
| 4481 | If START is a string, then output that string to the file | ||
| 4482 | instead of any buffer contents; END is ignored. | ||
| 4483 | |||
| 4484 | This does character code conversion and applies annotations | ||
| 4485 | like `write-region' does." | ||
| 4480 | (interactive "r\nFAppend to file: ") | 4486 | (interactive "r\nFAppend to file: ") |
| 4481 | (write-region start end filename t)) | 4487 | (write-region start end filename t)) |
| 4482 | 4488 | ||