unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Barry Warsaw <barry@python.org>
To: emacs-devel@gnu.org
Subject: Emacs 24.3 wrong default face font in new frames
Date: Mon, 3 Jun 2013 13:35:33 -0400	[thread overview]
Message-ID: <20130603133533.58b05bee@anarchist> (raw)

[-- Attachment #1: Type: text/plain, Size: 1847 bytes --]

The current in-development versions of Debian and Ubuntu recently got updated
to Emacs 24.3 from 24.2.  This broke one of my very long-standing
customizations.

It's entirely possible that I'm doing something stupid in my .emacs files, but
maybe it's a known bug.  I can certainly fix my own code in the former case,
but if it's the latter, and there's a fix available in Emacs vcs, I'll cherry
pick a patch for those two distros.

Specifically, I set a font for the default face and it shows up fine in the
initial frame for both 24.2 and 24.3.  It also shows up fine in new frame
(C-x 5 2) but *only* for 24.2.  In 24.3, I get the wrong font.

Here are some code excerpts.  My default face is customized:

...
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(default ((t (:inherit nil :stipple nil :background "Grey27" :foreground "LightCyan" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight normal :height 115 :width normal :foundry "unknown" :family "Monospace"))))
 ...

But I also set it in (essentially) my .emacs file:

  (set-face-attribute 'default nil
                      :family "Ubuntu Mono"
                      :height 120)

In the initial frame with both Emacsen, and on new frames in 24.2, my default
face is indeed Ubuntu Mono, as shown by C-u C-x =

...
    xft:-unknown-Ubuntu Mono-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1 (#x2C)

In new frames on 24.3 however, the font is wrong:

    xft:-unknown-DejaVu Sans Mono-normal-normal-normal-*-16-*-*-*-m-0-iso10646-1 (#x2C)

What's going on?  Is it me or is it Emacs? ;)

Cheers,
-Barry

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

             reply	other threads:[~2013-06-03 17:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-03 17:35 Barry Warsaw [this message]
2013-06-04 14:13 ` Emacs 24.3 wrong default face font in new frames Barry Warsaw

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=20130603133533.58b05bee@anarchist \
    --to=barry@python.org \
    --cc=emacs-devel@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).