From: Barry Warsaw Date: Mon, 20 Mar 1995 18:32:14 +0000 (+0000) Subject: (py-electric-colon): use a save-excursion instead of a progn in X-Git-Tag: v1.2b4~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=3aca2a1f1cb1b2d9845d18c2367c5fc891031974;p=thirdparty%2FPython%2Fcpython.git (py-electric-colon): use a save-excursion instead of a progn in indentation calculation test. --- diff --git a/Misc/python-mode.el b/Misc/python-mode.el index 7c87c35a7679..42cbffd402e5 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))) )