From mboxrd@z Thu Jan 1 00:00:00 1970 From: Will Everett Subject: Bug: Cannot set header-args :includes with multiple includes [8.2.7 (8.2.7-4-g880362-elpa @ /home/will/.emacs.d/elpa/org-20140616/)] Date: Tue, 26 Aug 2014 11:24:09 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=047d7b5d45d2de2c2605018abc44 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMJXw-0004Hh-SR for emacs-orgmode@gnu.org; Tue, 26 Aug 2014 12:24:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XMJXq-0005Lf-L2 for emacs-orgmode@gnu.org; Tue, 26 Aug 2014 12:24:36 -0400 Received: from mail-oa0-f46.google.com ([209.85.219.46]:35327) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XMJXq-0005LU-E5 for emacs-orgmode@gnu.org; Tue, 26 Aug 2014 12:24:30 -0400 Received: by mail-oa0-f46.google.com with SMTP id m1so12105408oag.33 for ; Tue, 26 Aug 2014 09:24:29 -0700 (PDT) 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: emacs-orgmode@gnu.org --047d7b5d45d2de2c2605018abc44 Content-Type: text/plain; charset=UTF-8 Remember to cover the basics, that is, what you expected to happen and what in fact did happen. You don't know how to make a good report? See http://orgmode.org/manual/Feedback.html#Feedback Your bug report will be posted to the Org-mode mailing list. ------------------------------------------------------------------------ I believe the :includes header argument is incorrectly parsing lists of includes for c++. This snippet: #+BEGIN_SRC C++ :includes using namespace std; printf("Hello "); cout << "world"; #+END_SRC produces a compiler error: warning: extra tokens at end of #include directive #include Then, of course printf and cout are undeclared. It looks like the include is just throwing all the includes onto one line when they should be broken up and each put on their own line. Emacs : GNU Emacs 24.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.12.2) of 2014-06-06 on barber, modified by Debian Package: Org-mode version 8.2.7 (8.2.7-4-g880362-elpa @ /home/will/.emacs.d/elpa/org-20140616/) current state: ============== (setq org-tab-first-hook '(org-hide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-result-toggle-maybe org-babel-header-arg-expand) org-speed-command-hook '(org-speed-command-default-hook org-babel-speed-command-hook) org-occur-hook '(org-first-headline-recenter) org-metaup-hook '(org-babel-load-in-session-maybe) org-html-format-drawer-function '(lambda (name contents) contents) org-log-done t org-latex-format-inlinetask-function 'ignore org-confirm-shell-link-function 'yes-or-no-p org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default org-latex-format-headline-function 'org-latex-format-headline-default-function org-after-todo-state-change-hook '(org-clock-out-if-current) org-latex-format-drawer-function '(lambda (name contents) contents) org-from-is-user-regexp "\\" org-src-mode-hook '(org-src-babel-configure-edit-buffer org-src-mode-configure-edit-buffer) org-agenda-before-write-hook '(org-agenda-add-entry-text) org-babel-pre-tangle-hook '(save-buffer) org-mode-hook '(org-journal-update-auto-mode-alist #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-all append local] 5] #[nil "\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook org-babel-show-result-all append local] 5] org-babel-result-hide-spec org-babel-hide-all-hashes) org-ascii-format-drawer-function '(lambda (name contents width) contents) org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point org-babel-execute-safely-maybe) org-enforce-todo-dependencies t org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers org-cycle-hide-inline-tasks org-cycle-show-empty-lines org-optimize-window-after-visibility-change) org-journal-dir "~/Journal/" org-archive-location "~/projects/Archived/%s_archive::" org-use-property-inheritance t org-deadline-warning-days 3 org-babel-tangle-lang-exts '(("latex" . "tex") ("python" . "py") ("C++" . "cpp") ("awk" . "awk") ("emacs-lisp" . "el")) org-confirm-elisp-link-function 'yes-or-no-p org-metadown-hook '(org-babel-pop-to-session-maybe) org-log-into-drawer t org-blocker-hook '(org-block-todo-from-children-or-siblings-or-parent) org-html-format-headline-function 'ignore org-babel-load-languages '((awk . t) (C . t) (sh . t) (python . t) (latex . t) (makefile \.t)) org-src-preserve-indentation t org-html-format-inlinetask-function 'ignore org-agenda-files '("/home/will/projects/local" "/home/will/projects") org-clock-out-hook '(org-clock-remove-empty-clock-drawer) org-confirm-babel-evaluate nil ) --047d7b5d45d2de2c2605018abc44 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Remember to cover the basics, that is,= what you expected to happen and
what in fact did happen. =C2=A0Y= ou don't know how to make a good report? =C2=A0See

=

Your bug report will be posted to the Org-mode mailing = list.
-----------------------------------------------------------= -------------

