From mboxrd@z Thu Jan 1 00:00:00 1970 From: Diego Zamboni Subject: Re: [ANN] ob-elvish: org-babel support for Elvish code Date: Sun, 8 Apr 2018 19:30:04 +0200 Message-ID: <5ED0B25C-3B23-45B1-8263-EEDE2679C7D6@zzamboni.org> References: Mime-Version: 1.0 (Mac OS X Mail 11.2 \(3445.5.20\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_B36313C9-5EB5-41A4-8F4C-20A011E69B59" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46863) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f5E91-0001UM-5r for emacs-orgmode@gnu.org; Sun, 08 Apr 2018 13:30:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f5E8x-0004b9-P6 for emacs-orgmode@gnu.org; Sun, 08 Apr 2018 13:30:23 -0400 Received: from mail-wm0-x233.google.com ([2a00:1450:400c:c09::233]:39878) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f5E8x-0004aV-DR for emacs-orgmode@gnu.org; Sun, 08 Apr 2018 13:30:19 -0400 Received: by mail-wm0-x233.google.com with SMTP id f125so11557067wme.4 for ; Sun, 08 Apr 2018 10:30:18 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: Org-mode Cc: Diego Zamboni --Apple-Mail=_B36313C9-5EB5-41A4-8F4C-20A011E69B59 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi, My ob-elvish module has been working well for me, but I was thinking if = the best would be to make ob-shell work with elvish instead of having a = whole separate library for it. I tried adding =E2=80=9Celvish=E2=80=9D = to org-babel-shell-names, and it seems to get recognized OK as a shell = name, but execution of code blocks fails. I get an empty RESULTS block = and the following messages: executing Elvish code block... Wrote = /var/folders/h0/rh70xwd16913g_2lg0rx9_300320w3/T/babel-37847fAl/ob-input-3= 7847AFC Error reading results: (beginning-of-buffer) Code block produced no output. This happens even for really simple blocks, e.g.: #+begin_src elvish echo "hi" #+end_src Before I go looking in the code, I was wondering if anyone can tell if = I=E2=80=99m missing anything obvious - I just added =E2=80=9Celvish=E2=80=9D= to org-babel-shell-names. Since =E2=80=9Cfish=E2=80=9D works fine, I = assume a POSIX shell is not expected, but maybe there is something else = that ob-shell is assuming? Thanks! =E2=80=94Diego > On 14 Mar 2018, at 12:04, Diego Zamboni wrote: >=20 > Hi, >=20 > I'm happy to announce my ob-elvish package which allows running Elvish = shell code (https://elvish.io/ ) from within an = org-mode buffer using org-babel. >=20 > If you want to take a look: https://github.com/zzamboni/ob-elvish = >=20 > It's not on ELPA yet, I will submit it soon. >=20 > Feedback welcome! >=20 > --Diego >=20 --Apple-Mail=_B36313C9-5EB5-41A4-8F4C-20A011E69B59 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi,

My = ob-elvish module has been working well for me, but I was thinking if the = best would be to make ob-shell work with elvish instead of having a = whole separate library for it. I tried adding =E2=80=9Celvish=E2=80=9D = to org-babel-shell-names, and it seems to get recognized OK as a = shell name, but execution of code blocks fails. I get an empty RESULTS = block and the following messages:

executing Elvish code = block...
Wrote = /var/folders/h0/rh70xwd16913g_2lg0rx9_300320w3/T/babel-37847fAl/ob-input-3= 7847AFC
Error reading results: = (beginning-of-buffer)
Code block produced no = output.

This = happens even for really simple blocks, e.g.:

#+begin_src = elvish
echo "hi"
#+end_src

Before I go looking in the code, I was wondering if anyone = can tell if I=E2=80=99m missing anything obvious - I just added = =E2=80=9Celvish=E2=80=9D to org-babel-shell-names. Since =E2=80=9Cfish=E2=80= =9D works fine, I assume a POSIX shell is not expected, but maybe there = is something else that ob-shell is assuming?

Thanks!
=E2=80=94Diego


On 14 Mar 2018, at 12:04, Diego Zamboni = <diego@zzamboni.org> wrote:

Hi,

I'm = happy to announce my ob-elvish package which allows running Elvish shell = code (https://elvish.io/) = from within an org-mode buffer using org-babel.

If you want to take a look: https://github.com/zzamboni/ob-elvish

It's not on ELPA yet, I = will submit it soon.

Feedback welcome!

--Diego


= --Apple-Mail=_B36313C9-5EB5-41A4-8F4C-20A011E69B59--