Function: python-indent-calculate-indentation
python-indent-calculate-indentation is a byte-compiled function
defined in python.el.gz.
Signature
(python-indent-calculate-indentation &optional PREVIOUS)
Documentation
Calculate indentation.
Get indentation of PREVIOUS level when argument is non-nil. Return the max level of the cycle when indentation reaches the minimum.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python-indent-calculate-indentation (&optional previous)
"Calculate indentation.
Get indentation of PREVIOUS level when argument is non-nil.
Return the max level of the cycle when indentation reaches the
minimum."
(let* ((indentation (python-indent--calculate-indentation))
(levels (python-indent--calculate-levels indentation)))
(if previous
(python-indent--previous-level levels (current-indentation))
(if levels
(apply #'max levels)
(prog-first-column)))))