I believe the :includes header argum= ent is incorrectly parsing lists of includes for c++. This snippet:

#+BEGIN_SRC C++ :includes <cstdio> <iostream&g= t;
using namespace std;
printf("Hello ");
cout << "world";
#+END_SRC

produces a compiler error:

warning: ext= ra tokens at end of #include directive
=C2=A0#include <cstdio&= gt; <iostream>

Then, of course printf and co= ut are undeclared. It looks like the include is just throwing all the inclu= des onto one line when they should be broken up and each put on their own l= ine.


Emacs =C2=A0: GNU Emacs 24.3.1 (x86_64-p= c-linux-gnu, GTK+ Version 3.12.2)
=C2=A0of 2014-06-06 on barber, = modified by Debian
Package: Org-mode version 8.2.7 (8.2.7-4-g8803= 62-elpa @ /home/will/.emacs.d/elpa/org-20140616/)

current state:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D
(setq
=C2=A0org-tab-first-hook '(org-h= ide-block-toggle-maybe org-src-native-tab-command-maybe org-babel-hide-resu= lt-toggle-maybe
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 org-babel-header-arg-expand)
=C2=A0org-speed-command-hook '(org-speed-command-default-hook org-= babel-speed-command-hook)
=C2=A0org-occur-hook '(org-first-he= adline-recenter)
=C2=A0org-metaup-hook '(org-babel-load-in-se= ssion-maybe)
=C2=A0org-html-format-drawer-function '(lambda (name contents) con= tents)
=C2=A0org-log-done t
=C2=A0org-latex-format-inli= netask-function 'ignore
=C2=A0org-confirm-shell-link-function= 'yes-or-no-p
=C2=A0org-ascii-format-inlinetask-function 'org-ascii-format-inlin= etask-default
=C2=A0org-latex-format-headline-function 'org-l= atex-format-headline-default-function
=C2=A0org-after-todo-state-= change-hook '(org-clock-out-if-current)
=C2=A0org-latex-format-drawer-function '(lambda (name contents) co= ntents)
=C2=A0org-from-is-user-regexp "\\<William Everett= \\>"
=C2=A0org-src-mode-hook '(org-src-babel-configur= e-edit-buffer org-src-mode-configure-edit-buffer)
=C2=A0org-agenda-before-write-hook '(org-agenda-add-entry-text)
=C2=A0org-babel-pre-tangle-hook '(save-buffer)
=C2=A0= org-mode-hook '(org-journal-update-auto-mode-alist
=C2=A0 =C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0#[nil "\300\301\30= 2\303\304$\207" [org-add-hook change-major-mode-hook org-show-block-al= l append local] 5]
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0#[nil &q= uot;\300\301\302\303\304$\207" [org-add-hook change-major-mode-hook or= g-babel-show-result-all append local]
=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A05]
=C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0org-babel-result-hide-spec org-ba= bel-hide-all-hashes)
=C2=A0org-ascii-format-drawer-function '(lambda (name contents wid= th) contents)
=C2=A0org-ctrl-c-ctrl-c-hook '(org-babel-hash-a= t-point org-babel-execute-safely-maybe)
=C2=A0org-enforce-todo-de= pendencies t
=C2=A0org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-= hide-drawers org-cycle-hide-inline-tasks org-cycle-show-empty-lines
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 org-optim= ize-window-after-visibility-change)
=C2=A0org-journal-dir "~/Journal/"
=C2=A0org-archive-lo= cation "~/projects/Archived/%s_archive::"
=C2=A0org-use= -property-inheritance t
=C2=A0org-deadline-warning-days 3
=C2=A0org-babel-tangle-lang-exts '(("latex" . "tex&qu= ot;) ("python" . "py") ("C++" . "cpp&quo= t;) ("awk" . "awk") ("emacs-lisp" . "el&= quot;))
=C2=A0org-confirm-elisp-link-function 'yes-or-no-p
=C2= =A0org-metadown-hook '(org-babel-pop-to-session-maybe)
=C2=A0= org-log-into-drawer t
=C2=A0org-blocker-hook '(org-block-todo= -from-children-or-siblings-or-parent)
=C2=A0org-html-format-headline-function 'ignore
=C2=A0or= g-babel-load-languages '((awk . t) (C . t) (sh . t) (python . t) (latex= . t) (makefile \.t))
=C2=A0org-src-preserve-indentation t
<= div>=C2=A0org-html-format-inlinetask-function 'ignore
=C2=A0org-agenda-files '("/home/will/projects/local" &qu= ot;/home/will/projects")
=C2=A0org-clock-out-hook '(org-= clock-remove-empty-clock-drawer)
=C2=A0org-confirm-babel-evaluate= nil
=C2=A0)

--047d7b5d45d2de2c2605018abc44--