From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: "emacs --daemon" does not load init file Date: Tue, 25 Nov 2008 15:07:32 +0100 Message-ID: <87od03j3vf.fsf@thinkpad.tsdh.de> References: <20081125085117.GA23291@lars-x200s> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1227622103 5321 80.91.229.12 (25 Nov 2008 14:08:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 25 Nov 2008 14:08:23 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 25 15:09:27 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 1L4ybO-0007R3-C8 for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Nov 2008 15:09:18 +0100 Original-Received: from localhost ([127.0.0.1]:47388 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4yaE-0006Df-J6 for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Nov 2008 09:08:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L4yZu-0006DZ-TP for help-gnu-emacs@gnu.org; Tue, 25 Nov 2008 09:07:46 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L4yZq-0006Cw-G7 for help-gnu-emacs@gnu.org; Tue, 25 Nov 2008 09:07:45 -0500 Original-Received: from [199.232.76.173] (port=51951 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L4yZq-0006Cb-7X for help-gnu-emacs@gnu.org; Tue, 25 Nov 2008 09:07:42 -0500 Original-Received: from main.gmane.org ([80.91.229.2]:56662 helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L4yZp-0004AA-PQ for help-gnu-emacs@gnu.org; Tue, 25 Nov 2008 09:07:41 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1L4yZn-0000KT-I1 for help-gnu-emacs@gnu.org; Tue, 25 Nov 2008 14:07:39 +0000 Original-Received: from dhcp184.uni-koblenz.de ([141.26.71.184]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Nov 2008 14:07:39 +0000 Original-Received: from tassilo by dhcp184.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 25 Nov 2008 14:07:39 +0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 23 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dhcp184.uni-koblenz.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:iR3s3VEm90kOWdl6kW+zT8Mf1Dw= X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) 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:60086 Archived-At: "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? Yes, I had a problem where my .emacs was only loaded partially till a specific line and everything after that line was omitted. The problem was that the expression in that line required a file which tried to retrieve informations from the current frame at load time, but with emacs --daemon there is no frame then. So I'd try to check if your .emacs isn't loaded at all or if it's loaded partially. If it's the latter, try to find the offending code. Bye, Tassilo -- "Emacs is not a development tool but a way of life." - David Kastrup in alt.religion.emacs -