From: Alexandre Duret-Lutz <adl@lrde.epita.fr>
To: emacs-orgmode@gnu.org
Cc: mail@nicolasgoaziou.fr
Subject: Re: Bug: regression with :export both :noweb strip-export [9.2 (9.2-elpa @ /home/adl/.emacs.d/elpa/org-20181230/)]
Date: Wed, 16 Jan 2019 21:28:16 +0100 [thread overview]
Message-ID: <CA+Xfj9Qy4fDTQmp1fgQDd+iYAXmEU29rVqcXA16qtwLNAhJJQw@mail.gmail.com> (raw)
In-Reply-To: <87h8e94jsx.fsf@couscous.lrde.epita.fr>
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
Fix noweb expansion during export
* lisp/ob-core.el (org-babel-sha1-hash): Add optional argument to
specify context.
(org-babel-execute-src-block): Use new argument.
* lisp/ob-exp.el (org-babel-exp-src-block): Use new argument.
(org-babel-exp-results): Fix context.
Reported-by: Ken Mankoff <mankoff@gmail.com>
<http://lists.gnu.org/r/emacs-orgmode/2018-06/msg00117.html>
--
Alexandre Duret-Lutz
next prev parent reply other threads:[~2019-01-16 20:28 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 [this message]
2019-01-19 16:29 ` Nicolas Goaziou
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=CA+Xfj9Qy4fDTQmp1fgQDd+iYAXmEU29rVqcXA16qtwLNAhJJQw@mail.gmail.com \
--to=adl@lrde.epita.fr \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/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).