-
-
Notifications
You must be signed in to change notification settings - Fork 45
[Fix #152] Sanitize should only remove whitespace at the end of a command #165
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
Conversation
This also gets rid of one step in the CircleCI configuration.
In order to help, I've tested: (count "1 5") on
They all return 5 as you'd expect. |
And multi-line evaluations don't mess up the REPL prompt? I recall this conversation was added to avoid having to deal with subprompts that appeared when entering multi-line expressions. |
Thanks for testing! There is also a test 😀 |
This is how it looks for Clojure 1.(7|8|9|10).0 & ClojureCLR 1.9.0:
Where I enter C-q C-j after Tried it out with Lumo & Planck and they behaved OK, but only once(!) the ((nil . ((inf-clojure-lein-cmd . "lumo -r")
(inf-clojure-minor-mode . t)
(inf-clojure-repl-type . lumo)))) For me, I only need to use this mode for For Joker, I don't use it at all. Even with the above .dir-locals.el modified for Joker's settings, it was still trying to invoke JVM related documentation and throw errors. But once I disabled |
I am trying that
It seems like each and every |
Yeah, that's exactly the problem I tried to solve originally by just converting every expression to a single-line form. Probably some post-filter is going to be a better approach, though. I guess it's a common problem with most REPLs/shells. The visual artefacts weren't the real problem - this actually messes up tooling evals as well. |
It does, and in |
This patch makes sure that we trim at the right of the sanitized command only.
I am open to get rid completely of the sanitation but I do not have the time
now for trying on all the platform.
Before submitting the PR make sure the following things have been done (and denote this
by checking the relevant checkboxes):
M-x checkdoc
warnings