unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Starting emacs in ediff mode.
Date: Thu, 24 Jan 2008 17:50:05 +0100	[thread overview]
Message-ID: <4798C1BD.3030600@gmail.com> (raw)
In-Reply-To: <fn8tug$gi$1@ger.gmane.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:

@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%\")"

  reply	other threads:[~2008-01-24 16:50 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-24  0:51 Starting emacs in ediff mode DaLoverhino
2008-01-24  2:42 ` Kevin Rodgers
2008-01-24 16:50   ` Lennart Borgman (gmail) [this message]
2008-01-25  9:45     ` Eli Zaretskii
2008-01-25 14:55       ` Lennart Borgman (gmail)
2008-01-25 16:48         ` Eli Zaretskii
2008-01-25 17:03           ` Juanma Barranquero
2008-01-26  8:44             ` Eli Zaretskii
2008-01-26 13:46               ` Juanma Barranquero
2008-01-26 14:21                 ` Lennart Borgman (gmail)
     [not found]                 ` <mailman.6567.1201357297.18990.help-gnu-emacs@gnu.org>
2008-01-26 19:50                   ` Stefan Monnier
2008-01-26 20:52                     ` Lennart Borgman (gmail)
2008-01-26 21:55                       ` Stefan Monnier
     [not found]             ` <mailman.6561.1201337056.18990.help-gnu-emacs@gnu.org>
2008-01-27 13:17               ` Richard G Riley
2008-01-27 14:55                 ` Juanma Barranquero
2008-01-27 15:13                   ` Lennart Borgman (gmail)
2008-01-27 22:25                     ` Juanma Barranquero
2008-01-28 16:00                   ` reader
2008-01-28 16:36                     ` Thierry Volpiatto
2008-01-28 16:43                       ` Juanma Barranquero
     [not found]                 ` <mailman.6605.1201445728.18990.help-gnu-emacs@gnu.org>
2008-01-28 11:32                   ` Richard G Riley
     [not found]         ` <mailman.6531.1201279722.18990.help-gnu-emacs@gnu.org>
2008-01-25 20:58           ` DaLoverhino
2008-01-26  7:08             ` Thierry Volpiatto
     [not found] ` <mailman.6460.1201142559.18990.help-gnu-emacs@gnu.org>
2008-01-24 16:40   ` DaLoverhino
2008-01-24 18:03     ` Thien-Thi Nguyen
2008-01-24 18:50     ` Rob Wolfe
2008-01-25 20:51       ` DaLoverhino

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4798C1BD.3030600@gmail.com \
    --to=lennart.borgman@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).