From mboxrd@z Thu Jan 1 00:00:00 1970 From: R C Subject: [BABEL] Editing asymptote source code blocks Date: Sun, 17 Nov 2019 16:50:45 -0500 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000bec9ec059791def2" Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:41243) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iWSUj-0002T0-PH for emacs-orgmode@gnu.org; Sun, 17 Nov 2019 16:54:10 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iWSUi-0002YL-KK for emacs-orgmode@gnu.org; Sun, 17 Nov 2019 16:54:09 -0500 Received: from mail-qk1-x731.google.com ([2607:f8b0:4864:20::731]:37002) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iWSUi-0002X6-G4 for emacs-orgmode@gnu.org; Sun, 17 Nov 2019 16:54:08 -0500 Received: by mail-qk1-x731.google.com with SMTP id e187so12774433qkf.4 for ; Sun, 17 Nov 2019 13:54:07 -0800 (PST) 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: emacs-orgmode@gnu.org --000000000000bec9ec059791def2 Content-Type: text/plain; charset="UTF-8" I am trying to use `org-edit-src-code` to edit an `asymptote` source code block. By default, this editing is done in a temporary buffer. However, trying to execute the file using `asy-compile` gives an error: file-name-sans-extension: Wrong type argument: stringp, nil As asy-compile works with standalone files with the asy extension, I thought that the error was because it required a buffer with an asy extension. I set the optional parameters according to the docstring (defun rc/org-edit-src-code () "Set file name for org-edit-src-code." (interactive) (org-edit-src-code (org-element-property :value (org-element-at-point)) "tmp.asy" )) and on calling this function, the editing buffer opens with the filename 'tmp.asy' and the correct source code block contents, but I still get the same error on calling `asy-compile`. I would appreciate any suggestions to fix this problem. --000000000000bec9ec059791def2 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

I am trying to use `org-edit-src-code`= to edit an `asymptote` source code block.
By default, this editing is d= one in a temporary buffer. However, trying to execute the file using `asy-c= ompile` gives an error:
file-name-sans-extension: Wrong type argument: s= tringp, nil

As asy-compile works with standalone files with the asy = extension, I thought that the error was because it required a buffer with a= n asy extension. I set the optional parameters according to the docstring
(defun rc/org-edit-src-code ()
=C2=A0 "Set file name for org-= edit-src-code."
=C2=A0 (interactive)
=C2=A0 (org-edit-src-code (= org-element-property :value (org-element-at-point)) =C2=A0"tmp.asy&quo= t; ))

and on calling this function, the editing buffer opens with th= e filename 'tmp.asy' and the correct source code block contents, bu= t I still get the same error on calling `asy-compile`.

I would appre= ciate any suggestions to fix this problem.
--000000000000bec9ec059791def2--