all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Patch: send 'return' after babel blocks sent to ob-screen [9.3.7 (9.3.7-12-g5d6868-elpaplus @ /home/kdm/.emacs.d/elpa/org-plus-contrib-20200706/)]
@ 2020-07-09 16:05 Ken Mankoff
  2020-07-14  4:55 ` Kyle Meyer
  0 siblings, 1 reply; 8+ messages in thread
From: Ken Mankoff @ 2020-07-09 16:05 UTC (permalink / raw)
  To: emacs-orgmode

Using ob-screen and this example:

#+begin_src screen
ls
#+end_src

The "ls" is transmitted to the screen session, but without a newline, it does not execute. The following patch adds a newline to all babel blocks sent to the screen session.

diff --git a/lisp/ob-screen.el b/lisp/ob-screen.el
index 75a2dc691..5616143fe 100644
--- a/lisp/ob-screen.el
+++ b/lisp/ob-screen.el
@@ -108,7 +108,7 @@ In case you want to use a different screen than one selected by your $PATH")
   (let ((tmpfile (org-babel-temp-file "screen-")))
     (with-temp-file tmpfile
       (insert body)
-
+      (insert "\n")
       ;; org-babel has superfluous spaces
       (goto-char (point-min))
       (delete-matching-lines "^ +$"))


Also, can anyone clarify why there is both

./contrib/lisp/org-screen.el
./lisp/ob-screen.el

?

Thanks,

  -k.


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

end of thread, other threads:[~2020-07-16  4:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-07-09 16:05 Patch: send 'return' after babel blocks sent to ob-screen [9.3.7 (9.3.7-12-g5d6868-elpaplus @ /home/kdm/.emacs.d/elpa/org-plus-contrib-20200706/)] Ken Mankoff
2020-07-14  4:55 ` Kyle Meyer
2020-07-14 21:00   ` [PATCH] 3 improvements to ob-screen Ken Mankoff
2020-07-15  3:08     ` Kyle Meyer
2020-07-15 15:48       ` Ken Mankoff
2020-07-16  3:01         ` Kyle Meyer
2020-07-16  3:12           ` Kyle Meyer
2020-07-16  4:46             ` Ken Mankoff

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.