changeset 4205:579f03038f61

[xemacs-hg @ 2007-10-02 20:08:57 by aidan] Document that START and END are zero-based for insert-file-contents.
author aidan
date Tue, 02 Oct 2007 20:09:01 +0000
parents 121918494c46
children a3e638b941b0
files lisp/ChangeLog lisp/code-files.el
diffstat 2 files changed, 11 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Tue Oct 02 19:49:02 2007 +0000
+++ b/lisp/ChangeLog	Tue Oct 02 20:09:01 2007 +0000
@@ -1,3 +1,9 @@
+2007-10-02  Aidan Kehoe  <kehoea@parhasard.net>
+
+	* code-files.el (insert-file-contents):
+	Document that START and END are zero-based, in contrast to buffer
+	offsets, and give an example of their use. 
+
 2007-09-09  Aidan Kehoe  <kehoea@parhasard.net>
 
 	* unicode.el (unicode-error-default-translation-table):
--- a/lisp/code-files.el	Tue Oct 02 19:49:02 2007 +0000
+++ b/lisp/code-files.el	Tue Oct 02 20:09:01 2007 +0000
@@ -357,8 +357,11 @@
 If visiting and the file does not exist, visiting is completed
 before the error is signaled.
 
-The optional third and fourth arguments START and END
-specify what portion of the file to insert.
+The optional third and fourth arguments START and END specify what portion
+of the file to insert, and start at zero, in direct and needless contrast to
+buffer offsets.  That is, values of 0 and 10 for START and END respectively
+will give the first ten octets of a file.
+
 If VISIT is non-nil, START and END must be nil.
 If optional fifth argument REPLACE is non-nil,
 it means replace the current buffer contents (in the accessible portion)