From: Richard M. Stallman Date: Mon, 13 Jan 2003 08:01:09 +0000 (+0000) Subject: (Changing Properties): Say string indices are origin-0. X-Git-Tag: ttn-vms-21-2-B4~11709 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9a36dd517de3c83b32043c7a897c81ae5a45e58e;p=emacs.git (Changing Properties): Say string indices are origin-0. --- diff --git a/lispref/text.texi b/lispref/text.texi index 5bfc0a2f46d..2544e4d2ce9 100644 --- a/lispref/text.texi +++ b/lispref/text.texi @@ -2361,9 +2361,11 @@ range; more often, it is useful to add, change, or delete just certain properties specified by name. Since text properties are considered part of the contents of the -buffer (or string), and can affect how a buffer looks on the screen, any -change in buffer text properties marks the buffer as modified. Buffer -text property changes are undoable also (@pxref{Undo}). +buffer (or string), and can affect how a buffer looks on the screen, +any change in buffer text properties marks the buffer as modified. +Buffer text property changes are undoable also (@pxref{Undo}). +Positions in a string start from 0, whereas positions in a buffer +start from 1. @defun put-text-property start end prop value &optional object This function sets the @var{prop} property to @var{value} for the text