From 3aca2a1f1cb1b2d9845d18c2367c5fc891031974 Mon Sep 17 00:00:00 2001 From: Barry Warsaw Date: Mon, 20 Mar 1995 18:32:14 +0000 Subject: [PATCH] (py-electric-colon): use a save-excursion instead of a progn in indentation calculation test. --- Misc/python-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Misc/python-mode.el b/Misc/python-mode.el index 7c87c35a767..42cbffd402e 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))) )