diff options
author | Barry Warsaw <barry@python.org> | 1995-03-20 18:32:14 (GMT) |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 1995-03-20 18:32:14 (GMT) |
commit | 3aca2a1f1cb1b2d9845d18c2367c5fc891031974 (patch) | |
tree | 4ccc4c1efb77e2017f01b1983650f14be51549d1 /Misc | |
parent | cc8914fb2207dfc269aaef046a07366ff3cfc9f1 (diff) | |
download | cpython-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')
-rw-r--r-- | Misc/python-mode.el | 2 |
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))) ) |