|
From: | Lennart Borgman (gmail) |
Subject: | Re: Starting emacs in ediff mode. |
Date: | Thu, 24 Jan 2008 17:50:05 +0100 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 |
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: @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%\")"
[Prev in Thread] | Current Thread | [Next in Thread] |