From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.bugs Subject: bug#25819: 25.1; Added by Package.el. Added by Package.el. Added by Package.el. Added by Package.el. Date: Wed, 22 Feb 2017 21:47:21 -0500 Message-ID: References: <20170220201438.GG1204@ofb.net> <8ttw7n1925.fsf@fencepost.gnu.org> <20170221230422.GJ1204@ofb.net> <20170222204852.GN1204@ofb.net> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1487818089 4423 195.159.176.226 (23 Feb 2017 02:48:09 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Feb 2017 02:48:09 +0000 (UTC) User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) Cc: 25819@debbugs.gnu.org To: frederik@ofb.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 23 03:48:03 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgjRq-0000VO-GG for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Feb 2017 03:48:02 +0100 Original-Received: from localhost ([::1]:56120 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgjRw-0006Do-HI for geb-bug-gnu-emacs@m.gmane.org; Wed, 22 Feb 2017 21:48:08 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34915) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgjRr-0006DX-35 for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 21:48:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgjRq-0000Kn-7X for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 21:48:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53585) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cgjRq-0000Kj-3u for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 21:48:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cgjRp-0004FH-Tg for bug-gnu-emacs@gnu.org; Wed, 22 Feb 2017 21:48:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Glenn Morris Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Feb 2017 02:48:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25819 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 25819-submit@debbugs.gnu.org id=B25819.148781805116266 (code B ref 25819); Thu, 23 Feb 2017 02:48:01 +0000 Original-Received: (at 25819) by debbugs.gnu.org; 23 Feb 2017 02:47:31 +0000 Original-Received: from localhost ([127.0.0.1]:51784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgjRL-0004EI-DS for submit@debbugs.gnu.org; Wed, 22 Feb 2017 21:47:31 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43881) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgjRJ-0004E4-I8 for 25819@debbugs.gnu.org; Wed, 22 Feb 2017 21:47:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgjRD-0000Fe-Pa for 25819@debbugs.gnu.org; Wed, 22 Feb 2017 21:47:24 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:32877) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgjRB-0000F9-Vh; Wed, 22 Feb 2017 21:47:22 -0500 Original-Received: from rgm by fencepost.gnu.org with local (Exim 4.82) (envelope-from ) id 1cgjRB-0001qP-Hf; Wed, 22 Feb 2017 21:47:21 -0500 X-Spook: Recall afsatcom UMTS underground InfoSec monarchist X-Ran: T/oTV)GD&s(ulUEv1PRH{U1Xg&p4-,k9kY_p#sMZV[do&DIbQY5%`I#@e4\*0U3+,?+3KD X-Hue: magenta X-Attribution: GM In-Reply-To: <20170222204852.GN1204@ofb.net> (frederik@ofb.net's message of "Wed, 22 Feb 2017 12:48:53 -0800") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] 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: 208.118.235.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:129674 Archived-At: frederik@ofb.net wrote: >> > root) My /root/.emacs looks something like this: >> > >> > (setenv "HOME" "/home/frederik/") >> > (setq savehist-file "/root/.emacs-history") >> > (load "~/.emacs") >> > (setenv "HOME" "/root/") >> If you don't feel like debugging further, you could just add a >> commented out package-initialize line to /root/.emacs. >> Somehow I don't think your problem is a common one. :) > > You don't think my problem is common!? :) Well I'm not sure how other > people edit files as root, but after a few incarnations I decided that > a barebones /root/.emacs pointing to ~/.emacs is the best way to go. I meant the odd use of changing HOME to load someone else's .emacs. As it turns out, that isn't related. (Did you consider symlinking ~frederik.emacs to /root/.emacs, and adding UID == 0 conditionals where needed?)