Closed favadi closed 9 years ago
I have observed exactly the same problem. I have emacs 23.3+1-1ubuntu9, bundle with ubuntu 12.04. It works fine with emacs, and emacsclient on the terminal, but fails as described with graphical emacsclient
Same problem here as well :/
Same problem as well
Is there any workaround for this?
I had the same problem, but https://github.com/bbatsov/solarized-emacs works for me - this is assuming you are using emacs 24.
(GNU Emacs 23.2.1) I have the same problem (last commit) :
$ emacsclient.emacs23 -c ~/.emacs Waiting for Emacs... ERROR: Wrong type argument: stringp, nil
And I can't get the bbatsov version working with emacs23 ...
I believe this problem is caused by (display-color-cells) returning 0 when executed from a .emacs configuration in an emacs --daemon. Do you observe this behavior when you M-x server-start from a running, graphical emacs frame?
If that works for you, great!
Another solution is to replace all (display-color-cells) invocations with (display-color-cells (getenv "DISPLAY")). Unfortunately, this will make switching emacsclient between -c (create new frame) and -nw brittle but I believe it does work if you only care about the graphical display and perhaps that solution will satisfy you.
Finally, I opted to move to Debian sid, install emacs 24, and use bbatsov/solarized-emacs as suggested by @peterhoeg which works great.
I did try to use the emacs24 theme with after-make-frame-functions but it didn't work.
Hope this helps.
This problem no longer exists in the current version as we never call (display-color-cells) directly any more.
After commit 6948f4f8b7, I cannot use emacsclient properly.
When I run emacsclient -c, I get
But everything run well with emacsclient -t.
In my init.el.
My emacs version is 23.4.1.
Update: