From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Cobbe Newsgroups: gmane.emacs.help Subject: Re: How to set minibuffer-prompt face foreground conditionally? Date: Mon, 13 Feb 2012 07:57:32 -0500 Message-ID: <20120213125732.GA2388@vimes.home> References: <20120212173200.GA430@weatherwax.local> <6DD29708-F150-4133-A128-C726EF92172E@Web.DE> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1329137884 21027 80.91.229.3 (13 Feb 2012 12:58:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 13 Feb 2012 12:58:04 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Feb 13 13:58:04 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1RwvTo-0003XG-9S for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Feb 2012 13:58:04 +0100 Original-Received: from localhost ([::1]:51451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwvTn-0008Ju-NZ for geh-help-gnu-emacs@m.gmane.org; Mon, 13 Feb 2012 07:58:03 -0500 Original-Received: from eggs.gnu.org ([140.186.70.92]:37782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwvTi-0008Jp-Nz for help-gnu-emacs@gnu.org; Mon, 13 Feb 2012 07:57:59 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RwvTc-0006V5-Vi for help-gnu-emacs@gnu.org; Mon, 13 Feb 2012 07:57:58 -0500 Original-Received: from amber.ccs.neu.edu ([129.10.116.51]:46801) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RwvTc-0006V1-Qh for help-gnu-emacs@gnu.org; Mon, 13 Feb 2012 07:57:52 -0500 Original-Received: from zimbra.ccs.neu.edu ([129.10.116.59]) by amber.ccs.neu.edu with esmtp (Exim 4.69) (envelope-from ) id 1RwvTc-0001Nl-EC for help-gnu-emacs@gnu.org; Mon, 13 Feb 2012 07:57:52 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by zimbra.ccs.neu.edu (Postfix) with ESMTP id 5BE29F64004; Mon, 13 Feb 2012 07:57:52 -0500 (EST) X-Virus-Scanned: amavisd-new at zimbra.ccs.neu.edu Original-Received: from zimbra.ccs.neu.edu ([127.0.0.1]) by localhost (zimbra.ccs.neu.edu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SQ-1z+v4+MAS; Mon, 13 Feb 2012 07:57:40 -0500 (EST) Original-Received: from localhost (pool-173-76-32-135.bstnma.fios.verizon.net [173.76.32.135]) by zimbra.ccs.neu.edu (Postfix) with ESMTP id CE119F7400A; Mon, 13 Feb 2012 07:57:39 -0500 (EST) Content-Disposition: inline In-Reply-To: <6DD29708-F150-4133-A128-C726EF92172E@Web.DE> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 129.10.116.51 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:83732 Archived-At: On Sun, Feb 12, 2012 at 10:08:40PM +0100, Peter Dyballa wrote: > > Am 12.2.2012 um 18:32 schrieb Richard Cobbe: > > > Is there a way to do this that I'm overlooking? > > Possibly... I have set a customisation like that, which is active in all GNU Emacs variants, with or without windowing system: > > '(minibuffer-prompt ((t (:background "yellow" :foreground "OrangeRed4" :weight bold)))) > > Could be I used its own customisation system for this. Thanks -- I wasn't aware that custom-set-faces could contain conditions like this. With a little digging around in the help, I was able to find a solution. I'm not thrilled with it -- not only do I have to edit the customization stuff by hand (which rather seems to defeat the purpose of the customization system), but I still think that there should be a way to do this programatically in elisp. However, I have a solution that works, and I'm ok with that. Thanks, Richard