From mboxrd@z Thu Jan 1 00:00:00 1970 From: Subject: :cache and :results drawer don't get along? Date: Thu, 6 Sep 2018 20:01:40 +0200 Message-ID: <20180906180139.GB28172@tuxteam.de> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="CE+1k2dSO48ffgeK" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46138) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fxybI-0004Jj-KL for emacs-orgmode@gnu.org; Thu, 06 Sep 2018 14:01:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fxybE-0007Cu-93 for emacs-orgmode@gnu.org; Thu, 06 Sep 2018 14:01:52 -0400 Received: from mail.tuxteam.de ([5.199.139.25]:50277) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fxybD-0006AH-Pv for emacs-orgmode@gnu.org; Thu, 06 Sep 2018 14:01:48 -0400 Received: from tomas by mail.tuxteam.de with local (Exim 4.80) (envelope-from ) id 1fxyb6-0008D4-5A for emacs-orgmode@gnu.org; Thu, 06 Sep 2018 20:01:40 +0200 Content-Disposition: inline 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 --CE+1k2dSO48ffgeK Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi, Org gurus I'm using Org 9.1.9, as it comes with Emacs 27.0.50, freshly compiled =66rom sources. I'm having a hard time referencing a cached result when it's in a drawer (I like to wrap my results in a drawer). Before I file a bug report, I'd make sure that I am not doing something obviously stupid. Best with an example: * with drawer No cache, with drawer: #+NAME: with-drawer #+BEGIN_SRC emacs-lisp :results drawer 42 #+END_SRC #+RESULTS: with-drawer :RESULTS: 42 :END: #+NAME: check-with-drawer #+BEGIN_SRC emacs-lisp :var thing=3Dwith-drawer thing #+END_SRC #+RESULTS: check-with-drawer : 42 So far, so good * drawer and cache: Cached results in a drawer: #+NAME: cached-with-drawer #+BEGIN_SRC emacs-lisp :results drawer :cache yes 42 #+END_SRC #+RESULTS[4ba2e4b62c57298395b2f6f8d145dcc85264d192]: cached-with-drawer :RESULTS: 42 :END: #+NAME: check-cached-with-drawer #+BEGIN_SRC emacs-lisp :var thing=3Dcached-with-drawer thing #+END_SRC #+RESULTS: check-cached-with-drawer : nil Note how the variable is nil. I tested also :cache yes _without_ a drawer, and then it works as expected. Am I doing something stupid? Thanks for any insights -- tom=C3=A1s --CE+1k2dSO48ffgeK Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAluRa4MACgkQBcgs9XrR2kYhzQCdH7abruxhHUEMjwWxhB6U2lqJ dPUAn2UojKXZtBHYZUZAUaW6TwH6f+mD =tKbn -----END PGP SIGNATURE----- --CE+1k2dSO48ffgeK--