# HG changeset patch # User aidan # Date 1191355741 0 # Node ID 579f03038f61c4dea341c800ad98215e15b44f00 # Parent 121918494c463e24f23a83409ee40d3cbfe1927a [xemacs-hg @ 2007-10-02 20:08:57 by aidan] Document that START and END are zero-based for insert-file-contents. diff -r 121918494c46 -r 579f03038f61 lisp/ChangeLog --- 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 + + * 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 * unicode.el (unicode-error-default-translation-table): diff -r 121918494c46 -r 579f03038f61 lisp/code-files.el --- 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)