From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: rogue option init-file-user Date: Sat, 07 Jan 2006 17:12:33 +0200 Message-ID: References: <200601070348.k073mcR00400@raven.dms.auburn.edu> <43BFC9D2.4090101@student.lu.se> Reply-To: Eli Zaretskii NNTP-Posting-Host: main.gmane.org X-Trace: sea.gmane.org 1136647844 21462 80.91.229.2 (7 Jan 2006 15:30:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 7 Jan 2006 15:30:44 +0000 (UTC) Cc: teirllm@dms.auburn.edu, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 07 16:30:40 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EvG1b-00015u-WF for ged-emacs-devel@m.gmane.org; Sat, 07 Jan 2006 16:30:37 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EvG3R-0006Ia-28 for ged-emacs-devel@m.gmane.org; Sat, 07 Jan 2006 10:32:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EvFmB-0006w3-Ob for emacs-devel@gnu.org; Sat, 07 Jan 2006 10:14:40 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EvFm8-0006vj-BP for emacs-devel@gnu.org; Sat, 07 Jan 2006 10:14:38 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EvFm6-0006va-Bf for emacs-devel@gnu.org; Sat, 07 Jan 2006 10:14:34 -0500 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EvFo2-0004B4-LQ for emacs-devel@gnu.org; Sat, 07 Jan 2006 10:16:34 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-84-228-137-57.inter.net.il [84.228.137.57]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id DIC97377 (AUTH halo1); Sat, 7 Jan 2006 17:12:31 +0200 (IST) Original-To: Lennart Borgman In-reply-to: <43BFC9D2.4090101@student.lu.se> (message from Lennart Borgman on Sat, 07 Jan 2006 15:01:54 +0100) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:48819 Archived-At: > Date: Sat, 07 Jan 2006 15:01:54 +0100 > From: Lennart Borgman > Cc: emacs-devel@gnu.org > > Beside the above problem the value on w32 seems strange. I get the value > "" with CVS Emacs from 2006-01-06 after .emacs have been read. This isn't strange, this is exactly what should happen. The doc string of init-file-user says, among other things: Otherwise, the value may be the null string, meaning use the init file for the user that originally logged in, or it may be a string containing a user's name meaning use that person's init file. In either of the latter cases, `(concat "~" init-file-user "/")' evaluates to the name of the directory where the `.emacs' file was looked for. With the possible exception of the term ``null string'' (which really means an empty string), this describes what you see: since the .emacs file used was from the user ``that originally logged in'', you get the value of "", and (concat "~" init-file-user "/") will yield "~/", your home directory. I fixed the doc string to say "empty string", for more clarity.