comparison lisp/code-files.el @ 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 4cc3828e29bb
children c5a2b80bc4fa
comparison
equal deleted inserted replaced
4204:121918494c46 4205:579f03038f61
355 If second argument VISIT is non-nil, the buffer's visited filename 355 If second argument VISIT is non-nil, the buffer's visited filename
356 and last save file modtime are set, and it is marked unmodified. 356 and last save file modtime are set, and it is marked unmodified.
357 If visiting and the file does not exist, visiting is completed 357 If visiting and the file does not exist, visiting is completed
358 before the error is signaled. 358 before the error is signaled.
359 359
360 The optional third and fourth arguments START and END 360 The optional third and fourth arguments START and END specify what portion
361 specify what portion of the file to insert. 361 of the file to insert, and start at zero, in direct and needless contrast to
362 buffer offsets. That is, values of 0 and 10 for START and END respectively
363 will give the first ten octets of a file.
364
362 If VISIT is non-nil, START and END must be nil. 365 If VISIT is non-nil, START and END must be nil.
363 If optional fifth argument REPLACE is non-nil, 366 If optional fifth argument REPLACE is non-nil,
364 it means replace the current buffer contents (in the accessible portion) 367 it means replace the current buffer contents (in the accessible portion)
365 with the file contents. This is better than simply deleting and inserting 368 with the file contents. This is better than simply deleting and inserting
366 the whole thing because (1) it preserves some marker positions 369 the whole thing because (1) it preserves some marker positions