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.help Subject: Re: Correct way to implement `pixel-point-and-height-at-unseen-line'? Date: Wed, 15 Dec 2021 08:40:37 +0800 Message-ID: <87wnk6snsq.fsf@yahoo.com> References: <87pmq1wag9.fsf.ref@yahoo.com> <87pmq1wag9.fsf@yahoo.com> <838rwomv73.fsf@gnu.org> <87czm0uifx.fsf@yahoo.com> <83bl1jl3ej.fsf@gnu.org> <871r2fthzg.fsf@yahoo.com> <835yrrl0ue.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="11991"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Dec 15 02:02:37 2021 Return-path: Envelope-to: geh-help-gnu-emacs@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 1mxIgk-0002rh-U4 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 15 Dec 2021 02:02:34 +0100 Original-Received: from localhost ([::1]:46318 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mxIgj-0007JK-CG for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 14 Dec 2021 20:02:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:57286) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mxILr-0006NU-Fy for help-gnu-emacs@gnu.org; Tue, 14 Dec 2021 19:41:01 -0500 Original-Received: from sonic301-30.consmr.mail.ne1.yahoo.com ([66.163.184.199]:42475) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mxILd-0000XW-UL for help-gnu-emacs@gnu.org; Tue, 14 Dec 2021 19:40:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639528844; bh=jjFt2rZ7ILfeir5oGtwMG6robIPBVHCwtmyxSb20rrs=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=YuOW3XusYdLRx3FWm6ksOxPfgTVS01CphzdG3sLOPIINZunBgFKuyzMyKm/jihThn2vMIvzopJnzZY1ujccsS6H28fgd6nHJvQtX2N+jG8y8TZOuyzKV/vgK2iD/JFnU1Rii7g9OnJ4tXkpo66egq/wc8e6UoQ9ISCORV2dH2KqDQnyIPX90KVfGw75HA8Y2VAplR0e7UMrDGgbPLi2Y3Oj56DpqOzo/s14RO+vdMv8D9mHZB8a2AXPeJdOUdij2SMgNCAprwbta3qcUUZK8W2eRh31KJ4VyiReuNoikQaX9C4jA+lF5dJ3rirpbwMyxQsVoVK55e91xXdGziqfudw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1639528844; bh=nLTivO+rhkj0Ltc6oEqGjxU9vXCI7z1DUYHNHFTre9T=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=axoB0MhJiryQjBFv0lvZgYXY9M/d6ETmzTng8ZYN3OGVVdAixJg4BQgfKL7G2K2lvZJer5u0GvgJBTazF4gu0Qyw45OMsK3tF0EPriZI9BLLxdM8cXPNabI1IqpkzUdn2rFlwAIBiMrn/ffe6tKMmP+xhqmeud6Pz0liOw7j5KmfkBs0twr75Kv9fCma/v6PqNvYZy+3fK07YGLgaofNiArvjrMvrCWjpvip8zpb5pf2hgOWGwk3NPm75vxMHOnbG16/3fxp56I+1xvdMbnr7udmZktMhjvODZhYZlc74LHKTDYNCUtnZhXUfgfpxT0jyRP1HJ17bvt0DuJBJS2wfQ== X-YMail-OSG: _ToGIzsVM1lckgkDWamn7XuPlOD34AyTQhsI6nY0gh1uO8dV01zYI9MeXqJtO8n nkW75Sh0uLPqwlH0E5P8ItPR10hzGFsvc5gU97MR4crqSShPUZNO5Ln4Ni39OLTITQASTeJy3eWw FTUfvdinSxkd7GNuDcHCG9qeT5Zew4EOr_9ToYosBcEJbC2FRHMVr7JWZn0LAbOJakQynUoElhSt vhYF_8LdA411I1H9r.JoTEhrXM8w44xD6_za4Kp9N9rElPArB5SOaXsWCS.6f7iFsWXnRkvCqLZ0 uPQ8nuC4eiI6h1iAMK0yQRNoSQXEWVsH44zi6dL8GbRIbXyQ094f5UxhIBSjAcN_hiNdyBmQNW2o _Rr8BHxu.gPikjtssZMGyUCNtXCsQP7i3I9MD17F1TJUWOcb59jrw9eyHJpYEDDzfeBbAFhZIb.S pxeYIkYpgD3YRzpM4wcOKfNqD1zJDENMF6HGs0jMGiyCZL8FmuDKSP_7NF02PGtYfy3gmo4QqoUF iySWPb7s64xOyr8UwQXg393iC5hiBwJ1C5gOE7Bap6_HmIL1Fa1_mWJZ1hb4KPm3C13Qz7a0xW7j 3.4Ed0NsdY1mcFdRiUDB9.8iXtzGvtdsHQVL7Vg8kBP25E1RCeY4Um71.TOObEb8chZX_iOd8tVv 4m4cvfyeegnH2Ksm8kRb84a33EJIjD0mLykVvAGOPvwlE91owDijVxB8ndI.4zBp3a9gexvmimm2 a.otWbZgmsc_1cMr7pfn5o06CVzKDHLgNpBi4lVGG_0Td9_BXeoEZU6oOW8fIbD8k6Rlr8YRYgT_ fXcv7dyfUDNILdznMgYslfpIQOhAs9wKuUaIW9VXqO X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Wed, 15 Dec 2021 00:40:44 +0000 Original-Received: by kubenode504.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 53425aef1ff8e98ac92c3abcc0f6f086; Wed, 15 Dec 2021 00:40:41 +0000 (UTC) In-Reply-To: <835yrrl0ue.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 14 Dec 2021 16:26:01 +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.184.199; envelope-from=luangruo@yahoo.com; helo=sonic301-30.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: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:134977 Archived-At: Eli Zaretskii writes: > But if you always need the line before window-start, i.e. use N = 1, > then why is that a problem? Ah, I think we're misunderstanding things: `pixel-point-and-height-at-unseen-line' is part of a much larger system that tries to find the line (and pixel distance) for N = foo, by iterating through lines where N = 1.