Function: rst-toc-get-link
rst-toc-get-link is a byte-compiled function defined in rst.el.gz.
Signature
(rst-toc-get-link LINK-BUF LINK-PNT)
Documentation
Return the link from text property at LINK-PNT in LINK-BUF.
Source Code
;; Defined in /usr/src/emacs/lisp/textmodes/rst.el.gz
(defun rst-toc-get-link (link-buf link-pnt)
;; testcover: ok.
"Return the link from text property at LINK-PNT in LINK-BUF."
(let ((mrkr (get-text-property link-pnt 'rst-toc-target link-buf)))
(unless mrkr
(error "No section on this line"))
(unless (buffer-live-p (marker-buffer mrkr))
(error "Buffer for this section was killed"))
mrkr))