From dcb370e5fc0967f739fe548c0d5715aaeaaa11e9 Mon Sep 17 00:00:00 2001 From: Kai Harries Date: Tue, 11 Oct 2022 20:54:07 +0200 Subject: [PATCH] Fix issue when creating session with non-default window name Before this change if I executed a code block like the following #+begin_src tmux :session default:foo echo hello world #+end_src and no session named "default" exists, then first a session with a window named "foo" would be created by (ob-tmux--create-session) and then (sometimes) an additional window with the name "foo" would be created by (ob-tmux--create-window). This has lead in my case to some follow up failures. Therefore this change where always a window with the default name is created for new sessions. --- ob-tmux.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ob-tmux.el b/ob-tmux.el index 4c52124..dbf5b26 100644 --- a/ob-tmux.el +++ b/ob-tmux.el @@ -227,7 +227,7 @@ Argument OB-SESSION: the current ob-tmux session." "-d" ;; just create the session, don't attach. "-c" (expand-file-name "~") ;; start in home directory "-s" (ob-tmux--session ob-session) - "-n" (ob-tmux--window-default ob-session)))) + "-n" org-babel-tmux-default-window-name))) (defun ob-tmux--create-window (ob-session) "Create a tmux window in session if it does not yet exist.