all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oliver Scholz <alkibiades@gmx.de>
Cc: emacs-devel@gnu.org
Subject: Re: customized default face doesn't work on new frames
Date: Wed, 22 Jan 2003 13:33:08 +0100	[thread overview]
Message-ID: <ufzrl5pq3.fsf@ID-87814.user.dfncis.de> (raw)
In-Reply-To: <E18bHfS-0002Pw-00@fencepost.gnu.org> (Richard Stallman's message of "Wed, 22 Jan 2003 04:59:34 -0500")

Richard Stallman <rms@gnu.org> writes:

>     If you customize the default face, it doesn't take effect on
>     subsequently-created frames, which is surprising.  The code somewhat
>     suggests this is intentional, but I can't see why and the behaviour
>     simply seems wrong.
>
> I think that is a bug.  Where exactly does the code suggest this was
> intentional?
>
> I tried it just now, changing the background of `default' to purple,
> and it did take affect for subsequently created frames--almost.

The behaviour is different for different face attributes. For example
changing the height of the font is not propagated to new frames.

The same is true for the lisp functions:


Work for new frames:

(set-face-attribute 'default nil :foreground "red")
(set-face-attribute 'default nil :background "cyan")


Don't work for new frames:

(set-face-attribute 'default nil :height 240)
(set-face-attribute 'default nil :family "times")

    Oliver
-- 
Oliver Scholz               3 Pluviôse an 211 de la Révolution
Taunusstr. 25               Liberté, Egalité, Fraternité!
60329 Frankfurt a. M.       http://www.jungdemokratenhessen.de
Tel. (069) 97 40 99 42      http://www.jdjl.org

  reply	other threads:[~2003-01-22 12:33 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-20 18:30 customized default face doesn't work on new frames Dave Love
2003-01-22  9:59 ` Richard Stallman
2003-01-22 12:33   ` Oliver Scholz [this message]
2003-01-22 18:52   ` Dave Love
2003-01-24  5:43     ` Richard Stallman

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

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

  git send-email \
    --in-reply-to=ufzrl5pq3.fsf@ID-87814.user.dfncis.de \
    --to=alkibiades@gmx.de \
    --cc=emacs-devel@gnu.org \
    /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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.