From mboxrd@z Thu Jan  1 00:00:00 1970
Path: main.gmane.org!not-for-mail
From: Brian Palmer <bpalmer@gmail.com>
Newsgroups: gmane.emacs.devel,gmane.emacs.xemacs.beta
Subject: Re: intern-soft, find-face/get-face,
	and facep for determining faces' definedness
Date: Tue, 2 Nov 2004 02:21:10 -0700
Message-ID: <847aaaf20411020121678a0b5c@mail.gmail.com>
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>
Reply-To: Brian Palmer <bpalmer@gmail.com>
NNTP-Posting-Host: deer.gmane.org
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
X-Trace: sea.gmane.org 1099387475 9649 80.91.229.6 (2 Nov 2004 09:24:35 GMT)
X-Complaints-To: usenet@sea.gmane.org
NNTP-Posting-Date: Tue, 2 Nov 2004 09:24:35 +0000 (UTC)
Cc: "Stephen J. Turnbull" <stephen@xemacs.org>, emacs-devel@gnu.org,
	Brian Palmer <bpalmer@rescomp.stanford.edu>, xemacs-beta@xemacs.org
Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Nov 02 10:24:28 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 1COutw-0003bS-00
	for <ged-emacs-devel@m.gmane.org>; Tue, 02 Nov 2004 10:24:28 +0100
Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.33)
	id 1COv1y-0001I2-Hs
	for ged-emacs-devel@m.gmane.org; Tue, 02 Nov 2004 04:32:46 -0500
Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33)
	id 1COuz9-00013K-89
	for emacs-devel@gnu.org; Tue, 02 Nov 2004 04:29:51 -0500
Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33)
	id 1COuz8-00012p-2K
	for emacs-devel@gnu.org; Tue, 02 Nov 2004 04:29:50 -0500
Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.33) id 1COuz7-00012i-Rl
	for emacs-devel@gnu.org; Tue, 02 Nov 2004 04:29:49 -0500
Original-Received: from [216.239.56.248] (helo=mproxy.gmail.com)
	by monty-python.gnu.org with esmtp (Exim 4.34) id 1COur2-0003kE-Sm
	for emacs-devel@gnu.org; Tue, 02 Nov 2004 04:21:29 -0500
Original-Received: by mproxy.gmail.com with SMTP id u52so82569cwc
	for <emacs-devel@gnu.org>; Tue, 02 Nov 2004 01:21:10 -0800 (PST)
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com;
	h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references;
	b=QHG8oRzy8rrUWb/dkQixofxZEldnXZqbkskKy7/Rn+Z2JI8UBP+8dvucvrjAL48bIu9Y8W758i2qaz6mIfiFrDGg1/+4HW6p+jt3tIzmEGfGo8gusFhfJNK+9JpgFun0+jUkkp/JQjIiYxAlaE1HuXdlb8yWv9pQJFZe6+X5Biw=
Original-Received: by 10.11.119.66 with SMTP id r66mr284802cwc;
	Tue, 02 Nov 2004 01:21:10 -0800 (PST)
Original-Received: by 10.11.117.68 with HTTP; Tue, 2 Nov 2004 01:21:10 -0800 (PST)
Original-To: Miles Bader <miles@gnu.org>
In-Reply-To: <buo654ozkhq.fsf@mctpc71.ucom.lsi.nec.co.jp>
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:29303 gmane.emacs.xemacs.beta:16657
X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:29303

On Tue, 02 Nov 2004 18:08:17 +0900, Miles Bader <miles@lsi.nec.co.jp> wrote:
> Brian Palmer <bpalmer@gmail.com> writes:
> > If find-face in emacs didn't return a face object, it wouldn't be
> > doing a very good job of compatibility, now.
> 
> What's a "face object" in Emacs?  [Indeed, what's a "face object" in Xemacs?]

I don't really know.  Some object that contains all of the required
face attributes,
I'm assuming. E.g., 

(get-face 'bold)
#<face bold "Bold text.">

So basically the difference between a buffer and a buffer-name. But I haven't
looked at the C code implementing faces
 
> Given that Xemacs has a differing definition of facep requiring one to
> use `find-face' instead, would an Emacs version:
> 
>    (defun find-face (face) (and (facep face) face))
> 
> do the job?

I think so, as long as emacs allows a face-name everywhere a face is 
permitted.