From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Suvayu Ali Newsgroups: gmane.emacs.help Subject: Re: conditional font faces Date: Mon, 01 Mar 2010 22:58:22 +0100 Message-ID: <4B8C387E.7070205@gmail.com> References: <4B89BF15.1070605@gmail.com> <874ol0l6aj.fsf@zemblan.newkuwait.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1267480699 5006 80.91.229.12 (1 Mar 2010 21:58:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 1 Mar 2010 21:58:19 +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 Mar 01 22:58:15 2010 Return-path: Envelope-to: geh-help-gnu-emacs@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 1NmDd0-0007cY-Tk for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Mar 2010 22:58:15 +0100 Original-Received: from localhost ([127.0.0.1]:42631 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmDd0-00032Z-Bg for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Mar 2010 16:58:14 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NmDcT-0002zm-Pd for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 16:57:41 -0500 Original-Received: from [140.186.70.92] (port=58222 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmDcS-0002xr-PS for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 16:57:41 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NmDcS-0001RA-0y for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 16:57:40 -0500 Original-Received: from mail-bw0-f212.google.com ([209.85.218.212]:42208) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NmDcR-0001R6-Sf for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 16:57:39 -0500 Original-Received: by bwz4 with SMTP id 4so2310715bwz.8 for ; Mon, 01 Mar 2010 13:57:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=446O9YYWJR167uIDuCKHlBm1N+rn423v9xKalgDR3HE=; b=ZYehtk+HyY+xPyI+i2A3MrtsGQD4SZfz/jWAN0L9+zatHBwlyNQCS9rr7oOw1ODVLE /ihdqY/nMnElO42od6MJIl3xRnYbRx4V9YIhjazaSSecQSzNT0w5MKUviH2lig/6FPTO 0dr8sBT1EwA6DzcN0Z/HpbA2MUfXYbeY+3muM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; b=T9dkenPdiseDTY63LfQqb03w0S8fSQO4kXLQdod348DOMu1XYlRZuubtzSPeTxlb3S R+xptLmDD+Xx4Q+Q+NhrzGnryXZASUlStKP3GR2tlA5azz8bT2zzfiaiEOqYY6THDNSr RXmKINNEvVIJ71wPo2DPgGf2Z9wcvIX94r4zM= Original-Received: by 10.204.48.202 with SMTP id s10mr3555438bkf.34.1267480658580; Mon, 01 Mar 2010 13:57:38 -0800 (PST) Original-Received: from localhost.localdomain (pb-d-128-141-225-18.cern.ch [128.141.225.18]) by mx.google.com with ESMTPS id k7sm963975bka.16.2010.03.01.13.57.36 (version=SSLv3 cipher=RC4-MD5); Mon, 01 Mar 2010 13:57:37 -0800 (PST) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.1 In-Reply-To: <874ol0l6aj.fsf@zemblan.newkuwait.org> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:72277 Archived-At: Hi, On 01/03/10 10:50 AM, Thamer Mahmoud wrote: > Suvayu Ali writes: > > However, this won't work when using emacsclient -t. So if you run server > or daemon mode, use this instead: > > (defun my-color-customizations-for-nw (frame) > "Runs after creating new frames" > (select-frame frame) > (when (not window-system) > (set-face-foreground 'minibuffer-prompt "black" frame))) > (add-hook 'after-make-frame-functions 'my-color-customizations-for-nw) I have a small problem. If I start a no-window emacs in regular mode (as in no server) then this doesn't take effect for the first frame. However the change is as expected for any subsequent frame I create. Even putting something like, (my-color-customizations-for-nw (selected-frame)) doesn't help. Trying the same thing with (when (window-system) ...) doesn't have the same problem with a x-window (GUI) emacs. Does anyone have any idea about this? Thanks in advance for any thoughts. > -- > Thamer > -- Suvayu Open source is the future. It sets us free.