From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jambunathan K Newsgroups: gmane.emacs.help Subject: Re: About the `cursor' property Date: Fri, 08 Mar 2013 18:35:36 +0530 Message-ID: <87ppzaghy7.fsf@gmail.com> References: <20130308204547.0d13defab21fa0d91e4a1075@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1362748628 14622 80.91.229.3 (8 Mar 2013 13:17:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Mar 2013 13:17:08 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Xue Fuqiao Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 08 14:17:31 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1UDxAu-0001hG-My for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Mar 2013 14:17:28 +0100 Original-Received: from localhost ([::1]:35919 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDxAY-0007DS-Iz for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Mar 2013 08:17:06 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:46621) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDxAN-0007DC-7D for help-gnu-emacs@gnu.org; Fri, 08 Mar 2013 08:16:56 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDxAL-0004k5-QS for help-gnu-emacs@gnu.org; Fri, 08 Mar 2013 08:16:55 -0500 Original-Received: from mail-pb0-f50.google.com ([209.85.160.50]:41484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDwzS-0001fX-0F for help-gnu-emacs@gnu.org; Fri, 08 Mar 2013 08:05:38 -0500 Original-Received: by mail-pb0-f50.google.com with SMTP id up1so1180831pbc.37 for ; Fri, 08 Mar 2013 05:05:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:in-reply-to:references:user-agent :date:message-id:mime-version:content-type; bh=keuk8aTzq0IfGhhLD4SctQtLiJABxJ2uB1tXdRy5dJU=; b=oRsm+Xgp5X7ScuEDWJCqGKY63+GD0DQTRG6nc85Ny518rpaQPtiNmuUtBcMvxPR6cT k/12Ax/wL6cuoMO94VrEd1FSekBYsWYZhEgvUmg3JITNFYGkPzXQZO1uyGRpv8nw1wum 1q+VVKdz1T5QZRVIukBO58x2QzfWTYeuHNf+Sbg4pCWvaZTzqt+zEmyaLyDCEClg2Ab4 KInSVrBoEBuKOxIDj7SjbgMpNpV3sZGlXwBHTB5IvrQoPa6O3nHTSH+gc8XEx1UOosbh UMfkcPZcf4/C/auMvHlundvQcZVrqUEY1kXitdLGLwRVgv0xa7773aOlb6pGq5FX/kKJ nKvA== X-Received: by 10.68.224.1 with SMTP id qy1mr3109141pbc.169.1362747937324; Fri, 08 Mar 2013 05:05:37 -0800 (PST) Original-Received: from debian-6.05 ([101.63.213.39]) by mx.google.com with ESMTPS id u19sm6232529paj.12.2013.03.08.05.05.34 (version=TLSv1.1 cipher=RC4-SHA bits=128/128); Fri, 08 Mar 2013 05:05:36 -0800 (PST) In-Reply-To: <20130308204547.0d13defab21fa0d91e4a1075@gmail.com> (Xue Fuqiao's message of "Fri, 8 Mar 2013 20:45:47 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.160.50 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:89414 Archived-At: Xue Fuqiao 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) --