unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* emacs command line parameter
@ 2004-06-19  0:04 Heiko Gerdau
  2004-06-19 13:58 ` Micha Feigin
  0 siblings, 1 reply; 3+ messages in thread
From: Heiko Gerdau @ 2004-06-19  0:04 UTC (permalink / raw)


Hi,

I'm trying to start emacs using the command line options "-f" or "--eval" to 
run edirs (ediff) directly (or other functions) from a GNU linux command line 
(bash) with two directories (files) given. Something like: emacs --eval=edirs 
"MyDir1" "MyDir2" "cpp".
I never succeeded.

Is it possible to do that and what is the correct syntax?

Thanks for any hint.

Greetings
Heiko  

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: emacs command line parameter
  2004-06-19  0:04 emacs command line parameter Heiko Gerdau
@ 2004-06-19 13:58 ` Micha Feigin
  2004-06-20 21:49   ` [solved]Re: " Heiko Gerdau
  0 siblings, 1 reply; 3+ messages in thread
From: Micha Feigin @ 2004-06-19 13:58 UTC (permalink / raw)


On Sat, Jun 19, 2004 at 02:04:36AM +0200, Heiko Gerdau wrote:
> Hi,
> 
> I'm trying to start emacs using the command line options "-f" or "--eval" to 
> run edirs (ediff) directly (or other functions) from a GNU linux command line 
> (bash) with two directories (files) given. Something like: emacs --eval=edirs 
> "MyDir1" "MyDir2" "cpp".
> I never succeeded.
> 

I have had some problem with that with emacs-bidi, IIRC the = wasn't
supported and I am not sure about short versus long options. Try
removing the = and try both short and long options and see if one of
them works.

> Is it possible to do that and what is the correct syntax?
> 
> Thanks for any hint.
> 
> Greetings
> Heiko  
> 
> 
> _______________________________________________
> Help-gnu-emacs mailing list
> Help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs
>  
>  +++++++++++++++++++++++++++++++++++++++++++
>  This Mail Was Scanned By Mail-seCure System
>  at the Tel-Aviv University CC.
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [solved]Re: emacs command line parameter
  2004-06-19 13:58 ` Micha Feigin
@ 2004-06-20 21:49   ` Heiko Gerdau
  0 siblings, 0 replies; 3+ messages in thread
From: Heiko Gerdau @ 2004-06-20 21:49 UTC (permalink / raw)


On Saturday 19 June 2004 15:58, Micha Feigin wrote:
> On Sat, Jun 19, 2004 at 02:04:36AM +0200, Heiko Gerdau wrote:
> > Hi,
> >
> > I'm trying to start emacs using the command line options "-f" or "--eval"
> > to run edirs (ediff) directly (or other functions) from a GNU linux
> > command line (bash) with two directories (files) given. Something like:
> > emacs --eval=edirs "MyDir1" "MyDir2" "cpp".
> > I never succeeded.
>
> I have had some problem with that with emacs-bidi, IIRC the = wasn't
> supported and I am not sure about short versus long options. Try
> removing the = and try both short and long options and see if one of
> them works.

Thanks Micha for your answer. The "=" wasn't the problem but I finaly figured 
out a working syntax.

emacs --eval "(edirs \"MyDir1\" \"MyDir2\" \"cpp\")"

does the trick. It does also work with gnuclient and can be called via user 
menu of (for instance) the midnight commander to compare the directories 
panels currently shown or to compare a file present on both panels.
Great!  

Greetings
Heiko

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-06-20 21:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-19  0:04 emacs command line parameter Heiko Gerdau
2004-06-19 13:58 ` Micha Feigin
2004-06-20 21:49   ` [solved]Re: " Heiko Gerdau

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).