[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Starting emacs in ediff mode.

From: Eli Zaretskii
Subject: Re: Starting emacs in ediff mode.
Date: Fri, 25 Jan 2008 11:45:42 +0200

> Date: Thu, 24 Jan 2008 17:50:05 +0100
> From: "Lennart Borgman (gmail)" <>
> CC:
> Kevin Rodgers wrote:
> > DaLoverhino wrote:
> >> Hello.  I would like to use emacs as I would use say diff or sdiff.
> >>
> >> Is there a way to start emacs in ediff mode and pass along with it
> >> through the command line, the two files I want to ediff?  If the
> >> command line is unwieldy, I can always wrap it up in a script.
> > 
> > emacs --eval '(ediff-files "file_1" "file_2")'
> It is a bit more difficult on Windows:

This works for me on Windows:

   emacs --eval "(ediff-files \"file_1\" \"file_2\")"

> @rem Put this file (ediff.cmd) in your PATH.
> @rem (Created by Setup Helper at Tue Apr 03 20:48:56 2007)
> @rem -----------------------------
> @rem Starts Emacs ediff (through gnuserv) from command line.
> @rem Takes the two file to compare as parameters.
> @setlocal
> @set f1=%1
> @set f2=%2
> @set f1=%f1:\=/%
> @set f2=%f2:\=/%
> @set emacs_cd=%CD:\=/%
> @set emacs_client="c:\emacs\p\070403\emacs\bin\emacsclient.exe"
> @%emacs_client% -n
> @%emacs_client% -e "(setq default-directory \"%emacs_cd%\")"
> @%emacs_client% -n  -e "(ediff-files \"%f1%\" \"%f2%\")"

Can you explain what did you need all this complexity for?

reply via email to

[Prev in Thread] Current Thread [Next in Thread]