(py-shift-region-left): When checking for left edged code, watch for

blank lines.
This commit is contained in:
Barry Warsaw 1996-07-23 15:03:16 +00:00
parent d3876d33d3
commit 71e315b9d9
1 changed files with 2 additions and 1 deletions

View File

@ -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