From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jim Porter Newsgroups: gmane.emacs.bugs Subject: bug#64809: 29.1; Initial frame is wrong size when dimensions specified in init file Date: Mon, 24 Jul 2023 13:53:07 -0700 Message-ID: <93593851-cfe3-ca6d-43e2-bedb13c97cf0@gmail.com> References: <9feef303-394a-137f-5a7e-63e9c15f4b51@fiander.info> <831qgxtupy.fsf@gnu.org> <87o7k11pll.fsf@yahoo.com> <891b443c-8bc2-fd3c-70c9-90fd0f22bd82@fiander.info> <87fs5d1lsw.fsf@yahoo.com> <99c6ee31-be52-1b24-049f-2058ca5977be@gmail.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="23782"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Eli Zaretskii , 64809@debbugs.gnu.org To: Po Lu , David Fiander Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jul 24 22:54: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 1qO2ZL-00060z-TT for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 24 Jul 2023 22:54:15 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qO2Z9-0007qA-DT; Mon, 24 Jul 2023 16:54:03 -0400 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 1qO2Z8-0007q0-SW for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 16:54:02 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qO2Z8-00077R-L1 for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 16:54:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qO2Z8-00063x-GC for bug-gnu-emacs@gnu.org; Mon, 24 Jul 2023 16:54:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Jim Porter Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Jul 2023 20:54:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 64809 X-GNU-PR-Package: emacs Original-Received: via spool by 64809-submit@debbugs.gnu.org id=B64809.169023200023221 (code B ref 64809); Mon, 24 Jul 2023 20:54:02 +0000 Original-Received: (at 64809) by debbugs.gnu.org; 24 Jul 2023 20:53:20 +0000 Original-Received: from localhost ([127.0.0.1]:44255 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qO2YS-00062T-5M for submit@debbugs.gnu.org; Mon, 24 Jul 2023 16:53:20 -0400 Original-Received: from mail-ot1-x32b.google.com ([2607:f8b0:4864:20::32b]:55750) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qO2YO-000626-9C for 64809@debbugs.gnu.org; Mon, 24 Jul 2023 16:53:18 -0400 Original-Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-6bb231f1817so1112797a34.3 for <64809@debbugs.gnu.org>; Mon, 24 Jul 2023 13:53:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1690231990; x=1690836790; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=N0spwYiLP9MYOFrpWAvRSWWfU8ZSbBt7QjSFYSvt+Wk=; b=Um6zP1ef2fOw8FAPXL5Nkj544uQndbVqE9QWqR/abxX0nVkWimWtYS4u103bvDWcOb Nq5KPeaAQDxJ5GRM25Rvz/fqFwDkh21J6KDRduYXgASAPI+2AzymkfqBDNzzDdiUlvCN n3Was+0qhSArLSNMMsjtI38UlgAy7bK92GivVNGCNFHpJg9fo/gpjHWoYBW5hXIeFpHb kkTmMey21wh/6NAAkDdpjGkB/ff5yQHU0ELwPCafyW0FW9pk1WB+4EzpEsK8hYvvEWao c+ccZAEyv/dvA41o2NDfHSl0ZLfJGv+m1fp3rY4ebNYpwogxI50pcep2221Hxfd7ZkuP 2iZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690231990; x=1690836790; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=N0spwYiLP9MYOFrpWAvRSWWfU8ZSbBt7QjSFYSvt+Wk=; b=bNW/aMygJMFdNMpIWdiIm5axC+IYrGMC7IZ8BeIu9+AO/KNFbyJP7af1gAZiXDjXZw nHRQGFktNM3RWUiaCTJfGgLJxtGl/eOgpHa+O7fTNA3yQHOXVvgM9dIcBMnPp3CPJnPB ZBsfp/IHGWyIfZjcAkAjpcn7sMSy9mMQkhJvLAWzPwOmn1kV7suZtvL0EGJXLUG9K6lD 62SZ/iEYRnziG86YLPfPmm3Xs31bE6rsv9GSiY2kjo+5aCHtT4/66EnbVjxobFcGjshY 1B9IRj4Pje7Yzhh0wFDpaeOp3MAGsW7b1zPgeoOLjZepSufH6bp+OUGfFxKIzq+65yW0 lHkg== X-Gm-Message-State: ABy/qLYqAw9Io1EFhbhMqt/hSnWYZBZD5oiOtG8VhETI9e15wecuqR/K OKlibMMuEfte7EkpQgnwu1k= X-Google-Smtp-Source: APBJJlEmLtp0brLCbNnnDe8kN7G8/6vx65wqRFAvb+5/e0/S4Nf91s0vav1LD8DZ8CM4eW7RGK54TQ== X-Received: by 2002:a05:6358:8810:b0:135:24ed:5106 with SMTP id hv16-20020a056358881000b0013524ed5106mr2450011rwb.9.1690231990390; Mon, 24 Jul 2023 13:53:10 -0700 (PDT) Original-Received: from [192.168.1.2] (cpe-76-168-148-233.socal.res.rr.com. [76.168.148.233]) by smtp.googlemail.com with ESMTPSA id c70-20020a633549000000b00551df489590sm8924469pga.12.2023.07.24.13.53.09 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 24 Jul 2023 13:53:09 -0700 (PDT) Content-Language: en-US In-Reply-To: <99c6ee31-be52-1b24-049f-2058ca5977be@gmail.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:266004 Archived-At: On 7/24/2023 9:33 AM, Jim Porter wrote: > I found a related issue that might make this easier to diagnose: when I > run the following in Emacs 28.2, it correctly sets the default face > height for the current frame. With Emacs 29.1, it flashes for a second > at the correct size, then reverts to the default: > > emacs -Q --eval "(set-face-attribute 'default (selected-frame) :height 70)" At least for this case, I narrowed the regression down to the following commit: commit 52d4c98cec0901ef5cc1c55d5b3b33ac9d9c519f Author: Vincent Bernat Date: Tue Oct 25 23:02:16 2022 +0200 Fix detection of DPI changes in builds without Xft * src/xsettings.c (apply_xft_settings) [!HAVE_XFT]: Support XSETTINGS changes in non-XFT builds. (Bug#43128) So maybe the DPI detection in this commit is happening too late, or the code should bail out if the user has already customized the default face height?