emacs 24.5 python-mode (stock version Vs 6.2.1) -
i have discovered issue python-mode in emacs. c++ develop , seldom python.
i have discovered issue:
i emacs –q
i open python file
it contains:
import re myre var = [ %
the % represents cursor location. then, @ location try tab , error:
debugger entered--lisp error: (wrong-type-argument number-or-marker-p nil) python-indent-context() python-indent--calculate-indentation() python-indent-calculate-indentation(nil) python-indent-line(nil) python-indent-line-function() indent-for-tab-command(nil) call-interactively(indent-for-tab-command nil nil) command-execute(indent-for-tab-command)
i have not developed in python month or cannot remember being issue. using emacs 24.5.1 windows 7 64, python 2.7.3 , – of course - -q no configuration.
now, try apply python-mode 6.2.1 running this
emacs –q in scratch (setq load-path (append load-path (list "~/.emacs.d/python-mode.el-6.2.1"))) (require 'python-mode)
i open python file (the same above) can indent. , good, if load python-mode 6.2.1 el file in normal configuration solve issue, new 6.2.1 not same theme coloring before (it bland , variable same colour other text, rather standing out. which-function-mode seems broke (again) , developing in python sluggish (when open large file) - remember python-mode , which-function-mode not being friendly each other in 24.3, solved stock el 24.5
for me, unfortunately, 6.2.1 solves 1 issue creates others - including regressions.
if, instead, can have patch solves indentation issue, great.
thank you.
python-mode.el's py-variable-name-face
inherits default face. use m-x customize-face ret ...
please file bugs reports at
https://gitlab.com/python-mode-devs/python-mode/issues
or
Comments
Post a Comment