org-babel-sh-prompt: Fix Emacs 27 CI failures

* lisp/ob-shell.el (org-babel-sh-prompt): Use the old prompt for Emacs
27.  CI fails on Debian + Emacs 27 when running tests, even though
Emacs 27 tests do pass on my system.  Play it safe and fall back to
the old prompt for Emacs 27, to avoid possible breakage.  Emacs 27
support is going to be dropped soon anyway, after Emacs 30 release.
This commit is contained in:
Ihor Radchenko 2024-08-06 20:09:55 +02:00
parent 62b88d613e
commit 54af540af6
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 4 additions and 1 deletions

View File

@ -273,7 +273,10 @@ var of the same value."
"String to indicate that evaluation has completed.")
(defvar org-babel-sh-eoe-output "org_babel_sh_eoe"
"String to indicate that evaluation has completed.")
(defvar org-babel-sh-prompt "𒆸 "
(defvar org-babel-sh-prompt
;; FIXME: Emacs 27 CI fails non-interactively. Play it safe and
;; keep the old prompt until we drop Emacs 27 support.
(if (version< emacs-version "28") "org_babel_sh_prompt> " "𒆸 ")
"String to set prompt in session shell.")
(defvar-local org-babel-sh--prompt-initialized nil