CVS update by aidan xemacs/lisp ...
xemacs-cvs at xemacs.org
xemacs-cvs at xemacs.org
Tue Oct 2 16:09:06 EDT 2007
User: aidan
Date: 07/10/02 22:09:06
Modified: xemacs/lisp ChangeLog code-files.el
Log:
Document that START and END are zero-based for insert-file-contents.
Revision Changes Path
1.846 +6 -0 XEmacs/xemacs/lisp/ChangeLog
Index: ChangeLog
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/ChangeLog,v
retrieving revision 1.845
retrieving revision 1.846
diff -u -p -r1.845 -r1.846
--- ChangeLog 2007/10/02 10:33:04 1.845
+++ ChangeLog 2007/10/02 20:08:57 1.846
@@ -1,3 +1,9 @@
+2007-10-02 Aidan Kehoe <kehoea at 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 at parhasard.net>
* unicode.el (unicode-error-default-translation-table):
1.22 +5 -2 XEmacs/xemacs/lisp/code-files.el
Index: code-files.el
===================================================================
RCS file: /pack/xemacscvs/XEmacs/xemacs/lisp/code-files.el,v
retrieving revision 1.21
retrieving revision 1.22
diff -u -p -r1.21 -r1.22
--- code-files.el 2007/05/12 13:12:28 1.21
+++ code-files.el 2007/10/02 20:09:01 1.22
@@ -357,8 +357,11 @@ and last save file modtime are set, and
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)
More information about the XEmacs-CVS
mailing list