help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Set the HOME environment variable in Emacs package debug script inst


From: Hongyi Zhao
Subject: Re: Set the HOME environment variable in Emacs package debug script instead of using it on command line.
Date: Tue, 26 Oct 2021 21:39:35 +0800

On Tue, Oct 26, 2021 at 8:50 PM Emanuel Berg via Users list for the
GNU Emacs text editor <help-gnu-emacs@gnu.org> wrote:
>
> Hongyi Zhao wrote:
>
> > my question can be expressed as follows: Set the HOME
> > environment variable in shell and from within Emacs lisp
> > code could lead to a different Emacs environments.
>
> I use zsh but don't you set it in bash like this?
>
>   export HOME=affe
>
> (You don't do that manually tho, typically.)
>
> You can set it for the Emacs invocation/instance with
>
>   $ HOME=arnold emacs -Q
>   (getenv "HOME") ; arnold
>
> (Never did that either, but OK.)
>
> And you can do it from Emacs
>
>   $ emacs -Q
>   (setenv "HOME" "stabbe")
>
> (Why ever one would do that.)
>
> And whatever happens after that ... you know? it happens.

Although in these two methods, you get the same HOME variable in
Emacs, this does not mean that the order of the libraries and related
subprocesses called during Emacs startup is exactly the same.

HZ



reply via email to

[Prev in Thread] Current Thread [Next in Thread]