From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Brian Palmer 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> <847aaaf20411020048201a2419@mail.gmail.com> Reply-To: Brian Palmer 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" , emacs-devel@gnu.org, Brian Palmer , 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: 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 ; 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 ; 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 In-Reply-To: X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-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 wrote: > Brian Palmer 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) # 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.