From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Masatake YAMATO Newsgroups: gmane.emacs.devel Subject: mouse-face on two adjoin characters Date: Fri, 12 Nov 2010 22:56:18 +0900 (JST) Organization: Red Hat Japan, Inc. Message-ID: <20101112.225618.234589090107703027.yamato@redhat.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1289570196 3320 80.91.229.12 (12 Nov 2010 13:56:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 12 Nov 2010 13:56:36 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Nov 12 14:56:31 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PGu7D-0006CW-4Y for ged-emacs-devel@m.gmane.org; Fri, 12 Nov 2010 14:56:31 +0100 Original-Received: from localhost ([127.0.0.1]:37048 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGu7C-0000Ln-Gv for ged-emacs-devel@m.gmane.org; Fri, 12 Nov 2010 08:56:30 -0500 Original-Received: from [140.186.70.92] (port=58113 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGu74-0000Je-NV for emacs-devel@gnu.org; Fri, 12 Nov 2010 08:56:23 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGu73-00038x-NJ for emacs-devel@gnu.org; Fri, 12 Nov 2010 08:56:22 -0500 Original-Received: from mx1.redhat.com ([209.132.183.28]:39267) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGu73-00038q-GT for emacs-devel@gnu.org; Fri, 12 Nov 2010 08:56:21 -0500 Original-Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oACDuKOS026580 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 12 Nov 2010 08:56:20 -0500 Original-Received: from localhost (beach.nrt.redhat.com [10.64.200.71]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id oACDuI5E011616 for ; Fri, 12 Nov 2010 08:56:19 -0500 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:132566 Archived-At: Hi, I'd like to insert adjoin characters responding to mouse cursor separately. How can I do it? (I'm surprised that I cannot answer this question by myself.) I tried following code. ;; *scratch* (progn (insert (propertize "X" 'mouse-face 'highlight)) (insert (propertize "Y" 'mouse-face 'highlight))) But as explained in elisp info, XY responds to the mouse cursor together: the both XY are highlighted when I move mouse cursor to X. I expected only X was highlighted. Masatake YAMATO