all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Org 9.6-pre and Bash sessions
@ 2022-10-13 15:14 Rudolf Adamkovič
  2022-10-13 17:07 ` Michael Welle
  2022-10-14  3:44 ` Ihor Radchenko
  0 siblings, 2 replies; 37+ messages in thread
From: Rudolf Adamkovič @ 2022-10-13 15:14 UTC (permalink / raw)
  To: emacs-orgmode

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


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

end of thread, other threads:[~2022-11-05  1:13 UTC | newest]

Thread overview: 37+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-10-13 15:14 Org 9.6-pre and Bash sessions Rudolf Adamkovič
2022-10-13 17:07 ` Michael Welle
2022-10-14  3:44 ` Ihor Radchenko
2022-10-15 20:56   ` Rudolf Adamkovič
2022-10-17  8:34     ` Ihor Radchenko
2022-10-21  5:29       ` Ihor Radchenko
2022-10-21 13:38         ` Rudolf Adamkovič
2022-10-22  4:22           ` Ihor Radchenko
2022-10-22  9:44             ` Rudolf Adamkovič
2022-10-22 10:59               ` Ihor Radchenko
2022-10-23  4:27                 ` Ihor Radchenko
2022-10-26 11:56                   ` Rudolf Adamkovič
2022-10-26 13:21                     ` Rudolf Adamkovič
2022-10-27  3:53                     ` Ihor Radchenko
2022-10-28 13:12                       ` Rudolf Adamkovič
2022-10-28 13:29                         ` Ihor Radchenko
2022-10-28 21:52                           ` Rudolf Adamkovič
2022-10-29  4:05                             ` [FR] Display stderr contents after executing shell blocks (even when stdout :results output is requested) (was: Org 9.6-pre and Bash sessions) Ihor Radchenko
2022-10-29  6:14                               ` tomas
2022-10-29  6:43                                 ` Samuel Wales
2022-10-29  9:00                                   ` tomas
2022-10-29  9:09                                     ` Ihor Radchenko
2022-10-29  9:18                                       ` tomas
2022-10-30  3:31                                         ` Ihor Radchenko
2022-10-30  6:11                                           ` tomas
2022-10-30  7:09                                             ` Ihor Radchenko
2022-10-30  8:18                                               ` tomas
2022-10-29 11:58                               ` Max Nikulin
2022-10-30  3:37                                 ` Ihor Radchenko
2022-10-30 20:28                               ` Tim Cross
2022-10-31  1:13                                 ` Org babel API (was: [FR] Display stderr contents after executing shell blocks (even when stdout :results output is requested) (was: Org 9.6-pre and Bash sessions)) Ihor Radchenko
2022-10-31  2:03                                   ` Tim Cross
2022-10-31  3:12                                     ` Ihor Radchenko
2022-10-29  4:05                             ` Org 9.6-pre and Bash sessions Ihor Radchenko
2022-11-03 16:30                               ` Rudolf Adamkovič
2022-11-04  2:52                                 ` Ihor Radchenko
2022-11-05  1:12                                   ` Rudolf Adamkovič

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.