Function: list-at-point
list-at-point is an autoloaded and byte-compiled function defined in
thingatpt.el.gz.
Signature
(list-at-point &optional IGNORE-COMMENT-OR-STRING)
Documentation
Return the Lisp list at point, or nil if none is found.
If IGNORE-COMMENT-OR-STRING is non-nil comments and strings are treated as white space.
Probably introduced at or before Emacs version 26.2.
Source Code
;; Defined in /usr/src/emacs/lisp/thingatpt.el.gz
;;;###autoload
(defun list-at-point (&optional ignore-comment-or-string)
"Return the Lisp list at point, or nil if none is found.
If IGNORE-COMMENT-OR-STRING is non-nil comments and strings are
treated as white space."
(let ((ppss (and ignore-comment-or-string (syntax-ppss))))
(save-excursion
(goto-char (or (nth 8 ppss) (point)))
(form-at-point 'list 'listp))))