[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: `window-absolute-pixel-position' with vscroll
From: |
Rahguzar |
Subject: |
Re: `window-absolute-pixel-position' with vscroll |
Date: |
Fri, 23 Jun 2023 17:22:01 +0200 |
User-agent: |
mu4e 1.10.3; emacs 29.0.91 |
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