all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Po Lu <luangruo@yahoo.com>
To: emacs-devel@gnu.org
Subject: try_scrolling question
Date: Sat, 04 Dec 2021 15:38:49 +0800	[thread overview]
Message-ID: <87h7bovmye.fsf@yahoo.com> (raw)
In-Reply-To: 87h7bovmye.fsf.ref@yahoo.com

What does the "value" in the comment on top of `try_scrolling' refer to?

   Try scrolling PT into view in window WINDOW.  JUST_THIS_ONE_P means
   only WINDOW is redisplayed in redisplay_internal.  TEMP_SCROLL_STEP
   has the same meaning as emacs_scroll_step, and is used in
   redisplay_window to bring a partially visible line into view in the
   case that only the cursor has moved.

   LAST_LINE_MISFIT should be true if we're scrolling because the last
   screen line's vertical height extends past the end of the screen.

   Value is
   ^^^^^

   1	if scrolling succeeded

   0	if scrolling didn't find point.

   -1 if new fonts have been loaded so that we must interrupt redisplay,
   adjust glyph matrices, and try again.

Does it mean the return value of try_scrolling?  If so, I don't
understand how 0 (SCROLLING_SUCCESS) is returned if it can't find point,
and how -1 can be returned at all.

Am I missing something here?

Thanks.



       reply	other threads:[~2021-12-04  7:38 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87h7bovmye.fsf.ref@yahoo.com>
2021-12-04  7:38 ` Po Lu [this message]
2021-12-04  8:23   ` try_scrolling question 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=87h7bovmye.fsf@yahoo.com \
    --to=luangruo@yahoo.com \
    --cc=emacs-devel@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.