From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Robert Pluim Newsgroups: gmane.emacs.devel Subject: Re: Weird problem with inital frame sizing Date: Wed, 12 Sep 2018 17:47:29 +0200 Message-ID: <87h8iu90q6.fsf@gmail.com> References: <20180912103723.0999377c@jabberwock.cb.piermont.com> <20180912113538.645f02f7@jabberwock.cb.piermont.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1536767195 8274 195.159.176.226 (12 Sep 2018 15:46:35 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 12 Sep 2018 15:46:35 +0000 (UTC) Cc: Noam Postavsky , Emacs developers To: "Perry E. Metzger" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 12 17:46:31 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g07Lb-00023v-9F for ged-emacs-devel@m.gmane.org; Wed, 12 Sep 2018 17:46:31 +0200 Original-Received: from localhost ([::1]:36842 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g07Nh-0002lY-VS for ged-emacs-devel@m.gmane.org; Wed, 12 Sep 2018 11:48:41 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56410) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g07Mh-0002lH-Qe for emacs-devel@gnu.org; Wed, 12 Sep 2018 11:47:40 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g07Md-0005E2-2R for emacs-devel@gnu.org; Wed, 12 Sep 2018 11:47:39 -0400 Original-Received: from mail-wm0-x22c.google.com ([2a00:1450:400c:c09::22c]:36059) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g07Mc-0005Ct-PR for emacs-devel@gnu.org; Wed, 12 Sep 2018 11:47:34 -0400 Original-Received: by mail-wm0-x22c.google.com with SMTP id j192-v6so2998600wmj.1 for ; Wed, 12 Sep 2018 08:47:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:mail-followup-to:mail-copies-to :gmane-reply-to-list:date:in-reply-to:message-id:mime-version :content-transfer-encoding; bh=n6Cfj2CnjVWZ+eIwByokhfdHyyT63TFub2cLoK2792k=; b=R6jll2EaHffnbCCxkoDK6Am68Bm5YCVKqSEDpG3xMKlrX3U4jeDecd18tWDvE8H6Sd 8w6H9d8uS5rwBoKzxuk/3skfTOdFBZHORF3a+bpe/KnGR6x7a1Zb+8Zx8luCRy9cyTgw kxNLMecxwWvze8vu6hElOMyVItM2u8N6uqDvMxhRXQ1VMn+QUOchmZEtWeIuIHGzL5aN hHEgUA5DzewEg0N4LUnMuudiAf4w5JRQQmerkZymzLQ5rO8UQC4y8gLiQCC5gZoWaBqK dhwfobtFJE0tqertw9THix6q2JE0WWkOdmNVpXt1EMWtX/+I6fj0YtsQHz4cvRNJNoQ4 MXDg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:mail-followup-to :mail-copies-to:gmane-reply-to-list:date:in-reply-to:message-id :mime-version:content-transfer-encoding; bh=n6Cfj2CnjVWZ+eIwByokhfdHyyT63TFub2cLoK2792k=; b=N1+jQ2B0SzCpqMw5cRPuaaw10PrNir6waCkZExHHUnR5pZTK02HznoS0bt+ecX2bJ3 42Q4H2jCjjSwe3e5ijA9ak4oGqWsOEzNcMdadcS+pFH30yi2ONyePi80XZBxm/2vxk+i ZviuVE0L6VFUocVpLdTGmocH+6GUntHCQme2MKN4Dhmk1FwqeClpnuGLu4QXpiPGG2Xg AcN6+Jim4QWhWKi23VX7Xy+O1NmHBFEf9ZT02E7kOrbYScBYY3yBB0oDkRpv0zDWcOf1 4+qAn5w923aorxzdVLxtjSnv7ZLyWSbWjupjU5XTAr8zgZufOza7q/2RLCMyG9mpP2T9 pddg== X-Gm-Message-State: APzg51Do5qQY18A3SgeaUg5Q0tStXpUOPRjN6ZUJXgoeSPiAyVvYz7sO d0OqZgWKUpvGcaOyUkmdGNUf2PZZ2zc= X-Google-Smtp-Source: ANB0VdZUQR3kkQz2Ie/bIGSpGLDYKRjJxtYl7WmJ+MYRf1Fq2ihx46MF69QZgSFmsZcsYzdKjBfrjA== X-Received: by 2002:a1c:a8cf:: with SMTP id r198-v6mr2051732wme.133.1536767253070; Wed, 12 Sep 2018 08:47:33 -0700 (PDT) Original-Received: from rpluim-ubuntu ([149.5.228.1]) by smtp.gmail.com with ESMTPSA id 184-v6sm3098182wmv.6.2018.09.12.08.47.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Sep 2018 08:47:32 -0700 (PDT) Mail-Followup-To: emacs-devel@gnu.org Mail-Copies-To: never Gmane-Reply-To-List: yes In-Reply-To: <20180912113538.645f02f7@jabberwock.cb.piermont.com> (Perry E. Metzger's message of "Wed, 12 Sep 2018 11:35:38 -0400") X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:400c:c09::22c X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:229711 Archived-At: "Perry E. Metzger" writes: > On Wed, 12 Sep 2018 10:50:05 -0400 Noam Postavsky > wrote: >> On 12 September 2018 at 10:37, Perry E. Metzger >> wrote: >>=20 >> > Thinking that this might be some sort of weird race condition >> > during initialization, I put a "(sleep-for 1)" into my .emacs >> > just before the code that sets everything, i.e., before all my >> > "set-face-attribute" and "default-frame-alist" manipulation. When >> > I do this, the frame pops up in its initial size and >> > configuration, and then after the sleep ends, the size of the >> > default frame adjusts and is consistently correct. >> > >> > Can anyone guess what might be going wrong, and how we might fix >> > this correctly?=20=20 >>=20 >> Does changing x-wait-for-event-timeout help (or hurt)? >>=20 >> Possibly doing your manipulation in after-make-frame-functions would >> be the correct fix. > > It would seem to me that requiring users to change their default font > in that way rather than just in their .emacs file is a bit > heavyweight. It's certainly not documented, and hasn't always been > needed in the past... This might be , which I haven't gotten around to tracking down fully. It=CA=BCs very window-manager dependent though. I found that starting emacs with '--no-x-resources' made the issue go away, which points to a race condition in the initial frame setup. Robert