I experienced a weird behavior when including a C++ file, and after an update to the latest revision of org-mode the problem is still there. It's very simple to reproduce, with a test.org and test.cpp file as attached, trying to export to pdf (and latex) org-mode puts in the output file "footnote definition not found". The problem I think is that it tries to evaluate the footnote in expressions like: my_map[0] = 1; But it should not since it's just a raw file inclusion. Another thing since I'm here, I'm still seeing all the compilation warnings relative to "interactive-p", but if I check the source code where I see the warnings I see the new macro. And I don't see how the macro can expand to interactive-p since already the first condition is satisfied. --8<---------------cut here---------------start------------->8--- (if (or (> emacs-major-version 23) --8<---------------cut here---------------end--------------->8---