Skip to content

remote/tramp jack-in support, fix a few bugs in jack-in, and improve buffer handling for clojure-test-mode #62

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 10 commits into from
Feb 11, 2012

Conversation

tavisrudd
Copy link
Contributor

Hi Phil,
Most of this is that extension to jack-in we talked about. I've refactored it since the first draft to not depend on the extended version of 'lein jack-in' and have added automatic ssh-tunnel support.

There are also two commits here
https://github.com/tavisrudd/clojure-mode/commit/250c1476aa5ba07dfc9122424fe9fdb0b3318124
https://github.com/tavisrudd/clojure-mode/commit/823fb4bf264fbf5721e5d10401eb0ec6afcff7b5
that improve the buffering handling of clojure-test-mode a bit. They add a func for jumping back and forth between tests/impl and auto-jump to the tests if clojure-test-run-tests is called from the impl buffer (in a save-window-excursion block of course).

There's also preliminary support for sending clojure-test-mode ouput to a different buffer, but that needs a bit of a UI before it's ready for use.

Cheers,
Tavis

This can be used in conjunction with
swank.core.server/make-output-redirection and a custom slime-output-target:
technomancy/swank-clojure@83546c0

Later, I'll add a clojure-test-mode command to set the output targe location.
This also has slightly nicer window handling, in that it jumps to the
slime-repl window and moves to the end of the buffer.

NOTE: This depends on matching changes to swank-clojure's 'lein
jack-in' command.
Users might have their own variant of this installed. Fortunately,
multiple translations don't do any harm.
- this will make it easier to add support for ssh tunnels to remote
  swank and graceful handling of older versions of swank that don't
  support 'lein jack-in <port> <hostname>'

- also fixes the *slime repl nil* bug, but at the cost of
  possibly leaving the repl buffer with the wrong default-directory
@technomancy
Copy link
Contributor

Sorry, I let this slip by. Looks good to me.

technomancy added a commit that referenced this pull request Feb 11, 2012
remote/tramp jack-in support, fix a few bugs in jack-in, and improve buffer handling for clojure-test-mode
@technomancy technomancy merged commit 52cd75c into clojure-emacs:master Feb 11, 2012
@hugoduncan hugoduncan mentioned this pull request Feb 21, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants