From: Erik Iverson <iverson@biostat.wisc.edu>
To: help-gnu-emacs@gnu.org
Subject: word at mouse pointer
Date: Fri, 30 Jan 2009 23:34:11 -0600 [thread overview]
Message-ID: <4983E2D3.6060909@biostat.wisc.edu> (raw)
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
reply other threads:[~2009-01-31 5:34 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4983E2D3.6060909@biostat.wisc.edu \
--to=iverson@biostat.wisc.edu \
--cc=help-gnu-emacs@gnu.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.
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).