From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Christopher Howard Newsgroups: gmane.emacs.help Subject: Re: Process filters =?utf-8?Q?=E2=80=94?= line at a time? Date: Thu, 29 Aug 2024 07:38:37 -0800 Message-ID: <87seunl4oy.fsf@librehacker.com> References: <87frqomf8s.fsf@librehacker.com> <864j73hqj1.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="4688"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Eli Zaretskii Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 29 17:39:23 2024 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1sjhF5-00013S-EO for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 29 Aug 2024 17:39:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sjhEV-0004uP-VD; Thu, 29 Aug 2024 11:38:47 -0400 Original-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 1sjhEU-0004u7-8t for help-gnu-emacs@gnu.org; Thu, 29 Aug 2024 11:38:46 -0400 Original-Received: from mx.kolabnow.com ([212.103.80.155]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sjhES-0000rD-JZ; Thu, 29 Aug 2024 11:38:46 -0400 Original-Received: from localhost (unknown [127.0.0.1]) by mx.kolabnow.com (Postfix) with ESMTP id DACA133FACA3; Thu, 29 Aug 2024 17:38:41 +0200 (CEST) Authentication-Results: ext-mx-out011.mykolab.com (amavis); dkim=pass (2048-bit key) reason="pass (just generated, assumed good)" header.d=kolabnow.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kolabnow.com; h= content-type:content-type:mime-version:message-id:date:date :references:in-reply-to:subject:subject:from:from:received :received:received; s=dkim20240523; t=1724945921; x=1726760322; bh=xpeoDlJWZXNMvIxLPXeaynnMnpzb3YAniw8dhDabNVw=; b=LCG98R9GTSRX Xne8jJ8AXsG6N3EKFcp4TQ9OT/L+t+mVq/dmPlyvDg3gse/eEoLqXy6SKl8XQZhu /Qbwyu/ilA/gifh9eME4Z17G02d5BvV0UEkuMdou2zxSyPDQjBWTh6wwpzklhq+Z TSgLOzID4XAiOBAd8O4l0wrmiZjIsO03PtDO7mwBswAPUwCqdL0eIIwinyIJC4dz hMJrG5tyCkycsv35Whb2XdH5RO/b/83aIxG1YpEt1zRrk9y5PRIB/lc5gEkY3CAT iqpn6wQ/QcHopeDMzlgRfVsu/vyuzjhf/tU01zP1wG05yaVd8gGpbZPH22/oasp+ r6kWNWFVJw== X-Virus-Scanned: amavis at mykolab.com Original-Received: from mx.kolabnow.com ([127.0.0.1]) by localhost (ext-mx-out011.mykolab.com [127.0.0.1]) (amavis, port 10024) with ESMTP id Y40Lvvyc6UTc; Thu, 29 Aug 2024 17:38:41 +0200 (CEST) Original-Received: from int-mx011.mykolab.com (unknown [10.9.13.11]) by mx.kolabnow.com (Postfix) with ESMTPS id 1CA0E33FAC8F; Thu, 29 Aug 2024 17:38:40 +0200 (CEST) Original-Received: from ext-subm010.mykolab.com (unknown [10.9.6.10]) by int-mx011.mykolab.com (Postfix) with ESMTPS id E49BD31EF118; Thu, 29 Aug 2024 17:38:40 +0200 (CEST) In-Reply-To: <864j73hqj1.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 29 Aug 2024 08:00:34 +0300") Received-SPF: none client-ip=212.103.80.155; envelope-from=christopher@librehacker.com; helo=mx.kolabnow.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:147851 Archived-At: > One idea is to use string-lines to split the process output into > individual lines. You will need to write custom code to identify > incomplete lines, though. You will find examples of the usage in > shell.el and in compile.el. Thank you, string-lines sounds helpful. In the case that there an incomplete line at the end, is there some way to give that back to the process output stream, or would I need to buffer that myself? -- Christopher Howard