From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Popineau Newsgroups: gmane.emacs.devel Subject: Re: windows installer Date: Sun, 12 Nov 2017 10:03:45 +0100 Message-ID: References: <795606216.288650.1510476987589@mail.libero.it> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="f403043788749a7432055dc56fa8" X-Trace: blaine.gmane.org 1510477465 14980 195.159.176.226 (12 Nov 2017 09:04:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Nov 2017 09:04:25 +0000 (UTC) Cc: Emacs developers To: Angelo Graziosi Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 12 10:04:21 2017 Return-path: Envelope-to: ged-emacs-devel@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 1eDoBe-0003ZG-UT for ged-emacs-devel@m.gmane.org; Sun, 12 Nov 2017 10:04:19 +0100 Original-Received: from localhost ([::1]:48407 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDoBk-0007qj-Jy for ged-emacs-devel@m.gmane.org; Sun, 12 Nov 2017 04:04:24 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDoBa-0007qd-PC for emacs-devel@gnu.org; Sun, 12 Nov 2017 04:04:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDoBX-0000Sd-LK for emacs-devel@gnu.org; Sun, 12 Nov 2017 04:04:14 -0500 Original-Received: from smtp2.supelec.fr ([160.228.120.31]:54044) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDoBX-0000R6-Bo for emacs-devel@gnu.org; Sun, 12 Nov 2017 04:04:11 -0500 Original-Received: from localhost (localhost [127.0.0.1]) by smtp2.supelec.fr (Postfix) with ESMTP id 54698807A0 for ; Sun, 12 Nov 2017 10:04:07 +0100 (CET) X-Virus-Scanned: amavisd-new at smtp2.supelec.fr Original-Received: from smtp2.supelec.fr ([127.0.0.1]) by localhost (smtp2.supelec.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tWVQ74oRFQ4O for ; Sun, 12 Nov 2017 10:04:06 +0100 (CET) Original-Received: from mail-qt0-f169.google.com (mail-qt0-f169.google.com [209.85.216.169]) by smtp2.supelec.fr (Postfix) with ESMTPSA id BF667807A5 for ; Sun, 12 Nov 2017 10:04:06 +0100 (CET) Original-Received: by mail-qt0-f169.google.com with SMTP id p44so5963479qtj.6 for ; Sun, 12 Nov 2017 01:04:06 -0800 (PST) X-Gm-Message-State: AJaThX7GYc1u6koj9QnuBUswU1ciTkPnW1Q/0s5/9WvkJcOu6i9+2Imo uyYc/1mPr2ptjhOp8QbTGdISHb7Q1A3t74hO1cM= X-Google-Smtp-Source: AGs4zMY+b9S5OqXpiwn5e9rswZt/LchPUiSYwBtDhMQkjvNWRZ58BBhTsHQ/lV7HXhhM3QmC31aKHJLjyDeQ6yR2d+g= X-Received: by 10.200.4.37 with SMTP id v37mr8893019qtg.313.1510477445874; Sun, 12 Nov 2017 01:04:05 -0800 (PST) Original-Received: by 10.140.89.242 with HTTP; Sun, 12 Nov 2017 01:03:45 -0800 (PST) In-Reply-To: <795606216.288650.1510476987589@mail.libero.it> X-Gmail-Original-Message-ID: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 160.228.120.31 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:220086 Archived-At: --f403043788749a7432055dc56fa8 Content-Type: text/plain; charset="UTF-8" 2017-11-12 9:56 GMT+01:00 Angelo Graziosi : > Fabrice Popineau wrote: > > > > Hmm ... besides copying the whole Emacs directory on an usb stick, what > else do I > > need to do in order to use emacs from this stick on another computer ? > > ..an app to be really portable cannot write the host machine, so .emacs.d > should go on the device where the portable app is installed. And the more Windows compliant the app will be, the less portable it will become. > Obviously it cannot write the registry, what PortableApps do... > When does Emacs write the registry ? > > maybe starting Emacs with this bat is sufficient: > > cat E:/Emacs_portable/bin/runemacs_portable.bat > set HOME=%~dp0..\HOME > "%~dp0runemacs.exe" %* > > Setting HOME is all that is needed. I even change PATH and all my environment from init.el. Fabrice --f403043788749a7432055dc56fa8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


2017-11-12 9:56 GMT+01:00 Angelo Graziosi <angelo.g0@libero.it&g= t;:
Fabrice Popin= eau wrote:
>
> Hmm ... besides copying the whole Emacs directory on an usb stick, wha= t else do I
> need to do in order to use emacs from this=C2=A0 stick on another comp= uter ?

..an app to be really portable cannot write the host machine, so .em= acs.d should go on the device where the portable app is installed.

And the more Windows compliant the app will be, th= e less portable it will become.
=C2=A0
Obviously it cannot write the registry, what PortableApps do...

When does Emacs write the registry ?
=C2=A0

maybe starting Emacs with this bat is sufficient:

cat E:/Emacs_portable/bin/runemacs_portable.bat
set HOME=3D%~dp0..\HOME
"%~dp0runemacs.exe" %*

Setting HOME is all that is needed.=C2=A0
I even change P= ATH and all my environment from init.el.

Fabrice

--f403043788749a7432055dc56fa8--