diff options
| author | Eli Zaretskii | 2009-11-28 10:46:14 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2009-11-28 10:46:14 +0000 |
| commit | b640eb527cc88dec67100514c58799e014fafbe4 (patch) | |
| tree | 872a4fdeb2ba6d36293552d6a9ec4f7f24609f1d /doc | |
| parent | 4bf47195376dd81f596e7e08ad6d00db17906246 (diff) | |
| download | emacs-b640eb527cc88dec67100514c58799e014fafbe4.tar.gz emacs-b640eb527cc88dec67100514c58799e014fafbe4.zip | |
(Special Properties): More accurate description of what the `cursor'
property does.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/text.texi | 19 |
2 files changed, 18 insertions, 6 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 9bbb7c72308..79a552e0626 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2009-11-28 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * text.texi (Special Properties): More accurate description of | ||
| 4 | what the `cursor' property does. | ||
| 5 | |||
| 1 | 2009-11-26 Kevin Ryde <user42@zip.com.au> | 6 | 2009-11-26 Kevin Ryde <user42@zip.com.au> |
| 2 | 7 | ||
| 3 | * commands.texi (Misc Events): vindex mouse-wheel-up-event and | 8 | * commands.texi (Misc Events): vindex mouse-wheel-up-event and |
diff --git a/doc/lispref/text.texi b/doc/lispref/text.texi index cb9636d199e..91b65017754 100644 --- a/doc/lispref/text.texi +++ b/doc/lispref/text.texi | |||
| @@ -3166,13 +3166,20 @@ Consecutive characters with the same @code{field} property constitute a | |||
| 3166 | @item cursor | 3166 | @item cursor |
| 3167 | @kindex cursor @r{(text property)} | 3167 | @kindex cursor @r{(text property)} |
| 3168 | Normally, the cursor is displayed at the end of any overlay and text | 3168 | Normally, the cursor is displayed at the end of any overlay and text |
| 3169 | property strings present at the current window position. You can | 3169 | property strings present at the current buffer position. You can |
| 3170 | place the cursor on any desired character of these strings by giving | 3170 | place the cursor on any desired character of these strings by giving |
| 3171 | that character a non-@code{nil} @code{cursor} text property. If the | 3171 | that character a non-@code{nil} @code{cursor} text property. In |
| 3172 | value of the @code{cursor} property is an integer number, it specifies | 3172 | addition, if the value of the @code{cursor} property of an overlay |
| 3173 | the number of buffer's character positions associated with the overlay | 3173 | string is an integer number, it specifies the number of buffer's |
| 3174 | or text property string; this helps Emacs display the cursor correctly | 3174 | character positions associated with the overlay string; this way, |
| 3175 | when point moves across these character positions. | 3175 | Emacs will display the cursor on the character with that property |
| 3176 | regardless of whether the current buffer position is actually covered | ||
| 3177 | by the overlay. Specifically, if the value of the @code{cursor} | ||
| 3178 | property of a character is the number @var{n}, the cursor will be | ||
| 3179 | displayed on this character for any buffer position in the range | ||
| 3180 | @code{[@var{ovpos}..@var{ovpos}+@var{n}]}, where @var{ovpos} is the | ||
| 3181 | starting buffer position covered by the overlay (@pxref{Managing | ||
| 3182 | Overlays}). | ||
| 3176 | 3183 | ||
| 3177 | @item pointer | 3184 | @item pointer |
| 3178 | @kindex pointer @r{(text property)} | 3185 | @kindex pointer @r{(text property)} |