From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jim Burton Newsgroups: gmane.emacs.help Subject: Re: How to debug problem with emacsclient and init file Date: Fri, 16 Apr 2010 10:17:04 +0100 Message-ID: <87hbnbzrhr.wl%jim@sdf-eu.org> References: <87633txf3q.wl%jim@sdf-eu.org> <87zl14d7ws.fsf@newsguy.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: multipart/mixed; boundary="Multipart_Fri_Apr_16_10:17:04_2010-1" X-Trace: dough.gmane.org 1271410474 2070 80.91.229.12 (16 Apr 2010 09:34:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 16 Apr 2010 09:34:34 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Harry Putnam Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 16 11:34:33 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 1O2hwT-0000oS-7q for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Apr 2010 11:34:29 +0200 Original-Received: from localhost ([127.0.0.1]:58051 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2hwS-0001pK-Iq for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Apr 2010 05:34:28 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O2htq-00016k-NA for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 05:31:46 -0400 Original-Received: from [140.186.70.92] (port=47515 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O2hsY-0000f4-Qg for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 05:31:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O2hg1-0007IA-ET for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 05:17:35 -0400 Original-Received: from mtaout02-winn.ispmail.ntl.com ([81.103.221.48]:53609) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O2hg1-0007Gf-44 for help-gnu-emacs@gnu.org; Fri, 16 Apr 2010 05:17:29 -0400 Original-Received: from aamtaout03-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20100416091721.MZFU10460.mtaout02-winn.ispmail.ntl.com@aamtaout03-winn.ispmail.ntl.com>; Fri, 16 Apr 2010 10:17:21 +0100 Original-Received: from daisy.smtp.ntlworld.com ([81.108.236.92]) by aamtaout03-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20100416091720.NKEW3948.aamtaout03-winn.ispmail.ntl.com@daisy.smtp.ntlworld.com>; Fri, 16 Apr 2010 10:17:20 +0100 In-Reply-To: <87zl14d7ws.fsf@newsguy.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.7 Emacs/23.1 (i686-pc-linux-gnu) MULE/6.0 (HANACHIRUSATO) X-Cloudmark-Analysis: v=1.1 cv=ZtHxNT4mZm3rCuM0SmWmgWxeBwJsziC8EqOrwwVkrhA= c=1 sm=0 a=PIzyvLvT3v8A:10 a=faa9z2_RAAAA:8 a=gVIkFxe-bB5JJcMHRUoA:9 a=c-cDPGNYqLmuEBhzhQ940d6VzsgA:4 a=CjuIK1q_8ugA:10 a=w16zm4YrGAwA:10 a=KZxYK8ZXvOTCnrhGd_AA:9 a=n4hVAaKXw_M-HQKokT1reX7A2Z4A:4 a=HpAAvcLHHh0Zw7uRqdWCyQ==:117 X-detected-operating-system: by eggs.gnu.org: Solaris 10 (beta) 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:72689 Archived-At: --Multipart_Fri_Apr_16_10:17:04_2010-1 Content-Type: text/plain; charset=US-ASCII At Thu, 15 Apr 2010 10:58:43 -0500, Harry Putnam wrote: > > Jim Burton writes: > > > So I tried starting the emacs daemon without my init file and > > everything is fine -- I can open graphical emacsclients. This seems > > weird because I can open a new (X or terminal) emacs without getting > > any complaints about the init file. I thought about adding my init > > stuff back in gradually but there's rather a lot of it, and I wondered > > if there is a better way to debug this problem? > > I'm not sure this even works when going thru emacsclient but does > turning on debug-on-error show you any more userfull info: > > Put: > (setq eval-expression-debug-on-error t) > Hi Harry. This has no effect -- the daemon starts without any errors and the graphical client won't start. Commenting stuff out of .emacs I've found I can start the graphical client without a color theme, or if I do this: (defmacro Xlaunch (&rest x) (list 'if (eq window-system 'x) (cons 'progn x))) (require 'color-theme) (color-theme-initialize) (if (Xlaunch) (color-theme-gray30)) Which works but I get no color theme -- of course when the daemon starts Xlaunch is false. Is there some way to say "do this if the current client uses X"? Jim > Into ~/.emacs to find out. > > --Multipart_Fri_Apr_16_10:17:04_2010-1 Content-Type: text/plain; charset=US-ASCII -- J Burton --Multipart_Fri_Apr_16_10:17:04_2010-1--