all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Rahguzar <rahguzar@zohomail.eu>
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: `window-absolute-pixel-position' with vscroll
Date: Fri, 23 Jun 2023 17:22:01 +0200	[thread overview]
Message-ID: <87ilbedwvr.fsf@zohomail.eu> (raw)
In-Reply-To: <83fs6i1a64.fsf@gnu.org>


Hi Eli,
Eli Zaretskii <eliz@gnu.org> writes:

> [Why private email?]

Sorry about that. I clicked the reply via email to button in the
archives page and forgot to add the cc. I have now added the list to cc.

>> From: Rahguzar <rahguzar@zohomail.eu>
>> Date: Fri, 23 Jun 2023 16:49:09 +0200
>>
>> > pos-visible-in-window-p returns X/Y coordinates relative to the
>> > top-left corner of the _window_.  So its origin is different, and
>> > perhaps that difference is what caused your confusion.
>>
>> This was the cause of my confusion. Though it seems to me that the
>> position is not relative to the upper left corner of the terminal.
>> Rather it is relative upper left corner of the Emacs frame excluding the
>> menu bar and tool bar. Starting with `emacs -Q` and doing
>>
>> `M:- (window-absolute-pixel-position (window-start))`
>>
>> always prints `(0 . 0)`.
>
> Not here, it doesn't.  What I get is result that depends on the
> position of the Emacs frame on display.
>
> Are you trying this in "emacs -nw" or in a GUI session?

I am using GUI session built with pgtk.

Thanks,
Rahguzar



       reply	other threads:[~2023-06-23 15:22 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87r0q2dxvz.fsf@zohomail.eu>
     [not found] ` <83fs6i1a64.fsf@gnu.org>
2023-06-23 15:22   ` Rahguzar [this message]
2023-06-23 15:47     ` `window-absolute-pixel-position' with vscroll Eli Zaretskii
2023-06-21 20:42 Rahguzar
2023-06-22 16:59 ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2023-06-20 19:23 Rahguzar
2023-06-21 12:50 ` Eli Zaretskii

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ilbedwvr.fsf@zohomail.eu \
    --to=rahguzar@zohomail.eu \
    --cc=eliz@gnu.org \
    --cc=help-gnu-emacs@gnu.org \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.