emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Allowed characters/formatting in Org text blocks


From: Fabio Natali
Subject: Allowed characters/formatting in Org text blocks
Date: Sun, 26 Jun 2022 01:12:04 +0100

Hello,

I seem to be having problems when selecting an Org text block from an
Emacs Lisp snippet. An MVE follows.

Consider a buffer with the following blocks. In this first example, the
Emacs Lisp block runs successfully. The block "foo" is identified
correctly and the point gets moved accordingly.

#+name: foo
#+begin_src text
Hello world
#+end_src

#+begin_src emacs-lisp
(org-babel-goto-named-src-block "foo")
#+end_src

Now consider a slight variation where "Hello world" is formatted as a
Org heading. The 'org-babel-goto-named-src-block' function is no longer
able to identify the text block. Executing the Emacs Lisp block results
in the error message below.

#+name: bar
#+begin_src text
* Hello world
#+end_src

#+begin_src emacs-lisp
(org-babel-goto-named-src-block "bar")
#+end_src

#+results:
: source-code block ‘bar’ not found in this buffer

Is this expected? Am I misunderstanding what text blocks are for and
what characters/formatting they're allowed to use?

Thanks, best wishes, Fabio.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]