* word at mouse pointer
@ 2009-01-31 5:34 Erik Iverson
0 siblings, 0 replies; only message in thread
From: Erik Iverson @ 2009-01-31 5:34 UTC (permalink / raw)
To: help-gnu-emacs
Hello,
Is there an easy way to get the current word that the mouse is pointing to (this
doesn't have to be perfect)? I am making some progress, but want to make sure
I'm not missing something obvious.
I know about (mouse-position), and am currently am using it to find what window
the mouse is in using (window-at) and then setting the associated buffer
(set-buffer), moving lines and columns with (goto-line) and (move-to-column) and
then using (current-word).
My main problem is that (mouse-position) gives me lines/columns relative to the
frame, and I'm trying to find the best way to transform these relative to the
window.
Thanks all!
Erik
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2009-01-31 5:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-31 5:34 word at mouse pointer Erik Iverson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).