help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

word at mouse pointer


From: Erik Iverson
Subject: word at mouse pointer
Date: Fri, 30 Jan 2009 23:34:11 -0600
User-agent: Thunderbird 2.0.0.19 (X11/20090105)

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 via email to

[Prev in Thread] Current Thread [Next in Thread]