Function: smart-python-at-tag-p
smart-python-at-tag-p is an autoloaded and byte-compiled function
defined in hmouse-tag.el.
Signature
(smart-python-at-tag-p &optional NO-FLASH)
Documentation
Return Python tag name that point is within, else nil.
When optional NO-FLASH, do not flash.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hmouse-tag.el
;;;###autoload
(defun smart-python-at-tag-p (&optional no-flash)
"Return Python tag name that point is within, else nil.
When optional NO-FLASH, do not flash."
(let* ((identifier-chars "a-zA-Z0-9_")
(identifier-fragment (concat "[a-zA-Z_][" identifier-chars "]*"))
(identifier (concat identifier-fragment "\\(\\."
identifier-fragment "\\)*"))
start end tag)
(save-excursion
;; Allow for name1.name2.module tags.
(while (and (/= (skip-chars-backward identifier-chars) 0)
(/= (skip-chars-backward "\.") 0)))
(when (= (following-char) ?.)
(forward-char 1))
(setq start (point))
(while (and (/= (skip-chars-forward identifier-chars) 0)
(/= (skip-chars-forward "\.") 0)))
(when (= (preceding-char) ?.)
(backward-char 1))
(setq end (point))
(goto-char start)
(setq tag (buffer-substring-no-properties start end))
(if (and (looking-at identifier)
(not (member (downcase tag) smart-python-keywords)))
(if no-flash
tag
(smart-flash-tag tag start end))))))