* Ediff from command line - winXP
@ 2003-11-04 2:55 Søren "Pengman" Pedersen
2003-11-04 5:46 ` Eli Zaretskii
2003-11-04 7:34 ` Stefan Reichör
0 siblings, 2 replies; 6+ messages in thread
From: Søren "Pengman" Pedersen @ 2003-11-04 2:55 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 453 bytes --]
Hey all...
Im trying to invoke emacs to do a comparesion of two files under windows XP
with
emacs -f (ediff-files "file1" "file2")
from a command line, but O get the following errors in the *messages* buffer
within emacs
command-line-1: Symbol's function definition is void: \(ediff-files
Server subprocess exited
2 questions:
1. How do I make it work??
2. How would I send this command to a running emacs via gnuclientw??
thanks in advance
søren
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Ediff from command line - winXP
2003-11-04 2:55 Ediff from command line - winXP Søren "Pengman" Pedersen
@ 2003-11-04 5:46 ` Eli Zaretskii
2003-11-04 7:34 ` Stefan Reichör
1 sibling, 0 replies; 6+ messages in thread
From: Eli Zaretskii @ 2003-11-04 5:46 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 570 bytes --]
> From: "Søren \"Pengman\" Pedersen" <pengman@pengworld.zzn.com>
> Newsgroups: gnu.emacs.help
> Date: Tue, 4 Nov 2003 03:55:47 +0100
>
> Im trying to invoke emacs to do a comparesion of two files under windows XP
> with
> emacs -f (ediff-files "file1" "file2")
> from a command line, but O get the following errors in the *messages* buffer
> within emacs
>
> command-line-1: Symbol's function definition is void: \(ediff-files
> Server subprocess exited
Use --eval instead of -f, and put the entire parenthesized expression
into quotes, to make it a single argument.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Ediff from command line - winXP
2003-11-04 2:55 Ediff from command line - winXP Søren "Pengman" Pedersen
2003-11-04 5:46 ` Eli Zaretskii
@ 2003-11-04 7:34 ` Stefan Reichör
2003-11-04 11:28 ` Søren "Pengman" Pedersen
1 sibling, 1 reply; 6+ messages in thread
From: Stefan Reichör @ 2003-11-04 7:34 UTC (permalink / raw)
> Im trying to invoke emacs to do a comparesion of two files under windows XP
> with
> emacs -f (ediff-files "file1" "file2")
> from a command line, but O get the following errors in the *messages* buffer
> within emacs
>
> command-line-1: Symbol's function definition is void: \(ediff-files
> Server subprocess exited
>
> 2 questions:
>
> 1. How do I make it work??
>
> 2. How would I send this command to a running emacs via gnuclientw??
Hi Søren!
I use gnudoit:
gnudoit "(ediff-files \"file1\" \"file2\")"
Stefan.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Ediff from command line - winXP
2003-11-04 7:34 ` Stefan Reichör
@ 2003-11-04 11:28 ` Søren "Pengman" Pedersen
2003-11-05 9:03 ` Stefan Reichör
0 siblings, 1 reply; 6+ messages in thread
From: Søren "Pengman" Pedersen @ 2003-11-04 11:28 UTC (permalink / raw)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 837 bytes --]
"Stefan Reichör" <stefan.reichoer@riic.at> wrote in message
news:w4dbrrs8u43.fsf@felix.riic.uni-linz.ac.at...
>
> Hi Søren!
>
> I use gnudoit:
> gnudoit "(ediff-files \"file1\" \"file2\")"
>
> Stefan.
>
Hi Stefan - and thanks
that sort of works... And by that I means that it works - but not really in
the the way I would like to do it:
I would like to be able to use this command in a .bat-file, like:
compare.bat:
gnudoit "(ediff \"%1\" \"%2\")"
but that wont work since the filename have to be in either d:\\files\\file1
(double backslash) or d:/files/file1 (unix way - with single slashes)...
My questions is now:
1: Can I make the emacs system look in the current directory for the files??
2: Is there a way to make batch-files expand %1 into either of these paths
(Might be the wrong NG for this question)
Søren
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Ediff from command line - winXP
2003-11-04 11:28 ` Søren "Pengman" Pedersen
@ 2003-11-05 9:03 ` Stefan Reichör
2003-11-06 16:57 ` Søren "Pengman" Pedersen
0 siblings, 1 reply; 6+ messages in thread
From: Stefan Reichör @ 2003-11-05 9:03 UTC (permalink / raw)
Hallo Søren!
> that sort of works... And by that I means that it works - but not really in
> the the way I would like to do it:
>
> I would like to be able to use this command in a .bat-file, like:
> compare.bat:
> gnudoit "(ediff \"%1\" \"%2\")"
>
> but that wont work since the filename have to be in either d:\\files\\file1
> (double backslash) or d:/files/file1 (unix way - with single slashes)...
> My questions is now:
> 1: Can I make the emacs system look in the current directory for the files??
> 2: Is there a way to make batch-files expand %1 into either of these paths
> (Might be the wrong NG for this question)
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.
Stefan.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Ediff from command line - winXP
2003-11-05 9:03 ` Stefan Reichör
@ 2003-11-06 16:57 ` Søren "Pengman" Pedersen
0 siblings, 0 replies; 6+ messages in thread
From: Søren "Pengman" Pedersen @ 2003-11-06 16:57 UTC (permalink / raw)
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-11-06 16:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-04 2:55 Ediff from command line - winXP Søren "Pengman" Pedersen
2003-11-04 5:46 ` Eli Zaretskii
2003-11-04 7:34 ` Stefan Reichör
2003-11-04 11:28 ` Søren "Pengman" Pedersen
2003-11-05 9:03 ` Stefan Reichör
2003-11-06 16:57 ` Søren "Pengman" Pedersen
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).