From mboxrd@z Thu Jan  1 00:00:00 1970
Path: main.gmane.org!not-for-mail
From: Richard Stallman <rms@gnu.org>
Newsgroups: gmane.emacs.xemacs.beta,gmane.emacs.devel
Subject: Re: intern-soft, find-face/get-face, and facep for determining
 faces' definedness
Date: Wed, 03 Nov 2004 07:45:01 -0500
Message-ID: <E1CPKVZ-0000vI-4N@fencepost.gnu.org>
References: <0whwtx5meng.fsf@rescomp.Stanford.EDU.i-did-not-set--mail-host-address--so-tickle-me>
	<87k6t4rd5b.fsf@tleepslib.sk.tsukuba.ac.jp>
	<847aaaf204110123282bb4ddd8@mail.gmail.com>
	<buofz3szobh.fsf@mctpc71.ucom.lsi.nec.co.jp>
	<847aaaf20411020048201a2419@mail.gmail.com>
	<buo654ozkhq.fsf@mctpc71.ucom.lsi.nec.co.jp>
	<87mzy0pl0o.fsf@tleepslib.sk.tsukuba.ac.jp>
	<m1is8oh3qq.fsf-monnier+emacs@gnu.org>
Reply-To: rms@gnu.org
NNTP-Posting-Host: deer.gmane.org
X-Trace: sea.gmane.org 1099486223 26916 80.91.229.6 (3 Nov 2004 12:50:23 GMT)
X-Complaints-To: usenet@sea.gmane.org
NNTP-Posting-Date: Wed, 3 Nov 2004 12:50:23 +0000 (UTC)
Cc: xemacs-beta@xemacs.org, emacs-devel@gnu.org, stephen@xemacs.org,
        bpalmer@rescomp.stanford.edu, miles@gnu.org
Original-X-From: xemacs-beta-bounces@xemacs.org Wed Nov 03 13:50:14 2004
Return-path: <xemacs-beta-bounces@xemacs.org>
Original-Received: from gwyn.tux.org ([199.184.165.135] ident=ident-user)
	by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian))
	id 1CPKac-0000G4-00
	for <gexb-xemacs-beta@gmane.org>; Wed, 03 Nov 2004 13:50:14 +0100
Original-Received: from gwyn.tux.org (ident-user@localhost.localdomain [127.0.0.1])
	by gwyn.tux.org (8.12.11/8.12.11) with ESMTP id iA3Ckb4v010532;
	Wed, 3 Nov 2004 07:46:38 -0500
Original-Received: from gwyn.tux.org (ident-user@localhost.localdomain [127.0.0.1])
	by gwyn.tux.org (8.12.11/8.12.11) with ESMTP id iA3CkZ2q010522
	for <xemacs-beta-mailman@xemacs.org>; Wed, 3 Nov 2004 07:46:35 -0500
Original-Received: (from xemacweb@localhost)
	by gwyn.tux.org (8.12.11/8.12.11/Submit) id iA3CkZX5010519
	for xemacs-beta-mailman@xemacs.org; Wed, 3 Nov 2004 07:46:35 -0500
Original-Received: from gwyn.tux.org (ident-user@localhost.localdomain [127.0.0.1])
	by gwyn.tux.org (8.12.11/8.12.11) with ESMTP id iA3CkQ1u010485
	for <xemacweb@tux.org>; Wed, 3 Nov 2004 07:46:26 -0500
Original-Received: (from mailnull@localhost)
	by gwyn.tux.org (8.12.11/8.12.11/Submit) id iA3CkQU4010483
	for xemacweb@tux.org; Wed, 3 Nov 2004 07:46:26 -0500
Original-Received: from fencepost.gnu.org (fencepost.gnu.org [199.232.76.164])
	by gwyn.tux.org (8.12.11/8.12.11) with ESMTP id iA3CkPxI010477;
	Wed, 3 Nov 2004 07:46:26 -0500
Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34)
	id 1CPKVZ-0000vI-4N; Wed, 03 Nov 2004 07:45:01 -0500
Original-To: Stefan <monnier@iro.umontreal.ca>
In-reply-to: <m1is8oh3qq.fsf-monnier+emacs@gnu.org> (message from Stefan on
	Tue, 02 Nov 2004 07:01:49 -0500)
Received-SPF: pass (gwyn.tux.org: localhost is always allowed.)
Received-SPF: pass (gwyn.tux.org: localhost is always allowed.)
Received-SPF: pass (gwyn.tux.org: localhost is always allowed.)
Received-SPF: pass (gwyn.tux.org: domain of rms@gnu.org designates
	199.232.76.164 as permitted sender)
X-Virus-Scanned: clamd / ClamAV version devel-20040527, clamav-milter version 0.71c
	on gwyn.tux.org
X-Virus-Scanned: clamd / ClamAV version devel-20040527,
	clamav-milter version 0.71c on gwyn.tux.org
X-Virus-Scanned: clamd / ClamAV version devel-20040527,
	clamav-milter version 0.71c on gwyn.tux.org
X-Virus-Scanned: clamd / ClamAV version devel-20040527,
	clamav-milter version 0.71c on gwyn.tux.org
X-Virus-Status: Clean
X-Virus-Status: Clean
X-Virus-Status: Clean
X-Virus-Status: Clean
X-XEmacs-List: beta
X-BeenThere: xemacs-beta@xemacs.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: XEmacs Beta Testers <xemacs-beta.xemacs.org>
List-Unsubscribe: <http://lists.xemacs.org/lists/listinfo/xemacs-beta>,
	<mailto:xemacs-beta-request@xemacs.org?subject=unsubscribe>
List-Post: <mailto:xemacs-beta@xemacs.org>
List-Help: <mailto:xemacs-beta-request@xemacs.org?subject=help>
List-Subscribe: <http://lists.xemacs.org/lists/listinfo/xemacs-beta>,
	<mailto:xemacs-beta-request@xemacs.org?subject=subscribe>
Original-Sender: xemacs-beta-bounces@xemacs.org
Errors-To: xemacs-beta-bounces@xemacs.org
Xref: main.gmane.org gmane.emacs.xemacs.beta:16674 gmane.emacs.devel:29379
X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29379

    I still don't understand why (facep 'foo) returns nil, even though

       (put-text-property (point) (+ 10 (point)) 'face 'foo)
    and
       (set-face-foreground 'foo "red")

    work just fine.

I don't understand what you mean here.  As far as I know, if (facep
'foo) returns nil, then (set-face-foreground 'foo "red") will signal
an error, "Invalid face".  Conversely, if you define foo as face, then
(facep 'foo) will return t.