- Open a Python file
- Starting in the first column type: def some_func(
- Press ENTER key
- Press TAB key
Expected result:
Actual result:
The cursor is in column 5.
turbofail in #emacs on Freenode suggested I edit my python.el and:
Replace this line:
(+ (current-indentation) (* (car syntax) python-indent))))
with this line:
(+ (current-indentation) (* 2 (car syntax) python-indent))))
That fixed the issue using an older version of Emacs at work.
Note: Sorry, I'd provide a patch but I'm on windows, and haven't diff or patch installed.
Adrian Parker