(py-indent-right, py-outdent-left): Watch out for (mark) returning
nil.
diff --git a/Misc/python-mode.el b/Misc/python-mode.el
index 854e3f9..7f59c31 100644
--- a/Misc/python-mode.el
+++ b/Misc/python-mode.el
@@ -502,8 +502,11 @@
current line."
(interactive
(let ((p (point))
- (m (mark)))
- (list (min p m) (max p m) (prefix-numeric-value current-prefix-arg))))
+ (m (mark))
+ (arg (prefix-numeric-value current-prefix-arg)))
+ (if m
+ (list (min p m) (max p m) arg)
+ (list p m arg))))
(let ((pos (- (point-max) (point)))
(end (save-excursion
(goto-char (or end (1+ start)))
@@ -535,8 +538,11 @@
the current line."
(interactive
(let ((p (point))
- (m (mark)))
- (list (min p m) (max p m) (prefix-numeric-value current-prefix-arg))))
+ (m (mark))
+ (arg (prefix-numeric-value current-prefix-arg)))
+ (if m
+ (list (min p m) (max p m) arg)
+ (list p m arg))))
(let ((pos (- (point-max) (point)))
(end (save-excursion
(goto-char (or end (1+ start)))