emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Org 9.6-pre and Bash sessions


From: Rudolf Adamkovič
Subject: Org 9.6-pre and Bash sessions
Date: Thu, 13 Oct 2022 17:14:02 +0200

Hello there!

I noticed today that Bash source blocks with ':session" does not seem to
work with Org 9.6-pre (3e8648775).  Does anyone else have the problem?

CONFIGURATION FILE:
------------------

> (setq-default org-use-extra-keys t)
> (with-eval-after-load 'org
>   (add-to-list 'org-babel-load-languages '(shell . t))
>   ;; The weirdest API ever.
>   (org-babel-do-load-languages
>    'org-babel-load-languages
>    org-babel-load-languages))

TEST FILE:
---------

> * Something
> 
> 1. Something
> 
>    #+begin_src bash :session test :results output
>    if true
>    then
>      echo "hello"
>    fi
>    #+end_src

REPRODUCTION STEPS:
------------------

Execute the source block with C-c C-c.

Expected:

  Block executes with the result "hello".

Actual:

  Emacs says "Executing Bash unknown at position 22..." and freezes.
  
  (C-g unfreezes Emacs.)

NOTES:
-----

When I remove the leading whitespace ...

> * Something
> 
> 1. Something
> 
> #+begin_src bash :session test :results output
> if true
> then
>   echo "hello"
> fi
> #+end_src

... then Emacs still freezes, but at least the message makes sense,
saying "Bash code block" instead of "Bash unknown".

Rudy
-- 
"Simplicity is complexity resolved."
-- Constantin Brâncuși, 1876-1957

Rudolf Adamkovič <salutis@me.com> [he/him]
Studenohorská 25
84103 Bratislava
Slovakia



reply via email to

[Prev in Thread] Current Thread [Next in Thread]