Function: python-indent-shift-right

python-indent-shift-right is an interactive and byte-compiled function defined in python.el.gz.

Signature

(python-indent-shift-right START END &optional COUNT)

Documentation

Shift lines contained in region START END by COUNT columns to the right.

COUNT defaults to python-indent-offset. If region isn't active, the current line is shifted. The shifted region includes the lines in which START and END lie.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python-indent-shift-right (start end &optional count)
  "Shift lines contained in region START END by COUNT columns to the right.
COUNT defaults to `python-indent-offset'.  If region isn't
active, the current line is shifted.  The shifted region includes
the lines in which START and END lie."
  (interactive
   (if mark-active
       (list (region-beginning) (region-end) current-prefix-arg)
     (list (line-beginning-position) (line-end-position) current-prefix-arg)))
  (let ((deactivate-mark nil))
    (setq count (if count (prefix-numeric-value count)
                  python-indent-offset))
    (indent-rigidly start end count)))