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 09:19:07 -0700 Message-ID: <87y54ff5ma.fsf@gmail.com> References: <877gc0ihd9.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60293) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkG1u-0002Nj-TJ for emacs-orgmode@gnu.org; Sat, 23 Nov 2013 11:26:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VkG1q-0005ye-Ek for emacs-orgmode@gnu.org; Sat, 23 Nov 2013 11:25:58 -0500 Received: from mail-pb0-x235.google.com ([2607:f8b0:400e:c01::235]:42316) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VkG1q-0005ya-7O for emacs-orgmode@gnu.org; Sat, 23 Nov 2013 11:25:54 -0500 Received: by mail-pb0-f53.google.com with SMTP id ma3so2914903pbc.40 for ; Sat, 23 Nov 2013 08:25:53 -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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Charles Berry Cc: emacs-orgmode@gnu.org Charles Berry writes: > Eric Schulte gmail.com> writes: > >> >> Charles Berry ucsd.edu> writes: >> > [snip] >> >> Thanks for pointing this out, I've just pushed up a fix. >> > > AFAICS, it is still broken. > > I did a git pull, downloaded the patches, applied them, compiled > ob-core.el. I am still getting > > org-babel-exp-results: Wrong type argument: integer-or-marker-p, nil > > > I suspect that > > (,head (nth 6 ,info)) > ... > (goto-char ,head) > > in the org-babel-check-confirm-evaluate macro is the source of the message. > > (nth 6 info) is nil for inline src blocks. > 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)))) Best, > > HTH, > > Chuck > > -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D