From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: supporting mouse-entered, mouse-left Date: Fri, 31 Jul 2009 15:16:01 -0400 Message-ID: References: <9c768dc60907310013o7226f1d5w4cde4c54b03eb474@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1249067783 16998 80.91.229.12 (31 Jul 2009 19:16:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 31 Jul 2009 19:16:23 +0000 (UTC) Cc: emacs-devel@gnu.org To: Steve Yegge Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 31 21:16:16 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 1MWxaQ-0002PG-SZ for ged-emacs-devel@m.gmane.org; Fri, 31 Jul 2009 21:16:15 +0200 Original-Received: from localhost ([127.0.0.1]:59470 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWxaQ-0001JP-0f for ged-emacs-devel@m.gmane.org; Fri, 31 Jul 2009 15:16:14 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MWxaL-0001JK-9F for emacs-devel@gnu.org; Fri, 31 Jul 2009 15:16:09 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MWxaF-0001J8-3x for emacs-devel@gnu.org; Fri, 31 Jul 2009 15:16:08 -0400 Original-Received: from [199.232.76.173] (port=52895 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MWxaF-0001J5-0e for emacs-devel@gnu.org; Fri, 31 Jul 2009 15:16:03 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.182]:13223) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MWxaE-0006MU-OP for emacs-devel@gnu.org; Fri, 31 Jul 2009 15:16:02 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsEFAAvgckpFpZgv/2dsb2JhbACBUtJZhBgFgi+Ecw X-IronPort-AV: E=Sophos;i="4.43,303,1246852800"; d="scan'208";a="42640000" Original-Received: from 69-165-152-47.dsl.teksavvy.com (HELO pastel.home) ([69.165.152.47]) by ironport2-out.teksavvy.com with ESMTP; 31 Jul 2009 15:16:02 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id EEFFB800B; Fri, 31 Jul 2009 15:16:01 -0400 (EDT) In-Reply-To: <9c768dc60907310013o7226f1d5w4cde4c54b03eb474@mail.gmail.com> (Steve Yegge's message of "Fri, 31 Jul 2009 00:13:57 -0700") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux) X-detected-operating-system: by monty-python.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:113479 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. You can probably do it via track-mouse, but it's likely not going to satisfy your needs quite like you want to. > Would it be reasonable to add mouse-entered and mouse-left > properties analogous to point-entered and point-left? That sounds reasonable, yes. > 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. For text, I'm not sure it's worth the trouble. For images, I believe we do have something that goes in this direction (tho not for mouse movement). Another way might be to check for a `mouse-movement' binding on the keymap under the mouse cursor. Stefan