From: Barry Warsaw Date: Tue, 23 Jul 1996 15:03:16 +0000 (+0000) Subject: (py-shift-region-left): When checking for left edged code, watch for X-Git-Tag: v1.4b2~172 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=71e315b9d90aca5b5b74ca6cf78abf6f7be744b7;p=python (py-shift-region-left): When checking for left edged code, watch for blank lines. --- diff --git a/Misc/python-mode.el b/Misc/python-mode.el index 229ba4e1e5..80cc0f5723 100644 --- a/Misc/python-mode.el +++ b/Misc/python-mode.el @@ -963,7 +963,8 @@ You cannot outdent the region if any line is already at column zero." (goto-char start) (while (< (point) end) (back-to-indentation) - (if (zerop (current-column)) + (if (and (zerop (current-column)) + (not (looking-at "\\s *$"))) (error "Region is at left edge.")) (forward-line 1))) (py-shift-region start end (- (prefix-numeric-value