From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: `:wrap src latex' now fails on export Date: Mon, 25 Dec 2017 00:16:17 +0100 Message-ID: <87shbzg1j2.fsf@nicolasgoaziou.fr> References: <5F660A3B-F655-48E2-8FDC-AAA5CF811681@ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:59523) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eTFVH-0005LB-4A for emacs-orgmode@gnu.org; Sun, 24 Dec 2017 18:16:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eTFVG-0008Sk-75 for emacs-orgmode@gnu.org; Sun, 24 Dec 2017 18:16:23 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:53511) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eTFVG-0008Qt-0Z for emacs-orgmode@gnu.org; Sun, 24 Dec 2017 18:16:22 -0500 In-Reply-To: <5F660A3B-F655-48E2-8FDC-AAA5CF811681@ucsd.edu> (Charles Berry's message of "Sun, 24 Dec 2017 20:17:17 +0000") 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: "Berry, Charles" Cc: emacs-org-mode Hello, "Berry, Charles" writes: > I can execute this src block with no problems: > > #+begin_src emacs-lisp :wrap src latex :exports results > "some-text" > #+end_src > > > and it will produce the expected result: > > #+RESULTS: > > #+begin_src latex > some-text > #+end_src > > and if I then export as (say) `C-c C-e C-b l L n y', I get just `some-text' in the LaTeX buffer. > > But if I try to execute the first block, i.e. `C-c C-e C-b l L y' > I get an error *before* the prompt for the latex src block appears and > this in my *Message* buffer : > > ,---- > | org-babel-exp process emacs-lisp at position 3... > | Evaluate this emacs-lisp code block on your system? (y or n) y > | executing Emacs-Lisp code block... > | Code block evaluation complete. > | org-babel-exp process latex at position 14... > | org-babel-exp-process-buffer: Wrong type argument: integer-or-marker-p, nil > `---- > > I've tried edebug-ing and got as far as `org-babel-exp--at-source', > but haven't been able get any further. Your initial block generates a new source block, that the export process has to evaluate. Unfortunately, Org assumes all source blocks to be evaluated are located within the original buffer. Since it can find the newly generated one, it returns an error. I fixed it in maint. Regards, -- Nicolas Goaziou