From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#52676: 28.0.50; [PATCH] Rationalize window-text-pixel-size Date: Tue, 21 Dec 2021 20:19:48 +0800 Message-ID: <87czlqw3ob.fsf@yahoo.com> References: <87wnk0xaz4.fsf@dick> <87h7b43qjb.fsf@yahoo.com> <87o85byhqg.fsf@dick> <83pmpr19ri.fsf@gnu.org> <87v8ziyc0n.fsf@yahoo.com> <8335mm1voq.fsf@gnu.org> <87mtkuy6d9.fsf@yahoo.com> <83zgouyx5h.fsf@gnu.org> Reply-To: Po Lu Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="11610"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.60 (gnu/linux) Cc: dick.r.chiang@gmail.com, 52676@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Dec 21 13:21:13 2021 Return-path: Envelope-to: geb-bug-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 1mze8m-0002kX-Ae for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Dec 2021 13:21:12 +0100 Original-Received: from localhost ([::1]:54356 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mze8l-0000ir-7T for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 21 Dec 2021 07:21:11 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:60132) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mze8d-0000gO-RO for bug-gnu-emacs@gnu.org; Tue, 21 Dec 2021 07:21:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:41084) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mze8c-0007cB-C2 for bug-gnu-emacs@gnu.org; Tue, 21 Dec 2021 07:21:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mze8c-0008Et-19 for bug-gnu-emacs@gnu.org; Tue, 21 Dec 2021 07:21:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Dec 2021 12:21:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 52676 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 52676-submit@debbugs.gnu.org id=B52676.164008921631599 (code B ref 52676); Tue, 21 Dec 2021 12:21:01 +0000 Original-Received: (at 52676) by debbugs.gnu.org; 21 Dec 2021 12:20:16 +0000 Original-Received: from localhost ([127.0.0.1]:52630 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mze7s-0008Db-Bi for submit@debbugs.gnu.org; Tue, 21 Dec 2021 07:20:16 -0500 Original-Received: from sonic301-31.consmr.mail.ne1.yahoo.com ([66.163.184.200]:42693) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mze7p-0008DC-MV for 52676@debbugs.gnu.org; Tue, 21 Dec 2021 07:20:14 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1640089208; bh=0fk6B4jxOS/wGthRC1YVyLHK0tJ15Vc+v3GqH5aK7lw=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=rieL5baAZyrG8mtcK6CCTkmgHzdYra2PePT51EruGiWpQJIjgcTCjtYX2FHmEhCnUxI3/cRopCI6O6Abh/FJXw4Dscz1PO5UB7X2NeVLJeP/oeLqsB/nFwo5SDAdByQ7sX/nrM5rOTdoyzwiZ6kKI0sKCcEJ2FO9e2Q6TmhzPakiqzwd2wip0u1BAJd6w51iEjFesHGkH+JTa/Lar/UX/J0EEsTExZlO6VUzERYhDubYVnrqY+eO6sVD49vb1XSWX0lYmlVKJ/0PXc9sxXYOCvYpgxRZyaB4ejJgzotnGjkFhEZ1CrAP1q6MBtusELmhn3lsy9YP98toPEJvTGpGUw== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1640089208; bh=opEunYRuB0zWOy1CktuiE5wa/vs7bGlo2MW9b+IQxd9=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=Hs3JiT8H11FcOtBeyznhqI8lHskM9Hc/ZqiHVYqYjpn5eJBHPHXVXwwGeS9Fz6jvjcEFLRLTtEP4EBlmReZJ+25S1AziBvNIQHhzum2F1NCpN2+UPrf5+ZwXIwU5ZjQfjn/oLCkTjN3rUHuyT/oBThS/RS4676nBu41163zC9tX2Ji8UyurQZAq98DZHHAqJpr/rFs707dMNMEmqg0JrcuZckjzbJVQx6HtEdHof2w0McakQXHehBSCFnZwhyEMskPWjE+7O7ECJNfUPyX7d5s8wJUe0b22o4p/9R9/kKotEM1oZeB2/dABIc+7h8hZhe1s3YBeZ13sGn/bCdpnvZQ== X-YMail-OSG: 6JoUWGUVM1mHL0bm8Oi2lGSvwUkkb_Jf89lLZhP9gM5LbxXl3Qq4mdIVEXlu4uO 4tlRTttlM26HP2RLyrT5qQUhmvrLRrs9CQ6RjegqLkOK60ThTaL.rOu6E6dxJe_dB8UG2bkQ3nMm SdntNw0t.dQ7tmin_cO6XWSqmbuSfu3M0rC_wZbDlcpc9bWted_NQGdIi8jfOMY2hMaUU_Njddpk 7bASrizl0eh2rMu5mDTLLz9SskZauzJSL8Ec9QOoCGQQgRtJcq0hbrZp6vvKF.6yep8Ts9yuYS49 .7e7S1mznk0XnehUX.ZAhEVkGERfDECMgpe9q.yoEhM4NSiMPRT6tYxdGwXX4LaE3iGePpa3oral RCpOb5S7G0E2vwosscWlyqRCaGlVRmLMk4BAk23MI5xu4JJvFeaDlLd2wbFJpTGRRMcvT1ryteag AVY1YlBc20QugMl0K.XGkE98vsWJ9AfQiFREodvyZ31zlqw5gutNxY8TSte_oLJm.0cxac9GTIC8 5mKk9hYHFpaADjJ6bJRsEUnlLK.CulK.mj.b0TYkU_CVY12MRnMdcmfgg2aZwEchBpbZ9nAGvzd8 1Zhj6DtYqqXg8lcPevbSMEpFiZCDmCyYGS6ND3cWcPqrz6bzH8KQ86qCoNra2._qJQx2DJk9UtTa zQvdgKStv2ukYmy1IwMA7zDWe2q6.ZfwHxNIlezeFYqS3zqlw8u_2p3nKSab7r7_vFYeXdwqzaO3 hF0LzfBhrSlQVdVH5OXh4W4uD8ixOVyUzWk2bJAAzdf2waLyyQE7Kknt9AIw8dCTwP.BpU6GaO3A NKE2IZ5O4eWRJTAy6BBwW0oGe5Hk7.7KxjCzkcFNoE X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic301.consmr.mail.ne1.yahoo.com with HTTP; Tue, 21 Dec 2021 12:20:08 +0000 Original-Received: by kubenode510.mail-prod1.omega.sg3.yahoo.com (VZM Hermes SMTP Server) with ESMTPA ID 25eb779dfa5a227883ff67fe20872934; Tue, 21 Dec 2021 12:20:05 +0000 (UTC) In-Reply-To: <83zgouyx5h.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 21 Dec 2021 14:12:26 +0200") X-Mailer: WebService/1.1.19498 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:222874 Archived-At: Eli Zaretskii writes: > Well, if you or someone else could produce a "emacs -Q" recipe, I'd be > interested to take a look. There's no need for you to take a look, because the code in `window-text-pixel-size' behaves correctly. dickmao is saying that his code is the equivalent to calling `window-text-pixel-size' with `ignore-line-at-end' set to t, which is not true in the presence of a line-prefix or an overlay with a before-string, which are both use cases that pixel-scroll-precision has to handle. Thanks.