aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2015-01-30 00:41:52 -0300
committerFabián Ezequiel Gallina2015-01-30 00:41:52 -0300
commit6c8231ee8ce527b779df81249c0e597b9a04a17f (patch)
treea0c617a1700e2b501d00cb9900b400c6f1aa19ae /lisp/progmodes/python.el
parent41c3b9241cd78a1eaeb159572b6f4e546b1f8d7b (diff)
downloademacs-6c8231ee8ce527b779df81249c0e597b9a04a17f.tar.gz
emacs-6c8231ee8ce527b779df81249c0e597b9a04a17f.zip
python.el: Handle tabs in python-indent-dedent-line.
Fixes: debbugs:19730 * lisp/progmodes/python.el (python-indent-dedent-line): Fixes for indentation with tabs. Thanks to <dale@codefu.org>. * test/automated/python-tests.el (python-indent-dedent-line-backspace-2) (python-indent-dedent-line-backspace-3): New tests.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 5842be7cf64..0d314d669eb 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1067,9 +1067,7 @@ indentation levels from right to left."
1067 (interactive "*") 1067 (interactive "*")
1068 (when (and (not (bolp)) 1068 (when (and (not (bolp))
1069 (not (python-syntax-comment-or-string-p)) 1069 (not (python-syntax-comment-or-string-p))
1070 (= (+ (line-beginning-position) 1070 (= (current-indentation) (current-column)))
1071 (current-indentation))
1072 (point)))
1073 (python-indent-line t) 1071 (python-indent-line t)
1074 t)) 1072 t))
1075 1073