From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Chengqi(Lars) Song" Newsgroups: gmane.emacs.help Subject: Re: "emacs --daemon" does not load init file Date: Wed, 26 Nov 2008 10:42:53 +0800 Message-ID: <20081126024253.GB8112@lars-x200s> References: <20081125160826.GA5457@lars-x200s> <87y6z7614u.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1227667399 3885 80.91.229.12 (26 Nov 2008 02:43:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 26 Nov 2008 02:43:19 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 26 03:44:24 2008 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.50) id 1L5AO6-0007qS-CZ for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Nov 2008 03:44:22 +0100 Original-Received: from localhost ([127.0.0.1]:60766 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L5AMw-0008Nn-Pj for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Nov 2008 21:43:10 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L5AMa-0008MP-UF for help-gnu-emacs@gnu.org; Tue, 25 Nov 2008 21:42:48 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L5AMY-0008L7-Ru for help-gnu-emacs@gnu.org; Tue, 25 Nov 2008 21:42:48 -0500 Original-Received: from [199.232.76.173] (port=35835 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L5AMY-0008Kx-Lu for help-gnu-emacs@gnu.org; Tue, 25 Nov 2008 21:42:46 -0500 Original-Received: from ti-out-0910.google.com ([209.85.142.186]:24632) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L5AMX-0005T5-W1 for help-gnu-emacs@gnu.org; Tue, 25 Nov 2008 21:42:46 -0500 Original-Received: by ti-out-0910.google.com with SMTP id u5so107274tia.10 for ; Tue, 25 Nov 2008 18:42:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=D8jGuxNBvYHFzwqJgjyILF4URGxEfjYe5e/0k+Q1O1Q=; b=uLmHvPB9bt/FJXLDnatu/mIv6MShRPMfmItLQVaFJCHyQJtBKYY9ikeb8UM6A+ezdx QKhXM/Xsds6YZNwZm7txOCRiuupRgjNJDwYKI0izCYMpJk87+oke9iQQdqWN/CTGAm4f Ze1bpdFO3cbpgk+EJvlwGkhjVxwpw/5oX6aCU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=nZ39jXN6emEtQfoy+3zfmZD8JV8P/JPHQjI3j38hdg5Pzkmewoxhsykq1ibFUIQ6Yb MXwJ+5FyPgrZIsGwrePQ+ivPe4z6Xhl+eQY/Me3bykP4HTHt0cewwkjTeakjh8QvTC0F 4NpA0U0g9rZVfuaQJczwX8+tQFC7lUqdtDtks= Original-Received: by 10.110.3.15 with SMTP id 15mr7635236tic.44.1227667364111; Tue, 25 Nov 2008 18:42:44 -0800 (PST) Original-Received: from localhost ([143.89.215.185]) by mx.google.com with ESMTPS id i6sm2976270tid.5.2008.11.25.18.42.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 25 Nov 2008 18:42:43 -0800 (PST) Content-Disposition: inline In-Reply-To: <87y6z7614u.fsf@thinkpad.tsdh.de> User-Agent: Mutt/1.5.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:60113 Archived-At: I changed the frame related settings to: (add-hook 'window-setup-hook (lambda nil ;; font setting (set-default-font "Bitstream Vera Sans Mono-10") (set-fontset-font (frame-parameter nil 'font) 'chinese-gbk '("Microsfot Yahei-10" . "unicode-bmp")) ;; window positioning (setq default-frame-alist '((top . 0) (left . 0) (width . 100) (height . 40))) )) Now emacs-daemon can startup without any error message: loading..... loading..... loading..... starting emacs daemon.... But then I found emacsclient -c can not connect to emacs daemon, and "ps ax|grep emacs" returns nothing. That means emacs daemon failed to startup... It's so wierd, and I don't know why... On Tue, 25 Nov 2008, Tassilo Horn wrote: > As I've said in <87od03j3vf.fsf@thinkpad.tsdh.de> there's no initial > frame when starting emacs as daemon, so you cannot get frame parameters. > Maybe adding the code to `window-setup-hook' will work. Or simply use > `M-x customize-face' for font settings. > > Bye, > Tassilo > -- > Richard Stallman doesn't need it, since he already read the internet. > >