Skip to content
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

unwinding gives error #7

Closed
LiFlash opened this issue Dec 16, 2013 · 4 comments
Closed

unwinding gives error #7

LiFlash opened this issue Dec 16, 2013 · 4 comments

Comments

@LiFlash
Copy link

LiFlash commented Dec 16, 2013

Hi,
first of all thanks for your work. I'm glad I'm only just starting with clojure and the like, since the last months seem to be somewhat silent ;)
When trying to use the unwind refactoring I always get the message:

cljr--nothing-more-to-unwind: Wrong number of arguments: (lambda nil "Move backward an S-expression, or up an S-expression backward.
If there are no more S-expressions in this one before the opening
delimiter, move past that opening delimiter backward; otherwise, move
move backward past the S-expression preceding the point." (interactive) (condition-case nil (backward-sexp) (scan-error (if (paredit-in-string-p) (backward-char) (backward-up-list))))), 1

Where am I supposed to place the cursor? I tried it somewhere within (-> ... )

@magnars
Copy link
Contributor

magnars commented Dec 17, 2013

Looks like your version of paredit-backward does not allow the optional argument that I'm using. Which version of paredit are you using? Could you try redefining cljr--nothing-more-to-unwind to instead call paredit-backward three times, and see if that solves your problem?

@LiFlash
Copy link
Author

LiFlash commented Dec 17, 2013

Ok, paredit may be somewhat outdated, since I'm using emacs live.. it's a great place to start with, but currently I'm a little bit annoyed about the missing regular updates...
Thanks for the hint, I'll have a look into it.

@LiFlash LiFlash closed this as completed Dec 17, 2013
@magnars
Copy link
Contributor

magnars commented Dec 17, 2013

Please report back what you find. I'd like to support the paredit version in emacs live for sure.

@LiFlash
Copy link
Author

LiFlash commented Dec 17, 2013

This works perfect! Thanks
I'm not sure when it will really happen and if paredit will be updated , but a new release is planned for the next week (since about a month or so ;) ). So maybe it isn't worth sticking to the old version.

magnars added a commit that referenced this issue Dec 17, 2013
- paredit-backwards didn't always take an optional argument

Fix for #7
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

No branches or pull requests

2 participants