From: martin rudalics <rudalics@gmx.at>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 16691@debbugs.gnu.org, lekktu@gmail.com
Subject: bug#16691: 24.3.50; emacs_backtrace.txt
Date: Mon, 10 Feb 2014 09:14:33 +0100 [thread overview]
Message-ID: <52F88A69.3060104@gmx.at> (raw)
In-Reply-To: <83fvnsujgc.fsf@gnu.org>
>> - int x, y: Where and how are these set for a particular row (including
>> header- and mode-line) and when and how are these eventually consumed?
>> This is the greatest mystery for me so far.
>
> They are assigned in display_line and display_string. Examples from
> display_line:
>
> row->y = it->current_y;
Does the value set here account for extra_line_spacing or is the latter
(as I presume) handled separately?
> [...]
> if (it->current_x - it->pixel_width < it->first_visible_x)
> row->x = x - it->first_visible_x;
>
> Mode line and header line are generated from strings, so look in
> display_mode_line and display_string.
I tried that but never found anything useful there. I suppose the
header line has current_y always set to 0. But the mode line?
My confusion comes partly from window_text_bottom_y which returns a
position above the mode line, so apparently the mode line is handled
separately. But the header line is included in the height returned.
And window_box_height does not include the header line in the return
value.
I understand that most of these are handled by some kind of internal
magic but I can't locate that magic yet.
> Not sure what you mean by "consumed". Consumed by whom and for what
> purposes?
I suppose when exposing the window (another part of Emacs display which
I don't understand yet). What would current_y else be used for?
>> - int visible_height: "Partially visible rows may be found at the top
>> and bottom of a window." Is it true that we can draw partially
>> visible rows at the top of the window?
>
> I think this is only possible when a single row is too large to fit a
> window.
I see. So this is not about having the top of a line only partially
visible.
martin
next prev parent reply other threads:[~2014-02-10 8:14 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-08 17:30 bug#16691: 24.3.50; emacs_backtrace.txt Drew Adams
2014-02-08 19:22 ` Juanma Barranquero
2014-02-08 19:34 ` Eli Zaretskii
2014-02-08 20:06 ` martin rudalics
2014-02-08 20:31 ` Eli Zaretskii
2014-02-08 20:40 ` Glenn Morris
2014-02-08 20:55 ` Eli Zaretskii
2014-02-08 23:25 ` Glenn Morris
2014-02-09 11:04 ` martin rudalics
2014-02-09 16:30 ` Eli Zaretskii
2014-02-09 18:58 ` martin rudalics
2014-02-09 20:20 ` Eli Zaretskii
2014-02-10 8:14 ` martin rudalics [this message]
2014-02-10 17:42 ` Eli Zaretskii
2014-02-10 18:35 ` martin rudalics
2014-02-10 18:44 ` Eli Zaretskii
2015-12-26 13:26 ` Lars Ingebrigtsen
2015-12-26 13:38 ` 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
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=52F88A69.3060104@gmx.at \
--to=rudalics@gmx.at \
--cc=16691@debbugs.gnu.org \
--cc=eliz@gnu.org \
--cc=lekktu@gmail.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.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
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).