From: "Berry, Charles" <ccberry@health.ucsd.edu>
To: Matt Price <moptop99@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: reference a remote named block in #+CALL: line
Date: Tue, 2 Nov 2021 18:11:53 +0000 [thread overview]
Message-ID: <45648611-2C36-438F-B80F-775A950C7485@health.ucsd.edu> (raw)
In-Reply-To: <CAN_Dec8Hq1HFuRNFFu5YA=4Vy0CE+aznkAPOcaVdK-umbMWgaw@mail.gmail.com>
Matt,
> On Nov 2, 2021, at 3:19 AM, Matt Price <moptop99@gmail.com> wrote:
>
> I am getting used to calling library-of-babel functions with local data structures as input variables, e.g. in this line:
>
> #+CALL: list2table(data=common-issues-list, order="rows") :results table raw
>
> where `common-issues-list` is a named org-mode list in the current file, e.g.
>
> #+NAME: common-issues-list
> - some
> - things
> - here
>
> In this particular case, I'd like to maintain a single data structure and use it in a bunch of places (it's a document I re-use in several courses, all of which are published online with different metadata stored in headings). Is there a syntax for referring to #+NAME'd elements in remote files?
>
> Sorry if I'm missing something that is explained in the docs -- I am not finding this in what I think of as the obvious places.
>
AFAIK, there is nothing like this.
However, it looks like it would be easy to modify `org-babel-lob-ingest' by adding another argument giving the name (or a list of names) of src blocks that you want added to `org-babel-library-of-babel' by replacing the `when source-name' with something like `when (member source-name only-these-names)' so only src blocks you want to invoke are ingested.
HTH,
Chuck
next prev parent reply other threads:[~2021-11-02 18:24 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-02 10:19 reference a remote named block in #+CALL: line Matt Price
2021-11-02 18:11 ` Berry, Charles [this message]
2021-11-02 19:01 ` Michael Welle
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=45648611-2C36-438F-B80F-775A950C7485@health.ucsd.edu \
--to=ccberry@health.ucsd.edu \
--cc=emacs-orgmode@gnu.org \
--cc=moptop99@gmail.com \
/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).