Commit 0bf3f0fa authored by Glenn Morris's avatar Glenn Morris

* lisp/progmodes/python.el (python-indent-guess-indent-offset):

Avoid corner-case error.

Fixes: debbugs:15975
parent d6686055
2013-11-26 Glenn Morris <rgm@gnu.org>
* progmodes/python.el (python-indent-guess-indent-offset):
Avoid corner-case error. (Bug#15975)
Preload leim-list.el. (Bug#4789)
* loadup.el: Load leim-list.el when found.
* startup.el (normal-top-level): Skip re-loading leim/leim-list.el.
......
......@@ -676,7 +676,7 @@ AFTER-LINE.")
(goto-char block-end)
(python-util-forward-comment)
(current-indentation))))
(if indentation
(if (and indentation (not (zerop indentation)))
(set (make-local-variable 'python-indent-offset) indentation)
(message "Can't guess python-indent-offset, using defaults: %s"
python-indent-offset)))))))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment