AmaiKinono/puni

awkward whitespace handling on slurp-forward

bymoz089 opened this issue · 4 comments

Whitespace handling in lisp-*-mode, when doing puni-slurp-forward is awkward.

Example:

(foo |)bar

doing puni-slurp-forward results in

(foo|bar )

expected (and know from older versions) behavior is:

(foo |bar)

Tested with emacs -Q version 28 and puni most recent version as of 2022.June.08.

The spaces before the ending delimiter is seen as part of the delimiter. This is for solving #18. I need to experiment a bit to know if we can handle both #18 and the situation you described.

thanks for the reply.

That could be a tough one, just to consider only newlines as part of a delimiter, would be insufficient to.

The difference between bash and lisp is, that with bash any newlines around delimiters matter.

see also #18 (comment)

Should be fixed. Please test.

Thank you. Yes it is fixed, I could not find an issue.