Function: elisp--xref-list-index
elisp--xref-list-index is a byte-compiled function defined in
elisp-mode.el.gz.
Signature
(elisp--xref-list-index)
Documentation
Return the list index of the form at point, moving to the start.
If the buffer start was reached, return nil.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/elisp-mode.el.gz
(defun elisp--xref-list-index ()
"Return the list index of the form at point, moving to the start.
If the buffer start was reached, return nil."
(let ((i 0))
(while (condition-case nil
(let ((pt (point)))
(backward-sexp)
(< (point) pt))
(scan-error nil))
(setq i (1+ i)))
(and (not (bobp)) i)))