help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: About the `cursor' property


From: Jambunathan K
Subject: Re: About the `cursor' property
Date: Fri, 08 Mar 2013 18:35:36 +0530
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Xue Fuqiao <xfq.free@gmail.com> writes:

> In (info "(elisp) Special Properties"), there is a `cursor' property.
>
> It says that:
>
>   `cursor'
>      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 place the cursor on any desired
>      character of these strings by giving that character a non-`nil'
>      `cursor' text property. [...]
>
> I had read through this node, but I still didn't know how to use this
> property.  I tried "(add-text-properties 1 5 '(cursor 2))" in
> *scratch*, but the cursor didn't move.  Can anybody help?  Thanks.

Copy-pasta from icomplete.el.

              (put-text-property 0 1 'cursor t text)

-- 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]