From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov 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 00:08:52 +0200 Message-ID: <006c8e10-72ce-ef51-e005-c604fd7ebd8f@yandex.ru> References: <80e7f515-e16f-5ce8-86a3-e5f47cd2d2f5@yandex.ru> <67b92c69-f456-0d31-c7b2-83600cc12f61@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> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3456"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Cc: martin rudalics , Eli Zaretskii , rpluim@gmail.com, 60585@debbugs.gnu.org To: Po Lu Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Feb 11 23:10: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 1pQy4Y-0000kl-8s for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 11 Feb 2023 23:10:18 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pQy4P-0005ZC-5q; Sat, 11 Feb 2023 17:10:09 -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 1pQy4I-0005YW-Lr for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2023 17:10:02 -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 1pQy4I-0000Qd-9i for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2023 17:10:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pQy4I-0005Z5-5I for bug-gnu-emacs@gnu.org; Sat, 11 Feb 2023 17:10:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 11 Feb 2023 22:10: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.167615334521303 (code B ref 60585); Sat, 11 Feb 2023 22:10:02 +0000 Original-Received: (at 60585) by debbugs.gnu.org; 11 Feb 2023 22:09:05 +0000 Original-Received: from localhost ([127.0.0.1]:43476 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQy3N-0005XX-77 for submit@debbugs.gnu.org; Sat, 11 Feb 2023 17:09:05 -0500 Original-Received: from mail-wr1-f45.google.com ([209.85.221.45]:39525) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pQy3J-0005X0-7V for 60585@debbugs.gnu.org; Sat, 11 Feb 2023 17:09:03 -0500 Original-Received: by mail-wr1-f45.google.com with SMTP id a2so8731316wrd.6 for <60585@debbugs.gnu.org>; Sat, 11 Feb 2023 14:09:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=nwmAP0m1cgz8dq5G6cbqrVxKSi/OmihTwl0P1T7gFUk=; b=A/2Kdc5cnaxXCVcBysJ7UvL75KWz5Tj9lS25KM+fGB3ul9cb/7/zmROq3eTDo3LxEC fBWRuBmYnica7a/KoGBAA7inf4qM25vwOm8ypNg5IVbUMZMWLDqpMHiE+zwzsg8xGXaB 4RfmbcJ8kFALgEoNvKtrFfpSWJ+gle9DRRZflyXCzdvj4Zbb5yUNp8xrEcjGfUbxj2yY ZljoHG7P8KcDd554Gq+aj6WsSPO9mjIll6GtsbaOGmQpgzlgsTL7YQcVdrQVpxz6FRXe Nj6k0a+Ux19qsFeIyCKh56zx/eyqAwwCzomnLdOiO3Gbl/v/mWonmlpTDD6WAh57DtKs WNaQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=nwmAP0m1cgz8dq5G6cbqrVxKSi/OmihTwl0P1T7gFUk=; b=ECTl4/5KKQTa6pG21Z4HHYvHjoVanlSFtzPhr7NXI6L3IGLJ+WhjhjPadQ8DMqpvQi DQPrRj1/pO0wCCkdc7mjqVGZ0TADuJ5qyUzc5jfiC1+Seeg9NBWkdYjzld+owE8S6xqY 5IOWbeB1fhokKMbb4sAOYmEaR8TAummt3R9c0BvyFew4h0enmb5p/XLJXDnf7/pKJa/V WLlsCw77xVc7XSdf3sCDYnJxj9hpHreJeu2NgdldlznUXmukGPtvrUua+JuiiqnmeAjz cFA5lSzDIVxlhX3XYWI3suBDTeBmNEfQ5AAW/WKNeCetQ5ayKUgNTm9c1DSkYcl2iWpl 1kGg== X-Gm-Message-State: AO0yUKW8GlzMOZFo8cPF0oD4KaUUZ0ID+oPGPClsF/aVCtTC5ukz4/rD uHq9kW1/O/s7FxsxHVA29N4= X-Google-Smtp-Source: AK7set/OLS/9uNzkJQRjFIwcBSOEtkT777Srq1jFY0q4K316nrUi5SMFlRiG2r4V6l9bzr2/Roy7fA== X-Received: by 2002:adf:f607:0:b0:2c5:4c20:da89 with SMTP id t7-20020adff607000000b002c54c20da89mr5359088wrp.47.1676153334927; Sat, 11 Feb 2023 14:08:54 -0800 (PST) Original-Received: from [192.168.0.2] ([46.251.119.176]) by smtp.googlemail.com with ESMTPSA id n15-20020a5d4c4f000000b002c54538c9bdsm5410636wrt.10.2023.02.11.14.08.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 11 Feb 2023 14:08:54 -0800 (PST) Content-Language: en-US In-Reply-To: <87ilg81oyb.fsf@yahoo.com> 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:255349 Archived-At: 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. But if I repeat the same experiment using the value of :family "Inconsolata LGC" (with a space), it prints exactly the same values. Except, since no s-f-a evaluations with that :family cause frame shrinking, it doesn't print any additional XSetWMSizeHints logs.