From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Erik Iverson Newsgroups: gmane.emacs.help Subject: word at mouse pointer Date: Fri, 30 Jan 2009 23:34:11 -0600 Message-ID: <4983E2D3.6060909@biostat.wisc.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1233380026 16527 80.91.229.12 (31 Jan 2009 05:33:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 31 Jan 2009 05:33:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 31 06:34:57 2009 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1LT8VL-0003QM-6c for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jan 2009 06:34:55 +0100 Original-Received: from localhost ([127.0.0.1]:51776 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LT8U2-0007no-TU for geh-help-gnu-emacs@m.gmane.org; Sat, 31 Jan 2009 00:33:34 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LT8Tk-0007nj-70 for help-gnu-emacs@gnu.org; Sat, 31 Jan 2009 00:33:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LT8Tj-0007nX-FE for help-gnu-emacs@gnu.org; Sat, 31 Jan 2009 00:33:15 -0500 Original-Received: from [199.232.76.173] (port=37901 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LT8Tj-0007nU-8k for help-gnu-emacs@gnu.org; Sat, 31 Jan 2009 00:33:15 -0500 Original-Received: from pegasus.biostat.wisc.edu ([144.92.73.35]:55956) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.60) (envelope-from ) id 1LT8Ti-0001if-UG for help-gnu-emacs@gnu.org; Sat, 31 Jan 2009 00:33:15 -0500 Original-Received: from [192.168.1.100] (c-24-118-170-198.hsd1.mn.comcast.net [24.118.170.198]) (authenticated bits=0) by pegasus.biostat.wisc.edu (8.13.6/8.13.6) with ESMTP id n0V5WvsR028841 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT) for ; Fri, 30 Jan 2009 23:33:01 -0600 (CST) User-Agent: Thunderbird 2.0.0.19 (X11/20090105) X-BCG-MailScanner-Information: BCG: sysreq@biostat.wisc.edu X-BCG-MailScanner: Found to be clean X-BCG-MailScanner-From: iverson@biostat.wisc.edu X-detected-operating-system: by monty-python.gnu.org: Solaris 10 (beta) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:61788 Archived-At: 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