all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Allowed characters/formatting in Org text blocks
@ 2022-06-26  0:12 Fabio Natali
  2022-06-26  0:29 ` Ihor Radchenko
  0 siblings, 1 reply; 5+ messages in thread
From: Fabio Natali @ 2022-06-26  0:12 UTC (permalink / raw)
  To: emacs-orgmode

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-06-26 17:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-26  0:12 Allowed characters/formatting in Org text blocks Fabio Natali
2022-06-26  0:29 ` Ihor Radchenko
2022-06-26 11:09   ` Fabio Natali
2022-06-26 11:39     ` Ihor Radchenko
2022-06-26 17:31       ` Fabio Natali

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.