From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Chiyuan Zhang" Newsgroups: gmane.emacs.help Subject: Re: How to get the xoffset/yoffset of current point? Date: Fri, 7 Mar 2008 00:10:35 +0800 Message-ID: References: <47D00B47.6020300@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1204831612 32480 80.91.229.12 (6 Mar 2008 19:26:52 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 6 Mar 2008 19:26:52 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "Lennart Borgman (gmail)" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Mar 06 20:27:19 2008 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 1JXLk2-00037Q-KI for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Mar 2008 20:26:58 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXLjV-0000Y6-2H for geh-help-gnu-emacs@m.gmane.org; Thu, 06 Mar 2008 14:26:25 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JXIg5-00070y-Uj for help-gnu-emacs@gnu.org; Thu, 06 Mar 2008 11:10:41 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JXIg3-0006wL-8f for help-gnu-emacs@gnu.org; Thu, 06 Mar 2008 11:10:41 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JXIg3-0006w9-3i for help-gnu-emacs@gnu.org; Thu, 06 Mar 2008 11:10:39 -0500 Original-Received: from gv-out-0910.google.com ([216.239.58.190]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JXIg2-0001cG-PZ for help-gnu-emacs@gnu.org; Thu, 06 Mar 2008 11:10:38 -0500 Original-Received: by gv-out-0910.google.com with SMTP id y18so1973159gvf.17 for ; Thu, 06 Mar 2008 08:10:37 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=G3hxOkuEIwQmgge9t60E9ZQuOlFtLMvrFCxRvWPoe6Q=; b=pgfP8j11jfggI25gJre60wROWAf5IniTI57mp3TnLrk0jcovPZawKKAypzQ7zpt54lAmki0Sd9MRDjxGqRSnPdCeKQjZ7KAXP+WrKlalTCt0nKeCjFSe34cNUMOjXFp3+HPwK7t7HdctLaeFBXUnQthMnJ6NfN64OYR4m+/jZW8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=BUglGm4j0AutfgPu5f9GSfANmqJCs0/bG11d8FDVOxNWS9n7esGPlK9bpl4TC4evcv9/YPWLL7vLgghgKEjD34lGei1mUMrVqlIcEn9MGd4ojOuBS9e4tzmBzl48rhmpYq5p/MvaMMMXnBbRNzsFr9pM+nxqA5a1VQSmJhpfUNE= Original-Received: by 10.142.242.8 with SMTP id p8mr1325624wfh.196.1204819835768; Thu, 06 Mar 2008 08:10:35 -0800 (PST) Original-Received: by 10.142.125.3 with HTTP; Thu, 6 Mar 2008 08:10:35 -0800 (PST) In-Reply-To: <47D00B47.6020300@gmail.com> Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Google Wireless Transcoder (1) X-Mailman-Approved-At: Thu, 06 Mar 2008 14:26:04 -0500 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:52108 Archived-At: Yes! That's what I'm looking for! Thanks! 2008/3/6, Lennart Borgman (gmail) : > pluskid wrote: > > I want to popup a menu at the current point -- the text cursor not the > > mouse cursor. But I can't find how to calculate the x/y offset of the > > current point. Any hint? Thanks! > > There is a function point-to-coord in ourcomments-util.el that comes > with nXhtml. >