help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Starting emacs in ediff mode.


From: Rob Wolfe
Subject: Re: Starting emacs in ediff mode.
Date: Thu, 24 Jan 2008 19:50:02 +0100
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.1 (gnu/linux)

DaLoverhino <address@hidden> writes:

[...]

> Thanks.  It works from the command line, but when I put it in a shell,
> it doesn't seem to work.  Do you know what is going on?
>
> #!/bin/bash
>
> fileA=$1
> fileB=$2
>
> if [[ -z "$fileA" && -z "$fileB" ]]
> then
>   echo "Need two files to ediff."
>   exit 1
> fi
>
>
>
> evalArg="'(ediff-files \"$fileA\" \"$fileB\" )'"
>
> echo emacs --geometry 150x80 --eval $evalArg
>
> emacs --geometry 150x80 --eval $evalArg
>
> exit 0

Try this:
emacs --geometry 150x80 --eval "(ediff-files \"$fileA\" \"$fileB\")"

HTH,
Rob


reply via email to

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