]> granicus.if.org Git - python/commitdiff
(py-shift-region-left): When checking for left edged code, watch for
authorBarry Warsaw <barry@python.org>
Tue, 23 Jul 1996 15:03:16 +0000 (15:03 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 23 Jul 1996 15:03:16 +0000 (15:03 +0000)
blank lines.

Misc/python-mode.el

index 229ba4e1e5aaf324c972700b7fbf3e6a9b8db0fb..80cc0f5723fdbda26a6b322644902d85cfc7d3df 100644 (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