From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: [Fwd: Location of .emacs file under `su` and `su -`?] Date: Tue, 22 Aug 2006 17:42:27 +0200 Message-ID: References: <44EAF4A8.9030708@student.lu.se> <874pw4u7dj.fsf@furball.mit.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1156261581 14539 80.91.229.2 (22 Aug 2006 15:46:21 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 22 Aug 2006 15:46:21 +0000 (UTC) Cc: Lennart Borgman , Emacs Devel Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 22 17:46:18 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 1GFYRp-00081P-Kf for ged-emacs-devel@m.gmane.org; Tue, 22 Aug 2006 17:45:51 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFYRp-0000R6-Lq for ged-emacs-devel@m.gmane.org; Tue, 22 Aug 2006 11:45:49 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GFYOo-0006EP-1s for emacs-devel@gnu.org; Tue, 22 Aug 2006 11:42:42 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GFYOm-0006Az-0X for emacs-devel@gnu.org; Tue, 22 Aug 2006 11:42:41 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GFYOl-0006Am-Q5 for emacs-devel@gnu.org; Tue, 22 Aug 2006 11:42:39 -0400 Original-Received: from [195.135.220.2] (helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1GFYWP-0005rK-1Z for emacs-devel@gnu.org; Tue, 22 Aug 2006 11:50:33 -0400 Original-Received: from Relay1.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id B500A10744; Tue, 22 Aug 2006 17:42:37 +0200 (CEST) Original-To: Chong Yidong X-Yow: I was born in a Hostess Cupcake factory before the sexual revolution! In-Reply-To: <874pw4u7dj.fsf@furball.mit.edu> (Chong Yidong's message of "Tue, 22 Aug 2006 11:18:00 -0400") User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) 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:58727 Archived-At: Chong Yidong writes: > Yes. I'm not sure why. This contradicts the information in the Emacs > manual, which says to use HOME. Anyway, this is trivial to fix. I'll > check the following patch in over the next few days if no one objects. > > *** emacs/lisp/startup.el.~1.410.~ 2006-07-24 00:18:47.000000000 -0400 > --- emacs/lisp/startup.el 2006-08-22 11:14:56.000000000 -0400 > *************** > *** 865,871 **** > ((eq system-type 'vax-vms) > "sys$login:.emacs") > (t > ! (concat "~" init-file-user "/.emacs"))))) > ;; This tells `load' to store the file name found > ;; into user-init-file. > (setq user-init-file t) > --- 865,871 ---- > ((eq system-type 'vax-vms) > "sys$login:.emacs") > (t > ! "~/.emacs")))) > ;; This tells `load' to store the file name found > ;; into user-init-file. How does this preserve the functionality of `emacs --user foo'? Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different."