From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juanma Barranquero Newsgroups: gmane.emacs.devel Subject: Re: new *Help* argument highlighting Date: Tue, 11 May 2004 20:30:05 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <20040511202736.6066.LEKTU@mi.madritel.es> References: <20040510223059.AE6F.LEKTU@mi.madritel.es> <40A104A3.4020607@yahoo.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 1084300863 28837 80.91.224.253 (11 May 2004 18:41:03 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 May 2004 18:41:03 +0000 (UTC) Cc: Kevin Rodgers Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue May 11 20:40:54 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BNcBS-00071u-00 for ; Tue, 11 May 2004 20:40:54 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BNcBR-0002VG-00 for ; Tue, 11 May 2004 20:40:54 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BNc9y-0003Mc-Kl for emacs-devel@quimby.gnus.org; Tue, 11 May 2004 14:39:22 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.34) id 1BNc9W-0003Lc-L6 for emacs-devel@gnu.org; Tue, 11 May 2004 14:38:54 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.34) id 1BNc8z-0003EN-9I for emacs-devel@gnu.org; Tue, 11 May 2004 14:38:53 -0400 Original-Received: from [62.81.186.16] (helo=smtp06.retemail.es) by monty-python.gnu.org with esmtp (Exim 4.34) id 1BNc12-0002CO-Lu for emacs-devel@gnu.org; Tue, 11 May 2004 14:30:09 -0400 Original-Received: from [127.0.0.1] ([213.37.34.95]) by smtp06.retemail.es (InterMail vM.5.01.05.32 201-253-122-126-132-20030307) with ESMTP id <20040511183005.WAHE22925.smtp06.retemail.es@[127.0.0.1]>; Tue, 11 May 2004 20:30:05 +0200 Original-To: emacs-devel@gnu.org In-Reply-To: <40A104A3.4020607@yahoo.com> X-Mailer: Becky! ver. 2.09.01 [en] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:23167 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:23167 On Tue, 11 May 2004 10:51:47 -0600, Kevin Rodgers wrote: > No, you just need to check (face-differs-from-default-p > 'help-argument-name) before downcasing the argument. Nice, I didn't know about f-d-f-d-p until David and you mentioned it. But still, I don't seem to be able to return a face to a non-differing state. ELISP> (defface test1-face '() "") test1-face ELISP> (face-differs-from-default-p 'test1-face) nil ELISP> (defface test2-face '((t (:slant italic))) "") test2-face ELISP> (face-differs-from-default-p 'test2-face) t ELISP> (set-face-attribute 'test2-face nil :slant 'unspecified :family 'unspecified) nil ELISP> (face-differs-from-default-p 'test2-face) t ELISP> and describe-face for test2-face shows "family or font: nil". Any idea what I'm doing wrong? /L/e/k/t/u