unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Font of spawned windows.
Date: Thu, 11 May 2006 17:14:51 -0600	[thread overview]
Message-ID: <e40gil$luh$1@sea.gmane.org> (raw)
In-Reply-To: <E1FeIRF-0004Hv-9C@lists.gnu.org>

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

      reply	other threads:[~2006-05-11 23:14 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-11 21:11 Font of spawned windows Donald A. Pellegrino Jr.
2006-05-11 23:14 ` Kevin Rodgers [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='e40gil$luh$1@sea.gmane.org' \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).