[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] update ob-scheme to latest changes in geiser package
From: |
Felipe Lema |
Subject: |
Re: [PATCH] update ob-scheme to latest changes in geiser package |
Date: |
Thu, 30 Dec 2021 16:01:37 -0300 |
On Thursday, 30 December 2021 22:50:20 +07 Max Nikulin wrote:
> On Wednesday, 29 December 2021 22.53.18 -03 Felipe Lema wrote:
> > On Wednesday, 29 December 2021 15.03.47 -03 Felipe Lema wrote:
> > > Sup, y'all
> > >
> > > The geiser package had a recent update in which `geiser-eval-region`
> > > behaves like an async function and does not return evaluation result. In
> > > exchange, the newly introduced `geiser-eval-region/wait` does that now.
> > >
> > > I've attached a patch to update ob-scheme.el to reflect these changes.
> > > Without them, evaluating scheme dialect code blocks in Org will end up
> > > with empty results.
> > >
> > > To learn more about the change (and how it impacted other people's flows)
> > > see issue thread below
> > >
> > > https://gitlab.com/emacs-geiser/geiser/-/issues/30
> > >
> > > Felipe
> > >
> > >
> >
> > I was pointed out that I was missing the corresponding `declare-function`.
> >
> > I've included it in the attached patch. Sorry about the double-posting
> >
> > Felipe
> >
>
> I am not a geiser user, so maybe I missed something. Does this change mean
> that org becomes incompatible with older geiser versions? E,g, debian and
> ubuntu have elpa-geiser system package.
>
>
> I would consider testing if `geiser-eval-region/wait' is bound and fallback
> to `geiser-eval-region' otherwise.
I've wrapped an `if` to fallback to previous API before this breaking change in
attached patch.
Felipe
org-babel-scheme-geiser-eval-region.wait_v3.diff
Description: Text Data