From: Jambunathan K <kjambunathan@gmail.com>
To: Xue Fuqiao <xfq.free@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: About the `cursor' property
Date: Fri, 08 Mar 2013 18:35:36 +0530 [thread overview]
Message-ID: <87ppzaghy7.fsf@gmail.com> (raw)
In-Reply-To: <20130308204547.0d13defab21fa0d91e4a1075@gmail.com> (Xue Fuqiao's message of "Fri, 8 Mar 2013 20:45:47 +0800")
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)
--
next prev parent reply other threads:[~2013-03-08 13:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-08 12:45 About the `cursor' property Xue Fuqiao
2013-03-08 13:05 ` Jambunathan K [this message]
2013-03-08 14:15 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ppzaghy7.fsf@gmail.com \
--to=kjambunathan@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=xfq.free@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).