From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Weird problem with inital frame sizing Date: Thu, 13 Sep 2018 21:14:23 -0400 Message-ID: References: <20180912103723.0999377c@jabberwock.cb.piermont.com> <20180913150851.3a330def@jabberwock.cb.piermont.com> <20180913151516.78aa0de4@jabberwock.cb.piermont.com> <20180913152355.7618b1a2@jabberwock.cb.piermont.com> <20180913153151.0a14f736@jabberwock.cb.piermont.com> <20180913173401.5e2f9c45@jabberwock.cb.piermont.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1536887588 1234 195.159.176.226 (14 Sep 2018 01:13:08 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Sep 2018 01:13:08 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: emacs-devel@gnu.org To: "Perry E. Metzger" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Sep 14 03:13:04 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 1g0cfQ-0000CC-4f for ged-emacs-devel@m.gmane.org; Fri, 14 Sep 2018 03:13:04 +0200 Original-Received: from localhost ([::1]:46846 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0chW-0003K0-21 for ged-emacs-devel@m.gmane.org; Thu, 13 Sep 2018 21:15:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0cgs-0003Jt-VL for emacs-devel@gnu.org; Thu, 13 Sep 2018 21:14:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g0cgl-0003bM-3d for emacs-devel@gnu.org; Thu, 13 Sep 2018 21:14:33 -0400 Original-Received: from chene.dit.umontreal.ca ([132.204.246.20]:47601) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g0cgk-0003XE-SC for emacs-devel@gnu.org; Thu, 13 Sep 2018 21:14:26 -0400 Original-Received: from pastel.home (lechon.iro.umontreal.ca [132.204.27.242]) by chene.dit.umontreal.ca (8.14.7/8.14.1) with ESMTP id w8E1ENC6022410; Thu, 13 Sep 2018 21:14:23 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 5E98B6A66C; Thu, 13 Sep 2018 21:14:23 -0400 (EDT) In-Reply-To: <20180913173401.5e2f9c45@jabberwock.cb.piermont.com> (Perry E. Metzger's message of "Thu, 13 Sep 2018 17:34:01 -0400") X-NAI-Spam-Flag: NO X-NAI-Spam-Threshold: 5 X-NAI-Spam-Score: 0 X-NAI-Spam-Rules: 2 Rules triggered EDT_SA_DN_PASS=0, RV6373=0 X-NAI-Spam-Version: 2.3.0.9418 : core <6373> : inlines <6878> : streams <1798379> : uri <2709954> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 132.204.246.20 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:229763 Archived-At: >> >> (set-face-attribute 'default nil >> >> :family "DejaVu Sans Mono" :height 140) >> I'd recommend you move away from set-face-attribute. > What's the reason for that? It's a low-level tool that's designed to modify the face for a particular frame, and not some user-level preference. >> (face-spec-set 'default >> '((((type x)) :family "DejaVu Sans Mono" :height 140) >> (((type ns)) :family "Monaco" :height 100) >> (t :family :height 120))) > > Why is this preferable? Because it lets you set your face-preferences before knowing whether they will apply to a frame under the X11 GUI, or under a tty, or ... This started being important when we added the multi-tty support, so the same Emacs session can have both GUI frames and tty frames (where some tty frames offer 8 colors, other 256 color, others no colors at all), but the problem existed before already since previous Emacsen could also have several GUI frames on different X server, some limited to a monochrome display, and others not. > And what does it have to do with the overall problem I'm having? Nothing directly. You just pulled on one of the loose threads ;-) Stefan