Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upTreat , as a non-logical sexpr character #373
Conversation
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Malabarba
Mar 26, 2016
Member
Well, I guess that was easier than expected.
Could also add a test for this in the alignment tests? It's very easy to write. Just copy one of the other tests in there, and replace the code string with an example that failed before but works now.
|
Well, I guess that was easier than expected. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
And thanks a ton btw! |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Malabarba
Mar 26, 2016
Member
Hmm. Now that I think about it... The current code probably assumes that non-logical sexps come before the logical sexp, which is not true for commas.
I don't think we need to change that, though (commas aren't really sexps anyway). It should be enough to just (skip-chars-forward ",") after moving over a logical sexp. This won't cover some of the more tortuous cases you tried above, but it should cover the case of a single comma after a sexp, which is really the only one I'm concerned with.
|
Hmm. Now that I think about it... The current code probably assumes that non-logical sexps come before the logical sexp, which is not true for commas. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Malabarba
merged commit 786c74d
into
clojure-emacs:master
Mar 28, 2016
1 check failed
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Malabarba
Mar 28, 2016
Member
Merged! I also added a bit of code so that clojure-align will automatically cleanup excessive commas.
|
Merged! I also added a bit of code so that |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
arrdem
Mar 28, 2016
Contributor
Did you test this at all for yourself? I'm concerned that it has fairly significant limitations from mucking this afternoon
|
Did you test this at all for yourself? I'm concerned that it has fairly significant limitations from mucking this afternoon |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Malabarba
Mar 28, 2016
Member
I did, but I also changed the code a bit, which might have overcome the limitations. Have you tried the version on master?
|
I did, but I also changed the code a bit, which might have overcome the limitations. Have you tried the version on master? |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
No I've been in hospital all day. I'll check it out tomorrow. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
|
|






arrdem commentedMar 26, 2016
This causes clojure-forward-logical-sexp to skip over , when for
instance computing vertical alignments.
Fixes #367