* Tables and org babel
@ 2021-11-08 7:45 Henrik Frisk
2021-11-08 9:04 ` Eric S Fraga
2021-11-08 11:45 ` Greg Minshall
0 siblings, 2 replies; 5+ messages in thread
From: Henrik Frisk @ 2021-11-08 7:45 UTC (permalink / raw)
To: org-mode-email
[-- 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 --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Tables and org babel
2021-11-08 7:45 Tables and org babel Henrik Frisk
@ 2021-11-08 9:04 ` Eric S Fraga
2021-11-08 11:45 ` Greg Minshall
1 sibling, 0 replies; 5+ messages in thread
From: Eric S Fraga @ 2021-11-08 9:04 UTC (permalink / raw)
To: Henrik Frisk; +Cc: org-mode-email
On Monday, 8 Nov 2021 at 08:45, Henrik Frisk wrote:
> 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):
Data point: works just fine for me.
--
: Eric S Fraga via Emacs 28.0.60, Org release_9.5-192-gd4e192
: Latest paper written in org: https://arxiv.org/abs/2106.05096
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Tables and org babel
2021-11-08 7:45 Tables and org babel Henrik Frisk
2021-11-08 9:04 ` Eric S Fraga
@ 2021-11-08 11:45 ` Greg Minshall
2021-11-08 11:54 ` Greg Minshall
1 sibling, 1 reply; 5+ messages in thread
From: Greg Minshall @ 2021-11-08 11:45 UTC (permalink / raw)
To: Henrik Frisk; +Cc: org-mode-email
my data point:
- emacs -Q: works as (i assume) expected
- emacs: i get an error, with this backtrace
----
Debugger entered--Lisp error: (wrong-type-argument markerp nil)
#f(compiled-function () #<bytecode 0x15883e43183d>)()
org-babel-insert-result((1 2 3 4) ("replace") ("emacs-lisp" "data" ((:var data 1 2 3 4) (:colname-names) (:rowname-names) (:result-params "replace") (:result-type . value) (:results . "replace") (:exports . "code") (:session . "none") (:cache . "no") (:noweb . "no") (:hlines . "no") (:tangle . "no") (:lexical . "no")) "" nil 16920 "(ref:%s)") nil "emacs-lisp")
org-babel-execute-src-block(nil ("emacs-lisp" "data" ((:var data 1 2 3 4) (:colname-names) (:rowname-names) (:result-params "replace") (:result-type . value) (:results . "replace") (:exports . "code") (:lexical . "no") (:tangle . "no") (:hlines . "no") (:noweb . "no") (:cache . "no") (:session . "none")) "" nil 16920 "(ref:%s)"))
org-ctrl-c-ctrl-c(nil)
funcall-interactively(org-ctrl-c-ctrl-c nil)
call-interactively(org-ctrl-c-ctrl-c nil nil)
command-execute(org-ctrl-c-ctrl-c)
----
i haven't noticed anything weird recently, but this may well be
something in my setup that's odder than "normal org mode" stuff. so, a
grain of salt is warranted.
cheers, Greg
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-11-08 16:01 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-08 7:45 Tables and org babel Henrik Frisk
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
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).