From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Tim Van Holder" Newsgroups: gmane.emacs.devel Subject: Re: 23.0.60; new frames ignore set-default-font Date: Fri, 9 May 2008 12:23:15 +0200 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1210328636 30398 80.91.229.12 (9 May 2008 10:23:56 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 9 May 2008 10:23:56 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Jason Rumney" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri May 09 12:24:31 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JuPlz-0008OJ-Be for ged-emacs-devel@m.gmane.org; Fri, 09 May 2008 12:24:19 +0200 Original-Received: from localhost ([127.0.0.1]:41096 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JuPlG-00026N-Vu for ged-emacs-devel@m.gmane.org; Fri, 09 May 2008 06:23:35 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JuPlB-00025f-5r for emacs-devel@gnu.org; Fri, 09 May 2008 06:23:29 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JuPl9-00025C-5M for emacs-devel@gnu.org; Fri, 09 May 2008 06:23:27 -0400 Original-Received: from [199.232.76.173] (port=37898 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JuPl8-00024w-1D for emacs-devel@gnu.org; Fri, 09 May 2008 06:23:26 -0400 Original-Received: from yw-out-1718.google.com ([74.125.46.153]:25191) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JuPl7-0000vX-Nu for emacs-devel@gnu.org; Fri, 09 May 2008 06:23:25 -0400 Original-Received: by yw-out-1718.google.com with SMTP id 9so829951ywk.66 for ; Fri, 09 May 2008 03:23:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; bh=MVF98BjJJQMSy3aYt0C9hahEKPJ5dBP++a4kJh6cde4=; b=CQTjFGHi3JwaFfBVr1AawfOR7wpprbHFwVazJZ2GcPOs8eWLkEZ+KrxnlfT5A6vDGHTZTMLQIHhjXGMylCQrcbpGQJazQS8wc6/5E4I8rmnllooPHnYBexQqwz1L8R3ESSTdVK2/7/9brkTZ8xVNWT8JIhCG+QDkmDsIMMwz+Y8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type:content-transfer-encoding:content-disposition; b=PhBdITtlAQlAHdVDZ6n9a48EvTR3ia7QNHxe/Oiqg1z1MDz8eSQVEBKRWPc96iBzAAdp8yj/iV6J3k3VJYGojUeUJTlGNpgTfgrFut1Pah13oNty51D1E7DOTpBc9X/ZebEb6cDAHYd+NaH9JXSEvtJ0yhwnF5q1IZH6HRG6iyo= Original-Received: by 10.150.50.2 with SMTP id x2mr4662136ybx.34.1210328595636; Fri, 09 May 2008 03:23:15 -0700 (PDT) Original-Received: by 10.150.151.8 with HTTP; Fri, 9 May 2008 03:23:15 -0700 (PDT) Content-Disposition: inline X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:96870 Archived-At: 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).