You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Since upgrading Emacs and a load of packages, hitting TAB in a file with sage-mode often gives me the error py-forward-statement: buffer not in python-mode.
For instance, with a file containing:
def f():
return 1
I get the error hitting TAB on the return line, but not on the def line.
This also happens in a clean emacs with emacs -q.
The text was updated successfully, but these errors were encountered:
This is because py-forward-statement checks if major-mode is strictly equal to python-mode (I opened an issue in the python-mode repository https://gitlab.com/python-mode-devs/python-mode/issues/39). The following is a workaround by advice:
Since upgrading Emacs and a load of packages, hitting TAB in a file with
sage-mode
often gives me the errorpy-forward-statement: buffer not in python-mode
.For instance, with a file containing:
I get the error hitting TAB on the
return
line, but not on thedef
line.This also happens in a clean emacs with
emacs -q
.The text was updated successfully, but these errors were encountered: