all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* how can I get the output of a =#+begin_src org= in the current buffer?
@ 2023-08-12 10:59 Edgar Lux
  2023-08-12 11:07 ` Ihor Radchenko
  0 siblings, 1 reply; 4+ messages in thread
From: Edgar Lux @ 2023-08-12 10:59 UTC (permalink / raw)
  To: Emacs Orgmode

Hello, how can I get the output of a =#+begin_src org= in the current buffer?

#+begin_src emacs-lisp
  (org-babel-do-load-languages 
     'org-babel-load-languages 
     '((shell       . t)
       (latex       . t)
       (emacs-lisp  . t)
       (org         . t)
       ))
#+end_src

#+caption: This shows the contents of the block in the mini-buffer with =C-c C-v e= (=org-babel-execute-maybe=)
#+begin_src org
  #+latex_header: \usepackage{nil}
#+end_src

What I want is to get =#+latex_header: \usepackage{nil}= in the current buffer. The documentation (Org-info and the docstring of =org-babel-execute-src-block=) says that this command would
#+begin_quote
Insert the results of execution into the buffer
#+end_quote

Tips, advice? Thank you!

Org 9.4.6
Emacs 28.2
Linux

P.S.
- I saw this, but it is unrelated (a src block inside another src block).
https://emacs.stackexchange.com/questions/35489/babel-src-block-inside-src-block
- There is a typo in the info pages (parses as see see; remove see from below):
  (org) Results of Evaluation
  #+begin_quote
   The ‘file-desc’ header argument defines the description (see *note
     Link Format::) for the link
  #+end_quote

-- 
Sent with https://mailfence.com  
Secure and private email


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

end of thread, other threads:[~2023-08-13  8:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-12 10:59 how can I get the output of a =#+begin_src org= in the current buffer? Edgar Lux
2023-08-12 11:07 ` Ihor Radchenko
2023-08-12 13:54   ` Edgar Lux
2023-08-13  8:21     ` Ihor Radchenko

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.