From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 18197 invoked from network); 16 Jan 2023 03:49:45 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 16 Jan 2023 03:49:45 -0000 Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob1.topicbox.com (Postfix) with ESMTP id F301035283 for ; Sun, 15 Jan 2023 22:49:43 -0500 (EST) (envelope-from bounce.mM3eb35eb0b706b85667532f19.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id F01D7964801; Sun, 15 Jan 2023 22:49:43 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=from:to :message-id:date:mime-version:content-type :content-transfer-encoding:list-help:list-id:list-post :list-subscribe:reply-to:subject:list-unsubscribe; s=dkim-1; t= 1673840983; x=1673927383; bh=UZgXUBK0xfpLpFVdWHXOBvJ9AvDM4jOCHjX 9WFvEOwg=; b=O7nGVMo3npOcOXa4wqv85RSK83wTZvqzrws9Z2djZj/B+i2l4hM sU2Gtw6ICxMnSmOgWp9bxGN+Fd3gsnBGs2MajoaFdT7ju7cWL0Lhou/55Z440UoR HSelCC3oWywvAVwItMEkqorGzG5oSuoFLYsWoFvVoaz6x8F13/C81mss= From: revrari@mweb.co.za To: 9fans <9fans@9fans.net> Message-Id: <16738409770.1dB0AB2c.445654@composer.9fans.topicbox.com> Date: Sun, 15 Jan 2023 22:49:37 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=16738409771.BDF3.445654 Content-Transfer-Encoding: 7bit Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: cc7bc644-9550-11ed-8c2d-df3a212d11b0 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UYWY0MDg3NTFiYzZmYjM0NC1NM2ViMzVlYjBiNzA2Yjg1NjY3NTMy?= =?UTF-8?B?ZjE5Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Subject: [9fans] Script to apply Edit commands in acme List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M3eb35eb0b706b85667532f19:1:oEloVOutHO8mOjC8mK27v5-NgospLkA0YmPGmxIm1J8 --16738409771.BDF3.445654 Date: Sun, 15 Jan 2023 22:49:37 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable In sam I can create a script file consisting of a list of edit commands to = apply to the document. I then invoke *,| ssam -f my_script *to apply it. I would like to do something similar in acme. For example, create a script with these two commands to cleanup whitespace: Edit ,x/^ +/d Edit ,x/ +$/d I would like to know if such a script would require the regular #!/bin/rc h= eading, and how it would be invoked from within acme. I tried to do somethi= ng in my scripts folder, but it did not work. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Taf408751bc6fb344-M3eb35= eb0b706b85667532f19 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --16738409771.BDF3.445654 Date: Sun, 15 Jan 2023 22:49:37 -0500 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
In sam I can create a script file consisting o= f a list of edit commands to apply to the document. I then invoke ,| ssa= m -f my_script to apply it.
I would like to do somethin= g similar in acme.
For example, create a script with these = two commands to cleanup whitespace:
Edit ,x/^ +/d
Edit ,x/ +$/d
I would like to know if such a script = would require the regular #!/bin/rc heading, and how it would be invoked fr= om within acme. I tried to do something in my scripts folder, but it did no= t work.


= --16738409771.BDF3.445654-- From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16249 invoked from network); 16 Jan 2023 08:18:14 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 16 Jan 2023 08:18:14 -0000 Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob1.topicbox.com (Postfix) with ESMTP id F2F49372F4 for ; Mon, 16 Jan 2023 03:18:13 -0500 (EST) (envelope-from bounce.mM75bfff0a46aceb39fb2713c0.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id EEE6496B054; Mon, 16 Jan 2023 03:18:13 -0500 (EST) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=sirjofri.de; spf=pass smtp.mailfrom=sirjofri+ml-9fans@sirjofri.de smtp.helo=sirjofri.de; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:message-id:in-reply-to:references :subject:mime-version:content-type:content-transfer-encoding :list-help:list-id:list-post:list-subscribe:reply-to :list-unsubscribe; s=sysmsg-1; t=1673857093; bh=PWsC63wQUcJxZpNa peYITM+kVOpa5ynr/qbRFG0pkA0=; b=t1DA+WLnj3nDIp+DG+NEIHN0g+7NuR1N GpXg6MxCPWAoDK0Z7kZ3nGSTPXzVB4NSs0isE8CQUurTjPRZ0HIzqYhkq9T8BOnW swYHhiTJngqIKrESBH+PTvZbjk+PiBm8BZypXLRApillIVuvUmV59dslAjcqHM5s XLyg+B0MY0k= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1673857093; b=VuIhAWcH/HXeQ6Ac8AcOGELNnBeopRTLhpAFDotcu4IsGaNsA7 rnoI3fUDZZJt5DWmL96WEMbldyYnUgH8MjDjhuUQ/29ELsxyt23AwVQzAa1TdjzY yflvH5C0nBBzKOABOKrGOlrGTiSrViSuAoAFQiiH0fMrHck2C6wTN78pg= Authentication-Results: topicbox.com; arc=pass; dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=sirjofri.de; spf=pass smtp.mailfrom=sirjofri+ml-9fans@sirjofri.de smtp.helo=sirjofri.de; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=sirjofri.de; iprev=pass smtp.remote-ip=5.45.105.127 (sirjofri.de); spf=pass smtp.mailfrom=sirjofri+ml-9fans@sirjofri.de smtp.helo=sirjofri.de; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=sirjofri.de policy.ptr=sirjofri.de; x-return-mx=pass header.domain=sirjofri.de policy.is_org=yes (MX Records found: sirjofri.de); x-return-mx=pass smtp.domain=sirjofri.de policy.is_org=yes (MX Records found: sirjofri.de); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-SHA smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=date:from :to:message-id:in-reply-to:references:subject:mime-version :content-type:content-transfer-encoding:list-help:list-id :list-post:list-subscribe:reply-to:list-unsubscribe; s=dkim-1; t=1673857093; x=1673943493; bh=PWsC63wQUcJxZpNapeYITM+kVOpa5ynr /qbRFG0pkA0=; b=V1giKUFYeNTLa0XhRaQhANBaEXbyEBb1PesXvUMuEDpYhpKc 5FCX5E3svEhoMUaY8S+dG7O7wXUKPuudLl1eLE4fbAt22SoXQfmZT0e5aAQNxPQh BKfOYrgXfJgAQZOtsRBEUMe9yaGv1vswNJUb+pRuD930odtoFzCtrojX4Fk= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 4B6ED96A5B9 for <9fans@9fans.net>; Mon, 16 Jan 2023 03:17:59 -0500 (EST) (envelope-from sirjofri+ml-9fans@sirjofri.de) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id D0F34E50EA7; Mon, 16 Jan 2023 03:17:59 -0500 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1673857079; b=SyVammw8pEhHewrfjd4FYTZbptxT/+sr5k0pEHrNa7yJG2vzzS cWrQi7KPbkr9zPDkg6bov3BWmycIOayAqlkkgjRV15QTA49R72iqtON7wYkmKJ2e f2rU22v2/IRsq0baviuPZPmkODtE1AKTUh63R9MnU6SdWIhviL1lQ/ej4rllLZIP NVQ4EVBGrmif2ZohMLXguExbbf0/zDL8NfBa5VPKMn5AWjU8Xl+IT51vI70y7UbR pFrp5S+iS1pqV2T0l/soVOzXKjH0LB66ACCqNL+dSj1kznkjfjB2FBee6ZCkzAKC LqTFDS0Gd/SLGrzBTBs7W/Wk/oaAbG5nKNAA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:message-id:in-reply-to:references :subject:mime-version:content-type:content-transfer-encoding; s= arcseal; t=1673857079; bh=B1iurmhMA03Azgg2CtiC/6Ee7SSjt81N/vEQBu OIh/c=; b=hQTyumvUC+UaZp/7trl4UPsBwf+rA1cJSOnuw2BuIrHruffze02GIj mfLkLs7QkzuXSY9vpp8ld8CpFaRENK7dCMheQTx4wYimbNbv7j/UD2ORlbj13SQ5 h8rySB5CITmVKSXSS2kuuvU/ZWGkoQdpwynvtX79QCBKCCXoISFVPVx01ZLOld5K xulkVleJcyYw35eX3EFoOcNfkGuWHw6/RTvvBuIlzJkBcNJnvOcR8yOx3+qBE63Q XNxkkrUdHayDG02eVhR+R5gOLhlZViyVwYuyd4z9hDrF4HMp4i1h9+Pd0YwLEM7B vEdPjEnoJyTDp12i+7vl4idSjelzcPnw== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=none (no signatures found); dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=sirjofri.de; iprev=pass smtp.remote-ip=5.45.105.127 (sirjofri.de); spf=pass smtp.mailfrom=sirjofri+ml-9fans@sirjofri.de smtp.helo=sirjofri.de; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=sirjofri.de policy.ptr=sirjofri.de; x-return-mx=pass header.domain=sirjofri.de policy.is_org=yes (MX Records found: sirjofri.de); x-return-mx=pass smtp.domain=sirjofri.de policy.is_org=yes (MX Records found: sirjofri.de); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-SHA smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvhedruddtfedguddukecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepfffhvf fkjghfufggtgfgsehtjeertddttdejnecuhfhrohhmpehsihhrjhhofhhrihcuoehsihhr jhhofhhrihdomhhlqdelfhgrnhhssehsihhrjhhofhhrihdruggvqeenucggtffrrghtth gvrhhnpeefhfdtteduheffveeuleefgeejvdegfeegtddtheeluedutdehudfhfeffueel teenucfkphephedrgeehrddutdehrdduvdejpdelhedrledtrddvudejrdduvddvnecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthephedrgeehrddutdehrddu vdejpdhhvghlohepshhirhhjohhfrhhirdguvgdpmhgrihhlfhhrohhmpeeoshhirhhjoh hfrhhiodhmlhdqlehfrghnshesshhirhhjohhfrhhirdguvgeq X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (sirjofri.de: 5.45.105.127 is authorized to use 'sirjofri+ml-9fans@sirjofri.de' in 'mfrom' identity (mechanism 'mx' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="sirjofri+ml-9fans@sirjofri.de"; helo=sirjofri.de; client-ip=5.45.105.127 Received: from sirjofri.de (sirjofri.de [5.45.105.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Mon, 16 Jan 2023 03:17:57 -0500 (EST) (envelope-from sirjofri+ml-9fans@sirjofri.de) Received: from dummy.faircode.eu ([95.90.217.122]) by sirjofri.de; Mon Jan 16 09:17:50 +0100 2023 Date: Mon, 16 Jan 2023 09:17:46 +0100 (GMT+01:00) From: sirjofri To: 9fans <9fans@9fans.net> Message-ID: In-Reply-To: <16738409770.1dB0AB2c.445654@composer.9fans.topicbox.com> References: <16738409770.1dB0AB2c.445654@composer.9fans.topicbox.com> Subject: Re: [9fans] Script to apply Edit commands in acme MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Correlation-ID: Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 4d91fab2-9576-11ed-87d5-8a3517dab04c Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UYWY0MDg3NTFiYzZmYjM0NC1NNzViZmZmMGE0NmFjZWIzOWZiMjcx?= =?UTF-8?B?M2MwPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M75bfff0a46aceb39fb2713c0:1:ED5llfzvCns9lFsldWWcYBBGlq-dlk29Y1CSW3Up9Rs Hello, the shebang (#!/bin/rc) just says which shell you want to run it. You could= also use /bin/ed, if you want to run ed commands, for example. Acme can do pretty crazy stuff to extend it. For example, you can write you= r own scripts (or programs) in any language you like. Middle-click can exec= ute simple programs with no magic. See also /acme/ folder for examples. There can be simple programs like spell checkers that are just scripts usin= g the file path as parameters, and there are more complex programs that act= ually use the acme filesystem to do crazy stuff. For example, you can adjus= t the buffer as you like, write into the tag line whatever you like, captur= e mouse input in the tag line and do whatever you like, oben new acme windo= ws, .... For your specific question about Edit commands, I don't know of a way. Howe= ver, if there is a way I'm sure you can find it in the man pages. What could work though, is running ssam (or sam) on the data file in your a= cme filesystem. It just exposes an interface for each of your acme windows = with a few files to control it. sirjofri ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Taf408751bc6fb344-M75bff= f0a46aceb39fb2713c0 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23667 invoked from network); 16 Jan 2023 09:06:29 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 16 Jan 2023 09:06:29 -0000 Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob1.topicbox.com (Postfix) with ESMTP id 5127A1826F for ; Mon, 16 Jan 2023 04:06:29 -0500 (EST) (envelope-from bounce.mM2ed9c18cedf4f94ca36b7c63.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id 4CEB796E1EC; Mon, 16 Jan 2023 04:06:29 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=from:to :subject:message-id:references:in-reply-to:date:mime-version :content-type:content-transfer-encoding:list-help:list-id :list-post:list-subscribe:reply-to:list-unsubscribe; s=dkim-1; t=1673859989; x=1673946389; bh=CMFO+o23UPTL7Wa5Lpus4lxZBTO8ZHnD aTUeodm9/iI=; b=cgwX0KVXMprSG4lIYupuHXwHCFy4QaqVN4t2SaG7/1fGqTJ/ FDZheJZzDOV71dB7QOkNiu3RT2qxUN+LSAh8kVoaVOHUfYkYa3wfWIhumSiz6jQr G+pxL0u4lcxMTUlJcaGbgc18VCT9pvz3lLgA6s2bWWWAEqQrQsrINPtHb/U= From: revrari@mweb.co.za To: 9fans <9fans@9fans.net> Subject: Re: [9fans] Script to apply Edit commands in acme Message-Id: <16738599850.198Dc.144883@composer.9fans.topicbox.com> References: <16738409770.1dB0AB2c.445654@composer.9fans.topicbox.com> In-Reply-To: Date: Mon, 16 Jan 2023 04:06:25 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=16738599851.24eAA.144883 Content-Transfer-Encoding: 7bit Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 0defc946-957d-11ed-8e6a-df3a212d11b0 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UYWY0MDg3NTFiYzZmYjM0NC1NMmVkOWMxOGNlZGY0Zjk0Y2EzNmI3?= =?UTF-8?B?YzYzPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M2ed9c18cedf4f94ca36b7c63:1:FR2wYnxbPXo0dJNt4Ta6tPmTX2F38DZ0XHqxbt_9NDw --16738599851.24eAA.144883 Date: Mon, 16 Jan 2023 04:06:25 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Great tips. Thank you. I had no idea I could run ed commands that way.=C2=A0 ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Taf408751bc6fb344-M2ed9c= 18cedf4f94ca36b7c63 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --16738599851.24eAA.144883 Date: Mon, 16 Jan 2023 04:06:25 -0500 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Great tips. Thank you. I had no idea I could r= un ed commands that way. 
= --16738599851.24eAA.144883-- From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22633 invoked from network); 18 Jan 2023 16:45:28 -0000 Received: from tb-ob0.topicbox.com (64.147.108.117) by inbox.vuxu.org with ESMTPUTF8; 18 Jan 2023 16:45:28 -0000 Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob0.topicbox.com (Postfix) with ESMTP id EA9F7223A5 for ; Wed, 18 Jan 2023 11:45:23 -0500 (EST) (envelope-from bounce.mM11c0f3c688a704b33e48632a.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id E502B9C88B5; Wed, 18 Jan 2023 11:45:23 -0500 (EST) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=WPzhz2/3 header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=henri.ducrocq@gmail.com smtp.helo=mail-pj1-f48.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type:list-help:list-id:list-post :list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1674060323; bh=96BopfD1WIDBLr8X +0oPtnWp06Urai1/s+X5hjnlDvA=; b=tcJLDF3eNER4tcy3rU+azOmbAmth0o1U B3+UE5tiTyD7DmN/WH0e/N2i7GsNh+ht8Hne941Co/GfdkyeMzFQ3EXQnXnZXcaV Pfr6h8zUgNAFY4pwVxVRQEw+WKAQL9uvu2/QhwQQRm6I5S0iB9ykAIrszoCkIDIm AmSdLRTSEjY= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1674060323; b=tFo0IvnLDQ4aH3PiReqTUtdxtbjo5yCPsV7pa3ST/DuW6yXjxu 2HIom5TAPktfFwUkInMcxvQxHae63EBT25s3WoAZgmxediQceSWWYmhAjxnwBCzS v5JE4xvjylvLBACfn0AqB7ESSO9AQd97SV7xKPOugWwamtESQ06pqVBG8= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=WPzhz2/3 header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=henri.ducrocq@gmail.com smtp.helo=mail-pj1-f48.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=WPzhz2/3 header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.216.48 (mail-pj1-f48.google.com); spf=pass smtp.mailfrom=henri.ducrocq@gmail.com smtp.helo=mail-pj1-f48.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=k0NBX5XW; x-me-sender=none; x-ptr=pass smtp.helo=mail-pj1-f48.google.com policy.ptr=mail-pj1-f48.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=10 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h= mime-version:references:in-reply-to:from:date:message-id:subject :to:content-type:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; t=1674060323; x=1674146723; bh=k9GUGOz9CxHXEOfgGTSk+H1XBlwovB7x jl7DiM8i6AU=; b=T3d5yOqmSdc6cIiD3e/tlxL+QLMTR5s2/6nfxju2KEotqYo3 MsNKDurhXZohqOqXUAsvaiuTpRnKOxAQQR+hbLEjqtKBTL40nZlId6r9mjQZMr9l /i8+o3SPjx6FyyvAKJqeUTzVljLrpUIl/ZZIGoVe3RTsd/X3kbplV8TfWfg= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 782249C845E for <9fans@9fans.net>; Wed, 18 Jan 2023 11:45:10 -0500 (EST) (envelope-from henri.ducrocq@gmail.com) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id 8E7B4D91D25; Wed, 18 Jan 2023 11:45:10 -0500 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1674060310; b=ix1N+/9qbsmAGU8Abg/EPXFWOrpsdrrVfigAN80QKVNLerG25q 9ezrCOWjY4rXR0Qp/w+j+Lm3x9FYikhZS3QxHX7pBqf5B4QjwlbPegBcI4sUsa5q ude+g98+evy6mE56wozFDpruMD6XC/VtvQ8IMHz1C3r+h63Gq7MGMkcM7aJKWyeo 5A6FO0bEaCqieVeW4nDrJv0NGaUOSscFnNIbvThb0XdZzxqnbqnMjT/qW0GrV86s oErC9XhmvttEkraYuTpYSZy6FlyKLmE1vsOjozk1od1xsv6BDHSJj3WOOkzK+RBI H7jDK/a4ARsgDomqYn8JHhG/G4rUhUIh78nQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=arcseal; t=1674060310; bh=UP0LC2rsEiG3dzOaS+pKMjTbp60O3WOJbzJ6mUdJvMA=; b=yVagV3+/trVT 9xlEA5TIXMc4OdMjAd3I6N/PUVh4zz2XX8IVAh+VQv+CN851NpBWMF0wq8/LS23y MdImJOSQXq4o8/6FPRMmMTns0Ib7R7oOWexnZZupaon3t4pYVamW58eUsw/5iaYL xsTF0RqyLyIPXR6RJnkA6erB61knt6fniz38GKav4tJ+QySNI1Vq08EsgkuoPvhb vDhbbrXZjklTKG9GoIxvncRKiUCPv3B4ZhBCSxSa4JI3oXr7avfXn1Vr0u9hCDXt 2D522TuGKd5TrchwvqFMI+ZxkZoX8SMo539Lu2uRpgwf4Ah9I/2PIXGZ/6+O1FRV yYNbFfRabQ== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=WPzhz2/3 header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.216.48 (mail-pj1-f48.google.com); spf=pass smtp.mailfrom=henri.ducrocq@gmail.com smtp.helo=mail-pj1-f48.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=k0NBX5XW; x-me-sender=none; x-ptr=pass smtp.helo=mail-pj1-f48.google.com policy.ptr=mail-pj1-f48.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=10 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvhedruddtkedgledvucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdlud dtmdenucfjughrpeggfhgjhfffkffuvfgtsehttdertddttdejnecuhfhrohhmpefjvghn rhhiucffuhgtrhhotghquceohhgvnhhrihdrughutghrohgtqhesghhmrghilhdrtghomh eqnecuggftrfgrthhtvghrnhepieetffduvdfhkeegueehvdelffdtveekveffffffgeef leffffdvveekgeefgfevnecuffhomhgrihhnpehgihhthhhusgdrtghomhenucfkphepvd dtledrkeehrddvudeirdegkeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhep ihhnvghtpedvtdelrdekhedrvdduiedrgeekpdhhvghlohepmhgrihhlqdhpjhduqdhfge ekrdhgohhoghhlvgdrtghomhdpmhgrihhlfhhrohhmpeeohhgvnhhrihdrughutghrohgt qhesghhmrghilhdrtghomheq X-ME-VSScore: 10 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'henri.ducrocq@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="henri.ducrocq@gmail.com"; helo=mail-pj1-f48.google.com; client-ip=209.85.216.48 Received: from mail-pj1-f48.google.com (mail-pj1-f48.google.com [209.85.216.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Wed, 18 Jan 2023 11:45:09 -0500 (EST) (envelope-from henri.ducrocq@gmail.com) Received: by mail-pj1-f48.google.com with SMTP id z1-20020a17090a66c100b00226f05b9595so2764889pjl.0 for <9fans@9fans.net>; Wed, 18 Jan 2023 08:45:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=UP0LC2rsEiG3dzOaS+pKMjTbp60O3WOJbzJ6mUdJvMA=; b=k0NBX5XWBUtdy/zLt3NX0M6LPcPCdfZ4+0pkQc0UT5YsjzV0csz6voEJHa2FjSq2w1 w6XICbMMNFm7IRpnAZzfv3DYXeSwrcKFE/6iFbkghw3X45/XpBDFFHtak6cNFpz8cdMs I0duV7SGR2KsHCY49lz53A8xdGRJdw4aVMSI5s4KN8OfWUeCoQekboZ8yEavI/q8Vc0L ef9/pbhaY9epe2djQjR7uLmSbtNRWccgyBkivjDpIi683/81ve321B+XsgXSOQWZrl0E d8oNmV6zuY53zJY8TZsQYYzvZl2UFScwfHV6W28MUi1X3h3uiBYrC47IV2/83+On3JX4 xyhQ== X-Gm-Message-State: AFqh2kqZ3PPFd8N1QcCye6Z2SBMiB9iSnQ7y9VOjg73uM2YTqremA6kL qZAdWAPTDCid/kcimIIgyoHYevMk4/L12a+icHI2PBNmqHY= X-Google-Smtp-Source: AMrXdXv0FvLYc55vQxecjxk62Q2CqT05kiI97P19UpPtbNQE10EDCDwdw7b0rzigpW0RjmvFsXdoBg8oQPlYKATFgk0= X-Received: by 2002:a17:90a:c48:b0:229:163d:e156 with SMTP id u8-20020a17090a0c4800b00229163de156mr953422pje.160.1674060308407; Wed, 18 Jan 2023 08:45:08 -0800 (PST) MIME-Version: 1.0 References: <16738409770.1dB0AB2c.445654@composer.9fans.topicbox.com> <16738599850.198Dc.144883@composer.9fans.topicbox.com> In-Reply-To: <16738599850.198Dc.144883@composer.9fans.topicbox.com> From: Henri Ducrocq Date: Wed, 18 Jan 2023 16:44:57 +0000 Message-ID: Subject: Re: [9fans] Script to apply Edit commands in acme To: 9fans <9fans@9fans.net> Content-Type: text/plain; charset=UTF-8 Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 7c0d71e8-974f-11ed-91b4-9e01324496d2 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UYWY0MDg3NTFiYzZmYjM0NC1NMTFjMGYzYzY4OGE3MDRiMzNlNDg2?= =?UTF-8?B?MzJhPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Content-Transfer-Encoding: quoted-printable List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M11c0f3c688a704b33e48632a:1:zJjFZejVKc8jackjSugRNXlnAYL4BTsuCrKen8whlF0 Here is a script I wrote to run any arbitrary command (Edit, Look, etc) in a window (current one by default): https://gist.github.com/perpen/9902359ddf09b24129277ce121e3e86d E.g.: Aexe 'Edit ,blah' It's quite horrible, as it appends the command to the body to run it using an event (would have been simpler running the command from the tag, but there is race making that impossible iirc). I ended up not using it, so it is not much tested. And I wrote it for plan 9, not sure how that would work with plan9port. On Mon, Jan 16, 2023 at 9:06 AM wrote: > > Great tips. Thank you. I had no idea I could run ed commands that way. > 9fans / 9fans / see discussions + participants + delivery options Permali= nk ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Taf408751bc6fb344-M11c0f= 3c688a704b33e48632a Delivery options: https://9fans.topicbox.com/groups/9fans/subscription From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 23915 invoked from network); 18 Jan 2023 16:55:16 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 18 Jan 2023 16:55:16 -0000 Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob1.topicbox.com (Postfix) with ESMTP id C47DA3540F for ; Wed, 18 Jan 2023 11:55:14 -0500 (EST) (envelope-from bounce.mMfc6d82c231782e86759f2c05.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id C0AAD9C9A8F; Wed, 18 Jan 2023 11:55:14 -0500 (EST) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=BKEgCTcW header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=paul.a.lalonde@gmail.com smtp.helo=mail-vs1-f54.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type:list-help:list-id:list-post :list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1674060914; bh=mFj06q3uxAkJ5oWe K8G4NXnwer1G9lAN0t0VrAO5rgE=; b=jkmZXLDycDxP7E4Tz1PXfn5WiFkmJiNc q1HQbKJj/HBOFhns5PafniSDPF0cbFSXndeJHVTBE9khuQH8YiXKVSx/ECWQgo5h blVnW38ry3PrBDllADgrh6CFlq7wrmGdcLq3Ei1QfXgVkPRQXQ6R0/mNEj1I8tCq 8fc/wDgw388= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1674060914; b=lcAQk+PC2cgOkcCvZqQix+O69eXjcHaOepJo52QkaMNtK6kEdy PDVFw6lrmV+1mGjDITlHkkAu7hH13yMBBFsnk0XAHwQ9NqUj0rhQz3Z+jRNgR8Of lTq9WhWC4lhfzoxM81aqcYYnFa+j4jkB7WEb+mYx10AoFlR61QevIJ7a8= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=BKEgCTcW header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=paul.a.lalonde@gmail.com smtp.helo=mail-vs1-f54.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=BKEgCTcW header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.217.54 (mail-vs1-f54.google.com); spf=pass smtp.mailfrom=paul.a.lalonde@gmail.com smtp.helo=mail-vs1-f54.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=EHpAZ6AJ; x-me-sender=none; x-ptr=pass smtp.helo=mail-vs1-f54.google.com policy.ptr=mail-vs1-f54.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=10 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h= mime-version:references:in-reply-to:from:date:message-id:subject :to:content-type:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; t=1674060914; x=1674147314; bh=cZddrZJCVTOH0lN98nRY9yeMng1u7sqV NtwTIsKXGyY=; b=TZElQAIbKHuHiRozyBfzo9vyY2ZFd9oJcI/F3xPCQ23UXJ/w JdOQH8jgAUKbuiiVg0Kwmblxu9QYONTpt6VUxuEqAQvhtLGDTJSxhdBKV8NgxOMJ TamM7wc22dNQhayP6UF/N1ItNEaXn7DggqIjV9HHvDP0BUi6NDh+Lh8wtDc= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id 22BBF9C9658 for <9fans@9fans.net>; Wed, 18 Jan 2023 11:55:03 -0500 (EST) (envelope-from paul.a.lalonde@gmail.com) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id 84F20680980; Wed, 18 Jan 2023 11:55:03 -0500 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1674060902; b=mR9BDqU85rwnJglAAucjoDPAZk6pV2oSf634EOskNocxUi+kB6 Kb0JCYWA9J4CTu/sdc9zSGAhtJFJ118j38vCraVr0MXcJuQZTyDDbstECBSpGydB erXwGhyliXEKh/UmztslybYgi5brNIo+vf2PJ7URSXDBFDcn+glBWrHzQ9RbhSWB QinkT7tDu+87fXKoMgD1VSkbpgs4qCD3HYqFOo4TZ111YDVQ3uPzw/pe5ABF7CY9 dXvMqIoljMIBntYQB+/Xe6LjcQnX0zbNRwfO0XAtJ34joXJfslNk7jLsRiV+8mlP 2a6ve8fjHl7VoAaVP7c2PmdDURWBmaEAK+YQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=arcseal; t=1674060902; bh=81ooL9eCZACHJo4VGHKKZJHMV0s0TSXlXdtnImpVZtA=; b=sIWIoPZW9vT5 01k75pc2sZym0aDyzCEj3oWhZPCsucY8I4zECCdGQAqGWQlvknjzVixExHKBdu7v niCRkXOR1GaH5ILRsVcsdM3iFXiF9Nsm0DbofIULxADZX+7VUPlRrRjDf6WxyKxM yPDZLJ0FfdN9hpb/pl0KFa0b/fIOby2r528gwbZSgErPSmMoHOq7sI0ZIPOLuLsK nOk5rsg25id5GVngIXWN1Fz5ch+cRNrKIjmZc7Ly+kjsyvW846YP/VpSwxmRXYuY 3qEXI0d08Es7oMxS6QgVpjhoKjo3lUA+rYJWuLMW7JrHfaZInSyguoHM2qLHwO5O 0a/szoJTXA== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=BKEgCTcW header.a=rsa-sha256 header.s=20210112 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.217.54 (mail-vs1-f54.google.com); spf=pass smtp.mailfrom=paul.a.lalonde@gmail.com smtp.helo=mail-vs1-f54.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=EHpAZ6AJ; x-me-sender=none; x-ptr=pass smtp.helo=mail-vs1-f54.google.com policy.ptr=mail-vs1-f54.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=10 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvhedruddtkedgleefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdlud dtmdenucfjughrpeggfhgjhfffkffuvfgtsegrtderredttdejnecuhfhrohhmpefrrghu lhcunfgrlhhonhguvgcuoehprghulhdrrgdrlhgrlhhonhguvgesghhmrghilhdrtghomh eqnecuggftrfgrthhtvghrnhepfefgffdtueefgefhgedtvdejhfelgeeutefghfegiefg gfeltdevgfevudevgffhnecuffhomhgrihhnpehgihhthhhusgdrtghomhdpthhophhitg gsohigrdgtohhmnecukfhppedvtdelrdekhedrvddujedrheegnecuvehluhhsthgvrhfu ihiivgeptdenucfrrghrrghmpehinhgvthepvddtledrkeehrddvudejrdehgedphhgvlh hopehmrghilhdqvhhsuddqfhehgedrghhoohhglhgvrdgtohhmpdhmrghilhhfrhhomhep oehprghulhdrrgdrlhgrlhhonhguvgesghhmrghilhdrtghomheq X-ME-VSScore: 10 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'paul.a.lalonde@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="paul.a.lalonde@gmail.com"; helo=mail-vs1-f54.google.com; client-ip=209.85.217.54 Received: from mail-vs1-f54.google.com (mail-vs1-f54.google.com [209.85.217.54]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Wed, 18 Jan 2023 11:55:01 -0500 (EST) (envelope-from paul.a.lalonde@gmail.com) Received: by mail-vs1-f54.google.com with SMTP id n190so32507326vsc.11 for <9fans@9fans.net>; Wed, 18 Jan 2023 08:55:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=81ooL9eCZACHJo4VGHKKZJHMV0s0TSXlXdtnImpVZtA=; b=EHpAZ6AJjLFsef0QfG3Pr9k8j9wbD/gOq+E7Pt0TxCHg0Zmcvd71/VYbrNFCQSL50F 84NSGLunpzIdz5zMgeSWUZRi9QmdoFnnMJTuH2AbOfcdeLE8xLfpwL+nP/OVl5h7HP6r 64Z0JU6G7dJmU2PNXJolt4P0AB/MjuxKjj8mV6oUUBhzzlB6JBjanC6yOKe3nnHcPjg5 Z+GlDzs8+3PPS+4e0MQ3mSeBpHZBJRvBMh5rdE/PDnhac2F2uW4I9SNjd71ILWgbIXAF ecTendIN/9iqpPDKMZQvA32UhlGjgsRllCBEwuooDYj3QZOsfTwreo1wlAr0so/h/F5J 7UzA== X-Gm-Message-State: AFqh2krR9o2BwVAFQ5BzL8A6O22QNfhxh/UiahV1nFTVJ4JqoQCUrBvP QciQQ1xbs6GvARVlErJMIt+4UIV3KlY1kAthBt/RdgMsdybZ5Q== X-Google-Smtp-Source: AMrXdXvKVHK1usnpLqnBzVENgrmiie7Pmib5Ee+rqRGUJx8MALX50xaItUt/SUiVmgdFHS3Ol9q7Hu8xNMH21gNlEIM= X-Received: by 2002:a67:e109:0:b0:3d0:dcbb:2004 with SMTP id d9-20020a67e109000000b003d0dcbb2004mr1000724vsl.43.1674060900734; Wed, 18 Jan 2023 08:55:00 -0800 (PST) MIME-Version: 1.0 References: <16738409770.1dB0AB2c.445654@composer.9fans.topicbox.com> <16738599850.198Dc.144883@composer.9fans.topicbox.com> In-Reply-To: From: Paul Lalonde Date: Wed, 18 Jan 2023 08:54:49 -0800 Message-ID: Subject: Re: [9fans] Script to apply Edit commands in acme To: 9fans <9fans@9fans.net> Content-Type: multipart/alternative; boundary=000000000000521b9905f28cad5e Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: ddad53b8-9750-11ed-a911-93095e82d70c Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UYWY0MDg3NTFiYzZmYjM0NC1NZmM2ZDgyYzIzMTc4MmU4Njc1OWYy?= =?UTF-8?B?YzA1Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Content-Transfer-Encoding: 7bit List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:Mfc6d82c231782e86759f2c05:1:sqbZw6hlGrX-var6R9iD69wQsnQ7_IRI-p918MWQDFw --000000000000521b9905f28cad5e Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable You can, of course, execute multiple commands in one Edit, either lineline or chroding the "{}" block: Edit { ,x/a/c/b/ ,x/d/c/e/ } On Wed, Jan 18, 2023 at 8:46 AM Henri Ducrocq wrote: > Here is a script I wrote to run any arbitrary command (Edit, Look, etc) > in a window (current one by default): > https://gist.github.com/perpen/9902359ddf09b24129277ce121e3e86d > > E.g.: Aexe 'Edit ,blah' > > It's quite horrible, as it appends the command to the body to run it > using an event (would have been simpler running the command from the > tag, but there is race making that impossible iirc). > > I ended up not using it, so it is not much tested. And I wrote it for > plan 9, not > sure how that would work with plan9port. > > On Mon, Jan 16, 2023 at 9:06 AM wrote: > > > > Great tips. Thank you. I had no idea I could run ed commands that way. > > 9fans / 9fans / see discussions + participants + delivery options > Permalink ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Taf408751bc6fb344-Mfc6d8= 2c231782e86759f2c05 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --000000000000521b9905f28cad5e Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You can, of course, execute multiple comm= ands in one Edit, either lineline or chroding the "{}" block:Edit {
,x/a/c/b/
,x/d/c/e/
}


= On Wed, Jan 18, 2023 at 8:46 AM Henri Ducrocq <henri.ducrocq@gmail.com> wrote:
Here is a script I wrote to run = any arbitrary command (Edit, Look, etc)
in a window (current one by default):
  https://gist.github.com/perpen= /9902359ddf09b24129277ce121e3e86d

E.g.: Aexe 'Edit ,blah'

It's quite horrible, as it appends the command to the body to run it using an event (would have been simpler running the command from the
tag, but there is race making that impossible iirc).

I ended up not using it, so it is not much tested. And I wrote it for
plan 9, not
sure how that would work with plan9port.

On Mon, Jan 16, 2023 at 9:06 AM <revrari@mweb.co.za> wrote:
>
> Great tips. Thank you. I had no idea I could run ed commands that way.=
> 9fans / 9fans / see discussions + participants + delivery options Perm= alink

------------------------------------------
9fans: 9fans
Permalink: https:= //9fans.topicbox.com/groups/9fans/Taf408751bc6fb344-M11c0f3c688a704b33e4863= 2a
Delivery options: https://9fans.topicbox.com/gro= ups/9fans/subscription
= --000000000000521b9905f28cad5e-- From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HTML_MESSAGE,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17151 invoked from network); 19 Jan 2023 09:33:16 -0000 Received: from tb-ob0.topicbox.com (64.147.108.117) by inbox.vuxu.org with ESMTPUTF8; 19 Jan 2023 09:33:16 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob0.topicbox.com (Postfix) with ESMTP id 73DD328B41 for ; Thu, 19 Jan 2023 04:33:14 -0500 (EST) (envelope-from bounce.mM6ae700b031c62aa50ebf7c05.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 6DF6EB7B585; Thu, 19 Jan 2023 04:33:14 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=from:to :subject:message-id:references:in-reply-to:date:mime-version :content-type:content-transfer-encoding:list-help:list-id :list-post:list-subscribe:reply-to:list-unsubscribe; s=dkim-1; t=1674120794; x=1674207194; bh=nZpOx1XXXjZu+ZhEfABiF2FnXqMSvCPO 3nfcyhth8wQ=; b=oo58UleHNP5WbUCcch0/ju5Gxxji126z1z4iuJgW7MUbyzbi XuLnNJ64zsXewhOFoz7lSYieSMMFBN94VFMJCV+4eynak1+X1SWYm/YrGVPVWHo7 /UlqqGzH23WrQ/rOFo0zR+Bv0HYaHx9mjpT/5DwJ0uqA7QMBGCEzaGzR5XU= From: revrari@mweb.co.za To: 9fans <9fans@9fans.net> Subject: Re: [9fans] Script to apply Edit commands in acme Message-Id: <16741207890.71a19d.319186@composer.9fans.topicbox.com> References: <16738409770.1dB0AB2c.445654@composer.9fans.topicbox.com> <16738599850.198Dc.144883@composer.9fans.topicbox.com> In-Reply-To: Date: Thu, 19 Jan 2023 04:33:09 -0500 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary=16741207891.5cEF9bC.319186 Content-Transfer-Encoding: 7bit Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 492e2dd4-97dc-11ed-b261-73b9232d11b0 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UYWY0MDg3NTFiYzZmYjM0NC1NNmFlNzAwYjAzMWM2MmFhNTBlYmY3?= =?UTF-8?B?YzA1Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M6ae700b031c62aa50ebf7c05:1:U_zttpshKUb7QnNk46E5XcX_7zqzXsvTvgjznvyoFYk --16741207891.5cEF9bC.319186 Date: Thu, 19 Jan 2023 04:33:09 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Great tips. Thank you.=C2=A0 ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Taf408751bc6fb344-M6ae70= 0b031c62aa50ebf7c05 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --16741207891.5cEF9bC.319186 Date: Thu, 19 Jan 2023 04:33:09 -0500 MIME-Version: 1.0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Great tips. Thank you. 
= --16741207891.5cEF9bC.319186-- From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 951 invoked from network); 20 Jan 2023 05:26:20 -0000 Received: from tb-ob21.topicbox.com (173.228.157.67) by inbox.vuxu.org with ESMTPUTF8; 20 Jan 2023 05:26:20 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob21.topicbox.com (Postfix) with ESMTP id 8CF4220738 for ; Fri, 20 Jan 2023 00:26:18 -0500 (EST) (envelope-from bounce.mMab8c70f37dc76a709197b202.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 4CE83BB1233; Fri, 20 Jan 2023 00:26:18 -0500 (EST) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=benghancock.com header.i=@benghancock.com header.b=aN0W9i4V header.a=rsa-sha256 header.s=fm2 x-bits=2048; dkim=pass (2048-bit rsa key sha256) header.d=messagingengine.com header.i=@messagingengine.com header.b=fuVGBRM7 header.a=rsa-sha256 header.s=fm3 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=benghancock.com; spf=pass smtp.mailfrom=ben@benghancock.com smtp.helo=wout2-smtp.messagingengine.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding :list-help:list-id:list-post:list-subscribe:reply-to :list-unsubscribe; s=sysmsg-1; t=1674192378; bh=LasKrBGeefGMo6XB wrBwznZllyo1aTnHtkXimDDCTvU=; b=SEBDPkKnTMQiHLdEM1xAesCvduvvGDiN gEQR2FwDFmDXQzZg/AqHL3NCmSbPDlFcOf+I8M63fqymzHpTTSOFhdq8x+khlm/v Vi/RbInN1KStmTH0yH01u2kNF3uVl5MXwK46Xqyo+n2s8g15WJ+1vuW8k8W0+Q0r Ri0slzq81vw= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1674192378; b=egmQu0CihWtiWjDW3GgO+0AMWw6V3alGMI9BYcCLQbvVHwOLwP /bPWS3w/SY5rJpZ30B09D5UdbCsF+kusPY2y+1/UjJ1SFl5gOKHXJn0g4HJQS5BG z13F1lskCvWcUNBRuSTjjmJm4rdt6WQqwmvll9dhoFG77jrymE2bpFmHw= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=benghancock.com header.i=@benghancock.com header.b=aN0W9i4V header.a=rsa-sha256 header.s=fm2 x-bits=2048; dkim=pass (2048-bit rsa key sha256) header.d=messagingengine.com header.i=@messagingengine.com header.b=fuVGBRM7 header.a=rsa-sha256 header.s=fm3 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=benghancock.com; spf=pass smtp.mailfrom=ben@benghancock.com smtp.helo=wout2-smtp.messagingengine.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=pass (2048-bit rsa key sha256) header.d=benghancock.com header.i=@benghancock.com header.b=aN0W9i4V header.a=rsa-sha256 header.s=fm2 x-bits=2048; dkim=pass (2048-bit rsa key sha256) header.d=messagingengine.com header.i=@messagingengine.com header.b=fuVGBRM7 header.a=rsa-sha256 header.s=fm3 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=benghancock.com; iprev=pass smtp.remote-ip=64.147.123.25 (wout2-smtp.messagingengine.com); spf=pass smtp.mailfrom=ben@benghancock.com smtp.helo=wout2-smtp.messagingengine.com; x-aligned-from=pass (Address match); x-me-sender=pass policy.xms= 6iXKY3fv31MaBuR6k5jIKNYCLfWCLNwV61-JmsOfL5SY7qGE9uSMkwBC6SHLdWMrGKja3pIavWF5pJxP-e0b5V_Pzi5LB5xH7osUEW4G4GCK7xdbelsmALz-txUWWGGDZuzHPQs8gwFHJA; x-ptr=pass smtp.helo=wout2-smtp.messagingengine.com policy.ptr=wout2-smtp.messagingengine.com; x-return-mx=pass header.domain=benghancock.com policy.is_org=yes (MX Records found: in2-smtp.messagingengine.com,in1-smtp.messagingengine.com); x-return-mx=pass smtp.domain=benghancock.com policy.is_org=yes (MX Records found: in2-smtp.messagingengine.com,in1-smtp.messagingengine.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=10 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=date:from :to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding:list-help:list-id :list-post:list-subscribe:reply-to:list-unsubscribe; s=dkim-1; t=1674192378; x=1674278778; bh=Ye3qsJHYKc2NqykiM/HavTVafeOgN9aN 8otxDeSdvnc=; b=g/3136dWapM1u3DikXaMXJKwy7e9Fhb7Zob55GSKc5RFiiO9 DNmeBFffZJzfNamW6LMV8K+UiQ5JDCmGnO0BSLz5m+b4r32yI4BhHUqT+OkqW0Ok pLeXjDPz3ALGkPhWr4ePqpJggO3aAEWDLf0K3PwVGufIf8jlikwqgqkWI8Y= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id 44ED6BB0C7E for <9fans@9fans.net>; Fri, 20 Jan 2023 00:26:02 -0500 (EST) (envelope-from ben@benghancock.com) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id 30D28275AD5; Fri, 20 Jan 2023 00:26:02 -0500 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1674192362; b=KsagpExV59cJNNqVXTevFGw86D9fw+yyN3vVZ1CpqEVEF6dJOs qfPGVCiluhG0y+sgB1IEGkPYvG4TcEj+BujRR2qL2zVHA9xuRPIj3O+ZKqS5YrLc vi9lgRzIwyt1h2qhjTJ0DK2l2DB0FtzdSlFGDi0iklkXbrvWXThxkoddFuQJYaXG cA0ahIXwYejXoGXwrN1ng12tjFsGy+dXItknEBggc1jkRtqmqNwENF/65FI9ThWj eo7nuLsX8eHVEokfHrwB5CK91FzNZBc6gR+YW5O/Dq2XSNZYgqG2Cy+lCQi7QQZS mxII18WuH7g1SSCQMHzE2+BBli4VCA5RnrGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; s=arcseal; t=1674192362; bh=eJ4n18T5E0rUL3H3WO7PAnAH2jEXQ3KjZgy i91FgNnA=; b=cgdPUImisKxczJscfos0gJcn7L3uK1EGBmC7gbCxCGZtBdITT/8 uumcPQjC+ac7LI6bLlpQdUb6qdZobSDC+o+O9c+65pNgErNaOa+BPPanxVikvGXO 9IAiWpJvPXcy1e2miat548c/Qoemu/txinQ5dUoEzJGPRejwUJfikh7xtmDVU0YJ HOcGjozZnvgz1p8aZzxwWtk45LNRFMLWIco6Z2cEjJV2uBSgMbmQ7sDBSZO+K6bd NthWI/HjfLpkMZLlRLHl23pjFCSy9iOCNqjVwT0P2Vl6ZTZMEiIi7huUC9tjMFwj bP3F8yJwgLXFOzazYDkRjdyvItQfOipOwTQ== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=pass (2048-bit rsa key sha256) header.d=benghancock.com header.i=@benghancock.com header.b=aN0W9i4V header.a=rsa-sha256 header.s=fm2 x-bits=2048; dkim=pass (2048-bit rsa key sha256) header.d=messagingengine.com header.i=@messagingengine.com header.b=fuVGBRM7 header.a=rsa-sha256 header.s=fm3 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=benghancock.com; iprev=pass smtp.remote-ip=64.147.123.25 (wout2-smtp.messagingengine.com); spf=pass smtp.mailfrom=ben@benghancock.com smtp.helo=wout2-smtp.messagingengine.com; x-aligned-from=pass (Address match); x-me-sender=pass policy.xms= 6iXKY3fv31MaBuR6k5jIKNYCLfWCLNwV61-JmsOfL5SY7qGE9uSMkwBC6SHLdWMrGKja3pIavWF5pJxP-e0b5V_Pzi5LB5xH7osUEW4G4GCK7xdbelsmALz-txUWWGGDZuzHPQs8gwFHJA; x-ptr=pass smtp.helo=wout2-smtp.messagingengine.com policy.ptr=wout2-smtp.messagingengine.com; x-return-mx=pass header.domain=benghancock.com policy.is_org=yes (MX Records found: in2-smtp.messagingengine.com,in1-smtp.messagingengine.com); x-return-mx=pass smtp.domain=benghancock.com policy.is_org=yes (MX Records found: in2-smtp.messagingengine.com,in1-smtp.messagingengine.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=10 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvhedrudduuddgkeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdlud dtmdenucfjughrpeffhffvuffkjghfofggtgfgsehtjeertdertddvnecuhfhrohhmpeeu vghnucfjrghntghotghkuceosggvnhessggvnhhghhgrnhgtohgtkhdrtghomheqnecugg ftrfgrthhtvghrnhepfefhteefjefgieefkeekgeeikeduuefgfeeuleffvddvuedvvdef fedtkedvteffnecukfhppeeigedrudegjedruddvfedrvdehnecuvehluhhsthgvrhfuih iivgeptdenucfrrghrrghmpehinhgvthepieegrddugeejrdduvdefrddvhedphhgvlhho peifohhuthdvqdhsmhhtphdrmhgvshhsrghgihhnghgvnhhgihhnvgdrtghomhdpmhgrih hlfhhrohhmpeeosggvnhessggvnhhghhgrnhgtohgtkhdrtghomheq X-ME-VSScore: 10 X-ME-VSCategory: clean Received-SPF: pass (benghancock.com: Sender is authorized to use 'ben@benghancock.com' in 'mfrom' identity (mechanism 'include:spf.messagingengine.com' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="ben@benghancock.com"; helo=wout2-smtp.messagingengine.com; client-ip=64.147.123.25 Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Fri, 20 Jan 2023 00:26:01 -0500 (EST) (envelope-from ben@benghancock.com) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id 9B1B432001BB for <9fans@9fans.net>; Fri, 20 Jan 2023 00:26:00 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 20 Jan 2023 00:26:00 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudduuddgkeehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgfrhhlucfvnfffucdluddtmdenucfjughrpeffhf fvuffkjghfofggtgfgsehtjeertdertddvnecuhfhrohhmpeeuvghnucfjrghntghotghk uceosggvnhessggvnhhghhgrnhgtohgtkhdrtghomheqnecuggftrfgrthhtvghrnhepfe fhteefjefgieefkeekgeeikeduuefgfeeuleffvddvuedvvdeffedtkedvteffnecuvehl uhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsggvnhessggvnh hghhgrnhgtohgtkhdrtghomh X-ME-Proxy: Feedback-ID: i8a3947c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for <9fans@9fans.net>; Fri, 20 Jan 2023 00:25:59 -0500 (EST) Date: Thu, 19 Jan 2023 21:25:57 -0800 From: Ben Hancock To: 9fans@9fans.net Subject: Re: [9fans] Script to apply Edit commands in acme Message-ID: <20230119212557.6642fc99@shasta> In-Reply-To: <16741207890.71a19d.319186@composer.9fans.topicbox.com> References: <16738409770.1dB0AB2c.445654@composer.9fans.topicbox.com> <16738599850.198Dc.144883@composer.9fans.topicbox.com> <16741207890.71a19d.319186@composer.9fans.topicbox.com> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.35; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: f142b930-9882-11ed-a567-ae8085e85006 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UYWY0MDg3NTFiYzZmYjM0NC1NYWI4YzcwZjM3ZGM3NmE3MDkxOTdi?= =?UTF-8?B?MjAyPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:Mab8c70f37dc76a709197b202:1:5LnnSoRczZn43MY9Q7JE_3ySg9v-Qi4nNYI4rPGYAq8 (Re-posting this message as earlier send appeared to fail; apologies for any duplication.) revrari@mweb.co.za writes: > In sam I can create a script file consisting of a list of edit > commands to apply to the document. [...] I would like to know if such > a script would require the regular #!/bin/rc heading, and how it > would be invoked from within acme. The paradigm is much the same in acme. As noted earlier, the shebang just determines which shell the script will run in; you can choose any shell, or use any executable. You'll just want to make sure that the script is in your $PATH. For example, you could create this as $HOME/bin/lstrip: #! /bin/sh ssam 'x/^ +?/d' Make it executable, then write some text in acme: This is some text that will be cleaned If you select this text, type "|lstrip" in the tag (without the quotes), and Button-2 (middle click) it, you will get the desired effect: This is some text that will be cleaned To operate on the entire window, type "Edit ,|lstrip" and execute that with B2. By the way, as for your other example of cleaning whitespace at the end of a newline (Edit ,x/ +$/d), acme does this by default on Put. The other way you might approach this is just to keep a text file of commonly used commands around. Then you can select the command you want, and mouse-chord B2-B1 on "Edit" in the tag of the desired window to execute that command. - Ben ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Taf408751bc6fb344-Mab8c7= 0f37dc76a709197b202 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14838 invoked from network); 20 Jan 2023 07:23:25 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 20 Jan 2023 07:23:25 -0000 Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob1.topicbox.com (Postfix) with ESMTP id B99B1289F7 for ; Fri, 20 Jan 2023 02:23:23 -0500 (EST) (envelope-from bounce.mM7878a439846f17b1a1d8594b.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id AD8BFA09EC5; Fri, 20 Jan 2023 02:23:23 -0500 (EST) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (1024-bit rsa key sha256) header.d=9lab.org header.i=@9lab.org header.b=XCV6F0PP header.a=rsa-sha256 header.s=20210803 x-bits=1024; dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=9lab.org; spf=pass smtp.mailfrom=igor@9lab.org smtp.helo=mail.9lab.org; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=message-id:to:cc:subject:date:from:in-reply-to :mime-version:content-type:content-transfer-encoding:list-help :list-id:list-post:list-subscribe:reply-to:list-unsubscribe; s= sysmsg-1; t=1674199403; bh=12OgYAVgAuaKAG+WqSu4yJI0wXC3nLgZ18Zok BNSKAc=; b=g2DGoT/6XqxQb7g/sO/0fhs9kfNPwxiFB752ZyoFjh1LC7RP6GRGM 7TcAjv1RxBsWb04QQcanJbgHcj16MPqFyJVP2TknKL8z1p3B+IDk1+g/QMA+XHtn tq6BcvvkmhWNHasws2RvorkQhLtxgkMLlFqVRsqAvvQ31Dj/K3J2vM= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1674199403; b=eM8eaKGYiNTZ3LYGfBYFgfZwsTbnFlCqqw7NPyUhEb/539iIhU GDCLCY//GBimzKt7dPpE7/5WvolF9lYBnn6iH3TIi54Py4d4XfCjFLK+ZRcItIIB pGtB5Flge7slC4qsdpP+RXaIH/iczNIQ3KPxCqABfInhnWxoECtSJmwkk= Authentication-Results: topicbox.com; arc=pass; dkim=pass (1024-bit rsa key sha256) header.d=9lab.org header.i=@9lab.org header.b=XCV6F0PP header.a=rsa-sha256 header.s=20210803 x-bits=1024; dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=9lab.org; spf=pass smtp.mailfrom=igor@9lab.org smtp.helo=mail.9lab.org; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (1024-bit rsa key sha256) header.d=9lab.org header.i=@9lab.org header.b=XCV6F0PP header.a=rsa-sha256 header.s=20210803 x-bits=1024; dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=9lab.org; iprev=pass smtp.remote-ip=168.119.8.41 (mail.9lab.org); spf=pass smtp.mailfrom=igor@9lab.org smtp.helo=mail.9lab.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mail.9lab.org policy.ptr=mail.9lab.org; x-return-mx=pass header.domain=9lab.org policy.is_org=yes (MX Records found: mail.9lab.org); x-return-mx=pass smtp.domain=9lab.org policy.is_org=yes (MX Records found: mail.9lab.org); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=message-id :to:cc:subject:date:from:in-reply-to:mime-version:content-type :content-transfer-encoding:list-help:list-id:list-post :list-subscribe:reply-to:list-unsubscribe; s=dkim-1; t= 1674199403; x=1674285803; bh=12OgYAVgAuaKAG+WqSu4yJI0wXC3nLgZ18Z okBNSKAc=; b=cAKFbB2krRdHi/ewSRggZOg3QEF42Vwjqz/fDLNCVfyRf7X5Yt9 H3duqHVkH9oE0zCissDzDfBxu1XgoNJLVxKSWAxA04L/LIKxhxKcdXuGt2o+Zj98 Rzce0vi/OXtXPRC3PLiPSGgRhk6QXRA4ps09AP3IzolT5TetaOtn7x0Q= Received: from tb-mx1.topicbox.com (localhost.local [127.0.0.1]) by tb-mx1.topicbox.com (Postfix) with ESMTP id E47D2A09A7F for <9fans@9fans.net>; Fri, 20 Jan 2023 02:23:11 -0500 (EST) (envelope-from igor@9lab.org) Received: from tb-mx1.topicbox.com (localhost [127.0.0.1]) by tb-mx1.topicbox.com (Authentication Milter) with ESMTP id C57A1A4DBB0; Fri, 20 Jan 2023 02:23:11 -0500 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1674199391; b=RPVMowXcWsGNR3jzuDFY7N/DWB4YufmdfjEl9nEZQZGnLp11Gi uCbDXoVq4IfIRItpwg7pJ+eh+SgUix4sS/VA/NAP2FVG0QAjtw6OVlb1WOmyx545 pi50Lrrzi9i+2EFjZXGBPNWrk6ob7e5GtQJjA1CFpH8sPQab5b16SSwuEqEOjNJ+ JZ56L6julDpzUi1ImZlqZ5XQ0MycK05T79Ll6nQptgzfRHxjE3HNS/YPBpkVGTvE h5oRC225WI7LKZOv33UsLshiziqAnnTDFsfGIAaKKXQt535YDpp8RpZ7Iksuw3F/ lpDUUgWHj2Rv19jr38C9tZ6c4uarL6Vys2dw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=message-id:to:cc:subject:date:from:in-reply-to :mime-version:content-type:content-transfer-encoding; s=arcseal; t=1674199391; bh=yak26R+kfRTbgqgmu8m0hyW3Ci8mB5rpzijV7WsEHUM=; b= GdXh6A7fpf/T5Es4MbooHx8ogbiAY2waTlqzq4Li8VX6g/ohIeJii2/RZee8pU3g qOirMku3Sucj5k7Al5y9ZkDDw0lOmhKh/1MT706QB4RVoWS5z0GuUk+wk9pmkWrZ +S18xNrdBlRZwR2WaXMPeVsyLkaCoVhEy7HCecZmxB7bS1oZ9j0dMA2rQdvy46ta OD4C/+PVB5di/aRsILf+WBjVIiicKozawzedcTBIt/2lDnpC4FvYqN5eUY+iu9Lu aA9qMPYqyewMId6gbuFTOr5oqYv4/rx7p7ST2bCPxcvVrnOIE2iCUgag9Z2ZQ8o0 juauYo9m0rViTkikFsdPSg== ARC-Authentication-Results: i=1; tb-mx1.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (1024-bit rsa key sha256) header.d=9lab.org header.i=@9lab.org header.b=XCV6F0PP header.a=rsa-sha256 header.s=20210803 x-bits=1024; dmarc=pass policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=9lab.org; iprev=pass smtp.remote-ip=168.119.8.41 (mail.9lab.org); spf=pass smtp.mailfrom=igor@9lab.org smtp.helo=mail.9lab.org; x-aligned-from=pass (Address match); x-me-sender=none; x-ptr=pass smtp.helo=mail.9lab.org policy.ptr=mail.9lab.org; x-return-mx=pass header.domain=9lab.org policy.is_org=yes (MX Records found: mail.9lab.org); x-return-mx=pass smtp.domain=9lab.org policy.is_org=yes (MX Records found: mail.9lab.org); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvhedrudduuddguddtlecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpggftfghnshhusghstghrihgsvgdp uffrtefokffrpgfnqfghnecuuegrihhlohhuthemuceftddtnecunecujfgurhepkffvve fufffhjgggtgfgsehtkeejtddttdejnecuhfhrohhmpehighhorheslehlrggsrdhorhhg necuggftrfgrthhtvghrnhepleekudeljeefkeeugffhveetuefgueevtdevjeduiefhff fgledtfeduffekudejnecukfhppeduieekrdduudelrdekrdeguddpudeivddrvddufedr udeivddrvdegieenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpe duieekrdduudelrdekrdeguddphhgvlhhopehmrghilhdrlehlrggsrdhorhhgpdhmrghi lhhfrhhomhepoehighhorheslehlrggsrdhorhhgqe X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (9lab.org: 168.119.8.41 is authorized to use 'igor@9lab.org' in 'mfrom' identity (mechanism 'a' matched)) receiver=tb-mx1.topicbox.com; identity=mailfrom; envelope-from="igor@9lab.org"; helo=mail.9lab.org; client-ip=168.119.8.41 Received: from mail.9lab.org (mail.9lab.org [168.119.8.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx1.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Fri, 20 Jan 2023 02:23:10 -0500 (EST) (envelope-from igor@9lab.org) Received: from rob.9lab.home ( [162.213.162.246]) by mail.9lab.org (OpenSMTPD) with ESMTPSA id 1a7a2ce8 (TLSv1.2:ECDHE-RSA-CHACHA20-POLY1305:256:NO); Fri, 20 Jan 2023 08:23:07 +0100 (CET) Message-ID: To: 9fans@9fans.net CC: igor@9lab.org Subject: Re: [9fans] Script to apply Edit commands in acme Date: Fri, 20 Jan 2023 08:23:05 +0100 From: igor@9lab.org In-Reply-To: <20230119212557.6642fc99@shasta> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 4f06257e-9893-11ed-b40a-ed974ccb8860 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UYWY0MDg3NTFiYzZmYjM0NC1NNzg3OGE0Mzk4NDZmMTdiMWExZDg1?= =?UTF-8?B?OTRiPg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M7878a439846f17b1a1d8594b:1:etxts64NLYHYrSyJ7U7yKVUsJBXJqym95DHA0d5fCHs Quoth Ben Hancock : [=E2=80=A6] > By the way, [=E2=80=A6] cleaning whitespace at the end of a newline > (Edit ,x/ +$/d), acme does this by default on Put. [=E2=80=A6] Minor correction: There exist ACME patches accomplishing the above. Howbeit, ACME does not strip trailing whitespace on Put by default. ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Taf408751bc6fb344-M7878a= 439846f17b1a1d8594b Delivery options: https://9fans.topicbox.com/groups/9fans/subscription From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 31976 invoked from network); 20 Jan 2023 14:24:26 -0000 Received: from tb-ob0.topicbox.com (64.147.108.117) by inbox.vuxu.org with ESMTPUTF8; 20 Jan 2023 14:24:26 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob0.topicbox.com (Postfix) with ESMTP id ED6B336736 for ; Fri, 20 Jan 2023 09:24:24 -0500 (EST) (envelope-from bounce.mMd0954cf3a725613753213c68.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id EA58CBC04DB; Fri, 20 Jan 2023 09:24:24 -0500 (EST) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=benghancock.com header.i=@benghancock.com header.b=X6w+PZ+F header.a=rsa-sha256 header.s=fm2 x-bits=2048; dkim=pass (2048-bit rsa key sha256) header.d=messagingengine.com header.i=@messagingengine.com header.b=Rm9/+jVb header.a=rsa-sha256 header.s=fm3 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=benghancock.com; spf=pass smtp.mailfrom=ben@benghancock.com smtp.helo=out4-smtp.messagingengine.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding :list-help:list-id:list-post:list-subscribe:reply-to :list-unsubscribe; s=sysmsg-1; t=1674224664; bh=R4QgGAWgMKeRvQAB Upg5mkQ/UxppDpMG8oybfQA6cwQ=; b=TD4fCK6DetnsBxA0oeFiAKPRniChlWph iehWIq3msw4deghMYhzoEDyyZyhbq7vwE4LzD8dGYgadHFyuYAqFWw3vg6B63c6O ooOCwvadaJmcLOS5aTlqquTp0mpCauwUU8UzaQyUVCsB8UGj3/xYVASEi2tTuHGE mB90UDecQ/0= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1674224664; b=YMHqFRTGh4ejmWdvQ0VR+VJJuBb24F5pGCGYmOnOi2KLoChrIV Zq4wVNEe4Z473miBItWhluxU9iaP0N1Jn6ju+cuZ+9NZxvqQYtGRW7Lzxyb5CPjK duKv66qBdaLadmalNBvc52SUOarrHhw15qqcA/7O6SID/Bd2q/W0AwXKw= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=benghancock.com header.i=@benghancock.com header.b=X6w+PZ+F header.a=rsa-sha256 header.s=fm2 x-bits=2048; dkim=pass (2048-bit rsa key sha256) header.d=messagingengine.com header.i=@messagingengine.com header.b=Rm9/+jVb header.a=rsa-sha256 header.s=fm3 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=benghancock.com; spf=pass smtp.mailfrom=ben@benghancock.com smtp.helo=out4-smtp.messagingengine.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=pass (2048-bit rsa key sha256) header.d=benghancock.com header.i=@benghancock.com header.b=X6w+PZ+F header.a=rsa-sha256 header.s=fm2 x-bits=2048; dkim=pass (2048-bit rsa key sha256) header.d=messagingengine.com header.i=@messagingengine.com header.b=Rm9/+jVb header.a=rsa-sha256 header.s=fm3 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=benghancock.com; iprev=pass smtp.remote-ip=66.111.4.28 (out4-smtp.messagingengine.com); spf=pass smtp.mailfrom=ben@benghancock.com smtp.helo=out4-smtp.messagingengine.com; x-aligned-from=pass (Address match); x-me-sender=pass policy.xms= DaTKY2stEwr14i2FrgP-ZV_hv3IcV-nD6yp2fNGmLzjYV3J5Ghbq49ucS8L57FRgajtcfBwhhlsn5nPfwNW_mRxdjt9DlY2y1ga-LKUNyizCb70s3zXA-fVsJgtkZEc6_NINbyEoyse4dw; x-ptr=pass smtp.helo=out4-smtp.messagingengine.com policy.ptr=out4-smtp.messagingengine.com; x-return-mx=pass header.domain=benghancock.com policy.is_org=yes (MX Records found: in2-smtp.messagingengine.com,in1-smtp.messagingengine.com); x-return-mx=pass smtp.domain=benghancock.com policy.is_org=yes (MX Records found: in2-smtp.messagingengine.com,in1-smtp.messagingengine.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h=date:from :to:subject:message-id:in-reply-to:references:mime-version :content-type:content-transfer-encoding:list-help:list-id :list-post:list-subscribe:reply-to:list-unsubscribe; s=dkim-1; t=1674224664; x=1674311064; bh=8HD9vSV0dWPnzEoUKSMtTCgwgweObKRR Cz4fen1G0Ok=; b=XfdzZZdGMFWnWhLU0FDxi9ZIkWhjHr+4VWwTSl2ji5ENpQgg BofLBIVieKspo4pPT/7t+8WvpBLsemkZIFO62Sx3Z3OQ/v3lOeI75GDjQEo5gIUG kDnGHOBh2bigBzkImSuLG/ZhDZ0VNePfgglq83amxvjKf7IlMaLvTINagC0= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id 91DB8BC00AE for <9fans@9fans.net>; Fri, 20 Jan 2023 09:24:13 -0500 (EST) (envelope-from ben@benghancock.com) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id 48B736EFE9C; Fri, 20 Jan 2023 09:24:13 -0500 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1674224653; b=dNFdmNQs/JpFIuDQTws2NSbtAkv+T8MG6BziDDVR5+9x96US5V ib7yc4/zmGt+f5xa8wQcVcKq/lMtzA8oKf7EqVYOQOxkvJe8kOS8RkU80YUVN4Xd dilcm7QUIMlXR920iZF5e8WlNeYxTgzLgO5yB1iF38XHu6VNw4IN6z3VbTjLpHE4 JRaJVTrcYE/DoG9uewd2gfn54MDX6C41iU06NVqDNWJh7UYfKVDjBOy1O/Swzlhd lktKjBYQz2lRve470qijXXFt2DQHfbgJIxZJybjDlOjhKBJmCMSxmTarbHeH5n9p hNxq86ieSPJLQsUCAZQyOsa1lQaENlSphU3w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=date:from:to:subject:message-id:in-reply-to :references:mime-version:content-type:content-transfer-encoding; s=arcseal; t=1674224653; bh=lWvwbBk0qa4PR8sOcng3zt2Vioei4RxSUF9 k3Us8kpc=; b=mnsnnWbzd2VjnHfprr7qtNH1Leeil32oORsBW97VSa6PX2IC+92 PG3x2Xdv6t7695S73hcxmxZLm5I1OZ+2JVqd6I9OexVR8jQ23b/m7sZZqjAxbOoc KIpZo1EAzs45cb5q87w+UgrscTH8WhlV1ohpMEczCxewW61k7X6KXCbp1oiCzLv1 6w0z7/63SMAH6QmBBerX091zG0D/GhS8fZivmEaEIGuX7B5UIOwzGoYWBsoSBp93 Y344bxvr4V8JiJVMw91F99srIgrs/lZW3Ku1C+yUPTF3S1rMrFNk66iUyY13dz0F 6wTHm0X30C+f928oA0T73FYDnyp/28iq6Ww== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC did not pass); dkim=pass (2048-bit rsa key sha256) header.d=benghancock.com header.i=@benghancock.com header.b=X6w+PZ+F header.a=rsa-sha256 header.s=fm2 x-bits=2048; dkim=pass (2048-bit rsa key sha256) header.d=messagingengine.com header.i=@messagingengine.com header.b=Rm9/+jVb header.a=rsa-sha256 header.s=fm3 x-bits=2048; dmarc=none policy.published-domain-policy=none policy.applied-disposition=none policy.evaluated-disposition=none (p=none,d=none,d.eval=none) policy.policy-from=p header.from=benghancock.com; iprev=pass smtp.remote-ip=66.111.4.28 (out4-smtp.messagingengine.com); spf=pass smtp.mailfrom=ben@benghancock.com smtp.helo=out4-smtp.messagingengine.com; x-aligned-from=pass (Address match); x-me-sender=pass policy.xms= DaTKY2stEwr14i2FrgP-ZV_hv3IcV-nD6yp2fNGmLzjYV3J5Ghbq49ucS8L57FRgajtcfBwhhlsn5nPfwNW_mRxdjt9DlY2y1ga-LKUNyizCb70s3zXA-fVsJgtkZEc6_NINbyEoyse4dw; x-ptr=pass smtp.helo=out4-smtp.messagingengine.com policy.ptr=out4-smtp.messagingengine.com; x-return-mx=pass header.domain=benghancock.com policy.is_org=yes (MX Records found: in2-smtp.messagingengine.com,in1-smtp.messagingengine.com); x-return-mx=pass smtp.domain=benghancock.com policy.is_org=yes (MX Records found: in2-smtp.messagingengine.com,in1-smtp.messagingengine.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedvhedrudduvddgieeiucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuf fkjghfofggtgfgsehtqhertdertdejnecuhfhrohhmpeeuvghnucfjrghntghotghkuceo sggvnhessggvnhhghhgrnhgtohgtkhdrtghomheqnecuggftrfgrthhtvghrnhepgfdvfe ffveehgeehgffgudfhiedvtdeufedukeevgfekfeevheeuleefgfegledvnecukfhppeei iedrudduuddrgedrvdeknecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinh gvthepieeirdduuddurdegrddvkedphhgvlhhopehouhhtgedqshhmthhprdhmvghsshgr ghhinhhgvghnghhinhgvrdgtohhmpdhmrghilhhfrhhomhepoegsvghnsegsvghnghhhrg hntghotghkrdgtohhmqe X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (benghancock.com: Sender is authorized to use 'ben@benghancock.com' in 'mfrom' identity (mechanism 'include:spf.messagingengine.com' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="ben@benghancock.com"; helo=out4-smtp.messagingengine.com; client-ip=66.111.4.28 Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Fri, 20 Jan 2023 09:24:13 -0500 (EST) (envelope-from ben@benghancock.com) Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 132655C01A0 for <9fans@9fans.net>; Fri, 20 Jan 2023 09:24:13 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute1.internal (MEProxy); Fri, 20 Jan 2023 09:24:13 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrudduvddgieehucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkjghfofggtgfgsehtqh ertdertdejnecuhfhrohhmpeeuvghnucfjrghntghotghkuceosggvnhessggvnhhghhgr nhgtohgtkhdrtghomheqnecuggftrfgrthhtvghrnhepgfdvfeffveehgeehgffgudfhie dvtdeufedukeevgfekfeevheeuleefgfegledvnecuvehluhhsthgvrhfuihiivgeptden ucfrrghrrghmpehmrghilhhfrhhomhepsggvnhessggvnhhghhgrnhgtohgtkhdrtghomh X-ME-Proxy: Feedback-ID: i8a3947c9:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for <9fans@9fans.net>; Fri, 20 Jan 2023 09:24:12 -0500 (EST) Date: Fri, 20 Jan 2023 06:24:10 -0800 From: Ben Hancock To: 9fans@9fans.net Subject: Re: [9fans] Script to apply Edit commands in acme Message-ID: <20230120062410.71c9ffcd@shasta> In-Reply-To: References: <20230119212557.6642fc99@shasta> X-Mailer: Claws Mail 4.1.1 (GTK 3.24.35; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 1fb161b8-98ce-11ed-89eb-98664fc79060 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UYWY0MDg3NTFiYzZmYjM0NC1NZDA5NTRjZjNhNzI1NjEzNzUzMjEz?= =?UTF-8?B?YzY4Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:Md0954cf3a725613753213c68:1:W-gBQeTmmwR3HCQCLPI5drvKa7rROniJ0yALOjwnNWo igor@9lab.org wrote: > Quoth Ben Hancock : > [=E2=80=A6] > > By the way, [=E2=80=A6] cleaning whitespace at the end of a newline > > (Edit ,x/ +$/d), acme does this by default on Put.=20=20 > [=E2=80=A6] >=20 > Minor correction: There exist ACME patches accomplishing the above. > Howbeit, ACME does not strip trailing whitespace on Put by default. >=20 Thanks Igor. I'm using the plan9port version of acme, and I typically run in autoindent mode, which seems to trigger this behavior. >From the man page: > When a window is in autoindent mode [...] and a newline character is > typed, acme copies leading white space on the current line to the new > line, and when a window is Put, acme removes all trailing end-of-line > white space before writing the file. The option -a causes each > window to start in autoindent mode. You are indeed correct that when starting without the '-a' flag, this is not the behavior. Cheers. - Ben ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Taf408751bc6fb344-Md0954= cf3a725613753213c68 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription