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#60585: 30.0.50; global-text-scale-adjust shrinks window (was not before), was: Re: bug#52493: 29.0.50; Setting Inconsolata up in init.el makes default face rendered wrong Date: Sun, 12 Feb 2023 09:45:03 +0800 Message-ID: <87a61j1wtc.fsf@yahoo.com> References: <80e7f515-e16f-5ce8-86a3-e5f47cd2d2f5@yandex.ru> <936558fd-5c6e-f575-7211-3d6a14f8febd@yandex.ru> <46994f90-a8ab-7797-73f6-51af01759fb1@gmx.at> <661a804a-ad05-81f8-1aa0-b83811a0576c@yandex.ru> <9c02c0b0-9b96-7d46-37ae-a258a9496891@gmx.at> <3ba27f8c-779a-6f29-45a1-2b7e5a4dcb14@gmx.at> <0144e9a3-57ab-6549-d382-744b141066ec@yandex.ru> <90b5e151-39d1-0248-7be5-8084d8883e5f@gmx.at> <309dcf34-b553-58c2-34a5-270028b05347@yandex.ru> <8913f7e5-5509-3a8e-7413-991b404c3e4e@gmx.at> <4826afb4-e4a7-3845-4cc4-c696123b5e8d@yandex.ru> <875yc92dau.fsf@yahoo.com> <246c3cb4-c50b-608d-7315-add148ba5548@yandex.ru> <87ilg81oyb.fsf@yahoo.com> <006c8e10-72ce-ef51-e005-c604fd7ebd8f@yandex.ru> 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="34870"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: martin rudalics , Eli Zaretskii , rpluim@gmail.com, 60585@debbugs.gnu.org To: Dmitry Gutov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 12 02:48:18 2023 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 1pR1TW-0008ts-Ep for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 12 Feb 2023 02:48:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pR1TJ-0007tc-2u; Sat, 11 Feb 2023 20:48:05 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pR1TH-0007tS-00 for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2023 20:48:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pR1TG-0007zq-NR for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2023 20:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pR1TG-0002n2-DV for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2023 20:48: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: Sun, 12 Feb 2023 01:48:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 60585 X-GNU-PR-Package: emacs Original-Received: via spool by 60585-submit@debbugs.gnu.org id=B60585.167616645810566 (code B ref 60585); Sun, 12 Feb 2023 01:48:02 +0000 Original-Received: (at 60585) by debbugs.gnu.org; 12 Feb 2023 01:47:38 +0000 Original-Received: from localhost ([127.0.0.1]:43621 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pR1Sr-0002kI-KN for submit@debbugs.gnu.org; Sat, 11 Feb 2023 20:47:38 -0500 Original-Received: from sonic314-48.consmr.mail.ne1.yahoo.com ([66.163.189.174]:35967) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pR1Sn-0002jX-W8 for 60585@debbugs.gnu.org; Sat, 11 Feb 2023 20:47:36 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676166447; bh=XU6DdMIgyPiI4OVpQpyJZ5cgdUpS0LoiP/rXG3YM524=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=O4W4RW4dvIuc19ndBCJhKMl2u8hfk1PQPWNYpWpKAaxmx4X6WARPqaac++8QkCkzWVSEQ5xtqSoaRPzgxfpc2w4zW1uUiG97EwyMxCQ97K8tM1Yy+jHfj86F4QRQdsoINdFaAXPQJ8ClE3/cY8KCN0cKFiJoCSkHBAzy2g6vjw5n7p2rwBckAi3yhxWLA04yZRrK7tGbPklHwNgT7wQ7UCFqYTgqss64/xzdN1JDpPTcA9KFO21QWAQEn5MQsaXPitnTTt7f6gdMANzqvfvDe8gsv2NTQ2bhrX+VWWXR+H/0Wjy4hEJv7XoI7bQW9noeYt1KgCIxGw4Yov9TyTh/qA== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1676166447; bh=CqKwcC9MidYWjnZJ86yhEd2iAMDdalZkrCfjoi2tEr4=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=I6bA10SitzDR3YFV62DzNTosgTkTyHuy0uoRBlfv5Fm10bgJ3ZCM5ChZT0ntNIYgxD53CgkK/AK3/eiIrX7i92oURoK8IqkzsF11QGoPY7oO/saShutUHDotnjbq/0GkIbJDSww2gB7xoE+A4T/6Tx9tN+XG83QEgql6lYYRXeISVQvv5LL6KnCEIEFwO/V6OA/05kHG6Wpxs885Cl19Jig05xTtYTu1lGHeVYdug9TInIP7oYdzE1sh/UimEBz3yXFyLuhqGUL7QqqcQySxkNjmhYdhvLsRJmJJ2hyAXBS8r02jE54hR5klyiBUEqZlGzddnuZQdrIm7DzwZ8Ca1g== X-YMail-OSG: 1qlBFmcVM1lfFxjBHSjKRj5vupZmlzXt7MSo2Bs09jGZH5LOk_HZn0.mawtxd42 y13TBBDJs2UQItHa79pzDQBRLpTVLJy5p_poG2ssHnKoe1Uek.x73sD9YcHVodYoeeUhZGp77wje e01bimA4B1ud8i25uzDNJDwufcoLmpHf3rbwB7KVCZBRBFhiS8o0r03hBq36Vp5E9K4xMtqsKDrp ZpF8p0yr8iQcjQEZc_tk4zDbmgrwpZvRqDNyW_0wwdIok6Jvmd3U82DZ50ibCMky0oK584b0lk3r iUc8WXfV4zkHgELO8fz8vIVHOZkm_1fcMqI_jaIysD7PKHR7m0Qe9vh.yTg08xWXuXa5eGS.WGcl _RBd6atvmYWc8A3g08BH6FWXEITuTQp5n4p98_BxX2XF09AS4fpUZxcpJ1b3c41H64hm.uSpdDxM inMvFciFX5CAnI.Yqwfks3GFQM0fZSyADnaSLw3VD..hv1TFbu2I_JycO2LpH8eGZVtrxgASMyos P9xc9lz5D0rTEHfmfABeRJOzhzhkMWHt5G31EaQ1AP_aBiyNhqskABIcBQrXX6g.ZoQI5mPwoiP0 04z6YNCI_lcnED2r61lUCax8EnvON2R06zdEFWbe40OLK6sa3CUNeqax2_ObCp58pM.LosOeEdv9 mj_End5jTgzMLfQhQm8GtNkLw_DW47_FzEtZEjG.Gctgobj0ugEsrwr0N0Iozt2j4Tg8ayCQKGnL WYDnQV6b1W8Eqphpw7b92lBxfsZCvrvLgeEJx7VXB0H6jzB4AjoZkWPwdJfMkGrAdGd8YacWVPqm MxxO8qcm73yeILQN30fwTQGnY1lv2G.Z_jP1jp69J. X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic314.consmr.mail.ne1.yahoo.com with HTTP; Sun, 12 Feb 2023 01:47:27 +0000 Original-Received: by hermes--production-sg3-9fc5746c8-b8cx5 (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID 24bae62cae740ea4f79f1fc8d601354f; Sun, 12 Feb 2023 01:45:25 +0000 (UTC) In-Reply-To: <006c8e10-72ce-ef51-e005-c604fd7ebd8f@yandex.ru> (Dmitry Gutov's message of "Sun, 12 Feb 2023 00:08:52 +0200") X-Mailer: WebService/1.1.21183 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-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:255357 Archived-At: Dmitry Gutov writes: > On 11/02/2023 12:22, Po Lu via Bug reports for GNU Emacs, the Swiss > army knife of text editors wrote: >> Dmitry Gutov writes: >> >>> On 11/02/2023 03:36, Po Lu via Bug reports for GNU Emacs, the Swiss >>> army knife of text editors wrote: >>>> Whenever you see an inconsistency between what Emacs thinks its WM hints >>>> are, and what you think the window manager sees, try to actually read >>>> the window manager hints property with `xprop'. >>>> It should print several lines describing the window manager hints. >>>> WM_NORMAL_HINTS(WM_SIZE_HINTS): >>>> program specified minimum size: 34 by 55 >>>> program specified resize increment: 8 by 17 <------ >>>> program specified base size: 34 by 55 >>>> window gravity: NorthWest >>>> Check there to see if the increment is really 17x37. >>>> Xt sometimes refuses to set hints, which can be very confusing. >>> >>> Thanks! >>> >>> Lucid's hints with InconsolataLGC: >>> >>> WM_NORMAL_HINTS(WM_SIZE_HINTS): >>> user specified size: 1714 by 1723 >>> program specified minimum size: 51 by 140 >>> program specified resize increment: 17 by 37 >>> program specified base size: 51 by 140 >>> window gravity: NorthWest >> I guess the Lucid build is working correctly. >> >>> GTK's hints with InconsolataLGC: >>> >>> WM_NORMAL_HINTS(WM_SIZE_HINTS): >>> program specified minimum size: 64 by 324 >>> program specified resize increment: 16 by 36 >>> program specified base size: 64 by 168 >>> window gravity: NorthWest >>> >>> GTK's hints with "Inconsolata LGC" are the same, though: >>> >>> WM_NORMAL_HINTS(WM_SIZE_HINTS): >>> program specified minimum size: 64 by 324 >>> program specified resize increment: 16 by 36 >>> program specified base size: 64 by 168 >>> window gravity: NorthWest >> Thanks. >> Would you please instrument emacsgtkfixed.c like such: >> diff --git a/src/emacsgtkfixed.c b/src/emacsgtkfixed.c >> index 2b6ebee65fd..24aaf134dd2 100644 >> --- a/src/emacsgtkfixed.c >> +++ b/src/emacsgtkfixed.c >> @@ -178,6 +178,9 @@ XSetWMSizeHints (Display *d, >> data[5] = w; >> data[6] = h; */ >> + fprintf (stderr, "XSetWMSizeHints: %d, %d\n", >> hints->width_inc, >> + hints->height_inc); >> + >> /* Make sure min_width and min_height are multiples of width_inc >> and height_inc. */ >> and tell me what is printed when Emacs begins to shrink? > > Apply it on top of the already patched Emacs, correct? The one I've > been running most of the tests lately. > > During startup, it prints: > > XSetWMSizeHints: 2, 2 > XSetWMSizeHints: 18, 36 > XSetWMSizeHints: 18, 36 > XSetWMSizeHints: 18, 36 > > After I evaluate (set-face-attribute ...), it adds: > > XSetWMSizeHints: 20, 44 > XSetWMSizeHints: 16, 36 > XSetWMSizeHints: 16, 36 > > After that, whenever the same evaluation results in frame shrinking > (after I resized it with a mouse), it also prints > > XSetWMSizeHints: 16, 36 > > That's it. Right... thanks. I'm interested in why XSetWMSizeHints might be called with 20, 44. Would you please put a breakpoint there and make it conditional on those values of hints->width_inc and hints->height_inc?