From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: try_scrolling question Date: Sat, 04 Dec 2021 15:38:49 +0800 Message-ID: <87h7bovmye.fsf@yahoo.com> References: <87h7bovmye.fsf.ref@yahoo.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="14155"; mail-complaints-to="usenet@ciao.gmane.io" To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 04 08:41:05 2021 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mtPfN-0003ag-PE for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Dec 2021 08:41:05 +0100 Original-Received: from localhost ([::1]:55632 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mtPfL-0000p9-UD for ged-emacs-devel@m.gmane-mx.org; Sat, 04 Dec 2021 02:41:03 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:51446) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mtPdM-0007a4-IF for emacs-devel@gnu.org; Sat, 04 Dec 2021 02:39:01 -0500 Original-Received: from sonic310-23.consmr.mail.ne1.yahoo.com ([66.163.186.204]:42939) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mtPdK-0004Wk-Aa for emacs-devel@gnu.org; Sat, 04 Dec 2021 02:39:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638603536; bh=3TVhE1Kek52C9Jhjm2fhEQDB2s8bIrcQz3bACBKrChs=; h=From:To:Subject:Date:References:From:Subject:Reply-To; b=DN/5Ep61fSs1hGnghHSDW5ZeEFBMyAwHiQRJaNOjThiN3Je0QjOfEMFD7yijSH3ihpA6KxyCNRIIFzPkj8leIByuGsca2TrxHBt/qJ5XhSJrEaWvk+oGBeEcAxpIad2TcsiG4HNFsO6XyhUGHVDKYxho63glsicnX1TPRvoDx12tKzShZeVxO+fxtBb+j7TtEv8vdkcEcBnYBW5eOWsaE0t5fytWcFC0DFs57Owti5WnGch9iAAjtLdxymh7Tpwa796EoEE/aw+5KpSl+/xUdVDZAczjNbQKHEpqH4EkAIN/1Odmsso9q5fpttRfCkgXljO578lS1OHrKT8DwhswRA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1638603536; bh=PQznW6Q8MLqwUGJztyx+5xxq5QwJlFpAL+NgoGcaM5I=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=MLIWud3gajNgtHmcQ82WA2hvf6phpJj5SyTNt1WOqI8RlRAUv/Pdf3L0/Vcw/OC5ewETm/l/ybKeb4pONac+sEEkbSqQtc5nABfINIWOCzrpoZkJJQifTtzt0Rf9tTSuMbRdJwphqJ9d3Tg8NbDCf334BsJhfNud6BXOqDOkIpxHWCTmr5Os4GdLmW8VnoYy40sawh2UO7dB39wZr7GgbJQYLdJYG7jsS968C4Ca8kvKkxHnxUb8Ode4KYLh+YyoBo7x6syIoRChwzv+82tMDK6V+c1U+jYfP3celnTSarc+8G8xpcA2exfEH1MS9mdJG+ib7EO02V9esW8gSCkqCw== X-YMail-OSG: ksPoCJMVM1nVA_q_oSmom5DRmZyCpqtbPXpSMqyNatzSwFjXSp3vFD7DU4ptgv8 9zwxlt5NunpYJPPEJNApB12tJJ9q1_ZoKW20O7awFX3uGdH5BJH_uOWxIfiIMehnz.Uqi_wuojBP b.l6q0vlhMjOVcEcmQIHTaA1Lz.GpLvf6TDuWtzcxbvFlahV4ITFqSBtPte0MK0VRrTxsA2wWA.v RHFdtnqYFZ0RlksXiExa8UVCaHpyvIAEK1s0JzjWzSJPWjDWAFbwU8MEiXPN03nVaIQSp9Hhd2jN BJZFg2RVHcT097YTt_xJteiZCt20413umFR0zadSvnKDlhNKHsuLCIUaOn3LxVlk6RXafpz6iAhW RqF4NaD69_o1VgCy0uh5.WacQOaN.1aRfKr.IwQdmMibs4MzeSY6Q6euWp2w_5wpAEfX4z89YtdN Cb1YDBFpVU9xDkEW7kjpEyzDhav_h_rXOXG0KXKKZ4UEtU_2zb0yW7KDskEBpTLbUM6fFJKrC2Em IxSvRmXbKzcEnp7UHZdEcVOzPsHerA4X8ugONSiyOANhXJ_I19DsjNYAwJQremTjJ74xoh_V7vSC zZ1nI6.dqpN_jfV54xgM9uqUZmApGutUAo.JUXWbVosoetN6lSynsMQw_6JWsdRUqLLHxYWHxyXV kUSh808asWBYmKgzY21pCpYX4Thk97nNRklKc7hfVJI7NmnWsxVFW2BkrWdCuRP32gx11HmbRSkm X7uqw5Rk70PakyQWEZD0f5xAwn7dG87AvAMGBSxh1UMlFEC24_TXb.I7.L1N.ecxSbL_cTpH5BgZ OPlkoZDEROU7UIIHcNlzq..g97fAh4se1O2fLJk.gN X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic310.consmr.mail.ne1.yahoo.com with HTTP; Sat, 4 Dec 2021 07:38:56 +0000 Original-Received: by kubenode512.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID bd6e9196fcc08d1032739bcc5a9b355c; Sat, 04 Dec 2021 07:38:54 +0000 (UTC) X-Mailer: WebService/1.1.19306 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.186.204; envelope-from=luangruo@yahoo.com; helo=sonic310-23.consmr.mail.ne1.yahoo.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:280894 Archived-At: 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.