From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id UEQdF2RAB18pbQAA0tVLHw (envelope-from ) for ; Thu, 09 Jul 2020 16:05:56 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id rT0HE2RAB1+wDAAAB5/wlQ (envelope-from ) for ; Thu, 09 Jul 2020 16:05:56 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 05218940BC9 for ; Thu, 9 Jul 2020 16:05:56 +0000 (UTC) Received: from localhost ([::1]:59340 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtZ3a-0007sZ-Uk for larch@yhetil.org; Thu, 09 Jul 2020 12:05:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56828) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtZ39-0007rq-0H for emacs-orgmode@gnu.org; Thu, 09 Jul 2020 12:05:27 -0400 Received: from mail-pj1-x102a.google.com ([2607:f8b0:4864:20::102a]:56114) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1jtZ37-0001E1-7e for emacs-orgmode@gnu.org; Thu, 09 Jul 2020 12:05:26 -0400 Received: by mail-pj1-x102a.google.com with SMTP id ch3so1316869pjb.5 for ; Thu, 09 Jul 2020 09:05:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=user-agent:from:to:subject:date:message-id:mime-version; bh=J07LTHkTZTS/YXquP7x7OtVHd+jBkS82BRCcgZ1PU0Y=; b=NZlMAp/tweIWhgS22hYfxS1r8Wrd1Z1zp5jz1ful84JZyvbMbXPHXgF/0vlzHQHNli Ehyh0MPwrRyqIx7EcHC22HJ96xb6Y5/Pic8aLM3c9M7eH8RABxX0UOXdDU2xXKyRKXfL 2Xq4Ds1rtObtoG+bqB8cP95glTp+3EekD7E3+yb2GDSodivLy17ixO/BEyoE3HcmSg86 V2dzKYTSwZgY6JgJTSx9SGyFu02P8Ez2eQ5yU40OIhZCgOTAejwHCNva+oraWmK9lonG fFyCGzenT10zzSuiQgKwE45h5wmu2zSx8dCfoP8+AqkoYylTNg2iXrP/VBYmQePTUVou 2X0w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:user-agent:from:to:subject:date:message-id :mime-version; bh=J07LTHkTZTS/YXquP7x7OtVHd+jBkS82BRCcgZ1PU0Y=; b=C3Wk4NPa+dofZopzFzlpP8rxPsfN3z7BZWRQr/JCrkF8WWgqtnvVZOQK21Ii29aI39 YC6Y/dJtgkzP59VlKITDbqniueGKWqDUeT6ssjJYNjrsFS0m44dwnMal6GifY55fvy3G 1VGZqimzSh7F7/S85N9sa9vyCL166FYkkO1k5UhSMIofwwtWpNn1B9HE/WNyrChbK0o8 6GaVEOdLiLm7NVFQtHbmVsewOfLy6v+Gs6iAa1/hch9sKQKjcgmFMaxXljzzrX92tdSC Kh7ldee+JUh9EvIk/fw0oZw5e7jOn/YXpaAMkARpVaGAuXUl9TuJqalLar6IiG8+mncB 91kw== X-Gm-Message-State: AOAM530YH4NO/YfsEJ4l6DgWCSljSkBd+G17wcpUbS1GNcEwBNu/tIvD wDB/gZ/eYfU1A4Op7yPZa3+09IKj X-Google-Smtp-Source: ABdhPJyTAoBnkxleOdpwlrvq4qHGhiLz/LuNuPjiLPaYJOkNCwTOdfle+z6NMqx+0o8zBnjjBK+esg== X-Received: by 2002:a17:90a:e2c7:: with SMTP id fr7mr748225pjb.103.1594310722744; Thu, 09 Jul 2020 09:05:22 -0700 (PDT) Received: from geus3064linuxwsm (97-126-92-2.tukw.qwest.net. [97.126.92.2]) by smtp.gmail.com with ESMTPSA id q66sm3140062pga.29.2020.07.09.09.05.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Jul 2020 09:05:21 -0700 (PDT) User-agent: mu4e 1.4.3; emacs 26.3 From: Ken Mankoff 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 Message-ID: <877dvcsmgu.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::102a; envelope-from=mankoff@gmail.com; helo=mail-pj1-x102a.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=NZlMAp/t; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: nXUuTyxDMBOE 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.