[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)" <lennart.borgman@gmail.com>
> CC: help-gnu-emacs@gnu.org
>
> 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?
- Starting emacs in ediff mode., DaLoverhino, 2008/01/23
- Re: Starting emacs in ediff mode., Kevin Rodgers, 2008/01/23
- Re: Starting emacs in ediff mode., Lennart Borgman (gmail), 2008/01/24
- Re: Starting emacs in ediff mode.,
Eli Zaretskii <=
- Re: Starting emacs in ediff mode., Lennart Borgman (gmail), 2008/01/25
- Re: Starting emacs in ediff mode., Eli Zaretskii, 2008/01/25
- Re: Starting emacs in ediff mode., Juanma Barranquero, 2008/01/25
- Re: Starting emacs in ediff mode., Eli Zaretskii, 2008/01/26
- Re: Starting emacs in ediff mode., Juanma Barranquero, 2008/01/26
- Re: Starting emacs in ediff mode., Lennart Borgman (gmail), 2008/01/26
- Message not available
- Re: Starting emacs in ediff mode., Stefan Monnier, 2008/01/26
- Re: Starting emacs in ediff mode., Lennart Borgman (gmail), 2008/01/26
- Re: Starting emacs in ediff mode., Stefan Monnier, 2008/01/26
- Message not available
- Re: Starting emacs in ediff mode., Richard G Riley, 2008/01/27