From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.devel Subject: RE: supporting mouse-entered, mouse-left Date: Fri, 31 Jul 2009 08:38:15 -0700 Message-ID: <0C3F67DE39BD414B9E7D825BA8D1F3F4@us.oracle.com> References: <9c768dc60907310013o7226f1d5w4cde4c54b03eb474@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1249054720 9572 80.91.229.12 (31 Jul 2009 15:38:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jul 2009 15:38:40 +0000 (UTC) To: "'Steve Yegge'" , Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 31 17:38:33 2009 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.50) id 1MWuBj-0004iI-N2 for ged-emacs-devel@m.gmane.org; Fri, 31 Jul 2009 17:38:32 +0200 Original-Received: from localhost ([127.0.0.1]:52130 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWuBj-0003kA-6J for ged-emacs-devel@m.gmane.org; Fri, 31 Jul 2009 11:38:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWuBe-0003jq-Ms for emacs-devel@gnu.org; Fri, 31 Jul 2009 11:38:26 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWuBa-0003iV-3R for emacs-devel@gnu.org; Fri, 31 Jul 2009 11:38:26 -0400 Original-Received: from [199.232.76.173] (port=42026 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWuBZ-0003iO-UI for emacs-devel@gnu.org; Fri, 31 Jul 2009 11:38:21 -0400 Original-Received: from acsinet12.oracle.com ([141.146.126.234]:63935) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MWuBY-0000fM-MZ for emacs-devel@gnu.org; Fri, 31 Jul 2009 11:38:21 -0400 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by acsinet12.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n6VFbup6020499 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 31 Jul 2009 15:37:57 GMT Original-Received: from abhmt001.oracle.com (abhmt001.oracle.com [141.146.116.10]) by acsinet15.oracle.com (Switch-3.3.1/Switch-3.3.1) with ESMTP id n6VFcYM3015179; Fri, 31 Jul 2009 15:38:34 GMT Original-Received: from dradamslap1 (/141.144.168.5) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 31 Jul 2009 08:38:16 -0700 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <9c768dc60907310013o7226f1d5w4cde4c54b03eb474@mail.gmail.com> Thread-Index: AcoRtwjuvZNasH3mQLiYnk+GaqNcvwAPMnoQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: abhmt001.oracle.com [141.146.116.10] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A010205.4A730FE8.01EB:SCFSTAT5015188,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) 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:113455 Archived-At: I would like to highlight certain identifiers (such as all uses of a particular local variable in a function) simultaneously when the mouse enters any of them. I've scoured the documentation, and I don't see a way to accomplish this feat. Would it be reasonable to add mouse-entered and mouse-left properties analogous to point-entered and point-left? Alternately (or in addition), it might be nice to have text properties analogous to the mouseenter, mouseleave and possibly mouseover standard browser events, which would fire at the granularity of pixels rather than characters. Maybe I'm misunderstanding, but if you mean highlight the text whenever the mouse is over it, you can do that using text property `mouse-face'. (That has character granularity however.) To have the mouseover highlight appear for certain words etc., you would need to apply property `mouse-face' to those words. AFAIK, font-lock cannot be used for this, since it always uses the `face' text property. (But maybe I'm wrong about that.) It might be an interesting feature for font-lock to let you specify a different text property to use.