Kaydet (Commit) 3aca2a1f authored tarafından Barry Warsaw's avatar Barry Warsaw

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

indentation calculation test.
üst cc8914fb
...@@ -431,7 +431,7 @@ argument is provided, that many colons are inserted non-electrically." ...@@ -431,7 +431,7 @@ argument is provided, that many colons are inserted non-electrically."
(indent (py-compute-indentation))) (indent (py-compute-indentation)))
(if (and (not arg) (if (and (not arg)
(py-outdent-p) (py-outdent-p)
(= indent (progn (= indent (save-excursion
(forward-line -1) (forward-line -1)
(py-compute-indentation))) (py-compute-indentation)))
) )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment