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#56561: 29.0.50; Infloop in try_window Date: Sat, 16 Jul 2022 11:11:52 +0800 Message-ID: <87o7xplpjb.fsf@yahoo.com> References: <874jzjwmhn.fsf@md5i.com> <83v8rzsdd1.fsf@gnu.org> <878rovxqjo.fsf@md5i.com> <83sfn2sy19.fsf@gnu.org> <83lesusl4w.fsf@gnu.org> <87lesumqgf.fsf@yahoo.com> <83ilnysbc5.fsf@gnu.org> <83fsj2s8fg.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="36192"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.91 (gnu/linux) Cc: mwd@md5i.com, 56561@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 16 05:13:18 2022 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 1oCYF4-0009ER-0h for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 16 Jul 2022 05:13:18 +0200 Original-Received: from localhost ([::1]:60690 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oCYF2-0001Q5-Mi for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 15 Jul 2022 23:13:16 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41850) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oCYEo-0001Ps-NL for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 23:13:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44847) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oCYEo-0000y2-Ea for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 23:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oCYEo-000531-8V for bug-gnu-emacs@gnu.org; Fri, 15 Jul 2022 23:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Po Lu Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 16 Jul 2022 03:13:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56561 X-GNU-PR-Package: emacs Original-Received: via spool by 56561-submit@debbugs.gnu.org id=B56561.165794113219338 (code B ref 56561); Sat, 16 Jul 2022 03:13:02 +0000 Original-Received: (at 56561) by debbugs.gnu.org; 16 Jul 2022 03:12:12 +0000 Original-Received: from localhost ([127.0.0.1]:42606 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCYE0-00051p-BT for submit@debbugs.gnu.org; Fri, 15 Jul 2022 23:12:12 -0400 Original-Received: from sonic316-21.consmr.mail.ne1.yahoo.com ([66.163.187.147]:38506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oCYDy-00051X-Cf for 56561@debbugs.gnu.org; Fri, 15 Jul 2022 23:12:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1657941124; bh=honoJA0I28V3/Wh+xUthIS1yHX4uCItlMEvgkTfp37Y=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From:Subject:Reply-To; b=CjL5J0ItTFEWPSErX+2fMyxbjZa355u5hR5EK+3IAnlleqZ2poLMwJHMVLqZF9fkJ4eTalSHj9xdJDwa5axez2o9Yvd+OSb1c33xp270dooe2ktWvR8JP8jLPEznsamqRLskimUsHuxKgxlondKOcVR7f0IGV2PErHT8yl8Xd/AzGttS/vXgcG5G8cE5/h/J19UJFOCPDrSQTYBvIcR1/0iwzHKnOF6avJmAQSN0w1jzQdskqM5fd2iBurZBH9BHpcDKXl4mKWKzGf3+TuKWf6l/cIioCtOPUW8aLoRMogFIgrnQFG8Ucx3VDLjtumpvf4Sh/tuX2UAhfw2oEhmOcg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1657941124; bh=Bt1oE9pg5g191HwteFIVyODZ/ulUgosT5I8VlWRrEeD=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=EYfLA62Ozggvzoaramb5RU234FhrpKz8AnaFk1GrL4Gq7hb6iIyDi4rY8pGU8l/oCuSv65exBEykFkyvqYnw4u2CyoubGyOsmfLJBAFkMfv2IUm0hT1BXWu40Ce5JFpkgVzewWglaqon15A6nsX8EKf6jAJFFmGa3YAu3E0Vplmw87zAciD5LLu94nhrNAwkaCR2raUIBEzLAM72kMHwxP4FZ0uMrQNVKx7Zp2exzx1X8gde2IFClt6z25tRAgUO4rSPYVLbx7u+7R+QiTPvJer5cdQpbLtxGvHOUfTMfad1EbDEN5ta+8/xxPi/kmLc1PM7CZTX3wRZ1dk3Z+9D7w== X-YMail-OSG: X44Y_D4VM1lsb_tkBfOYVFavAol2WSgHwfqFN2IzXaLwdmsF.GTgJh.zqzQj7kP _futQVPBOsOE1qoxalNZAcTUd8_Txe9vyo5jftX3o6lNbr1yarPZwpy7VccO8cqHfStBmcf_pRC8 4lxQWkYnh3c2_vF24RY.jnmkE_T4XdZ0O9jIj0JUa8q3gK4BM.HeEnGOBW5mwwCFnk9GHQyuHLbv 7I8IuaIDDjfVUNq_hHklGfoLtghHuSjRV0jxAgJuTiTSAfWO3sxY2wXzl2pjf3vr0XtHUdSZ9qVR OQxTOcpyUPATILS72VXjyMkGXrGtdkynOS7pw6Kmzd7LG0FZPRIuiYfOMrHDYXAPiyzqFsQ1J4NM mFb1a_aUDrCdt649CQrmIMW7Q_bfDhy_ddfClvq0SsgtbxalxSIeB5MpiGGu6.phrtQ8_tO0_sIp yptnO2E5XqfmDp3giFEkLkqGqdW6YFwCJc_MlGcDl.nMU6GoY5pw2uUCdYwpdoLdxShK1B0QYNuH boFc5EmOwOb9yMF2xwSfm68.rFEuAqPQk9ACLjg1_j.djt9Jcr7rcgIliic9bWnYSoDlGVZcS6VV t2lmDuBVZkNnmfL4h3NJm6T2wnVB4rX5WO.F77kYM4sBl0CXRZP4w68gT1LKlympITDENBi2ZlCk neFgBZVlIinic4tix8PV19OtAkolcqbNbzV_QgdeDCu2cAwNbIjwZy21oADBDJg3DnLwAc.EUyrs mbuG1SAPfuL29Z9oPybDp8yMZbXqp7DgdyJJ9wGL0_toIwAxbFAeQO5SeAn3cT5BiM11LTcH2mja 0QQztCEebRoAmqjwg91nv67iTc8c_ue_FWlsdNHA2l X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic316.consmr.mail.ne1.yahoo.com with HTTP; Sat, 16 Jul 2022 03:12:04 +0000 Original-Received: by hermes--canary-production-sg3-67975bbd4b-bp49d (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 373aae2f4a42588c9912e83758f71ee9; Sat, 16 Jul 2022 03:11:57 +0000 (UTC) In-Reply-To: <83fsj2s8fg.fsf@gnu.org> (Eli Zaretskii's message of "Fri, 15 Jul 2022 18:27:15 +0300") X-Mailer: WebService/1.1.20407 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:237136 Archived-At: Eli Zaretskii writes: > On second thought, I take this back. I don't see how we could have a > blank tooltip. We call try_window just so we could compute the size > of the text in it, which then allows us to know the size of the > tooltip. The situation where nrows_scale_factor is increased happens > when we get to the bottom of the window, which for a tooltip means we > already laid out all the text and are just producing empty glyph rows > beyond the end of the text. ncols_scale_factor could theoretically > happen before we reach the end of the text, but I'd like to see > something like that happening before I believe it; and even if it does > happen in the very first line, the tooltip will not be empty, just > truncated. No, we call try_window to generate the window contents, and then call update_single_window followed by flush_frame to immediately flush the contents to display. This is because redisplay actually cannot run by itself in some cases where we do want tooltips to be displayed. > We could add an assertion to verify that try_window gets to ZV in this > case before it returns, if we want to be able to detect those cases. This could still work. I think `TRY_WINDOW_IGNORE_FONTS_CHANGE' means the caller isn't ready for try_window to fail.