From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrea Crotti Subject: Bug in #+INCLUDE? Date: Thu, 07 Jul 2011 11:30:50 +0200 Message-ID: Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="Boundary_(ID_QYmK/arwvY3tkn9Mvz1EQA)" Return-path: Received: from eggs.gnu.org ([140.186.70.92]:58477) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qekv9-0002pZ-S2 for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 05:30:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qekv7-0002eu-G7 for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 05:30:55 -0400 Received: from mta-2.ms.rz.rwth-aachen.de ([134.130.7.73]:40937) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qekv6-0002ec-To for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 05:30:53 -0400 Received: from ironport-out-1.rz.rwth-aachen.de ([134.130.5.40]) by mta-2.ms.rz.RWTH-Aachen.de (Sun Java(tm) System Messaging Server 6.3-7.04 (built Sep 26 2008)) with ESMTP id <0LNY005NQIFFZK60@mta-2.ms.rz.RWTH-Aachen.de> for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 11:30:51 +0200 (CEST) Received: from plaetekopp (plaetekopp.informatik.RWTH-Aachen.DE [137.226.59.97]) by relay.rwth-aachen.de (8.14.4+Sun/8.13.8/1) with ESMTP id p679UplA001192 for ; Thu, 07 Jul 2011 11:30:51 +0200 (CEST) Received: from crotti by plaetekopp with local (Exim 4.72) (envelope-from ) id 1Qekv4-0001NG-PY for emacs-orgmode@gnu.org; Thu, 07 Jul 2011 11:30:50 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Org mode --Boundary_(ID_QYmK/arwvY3tkn9Mvz1EQA) Content-type: text/plain Content-transfer-encoding: 7BIT 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--- --Boundary_(ID_QYmK/arwvY3tkn9Mvz1EQA) Content-type: text/x-c++src; NAME=test.cpp Content-transfer-encoding: 7BIT Content-disposition: inline; filename=test.cpp Content-description: test.cpp my_map[0] = 1; --Boundary_(ID_QYmK/arwvY3tkn9Mvz1EQA) Content-type: text/x-org; NAME=test.org Content-transfer-encoding: 7BIT Content-disposition: inline; filename=test.org Content-description: org #+INCLUDE: "test.cpp" src C++ --Boundary_(ID_QYmK/arwvY3tkn9Mvz1EQA) Content-type: text/plain Content-transfer-encoding: 7BIT 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 --Boundary_(ID_QYmK/arwvY3tkn9Mvz1EQA)--