]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
(py-electric-colon): use a save-excursion instead of a progn in
authorBarry Warsaw <barry@python.org>
Mon, 20 Mar 1995 18:32:14 +0000 (18:32 +0000)
committerBarry Warsaw <barry@python.org>
Mon, 20 Mar 1995 18:32:14 +0000 (18:32 +0000)
indentation calculation test.

Misc/python-mode.el

index 7c87c35a767959ecbddb7fd3e27c3de0ef3b0d8d..42cbffd402e591fe5140df0f874816b5caa70bfe 100644 (file)
@@ -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)))
               )