all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@IRO.UMontreal.CA>
To: "Perry E. Metzger" <perry@piermont.com>
Cc: emacs-devel@gnu.org
Subject: Re: Weird problem with inital frame sizing
Date: Thu, 13 Sep 2018 21:14:23 -0400	[thread overview]
Message-ID: <jwvmuskhoos.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <20180913173401.5e2f9c45@jabberwock.cb.piermont.com> (Perry E. Metzger's message of "Thu, 13 Sep 2018 17:34:01 -0400")

>> >>       (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



  reply	other threads:[~2018-09-14  1:14 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-12 14:37 Weird problem with inital frame sizing Perry E. Metzger
2018-09-12 14:50 ` Noam Postavsky
2018-09-12 15:35   ` Perry E. Metzger
2018-09-12 15:47     ` Robert Pluim
2018-09-12 17:01       ` Perry E. Metzger
2018-09-13 11:49 ` Stefan Monnier
2018-09-13 19:08   ` Perry E. Metzger
2018-09-13 19:15     ` Perry E. Metzger
2018-09-13 19:17       ` Perry E. Metzger
2018-09-13 19:23       ` Perry E. Metzger
2018-09-13 19:31         ` Perry E. Metzger
2018-09-13 20:20           ` Stefan Monnier
2018-09-13 21:34             ` Perry E. Metzger
2018-09-14  1:14               ` Stefan Monnier [this message]
2018-09-15 23:23                 ` Perry E. Metzger
2018-09-16 21:58                   ` Stefan Monnier
2018-09-17 13:31                     ` Perry E. Metzger
2018-09-17 13:49                       ` Noam Postavsky
2018-09-13 19:15     ` Eli Zaretskii
2018-09-13 19:25       ` Perry E. Metzger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=jwvmuskhoos.fsf-monnier+emacs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=emacs-devel@gnu.org \
    --cc=perry@piermont.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.