From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Noam Postavsky Newsgroups: gmane.emacs.devel Subject: Re: Weird problem with inital frame sizing Date: Wed, 12 Sep 2018 10:50:05 -0400 Message-ID: References: <20180912103723.0999377c@jabberwock.cb.piermont.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1536764808 16632 195.159.176.226 (12 Sep 2018 15:06:48 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 12 Sep 2018 15:06:48 +0000 (UTC) Cc: Emacs developers To: "Perry E. Metzger" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 12 17:06:44 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 1g06j5-0004DL-QQ for ged-emacs-devel@m.gmane.org; Wed, 12 Sep 2018 17:06:43 +0200 Original-Received: from localhost ([::1]:36685 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g06lC-0008Er-Af for ged-emacs-devel@m.gmane.org; Wed, 12 Sep 2018 11:08:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42065) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g06if-000660-8o for emacs-devel@gnu.org; Wed, 12 Sep 2018 11:06:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g06T1-0003d2-9n for emacs-devel@gnu.org; Wed, 12 Sep 2018 10:50:07 -0400 Original-Received: from mail-oi0-x232.google.com ([2607:f8b0:4003:c06::232]:38719) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g06T0-0003bw-Q7 for emacs-devel@gnu.org; Wed, 12 Sep 2018 10:50:06 -0400 Original-Received: by mail-oi0-x232.google.com with SMTP id x197-v6so4245327oix.5 for ; Wed, 12 Sep 2018 07:50:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=WCdng3Go6XbVV1uxaHMI+BTFPZdE5oUWVbIvV2WUvGk=; b=fMjI713bzKqPPRrexkN1tWrUjcFlFK98OkH5I0+VIB/KU8s55fovRua59i/lRprClp Tss18dIqikSGL3gPlelVtfwK01AC0IFW3notWKH83GLSO0KBYv2mmPaeBbFGClfppb89 JJjQXPiOhhj20/6Vlq11CnTosfh2AJ6u/gbmHSvkyLtitxuQ8NFVefnqkltqU6x9Zzjt EzysG4EKZTjdJH5zJ9x1vGj3sKoP80QO4luV9Vxls1HlraWTA7F83CDpqORpSNNsv1Ak FJxLWMIexdxKgX+5MDcUrGdFhC+6TG8OqtJYrHLBxWpILZ/WphfcO/xf2OZXl2B0lTu6 9I4w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=WCdng3Go6XbVV1uxaHMI+BTFPZdE5oUWVbIvV2WUvGk=; b=NL5/RGHTPw/kOXGuuoqxV4MIkmYI8RAyka8aBEn2rxjcNRhjhpTfKND1hlsdhHT4mL SU0KsYZjvt3MPe+yYcuM78aqo0pEtZq3EJ0GBPEQnNchyRu/o12QpbR8y4d9ZzkpJS5C a9vcbUCDTVmjPXzrfIYUapWkTsCkfMaN0lKAR9ODVE+VQNhiXuaPA39E7TvhW4KIHKoM 80eTk5vver+43KpOv8i9qlrCKcza2oFmxp4FpPLZ+Z/R0FM/vo4goU0/La1+iYW2wXr6 kvjaIKYbXALvJG6kjrWSaMnQImJAk6lv1O6wgsmR0ySso5t0BrXmZOWfW2BX579DFzQE 4rdQ== X-Gm-Message-State: APzg51CYcBQLXO7Hv4uF6m+16sH6u/pfIxf0eNIVPqFSpYhjdw7e+3mu 3ahRr0ZGvD1XHkpnVatEFpIxdAqxHDoprR9NcZF8dDJ2 X-Google-Smtp-Source: ANB0Vda7hzLLVkdaefoFhr9AJEOXN4rDsj3ZgMLON0JCqR5cdwJFPmaFTRmiqd5oak1SCcdDyAOzqr6UvwlfgKML5Vc= X-Received: by 2002:aca:d846:: with SMTP id p67-v6mr2556478oig.42.1536763805939; Wed, 12 Sep 2018 07:50:05 -0700 (PDT) Original-Received: by 2002:a9d:540f:0:0:0:0:0 with HTTP; Wed, 12 Sep 2018 07:50:05 -0700 (PDT) In-Reply-To: <20180912103723.0999377c@jabberwock.cb.piermont.com> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4003:c06::232 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:229708 Archived-At: 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.