From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: Customizing faces Date: Sat, 14 Nov 2015 07:01:45 -0800 (PST) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1447557399 28973 80.91.229.3 (15 Nov 2015 03:16:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 15 Nov 2015 03:16:39 +0000 (UTC) To: Random832 , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Nov 15 04:16:28 2015 Return-path: Envelope-to: geh-help-gnu-emacs@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 1Zxnnm-0000F6-EJ for geh-help-gnu-emacs@m.gmane.org; Sun, 15 Nov 2015 04:16:26 +0100 Original-Received: from localhost ([::1]:39396 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zxnnl-0003cE-OE for geh-help-gnu-emacs@m.gmane.org; Sat, 14 Nov 2015 22:16:25 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:40550) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxcKv-0005bA-0l for help-gnu-emacs@gnu.org; Sat, 14 Nov 2015 10:01:54 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZxcKq-0000yH-SI for help-gnu-emacs@gnu.org; Sat, 14 Nov 2015 10:01:52 -0500 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:34313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxcKq-0000y7-Mp for help-gnu-emacs@gnu.org; Sat, 14 Nov 2015 10:01:48 -0500 Original-Received: from aserv0021.oracle.com (aserv0021.oracle.com [141.146.126.233]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id tAEF1jm7003561 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Sat, 14 Nov 2015 15:01:46 GMT Original-Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by aserv0021.oracle.com (8.13.8/8.13.8) with ESMTP id tAEF1jaj030695 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL); Sat, 14 Nov 2015 15:01:45 GMT Original-Received: from abhmp0001.oracle.com (abhmp0001.oracle.com [141.146.116.7]) by userv0122.oracle.com (8.13.8/8.13.8) with ESMTP id tAEF1jP1013093; Sat, 14 Nov 2015 15:01:45 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6691.5000 (x86)] X-Source-IP: aserv0021.oracle.com [141.146.126.233] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:108069 Archived-At: > In using customize-face to set face attributes depending on display > properties: >=20 > A) Is it possible to have multiple attribute lists that each apply if > the display matches? Like "On all color displays, set these colors" and > "On this particular type of GUI display set this font"? Or is only the > first one that matches applied? >=20 > B) Is it possible to get back to the per-display view? After I save, if > I customize the face again I just get a single attribute list > representing the current display. >=20 > In both of these cases it is for customizing the default face, if it > matters. >=20 > Also, is it possible to set the font family based on availability > (i.e. a list of names, and if one isn't available it moves on to the > next)? You can do all of these things using Emacs Lisp. See `Defining Faces' in the Elisp manual: http://www.gnu.org/software/emacs/manual/html_node/elisp/Defining-Faces.htm= l But with the Customize UI you can currently define only one set of face attributes for a given face. It would be possible to extend the UI to let you do what you request, but I'm not sure most users of Customize would be interested. If this extra functionality were not "in their face", but were made available on demand, then the feature could be useful. To request such an enhancement, use `M-x report-emacs-bug'. The Customize UI generally allows you to easily change behavior for the current session, i.e., based on the current display characteristics etc., and then to save these new settings for future sessions. So far, at least, it does not really cater to defining settings for contexts other than the current session (different displays etc.). But it could.