Function: symbol-at-point

symbol-at-point is an autoloaded and byte-compiled function defined in thingatpt.el.gz.

Signature

(symbol-at-point)

Documentation

Return the symbol at point, or nil if none is found.

Probably introduced at or before Emacs version 28.1.

Source Code

;; Defined in /usr/src/emacs/lisp/thingatpt.el.gz
;;;###autoload
(defun symbol-at-point ()
  "Return the symbol at point, or nil if none is found."
  (let ((thing (thing-at-point 'symbol)))
    (if thing (intern thing))))