all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Po Lu <luangruo@yahoo.com>
Cc: emacs-devel@gnu.org
Subject: Re: try_cursor_movement not called?
Date: Wed, 01 Dec 2021 14:49:09 +0200	[thread overview]
Message-ID: <83o860sd6i.fsf@gnu.org> (raw)
In-Reply-To: <8735nc1ou9.fsf@yahoo.com> (message from Po Lu on Wed, 01 Dec 2021 20:39:26 +0800)

> From: Po Lu <luangruo@yahoo.com>
> Cc: emacs-devel@gnu.org
> Date: Wed, 01 Dec 2021 20:39:26 +0800
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> >> From: Po Lu <luangruo@yahoo.com>
> >> Cc: emacs-devel@gnu.org
> >> Date: Wed, 01 Dec 2021 20:07:01 +0800
> >> 
> >> Thanks.  One other question: is it valid to assume w->window_start_valid
> >> is true inside redisplay_internal?
> >
> > There's no such member.  Did you mean window_end_valid, perhaps?
> 
> Yes I did, sorry for the confusion.

No, you cannot make that assumption.  window_end_valid becomes true
only if the window was successfully redisplayed and redrawn on the
glass.  If redisplay was interrupted (e.g., by new input that needs to
be processed), or we retry displaying a window after some unsuccessful
attempt, that flag will be false.

You will see that various parts of the display code test whether the
flag is true before attempting some optimizations, which should be a
clear sign that the flag could be false.



  reply	other threads:[~2021-12-01 12:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87czmg1wh8.fsf.ref@yahoo.com>
2021-12-01  9:54 ` try_cursor_movement not called? Po Lu
2021-12-01 10:57   ` Eli Zaretskii
2021-12-01 12:07     ` Po Lu
2021-12-01 12:36       ` Eli Zaretskii
2021-12-01 12:39         ` Po Lu
2021-12-01 12:49           ` Eli Zaretskii [this message]
2021-12-02  6:31             ` Eli Zaretskii
2021-12-02  6:37               ` Po Lu
2021-12-02  8:19                 ` Eli Zaretskii
2021-12-02  9:51                   ` Po Lu
2021-12-02 10:17                     ` 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=83o860sd6i.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=luangruo@yahoo.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 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.