[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [PATCH] add :session support for ob-js.el
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [PATCH] add :session support for ob-js.el |
Date: |
Sun, 25 Mar 2018 23:09:40 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Hello,
stardiviner <address@hidden> writes:
> I attached my new generated patches.
>
>
> On 03/17/2018 07:14 PM, Nicolas Goaziou wrote:
>> Some comments follow.
>>> + (result (if (not (string= (cdr (assq :session params)) "none"))
>> You can integrate the test above in the `cond':
>>
>> (cond
>> ((string= "none" (cdr (assq :session params))) nil)
>> ((string= "*JS REPL*" session) ...)
>> ...)
> This is modified in new patch.
>>> + (sit-for .5) (goto-char (point-max))
>> (sit-for .5)
>> (goto-char (point-max))
> This is in original code, might because ob-js initialize REPL backend
> need some time so original author added `site-for`. After test, this
> seems does not matter. So remote the sit-for now.
>>
>>> + (mapc (lambda (var)
>>> + (insert var) (comint-send-input nil t)
>>> + (org-babel-comint-wait-for-output session)
>>> + (sit-for .1) (goto-char (point-max))) var-lines)))
>>> session))
>> (dolist (var ...)
>> ...)
> modified in new patch.
>
> I don't know how to apply master branch new update on my local
> `ob-js-session` branch so to get ob-js related commits on top to
> generate new patches. (Do you have any idea on this?) The new patches
> are behind latest `master` branch. But should be compatible still. If
> generating patches based on latest `master` branch commit is must,
> I can do that.
I applied you patch. However, I rewrote your commit messages: they need
to refer to modified variables and functions. I also fixed dangling
parenthesis, and fixed a typo in a move from `mapc' + `lambda' to
`dolist'.
Thank you.
Regards,
--
Nicolas Goaziou
- [O] [PATCH] add :session support for ob-js.el, stardiviner, 2018/03/12
- Re: [O] [PATCH] add :session support for ob-js.el, Nicolas Goaziou, 2018/03/13
- Re: [O] [PATCH] add :session support for ob-js.el, stardiviner, 2018/03/13
- Re: [O] [PATCH] add :session support for ob-js.el, Nicolas Goaziou, 2018/03/17
- Re: [O] About the assignment of FSF papers, stardiviner, 2018/03/17
- Re: [O] About the assignment of FSF papers, Nicolas Goaziou, 2018/03/18
- Re: [O] About the assignment of FSF papers, stardiviner, 2018/03/24
- Re: [O] About the assignment of FSF papers, Nicolas Goaziou, 2018/03/24
- Re: [O] [PATCH] add :session support for ob-js.el, stardiviner, 2018/03/24
- Re: [O] [PATCH] add :session support for ob-js.el,
Nicolas Goaziou <=
- Re: [O] [PATCH] add :session support for ob-js.el, stardiviner, 2018/03/25