From mboxrd@z Thu Jan  1 00:00:00 1970
Path: main.gmane.org!not-for-mail
From: Stefan Monnier <monnier@iro.umontreal.ca>
Newsgroups: gmane.emacs.devel,gmane.emacs.xemacs.beta
Subject: Re: intern-soft, find-face/get-face, and facep for determining
 faces' definedness
Date: Wed, 03 Nov 2004 09:15:36 -0500
Message-ID: <jwv7jp3t3wv.fsf-monnier+emacs@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>
	<E1CPKVZ-0000vI-4N@fencepost.gnu.org>
NNTP-Posting-Host: deer.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: sea.gmane.org 1099491396 9822 80.91.229.6 (3 Nov 2004 14:16:36 GMT)
X-Complaints-To: usenet@sea.gmane.org
NNTP-Posting-Date: Wed, 3 Nov 2004 14:16:36 +0000 (UTC)
Cc: bpalmer@gmail.com, xemacs-beta@xemacs.org, emacs-devel@gnu.org,
	stephen@xemacs.org, bpalmer@rescomp.stanford.edu, miles@gnu.org
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Nov 03 15:16:23 2004
Return-path: <emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org>
Original-Received: from lists.gnu.org ([199.232.76.165])
	by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian))
	id 1CPLvz-0006e0-00
	for <ged-emacs-devel@m.gmane.org>; Wed, 03 Nov 2004 15:16:23 +0100
Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.33)
	id 1CPM45-0000S5-KM
	for ged-emacs-devel@m.gmane.org; Wed, 03 Nov 2004 09:24:45 -0500
Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33)
	id 1CPM3w-0000S0-Oe
	for emacs-devel@gnu.org; Wed, 03 Nov 2004 09:24:36 -0500
Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33)
	id 1CPM3w-0000Rm-9b
	for emacs-devel@gnu.org; Wed, 03 Nov 2004 09:24:36 -0500
Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.33) id 1CPM3w-0000Rj-63
	for emacs-devel@gnu.org; Wed, 03 Nov 2004 09:24:36 -0500
Original-Received: from [132.204.24.67] (helo=mercure.iro.umontreal.ca)
	by monty-python.gnu.org with esmtp (Exim 4.34)
	id 1CPLvQ-0000CM-7c; Wed, 03 Nov 2004 09:15:48 -0500
Original-Received: from hidalgo.iro.umontreal.ca (hidalgo.iro.umontreal.ca
	[132.204.27.50]) by mercure.iro.umontreal.ca (Postfix) with ESMTP
	id E58AE828317; Wed,  3 Nov 2004 09:15:47 -0500 (EST)
Original-Received: from asado.iro.umontreal.ca (asado.iro.umontreal.ca [132.204.24.84])
	by hidalgo.iro.umontreal.ca (Postfix) with ESMTP
	id C0F7B4AC8BB; Wed,  3 Nov 2004 09:15:36 -0500 (EST)
Original-Received: by asado.iro.umontreal.ca (Postfix, from userid 20848)
	id 4D10A8CA69; Wed,  3 Nov 2004 09:15:36 -0500 (EST)
Original-To: rms@gnu.org
In-Reply-To: <E1CPKVZ-0000vI-4N@fencepost.gnu.org> (Richard Stallman's
	message of "Wed, 03 Nov 2004 07:45:01 -0500")
User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)
X-DIRO-MailScanner-Information: Please contact the ISP for more information
X-DIRO-MailScanner: Found to be clean
X-DIRO-MailScanner-SpamCheck: n'est pas un polluriel, SpamAssassin (score=0,
	requis 5)
X-MailScanner-From: monnier@iro.umontreal.ca
X-BeenThere: emacs-devel@gnu.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: "Emacs development discussions." <emacs-devel.gnu.org>
List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=unsubscribe>
List-Archive: <http://lists.gnu.org/pipermail/emacs-devel>
List-Post: <mailto:emacs-devel@gnu.org>
List-Help: <mailto:emacs-devel-request@gnu.org?subject=help>
List-Subscribe: <http://lists.gnu.org/mailman/listinfo/emacs-devel>,
	<mailto:emacs-devel-request@gnu.org?subject=subscribe>
Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org
Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org
Xref: main.gmane.org gmane.emacs.devel:29386 gmane.emacs.xemacs.beta:16676
X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29386

>     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.

Yes, that's what happens under Emacs.  I was talking about XEmacs, tho.


        Stefan