emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Henrik Frisk <frisk.h@gmail.com>
To: org-mode-email <emacs-orgmode@gnu.org>
Subject: Tables and org babel
Date: Mon, 8 Nov 2021 08:45:41 +0100	[thread overview]
Message-ID: <CAO0LSb7L4mKjkjkF-o2G1d9Tcyo_NjSeM28MmBOQ=Ea9hoT2=w@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 725 bytes --]

Hi,

I'm having troubles getting more than one cell from an org table as a
variable in org-babel. Trying this example from the orgmode manual (
https://orgmode.org/manual/Environment-of-a-Code-Block.html):

#+NAME: example-table
| 1 | a |
| 2 | b |
| 3 | c |
| 4 | d |

#+BEGIN_SRC emacs-lisp :var data=example-table[,0]
  data
#+END_SRC

yields no result and in the *Messages* buffer:

executing Emacs-Lisp code block...
(data '(1 2 3 4))
Loading reftex...done
org-babel-insert-result: Wrong type argument: markerp, nil

This has worked for me in the past so I'm not sure what has changed other
than upgrading to emacs 27.2. Referencing a single cell [0,0] works as
expected.

Org 9.5
Emacs 27.2

Thanks for any help
Henrik

[-- Attachment #2: Type: text/html, Size: 1051 bytes --]

             reply	other threads:[~2021-11-08  7:55 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-08  7:45 Henrik Frisk [this message]
2021-11-08  9:04 ` Eric S Fraga
2021-11-08 11:45 ` Greg Minshall
2021-11-08 11:54   ` Greg Minshall
2021-11-08 16:00     ` Henrik Frisk

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='CAO0LSb7L4mKjkjkF-o2G1d9Tcyo_NjSeM28MmBOQ=Ea9hoT2=w@mail.gmail.com' \
    --to=frisk.h@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: Tables and org babel' \
    /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

Code repositories for project(s) associated with this 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).