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: Fri, 16 Apr 2010 17:11:30 -0700 Message-ID: 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> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1271463239 2643 80.91.229.12 (17 Apr 2010 00:13:59 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 17 Apr 2010 00:13:59 +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 02:13:58 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 1O2vfa-0005hY-1A for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Apr 2010 02:13:58 +0200 Original-Received: from localhost ([127.0.0.1]:41688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2vfY-0006hq-EX for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Apr 2010 20:13:56 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2vdb-0006Gk-2v for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 20:11:55 -0400 Original-Received: from [140.186.70.92] (port=59205 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2vdZ-0006FD-0m for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 20:11:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2vdX-0001ET-0S for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 20:11:52 -0400 Original-Received: from mail-vw0-f41.google.com ([209.85.212.41]:52113) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2vdW-0001EG-TA for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 20:11:50 -0400 Original-Received: by vws8 with SMTP id 8so1660698vws.0 for ; Fri, 16 Apr 2010 17:11:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:from:date:x-google-sender-auth:received:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=j0VZL25UJlIlPVhiB8aL6uWsA3NAPK/A2LJgn+zs5+Y=; b=KYyz0n5TF9X62gf1C1ePNTX2gV8XML5a60CZb6Bq61hMplwZUqkwtokrZVzgqME1qj zhv+sjxbrUXn7JODG4IiL7Hp0Uqk3Ys/XHBtznhoKHW58M+hx9mHYuF3d0QonXJmsA6j 7gDtRJXE+PFN5FLSS0T8lICnyqboQ0NHiErrc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=bdcA+XfCBIFPNzMI8prs1i6bYqfxE118ccF3ZUlRuVnDqfhcYcEf0tixE5a+Me/vpx 2p94h22A1KGgMYrpxTjU7y3pgvkqHRBQjU9WcA1MLQTROmjZ0A/CGaUwIWEY7wI7yC/d ouf5TAu3apt1Owdf9t4O2+tIm4NVQPL+znFoY= Original-Received: by 10.220.174.159 with HTTP; Fri, 16 Apr 2010 17:11:30 -0700 (PDT) In-Reply-To: <877ho748zc.wl%jim@sdf-eu.org> X-Google-Sender-Auth: f1dac3d6eea31854 Original-Received: by 10.220.108.83 with SMTP id e19mr1550713vcp.45.1271463110069; Fri, 16 Apr 2010 17:11:50 -0700 (PDT) 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:72718 Archived-At: 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 > =A0 =A0 =A0 =A0 =A0'(lambda (f) > =A0 =A0 =A0 =A0 =A0 =A0 (with-selected-frame f > =A0 =A0 =A0 =A0 =A0 =A0 =A0 (if (window-system f) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (color-theme-gray30) > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (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. If this is unrealisable for the current emacs release, could this be a feature enhancement request for future releases? > Jim > --=20 Suvayu Open source is the future. It sets us free.