From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id +FTrKyN9/Wa/PQAAqHPOHw:P1 (envelope-from ) for ; Wed, 02 Oct 2024 17:04:35 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id +FTrKyN9/Wa/PQAAqHPOHw (envelope-from ) for ; Wed, 02 Oct 2024 19:04:35 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jjfS1rEX; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1727888675; a=rsa-sha256; cv=none; b=PcI1vEaZshoUfvlBwFWuv06yzAOKWi2l2lFExP5h7IL7yuuVnUDw7YZqb8vP9bNgPU944J tGMN9fuiJOLxJvXYztZHK0mqQxbf8KnhWDeMxKdD8lWXNLG65HD5Y7DiIE6XRxUumoZuAp rhhOQL9+mjUp7A7fRyiydM0N063qB3no/5m6ZAZSlLxNd31CXjBQcM7HQ0/P8eoP2lhnnX Wxctqe7nGwfy71CG1T4/1ahIu6FNHHVE/vG7bn8HMqh2RJo0ZfVv6mkONqsxXtRtuYHX4M qTcDfh6rpopYvuIFmeIzMkUaWoUwUH7IT14TjoGeMHBy3TNPhzEQnUSQ9L1+/g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=jjfS1rEX; dmarc=pass (policy=none) header.from=posteo.net; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1727888675; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=l74Q/vXtf5TysZWMmkx+vxALfblZ1PA9qHETn1glDnQ=; b=mBi9ZE4RshSLodB84/1gK0LikuqQCUDHlodsiDlG4BIbgR15/LrHEw4mDtvk4MnrGxSuAG R5HubgXHE+rjtUPoBMpSUO17OlqpnkNd/FBDkUuxEw9pUJk7OKc6QMwH5yQs7a2T3B9Rbm maQkSt22cUKTdm1IqtmLaM1Vc7QvjNzDWmshiODtEcnR0OlStz9IKnnofh1jC9aG1qpSbx NIOMBwNtleQxzh52OakfUuOxboB8hyxlXHXZyhWZZG+hm5D7WHcgkfRpOMJQVcpTbeuRNO OmHSF5rEz5RyLXjvVZoGImH1xNFzG94hq2mZsh4N/w6/eH3QOHTppRPDtMnFSA== 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 A011873C5F for ; Wed, 02 Oct 2024 19:04:35 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sw2lL-0006mu-OF; Wed, 02 Oct 2024 13:03:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sw2lG-0006mY-O4 for emacs-orgmode@gnu.org; Wed, 02 Oct 2024 13:03:38 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sw2l7-00022z-KB for emacs-orgmode@gnu.org; Wed, 02 Oct 2024 13:03:38 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7227B240027 for ; Wed, 2 Oct 2024 19:03:25 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1727888605; bh=CObrJLn82SNvsT/gQ0lIJPRTh+SkNI7eZh1cIYqoeVU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=jjfS1rEXQ+W+t/Djd7OVXPRzq+SwWsoY3kQlrAZ7ylIY23GL7Sdyql4f9aZQbS07I LXLg+uA/+kFnyTo0xEkC+3/RFrtEtuIHcCzECApIVlkhS2RIu832UcVAy05D5D7yqs EyGI4qXG6vuujwxSkfrqRWOoMsNCsd+by8QulDPKmzhoSGEGmHntU1ju6m2hYmrahj IrBcWYnZAmWdXy0q0tNZPYnKlnhAm3eukS+8UGWOhyyx82KSM73GOmlX13x+d2yU3S x/iwitFscyvfGW43DwQ8ICzyGVsroJ5AOSuu3KEP+JI8bXTwj3QSUMyOdTpu5tp+14 8DluiyeOkTNHg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4XJh304k0wz6tn4; Wed, 2 Oct 2024 19:03:24 +0200 (CEST) From: Ihor Radchenko To: Jack Kamm Cc: emacs-orgmode@gnu.org, matt@excalamus.com, jeremiejuste@gmail.com Subject: Re: [PATCH] Async sessions: Fix prompt removal regression in ob-R In-Reply-To: <87setrqs4z.fsf@gmail.com> References: <87setrqs4z.fsf@gmail.com> Date: Wed, 02 Oct 2024 17:05:14 +0000 Message-ID: <87wmiqigfp.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -5.59 X-Spam-Score: -5.59 X-Migadu-Queue-Id: A011873C5F X-Migadu-Scanner: mx10.migadu.com X-TUID: /adYh4yJ2KRQ Jack Kamm writes: > Consider the following R block, which prints the occurrences of each > element in a list, including NAs: > > #+begin_src R :session :results output :async > table(c("ab","ab","c",NA,NA), useNA='always') > #+end_src > > #+RESULTS: > : ab c > : 2 1 2 > > Since Org 9.7, it instead prints: > > #+RESULTS: > : ab c < > : 2 1 2 > ... > The best solution I could think of was to define a new buffer-local > variable, `org-babel-comint-prompt-regexp-override', which could be used > to override `comint-prompt-regexp' for the purpose of filtering. I > attach a patch with this solution. Maybe we can simply override `comint-prompt-regexp' as we do in ob-shell? The default regexp seems to be too permissive. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at