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: Re: Weird problem with inital frame sizing Date: Wed, 12 Sep 2018 11:35:38 -0400 Message-ID: <20180912113538.645f02f7@jabberwock.cb.piermont.com> References: <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 1536766421 14008 195.159.176.226 (12 Sep 2018 15:33:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 12 Sep 2018 15:33:41 +0000 (UTC) Cc: Emacs developers To: Noam Postavsky Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 12 17:33:36 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 1g0795-0003Vl-RO for ged-emacs-devel@m.gmane.org; Wed, 12 Sep 2018 17:33:35 +0200 Original-Received: from localhost ([::1]:36808 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g07BC-00005k-B7 for ged-emacs-devel@m.gmane.org; Wed, 12 Sep 2018 11:35:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53288) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g07B6-00005f-Md for emacs-devel@gnu.org; Wed, 12 Sep 2018 11:35:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g07B5-0008QB-SQ for emacs-devel@gnu.org; Wed, 12 Sep 2018 11:35:40 -0400 Original-Received: from hacklheber.piermont.com ([2001:470:30:84:e276:63ff:fe62:3400]:41168) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g07B5-0008Pv-OF for emacs-devel@gnu.org; Wed, 12 Sep 2018 11:35:39 -0400 Original-Received: from snark.cb.piermont.com (localhost [127.0.0.1]) by hacklheber.piermont.com (Postfix) with ESMTP id 2F33C248; Wed, 12 Sep 2018 11:35:38 -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 428B22DF94B; Wed, 12 Sep 2018 11:35:38 -0400 (EDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:470:30:84:e276:63ff:fe62:3400 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:229710 Archived-At: On Wed, 12 Sep 2018 10:50:05 -0400 Noam Postavsky wrote: > On 12 September 2018 at 10:37, Perry E. Metzger > wrote: > > > 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? > > Does changing x-wait-for-event-timeout help (or hurt)? > > 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... Perry -- Perry E. Metzger perry@piermont.com