From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Charles C. Berry" Subject: Re: bug in exporter (org-babel-exp-process-buffer) Date: Tue, 10 Jun 2014 14:11:45 -0700 Message-ID: References: <871tuwilfs.fsf@selenimh.mobile.lan> Mime-Version: 1.0 Content-Type: TEXT/PLAIN; format=flowed; charset=US-ASCII Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54119) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuTKx-0005qq-UH for emacs-orgmode@gnu.org; Tue, 10 Jun 2014 17:12:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WuTKr-0002Xo-2I for emacs-orgmode@gnu.org; Tue, 10 Jun 2014 17:12:07 -0400 Received: from iport-acv2-out.ucsd.edu ([132.239.0.174]:21159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WuTKq-0002WL-P8 for emacs-orgmode@gnu.org; Tue, 10 Jun 2014 17:12:00 -0400 In-Reply-To: <871tuwilfs.fsf@selenimh.mobile.lan> 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: emacs-orgmode@gnu.org On Tue, 10 Jun 2014, Nicolas Goaziou wrote: > Hello, > > Charles Berry writes: > >> The use of `org-confirm-babel-evaluate' as a function breaks inline src >> blocks just as was described in this thread from last year: >> >> http://lists.gnu.org/archive/html/emacs-orgmode/2013-11/msg00669.html >> > > [...] > >> I believe that Eric's patch or something like it would fix the current >> problem in org-babel-exp-process-buffer: >> >> (inline-src-block >> - (let* ((info (org-babel-parse-inline-src-block-match)) >> + (let* ((head (match-beginning 0)) >> + (info (append (org-babel-parse-inline-src-block-match) >> + (list nil nil head))) >> (params (nth 2 info))) >> (setf (nth 1 info) >> >> Can this be fixed, please? > > I tried to apply these changes in maint, but I see no difference with > current behaviour when exporting the ECM provided in the thread above. > Am I missing something? > Sorry, my bad. `:exports results' needs to be added to the src block: #+BEGIN_SRC emacs-lisp :exports results [...] When run with master, after the prompt for evaluating the src block, an error is thrown. *Messages* shows ,---- | Evaluate this emacs-lisp code block on your system? (y or n) y | executing Emacs-Lisp code block... | Code block evaluation complete. | cond: Wrong type argument: integer-or-marker-p, nil `---- evidently the result of (goto-char ,head) with nil as the value of head when trying to evaluate src_R{...}. Adding the lines results in correct export with no prompt at the (later) inline src block. HTH, Chuck