From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Heinrich Subject: Problems with inline source blocks Date: Mon, 27 May 2019 18:47:27 +0200 Message-ID: <94a31341b606bc671670ea5822c42fcee5d83bcc.camel@gladbachcity.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg="pgp-sha512"; protocol="application/pgp-signature"; boundary="=-bNmG2Qg5rf5dRufgCbVI" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:42921) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1hVIng-0008Jt-HV for Emacs-orgmode@gnu.org; Mon, 27 May 2019 12:48:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1hVInf-00066o-Gn for Emacs-orgmode@gnu.org; Mon, 27 May 2019 12:48:40 -0400 Received: from gallois.livando.com ([31.170.109.33]:48712) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1hVInf-00063Q-8T for Emacs-orgmode@gnu.org; Mon, 27 May 2019 12:48:39 -0400 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" To: Emacs-orgmode@gnu.org --=-bNmG2Qg5rf5dRufgCbVI Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi everyone, several issues with inline source blocks: 1) https://orgmode.org/manual/Exporting-code-blocks.html states: > The :exports header arguments control exporting code blocks only and > not inline code: but https://orgmode.org/manual/Using-Header-Arguments.html#Using-Header-Arg= uments gives as example: > src_haskell[:exports both]{fac 5} Which one is true? 2) I cannot get the results of inline blocks to be exported. When I have a file that contains: > Test: src_R[:exports results]{4*4} {{{results(=3D16=3D)}}} then the code is always exported but the results are only exported up to 623cc4625950f84442d4cde0faa9cc3ea0233283 but starting from 65ebb128bc380fe4795dedd655d6f7b685249842 the results macro is ignored and the result never appears. Looking at online documentation (other projects) like=20 https://org-babel.readthedocs.io/en/latest/eval/#inline-code-blocks I reali= ze that this may be a problem in general (look at the Example sections, such as "The answer to 2 = + 3 is .") 3) The source block never gets evaluated. I tried=20 src_sh{touch /tmp/test21.txt} but this file doesn't get created, only when I execute it directly. Can anyone point out what I'm doing wrong, or is this actually a bug? I can= 't even get a basic source block like #+begin_src R :results output :session *R* :exports none 5*5 #+end_src to ignore the code when exporting (but it's not evaluated). Thanks! Christian --=-bNmG2Qg5rf5dRufgCbVI Content-Type: application/pgp-signature; name="signature.asc" Content-Description: This is a digitally signed message part Content-Transfer-Encoding: 7bit -----BEGIN PGP SIGNATURE----- iQIzBAABCgAdFiEE+9lGLw1S8YBUC27di84V01FvzDwFAlzsFJ8ACgkQi84V01Fv zDyPUg//fr3vGnghFXidk5cJRENssax5KTP5aGZuxJ1Pq5tj52F5gbTi0xyE8sJf RflP8ttyO/AzYUkmrgcUYWPSV9ejFI/NIM07InpPRIJqy+nb4DEZj0ox29EpUaZQ Yy4yf6DgvkIBN2+2yaZ3F0DZerFUiu5/Na3+50j+bFaU3LqET852rFFQ1z5eb7GL GsgB8AvvgfEIhLTunGGz90bmcFQ9xWkm97ID45opmrmsQNKXT5GqLy+KGmWJgnKi 4vwQf/RzaNw+iW1II8+v3UNqXIC0lJFBbhdRXHJD2vlXTeoOLf/k1oBh4XX5ZLVL ROO/7io5Swuvnv6ztHUaDu1MqZ+ivR91120OQSKNR/epIILJzFXTzni5boIIDuo/ U7+YVKJe8c4rndOSgOR35td7ZabSnMTeeQZ/m0TdH8EKYR4ZxwLEsR/tIUdmQKlB lBg6Rh3Hxe5oA2haCjfdkmo0yfoNVW9NUAZ70obQoUYOsDrbX8GoQy1a38bNdndu hc/vIn5dXFiBTiaXAO4Bv2lV+/aGpRGT4SPn/W43H00PdcteKBmYsnKHMabyaa8I /TLTcxyMIhWgC8/W+u/O1o4HK4C/NqaNjOpN/rQF4RPJRngZWo8doVwePXGp5k3e SoZwWaTUk5KXdLCvc5rbEAykDLM72RXp4+5b1EMxx4JA11s0GGg= =rITz -----END PGP SIGNATURE----- --=-bNmG2Qg5rf5dRufgCbVI--