Closed lebensterben closed 2 years ago
Hi, thanks for the bug report.
If I understand what you're saying, you're using ord-edit-special
to open the code block in a new buffer and then have parinfer-rust-mode format said buffer? If so, I'm not sure how this is a bug in parinfer-rust-mode
. parinfer-rust-mode
operates on the entire buffer that it is given. So, if org-mode
is adding the #+END_SRC
line into the elisp buffer then it's going to treat that as some lisp code and enforce the parinfer rule set on it.
you're using ord-edit-special to open the code block in a new buffer and then have parinfer-rust-mode format said buffer
Nope, I'm editing the code block just in the buffer of the org file.
I'm not sure how parinfer-rust-mode
is running in org-mode
when you aren't editing it in a specific source code buffer.
Are you running it as a minor mode for org-mode
?
Sorry I haven't respond to you in a timely manner. This is not reproducible now so it can be safely closed.
Suppose
If I format the region,
#+BEGIN_SRC elisp
and#+END_SRC
would be indented according to its level. For example:Then
parinfer
would erroneously think the line#+END_SRC
is a part of the buffer. And since it's indented, it becomes