From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: [QUESTION] How to use :filter in `make-process'? Date: Tue, 03 Mar 2020 09:19:07 +0100 Message-ID: <878skhyhok.fsf@fastmail.fm> References: <87r1y97u8v.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="85687"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.3.8; emacs 26.3.50 To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Mar 03 09:19:34 2020 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 1j92m6-000MCN-Bh for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 03 Mar 2020 09:19:34 +0100 Original-Received: from localhost ([::1]:43528 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j92m5-0000Yt-Az for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 03 Mar 2020 03:19:33 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37487) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j92lk-0000Yh-Bw for help-gnu-emacs@gnu.org; Tue, 03 Mar 2020 03:19:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j92lj-00089G-Du for help-gnu-emacs@gnu.org; Tue, 03 Mar 2020 03:19:12 -0500 Original-Received: from out1-smtp.messagingengine.com ([66.111.4.25]:49479) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j92lj-00088a-3G for help-gnu-emacs@gnu.org; Tue, 03 Mar 2020 03:19:11 -0500 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 9920422025 for ; Tue, 3 Mar 2020 03:19:09 -0500 (EST) Original-Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Tue, 03 Mar 2020 03:19:09 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:subject:in-reply-to:date:message-id :mime-version:content-type:content-transfer-encoding; s=fm2; bh= 5IlekbgcZaoGIFjnt4vF1WYtgyfrZIBCHReEzPR1FzA=; b=nMaUkFEOcGJiya5P Tn+y35rhje7xJLEcmsZh3f5cdBr6/OXZiyCijLI48EDXFYzR885RIwQmZITFMYJU 5TdOFfEvFvrzdXisDt7tc5cEW3YX6Q8LbQ8c4xMrgWzzrAN1W+vC9el9r84ThSE1 swSS/ZehUsm0hFR6mvNFBGWDaTGQ1zxkuE6PHQzE4CGPEBRpXogS5wN4Mm9ttRh7 hrkwKheT5sJBonHXfj+iMmt0Rc7AMfRF7z8C9hzIYjg/wV3uKxHzq3Yl9W0HXhBZ kWmj4v8ELy+YbboVxZO5H5jD3vmODjrunRxSyTMCqoWm79vsLyBmM275OEp4CpNn 4pM/4Q== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=5IlekbgcZaoGIFjnt4vF1WYtgyfrZIBCHReEzPR1F zA=; b=Cm46S793hdts5hWAqSp19Z8tMLz2sHx6a4hUfAIC0N8MLlYxS3uRtEl9k KWvg8uMKvTcxmOw9Hm33mYQQ8YGeWFr4Vuaq3v9skSwuCPHWG3tiRil7rPaZRJOh tXlWgg3OWIRHbt6++wUu65BPQ2rVBDnL93XrfLFF4a9qgJp3LZz6i/rnjUsF+rJA ugSR9S5JS8w9ixYKugicKnlxXIst3bGBvuBUF0YkSoDQ5ZN/ipX7iN3uJVkEPQXv BHmWA8zNIaQBGj95FXxDhfJOJaIwmAm256ZLm+4wTwgHDJ+D10TNdjKyDQdRGfm/ hLfUmau/a61cSUpZg+vs8KqxmNDrg== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedruddthedguddujecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfhgfhffvufgjfffkgggtgfesth hqredttderjeenucfhrhhomheplfhoohhsthcumfhrvghmvghrshcuoehjohhoshhtkhhr vghmvghrshesfhgrshhtmhgrihhlrdhfmheqnecukfhppeelhedrledtrddvtddurdeivd enucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehjohho shhtkhhrvghmvghrshesfhgrshhtmhgrihhlrdhfmh X-ME-Proxy: Original-Received: from IdeaPad.fastmail.com (ip5f5ac93e.dynamic.kabel-deutschland.de [95.90.201.62]) by mail.messagingengine.com (Postfix) with ESMTPA id 2D87030611F2 for ; Tue, 3 Mar 2020 03:19:09 -0500 (EST) In-reply-to: <87r1y97u8v.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.25 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 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" Xref: news.gmane.io gmane.emacs.help:122515 Archived-At: On Tue, Mar 03 2020, stardiviner wrote: > I have an code example try to use :filter handler of=20 > make-process. [...] > I don't know how to use it correctly. Can you give some good=20 > examples of using > this `:filter' handler, and explain it a little?=20 There is quite an elaborate explanation in the Elisp manual: Elisp > Processes > Output from Processes > Filter Functions or: (info "(elisp) Filter Functions") =E2=87=90 put cursor here and press C-x= =20 C-e HTH --=20 Joost Kremers Life has its moments