From: Ken Mankoff <mankoff@gmail.com>
To: emacs-orgmode@gnu.org
Subject: 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/)]
Date: Thu, 09 Jul 2020 09:05:21 -0700 [thread overview]
Message-ID: <877dvcsmgu.fsf@gmail.com> (raw)
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.
next reply other threads:[~2020-07-09 16:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-07-09 16:05 Ken Mankoff [this message]
2020-07-14 4:55 ` 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/)] 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=877dvcsmgu.fsf@gmail.com \
--to=mankoff@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).