From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Bug: tangling with elisp as lang in a noweb reference doesn't work [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/local/share/emacs/26.2/lisp/org/)] Date: Fri, 30 Aug 2019 23:37:49 +0200 Message-ID: <87sgpitjv6.fsf@nicolasgoaziou.fr> References: <87blwdlaka.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:42360) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i3oai-0003pl-VX for emacs-orgmode@gnu.org; Fri, 30 Aug 2019 17:37:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i3oah-0006ck-GS for emacs-orgmode@gnu.org; Fri, 30 Aug 2019 17:37:56 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:54525) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i3oah-0006Uq-8g for emacs-orgmode@gnu.org; Fri, 30 Aug 2019 17:37:55 -0400 In-Reply-To: <87blwdlaka.fsf@gmail.com> (immanuel's message of "Sun, 25 Aug 2019 14:00:05 +0200") 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: immanuel Cc: emacs-orgmode@gnu.org Hello, immanuel writes: > #+NAME: this is a test > #+BEGIN_SRC elisp :tangle no > > (message \"aha\") #+END_SRC > > #+BEGIN_SRC elisp :noweb yes :comments noweb :tangle out.el > first > <> > second > #+END_SRC > > #+BEGIN_SRC elisp :tangle no > (progn > (org-babel-tangle) > (with-temp-buffer > (insert-file-contents "out.el") > (buffer-string))))) > #+END_SRC > > > Doesn't work. The reason is that the function > org-babel-expand-noweb-references uses > > #+BEGIN_SRC emacs-lisp > (c-wrap (lambda (text) > (with-temp-buffer > (funcall (intern (concat lang "-mode"))) > ... > #+END_SRC Fixed! Thank you for the report and the analysis. Regards, -- Nicolas Goaziou