Function: python-mark-defun
python-mark-defun is an interactive and byte-compiled function defined
in python.el.gz.
Signature
(python-mark-defun &optional ALLOW-EXTEND)
Documentation
Put mark at end of this defun, point at beginning.
The defun marked is the one that contains point or follows point.
Interactively (or with ALLOW-EXTEND non-nil), if this command is repeated or (in Transient Mark mode) if the mark is active, it marks the next defun after the ones already marked.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
;;; Mark
(defun python-mark-defun (&optional allow-extend)
"Put mark at end of this defun, point at beginning.
The defun marked is the one that contains point or follows point.
Interactively (or with ALLOW-EXTEND non-nil), if this command is
repeated or (in Transient Mark mode) if the mark is active, it
marks the next defun after the ones already marked."
(interactive "p")
(when (python-info-looking-at-beginning-of-defun)
(end-of-line 1))
(mark-defun allow-extend))