From mboxrd@z Thu Jan 1 00:00:00 1970 From: edgar@openmail.cc Subject: Re: change in calling remote code blocks? Date: Thu, 18 Jan 2018 05:48:51 +0000 Message-ID: <9f25f48c5c6075b9420d8cc04965c2d8@openmail.cc> References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ecAGI-0002OG-GH for emacs-orgmode@gnu.org; Thu, 18 Jan 2018 08:29:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ecAGE-0003zR-Np for emacs-orgmode@gnu.org; Thu, 18 Jan 2018 08:29:46 -0500 Received: from onethreetwo.vfemail.net ([199.16.11.132]:59278 helo=vfemail.net) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ecAGE-0003xh-G4 for emacs-orgmode@gnu.org; Thu, 18 Jan 2018 08:29:42 -0500 In-Reply-To: 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 Cc: mail@nicolasgoaziou.fr, jkitchin@andrew.cmu.edu > Message: 1 > Date: Mon, 15 Jan 2018 10:07:33 -0800 > From: John Kitchin > > with a syntax like: > > #+call: si.org:figure-1() :wrap html > > > And C-c C-c on that line would call a code block named figure-1 in the > file > si.org and insert the results. > > in org 9.1.6, this does nothing. Does anyone know if this got changed, > and > if there is a new way to do that? > > John You may try loading the file into the library of babel (org-babel-lob-ingest). Then, you can call the function without a reference to the file #+CAPTION: s1.org #+BEGIN_SRC org ,#+NAME: figure-1 ,#+BEGIN_SRC python return 2 + 2 ,#+END_SRC #+END_SRC #+CAPTION: t.org #+BEGIN_SRC org ,#+CALL: figure-1() :wrap html ,#+RESULTS: ,#+BEGIN_html 4 ,#+END_html #+END_SRC > Message: 7 > Date: Mon, 15 Jan 2018 23:49:54 +0100 > From: Nicolas Goaziou > To: John Kitchin > > This sounds like a bug. Or missed feature? > > It does ring a bell. However, I couldn't find any reference to this > syntax or behaviour in the manual. Am I missing something? I only found the evident: #+BEGIN_QUOTE By calling a named code block(2) from an Org mode buffer or a table. Org can call the named ‘src’ code blocks from the *current Org mode buffer* or from the *“Library of Babel”* #+END_QUOTE (bold added by me). > Message: 8 > Date: Mon, 15 Jan 2018 16:08:26 -0800 > From: John Kitchin > babel documentation somewhere. I confirmed it does work in 8.2.10, e.g. > just with emacs -Q. It would be nice if it did :) . Thanks for working so well on Org. I have good news: Someone to whom I introduced Emacs is now using it! (not my advisor... yet). ------------------------------------------------- ONLY AT VFEmail! - Use our Metadata Mitigator to keep your email out of the NSA's hands! $24.95 ONETIME Lifetime accounts with Privacy Features! 15GB disk! No bandwidth quotas! Commercial and Bulk Mail Options!