Open RuijieYu opened 1 year ago
For this snippet:
(cond (nil) )
When calling lispy-to-ifs (xi) on the beginning of the cond expression, I get this snippet:
lispy-to-ifs
cond
(if nil nil (if ly-raw newline))
After looking around I think it is because of these lines inside lispy-to-ifs: https://github.com/abo-abo/lispy/blob/31b9bfb4bc9799a2654b28e85a5cae2820c15f32/lispy.el#L5330-L5338
In particular, the call to lispy--read generates this:
lispy--read
(cond (nil) (ly-raw newline))
Maybe there should be some sort of input sanitization inside lispy-to-ifs?
For this snippet:
When calling
lispy-to-ifs
(xi) on the beginning of thecond
expression, I get this snippet:After looking around I think it is because of these lines inside
lispy-to-ifs
: https://github.com/abo-abo/lispy/blob/31b9bfb4bc9799a2654b28e85a5cae2820c15f32/lispy.el#L5330-L5338In particular, the call to
lispy--read
generates this:Maybe there should be some sort of input sanitization inside
lispy-to-ifs
?