From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.help Subject: About the `cursor' property Date: Fri, 8 Mar 2013 20:45:47 +0800 Organization: The Church of Emacs Message-ID: <20130308204547.0d13defab21fa0d91e4a1075@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1362746784 29412 80.91.229.3 (8 Mar 2013 12:46:24 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 8 Mar 2013 12:46:24 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Mar 08 13:46:47 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 1UDwhD-0006pa-9R for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Mar 2013 13:46:47 +0100 Original-Received: from localhost ([::1]:50698 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDwgr-0001wF-Dt for geh-help-gnu-emacs@m.gmane.org; Fri, 08 Mar 2013 07:46:25 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:39777) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDwgb-0001uA-27 for help-gnu-emacs@gnu.org; Fri, 08 Mar 2013 07:46:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UDwgX-0003f6-1Y for help-gnu-emacs@gnu.org; Fri, 08 Mar 2013 07:46:08 -0500 Original-Received: from mail-pa0-f47.google.com ([209.85.220.47]:47676) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UDwgW-0003er-RA for help-gnu-emacs@gnu.org; Fri, 08 Mar 2013 07:46:04 -0500 Original-Received: by mail-pa0-f47.google.com with SMTP id bj3so1281656pad.34 for ; Fri, 08 Mar 2013 04:46:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:date:from:to:subject:message-id:organization:x-mailer :mime-version:content-type:content-transfer-encoding; bh=cd1IMkTijt7wrqfbEZddXwwOZgFwcR4pNSZIXawf/Zg=; b=buN+2XxysZ2uwxM4aB6kUehiJtPzYZpiTlvCwCK0ipDLy6zCmzxXlEKk/zqlCYPtQ1 1qD3uzyj1aSo6uQx5E1nyRA/KDyj8wQoh6+KfSguwn8f5rZHKHiByxQabixTZvshT35D rnaUu9rMGftcusSv1+Khm7XqfWB8tvwW04CuVJPFYJbCLJJemcSA0Ece1ydUFo5e1aFZ HnG9G0fGR8JXAbpwk9Y4M0T7RVDxcUSH7sAQL31W5evU4sW8URGAlczb8sFs+j6oTh3p ven/BklTD//B5mdanFxXZsrItyPtp8a2jD/mJIdH0ZvYi/UOFTQncQ76nsSyHwIHKB4G oTTw== X-Received: by 10.66.120.230 with SMTP id lf6mr3783072pab.183.1362746763818; Fri, 08 Mar 2013 04:46:03 -0800 (PST) Original-Received: from Emacs ([123.114.128.170]) by mx.google.com with ESMTPS id xf14sm6182965pac.10.2013.03.08.04.45.56 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 08 Mar 2013 04:46:03 -0800 (PST) X-Mailer: Sylpheed 3.2.0 (GTK+ 2.24.13; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.220.47 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:89413 Archived-At: 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. -- Best regards, Xue Fuqiao. http://www.emacswiki.org/emacs/XueFuqiao