all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* set-face-attribute when starting daemon
@ 2015-03-02  4:04 Zhongwei Yao
  2015-03-02 13:17 ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Zhongwei Yao @ 2015-03-02  4:04 UTC (permalink / raw
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: set-face-attribute when starting daemon
  2015-03-02  4:04 set-face-attribute when starting daemon Zhongwei Yao
@ 2015-03-02 13:17 ` Eli Zaretskii
  2015-03-04  4:27   ` Zhongwei Yao
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2015-03-02 13:17 UTC (permalink / raw
  To: help-gnu-emacs

> Date: Mon, 2 Mar 2015 12:04:12 +0800
> From: Zhongwei Yao <ashi08104@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.



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: set-face-attribute when starting daemon
  2015-03-02 13:17 ` Eli Zaretskii
@ 2015-03-04  4:27   ` Zhongwei Yao
  0 siblings, 0 replies; 3+ messages in thread
From: Zhongwei Yao @ 2015-03-04  4:27 UTC (permalink / raw
  To: Eli Zaretskii; +Cc: help-gnu-emacs

Thanks. I add set-face-attribute to after-make-frame-functions hook.

On Mon, Mar 2, 2015 at 9:17 PM, Eli Zaretskii <eliz@gnu.org> wrote:

> > Date: Mon, 2 Mar 2015 12:04:12 +0800
> > From: Zhongwei Yao <ashi08104@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.
>
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-03-04  4:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-03-02  4:04 set-face-attribute when starting daemon Zhongwei Yao
2015-03-02 13:17 ` Eli Zaretskii
2015-03-04  4:27   ` Zhongwei Yao

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.