Function: smart-lisp-at-definition-p
smart-lisp-at-definition-p is a byte-compiled function defined in
hmouse-tag.el.
Signature
(smart-lisp-at-definition-p)
Documentation
Return non-nil if point is on the first line of a non-alias Lisp definition.
Apply only to non-help buffers and return nil in others.
Source Code
;; Defined in ~/.emacs.d/elpa/hyperbole-20260414.325/hmouse-tag.el
(defun smart-lisp-at-definition-p ()
"Return non-nil if point is on the first line of a non-alias Lisp definition.
Apply only to non-help buffers and return nil in others."
(unless (derived-mode-p 'help-mode)
(save-excursion
(beginning-of-line)
;; Exclude any define- lines.
(and (looking-at "\\(;*[ \t]*\\)?(\\(ert-\\)?def[[:alnum:]]+[[:space:]]")
;; Ignore alias definitions since those typically have symbol tags to lookup.
(not (looking-at "\\(;*[ \t]*\\)?(def[^ \t\n\r]*alias"))
;; Ignore lines that start with (default
(not (looking-at "\\(;*[ \t]*\\)?(default"))))))