From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim Visher Newsgroups: gmane.emacs.help Subject: Re: conditional font faces Date: Mon, 1 Mar 2010 20:25:09 -0500 Message-ID: References: <4B89BF15.1070605@gmail.com> <874ol0l6aj.fsf@zemblan.newkuwait.org> <4B8C387E.7070205@gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: dough.gmane.org 1267493164 9786 80.91.229.12 (2 Mar 2010 01:26:04 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 2 Mar 2010 01:26:04 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Suvayu Ali Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Mar 02 02:26:00 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 1NmGs3-0003D6-Cm for geh-help-gnu-emacs@m.gmane.org; Tue, 02 Mar 2010 02:25:59 +0100 Original-Received: from localhost ([127.0.0.1]:43511 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmGs2-0005ki-Fe for geh-help-gnu-emacs@m.gmane.org; Mon, 01 Mar 2010 20:25:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NmGrf-0005kR-J6 for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 20:25:35 -0500 Original-Received: from [140.186.70.92] (port=43264 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmGre-0005kI-5A for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 20:25:35 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NmGra-0008R6-5k for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 20:25:34 -0500 Original-Received: from mail-yx0-f183.google.com ([209.85.210.183]:38496) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NmGrZ-0008R2-Ui for help-gnu-emacs@gnu.org; Mon, 01 Mar 2010 20:25:30 -0500 Original-Received: by yxe13 with SMTP id 13so4297116yxe.14 for ; Mon, 01 Mar 2010 17:25:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=1/6CqSpHR40Gwh814dLHW0+WpRwT/hmE5gEOmyyUwi8=; b=CGAimo+DDf3xkS1scPaMsHliF+xLSWZKFRG4LvebrowCrPKOH+q4MBtW2oqEwLRXIW hPjriKNnjkvvjMjP4YxesT6l2F0qDnAuD2jD4jlJN5GSmQ3EIHujgCs2dVNcf/TElghr YgIiJS66SKuTidt4176FqGGCxo+xhOdTDoNU8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=gdihcifSDo7DpEX/RRt66Du4dTf86qVdk25WyvgGyMw/KmHPirA2FhD7muJngBoXVM cgAmmOQZcvPD98LgYIDnN3LUxid1EZrkf9jYjw1M3Q9jG3XXArVLyVdj2XZAMduNb6Ql YLASFbC0a+FJgfmFTFKUHJGrTDGq9Kb4V+xjw= Original-Received: by 10.101.160.22 with SMTP id m22mr7503857ano.183.1267493129123; Mon, 01 Mar 2010 17:25:29 -0800 (PST) In-Reply-To: <4B8C387E.7070205@gmail.com> 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:72285 Archived-At: On Mon, Mar 1, 2010 at 4:58 PM, Suvayu Ali wrote: > 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. I believe you would need to put (my-color-customizations-for-nw (selected-frame)) or something along those lines in your .emacs file to get the first frame created to display using those customizations. Not sure about the (selected-frame) portion though. Best I could come up with on a cursory look through the ELisp reference manual. -- In Christ, Timmy V. http://burningones.com/ http://five.sentenc.es/ - Spend less time on e-mail