all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thorsten Jolitz <tjolitz@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to communicate with a running external process with
Date: Tue, 23 Jul 2013 22:13:41 +0200	[thread overview]
Message-ID: <87ppu99gqy.fsf@gmail.com> (raw)
In-Reply-To: 87mwpd3xgy.fsf@informatimago.com

"Pascal J. Bourguignon" <pjb@informatimago.com> writes:

> Thorsten Jolitz <tjolitz@gmail.com> writes:
>
>> OTOH, this topic has become quite interesting, and I'm still curious
>> about my original question: how to use all these UNP mechanisms from
>> Emacs Lisp when the other (Lisp) process is not a subprocess but already
>> running (with a given PID). 
>
> You started specifying only another "process" PID, but now you're saying
> it's a "Lisp" process.  What does that mean?

[...]

> But you are not saying what the program of the other process is. 

[...]

Not really, this is the very beginning of my original post:

,----------------------------------------------------------------------------
| From: Thorsten Jolitz <tjolitz@gmail.com>
| Subject: How to communicate with a running external process with given PID?
| Newsgroups: gmane.emacs.help
| To: help-gnu-emacs@gnu.org
| Date: Sat, 20 Jul 2013 11:06:55 +0200 (3 days, 10 hours, 55 minutes ago)
| 
| 
| Hi List, 
| 
| say I want to call another program (more exactly, another Lisp program
| that is not Emacs Lisp) from an Emacs Lisp program. 
`----------------------------------------------------------------------------

> Now, you said lisp, but since you're building a history of imprecise
> language, perhaps we should assume you mean Common Lisp?

That wasn't my intention, I was just interested in the Emacs Lisp side
when starting the thread and thought the exact Lisp dialect of the other
side is irrelevant (its an uncommon lisp). After rereading that UNP
stuff I'm aware that the other side is important too.

> There's a protocol that has been defined specifically to communicate
> between an emacs and a Common Lisp process, with which a whole IDE has
> been built in emacs, named slime (the backend, the library that
> implements that protocol on the Common Lisp side is called swank (as is
> called the protocol)).  With slime/swank you can connect a CL process
> with an emacs, and from emacs, send CL expressions to evaluate to the CL
> process and receive back results, and debug and develop CL programs.
> But if you specifically meant that, you could easily read the manual of
> slime which indicates how to create from emacs a new CL inferior process
> running swank, and how to connect from emacs to an existing CL process
> that runs a SWANK server (therefore that is listening to a specific
> port, just like a HTTP server).

I did not mean Common Lisp, but there is a Swank implementation for my
Uncommon Lisp of interest, and it did not occur to me to consider it -
so thanks for this marvelous tip!

-- 
cheers,
Thorsten




  reply	other threads:[~2013-07-23 20:13 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-22 15:27 How to communicate with a running external process with Buchs, Kevin J.
2013-07-23  7:59 ` Thorsten Jolitz
2013-07-23  8:22   ` Yuri Khan
2013-07-23  9:30     ` Thorsten Jolitz
2013-07-23 19:09   ` Pascal J. Bourguignon
2013-07-23 20:13     ` Thorsten Jolitz [this message]
2013-07-23 23:06       ` Pascal J. Bourguignon
2013-07-24  6:34         ` Thorsten Jolitz
     [not found]   ` <mailman.1659.1374606578.12400.help-gnu-emacs@gnu.org>
2013-07-23 19:12     ` Pascal J. Bourguignon
2013-07-23 20:15       ` Thorsten Jolitz
     [not found] ` <mailman.1619.1374566396.12400.help-gnu-emacs@gnu.org>
2013-07-23 14:43   ` Barry Margolin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ppu99gqy.fsf@gmail.com \
    --to=tjolitz@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.