From: Barry Warsaw Date: Fri, 2 Aug 1996 16:22:43 +0000 (+0000) Subject: (py-electric-colon): Use (py-next-statement -1) instead of X-Git-Tag: v1.4b2~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a766182f0869b04bf12151f314485ea71e274781;p=python (py-electric-colon): Use (py-next-statement -1) instead of (forward-line -1), to properly catch continued statements. --- diff --git a/Misc/python-mode.el b/Misc/python-mode.el index 5c56e0a4ce..e4b6e670dd 100644 --- a/Misc/python-mode.el +++ b/Misc/python-mode.el @@ -756,7 +756,7 @@ Electric behavior is inhibited inside a string or comment." (if (and (not arg) (py-outdent-p) (= indent (save-excursion - (forward-line -1) + (py-next-statement -1) (py-compute-indentation))) ) (setq outdent py-indent-offset))