emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: new *Help* argument highlighting


From: Juanma Barranquero
Subject: Re: new *Help* argument highlighting
Date: Tue, 11 May 2004 20:30:05 +0200

On Tue, 11 May 2004 10:51:47 -0600, Kevin Rodgers <address@hidden> 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]