From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Leha Subject: Re: BUG org-babel-goto-named-src-block with indented block Date: Fri, 07 Mar 2014 08:56:51 +0100 Message-ID: <87txbae918.fsf@med.uni-goettingen.de> References: <87sir62p93.fsf@med.uni-goettingen.de> <87fvmvug5k.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:32990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLpeX-0007LJ-66 for emacs-orgmode@gnu.org; Fri, 07 Mar 2014 02:57:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WLpeR-0007hC-RK for emacs-orgmode@gnu.org; Fri, 07 Mar 2014 02:57:09 -0500 Received: from plane.gmane.org ([80.91.229.3]:57358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WLpeR-0007h5-Ky for emacs-orgmode@gnu.org; Fri, 07 Mar 2014 02:57:03 -0500 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WLpeQ-0001B7-C0 for emacs-orgmode@gnu.org; Fri, 07 Mar 2014 08:57:02 +0100 Received: from p5b35e3f2.dip0.t-ipconnect.de ([91.53.227.242]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Mar 2014 08:57:02 +0100 Received: from andreas.leha by p5b35e3f2.dip0.t-ipconnect.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 07 Mar 2014 08:57:02 +0100 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: emacs-orgmode@gnu.org Hi Eric, thanks for looking into this! Eric Schulte writes: > Hi Andreas, > > The problem is with your example. You can not put a header line between > a #+name and it's source block. > If that is the case, then the manual should be fixed. As the manual explicitly allows that: See the last example on here [fn:1]. Regards, Andreas Footnotes: [fn:1] http://orgmode.org/manual/Code-block-specific-header-arguments.html#Code-block-specific-header-arguments > 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 >> >>