[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] Unable to select source code blocks
From: |
Eric Schulte |
Subject: |
Re: [Orgmode] Unable to select source code blocks |
Date: |
Sat, 26 Feb 2011 09:05:04 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Giorgio Valoti <address@hidden> writes:
> Il giorno 26/feb/2011, alle ore 01.08, Eric Schulte ha scritto:
>
>>>> […]
>>>
>>> The problem doesn’t seem related to the autocomplete system, it’s the
>>> org-babel-src-block-names function that returns an empty list. I don’t
>>> 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
>
> How embarrassing! I used this
>
> #+begin_src emacs-lisp
> (org-babel-src-block-names)
> #+end_src
>
Hm this should work as well...
>
> which returns nil or so I thought. I was expecting to see the list of
> source blocks in the results.
>
> 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?
>
That is weird, this should result in the insertion of an Org-mode list
containing the names of the named code blocks in your file.
#+begin_src emacs-lisp :results list
(org-babel-src-block-names)
#+end_src
If not, then I'm not sure what exactly is being returned by
`org-babel-src-block-names' on your system -- it should be a list of
strings.
You could also try executing the function directly by calling
`eval-expression' M-: (org-babel-src-block-names) within the Org-mode
buffer.
also, make sure you have the latest version of Org-mode.
Best -- Eric
>
>
> Ciao
> --
> Giorgio Valoti
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
- [Orgmode] Unable to select source code blocks, Giorgio Valoti, 2011/02/15
- Re: [Orgmode] Unable to select source code blocks, Eric S Fraga, 2011/02/21
- Re: [Orgmode] Unable to select source code blocks, Giorgio Valoti, 2011/02/22
- Message not available
- Re: [Orgmode] Unable to select source code blocks, Giorgio Valoti, 2011/02/25
- Re: [Orgmode] Unable to select source code blocks, Eric Schulte, 2011/02/25
- Re: [Orgmode] Unable to select source code blocks, Giorgio Valoti, 2011/02/26
- Re: [Orgmode] Unable to select source code blocks,
Eric Schulte <=
- Re: [Orgmode] Unable to select source code blocks, Giorgio Valoti, 2011/02/26
- Re: [Orgmode] Unable to select source code blocks, Eric Schulte, 2011/02/27