* A probable beginner's mistake
[not found] <353023645.684953799.1713725141422.JavaMail.root@zimbra43-e7.priv.proxad.net>
@ 2024-04-21 18:46 ` emm.charpentier
2024-04-22 3:57 ` Mike Gauland
0 siblings, 1 reply; 2+ messages in thread
From: emm.charpentier @ 2024-04-21 18:46 UTC (permalink / raw)
To: emacs-orgmode
I'd have sworn that org could evaluate inline "throwaway" code. But I seem to be mistaken.
The following :
================================================================
#+options: toc:nil author:nil
For the life of me, I can't explain this:
#+name: foo
#+begin_src emacs-lisp :exports code :var x=3
(+ 2 x)
#+end_src
Inline call to a predefined function : call_foo(x=4). Works.
Inline "throwaway" code : src_emacs-lisp((+ 2 3)). Does *not* work.
What the...
================================================================
exports to (UTF8 buffer)
================================================================
For the life of me, I can't explain this:
┌────
│ (+ 2 x)
└────
Inline call to a predefined function : `6'. Works.
Inline "throwaway" code : src_emacs-lisp((+ 2 3)). Does *not* work.
What the…
================================================================
Could some kind soul explain the direction and magnitude of my mistake ?
Sincerely,
--
Emmanuel Charpentier
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: A probable beginner's mistake
2024-04-21 18:46 ` A probable beginner's mistake emm.charpentier
@ 2024-04-22 3:57 ` Mike Gauland
0 siblings, 0 replies; 2+ messages in thread
From: Mike Gauland @ 2024-04-22 3:57 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 200 bytes --]
On 22/04/24 06:46, emm.charpentier@free.fr wrote:
> Inline "throwaway" code : src_emacs-lisp((+ 2 3)). Does*not* work.
The inline code should be enclosed in curly brackets: src_emacs-lisp{(+
2 3)}
[-- Attachment #2: Type: text/html, Size: 755 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-04-22 3:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <353023645.684953799.1713725141422.JavaMail.root@zimbra43-e7.priv.proxad.net>
2024-04-21 18:46 ` A probable beginner's mistake emm.charpentier
2024-04-22 3:57 ` Mike Gauland
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.