From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: frederik@ofb.net 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 22:39:48 -0800 Message-ID: <20170223063948.GS1204@ofb.net> References: <20170220201438.GG1204@ofb.net> <8ttw7n1925.fsf@fencepost.gnu.org> <20170221230422.GJ1204@ofb.net> <20170222204852.GN1204@ofb.net> Reply-To: frederik@ofb.net NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: blaine.gmane.org 1487832010 10240 195.159.176.226 (23 Feb 2017 06:40:10 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 23 Feb 2017 06:40:10 +0000 (UTC) User-Agent: Mutt/1.7.2 (2016-11-26) Cc: 25819@debbugs.gnu.org, npostavs@users.sourceforge.net To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Feb 23 07:40:05 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 1cgn4N-00027r-G9 for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Feb 2017 07:40:03 +0100 Original-Received: from localhost ([::1]:56934 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgn4T-0007Ui-HK for geb-bug-gnu-emacs@m.gmane.org; Thu, 23 Feb 2017 01:40:09 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48440) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cgn4N-0007UO-MC for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 01:40:04 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cgn4M-0006S0-RW for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 01:40:03 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:53695) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cgn4M-0006Rr-Oc for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 01:40:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cgn4M-0004jl-Bp for bug-gnu-emacs@gnu.org; Thu, 23 Feb 2017 01:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: frederik@ofb.net Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 23 Feb 2017 06:40:02 +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.148783199718194 (code B ref 25819); Thu, 23 Feb 2017 06:40:02 +0000 Original-Received: (at 25819) by debbugs.gnu.org; 23 Feb 2017 06:39:57 +0000 Original-Received: from localhost ([127.0.0.1]:51894 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgn4G-0004jO-UU for submit@debbugs.gnu.org; Thu, 23 Feb 2017 01:39:57 -0500 Original-Received: from icgriddb04.seas.upenn.edu ([158.130.57.72]:49374) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cgn4F-0004jH-RK for 25819@debbugs.gnu.org; Thu, 23 Feb 2017 01:39:56 -0500 Original-Received: from [10.13.0.6] (helo=ofb.net) by ICGRIDDB04.SEAS.upenn.edu with esmtp (Exim 4.87) (envelope-from ) id 1cgn4E-0005XG-85; Thu, 23 Feb 2017 01:39:54 -0500 Original-Received: from thutmose (unknown [24.7.113.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ofb.net (Postfix) with ESMTPSA id D7A9F3FFB9; Wed, 22 Feb 2017 22:39:48 -0800 (PST) Original-Received: from frederik by thutmose with local (Exim 4.88) (envelope-from ) id 1cgn48-00077b-1o; Wed, 22 Feb 2017 22:39:48 -0800 Content-Disposition: inline In-Reply-To: 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:129683 Archived-At: > > 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?) Yes I think this was one thing I tried. I can't remember what went wrong there, but one thing is I have a bunch of lines like this in my ~/.emacs: (load "~/.emacs.d/fhe-bury-buffer.el") So I think $HOME has to be changed to ~/, while ~/.emacs is being read, as you can see in my earlier message. But it turns out that this was pretty much enough. Tramp looks cool; I wish I'd known about it before, but now I use sshfs and sudo and this obviates most of the uses for me. I don't use the Emacs GUI - strictly terminal here - and I often open files from the command line, via emacsclient, rather than C-x C-f. Particularly for stuff like configuration files that I end up editing as root. .zprofile: export EDITOR="emacsclient -c -nw" .zshrc: alias em=$EDITOR I don't know what you'd call my usage pattern but it's perhaps more like a vim user, using the editor from the shell and keeping it lightweight.