From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: "Perry E. Metzger" Newsgroups: gmane.emacs.devel Subject: Weird problem with inital frame sizing Date: Wed, 12 Sep 2018 10:37:23 -0400 Message-ID: <20180912103723.0999377c@jabberwock.cb.piermont.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1536762966 2122 195.159.176.226 (12 Sep 2018 14:36:06 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 12 Sep 2018 14:36:06 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 12 16:36:02 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 1g06FJ-0000Is-Mr for ged-emacs-devel@m.gmane.org; Wed, 12 Sep 2018 16:35:57 +0200 Original-Received: from localhost ([::1]:36582 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g06HQ-0001e1-6H for ged-emacs-devel@m.gmane.org; Wed, 12 Sep 2018 10:38:08 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34334) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g06Gl-0001dh-TC for emacs-devel@gnu.org; Wed, 12 Sep 2018 10:37:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g06Gi-0003Ep-Pu for emacs-devel@gnu.org; Wed, 12 Sep 2018 10:37:27 -0400 Original-Received: from hacklheber.piermont.com ([166.84.7.14]:50306) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g06Gi-0003EL-LE for emacs-devel@gnu.org; Wed, 12 Sep 2018 10:37:24 -0400 Original-Received: from snark.cb.piermont.com (localhost [127.0.0.1]) by hacklheber.piermont.com (Postfix) with ESMTP id 70DE017A for ; Wed, 12 Sep 2018 10:37:23 -0400 (EDT) Original-Received: from jabberwock.cb.piermont.com (jabberwock.cb.piermont.com [10.160.2.107]) by snark.cb.piermont.com (Postfix) with ESMTP id 404022DF948 for ; Wed, 12 Sep 2018 10:37:23 -0400 (EDT) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 166.84.7.14 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:229705 Archived-At: For some time, I've noticed that in circumstances I can't quite pin down, the size settings for the initial frame that I put in my .emacs aren't always followed. Often, for example, the frame will end up created but (apparently, I'm just guessing!) in the size it would have been if the new (larger) font I've set hadn't been employed, so the frame is too narrow and short. Subsequent frames created are _always_ correctly sized. 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? (I'm running the master branch, as of a few days ago, under X11. One factor may be that I'm remote displaying over a slow link using Xpra, but I can't be sure if this is at all relevant or not.) Perry -- Perry E. Metzger perry@piermont.com