From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/53663 Path: main.gmane.org!not-for-mail From: Simon Josefsson Newsgroups: gmane.emacs.gnus.general Subject: Re: defface/defcustom question Date: Sat, 09 Aug 2003 03:54:30 +0200 Sender: ding-owner@lists.math.uh.edu Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1060394121 26895 80.91.224.253 (9 Aug 2003 01:55:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 9 Aug 2003 01:55:21 +0000 (UTC) Original-X-From: ding-owner+M2207@lists.math.uh.edu Sat Aug 09 03:55:47 2003 Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 19lIxP-0008V2-00 for ; Sat, 09 Aug 2003 03:55:47 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19lIwL-0000h1-00; Fri, 08 Aug 2003 20:54:41 -0500 Original-Received: from sclp3.sclp.com ([64.157.176.121]) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 19lIwE-0000gv-00 for ding@lists.math.uh.edu; Fri, 08 Aug 2003 20:54:34 -0500 Original-Received: (qmail 9206 invoked by alias); 9 Aug 2003 01:54:33 -0000 Original-Received: (qmail 9201 invoked from network); 9 Aug 2003 01:54:33 -0000 Original-Received: from 178.230.13.217.in-addr.dgcsystems.net (HELO yxa.extundo.com) (217.13.230.178) by sclp3.sclp.com with SMTP; 9 Aug 2003 01:54:33 -0000 Original-Received: from latte.josefsson.org (yxa.extundo.com [217.13.230.178]) (authenticated bits=0) by yxa.extundo.com (8.12.9/8.12.9) with ESMTP id h791sUdk001015 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK) for ; Sat, 9 Aug 2003 03:54:30 +0200 Original-To: ding@gnus.org Mail-Copies-To: nobody X-Payment: hashcash 1.2 0:030809:ding@gnus.org:2761cd6bb31a5347 X-Hashcash: 0:030809:ding@gnus.org:2761cd6bb31a5347 In-Reply-To: (Jesper Harder's message of "Sat, 09 Aug 2003 00:15:41 +0200") User-Agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux) Precedence: bulk Xref: main.gmane.org gmane.emacs.gnus.general:53663 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:53663 Jesper Harder writes: > In some places Gnus faces are defined both with `defface' _and_ > `defcustom'. E.g. > > ,---- > | (defface gnus-server-opened-face > | '((((class color) (background light)) (:foreground "Green3" :bold t)) > | (((class color) (background dark)) (:foreground "Green1" :bold t)) > | (t (:bold t))) > | "Face used for displaying OPENED servers" > | :group 'gnus-server-visual) > | > | [...] > | > | (defcustom gnus-server-opened-face 'gnus-server-opened-face > | "Face name to use on OPENED servers." > | :group 'gnus-server-visual > | :type 'face) > `---- > > This means that the face shows up twice when you use Customize. It > looks like a mistake to me ... or is there a reason for doing it? Aren't variables and faces different things? The variable identifies the name of the face to use, and the face define the actual face. An extra indirection. Compare the ':type face' documentation: `face' The value must be a symbol which is a face name, and you can do completion with `M-'.