unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Angelo Graziosi <angelo.g0@libero.it>
Cc: emacs-devel@gnu.org
Subject: Re: windows installer
Date: Sun, 12 Nov 2017 17:04:39 +0200	[thread overview]
Message-ID: <83lgjbmtbs.fsf@gnu.org> (raw)
In-Reply-To: <1831176140.285570.1510496865508@mail.libero.it> (message from Angelo Graziosi on Sun, 12 Nov 2017 15:27:45 +0100 (CET))

> Date: Sun, 12 Nov 2017 15:27:45 +0100 (CET)
> From: Angelo Graziosi <angelo.g0@libero.it>
> Cc: emacs-devel@gnu.org
> 
> 
> > > cat E:/Emacs_portable/bin/runemacs_portable.bat
> > > set HOME=%~dp0..\HOME
> > > "%~dp0runemacs.exe" %*
> > 
> > That will do The Wrong Thing if the machine already has a home
> > directory for the user.
> 
> Hmm.. it redefines HOME only for Emacs so that .emacs.d, .gnupg etc. go there and not in %APPDATA%

No, you redefine HOME for every application that Emacs will invoke as
well.

> > I think a better solution is to set emacs_dir.  See its documentation
> > in the user manual.
> 
> I have seen it (https://www.gnu.org/software/emacs/manual/html_mono/emacs.html#Misc-Variables) but I didn't understand much. Really defining
> 
> emacs_dir=%~dp0..\
> 
> in the .bat make .emacs.d go on the portable device?

I don't think you need to do that, as Emacs does that automatically.
In any case, this is separate from the HOME issue.  If Emacs already
finds all of its files on the USB, then emacs_dir setting is not
needed.  Unless you have INFOPATH set on that machine, or one of the
other environment variables, like EMACSLOADPATH, that override
emacs_dir.

As for HOME, I think you should set it only if it is not already set,
and you should use setlocal, not set.



  reply	other threads:[~2017-11-12 15:04 UTC|newest]

Thread overview: 75+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-12  8:56 windows installer Angelo Graziosi
2017-11-12  9:03 ` Fabrice Popineau
2017-11-12 11:30   ` Eli Zaretskii
2017-11-12 12:39     ` Fabrice Popineau
     [not found]       ` <8760adbxw6.fsf@russet.org.uk>
2017-11-13 22:46         ` Phillip Lord
2017-11-14 14:36           ` Angelo Graziosi
2017-11-14 16:31             ` Fabrice Popineau
2017-11-14 20:12               ` Angelo Graziosi
2017-11-20  8:46                 ` Jostein Kjønigsen
2017-11-20 18:07                   ` Eli Zaretskii
2017-11-22 23:01                   ` Phillip Lord
2017-11-23  3:43                     ` Eli Zaretskii
2017-11-23 18:06                       ` Phillip Lord
2017-11-23 20:09                         ` Eli Zaretskii
2017-11-24 19:13                           ` Phillip Lord
2017-11-24 19:56                             ` Eli Zaretskii
2017-11-25 11:08                               ` Phillip Lord
2017-11-25 12:56                                 ` Eli Zaretskii
2017-11-27 17:56                                   ` Phillip Lord
2017-11-12 14:14   ` Angelo Graziosi
2017-11-12 11:28 ` Eli Zaretskii
2017-11-12 14:27   ` Angelo Graziosi
2017-11-12 15:04     ` Eli Zaretskii [this message]
2017-11-12 17:32       ` Angelo Graziosi
2017-11-12 18:42         ` Eli Zaretskii
  -- strict thread matches above, loose matches on Subject: below --
2017-10-26 23:11 Phillip Lord
2017-10-28 21:47 ` Richard Stallman
2017-11-06  8:11 ` Jostein Kjønigsen
     [not found]   ` <87h8u6bae3.fsf@russet.org.uk>
     [not found]     ` <WM!524810e63610127669556b68fb62cde560daf19be50fc52d4d63dd232af7bdb0490810e03b84a6559c9b2017d8462cc3!@mailhub-mx4.ncl.ac.uk>
2017-11-08  7:31       ` Jostein Kjønigsen
2017-11-10 17:01         ` Phillip Lord
2017-11-10 18:52           ` Eli Zaretskii
2017-11-10 20:46             ` Stefan Monnier
2017-11-10 21:22               ` John Mastro
2017-11-10 21:35               ` Fabrice Popineau
2017-11-11  7:33               ` Eli Zaretskii
2017-11-11 11:34                 ` Phillip Lord
2017-11-11 14:57                 ` Stefan Monnier
2017-11-12 11:21                 ` Jostein Kjønigsen
2017-11-10 21:33             ` Fabrice Popineau
2017-11-11  7:35               ` Eli Zaretskii
2017-11-10 23:27             ` Phillip Lord
2017-11-11  0:25               ` Fabrice Popineau
2017-11-11 11:25                 ` Phillip Lord
2017-11-12  0:30                   ` Fabrice Popineau
2017-11-12  4:30                     ` Eli Zaretskii
     [not found]                     ` <87fu9hbytq.fsf@russet.org.uk>
2017-11-13 22:25                       ` Phillip Lord
2017-11-14 13:08                         ` Fabrice Popineau
2017-11-16 16:15                           ` Phillip Lord
2017-11-11  7:48               ` Eli Zaretskii
2017-11-11 11:24                 ` Phillip Lord
2017-11-11 12:01                   ` Eli Zaretskii
     [not found]           ` <<83ineiotjr.fsf@gnu.org>
2017-11-10 21:43             ` Drew Adams
2017-11-10 23:35               ` Phillip Lord
2017-11-11  7:49                 ` Eli Zaretskii
2017-11-11  7:40               ` Eli Zaretskii
2017-11-11  9:42                 ` Yuri Khan
2017-11-11 10:37                   ` Eli Zaretskii
2017-11-11 16:39                 ` Drew Adams
     [not found]                   ` <87a7zpbxza.fsf@russet.org.uk>
2017-11-13 22:44                     ` Phillip Lord
2017-11-14 14:54                       ` Drew Adams
2017-11-16 16:15                         ` Phillip Lord
2017-11-16 16:23                           ` Eli Zaretskii
2017-11-16 16:31                             ` Fabrice Popineau
2017-11-16 16:57                               ` Eli Zaretskii
2017-11-16 17:35                                 ` Fabrice Popineau
2017-11-16 17:39                                   ` Eli Zaretskii
2017-11-16 18:10                                     ` Fabrice Popineau
2017-11-16 20:45                                       ` Richard Copley
2017-11-17  7:14                                         ` Eli Zaretskii
2017-11-17  7:22                                           ` Fabrice Popineau
2017-11-17  7:35                                             ` Eli Zaretskii
2017-11-17  7:25                                         ` Fabrice Popineau
2017-11-16 17:42                                   ` Noam Postavsky
2017-11-16 17:45                                     ` Fabrice Popineau
2017-11-22 22:39                                   ` Phillip Lord

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83lgjbmtbs.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=angelo.g0@libero.it \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).