unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Re: 23.0.60; new frames ignore set-default-font
@ 2008-05-09 12:32 grischka
  0 siblings, 0 replies; 5+ messages in thread
From: grischka @ 2008-05-09 12:32 UTC (permalink / raw)
  To: tim.vanholder; +Cc: emacs-devel

Tim Van Holder wrote:

> 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

Yes. Even worse when colors are changed, emacs fails to open other 
frames completely. To reproduce:

$ emacs -Q
M-x customize-face default
... edit: Foreground: white
... edit: Background: black
... apply customization
C-x 5 2
--> ... max-specpdl-size exceeded





^ permalink raw reply	[flat|nested] 5+ messages in thread
* Re: 23.0.60; new frames ignore set-default-font
@ 2008-05-09 10:23 Tim Van Holder
  0 siblings, 0 replies; 5+ messages in thread
From: Tim Van Holder @ 2008-05-09 10:23 UTC (permalink / raw)
  To: Jason Rumney; +Cc: emacs-devel

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




^ permalink raw reply	[flat|nested] 5+ messages in thread
* 23.0.60; new frames ignore set-default-font
@ 2008-04-29 13:01 Jim Hunziker
  2008-05-08 11:34 ` Jason Rumney
  0 siblings, 1 reply; 5+ messages in thread
From: Jim Hunziker @ 2008-04-29 13:01 UTC (permalink / raw)
  To: emacs-pretest-bug

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

Setting the X resource for the Emacs font doesn't exhibit this
problem.

In GNU Emacs 23.0.60.2 (i686-pc-linux-gnu, GTK+ Version 2.10.4)
 of 2008-04-28 on wec-dev
Windowing system distributor `The X.Org Foundation', version 11.0.70101000
configured using `configure  '--enable-font-backend''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  value of $XMODIFIERS: @im=none
  locale-coding-system: utf-8-unix
  default-enable-multibyte-characters: t

Major mode: Outline

Minor modes in effect:
  show-paren-mode: t
  iswitchb-mode: t
  global-auto-revert-mode: t
  tooltip-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  global-auto-composition-mode: t
  auto-composition-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Recent input:
C-s d s e t C-a C-s a n d a C-a C-k C-k C-k C-x C-s
C-g C-x C-f / u s r / l o c a l / s h a <tab> e m <tab>
<tab> <tab> 2 <tab> <tab> <tab> e <tab> p <tab> <backspace>
<backspace> <backspace> <backspace> <backspace> <backspace>
<backspace> <tab> <tab> P R <tab> <return> C-s f o
n t C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s
C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s
C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s
C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s
C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s
C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s
C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s
C-s C-s C-s C-s C-s C-s C-s C-s C-r C-r C-r C-s C-s
C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s
C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s C-s
C-s C-s C-s C-s C-s C-s C-a M-x r e p o <backspace>
SPC C-g M-x r e p <tab> o <tab> r <tab> <return>

Recent messages:
Loading paren...done
Loading /home/wecuser/elisp/nxml-mode/rng-auto.el (source)...done
For information about GNU Emacs and the GNU system, type C-h C-a.
Mark saved where search started [2 times]
Wrote /home/wecuser/.emacs
Quit
Making completion list... [3 times]
Mark saved where search started
Quit
Making completion list... [2 times]




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

end of thread, other threads:[~2008-05-09 12:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-09 12:32 23.0.60; new frames ignore set-default-font grischka
  -- strict thread matches above, loose matches on Subject: below --
2008-05-09 10:23 Tim Van Holder
2008-04-29 13:01 Jim Hunziker
2008-05-08 11:34 ` Jason Rumney
2008-05-08 22:02   ` Johan Bockgård

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