From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: Process filters =?utf-8?Q?=E2=80=94?= line at a time? Date: Thu, 29 Aug 2024 18:47:09 +0300 Message-ID: <867cbzfi0y.fsf@gnu.org> References: <87frqomf8s.fsf@librehacker.com> <864j73hqj1.fsf@gnu.org> <87seunl4oy.fsf@librehacker.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40857"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Aug 29 17:48:03 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 1sjhNT-000AUn-MY for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 29 Aug 2024 17:48:03 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sjhMg-0001kK-2d; Thu, 29 Aug 2024 11:47:14 -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 1sjhMd-0001jx-Qf for help-gnu-emacs@gnu.org; Thu, 29 Aug 2024 11:47:11 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sjhMd-0001qw-HK for help-gnu-emacs@gnu.org; Thu, 29 Aug 2024 11:47:11 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=8V7HsB7E9YgByqFZCsoUfgtv6dMeh7IGvj4KQeH2lmc=; b=aXMsFA1lJDdyLIM8e149 t0Gj/zYMPTo+PlB9AiDfSDtRLOWL19CbtEiHgM6u7mkK0iDh4XHjpUFu70qs2K7w5KI9HhhqDmNar 4AFkW5Nxsq0QnDO96R0JzYOGIMKIyhJXLRT+32jU72D9fK81mezc4zOOqMO/Sx/HGn6XsEnY0Th0A DnvXMKwRB0B3IMRTZZpHTtLETrpOMdM5Gyo7eU/61pls7UGDHm7PX+a+ZCaMlOzp8bVTwYiEQFIRY WteymUZguEgStCT4C0y6tmkWj1SHU7wMwPuLWiv2JmeSQBx6AqyX5x3Z/9cCgmrmk9QoIFvk1eCmp CdcaCkK1K4KpCw==; In-Reply-To: <87seunl4oy.fsf@librehacker.com> (message from Christopher Howard on Thu, 29 Aug 2024 07:38:37 -0800) 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:147852 Archived-At: > From: Christopher Howard > Cc: help-gnu-emacs@gnu.org > Date: Thu, 29 Aug 2024 07:38:37 -0800 > > > 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? The latter, I believe.