unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Emacs 24.3 wrong default face font in new frames
@ 2013-06-03 17:35 Barry Warsaw
  2013-06-04 14:13 ` Barry Warsaw
  0 siblings, 1 reply; 2+ messages in thread
From: Barry Warsaw @ 2013-06-03 17:35 UTC (permalink / raw)
  To: emacs-devel

[-- 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 --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Emacs 24.3 wrong default face font in new frames
  2013-06-03 17:35 Emacs 24.3 wrong default face font in new frames Barry Warsaw
@ 2013-06-04 14:13 ` Barry Warsaw
  0 siblings, 0 replies; 2+ messages in thread
From: Barry Warsaw @ 2013-06-04 14:13 UTC (permalink / raw)
  To: emacs-devel

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

On Jun 03, 2013, at 01:35 PM, Barry Warsaw wrote:

>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"))))
> ...

This appears to be related to the problem.  If I customize the default face
and set the family to Ubuntu Mono, then new frames inherit the correct font.

This isn't ideal because then I can't use the same Emacs startup files on
systems without the Ubuntu Mono font.

I still don't know whether this is intended behavior or a bug.

-Barry

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-04 14:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-06-03 17:35 Emacs 24.3 wrong default face font in new frames Barry Warsaw
2013-06-04 14:13 ` Barry Warsaw

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).