unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Matthew Leach <matthew@mattleach.net>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: emacs-devel@gnu.org
Subject: Re: RFC Patch: add tty face attributes
Date: Sun, 02 Nov 2014 10:18:16 +0000	[thread overview]
Message-ID: <87d295q51z.fsf@loki.home> (raw)
In-Reply-To: <jwvoasq41e3.fsf-monnier+emacs@gnu.org> (Stefan Monnier's message of "Sun, 02 Nov 2014 01:31:48 -0400")

Hi Stefan,

Stefan Monnier <monnier@iro.umontreal.ca> writes:

>> the Emacs daemon to achieve this.  However, the color schemes that I use
>> on the tty and the windowing system are quite different and I find
>> myself flip-flopping between colors for the background face of
>> hl-sexp-face as it is unreadable when switching to a tty editing session
>> form the windowing-system session.
>
> The usual way to handle these issues is to use a face specification
> which ends up choosing a different color for those two cases (usually
> distinguishing those cases based on specs like `background',
> `min-colors', or `type' (see C-h f defface).

Ah, I didn't know about that.  That was exactly what I was looking for!
Still was a good exercise in getting to know how the faces system works
and writing code with the C api :-).

Thanks,
-- 
Matt



      reply	other threads:[~2014-11-02 10:18 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-02  0:30 RFC Patch: add tty face attributes Matthew Leach
2014-11-02  5:31 ` Stefan Monnier
2014-11-02 10:18   ` Matthew Leach [this message]

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=87d295q51z.fsf@loki.home \
    --to=matthew@mattleach.net \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).