From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: martin rudalics 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: Fri, 27 Jan 2023 10:35:43 +0100 Message-ID: <3ba27f8c-779a-6f29-45a1-2b7e5a4dcb14@gmx.at> References: <80e7f515-e16f-5ce8-86a3-e5f47cd2d2f5@yandex.ru> <5770c9ec-4de5-8365-fb70-5a88d14d8179@yandex.ru> <75e1b3d4-a79f-d36f-4898-fdf1ed05492c@gmx.at> <33214f9c-f89f-b96f-e1db-12aad7b03261@yandex.ru> <36f67e04-8450-5273-2136-fb9832ed703f@gmx.at> <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> 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="20306"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 60585@debbugs.gnu.org, rpluim@gmail.com To: Dmitry Gutov , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jan 27 10:37:16 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 1pLLAZ-000558-Qd for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 27 Jan 2023 10:37:15 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pLLAO-0006y2-Sy; Fri, 27 Jan 2023 04:37:04 -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 1pLLAN-0006xn-5F for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2023 04:37: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 1pLLAM-0001c8-U7 for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2023 04:37:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pLLAM-0000Gi-Hp for bug-gnu-emacs@gnu.org; Fri, 27 Jan 2023 04:37:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: martin rudalics Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 27 Jan 2023 09:37: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.1674812162933 (code B ref 60585); Fri, 27 Jan 2023 09:37:02 +0000 Original-Received: (at 60585) by debbugs.gnu.org; 27 Jan 2023 09:36:02 +0000 Original-Received: from localhost ([127.0.0.1]:36755 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLL9O-0000Et-0k for submit@debbugs.gnu.org; Fri, 27 Jan 2023 04:36:02 -0500 Original-Received: from mout.gmx.net ([212.227.17.22]:55377) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pLL9L-0000EX-Ii for 60585@debbugs.gnu.org; Fri, 27 Jan 2023 04:36:00 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.at; s=s31663417; t=1674812151; bh=QbaWfTE5G1RF4ZWxvli/0a9Hh+plZtifvn4VT6v91Jc=; h=X-UI-Sender-Class:Date:Subject:To:Cc:References:From:In-Reply-To; b=jB3Gr1BiioDt/sqVExqQvNTJXnM/udrGKMXt6q/aEEX03ar1ygITAVddfUkVBFV1h Z65Haw0CD6KYqcrX+DmjE+pJPpFu7P+M03emlIOhyaKPUuRCyA1qrWldjQ5c3exA6c VzqwCdRv9APIcNZl9p9aKR/GNoIu7ZkM98AQaQYBoSlsPgbSdaTN02T2KWmfpoWISw aknnDsleA1uF5ApMblEsMyUl2wFPGDDA0zp1fEsViDGOKhkiiTHbT+sUBX4AzzAxcH cTbdjETRAmyf/e+0Xa2jpWrT8HjmZ3c1ePJP3ZrJetE3CYf3pedZDX0PecBdvuiS6t ohfDSwo1WnQ9A== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from [192.168.1.100] ([212.95.5.233]) by mail.gmx.net (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MbRjt-1onvCx19Uf-00bvSL; Fri, 27 Jan 2023 10:35:51 +0100 Content-Language: en-US In-Reply-To: X-Provags-ID: V03:K1:AusdftLOzVHuadyontpzVpcD17JAhhbpAZRqGWcSLnks1pfD8nl sILRjzmGaNDCdmSX4Qb7SRi+apORmQtv1duAX1CDZD/3HYObjRF+mu5/484Hzw/8h9j3WoQ OgM+dQQVcEdFiOH3VqxtpsNLmgqh3SDxjvOcWBU0RiVRqubuRPG01qUfJ60jcXdpWNCn2Dz kk1XyA34aI3HrVTm+bXMQ== UI-OutboundReport: notjunk:1;M01:P0:c9vEnGJ+pb0=;2QVRcqTeMdqslmPmJCzEVlXz6Gk ZQlN/w49gR5sdZrDzDMzrp//zWut4ytJeQUeDAXCDYWR21e5Emu/nj6WSFF+VyF+zmoeze4/L P+CL0MrFtPfmLEddmDdqB6lXh4K63Ub6Jbo+h+ckcxKS4B+VfRPo5qG548bebzlk9sU1hFK4P Y9YIFWYwF5m7U4Cri9XvRVaGETOzxl7s6uMZ11HaI5ss98gB3jKurN9jhsPVA/tcSiQIomxtz TM6gQAFGL3GAIc1nnNV6w4CcfwyeHgGtw9TFW6kxSGMQmGZFP3BQdDwQqmO05Mz9ZFSl/SNlp Wzk6hZ1CYrTfVXd9bqfrk2wo6Zexof99BKGh14ym/EONMRHA8vf7KfFxrzTW1iJojMoqhDtuC TfYNnlln0qBmAz6s4DnzDmT8liQu9JxEs3+B+pAAMaS/RGYwQ7V/pPca/yZZRG+khpxtESDnp MKzVkeokDpe/RxY8sCpsBlG4CZ+s+Od+CeX5fsUuY5ogBDsUlKxEvPLrh1/GN+mrg+FHPYHFH jhiXim5iGQOIEsM1l5AC8lbEvCtRL6lNop8uK/4NM+HuLJBleUHRQgaVaHRCW/UbOhRRKpe33 xDzvEHYNYuVSsd/03Bu253yA6HJ4nYEUGsoZRuLyutGaI2vP4Vlx3m+AIgeFfRmq4V8y+JzQ7 YiCR3S1uexCjiMwdljcAejzFt/eY86qbIbjNHm44i5GmXP8/pdSCcV6ltXDvozfDOgkKG3QSP g0SzwkKHGxbMrsue58Vhou12QiwQgl8A6hniLqhwRGlvRG5Epb5eISKPfK1cAv2Vir+6Kj9I 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:254251 Archived-At: >> (118 vs 112 looks slightly preposterous BTW - it would mean that >> scroll bar and fringes are six characters wide. Here both width and >> height differ by 1 only.) > > They're definitely not that. I would roughly estimate that the scroll > bar plus the right fringe are about 2-3 characters wide. And the left > fringe is about 1/2 a character. I underestimated the scaling effect. With a character width scaled from 17 to 8 a base_width of 32 and a native width of 1952 pixels we get (/ (- (/ 1952 2) 32) 8) ~> 118 On the other hand with 1904 text pixels (scroll bar + fringes are the remaining 48 pixels) and the unscaled character width we get (/ 1904 17) ~> 112 This shows how scaling strongly affects whatever GNOME displays here and what Emacs uses internally. It might be illustrative to put two equally sized frames above each other - one from a GTK and one from a Lucid build - and look at what size hints GNOME displays for each of them. For the rest, the transcript nowhere shows that the GNOME hints jump by two or more after 'set-face-attribute'. Can you spot such behavior? There are jumps like these xg_frame_resized old native pixels 1472x1368 new native pixels 1568x1404 adjust_frame_size old native pixels 1472x1368 new native pixels 1568x1404 old text pixels 1424x1368 new text pixels 1520x1404 old text chars 83x36 new text chars 89x37 base_size 32x84 size increments 8x18 WM hint 94x38 xg_frame_resized old native pixels 1568x1404 new native pixels 1712x1440 adjust_frame_size old native pixels 1568x1404 new native pixels 1712x1440 old text pixels 1520x1404 new text pixels 1664x1440 old text chars 89x37 new text chars 97x38 base_size 32x84 size increments 8x18 WM hint 103x39 xg_frame_resized old native pixels 1712x1440 new native pixels 1984x1548 adjust_frame_size old native pixels 1712x1440 new native pixels 1984x1548 old text pixels 1664x1440 new text pixels 1936x1548 old text chars 97x38 new text chars 113x41 base_size 32x84 size increments 8x18 WM hint 120x42 during mouse dragging. But these result from redisplay lagging behind your drag speed. Hence subsequent drags are collapsed into larger ones and Emacs "adjusts" the frame size only after redisplay has decided in good faith that it now can present the frame to your eyes. martin