Function: python-info-looking-at-beginning-of-defun
python-info-looking-at-beginning-of-defun is a byte-compiled function
defined in python.el.gz.
Signature
(python-info-looking-at-beginning-of-defun &optional SYNTAX-PPSS CHECK-STATEMENT)
Documentation
Check if point is at beginning-of-defun using SYNTAX-PPSS.
When CHECK-STATEMENT is non-nil, the current statement is checked instead of the current physical line.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python-info-looking-at-beginning-of-defun (&optional syntax-ppss
check-statement)
"Check if point is at `beginning-of-defun' using SYNTAX-PPSS.
When CHECK-STATEMENT is non-nil, the current statement is checked
instead of the current physical line."
(save-excursion
(when check-statement
(python-nav-beginning-of-statement))
(beginning-of-line 1)
(and (not (python-syntax-context-type (or syntax-ppss (syntax-ppss))))
(looking-at python-nav-beginning-of-defun-regexp))))