Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use ediff under Windows + NTEmacs?

I have Emacs version 23 on Windows and it seem the ediff executable is missing?

From where can I download ediff for Emacs on Windows?

like image 521
sam Avatar asked Sep 14 '11 22:09

sam


People also ask

How do I compare two files in Emacs?

To compare the contents of two text files, use M-x ediff-files and open the two files you want to compare. Emacs will then open one above the other in your main emacs window (N.B. a window is called a frame in emacs terminology), and also open a smaller window which says Type ? for help .

Which Emacs Should I install Windows?

Installing Emacs on Windows 10 The easiest method is to download Emacs for Windows directly from its makers on the GNU website. In most cases, you need the emacs-$VERSION-x86_64-installer.exe , where version is currently 27.2. This file contains a 64-bit build of Emacs with dependencies as an installer package.


2 Answers

If you have git for windows installed, then it is enough to add

C:\Program Files\Git\usr\bin\

to your PATH environment variable, because git for windows already ships with a diff executable and installs it in that folder.

like image 181
FlyingFoX Avatar answered Sep 23 '22 03:09

FlyingFoX


You can download diffUtils, extract it, add the path to %PATH% and emacs exec-path in your Emacs init file like that.

(when (string-equal system-type "windows-nt")
  (progn
    (setq diff-path "your-diff-path")
    (setenv "PATH"
            (concat diff-path ";"))
    (setq exec-path
          '(diff-path))))

finally, using M-x diff to compare what you want.

like image 33
Ender Wan Avatar answered Sep 22 '22 03:09

Ender Wan