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

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

Re: stdio access to the Emacs REPL


From: Alex Bennée
Subject: Re: stdio access to the Emacs REPL
Date: Fri, 15 Nov 2013 09:04:32 +0000
User-agent: mu4e 0.9.9.6pre2; emacs 24.3.1

tjolitz@gmail.com writes:

> Alex Bennée <kernel-hacker@bennee.com> writes:
>
>> Hi,
>>
>> I'm looking at replacing/augmenting the current xmlrpc method used by
>> Edit with Emacs on Chrome to communicate with the edit-server.
>> Chrome(ium) now provides a new native message API which offers a simpler
>> stdio based access:
>>
>> http://developer.chrome.com/extensions/messaging.html#native-messaging
>>
>> I was wondering if there is anyway to hook a line based stdio link into
>> a running emacs session. Something like:
>>
>> emacsclient -t -e "(eshell)"
>>
<snip>
> and then e.g. use the PicoLisp REPL to communicate with Emacs via stdin/stdout
>
> #+begin_src picolisp
> : (emc '(read) "(princ \"Hello World\")")
> -> "Hello World"
> : (emc '(read) "server-name")
> -> "my-server"
> : (emc '(line) "server-name")
> -> ("\"" "m" "y" "-" "s" "e" "r" "v" "e" "r" "\"")
> : (emc '(line T) "server-name")
> -> "\"my-server\""
> #+end_src

Thanks, that seems to work quite nicely. Unfortunatly I can't get the
Chrome side of stuff to work but that's not an Emacs problem ;-)


Cheers,

--
Alex Bennée
http://www.bennee.com/~alex




reply via email to

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