From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.bugs Subject: bug#36583: 26.1; emacs 26 tries loading original user's .emacs after su to root Date: Mon, 15 Jul 2019 08:49:01 -0400 Message-ID: References: <87ims94p6p.fsf@dod.no> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="192977"; mail-complaints-to="usenet@blaine.gmane.org" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) Cc: sb@dod.no, larsi@gnus.org, 36583@debbugs.gnu.org To: Richard Stallman Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jul 15 14:50:08 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1hn0Qh-000o4T-J8 for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jul 2019 14:50:07 +0200 Original-Received: from localhost ([::1]:38197 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn0Qg-0003hF-Jy for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jul 2019 08:50:06 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39832) by lists.gnu.org with esmtp (Exim 4.86_2) (envelope-from ) id 1hn0Qe-0003h8-7X for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 08:50:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hn0Qc-0001cM-6x for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 08:50:04 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:38019) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1hn0Qc-0001cF-3b for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 08:50:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1hn0Qb-00042x-UO for bug-gnu-emacs@gnu.org; Mon, 15 Jul 2019 08:50:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Stefan Monnier Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Jul 2019 12:50:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 36583 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: wontfix notabug Original-Received: via spool by 36583-submit@debbugs.gnu.org id=B36583.156319495015481 (code B ref 36583); Mon, 15 Jul 2019 12:50:01 +0000 Original-Received: (at 36583) by debbugs.gnu.org; 15 Jul 2019 12:49:10 +0000 Original-Received: from localhost ([127.0.0.1]:46838 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hn0Pl-00041d-Ui for submit@debbugs.gnu.org; Mon, 15 Jul 2019 08:49:10 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:7066) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1hn0Pk-00041P-SA for 36583@debbugs.gnu.org; Mon, 15 Jul 2019 08:49:09 -0400 Original-Received: from pmg1.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 97100100951; Mon, 15 Jul 2019 08:49:03 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg1.iro.umontreal.ca (Proxmox) with ESMTP id 984D4100228; Mon, 15 Jul 2019 08:49:02 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1563194942; bh=aE5AVTH1IZjlWuGqNVLmwKJ85lRRlI90fbjpK1oiLes=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=TP1UqxwO5n1P08ULAqExB6Ku2QepvSKxcsRgVwDQz/SOYK5tKDyA2dwyONFQLqh/3 evwyRgD5mzSc8D6MnVsKmBtF63AwbndUz8Ug5tm0jrBj70nJOTkYcrHUT6COb+pp56 DJCJZa/c+R3bo9XiGrLclzyKtjMVdu0O7x9FTL+cMWzUbQk6y3gE78zKVO9sx+muPG 11WNmRHIuAJ6txFvVugxkOsUVU8HFEhsM91xMTCEQ0qwOgZDGP+k8Egh8v8V4F9L5J m30IVCORTgztVTPTeEy5eF0zYH47+TiHX7pZmxTSooPaAr+XiE7VJVaf84wm/KvTV5 ul07BJV9f88sQ== Original-Received: from pastel (104-222-123-229.cpe.teksavvy.com [104.222.123.229]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 68098120B49; Mon, 15 Jul 2019 08:49:02 -0400 (EDT) In-Reply-To: (Richard Stallman's message of "Sat, 13 Jul 2019 19:05:01 -0400") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:163106 Archived-At: > > I can see why you'd like that, but I think this should be the result of > > an explicit choice rather than the default behavior. > > How do you suggest a user indicate that choice? Don't know. How 'bout let the /root/.emacs file do something like: (load (concat "~" (user-login-name) "/.emacs")) ? For convenience, we could provide an ad-hoc function that would do that "right" (i.e. looking for .emacs, .emacs.d/init.el, and things like that). We could even put it in /root/.emacs.d/early-init.el. Stefan