From: Eli Zaretskii Date: Thu, 30 Mar 2023 13:34:41 +0000 (+0300) Subject: ; Clarify documentation of 'cursor' text property X-Git-Tag: emacs-29.0.90~58 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4508a024e81834cfb01c6f7984182e1a6cbb91ea;p=emacs.git ; Clarify documentation of 'cursor' text property * doc/lispref/text.texi (Special Properties): Clarify that 'cursor' property is only considered when the overlay hides buffer text on display. (Bug#62540) --- diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index 0a48beab8b8..4c13185b0dd 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi @@ -3765,18 +3765,19 @@ Consecutive characters with the same @code{field} property constitute a @item cursor @kindex cursor @r{(text property)} Normally, the cursor is displayed at the beginning or the end of any -overlay and text property strings present at the current buffer -position. You can instead tell Emacs to place the cursor on any -desired character of these strings by giving that character a -non-@code{nil} @code{cursor} text property. In addition, if the value -of the @code{cursor} property is an integer, it specifies the number -of buffer's character positions, starting with the position where the -overlay or the @code{display} property begins, for which the cursor -should be displayed on that character. Specifically, if the value of -the @code{cursor} property of a character is the number @var{n}, the -cursor will be displayed on this character for any buffer position in -the range @code{[@var{ovpos}..@var{ovpos}+@var{n})}, where @var{ovpos} -is the overlay's starting position given by @code{overlay-start} +overlay and text property strings that ``hide'' (i.e., are displayed +instead of) the current buffer position. You can instead tell Emacs +to place the cursor on any desired character of these strings by +giving that character a non-@code{nil} @code{cursor} text property. +In addition, if the value of the @code{cursor} property is an integer, +it specifies the number of buffer's character positions, starting with +the position where the overlay or the @code{display} property begins, +for which the cursor should be displayed on that character. +Specifically, if the value of the @code{cursor} property of a +character is the number @var{n}, the cursor will be displayed on this +character for any buffer position in the range +@code{[@var{ovpos}..@var{ovpos}+@var{n})}, where @var{ovpos} is the +overlay's starting position given by @code{overlay-start} (@pxref{Managing Overlays}), or the position where the @code{display} text property begins in the buffer.