all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Calling emacs functions outside emacs
@ 2003-11-30 15:13 Francis Brosnan Blázquez
  0 siblings, 0 replies; 5+ messages in thread
From: Francis Brosnan Blázquez @ 2003-11-30 15:13 UTC (permalink / raw)



[-- Attachment #1.1: Type: text/plain, Size: 796 bytes --]

Hi.

I've been looking for at the mail-list archive but I didn't find any
question similar. I do know if this question have been already answered.

I'm developing a tool which generates code from an specification. In
this context, I've integrated sdiff tool inside so user can be able to
merge changes that comes from automatic source code generation and his
changes. 

But, sdiff is not ediff mode inside emacs ;)

I'm trying to launch an ediff-session inside in an already opened emacs
from my tool, but I don't know how.

So how can I connect to an already started emacs and launch an ediff
session from a program that doesn't run inside emacs ?

Any help is appreciated!.
Cheers.

-- 
Francis Brosnan Blázquez <francis@aspl.es>
Advanced Software Production Line, S.L.

[-- Attachment #1.2: Esta parte del mensaje está firmada digitalmente --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

[-- Attachment #2: Type: text/plain, Size: 151 bytes --]

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://mail.gnu.org/mailman/listinfo/help-gnu-emacs

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

* Re: Calling emacs functions outside emacs
       [not found] <mailman.816.1070208983.399.help-gnu-emacs@gnu.org>
@ 2003-12-01  8:39 ` Klaus Zeitler
  2003-12-01  9:40   ` Thorsten Bonow
  0 siblings, 1 reply; 5+ messages in thread
From: Klaus Zeitler @ 2003-12-01  8:39 UTC (permalink / raw)


>>>>> "Francis" == Francis Brosnan Blázquez <francis@aspl.es> writes:
    Francis> 
    Francis> I'm trying to launch an ediff-session inside in an already opened
    Francis> emacs from my tool, but I don't know how.
    Francis> 
    Francis> So how can I connect to an already started emacs and launch an
    Francis> ediff session from a program that doesn't run inside emacs ?

here's how I call ediff in a Korn shell script:

gnuclient -batch -eval "(ediff-files \"$file1\" \"$file2\")"

though I'm not sure if this works with the standard emacsclient instead of
gnuclient.

Klaus


-- 
 ------------------------------------------
|  Klaus Zeitler      Lucent Technologies  |
 ------------------------------------------
---
The difference between a fool and a wise man is not
the things they know, it's the questions they ask.

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

* Re: Calling emacs functions outside emacs
  2003-12-01  8:39 ` Calling emacs functions outside emacs Klaus Zeitler
@ 2003-12-01  9:40   ` Thorsten Bonow
  2003-12-01 12:00     ` Harry Putnam
  2003-12-05 19:33     ` Ian Zimmerman
  0 siblings, 2 replies; 5+ messages in thread
From: Thorsten Bonow @ 2003-12-01  9:40 UTC (permalink / raw)


>>>>> "Klaus" == Klaus Zeitler <kzeitler+usenet@gsm-mailhost.de.lucent.com> writes:

    Klaus> gnuclient -batch -eval "(ediff-files \"$file1\"
    Klaus> \"$file2\")"

    Klaus> though I'm not sure if this works with the standard
    Klaus> emacsclient instead of gnuclient.

The upcoming Emacs (now in CVS) is accompanied by a new emacsclient
which is able to evaluate lisp expressions.

Toto

-- 
Contact information and PGP key at
http://www-users.rwth-aachen.de/thorsten.bonow

It wasn't a healthy attitude, but it wasn't really a healthy world.

Friedman, Kinky (1993), A case of Lone Star. New York (Wings Books),
391

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

* Re: Calling emacs functions outside emacs
  2003-12-01  9:40   ` Thorsten Bonow
@ 2003-12-01 12:00     ` Harry Putnam
  2003-12-05 19:33     ` Ian Zimmerman
  1 sibling, 0 replies; 5+ messages in thread
From: Harry Putnam @ 2003-12-01 12:00 UTC (permalink / raw)


Thorsten Bonow <thorsten.bonow@post.rwth-aachen.de> writes:

>     Klaus> gnuclient -batch -eval "(ediff-files \"$file1\"
>     Klaus> \"$file2\")"
>
>     Klaus> though I'm not sure if this works with the standard
>     Klaus> emacsclient instead of gnuclient.
>
> The upcoming Emacs (now in CVS) is accompanied by a new emacsclient
> which is able to evaluate lisp expressions.

It will fail given the flag -eval.  It expects -e or --eval.  Also
doesn't understand -batch as in above gnuclient command so to do the
same as above with cvs emacsclient it would be:

emacsclient --eval "(ediff-files \"$file1\" \"$file2\")"

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

* Re: Calling emacs functions outside emacs
  2003-12-01  9:40   ` Thorsten Bonow
  2003-12-01 12:00     ` Harry Putnam
@ 2003-12-05 19:33     ` Ian Zimmerman
  1 sibling, 0 replies; 5+ messages in thread
From: Ian Zimmerman @ 2003-12-05 19:33 UTC (permalink / raw)



Klaus> gnuclient -batch -eval "(ediff-files \"$file1\" \"$file2\")"
Klaus> though I'm not sure if this works with the standard emacsclient
Klaus> instead of gnuclient.

Thorsten> The upcoming Emacs (now in CVS) is accompanied by a new
Thorsten> emacsclient which is able to evaluate lisp expressions.

There's also edoit, which works on GNU Emacs now.

http://lists.debian.org/debian-emacsen/2002/debian-emacsen-200205/msg00010.html

-- 
Nothing can be explained to a stone.
Or to a stoned person, either.

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

end of thread, other threads:[~2003-12-05 19:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.816.1070208983.399.help-gnu-emacs@gnu.org>
2003-12-01  8:39 ` Calling emacs functions outside emacs Klaus Zeitler
2003-12-01  9:40   ` Thorsten Bonow
2003-12-01 12:00     ` Harry Putnam
2003-12-05 19:33     ` Ian Zimmerman
2003-11-30 15:13 Francis Brosnan Blázquez

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.