From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: [BUG] org-confirm-babel-evaluate breaks inline src blocks Date: Sat, 23 Nov 2013 12:28:31 -0700 Message-ID: <87vbziex40.fsf@gmail.com> References: <877gc0ihd9.fsf@gmail.com> <87y54ff5ma.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60376) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkItd-0004ST-Qu for emacs-orgmode@gnu.org; Sat, 23 Nov 2013 14:29:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VkItY-00074Q-Kj for emacs-orgmode@gnu.org; Sat, 23 Nov 2013 14:29:37 -0500 Received: from mail-pb0-x22c.google.com ([2607:f8b0:400e:c01::22c]:37121) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkItY-00074G-D0 for emacs-orgmode@gnu.org; Sat, 23 Nov 2013 14:29:32 -0500 Received: by mail-pb0-f44.google.com with SMTP id rq2so3099413pbb.17 for ; Sat, 23 Nov 2013 11:29:31 -0800 (PST) In-Reply-To: (Charles Berry's message of "Sat, 23 Nov 2013 18:24:17 +0000 (UTC)") 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: Charles Berry Cc: emacs-orgmode@gnu.org >> Indeed the fix was to set this element of info to point to the front of >> the inline src block. I imagine that you probably don't have the >> patched version of the relevant function loaded. Please try M-x >> describe-function on org-babel-get-src-block-info, then jump to the >> definition of said function where you should see the following code >> which now sets the location of the inline src block head into the last >> element of the info list. >> >> ;; inline source block >> (when (org-babel-get-inline-src-block-matches) >> (setq head (match-beginning 0)) >> (setq info (org-babel-parse-inline-src-block-match)))) >> > > > That _is_ what I had loaded, but ... > > org-babel-get-src-block-info is *not* *called* for inline src blocks. > > org-babel-exp-non-block-elements doesn't call org-babel-get-src-block-info. > Instead, it has this > > (let* ((info (org-babel-parse-inline-src-block-match)) > > for inline src blocks. > > So changing org-babel-get-src-block-infodoes not fix the inline src block > issue. > Oh, I was testing with interactive evaluation, not export. I've just pushed up another fix which should fix this for export too. Thanks again, -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D