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: Re: move_it_vertically_backward question Date: Thu, 16 Dec 2021 08:41:46 +0800 Message-ID: <87zgp1mldh.fsf@yahoo.com> References: <87lf0pw78r.fsf.ref@yahoo.com> <87lf0pw78r.fsf@yahoo.com> <837dc8mue3.fsf@gnu.org> <874k7cuhv4.fsf@yahoo.com> <83lf0nl56t.fsf@gnu.org> <875yrrtiwj.fsf@yahoo.com> <837dc7l2pa.fsf@gnu.org> <87ilvqty24.fsf@yahoo.com> <8335muj8zk.fsf@gnu.org> <87h7bang3d.fsf@yahoo.com> <83mtl1j527.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10693"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Dec 16 01:44:21 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 1mxese-0002c7-NM for ged-emacs-devel@m.gmane-mx.org; Thu, 16 Dec 2021 01:44:20 +0100 Original-Received: from localhost ([::1]:33334 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxesc-00029c-Rf for ged-emacs-devel@m.gmane-mx.org; Wed, 15 Dec 2021 19:44:18 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:37478) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxeqR-0001RT-Ao for emacs-devel@gnu.org; Wed, 15 Dec 2021 19:42:04 -0500 Original-Received: from sonic311-25.consmr.mail.ne1.yahoo.com ([66.163.188.206]:36688) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxeqO-0002Ba-9l for emacs-devel@gnu.org; Wed, 15 Dec 2021 19:42:02 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639615318; bh=RbcGLOL3vIUMbtl3sr74hwspHopvBUojxC4MFKyCvzk=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=OBWZPBqVLE111BrGKvMrfksVo/HQYUpoRk3TQ6CjWNZ2xM11AmnHh7RdN9HCf9EQWO1Sn8iHqvMCNf33Vqf3fXZguDi0eoVneN2enUkTEvLD+c/j7Za4Q2iywlUovxg9NWpgVQj+N/vmcZeNy+U+9u2dqrrlWbUSAA3Ex/LL27Ug/3Eh0Ztvitj/VRSeQMtYXzTNOptIutqd8GPRswNgtbbTr+b2t50D6oIQRV5nmmlrK1J7L7RZ8Dx5qXHtZxN4lq5H6DJPasuZORaQzJZm2lldr4Ue/ea1frkLIgbCTQvUts7lJbieVKx4km6tkw1v1iiQ0+nZkkLuCI6KJuxsoA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639615318; bh=D0zdc0nEpYoRivGQd8KDJCprn1DRTeLeoI65PEPVWqY=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=SF9Pio7aEQsvnYaKxt7ChROVbaK01iPyWzKtVktsd/xFOEQVJrfTx6D7+N0/eazxDGZsNqwb2PT7bLSis1CTpQsfVqMUA+nGxi2sy9UiTABq81sPbUq1sHEK3J95zD7rGycwIEvbKZoYfIRwVx9Pqt5rEOYJU2LbPgASvb35q1lcGU4AjEqrE8vtvqDumWR+AAmVhijQzwxtjlwlBN0AeZjB8qWfXFSozk+WSi6Hsf0fufSQuwe0eNS26aAI86aLVHTTCI8ZePkHuXmydyrMMfBa0nrrYomarC3yBGpq7euhi/r4jCUDGaQsLKypQpll1HoAww5OCTgxPL+yBAALBw== X-YMail-OSG: ZdREC4oVM1lO03F3OsqoXWY41yA2EcrgfajS6Txq0Fu_iMNGCLKOUE6m8c1LI2K q6_4OJOoBMifW0Gk802AGc9eIbAqD1EIT1VjqFIEs7Xu9ElhcAJoLv0kV2_eLEHv88heZvY8yfTA PNn9IJ8m8.2CNx5cDflG1.6INaSXqhzjDE9AUUiePLvpWEm.PMLMtKJfmsPIsq0aeilMqCNngdLp xVXGLYQao9lx8Qirnh1i5iP6_Gl4VM1uX17skqzr_fwczoYuheEPfQOv.VRQPAcCp_a4TE6iSS6T h_mHEDwHjptJxZFjZNSCxfJ6QkypgHid2fxIlwql.dzLroKWlBHYmPWrA.qKDqKlamJzk89kTivk gk.vd9buWLaSVfqXkcH.ql3tfLmr9adXf6kAE3H8V_NJcoI3rKA5QMnRN0cQZ.PK3kHh9ouMMTqe BNKGr5ktaK6O7gTzfaGGWRjU4zEYxKI5vYGU5Fw_41p3aD.5naWzakiLOZar7uGXWhZK9K_JHdpy KgAc4lhtIAIJO_1wXfdLeQ1CP8SrvoEVY2UXwjnKPQTefWdkaZ.wp9uNa1uXAPO9auB87qfCNhny 7Vw_KQPbV1RU_u_aH1dDk6px2D21oDiIjkz0IiX0BqYBxePyBaBaO2R7NrU17BFn5soowuPAy_mc 4nHHP5l9ScTs3Go_T1eW.EfuxmwDAWCOVG9HnFK2wb9OPrYBWxScPGSoGM.oFljvLCD6OUbL_z0d LNBhv36Z4aFrRsWhX9lYzG1At0a.006GH7cWD91G3zBnGUAUFm5CHUv5MbySDt6XD6BE3BKL6QmJ hUvV6eBbSZd5jvukUgGVeTC4JyxmMknTp3CpQZ2oSx X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic311.consmr.mail.ne1.yahoo.com with HTTP; Thu, 16 Dec 2021 00:41:58 +0000 Original-Received: by kubenode518.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 04e337ecbdb0e5f67ae5faf2fe4d444f; Thu, 16 Dec 2021 00:41:50 +0000 (UTC) In-Reply-To: <83mtl1j527.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 15 Dec 2021 16:50:08 +0200") X-Mailer: WebService/1.1.19415 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.188.206; envelope-from=luangruo@yahoo.com; helo=sonic311-25.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=unavailable 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:282081 Archived-At: Eli Zaretskii writes: > We have code in the display engine that does this in several places. > For example, look at what we do when we recenter the window in > redisplay_window. We could factor that code out of there, put it in a > separate function, and teach window-text-pixel-size to find the FROM > position using that new function. Then the value of the TO argument > for window-text-pixel-size is of course well known, and you could run > the rest of the function to provide you with the pixel dimensions of > the text in-between. > > Would that fit the bill? I think it would, with the addition of a way to specify "the end of the visual line preceeding window start" as the TO argument. That is because window start could be inside a screen line, causing its height to be taken into account when `window-text-pixel-size' calculates height. Thanks.