Function: tooltip-identifier-from-point
tooltip-identifier-from-point is a byte-compiled function defined in
tooltip.el.gz.
Signature
(tooltip-identifier-from-point POINT)
Documentation
Extract the identifier at POINT, if any.
Value is nil if no identifier exists at point. Identifier extraction is based on the current syntax table.
Source Code
;; Defined in /usr/src/emacs/lisp/tooltip.el.gz
;;; Debugger-related functions
(defun tooltip-identifier-from-point (point)
"Extract the identifier at POINT, if any.
Value is nil if no identifier exists at point. Identifier extraction
is based on the current syntax table."
(save-excursion
(goto-char point)
(let* ((start (progn (skip-syntax-backward "w_") (point)))
(pstate (syntax-ppss)))
(unless (or (looking-at "[0-9]")
(nth 3 pstate)
(nth 4 pstate))
(skip-syntax-forward "w_")
(when (> (point) start)
(buffer-substring start (point)))))))