summaryrefslogtreecommitdiffstats
path: root/Misc/python-mode.el
diff options
context:
space:
mode:
authorBarry Warsaw <barry@python.org>1995-03-20 18:32:14 (GMT)
committerBarry Warsaw <barry@python.org>1995-03-20 18:32:14 (GMT)
commit3aca2a1f1cb1b2d9845d18c2367c5fc891031974 (patch)
tree4ccc4c1efb77e2017f01b1983650f14be51549d1 /Misc/python-mode.el
parentcc8914fb2207dfc269aaef046a07366ff3cfc9f1 (diff)
downloadcpython-3aca2a1f1cb1b2d9845d18c2367c5fc891031974.zip
cpython-3aca2a1f1cb1b2d9845d18c2367c5fc891031974.tar.gz
cpython-3aca2a1f1cb1b2d9845d18c2367c5fc891031974.tar.bz2
(py-electric-colon): use a save-excursion instead of a progn in
indentation calculation test.
Diffstat (limited to 'Misc/python-mode.el')
-rw-r--r--Misc/python-mode.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index 7c87c35..42cbffd 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -431,7 +431,7 @@ argument is provided, that many colons are inserted non-electrically."
(indent (py-compute-indentation)))
(if (and (not arg)
(py-outdent-p)
- (= indent (progn
+ (= indent (save-excursion
(forward-line -1)
(py-compute-indentation)))
)