CONTEXT:

1. Launch `emacs -Q'.
2. Create a new Org file:

   #+begin_src python
     print("Hello World")
   #+end_src

3. Press C-c C-c on the source block.

EXPECTED RESULTS:

  The source block executes.

  [Sadly, no "Hello World" appears, but that is out of scope.]

ACTUAL RESULTS:

  1. Emacs: "Evaluate this python code block on your system? (yes no)
  2. User: "yes RET" *sigh*
  3. Emacs: "No org-babel-execute function for python!" *beep*
  5. User: WAT.

QUESTIONS:

- Could Org not ask the question when the action is manual and explicit?
- Could Org require `ob-python' on behalf of the user?

Put simply, could C-c C-c work OOTB, like C-x C-e does?

Of course, if the block execution is not requested explicitly, we may
ask the question.  Similarly, if the block uses a LANGUAGE for which no
`ob-LANGUAGE` is available, we may fail.  But other than that, we do
what the user wants, without unnecessary questions or errors, in the
spirit of C-x C-e and the rest of Emacs.

WDYT?

Rudy
-- 
"Great minds discuss ideas; average minds discuss events; small minds
discuss people."

--- Anna Eleanor Roosevelt (1884-1962)

Rudolf Adamkovič <[email protected]> [he/him]
http://adamkovic.org

Reply via email to