From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "pranavtiwari@gmail.com" Newsgroups: gmane.emacs.help Subject: Re: emacs 21.3.1 not loading .emacs Date: 2 Feb 2006 00:10:16 -0800 Organization: http://groups.google.com Message-ID: <1138867816.266631.86230@g14g2000cwa.googlegroups.com> References: <1138772912.268515.75560@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: sea.gmane.org 1138885703 17449 80.91.229.2 (2 Feb 2006 13:08:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Feb 2006 13:08:23 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 02 14:08:21 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1F4eC8-0004Z7-EK for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Feb 2006 14:08:17 +0100 Original-Received: from [127.0.0.1] (helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1F4aNy-00089C-Ln for geh-help-gnu-emacs@m.gmane.org; Thu, 02 Feb 2006 04:04:14 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!g14g2000cwa.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 55 Original-NNTP-Posting-Host: 128.107.248.220 Original-X-Trace: posting.google.com 1138867821 22758 127.0.0.1 (2 Feb 2006 08:10:21 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 2 Feb 2006 08:10:21 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.1.4322),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g14g2000cwa.googlegroups.com; posting-host=128.107.248.220; posting-account=0A4mMQ0AAAAF4wJy_2752fcB3NrUytCC Original-Xref: shelby.stanford.edu gnu.emacs.help:137335 Original-To: help-gnu-emacs@gnu.org 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:32960 Archived-At: Kevin Rodgers wrote: > pranavtiwari@gmail.com wrote: > > On my Unix machine, emacs is not loading .emacs. > > > > If I start emacs as: > > > > % emacs -u $USER > > > > emacs starts up correctly with my .emacs loaded. However, if I start it > > without -u option, it ignores my .emacs. > > > > Can someone suggest what the problem could be? > > What do these commands tell you: > C-h v user-login-name root (wrong) Where is this picked up from? Help says "The user's name, taken from environment variables if possible.". My $USER is set correctly. What other variable could it be trying to use? > C-h v user-real-login-name pranav (correct) > C-h v user-init-file nil (i assume default will be meaningful) > C-h v init-file-user root > > Does the problem persist when you start emacs as: > emacs --debug-init Yes it does. BTW, when I start emacs with -u pranav, the values are: user-login-name : root (wrong) user-real-login-name: pranav (correct) user-init-file: /users/pranav/.emacs init-file-user: pranav user-init-file in the normal case is suspect. Given that .emacs is not being read, how is it supposed to be set before reading the init file? regards, -p