Function: org-activate-footnote-links
org-activate-footnote-links is a byte-compiled function defined in
org.el.gz.
Signature
(org-activate-footnote-links LIMIT)
Documentation
Add text properties for footnotes.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org.el.gz
(defun org-activate-footnote-links (limit)
"Add text properties for footnotes."
(let ((fn (org-footnote-next-reference-or-definition limit)))
(when fn
(let* ((beg (nth 1 fn))
(end (nth 2 fn))
(label (car fn))
(referencep (/= (line-beginning-position) beg)))
(when (and referencep (nth 3 fn))
(save-excursion
(goto-char beg)
(search-forward (or label "fn:"))
(org-remove-flyspell-overlays-in beg (match-end 0))))
(add-text-properties beg end
(list 'mouse-face 'highlight
'keymap org-mouse-map
'help-echo
(if referencep "Footnote reference"
"Footnote definition")
'font-lock-fontified t
'font-lock-multiline t
'face 'org-footnote))))))