From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Matthew Leach Newsgroups: gmane.emacs.devel Subject: Re: RFC Patch: add tty face attributes Date: Sun, 02 Nov 2014 10:18:16 +0000 Message-ID: <87d295q51z.fsf@loki.home> References: <878ujuzbo0.fsf@loki.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1414933647 15098 80.91.229.3 (2 Nov 2014 13:07:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Nov 2014 13:07:27 +0000 (UTC) Cc: emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 02 14:07:20 2014 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XkusJ-000079-1b for ged-emacs-devel@m.gmane.org; Sun, 02 Nov 2014 14:07:19 +0100 Original-Received: from localhost ([::1]:57157 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XkusI-000391-Iy for ged-emacs-devel@m.gmane.org; Sun, 02 Nov 2014 08:07:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:39127) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XksEv-0002WF-Kd for emacs-devel@gnu.org; Sun, 02 Nov 2014 05:18:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XksEp-0007KM-Hc for emacs-devel@gnu.org; Sun, 02 Nov 2014 05:18:29 -0500 Original-Received: from mx0.mattleach.net ([176.58.118.143]:40236) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XksEp-0007KH-Bs for emacs-devel@gnu.org; Sun, 02 Nov 2014 05:18:23 -0500 Original-Received: by mx0.mattleach.net (Postfix, from userid 99) id 870C82BB3C6; Sun, 2 Nov 2014 10:18:22 +0000 (GMT) Original-Received: from loki.home.mattleach.net (host86-171-121-249.range86-171.btcentralplus.com [86.171.121.249]) by mx0.mattleach.net (Postfix) with ESMTPSA id C2A0C2BB3C4; Sun, 2 Nov 2014 10:18:17 +0000 (GMT) In-Reply-To: (Stefan Monnier's message of "Sun, 02 Nov 2014 01:31:48 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 176.58.118.143 X-Mailman-Approved-At: Sun, 02 Nov 2014 08:07:05 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:176233 Archived-At: Hi Stefan, Stefan Monnier 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