unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: emacs-devel@gnu.org
Subject: Re: Dependent colours
Date: Thu, 14 Apr 2022 19:23:38 +0300	[thread overview]
Message-ID: <83pmlj3a7p.fsf@gnu.org> (raw)
In-Reply-To: <87czhjk5h7.fsf@gnus.org> (message from Lars Ingebrigtsen on Thu,  14 Apr 2022 18:13:56 +0200)

> From: Lars Ingebrigtsen <larsi@gnus.org>
> Cc: emacs-devel@gnu.org
> Date: Thu, 14 Apr 2022 18:13:56 +0200
> 
> Eli Zaretskii <eliz@gnu.org> writes:
> 
> > But the result should be a face, right?  
> 
> It could be a face, but not necessarily.  Dynamically creating an SVG
> with a different foreground colour depending on the frame, for instance.

Are there any other examples besides the background of SVG?  Because
the latter is AFAIR very special, and we can now handle it through
faces as well.  So the question is: do we need to do this outside of
the faces realm?  I cannot think of any other case where we use colors
not via faces.

> > So you want an easy-to-use facility to create a face that depends on
> > the background-mode?  Or am I misunderstanding again?  And if I am
> > misunderstanding, can you please describe the use case in more detail?
> 
> defface is easy enough to use if you want to create a face, but here the
> interface we're presenting the user with is tied to colours, not faces.

Interactively or non-interactively?

Anyway, colors in Emacs are face attributes.



  reply	other threads:[~2022-04-14 16:23 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-14 13:00 Dependent colours Lars Ingebrigtsen
2022-04-14 13:36 ` Lars Ingebrigtsen
2022-04-14 14:11   ` Stefan Monnier
2022-04-14 14:14     ` Lars Ingebrigtsen
2022-04-14 14:57       ` [External] : " Drew Adams
2022-04-14 15:26       ` Lars Ingebrigtsen
2022-04-14 13:48 ` Eli Zaretskii
2022-04-14 13:56   ` Lars Ingebrigtsen
2022-04-14 16:10     ` Eli Zaretskii
2022-04-14 16:13       ` Lars Ingebrigtsen
2022-04-14 16:23         ` Eli Zaretskii [this message]
2022-04-15  8:46           ` Lars Ingebrigtsen
2022-04-15  9:32             ` Eli Zaretskii
2022-04-15  9:48               ` Lars Ingebrigtsen
2022-04-15 10:32                 ` Po Lu
2022-04-15 10:37                   ` Lars Ingebrigtsen
2022-04-15 11:12                     ` Po Lu
2022-04-15 10:38                 ` Eli Zaretskii

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83pmlj3a7p.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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).