all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kenichi Handa <handa@m17n.org>
To: David Reitter <david.reitter@gmail.com>, 3408@emacsbugs.donarmstrong.com
Subject: bug#3408: customize-face not working: seems to apply to frame-face
Date: Thu, 28 May 2009 11:12:54 +0900	[thread overview]
Message-ID: <E1M9V70-0008PF-5R@etlken> (raw)
In-Reply-To: <8625E304-B47B-42CF-B7EC-3A6926CE5C4F@gmail.com> (message from David Reitter on Wed, 27 May 2009 20:40:37 -0400)

In article <8625E304-B47B-42CF-B7EC-3A6926CE5C4F@gmail.com>, David Reitter <david.reitter@gmail.com> writes:

> Emacs -Q
> (set-face-attribute 'default nil
> 		    :height 130
> 		    :family "Lucida Grande")
> ;; switches default face

> (customize-face 'default)
> ;; switch back manually to Monaco

> (make-frame-command)  ;; C-x 5 2
> ;; the new frame is shown in the Lucida face.  Why?

> The same thing works as I would expect in Emacs 22.  I would generally  
> assume that `customize-face' applies to faces in future frames as well.

This behaviour is not limitted to font related attributes.

If the arg FRAME is nil, set-face-attribute changes
attributes on all frames plus the default for new frames

But customize-face changes only the attributes of existing
frames.

(face-attribute 'default :background nil) => "#ffffff"
(face-attribute 'default :background t) => unspecified

(set-face-attribute 'default nil :background "gray")

(face-attribute 'default :background nil) => "gray"
(face-attribute 'default :background t) => "gray"

(customize-face 'default) ;; set :background back to "#ffffff"

(face-attribute 'default :background nil) => "#ffffff"
(face-attribute 'default :background t) => "gray"

---
Kenichi Handa
handa@m17n.org





  parent reply	other threads:[~2009-05-28  2:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-27 12:29 customize-face not working? David Reitter
2009-05-28  0:40 ` bug#3408: customize-face not working: seems to apply to frame-face David Reitter
2009-05-28  1:12   ` Glenn Morris
2009-05-28  2:12   ` Kenichi Handa [this message]
2009-05-28  3:08     ` David Reitter
2009-05-28 15:40       ` Drew Adams
  -- strict thread matches above, loose matches on Subject: below --
2009-05-28  4:53 Chong Yidong
2009-05-28 15:40 ` Drew Adams
2009-05-28 17:08   ` Chong Yidong

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=E1M9V70-0008PF-5R@etlken \
    --to=handa@m17n.org \
    --cc=3408@emacsbugs.donarmstrong.com \
    --cc=david.reitter@gmail.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 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.