From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.help Subject: Re: setting the font in .emacs Date: Tue, 24 Sep 2002 20:58:28 +0200 Organization: Olymp Sender: help-gnu-emacs-admin@gnu.org Message-ID: References: <874rchernd.fsf@smtp.blueyonder.co.uk> <87hegh0xjr.fsf@smtp.blueyonder.co.uk> <87znu7wi05.fsf@smtp.blueyonder.co.uk> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1032888379 13930 127.0.0.1 (24 Sep 2002 17:26:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 24 Sep 2002 17:26:19 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17ttRy-0003cX-00 for ; Tue, 24 Sep 2002 19:26:18 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17ttS1-0000Y8-00; Tue, 24 Sep 2002 13:26:21 -0400 Original-Path: shelby.stanford.edu!nntp.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!dialin-145-254-201-061.arcor-ip.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: dialin-145-254-201-061.arcor-ip.net (145.254.201.61) Original-X-Trace: fu-berlin.de 1032887863 8291648 145.254.201.61 (16 [87814]) X-Orig-Path: hermes!nobody X-Operating-System: GNU/Linux, built from scratch: http://www.linuxfromscratch.org/ X-Attribution: os X-Face: "HgH2sgK|bfH$;PiOJI6|qUCf.ve<51_Od(%ynHr?=>znn#~#oS>",F%B8&\vus),2AsPYb -n>PgddtGEn}s7kH?7kH{P_~vu?]OvVN^qD(L)>G^gDCl(U9n{:d>'DkilN!_K"eNzjrtI4Ya6;Td% IZGMbJ{lawG+'J>QXPZD&TwWU@^~A}f^zAb[Ru;CT(UA]c& User-Agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.3.50 (i686-pc-linux-gnu) Cancel-Lock: sha1:lY7kgK7oe8TJL9x841x9S81yQ+o= Original-Xref: nntp.stanford.edu gnu.emacs.help:105247 Original-To: help-gnu-emacs@gnu.org Errors-To: help-gnu-emacs-admin@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.help:1801 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:1801 Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes: > Keith O'Connell writes: > >> I know I said perfect, but that was a little premature. When the emacs >> window is opened it comes up with the face font specified in the >> command above, however if you spawn another window with C-x 5 2, it >> comes up with the original font. > > (add-to-list 'default-frame-alist '(font . "your-font-name-here")) > > I think this works without conditionals. My bad, I don't use `set-face-font' myself, I should have checked that it works correctly. But I am puzzled. Both `set-face-font' and `set-face-foreground' work by calling `set-face-attribute'. But the former, when applied to the default face, changes the attribute in question _not_ for future frames, while the latter does. Why the difference? -- Oliver -- 3 Vendémiaire an 211 de la Révolution Liberté, Egalité, Fraternité!