emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Andrea Crotti <andrea.crotti.0@gmail.com>
To: Org mode <emacs-orgmode@gnu.org>
Subject: Bug in #+INCLUDE?
Date: Thu, 07 Jul 2011 11:30:50 +0200	[thread overview]
Message-ID: <sa0r562zbcl.fsf@gmail.com> (raw)

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

                 reply	other threads:[~2011-07-07  9:30 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sa0r562zbcl.fsf@gmail.com \
    --to=andrea.crotti.0@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 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).