help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to debug problem with emacsclient and init file


From: Suvayu Ali
Subject: Re: How to debug problem with emacsclient and init file
Date: Fri, 16 Apr 2010 07:52:54 -0700
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

On Friday 16 April 2010 02:17 AM, Jim Burton wrote:
At Thu, 15 Apr 2010 10:58:43 -0500,
Harry Putnam wrote:

Jim Burton<jim@sdf-eu.org>  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"?


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.

Jim
Into ~/.emacs to find out.




--
Suvayu

Open source is the future. It sets us free.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]