From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: Re: Font of spawned windows. Date: Thu, 11 May 2006 17:14:51 -0600 Organization: IHS Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1147389392 22619 80.91.229.2 (11 May 2006 23:16:32 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 11 May 2006 23:16:32 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri May 12 01:16:30 2006 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FeKOP-0005EY-7F for geb-bug-gnu-emacs@m.gmane.org; Fri, 12 May 2006 01:16:25 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FeKOO-0007o5-Lf for geb-bug-gnu-emacs@m.gmane.org; Thu, 11 May 2006 19:16:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FeKNp-0007am-Ss for bug-gnu-emacs@gnu.org; Thu, 11 May 2006 19:15:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FeKNo-0007aN-Cd for bug-gnu-emacs@gnu.org; Thu, 11 May 2006 19:15:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FeKNo-0007aK-8Z for bug-gnu-emacs@gnu.org; Thu, 11 May 2006 19:15:48 -0400 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FeKPQ-0001zq-1z for bug-gnu-emacs@gnu.org; Thu, 11 May 2006 19:17:28 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1FeKNd-00059i-8D for bug-gnu-emacs@gnu.org; Fri, 12 May 2006 01:15:37 +0200 Original-Received: from 207.167.42.206 ([207.167.42.206]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 May 2006 01:15:37 +0200 Original-Received: from ihs_4664 by 207.167.42.206 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 May 2006 01:15:37 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Lines: 40 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.206 User-Agent: Thunderbird 1.5.0.2 (Windows/20060308) In-Reply-To: X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15085 Archived-At: Donald A. Pellegrino Jr. wrote: > I have added "(set-default-font "fontset-standard")" to my .emacs > file. This allows me to use the standard fontset when I open a new > Emacs session via X11. When I use C-x 5 2 the new window that is > opened uses the default fontset rather than the standard fontset. I > expected the new window to use the same font as the window that > created it. Obviously this is not a critical bug but I believe it > would be a nice enhancement to have new windows use the same font as > the window that creates them. I would be happy to work on this if > someone could direct me to the proper source file. No need to work on it, it is not a bug at all but a documented feature that you might have overlooked when reading the function's doc string: ,----[ C-h f set-default-font RET ] | set-default-font is an alias for `set-frame-font' in `frame.el'. | (set-default-font font-name &optional keep-size) | | Set the font of the selected frame to font-name. ^^^^^^^^^^^^^^^^^^^^^ That's the key phrase. When your .emacs file is loaded, the selected frame is the initial frame. The way to affect all frames would be to set the default-frame-alist variable (or an X resource). | When called interactively, prompt for the name of the font to use. | To get the frame's current default font, use `frame-parameters'. | | The default behavior is to keep the numbers of lines and columns in | the frame, thus may change its pixel size. If optional keep-size is | non-nil (interactively, prefix argument) the current frame size (in | pixels) is kept by adjusting the numbers of the lines and columns. | | [back] `---- -- Kevin