Function: python-nav--end-of-block
python-nav--end-of-block is a byte-compiled function defined in
python.el.gz.
Signature
(python-nav--end-of-block)
Documentation
Move to end of current block.
This is an internal implementation of python-nav-end-of-block without
the navigation cache.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python-nav--end-of-block ()
"Move to end of current block.
This is an internal implementation of `python-nav-end-of-block' without
the navigation cache."
(when (python-nav-beginning-of-block)
(let ((block-indentation (current-indentation)))
(python-nav-end-of-statement)
(while (and (forward-line 1)
(not (eobp))
(or (and (> (current-indentation) block-indentation)
(or (python-nav-end-of-statement) t))
(python-info-current-line-comment-p)
(python-info-current-line-empty-p))))
(python-util-forward-comment -1)
(point-marker))))