From: Vladimir Panteleev <thecybershadow@gmail.com>
To: Nicolas Goaziou <mail@nicolasgoaziou.fr>,
Alan Schmitt <alan.schmitt@polytechnique.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH v2 0/3] org-sbe fixes
Date: Sun, 25 Mar 2018 20:40:14 +0000 [thread overview]
Message-ID: <fe2cae4c-7e16-af5a-dd3b-123e17c0de07@gmail.com> (raw)
In-Reply-To: <877epzaolf.fsf@nicolasgoaziou.fr>
On 2018-03-25 20:26, Nicolas Goaziou wrote:
>> I think this has been applied to the maint branch, but I cannot find a
>> mention of it in the ORG-NEWS file. Maybe it should be mentioned there
>> as it is a breaking change. For instance,(I had to modify table formulas like
Sorry, I did not intend this to be a breaking change (for any reasonably
valid use cases).
The problem is that because org-sbe is a macro, it attempts to parse the
sexpr without evaluating it. The intention was to check what kind of
lisp object the argument is, and preserve the old behavior if it's a
string, but do something more sensible if it's a list. I.e. "foo" and
(identity "foo") are currently treated differently in org-sbe arguments.
However, it currently can't do that because the actual evaluation occurs
elsewhere (the sexpr is stringified mostly-as-is into a babel header and
then parsed as such).
One ugly fix would be to patch over this by checking for some common
lisp forms that result in a list, such as (list ...) and (quote ...),
and treat the remaining ones in a backwards-compatible way. However, the
more time I spend on org-sbe, the more I think that perhaps a better
approach would be to deprecate org-sbe (or outright remove it, I could
argue that due to the overwhelming number of flaws its mere presence is
downright harmful), and replace it with something more sensible: a
function (not macro) defined somewhere other than ob-table (because it
is not specific to tables) without any of the crazy string escaping logic.
What do you think?
--
Best regards,
Vladimir
next prev parent reply other threads:[~2018-03-25 20:40 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-03-07 22:58 [PATCH 0/3] org-sbe fixes Vladimir Panteleev
2018-03-07 22:58 ` [PATCH 1/3] ob-table: Fix org-sbe's handling of quotes in arguments Vladimir Panteleev
2018-03-12 23:15 ` Nicolas Goaziou
2018-03-13 19:16 ` Vladimir Panteleev
2018-03-14 13:49 ` Nicolas Goaziou
2018-03-14 14:03 ` Vladimir Panteleev
2018-03-14 15:00 ` Nicolas Goaziou
2018-03-14 16:23 ` Vladimir Panteleev
2018-03-18 22:24 ` Nicolas Goaziou
2018-03-18 22:43 ` Vladimir Panteleev
2018-03-18 23:30 ` Nicolas Goaziou
2018-03-19 0:23 ` [PATCH v2 0/3] org-sbe fixes Vladimir Panteleev
2018-03-19 0:23 ` [PATCH v2 1/3] ob-table: Fix org-sbe's handling of quotes in cell values Vladimir Panteleev
2018-03-19 0:23 ` [PATCH v2 2/3] ob-table: Fix org-sbe's handling of list arguments Vladimir Panteleev
2018-03-19 0:23 ` [PATCH v2 3/3] ob-table: Mention passing ranges as lists in org-sbe's documentation Vladimir Panteleev
2018-03-19 23:07 ` [PATCH v2 0/3] org-sbe fixes Nicolas Goaziou
2018-03-25 18:24 ` Alan Schmitt
2018-03-25 20:26 ` Nicolas Goaziou
2018-03-25 20:40 ` Vladimir Panteleev [this message]
2018-03-25 21:06 ` Nicolas Goaziou
2018-03-25 22:08 ` Vladimir Panteleev
2018-03-26 20:16 ` Nicolas Goaziou
2018-03-26 21:33 ` Vladimir Panteleev
2018-03-26 21:42 ` Nicolas Goaziou
2018-03-26 21:53 ` Vladimir Panteleev
2018-03-27 6:21 ` Nicolas Goaziou
2018-03-26 8:12 ` Alan Schmitt
2018-03-26 21:40 ` Nicolas Goaziou
2018-03-27 1:01 ` Bastien
2018-03-07 22:58 ` [PATCH 2/3] ob-table: Fix org-sbe's handling of list arguments Vladimir Panteleev
2018-03-07 22:58 ` [PATCH 3/3] ob-table: Mention passing ranges as lists in org-sbe's documentation Vladimir Panteleev
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=fe2cae4c-7e16-af5a-dd3b-123e17c0de07@gmail.com \
--to=thecybershadow@gmail.com \
--cc=alan.schmitt@polytechnique.org \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/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).