From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Angelo Graziosi Newsgroups: gmane.emacs.devel Subject: Re: windows installer Date: Sun, 12 Nov 2017 18:32:34 +0100 (CET) Message-ID: <1085917998.292094.1510507954665@mail.libero.it> References: <795606216.288650.1510476987589@mail.libero.it> <83r2t3n3c8.fsf@gnu.org> <1831176140.285570.1510496865508@mail.libero.it> <83lgjbmtbs.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1510507973 10370 195.159.176.226 (12 Nov 2017 17:32:53 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Nov 2017 17:32:53 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 12 18:32:48 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 1eDw7i-0002Ao-6L for ged-emacs-devel@m.gmane.org; Sun, 12 Nov 2017 18:32:46 +0100 Original-Received: from localhost ([::1]:50799 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDw7n-0002iU-MT for ged-emacs-devel@m.gmane.org; Sun, 12 Nov 2017 12:32:51 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eDw7d-0002iP-OW for emacs-devel@gnu.org; Sun, 12 Nov 2017 12:32:42 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eDw7a-0000o3-Kw for emacs-devel@gnu.org; Sun, 12 Nov 2017 12:32:41 -0500 Original-Received: from smtp-18-i2.italiaonline.it ([213.209.12.18]:58948 helo=libero.it) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eDw7a-0000nh-DQ for emacs-devel@gnu.org; Sun, 12 Nov 2017 12:32:38 -0500 Original-Received: from oxapps-07-040.iol.local ([10.101.8.50]) by smtp-18.iol.local with SMTP id Dw7Wesx94LMkXDw7WeeTrQ; Sun, 12 Nov 2017 18:32:36 +0100 x-libjamoibt: 1601 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=libero.it; s=s2014; t=1510507956; bh=rfJjBlWdoC3mvWSNS/wu5M8Vgeona6YM2vAQe1gYMck=; h=Date:From:To:Cc:In-Reply-To:References:Subject; b=otRNXTbr4BvCYVYXXYvd8Pq+5R8rUzrVkMrDydo+Tj0/5XL6eFyRy1zrLlbs7zAPT PKmEkUfqC2L+oNeCaJ6ScncBQ0xOYG8F1SddW94IgGDeD/NqKf/1nEWMxOmVU8Tc+q wVKKefg5Be5RuPW8RoUAe9sf/357PJh5CcPk+tKOXXLUQFQXFjc1avxe2PW8mraw0c 0dryw070OPjDErenE86u0JRB6Cy4+tF74B6XXDLICaTNKBtX7lgrUuYJJkCjF+cse0 eF2tyDi82ZeHOFL+jH1U2CJum6DA/5axjHdfYpx2+6ezLdggdU6qpHOKujd3bUuY/Z yrxSFhcli5kCg== X-CNFS-Analysis: v=2.2 cv=abgRpVgt c=1 sm=1 tr=0 a=cmBNKGzWHtVJ3SfykVa/lw==:117 a=f0HV1t49THEA:10 a=IkcTkHD0fZMA:10 a=mDV3o1hIAAAA:8 a=uPZiAMpXAAAA:8 a=otq3rwU4cXJfg9nJq14A:9 a=QEXdDO2ut3YA:10 a=_FVE-zBwftR9WsbkzFJk:22 In-Reply-To: <83lgjbmtbs.fsf@gnu.org> X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.3-Rev32 X-Originating-IP: 82.50.203.198 X-Originating-Client: open-xchange-appsuite x-libjamsun: iTFTAnlhlJDW+MHe9kvnM4OzUqpyh4vL x-libjamv: NuDq6GcTAjs= X-CMAE-Envelope: MS4wfA7a7xqkYnyg9DRcAJsiVR6qfd6ZNcWbSfk7QOgK+SASHQq/LxnAZ9yNalcS700nFSnFEDwgzDediXHGyboUEAaTsbMyHNSWxGi+EhejIWcUNhpr8gwx 8cMS10hhO2UQYqTwV3IFVZ4tHftCXJe+vyfz2vCNAnxF0iirLAkJRumsCezfF3HY+bl35jk686j5AnxfI4ugoPymMVo7VbAXywk= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 213.209.12.18 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:220098 Archived-At: > Il 12 novembre 2017 alle 16.04 Eli Zaretskii ha scritto: > > No, you redefine HOME for every application that Emacs will invoke as > well. > > 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. Hmm.. thanks for clarification.. Meanwhile I found this discussion: https://stackoverflow.com/questions/350345/how-can-i-have-a-portable-emacs and this answer seems interesting: create a directory in the root of your usb drive called 'home'. create site-start.el in the site-lisp folder and then copy this and you are all set to go. (defvar %~dp0 (substring data-directory 0 3)) (defvar usb-home-dir (concat %~dp0 "home/")) (setenv "HOME" usb-home-dir) What do you think? It looks better (maybe not the last!) of the other using a .bat file..