From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Alexandre Duret-Lutz <adl@lrde.epita.fr>
Cc: emacs-orgmode@gnu.org
Subject: Re: Bug: regression with :export both :noweb strip-export [9.2 (9.2-elpa @ /home/adl/.emacs.d/elpa/org-20181230/)]
Date: Sat, 19 Jan 2019 17:29:22 +0100 [thread overview]
Message-ID: <877ef0bogt.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CA+Xfj9Qy4fDTQmp1fgQDd+iYAXmEU29rVqcXA16qtwLNAhJJQw@mail.gmail.com> (Alexandre Duret-Lutz's message of "Wed, 16 Jan 2019 21:28:16 +0100")
Hello,
Alexandre Duret-Lutz <adl@lrde.epita.fr> writes:
> On Tue, Jan 15, 2019 at 11:50 PM Alexandre Duret-Lutz <adl@lrde.epita.fr> wrote:
>> Since I updated to org 9.2, the following idiom stopped working.
>>
>> ------------------
>> #+NAME: context
>> #+BEGIN_SRC C++ :exports none
>> #include <iostream>
>> int u = 0;
>> #+END_SRC
>>
>> #+BEGIN_SRC C++ :exports both :noweb strip-export :results verbatim
>> <<context>>
>> int main()
>> {
>> std::cout << "bar\n";
>> return u;
>> }
>> #+END_SRC
>> ------------------
>>
>> Upon export to html I'm expecting to see the second block of code with
>> <<context>> stripped away, followed by a block of text containing the
>> result (bar). With Org 9.2 I don't get the latter, because the
>> compilation of this small program fails during the export. Inspection
>> of the temporary file passed to the compiler reveals that <<context>>
>> has been stripped away from the code passed as input to the compiler,
>> not just from the code displayed in html.
>
> FWIW, reverting the change made to org-babel-exp-results in the following
> patch seems to fix my issue.
>
>
> commit 8e54cafeb286ea5eb25565a637b121a2f597c48b
> Author: Nicolas Goaziou <mail@nicolasgoaziou.fr>
> Date: Sat Jun 23 23:04:45 2018 +0200
Fixed. Thank you.
Regards,
--
Nicolas Goaziou
prev parent reply other threads:[~2019-01-19 16:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-15 22:50 Bug: regression with :export both :noweb strip-export [9.2 (9.2-elpa @ /home/adl/.emacs.d/elpa/org-20181230/)] Alexandre Duret-Lutz
2019-01-16 20:28 ` Alexandre Duret-Lutz
2019-01-19 16:29 ` Nicolas Goaziou [this message]
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=877ef0bogt.fsf@nicolasgoaziou.fr \
--to=mail@nicolasgoaziou.fr \
--cc=adl@lrde.epita.fr \
--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).