Hi List,
I did some tests now with PIL21 in Org-mode on Emacs doom.

I did not touch picolisp-mode.el or inferior-picolisp.el from my repo yet
tj64/picolisp-mode: GNU Emacs mode for PicoLisp programming (github.com)
<https://github.com/tj64/picolisp-mode>

However, and to my surprise, I had to do some changes to the ob-picolisp.el
from my repo, they are committed to the repo file:
tj64/ob-picolisp: Adding PicoLisp to Org Babel, the multi-language
programming environment included in Emacs Org Mode. (github.com)
<https://github.com/tj64/ob-picolisp>

My version of ob-picolisp.el had some additional functionality, while the
version I found in the former org-contrib repo had some cleanup in the
comments and some improvements in the code:
emacsPackages/ob-picolisp.el at master · NotBrianZach/emacsPackages
(github.com)
<https://github.com/NotBrianZach/emacsPackages/blob/master/org-plus-contrib-20181210/ob-picolisp.el>
I kept the additional functionality in my version, but copied all the
changes from the other version.

Then I tested in Emacs Doom with PIL21 installed, and it worked (in
general), did not test the whole functionality, see PS.
Cheers
Thorsten

PS
#+title: Ob Picolisp Test1

#+begin_src emacs-lisp
(+ 3 4)
#+end_src

#+RESULTS:
: 7


#+begin_src picolisp :results value
 (+ 2 5)
#+end_src

#+RESULTS:
: 7

#+begin_src picolisp :results value :session test1
 (setq A 12)
 (setq B 24)
#+end_src

#+RESULTS:
: No

#+begin_src picolisp :results output :session test1
 (if (> A B)
    (print A)
    (print B) )
#+end_src

#+RESULTS:
:       24




Am Mi., 30. Nov. 2022 um 23:14 Uhr schrieb Thorsten Jolitz <
tjol...@gmail.com>:

> Ah no, there was another file with 2 versions, led.l and eled.l for line
> editing vim or emacs style.
> Like Alex said, edit.l and eedit.l were used for symbol editing ....
>
> Am Mi., 30. Nov. 2022 um 23:06 Uhr schrieb Thorsten Jolitz <
> tjol...@gmail.com>:
>
>> Yes, and I added eedit.l to picolisp iirc, so one could chose between vim
>> and emacs keybindings in the repl line editor.
>> Inferior-picolisp.el is responsable for the picolisp repl in Emacs, so
>> when starting it the user could choose between the 2 editing styles.
>> You don't necessary see that repl in your org-mode file with a picolisp
>> src-block, but it's there in the background, therefore the error.
>>
>> I think they are not needed anymore. I cannot test it right now, but when
>> those lines are outcommented in the .el files, it might work (then using
>> readline library for line editing in the repl in emacs, just like in
>> standalone picolisp).
>>
>> Am Mi., 30. Nov. 2022 um 22:48 Uhr schrieb Alexander Burger <
>> a...@software-lab.de>:
>>
>>> On Wed, Nov 30, 2022 at 03:25:31PM -0600, Galaxy Being wrote:
>>> > The old picolisp file structure had ~/.../lib/edit.l and .../lib/el
>>> which
>>> > is no longer the case. That functionality went somewhere else? And yet
>>> both
>>>
>>> lib/edit.l was an in-memory editor for symbols in pil64, which called Vim
>>> internally. It is now obsolete, as this functionality is handled by Vip
>>> (the
>>> built-in Vi-style editor) in pil21.
>>>
>>> It is strange that lib/edit.l is loaded at all. Org-Mode should not care
>>> about
>>> it, and lib/edit.l is loaded at start-up by pil64, but never by pil21.
>>>
>>> lib/el/ is no longer part of the distro in pil21 to keep things small.
>>> It should
>>> probably better be made a separate tarball or repo.
>>>
>>> ☺/ A!ex
>>>
>>> --
>>> UNSUBSCRIBE: mailto:picolisp@software-lab.de?subject=Unsubscribe
>>>
>>

Reply via email to