From: Greg Minshall <minshall@umich.edu>
To: emacs-orgmode@gnu.org
Subject: quotation marks in table cell vs. org-babel-ref-resolve
Date: Fri, 03 Dec 2021 20:28:51 +0300 [thread overview]
Message-ID: <4033335.1638552531@apollo2.minshall.org> (raw)
hi. i'm trying to use =org-babel-ref-resolve= to access the values of a
column in a table. it all works fine for many cases. however, if the
contents of an entry in the column starts with quotation marks, those
quotation marks disappear, and anything outside the quoted part of the
cell "disappears" (in the result). see below.
would this be intentional? a bug?
or, if there's a better way to retrieve the contents of a table column,
i'd love to hear.
cheers, Greg
ps -- it doesn't seem to matter that "35" can be considered an integer;
i.e., "a35" seems to behave the same.
----
#+name: foo
| this | is | a | header |
|------+----+----+----------------------------------|
| 33 | 42 | 32 | "35" |
| 33 | 42 | 32 | "35" thirtyfive |
| 33 | 42 | 32 | 35 thirtyfive |
| 33 | 42 | 32 | thirtyfive "35" |
| 33 | 42 | 32 | thirtyfive "35" post-thirty-five |
#+begin_src elisp
(org-babel-ref-resolve "foo")
#+end_src
#+RESULTS:
| this | is | a | header |
|------+----+----+----------------------------------|
| 33 | 42 | 32 | 35 |
| 33 | 42 | 32 | 35 |
| 33 | 42 | 32 | 35 thirtyfive |
| 33 | 42 | 32 | thirtyfive "35" |
| 33 | 42 | 32 | thirtyfive "35" post-thirty-five |
next reply other threads:[~2021-12-03 17:29 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-03 17:28 Greg Minshall [this message]
2021-12-03 18:26 ` quotation marks in table cell vs. org-babel-ref-resolve Greg Minshall
2021-12-03 23:45 ` Tim Cross
2021-12-04 3:16 ` Greg Minshall
2021-12-04 21:34 ` Tim Cross
2021-12-06 18:02 ` Greg Minshall
2021-12-06 9:20 ` Greg Minshall
2022-10-23 7:09 ` Ihor Radchenko
2022-03-01 0:20 ` Greg Minshall
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=4033335.1638552531@apollo2.minshall.org \
--to=minshall@umich.edu \
--cc=emacs-orgmode@gnu.org \
/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).