ox-latex: Fix "void function nil" error

* lisp/ox-latex.el (org-latex--delayed-footnotes-definitions): Fix "void
  function nil" error.

Reported-by: Kaushal Modi <kaushal.modi@gmail.com>
<http://permalink.gmane.org/gmane.emacs.orgmode/102477>
This commit is contained in:
Nicolas Goaziou 2015-11-02 20:58:50 +01:00
parent 4ca1179c9e
commit a274c21419

View file

@ -1480,10 +1480,8 @@ just outside of it."
(org-export-data
(org-export-get-footnote-definition ref info) info))))
;; Find every footnote reference in ELEMENT.
(let* (all-refs
search-refs ; For byte-compiler.
(letrec ((all-refs)
(search-refs
(function
(lambda (data)
;; Return a list of all footnote references never seen
;; before in DATA.
@ -1495,7 +1493,7 @@ just outside of it."
(funcall search-refs
(org-export-get-footnote-definition ref info)))))
info)
(reverse all-refs)))))
(reverse all-refs))))
(funcall search-refs element))
""))