Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Plugins for nrepl.el?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  7 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Hugo Duncan  
View profile  
 More options Aug 28 2012, 12:43 pm
From: Hugo Duncan <h...@hugoduncan.org>
Date: Tue, 28 Aug 2012 12:43:26 -0400
Local: Tues, Aug 28 2012 12:43 pm
Subject: Plugins for nrepl.el?

Hi,

One of the ideas or nrepl is that functionality can be provided by
middleware libraries. On the clojure side, this just necessitates adding
the middleware to the nrepl server's handler function. On the nrepl.el
side of things however, any new functionality can not be activated
without some form of elisp code.

I'm wondering if you have already given some thought to providing a
standard way of plugging elisp functionality into nrepl.el. Maybe
something related to swank-cloure's jack-in injection of elisp?

Hugo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim King  
View profile  
 More options Aug 28 2012, 10:45 pm
From: Tim King <king...@gmail.com>
Date: Tue, 28 Aug 2012 19:45:25 -0700
Local: Tues, Aug 28 2012 10:45 pm
Subject: Re: [nrepl-el] Plugins for nrepl.el?

On Tue, Aug 28, 2012 at 9:43 AM, Hugo Duncan <h...@hugoduncan.org> wrote:

> I'm wondering if you have already given some thought to providing a
> standard way of plugging elisp functionality into nrepl.el. Maybe
> something related to swank-cloure's jack-in injection of elisp?

> Hi Hugo,

I hadn't given it much thought yet, since I have been focused on getting
the core functionality working.

You are talking about the bootstrapping elisp that are sent from
swank-clojure to emacs, right?
Seems like we could take a similar approach.

Another idea off the top of my head is to use the eval-in-emacs approach
that Sam Aaron was talking about in earlier post.
I have started thinking about implementing that but I don't have anything
working yet.

I am totally open to suggestions...
Cheers,
Tim


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hugo Duncan  
View profile  
 More options Aug 29 2012, 3:15 pm
From: Hugo Duncan <duncan.h...@gmail.com>
Date: Wed, 29 Aug 2012 15:15:20 -0400
Local: Wed, Aug 29 2012 3:15 pm
Subject: Re: [nrepl-el] Plugins for nrepl.el?

Tim King <king...@gmail.com> writes:
> On Tue, Aug 28, 2012 at 9:43 AM, Hugo Duncan <h...@hugoduncan.org> wrote:

>> I'm wondering if you have already given some thought to providing a
>> standard way of plugging elisp functionality into nrepl.el. Maybe
>> something related to swank-cloure's jack-in injection of elisp?

> You are talking about the bootstrapping elisp that are sent from
> swank-clojure to emacs, right?
> Seems like we could take a similar approach.

jack-in works by having elisp launch the java process and then parse the
output for text marker guards around the elisp to load. This has the
advantage of isolating the point at which code injection can occur.

> Another idea off the top of my head is to use the eval-in-emacs approach
> that Sam Aaron was talking about in earlier post.
> I have started thinking about implementing that but I don't have anything
> working yet.

eval-in-emacs would probably be the simplest solution. There are perhaps
security implications on having that enabled by default though (in slime
it defaults to disabled).

One way might be to have a nrepl op that can request setup info
middleware. e.g. sending a "client-setup" op with "client" "nrepl.el"
key could cause a reply from every middleware with an "elisp" key with
code to eval. This would require pass-through of the op by every
middleware, so might require some support in the base nrepl server to
avoid the command being reported as unsupported.

Hugo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hugo Duncan  
View profile  
 More options Sep 2 2012, 12:30 pm
From: Hugo Duncan <duncan.h...@gmail.com>
Date: Sun, 02 Sep 2012 12:30:51 -0400
Local: Sun, Sep 2 2012 12:30 pm
Subject: Re: [nrepl-el] Plugins for nrepl.el?

Hugo Duncan writes:
> One way might be to have a nrepl op that can request setup info
> middleware. e.g. sending a "client-setup" op with "client" "nrepl.el"
> key could cause a reply from every middleware with an "elisp" key with
> code to eval. This would require pass-through of the op by every
> middleware, so might require some support in the base nrepl server to
> avoid the command being reported as unsupported.

Another may be to add a `:elisp` key to the results returned by the
"describe" op. Are you planning on using the "describe" op in the latest
nREPL?

Hugo


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim King  
View profile  
 More options Sep 4 2012, 10:43 am
From: Tim King <king...@gmail.com>
Date: Tue, 4 Sep 2012 07:43:06 -0700
Local: Tues, Sep 4 2012 10:43 am
Subject: Re: [nrepl-el] Plugins for nrepl.el?

2012 at 9:30 AM, Hugo Duncan <duncan.h...@gmail.com> wrote:

> Another may be to add a `:elisp` key to the results returned by the
> "describe" op. Are you planning on using the "describe" op in the latest
> nREPL?

Yes, I think we should add support for the describe op.
Among other things, I think we will need it to figure out what operations
are available on the server.
I also want to look at using the load-file op.

Cheers,
Tim


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Nelson Morris  
View profile  
 More options Sep 4 2012, 10:50 am
From: Nelson Morris <nmor...@nelsonmorris.net>
Date: Tue, 4 Sep 2012 09:48:47 -0500
Local: Tues, Sep 4 2012 10:48 am
Subject: Re: [nrepl-el] Plugins for nrepl.el?

I've got a local copy of master using :op load-file.  I had to do it
to get C-c C-k working for clojurescript w/ piggieback.  An additional
benefit is that since I started using it I've not seen
https://github.com/kingtim/nrepl.el/issues/86, even with a normal clj
repl.

I had plans to finish cleanup and make it into a pull request, but
won't be able to get to it until saturday.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Tim King  
View profile  
 More options Sep 4 2012, 10:52 am
From: Tim King <king...@gmail.com>
Date: Tue, 4 Sep 2012 07:52:04 -0700
Local: Tues, Sep 4 2012 10:52 am
Subject: Re: [nrepl-el] Plugins for nrepl.el?

On Tue, Sep 4, 2012 at 7:48 AM, Nelson Morris <nmor...@nelsonmorris.net>wrote:

> I've got a local copy of master using :op load-file.  I had to do it
> to get C-c C-k working for clojurescript w/ piggieback.  An additional
> benefit is that since I started using it I've not seen
> https://github.com/kingtim/nrepl.el/issues/86, even with a normal clj
> repl.

> I had plans to finish cleanup and make it into a pull request, but
> won't be able to get to it until saturday.

Most excellent, thanks Nelson.
Cheers,
Tim

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »