Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

set-face-attribute when starting daemon

87 views
Skip to first unread message

Zhongwei Yao

unread,
Mar 1, 2015, 11:04:20 PM3/1/15
to help-gn...@gnu.org
Hi, all,
I run emacs --daemon into this error on mac os x:
Error: server did not start correctly

and I find it is caused by my following configuration:
(set-face-attribute
'default nil :font "Courier New 15"))

I try to run with emacs --daemon -debug-init, but it prints nothing.

However, if I run emacs directly (without --daemon), it would give not any
error.

Thanks,
Zhongwei

Eli Zaretskii

unread,
Mar 2, 2015, 8:17:45 AM3/2/15
to help-gn...@gnu.org
> Date: Mon, 2 Mar 2015 12:04:12 +0800
> From: Zhongwei Yao <ashi...@gmail.com>
>
> I run emacs --daemon into this error on mac os x:
> Error: server did not start correctly
>
> and I find it is caused by my following configuration:
> (set-face-attribute
> 'default nil :font "Courier New 15"))

Don't do that if daemonp returns non-nil. There are no frames when
the daemon starts, and so no faces to change their attributes.

Zhongwei Yao

unread,
Mar 3, 2015, 11:27:34 PM3/3/15
to Eli Zaretskii, help-gn...@gnu.org
Thanks. I add set-face-attribute to after-make-frame-functions hook.
0 new messages