From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id yfNQC3WwVl+GbgAA0tVLHw (envelope-from ) for ; Mon, 07 Sep 2020 22:13:09 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id IBq1BnWwVl97MAAA1q6Kng (envelope-from ) for ; Mon, 07 Sep 2020 22:13:09 +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 111629404C5 for ; Mon, 7 Sep 2020 22:13:08 +0000 (UTC) Received: from localhost ([::1]:43686 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kFPNq-0000Zj-VJ for larch@yhetil.org; Mon, 07 Sep 2020 18:13:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:59066) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFPNU-0000ZM-7q for emacs-orgmode@gnu.org; Mon, 07 Sep 2020 18:12:44 -0400 Received: from mx0b-00395d01.pphosted.com ([148.163.137.170]:29926) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kFPNR-0007jy-NV for emacs-orgmode@gnu.org; Mon, 07 Sep 2020 18:12:43 -0400 Received: from pps.filterd (m0173174.ppops.net [127.0.0.1]) by mx0b-00395d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 087M9sSN007276; Mon, 7 Sep 2020 15:12:37 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsd.edu; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-id : content-transfer-encoding : mime-version; s=campus; bh=Lw9TtIwKzINSXj9YG55SXb7R2KpFVs7lkANm79nB4hI=; b=SZow/L40P2UA3og9Ie9Qvn1R57GZMbeVBH6mjQ1wdvwH9I/LFEF22QBWrHxzHsSkuWFD G8CoIHRR1yGwJv3LkyRYmIYZ8aENe7qYOPvzufdEC/P/bm0xorfjq9dqzQmV2iSEMugF pLJVU/hrTWBN1VCIkxS5/ohTpgOQp75JWDc9vxWtFg/jdfY7N5Gt2YgkU7YFn0hkAi5o PD4CJfsuyXoCEwvfbVHZBhA7sThX1kdVA36ZRy641w8YLNg81eYsSXvPxTlTXo4H3WUS WRgMMVHSZYFdronrT02eJFEKWCPhl2vj5227DZDQ1CtlEcjTw/YXsmx7zHfeXbJMwVVi vA== Received: from secdlpezp05.ucsd.edu ([40.112.251.180]) by mx0b-00395d01.pphosted.com with ESMTP id 33c832j86g-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 07 Sep 2020 15:12:37 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=m+VDvqSTJJPymuAveMmOMvgbrFasMRdjIfxhuWzOYuFlS+yD+IoKrG9Yc5zXqiHzsiJ7X13Q5gL9Yoz0bsdyQRrLEoVFka3Sp0t7UG423SE1CkwNY6UVat182L0tQRtsGCQg2ul8MWBY9X+rX6UpZAJd+b/4RdKI6dR6EFW2yQWB3ioWsVkylwONTt8PbCXR9C2oZKurDH5NA52P2+DfC/vcveQs17waE9XwG4/hH+M2SiNs4zUq5PwlAlpxgTrLwaJFhs2XfFY0QkNQdLi86w4er2ykiDDMHx1PzGANo5R5igC/oKhPehsoEZs6O9QCEFk13FyIkumM6Gk98jecag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Lw9TtIwKzINSXj9YG55SXb7R2KpFVs7lkANm79nB4hI=; b=K4GDoIkooLXxtHsQMJYgz25W4CW9TdNzWMy0JfBjXzKekBfXwH6Ibxb3R/a0W3Roi+GPE/ytKSfU69J3Svj/nh7sYdtLMIEBOC2wQbxhhVRgHUYKCuO9cAtkbqV+Se0NSy0WHeRvSKodlIhODHqcdbP2CHNLW+rww/X/8rSkB9pVVmxn/3ircRT0Q1FGE5nPsybTvd4u839npeWZeGXv1c5N+7FedQ+qLV23s2hSFPTm4hlz4nuZNQ4a0evJj2PBU2R5A59TWH3GJpr/M2i3FCX2aqJIhUgQj/qcdwGiyyHXSCq4xDcQMHiAUdW1hyBq/bGkKItcBzyofObNXHZyCA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=health.ucsd.edu; dmarc=pass action=none header.from=health.ucsd.edu; dkim=pass header.d=health.ucsd.edu; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ucsdhs.onmicrosoft.com; s=selector2-ucsdhs-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Lw9TtIwKzINSXj9YG55SXb7R2KpFVs7lkANm79nB4hI=; b=B7A1kSo3RFKazcRvgNmpVIakmAfT4mx7VMd2TqhUjxgjaFBqzzxtIPRTrKrVBSYeCsqFkJfY2addqXkTac5shZbo1hadhIzvpvFYLW2eeAN5917Ohk3ZUoT0b7Kf9fhA89FbEvkKaQRBtGA8y9VeSdp/s2BNd7u2Z0rvaAnTlL0= To: Jack Kamm Subject: Re: Help debugging R source code block output problem with :session Thread-Topic: Help debugging R source code block output problem with :session Thread-Index: AQHWfkPgfdvDvowZ7Uinebx1ikESsqlc4oaAgAAHZ4CAAJTBAIAAKdOAgAAi7gA= Date: Mon, 7 Sep 2020 22:12:34 +0000 Message-ID: References: <87r1rqled0.fsf@havana> <87k0xifa9h.fsf@gmail.com> <87d03art6a.fsf@havana> <87h7slgbi5.fsf@gmail.com> <352C7149-743F-4944-ACA5-7A1242B5A3AA@health.ucsd.edu> <87tuwa9ez4.fsf@gmail.com> <87pn6y9dqy.fsf@gmail.com> <48AD2294-E831-44D7-B564-0F7B4019C61B@health.ucsd.edu> <87ft7t9wqk.fsf@gmail.com> In-Reply-To: <87ft7t9wqk.fsf@gmail.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [2600:1702:1021:b0:d83f:9502:8da7:3fa9] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: afa61d02-f728-42c5-6755-08d8537b1f28 x-ms-traffictypediagnostic: BY5PR19MB4019: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:10000; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: VtgiP2auMOR6lu9nx6rUqgBGHFEuYnYJdRRIW3IXV8Ih6W7vos6XCXVdK3Y/yMQ6vj4V933F1SYaXZcyj6bCP1M0+YhKHl61y1KtVRP+DIY+Y5Ousnwp+YPKK/ZgetihpwGfitSb+BnTxmBsRXXBMfwPxiBKuf6my0nRaq5eplY7QTxXgXcqEd/ElFhfX6ujvRp6OT6HxzGmn04teH+TjAs8kKphipVUm3xl0PH9Y2DVkntWHd1I/BOrq4OXCUGLYjkyFLXYOIAwcUmhPmgVn2W9cZw2wUKNvqSc3xCqFqok+jhCzHIGtfkaS+sicfFzFHEXqi3sgO7ZE8MdCnorqA== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR19MB2888.namprd19.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(136003)(366004)(39850400004)(396003)(376002)(346002)(66946007)(2616005)(54906003)(2906002)(83380400001)(4326008)(186003)(86362001)(75432002)(33656002)(6916009)(8676002)(316002)(8936002)(6512007)(6506007)(53546011)(786003)(478600001)(76116006)(4744005)(64756008)(66446008)(66556008)(66476007)(5660300002)(6486002)(71200400001); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: P4ddfRICe7rPa+bjAo4HnCWTvyf9tqmyzC7Fh6a7p6KqDzrHTlpiUbAjtEh9E0vgtW6VAGG6Zf8C4eL+dgVytJC3EilHq8WalH16kBwx3rX4QAL10VW6vKCLS5WYJqOVkthAAgsI6FeRstXGN9KzCmGS0eTJLdktOgAp19t9+7AqhjIVe16Rfg9F+BKKqct8+YF+vcKqiCWN/LXy3iEYOMe1jh4sQtdN1i/wlsNmlOKfUJY1JglwbzPLtiFDqHOtGnjTabN4j/ZCJaTlN/GlFX04T6wgc/KFwUq80fsQVaVoji7a6qRpuQecGYGqmnCLanwZY0L53y6jTok+3MMYxPDZwNXfRZHba/7+kafAnGxikSJw5QMGUMjgpPMlQSKrq+N0yEt6AjUJbX1roHXB4JbkSjKotYoV1MjIVr2ZXQoJ+CquwY4h2EtIcXejAttkO8WvYbQ+rXNEL+jG8fIVaHKXQyFDWeOMOYW1siKD1D2K+hLFP94x0lLRevhPjoxOl141iP+BhRbWpDdfaX16XQ5pmRz1L13rqOlPLgbkVuQ2c0xAbqugvWV7WzG398wxiJWD0hFfWB3QOUp/5RCdT+bSFLtILi0Tzn98BfoBsDpT8wG84qGmS7IWAA9/XmIJj1PC3a3MHBQ/xZfOL89W5HP4B5Sea6XD6W0myQQZMGEE/n8uNCVWdQ+UVw8wOAFWOtvP831o1w0nechgaDdAfg== x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-ID: <0F8C84BBA7E0E042B434A5184FFB3E12@namprd19.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: health.ucsd.edu X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: BYAPR19MB2888.namprd19.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: afa61d02-f728-42c5-6755-08d8537b1f28 X-MS-Exchange-CrossTenant-originalarrivaltime: 07 Sep 2020 22:12:34.0360 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: e470d736-e7f7-41a8-8eab-dad544b2b579 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: YbATUwGfxmwqRcjQzoNWVWQvZfvY45uKTHe3LEvGlKu8yMwVVErnGbT51ZozFYC0s7+01fNPoKOL505EDYNrWQ== X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR19MB4019 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-09-07_11:2020-09-07, 2020-09-07 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 impostorscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 lowpriorityscore=0 priorityscore=1501 phishscore=0 bulkscore=0 clxscore=1015 suspectscore=0 adultscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2006250000 definitions=main-2009070213 Received-SPF: pass client-ip=148.163.137.170; envelope-from=ccberry@health.ucsd.edu; helo=mx0b-00395d01.pphosted.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/09/07 18:12:38 X-ACL-Warn: Detected OS = Linux 3.1-3.10 X-Spam_score_int: -26 X-Spam_score: -2.7 X-Spam_bar: -- X-Spam_report: (-2.7 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, 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: , Cc: "emacs-orgmode@gnu.org" , Dylan Schwilk Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" Reply-to: "Berry, Charles" From: "Berry, Charles" via "General discussions about Org-mode." X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=fail (rsa verify failed) header.d=ucsd.edu header.s=campus header.b=SZow/L40; dkim=fail (rsa verify failed) header.d=ucsdhs.onmicrosoft.com header.s=selector2-ucsdhs-onmicrosoft-com header.b=B7A1kSo3; dmarc=none; 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.99 X-TUID: m9nePujBBvL2 Jack, I can confirm that this works on my setup in each of the scenarios in which= `default-directory' got set correctly in the session buffer. At some point, my default-directory got reset to drop the tramp prefix "/sc= p:/user@host:" in one session after faithfully running the src block severa= l times. I am unable to sort out why or even reproduce this. Chuck > On Sep 7, 2020, at 1:07 PM, Jack Kamm wrote: >=20 > Hi Chuck, >=20 >> This does not work for my remote session. >=20 > Thanks for testing this. >=20 > The remote tests I originally tried did not cover this case -- I only > tested the case where both org-file and session were remote, but didn't > test the case where org-file was local and session was remote. >=20 > I've now tested this case as well, and added some fixes for it. I'm > reattaching the patch in full. >=20 > However, this implementation does require the R session to have the > correct default-directory -- see details below.