From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: PT Newsgroups: gmane.emacs.help Subject: Re: Cursor position in pixels Date: Wed, 09 Mar 2005 19:19:40 +0100 Organization: Aioe.org NNTP Server Message-ID: References: <874qfpkc8k.fsf-monnier+gnu.emacs.help@gnu.org> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; format=flowed; delsp=yes; charset=iso-8859-15 Content-Transfer-Encoding: Quoted-Printable X-Trace: sea.gmane.org 1110392673 5172 80.91.229.2 (9 Mar 2005 18:24:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 9 Mar 2005 18:24:33 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 09 19:24:32 2005 Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1D95mz-0000l2-2i for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Mar 2005 19:20:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D961h-0003sK-Jn for geh-help-gnu-emacs@m.gmane.org; Wed, 09 Mar 2005 13:35:21 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsmi-us.news.garr.it!newsmi-eu.news.garr.it!NewsITBone-GARR!irazu.switch.ch!switch.ch!newsfeed00.sul.t-online.de!t-online.de!tsicnews.teliasonera.com!aioe.org!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 36 Original-NNTP-Posting-Host: HQQ5xGFOFXTmR8LDggovsg.domitilla.aioe.org Original-X-Complaints-To: abuse@aioe.org Original-NNTP-Posting-Date: Wed, 9 Mar 2005 18:17:49 +0000 (UTC) User-Agent: Opera M2/7.54 (Win32, build 3865) Original-Xref: shelby.stanford.edu gnu.emacs.help:129150 Original-To: help-gnu-emacs@gnu.org 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 X-MailScanner-To: geh-help-gnu-emacs@m.gmane.org Xref: news.gmane.org gmane.emacs.help:24698 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:24698 On Sat, 05 Mar 2005 16:35:53 -0500, Stefan Monnier = wrote: >> In order to position the popup frame correctly I need to know the = >> position >> of the cursor in pixels relative to the top/left corner of the curren= t >> Emacs frame. I couldn't find anything like that in the documentation.= Is >> it possible? > > posn-at-point gives you that information, but it's only available in > Emacs-CVS. Currently, I use set/mouse-pixel-position for determining the position o= f = the cursor. It seems it also takes the fringe into account as a column. (set-mouse-position (selected-frame) 0 0) moves the mouse cursor to the = = first line in the fringe column. I don't really know if it's intentional or a bug. Does posn-at-point do = = the same? -- = Using Opera's revolutionary e-mail client: http://www.opera.com/m2/