From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Default DISPLAY of custom-set-faces SPECs Date: Tue, 02 Feb 2010 09:54:20 +0100 Message-ID: <87aavs6mrn.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1265101296 20455 80.91.229.12 (2 Feb 2010 09:01:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 2 Feb 2010 09:01:36 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Feb 02 10:01:34 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NcEdZ-0003l8-Ho for ged-emacs-devel@m.gmane.org; Tue, 02 Feb 2010 10:01:33 +0100 Original-Received: from localhost ([127.0.0.1]:60894 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcEdY-0008Uw-Va for ged-emacs-devel@m.gmane.org; Tue, 02 Feb 2010 04:01:33 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcEWh-00049J-JI for emacs-devel@gnu.org; Tue, 02 Feb 2010 03:54:27 -0500 Original-Received: from [199.232.76.173] (port=33110 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcEWe-00046M-Ty for emacs-devel@gnu.org; Tue, 02 Feb 2010 03:54:24 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NcEWc-0007yj-W3 for emacs-devel@gnu.org; Tue, 02 Feb 2010 03:54:24 -0500 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]:4363) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NcEWc-0007yA-6o for emacs-devel@gnu.org; Tue, 02 Feb 2010 03:54:22 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 0C7C378A33C8 for ; Tue, 2 Feb 2010 09:54:21 +0100 (CET) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07211-08 for ; Tue, 2 Feb 2010 09:54:20 +0100 (CET) X-CHKRCPT: Envelopesender noch tassilo@member.fsf.org Original-Received: from thinkpad.tsdh.de (dhcp145.uni-koblenz.de [141.26.71.145]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 5129D78A0C8D for ; Tue, 2 Feb 2010 09:54:20 +0100 (CET) Mail-Copies-To: never Mail-Followup-To: emacs-devel@gnu.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:120814 Archived-At: Hi all, I have some problems with customize-face. I always fire up an emacs instance with an X frame in the morning, and thereafter I use emacsclient for both X (white bg, black fg) and terminals (black bg, white fg). Now, I customized some faces in an X frame (like changing the background of hl-line face), and after opening a terminal frame I can see that I cannot see anything: in the terminal frame, I have a white foreground on a white background. The reason is that emacs uses `t' as DISPLAY in the relevant SPEC of `custom-set-faces'. Since my terminal has only 8 colors according to `list-colors-display' and the emacs defaults are pretty good in that circumstances, I'd like to make all my face customizations only take effect in X frames. I did that by replacing `t' with `((type x))' in all SPECs. Is it possible to teach `customize-face' to use that as default value, so that all my face configs apply only to X frames? Bye, Tassilo