diff options
| author | Glenn Morris | 2013-11-25 22:15:49 -0500 |
|---|---|---|
| committer | Glenn Morris | 2013-11-25 22:15:49 -0500 |
| commit | 0bf3f0fadfff621a25a7a7a260ab5c3d51b59716 (patch) | |
| tree | 89db7d1891e23c2e37f687837849e359ae2e479a /lisp/progmodes/python.el | |
| parent | d668605594cb2bb8622d77b1fc07b5beeb3252c1 (diff) | |
| download | emacs-0bf3f0fadfff621a25a7a7a260ab5c3d51b59716.tar.gz emacs-0bf3f0fadfff621a25a7a7a260ab5c3d51b59716.zip | |
* lisp/progmodes/python.el (python-indent-guess-indent-offset):
Avoid corner-case error.
Fixes: debbugs:15975
Diffstat (limited to 'lisp/progmodes/python.el')
| -rw-r--r-- | lisp/progmodes/python.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 8dc345ca1c1..458f0f16fb6 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -676,7 +676,7 @@ AFTER-LINE.") | |||
| 676 | (goto-char block-end) | 676 | (goto-char block-end) |
| 677 | (python-util-forward-comment) | 677 | (python-util-forward-comment) |
| 678 | (current-indentation)))) | 678 | (current-indentation)))) |
| 679 | (if indentation | 679 | (if (and indentation (not (zerop indentation))) |
| 680 | (set (make-local-variable 'python-indent-offset) indentation) | 680 | (set (make-local-variable 'python-indent-offset) indentation) |
| 681 | (message "Can't guess python-indent-offset, using defaults: %s" | 681 | (message "Can't guess python-indent-offset, using defaults: %s" |
| 682 | python-indent-offset))))))) | 682 | python-indent-offset))))))) |