From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Schulte Subject: Re: BUG org-babel-goto-named-src-block with indented block Date: Thu, 06 Mar 2014 14:16:03 -0700 Message-ID: <87fvmvug5k.fsf@gmail.com> References: <87sir62p93.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLgca-0001HX-3W for emacs-orgmode@gnu.org; Thu, 06 Mar 2014 17:18:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLgcV-0005cZ-J7 for emacs-orgmode@gnu.org; Thu, 06 Mar 2014 17:18:32 -0500 Received: from mail-pa0-x229.google.com ([2607:f8b0:400e:c03::229]:55587) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLgcV-0005cU-Bt for emacs-orgmode@gnu.org; Thu, 06 Mar 2014 17:18:27 -0500 Received: by mail-pa0-f41.google.com with SMTP id fa1so3283594pad.0 for ; Thu, 06 Mar 2014 14:18:26 -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: Andreas Leha Cc: emacs-orgmode@gnu.org Hi Andreas, The problem is with your example. You can not put a header line between a #+name and it's source block. Best, Andreas Leha writes: > Hi all, > > there seems to be a bug, where org-babel-goto-named-src-block does not > find an indented source block. > > Here is an example: > > --8<---------------cut here---------------start------------->8--- > * Test org-babel-goto-named-src-block > > Try org-babel-goto-named-src-block (C-c C-v g) with point on the > following line. (This works for me.) > #+call: block1(20) > > > Try org-babel-goto-named-src-block (C-c C-v g) with point on the > following line. (This does not work for me.) > #+call: block2(20) > > > ** The first block *without* indentation > #+name: block1 > #+header: :var end=10 > #+begin_src R > 1:end > #+end_src > > > ** The second block *with* indentation > #+name: block2 > #+header: :var end=11 > #+begin_src R > 2:end > #+end_src > --8<---------------cut here---------------end--------------->8--- > > > Regards, > Andreas > > -- Eric Schulte https://cs.unm.edu/~eschulte PGP: 0x614CA05D