Don't call org-footnote-unique label if using random labels
commitd59762b6fa00bd9acdf67eef4f47af10bf00363c
authorMatt Lundin <mdl@imapmail.org>
Sat, 5 May 2012 21:58:22 +0000 (5 21:58 +0000)
committerBastien Guerry <bzg@altern.org>
Sun, 6 May 2012 08:10:25 +0000 (6 10:10 +0200)
tree932a754df1a824253bbb7d83b17dc0b356f663f3
parent99c97fbffc89e956c9179401187fbc5a69547cf9
Don't call org-footnote-unique label if using random labels

* lisp/org-footnote.el (org-footnote-new): Don't call
  org-footnote-unique-label if org-footnote-auto-label is set to
  random.

Calling org-footnote-unique-label calls org-footnote-all-labels, which
can dramatically slow down footnote creation in a buffer with many
footnotes.  This is unecessary if org-footnote-auto-label is set to
random.
lisp/org-footnote.el