emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: emm.charpentier@free.fr
To: emacs-orgmode@gnu.org
Subject: A probable beginner's mistake
Date: Sun, 21 Apr 2024 20:46:48 +0200 (CEST)	[thread overview]
Message-ID: <1470380060.684956196.1713725208355.JavaMail.root@zimbra43-e7.priv.proxad.net> (raw)
In-Reply-To: <353023645.684953799.1713725141422.JavaMail.root@zimbra43-e7.priv.proxad.net>

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


       reply	other threads:[~2024-04-21 18:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <353023645.684953799.1713725141422.JavaMail.root@zimbra43-e7.priv.proxad.net>
2024-04-21 18:46 ` emm.charpentier [this message]
2024-04-22  3:57   ` A probable beginner's mistake Mike Gauland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1470380060.684956196.1713725208355.JavaMail.root@zimbra43-e7.priv.proxad.net \
    --to=emm.charpentier@free.fr \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).