From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: Can't execute C code block from remote directory [9.0.5 (release_9.0.5-401-g86ff11 @ /Users/xcy/src/org-mode/lisp/)] Date: Wed, 05 Apr 2017 10:11:31 +0200 Message-ID: <87wpazz32k.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46438) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cvg2W-0002eZ-6T for emacs-orgmode@gnu.org; Wed, 05 Apr 2017 04:11:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cvg2S-0006Ex-V3 for emacs-orgmode@gnu.org; Wed, 05 Apr 2017 04:11:40 -0400 Received: from relay5-d.mail.gandi.net ([217.70.183.197]:50509) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cvg2S-0006Cu-PL for emacs-orgmode@gnu.org; Wed, 05 Apr 2017 04:11:36 -0400 In-Reply-To: (Chunyang Xu's message of "Mon, 03 Apr 2017 14:58:28 +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: Chunyang Xu Cc: emacs-orgmode@gnu.org Hello, Chunyang Xu writes: > Here is a patch which can fix the issue. Thank you. > From e42b22f74c2f04a4d8e7eec0a6bdacbd08bebf12 Mon Sep 17 00:00:00 2001 > From: Chunyang Xu > Date: Mon, 3 Apr 2017 14:46:51 +0800 > Subject: [PATCH] ob-C: Fix remote executing > > * lisp/ob-C.el (org-babel-C-execute): Process remote bin file. > > TINYCHANGE > --- > lisp/ob-C.el | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lisp/ob-C.el b/lisp/ob-C.el > index 795bcb2b7..e54e17492 100644 > --- a/lisp/ob-C.el > +++ b/lisp/ob-C.el > @@ -161,7 +161,7 @@ or `org-babel-execute:C++' or `org-babel-execute:D'." > (org-babel-eval > (pcase org-babel-c-variant > ((or `c `cpp) > - (concat tmp-bin-file cmdline)) > + (concat (org-babel-process-file-name tmp-bin-file) cmdline)) I see that `tmp-bin-file' is used a couple other times in the body. Would it make sense to wrap the initial binding within `org-babel-process-file-name' instead of doing it only for this occurrence? Regards, -- Nicolas Goaziou