Function: org-footnote-unique-label
org-footnote-unique-label is a byte-compiled function defined in
org-footnote.el.gz.
Signature
(org-footnote-unique-label &optional CURRENT)
Documentation
Return a new unique footnote label.
The function returns the first numeric label currently unused.
Optional argument CURRENT is the list of labels active in the buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/org/org-footnote.el.gz
(defun org-footnote-unique-label (&optional current)
"Return a new unique footnote label.
The function returns the first numeric label currently unused.
Optional argument CURRENT is the list of labels active in the
buffer."
(let ((current (or current (org-footnote-all-labels))))
(let ((count 1))
(while (member (number-to-string count) current)
(cl-incf count))
(number-to-string count))))