unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: PT <mailshield.gg@mailnull.com>
Subject: Re: Cursor position in pixels
Date: Wed, 09 Mar 2005 19:19:40 +0100	[thread overview]
Message-ID: <opsndui2wep52o26@home-ca12fabbc0> (raw)
In-Reply-To: 874qfpkc8k.fsf-monnier+gnu.emacs.help@gnu.org

On Sat, 05 Mar 2005 16:35:53 -0500, Stefan Monnier  
<monnier@iro.umontreal.ca> 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 current
>> 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 of  
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/

  reply	other threads:[~2005-03-09 18:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-04 18:18 Cursor position in pixels PT
2005-03-05 11:01 ` Eli Zaretskii
     [not found] ` <mailman.2686.1110021568.32256.help-gnu-emacs@gnu.org>
2005-03-05 17:45   ` PT
2005-03-05 21:35 ` Stefan Monnier
2005-03-09 18:19   ` PT [this message]
2005-03-14 15:46 ` Eric Ludlam
2005-03-16 15:15   ` PT

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=opsndui2wep52o26@home-ca12fabbc0 \
    --to=mailshield.gg@mailnull.com \
    /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).