emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Bug in #+INCLUDE?
@ 2011-07-07  9:30 Andrea Crotti
  0 siblings, 0 replies; only message in thread
From: Andrea Crotti @ 2011-07-07  9:30 UTC (permalink / raw)
  To: Org mode

[-- Attachment #1: Type: text/plain, Size: 941 bytes --]

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---


[-- Attachment #2: test.cpp --]
[-- Type: text/x-c++src, Size: 15 bytes --]

my_map[0] = 1;

[-- Attachment #3: org --]
[-- Type: text/x-org, Size: 30 bytes --]

#+INCLUDE: "test.cpp" src C++

[-- Attachment #4: Type: text/plain, Size: 133 bytes --]


Org-mode version 7.6 (release_7.5.591.g9c05)
GNU Emacs 24.0.50.1 (x86_64-apple-darwin10.7.0, NS apple-appkit-1038.35)
of 2011-06-24

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-07-07  9:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-07  9:30 Bug in #+INCLUDE? Andrea Crotti

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).