-
-
Notifications
You must be signed in to change notification settings - Fork 132
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
Protect against symbols with unsafe chars #649
base: master
Are you sure you want to change the base?
Conversation
Almost. |
c41d26a
to
4203638
Compare
This iteration should fix the immediate problem (and I have some commits coming after for cleaning up unnecessary code). Let me know if it works. The culprit was that |
Not sure if I'm doing anything strange or if it's something Doom related which causes problems, but when testing 4203638, pretty much nothing works. Pressing |
Got it. Looks like I misunderstood what |
Fixes bug#653. * lispy-test.el (lispy-simulate-key) (lispy-simulate-keys) (lispy-simulate-expect): Added facilities to assert results after a given set of keypresses. (lispy-read-unsafe-chars): added regression tests for bug#648.
Fixes bug#648. * lispy.el lispy--symbol-safe-chars: define list of safe chars. (lispy--read): protect against unsafe chars in a symbol. (lispy--replace-regexp-in-code): add predicate to only replace on match data.
4203638
to
311cfd0
Compare
Does the current iteration work? I wrote some tests incorporating what you have tested so far, and it seems that the tests have passed on my end. |
Yes, looks like it's working! Thanks! |
Blocked by #658. Don’t have much time ATM. |
Fixes #648. Also fixes #653 by its first commit.
(lispy--read): protect against unsafe chars in a symbol.
@simendsjo: Can you check if this works?