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 00:08:26 +0800 Message-ID: <20081125160826.GA5457@lars-x200s> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1227635597 25386 80.91.229.12 (25 Nov 2008 17:53:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Nov 2008 17:53:17 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 25 18:54:21 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 1L526Z-0001q7-Ua for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Nov 2008 18:53:44 +0100 Original-Received: from localhost ([127.0.0.1]:35212 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L525P-0008HA-TU for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Nov 2008 12:52:31 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L50Ss-00063O-2m for help-gnu-emacs@gnu.org; Tue, 25 Nov 2008 11:08:38 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L50Sq-00060u-Dw for help-gnu-emacs@gnu.org; Tue, 25 Nov 2008 11:08:37 -0500 Original-Received: from [199.232.76.173] (port=53990 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L50Sq-00060k-8e for help-gnu-emacs@gnu.org; Tue, 25 Nov 2008 11:08:36 -0500 Original-Received: from ti-out-0910.google.com ([209.85.142.191]:26384) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1L50Sp-0007ka-JI for help-gnu-emacs@gnu.org; Tue, 25 Nov 2008 11:08:36 -0500 Original-Received: by ti-out-0910.google.com with SMTP id u5so18943tia.10 for ; Tue, 25 Nov 2008 08:08:33 -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=mrrlZRnbaOX6e4Gq2U0G3PFjujjUXRI9o2d+O7CLHYQ=; b=V4yEx+IMNq8SD4x3cqAQ4qPNw94cmtrHJb8I968udCS+dMERrMlOSPG+qbnccBV+KR hI+BgsvddTIcGpvzLFpeS+j5D16v1W16hTazcrKT73u7TCR1PGDkLyPRHJUZqx9sq9uY tDU5Bfi3iMNTvYnif1TgwJR0IFXxreFFQPxqU= 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=N4Fs9lM4gLYxkmUeR6p6YuVAaRRp5qwlP4og+BYsP6dAcCxgY5kpPNA9OM8T1LfRQ1 UfdldIm5xijMUQoiFVI9KHxgG9+wSv/rIKs3tRW+poWEUXpR2RG02EWn1t7alco1fBlQ gFuPgvypJIJEtJdXf6M8S3S+3zgWT7QYNdfXs= Original-Received: by 10.110.105.5 with SMTP id d5mr6961363tic.39.1227629313686; Tue, 25 Nov 2008 08:08:33 -0800 (PST) Original-Received: from localhost ([143.89.214.93]) by mx.google.com with ESMTPS id 2sm1571571tif.0.2008.11.25.08.08.30 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 25 Nov 2008 08:08:33 -0800 (PST) Content-Disposition: inline In-Reply-To: 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-Mailman-Approved-At: Tue, 25 Nov 2008 12:52:06 -0500 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:60102 Archived-At: Hi, Yeah, when I run "emacs --daemon" in console it shows this error message: error: Fontset `tty' does not exist But if run "emacs" there is no such message. Note that my emacs is emacs-gtk. The font setting script in my .emacs is: ;; font setting (set-default-font "Bitstream Vera Sans Mono-10") (set-fontset-font (frame-parameter nil 'font) 'chinese-gbk '("Microsfot Yahei-10" . "unicode-bmp")) Is there anything wrong? Best Lars On Tue, 25 Nov 2008, Richard Riley wrote: > > "Chengqi(Lars) Song" writes: > > > Hi, > > > > I'm using emacs23 snapshot, now it has a fancy function "emacs > > --daemon" to run emacs in background. But when I use "emacsclient -c" > > to connect to the daemon, I found that my ~/.emacs is not > > loaded. That's so bad, is there anyone experienced in emacs daemon? > > Thanks. > > > > best > > lars > > using CVS emacs, I use "emacs -daemon" and it executes the .emacs or > init fine. "--" or "-" both seem to work from a bash shell btw. > > Are you sure there is no error in your .emacs? Did you run emacs -daemon > from the command line where you can see any error output? > > Just to be sure - you dont expect emacs -c to run the .emacs?