From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: RFC Patch: add tty face attributes Date: Sun, 02 Nov 2014 01:31:48 -0400 Message-ID: References: <878ujuzbo0.fsf@loki.home> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1414906335 1388 80.91.229.3 (2 Nov 2014 05:32:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 2 Nov 2014 05:32:15 +0000 (UTC) Cc: emacs-devel@gnu.org To: Matthew Leach Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 02 06:32:08 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 1Xknln-0004Fv-3F for ged-emacs-devel@m.gmane.org; Sun, 02 Nov 2014 06:32:07 +0100 Original-Received: from localhost ([::1]:55150 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xknlm-0001np-Lc for ged-emacs-devel@m.gmane.org; Sun, 02 Nov 2014 01:32:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38591) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xknld-0001mg-5V for emacs-devel@gnu.org; Sun, 02 Nov 2014 01:32:04 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XknlV-0005s3-NB for emacs-devel@gnu.org; Sun, 02 Nov 2014 01:31:57 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:36296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XknlV-0005ri-KU for emacs-devel@gnu.org; Sun, 02 Nov 2014 01:31:49 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Au4MAOatTlRFpY87/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBAwFWIwULCzQSFBgNJIhLCctyAQEBAQYCAR+RCAeESwWyIIFvhBQhgnoBAQE X-IPAS-Result: Au4MAOatTlRFpY87/2dsb2JhbABcgw6DYoZ+y1MEAgKBHBcBAXyEAwEBAwFWIwULCzQSFBgNJIhLCctyAQEBAQYCAR+RCAeESwWyIIFvhBQhgnoBAQE X-IronPort-AV: E=Sophos;i="5.04,797,1406606400"; d="scan'208";a="95779695" Original-Received: from 69-165-143-59.dsl.teksavvy.com (HELO ceviche.home) ([69.165.143.59]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 02 Nov 2014 01:31:49 -0400 Original-Received: by ceviche.home (Postfix, from userid 20848) id DBF2466108; Sun, 2 Nov 2014 01:31:48 -0400 (EDT) In-Reply-To: <878ujuzbo0.fsf@loki.home> (Matthew Leach's message of "Sun, 02 Nov 2014 00:30:39 +0000") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 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:176231 Archived-At: > 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). Is there a reason you can't use such an approach? Stefan