emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Async sessions: Fix prompt removal regression in ob-R


From: Ihor Radchenko
Subject: Re: [PATCH] Async sessions: Fix prompt removal regression in ob-R
Date: Wed, 02 Oct 2024 17:05:14 +0000

Jack Kamm <jackkamm@gmail.com> 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 <NA> 
> :    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 <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]