From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: ob-core.el macro org-babel-comint-with-output has error Date: Thu, 25 Oct 2018 10:27:35 +0200 Message-ID: <87h8hawhvs.fsf@nicolasgoaziou.fr> References: <87vadbcj3b.fsf@gmail.com> <8736sur1q6.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60993) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gFazX-0007PS-M9 for emacs-orgmode@gnu.org; Thu, 25 Oct 2018 04:27:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gFazU-0001Ma-65 for emacs-orgmode@gnu.org; Thu, 25 Oct 2018 04:27:43 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:40119) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gFazT-0001K0-PI for emacs-orgmode@gnu.org; Thu, 25 Oct 2018 04:27:39 -0400 In-Reply-To: <8736sur1q6.fsf@gmail.com> (stardiviner's message of "Thu, 25 Oct 2018 14:15:29 +0800") 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: stardiviner Cc: org-mode Hello, stardiviner writes: > stardiviner writes: > >> When I try to evaluate js src block code with session. >> I found it is suspended. After edebug, found the problem is on macro org-babel-comint-with-output. >> >> Here is a minimal reproduce code: >> >> #+begin_src emacs-lisp >> (org-babel-comint-with-output >> ("*skewer-repl*" (format "%S" org-babel-js-eoe) t "x.innerHTML=\"Hello, Welcome!\";") >> (mapc >> (lambda (line) >> (insert (org-babel-chomp line)) >> (comint-send-input nil t)) >> (list "x.innerHTML=\"Hello, Welcome!\";" (format "%S" org-babel-js-eoe)))) >> #+end_src >> >> Hope someone can fix it. I can't help on elisp macro.... > > Anyone can help me on this? > > Why this email does not have any reply? Probably because no one could help you. In my case, this is not a complete example and I don't use javascript, so I cannot try to reproduce it. You could try to macroexpand `org-babel-comint-with-output' and see where the problem is. Regards, -- Nicolas Goaziou