From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: org-mode git master. ox-latex export errors out due to a table
Date: Mon, 02 Nov 2015 14:25:13 -0500 [thread overview]
Message-ID: <87si4ojjae.fsf@alphaville.usersys.redhat.com> (raw)
In-Reply-To: 87ziywjkkw.fsf@alphaville.usersys.redhat.com
Nick Dokos <ndokos@gmail.com> writes:
> Kaushal Modi <kaushal.modi@gmail.com> writes:
>
>> @Nick Dokos Are you are on a commit before or after this lexical binding change? http://orgmode.org/
>> cgit.cgi/org-mode.git/commit/?id=8bccb2131374bba8c82c2774abb34af488826ce4
>>
>> The failure symtoms in my backtrace look like they could be related to this change.
>
> I think that is right.
>
> The problem seems to be with the search-refs function defined in the
> let* in org-latex--delayed-footnotes-definitions and passed down to
> org-element-map which tries to find it in the lexical environment and
> fails.
>
Brute-forcing search-refs to be a special variable (i.e. dynamically,
rather than lexically, bound) seems to fix the error, although I doubt
it's the ultimate solution:
--8<---------------cut here---------------start------------->8---
diff --git a/lisp/ox-latex.el b/lisp/ox-latex.el
index 060f423..3279be7 100644
--- a/lisp/ox-latex.el
+++ b/lisp/ox-latex.el
@@ -1459,6 +1459,8 @@ INFO is a plist used as a communication channel. See
;; Else use format string.
(t (format fmt text)))))
+(defvar search-refs) ; For byte-compiler.
+
(defun org-latex--delayed-footnotes-definitions (element info)
"Return footnotes definitions in ELEMENT as a string.
@@ -1481,7 +1483,6 @@ just outside of it."
(org-export-get-footnote-definition ref info) info))))
;; Find every footnote reference in ELEMENT.
(let* (all-refs
- search-refs ; For byte-compiler.
(search-refs
(function
(lambda (data)
--8<---------------cut here---------------end--------------->8---
--
Nick
next prev parent reply other threads:[~2015-11-02 19:25 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-02 17:05 org-mode git master. ox-latex export errors out due to a table Kaushal Modi
2015-11-02 17:53 ` Nick Dokos
2015-11-02 18:06 ` Kaushal Modi
2015-11-02 18:10 ` Kaushal Modi
2015-11-02 18:19 ` Kaushal Modi
2015-11-02 18:34 ` Kaushal Modi
2015-11-02 18:57 ` Nick Dokos
2015-11-02 19:25 ` Nick Dokos [this message]
2015-11-02 19:40 ` Kaushal Modi
2015-11-02 20:01 ` Nicolas Goaziou
2015-11-02 21:56 ` Kaushal Modi
2015-11-02 18:38 ` Nick Dokos
2015-11-02 18:48 ` Kaushal Modi
2015-11-02 18:34 ` Nick Dokos
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87si4ojjae.fsf@alphaville.usersys.redhat.com \
--to=ndokos@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.