emacs-devel
[Top][All Lists]
Advanced

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

Re: A not quite stylish proposal for command line processing


From: Lennart Borgman (gmail)
Subject: Re: A not quite stylish proposal for command line processing
Date: Mon, 30 Jul 2007 18:52:38 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.5) Gecko/20070716 Thunderbird/2.0.0.5 Mnenhy/0.7.5.666

Richard Stallman wrote:
    It would allow to write

    emacs --eval '(ediff-files (*argv++) (*argv++))' "$FILE1" "$FILE2"

It is a cute hack, but does anyone really want to use this?


Maybe on w32, but I prefer using emacsclient for this. The command file below handles this:

c:\u\ediff.CMD
****** Contents: *******
@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 via email to

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