From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: Unable to select source code blocks Date: Fri, 25 Feb 2011 17:08:19 -0700 Message-ID: <87r5avhb46.fsf@gmail.com> References: <218C5BA7-3C6A-46DF-8D59-9C92EF3F3370@me.com> <87aahpzjuy.fsf@ucl.ac.uk> <34FD3967-0A59-4C66-A35D-4171D77E0A07@me.com> <8762sbfca5.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=59652 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pt8O3-0006nI-Qd for emacs-orgmode@gnu.org; Fri, 25 Feb 2011 19:51:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pt8Ny-00061r-N3 for emacs-orgmode@gnu.org; Fri, 25 Feb 2011 19:51:55 -0500 Received: from mail-vx0-f169.google.com ([209.85.220.169]:38255) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pt8Ny-00061n-HG for emacs-orgmode@gnu.org; Fri, 25 Feb 2011 19:51:50 -0500 Received: by vxc38 with SMTP id 38so2401383vxc.0 for ; Fri, 25 Feb 2011 16:51:50 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Giorgio Valoti Cc: emacs-orgmode@gnu.org Giorgio Valoti writes: > Il giorno 23/feb/2011, alle ore 08.19, Eric S Fraga ha scritto: > >>>> [=E2=80=A6] >>>>=20 >>>>> Hi, >>>>=20 >>>>> I don=E2=80=99t know if I=E2=80=99m missing something but I can=E2=80= =99t get the >>>>> org-babel-goto-named-src-block to work. When I invoke it on the sample >>>>> file below the autocompletion shows nil and nothing else and if insert >>>>> the source code block name I get a no match. I=E2=80=99m using org 7.= 4 with >>>>> Emacs 23.2. >>>>>=20 >>>>> [=E2=80=A6] >>>>=20 >>>> this works just fine for me; I don't know what you mean by >>>> autocompletion but I use ido-everywhere and both test and test2 appear >>>> in the prompt for =3Dorg-babel-goto-named-src-block=3D. >>>=20 >>> Hi Eric, >>> I don=E2=80=99t use ido-mode (maybe I should? Seems cool!). By autocomp= lete I meant tab completion.=20 >>=20 >> Right. I'm surprised that autocompletion doesn't work; if ido can find >> the possible entries, autocompletion should also be able to, I would >> have thought. >>=20 >> Maybe somebody else can chime in, somebody that doesn't use ido? >>=20 >> I do recommend ido in any case! > > The problem doesn=E2=80=99t seem related to the autocomplete system, it= =E2=80=99s the > org-babel-src-block-names function that returns an empty list. I don=E2= =80=99t > know why, the org-babel-src-name-w-name-regexp used by that function > seems ok at a cursory look. > Could you attach a small file with named code blocks which aren't caught by this function? I just ran the following in by file of scraps of code examples and got 60 names returned #+begin_src emacs-lisp (length (org-babel-src-block-names)) #+end_src Thanks -- Eric