Open duianto opened 3 years ago
@duianto thanks for the report. Does spacemacs change the behavior of sexp navigation functions?
I haven't used Emacs for a couple of years. I don't know if Spacemacs changes the sexp navigation functions.
From the System Info in the original post, the steps above seem to have been tested without Spacemacs, just Emacs
, evil
, and multi-line
.
It would be better if a current Emacs user tested the reproduction steps to confirm that the error still occurs.
In
evil-mode
when the cursor is on the first element. Then the first call tomulti-line
works as expected.But it leaves the cursor to the left of the open bracket.
This means that the next call to
multi-line
results in the error message:Reproduction steps
In a
python-mode
buffer.|
) on the first element:M-x multi-line
results in:M-x multi-line
againObserved
A possible solution
Maybe the cursor should stay on the first element:
It works without
evil-mode
It works as expected when
evil-mode
is disabled. Because the cursor stays to the right of the open bracket.System Info
multi-line-20170822.226 evil-20210220.2343 GNU Emacs 27.1 (build 1, x86_64-w64-mingw32) of 2020-08-21