Subject: Re: bug#36583: 26.1; emacs 26 tries loading original user's .emacs after su to root

From: Stefan Monnier <[email-masked]>
Date: Mon, 15 Jul 2019 08:49:01 -0400

>   > 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