From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms8.migadu.com with LMTPS id KMcTG5c202UegAAA62LTzQ:P1 (envelope-from ) for ; Mon, 19 Feb 2024 12:08:07 +0100 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id KMcTG5c202UegAAA62LTzQ (envelope-from ) for ; Mon, 19 Feb 2024 12:08:07 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="Mvi/fGpz"; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1708340887; 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=pbehqPghrU945wg7uetoH7rEfIQ3CPpvxys6FqUfq8U=; b=EWRydsxhKe9UNGnKf9Ob4Wcj3Vwn3TnCwNNBa3qwcBLdnH8J7/Q0mIMcNENiluydjXT2ik TIcZDVPiZojReCibAJgtNn3oV9hdSURDAI3dODuahXM0YIK2gXTbmhL6Vc2rIa4lthpXRF mgb+Oi4n+T+o2UqKMHxpBUP4eV4RoWutu7w7vJQqViBrLDnw2fFH8ZMC04xqaFW240J/MV 7iQxSMpkPEEr43PLKq0AHhruasgagpeF3cp0o8XJZWlDjB2onBT2uVUfo7IvLpsHlp3mRI HWFYHYTebiRc4FN0JqCqnxDyCh9fNPXDisk3UPPP1Rr0nqHjSVwuQG9BC0VLag== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="Mvi/fGpz"; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1708340887; a=rsa-sha256; cv=none; b=A5yFYfE7BfeiDfmD+gkvhqFa/Rk5qY2DU8imHFjThEXiHbjbO3+gQJgK5qrBok4ENGNC0R TkZBxLcqBTRQ4E6/O4bq2NeGF2xC2hzAA2Rwq30RSeqc1cIEG6SniJjN+TAgju3RWYp1DY p9rJuPfglHKCIKEK5cwYgnycS0S8YV7RRD3oxaxyECINEN98nP/IjPYFwHV0/pKW2Hcjdk pWmnITN2GRjx1DpY7h0ihWQ778fSmpVuH5SwOLzXM3NsnHRAO/uLsOq/CypmqCHcHcnDYX pA5XS+RCbYXiPVpfz2XfCCU7gKiKHYNzgW/cMKwRpoNuZ0TbOZW+RlWricXV/g== 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 E96EB5F48B for ; Mon, 19 Feb 2024 12:08:06 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rc1Ub-0005Tr-1B; Mon, 19 Feb 2024 06:07:25 -0500 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 1rc1UX-0005TX-Vo for emacs-orgmode@gnu.org; Mon, 19 Feb 2024 06:07:22 -0500 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 1rc1UV-0004RN-8f for emacs-orgmode@gnu.org; Mon, 19 Feb 2024 06:07:21 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 60EAC240028 for ; Mon, 19 Feb 2024 12:07:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1708340836; bh=CRcDT1mjEjYoyfU/3gN5oa0nF2k4tTkZhJHwSq2d5GU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=Mvi/fGpzrxDJ+nA6BAlxoca0Q//RGSHMlTHX5BM5+4l8xuhbR/MimUndsZXh0cqqb SuOLUF5q4SlpP4Q0kzgIALY+vcMNM2S1cqbJkIb9Y6/p+Fd4tirVjPBpufreUj0NE2 DpJHiIN3SP/3lE6br8kHEufM+8bQ4AFnA1hJV38yoBK9aDpjLb4afl+ipb4HmQGrV6 PnCeOZiWZyjWMwqZrfqGiWsmmhGprSCDbzwTQ5RYg/MxogJ4h52KFfPfCUxKkANi1j Fb3oGyR8cMLjmoyqzaVjH8uXOCD6Nlvb4HryqsNw61EGEq0U/OhSxHxjQfMFoKkyRv QI/jKHgm4clVg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4TdfrM3HzJz6txX; Mon, 19 Feb 2024 12:07:15 +0100 (CET) From: Ihor Radchenko To: Matt Cc: emacs-orgmode Subject: Re: [BUG] Prompt appears in async shell results In-Reply-To: <18dbc1f273c.11687295c1395973.3345700621594100711@excalamus.com> References: <18d753c1e8a.cfb3e1921191837.5665565128507976741@excalamus.com> <87ttmn9fg0.fsf@localhost> <18dbc1f273c.11687295c1395973.3345700621594100711@excalamus.com> Date: Mon, 19 Feb 2024 11:10:59 +0000 Message-ID: <87ttm4g14s.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.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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: -8.00 X-Spam-Score: -8.00 X-Migadu-Queue-Id: E96EB5F48B X-Migadu-Scanner: mx11.migadu.com X-TUID: 7TjEfZowZdQA Matt writes: > - Split prompt filtering and input echoing into two filters > + this seems to imply a =-hook= or =-functions= type implementation Not necessarily. You may just split the filter into (1) prompt remover; (2) body remover. The filter does not need to interact with comint buffer and may simply be provided a regexp/string to be removed. Then, the caller will be responsible to supply prompt regexp/body. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at