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: How to debug problem with emacsclient and init file Date: Sat, 17 Apr 2010 12:50:36 -0700 Message-ID: <4BCA110C.9010607@gmail.com> References: <87633txf3q.wl%jim@sdf-eu.org> <87zl14d7ws.fsf@newsguy.com> <87hbnbzrhr.wl%jim@sdf-eu.org> <4BC879C6.1090708@gmail.com> <877ho748zc.wl%jim@sdf-eu.org> <87k4s5x643.wl%jim@sdf-eu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1271533873 27368 80.91.229.12 (17 Apr 2010 19:51:13 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 17 Apr 2010 19:51:13 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Jim Burton Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 17 21:51:12 2010 connect(): No such file or directory 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 1O3E2m-000532-J4 for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Apr 2010 21:51:08 +0200 Original-Received: from localhost ([127.0.0.1]:35564 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3E2m-0002XB-1I for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Apr 2010 15:51:08 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O3E2O-0002Wz-Bo for help-gnu-emacs@gnu.org; Sat, 17 Apr 2010 15:50:44 -0400 Original-Received: from [140.186.70.92] (port=35796 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O3E2N-0002W1-4K for help-gnu-emacs@gnu.org; Sat, 17 Apr 2010 15:50:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O3E2L-0000Ss-6I for help-gnu-emacs@gnu.org; Sat, 17 Apr 2010 15:50:42 -0400 Original-Received: from mail-pz0-f198.google.com ([209.85.222.198]:50306) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O3E2L-0000Se-1F for help-gnu-emacs@gnu.org; Sat, 17 Apr 2010 15:50:41 -0400 Original-Received: by pzk36 with SMTP id 36so2984156pzk.24 for ; Sat, 17 Apr 2010 12:50:39 -0700 (PDT) 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:cc:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=q4NHCFN+DGmrbABQ8VpF+22RQaByDByTWKV+TmtvamU=; b=ERyhErsc6vQGzYE0hV2mkSSE+Mqv98ln62NDe7QL7hfjsIlnPWt7MFvEfRGO4rmTxd +LVDNVomPS0KBYT8L8U7lLTH9xSWUJQJ+DePxNunltKuLtbiBapfNFFH0b8mcJS967VT +prI8vQDbYe6yDrKEPzDmFKibP0ffeh27XzO4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; b=q+bcnWYdT5Pi2UBrv0I+0uTnYAydUUQTm5loWUCPPyq2YXXBOc0JILqOLU5KrX6OEj lVMk0tKxino95ofrOE6zCEkBFs5xRtPjy92a79cqlH4CKz+BIdKgtqk9FcI4aG7/+oxj qdHEwiaMSBGVyQoKax+C+Z/YRMa/1c3Ermvtc= Original-Received: by 10.142.9.10 with SMTP id 10mr1486910wfi.42.1271533839515; Sat, 17 Apr 2010 12:50:39 -0700 (PDT) Original-Received: from bhishma.homelinux.net (d207-6-164-45.bchsia.telus.net [207.6.164.45]) by mx.google.com with ESMTPS id 20sm3579704pzk.15.2010.04.17.12.50.37 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 17 Apr 2010 12:50:38 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc11 Lightning/1.0b2pre Thunderbird/3.0.4 In-Reply-To: <87k4s5x643.wl%jim@sdf-eu.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:72737 Archived-At: On Saturday 17 April 2010 11:54 AM, Jim Burton wrote: > At Fri, 16 Apr 2010 17:11:30 -0700, > suvayu ali wrote: >> >> On 16 April 2010 10:12, Jim Burton wrote: >>> At Fri, 16 Apr 2010 07:52:54 -0700, >>> Suvayu Ali wrote: >>>> >>> [snip] >>>> >>>> I was trying to get something like this working. To follow the >>>> discussion look at the thread "conditional font faces" from the 27th of >>>> February to 5th of March. >>>> >>>> The only solution was to use a theme which uses similar colour schemes >>>> as no window to present a consistent environment in either and X window >>>> or the terminal. >>>> >>>> GL and plz do post back if you find something that can actually switch >>>> between to themes without resorting to the above compromise. >>>> >>> >>> Thanks to malsyned on #emacs I have the following that works like a charm: >>> >>> (add-hook 'after-make-frame-functions >>> '(lambda (f) >>> (with-selected-frame f >>> (if (window-system f) >>> (color-theme-gray30) >>> (color-theme-emacs-nw))))) >>> >> >> I have tried something like that before, the problem with this is it >> changes the theme for all the existing frames. So if I make an X >> window frame, I get the proper theme. Then if I start a client in the >> xterm, I get the proper theme for the no-window frame but my X window >> frame also changes theme to that theme. It doesn't change back to the >> desired X window theme even when I select the X window frame with the >> mouse or Alt+Tab. It would be good if themes could be selected for >> specific frames and not the entire emacs session itself. >> > > I should have said, in addition to the hook you need > > (setq color-theme-is-global nil) > Thank you thank you thank you! I have been scratching my head since I can obviously see it didn't work whereas you mentioned it did. With that, everything "Just Works". > Apologies, > Appreciate your help. :) -- Suvayu Open source is the future. It sets us free.