diff Misc/python-mode.el @ 3796:ec6963c3741c legacy-trunk

(py-shift-region-left): When checking for left edged code, watch for blank lines.
author Barry Warsaw <barry@python.org>
date Tue, 23 Jul 1996 15:03:16 +0000
parents ac7018b57745
children b9a0434d2cb6
line wrap: on
line diff
--- a/Misc/python-mode.el	Tue Jul 23 03:47:28 1996 +0000
+++ b/Misc/python-mode.el	Tue Jul 23 15:03:16 1996 +0000
@@ -963,7 +963,8 @@
     (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