[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Ediff from command line - winXP
From: |
Søren "Pengman" Pedersen |
Subject: |
Re: Ediff from command line - winXP |
Date: |
Thu, 6 Nov 2003 17:57:32 +0100 |
> You coud use the emacs function expand-file-name:
> expand-file-name is a built-in function.
> (expand-file-name NAME &optional DEFAULT-DIRECTORY)
>
> Convert filename NAME to absolute, and canonicalize it.
> Second arg DEFAULT-DIRECTORY is directory to start with if NAME is
relative
> (does not start with slash); if DEFAULT-DIRECTORY is nil or missing,
> the current buffer's value of default-directory is used.
> File name components that are `.' are removed, and
> so are file name components followed by `..', along with the `..'
itself;
> note that these simplifications are done without checking the resulting
> file names in the file system.
> An initial `~/' expands to your home directory.
> An initial `~USER/' expands to USER's home directory.
> See also the function `substitute-in-file-name'.
>
> gnudoit "(ediff (expand-file-name \"%2\" \"%1\") (expand-file-name \"%3\"
\"%1\"))"
>
> Then you call the batch file with the full directory path (don't know
> how to get this) and the two file names.
Thanx - That war just what I needed