Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8631485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T09:13:35+00:00 2026-06-12T09:13:35+00:00

I am successfully running Emacs from a portable drive (USB stick) but when I

  • 0

I am successfully running Emacs from a portable drive (USB stick) but when I try to use diff functions I run into trouble.
I’ve installed cygwin and it works with Emacs when I add the path to diff.exe to the environmental variable PATH in Windows. The problem is that with that approach I have to edit the environmental variables on every computer I’d like to use. No good.

Then I tried to add it to the path variable from within my site-start.el. The path is added when i examine the variable from within Emacs but still Emacs can’t find the diff tool.

Does anyone have any ideas how to solve this?

Thanks in advance

— Martin

Edit:
My site-lisp.el looks like this now and nothing has worked so far (except for adding the path manually to the PATH environmental variable):

;
; Get drive letter
;
(defvar usb-drive-letter (substring data-directory 0 2)) 

;
; Add cygwin-folder to path and exec-path
;
(defvar cygwin-folder (concat usb-drive-letter "/PortableApps/CygwinPortable/App/Cygwin/bin/"))
(setenv "PATH" (concat (getenv "PATH") ";" cygwin-folder))
(setq exec-path (append exec-path cygwin-folder))

My folders are as follows:

[root of usb stick]
\PortableApps\Emacs\bin  (including runemacs.exe)
\PortableApps\CygwinPortable\App\Cygwin\bin   (including diff.exe)
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T09:13:35+00:00Added an answer on June 12, 2026 at 9:13 am

    I ended up moving diff.exe to the Emacs bin-folder instead. Nothing else I’ve found is working. Now my only problem is the bloody nodosfilewarning variable to stop cygwin complain on my ms-dos paths…

    Cheers

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following script running successfully. However if I try to use a
i have use java script successfully running in my project but when i have
I am using Struts application while running welcome page is run successfully after that
I'm successfully running this query: $_productCollection = Mage::getResourceModel('reports/product_collection') ->addAttributeToSelect('*') ->setOrder('created_at', 'desc') ->setPage(1, 5); but
i have created table using Sqlite3.and also inserted record in that table.its running successfully.but
I have a build script running successfully, but I am having a hard time
I am successfully running Bluetooth-SPP applications relying on http://bluecove.org/ That is Java to Java.
i am successfully running Parallel FPGroth Algorithm of Apache mahout on top of hadoop.
I have developed a view based project in Xcode. It is successfully running in
I am having trouble deploying express app on nodester. After successfully running the default

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.