unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Chong Yidong <cyd@gnu.org>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: 11059@debbugs.gnu.org
Subject: bug#11059: 24.0.94; Please add `face-spec-set' to the elisp manual
Date: Thu, 12 Apr 2012 15:00:11 +0800	[thread overview]
Message-ID: <87aa2hwi2s.fsf@gnu.org> (raw)
In-Reply-To: <86bomyyzaf.fsf@web.de> (Michael Heerdegen's message of "Wed, 11 Apr 2012 19:05:28 +0200")

Michael Heerdegen <michael_heerdegen@web.de> writes:

> I know that I _can_ use `custom-set-faces' explicitly in .emacs for this
> purpose - that works.  But is this really the right function for users
> to use in their .emacs to redefine faces?

If you want your changes to play nicely with the Custom interface, you
should use `custom-set-faces'.

Obviously, code in .emacs is allowed to do anything.  So for example if
you really don't want to use `custom-set-faces', you could set the
`face-defface-spec' symbol property directly.  But this will cause the
original spec to be lost, and also you have to make sure that the face
has already been defined with defface, i.e. it's listed in
`face-new-frame-defaults' etc.

> If yes, the manual section "Faces" should at least mention it.

I'll see what I can do.





  reply	other threads:[~2012-04-12  7:00 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-21 23:35 bug#11059: 24.0.94; Please add `face-spec-set' to the elisp manual Michael Heerdegen
2012-04-11  6:08 ` Chong Yidong
2012-04-11 17:05   ` Michael Heerdegen
2012-04-12  7:00     ` Chong Yidong [this message]
2012-04-12 13:10       ` Stefan Monnier
2012-04-12 14:17         ` Drew Adams
2012-04-12 15:13         ` Chong Yidong
2012-04-12 16:04           ` Stefan Monnier
2012-04-12 15:14       ` 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

  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=87aa2hwi2s.fsf@gnu.org \
    --to=cyd@gnu.org \
    --cc=11059@debbugs.gnu.org \
    --cc=michael_heerdegen@web.de \
    /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).