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: Thu, 13 Sep 2018 15:23:55 -0400 Message-ID: <20180913152355.7618b1a2@jabberwock.cb.piermont.com> References: <20180912103723.0999377c@jabberwock.cb.piermont.com> <20180913150851.3a330def@jabberwock.cb.piermont.com> <20180913151516.78aa0de4@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 1536866575 26838 195.159.176.226 (13 Sep 2018 19:22:55 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 13 Sep 2018 19:22:55 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Sep 13 21:22:51 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 1g0XCS-0006pl-7u for ged-emacs-devel@m.gmane.org; Thu, 13 Sep 2018 21:22:48 +0200 Original-Received: from localhost ([::1]:44006 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0XEY-0002yd-4w for ged-emacs-devel@m.gmane.org; Thu, 13 Sep 2018 15:24:58 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42171) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0XDw-0002yV-St for emacs-devel@gnu.org; Thu, 13 Sep 2018 15:24:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g0XDs-0005ws-Hm for emacs-devel@gnu.org; Thu, 13 Sep 2018 15:24:18 -0400 Original-Received: from hacklheber.piermont.com ([2001:470:30:84:e276:63ff:fe62:3400]:46432) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1g0XDm-0005fU-K3 for emacs-devel@gnu.org; Thu, 13 Sep 2018 15:24:12 -0400 Original-Received: from snark.cb.piermont.com (localhost [127.0.0.1]) by hacklheber.piermont.com (Postfix) with ESMTP id 60507248; Thu, 13 Sep 2018 15:23:55 -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 42BD62DF973; Thu, 13 Sep 2018 15:23:55 -0400 (EDT) In-Reply-To: <20180913151516.78aa0de4@jabberwock.cb.piermont.com> 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:229754 Archived-At: On Thu, 13 Sep 2018 15:15:16 -0400 "Perry E. Metzger" wrote: > On Thu, 13 Sep 2018 15:08:51 -0400 "Perry E. Metzger" > wrote: > > On Thu, 13 Sep 2018 07:49:00 -0400 Stefan Monnier > > wrote: > > > > Can anyone guess what might be going wrong, and how we might > > > > fix this correctly? > > > > > > IMO fixing this "correctly" is the following: move your > > > face&frame settings from ~/.emacs.d/init.el to > > > ~/.emacs.d/early-init.el > > > > I use a single .emacs file (I'm an old fogey). Where in the manual > > is early-init.el documented, and the semantic difference between > > what should be in there and what should be elsewhere? I was unable > > to find it searching through the info manual. > > FYI, I did as you suggested, and my initial frame and subsequent > frames do not get the change to the font at all now, so this doesn't > seem to work. I'm not sure where early-init.el is loaded, or if it > is loaded at all. FYI, this is (some) of what I put in early-init.el: (if (eq window-system 'x) (progn (menu-bar-mode 0) (set-face-attribute 'default nil :family "DejaVu Sans Mono" :height 140) (set-face-attribute 'cursor nil :background "red") (set-face-attribute 'trailing-whitespace nil :background "pink") (setq default-frame-alist '((scroll-bar-width . 10))))) (if window-system (progn (add-to-list 'default-frame-alist (cons 'height 50)) (add-to-list 'default-frame-alist (cons 'width 80)))) Perry -- Perry E. Metzger perry@piermont.com