From mboxrd@z Thu Jan 1 00:00:00 1970 From: Giorgio Valoti Subject: Re: Unable to select source code blocks Date: Sat, 26 Feb 2011 09:39:23 +0100 Message-ID: <2DD6BE58-EAB5-4335-B579-B48F2D79F705@me.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> <87r5avhb46.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=54840 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PtFgZ-0002YW-D8 for emacs-orgmode@gnu.org; Sat, 26 Feb 2011 03:39:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PtFgY-000707-4s for emacs-orgmode@gnu.org; Sat, 26 Feb 2011 03:39:31 -0500 Received: from asmtpout023.mac.com ([17.148.16.98]:53557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PtFgX-000702-Vk for emacs-orgmode@gnu.org; Sat, 26 Feb 2011 03:39:30 -0500 Received: from alichino.refactor.it (93-62-99-244.ip22.fastwebnet.it [93.62.99.244]) by asmtp023.mac.com (Oracle Communications Messaging Exchange Server 7u4-20.01 64bit (built Nov 21 2010)) with ESMTPSA id <0LH7005KGUPOVH30@asmtp023.mac.com> for emacs-orgmode@gnu.org; Sat, 26 Feb 2011 00:39:28 -0800 (PST) In-reply-to: <87r5avhb46.fsf@gmail.com> 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: emacs-orgmode@gnu.org Il giorno 26/feb/2011, alle ore 01.08, Eric Schulte ha scritto: >>> [=85] >>=20 >> The problem doesn=92t seem related to the autocomplete system, it=92s = the >> org-babel-src-block-names function that returns an empty list. I = don=92t >> know why, the org-babel-src-name-w-name-regexp used by that function >> seems ok at a cursory look. >>=20 >=20 > 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 >=20 > #+begin_src emacs-lisp > (length (org-babel-src-block-names)) > #+end_src How embarrassing! I used this #+begin_src emacs-lisp (org-babel-src-block-names) #+end_src which returns nil or so I thought. I was expecting to see the list of = source blocks in the results.=20 Using your snippet on the same file: #+begin_src emacs-lisp (length (org-babel-src-block-names)) #+end_src #+results: : 19 However, using eval-last-sexp I get a list with nil items. Is it = correct? Ciao -- Giorgio Valoti