(py-electric-colon): use a save-excursion instead of a progn in

indentation calculation test.
This commit is contained in:
Barry Warsaw 1995-03-20 18:32:14 +00:00
parent cc8914fb22
commit 3aca2a1f1c

View 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)))
)