From: Emanuel Berg via Users list for the GNU Emacs text editor <help-gnu-emacs@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: Correct way to implement `pixel-point-and-height-at-unseen-line'?
Date: Mon, 13 Dec 2021 03:20:36 +0100 [thread overview]
Message-ID: <87fsqx4557.fsf@zoho.eu> (raw)
In-Reply-To: 87pmq1wag9.fsf@yahoo.com
Po Lu wrote:
> I don't know how to make
> `pixel-point-and-height-at-unseen-line' work correctly: if
> I use `line-pixel-height', it will only report the height
> the first individual line inside a display string if there
> is one above window start, but if I use
> `window-text-pixel-size', I have to determine the region to
> measure, which is quite troublesome.
>
> For example, window start is often not the beginning of
> a visual line
`window-start', `beginning-of-visual-line' ...
You can post the code instead ... that way you don't have to
remove the dashes.
> This works okay until there is a `line-prefix' property at
> window start: in this case, window start is the beginning of
> a visual line, but it does not display at the beginning of
> the line, which means `window-text-pixel-size' will add the
> height of the current line to that of the previous line.
> I will add a workaround to pixel-scroll.el, but there must
> be a cleaner way to implement this.
Sounds pretty clean to me but difficult to say since you are
not posting the actual code.
--
underground experts united
https://dataswamp.org/~incal
next prev parent reply other threads:[~2021-12-13 2:20 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <87pmq1wag9.fsf.ref@yahoo.com>
2021-12-13 1:38 ` Correct way to implement `pixel-point-and-height-at-unseen-line'? Po Lu
2021-12-13 2:20 ` Emanuel Berg via Users list for the GNU Emacs text editor [this message]
2021-12-13 2:49 ` Po Lu
2021-12-13 3:04 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-12-13 3:18 ` Po Lu
2021-12-13 23:41 ` Emanuel Berg via Users list for the GNU Emacs text editor
2021-12-14 0:41 ` Po Lu
2021-12-13 14:32 ` Eli Zaretskii
2021-12-14 0:41 ` Po Lu
2021-12-14 13:30 ` Eli Zaretskii
2021-12-14 13:48 ` Po Lu
2021-12-14 14:26 ` Eli Zaretskii
2021-12-15 0:40 ` Po Lu
2021-12-15 13:11 ` 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=87fsqx4557.fsf@zoho.eu \
--to=help-gnu-emacs@gnu.org \
--cc=moasenwood@zoho.eu \
/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.