Function: python-indent-line-function

python-indent-line-function is a byte-compiled function defined in python.el.gz.

Signature

(python-indent-line-function)

Documentation

indent-line-function for Python mode.

When the variable last-command is equal to one of the symbols inside python-indent-trigger-commands it cycles possible indentation levels from right to left.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python-indent-line-function ()
  "`indent-line-function' for Python mode.
When the variable `last-command' is equal to one of the symbols
inside `python-indent-trigger-commands' it cycles possible
indentation levels from right to left."
  (python-indent-line
   (and (memq this-command python-indent-trigger-commands)
        (eq last-command this-command))))