From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "B. T. Raven" Newsgroups: gmane.emacs.help Subject: Re: Running Emacs from a USB drive Date: Thu, 10 May 2007 22:23:07 -0500 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1178854368 12259 80.91.229.12 (11 May 2007 03:32:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 11 May 2007 03:32:48 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri May 11 05:32:47 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HmLs6-0001fi-Hm for geh-help-gnu-emacs@m.gmane.org; Fri, 11 May 2007 05:32:46 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HmLzT-0005sB-NC for geh-help-gnu-emacs@m.gmane.org; Thu, 10 May 2007 23:40:23 -0400 Original-Path: shelby.stanford.edu!newshub.stanford.edu!postnews.google.com!news1.google.com!news.glorb.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.sysmatrix.net!news.sysmatrix.net.POSTED!not-for-mail Original-NNTP-Posting-Date: Thu, 10 May 2007 22:23:44 -0500 User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) Original-Newsgroups: gnu.emacs.help In-Reply-To: Original-Lines: 22 Original-NNTP-Posting-Host: 65.45.140.121 Original-X-Trace: sv3-es44XY1AhnLbrFYWeb98sybk33SAwcQIgnK0A9V4WvxE78KCOYJyq2DGam3KMAKPfHxpWebit81MpKC!V9v5Uo5wJBhCoDGIybxP/XEMybqk3rZbPH3FxkbgmP8oSq1BLX2cGa/kmB4zxaqO5kbUXbQa5qFb!iWPPycMuFyR1XROHJrocywdx1lgxkDw= Original-X-Complaints-To: abuse@sysmatrix.net X-DMCA-Complaints-To: abuse@sysmatrix.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.34 Original-Xref: shelby.stanford.edu gnu.emacs.help:148283 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:43868 Archived-At: thorne wrote: > Hello all. If i want to run my own Emacs on various random MS-Windows > machines, is it as simple as unpacking a Windows binary distribution > onto a USB drive or iPod or whatever, and maybe making a site-start.el > to grok the current drive letter and set that as the home directory? > > I am guessing there is more to it than that...? > If I understand this aright: http://at-aka.blogspot.com/2006/06/portable-emacs-22050-on-usb.html then you will first have to grok the mount point of the flash drive and only after running emacs from there will the data-directory variable include the drive letter. If you could somehow arrange to have this drive letter added to the path then you could have a batch file in the root of the flash drive run emacs. A kludge would be to add all the letters d:\ ... z:\ to the global path of the local machine. I don't know whether the site-start.el undoes the setenv "HOME" when emacs exits. Ed