From: Steve Yegge <stevey@google.com>
To: Drew Adams <drew.adams@oracle.com>
Cc: "Stephen J. Turnbull" <stephen@xemacs.org>, emacs-devel@gnu.org
Subject: Re: supporting mouse-entered, mouse-left
Date: Fri, 31 Jul 2009 13:57:58 -0700 [thread overview]
Message-ID: <9c768dc60907311357t63c725c1sa8d90c74514532f4@mail.gmail.com> (raw)
In-Reply-To: <8F83745376C049F683731B07431703F7@us.oracle.com>
[-- Attachment #1: Type: text/plain, Size: 1694 bytes --]
On Fri, Jul 31, 2009 at 1:23 PM, Drew Adams <drew.adams@oracle.com> wrote:
> FWIW, you can use command `hlt-highlight-regexp-region' with a prefix arg
> to put
> `mouse-face' on all regexp matches (in the region or buffer). It can use
> either
> overlays or text properties. The command is here:
> http://www.emacswiki.org/emacs/highlight.el.
>
> What's still missing for the requested feature is the ability to show _all_
> `mouse-face' text whenever you mouse-over any such text.
>
Thanks, but I'm not looking for a one-off command to run, and
regular expressions are not sufficient for my needs here.
This is intended to be a feature of js2-mode, which I checked in
to the repository a few days ago. It is a major mode for editing
JavaScript code. It generates a full parse tree for the buffer, so
it knows exactly where all local variables and function parameters
are declared and referenced.
The mode decorates the source with various text properties to
facilitate navigation, outlining, folding, etc. My goal is to link
together all the references to each local variable, so they light
up when you mouse over any of them.
I can't use track-mouse, or at least I don't think I can, since this
feature needs to trigger automatically as you move the mouse
(from the idle loop).
If there were a way to be notified that the mouse has started
moving, then I could use track-mouse, albeit with a huge pile of
code. But it would likely be much less work to implement this in
C and offer a higher-level interface at the lisp level.
I'll take a look at implementing it when I get some time. I just
wanted to vet the idea with the list to make sure I wouldn't be
wasting my time.
-steve
[-- Attachment #2: Type: text/html, Size: 2188 bytes --]
next prev parent reply other threads:[~2009-07-31 20:57 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-31 7:13 supporting mouse-entered, mouse-left Steve Yegge
2009-07-31 15:38 ` Drew Adams
2009-07-31 15:48 ` Steve Yegge
2009-07-31 16:48 ` Stephen J. Turnbull
2009-07-31 16:42 ` Drew Adams
2009-07-31 20:23 ` Drew Adams
2009-07-31 20:57 ` Steve Yegge [this message]
2009-08-01 0:56 ` Drew Adams
2009-08-01 5:52 ` Steve Yegge
2009-08-01 7:26 ` Drew Adams
2009-08-01 4:07 ` Stephen J. Turnbull
2009-08-01 6:04 ` Steve Yegge
2009-08-01 7:18 ` Stephen J. Turnbull
2009-07-31 19:16 ` Stefan Monnier
2009-07-31 22:05 ` Johan Bockgård
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9c768dc60907311357t63c725c1sa8d90c74514532f4@mail.gmail.com \
--to=stevey@google.com \
--cc=drew.adams@oracle.com \
--cc=emacs-devel@gnu.org \
--cc=stephen@xemacs.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.