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)

Documentation

Check if point is at beginning-of-defun using SYNTAX-PPSS.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python-info-looking-at-beginning-of-defun (&optional syntax-ppss)
  "Check if point is at `beginning-of-defun' using SYNTAX-PPSS."
  (and (not (python-syntax-context-type (or syntax-ppss (syntax-ppss))))
       (save-excursion
         (beginning-of-line 1)
         (looking-at python-nav-beginning-of-defun-regexp))))