unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Tim Van Holder" <tim.vanholder@gmail.com>
To: "Jason Rumney" <jasonr@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: 23.0.60; new frames ignore set-default-font
Date: Fri, 9 May 2008 12:23:15 +0200	[thread overview]
Message-ID: <d69e7f6a0805090323v1c9b0821jffaa3244cd47a604@mail.gmail.com> (raw)

Jason Rumney wrote:
>
> Jim Hunziker wrote:
> >  I am using the Xft font backend and Emacs from CVS.  I am using the
> >  Andale Mono-13 font from msttcorefonts.
> >
> >  When using the setting (set-default-font "Andale Mono-13") in my
> >  .emacs file, new frames created with M-x 5 2 don't use the default
> >  font. (The initial frame does use the font.)
>
> I think this is by design. set-default-font is an alias for set-frame-font, and it only sets the default font for the current frame.
> To set the font for future frames, you need to set the font frame-parameter in default-frame-alist.

As I reported on March 7th
(http://lists.gnu.org/archive/html/emacs-devel/2008-03/msg00675.html),
this also affects cases where the default face has been customized (at
least it does for me); and as I understand it, the default face is
supposed to apply to new frames too.

100% reproduction for me with:

$ emacs -Q
M-x customize-face default
-> font-family starts out set to 'adobe-courier'
-> change it to 'terminus' (or some other font, like 'fixed')
-> set for current session (frame repaints with the new font)
M-x make-frame
-> get new frame, with adobe-courier
-> a fresh M-x customize-face default shows the font and size as
adobe-courier/116 (NOT the customized values), but the state as "SET
for current session"
-> Changing the font & size again (or "Reset to saved" for a non -Q
run of emacs) repaints all frames with the correct customized font,
but every subsequent make-frame keeps creating one with courier

This is with a freshly built emacs from CVS (regular rebuild, not full
bootstrap).




             reply	other threads:[~2008-05-09 10:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-09 10:23 Tim Van Holder [this message]
  -- strict thread matches above, loose matches on Subject: below --
2008-05-09 12:32 23.0.60; new frames ignore set-default-font grischka
2008-04-29 13:01 Jim Hunziker
2008-05-08 11:34 ` Jason Rumney
2008-05-08 22:02   ` Johan Bockgård

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=d69e7f6a0805090323v1c9b0821jffaa3244cd47a604@mail.gmail.com \
    --to=tim.vanholder@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=jasonr@gnu.org \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).