unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Making text invisible
@ 2005-12-31 20:37 Bill Wohler
  0 siblings, 0 replies; 2+ messages in thread
From: Bill Wohler @ 2005-12-31 20:37 UTC (permalink / raw)


I'd like to make some text invisible. I do want to use defface since
the user might not want this text to be invisible. I just want the
default to be invisible.

One thing I thought of was to define the text's face with the same
foreground as the default's background, as in:

    (defface mh-folder-sent-to-me-hint
      '((t
         (:foreground (face-attribute 'default :background)))))

Unfortunately, defface expects the color to be a string.

Thoughts?

-- 
Bill Wohler <wohler@newt.com>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and MH-E. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Making text invisible
       [not found] <mailman.20996.1136061548.20277.help-gnu-emacs@gnu.org>
@ 2005-12-31 21:30 ` David Kastrup
  0 siblings, 0 replies; 2+ messages in thread
From: David Kastrup @ 2005-12-31 21:30 UTC (permalink / raw)


Bill Wohler <wohler@newt.com> writes:

> I'd like to make some text invisible. I do want to use defface since
> the user might not want this text to be invisible. I just want the
> default to be invisible.
>
> One thing I thought of was to define the text's face with the same
> foreground as the default's background, as in:
>
>     (defface mh-folder-sent-to-me-hint
>       '((t
>          (:foreground (face-attribute 'default :background)))))
>
> Unfortunately, defface expects the color to be a string.
>
> Thoughts?

(defface mh-folder-sent-to-me-hint
  `((t
      (:foreground ,(face-attribute 'default :background)))))

That takes the current default background color.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-12-31 21:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-31 20:37 Making text invisible Bill Wohler
     [not found] <mailman.20996.1136061548.20277.help-gnu-emacs@gnu.org>
2005-12-31 21:30 ` David Kastrup

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).